File "editor.min.js"
Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/revslider/admin/assets/js/modules/editor.min.js
File size: 725.57 KB
MIME-type: text/plain
Charset: utf-8
window.HelpGuide={addOnsHelp:[],verifyObject:function(e){return e&&"object"==typeof e&&!Array.isArray(e)},add:function(e){HelpGuide.verifyObject(e)&&(HelpGuide.allHelpPaths?HelpGuide.extendHelpAddOns([e],!0):HelpGuide.addOnsHelp[HelpGuide.addOnsHelp.length]=e)},activate:function(e){HelpGuide.allHelpPaths&&HelpGuide.toggleHelpAddOn(e,!0)},deactivate:function(e){HelpGuide.allHelpPaths&&HelpGuide.toggleHelpAddOn(e)}},jQuery(function(){var t;jQuery(".help_wrap").one("click",function(e){jQuery.getScript(RVS.ENV.plugin_url+"admin/assets/js/modules/help.js")}),jQuery(".tooltip_wrap").on("click",function(){var e=jQuery(this).data("scriptready");t&&!e||(t?jQuery(document).trigger("start-tooltips"):jQuery.getScript(RVS.ENV.plugin_url+"admin/assets/js/modules/tooltip.js"),t=!0)}),window.RsTooltips=function(e,t,i){window.RsTooltipList=t,revSliderToolTips&&e&&jQuery(".tooltip_wrap").data("tooltip-definitions",i).trigger("click")}}),RVS.S.keyFrame="idle",RVS.S.frameTrgt="layer",RVS.V.frameLevels={levels:["mask","chars","words","lines","color","sfx"]},RVS.LIB.FONTS=[],RVS.CACHE=RVS.CACHE||{},RVS.S.layerPosWaitingToUpdate={},function(){var r,m,y,a,o,n,s,S=[];function l(e){e=RVS.L[e.uid],e=-1!=e.group.puid?RVS.H[e.group.puid].w:RVS.C.layergrid;return{width:e.width(),height:e.height()}}function d(e){e.l=RVS.L[e.uid],e.v=e.l.size.width[RVS.screen].v,e.pre=RVS.S.slideId+".layers."+e.uid+".",RVS.H[e.uid].c.find("img").first().attr("src",e.src),e.src==RVS.ENV.img_ph_url?RVS.H[e.uid].c.addClass("placeholder_on"):RVS.H[e.uid].c.removeClass("placeholder_on"),e.ignoreBackup=!0,"video"!==e.l.type&&c(e),e.ignore&&RVS.DOC.trigger("restoreLayersSize"),RVS.F.drawHTMLLayer({uid:e.uid})}function c(e){switch(e.l.type){case"image":!0!==e.ignore&&RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:e.v,ignoreBackup:e.ignoreBackup}),t="auto"===(t="width"===e.direction?RVS.F.isNumeric(e.v)||!RVS.F.isNumeric(e.v)&&0<=e.v.indexOf("px")?Math.round(parseInt(e.v,0)/e.l.size.aspectRatio[RVS.screen].v):"auto":!RVS.F.isNumeric(e.v)&&0<=e.v.indexOf("%")?Math.round(l({uid:e.uid}).height*(parseInt(e.v,0)/100)*e.l.size.aspectRatio[RVS.screen].v):"auto"===e.v?e.v:Math.round(parseInt(e.v,0)*e.l.size.aspectRatio[RVS.screen].v))?t:t+"px",RVS.F.updateSliderObj({path:e.pre+"size."+e.dirB+".#size#.v",val:t,ignoreBackup:e.ignoreBackup});break;case"group":case"shape":var t="auto"===e.v?"100px":e.v;!0!==e.ignore&&RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:t,ignoreBackup:e.ignoreBackup}),RVS.F.isNumeric(parseInt(t,0))&&(t="width"===e.direction?Math.round(parseInt(t,0)/e.l.size.aspectRatio[RVS.screen].v):Math.round(parseInt(t,0)*e.l.size.aspectRatio[RVS.screen].v),RVS.F.updateSliderObj({path:e.pre+"size."+e.dirB+".#size#.v",val:t,ignoreBackup:e.ignoreBackup}));break;case"video":!0!==e.ignore&&RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:e.v,ignoreBackup:e.ignoreBackup});var i=(i=e.l.media.ratio.split(":"))[0]/i[1];t="auto"===(t="width"===e.direction?RVS.F.isNumeric(e.v)||!RVS.F.isNumeric(e.v)&&0<=e.v.indexOf("px")?Math.round(parseInt(e.v,0)/i):"auto":!RVS.F.isNumeric(e.v)&&0<=e.v.indexOf("%")?Math.round(l({uid:e.uid}).height*(parseInt(e.v,0)/100)*i):"auto"===e.v?e.v:Math.round(parseInt(e.v,0)*i))?"width"===e.dirB?"100%":t:t+"px",RVS.F.updateSliderObj({path:e.pre+"size."+e.dirB+".#size#.v",val:t,ignoreBackup:e.ignoreBackup});break;case"svg":RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:e.v})}}function p(){jQuery("framewrap.selected").removeClass("selected").removeClass("selected_0");var e=document.getElementById(RVS.S.slideId+"_"+RVS.selLayers[0]+"_"+("frame_0"===RVS.S.keyFrame?"frame_1":RVS.S.keyFrame));null!=e&&void 0!==e&&(e.className+=" selected"+("frame_0"===RVS.S.keyFrame?" selected_0":""))}function u(e){for(var t in e)if(e.hasOwnProperty(t))if(0<=jQuery.inArray(t,["chars","filter","color","bgcolor","words","lines","mask"])&&!1===e[t].use&&delete e[t],"object"==typeof e[t])for(var i in e[t])"inherit"===e[t][i]&&delete e[t][i];else"inherit"===e[t]&&delete e[t];return e}function R(e,t,i){void 0!==e&&(void 0!==e.frame_0&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_0=L(jQuery.extend(!0,_({alias:RVS_LANG.enterstage,opacity:0},"frame_0"),e.frame_0)),RVS.L[RVS.selLayers[0]].timeline.frames.frame_0.timeline.start=RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_0.timeline.start,RVS.L[RVS.selLayers[0]].timeline.frames.frame_0.timeline.alias=RVS_LANG.enterstage,void 0!==i)&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_0.timeline.preset=t,RVS.L[RVS.selLayers[0]].timeline.frames.frame_0.timeline.presetgroup=i),void 0!==e.frame_1&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_1=L(jQuery.extend(!0,_({opacity:1,effect:"none",chars:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},words:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},lines:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},"frame_1"),e.frame_1)),RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.start=RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_1.timeline.start,RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.alias=RVS_LANG.onstage,void 0!==i)&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.preset=t,RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.presetgroup=i),void 0!==e.frame_999&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_999=L(jQuery.extend(!0,_({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:0},"frame_999"),e.frame_999)),RVS.L[RVS.selLayers[0]].timeline.frames.frame_999.timeline.start=RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_999.timeline.start,RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.alias=RVS_LANG.leavestage,void 0!==i)&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.preset=t,RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.presetgroup=i),void 0!==e.loop&&(RVS.L[RVS.selLayers[0]].timeline.loop=jQuery.extend(!0,v(),e.loop),RVS.L[RVS.selLayers[0]].timeline.loop.start=RVS.L[RVS.selLayers[0]].timelinecache.loop.start,void 0!==i)&&(RVS.L[RVS.selLayers[0]].timeline.loop.preset=t,RVS.L[RVS.selLayers[0]].timeline.loop.presetgroup=i),clearTimeout(window.timelineTemporaryUpdate),window.timelineTemporaryUpdate=setTimeout(function(){RVS.F.updateLayerFrames({layerid:RVS.selLayers[0]})},50))}function V(e,t,i){switch(t){case"layerTextColorHover":case"layerTextColor":case"layerTextColorInFrame":case"frameColorAnimation":0<=jQuery.inArray(RVS.L[e].type,["text","button"])&&(void 0!==RVS.H[e].splitText?tpGS.gsap.to([RVS.H[e].c,RVS.H[e].splitText.chars,RVS.H[e].splitText.words,RVS.H[e].splitText.lines],.001,{color:i}):tpGS.gsap.to([RVS.H[e].c],.001,{color:i}));break;case"frameBGColorAnimation":case"frameBGColorAnimationDouble":case"layerBGColor":!(0<=i.indexOf("gradient"))&&void 0!==RVS.L[e].idle.backgroundImage?tpGS.gsap.to("column"===RVS.L[e].type?RVS.H[e].bg:RVS.H[e].c,.001,{backgroundImage:"url("+RVS.L[e].idle.backgroundImage+")",backgroundColor:i}):tpGS.gsap.to("column"===RVS.L[e].type?RVS.H[e].bg:RVS.H[e].c,.001,{background:i});break;case"layerBorderColor":tpGS.gsap.to([RVS.H[e].c],.001,{borderColor:i});break;case"layerSVGColor":"svg"===RVS.L[e].type&&tpGS.gsap.to([RVS.H[e].svgPath,RVS.H[e].svg],.001,{fill:i});break;case"layerStrokeColor":"svg"===RVS.L[e].type&&tpGS.gsap.to([RVS.H[e].svgPath,RVS.H[e].svg],.001,{stroke:i})}}function g(e,t,i,a,r,s){if(void 0!==t?window.lastColorEditjObj=t:void 0!==window.lastColorEditjObj&&(i=window.RSColor.get(window.lastColorEditjObj.val())),void 0!==i){for(var o in void 0!==t&&r&&t.val(a||i).change(),RVS.selLayers)RVS.selLayers.hasOwnProperty(o)&&V(n=RVS.selLayers[o],window.lastColorEditjObj[0].name,i);if(s)for(var n in s.ref){var l;"layer"===s.ref[n].type&&s.ref[n].slide==RVS.S.slideId&&V(s.ref[n].layer,s.ref[n].inpname,i),"layer"===s.ref[n].type&&r&&(RVS.F.updateSliderObj({path:s.ref[n].r,val:i,slide:s.ref[n].slide}),s.ref[n].slide==RVS.S.slideId&&RVS.selLayers[0]==s.ref[n].layer?0<(l=jQuery("input[name="+s.ref[n].inpname+"]")).length&&(l[0].value=i,l.rsColorPicker("refresh")):s.ref[n].slide!=RVS.S.slideId&&RVS.F.slideinWork(s.ref[n].slide))}if(r||"colorcancel"===e.type)for(var n in RVS.selLayers)RVS.selLayers.hasOwnProperty(n)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[n]})}}function h(t,e,i){var a,r=0<=e.indexOf("i"),s=100*parseInt(e.replace(/[^0-9]/,""),0);for(a in RVS.L)RVS.L.hasOwnProperty(a)&&("text"===RVS.L[a].type||"button"===RVS.L[a].type)&&RVS.L[a].idle.fontFamily==t&&(!r&&!RVS.L[a].idle.fontStyle||r&&RVS.L[a].idle.fontStyle)&&RVS.L[a].idle.fontWeight[RVS.screen].v==s&&RVS.F.drawHTMLLayer({uid:RVS.L[a].uid});setTimeout(function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&("text"===RVS.L[e].type||"button"===RVS.L[e].type)&&RVS.L[e].idle.fontFamily==t&&(!r&&!RVS.L[e].idle.fontStyle||r&&RVS.L[e].idle.fontStyle)&&RVS.L[e].idle.fontWeight[RVS.screen].v==s&&RVS.F.updateHTMLLayerPosition({uid:RVS.L[e].uid})},150)}function f(e,t){return null==e?t:e}function v(e){return(e=void 0===e?{}:e).frame_0=void 0===e.frame_0?{}:e.frame_0,e.frame_999=void 0===e.frame_999?{}:e.frame_999,{use:f(e.use,!1),ease:f(e.ease,"none"),speed:f(e.speed,1e3),originX:f(e.originX,"50%"),originY:f(e.originX,"50%"),radiusAngle:f(e.radiusAngle,0),curviness:f(e.curviness,2),curved:f(e.curved,!1),yoyo_move:f(e.yoyo_move,!1),yoyo_rotate:f(e.yoyo_rotate,!1),yoyo_scale:f(e.yoyo_scale,!1),yoyo_filter:f(e.yoyo_filter,!1),repeat:f(e.repeat,"-1"),start:f(e.start,300),autoRotate:f(e.autoRotate,!1),frame_0:{yr:f(e.frame_0.yr,0),zr:f(e.frame_0.zr,0),x:f(e.frame_0.x,0),y:f(e.frame_0.y,0),z:f(e.frame_0.z,0),scaleX:f(e.frame_0.scaleX,1),scaleY:f(e.frame_0.scaleY,1),opacity:f(e.frame_0.opacity,1),rotationX:f(e.frame_0.rotationX,0),rotationY:f(e.frame_0.rotationY,0),rotationZ:f(e.frame_0.rotationZ,0),skewX:f(e.frame_0.skewX,0),skewY:f(e.frame_0.skewY,0),blur:0,brightness:100,grayscale:0},frame_999:{xr:f(e.frame_999.xr,0),yr:f(e.frame_999.yr,0),zr:f(e.frame_999.zr,0),x:f(e.frame_999.x,0),y:f(e.frame_999.y,0),z:f(e.frame_999.z,0),scaleX:f(e.frame_999.scaleX,1),scaleY:f(e.frame_999.scaleY,1),opacity:f(e.frame_999.opacity,1),rotationX:f(e.frame_999.rotationX,0),rotationY:f(e.frame_999.rotationY,0),rotationZ:f(e.frame_999.rotationZ,0),skewX:f(e.frame_999.skewX,0),skewY:f(e.frame_999.skewY,0),blur:0,brightness:100,grayscale:0}}}function _(e,t){NRI="frame_0"===t?0:"frame_1"===t?1:2,(e=void 0===e?{}:e).chars=void 0===e.chars?{}:e.chars,e.words=void 0===e.words?{}:e.words,e.lines=void 0===e.lines?{}:e.lines,e.mask=void 0===e.mask?{}:e.mask,e.color=void 0===e.color?{}:e.color,e.bgcolor=void 0===e.bgcolor?{}:e.bgcolor;var i,t=f(e.grayscale,[0,0,0][NRI]),a=f(e.brightness,[100,100,100][NRI]),r=f(e.blur,[0,0,0][NRI]),s=0!==parseInt(t,0)||100!==parseInt(a,0)||0!==parseInt(r,0),o=f(e.bgrayscale,[0,0,0][NRI]),n=f(e.bbrightness,[100,100,100][NRI]),l=f(e.bblur,[0,0,0][NRI]),d=f(e.binvert,[0,0,0][NRI]),S=f(e.bsepia,[0,0,0][NRI]),c=0!==parseInt(o,0)||100!==parseInt(n,0)||0!==parseInt(l,0)||0!==parseInt(d,0)||0!==parseInt(S,0),p={alias:f(e.alias,RVS_LANG.onstage),filter:{use:s,grayscale:t,brightness:a,blur:r},bfilter:{use:c,grayscale:o,brightness:n,blur:l,sepia:S,invert:d},transform:{x:RVS.F.cToResp({default:f(e.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.y,[0,0,"inherit"][NRI])}),z:f(e.z,[0,0,"inherit"][NRI]),scaleX:f(e.scaleX,[1,1,"inherit"][NRI]),scaleY:f(e.scaleY,[1,1,"inherit"][NRI]),opacity:f(e.opacity,[0,1,"inherit"][NRI]),rotationX:f(e.rotationX,[0,0,"inherit"][NRI]),rotationY:f(e.rotationY,[0,0,"inherit"][NRI]),rotationZ:f(e.rotationZ,[0,0,"inherit"][NRI]),skewX:f(e.skewX,[0,0,"inherit"][NRI]),skewY:f(e.skewY,[0,0,"inherit"][NRI]),originX:f(e.originX,["50%","50%","50%"][NRI]),originY:f(e.originY,["50%","50%","50%"][NRI]),originZ:f(e.originZ,["0","0","0"][NRI]),transformPerspective:f(RVS.SLIDER.settings.general.perspective,["600px","600px","600px"][NRI]),clip:f(e.clip,[100,100,"inherit"][NRI]),clipB:f(e.clipB,[100,100,"inherit"][NRI])},reverseDirection:{x:f(e.rx,!1),y:f(e.ry,!1),rotationX:f(e.rrotationX,!1),rotationY:f(e.rrotationY,!1),rotationZ:f(e.rrotationZ,!1),skewX:f(e.rskewX,!1),skewY:f(e.rskewY,!1),maskX:f(e.rmaskX,!1),maskY:f(e.rmaskY,!1),charsX:f(e.crx,!1),charsY:f(e.cry,!1),charsDirection:f(e.crsd,!1),wordsX:f(e.wrx,!1),wordsY:f(e.wry,!1),wordsDirection:f(e.wrsd,!1),linesX:f(e.lrx,!1),linesY:f(e.lry,!1),linesDirection:f(e.lrsd,!1)},mask:{use:f(e.mask.use,!1),x:RVS.F.cToResp({default:f(e.mask.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.mask.y,[0,0,"inherit"][NRI])})},color:{color:f(e.color.color,"#ffffff"),use:f(e.color.use,!1)},bgcolor:{backgroundColor:f(e.bgcolor.backgroundColor,"transparent"),use:f(e.bgcolor.use,!1)},timeline:{actionTriggered:f(e.actionTriggered,!1),ease:f(e.ease,"power3.inOut"),speed:f(e.speed,300),start:f(e.start,0),startRelative:f(e.startRelative,0),endWithSlide:f(e.endWithSlide,!1)},chars:{ease:f(e.chars.ease,"inherit"),use:f(e.chars.use,!1),direction:f(e.chars.direction,"forward"),delay:f(e.chars.delay,5),x:RVS.F.cToResp({default:f(e.chars.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.chars.y,[0,0,"inherit"][NRI])}),z:f(e.chars.z,[0,0,"inherit"][NRI]),scaleX:f(e.chars.scaleX,[1,1,"inherit"][NRI]),scaleY:f(e.chars.scaleY,[1,1,"inherit"][NRI]),opacity:f(e.chars.opacity,"inherit"),rotationX:f(e.chars.rotationX,[0,0,"inherit"][NRI]),rotationY:f(e.chars.rotationY,[0,0,"inherit"][NRI]),rotationZ:f(e.chars.rotationZ,[0,0,"inherit"][NRI]),skewX:f(e.chars.skewX,[0,0,"inherit"][NRI]),skewY:f(e.chars.skewY,[0,0,"inherit"][NRI]),originX:f(e.chars.originX,["50%","50%","inherit"][NRI]),originY:f(e.chars.originY,["50%","50%","inherit"][NRI]),originZ:f(e.chars.originZ,["0","0","inherit"][NRI]),fuse:f(e.chars.fuse,!1),blur:f(e.chars.blur,[0,0,0][NRI]),grayscale:f(e.chars.grayscale,[0,0,0][NRI]),brightness:f(e.chars.brightness,[100,100,100][NRI])},words:{ease:f(e.words.ease,"inherit"),use:f(e.words.use,!1),direction:f(e.words.direction,"forward"),delay:f(e.words.delay,5),x:RVS.F.cToResp({default:f(e.words.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.words.y,[0,0,"inherit"][NRI])}),z:f(e.words.z,[0,0,"inherit"][NRI]),scaleX:f(e.words.scaleX,[1,1,"inherit"][NRI]),scaleY:f(e.words.scaleY,[1,1,"inherit"][NRI]),opacity:f(e.words.opacity,"inherit"),rotationX:f(e.words.rotationX,[0,0,"inherit"][NRI]),rotationY:f(e.words.rotationY,[0,0,"inherit"][NRI]),rotationZ:f(e.words.rotationZ,[0,0,"inherit"][NRI]),skewX:f(e.words.skewX,[0,0,"inherit"][NRI]),skewY:f(e.words.skewY,[0,0,"inherit"][NRI]),originX:f(e.words.originX,["50%","50%","inherit"][NRI]),originY:f(e.words.originY,["50%","50%","inherit"][NRI]),originZ:f(e.words.originY,["0","0","inherit"][NRI]),fuse:f(e.words.fuse,!1),blur:f(e.words.blur,[0,0,0][NRI]),grayscale:f(e.words.grayscale,[0,0,0][NRI]),brightness:f(e.words.brightness,[100,100,100][NRI])},lines:{ease:f(e.lines.ease,"inherit"),use:f(e.lines.use,!1),direction:f(e.lines.direction,"forward"),delay:f(e.lines.delay,5),x:RVS.F.cToResp({default:f(e.lines.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.lines.y,[0,0,"inherit"][NRI])}),z:f(e.lines.z,[0,0,"inherit"][NRI]),scaleX:f(e.lines.scaleX,[1,1,"inherit"][NRI]),scaleY:f(e.lines.scaleY,[1,1,"inherit"][NRI]),opacity:f(e.lines.opacity,"inherit"),rotationX:f(e.lines.rotationX,[0,0,"inherit"][NRI]),rotationY:f(e.lines.rotationY,[0,0,"inherit"][NRI]),rotationZ:f(e.lines.rotationZ,[0,0,"inherit"][NRI]),skewX:f(e.lines.skewX,[0,0,"inherit"][NRI]),skewY:f(e.lines.skewY,[0,0,"inherit"][NRI]),originX:f(e.lines.originX,["50%","50%","inherit"][NRI]),originY:f(e.lines.originY,["50%","50%","inherit"][NRI]),originZ:f(e.lines.originY,["0","0","inherit"][NRI]),fuse:f(e.lines.fuse,!1),blur:f(e.lines.blur,[0,0,0][NRI]),grayscale:f(e.lines.grayscale,[0,0,0][NRI]),brightness:f(e.lines.brightness,[100,100,100][NRI])},sfx:{effect:f(e.effect,""),color:f(e.sfxcolor,"#ffffff")}};for(i in p.sfx.effect="blockfrombottom"===p.sfx.effect?"blocktotop":"blockfromtop"===p.sfx.effect?"blocktobottom":"blockfromleft"===p.sfx.effect?"blocktoright":"blockfromright"===p.sfx.effect?"blocktoleft":"none",RVS.JHOOKS.defaultFrame)RVS.JHOOKS.defaultFrame.hasOwnProperty(i)&&(p=RVS.JHOOKS.defaultFrame[i](p));return p}function t(e,t){return e&&("object"!=typeof e.x&&(e.x=RVS.F.cToResp({default:f(e.x,t)})),"object"!=typeof e.y)&&(e.y=RVS.F.cToResp({default:f(e.y,t)})),e}function L(e){return e.transform=t(e.transform,0),e.mask=t(e.mask,0),e.chars=t(e.chars,"inherit"),e.words=t(e.words,"inherit"),e.lines=t(e.lines,"inherit"),e}RVS.F.initLayerBuilder=function(){RVS.C.slit=document.getElementById("selected_layers_icon_toolbar"),RVS.ENV.video_ph_url=RVS.ENV.img_ph_url=RVS.ENV.plugin_url+"admin/assets/images/transparent_placeholder.png",RVS.LIB.LAYERANIMS.animSettings=jQuery("#form_layer_animation_innerwrap");var e,t={in:"",out:"",loop:""};for(e in RVS.LIB.LAYERANIMS)if(RVS.LIB.LAYERANIMS.hasOwnProperty(e)&&("in"===e||"out"===e||"loop"===e))for(var i in RVS.LIB.LAYERANIMS[e])if(RVS.LIB.LAYERANIMS[e].hasOwnProperty(i)){var a='<div id="lal_'+e+"_"+i+'" class="latransgroup '+(RVS.LIB.LAYERANIMS[e][i].custom?"custom_lainner_trans_"+i:"")+'"><div class="latransgroup_head"><span class="latransgroup_name">'+RVS.LIB.LAYERANIMS[e][i].group+'</span><div class="animation_drop_arrow"><i class="material-icons">arrow_drop_down</i></div></div><div class="lainner_transitions">';if(RVS.LIB.LAYERANIMS[e][i].custom)for(var r in a+='<div data-lindex="'+e+'" data-gindex="'+i+'" data-tindex="custom" class="layer_trans_liste dark_btn"><span class="cla_custom_name">'+RVS_LANG.savecurrenttemplate+'</span><input type="text" value="custom" class="cla_entername"><div class="custom_layer_animation_toolbar"><i class="cla_answer_yes material-icons">done</i><i class="cla_answer_no material-icons">close</i><i class="add_custom_layeranimation material-icons">add</i></div></div>',RVS.LIB.LAYERANIMS[e][i].amount=1,RVS.LIB.LAYERANIMS[e][i].transitions)RVS.LIB.LAYERANIMS[e][i].transitions.hasOwnProperty(r)&&(RVS.LIB.LAYERANIMS[e][i].transitions[r].customindex=void 0===RVS.LIB.LAYERANIMS[e][i].transitions[r].customindex?RVS.LIB.LAYERANIMS[e][i].amount:RVS.LIB.LAYERANIMS[e][i].transitions[r].customindex,a+='<div data-lindex="'+e+'" data-gindex="'+i+'" data-tindex="'+r+'" class="layer_trans_liste dark_btn"><span class="cla_custom_name">'+RVS.LIB.LAYERANIMS[e][i].transitions[r].name+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input type="text" value="'+RVS.LIB.LAYERANIMS[e][i].transitions[r].name+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i class="cla_answer_yes material-icons">done</i><i class="cla_answer_no material-icons">close</i><i class="edit_custom_layeranimation material-icons">edit</i><i class="save_custom_layeranimation material-icons">save</i><i class="delete_custom_layeranimation material-icons">delete</i></div></div>',RVS.LIB.LAYERANIMS[e][i].amount=parseInt(RVS.LIB.LAYERANIMS[e][i].transitions[r].customindex,0)+1);else for(var r in RVS.LIB.LAYERANIMS[e][i].transitions)RVS.LIB.LAYERANIMS[e][i].transitions.hasOwnProperty(r)&&(a+='<div data-lindex="'+e+'" data-gindex="'+i+'" data-tindex="'+r+'" class="layer_trans_liste dark_btn">'+RVS.LIB.LAYERANIMS[e][i].transitions[r].name+"</div>");t[e]+=a+="</div></div>"}RVS.LIB.LAYERANIMS.translists={0:jQuery('<div id="layer_transliste_0" class="load_anim_value_wrap">'+t.in+"</div>"),999:jQuery('<div id="layer_transliste_999" class="load_anim_value_wrap">'+t.out+"</div>")},jQuery("#layer_transliste_loop").append(t.loop),RVS.DOC.on("coloredit colorcancel",g),jQuery("#builderView").on("dragover dragenter",function(e){e=e.originalEvent.dataTransfer;e.types&&(e.types.indexOf?-1!=e.types.indexOf("Files"):e.types.contains("Files"))&&!RVS.S.dragginginside&&0===jQuery("#filedrop").length&&RVS.F.browserDroppable.init({onlydrop:!0,success:"uploadImagesAndCreateLayer",action:"add_to_media_library"})}),RVS.DOC.on("positionPositionUpdate",function(e,t){void 0!==t&&(RVS.F.updateLayerPositionClass(t.layerid,!0),void 0===RVS.L[RVS.L[t.layerid].group.puid]||"group"!==RVS.L[RVS.L[t.layerid].group.puid].type&&"column"!==RVS.L[RVS.L[t.layerid].group.puid].type||(t={top:RVS.H[t.layerid].w[0].offsetTop,left:RVS.H[t.layerid].w[0].offsetLeft},void 0!==RVS.C.layer_pos_x&&(RVS.C.layer_pos_x.value=t.top),void 0!==RVS.C.layer_pos_y&&(RVS.C.layer_pos_y.value=t.left),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),requestAnimationFrame(function(){RVS.DOC.trigger("sliderSizeChanged")})))}),RVS.DOC.on("layerAlignChanged",function(e,t){}),RVS.DOC.on("windowresized",function(){RVS.F.updateCoveredLayers(),RVS.F.drawSlideBasedPercenatages()}),RVS.DOC.on("windowresized, updatesliderlayout_main",function(){setTimeout(function(){RVS.F.updateCoveredLayers(!0)},250)}),RVS.DOC.on("updatelayerpostermpeg",function(e,t){void 0!==t&&void 0!==t.val&&RVS.F.videoExtract.get(t.val,function(e){RVS.F.setBGPosterImage(e.path,e.id,"layer")},document.getElementById("layer_video_start").value,"layer")}),RVS.DOC.on("uploadImagesAndCreateLayer",function(e,t){if(void 0!==t&&void 0!==t.path&&4<t.path.length)switch(t.path.substr(t.path.length-4).toLowerCase()){case".png":case".bmp":case".jpg":case".gif":case"jpeg":var i=RVS.F.addLayer({type:"image",forceSelect:!0,subtype:"predefined",extension:{size:{originalHeight:t.height,originalWidth:t.width},media:{imageId:t.id,imageUrl:t.path}}});RVS.F.intelligentUpdateValuesOnLayer(i),setTimeout(function(){RVS.DOC.trigger("restoreLayersSize")},500),RVS.F.selectLayers({id:i,overwrite:!0,action:"add"});break;case".mp4":case".mp3":case".mov":case".m4v":case"mpeg":i=RVS.F.addLayer({type:"video",forceSelect:!0,subtype:"predefined",extension:{media:{id:t.id,mp4Url:t.path}}})}}),RVS.DOC.on("click",".convert_layer_into",function(){var e=this.dataset.into;if("none"!==e){for(var t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(RVS.L[RVS.selLayers[t]].type=e,RVS.L[RVS.selLayers[t]]=RVS.F.addLayerObj(jQuery.extend(!0,RVS.F.addLayerObj(e,void 0,!1,!0),RVS.L[RVS.selLayers[t]])),RVS.H[RVS.selLayers[t]].w.remove(),delete RVS.H[RVS.selLayers[t]],RVS.F.buildHTMLLayer({uid:RVS.selLayers[t]}),RVS.F.drawHTMLLayer({uid:RVS.selLayers[t]}),jQuery("#tllayerlist_element_276_"+RVS.selLayers[t]).find(".layerlist_element_type").html('<i class="material-icons">'+RVS.F.getLayerIcon(e)+"</i>"),RVS.F.showInfo({content:RVS_LANG.convertedlayer,type:"success",showdelay:0,hidedelay:2,hideon:"",event:""}));for(var i in window.lastselectedlayers=new Array,RVS.selLayers)lastselectedlayers.push(RVS.selLayers[i]);for(var i in RVS.F.showForms(RVS.eMode.menu,!0),lastselectedlayers)RVS.F.selectLayers({id:lastselectedlayers[i],overwrite:!1,action:"add"});RVS.F.updateLayerInputFields()}}),RVS.DOC.on("updateLayerLoopTimelineframes",function(e,t){void 0!==t&&"updateAllLayerFrames"==t.eventparam&&RVS.F.updateAllLayerFrames(),RVS.F.updateLayerTimelineLoopLists()}),RVS.DOC.on("updateCustomCSSLayerInput",RVS.F.updateCustomCSS),RVS.DOC.on("showhidelayerlooping",function(e,t){jQuery(".la_loopings_tab").hide(),jQuery("#la_loopings_tab_"+t).show()}),RVS.DOC.on("redrawInnerHTML",function(e,t){RVS.F.redrawTextLayerInnerHTML(t.layerid)}),RVS.DOC.on("layerTextContentUpdate",function(e,t){if(void 0!==t&&void 0!==t.val)for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(i=RVS.selLayers[i],"text"!==RVS.L[i].type&&"button"!==RVS.L[i].type||0<=RVS.C.toggledTextButton.className.indexOf("selected")&&(!RVS.L[i].toggle.set||""==RVS.L[i].toggle.text)||(void 0!==RVS.H[i].splitText&&RVS.H[i].splitText.revert(),RVS.H[i].splitText=void 0,"placeholder"!==t.eventparam||0!==t.val.length&&""!==t.val&&" "!==t.val?void 0!==RVS.L[i].placeholder&&""!==RVS.L[i].placeholder&&"placeholder"!==t.eventparam||(RVS.H[i].c[0].innerHTML=0<=jQuery.inArray(RVS.L[i].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])?RVS.F.replaceMetas(t.val):RVS.F.replaceMetas(t.val.replace(/\r\n|\r|\n/g,"<br />"))):RVS.H[i].c[0].innerHTML=0<=jQuery.inArray(RVS.L[i].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])?RVS.F.replaceMetas(RVS.L[i].text):RVS.F.replaceMetas(RVS.L[i].text.replace(/\r\n|\r|\n/g,"<br />")),RVS.F.drawHTMLLayer({uid:i,ignoreLayerAnimation:!0}),void 0!==RVS.H[i].splitText&&RVS.F.updateLayerFrames({layerid:i})))}),RVS.DOC.on("input","#ta_layertext",function(){var e,t,i=this.value;for(e in RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(t=RVS.selLayers[e],"text"!==RVS.L[t].type&&"button"!==RVS.L[t].type||(void 0!==RVS.H[t].splitText&&RVS.H[t].splitText.revert(),RVS.H[t].splitText=void 0,RVS.H[t].c[0].innerHTML=0<=jQuery.inArray(RVS.L[t].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])?RVS.F.replaceMetas(i):RVS.F.replaceMetas(i.replace(/\r\n|\r|\n/g,"<br />"))))}),RVS.DOC.on("addBRtoTextLayer",function(e,t){var i,a,r,s,o,n=jQuery("#ta_layertext")[0].selectionStart;for(i in RVS.F.openBackupGroup({id:"insertlinebreak",txt:"Insert Line Break",icon:"subdirectory_arrow_right"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(a=RVS.selLayers[i],r=RVS.S.slideId+".layers."+a+".text",s=RVS.L[a].text.substring(0,n),o=RVS.L[a].text.substring(n,RVS.L[a].text.length),RVS.F.updateSliderObj({path:r,val:s+"<br />"+o}),RVS.F.redrawTextLayerInnerHTML(a,!0));RVS.F.closeBackupGroup({id:"insertlinebreak"}),RVS.F.updateLayerInputFields()}),RVS.DOC.on("screenSelectorChanged",function(){for(var e in window.lastselectedlayers=new Array,RVS.selLayers)lastselectedlayers.push(RVS.selLayers[e]);RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&void 0!==RVS.S.lastShownSlideId&&(RVS.F.showWaitAMinute({fadeIn:50,text:"Please Wait"}),tpGS.gsap.to("#rev_slider_ul",.05,{opacity:0}),setTimeout(function(){var t=RVS.S.slideId;RVS.F.mainMode({mode:"slidelayout",slide:RVS.S.lastShownSlideId}),RVS.F.updateLayerInputFields(),RVS.F.expandCollapseTimeLine(!0,"open"),RVS.F.sliderUpdateAfterResize(),setTimeout(function(){for(var e in RVS.F.mainMode({mode:"slidelayout",slide:t}),RVS.F.showForms(RVS.eMode.menu,!0),RVS.F.sliderUpdateAfterResize(),lastselectedlayers)RVS.F.selectLayers({id:lastselectedlayers[e],overwrite:!1,action:"add"});RVS.F.showWaitAMinute({fadeOut:200,text:"Please Wait"}),tpGS.gsap.to("#rev_slider_ul",.5,{opacity:1})},250)},100)),RVS.F.updateAllHTMLLayerPositions(),RVS.F.updateLayerInputFields(),RVS.F.expandCollapseTimeLine(!0,"open")}),RVS.DOC.on("sliderSizeChanged",function(){RVS.F.drawHTMLLayers(),RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"})}),RVS.DOC.on("updatelayerbgimage",RVS.F.updateLayerBgImage),RVS.DOC.on("updatelayerimagesrc",RVS.F.updateLayerImageSrc),RVS.DOC.on("resetVideoPlaceholder",RVS.F.resetVideoPlaceholder),RVS.DOC.on("syncVideoRatio",RVS.F.resyncVideoAspectRatio),RVS.DOC.on("lockMargin",function(e,t){RVS.F.lockUnlockMarginPadding(t,"margin",".#size#.v")}),RVS.DOC.on("lockPadding",function(e,t){RVS.F.lockUnlockMarginPadding(t,"padding",".#size#.v")}),RVS.DOC.on("lockBorder",function(e,t){RVS.F.lockUnlockMarginPadding(t,"borderWidth","")}),RVS.DOC.on("lockBorderRadius",function(e,t){RVS.F.lockUnlockMarginPadding(t,"borderRadius",".v")}),RVS.DOC.on("lockBorderHover",function(e,t){RVS.F.lockUnlockMarginPadding(t,"borderWidth","","hover")}),RVS.DOC.on("lockBorderRadiusHover",function(e,t){RVS.F.lockUnlockMarginPadding(t,"borderRadius",".v","hover")}),RVS.DOC.on("updateMarginInput",function(e,t){RVS.F.updateMarginPaddingValues(t,"margin",".#size#.v")}),RVS.DOC.on("updatePaddingInput",function(e,t){RVS.F.updateMarginPaddingValues(t,"padding",".#size#.v")}),RVS.DOC.on("updateBorderInput",function(e,t){RVS.F.updateMarginPaddingValues(t,"borderWidth","")}),RVS.DOC.on("updateBorderRadiusInput",function(e,t){RVS.F.updateMarginPaddingValues(t,"borderRadius",".v")}),RVS.DOC.on("updateBorderInputHover",function(e,t){RVS.F.updateMarginPaddingValues(t,"borderWidth","","hover")}),RVS.DOC.on("updateBorderRadiusInputHover",function(e,t){RVS.F.updateMarginPaddingValues(t,"borderRadius",".v","hover")}),RVS.DOC.on("updateFontFamily",function(e,t){t="fontweight"===t,RVS.F.checkUsedFonts(t)}),RVS.DOC.on("updateInputFields",function(e,t){RVS.F.updateLayerInputFields()}),RVS.DOC.on("layerSizeChange",function(e,t){for(var i in RVS.F.changeLayerSizes({direction:t.eventparam,v:t.val}),RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(i=RVS.selLayers[i],RVS.F.updateHTMLLayerPosition({uid:i,updateValues:!1,lhCwidth:RVS.H[i].c.outerWidth(),lhCheight:RVS.H[i].c.outerHeight()}))}),RVS.DOC.on("audioControlOnOff",function(e,t){RVS.F.changeAudioLayerSize({v:t.val})}),RVS.DOC.on("disableAllMediaControls",function(e,t){RVS.F.changeMediaControlsInteraction({v:t.val})}),RVS.DOC.on("lockLayerRatio",function(e,t){RVS.F.lockUnlockLayerRatio(t)}),RVS.F.updateInsetViews=function(e){},RVS.F.updateAllInsetViews=function(){for(var e in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e))continue},RVS.DOC.on("layerSizePreset",function(e,t){for(var i in RVS.F.openBackupGroup({id:"layerresize",txt:"Size Preset",icon:"photo_size_select_large"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a,r=RVS.L[RVS.selLayers[i]],s=RVS.S.slideId+".layers."+RVS.selLayers[i]+".",o=document.getElementById("layer_covermode");switch("fullinset"!=o.value||"absolute"===r.position.position&&null!=RVS.L[r.group.puid]&&"group"===RVS.L[r.group.puid].type||(o.value=r.size.covermode,t.val=r.size.covermode,RVS.F.showInfo({content:RVS_LANG.insetrequirements,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})),void 0!==RVS.L[r.group.puid]&&"column"===RVS.L[r.group.puid].type&&("shape"===r.type|"button"===r.type||"text"==r.type)&&(t.val="custom",o.value="custom"),"fullinset"==RVS.L[RVS.selLayers[i]].size.covermode&&"fullinset"!==o.value&&RVS.F.updateSliderObj({path:s+"idle.margin.#size#.v",val:[0,0,0,0]}),RVS.F.updateSliderObj({path:s+"size.covermode",val:t.val}),o.value){case"custom":"image"===RVS.L[RVS.selLayers[i]].type&&(RVS.F.updateSliderObj({path:s+"size.scaleProportional",val:!0}),a=RVS.F.getProportionalSizes({proportional:!0,type:"fit",image:{width:r.size.originalWidth,height:r.size.originalHeight},viewPort:{width:r.size.width[RVS.screen].v,height:r.size.height[RVS.screen].v}}),RVS.F.updateSliderObj({path:s+"size.width.#size#.v",val:a.width+"px"}),RVS.F.updateSliderObj({path:s+"size.height.#size#.v",val:a.height+"px"}));break;case"fullwidth":"image"===RVS.L[RVS.selLayers[i]].type&&RVS.F.updateSliderObj({path:s+"size.scaleProportional",val:!0}),RVS.F.updateSliderObj({path:s+"position.x.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:s+"size.width.#size#.v",val:"100%"});break;case"fullheight":"image"===RVS.L[RVS.selLayers[i]].type&&RVS.F.updateSliderObj({path:s+"size.scaleProportional",val:!0}),RVS.F.updateSliderObj({path:s+"position.y.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:s+"size.height.#size#.v",val:"100%"});break;case"cover-proportional":RVS.F.updateSliderObj({path:s+"size.scaleProportional",val:!0}),RVS.F.updateSliderObj({path:s+"position.x.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:s+"size.width.#size#.v",val:"100%"}),RVS.F.updateSliderObj({path:s+"position.y.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:s+"size.height.#size#.v",val:"100%"});break;case"cover":RVS.F.updateSliderObj({path:s+"size.scaleProportional",val:!1}),RVS.F.updateSliderObj({path:s+"position.x.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:s+"size.width.#size#.v",val:"100%"}),RVS.F.updateSliderObj({path:s+"position.y.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:s+"size.height.#size#.v",val:"100%"});break;case"fullinset":RVS.F.updateSliderObj({path:s+"position.x.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:s+"size.width.#size#.v",val:"100%"}),RVS.F.updateSliderObj({path:s+"position.y.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:s+"size.height.#size#.v",val:"100%"})}RVS.F.selectedLayersVisualUpdate(),RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]})}RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()}),RVS.DOC.on("restoreLayersSize",function(e,t){for(var i in RVS.F.openBackupGroup({id:"layerresize",txt:"Restore Original Size",icon:"photo_size_select_large"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.L[RVS.selLayers[i]],r=RVS.S.slideId+".layers."+RVS.selLayers[i]+".";switch(a.type){case"shape":RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:parseInt(a.size.originalWidth)+"px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:parseInt(a.size.originalHeight)+"px"});break;case"image":RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:parseInt(a.size.originalWidth)+"px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:parseInt(a.size.originalHeight)+"px"}),RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!0});break;case"video":RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:RVS.F.retWitSuf(a.size.originalWidth,"px")}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:RVS.F.retWitSuf(a.size.originalHeight,"px")}),RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!0});break;default:RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:"auto"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:"auto"})}RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]})}RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()}),RVS.DOC.on("updateKeyFramesList",function(){if(0!==RVS.selLayers.length){RVS.S.keyFrame="idle"===RVS.S.keyFrame?RVS.L[RVS.selLayers[0]].timeline.frameToIdle:RVS.S.keyFrame,n=void 0===n?jQuery("#le_keyframes_list_innerwrap"):n,o=void 0===o?jQuery("#set_editor_view"):o,RVS.LIB.LAYERANIMS.animSettings[0].className="selected_"+RVS.S.keyFrame,RVS.LIB.LAYERANIMS.translists[0].detach(),RVS.LIB.LAYERANIMS.translists[999].detach();var e,t,i,a,r,s="";for(e in RVS.F.getFrameOrder({layerid:RVS.selLayers[0]}),RVS.L[RVS.selLayers[0]].timeline.frameOrder)RVS.L[RVS.selLayers[0]].timeline.frameOrder.hasOwnProperty(e)&&(t=RVS.L[RVS.selLayers[0]].timeline.frameOrder[e].id,i=parseInt(e,0)+1,r=RVS.S.keyFrame==t?" selected":"",a="frame_999"===t||"frame_0"===t?"":'<div data-evtparam="'+t+'" data-evt="addkeyframe" class="callEventButton basic_action_button add_frame_after"><i class="material-icons">add</i></div>',RVS.S.keyFrame==t&&p(),s+='<li id="keyframe_list_el_'+t+'" class="keyframe_liste keyframe_liste_dyn '+r+'" data-framenr="'+i+'" data-frame="'+t+'"><div class="keyframe_CP_wrap" data-frame="'+t+'"><div class="keyframe_CP_toggle"><i class="material-icons">more_vert</i></div></div><div class="keyframe_liste_inner"><span class="frame_list_id">'+("frame_0"===t?"IN":"frame_999"===t?"OUT":"TO")+("frame_0"===t||"frame_999"===t?'<i class="material-icons">arrow_drop_down</i>':'<i class="emptyspace20"></i>')+'</span><span class="frame_list_title '+((r=t===RVS.L[RVS.selLayers[0]].timeline.frameToIdle?'<i class="material-icons">visibility</i>':"")?"with_icon":"")+'">'+r+RVS.L[RVS.selLayers[0]].timeline.frames[t].alias+"</span>"+a+"</div></li>");RVS.L[RVS.selLayers[0]].timeline.frameToIdle===RVS.S.keyFrame?o.addClass("disabled"):o.removeClass("disabled"),n[0].innerHTML=s,RVS.L[RVS.selLayers[0]].timeline.tloop.use&&RVS.F.updateLayerTimelineLoopLists(),RVS.F.updateFrameOptionsVisual()}}),RVS.DOC.on("reverse-in-animation",function(e,t){0!==RVS.selLayers.length&&RVS.F.updateLayerFrame({layerid:RVS.selLayers[0],frame:"frame_999"})}),RVS.DOC.on("click",".keyframe_liste",function(){RVS.F.setKeyframeSelected(this.dataset.frame)}),RVS.DOC.on("click",".frame_list_eview",function(){var e=RVS.S.slideId+".layers."+RVS.selLayers[0]+".timeline.frameToIdle";RVS.F.updateSliderObj({path:e,val:this.dataset.frame}),RVS.DOC.trigger("updateKeyFramesList")}),RVS.DOC.on("addkeyframe",function(e,t){if(0!==RVS.selLayers.length){var i=RVS.selLayers[0],a=function(e){var t,i=0;for(t in RVS.L[e.layerid].timeline.frames){var a;RVS.L[e.layerid].timeline.frames.hasOwnProperty(t)&&(a=parseInt(t.split("frame_")[1],0),i=i<=a&&a<998?a+1:i)}return"frame_"+i}({layerid:i}),r=RVS.F.getPrevNextFrame({layerid:i,frame:t});if(r.next.start>r.cur.end+500){RVS.F.openBackupGroup({id:"AddLayerFrame",txt:"Add KeyFrame",icon:"theaters"}),RVS.L[i].timeline.frames[a]=_({speed:400,start:r.cur.end+100,alias:RVS_LANG.animateto},a);try{RVS.L[i].timeline.frames[a].transform.originX=RVS.L[i].timeline.frames[t].transform.originX,RVS.L[i].timeline.frames[a].transform.originY=RVS.L[i].timeline.frames[t].transform.originY,RVS.L[i].timeline.frames[a].transform.originZ=RVS.L[i].timeline.frames[t].transform.originZ,RVS.L[i].timeline.frames[a].chars.originX=RVS.L[i].timeline.frames[t].chars.originX,RVS.L[i].timeline.frames[a].chars.originY=RVS.L[i].timeline.frames[t].chars.originY,RVS.L[i].timeline.frames[a].chars.originZ=RVS.L[i].timeline.frames[t].chars.originZ,RVS.L[i].timeline.frames[a].words.originX=RVS.L[i].timeline.frames[t].words.originX,RVS.L[i].timeline.frames[a].words.originY=RVS.L[i].timeline.frames[t].words.originY,RVS.L[i].timeline.frames[a].words.originZ=RVS.L[i].timeline.frames[t].words.originZ,RVS.L[i].timeline.frames[a].lines.originX=RVS.L[i].timeline.frames[t].lines.originX,RVS.L[i].timeline.frames[a].lines.originY=RVS.L[i].timeline.frames[t].lines.originY,RVS.L[i].timeline.frames[a].lines.originZ=RVS.L[i].timeline.frames[t].lines.originZ}catch(e){console.info(e)}RVS.L[i].timeline.frames[a].color=jQuery.extend(!0,{},RVS.L[i].timeline.frames[t].color),RVS.L[i].timeline.frames[a].filter=jQuery.extend(!0,{},RVS.L[i].timeline.frames[t].filter),RVS.F.backup({path:i+".timeline.frames."+a,cache:void 0,icon:"theaters",txt:"Add Layer Keyframe",lastkey:a,layer:i,slide:RVS.S.slideId,frame:a,force:!0,val:RVS.L[i].timeline.frames[a],old:{},backupType:"frame",bckpGrType:"AddLayerFrame"}),RVS.F.closeBackupGroup({id:"AddLayerFrame"}),RVS.F.addLayerFrameOnDemand(RVS.L[i],document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+i),a),RVS.F.getFrameOrder({layerid:i}),RVS.F.updateFramesZIndexes({layerid:i}),RVS.DOC.trigger("updateKeyFramesList"),RVS.S.keyFrame=a,setTimeout(function(){RVS.F.setKeyframeSelected(a)},20)}else RVS.F.showInfo({content:RVS_LANG.notenoughspaceontimeline,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})}}),RVS.DOC.on("click","#remove_keyframe",function(){var e=RVS.selLayers[0];RVS.F.openBackupGroup({id:"RemoveLayerFrame",txt:"Remove KeyFrame",icon:"theaters"}),RVS.F.backup({path:e+".timeline.frames."+RVS.S.keyFrame,cache:void 0,icon:"theaters",txt:"Remove Layer Keyframe",lastkey:RVS.S.keyFrame,layer:e,slide:RVS.S.slideId,frame:RVS.S.keyFrame,force:!0,val:{},old:RVS.L[e].timeline.frames[RVS.S.keyFrame],backupType:"frame",bckpGrType:"RemoveLayerFrame"}),delete RVS.L[e].timeline.frames[RVS.S.keyFrame],jQuery("#"+RVS.S.slideId+"_"+e+"_"+RVS.S.keyFrame).remove(),RVS.S.keyFrame===RVS.L[e].timeline.frameToIdle&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e+".timeline.frameToIdle",val:"frame_1"}),RVS.S.keyFrame="frame_1",RVS.F.getFrameOrder({layerid:e}),RVS.F.updateFramesZIndexes({layerid:e}),RVS.DOC.trigger("updateKeyFramesList"),RVS.F.updateLayerInputFields(),RVS.F.closeBackupGroup({id:"RemoveLayerFrame"})}),RVS.DOC.on("click","#set_editor_view",function(){var e=RVS.selLayers[0];RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e+".timeline.frameToIdle",val:RVS.S.keyFrame}),RVS.F.getFrameOrder({layerid:e}),RVS.F.updateFramesZIndexes({layerid:e}),RVS.DOC.trigger("updateKeyFramesList"),RVS.F.renderLayerAnimation({layerid:RVS.selLayers[0]})}),RVS.DOC.on("click",".transtarget_selector",function(){var e=jQuery(this).closest(".form_inner");e.find(".transtarget_selector").removeClass("selected"),this.className+=" selected",e.find(".group_transsettings").hide(),jQuery(this.dataset.showtrans).show(),RVS.S.frameTrgt=this.dataset.frametarget}),RVS.DOC.on("click",".looptarget_selector",function(){jQuery(".looptarget_selector").removeClass("selected"),this.className+=" selected",jQuery(".group_loopsettings").hide(),jQuery(this.dataset.showloop).show()}),RVS.DOC.on("click",".keyframe_CP_wrap",function(){return window.frameCopyPaste=void 0===window.frameCopyPaste?{cache:void 0,tool:void 0}:window.frameCopyPaste,window.frameCopyPaste.frame="frame_0"===this.dataset.frame?"frame_1":this.dataset.frame,window.frameCopyPaste.layerid=RVS.selLayers[0],void 0===window.frameCopyPaste.tool&&(jQuery(document.body).append('<div id="frame_copypaste_tool"><div class="copyframe">'+RVS_LANG.copy+'</div><div class="pasteframe">'+RVS_LANG.paste+"</div></div>"),window.frameCopyPaste.tool=jQuery("#frame_copypaste_tool")),void 0!==window.frameCopyPaste.cache?window.frameCopyPaste.tool.addClass("copy_and_paste"):window.frameCopyPaste.tool.removeClass("copy_and_paste"),window.frameCopyPaste.visible=!0,tpGS.gsap.set(window.frameCopyPaste.tool,{display:"block",top:jQuery(this).offset().top}),!1}),RVS.DOC.on("click",".copyframe",function(){return"frame_1"===window.frameCopyPaste.frame?window.frameCopyPaste.cache_0=jQuery.extend(!0,{},RVS.L[window.frameCopyPaste.layerid].timeline.frames.frame_0):delete window.frameCopyPaste.cache_0,window.frameCopyPaste.cache=jQuery.extend(!0,{},RVS.L[window.frameCopyPaste.layerid].timeline.frames[window.frameCopyPaste.frame]),window.frameCopyPaste.clipPath=jQuery.extend(!0,{},RVS.L[window.frameCopyPaste.layerid].timeline.clipPath),window.frameCopyPaste.splitlen=RVS.F.getSplitDelay({layerid:window.frameCopyPaste.layerid,frame:window.frameCopyPaste.frame}),window.frameCopyPaste.len=RVS.F.addT([window.frameCopyPaste.cache.timeline.speed,window.frameCopyPaste.splitlen]),tpGS.gsap.set(window.frameCopyPaste.tool,{display:"none"}),window.frameCopyPaste.visible=!1}),RVS.DOC.on("click",".pasteframe",function(){var e,t=RVS.selLayers[0],i=RVS.L[window.frameCopyPaste.layerid].timeline.frames[window.frameCopyPaste.frame],a=RVS.L[window.frameCopyPaste.layerid].timeline.clipPath,r=void 0!==window.frameCopyPaste.cache_0?RVS.L[window.frameCopyPaste.layerid].timeline.frames.frame_0:void 0,t=RVS.F.getPrevNextFrame({layerid:t,frame:window.frameCopyPaste.frame}),s=RVS.F.addT([i.timeline.start,window.frameCopyPaste.len]);t.next.start>s?(RVS.F.openBackupGroup({id:"updateFrame",txt:"Copy Paste KeyFrame",icon:"theaters"}),t=jQuery.extend(!0,window.frameCopyPaste.cache,{alias:i.timeline.alias,timeline:{start:i.timeline.start}}),s=jQuery.extend(!0,{},window.frameCopyPaste.clipPath),e=void 0!==window.frameCopyPaste.cache_0?jQuery.extend(!0,window.frameCopyPaste.cache_0,{alias:r.timeline.alias,timeline:{start:r.timeline.start}}):void 0,"frame_999"!==window.frameCopyPaste.frame&&(t.timeline.endWithSlide=!1,t.timeline.auto=!1),RVS.F.backup({lastkey:window.frameCopyPaste.frame,frame:window.frameCopyPaste.frame,layer:window.frameCopyPaste.layerid,path:window.frameCopyPaste.layerid+".timeline.frames."+window.frameCopyPaste.frame,cache:void 0,icon:"theaters",txt:"Copy Paste KeyFrame",slide:RVS.S.slideId,force:!0,val:t,old:i,backupType:"singleFrame",bckpGrType:"updateFrame"}),RVS.L[window.frameCopyPaste.layerid].timeline.frames[window.frameCopyPaste.frame]=jQuery.extend(!0,{},t),RVS.F.backup({lastkey:window.frameCopyPaste.clipPath,layer:window.frameCopyPaste.layerid,path:window.frameCopyPaste.layerid+".timeline.clipPath",cache:void 0,icon:"theaters",txt:"Copy Paste clipPath",slide:RVS.S.slideId,force:!0,val:s,old:a,backupType:"clipPath",bckpGrType:"updateFrame"}),RVS.L[window.frameCopyPaste.layerid].timeline.clipPath=jQuery.extend(!0,{},s),void 0!==r&&(RVS.F.backup({lastkey:"frame_0",frame:"frame_0",layer:window.frameCopyPaste.layerid,path:window.frameCopyPaste.layerid+".timeline.frames.frame_0",cache:void 0,icon:"theaters",txt:"Copy Paste KeyFrame",slide:RVS.S.slideId,force:!0,val:e,old:r,backupType:"singleFrame",bckpGrType:"updateFrame"}),RVS.L[window.frameCopyPaste.layerid].timeline.frames.frame_0=jQuery.extend(!0,{},e)),RVS.F.closeBackupGroup({id:"updateFrame"}),RVS.F.updateAllLayerFrames(),RVS.F.renderLayerAnimation({layerid:window.frameCopyPaste.layerid}),RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0}),RVS.F.selectLayers({id:window.frameCopyPaste.layerid,overwrite:!0,action:"add"})):RVS.F.showInfo({content:RVS_LANG.notenoughspaceontimeline,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})}),RVS.DOC.on("mouseleave","#frame_copypaste_tool",function(){tpGS.gsap.set(window.frameCopyPaste.tool,{display:"none"}),window.frameCopyPaste.visible=!1}),RVS.DOC.on("checkEnterFrameLevels",function(e,t){var i,a;for(a in void 0===t||void 0===t.layerid||"frame_1"!==RVS.S.keyFrame&&"frame_0"!==RVS.S.keyFrame||(i="frame_0"===RVS.S.keyFrame?"frame_1":"frame_0",RVS.L[t.layerid].timeline.frames[RVS.S.keyFrame].chars.use&&(RVS.L[t.layerid].timeline.frames[i].chars.use=!0),RVS.L[t.layerid].timeline.frames[RVS.S.keyFrame].words.use&&(RVS.L[t.layerid].timeline.frames[i].words.use=!0),RVS.L[t.layerid].timeline.frames[RVS.S.keyFrame].lines.use&&(RVS.L[t.layerid].timeline.frames[i].lines.use=!0),RVS.L[t.layerid].timeline.frames[RVS.S.keyFrame].mask.use&&(RVS.L[t.layerid].timeline.frames[i].mask.use=!0)),RVS.F.updateFrameOptionsVisual(),RVS.selLayers)RVS.selLayers.hasOwnProperty(a)&&(RVS.F.updateLayerFrame({layerid:parseInt(RVS.selLayers[a],0),frame:"frame_0"!==RVS.S.keyFrame?RVS.S.keyFrame:"frame_1"}),RVS.F.updateFrameRealSpeed())}),RVS.DOC.on("click",".layer_transliste_head",function(){var e=0<=this.parentNode.className.indexOf("open");jQuery(".layer_transliste").removeClass("open"),e||(this.parentNode.className+=" open")}),RVS.DOC.on("click",".frame_list_id",function(){jQuery("#keyframe_list_el_frame_0").append(RVS.LIB.LAYERANIMS.translists[0]),jQuery("#keyframe_list_el_frame_999").append(RVS.LIB.LAYERANIMS.translists[999]);var e=0<=this.parentNode.parentNode.className.indexOf("open");return jQuery(".keyframe_liste").removeClass("open"),e||(this.parentNode.parentNode.className+=" open"),!1}),RVS.DOC.on("click",".latransgroup_head",function(){var e=0<=this.parentNode.className.indexOf("open");return jQuery(".latransgroup").removeClass("open"),e||(this.parentNode.className+=" open"),!1}),RVS.DOC.on("mouseover",".load_anim_value_wrap",function(){window.timelineTemporaryCached||(window.timelineTemporaryCached=!0,RVS.L[RVS.selLayers[0]].timelinecache=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timeline))}),RVS.DOC.on("mouseleave",".load_anim_value_wrap",function(){window.timelineTemporaryCached=!1,void 0!==RVS.L[RVS.selLayers[0]].timelinecache&&(RVS.L[RVS.selLayers[0]].timeline=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache)),delete RVS.L[RVS.selLayers[0]].timelinecache,clearTimeout(window.timelineTemporaryUpdate),window.timelineTemporaryUpdate=setTimeout(function(){RVS.F.updateLayerFrames({layerid:RVS.selLayers[0]})},50),RVS.S.shwLayerAnim?RVS.F.playLayerAnimation({layerid:RVS.selLayers[0]}):RVS.F.stopAllLayerAnimation(),RVS.F.buildMainTimeLine(),RVS.TL.cache.main<=0?RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"load_anim_value_left"}):RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0})}),RVS.DOC.on("mouseover",".layer_trans_liste",function(){if("custom"===this.dataset.tindex)return!1;void 0!==RVS.L[RVS.selLayers[0]].timelinecache&&(R(RVS.LIB.LAYERANIMS[this.dataset.lindex][this.dataset.gindex].transitions[this.dataset.tindex]),RVS.F.renderLayerAnimation({layerid:RVS.selLayers[0]}),RVS.F.playLayerAnimation({layerid:RVS.selLayers[0],time:"out"===this.dataset.lindex?"frame_999":void 0}))}),RVS.DOC.on("click",".layer_trans_liste",function(){var e;if(void 0!==RVS.L[RVS.selLayers[0]].timelinecache)return"custom"===this.dataset.tindex?(e=jQuery(this),this.dataset.mode="create",e.addClass("cla_showentername"),e.find("input").trigger("focus").trigger("select"),RVS.S.waitOnFeedback={allowed:["cla_entername","cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener()):RVS.F.changeLayerAnimation({direction:this.dataset.lindex,group:this.dataset.gindex,transition:this.dataset.tindex,fromLayerTransListe:!0}),!1}),RVS.DOC.on("hideCustomLayerNameEntering",function(){jQuery(".cla_showentername").removeClass("cla_showentername")}),RVS.DOC.on("click",".edit_custom_layeranimation",function(){var e=void 0!==this.dataset.evt?jQuery(this).closest(".presets_listelement"):jQuery(this).closest(".layer_trans_liste");return e[0].dataset.mode="rename",e.addClass("cla_showentername"),e.find("input").trigger("focus").trigger("select"),RVS.S.waitOnFeedback={allowed:["cla_entername","cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".delete_custom_layeranimation",function(){var e=void 0!==this.dataset.evt?jQuery(this).closest(".presets_listelement"):jQuery(this).closest(".layer_trans_liste");return e[0].dataset.mode="delete",e.addClass("cla_showmessage"),e.find(".cla_message").text(RVS_LANG.deletetemplate),RVS.S.waitOnFeedback={allowed:["cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".save_custom_layeranimation",function(){var e=void 0!==this.dataset.evt?jQuery(this).closest(".presets_listelement"):jQuery(this).closest(".layer_trans_liste");return e[0].dataset.mode="overwrite",e.addClass("cla_showmessage"),e.find(".cla_message").text(RVS_LANG.overwritetemplate),RVS.S.waitOnFeedback={allowed:["cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".cla_answer_no",function(){return RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),jQuery(".cla_showentername").removeClass("cla_showentername"),jQuery(".cla_showmessage").removeClass("cla_showmessage"),!1}),RVS.DOC.on("click",".cla_answer_yes",function(){if(void 0!==this.dataset.evt){var e=jQuery(this).closest(".presets_listelement"),t=e[0].dataset.mode,i=e.find(".cla_entername").val();"create"===t&&(o=jQuery('<div data-custom="true" data-evt="'+this.dataset.evt+'" class="presets_listelement dark_btn"><span class="cla_custom_name">'+i+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input data-evt="'+this.dataset.evt+'" type="text" value="'+i+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i data-evt="'+this.dataset.evt+'" class="cla_answer_yes material-icons">done</i><i data-evt="'+this.dataset.evt+'" class="cla_answer_no material-icons">close</i><i data-evt="'+this.dataset.evt+'" class="edit_custom_layeranimation material-icons">edit</i><i data-evt="'+this.dataset.evt+'" class="save_custom_layeranimation material-icons">save</i><i data-evt="'+this.dataset.evt+'" class="delete_custom_layeranimation material-icons">delete</i></div></div>'),e.closest(".presets_listelements").append(o)),RVS.DOC.trigger(this.dataset.evt,{mode:t,element:o,pl:e,key:e[0].dataset.key,newname:i})}else{var a=jQuery(this).closest(".layer_trans_liste"),t=a[0].dataset.mode,r=RVS.LIB.LAYERANIMS[a[0].dataset.lindex][a[0].dataset.gindex];switch(t){case"rename":case"overwrite":case"create":var s,o,n={name:i=a.find(".cla_entername").val()};"custom"!==a.data("tindex")&&"create"!==t||(o=jQuery('<div data-lindex="'+a.data("lindex")+'" data-gindex="'+a.data("gindex")+'" class="layer_trans_liste dark_btn"><span class="cla_custom_name">'+i+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input type="text" value="'+i+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i class="cla_answer_yes material-icons">done</i><i class="cla_answer_no material-icons">close</i><i class="edit_custom_layeranimation material-icons">edit</i><i class="save_custom_layeranimation material-icons">save</i><i class="delete_custom_layeranimation material-icons">delete</i></div></div>'),a.closest(".lainner_transitions").append(o)),"overwrite"!==t&&"custom"!==a.data("tindex")&&"create"!==t||("in"===a.data("lindex")?(n.frame_0=u(jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_0)),n.frame_1=u(jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_1))):"out"===a.data("lindex")?n.frame_999=u(jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_999)):"loop"===a.data("lindex")&&((n=u(jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache.loop))).name=i)),"overwrite"!==t&&"rename"!=t||(s=a.data("tindex")),"rename"===t&&(n=r.transitions[s],r.transitions[s].name=i),RVS.F.ajaxRequest("save_animation",{id:s,obj:n,type:a[0].dataset.lindex},function(e){e.success&&(r.transitions[e.id]=n,"custom"!==a.data("tindex")&&"create"!==t||(o[0].dataset.tindex=e.id),"rename"===t)&&a.find(".cla_custom_name").text(i)});break;case"delete":RVS.F.ajaxRequest("delete_animation",{id:a[0].dataset.tindex},function(e){e.success&&(delete r.transitions[a[0].dataset.tindex],a.remove())})}}return RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),jQuery(".cla_showentername").removeClass("cla_showentername"),jQuery(".cla_showmessage").removeClass("cla_showmessage"),!1}),RVS.DOC.on("SvgSelectAllChanged",function(e,t){void 0!==t&&void 0!==t.layerid&&(RVS.H[t.layerid].c[0].innerHTML=RVS.L[t.layerid].svg.renderedData,RVS.H[t.layerid].svg=RVS.H[t.layerid].w.find("svg"),RVS.H[t.layerid].svgPath=RVS.H[t.layerid].w.find(RVS.L[t.layerid].idle.svg.styleAll?"svg path, svg circle, svg ellipse, svg line, svg polygon, svg polyline, svg rect":"svg path"))})},RVS.F.updateCustomCSS=function(){"FAIL"!==window.customLayerCss_editor&&("undefined"==typeof RevMirror?(RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.loadingRevMirror}),RVS.F.loadCSS(RVS.ENV.plugin_url+"/admin/assets/css/RevMirror.css"),jQuery.getScript(RVS.ENV.plugin_url+"/admin/assets/js/plugins/RevMirror.js",function(){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),RVS.F.updateCustomCSS()}).fail(function(e,t,i){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),window.customLayerCss_editor="FAIL"})):void 0===window.customLayerCss_editor?(window.customLayerCss_editor=RevMirror(document.getElementById("custom_css_layer_area"),{value:"",mode:"css",theme:"hopscotch",lineWrapping:!0,lineNumbers:!1}),window.customLayerCss_editor.on("focus",function(){window.customLayerCss_editor.refresh()}),window.customLayerCss_editor.on("change",function(e,t){RVS.L[RVS.selLayers[0]].customCSS=window.customLayerCss_editor.getValue()}),setTimeout(RVS.F.updateCustomCSS,200)):void 0===window.customHoverLayerCss_editor?(window.customHoverLayerCss_editor=RevMirror(document.getElementById("custom_css_hover_layer_area"),{value:"",mode:"css",theme:"hopscotch",lineWrapping:!0,lineNumbers:!1}),window.customHoverLayerCss_editor.on("focus",function(){window.customHoverLayerCss_editor.refresh()}),window.customHoverLayerCss_editor.on("change",function(e,t){RVS.L[RVS.selLayers[0]].customHoverCSS=window.customHoverLayerCss_editor.getValue()}),setTimeout(RVS.F.updateCustomCSS,200)):RVS.F.updateCusCSSContent())},RVS.F.updateCusCSSContent=function(){0<RVS.selLayers.length&&null!=window.customLayerCss_editor&&(window.customLayerCss_editor.setValue(RVS.L[RVS.selLayers[0]].customCSS),setTimeout(function(){window.customLayerCss_editor.refresh()},200)),0<RVS.selLayers.length&&void 0!==window.customHoverLayerCss_editor&&(window.customHoverLayerCss_editor.setValue(RVS.L[RVS.selLayers[0]].customHoverCSS),setTimeout(function(){window.customHoverLayerCss_editor.refresh()},200))},RVS.F.compareGoogleFontName=function(e,t){if(void 0!==e&&""!==e&&0!=e.length){r=void 0===r?{source:[],result:[]}:r;var i=jQuery.inArray(e,r.source),a=0;if(0<=i)return r.result[i];for(i=!1,r.source.push(e);a<RVS.LIB.FONTS.length&&!i;)(e===RVS.LIB.FONTS[a].labelLowerCase||e===RVS.LIB.FONTS[a].label||t&&e.toLowerCase()===RVS.LIB.FONTS[a].labelLowerCase)&&(e=RVS.LIB.FONTS[a].label,i=!0),a++;return r.result.push(e),e}},RVS.F.initFontTypes=function(e){RVS.LIB.FONTS=JSON.parse(e);var t,e=jQuery("#layer_fontfamily"),i="";for(t in RVS.LIB.FONTS)RVS.LIB.FONTS.hasOwnProperty(t)&&("Dont Show Me"!==RVS.LIB.FONTS[t].label&&""!==RVS.LIB.FONTS[t].label&&(i+='<option value="'+RVS.LIB.FONTS[t].label.split('"').join("'")+'">'+RVS.LIB.FONTS[t].label.split('"').join("")+"</option>"),RVS.LIB.FONTS[t].labelLowerCase=RVS.LIB.FONTS[t].label.toLowerCase());e[0].innerHTML=i,e.ddTP("change"),void 0===s&&(s=!0,RVS.DOC.on("mouseenter",".ddTP_C--fontfamily .ddTP_RO",function(){void 0===this.dataset.val&&(this.dataset.val=this.innerHTML);var e=this.dataset.val.replace(/\ /g,"_");a=this.dataset.val,void 0!==S[e]&&RVS.F.showTextLayerWithFont({family:a})}),RVS.DOC.on("mouseleave",".ddTP_C--fontfamily",function(){RVS.F.resetFontFamiliesOnSelectedLayers()}))},RVS.F.checkAvailableFontWeights=function(e){if(0!==RVS.selLayers.length){m=void 0===m?jQuery("#layer_fontweight_idle"):m,void 0===y&&(y=[],m.find("option").each(function(){y.push({option:this,state:!0})}));var t=[];for(n in RVS.selLayers)RVS.selLayers.hasOwnProperty(n)&&(c=RVS.selLayers[n],"text"!==(S=RVS.L[c]).type&&"button"!==S.type||-1==jQuery.inArray(S.idle.fontFamily,t)&&t.push({family:S.idle.fontFamily,weights:[]}));for(o in y)y.hasOwnProperty(o)&&(m.find('option[value="'+y[o].option.value+'"]').prop("disabled",!1),y[o].state=!0);for(p in t)if(t.hasOwnProperty(p)){var i=t[p].family;if(0<i.length)for(var a in RVS.LIB.FONTS)if(RVS.LIB.FONTS.hasOwnProperty(a)){var r,s=RVS.LIB.FONTS[a];if(s.label===i)for(var o in y)y.hasOwnProperty(o)&&(r=y[o].option.value,0<=jQuery.inArray(r,s.variants)||"websafe"===s.type?t[p].weights.push(r):y[o].state&&(m.find('option[value="'+r+'"]').prop("disabled","disabled"),y[o].state=!1))}}var n,l=!1,d=!1;for(n in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(n)){var S,c=RVS.selLayers[n];if("text"===(S=RVS.L[c]).type||"button"===S.type){var p,u,R=-1;for(p in t)t.hasOwnProperty(p)&&t[p].family==S.idle.fontFamily&&""!==t[p].family&&(R=p);if(0<=R)for(var V in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(V)&&(V=RVS.V.sizes[V],-1==jQuery.inArray(S.idle.fontWeight[V].v,t[R].weights))&&(!1===d&&!1===RVS.S.bckpGrp&&(d=!1===RVS.S.bckpGrp?"started":"inProgress",RVS.F.openBackupGroup({id:"fontWeight",txt:"Font Weight",icon:"layers",lastkey:"layer"})),l=!0,u=function(e){var t,i=0<e.a.length?e.a[0]:e.v;for(t in e.a)e.a.hasOwnProperty(t)&&(i=e.a[t]<e.v&&i<e.v?e.a[t]:i);return i}({v:S.idle.fontWeight[V].v,a:t[R].weights}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+c+".idle.fontWeight."+V+".v",val:u}))}}"started"===d&&RVS.F.closeBackupGroup({id:"fontWeight"}),l&&RVS.F.updateEasyInputs({container:jQuery("#form_layerstyle_font"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),e||(m.hasClass("ddTP-hidden-accessible")&&m.ddTP("destroy"),m.ddTP({placeholder:"Select"}))}},RVS.F.showTextLayerWithFont=function(e){for(var t in RVS.selLayers){var i;RVS.selLayers.hasOwnProperty(t)&&(t=RVS.selLayers[t],i=RVS.L[t],t=RVS.H[t].c,"text"!==i.type&&"button"!==i.type||t.css({fontFamily:"'"+e.family+"'"}))}},RVS.F.resetFontFamiliesOnSelectedLayers=function(){for(var e in RVS.selLayers){var t;RVS.selLayers.hasOwnProperty(e)&&(e=RVS.selLayers[e],"text"!==(t=RVS.L[e]).type&&"button"!==t.type||RVS.F.drawHTMLLayer({uid:e}))}},RVS.F.getDashArray=function(e){return e=RVS.F.isNumeric(e)||-1===e.indexOf(",")&&-1===e.indexOf(" ")||1===e.split(",").length||1===e.split(" ").length?e+" "+e:e},RVS.F.drawSlideBasedPercenatages=function(){requestAnimationFrame(function(){if(null==RVS.S.ulDIMCache||RVS.S.ulDIM.width!==RVS.S.ulDIMCache.width||RVS.S.ulDIM.height!==RVS.S.ulDIMCache.height){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&null!=RVS.L[e].behavior&&"slide"===RVS.L[e].behavior.baseAlign&&""+RVS.L[e].group.puid=="-1"&&(0<=(""+RVS.L[e].size.width[RVS.screen].v).indexOf("%")&&tpGS.gsap.set(RVS.H[e].w,{width:(RVS.F.CHOR()?RVS.S.lgw:Math.max(RVS.S.ulDIM.width-RVS.S.vertCarOff,RVS.S.lgw))*(parseInt(RVS.L[e].size.width[RVS.screen].v)/100)}),0<=(""+RVS.L[e].size.height[RVS.screen].v).indexOf("%"))&&tpGS.gsap.set(RVS.H[e].w,{height:Math.max(RVS.S.ulDIM.height,RVS.S.lgh)*(parseInt(RVS.L[e].size.height[RVS.screen].v)/100)});RVS.S.ulDIMCache={width:RVS.S.ulDIM.width,height:RVS.S.ulDIM.height}}})},RVS.F.drawHTMLLayer=function(e){if(RVS.S.drawHTMLLayersCalled){if(void 0===RVS.H[e.uid]){if(!0===e.recheck)return;e.recheck=!0,setTimeout(function(){RVS.F.drawHTMLLayer(e)},500)}var t,i,a,r,s,o,n,l,d,S,c=RVS.H[e.uid],p=RVS.L[e.uid];void 0!==c&&(t=0<=c.c[0].className.indexOf("placeholder_on"),manipulate=void 0!==p.subtype&&void 0!==RVS.F.drawLayerExt&&void 0!==RVS.F.drawLayerExt[p.subtype]&&RVS.F.drawLayerExt[p.subtype](e.uid),c.c[0].className="_lc_content_"+(t?" placeholder_on":"")+(manipulate&&void 0!==manipulate.CN?manipulate.CN:"")+(void 0!==p.idle.style?" "+p.idle.style:"")+(void 0!==p.runtime.internalClass?" "+p.runtime.internalClass:""),t={textAlign:p.idle.textAlign[RVS.screen].v,boxSizing:"border-box",transformStyle:p.timeline.split?"preserve-3d":"flat",fontFamily:void 0!==p.idle.fontFamily?-1===p.idle.fontFamily.indexOf(",")?"'"+p.idle.fontFamily+"'":p.idle.fontFamily:"Roboto",fontSize:parseInt(p.idle.fontSize[RVS.screen].v,0)+"px",lineHeight:parseInt(p.idle.lineHeight[RVS.screen].v,0)+"px",fontWeight:void 0===p.idle.fontWeight[RVS.screen].v?400:p.idle.fontWeight[RVS.screen].v,color:window.RSColor.get(p.idle.color[RVS.screen].v),letterSpacing:parseFloat(p.idle.letterSpacing[RVS.screen].v)+"px",fontStyle:"normal"===p.idle.fontStyle||!1===p.idle.fontStyle?"normal":"italic",textDecoration:"row"===p.type||"column"===p.type||"group"===p.type?"none":p.idle.textDecoration,textTransform:p.idle.textTransform,borderColor:"column"===p.type?"transparent":window.RSColor.get(p.idle.borderColor),borderRadius:p.idle.borderRadius.v[0]+" "+p.idle.borderRadius.v[1]+" "+p.idle.borderRadius.v[2]+" "+p.idle.borderRadius.v[3]+" ",borderWidth:p.idle.borderWidth[0]+" "+p.idle.borderWidth[1]+" "+p.idle.borderWidth[2]+" "+p.idle.borderWidth[3]+" ",borderStyle:p.idle.borderStyle[RVS.screen].v,width:p.size.width[RVS.screen].v,height:p.size.height[RVS.screen].v,whiteSpace:"normal"==p.idle.whiteSpace[RVS.screen].v||"full"==p.idle.whiteSpace[RVS.screen].v?"normal":"nowrap",paddingTop:p.idle.padding[RVS.screen].v[0],paddingRight:p.idle.padding[RVS.screen].v[1],paddingBottom:p.idle.padding[RVS.screen].v[2],paddingLeft:p.idle.padding[RVS.screen].v[3],minWidth:"none"===p.size.minWidth[RVS.screen].v?0:p.size.minWidth[RVS.screen].v,minHeight:"none"===p.size.minHeight[RVS.screen].v?0:p.size.minHeight[RVS.screen].v,maxWidth:p.size.maxWidth[RVS.screen].v,maxHeight:p.size.maxHeight[RVS.screen].v,boxShadow:p.idle.boxShadow.inuse?p.idle.boxShadow.color+" "+p.idle.boxShadow.hoffset[RVS.screen].v+" "+p.idle.boxShadow.voffset[RVS.screen].v+" "+p.idle.boxShadow.blur[RVS.screen].v+" "+p.idle.boxShadow.spread[RVS.screen].v+" ":"none"},i={rotationX:p.hover.rotationX,rotationY:p.hover.rotationY,rotationZ:p.hover.rotationZ,autoAlpha:p.hover.opacity,transformPerspective:RVS.SLIDER.settings.general.perspective,transformOrigin:p.hover.originX+" "+p.hover.originY+" "+p.hover.originZ,skewX:p.hover.skewX,skewY:p.hover.skewY,scaleX:p.hover.scaleX,scaleY:p.hover.scaleY,borderColor:window.RSColor.get(manipulate&&void 0!==manipulate.hoverBorderColor?manipulate.hoverBorderColor:p.hover.borderColor),borderTopLeftRadius:p.hover.borderRadius.v[0],borderTopRightRadius:p.hover.borderRadius.v[1],borderBottomRightRadius:p.hover.borderRadius.v[2],borderBottomLeftRadius:p.hover.borderRadius.v[3],borderTopWidth:p.hover.borderWidth[0],borderRightWidth:p.hover.borderWidth[1],borderBottomWidth:p.hover.borderWidth[2],borderLeftWidth:p.hover.borderWidth[3],borderStyle:p.hover.borderStyle,color:window.RSColor.get(manipulate&&void 0!==manipulate.hoverColor?manipulate.hoverColor:p.hover.color),textDecoration:p.hover.textDecoration},a="row"===p.type?{marginTop:p.idle.margin[RVS.screen].v[0],paddingRight:p.idle.margin[RVS.screen].v[1],marginBottom:p.idle.margin[RVS.screen].v[2],paddingLeft:p.idle.margin[RVS.screen].v[3]}:"column"===p.type?{paddingTop:p.idle.margin[RVS.screen].v[0],paddingRight:p.idle.margin[RVS.screen].v[1],paddingBottom:p.idle.margin[RVS.screen].v[2],paddingLeft:p.idle.margin[RVS.screen].v[3]}:{marginTop:p.idle.margin[RVS.screen].v[0],marginRight:p.idle.margin[RVS.screen].v[1],marginBottom:p.idle.margin[RVS.screen].v[2],marginLeft:p.idle.margin[RVS.screen].v[3]},r=window.RSColor.get(p.idle.backgroundColor),l=window.RSColor.get(manipulate&&void 0!==manipulate.hoverBG?manipulate.hoverBG:p.hover.backgroundColor),s="video"===p.type?p.media.posterUrl:p.idle.backgroundImage,!(n={})===p.visibility[RVS.screen]?a.opacity=.25:a.opacity=1,p.idle.textShadow.inuse?t.textShadow=p.idle.textShadow.hoffset[RVS.screen].v+" "+p.idle.textShadow.voffset[RVS.screen].v+" "+p.idle.textShadow.blur[RVS.screen].v+" "+p.idle.textShadow.color:t["text-shadow"]="none",p.idle.textStroke.inuse?t["-webkit-text-stroke"]=parseInt(p.idle.textStroke.width[RVS.screen].v,0)+"px "+p.idle.textStroke.color:t["-webkit-text-stroke"]="0 transparent","column"==p.type&&(n.borderColor=window.RSColor.get(p.idle.borderColor),n.borderWidth=p.idle.borderWidth[0]+" "+p.idle.borderWidth[1]+" "+p.idle.borderWidth[2]+" "+p.idle.borderWidth[3]+" ",n.borderStyle=p.idle.borderStyle[RVS.screen].v),void 0!==s&&4<s.length&&-1==r.indexOf("gradient")?"column"===p.type||"row"===p.type?(n.backgroundImage='url("'+s+'")',n.backgroundPosition=p.idle.backgroundPosition,n["background-size"]="percentage"===p.idle.backgroundSize?p.idle.backgroundSizePerc+"%":"pixel"===p.idle.backgroundSize?p.idle.backgroundSizePix+"px":p.idle.backgroundSize,n.backgroundRepeat=p.idle.backgroundRepeat):(t.backgroundImage='url("'+s+'")',t.backgroundPosition=p.idle.backgroundPosition,t["background-size"]="percentage"===p.idle.backgroundSize?p.idle.backgroundSizePerc+"%":"pixel"===p.idle.backgroundSize?p.idle.backgroundSizePix+"px":p.idle.backgroundSize,t.backgroundRepeat=p.idle.backgroundRepeat,"transparent"!==r&&(t.backgroundColor=r),"transparent"!==l&&(i.backgroundColor=l)):("column"===p.type||"row"===p.type?(n.backgroundImage="",n.transformStyle="preserve-3d"):t.background=r,-1==l.indexOf("gradient")?i.backgroundColor=l:i.background=l),"column"===p.type||"row"===p.type?(n.left="column"===p.type?0:p.idle.margin[RVS.screen].v[3],n.right="column"===p.type?0:p.idle.margin[RVS.screen].v[1],n.top=0,n.bottom=0,n.borderRadius=p.idle.borderRadius.v[0]+" "+p.idle.borderRadius.v[1]+" "+p.idle.borderRadius.v[2]+" "+p.idle.borderRadius.v[3]+" ",tpGS.gsap.set(c.bg,n),"column"===p.type&&tpGS.gsap.set(c.bgmask,{top:p.idle.margin[RVS.screen].v[0],bottom:p.idle.margin[RVS.screen].v[2],left:p.idle.margin[RVS.screen].v[3],right:p.idle.margin[RVS.screen].v[1]}),s=[parseInt(p.idle.borderWidth[0]),parseInt(p.idle.borderWidth[1]),parseInt(p.idle.borderWidth[2]),parseInt(p.idle.borderWidth[3])],tpGS.gsap.set(c.margins.top,{height:p.idle.margin[RVS.screen].v[0],top:"row"===p.type?0-p.idle.margin[RVS.screen].v[0]:"0",paddingRight:p.idle.margin[RVS.screen].v[1],paddingLeft:p.idle.margin[RVS.screen].v[3]}),tpGS.gsap.set(c.margins.bottom,{height:p.idle.margin[RVS.screen].v[2],bottom:"row"===p.type?0-p.idle.margin[RVS.screen].v[2]:"0",paddingRight:p.idle.margin[RVS.screen].v[1],paddingLeft:p.idle.margin[RVS.screen].v[3]}),tpGS.gsap.set(c.margins.left,{width:p.idle.margin[RVS.screen].v[3],lineHeight:p.idle.margin[RVS.screen].v[0]}),tpGS.gsap.set(c.margins.right,{width:p.idle.margin[RVS.screen].v[1]}),tpGS.gsap.set(c.paddings.top,{height:p.idle.padding[RVS.screen].v[0]+s[0],top:"row"===p.type?0:p.idle.margin[RVS.screen].v[0],paddingRight:p.idle.padding[RVS.screen].v[1]+p.idle.margin[RVS.screen].v[1]+s[1],paddingLeft:p.idle.padding[RVS.screen].v[3]+p.idle.margin[RVS.screen].v[3]+s[3]}),tpGS.gsap.set(c.paddings.bottom,{height:p.idle.padding[RVS.screen].v[2]+s[2],bottom:"row"===p.type?0:p.idle.margin[RVS.screen].v[2],paddingRight:p.idle.padding[RVS.screen].v[1]+p.idle.margin[RVS.screen].v[1]+s[1],paddingLeft:p.idle.padding[RVS.screen].v[3]+p.idle.margin[RVS.screen].v[3]+s[3]}),tpGS.gsap.set(c.paddings.left,{left:p.idle.margin[RVS.screen].v[3],width:p.idle.padding[RVS.screen].v[3]+s[3],paddingTop:"row"===p.type?0:p.idle.margin[RVS.screen].v[0],paddingBottom:"row"===p.type?0:p.idle.margin[RVS.screen].v[2]}),tpGS.gsap.set(c.paddings.right,{right:p.idle.margin[RVS.screen].v[1],width:p.idle.padding[RVS.screen].v[1]+s[1],paddingTop:"row"===p.type?0:p.idle.margin[RVS.screen].v[0],paddingBottom:"row"===p.type?0:p.idle.margin[RVS.screen].v[2]}),"column"===p.type?(tpGS.gsap.set(c.borders.top,{top:p.idle.margin[RVS.screen].v[0],left:p.idle.margin[RVS.screen].v[3],right:p.idle.margin[RVS.screen].v[1],width:"auto"}),tpGS.gsap.set(c.borders.right,{right:p.idle.margin[RVS.screen].v[1],top:p.idle.margin[RVS.screen].v[0],bottom:p.idle.margin[RVS.screen].v[2],height:"auto"}),tpGS.gsap.set(c.borders.bottom,{bottom:p.idle.margin[RVS.screen].v[2],left:p.idle.margin[RVS.screen].v[3],right:p.idle.margin[RVS.screen].v[1],width:"auto"}),tpGS.gsap.set(c.borders.left,{left:p.idle.margin[RVS.screen].v[3],top:p.idle.margin[RVS.screen].v[0],bottom:p.idle.margin[RVS.screen].v[2],height:"auto"})):(tpGS.gsap.set([c.borders.bottom,c.borders.top],{left:p.idle.margin[RVS.screen].v[3],right:p.idle.margin[RVS.screen].v[1],width:"auto"}),tpGS.gsap.set(c.borders.right,{right:p.idle.margin[RVS.screen].v[1]}),tpGS.gsap.set(c.borders.left,{left:p.idle.margin[RVS.screen].v[3]}))):"video"===p.type?(c.vtitle.textContent=p.media.mediaType,c.volay.style.backgroundImage=RVS._R.createOverlay("slide",p.media.dotted,p.media.dottedSize,{0:p.media.dottedColorA,1:p.media.dottedColorB})):"audio"===p.type?!1===p.media.controls?(c.c[0].classList.add("placeholder_on"),c.c[0].classList.remove("audio_controls_on")):(c.c[0].classList.add("audio_controls_on"),c.c[0].classList.remove("placeholder_on")):"shape"===p.type&&c.c[0].classList[p.idle.bgFromStream?"add":"remove"]("placeholder_on"),a.verticalAlign="inherit","column"!==p.type&&"group"!==p.type||(a.verticalAlign=p.idle.verticalAlign,t.verticalAlign=p.idle.verticalAlign),(l=-1!=p.group.puid&&("column"===RVS.L[p.group.puid].type||"group"===RVS.L[p.group.puid].type))?(a.display=t.display=p.idle.display,a.float=p.idle.float[RVS.screen].v,a.clear=p.idle.clear[RVS.screen].v):"row"!==p.type&&"column"!==p.type&&(t.display="block",a.clear="none"),void 0!==p.hover.filter.blur&&(o="blur("+parseInt(p.hover.filter.blur,0)+"px)",i["-webkit-filter"]=void 0===i["-webkit-filter"]?o:i["-webkit-filter"]+" "+o,i.filter=void 0===i.filter?o:i.filter+" "+o),void 0!==p.hover.filter.grayscale&&(o="grayscale("+parseInt(p.hover.filter.grayscale,0)+"%)",i["-webkit-filter"]=void 0===i["-webkit-filter"]?o:i["-webkit-filter"]+" "+o,i.filter=void 0===i.filter?o:i.filter+" "+o),void 0!==p.hover.filter.brightness&&(o="brightness("+parseInt(p.hover.filter.brightness,0)+"%)",i["-webkit-filter"]=void 0===i["-webkit-filter"]?o:i["-webkit-filter"]+" "+o,i.filter=void 0===i.filter?o:i.filter+" "+o),"blur(0px) grayscale(0%) brightness(100%)"===i.filter&&(i.filter="",i["-webkit-filter"]=""),p.timeline.hoverFilterUsed=void 0!==i.filter&&""!==i.filter,c.w_width=t.width="auto"==p.size.width[RVS.screen].v?"auto":RVS.F.smartConvertDivs(p.size.width[RVS.screen].v),c.w_height=t.height="auto"==p.size.height[RVS.screen].v?"auto":RVS.F.smartConvertDivs(p.size.height[RVS.screen].v),"image"===p.type&&(t.overflow="hidden"),n=RVS.F.convertFraction(p.group.columnSize),"fullinset"==p.size.covermode&&l&&"absolute"==p.position.position&&"100%"==p.size.width[RVS.screen].v?(a.marginLeft="0px",a.marginRight="0px",a.width="auto"):a.width="column"==p.type?100*n+"%":"slide"===p.behavior.baseAlign&&""+p.group.puid=="-1"&&0<=(""+c.w_width).indexOf("%")?(RVS.F.CHOR()?RVS.S.lgw:Math.max(RVS.S.ulDIM.width-RVS.S.vertCarOff,RVS.S.lgw))*(parseInt(c.w_width)/100):c.w_width,"fullinset"==p.size.covermode&&l&&"absolute"==p.position.position&&"100%"==p.size.height[RVS.screen].v?(a.marginTop="0px",a.marginBottom="0px",a.height="auto"):a.height="column"==p.type||"row"==p.type?"auto":"slide"===p.behavior.baseAlign&&""+p.group.puid=="-1"&&0<=(""+c.w_height).indexOf("%")?Math.max(RVS.S.ulDIM.height,RVS.S.lgh)*(parseInt(c.w_height)/100):c.w_height,a.maxWidth="column"==p.type?"0px":void 0===a.maxWidth?"none":a.maxWidth,t.width="column"==p.type||"row"==p.type?"100%":t.width,t.height="column"==p.type||"row"==p.type?"auto":t.height,s="slide"===p.behavior.baseAlign?RVS.F.updateCoveredLayer(p.uid):void 0,"column"===p.type?(t.whiteSpace="normal","notebook"===(d=RVS.L[p.group.puid].group.columnbreakat)&&("n"===RVS.screen||"t"===RVS.screen||"m"===RVS.screen)||"tablet"===d&&("t"===RVS.screen||"m"===RVS.screen)||"mobile"===d&&"m"===RVS.screen?(a.display="block",a.width=t.width="100%",a.maxWidth="none"):a.display="table-cell"):"row"===p.type?(a.width="100%","notebook"===(d=p.group.columnbreakat)&&("n"===RVS.screen||"t"===RVS.screen||"m"===RVS.screen)||"tablet"===d&&("t"===RVS.screen||"m"===RVS.screen)||"mobile"===d&&"m"===RVS.screen?t.display="block":t.display="table"):"image"===p.type&&"custom"!==p.size.covermode?(o=RVS.F.getProportionalSizes({proportional:p.size.scaleProportional,type:p.size.covermode,image:{width:p.size.originalWidth,height:p.size.originalHeight},viewPort:{width:void 0!==s&&!1!==s&&void 0!==s.width?RVS.S.ulDIM.width:RVS.F.GW(RVS.screen),height:void 0!==s&&!1!==s&&void 0!==s.height?RVS.S.ulDIM.height:RVS.SLIDER.settings.size.height[RVS.screen]}}),a.width=t.width=o.width,a.height=t.height=o.height):"video"===p.type&&"auto"===p.size.height[RVS.screen].v?(n=(n=p.media.ratio.split(":"))[1]/n[0],a.height=t.height=c.w.width()*n):"shape"===p.type?a.lineHeight=RVS.F.isVaOrPx(t.height)?parseInt(t.height,0)+"px":"auto":"svg"===p.type&&c.svg&&(tpGS.gsap.set(c.svg,!0!==p.idle.svg.originalColor?{width:"100%",height:"100%",fill:window.RSColor.get(p.idle.svg.color[RVS.screen].v),stroke:window.RSColor.get(p.idle.svg.strokeColor),"stroke-width":p.idle.svg.strokeWidth,"stroke-dasharray":RVS.F.getDashArray(p.idle.svg.strokeDashArray),"stroke-dashoffset":void 0===p.idle.svg.strokeDashOffset?0:p.idle.svg.strokeDashOffset}:{width:"100%",height:"100%",clearProps:"fill,stroke,stroke-width,stroke-dasharray,stroke-dashoffset"}),!0!==p.idle.svg.originalColor?tpGS.gsap.set(c.svgPath,{fill:window.RSColor.get(p.idle.svg.color[RVS.screen].v)}):tpGS.gsap.set(c.svgPath,{clearProps:"fill"})),"slide"===p.behavior.baseAlign&&(c.w_width=a.width=(!1!==s&&void 0!==s.width?s:a).width,c.w_height=a.height=(!1!==s&&void 0!==s.height?s:a).height),!RVS.F.isNumeric(t.width)&&0<=t.width.indexOf("%")&&(t.width="100%"),!RVS.F.isNumeric(t.height)&&0<=t.height.indexOf("%")&&(t.height="100%"),"group"===p.type&&("100%"===t.height?tpGS.gsap.set([c.m,c.iw,c.lp],{height:"100%"}):(tpGS.gsap.set(c.iw,{height:"auto"}),tpGS.gsap.set([c.m,c.lp],{height:"100%"}))),a.onComplete=function(){RVS.DOC.trigger("layerDrawn",{layerid:e.uid})},"true"!=p.hover.usehover&&1!=p.hover.usehover&&"desktop"!=p.hover.usehover||(l=void 0!==t.background&&"string"==typeof t.background&&-1!==t.background.search("gradient"),d=void 0!==i.background&&"string"==typeof i.background&&-1!==i.background.search("gradient"),l&&d?(180!==RVS.F.gradDegree(t.background)&&180==RVS.F.gradDegree(i.background)&&(i.background=RVS.F.addGradDegree(i.background,180)),S=tpGS.getSSGColors(t.background,i.background,p.hover.gradientStyle),t.background=S.from,i.background=S.to):void 0!==t.background&&!l&&d?(S=tpGS.getSSGColors(t.background,i.background,p.hover.gradientStyle),t.background=S.from,i.background=S.to):l&&!d&&void 0!==i.backgroundColor&&(S=tpGS.getSSGColors(t.background,i.backgroundColor,p.hover.gradientStyle),t.background=S.from,i.background=S.to)),"column"===p.type&&(delete t.backgroundColor,delete t.background),a.immediateRender=t.immediateRender=!0,tpGS.gsap.set(c.c,t),tpGS.gsap.set(c.w,a),RVS.F.updateSharpCorners({uid:e.uid,bgcolor:r}),c.htr=i,c.bg_htr={},requestAnimationFrame(function(){RVS.F.renderLayerAnimation({layerid:e.uid,quickRendering:e.ignoreLayerAnimation,timeline:"full",caller:"drawHTMLLayer"}),RVS.F.checkCurrentLayerHoverMode({layerid:e.uid}),(void 0===c.drawnonce&&"button"===p.type||"text"===p.type)&&(c.drawnonce=!0,RVS.F.updateHTMLLayerPosition({uid:e.uid,wtr:a}))}),RVS.S.shwLayerAnim&&0<=jQuery.inArray(e.uid,RVS.selLayers)&&RVS.F.playLayerAnimation({layerid:e.uid}),RVS.F.updateMinSliderHeights()?RVS.S.drawingHTMLLayers?RVS.S.updateMinSliderHeight_force=!0:RVS.DOC.trigger("updatesliderlayout","layer.js-586"):(e.wtr=a,"relative"==p.position.position&&void 0!==RVS.L[p.group.puid]&&"group"===RVS.L[p.group.puid].type&&(RVS.S.layerPosWaitingToUpdate[p.group.puid]=!0),RVS.F.updateHTMLLayerPosition(e),requestAnimationFrame(function(){RVS.F.updateWaitingHTMLLayerPosition(),requestAnimationFrame(function(){RVS.F.updateHTMLLayerPosition(e)})})))}},RVS.F.updateWaitingHTMLLayerPosition=function(){for(var e in RVS.S.layerPosWaitingToUpdate)RVS.S.layerPosWaitingToUpdate.hasOwnProperty(e)&&(RVS.F.updateHTMLLayerPosition({uid:e}),delete RVS.S.layerPosWaitingToUpdate[e])},RVS.F.addGradDegree=function(e,t){var i=(e=e.split("("))[0];return e.shift(),i+"("+t+"deg, "+e.join("(")},RVS.F.gradDegree=function(e){if(-1!==e.search("deg,")){e=e.split("deg,")[0];if(-1!==e.search(/\(/))return parseInt(e.split("(")[1],10)}return 180},RVS.F.smartConvertDivs=function(e){return"string"==typeof e&&"#"===e[0]?e[1]/e[3]*100+"%":e},RVS.F.updateSharpCorners=function(e){var t,i;"text"!==RVS.L[e.uid].type&&"button"!==RVS.L[e.uid].type&&"shape"!==RVS.L[e.uid].type||(t=RVS.H[e.uid],i=RVS.L[e.uid],e.resize||(t.leftcorner&&t.leftcorner.remove(),t.rightcorner&&t.rightcorner.remove()),"none"!==i.idle.cornerLeft&&(e.resize&&void 0!==t.leftcorner||(t.leftcorner=jQuery("<"+i.idle.cornerLeft+"></"+i.idle.cornerLeft+">"),t.c.append(t.leftcorner)),t.leftcorner.css("borderWidth",t.c.outerHeight()+"px"),t.leftcorner.css("borderRight","0px solid transparent"),e.bgcolor)&&t.leftcorner.css("border"+("rs-fcrt"===i.idle.cornerLeft?"Bottom":"Top")+"Color",e.bgcolor),"none"!==i.idle.cornerRight&&(e.resize&&void 0!==t.rightcorner||(t.rightcorner=jQuery("<"+i.idle.cornerRight+"></"+i.idle.cornerRight+">"),t.c.append(t.rightcorner)),t.rightcorner.css("borderWidth",t.c.outerHeight()+"px"),t.rightcorner.css("borderLeft","0px solid transparent"),e.bgcolor)&&t.rightcorner.css("border"+("rs-bcrt"===i.idle.cornerRight?"Top":"Bottom")+"Color",e.bgcolor))},RVS.F.reOrderHTMLLayers=function(e){for(var t in RVS.C.layergrid.detach(),RVS.S.redrawHTMLLayersList=[],RVS.L)!RVS.L.hasOwnProperty(t)||-1!==RVS.L[t].group.puid&&"row"!==RVS.L[t].type||"zone"===RVS.L[t].type||RVS.F.reOrderHTMLLayer({uid:t});for(t in RVS.L)RVS.L.hasOwnProperty(t)&&("column"==RVS.L[t].type||"group"==RVS.L[t].type&&-1!=RVS.L[t].group.puid)&&RVS.F.reOrderHTMLLayer({uid:RVS.L[t].uid});for(t in RVS.L)!RVS.L.hasOwnProperty(t)||"column"===RVS.L[t].type||-1===RVS.L[t].group.puid||"group"===RVS.L[t].type&&-1!=RVS.L[t].group.puid||RVS.F.reOrderHTMLLayer({uid:RVS.L[t].uid});for(t in RVS.C.layergrid.appendTo(RVS.C.slide),RVS.S.redrawHTMLLayersList)RVS.S.redrawHTMLLayersList.hasOwnProperty(t)&&RVS.F.drawHTMLLayer({uid:RVS.S.redrawHTMLLayersList[t]});RVS.F.checkRowsChildren()},RVS.F.drawHTMLLayers=function(){!0!==RVS.S.drawingHTMLLayers&&(RVS.S.drawingHTMLLayers=!0,requestAnimationFrame(function(){for(var e in void 0===RVS.S.ReadyToShowAll&&(RVS.S.ReadyToShowAll="wait"),RVS.S.drawHTMLLayersCalled=!0,RVS.L)!RVS.L.hasOwnProperty(e)||-1!==RVS.L[e].group.puid&&"row"!==RVS.L[e].type||"zone"===RVS.L[e].type||RVS.F.drawHTMLLayer({uid:e});for(e in RVS.L)RVS.L.hasOwnProperty(e)&&("column"==RVS.L[e].type||"group"==RVS.L[e].type&&-1!=RVS.L[e].group.puid)&&RVS.F.drawHTMLLayer({uid:RVS.L[e].uid});for(e in RVS.L)!RVS.L.hasOwnProperty(e)||"column"===RVS.L[e].type||"group"===RVS.L[e].type&&-1!=RVS.L[e].group.puid||-1===RVS.L[e].group.puid||RVS.F.drawHTMLLayer({uid:RVS.L[e].uid});RVS.F.checkRowsChildren(),RVS.S.drawingHTMLLayers=!1,!RVS.S.updateMinSliderHeight_force&&"wait"!=RVS.S.ReadyToShowAll||RVS.F.updatesliderlayout(void 0),RVS.S.updateMinSliderHeight_force=!1}))},RVS.F.buildHTMLLayers=function(e){for(var t in e=void 0===e?{}:e,RVS.L)!RVS.L.hasOwnProperty(t)||-1!==RVS.L[t].group.puid&&"row"!==RVS.L[t].type||"zone"===RVS.L[t].type||RVS.F.buildHTMLLayer({uid:t,ignoreDrawLayers:e.ignoreDrawLayers});for(t in RVS.L)RVS.L.hasOwnProperty(t)&&("column"==RVS.L[t].type||"group"==RVS.L[t].type&&-1==RVS.L[t].group.puid)&&RVS.F.buildHTMLLayer({uid:RVS.L[t].uid,ignoreDrawLayers:e.ignoreDrawLayers});for(t in RVS.L)RVS.L.hasOwnProperty(t)&&"group"==RVS.L[t].type&&-1!==RVS.L[t].group.puid&&RVS.F.buildHTMLLayer({uid:RVS.L[t].uid,ignoreDrawLayers:e.ignoreDrawLayers});for(t in RVS.L)!RVS.L.hasOwnProperty(t)||"column"===RVS.L[t].type||"group"===RVS.L[t].type&&-1!=RVS.L[t].group.puid||-1===RVS.L[t].group.puid||RVS.F.buildHTMLLayer({uid:RVS.L[t].uid,ignoreDrawLayers:e.ignoreDrawLayers});RVS.F.checkRowsChildren(),RVS.F.checkLockedLayers(),RVS.F.checkShowHideLayers(),"change"===window.firstLockTest&&(RVS.F.showInfo({content:RVS_LANG.somelayerslocked,type:"goodtoknow",showdelay:2,hidedelay:3,hideon:"",event:""}),window.firstLockTest=!0)},RVS.F.updateLayerInputFields=function(e){if(0===RVS.selLayers.length)return RVS.S.layerInputFieldsInitialised?void 0:(RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.updatingfields}),void setTimeout(function(){RVS.S.layerInputFieldsInitialised=!0,RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.showWaitAMinute({fadeOut:2,text:RVS_LANG.updatingfields})},5));RVS.S.layerInputFieldsInitialised=!0,RVS.S.keyFrame="idle"===RVS.S.keyFrame?RVS.L[RVS.selLayers[0]].timeline.frameToIdle:RVS.S.keyFrame,void 0!==e&&!0===e.short?(RVS.F.updateEasyInputs({container:jQuery(".layertoolbar_wrap.layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateEasyInputs({container:jQuery(RVS.eMode.menu),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),window.requestAnimationFrame(function(){RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),delete RVS.S.updateEsyInputsTimer})):RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateCusCSSContent(),RVS.F.stopAllLayerAnimation(),RVS.F.checkAvailableFontWeights(),RVS.F.updateLayerBgImage(!1),RVS.F.updateLayerImageSrcThumb(),RVS.F.updateRowColumnField(),RVS.F.updateFrameRealSpeed(),RVS.DOC.trigger("updateKeyFramesList"),RVS.S.shwLayerAnim&&RVS.F.playLayerAnimation({layerid:RVS.selLayers[0]})},RVS.F.updateLayerBgImage=function(e){var t;0!==RVS.selLayers.length&&(""===(t=void 0===(t=RVS.L[RVS.selLayers[0]].idle.backgroundImage)||1<RVS.selLayers.length?"":t)&&!0!==RVS.L[RVS.selLayers[0]].idle.bgFromStream?jQuery("#layer_bg_adv_settings").hide():jQuery("#layer_bg_adv_settings").show(),tpGS.gsap.set("#layer_bg_image",{backgroundImage:'url("'+t+'")',"background-size":"percentage"===RVS.L[RVS.selLayers[0]].idle.backgroundSize?RVS.L[RVS.selLayers[0]].idle.backgroundSizePerc+"%":"pixel"===RVS.L[RVS.selLayers[0]].idle.backgroundSize?RVS.L[RVS.selLayers[0]].idle.backgroundSizePix+"px":RVS.L[RVS.selLayers[0]].idle.backgroundSize,backgroundPosition:RVS.L[RVS.selLayers[0]].idle.backgroundPosition}),RVS.F.drawHTMLLayer({uid:RVS.selLayers[0]}),!1!==e)&&setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery("#form_layerstyle_bg"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})},100)},RVS.F.updateLayerImageSrcThumb=function(){0!==RVS.selLayers.length&&(1<RVS.selLayers.length?tpGS.gsap.set("#layer_image_src",{backgroundImage:"none"}):"image"===RVS.L[RVS.selLayers[0]].type&&(0<=RVS.L[RVS.selLayers[0]].media.imageUrl.indexOf("png")&&RVS.L[RVS.selLayers[0]].media.imageUrl!==RVS.ENV.img_ph_url?document.getElementById("minilayerprevimage_wrap").className="miniprevimage_wrap withimage":RVS.L[RVS.selLayers[0]].media.imageUrl==RVS.ENV.img_ph_url&&(document.getElementById("minilayerprevimage_wrap").className="miniprevimage_wrap"),document.getElementById("layer_image_src").style.backgroundImage='url("'+RVS.L[RVS.selLayers[0]].media.imageUrl+'")'))},RVS.F.updateLayerImageSrc=function(e,i){if(null!=i&&void 0!==i.layerid){for(var t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(RVS.L[RVS.selLayers[t]].size.originalSize=parseInt(RVS.L[RVS.selLayers[t]].size.width[RVS.screen].v,0)==parseInt(RVS.L[RVS.selLayers[t]].size.originalWidth,0));i.direction="width",i.dirB="height",i.src=null==i.src?RVS.L[i.layerid].media.imageUrl:i.src,i.src=null==i.src?RVS.L[i.layerid].media.posterUrl:i.src,i.id=void 0===i.id?RVS.L[i.layerid].media.imageId:i.id,i.id=void 0===i.id?RVS.L[i.layerid].media.posterId:i.id,RVS.F.preloadImage({uid:i.layerid,slideId:RVS.S.slideId,image:i.src,silent:!1,callback:function(){var e,t=!1;for(e in RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(i.uid=RVS.selLayers[e],i.ignore=RVS.L[RVS.selLayers[e]].size.originalSize,d(i),t=t||i.uid===i.layerid);t||(i.uid=i.layerid,d(i)),RVS.F.updateLayerImageSrcThumb()}}),setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery("#form_layer_content"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})},100)}},RVS.F.updateLayerSVGSrc=function(a){null!=a&&void 0!==a.uids&&void 0!==a.src&&0!==a.uids.length&&jQuery.get(a.src,function(e){for(var t in a.uids){var i;a.uids.hasOwnProperty(t)&&(t=a.uids[t],i=(new XMLSerializer).serializeToString(e.documentElement),RVS.H[t].c[0].innerHTML=i,RVS.H[t].svg=RVS.H[t].w.find("svg"),RVS.H[t].svgPath=RVS.H[t].w.find(RVS.L[t].idle.svg.styleAll?"svg path, svg circle, svg ellipse, svg line, svg polygon, svg polyline, svg rect":"svg path"),RVS.F.updateLayerObj({path:"svg.renderedData",val:i,ignoreBackup:!0}),RVS.F.drawHTMLLayer({uid:t}))}})},RVS.F.resetVideoPlaceholder=function(e,t){if(void 0!==t&&void 0!==t.val)for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(i=RVS.selLayers[i],"video"===RVS.L[i].type)&&(RVS.L[i].media.posterUrl===RVS.ENV.img_ph_url?RVS.H[i].c.addClass("placeholder_on"):RVS.H[i].c.removeClass("placeholder_on"))},RVS.F.resyncVideoAspectRatio=function(){for(var e in RVS.F.openBackupGroup({id:"layerresize",txt:"Video Aspect Ratio",icon:"videocam"}),RVS.selLayers){var t,i;RVS.selLayers.hasOwnProperty(e)&&"video"===(e=RVS.L[RVS.selLayers[e]]).type&&(i=e.media.ratio.split(":"),t=RVS.S.slideId+".layers."+e.uid+".",i=i[0]/i[1],RVS.F.updateSliderObj({path:t+"size.aspectRatio.#size#.v",val:i}),c({ignore:!0,direction:"width",dirB:"height",v:RVS.L[e.uid].size.width[RVS.screen].v,l:RVS.L[e.uid],pre:t}),RVS.F.drawHTMLLayer({uid:e.uid}))}RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()},RVS.F.changeAudioLayerSize=function(e){for(var t in RVS.F.openBackupGroup({id:"layerresize",txt:"Audio Layer Controls",icon:"photo_size_select_large"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(e.uid=RVS.selLayers[t],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".",RVS.F.updateSliderObj({path:e.pre+"media.controls",val:!e.l.media.controls}),"audio"===e.l.type&&(e.l.media.controls?RVS.F.updateSliderObj({path:e.pre+"size.width.#size#.v",val:350}):RVS.F.updateSliderObj({path:e.pre+"size.width.#size#.v",val:54}),RVS.F.updateSliderObj({path:e.pre+"size.height.#size#.v",val:54})),RVS.F.drawHTMLLayer({uid:e.uid}));RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()},RVS.F.changeMediaControlsInteraction=function(e){for(var t in RVS.F.openBackupGroup({id:"mediacontrols",txt:"Media Layer Controls",icon:"photo_size_select_large"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(e.uid=RVS.selLayers[t],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".",RVS.F.updateSliderObj({path:e.pre+"media.nointeraction",val:!e.l.media.nointeraction}),RVS.F.updateSliderObj({path:e.pre+"media.controls",val:!1}),RVS.F.updateSliderObj({path:e.pre+"media.largeControls",val:!1}));RVS.F.closeBackupGroup({id:"mediacontrols"}),RVS.F.updateLayerInputFields()},RVS.F.changeLayerSizes=function(e){for(var t in RVS.F.openBackupGroup({id:"layerresize",txt:"Layer "+e.direction.toUpperCase(),icon:"photo_size_select_large"}),e.dirB="width"===e.direction?"height":"width",RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(e.uid=RVS.selLayers[t],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".","height"==e.direction&&0<(""+e.v).indexOf("%")&&void 0!==RVS.L[e.l.group.puid]&&"column"===RVS.L[e.l.group.puid].type&&("shape"===e.l.type|"button"===e.l.type||"text"==e.l.type)&&99<=parseInt(e.v)&&(e.v=e.v.replace("%","px")),e.l.size.scaleProportional?c(e):RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:e.v}),RVS.F.drawHTMLLayer({uid:e.uid}));RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()},RVS.F.lockUnlockLayerRatio=function(e){for(var t in RVS.F.openBackupGroup({id:"layerresize",txt:"Layer Aspect Ratio",icon:"photo_size_select_large"}),RVS.selLayers){var i;RVS.selLayers.hasOwnProperty(t)&&(e.uid=RVS.selLayers[t],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".",e.direction="width",e.dirB="height",RVS.F.updateSliderObj({path:e.pre+"size.scaleProportional",val:e.val}),e.val)&&("image"===e.l.type?(e.v=e.l.size.width[RVS.screen].v,e.ignore=!0,c(e),RVS.F.drawHTMLLayer({uid:e.uid})):(i=(t=RVS.H[e.uid].w).width(),t=t.height(),RVS.F.updateSliderObj({path:e.pre+"size.originalWidth",val:i}),RVS.F.updateSliderObj({path:e.pre+"size.originalHeight",val:t}),RVS.F.updateSliderObj({path:e.pre+"size.aspectRatio.#size#.v",val:i/t})))}RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()},RVS.F.lockUnlockMarginPadding=function(e,t,i,a){for(var r in a=void 0===a?"idle":a,RVS.F.openBackupGroup({id:"lock"+t,txt:"Lock and reset "+t+"(s)",icon:"border_outer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&(e.uid=RVS.selLayers[r],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".",RVS.F.updateSliderObj({path:e.pre+a+"."+t+"Lock",val:e.val}),e.val&&(r=(void 0===e.l[a][t][RVS.screen]?void 0===e.l[a][t].v?e.l[a][t]:e.l[a][t].v:e.l[a][t][RVS.screen].v)[0],RVS.F.updateSliderObj({path:e.pre+a+"."+t+i+".1",val:r}),RVS.F.updateSliderObj({path:e.pre+a+"."+t+i+".2",val:r}),RVS.F.updateSliderObj({path:e.pre+a+"."+t+i+".3",val:r})),RVS.F.drawHTMLLayer({uid:e.uid}));RVS.F.closeBackupGroup({id:"lock"+t}),RVS.F.updateLayerInputFields()},RVS.F.updateMarginPaddingValues=function(e,t,i,a){for(var r in a=void 0===a?"idle":a,RVS.F.openBackupGroup({id:t+"Value",txt:"Layer "+t,icon:"border_outer"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(r)){var s=RVS.L[RVS.selLayers[r]],o=RVS.S.slideId+".layers."+RVS.selLayers[r]+".";if(s[a][t+"Lock"])for(var n=0;n<4;n++)RVS.F.updateSliderObj({path:o+a+"."+t+i+"."+n,val:e.val});else RVS.F.updateSliderObj({path:o+a+"."+t+i+"."+e.eventparam,val:e.val});RVS.F.drawHTMLLayer({uid:RVS.selLayers[r]})}RVS.F.closeBackupGroup({id:t+"Value"}),RVS.F.updateLayerInputFields()},RVS.F.replaceMetas=function(e){if(0<=e.indexOf("{{"))for(var t in RVS.LIB.META){var i;RVS.LIB.META.hasOwnProperty(t)&&0<=e.search(t)&&(i=new RegExp(t,"g"),e=e.replace(i,RVS.LIB.META[t]))}return e},RVS.F.redrawEditedTextLayerwhenPlaceholder=function(){void 0!==RVS.selLayers[0]&&void 0!==RVS.L[RVS.selLayers[0]]&&RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0],document.getElementById("ta_layertext").value!==RVS.S.inFocusValu)},RVS.F.redrawTextLayerInnerHTML=function(e,t,i){null!=e&&(void 0!==RVS.L[e]&&"text"===RVS.L[e].type||"button"===RVS.L[e].type)&&(t&&(void 0!==RVS.H[e].splitText&&RVS.H[e].splitText.revert(),RVS.H[e].splitText=void 0),null!=RVS.L[e].subtype&&null!=RVS.F["redrawTextLayerInnerHTML_"+RVS.L[e].subtype]&&1==RVS.F["redrawTextLayerInnerHTML_"+RVS.L[e].subtype](e)||(void 0!==RVS.L[e].placeholder&&0<RVS.L[e].placeholder.length&&" "!==RVS.L[e].placeholder?RVS.H[e].c[0].innerHTML=RVS.L[e].placeholder:RVS.H[e].c[0].innerHTML=!0!==i&&RVS.L[e].toggle.set&&""!==RVS.L[e].toggle.text&&0<=RVS.C.toggledTextButton.className.indexOf("selected")?0<=jQuery.inArray(RVS.L[e].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])?RVS.F.replaceMetas(RVS.L[e].toggle.text):RVS.F.replaceMetas(RVS.L[e].toggle.text.replace(/\r\n|\r|\n/g,"<br />")):0<=jQuery.inArray(RVS.L[e].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])?RVS.F.replaceMetas(RVS.L[e].text):RVS.F.replaceMetas(RVS.L[e].text.replace(/\r\n|\r|\n/g,"<br />"))),t)&&(RVS.F.drawHTMLLayer({uid:e,ignoreLayerAnimation:!0}),void 0!==RVS.L[e].timeline.split)&&RVS.F.updateLayerFrames({layerid:e})},RVS.DOC.on("redrawSelectedLayersInnerHTML",function(){RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0],!0)}),RVS.DOC.on("caralwaysvisiblecheck",function(e,t){if(null!=t&&null!=t.layerid&&null!=RVS.selLayers[0])if(1==RVS.L[RVS.selLayers[0]].visibility.alwaysOnCarousel){var i,a=RVS.F.getLayerHierArchy(RVS.selLayers[0]);for(i in a)if(null!=RVS.L[a[i]]&&1!=RVS.L[a[i]].visibility.alwaysOnCarousel)return void(0==RVS.L[a[i]].visibility.alwaysOnCarousel&&RVS.F.showInfo({content:'"'+RVS.L[a[i]].alias+'" '+RVS_LANG.someParentIsHidden_a+"<br>"+RVS_LANG.someParentIsHidden_b,type:"goodtoknow",showdelay:0,hidedelay:4,hideon:"",event:""}))}else{var r=RVS.F.getLayerChildren({layerid:RVS.selLayers[0]});for(i in r)if(r.hasOwnProperty(i)&&null!=RVS.L[i]&&1!=RVS.L[i].visibility.alwaysOnCarousel)return void(0==RVS.L[i].visibility.alwaysOnCarousel&&RVS.F.showInfo({content:'"'+RVS.L[i].alias+'" '+RVS_LANG.someParentIsHidden_c+"<br>"+RVS_LANG.someParentIsHidden_d,type:"goodtoknow",showdelay:0,hidedelay:4,hideon:"",event:""}))}}),RVS.F.changeLayerAnimation=function(e){e.fromLayerTransListe||(window.timelineTemporaryCached=!0,RVS.L[RVS.selLayers[0]].timelinecache=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timeline)),R(RVS.LIB.LAYERANIMS[e.direction][e.group].transitions[e.transition],e.transition,e.group);var t,i="loop"===e.direction?"loop":"play_circle_filled",a="loop"===e.direction?RVS_LANG.backupTemplateLoop:RVS_LANG.backupTemplateLayerAnim,r="loop"===e.direction?"layerLoop":"layerFrames",s="loop"===e.direction?"loop":"frames";for(t in e.ignoreBackupGroup||RVS.F.openBackupGroup({id:"changeFramesFromTemplate",txt:a,icon:i}),RVS.F.backup({path:s,layer:RVS.selLayers[0],slide:RVS.S.slideId,cache:void 0,icon:i,txt:a,lastkey:"timeline",force:!0,val:RVS.L[RVS.selLayers[0]].timeline[s],old:RVS.L[RVS.selLayers[0]].timelinecache[s],backupType:r,bckpGrType:"layerTemplateAnimation"}),RVS.JHOOKS.changeLayerAnimation)RVS.JHOOKS.changeLayerAnimation.hasOwnProperty(t)&&RVS.JHOOKS.changeLayerAnimation[t](e);e.ignoreBackupGroup||RVS.F.closeBackupGroup({id:"changeFramesFromTemplate"}),window.timelineTemporaryCached=!1,delete RVS.L[RVS.selLayers[0]].timelinecache,jQuery(".layer_transliste.open").removeClass("open"),RVS.F.renderLayerAnimation({layerid:RVS.selLayers[0]}),RVS.F.playLayerAnimation({layerid:RVS.selLayers[0]}),RVS.F.updateLayerInputFields(),RVS.S.shwLayerAnim?RVS.F.playLayerAnimation({layerid:RVS.selLayers[0]}):RVS.F.stopAllLayerAnimation()},RVS.F.updateLayerTimelineLoopLists=function(){var e,t="";for(e in window.layerTimelineLoopFrom=null==window.layerTimelineLoopFrom?jQuery("#la_timeline_loop_from"):window.layerTimelineLoopFrom,window.layerTimelineLoopTo=null==window.layerTimelineLoopTo?jQuery("#la_timeline_loop_to"):window.layerTimelineLoopTo,RVS.L[RVS.selLayers[0]].timeline.frameOrder)RVS.L[RVS.selLayers[0]].timeline.frameOrder.hasOwnProperty(e)&&0<e&&"frame_999"!==RVS.L[RVS.selLayers[0]].timeline.frameOrder[e].id&&(t+='<option value="'+RVS.L[RVS.selLayers[0]].timeline.frameOrder[e].id+'">'+RVS.L[RVS.selLayers[0]].timeline.frames[RVS.L[RVS.selLayers[0]].timeline.frameOrder[e].id].alias+" (#"+e+")</option>");window.layerTimelineLoopFrom[0].innerHTML=window.layerTimelineLoopTo[0].innerHTML=t,window.layerTimelineLoopFrom.val(RVS.L[RVS.selLayers[0]].timeline.tloop.from).ddTP("change"),window.layerTimelineLoopTo.val(RVS.L[RVS.selLayers[0]].timeline.tloop.to).ddTP("change")},RVS.F.updateCoveredLayer=function(e){return"cover-proportional"===RVS.L[e].size.covermode||"cover"===RVS.L[e].size.covermode?{width:RVS.S.ulDIM.width,height:RVS.S.ulDIM.height}:"fullwidth"===RVS.L[e].size.covermode?{width:RVS.S.ulDIM.width}:"fullheight"===RVS.L[e].size.covermode&&{height:RVS.S.ulDIM.height}},RVS.F.updateCoveredLayers=function(i){window.requestAnimationFrame(function(){for(var e in RVS.L){var t;RVS.L.hasOwnProperty(e)&&void 0!==RVS.H[e]&&void 0!==RVS.L[e].behavior&&"slide"===RVS.L[e].behavior.baseAlign&&(void 0!==(t=RVS.F.updateCoveredLayer(e))&&i?(RVS.F.drawHTMLLayer({uid:e}),RVS.F.updateHTMLLayerPosition({uid:e})):((!1!==t&&void 0!==t.width||void 0!==t.height)&&tpGS.gsap.set(RVS.H[e].w,t),RVS.H[e].w_width=void 0!==t.width?t.width:RVS.H[e].w_width,RVS.H[e].w_height=void 0!==t.height?t.height:RVS.H[e].w_height,"image"===RVS.L[e].type&&"custom"!==RVS.L[e].size.covermode&&(t=RVS.F.getProportionalSizes({proportional:RVS.L[e].size.scaleProportional,type:RVS.L[e].size.covermode,image:{width:RVS.L[e].size.originalWidth,height:RVS.L[e].size.originalHeight},viewPort:{width:!1!==t&&void 0!==t.width?RVS.S.ulDIM.width:RVS.F.GW(RVS.screen),height:!1!==t&&void 0!==t.height?RVS.S.ulDIM.height:RVS.SLIDER.settings.size.height[RVS.screen]}}),RVS.H[e].c[0].style.width=t.width+"px",RVS.H[e].c[0].style.height=t.height+"px")))}})},RVS.F.updateLayerPositionClass=function(e,t){null==e||null==RVS.H[e]||null==RVS.H[e].w||(RVS.H[e].w[0].classList.remove("_lc_i_abs"),RVS.H[e].w[0].classList.remove("_lc_i_rel"),-1==RVS.L[e].group.puid&&RVS.L[e].position.position,t&&(RVS.L[e].position.ingrouppositoin=RVS.L[e].position.position),void 0===RVS.L[RVS.L[e].group.puid])||"group"!==RVS.L[RVS.L[e].group.puid].type&&"column"!==RVS.L[RVS.L[e].group.puid].type||RVS.H[e].w[0].classList.add("relative"==RVS.L[e].position.position?"_lc_i_rel":"_lc_i_abs")},RVS.F.setKeyframeSelected=function(e){RVS.S.keyFrame=e,p(),RVS.F.updateLayerInputFields(),RVS.TL.cache.main="frame_0"===RVS.S.keyFrame?RVS.F.getTimeAtSelectedFrameStart("frame_1")/100:"frame_999"===RVS.S.keyFrame?RVS.F.getTimeAtSelectedFrameMiddle("frame_999")/100:(RVS.F.getTimeAtSelectedFrameEnd()-2)/100,RVS.TL.cache.main=RVS.TL.cache.main<.01?.01:RVS.TL.cache.main,RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0})},RVS.F.updateKeyframeSelected=function(e){RVS.TL.cache.main="frame_0"===RVS.S.keyFrame?RVS.F.getTimeAtSelectedFrameStart("frame_1")/100:"frame_999"===RVS.S.keyFrame?RVS.F.getTimeAtSelectedFrameMiddle("frame_999")/100:(RVS.F.getTimeAtSelectedFrameEnd()-2)/100,RVS.TL.cache.main=RVS.TL.cache.main<.01?.01:RVS.TL.cache.main,RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:100*RVS.TL.cache.main,refreshMainTimeLine:!1,caller:"updateKeyframeSelected"})},RVS.F.migrateCustomAnimation=function(e){for(var t in e)if(e.hasOwnProperty(t))if("in"===e[t].settings||"out"===e[t].settings)RVS.LIB.LAYERANIMS[e[t].settings].custom.transitions[e[t].id]=e[t].params;else if(void 0!==e[t].params&&("customin"===e[t].params.type||"customout"===e[t].params.type)){var i,a="customin"==e[t].params.type?"in":"out",r=RVS.LIB.LAYERANIMS[a].custom.transitions,s="in"==a?"frame_0":"frame_999",o={name:e[t].handle},n=(o[s]={transform:{},timeline:{}},"in"==a?o.frame_1={timeline:{speed:e[t].params.speed,ease:e[t].params.easing}}:o.frame_999.timeline={speed:e[t].params.speed,ease:e[t].params.easing},"true"!=e[t].params.mask&&1!=e[t].params.mask||(o[s].mask={use:!0,x:e[t].params.mask_x,y:e[t].params.mask_y},"in"==a&&(o.frame_1.mask={use:!0,x:0,y:0})),o[s].transform),l={use:!0,delay:e[t].params.splitdelay};switch(e[t].params.split){case"lines":case"line":o[s].lines=l,n=o[s].lines,"in"==a&&(o.frame_1.lines=l);break;case"words":case"word":o[s].words=l,n=o[s].words,"in"==a&&(o.frame_1.words=l);break;case"chars":case"char":o[s].chars=l,n=o[s].chars,"in"==a&&(o.frame_1.chars=l)}for(i in void 0!==e[t].params.captionopacity&&(n.opacity=e[t].params.captionopacity),e[t].params)if(e[t].params.hasOwnProperty(i)){var d=e[t].params[i];if("inherit"!==d&&"0"!==d&&0!==d&&"0px"!==d)switch(i){case"movex":n.x=d;break;case"movey":n.y=d;break;case"movez":n.z=d;break;case"rotationx":n.rotationX=d;break;case"rotationy":n.rotationY=d;break;case"rotationz":n.rotationZ=d;break;case"skewx":n.skewX=d;break;case"skewy":n.skewY=d}}r[e[t].id]=o}},RVS.F.objChangeCompare=function(e,t,i){if(i=null==i?{s:0,a:0}:i,"object"==typeof e)for(var a in e)e.hasOwnProperty(a)&&"timeline"!=a&&("object"==typeof e[a]&&void 0!==t[a]&&"object"==typeof t[a]?i=RVS.F.objChangeCompare(e[a],t[a],i):(i.a++,""+e[a]==""+t[a]&&i.s++));return i},RVS.F.compareLayerAnimPresets=function(e){var t,i,a,r,s,o;for(s in e)if(e.hasOwnProperty(s)&&null!=e[s].timeline)for(var n in t=void 0,e[s].timeline.frames)"frame_1"!==n&&"frame_999"!==n&&"frame_loop"!==n||null==e[s].timeline.frames[n].timeline.preset||null==e[s].timeline.frames[n].timeline.presetgroup||(o="frame_1"==n?"in":"frame_999"==n?"out":"loop",null!=(o=null==(o=null!=RVS.LIB.LAYERANIMS[o][e[s].timeline.frames[n].timeline.presetgroup]?RVS.LIB.LAYERANIMS[o][e[s].timeline.frames[n].timeline.presetgroup]:void 0)?(null!=RVS.LIB.LAYERANIMS.in[e[s].timeline.frames[n].timeline.presetgroup]?RVS.LIB.LAYERANIMS.in:void 0!==RVS.LIB.LAYERANIMS.out[e[s].timeline.frames[n].timeline.presetgroup]?RVS.LIB.LAYERANIMS.out:RVS.LIB.LAYERANIMS.loop)[e[s].timeline.frames[n].timeline.presetgroup]:o)&&null!=o.transitions&&null!=o.transitions[e[s].timeline.frames[n].timeline.preset]&&(o=o.transitions[e[s].timeline.frames[n].timeline.preset],null==t&&(i=RVS.F.addLayerObj(o.type,void 0,!0).timeline.frames,(t=RVS.F.simplifyLayer(e[s]).timeline.frames).frame_0=L(jQuery.extend(!0,_({alias:RVS_LANG.enterstage,opacity:0},"frame_0"),t.frame_0)),t.frame_1=L(jQuery.extend(!0,_({opacity:1,effect:"none",chars:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},words:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},lines:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},"frame_1"),t.frame_1)),t.frame_999=L(jQuery.extend(!0,_({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:0},"frame_999"),t.frame_999)),t.loop=jQuery.extend(!0,v(),t.loop)),i=jQuery.extend(!0,i,o),"frame_1"==n?(i.frame_0=L(jQuery.extend(!0,_({alias:RVS_LANG.enterstage,opacity:0},"frame_0"),i.frame_0)),i.frame_1=L(jQuery.extend(!0,_({opacity:1,effect:"none",chars:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},words:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},lines:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},"frame_1"),i.frame_1)),a=RVS.F.objChangeCompare(t.frame_0,i.frame_0),o=RVS.F.objChangeCompare(t.frame_1,i.frame_1),r=(a.s/a.a+o.s/o.a)/2):"frame_999"==n?(i.frame_999=L(jQuery.extend(!0,_({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:0},"frame_999"),i.frame_999)),r=(a=RVS.F.objChangeCompare(t.frame_999,i.frame_999)).s/a.a):"frame_loop"==n&&(i.loop=jQuery.extend(!0,v(),i.loop),r=(a=RVS.F.objChangeCompare(t.frame_loop,i.frame_loop)).s/a.a),e[s].timeline.frames[n].timeline.presetBased=Math.round(100*r)))},RVS.F.updateFrameOptionsVisual=function(){for(var e in RVS.V.frameLevels.levels){var t;RVS.V.frameLevels.levels.hasOwnProperty(e)&&(t=RVS.V.frameLevels.levels[e],RVS.V.frameLevels[t]=void 0===RVS.V.frameLevels[t]?jQuery("#"+t+"_ts_wrapbrtn"):RVS.V.frameLevels[t],"color"===t&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame]&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].bgcolor&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].color&&(!1!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].bgcolor.use||!1!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].color.use)||"sfx"===t&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame]&&""!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].sfx.effect&&"none"!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].sfx.effect||"mask"===t&&RVS.L[RVS.selLayers[0]].timeline.clipPath.use||"color"!==t&&"sfx"!==t&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame]&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame][t]&&RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame][t].use?RVS.V.frameLevels[t][0].className="ts_wrapbrtn":RVS.V.frameLevels[t][0].className="ts_wrapbrtn notinuse")}for(var e in RVS.JHOOKS.updateFrameOptionsVisual)RVS.JHOOKS.updateFrameOptionsVisual.hasOwnProperty(e)&&RVS.JHOOKS.updateFrameOptionsVisual[e]()},RVS.F.extendLayerAnimationLists=function(e){var t=e.direction,i=e.handle;if(RVS.LIB.LAYERANIMS[t][i]=jQuery.extend(!0,{},e.preset),void 0!==RVS.LIB.LAYERANIMS.translists){var a,e='<div class="latransgroup"><div class="latransgroup_head"><span class="latransgroup_name">'+RVS.LIB.LAYERANIMS[t][i].group+'</span><div class="animation_drop_arrow"><i class="material-icons">arrow_drop_down</i></div></div><div class="lainner_transitions">',r="";for(a in RVS.LIB.LAYERANIMS[t][i].transitions)RVS.LIB.LAYERANIMS[t][i].transitions.hasOwnProperty(a)&&(r+='<div data-lindex="'+t+'" data-gindex="'+i+'" data-tindex="'+a+'" class="layer_trans_liste dark_btn">'+RVS.LIB.LAYERANIMS[t][i].transitions[a].name+"</div>");0<jQuery("#lal_"+t+"_"+i).length?jQuery("#lal_"+t+"_"+i).find(".lainner_transitions")[0].innerHTML=jQuery("#lal_"+t+"_"+i).find(".lainner_transitions")[0].innerHTML+r:(e=e+r+"</div></div>","in"===t?RVS.LIB.LAYERANIMS.translists[0].append(e):"out"===t&&RVS.LIB.LAYERANIMS.translists[999].append(e))}},RVS.F.checkUsedFonts=function(e){RVS.F.checkAvailableFontWeights(e);var t,i,a={},r=[];for(t in RVS.L)if(RVS.L.hasOwnProperty(t)){var s=RVS.L[t];if(("text"===s.type||"button"===s.type)&&void 0!==s.idle&&void 0!==s.idle.fontFamily){var o,n,l=s.idle.fontFamily.replace(/\ /g,"_"),d=[];for(o in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(o)&&(n=s.idle.fontWeight[RVS.V.sizes[o]].v,n=s.idle.fontStyle?n+"italic":n,-1!==jQuery.inArray(n,d)||void 0!==S[l]&&-1!==jQuery.inArray(n,S[l].weights)||void 0!==a[l]&&-1!==jQuery.inArray(n,a[l].weights)||d.push(n));0<d.length&&(void 0===a[l]?a[l]={family:l,font:s.idle.fontFamily,weights:d,italic:s.idle.fontStyle}:a[l]={family:l,font:s.idle.fontFamily,weights:RVS.F.mergeArrays(d,a[l].weights),italic:!0===a[l]||s.idle.fontStyle})}}for(t in a)a.hasOwnProperty(t)&&void 0!==(i=RVS.F.loadSingleFont(a[t]))&&r.push(i);RVS.F.do_google_font_load(r,{silent:!0})},RVS.F.preloadUsedFonts=function(){var e,t,i={},a=[];for(e in RVS.L)if(RVS.L.hasOwnProperty(e)&&("text"===RVS.L[e].type||"button"===RVS.L[e].type)&&void 0!==RVS.L[e].idle&&void 0!==RVS.L[e].idle.fontFamily){var r,s=RVS.L[e].idle.fontFamily.replace(/\ /g,"_");for(r in i[s]=void 0===i[s]?{family:s,weights:[],italic:!1}:i[s],i[s].font=RVS.L[e].idle.fontFamily,i[s].italic=!0===i[s].italic||RVS.L[e].idle.fontStyle,RVS.V.sizes)RVS.V.sizes.hasOwnProperty(r)&&-1===i[s].weights.toString().indexOf(RVS.L[e].idle.fontWeight[RVS.V.sizes[r]].v)&&i[s].weights.push(RVS.L[e].idle.fontWeight[RVS.V.sizes[r]].v)}for(e in i)i.hasOwnProperty(e)&&void 0!==(t=RVS.F.loadSingleFont(i[e]))&&a.push(t);RVS.F.do_google_font_load(a)},RVS.F.loadSingleFont=function(e){var t=function(e){var t,i=!1;for(t in RVS.LIB.FONTS)if(RVS.LIB.FONTS[t].label==e){"googlefont"==RVS.LIB.FONTS[t].type&&(i=RVS.LIB.FONTS[t]);break}return i}(e.font);if(t&&(e.weights=void 0===e.weights?[]:e.weights,e.subsets=void 0===e.subsets?[]:e.subsets,e.font=e.font.replace(/\ /g,"+"),void 0===S[e.family]||!RVS.F.matchArray(e.weights,S[e.family].weights))){S[e.family]=void 0===S[e.family]?{weights:e.weights,subsets:e.subsets}:S[e.family],S[e.family].weights=RVS.F.mergeArrays(e.weights,S[e.family].weights);var i="",a="";if(S[e.family].weights=function(e,t){var i,a=[];for(i in e)e.hasOwnProperty(i)&&0<=jQuery.inArray(e[i],t)&&a.push(e[i]);return a}(S[e.family].weights,t.variants),0===S[e.family].weights.length)for(var r in t.variants)t.variants.hasOwnProperty(r)&&(0<r?a+=",":a=":",a+=t.variants[r],S[e.family].weights.push(t.variants[r]));else for(var s in S[e.family].weights)S[e.family].weights.hasOwnProperty(s)&&(0<s?a+=",":a=":",a+=S[e.family].weights[s],e.italic)&&-1==a.indexOf("italic")&&-1==jQuery.inArray(S[e.family].weights[s]+"italic",S[e.family].weights)&&(a+=","+S[e.family].weights[s]+"italic");if(void 0!==t.subsets)for(var r in t.subsets)t.subsets.hasOwnProperty(r)&&(0<r?i+=",":i=":",i+=t.subsets[r],e.subsets.push(t.subsets[r]));return e.font+a+i}},RVS.F.do_google_font_load=function(e,t,i){if(t=void 0===t?{silent:!1}:t,null!==e&&0<e.length){var a,r=0;for(a in e)e.hasOwnProperty(a)&&(0<a&&0,e[a],r++);r=1===r?r+" Font":r+" Fonts",tpWebFont.load({google:{families:e},fontactive:h,loading:function(){!0!==t.silent&&RVS.F.showWaitAMinute({fadeIn:500,text:"Please Wait<br><span style='display:block;font-size:30px;line-height:35px'>Loading "+r+"</span>"})},active:function(){!0!==t.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500}),void 0!==i&&setTimeout(function(){RVS.DOC.trigger(i)},500)},50)},inactive:function(e){!0!==t.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500}),void 0!==i&&setTimeout(function(){RVS.DOC.trigger(i)},500)},50)}})}},RVS.F.checkLayersRelativeAbsolute=function(e){for(var t in e)e.hasOwnProperty(t)&&null==e[t].position.position&&"row"!==e[t].type&&(e[t].position.position=-1!=e[t].group.puid&&"-1"!=e[t].group.puid&&void 0!==e[e[t].group.puid]&&"column"===e[e[t].group.puid].type?"relative":"absolute");return e},RVS.F.importSelectedLayers=function(e,t){e=void 0===e?RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers:e;for(var i in void 0!==window.copyPasteLayers&&void 0!==window.copyPasteLayers.layers&&(window.backupCopyPaste=jQuery.extend(!0,{},window.copyPasteLayers.layers)),window.copyPasteLayers={amount:0,layers:{}},RVS.LIB.OBJ.import.toImport)RVS.LIB.OBJ.import.toImport.hasOwnProperty(i)&&(window.copyPasteLayers.layers[e[RVS.LIB.OBJ.import.toImport[i]].uid]=jQuery.extend(!0,RVS.F.addLayerObj(e[RVS.LIB.OBJ.import.toImport[i]].type,void 0,!0),e[RVS.LIB.OBJ.import.toImport[i]]));"grouplayers"===RVS.LIB.OBJ.depth&&(delete window.copyPasteLayers.layers.bottom,delete window.copyPasteLayers.layers.middle,delete window.copyPasteLayers.layers.top),RVS.DOC.trigger("do_paste_layer"),setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),!0!==t&&("layers"===RVS.LIB.OBJ.depth&&(jQuery("#rb_modal_underlay").appendTo("#slider_settings"),RVS.F.RSDialog.close()),RVS.F.closeObjectLibrary(),RVS.F.checkUsedFonts()),RVS.S.ignoreCopyPrefix=!1},RVS.F.getUniqueid=function(){for(;0<=jQuery.inArray(RVS.S.uniqueId,RVS.S.uniqueIds);)RVS.S.uniqueId++;return RVS.S.uniqueId},RVS.F.addLayerObj=function(e,t,i,a,r,s){if(void 0===RVS.ENV.img_ph_url&&(RVS.ENV.video_ph_url=RVS.ENV.img_ph_url=RVS.ENV.plugin_url+"admin/assets/images/transparent_placeholder.png"),"object"==typeof e&&(e=(t=e).type),void 0!==t&&void 0!==t.uid&&0<=jQuery.inArray(t.uid,["top","bottom","middle","zone"]))return t;if(0<=jQuery.inArray(e,["top","bottom","middle","zone"]))return t;if("boxshadow"!==(t=void 0===t?{}:t).type&&"textshadow"!==t.type){var o={};switch(o.addOns=t.addOns||{},o.type=f(t.type,e),o.subtype=f(t.subtype,""),o.subsubtype=f(t.subsubtype,""),o.linebreak=f(t.linebreak,!1),o.text="text"!==e&&"button"!==e||"forms"===t.subtype?"":f(t.text,"New Layer"),o.placeholder="text"===e||"button"===e?f(t.placeholder,""):"",o.alias=RVS.F.firstCharUppercase(f(t.alias,"New Layer")),!0===r||i||(o.uid=f(t.uid,RVS.F.getUniqueid())),o.version=RVS.ENV.revision,o.htmltag=f(t.htmltag,"div"),o.customCSS=f(t.customCSS,""),o.customHoverCSS=f(t.customHoverCSS,""),o.layerLibSrc=f(t.layerLibSrc,""),o.type){case"text":case"button":case"image":o.media=f(t.media,{imageUrl:RVS.ENV.img_ph_url,imageId:"",imageFromStream:!1}),o.media.loaded=!1;break;case"audio":case"video":o.media=f(t.media,{mediaType:"audio"===o.type?"audio":i?"":"html5",audioUrl:"",audioTitle:"",posterUrl:RVS.ENV.video_ph_url,posterId:"",fitCover:!0,posterFromStream:!1,thumbs:{veryBig:{width:640,height:480,url:RVS.ENV.video_ph_url},big:{width:640,height:480,url:RVS.ENV.video_ph_url},large:{width:640,height:360,url:RVS.ENV.video_ph_url},medium:{width:320,height:240,url:RVS.ENV.video_ph_url},small:{width:200,height:150,url:RVS.ENV.video_ph_url}},nointeraction:!1,descSmall:"",description:"",link:"",mp4Url:"",ogvUrl:"",webmUrl:"",allowFullscreen:!0,args:"",author:"",autoPlay:"true",controls:!1,cover:!1,disableOnMobile:!1,dotted:"none",dottedSize:1,dottedColorA:"transparent",dottedColorB:"#000000",startAt:"00:00",endAt:"00:00",forceRewind:!0,fullWidth:!1,id:"",videoFromStream:!1,largeControls:!0,leaveOnPause:!0,mute:!0,nextSlideAtEnd:!0,preload:"auto",preloadWait:"0",ratio:"16:9",posterOnPause:!1,posterOnMobile:!1,stopAllVideo:!0,playInline:!0,hideAudio:!0,speed:1,loop:!0,pausetimer:!1,pauseOnSlideChange:!1,volume:"100"}),void 0!==o&&void 0!==o.media&&(0<o.media.dotted.indexOf("white")&&(o.media.dottedColorB="rgba(255,255,255,255)"),0<=o.media.dotted.indexOf("twoxtwo")?o.media.dotted="1":0<=o.media.dotted.indexOf("threexthree")&&(o.media.dotted="2")),void 0!==o.media&&"video"===o.media.type&&void 0===o.media.allowFullscreen&&!0!==i&&(o.media.allowFullscreen=!0),void 0!==o.media&&"streamyoutube"===o.media.mediaType&&(o.media.mediaType="youtube",o.media.videoFromStream=!0),void 0!==o.media&&"streamvimeo"===o.media.mediaType&&(o.media.mediaType="vimeo",o.media.videoFromStream=!0),o.media.mediaType=i||""!==o.media.mediaType&&void 0!==o.media.mediaType?i?"alwayswrite":o.media.mediaType:"html5",o.media.loop=!0===o.media.loop||void 0!==t&&void 0!==t.media&&("loopandnoslidestop"===t.media.loop||"loop"===t.media.loop||!0===t.media.loop||"true"===t.media.loop),o.media.pausetimer=void 0!==t&&void 0!==t.media&&(!0===t.media.pausetimer||!1!==t.media.pausetimer&&"loopandnoslidestop"!==t.media.loop),!0===o.media.loop&&!0===o.media.nextSlideAtEnd&&(o.media.loop=!1),i&&void 0!==o.media&&(o.media.loop=!0,o.media.pausetimer=0),i&&(o.media.loop=void 0);break;case"svg":case"object":o.svg=f(t.svg,{source:"",renderedData:""})}void 0!==o.media&&void 0!==o.media.lastLibrary&&(o.media.imageLib=o.media.lastLibrary,delete o.medialastLibrary),o.toggle=f(t.toggle,{set:!1,text:"",inverse:!1,useHover:!1});var e=!0===i||!0===a?"auto":"audio"===o.type?"54":"image"!==o.type&&"shape"!==o.type&&"video"!==o.type&&"group"!==o.type?"auto":"180px",n=!0===i?"auto":"svg"===o.type||"image"===o.type||"video"===o.type,l=!0===i||!0===a?"auto":"image"!==o.type&&"shape"!==o.type&&"video"!==o.type&&"group"!==o.type?"none":"video"!==o.type?300/180:320/180;if(o.size=f(t.size,{width:RVS.F.cToResp({default:!0===i||!0===a?"auto":"audio"===o.type?"54":"image"!==o.type&&"shape"!==o.type&&"video"!==o.type&&"group"!==o.type?"auto":"video"!==o.type?"300px":"320px"}),height:RVS.F.cToResp({default:e}),maxWidth:RVS.F.cToResp({default:"none"}),maxHeight:RVS.F.cToResp({default:"none"}),minWidth:RVS.F.cToResp({default:"none"}),minHeight:RVS.F.cToResp({default:"none"}),originalWidth:0,originalHeight:0,aspectRatio:RVS.F.cToResp({default:l}),covermode:"custom",scaleProportional:n}),void 0!==o.size.height.d&&null===o.size.height.d.v&&(o.size.height.d.v="auto"),"svg"===o.type&&(o.size.scaleProportional=!0),o.size.originalWidth=0===o.size.originalWidth||void 0===o.size.originalWidth?o.size.width.d.v:o.size.originalWidth,o.size.originalHeight=0===o.size.originalHeight||void 0===o.size.originalHeight?o.size.height.d.v:o.size.originalHeight,o.position=f(t.position,{x:i||a?RVS.F.cToResp({default:0,unit:"px"}):RVS.F.cToResp({default:50+RVS.S.rb_ScrollX,unit:"px"}),y:i||a?RVS.F.cToResp({default:0,unit:"px"}):RVS.F.cToResp({default:50+RVS.S.rb_ScrollY,unit:"px"}),horizontal:RVS.F.cToResp({default:"left"}),vertical:RVS.F.cToResp({default:"top"}),position:i?"":"absolute",staticZ:"default"}),void 0===o.position||i||(o.position.staticZ=void 0===o.position.staticZ?"default":o.position.staticZ),void 0!==t.position&&void 0!==t.position.zIndex?o.position.zIndex=t.position.zIndex:o.position.zIndex=function(){var e,t=5;for(e in RVS.L)RVS.L.hasOwnProperty(e)&&parseInt(RVS.L[e].position.zIndex,0)>=t&&(t=parseInt(RVS.L[e].position.zIndex,0)+1);return t}(),i&&(o.position.zIndex="nA"),o.attributes=f(t.attributes,{alt:"",altOption:"media_library",id:"",classes:"",rel:"",tabIndex:0,title:"",wrapperClasses:"",wrapperId:""}),o.behavior=f(t.behavior,{autoResponsive:"row"!==o.type&&"column"!==o.type&&(!(!i&&!a)||RVS.SLIDER.settings.def.autoResponsive),intelligentInherit:"row"!==o.type&&"column"!==o.type&&(!(!i&&!a)||RVS.SLIDER.settings.def.intelligentInherit),responsiveChilds:!(!i&&!a)||RVS.SLIDER.settings.def.responsiveChilds,baseAlign:"grid",responsiveOffset:!(!i&&!a)||RVS.SLIDER.settings.def.responsiveOffset,lazyLoad:"auto",imageSourceType:"full",streamSourceType:"full"}),o.group=f(t.group,{puid:-1,groupOrder:i?99999:o.position.zIndex,columnbreakat:"tablet",columnSize:"1/3"}),o.position.position=i?"":void 0!==o.group&&-1==o.group.puid?"absolute":o.position.position,"row"===o.type&&-1===o.group.puid&&(o.group.puid="top"),_opacity="group"!==o.type&&"column"!==o.type&&"row"!==o.type||i||a?0:1,o.timeline=f(t.timeline,{scrollBased:"default",forcePrepare:!1,scrollBasedOffset:0,filtersOnMask:!1,frameToIdle:"frame_1",frames:{frame_0:_({alias:RVS_LANG.enterstage,opacity:_opacity},"frame_0"),frame_1:_({alias:RVS_LANG.onstage,opacity:1,chars:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,blur:0,grayscale:0,brightness:100,fuse:!1},words:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,blur:0,grayscale:0,brightness:100,fuse:!1},lines:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,blur:0,grayscale:0,brightness:100,fuse:!1}},"frame_1"),frame_999:_({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:i||a?"inherit":0},"frame_999")},clipPath:{use:!1,type:"rectangle",origin:"l"},static:{start:1,end:"last"},loop:v(),tloop:{use:!1,from:"",to:"",repeat:-1,keep:!0,children:!0}}),o.timeline.tloop=void 0===o.timeline.tloop?{use:!1,from:"",to:"",repeat:-1}:o.timeline.tloop,o.timeline.scrollBased=void 0===o.timeline.scrollBased?"default":o.timeline.scrollBased,o.timeline.scrollBasedOffset=void 0===o.timeline.scrollBasedOffset?0:o.timeline.scrollBasedOffset,o.timeline.frames.frame_0.alias=void 0===o.timeline.frames.frame_0.alias?RVS_LANG.enterstage:o.timeline.frames.frame_0.alias,o.timeline.frames.frame_1.alias=void 0===o.timeline.frames.frame_1.alias?RVS_LANG.onstage:o.timeline.frames.frame_1.alias,o.timeline.frames.frame_999.alias=void 0===o.timeline.frames.frame_999.alias?RVS_LANG.leavestage:o.timeline.frames.frame_999.alias,void 0!==s)for(var d in s)s.hasOwnProperty(d)&&void 0===o.timeline.frames[s[d].id]&&(o.timeline.frames[s[d].id]=_({alias:RVS_LANG.onstage},s[d]));for(d in o.timeline.frames)o.timeline.frames.hasOwnProperty(d)&&("frame_0"!==d&&"frame_1"!==d&&"frame_999"!==d&&(o.timeline.frames[d]=jQuery.extend(!0,_({alias:o.timeline.frames[d]},d),o.timeline.frames[d])),o.timeline.frames[d]=L(o.timeline.frames[d]),o.timeline.frames[d].timeline.start<0&&(o.timeline.frames[d].timeline.start=0),o.timeline.frames[d].timeline.startRelative<0)&&(o.timeline.frames[d].timeline.startRelative=0);for(d in o.effects=f(t.effects,{parallax:"-",pxmask:!1,attachToBg:!1,effect:"default"}),o.idle=f(t.idle,{style:"",color:RVS.F.cToResp({default:"#ffffff"}),margin:RVS.F.cToResp({default:[0,0,0,0]}),marginLock:!1,paddingLock:!1,borderWidthLock:!1,borderRadiusLock:!1,padding:RVS.F.cToResp({default:"column"===o.type||"row"===o.type?[10,10,10,10]:[0,0,0,0]}),autolinebreak:!0,float:RVS.F.cToResp({default:"none"}),clear:RVS.F.cToResp({default:"none"}),display:"block",fontFamily:"Roboto",fontStyle:!1,fontSize:RVS.F.cToResp({default:"20"}),fontWeight:RVS.F.cToResp({default:"400"}),letterSpacing:RVS.F.cToResp({default:"0"}),lineHeight:RVS.F.cToResp({default:"25"}),overflow:"visible",textAlign:RVS.F.cToResp({default:"left"}),verticalAlign:"top",cursor:"auto",backgroundColor:"shape"!==o.type||i||a?"transparent":"rgba(0,0,0,0.5)",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundSizePerc:"100",backgroundSizePix:"100",backgroundImage:"",backgroundImageId:"",bgFromStream:!1,borderColor:"transparent",borderRadius:{v:[0,0,0,0]},borderStyle:RVS.F.cToResp({default:"none"}),borderWidth:[0,0,0,0],rotationX:0,rotationY:0,rotationZ:0,opacity:1,textDecoration:"none",textTransform:"none",filtersIOSFix:"d",boxShadow:{inuse:!1,container:"content",hoffset:RVS.F.cToResp({default:0,val:0}),voffset:RVS.F.cToResp({default:0,val:0}),blur:RVS.F.cToResp({default:0,val:0}),spread:RVS.F.cToResp({default:0,val:0}),color:"rgba(0,0,0,0.25)"},textShadow:{inuse:!1,hoffset:RVS.F.cToResp({default:0,val:0}),voffset:RVS.F.cToResp({default:0,val:0}),blur:RVS.F.cToResp({default:0,val:0}),color:"rgba(0,0,0,0.25)"},textStroke:{inuse:!1,width:RVS.F.cToResp({default:0,val:1}),color:"rgba(0,0,0,0.25)"},filter:{blendMode:"normal",showInEditor:!0},spikeUse:!1,spikeLeft:"none",spikeLeftWidth:10,spikeRight:"none",spikeRightWidth:10,cornerLeft:"none",cornerRight:"none",selectable:"default",whiteSpace:RVS.F.cToResp({default:"row"===o.type||"column"===o.type?"normal":!0!==i&&1!=a?"full":"nowrap"}),svg:{originalColor:!1,color:RVS.F.cToResp({default:"#ffffff"}),strokeColor:"transparent",strokeDashArray:0,strokeDashOffset:0,strokeWidth:0}}),"object"!=typeof o.idle.borderStyle&&(o.idle.borderStyle=RVS.F.cToResp({default:o.idle.borderStyle})),void 0===o.idle.textStroke||"string"!=typeof o.idle.textStroke.width&&"number"!=typeof o.idle.textStroke.width||(o.idle.textStroke.width=RVS.F.cToResp({default:0,val:o.idle.textStroke.width})),o.idle.fontFamily=void 0===o.idle.fontFamily||""===o.idle.fontFamily||o.idle.fontFamily.toLowerCase()!==o.idle.fontFamily?RVS.F.compareGoogleFontName(o.idle.fontFamily,!0):RVS.F.compareGoogleFontName(o.idle.fontFamily),o.idle.fontFamily=void 0===o.idle.fontFamily?"Roboto":o.idle.fontFamily,o.idle.fontStyle="normal"!==o.idle.fontStyle&&!1!==o.idle.fontStyle,RVS.V.sizes)for(var S=0;S<4;S++)RVS.V.sizes.hasOwnProperty(d)&&(o.idle.margin[RVS.V.sizes[d]].v[S]=parseInt(o.idle.margin[RVS.V.sizes[d]].v[S],0)||0,o.idle.padding[RVS.V.sizes[d]].v[S]=parseInt(o.idle.padding[RVS.V.sizes[d]].v[S],0)||0);for(d in o.hover=f(t.hover,{usehover:!1,usehovermask:!1,color:"#ffffff",opacity:1,backgroundColor:"transparent",gradientStyle:"fading",borderColor:"transparent",borderRadius:{v:[0,0,0,0],u:"%"},borderStyle:"none",borderWidth:[0,0,0,0],transformPerspective:RVS.SLIDER.settings.general.perspective,originX:"50%",originY:"50%",originZ:"50%",rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,textDecoration:"none",x:0,y:0,z:0,speed:300,ease:"power3.inOut",zIndex:"auto",pointerEvents:"auto",filter:{grayscale:0,brightness:100,blur:0},svg:{color:"#ffffff",strokeColor:"transparent",strokeDashArray:0,strokeDashOffset:0,strokeWidth:0}}),o.actions=f(t.actions,{triggerMemory:"reset",action:[]}),o.actions.inactive_actions=[],o.visibility=f(t.visibility,{visible:!0,locked:!1,d:!0,m:!0,n:!0,t:!0,hideunder:!1,onlyOnSlideHover:!1,publish:!0,alwaysOnCarousel:!1}),o.runtime=f(t.runtime,{internalClass:"",isDemo:!1,unavailable:!1}),void 0!==t.formAttribute&&(o.formAttribute=f(t.formAttribute)),!0!==r&&RVS.S.uniqueIds.push(o.uid),RVS.LIB.ADDONS)RVS.LIB.ADDONS.hasOwnProperty(d)&&(o.addOns[d]=void 0===o.addOns[d]?{enable:!1}:o.addOns[d]);if(void 0!==o.customCSS&&0<o.customCSS.length){o.customCSS=o.customCSS.replace(/\s\s+/g," ");var c=o.customCSS.split(";"),p="";for(d in c)if(c.hasOwnProperty(d)){var u=c[d].split(":"),R=u[0].replace(/\s/g,"");if(""!==RVS.F.trim(R))switch(R){case"letter-spacing":o.idle.letterSpacing=RVS.F.cToResp({default:u[1]});break;case"text-align":o.idle.textAlign=RVS.F.cToResp({default:u[1]});break;case"text-shadow":-1===u[1].indexOf("none")&&(p+=c[d]);break;default:p+=c[d]+";"}}o.customCSS=p}var V=[];if(void 0!==o.actions){for(var S in o.actions.action)null==o.actions.action[S].migrateMute&&null==o.actions.action[S].rsColorPicker&&null==o.actions.action[S].get&&V.push(o.actions.action[S]);o.actions.action=V}return o}},RVS.F.simplifyLayer=function(e,t){return delete window.follow,"zone"===e.type?jQuery.extend(!0,{},e):jQuery.extend(!0,{},RVS.F.simplifyObject(RVS.F.addLayerObj(e.type,void 0,!0,void 0,void 0,void 0!==e&&void 0!==e.timeline&&void 0!==e.timeline.frameOrder?e.timeline.frameOrder:void 0),jQuery.extend(!0,{},e),t))},RVS.F.simplifyAllLayer=function(e,t){var i,a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=RVS.F.simplifyLayer(e[i],t),a[i].type=e[i].type);return a},RVS.F.expandAllLayer=function(e){var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=jQuery.extend(!0,RVS.F.addLayerObj(e[t].type,void 0,!0),e[t]));return i},RVS.F.initAddonMigration=function(e){}}(),RVS.LIB.ACTION_WITH_TRGT=[],RVS.LIB.ACTIONTYPES={},function(){var l=["X","M","N"];function d(e,t,i,a){return e&&t==="static-"+i||e&&RVS.SLIDER.slideIDs[a]===RVS.S.slideId&&parseInt(t,0)===parseInt(i,0)||!e&&parseInt(t,0)===parseInt(i,0)}function S(e,t){return"start_in"===e.action&&("any"===t||"frame_1"===t)||"start_out"===e.action&&("any"===t||"frame_999"===t)||"toggle_layer"===e.action&&("any"===t||"frame_1"===t||"frame_999"===t)||"toggle_frames"===e.action&&("any"===t||e.gotoframeM===t||e.gotoframeN===t)||"start_frame"===e.action&&("any"===t||e.gotoframe===t)}function n(e,t,i){return"<option "+(void 0!==t?'data-style="margin-left:'+t+'px"':"")+'data-icon="'+RVS.F.getLayerIcon(e.linebreak?"linebreak":e.type)+'" value="'+(i?"sta_":"")+e.uid+'">'+e.alias+"</option>"}function c(e,t,i,a){var r,s="",o=i?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers:RVS.L;if(a)for(r in o)!o.hasOwnProperty(r)||"video"!==o[r].type&&"audio"!==o[r].type||(s+=n(o[r],t,i));else for(r in o)o.hasOwnProperty(r)&&"zone"!=o[r].type&&(""+o[r].group.puid==""+e||"-1"==e&&"row"==o[r].type)&&("row"==o[r].type||"group"==o[r].type||"column"==o[r].type?s=(s+=n(o[r],t,i))+c(""+o[r].uid,10+t,i,a):s+=n(o[r],t,i));return s}function p(e){var t=-1;return-1!=jQuery.inArray(e.action,RVS.LIB.ACTION_WITH_TRGT)&&void 0!==e.layer_target&&(t=parseInt(e.layer_target.toString().replace("static-",""),0)),{slideid:void 0!==e&&void 0!==e.layer_target&&0<=e.layer_target.toString().indexOf("static")?RVS.SLIDER.staticSlideId:RVS.S.slideId,targetid:-1==t||isNaN(t)?-1:t}}function e(e){var t=RVS.L[RVS.selLayers[0]].actions.action.length,i=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].actions);i.action.push({action:e,tooltip_event:"click",link_help_in:"keep",link_open_in:"_self",link_follow:"follow"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".actions",val:i}),RVS.S.actionIdx=t,RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides(),RVS.DOC.trigger("layer_action_selected")}RVS.F.initLayerActions=function(){RVS.F.createActionGroup({icon:"link",id:"layeraction_group_link",actions:[{val:"menu",inputs:"#la_settings_link_menu, #la_settings_link,#la_settings_scroll_under"},{val:"link",inputs:"#la_settings_link_url,#la_settings_link,#la_settings_link_type"},{val:"callback",inputs:"#la_settings_callback"},{val:"getAccelerationPermission",inputs:"#la_settings_getAccelerationPermissionk"},{val:"scrollto",inputs:"#la_settings_scroll_to,#la_settings_scroll_under"},{val:"scroll_under",inputs:"#la_settings_scroll_under"}]}),RVS.F.createActionGroup({icon:"code",id:"layeraction_group_slide",actions:[{val:"jumpto",inputs:"#la_settings_jumpto"},{val:"next"},{val:"prev"},{val:"pause"},{val:"resume"},{val:"toggle_slider"},{val:"close_modal"},{val:"open_modal",inputs:"#la_settings_modal"}]}),RVS.F.createActionGroup({icon:"layers",id:"layeraction_group_layer",actions:[{val:"start_in",inputs:"#la_settings_layer_actions, #la_settings_layer_actions_in, #la_settings_childrentimelines",layerTarget:!0},{val:"start_out",inputs:"#la_settings_layer_actions, #la_settings_layer_actions_out, #la_settings_childrentimelines",layerTarget:!0},{val:"start_frame",inputs:"#la_settings_layer_actions, #la_settings_layer_actions_frame, #la_settings_childrentimelines",layerTarget:!0},{val:"next_frame",inputs:"#la_settings_layer_actions, #la_settings_childrentimelines",layerTarget:!0},{val:"prev_frame",inputs:"#la_settings_layer_actions, #la_settings_childrentimelines",layerTarget:!0},{val:"toggle_layer",inputs:"#la_settings_layer_actions, #la_settings_layer_toggle_actions, #la_settings_childrentimelines",layerTarget:!0},{val:"toggle_frames",inputs:"#la_settings_layer_actions, #la_settings_layer_actions_frameXY, #la_settings_childrentimelines",layerTarget:!0}]}),RVS.F.createActionGroup({icon:"videocam",id:"layeraction_group_media",actions:[{val:"start_video",layerTarget:!0,media:!0},{val:"stop_video",layerTarget:!0,media:!0},{val:"toggle_video",layerTarget:!0,media:!0},{val:"mute_video",layerTarget:!0,media:!0},{val:"unmute_video",layerTarget:!0,media:!0},{val:"toggle_mute_video",layerTarget:!0,media:!0},{val:"toggle_global_mute_video"}]}),RVS.F.createActionGroup({icon:"fullscreen",id:"layeraction_group_fullscreen",actions:[{val:"togglefullscreen"},{val:"gofullscreen"},{val:"exitfullscreen"}]}),RVS.F.createActionGroup({icon:"layers",id:"layeraction_group_layer",actions:[{val:"simulate_click",layerTarget:!0},{val:"toggle_class",inputs:"#la_settings_class",layerTarget:!0}]}),RVS.DOC.trigger("extendLayerActionGroups"),RVS.DOC.on("openLayerActions",RVS.F.openLayerActions),RVS.DOC.on("updatePlayFrameXOnlyOnAction",RVS.F.updatePlayFrameXOnlyOnAction),RVS.DOC.on("click",".drop_dependencies",function(){jQuery("#layer_with_action_wrap").toggleClass("opendeps")}),RVS.DOC.on("click","#rbm_layer_action .rbm_close",function(){for(var e in jQuery("#rbm_layer_action").hasClass("inpickermode")?(jQuery("#rbm_layer_action").removeClass("inpickermode"),jQuery("#layeraction_list").hide(),jQuery("#layer_action_type").show()):(jQuery(".actionDependent").removeClass("actionDependent"),RVS.F.RSDialog.close()),RVS.L)RVS.L[e].actions&&0<RVS.L[e].actions.action.length?jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[e].uid).addClass("actionmarked"):jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[e].uid).removeClass("actionmarked");RVS.F.updateAllLayerFrames()}),RVS.DOC.on("click","#addactiontolayer",function(){return e("link"),!1}),RVS.F.cleanUpAllActions=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&cleanUpActions(e)},RVS.F.cleanUpActions=function(e){var t=[];if(void 0!==RVS.L[e].actions){for(var i in RVS.L[e].actions.action)null==RVS.L[e].actions.action[i].migrateMute&&null==RVS.L[e].actions.action[i].rsColorPicker&&null==RVS.L[e].actions.action[i].get&&t.push(RVS.L[e].actions.action[i]);RVS.L[e].actions=t}},RVS.F.updateDuplicatedLayerActionDependencies=function(e,t){var i,a,r,s=RVS.F.layerFrameTriggeredBy({all:!0,layerid:t,frame:"any"}),o=[],n=[];for(a in s)s.hasOwnProperty(a)&&void 0!==RVS.L[s[a].uid]&&-1===jQuery.inArray(""+s[a].uid,n)&&n.push(""+s[a].uid);for(a in n){for(r in o=[],RVS.L[n[a]].actions.action)RVS.L[n[a]].actions.action.hasOwnProperty(r)&&-1!=jQuery.inArray(RVS.L[n[a]].actions.action[r].action,RVS.LIB.ACTION_WITH_TRGT)&&""+RVS.L[n[a]].actions.action[r].layer_target==""+t&&((i=jQuery.extend(!0,{},RVS.L[n[a]].actions.action[r])).layer_target=""+e,o.push(i));if(0<o.length)for(r in o)o.hasOwnProperty(a)&&RVS.L[s[a].uid].actions.action.push(jQuery.extend(!0,{},o[r]))}},RVS.DOC.on("click",".duplicate_single_layer_action",function(){var e=jQuery(this).closest(".single_layer_action"),t=RVS.L[RVS.selLayers[0]].actions.action.length,i=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].actions);return i.action.push(RVS.L[RVS.selLayers[0]].actions.action[e.index()]),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".actions",val:i}),RVS.S.actionIdx=t,setTimeout(function(){RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides()},50),!1}),RVS.DOC.on("click",".delete_single_layer_action",function(){var e=jQuery(this).closest(".single_layer_action"),t=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].actions);return t.action.splice(e.index(),1),RVS.S.actionIdx=0,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".actions",val:t}),setTimeout(function(){RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides(),RVS.DOC.trigger("layer_action_selected")},50),!1}),RVS.DOC.on("click","#layer_action_type",function(){jQuery("#rbm_layer_action").addClass("inpickermode"),jQuery("#layeraction_list").show(),jQuery(this).hide(),jQuery("#layeraction_list .lal_group_member").removeClass("selected"),jQuery("#layeraction_picker_"+RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action).addClass("selected")}),RVS.DOC.on("change","#action_interaction",function(){RVS.F.buildActionList()}),RVS.DOC.on("click",".lal_group_member",function(){jQuery("#rbm_layer_action").removeClass("inpickermode"),jQuery("#layer_action_type").show(),void 0===RVS.S.actionIdx||void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]?(e(this.dataset.val),jQuery("#action_inputs .la_settings").hide(),jQuery(RVS.LIB.ACTIONTYPES[this.dataset.val].inputs).show(),jQuery("#layeraction_list").hide()):(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".actions.action."+RVS.S.actionIdx+".action",val:this.dataset.val}),jQuery("#action_inputs .la_settings").hide(),jQuery(RVS.LIB.ACTIONTYPES[this.dataset.val].inputs).show(),jQuery("#layeraction_list").hide(),RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides()),RVS.DOC.trigger("layer_action_selected")}),RVS.DOC.on("click",".single_layer_action",function(e){RVS.S.actionIdx=jQuery(this).index(),jQuery(".single_layer_action").removeClass("selected"),jQuery(this).addClass("selected"),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides(),RVS.DOC.trigger("layer_action_selected")}),RVS.DOC.on("click",".lal_group_header",function(){jQuery(this).closest(".lal_group").toggleClass("closed")}),RVS.DOC.on("refreshActionView",function(){RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides()}),RVS.DOC.on("refreshSlideLists",function(){RVS.F.refreshModalSlides()}),RVS.DOC.on("refreshLayerToggleState",function(){var e="string"==typeof RVS.S.actionTrgtLayerId&&0<=RVS.S.actionTrgtLayerId.indexOf("static-"),t="string"==typeof RVS.S.actionTrgtLayerId?RVS.S.actionTrgtLayerId.replace("static-",""):RVS.S.actionTrgtLayerId,e=e?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[t]:RVS.L[RVS.S.actionTrgtLayerId];"visible"==jQuery("#toggle_layer_type").val()?e.timeline.frames.frame_1.timeline.actionTriggered=!1:e.timeline.frames.frame_1.timeline.actionTriggered=!0,RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides()})},RVS.F.openLayerActions=function(){0<RVS.selLayers.length?(RVS.S.actionIdx=void 0,jQuery("#no_action_selected").show(),jQuery("#action_inputs, .la_settings").hide(),RVS.DOC.trigger("layerActionOpened"),RVS.F.initActionsOfLayers(),RVS.F.RSDialog.create({modalid:"rbm_layer_action",bgopacity:.5})):RVS.F.showInfo({content:RVS_LANG.noLayersSelected,type:"warning",showdelay:0,hidedelay:3,hideon:"",event:""})},RVS.F.selectLayerAction=function(){if(jQuery(".actionselected").removeClass("actionselected"),void 0===RVS.S.actionIdx||RVS.S.actionIdx<0||0==RVS.L[RVS.selLayers[0]].actions.action.length)return jQuery("#action_inputs, .la_settings").hide(),jQuery("#no_action_selected").show(),!1;var e;jQuery("#action_inputs").show(),jQuery(".la_settings, #no_action_selected").hide(),void 0!==RVS.LIB.ACTIONTYPES[RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action]&&jQuery(RVS.LIB.ACTIONTYPES[RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action].inputs).show(),void 0!==RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].layer_target&&(RVS.S.actionTrgtLayerId=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].layer_target||"none"),0<=jQuery.inArray(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,["scroll_under","scrollto"])&&(void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action_easing&&(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action_easing="power1.inOut"),void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action_speed)&&(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action_speed="1000ms"),"link"===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action&&("column"===RVS.L[RVS.selLayers[0]].type||"row"===RVS.L[RVS.selLayers[0]].type||"group"===RVS.L[RVS.selLayers[0]].type?RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].link_type="jquery":void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].link_type&&(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].link_type="a")),0<=jQuery.inArray(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,["start_in","start_out","start_frame","next_frame","prev_frame","toggle_layer","toggle_frames"])&&void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].updateChildren&&(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].updateChildren=!0),void 0!==RVS.S.actionTrgtLayerId&&(0<=(""+RVS.S.actionTrgtLayerId).indexOf("static-")&&void 0!==RVS.SLIDER.staticSlideId&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId]&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId].layers?e=RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[(""+RVS.S.actionTrgtLayerId).replace("static-","")]:void 0!==RVS.L[RVS.S.actionTrgtLayerId]&&(e=RVS.L[RVS.S.actionTrgtLayerId],RVS.H[RVS.S.actionTrgtLayerId].w.addClass("actionselected")),void 0!==e)&&(RVS.F.checkToggleLayerType(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx],e,2),jQuery("#overtake_frame_1_control")[0].checked=e.timeline.frames.frame_1.timeline.actionTriggered,jQuery("#overtake_frame_999_control")[0].checked=e.timeline.frames.frame_999.timeline.actionTriggered,RVS.F.turnOnOffVisUpdate({input:document.getElementById("overtake_frame_1_control")}),RVS.F.turnOnOffVisUpdate({input:document.getElementById("overtake_frame_999_control")}),jQuery("#la_triggerMemory").val(e.actions.triggerMemory).ddTP("change"),RVS.F.updatePlayFrameXOnlyOnAction(null,"X"),RVS.F.updatePlayFrameXOnlyOnAction(null,"N"),RVS.F.updatePlayFrameXOnlyOnAction(null,"M")),RVS.F.updateEasyInputs({container:jQuery("#rbm_layer_action"),path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".",trigger:"init"}),RVS.F.upadteLayerTargetDropDowns({action:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,targetid:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].layer_target}),RVS.F.updateSlideList({action:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,targetid:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].jump_to_slide}),RVS.F.updateLinkTypes({action:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,linktype:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].link_type}),jQuery("#layer_action_fake").html(RVS.LIB.ACTIONTYPES[RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action].name)},RVS.F.updateReferencigToggleLayerType=function(){for(var e in RVS.L)if(RVS.L[e].actions&&0<RVS.L[e].actions.action.length)for(var t in RVS.L[e].actions.action)RVS.L[e].actions.action.hasOwnProperty(t)&&"toggle_layer"===(t=RVS.L[e].actions.action[t]).action&&(0<=(""+t.layer_target).indexOf("static-")&&void 0!==RVS.SLIDER.staticSlideId&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId]&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId].layers?RVS.F.checkToggleLayerType(t,RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[(""+t.layer_target).replace("static-","")],1):void 0!==RVS.L[t.layer_target]&&RVS.F.checkToggleLayerType(t,RVS.L[t.layer_target],1))},RVS.F.checkToggleLayerType=function(e,t,i){return void 0!==t&&"toggle_layer"===e.action&&(void 0!==t.timeline.frames.frame_1.timeline.actionTriggered&&1==i?e.toggle_layer_type=t.timeline.frames.frame_1.timeline.actionTriggered?"hidden":"visible":"visible"===e.toggle_layer_type?t.timeline.frames.frame_1.timeline.actionTriggered=!1:t.timeline.frames.frame_1.timeline.actionTriggered=!0,t.timeline.frames.frame_999.timeline.actionTriggered=!0),e},RVS.F.layerFrameTriggered=function(e){var t=parseInt(e.layerid,0);return RVS.L[t].timeline.frames[e.frame].timeline.actionTriggered},RVS.F.layerFrameTriggeredBy=function(e){for(var t=parseInt(e.layerid,0),i=[],a=0<=(""+RVS.S.slideId).indexOf("static"),r=null==e.src&&a?RVS.SLIDER.slideIDs.length-1:-1,s=!1;!s;){var o,n=void 0===e.src?-1===r?RVS.L:RVS.SLIDER[RVS.SLIDER.slideIDs[r]].layers:e.src;for(o in n)if(!(void 0===e.all&&0<i.length)&&n.hasOwnProperty(o)&&void 0!==n[o].actions){for(var l in n[o].actions.action)void 0===e.all&&0<i.length||!n[o].actions.action.hasOwnProperty(l)||void 0===n[o].actions.action[l].layer_target||void 0!==n[o].actions.action[l].ajaxSettings||void 0!==n[o].actions.action[l].fn||void 0!==n[o].actions.action[l].guid||void 0!==n[o].actions.action[l].lastModified||d(a,n[o].actions.action[l].layer_target,t,r)&&S(n[o].actions.action[l],e.frame)&&i.push({icon:RVS.F.getLayerIcon(n[o].linebreak?"linebreak":n[o].type,n[o].subtype),action:n[o].actions.action[l].action,uid:parseInt(n[o].uid,0),alias:n[o].alias,slide:void 0===e.src&&-1!==r?RVS.SLIDER.slideIDs[r]:RVS.S.slideId});if(void 0!==n[o].actions.inactive_actions)for(var l in n[o].actions.inactive_actions)void 0===e.all&&0<i.length||!n[o].actions.inactive_actions.hasOwnProperty(l)||void 0===n[o].actions.inactive_actions[l].layer_target||void 0!==n[o].actions.inactive_actions[l].ajaxSettings||void 0!==n[o].actions.inactive_actions[l].fn||void 0!==n[o].actions.inactive_actions[l].guid||void 0!==n[o].actions.inactive_actions[l].lastModified||d(a,n[o].actions.inactive_actions[l].layer_target,t,r)&&S(n[o].actions.inactive_actions[l],e.frame)&&i.push({icon:RVS.F.getLayerIcon(n[o].linebreak?"linebreak":n[o].type,n[o].subtype),action:n[o].actions.inactive_actions[l].action,uid:parseInt(n[o].uid,0),alias:n[o].alias,slide:void 0===e.src&&-1!==r?RVS.SLIDER.slideIDs[r]:RVS.S.slideId})}s=--r<0}return 0===i.length&&i.push({uid:"",alias:""}),e.all?i:i[0]},RVS.F.updateLayerToggleActionWaits=function(){var e,t,i,a=void 0!==RVS.SLIDER.staticSlideId&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId]?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers:void 0;for(e in RVS.L)if(RVS.L.hasOwnProperty(e)&&void 0!==RVS.L[e].actions)for(var r in RVS.L[e].actions.action)RVS.L[e].actions.action.hasOwnProperty(r)&&void 0!==RVS.L[e].actions.action[r].layer_target&&"toggle_layer"===RVS.L[e].actions.action[r].action&&(i=RVS.L[e].actions.action[r].layer_target,i=(t=void 0!==a&&0<=(""+i).indexOf("static-"))?i.replace("static-",""):i,t&&void 0!==a[i]||!t&&void 0!==RVS.L[i])&&(r=!("visible"===RVS.L[e].actions.action[r].toggle_layer_type),t?(a[i].timeline.frames.frame_1.timeline.actionTriggered=r,a[i].timeline.frames.frame_999.timeline.actionTriggered=!0):(RVS.L[i].timeline.frames.frame_1.timeline.actionTriggered=r,RVS.L[i].timeline.frames.frame_999.timeline.actionTriggered=!0));RVS.F.updateAllLayerFrames()},RVS.F.initActionsOfLayers=function(){var e,t=RVS.L[RVS.selLayers[0]],i=jQuery("#layer_depending_wrap"),a=RVS.F.layerFrameTriggeredBy({all:!0,layerid:RVS.selLayers[0],frame:"any"}),r='<i class="lwa_icon material-icons">'+RVS.F.getLayerIcon(t.linebreak?"linebreak":t.type,t.subtype)+'</i><span class="lwa_layername">'+t.alias+"</span>";for(e in i[0].innerHTML="",jQuery("#layer_with_action_wrap").removeClass("opendeps"),0<a.length&&(r+='<span class="drop_dependencies">'+RVS_LANG.triggeredby+'<i class="material-icons">arrow_drop_up</i></span>'),a)a.hasOwnProperty(e)&&void 0!==a[e].uid&&void 0!==a[e].action&&i.append('<li data-id="'+a[e].uid+'" class="layer_depending_on"><i class="material-icons ldo_icon">'+a[e].icon+'</i><span class="ldo_layername">'+a[e].alias+(a[e].slide!==RVS.S.slideId?" ("+a[e].slide+")":"")+'</span><span class="ldo_actionname">'+RVS_LANG["layeraction_"+a[e].action]+"</span></li>");document.getElementById("add_action_to_layername").innerHTML=t.alias,document.getElementById("layer_with_action").innerHTML=r,RVS.F.updateEasyInputs({container:jQuery("#layer_width_action_inner_wrap"),path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".",trigger:"init"}),jQuery("#rbm_layer_action .tos2, #rbm_layer_action .slideinput, #rbm_layer_action .sliderinput").trigger("init"),RVS.F.buildActionList()},RVS.F.updateTriggeringActionRelations=function(e){var t,i=RVS.F.layerFrameTriggeredBy({all:!0,layerid:e,frame:"any"});for(t in i)i.hasOwnProperty(t)&&void 0!==i[t].uid&&void 0!==i[t].action&&RVS.F.checkActionRelations(i[t].uid)},RVS.F.checkActionRelations=function(e){e=RVS.L[e];if(void 0!==e){e.actions.inactive_actions=e.actions.inactive_actions||[];var t,i,a,r=[...e.actions.action,...e.actions.inactive_actions],s=[],o=[];for(t in r)r.hasOwnProperty(t)&&("backgroundvideo"!==r[t].layer_target&&"firstvideo"!==r[t].layer_target||"toggle_layer"===r[t].action&&(r[t].action="toggle_video"),a=!1,((a=-1!=(i=p(r[t])).targetid&&void 0===RVS.SLIDER[i.slideid].layers[i.targetid]&&"backgroundvideo"!==r[t].layer_target&&"firstvideo"!==r[t].layer_target?!0:a)?o:s).push(r[t]));e.actions.action=s.slice(0),e.actions.inactive_actions=o.slice(0)}},RVS.F.buildActionList=function(){var e,t,i,a,r=jQuery("#selected_layer_actions"),s=RVS.L[RVS.selLayers[0]];for(e in RVS.F.checkActionRelations(RVS.selLayers[0]),jQuery(".actionDependent").removeClass("actionDependent"),jQuery(".actionselected").removeClass("actionselected"),r[0].innerHTML="",s.actions.action)s.actions.action.hasOwnProperty(e)&&(t='<li class="single_layer_action '+(e==RVS.S.actionIdx?"selected":"")+'">',i=p(s.actions.action[e]),t+='<span class="action_tooltip_evnt">'+RVS_LANG["layerevent_"+s.actions.action[e].tooltip_event]+"</span>",-1!=i.targetid?void 0!==RVS.SLIDER[i.slideid].layers[i.targetid]&&void 0!==i.slideid?(a=0<=(""+i.slideid).indexOf("static"),t+='<i class="sla_icon material-icons">'+RVS.F.getLayerIcon(RVS.SLIDER[i.slideid].layers[i.targetid].linebreak?"linebreak":RVS.SLIDER[i.slideid].layers[i.targetid].type,RVS.SLIDER[i.slideid].layers[i.targetid].subtype)+'</i><span class="sla_layername">'+RVS.SLIDER[i.slideid].layers[i.targetid].alias+(a?"(S)":"")+"</span>",a||RVS.H[i.targetid].w.addClass("actionDependent")):"backgroundvideo"===s.actions.action[e].layer_target||"firstvideo"===s.actions.action[e].layer_target?t+='<i class="sla_icon material-icons">videocam</i><span class="sla_layername">'+RVS_LANG[s.actions.action[e].layer_target]+"</span>":t+='<i class="sla_icon material-icons">error_outline</i><span class="sla_layername">'+RVS_LANG.noLayersSelected+"</span>":void 0!==RVS.LIB.ACTIONTYPES[s.actions.action[e].action]?t+='<i class="sla_icon material-icons">'+RVS.LIB.ACTIONTYPES[s.actions.action[e].action].icon+'</i><span class="sla_layername"></span>':t+='<i class="sla_icon material-icons">extension</i><span class="sla_layername"></span>',void 0!==RVS.LIB.ACTIONTYPES[s.actions.action[e].action]&&void 0!==RVS_LANG["layeraction_"+s.actions.action[e].action]?t+='<span class="sla_actionname">'+RVS_LANG["layeraction_"+s.actions.action[e].action]+"</span>":t+='<span class="sla_actionname">'+s.actions.action[e].action+"</span>",r.append(t=t+'<div class="single_layer_toolbar"><i class="material-icons duplicate_single_layer_action">content_copy</i><i class="material-icons delete_single_layer_action">delete_forever</i></div>'+"</li>"));0===s.actions.action.length?(jQuery("#layeraction_list").show(),jQuery("#selected_layer_actions").hide(),jQuery("#addactiontolayer").hide()):(jQuery("#layeraction_list").hide(),jQuery("#selected_layer_actions").show(),jQuery("#addactiontolayer").show()),jQuery("#layeraction_list").RSScroll({wheelPropagation:!1,suppressScrollX:!0,minScrollbarLength:100}),jQuery("#layeractions_overview_innerwrap").RSScroll({wheelPropagation:!1,suppressScrollX:!0,minScrollbarLength:100})},RVS.F.refreshModalSlides=function(){var e,r;RVS.L[RVS.selLayers[0]].actions.action.length&&"open_modal"==RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action&&void 0!==RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].openmodal&&(e=function(e){var t,i=!1;for(t in RVS.LIB.SLIDERS)!1===i&&RVS.LIB.SLIDERS[t].alias===e&&(i=RVS.LIB.SLIDERS[t].id);return i}(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].openmodal),!1!==(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].openmodalId=e))&&(r="",RVS.F.ajaxRequest("get_slides_by_slider_id",{id:e},function(e){if(e.success){var t,i=0;for(t in e.slides)i++,r+='<option value="rs-'+e.slides[t].id+'">#'+i+" "+e.slides[t].title+"</option>";var a=jQuery("#la_open_modalslide");a[0].innerHTML=r,void 0!==RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].modalslide&&(a[0].value=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].modalslide),a.ddTP({placeholder:"Select From List"}),RVS.F.updateEasyInputs({container:jQuery("#rbm_layer_action"),path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".",trigger:"init"})}}))},RVS.F.refreshFrameLists=function(){for(var e in l){if(void 0===RVS.S.actionTrgtLayerId)return;var t="string"==typeof RVS.S.actionTrgtLayerId&&0<=RVS.S.actionTrgtLayerId.indexOf("static-"),i="string"==typeof RVS.S.actionTrgtLayerId?RVS.S.actionTrgtLayerId.replace("static-",""):RVS.S.actionTrgtLayerId,t=t?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[i]:RVS.L[RVS.S.actionTrgtLayerId],a="",i=jQuery("#la_gotoframe"+l[e]);if(void 0===t||NaN===t)return;var r,s,o=t.timeline.frameOrder,n=t.timeline.frames;for(r in a+='<option value="frame_1">'+n.frame_1.alias+" ( "+RVS_LANG.frstframe+")</option>",o)o.hasOwnProperty(r)&&"frame_0"!==(s=o[r].id)&&"frame_1"!==s&&"frame_999"!==s&&(a+='<option value="'+s+'">'+n[s].alias+" ("+r+".Frame )</option>");a+='<option value="frame_999">'+n.frame_999.alias+" ( "+RVS_LANG.lastframe+")</option>",i[0].innerHTML=a,RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===l[e]?"":l[e])]&&void 0!==n[RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===l[e]?"":l[e])]]||(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===l[e]?"":l[e])]="frame_1"),i[0].value=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===l[e]?"":l[e])],i.ddTP({placeholder:"Select From List"}),RVS.F.updatePlayFrameXOnlyOnAction(null,l[e])}},RVS.F.updatePlayFrameXOnlyOnAction=function(e,t){var i,a,r;t=void 0===t?"X":"object"==typeof t?t.eventparam:t,void 0!==RVS.S.actionTrgtLayerId&&(i="string"==typeof RVS.S.actionTrgtLayerId&&0<=RVS.S.actionTrgtLayerId.indexOf("static-"),a="string"==typeof RVS.S.actionTrgtLayerId?RVS.S.actionTrgtLayerId.replace("static-",""):RVS.S.actionTrgtLayerId,i=i?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[a]:RVS.L[RVS.S.actionTrgtLayerId],a=document.getElementById("overtake_frame"+t+"_control"),r=i.timeline.frames,t=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("N"===t||"M"===t?t:"")])&&void 0!==r[t]&&(a.dataset.r="timeline.frames."+t+".timeline.actionTriggered",a.checked=i.timeline.frames[t].timeline.actionTriggered,RVS.F.turnOnOffVisUpdate({input:a}))},RVS.F.upadteLayerTargetDropDowns=function(e){e.select=void 0!==e.select?e.select:jQuery("#la_layer_target"),e.showmedia=void 0!==e.showmedia?e.showmedia:null!=e.action&&void 0!==RVS.LIB.ACTIONTYPES[e.action]&&RVS.LIB.ACTIONTYPES[e.action].media;var t,i="";e.addNone&&(i+='<option data-icon="cancel" value="none">'+RVS_LANG.none+"</option>"),e.showmedia&&(i=(i+='<option data-icon="videocam" value="backgroundvideo">'+RVS_LANG.backgroundvideo+"</option>")+'<option data-icon="videocam" value="firstvideo">'+RVS_LANG.videoactiveslide+"</option>"),""!==(t=c("-1",0,!1,e.showmedia))&&void 0!==t&&(i+='<optgroup label="'+RVS_LANG.currentSlide+'">'+t+"</optgroup>"),e.ignorestatic||-1!==(""+RVS.S.slideId).indexOf("static_")||void 0===RVS.SLIDER.staticSlideId||void 0===RVS.SLIDER[RVS.SLIDER.staticSlideId]||""!==(t=c("-1",0,!0,e.showmedia))&&void 0!==t&&(i+='<optgroup label="'+RVS_LANG.globalLayers+'">'+t+"</optgroup>"),e.select[0].innerHTML=i,e.select.val(e.targetid).ddTP("rebuild",{pre:'<span class="niddsr" style="#style#"><i class="icon_in_dropdown material-icons">#data#</i></span>',preDatas:{data:"icon",style:"style"}}),null!=e.action&&void 0!==e.targetid&&void 0!==RVS.L[e.targetid]&&(0<=jQuery.inArray(RVS.L[e.targetid].type,["group","row","column"])&&0<=jQuery.inArray(e.action,["start_in","start_out","start_frame","next_frame","prev_frame","toggle_layer","toggle_frames"])?jQuery("#la_settings_childrentimelines").show():jQuery("#la_settings_childrentimelines").hide())},RVS.F.updateLinkTypes=function(e){var t=jQuery("#la_link_type");t[0].innerHTML="",t.append('<option value="jquery">'+RVS_LANG.jquerytriggered+"</option>"),-1==jQuery.inArray(RVS.L[RVS.selLayers[0]].type,["group","column","row"])&&t.append('<option value="a">'+RVS_LANG.atriggered+"</option>"),t.val(e.linktype).ddTP("change").ddTP({})},RVS.F.createActionGroup=function(e){let t=document.getElementById(e.id),i=null!==t;var a,r,s,o,n,l;for(s in e.title=void 0===RVS_LANG[e.id]?e.title||e.id:RVS_LANG[e.id],i||(t=RVS.F.cE({cN:"lal_group",id:e.id}),(a=RVS.F.cE({cN:"lal_group_header"})).textContent=e.title,r=RVS.F.cI({c:e.icon}),a.prepend(r),a.appendChild(RVS.F.cI({cN:"accordiondrop",c:"arrow_drop_down"})),t.appendChild(a)),e.actions)e.actions.hasOwnProperty(s)&&(void 0!==(o=e.actions[s]).alias&&(RVS_LANG["layeraction_"+o.val]=o.alias),n=void 0!==o.title?o.title:void 0===RVS_LANG["layeraction_"+o.val]?o.val:RVS_LANG["layeraction_"+o.val],o.inputs=void 0===o.inputs?"":o.inputs,o.inputs=!0===o.layerTarget?"#la_settings_layertarget"+(0<o.inputs.length?", "+o.inputs:""):o.inputs,l=RVS.F.cE({cN:"lal_group_member",id:"layeraction_picker_"+o.val,ds:{val:o.val,inputs:o.inputs}}),RVS.F.cI({c:e.icon}),l.prepend(RVS.F.cI({c:e.icon})),l.textContent=n,t.appendChild(l),o.layerTarget&&RVS.LIB.ACTION_WITH_TRGT.push(o.val),RVS.LIB.ACTIONTYPES[o.val]={inputs:o.inputs,name:n,icon:e.icon,layerTarget:o.layerTarget,media:o.media});i||document.getElementById("layeraction_list").appendChild(t)},RVS.F.updateSlideList=function(e){var t,i,a=jQuery("#la_jump_to_slide"),r='<option value="first">'+RVS_LANG.firstslide+"</option>",s=(r=(r+='<option value="last">'+RVS_LANG.lastslide+"</option>")+('<option value="random">'+RVS_LANG.randomslide+"</option>"),"next"===e.targetid&&(r+='<option value="next">'+RVS_LANG.nextslide+"</option>"),"previous"===e.targetid&&(r+='<option value="previous">'+RVS_LANG.previousslide+"</option>"),0);for(t in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(t)&&-1===(i=RVS.SLIDER.slideIDs[t]+"").indexOf("static_")&&(r+="<option value="+i+">#"+ ++s+" "+RVS.SLIDER[i].slide.title+"</option>");a[0].innerHTML=r,a.val(e.targetid).ddTP("change").ddTP({})}}(),function(){var o,d=[],i={};function S(e,t){for(var i in e=function(e){var t,i,a,r=[],s=!1;for(i in RVS.L)RVS.L.hasOwnProperty(i)&&""+RVS.L[i].group.puid==""+e&&r.push({id:RVS.L[i].uid,sort:RVS.L[i].group.groupOrder,zIndex:RVS.L[i].position.zIndex,type:RVS.L[i].type,alias:RVS.L[i].alias});for(a in r)0!=r[a].sort&&"0"!=r[a].sort||(void 0===t?t=a:(r[a].sort=r[a].zIndex,s=!0));s&&(r[t].sort=r[t].zIndex);"top"===e||"bottom"===e||"middle"===e?r.sort(function(e,t){return e.sort-t.sort}):-1===e||"group"===RVS.L[e].type?r.sort(function(e,t){return t.sort-e.sort}):r.sort(function(e,t){return e.sort-t.sort});return r}(t))!e.hasOwnProperty(i)||"zone"!==e[i].type&&"row"!==e[i].type&&"column"!==e[i].type&&"group"!==e[i].type||(e[i].list=S(e,e[i].id));return e}function c(e,t){var i,a,r=RVS.F.cF(),s=RVS.F.getLayerIcon(e.linebreak?"linebreak":e.type,e.subtype),o=RVS.F.cE({cN:"layerlist_element_innerwrap",ds:{layerid:e.uid,id:e.uid}}),n=RVS.F.cE({cN:"context_left"}),l=RVS.F.cE({cN:"layerlist_element_alias",id:"layerlist_element_alias_"+RVS.S.slideId+"_"+e.uid}),d=RVS.F.cE({cN:"layerlist_toolbar_icon_wrap",id:"llist_too_iw_"+e.uid}),S=RVS.F.cI({cN:"layerlist_toolbar_icon fclayer_withslideend",c:"keyboard_tab",id:"slideendmarker_"+RVS.S.slideId+"_"+e.uid,ds:{layerid:e.uid}}),c=RVS.F.cE({cN:"stimeline"}),p=RVS.F.cE({cN:"frameswrap"}),u=RVS.F.cE({cN:"frame_unvisible_start",id:"frame_unvisible_start_"+RVS.S.slideId+"_"+e.uid}),R=RVS.F.cE({t:"framebg",ds:{layerid:e.uid,bg:"true",layertype:e.type}});for(i in l.textContent=RVS.F.sanitize_input_ws(e.alias),o.appendChild(n),n.appendChild(RVS.F.cE({cN:"layer_has_action"})),n.appendChild(RVS.F.cE({cN:"layer_raz_info",id:"layer_raz_info_"+RVS.S.slideId+"_"+e.uid,txt:e.position.position+" <b>"+(e.position.zIndex<10?"0":"")+e.position.zIndex+'</b><label_icon class="ui_free_layers"></label_icon>'})),n.appendChild(RVS.F.cE({cN:"layerlist_element_level",icon:{c:"arrow_drop_down"}})),n.appendChild(RVS.F.cE({cN:"layerlist_element_type",icon:{c:s}})),n.appendChild(l),"zone"!==e.type&&((s=RVS.F.cE({t:"input",type:"text",id:"layerlist_element_alias_input_"+RVS.S.slideId+"_"+e.uid,cN:"layerlist_element_alias_input indeplayerinput losefocusonenter",ds:{evt:"updateLayerAlias",sanitize:"true",cursortoclick:"true",evtparam:e.uid,r:e.uid+".alias"}})).value=RVS.F.sanitize_alias(e.alias),n.appendChild(s)),n.appendChild(RVS.F.cE({cN:"layerlist_toolbar"})),n.appendChild(RVS.F.cI({cN:"layer_current_visibility",c:"visibility_off",ds:{uid:e.uid}})),n.appendChild(RVS.F.cI({cN:"layer_current_locked material-icons",c:"lock",ds:{uid:e.uid}})),RVS.JHOOKS.createLayerListElement)RVS.JHOOKS.createLayerListElement.hasOwnProperty(i)&&!1!==(a=RVS.JHOOKS.createLayerListElement[i]({layer:e}))&&null!=a&&n.appendChild(a);return n.appendChild(d),d.appendChild(S),o.appendChild(c),c.appendChild(RVS.F.cE({cN:"slidelooptimemarker"})),c.appendChild(RVS.F.cE({cN:"fixedscrolltimemarker"})),c.appendChild(p),p.appendChild(u),p.appendChild(R),r.appendChild(o),t&&r.appendChild(RVS.F.cE({t:"ul"})),r}function p(){jQuery(this).hasClass("collapsed")?this.dataset.wascollapsed=1:jQuery(this).addClass("collapsed")}function u(){1!=this.dataset.wascollapsed&&jQuery(this).removeClass("collapsed"),this.dataset.wascollapsed=0}function R(e){d=[],jQuery(e.container+" ."+e.cIdName).each(function(){null!==this.offsetParent&&d.push({dif:36,y:jQuery(this).offset().top,id:this.dataset.id,type:this.dataset.type,puid:this.dataset.puid})})}function V(e){var t=!1,i=0;if(void 0!==d&&0<d.length){for(;!t&&i<d.length;)e.y>=d[i].y&&e.y<parseInt(d[i].y,0)+parseInt(d[i].dif,0)?t=!0:i++;return i>=d.length&&(i=d.length-1),{found:t,id:d[i].id,puid:d[i].puid,y:d[i].y,cover:e.y-parseInt(d[i].y,0),type:d[i].type}}return!1}function r(){var e,t,i=jQuery("#tl_layerList_"+RVS.S.slideId+" .layerlist_element");for(e in i)i.hasOwnProperty(e)&&void 0!==i[e]&&void 0!==i[e].dataset&&void 0!==i[e].dataset.id&&(0<(t=jQuery(i[e]).parent().closest(".withchildren")).length?(i[e].dataset.puid=t.data("id"),t=RVS.F.getDeepVal({path:RVS.S.slideId+".layers."+i[e].dataset.id+".group.puid"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i[e].dataset.id+".group.puid",val:i[e].dataset.puid}),t!=i[e].dataset.puid&&-1==jQuery.inArray(i[e].dataset.puid,["top","bottom","middle"])&&(t=RVS.F.getLayerChildren({layerid:i[e].dataset.puid}),RVS.F.setChildrenTimelines({childLayers:t,difference:0}),RVS.F.backupChildren({childLayers:t}))):(i[e].dataset.puid=-1,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i[e].dataset.id+".group.puid",val:-1})))}RVS.F.initLayerListBuilder=function(){RVS.C.rb=void 0===RVS.C.rb?jQuery("#rev_builder"):RVS.C.rb,RVS.C.layerListWrap=void 0===RVS.C.layerListWrap?jQuery("#tlLayerListWrap"):RVS.C.layerListWrap,RVS.DOC.on("click dblclick",".layerselector",function(){var e=jQuery(this);return e.hasClass("checked")?(RVS.F.selectLayers({id:this.dataset.id,overwrite:!1,action:"remove"}),e.removeClass("checked")):(RVS.F.selectLayers({id:this.dataset.id,overwrite:!1,action:"add"}),e.addClass("checked")),!1}),RVS.DOC.on("click",".layerlist_element_innerwrap",function(e){if(!this.dataset.ignore&&"slide_bg_anim_trigger"!==this.id){for(var t in RVS.JHOOKS.layerListElementClicked)RVS.JHOOKS.layerListElementClicked.hasOwnProperty(t)&&RVS.JHOOKS.layerListElementClicked[t](this.dataset.id);var i="FRAMEWRAP"===e.target.nodeName||"FFBEFORE"===e.target.nodeName||"FFAFTER"===e.target.nodeName?e.target.dataset.frame:"FRAMEWRAP"===e.target.parentNode.nodeName?e.target.parentNode.dataset.frame:void 0;return void 0!==i?("animation"===RVS.eMode.mode&&"layer"===RVS.eMode.top||RVS.F.mainMode({mode:"slidelayout",forms:["*slidelayout**mode__slidecontent*#form_layer_animation"],set:!0,uncollapse:!0,slide:RVS.S.slideId}),jQuery("framewrap.selected").removeClass("selected"),"FRAMEWRAP"===e.target.nodeName&&(e.target.className+=" selected"),"FRAMEWRAP"===e.target.parentNode.nodeName&&(e.target.parentNode.className+=" selected"),RVS.F.selectLayers({id:this.dataset.id,overwrite:!0,action:"add"}),RVS.F.setKeyframeSelected(i),"animation"===RVS.eMode.mode&&RVS.F.updateKeyframeSelected(i)):-1==e.target.className.indexOf("layerselector")&&-1==e.target.className.indexOf("layerlist_element_level")&&-1==e.target.className.indexOf("material-icons")&&("animation"===RVS.eMode.mode?void 0!==RVS.L[this.dataset.id]&&(RVS.F.selectLayers({id:this.dataset.id,overwrite:!0,action:"add",selectedKeyFrame:RVS.L[this.dataset.id].timeline.frameToIdle}),RVS.F.updateKeyframeSelected(RVS.L[this.dataset.id].timeline.frameToIdle)):window.cmdctrldown?RVS.F.selectLayers({id:this.dataset.id,overwrite:!1,action:"add"}):RVS.F.selectLayers({id:this.dataset.id,overwrite:!0,action:"add"})),jQuery(".directedit").removeClass("directedit"),!1}}),RVS.DOC.on("click",".layerlist_element_level",function(){return jQuery(document.activeElement).blur(),0<=this.className.indexOf("free_positioned_layers_toggle")?jQuery("#mainLayerListWrap_"+RVS.S.slideId).toggleClass("collapsedfreelayers"):jQuery(this).closest("li").toggleClass("collapsed"),RVS.F.saveCollapsedGroups(),!1}),RVS.DOC.on("click",".layer_allcollaps",function(){return 0<=this.className.indexOf("collapsed")?(this.className="layer_allcollaps",jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_group.collapsed").removeClass("collapsed"),jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_row.collapsed").removeClass("collapsed"),jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_column.collapsed").removeClass("collapsed")):(this.className="layer_allcollaps collapsed",jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_group").addClass("collapsed"),jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_row").addClass("collapsed"),jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_column").addClass("collapsed")),RVS.F.saveCollapsedGroups(),RVS.F.layerListScrollable("update"),!1}),RVS.DOC.on("dblclick",".layerlist_element_innerwrap",function(){var e=jQuery(this);e.addClass("directedit"),e.find(".indeplayerinput").trigger("focus")}),RVS.DOC.on("click",".indeplayerinput",function(){return!1}),RVS.DOC.on("blur",".indeplayerinput",function(){jQuery(this).closest(".directedit").removeClass("directedit")}),RVS.DOC.on("click dblclick",".fclayer_withslideend",function(){var e=RVS.F.getLayerObjPath({layerid:this.dataset.layerid,frame:"frame_999"}),t=RVS.F.getDeepVal({path:e+"start"}),i=RVS.F.getLayerAliasAndFrame({layerid:this.dataset.layerid,frame:"frame_999"}),t=jQuery(this).hasClass("endswithslide")?parseInt(t,0)-100:10*RVS.F.getSlideLength();return RVS.F.updateSliderObj({path:e+"start",val:t,txt:i+" Start",icon:"access_time"}),RVS.F.updateLayerFrame({layerid:this.dataset.layerid,frame:"frame_999"}),!1}),RVS.DOC.on("click","#timeline_collapser",function(){clearTimeout(window.closeTimeLineTimer),RVS.F.expandCollapseTimeLine(!0,"close")}),RVS.C.layerListWrap.on("mouseenter",function(){window.closeTimeLineTimer=setTimeout(function(){RVS.F.expandCollapseTimeLine(!0,"open")},400)}),RVS.C.layerListWrap.on("mouseleave",function(){clearTimeout(window.closeTimeLineTimer)}),RVS.S.llcache=void 0===RVS.S.llcache?{}:RVS.S.llcache,RVS.DOC.on("updateLayerAlias",function(e,t){document.getElementById("layerlist_element_alias_"+RVS.S.slideId+"_"+t).innerHTML=RVS.L[t].alias,"group"===RVS.L[t].type&&(document.getElementById("_group_head_title_"+RVS.S.slideId+"_"+t).innerHTML=RVS.L[t].alias),RVS.selLayers[0]==t&&(document.getElementById("updateLayerSingleAliasInput").value=RVS.L[t].alias)}),RVS.DOC.on("beforeSlideChange",function(e,t){RVS.F.stopAndPauseAllLayerAnimation(),void 0!==RVS.S.llcache[RVS.S.slideId]&&void 0!==RVS.S.llcache[RVS.S.slideId].tlLayerList&&RVS.S.llcache[RVS.S.slideId].tlLayerList.parentElement.removeChild(RVS.S.llcache[RVS.S.slideId].tlLayerList)}),RVS.DOC.on("updateScrollBars",function(e,t){RVS.F.layerListScrollable("update"),RVS.C.layerListWrap.trigger("ps-scroll-x"),RVS.C.layerListWrap.trigger("ps-scroll-y")}),RVS.TL.TL.resizable({handles:"n",minHeight:71,maxHeight:600,start:function(e,t){RVS.TL.TL.addClass("inResize")},resize:function(e,t){tpGS.gsap.set("#tlLayerListWrap",{height:t.size.height-36+"px"}),tpGS.gsap.set("#timeline",{top:"0px"}),RVS.ENV.globVerOffset=t.size.height,RVS.DOC.trigger("updatesliderlayout","layerlist.js-355"),window.timeline_in_resize=!0},stop:function(e,t){RVS.TL.TL.removeClass("inResize"),tpGS.gsap.set("#tlLayerListWrap",{height:t.size.height-36+"px"}),RVS.V.timeline_height=t.size.height,RVS.DOC.trigger("updateScrollBars"),window.timeline_in_resize=!1,RVS.F.expandCollapseTimeLine(!0,"open")}}),RVS.F.layerListScrollable("init")},RVS.F.updateZoneZIndexes=function(){tpGS.gsap.set(RVS.C.rZone.top,{zIndex:RVS.L.top.position.zIndex}),tpGS.gsap.set(RVS.C.rZone.bottom,{zIndex:RVS.L.bottom.position.zIndex}),tpGS.gsap.set(RVS.C.rZone.middle,{zIndex:RVS.L.middle.position.zIndex})},RVS.F.buildLayerLists=function(e){RVS.L=RVS.SLIDER[RVS.S.slideId].layers,!0!==i[RVS.S.slideId]&&(i[RVS.S.slideId]=!0,RVS.F.preloadUsedFonts());var t;RVS.F.updateColumnBreaksChildren(),void 0===RVS.L.top&&(t=function(){var e,t=0;for(e in RVS.L)RVS.L.hasOwnProperty(e)&&"row"===RVS.L[e].type&&(t=t<RVS.L[e].position.zIndex?RVS.L[e].position.zIndex:t);return parseInt(t)}(),RVS.L.top={uid:"top",group:{puid:-1,groupOrder:t},type:"zone",alias:"TOP ROWS",position:{zIndex:t}},RVS.L.middle={uid:"middle",group:{puid:-1,groupOrder:t},type:"zone",alias:"MID ROWS",position:{zIndex:t}},RVS.L.bottom={uid:"bottom",group:{puid:-1,groupOrder:t},type:"zone",alias:"BOTTOM ROWS",position:{zIndex:t}}),RVS.F.updateZoneZIndexes(),RVS.F.getLlength(),RVS.selLayers=[],RVS.S.llcache[RVS.S.slideId]=void 0===RVS.S.llcache[RVS.S.slideId]?{}:RVS.S.llcache[RVS.S.slideId],(e=void 0===e?{}:e).force||void 0===RVS.S.llcache[RVS.S.slideId].tlLayerList?RVS.F.reDrawListElements():void 0!==RVS.S.llcache[RVS.S.slideId].tlLayerList&&RVS.C.layerListWrap[0].appendChild(RVS.S.llcache[RVS.S.slideId].tlLayerList),RVS.F.layerListScrollable("update"),e.ignoreRebuildHTML||RVS.F.buildHTMLLayers({ignoreDrawLayers:e.ignoreDrawLayers}),e.ignoreSelectLayers||RVS.F.selectLayers()},RVS.F.getLlength=function(){for(var e in RVS.V.Llength=0,RVS.L)RVS.L.hasOwnProperty(e)&&RVS.V.Llength++},RVS.F.clearCache=function(e){if(null!=e&&void 0!==e.slides)for(var t in e.slides)e.slides.hasOwnProperty(t)&&void 0!==cache&&void 0!==RVS.S.llcache[e.slides[t]]&&void 0!==RVS.S.llcache[e.slides[t]].tlLayerList&&(RVS.S.llcache[e.slides[t]].tlLayerList.remove(),RVS.S.llcache[e.slides[t]]=void 0)},RVS.F.getLayerChildren=function(e){var t,i=void 0===e.kids?{}:e.kids;for(t in RVS.L)if(RVS.L.hasOwnProperty(t)&&(RVS.L[t].group.puid==e.layerid||("-1"==e.layerid||-1==e.layerid)&&"row"==RVS.L[t].type)){if(i[RVS.L[t].uid]={type:RVS.L[t].type,frames:{}},!e.ignoreframes)for(var a in RVS.L[t].timeline.frames)RVS.L[t].timeline.frames.hasOwnProperty(a)&&(i[RVS.L[t].uid].frames[a]=RVS.L[t].timeline.frames[a].timeline.start);!e.onelevel&&0<=jQuery.inArray(RVS.L[t].type,["column","row","group"])&&(i=RVS.F.getLayerChildren({layerid:RVS.L[t].uid,kids:i,ignoreframes:e.ignoreframes,onelevel:e.onelevel}))}return e.removeZones&&(delete i.top,delete i.bottom,delete i.middle),i},RVS.F.hasChildren=function(e){var t,i=!1;for(t in RVS.L)RVS.L.hasOwnProperty(t)&&(i=i||RVS.L[t].group.puid==e);return i},RVS.F.getVisibleLayersInList=function(){var e,t=0;for(e in RVS.L)RVS.L.hasOwnProperty(e)&&(-1===RVS.L[e].group.puid||-1===RVS.L[RVS.L[e].group.puid].group.puid&&!jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[e].group.puid).hasClass("collapsed")||-1!==RVS.L[RVS.L[e].group.puid].group.puid&&!jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[RVS.L[e].group.puid].group.puid).hasClass("collapsed"))&&t++;return t},RVS.F.expandCollapseTimeLine=function(e,t,i,a){var r,s;window.timeline_in_resize||"done"!==RVS.S.ReadyToShowAll||(s=r=RVS.TL.TL.height(),e&&((s=s<=76&&"close"!==t||"open"===t?"auto"===RVS.V.timeline_height?Math.max(RVS.V.timeline_minOpenHeight,window.innerHeight-RVS.S.ulDIM.height-65):RVS.V.timeline_height:76)!==r?i?(RVS.TL.TL[0].style.height=s+"px",RVS.ENV.globVerOffset=s,!0!==a&&RVS.DOC.trigger("updatesliderlayout","layerlist.js-142")):tpGS.gsap.to(RVS.TL.TL,.3,{height:s,ease:"power3.out",onUpdate:function(){RVS.ENV.globVerOffset=tpGS.gsap.getProperty(RVS.TL.TL[0],"height"),RVS.DOC.trigger("updatesliderlayout","layerlist.js-142")}}):RVS.ENV.globVerOffset=s,i?RVS.C.layerListWrap[0].style.height=s-36+"px":tpGS.gsap.to(RVS.C.layerListWrap,.15,{height:s-36,ease:"power3.out",onComplete:function(){RVS.DOC.trigger("updateScrollBars")}})),RVS.C.theEditor[0].style.paddingBottom=s+"px",76<s?jQuery("#timeline_collapser").show():jQuery("#timeline_collapser").hide(),clearTimeout(RVS.S.updateTimeLineHeight),o!==s&&(RVS.S.updateTimeLineHeight=setTimeout(function(){RVS.ENV.globVerOffset=s,!0!==a&&RVS.DOC.trigger("updatesliderlayout","layerlist.js-157"),o=s},170)))},RVS.F.getLayerOrder=function(){return S([],-1)},RVS.F.getLayerBeforeZIndex=function(e){var t,i,a=S([],RVS.L[e].group.puid);switch(RVS.L[e].type){case"row":case"column":for(i in a)a.hasOwnProperty(i)&&a[i].sort<RVS.L[e].group.groupOrder&&(void 0===t||a[i].sort>RVS.L[t].group.groupOrder)&&(t=a[i].id);break;default:for(i in a)a.hasOwnProperty(i)&&a[i].zIndex>RVS.L[e].position.zIndex&&(void 0===t||a[i].zIndex<RVS.L[t].position.zIndex)&&(t=a[i].id)}return t},RVS.F.getLayerAfterZIndex=function(e){var t,i,a=S([],RVS.L[e].group.puid);switch(RVS.L[e].type){case"row":case"column":for(i in a)a.hasOwnProperty(i)&&a[i].sort>RVS.L[e].group.groupOrder&&(void 0===t||a[i].sort<RVS.L[t].group.groupOrder)&&(t=a[i].id);break;default:for(i in a)a.hasOwnProperty(i)&&a[i].zIndex<RVS.L[e].position.zIndex&&(void 0===t||a[i].zIndex>RVS.L[t].position.zIndex)&&(t=a[i].id)}return t},RVS.F.updateCoveredTimelines=function(){var e=RVS.TL.TL.offset().left;RVS.TL.ct.offset().left-e<290?RVS.TL.ct[0].classList.add("covered"):RVS.TL.ct[0].classList.remove("covered"),RVS.TL.mt.offset().left-e<290?RVS.TL.mt[0].classList.add("covered"):RVS.TL.mt[0].classList.remove("covered"),RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.set&&(RVS.TL.slte.offset().left-e<290?RVS.TL.slte[0].classList.add("covered"):RVS.TL.slte[0].classList.remove("covered"),RVS.TL.slts.offset().left-e<290?RVS.TL.slts[0].classList.add("covered"):RVS.TL.slts[0].classList.remove("covered"))},RVS.F.layerListScrollable=function(e){var t;void 0===e||"init"===e?(RVS.TL._scrollLeft=0,RVS.C.layerListWrap.RSScroll({wheelPropagation:!0,suppressScrollX:!1,minScrollbarLength:30}).on("ps-scroll-y",function(){R({container:"#tl_layerList_"+RVS.S.slideId,cIdName:"tllayerlist_element"})}).on("ps-scroll-x",function(){RVS.TL._scrollLeft=this.scrollLeft,tpGS.gsap.set([jQuery("#tlLayerListWrap .context_left"),"#the_st_cl","#hovertime",".timeline_left_container"],{x:this.scrollLeft}),tpGS.gsap.set(["#timeline_top_toolbar"],{x:0-this.scrollLeft}),RVS.F.updateHoverTime({pos:!1,cont:!0}),RVS.F.updateCoveredTimelines()})):("scrollToSelected"===e&&(t=0<jQuery(".tllayerlist_element.checked").first().length?jQuery(".tllayerlist_element.checked").first().offset().top:0,o=void 0===o?RVS.TL.TL.height():o,t>RVS.S.winh-o&&t+50<RVS.S.winh||RVS.C.layerListWrap.scrollTop(RVS.C.layerListWrap.scrollTop()-(RVS.S.winh-o+40-t)).RSScroll("update")),"update"===e&&RVS.C.layerListWrap.RSScroll("update"))},RVS.F.saveCollapsedGroups=function(){RVS.SLIDER[RVS.S.slideId].slide.runtime=void 0===RVS.SLIDER[RVS.S.slideId].slide.runtime?{}:RVS.SLIDER[RVS.S.slideId].slide.runtime,RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups=[];var e,t=document.getElementsByClassName("withchildren collapsed");for(e in t)t.hasOwnProperty(e)&&void 0!==t[e].id&&RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups.push(t[e].id)},RVS.F.updateCollapsedGroups=function(){for(var e,t=0;t<=RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups.length-1;t++)void 0!==RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups[t]&&null!=(e=document.getElementById(RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups[t]))&&(e.className+=" collapsed")},RVS.F.reDrawListElements=function(){void 0!==RVS.SLIDER[RVS.S.slideId].slide.runtime&&void 0!==RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups&&RVS.F.updateCollapsedGroups();var e,o,a,r,s,n,l,t=S([],-1);void 0===RVS.S.llcache[RVS.S.slideId].tlLayerList||0==RVS.C.layerListWrap.find(".layerListContainer").length?RVS.S.llcache[RVS.S.slideId].tlLayerList=RVS.F.cE({t:"ul",id:"tl_layerList_"+RVS.S.slideId,cN:"layerListContainer"}):(void 0===RVS.S.llcache[RVS.S.slideId].tlLayerList&&(RVS.S.llcache[RVS.S.slideId].tlLayerList=document.getElementById("tl_layerList_"+RVS.S.slideId)),RVS.S.llcache[RVS.S.slideId].tlLayerList,e={container:RVS.S.llcache[RVS.S.slideId].tlLayerList.id,cIdName:"tllayerlist_element"},jQuery(e.container+" ."+e.cIdName).each(function(){jQuery(this).data("uiDraggable")&&jQuery(this).draggable("destroy")}),RVS.S.llcache[RVS.S.slideId].tlLayerList.innerHTML="",RVS.S.llcache[RVS.S.slideId].tlLayerList.parentElement.removeChild(RVS.S.llcache[RVS.S.slideId].tlLayerList)),function i(a){var r;for(var s in a.list)if(a.list.hasOwnProperty(s)){var s=a.list[s],o="zone"===s.type||"group"===s.type||"row"===s.type||"column"===s.type;let e=RVS.L[s.id],t="zone"===e.type?"":" not_zone_layer";r=RVS.F.cE({t:"li",cN:(o?"withchildren ":"")+(void 0!==e.actions&&0<e.actions.action.length?"actionmarked ":" ")+a.cIdName+" layerlist_element "+a.cIdName+"_"+e.type+" "+e.type+"_"+e.uid+t,id:a.cIdName+"_"+RVS.S.slideId+"_"+e.uid,ds:{puid:e.group.puid,type:e.type,id:e.uid}}),o&&0===s.list.length&&(r.dataset.status="empty"),r.appendChild(c(RVS.L[s.id],o)),o&&i({list:s.list,container:r.querySelector("ul"),showEmpty:!1,cIdName:a.cIdName}),"tllayerlist_element"===a.cIdName&&"top"!==s.id&&"middle"!==s.id&&"bottom"!==s.id&&RVS.F.addLayerFrames(RVS.L[s.id],r),a.container.appendChild(r)}a.showEmpty&&0===a.list.length&&((r=RVS.F.cE({t:"li",cN:a.cIdName+" nolayeravailable"})).innerHTML='<div class="context_left"><div class="layerlist_element_type"><i class="material-icons">not_interested</i></div><div class="layerlist_element_alias">No Layer Available</div></div>',a.container.appendChild(r))}({list:t,container:RVS.S.llcache[RVS.S.slideId].tlLayerList,showEmpty:!0,cIdName:"tllayerlist_element"}),RVS.C.layerListWrap[0].appendChild(RVS.S.llcache[RVS.S.slideId].tlLayerList),0<t.length?jQuery(".layerlist_element.nolayeravailable").hide():jQuery(".layerlist_element.nolayeravailable").show(),o={container:"#tl_layerList_"+RVS.S.slideId,cacheSub:"tlLayerList",cIdName:"tllayerlist_element"},l=0,jQuery(o.container+" ."+o.cIdName).draggable({helper:"clone",opacity:.5,axis:"y",start:function(e,t){var i;"zone"==this.dataset.type?jQuery(this).draggable("disable"):("row"===this.dataset.type&&RVS.TL.TL.addClass("layer_in_drag"),i=jQuery(RVS.S.llcache[RVS.S.slideId][o.cacheSub]),t.helper.width(i.width()),RVS.F.updateRelAbsZinTXT(this.dataset.id),s=jQuery(o.container).closest(".ps"),a=s.height(),RVS.S.DaD=null==RVS.S.DaD?{}:RVS.S.DaD,RVS.S.DaD.dragInListFrom=RVS.L[this.dataset.id].group.puid,RVS.S.DaD.dragInListFromType=void 0!==RVS.L[RVS.S.DaD.dragInListFrom]?RVS.L[RVS.S.DaD.dragInListFrom].type:void 0,RVS.S.DaD.dragInListTempPos=RVS.L[this.dataset.id].position.position,"column"===this.dataset.type&&jQuery("#"+o.cIdName+"_"+RVS.S.slideId+"_"+this.dataset.puid).find("."+o.cIdName+"_column").each(p),"row"===this.dataset.type&&jQuery("."+o.cIdName+"_row").each(p),0<s.length&&s.hasClass("ps--active-y")&&RVS.F.layerListScrollable("update"),setTimeout(function(){R(o)},50),n=setInterval(function(){0<s.length&&s.hasClass("ps--active-y")&&(r=i.offset().top,l<r+s[0].scrollTop+20&&0<s[0].scrollTop?(s[0].scrollTop--,R(o)):l>parseInt(r,0)+parseInt(a,0)+s[0].scrollTop-20&&s[0].scrollTop<a&&(s[0].scrollTop++,R(o)))},5))},drag:function(e,t){if("zone"!=this.dataset.type){var i=V({y:e.pageY});if(l=e.pageY,!1!==i&&(jQuery("."+o.cIdName).removeClass("beforeitemdrop").removeClass("afteritemdrop").removeClass("incolumntopdrop").removeClass("incolumndrop").removeClass("afterzonedrop"),jQuery(".grouptodropinlist").removeClass("grouptodropinlist"),RVS.S.llcache[RVS.S.slideId][o.cacheSub].classList.remove("sortToTheEnd"),e.pageY<d[1].y||!0===i.found)){var a,r="";switch(i.cover=i.cover<-18?0:i.cover,this.dataset.type){case"row":-1===i.puid&&jQuery("#"+o.cIdName+"_"+RVS.S.slideId+"_"+i.id).addClass("incolumndrop"),"top"!==i.puid&&"bottom"!==i.puid&&"middle"!==i.puid||(r=i.cover<18?"beforeitemdrop":"afteritemdrop"),"top"!==i.id&&"bottom"!==i.id&&"middle"!==i.id||(r=i.cover<18&&"top"!==i.id?"beforeitemdrop":"afteritemdrop");break;case"column":jQuery("#"+o.cIdName+"_"+RVS.S.slideId+"_"+this.dataset.puid).addClass("incolumndrop"),i.puid===this.dataset.puid&&(r=i.cover<18?"beforeitemdrop":"afteritemdrop");break;default:"zone"!==i.type&&"row"!==i.type?(-1!==i.puid&&"zone"!==i.type&&"column"!==i.type&&"row"!==i.type&&"group"!==i.type&&jQuery("#"+o.cIdName+"_"+RVS.S.slideId+"_"+i.puid).addClass("incolumndrop"),a=RVS.F.isParent(this.dataset.id,i.id),r="group"==this.dataset.type&&a?"":"group"==this.dataset.type&&"group"==i.type&&"-1"!==i.puid?i.cover<12?"beforeitemdrop":"":"group"==this.dataset.type&&""+i.puid!="-1"&&void 0!==RVS.L[i.puid]&&""+RVS.L[i.puid].group.puid!="-1"?"":"group"!=i.type||RVS.F.hasChildren(i.id)?i.cover<18?"column"!==i.type?"beforeitemdrop":"afteritemdrop":"row"!==i.type&&"column"!==i.type&&"group"!==i.type?"afteritemdrop":"column"===i.type||"group"===i.type?"incolumntopdrop":r:i.cover<12?"beforeitemdrop":11<i.cover&&i.cover<24?"incolumntopdrop":"afteritemdrop"):(i.cover<18&&"zone"===i.type&&"top"===i.id&&(r="beforeitemdrop"),"zone"===i.type&&"bottom"===i.id&&(r="afterzonedrop"))}var s,e=document.getElementById(o.cIdName+"_"+RVS.S.slideId+"_"+i.id);"group"!==i.type&&"column"!==i.type&&"-1"!==i.puid&&"column"==RVS.L[i.puid].type||"column"==i.type&&"column"==this.dataset.type?null!=(s=document.getElementById(o.cIdName+"_"+RVS.S.slideId+"_"+i.puid))&&s.classList.add("grouptodropinlist"):"column"==i.type&&"group"!==this.dataset.type&&null!=(s=document.getElementById(o.cIdName+"_"+RVS.S.slideId+"_"+i.id))&&s.classList.add("grouptodropinlist"),""+i.puid!="-1"&&"group"==this.dataset.type&&void 0!==RVS.L[i.puid]&&(""+RVS.L[i.puid].group.puid!="-1"||"beforeitemdrop"!==r&&"afteritemdrop"!==r)||(""+i.puid=="-1"||"group"!=RVS.L[i.puid].type||"group"===i.type&&"beforeitemdrop"!=r&&"group"!=this.dataset.type?0<=r.indexOf("incolumntopdrop")&&"group"==i.type&&e.classList.add("grouptodropinlist"):null!=(s=document.getElementById(o.cIdName+"_"+RVS.S.slideId+"_"+i.puid))&&s.classList.add("grouptodropinlist")),""!==r&&void 0!==e&&e.classList.add(r)}}},stop:function(e,t){if("zone"!=this.dataset.type){var i=this.dataset.id,a=(RVS.TL.TL.removeClass("layer_in_drag"),clearInterval(n),jQuery("."+o.cIdName).removeClass("beforeitemdrop").removeClass("afteritemdrop").removeClass("incolumntopdrop").removeClass("incolumndrop"),RVS.S.llcache[RVS.S.slideId][o.cacheSub].classList.remove("sortToTheEnd"),jQuery(".grouptodropinlist").removeClass("grouptodropinlist"),"column"===this.dataset.type&&jQuery("#"+o.cIdName+"_"+RVS.S.slideId+"_"+this.dataset.puid).find("."+o.cIdName+"_column").each(u),"row"===this.dataset.type&&jQuery("."+o.cIdName+"_row").each(u),V({y:e.pageY}));if(!1!==a){if(e.pageY<d[1].y||!0===a.found){s="";switch(this.dataset.type){case"row":"top"!==a.puid&&"bottom"!==a.puid&&"middle"!==a.puid||(s=a.cover<18?"before":"after"),18<=a.cover&&("top"===a.id||"bottom"===a.id||"middle"===a.id)&&(s="zone"),a.cover<18&&"middle"===a.id&&(a.id="top",s="zonebottom"),a.cover<18&&"bottom"===a.id&&(a.id="middle",s="zonebottom");break;case"column":a.puid===this.dataset.puid&&(s=a.cover<18?"before":"after");break;default:var r=RVS.F.isParent(i,a.id),s="group"==this.dataset.type&&r?s:"group"==this.dataset.type&&"group"==a.type&&"-1"!==a.puid?a.cover<17?"before":"":"group"!=a.type||RVS.F.hasChildren(a.id)?a.cover<18&&"column"!==a.type&&"row"!==a.type&&("zone"!==a.type||"top"===a.id)?"before":a.cover<18&&"column"===a.type?"column":17<a.cover&&"row"!==a.type&&"column"!==a.type&&"group"!==a.type&&"zone"!==a.type?"after":17<a.cover&&"column"===a.type?"column":17<a.cover&&"group"===a.type?"group":-1!=a.puid&&"bottom"!==a.puid||"zone"!==a.type?s:"after":a.cover<12?"before":11<a.cover&&a.cover<24?"group":"after"}}else switch(this.dataset.type){case"row":case"column":break;default:s="after",a.id=function(e){var t,i,a=0;for(i in e)e.hasOwnProperty(i)&&e[i].y>=a&&(t=e[i],a=e[i].y);return t}(d).id}"absolute"==RVS.S.DaD.dragInListTempPos&&"column"===s&&"column"!==RVS.S.DaD.dragInListFromType&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i+".position.position",val:"relative",uid:i}),""!==s&&RVS.F.sortLayer({layer:i,target:s,dropto:s,env:a.id}),RVS.F.updateLayerPositionClass(i),RVS.F.selectedLayersVisualUpdate()}}},revert:"true"}),RVS.F.updateCollapsedGroups(),RVS.F.checkLockedLayers(),RVS.F.checkShowHideLayers()},RVS.F.updateRelAbsZinTXT=function(e){void 0===e&&RVS.L[void 0!==e]||requestAnimationFrame(function(){RVS.H[e].relabszin=void 0===RVS.H[e].relabszin?document.getElementById("layer_raz_info_"+RVS.S.slideId+"_"+e):RVS.H[e].relabszin,RVS.H[e].relabszin.innerHTML=RVS.L[e].position.position+" <b>"+(RVS.L[e].position.zIndex<10?"0":"")+RVS.L[e].position.zIndex+'</b><label_icon class="ui_free_layers"></label_icon>'})},RVS.F.sortLayerStepOne=function(e){if(e.env!==e.layer){var t="#tllayerlist_element_"+RVS.S.slideId+"_",i=jQuery(t+e.layer);switch(e.target){case"after":"group"==RVS.L[e.layer].type&&1<RVS.F.getLayerDepth({layer:e.env})&&(e.env=null==RVS.L[RVS.L[e.env].group.puid]||"column"!==RVS.L[RVS.L[e.env].group.puid].type?RVS.L[e.env].group.puid:e.env),"row"!==RVS.L[e.layer].type&&"row"===RVS.L[e.env].type?i.appendTo("#tl_layerList_"+RVS.S.slideId):i.insertAfter(t+e.env);break;case"before":"group"==RVS.L[e.layer].type&&1<RVS.F.getLayerDepth({layer:e.env})&&(e.env=null==RVS.L[RVS.L[e.env].group.puid]||"column"!==RVS.L[RVS.L[e.env].group.puid].type?RVS.L[e.env].group.puid:e.env),"row"!==RVS.L[e.layer].type&&"row"===RVS.L[e.env].type?i.appendTo("#tl_layerList_"+RVS.S.slideId):i.insertBefore(t+e.env);break;case"zone":RVS.L[e.env].group.puid!==e.env&&i.prependTo(t+e.env+">ul");break;case"zonebottom":"row"==RVS.L[e.layer].type?RVS.L[e.env].group.puid!==e.env&&i.appendTo(t+e.env+">ul"):i.appendTo("#tl_layerList_"+RVS.S.slideId);break;case"firstingroup":case"group":case"column":i.prependTo(t+e.env+">ul");break;case"columnend":i.appendTo(t+e.env+">ul");break;case"veryend":"row"==RVS.L[e.layer].type?i.appendTo(t+"bottom>ul"):i.appendTo("#tl_layerList_"+RVS.S.slideId)}}},RVS.F.sortLayerStepTwo=function(e){var t,i;"column"===e.dropto&&"absolute"!==e.pospos&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.x.#size#.v",val:0}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.y.#size#.v",val:0}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.horizontal.#size#.v",val:"left"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.vertical.#size#.v",val:"top"})),void 0!==e.resetPosition&&("group"===e.dropto||"root"===e.dropto||"column"===e.dropto&&"absolute"==e.pospos)&&("root"===e.dropto&&(RVS.L[e.layer].position.ingrouppositoin=RVS.L[e.layer].position.position,RVS.L[e.layer].position.position="absolute"),t=e.resetPosition.x-RVS.H[e.layer].w_offsetcache.horizontal,i=e.resetPosition.y-RVS.H[e.layer].w_offsetcache.vertical,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.x.#size#.v",val:t}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.y.#size#.v",val:i}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.horizontal.#size#.v",val:"left"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.vertical.#size#.v",val:"top"}))},RVS.F.sortAllSelectedLayers=function(e){var t,i=jQuery.extend({},e),a=RVS.selLayers.length-1;for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(i.layer=RVS.selLayers[a-t],"row"!==RVS.L[i.layer].type)&&"column"!==RVS.L[i.layer].type&&"groupi"!==RVS.L[i.layer].type&&RVS.F.sortLayerStepOne(i);for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(i.layer=RVS.selLayers[a-t],i.positionoffset=t,"row"!==RVS.L[i.layer].type)&&"column"!==RVS.L[i.layer].type&&"groupi"!==RVS.L[i.layer].type&&RVS.F.sortLayerStepTwo(i);r(),RVS.F.updateZIndexTable(),RVS.F.reOrderHTMLLayers()},RVS.F.sortLayer=function(e){RVS.F.sortLayerStepOne(e),setTimeout(function(){RVS.F.openBackupGroup({id:"layersorting",txt:"Layer Sorting",icon:"sort_by_alpha"}),RVS.F.sortLayerStepTwo(e),r(),RVS.F.updateZIndexTable(),RVS.F.closeBackupGroup({id:"layersorting"}),RVS.F.reOrderHTMLLayers(),e.redraw&&RVS.F.updateSelectedHtmlLayers(!0),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateLayerPositionClass(e.uid),RVS.F.selectedLayersVisualUpdate()},50)},RVS.F.getChildrenAmount=function(e){var t,i=RVS.F.getLayerChildren({layerid:"root"==e?"-1":e,ignoreframes:!0,onelevel:!0,removeZones:!0}),a=0;for(t in i)i.hasOwnProperty(t)&&a++;return a},RVS.F.updateZIndexTable=function(e){var t,i,a=jQuery("#tl_layerList_"+RVS.S.slideId+" .layerlist_element"),r={};for(t in a)a.hasOwnProperty(t)&&void 0!==a[t]&&void 0!==a[t].dataset&&void 0!==a[t].dataset.id&&(r[i="-1"==(i=RVS.L[a[t].dataset.id].group.puid)||-1===i?"root":i]=void 0===r[i]?{min:0,max:RVS.F.getChildrenAmount(i)+5}:r[i],RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+a[t].dataset.id+".position.zIndex",val:r[i].max}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+a[t].dataset.id+".group.groupOrder",val:"root"==i||void 0!==RVS.L[i]&&"group"===RVS.L[i].type?r[i].max:r[i].min}),"zone"!==RVS.L[a[t].dataset.id].type&&tpGS.gsap.set(RVS.H[a[t].dataset.id].w,{zIndex:r[i].max}),r[i].max--,r[i].min++);RVS.F.updateZoneZIndexes()}}(),function(e){"use strict";function t(){this.reads=[],this.writes=[],this.raf=a.bind(e)}function r(e){e.scheduled||(e.scheduled=!0,e.raf(function(e){var t,i=e.writes,a=e.reads;try{a.length,s(a),i.length,s(i)}catch(e){t=e}if(e.scheduled=!1,(a.length||i.length)&&r(e),t){if(t.message,!e.catch)throw t;e.catch(t)}}.bind(null,e)))}function s(e){for(var t;t=e.shift();)t()}function i(e,t){t=e.indexOf(t);return!!~t&&!!e.splice(t,1)}var a=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)},o=(t.prototype={constructor:t,measure:function(e,t){t=t?e.bind(t):e;return this.reads.push(t),r(this),t},mutate:function(e,t){t=t?e.bind(t):e;return this.writes.push(t),r(this),t},clear:function(e){return i(this.reads,e)||i(this.writes,e)},extend:function(e){if("object"!=typeof e)throw new Error("expected object");var t,i=Object.create(this),a=i,r=e;for(t in r)r.hasOwnProperty(t)&&(a[t]=r[t]);return i.fastdom=this,i.initialize&&i.initialize(),i},catch:null},e.fastdom=e.fastdom||new t);"function"==typeof define?define(function(){return o}):"object"==typeof module&&(module.exports=o)}("undefined"!=typeof window?window:this),function(){RVS.RSCBA={a:["width","height","maxWidth","maxHeight","minWidth","minHeight"],ai:["layer_width","layer_height","layer_max_width","layer_max_height","layer_min_width","layer_min_height"],t:["fontSize","lineHeight","letterSpacing"],ti:["layer_font_size_idle","layer_line_height_idle","layer_letter_spacing_idle"],f:["transform","mask","chars","words","lines"],sh:["hoffset","voffset","blur","spread"]};var s,o,r=["horizontal","vertical","borderStyle","width","height","x","y","lineHeight","fontSize","color","textAlign","fontWeight","letterSpacing","blur","hoffset","voffset","spread","frameX","frameY","charsX","charsY","wordsX","wordsY","linesX","linesY","whiteSpace"];function w(e){var t="start";void 0!==e.container&&e.container.find(">"+e.type).each(function(){void 0!==RVS.L[e.uid]&&void 0!==RVS.L[e.uid].group.puid&&void 0!==RVS.L[this.dataset.uid].group.puid&&RVS.L[this.dataset.uid].group.puid==RVS.L[e.uid].group.puid&&RVS.L[this.dataset.uid].group.puid!=e.uid&&e.uid!==this.dataset.uid&&(t=void 0!==RVS.L[RVS.L[e.uid].group.puid]&&"group"===RVS.L[RVS.L[e.uid].group.puid].type?RVS.L[this.dataset.uid].group.groupOrder>RVS.L[e.uid].group.groupOrder&&void 0!==RVS.H[this.dataset.uid]?this.dataset.uid:t:RVS.L[this.dataset.uid].group.groupOrder<=RVS.L[e.uid].group.groupOrder&&void 0!==RVS.H[this.dataset.uid]?this.dataset.uid:t)}),"start"===t&&e.container?e.container[0].prepend(e.layer):RVS.H[t]&&RVS.F.insertAfter(e.layer,RVS.H[t].w[0])}function b(e){void 0!==e&&e.resizable({handles:"se",start:function(e,t){switch(RVS.L[RVS.selLayers[0]].type){case"text":case"button":RVS.F.showForms("*slidelayout**mode__slidecontent*#form_layer_style",!0);break;default:RVS.F.showForms("*slidelayout**mode__slidecontent*#form_layer_position",!0)}RVS.C.layergrid.addClass("layersInDragorResize"),RVS.F.doResizeLayers({mode:"init"}),window.lastReScalerWidth=RVS.H[RVS.selLayers[0]].w.width()},resize:function(e,t){t=Math.round(t.size.width/t.originalSize.width*100)/100;t!==window.lastReScalerSize&&RVS.F.doResizeLayers({mode:"update",size:t}),window.lastReScalerSize=t},aspectRatio:!0,stop:function(e,t){var i=Math.round(t.size.width/t.originalSize.width*100)/100;RVS.F.doResizeLayers({mode:"set",size:i}),t.helper[0].style.width="100%",t.helper[0].style.height="100%",RVS.C.layergrid.removeClass("layersInDragorResize"),RVS.S.justresized=!0,setTimeout(function(){RVS.S.justresized=!1},100)}})}function n(e,t,i,a){var r=void 0===t||"auto"==t||"none"==t||!RVS.F.isNumeric(parseInt(t,0))||!RVS.F.isNumeric(t)&&0<t.indexOf("%")?t:(r=Math[e](parseInt(t,0)*i),void 0===a?r:r+a);return r}function a(e){var t,i={x:e.position.x[RVS.screen].v,y:e.position.y[RVS.screen].v,padding:jQuery.extend(!0,{},e.idle.padding[RVS.screen].v),borderRadius:jQuery.extend(!0,{},e.idle.borderRadius.v),width:e.size.width[RVS.screen].v,height:e.size.height[RVS.screen].v,minHeight:e.size.minHeight[RVS.screen].v,maxHeight:e.size.maxHeight[RVS.screen].v,minWidth:e.size.minWidth[RVS.screen].v,maxWidth:e.size.maxWidth[RVS.screen].v,wrap:e.idle.whiteSpace[RVS.screen].v,boxShadow:{hoffset:e.idle.boxShadow.hoffset[RVS.screen].v,voffset:e.idle.boxShadow.voffset[RVS.screen].v,blur:e.idle.boxShadow.blur[RVS.screen].v,spread:e.idle.boxShadow.spread[RVS.screen].v}};for(t in 0<=jQuery.inArray(e.type,["text","button"])&&(i.fontSize=e.idle.fontSize[RVS.screen].v,i.letterSpacing=e.idle.letterSpacing[RVS.screen].v,i.lineHeight=e.idle.lineHeight[RVS.screen].v),i.frames={},e.timeline.frames)i.frames[t]={transform:{x:e.timeline.frames[t].transform.x[RVS.screen].v,y:e.timeline.frames[t].transform.y[RVS.screen].v},mask:{x:e.timeline.frames[t].mask.x[RVS.screen].v,y:e.timeline.frames[t].mask.y[RVS.screen].v},chars:{x:e.timeline.frames[t].chars.x[RVS.screen].v,y:e.timeline.frames[t].chars.y[RVS.screen].v},words:{x:e.timeline.frames[t].words.x[RVS.screen].v,y:e.timeline.frames[t].words.y[RVS.screen].v},lines:{x:e.timeline.frames[t].lines.x[RVS.screen].v,y:e.timeline.frames[t].lines.y[RVS.screen].v}};return i}function l(e){var t=RVS.L[e.layerid],i=RSCBS[e.layerid],a=RVS.S.slideId+".layers."+e.layerid;if(0<=jQuery.inArray(t.type,["text","button"]))for(var r in RVS.RSCBA.t)RVS.F.updateSliderObj({path:a+".idle."+RVS.RSCBA.t[r]+"."+RVS.screen+".v",val:n("round",i[RVS.RSCBA.t[r]],e.size),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});for(r in RVS.RSCBA.a)RVS.F.updateSliderObj({path:a+".size."+RVS.RSCBA.a[r]+"."+RVS.screen+".v",val:n("round",i[RVS.RSCBA.a[r]],e.size),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});for(var s=0;s<4;s++)RVS.F.updateSliderObj({path:a+".idle.padding."+RVS.screen+".v."+s,val:n("round",i.padding[s],e.size),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});if(!0===t.idle.boxShadow.inuse)for(var r in RVS.RSCBA.sh)RVS.F.updateSliderObj({path:a+".idle.boxShadow."+RVS.RSCBA.sh[r]+"."+RVS.screen+".v",val:n("round",i.boxShadow[RVS.RSCBA.sh[r]],e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});for(s in RVS.L[e.layerid].timeline.frames)for(var r in RVS.RSCBA.f)RVS.F.updateSliderObj({path:a+".timeline.frames."+s+"."+RVS.RSCBA.f[r]+".x."+RVS.screen+".v",val:n("round",i.frames[s][RVS.RSCBA.f[r]].x,e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup}),RVS.F.updateSliderObj({path:a+".timeline.frames."+s+"."+RVS.RSCBA.f[r]+".y."+RVS.screen+".v",val:n("round",i.frames[s][RVS.RSCBA.f[r]].y,e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});e.ingroup&&(RVS.F.updateSliderObj({path:a+".position.x."+RVS.screen+".v",val:n("round",i.x,e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup}),RVS.F.updateSliderObj({path:a+".position.y."+RVS.screen+".v",val:n("round",i.y,e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup})),RVS.F.drawHTMLLayer({uid:e.layerid}),RVS.F.updateEasyInputs({container:jQuery("#form_layer_style"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateEasyInputs({container:jQuery("#form_layer_advstyle"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateEasyInputs({container:jQuery("#form_layer_position"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.DOC.trigger("layerresized",{layerid:e.layerid})}function d(e){var t=RVS.L[e.layerid],i=RSCBS[e.layerid];if(RVS.cC=void 0===RVS.cC?{}:RVS.cC,0<=jQuery.inArray(t.type,["text","button"]))for(var a in RVS.RSCBA.t)t.idle[RVS.RSCBA.t[a]][RVS.screen].v=n("round",i[RVS.RSCBA.t[a]],e.size),RVS.cC["js_"+RVS.RSCBA.t[a]]=void 0===RVS.cC["js_"+RVS.RSCBA.t[a]]?document.getElementById(RVS.RSCBA.ti[a]):RVS.cC["js_"+RVS.RSCBA.t[a]],RVS.cC["js_"+RVS.RSCBA.t[a]].value=t.idle[RVS.RSCBA.t[a]][RVS.screen].v+"px";for(a in RVS.RSCBA.a)t.size[RVS.RSCBA.a[a]][RVS.screen].v=n("width"===RVS.RSCBA.a[a]?"ceil":"round",i[RVS.RSCBA.a[a]],e.size),RVS.cC["js_"+RVS.RSCBA.a[a]]=void 0===RVS.cC["js_"+RVS.RSCBA.a[a]]?document.getElementById(RVS.RSCBA.ai[a]):RVS.cC["js_"+RVS.RSCBA.a[a]],RVS.cC["js_"+RVS.RSCBA.a[a]].value=t.size[RVS.RSCBA.a[a]][RVS.screen].v+(RVS.F.isNumeric(t.size[RVS.RSCBA.a[a]][RVS.screen].v)?"px":"");if(!0===t.idle.boxShadow.inuse)for(var a in RVS.RSCBA.sh)t.idle.boxShadow[RVS.RSCBA.sh[a]][RVS.screen].v=n("round",i.boxShadow[RVS.RSCBA.sh[a]],e.size,"px");for(var r=0;r<4;r++)t.idle.padding[RVS.screen].v[r]=n("round",i.padding[r],e.size);e.ingroup&&(t.position.x[RVS.screen].v=n("round",i.x,e.size,"px"),t.position.y[RVS.screen].v=n("round",i.y,e.size,"px")),RVS.F.drawHTMLLayer({uid:e.layerid,ignoreLayerAnimation:!0})}function u(e){RVS.H[e].w[0].className=RVS.H[e].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("").split("drop_after_layer").join("").split("drop_before_layer").join("").split("drop_before_firstlayer").join("").split("drop_after_lastlayer").join("")}function R(){var e=void 0!==RVS.S.DaD.target?RVS.S.DaD.target.into:"free";"column"===e||"group"===e?(void 0!==RVS.S.DaD.target&&(RVS.C.layergrid[0].classList.remove("drop_in_root"),void 0!==RVS.S.DaD.target.rowID&&"group"!==RVS.S.DaD.target.rowID&&(RVS.H[RVS.S.DaD.target.rowID].w[0].className+=" dont_blur drop_over_layer"),void 0!==RVS.S.DaD.target.columnID&&(RVS.H[RVS.S.DaD.target.columnID].w[0].className+=" dont_blur drop_over_layer","none"!==RVS.SLIDER.settings.snap.adjust&&RVS.F.clearSnapVisual(),void 0===RVS.S.DaD.target.elementID)&&"relative"===RVS.L[RVS.S.DaD.currentLayerId].position.position&&(RVS.S.DaD.target.columnTop?RVS.H[RVS.S.DaD.target.columnID].w[0].classList.add("drop_before_firstlayer"):RVS.H[RVS.S.DaD.target.columnID].w[0].classList.add("drop_after_lastlayer")),void 0!==RVS.S.DaD.target.elementID)&&"absolute"!==RVS.S.DaD.draggedPosType&&(RVS.S.DaD.target.elementBefore?RVS.H[RVS.S.DaD.target.elementID].w[0].classList.add("drop_before_layer"):RVS.H[RVS.S.DaD.target.elementID].w[0].classList.add("drop_after_layer")),"column"==RVS.S.DaD.target.columnType&&0==RVS.S.DaD.showInMini&&"absolute"!==RVS.S.DaD.draggedPosType&&(RVS.S.DaD.showInMini=!0,tpGS.gsap.set(RVS.S.DaD.uiHelper,{left:(RVS.S.mP.left-RVS.S.layer_grid_offset.left)/RVS.zoom,top:(RVS.S.mP.top-RVS.S.layer_grid_offset.top)/RVS.zoom}),tpGS.gsap.to(RVS.S.DaD.uiHelper,.3,{transformOrigin:"0 0",width:RVS.S.DaD.originalWidth,display:RVS.L[RVS.S.DaD.currentLayerId].idle.display,opacity:.75,scale:.6}))):"free"===e&&(RVS.S.DaD.showInMini&&1==RVS.S.DaD.showInMini&&tpGS.gsap.to(RVS.S.DaD.uiHelper,.3,{width:RVS.L[RVS.S.DaD.currentLayerId].size.width[RVS.screen].v,display:"block",scale:1}),RVS.S.DaD.showInMini=!1,void 0!==RVS.S.DaD.target)&&(RVS.C.layergrid.addClass("drop_in_root"),void 0!==RVS.S.DaD.target.rowID&&-1!==RVS.S.DaD.target.rowID&&"group"!==RVS.S.DaD.target.rowID&&(RVS.H[RVS.S.DaD.target.rowID].w[0].className=RVS.H[RVS.S.DaD.target.rowID].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("")),void 0!==RVS.S.DaD.target.columnID&&(RVS.H[RVS.S.DaD.target.columnID].w[0].className=RVS.H[RVS.S.DaD.target.columnID].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("").split("drop_before_firstlayer").join("").split("drop_after_lastlayer")),void 0!==RVS.S.DaD.target.elementID&&(RVS.H[RVS.S.DaD.target.elementID].w[0].className=RVS.H[RVS.S.DaD.target.elementID].w[0].className.split("drop_after_layer").join("").split("drop_before_layer").join("")),-1!==RVS.S.DaD.lastRegisteredRow)&&"group"!==RVS.S.DaD.lastRegisteredRow&&void 0!==RVS.S.DaD.lastRegisteredRow&&void 0!==RVS.S.DaD.lastRegisteredRow&&(RVS.H[RVS.S.DaD.lastRegisteredRow].w.className+=" dont_blur drop_over_layer")}function V(){for(var e in RVS.H)delete RVS.H[e].coor}function e(e){var t=jQuery(e.id);t.addClass("selected"),jQuery(e.remove).removeClass("selected"),jQuery("#toolkit_selector_ph_icon").html(t[0].dataset.toolkiticon),jQuery("#toolkit_selector_ph_icon_sub").html(t[0].dataset.toolkiticonsub),e.multi&&0===jQuery("#selectbydraw").length?jQuery("#rev_slider_ul").append('<div id="selectbydraw"></div>'):e.multi||jQuery("#selectbydraw").remove(),window.RS_sel_and_add=e.add}RVS.F.initLayerTools=function(){RVS.DOC.on("addImportedLayers",function(e,t){}),RVS.C.copyToClipboardHandle=document.getElementById("do_copy_clipboard_layer"),RVS.C.pasteFromClipboardHandle=document.getElementById("do_paste_clipboard_layer"),RVS.C.copyToClipboardHandle.addEventListener("click",RVS.F.copyToClipboardHandle_FC),RVS.C.pasteFromClipboardHandle.addEventListener("click",RVS.F.pasteFromClipboardHandle_FC),RVS.DOC.on("copyhoversettings",function(e,t){if(0!==RVS.selLayers.length&&(void 0===t||"checkiffirst"!==t||!0!==RVS.L[RVS.selLayers[0]].hover.copied)){for(var i in RVS.selLayers){var a;RVS.selLayers.hasOwnProperty(i)&&((a=RVS.L[RVS.selLayers[i]]).hover.copied=!0,a.hover.backgroundColor=a.idle.backgroundColor,a.hover.borderColor=a.idle.borderColor,a.hover.color=a.idle.color[RVS.screen].v,a.hover.borderRadius=jQuery.extend(!0,{},a.idle.borderRadius),a.hover.borderStyle=a.idle.borderStyle[RVS.screen].v,a.hover.borderWidth=a.idle.borderWidth.map(e=>e),RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]}))}RVS.F.updateEasyInputs({container:jQuery("#form_layer_hover"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})}}),RVS.DOC.on("click",".add_linebreak",function(){var e,t,i=new Array;for(e in RVS.F.openBackupGroup({id:"addLineBreak",txt:"Add LineBreak",icon:"add",lastkey:"layer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&i.push(RVS.selLayers[e]);for(e in i)!i.hasOwnProperty(e)||-1===RVS.L[i[e]].group.puid||"column"!==RVS.L[RVS.L[i[e]].group.puid].type&&"group"!==RVS.L[RVS.L[i[e]].group.puid].type||(t=RVS.F.addLayer({type:"linebreak",forceSelect:!1,subtype:this.dataset.subtype,libevent:this.dataset.libevent,libfilters:this.dataset.libfilters}),RVS.F.intelligentUpdateValuesOnLayer(t),RVS.F.sortLayer({layer:""+t,target:this.dataset.pos,env:""+i[e]}));RVS.F.closeBackupGroup({id:"addLineBreak",txt:"Add LineBreak",icon:"add",lastkey:"layer"})}),RVS.DOC.on("updateRowPosition",function(e,t){if(null!=t&&void 0!==t.val)for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&("row"===RVS.L[RVS.selLayers[i]].type?RVS.L[RVS.selLayers[i]].group.puid!==t.val&&RVS.F.sortLayer({layer:RVS.selLayers[i],target:"zone",env:t.val}):"column"===RVS.L[RVS.selLayers[i]].type&&(i=RVS.L[RVS.selLayers[i]].group.puid,RVS.L[i].group.puid!==t.val)&&RVS.F.sortLayer({layer:i,target:"zone",env:t.val}))}),RVS.DOC.on("click","#import_layers",function(){return RVS.F.openObjectLibrary({types:["modules"],filter:"all",selected:["modules"],context:"editor",depth:"layers",updatelist:!1,staticalso:!0,success:{layers:"addImportedLayers"}}),!1}),RVS.DOC.on("click","#add_from_layerlibrary",function(){return RVS.F.openObjectLibrary({types:["layers"],filter:"all",selected:["layers"],context:"editor",depth:"grouplayers",success:{layers:"addLayerLibrary"}}),!1}),RVS.DOC.on("click",".colselector",function(){jQuery("#row_column_structure").val(this.dataset.col).change()}),RVS.DOC.on("click","._group_lock_toggle_",function(){RVS.L[this.dataset.uid].group.locked=void 0===RVS.L[this.dataset.uid].group.locked||!RVS.L[this.dataset.uid].group.locked,RVS.F.updateGroupLocks()}),RVS.DOC.on("update blur change","#row_column_structure",function(){var e;void 0!==this.value&&""!=this.value&&(e=this.value=RVS.F.figureColumnSizes({plain:this.value}).plain,jQuery("#colselector_wrap .colselector").each(function(){e==RVS.F.sanitize_columns(this.dataset.col)?this.className="colselector selected":this.className="colselector"}))}),RVS.DOC.on("addMetaToLayer",function(e,t){window.metatarget=t.eventparam,RVS.F.RSDialog.create({modalid:"rbm_layer_metas",bgopacity:.5}),jQuery("#rbm_layer_metas .rbm_content").RSScroll({wheelPropagation:!1,suppressScrollX:!0})}),RVS.DOC.on("click",".mdl_group_header",function(){jQuery(this).closest(".mdl_group").toggleClass("closed")}),RVS.DOC.on("click","#rbm_layer_metas .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("click",".mdl_group_member",function(){if("layer"===window.metatarget){var e,t,i,a,r,s=jQuery("#ta_layertext")[0].selectionStart;for(e in RVS.F.openBackupGroup({id:"insertMeta",txt:"Insert Meta Data",icon:"note_add"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(t=RVS.selLayers[e],i=RVS.S.slideId+".layers."+t+".text",a=RVS.L[t].text.substring(0,s),r=RVS.L[t].text.substring(s,RVS.L[t].text.length),RVS.F.updateSliderObj({path:i,val:a+this.dataset.val+r}),RVS.F.redrawTextLayerInnerHTML(t),RVS.F.drawHTMLLayer({uid:t}));RVS.F.closeBackupGroup({id:"insertMeta"}),RVS.F.updateLayerInputFields()}else{var o=jQuery(window.metatarget),s=o[0].selectionStart,n=o.val().substring(0,s)+this.dataset.val+o.val().substring(s,o.val().length);o.val(n).change(),RVS.F.RSDialog.close()}}),RVS.DOC.on("checkforaudiolayer",RVS.F.checkForAudioLayer),RVS.DOC.on("click",".add_layer",function(e,t){var i,a;"import_layers"!==this.id&&"add_from_layerlibrary"!==this.id&&(i={type:this.dataset.type,forceSelect:!0,subtype:this.dataset.subtype,evt:this.dataset.evt,libevent:this.dataset.libevent,filter:this.dataset.filter,selected:this.dataset.selected,libfilters:this.dataset.libfilters,extensiongroup:this.dataset.extensiongroup,subsubtype:this.dataset.subsubtype},void 0!==this.dataset.fromobjlib?(a=null==i.libfilters?["all"]:i.libfilters.split(","),i.filter="undefined"==i.filter||null==i.filter?"all":i.filter,i.selected=["undefined"==i.selected||null==i.selected?a[0]:i.selected],i.success={custom:null==i.libevent?i.success:i.libevent},i.extension=i.extensiongroup,i.types=a,RVS.F.openObjectLibrary(i)):(a=RVS.F.addLayer(i),RVS.F.intelligentUpdateValuesOnLayer(a),RVS.F.selectLayers({id:a,overwrite:!0,action:"add"})))}),RVS.DOC.on("click","#do_delete_layer",function(e){RVS.DOC.trigger("do_delete_layer")}),RVS.DOC.on("click",".all_layer_selector",function(){return RVS.DOC.trigger("do_select_all_layer"),!1}),RVS.DOC.on("click","#do_duplicate_layer",function(){RVS.DOC.trigger("do_duplicate_layer")}),RVS.DOC.on("click","#do_copy_layer",function(){RVS.DOC.trigger("do_copy_layer")}),RVS.DOC.on("click","#do_paste_layer",function(){RVS.DOC.trigger("do_paste_layer")}),RVS.DOC.on("mouseenter","#do_background_layer, #do_foreground_layer",function(){var e=RVS.selLayers[0];void 0!==RVS.H[e]&&tpGS.gsap.set(RVS.H[e].w,{zIndex:RVS.L[e].position.zIndex})}),RVS.DOC.on("mouseleave","#do_background_layer, #do_foreground_layer",function(){RVS.F.updateSelectedHtmlLayers()}),RVS.DOC.on("click","#do_background_layer",function(){var e=RVS.selLayers[0],t=RVS.F.getLayerAfterZIndex(e);switch(RVS.L[e].type){case"row":void 0!==t?RVS.F.sortLayer({layer:e,target:"after",env:t,redraw:!0}):"top"===RVS.L[e].group.puid?RVS.F.sortLayer({layer:e,target:"zone",env:"middle",redraw:!0}):"middle"===RVS.L[e].group.puid&&RVS.F.sortLayer({layer:e,target:"zone",env:"bottom",redraw:!0});break;case"column":void 0!==t&&RVS.F.sortLayer({layer:e,target:"after",env:t,redraw:!0});break;default:-1===jQuery.inArray(t,["top","bottom","middle"])&&void 0!==RVS.L[e].group&&-1!==RVS.L[e].group.puid&&"column"===RVS.L[RVS.L[e].group.puid].type?(t=RVS.F.getPrevNextLayerInOrder(e,"next"))!==e&&RVS.F.sortLayer({layer:e,target:"after",env:t,redraw:!0}):void 0!==t&&(t="top"===t||"middle"===t?"bottom":t,RVS.F.sortLayer({layer:e,target:"after",env:t,redraw:!0}))}}),RVS.DOC.on("click","#do_foreground_layer",function(){var e=RVS.selLayers[0],t=RVS.F.getLayerBeforeZIndex(e);switch(RVS.L[e].type){case"row":void 0!==t?RVS.F.sortLayer({layer:e,target:"before",env:t,redraw:!0}):"bottom"===RVS.L[e].group.puid?RVS.F.sortLayer({layer:e,target:"zonebottom",env:"middle",redraw:!0}):"middle"===RVS.L[e].group.puid&&RVS.F.sortLayer({layer:e,target:"zonebottom",env:"top",redraw:!0});break;case"column":void 0!==t&&RVS.F.sortLayer({layer:e,target:"before",env:t,redraw:!0});break;default:-1===jQuery.inArray(t,["top","bottom","middle"])&&void 0!==RVS.L[e].group&&-1!==RVS.L[e].group.puid&&"column"===RVS.L[RVS.L[e].group.puid].type?(t=RVS.F.getPrevNextLayerInOrder(e,"prev"))!==e&&RVS.F.sortLayer({layer:e,target:"before",env:t,redraw:!0}):void 0!==t&&(t="bottom"===t||"middle"===t?"top":t,RVS.F.sortLayer({layer:e,target:"before",env:t,redraw:!0}))}}),RVS.F.clearKeyDowns=function(){window.cmdctrldown=!1,window.shiftdown=!1,window.altdown=!1},window.addEventListener("blur",RVS.F.clearKeyDowns),window.addEventListener("focus",RVS.F.clearKeyDowns),RVS.DOC.on("keydown",function(e){window.shiftdown=e.shiftKey,window.altdown=e.altKey;var t=!1,i=window.shiftdown?10:1;if(("MacOS"===RVS.S.OSName&&e.metaKey&&!e.ctrlKey||e.ctrlKey)&&(window.cmdctrldown=!0),RVS.S.builderHover&&("none"===RVS.S.inFocus||void 0===RVS.S.inFocus)){if(!window.shiftdown||"layer"===RVS.eMode.top&&"#form_layer_animation"===RVS.eMode.menu||RVS.DOC.trigger("squareselection"),!window.cmdctrldown||"layer"===RVS.eMode.top&&"#form_layer_animation"===RVS.eMode.menu||RVS.DOC.trigger("cursorselectionadd"),window.shiftdown&&window.altdown)switch(e.keyCode){case 67:RVS.F.copyToClipboardHandle_FC();break;case 86:RVS.F.pasteFromClipboardHandle_FC()}if("MacOS"===RVS.S.OSName&&e.metaKey&&!e.ctrlKey||e.ctrlKey)switch(e.keyCode){case 65:return RVS.DOC.trigger("do_select_all_layer"),!1;case 67:window.shiftdown||RVS.DOC.trigger("do_copy_layer");break;case 86:window.shiftdown||RVS.DOC.trigger("do_paste_layer");break;case 74:!0!==window.altdown&&RVS.DOC.trigger("do_duplicate_layer");break;case 79:t=document.getElementById("magnet_fr_sticky_inh").checked=!0;break;case 73:t=document.getElementById("magnet_fr_sticky").checked=!0;break;case 85:t=document.getElementById("magnet_fr_none").checked=!0}switch(e.keyCode){case 8:case 46:return RVS.DOC.trigger("do_delete_layer"),!1;case 37:return RVS.F.moveLayerByKeys({x:-1*i,y:0}),!1;case 39:return RVS.F.moveLayerByKeys({x:i,y:0}),!1;case 38:return RVS.F.moveLayerByKeys({x:0,y:-1*i}),!1;case 40:return RVS.F.moveLayerByKeys({x:0,y:i}),!1}}if(t)return e.preventDefault(),!1}),RVS.DOC.on("keyup",function(e){window.shiftdown=e.shiftKey,window.altdown=e.altKey,window.cmdctrldown="MacOS"===RVS.S.OSName&&e.metaKey&&!e.ctrlKey||e.ctrlKey,window.shiftdown||window.cmdctrldown||RVS.DOC.trigger("cursorselection"),window.moveByKeyboard&&(RVS.F.closeBackupGroup({id:"LayerPosition"}),window.moveByKeyboard=!1)}),RVS.DOC.on("click",".ui_free_layers, .ui_top_row_layers",function(){var e=jQuery(this);e.toggleClass("selected"),e.hasClass("selected")?(jQuery("#rev_builder_inner").removeClass(this.dataset.realref),jQuery("#timeline").removeClass(this.dataset.ref)):(jQuery("#rev_builder_inner").addClass(this.dataset.realref),jQuery("#timeline").addClass(this.dataset.ref))}),RVS.DOC.on("click dblclick","._lc_",function(e){if(void 0!==RVS.S.inFocus&&"none"!==RVS.S.inFocus&&RVS.S.inFocus.history&&RVS.S.inFocus.value&&RVS.S.inFocus.history!=RVS.S.inFocus.value&&jQuery(RVS.S.inFocus).trigger("change"),!("click"===e.type&&RVS.S.clickedLayer===this.dataset.uid&&void 0!==RVS.S.clickOnLayerTimer&&e.timeStamp-RVS.S.clickOnLayerTimer<800)){var t;if(RVS.S.clickOnLayerTimer=e.timeStamp,RVS.S.clickedLayer=this.dataset.uid,RVS.F.selectLayers({id:this.dataset.uid,overwrite:!window.RS_sel_and_add&&!window.cmdctrldown,action:"add",ignoreUpdate:!1}),-1!==RVS.L[this.dataset.uid].group.puid&&"row"!==RVS.L[this.dataset.uid].type&&(t=RVS.L[this.dataset.uid].group.puid,jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+t).removeClass("collapsed"),-1!==RVS.L[t].group.puid&&"row"!==RVS.L[t].type&&jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[t].group.puid).removeClass("collapsed"),RVS.F.saveCollapsedGroups()),"dblclick"===e.type)switch(RVS.F.openSettings({forms:["*slidelayout**mode__slidecontent*#form_layer_content"],uncollapse:!0}),RVS.L[this.dataset.uid].type){case"text":case"button":jQuery("#ta_layertext").trigger("focus");break;case"image":("objectlibrary"===RVS.L[this.dataset.uid].media.imageLib?jQuery("#image_layer_object_library_button"):jQuery("#image_layer_media_library_button")).trigger("click");break;case"shape":""!==RVS.L[this.dataset.uid].idle.backgroundImage&&("objectlibrary"===RVS.L[this.dataset.uid].idle.bgimagelib?jQuery("#shape_layer_object_library_button"):jQuery("#shape_layer_media_library_button")).trigger("click");break;case"svg":RVS.F.openObjectLibrary({types:["fonticons","svgs","svgcustom"],filter:"all",selected:["svgs"],success:{icon:"insertContentFromOL"}})}1===RVS.selLayers.length&&RVS.F.layerListScrollable("scrollToSelected"),RVS.DOC.trigger("layerselectioncomplete",[this])}return!1}),RVS.DOC.on("dblclick","._lc_",function(){return RVS.F.selectLayers({id:this.dataset.uid,overwrite:!window.RS_sel_and_add,action:"add",ignoreUpdate:!1}),!1}),RVS.DOC.on("mouseenter",".layerlist_element",function(){-1==jQuery.inArray(this.dataset.id,["top","bottom","middle"])&&RVS.H[this.dataset.id].w.addClass("hoveredinlist")}),RVS.DOC.on("mouseleave",".layerlist_element",function(){-1==jQuery.inArray(this.dataset.id,["top","bottom","middle"])&&RVS.H[this.dataset.id].w.removeClass("hoveredinlist")}),RVS.DOC.on("click","#unlock_all_layer",function(){for(var e in RVS.L)void 0!==RVS.L[e].visibility&&RVS.L[e].visibility.locked&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e+".visibility.locked",val:!1}),RVS.H[e].w.removeClass("_locked_"),(e=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+e)).className=e.className.replace(" _locked_",""));RVS.F.checkLockedLayers()}),RVS.DOC.on("click",".unlock_single_layerm",function(){RVS.F.lockUnlockLayer({uid:this.dataset.uid,val:!1}),RVS.F.checkLockedLayers()}),RVS.DOC.on("click",".layer_current_locked",function(){RVS.F.lockUnlockLayer({uid:this.dataset.uid}),RVS.F.checkLockedLayers()}),RVS.DOC.on("click","#visible_all_layer",function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.L[e].visibility&&!1===RVS.L[e].visibility.visible&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e+".visibility.visible",val:!0}),RVS.H[e].w.removeClass("_unvisible_"),(e=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+e)).className=e.className.replace(" _unvisible_",""));RVS.F.checkShowHideLayers()}),RVS.DOC.on("click","#toggle_lock_layer",function(){RVS.F.lockUnlockLayers()}),RVS.DOC.on("click","#toggle_visible_layer",function(){RVS.F.showHideLayers({uid:this.dataset.uid})}),RVS.DOC.on("click","#hide_highlight_boxes",function(){jQuery(this).toggleClass("selected"),RVS.C.theEditor.toggleClass("nohiglightboxes")}),RVS.DOC.on("click",".visible_single_layer",function(){return RVS.F.showHideLayer({uid:this.dataset.uid,val:!0}),RVS.F.checkShowHideLayers(),!1}),RVS.DOC.on("click"," .layer_current_visibility",function(){return RVS.F.showHideLayer({uid:this.dataset.uid}),RVS.F.checkShowHideLayers(),!1}),RVS.DOC.on("mouseenter",".visible_single_layer",function(e){RVS.H[this.dataset.uid].w.addClass("hoveredinlist")}),RVS.DOC.on("mouseleave",".visible_single_layer",function(e){RVS.H[this.dataset.uid].w.removeClass("hoveredinlist")}),RVS.DOC.on("mouseenter",".unlock_single_layer",function(e){RVS.H[this.dataset.uid].w.addClass("hoveredinlist")}),RVS.DOC.on("mouseleave",".unlock_single_layer",function(e){RVS.H[this.dataset.uid].w.removeClass("hoveredinlist")}),RVS.DOC.on("mousedown","#selectbydraw",function(e){RVS.WIN.scrollTop(0),jQuery("#selectbydraw").append('<div id="selectbydraw_box"></div>'),RVS.F.updateContentDeltas(),RVS.S.click.y=e.clientY+RVS.S.rb_ScrollY,RVS.S.click.x=e.clientX+RVS.S.rb_ScrollX,window.scrollCacheY=RVS.S.rb_ScrollY,window.scrollCacheX=RVS.S.rb_ScrollX,window.selectbydraw=1,RVS.F.selectLayers({overwrite:!0})}),RVS.DOC.on("mouseup","#selectbydraw",function(e){jQuery("#selectbydraw").remove(),jQuery("#select_by_cursor").trigger("click"),RVS.F.selectLayers({}),window.selectbydraw=0}),RVS.DOC.on("mousemove","#selectbydraw",function(e){if(1===window.selectbydraw){var t=jQuery("#selectbydraw"),e=(RVS.S.DaD.dragdelta.x=e.clientX+RVS.S.rb_ScrollX-RVS.S.click.x,RVS.S.DaD.dragdelta.y=e.clientY+RVS.S.rb_ScrollY-RVS.S.click.y,{x:RVS.S.click.x,y:RVS.S.click.y});e.x=RVS.S.DaD.dragdelta.x<0?e.x+RVS.S.DaD.dragdelta.x:e.x,e.y=RVS.S.DaD.dragdelta.y<0?e.y+RVS.S.DaD.dragdelta.y:e.y;var i,a,r=e.y,s=e.x,o=e.x+Math.abs(RVS.S.DaD.dragdelta.x),n=e.y+Math.abs(RVS.S.DaD.dragdelta.y),l=t.offset();for(i in tpGS.gsap.set("#selectbydraw_box",{top:e.y,left:e.x,width:Math.abs(RVS.S.DaD.dragdelta.x),height:Math.abs(RVS.S.DaD.dragdelta.y)}),RVS.H)RVS.H.hasOwnProperty(i)&&((a={top:RVS.H[i].w.offset().top-l.top,left:RVS.H[i].w.offset().left-l.left}).right=a.left+RVS.H[i].w.width(),a.bottom=a.top+RVS.H[i].w.height(),RVS.L[i].visibility.locked||!RVS.L[i].visibility.visible||!(s<a.left&&a.left<o&&r<a.top&&a.top<n||s<a.right&&a.right<o&&r<a.top&&a.top<n||s<a.left&&a.left<o&&r<a.bottom&&a.bottom<n||s<a.right&&a.right<o&&r<a.bottom&&a.bottom<n||a.left<s&&s<a.right&&a.top<r&&r<a.bottom||a.left<o&&o<a.right&&a.top<r&&r<a.bottom||a.left<s&&s<a.right&&a.top<n&&n<a.bottom||a.left<o&&o<a.right&&a.top<n&&n<a.bottom||r<a.top&&a.bottom<n&&a.left<s&&o<a.right||a.top<r&&n<a.bottom&&s<a.left&&a.right<o)||a.left<s&&o<a.right&&a.top<r&&n<a.bottom?RVS.F.selectLayers({id:i,overwrite:!1,action:"remove",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!0,ignoreModeChange:!0}):RVS.F.selectLayers({id:i,overwrite:!1,action:"add",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!0,ignoreModeChange:!0}))}}),RVS.DOC.on("mousemove","#dropSensor",function(p){1===RVS.S.DaD.dropSensor&&requestAnimationFrame(function(){if(RVS.S.dragging){RVS.S.realDragHappen=!0,RVS.S.rb_ScrollX===window.scrollMem.x&&RVS.S.rb_ScrollY===window.scrollMem.y||V();var e,t=jQuery("#dropSensor"),i=p.clientX-15,a=p.clientY-65,r=t.offset(),s=(RVS.S.DaD.dropTimer=0,RVS.S.DaD.targetBefore=RVS.S.DaD.target,RVS.S.DaD.target={},RVS.S.DaD.dropParentPos={x:0,y:0},clearTimeout(RVS.S.DaD.timer),!1);for(n in RVS.H)RVS.H.hasOwnProperty(n)&&(u(n),void 0===RVS.H[n].coor&&(RVS.H[n].coor={top:RVS.H[n].w.offset().top-r.top-RVS.S.rb_ScrollY,left:RVS.H[n].w.offset().left-r.left-RVS.S.rb_ScrollX,width:RVS.H[n].w.outerWidth(),height:RVS.H[n].w.outerHeight()},RVS.H[n].coor.right=RVS.H[n].coor.left+RVS.H[n].coor.width*RVS.zoom,RVS.H[n].coor.center=RVS.H[n].coor.left+RVS.H[n].coor.width*RVS.zoom/2,RVS.H[n].coor.bottom=RVS.H[n].coor.top+RVS.H[n].coor.height*RVS.zoom,RVS.H[n].coor.middle=RVS.H[n].coor.top+RVS.H[n].coor.height*RVS.zoom/2),null!=RVS.L[n])&&void 0!==RVS.L[n].visibility&&RVS.L[n].visibility.visible&&!RVS.L[n].visibility.locked&&(void 0===RVS.L[n].group.puid||-1===RVS.L[n].group.puid||void 0===RVS.L[RVS.L[n].group.puid]||void 0===RVS.L[RVS.L[n].group.puid].visibility||RVS.L[RVS.L[n].group.puid].visibility.visible&&!RVS.L[RVS.L[n].group.puid].visibility.locked)&&i>=RVS.H[n].coor.left&&i<=RVS.H[n].coor.right&&a>=RVS.H[n].coor.top&&a<=RVS.H[n].coor.bottom&&(RVS.F.isParent(RVS.S.DaD.currentLayerId,n)||(e=void 0!==RVS.S.DaD.lastGroupParent&&RVS.S.DaD.lastGroupParent===n?474:(void 0!==RVS.S.DaD.target.groupID&&-1!==RVS.S.DaD.target.groupID?RVS.L[RVS.S.DaD.target.groupID]:-1!==RVS.S.DaD.target.puid&&void 0!==RVS.S.DaD.target.puid?RVS.L[RVS.S.DaD.target.puid]:RVS.L[n]).position.zIndex,void 0!==RVS.S.DaD.target.zIndex&&RVS.S.DaD.target.zIndex>=e&&(-1==RVS.L[n].group.puid||null==RVS.L[n].group.puid))||("group"===RVS.L[n].type&&RVS.L[n].visibility.visible?(RVS.S.DaD.target.type=RVS.L[n].type,RVS.S.DaD.target.rowID="group",RVS.L[n].group.puid,RVS.S.DaD.target.groupID=RVS.L[n].group.puid,RVS.S.DaD.target.columnID=RVS.S.DaD.toContainerID=n,RVS.S.DaD.target.columnType=RVS.S.DaD.toContainerType="group",RVS.S.DaD.target.columnTop=!0,RVS.S.DaD.target.zIndex=e,s="group"):"column"===RVS.L[n].type&&RVS.L[n].visibility.visible&&"group"!==s?(RVS.S.DaD.target.type=RVS.L[n].type,RVS.S.DaD.target.groupID=RVS.L[n].group.puid,RVS.S.DaD.target.rowID=RVS.L[n].group.puid,RVS.S.DaD.target.columnID=RVS.S.DaD.toContainerID=n,RVS.S.DaD.target.columnType=RVS.S.DaD.toContainerType="column",RVS.S.DaD.target.columnTop=a<=RVS.H[n].coor.middle,RVS.S.DaD.target.zIndex=e,s="column"):"group"!==s&&"row"!==RVS.L[n].type&&n!=RVS.S.DaD.currentLayerId&&("group"!==RVS.S.DaD.target.columnType||"column"!==RVS.S.DaD.target.columnType&&"absolute"!==RVS.S.DaD.draggedPosType||"relative"==RVS.L[RVS.S.DaD.currentLayerId].position.position&&"relative"==RVS.L[n].position.position)&&(RVS.S.DaD.target.type=RVS.L[n].type,RVS.S.DaD.target.elementID=n,RVS.S.DaD.target.puid=RVS.L[n].group.puid,RVS.S.DaD.target.elementMiddle=RVS.H[n].coor.middle,RVS.S.DaD.target.elementBefore=a<=RVS.H[n].coor.middle,RVS.S.DaD.target.zIndex=e)));t=RVS.S.DaD.lastGroupParent;if(delete RVS.S.DaD.lastGroupParent,"group"===RVS.S.DaD.target.rowID&&(RVS.S.DaD.lastGroupParent=RVS.S.DaD.target.columnID,RVS.F.setZindex({id:RVS.S.DaD.lastGroupParent,o:474})),void 0!==t&&RVS.S.DaD.lastGroupParent!==t&&RVS.F.setZindex({id:t}),void 0!==RVS.S.DaD.target&&("group"===RVS.S.DaD.target.rowID||"column"==RVS.S.DaD.target.type&&"absolute"==RVS.S.DaD.draggedPosType||"column"!==RVS.S.DaD.target.type&&null!=RVS.S.DaD.target.columnID&&void 0!==RVS.S.DaD.target.columnType&&"absolute"==RVS.S.DaD.draggedPosType)&&("column"==RVS.S.DaD.target.type&&"absolute"==RVS.S.DaD.draggedPosType&&(RVS.H[RVS.S.DaD.target.columnID].w_offset=RVS.H[RVS.S.DaD.target.columnID].w.offset()),RVS.S.DaD.dropParentPos.x=RVS.H[RVS.S.DaD.target.columnID].w_offset.left,RVS.S.DaD.dropParentPos.y=RVS.H[RVS.S.DaD.target.columnID].w_offset.top),"absolute"!==RVS.S.DaD.draggedPosType&&void 0!==RVS.S.DaD.targetBefore&&void 0===RVS.S.DaD.target.elementID&&void 0!==RVS.S.DaD.target.columnID&&RVS.S.DaD.target.columnID===RVS.S.DaD.targetBefore.columnID){var o,n,l=RVS.F.getLayerChildren({layerid:RVS.S.DaD.target.columnID}),d=[],S=0,c=1e4;for(n in l)l.hasOwnProperty(n)&&("group"!=RVS.S.DaD.target.columnType&&"column"!=RVS.S.DaD.target.columnType||"relative"==RVS.L[RVS.S.DaD.currentLayerId].position.position&&"relative"===RVS.L[n].position.position)&&n!=RVS.S.DaD.currentLayerId&&(RVS.H[n].coor.bottom<a||RVS.H[n].coor.middle<=a&&RVS.H[n].coor.bottom>=a)&&(d.push(n),S=S<RVS.H[n].coor.bottom?RVS.H[n].coor.bottom:S);for(o in d)d.hasOwnProperty(o)&&(n=d[o],S<=RVS.H[n].coor.bottom)&&c>Math.abs(RVS.H[n].coor.center-i)&&(c=Math.abs(RVS.H[n].coor.center-i),RVS.S.DaD.target.elementID=n,RVS.S.DaD.target.elementBefore=!1)}else void 0!==RVS.S.DaD.target.elementID&&void 0!==RVS.S.DaD.target.columnID&&-1==RVS.S.DaD.target.puid&&(RVS.S.DaD.target.elementID=void 0);void 0!==RVS.S.DaD.target&&RVS.S.DaD.lastRegisteredRow===RVS.S.DaD.target.rowID?(RVS.S.DaD.target.into="column",RVS.S.DaD.toContainerID=RVS.S.DaD.target.columnID,RVS.S.DaD.toContainerType=RVS.S.DaD.target.columnType,clearTimeout(RVS.S.DaD.timerLeaveRow),RVS.S.DaD.timerLeaveRowStarted=!1):(RVS.S.DaD.toContainerType="root",RVS.S.DaD.target.into="free",RVS.S.DaD.toContainerID=-1),R(),void 0!==RVS.S.DaD.target&&RVS.S.DaD.lastRegisteredRow!==RVS.S.DaD.target.rowID&&void 0!==RVS.S.DaD.target.rowID&&(RVS.S.DaD.timer=setTimeout(function(){RVS.S.DaD.lastRegisteredRow=RVS.S.DaD.target.rowID,void 0!==RVS.S.DaD.target&&RVS.S.DaD.lastRegisteredRow===RVS.S.DaD.target.rowID?(RVS.S.DaD.lastRegisteredRowBefore&&-1!==RVS.S.DaD.lastRegisteredRowBefore&&"group"!==RVS.S.DaD.lastRegisteredRowBefore&&(RVS.H[RVS.S.DaD.lastRegisteredRowBefore].w[0].className=RVS.H[RVS.S.DaD.lastRegisteredRowBefore].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("")),clearTimeout(RVS.S.DaD.timerLeaveRow),RVS.S.DaD.timerLeaveRowStarted=!1,RVS.S.DaD.target.into="column",RVS.S.DaD.toContainerID=RVS.S.DaD.target.columnID,RVS.S.DaD.toContainerType=RVS.S.DaD.target.columnType,R(),RVS.F.updateDraggedWidth(!0)):(RVS.S.DaD.target.into="free",RVS.S.DaD.toContainerType="root",RVS.S.DaD.toContainerID=-1,R()),RVS.S.DaD.lastRegisteredRowBefore=RVS.S.DaD.lastRegisteredRow},250)),!0!==RVS.S.DaD.timerLeaveRowStarted&&-1!==RVS.S.DaD.lastRegisteredRow&&void 0!==RVS.S.DaD.target&&RVS.S.DaD.lastRegisteredRow!==RVS.S.DaD.target.rowID&&void 0===RVS.S.DaD.target.rowID&&(RVS.S.DaD.timerLeaveRowStarted=!0,RVS.S.DaD.timerLeaveRow=setTimeout(function(){-1!==RVS.S.DaD.lastRegisteredRow&&"group"!==RVS.S.DaD.lastRegisteredRow&&(RVS.H[RVS.S.DaD.lastRegisteredRow].w[0].className=RVS.H[RVS.S.DaD.lastRegisteredRow].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("")),RVS.S.DaD.lastRegisteredRow=-1,RVS.S.DaD.target.into="free",RVS.S.DaD.toContainerType="root",RVS.S.DaD.toContainerID=-1,RVS.S.DaD.timerLeaveRowStarted=!1,R()},500))}})}),RVS.DOC.on("updateLayerPosition",function(){for(var e in RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(e=RVS.selLayers[e],RVS.F.updateHTMLLayerPosition({uid:e,updateValues:!1,lhCwidth:RVS.H[e].c.outerWidth(),lhCheight:RVS.H[e].c.outerHeight()}))}),RVS.DOC.on("intelligentInheritUpdate",function(e,t){for(var i in void 0!==t&&(!0===t.val?RVS.F.setToIntelligentUpdate():RVS.F.disableIntelligentUpdate()),RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]})}),RVS.DOC.on("inheritValuesFromDesktop",function(e,t){RVS.F.resetLayersDeviceSizesToDesktop()}),RVS.DOC.on("resetIntelligentInherits",function(e,t){RVS.F.resetIntelligentInherits()}),RVS.DOC.on("updateAllInheritedSize",function(e,t){RVS.F.updateAllInheritedSize()}),RVS.DOC.on("updateColumnStructure",function(){RVS.F.openBackupGroup({id:"RowStructure",txt:"Change Row(s) Structure",icon:"view_column"});var e,t=RVS.F.figureColumnSizes({plain:jQuery("#row_column_structure").val()});for(e in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e)){var i="column"===RVS.L[RVS.selLayers[e]].type?RVS.L[RVS.selLayers[e]].group.puid:RVS.selLayers[e];if("row"===RVS.L[i].type){if((s=RVS.F.getColumnsInRow({layerid:i})).length>t.cols.length)for(var a=s[t.cols.length-1],r=s.length-1;r>=t.cols.length;r--)RVS.F.deleteLayerfromLayers({layerid:s[r],newpuid:a});else if(s.length<t.cols.length)for(r=s.length;r<t.cols.length;r++)RVS.F.addLayerToLayers({type:"column",puid:i,alias:"column"});for(var s=RVS.F.getColumnsInRow({layerid:i}),r=0;r<s.length;r++){var o=RVS.S.slideId+".layers."+s[r]+".group.columnSize";RVS.F.updateSliderObj({path:o,val:t.cols[r]})}}}RVS.F.closeBackupGroup({id:"RowStructure"}),RVS.F.buildLayerLists({force:!0}),RVS.F.reOrderHTMLLayers()}),RVS.DOC.on("updateLayerAliasFromSingleInput",function(e,t){null!=t.layerid&&(document.getElementById("layerlist_element_alias_"+RVS.S.slideId+"_"+t.layerid).innerHTML=RVS.L[t.layerid].alias,document.getElementById("layerlist_element_alias_input_"+RVS.S.slideId+"_"+t.layerid).value=RVS.L[t.layerid].alias,"group"===RVS.L[t.layerid].type)&&(document.getElementById("_group_head_title_"+RVS.S.slideId+"_"+t.layerid).innerHTML=RVS.L[t.layerid].alias)}),RVS.DOC.on("udateAbsoluteRelativePosition",function(e,t){t.layerid}),RVS.DOC.on("do_select_all_layer",function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&RVS.F.selectLayers({id:e,overwrite:!1,action:"add",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!0,ignoreModeChange:!0});RVS.F.selectLayers({})}),RVS.DOC.on("do_delete_layer",function(){RVS.DOC.trigger("previewStopLayerAnimation"),RVS.F.openBackupGroup({id:"removeLayer",txt:"Remove Multiple Layers",icon:"delete",lastkey:"layer"});var e,t,i,a,r=[],s=[];for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(i=RVS.selLayers[t],-1==RVS.L[i].group.puid?r.push(i):"row"!==RVS.L[i].type&&"column"!==RVS.L[i].type||(e="row"===RVS.L[i].type?i:RVS.L[i].group.puid,-1===jQuery.inArray(e,s)&&s.push(e),r.push(i)));for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(i=RVS.selLayers[t],-1!==RVS.L[i].group.puid)&&"column"!==RVS.L[i].type&&"row"!==RVS.L[i].type&&(a=("column"===RVS.L[RVS.L[i].group.puid].type?RVS.L[RVS.L[i].group.puid]:RVS.L[i]).group.puid,-1===jQuery.inArray(a,r))&&r.push(i);for(o in r)r.hasOwnProperty(o)&&RVS.F.deleteLayerfromLayers({layerid:r[o]});if(0<s.length)for(var o in s)s.hasOwnProperty(o)&&void 0!==RVS.L[s[o]]&&(0===RVS.F.getColumnsInRow({layerid:s[o]}).length?RVS.F.deleteLayerfromLayers({layerid:s[o]}):RVS.F.fixColumnsInRows({layerid:s[o]}));RVS.F.closeBackupGroup({id:"removeLayer"}),RVS.F.buildLayerLists({force:!0})}),RVS.DOC.on("updateColumnBreak",function(e,t){RVS.F.openBackupGroup({id:"ColumnBreak",txt:"Row Breakpoint",icon:"layers",lastkey:"layer"});var i,a,r,s,o=[];for(i in RVS.selLayers)!RVS.selLayers.hasOwnProperty(i)||"row"!==RVS.L[RVS.selLayers[i]].type&&"column"!==RVS.L[RVS.selLayers[i]].type||(a="column"===RVS.L[RVS.selLayers[i]].type?RVS.L[RVS.selLayers[i]].group.puid:RVS.selLayers[i],r=RVS.S.slideId+".layers."+a+".",RVS.F.updateSliderObj({path:r+"group.columnbreakat",val:t.val}),o.push(a));for(s in RVS.F.closeBackupGroup({id:"ColumnBreak"}),o)if(o.hasOwnProperty(s)){var n,l=RVS.F.getColumnsInRow({layerid:o[s]});for(n in l)l.hasOwnProperty(n)&&(RVS.L[l[n]].group.columnbreakat=t.val,RVS.F.drawHTMLLayer({uid:l[n]}));RVS.F.drawHTMLLayer({uid:o[s]})}}),RVS.DOC.on("squareselection",function(){e({id:"#select_by_draw",remove:"#select_by_cursor, #select_by_cursor_add",add:!1,multi:!0})}),RVS.DOC.on("cursorselection",function(){e({id:"#select_by_cursor",remove:"#select_by_draw, #select_by_cursor_add",add:!1,multi:!1})}),RVS.DOC.on("cursorselectionadd",function(){e({id:"#select_by_cursor_add",remove:"#select_by_draw, #select_by_cursor",add:!0,multi:!1})}),RVS.DOC.on("lockLayer",function(e,t){RVS.F.lockUnlockLayers(t)}),RVS.DOC.on("showHideLayer",function(e,t){RVS.F.showHideLayers(t)}),RVS.DOC.on("frameAnimToCustom",function(e,t){}),RVS.DOC.on("click",".getLayerImageFromVimeo",function(){jQuery.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+jQuery("#layer_youtubevimeo_id").val()+".json",success:function(e){jQuery("#layer_video_poster").val(e[0].thumbnail_large).trigger("change")}})}),RVS.DOC.on("click",".getLayerImageFromYouTube",function(){var e=jQuery("#layer_youtubevimeo_id").val();jQuery("#layer_video_poster").val(location.protocol+"//img.youtube.com/vi/"+e+"/maxresdefault.jpg").trigger("change")}),RVS.DOC.on("click",".removeLayerPoster",function(){RVS.F.openBackupGroup({id:"VideoPosterChange",txt:"Change Video Poster",icon:"layers",lastkey:"layer"}),jQuery("#layer_video_poster").val(RVS.ENV.img_ph_url).trigger("change"),RVS.F.closeBackupGroup({id:"VideoPosterChange"})}),RVS.DOC.on("click",".resetVideoArguments",function(){var e=jQuery('input[name="layer_video_type"]:checked').val(),e="vimeo"===e?RVS.ENV.vimeoargs:"youtube"===e?RVS.ENV.youtubeargs:"";jQuery("#layer_video_arg").val(e).trigger("change")}),RVS.DOC.on("checkVideoID",function(e,t){if(void 0!==t&&void 0!==t.val){for(var i in RVS.F.openBackupGroup({id:"VideoTypeChange",txt:"Change Video Type",icon:"layers",lastkey:"layer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(_.uid=RVS.selLayers[i],_.l=RVS.L[_.uid],_.pre=RVS.S.slideId+".layers."+_.uid+".","vimeo"===t.val?(RVS.F.updateSliderObj({path:_.pre+"media.args",val:RVS.ENV.vimeoargs}),jQuery("#layer_video_arg").val(RVS.ENV.vimeoargs)):"youtube"===t.val&&(RVS.F.updateSliderObj({path:_.pre+"media.args",val:RVS.ENV.youtubeargs}),jQuery("#layer_video_arg").val(RVS.ENV.youtubeargs)),RVS.F.updateSliderObj({path:_.pre+"media.mediaType",val:t.val}));RVS.F.closeBackupGroup({id:"VideoTypeChange"})}var a=jQuery('input[name="layer_video_type"]:checked').val(),r=jQuery("#layer_youtubevimeo_id").val();"vimeo"===a&&RVS.F.checkVimeoID({id:r}),"youtube"===a&&RVS.F.checkYouTubeID({id:r})}),RVS.F.notChildrenOfList=function(e,t,i,a){return null==i[e]||""+e=="-1"||-1==jQuery.inArray(""+e,t)&&(""+i[e].group.puid!="-1"?-1==jQuery.inArray(""+i[e].group.puid,t):!!a)},RVS.DOC.on("do_duplicate_layer",function(){var e,t,i=[],a=[],r=[],s=[];for(e in RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(t=RVS.selLayers[e],i.push({type:RVS.L[t].type,duplicateId:t,ignoreBackupGroup:!0,ignoreLayerList:!0,ignoreOrderHTMLLayers:!0}),a.push(""+t),"column"===RVS.L[t].type)&&-1===jQuery.inArray(RVS.L[t].group.puid,s)&&s.push(RVS.L[t].group.puid);for(o in RVS.F.openBackupGroup({id:"addLayer",txt:"Duplicate Layers",icon:"layers",lastkey:"layer"}),i)i.hasOwnProperty(o)&&RVS.F.notChildrenOfList(RVS.L[a[o]].group.puid,a,RVS.L,!0)&&r.push(RVS.F.addLayer(i[o],!0));if(0<s.length)for(var o in s)s.hasOwnProperty(o)&&void 0!==RVS.L[s[o]]&&RVS.F.fixColumnsInRows({layerid:s[o]});for(o in RVS.F.buildLayerLists({force:!0,ignoreRebuildHTML:!0}),RVS.F.reOrderHTMLLayers(),r)r.hasOwnProperty(o)&&(RVS.F.updateDuplicatedLayerActionDependencies(r[o],a[o]),RVS.F.selectLayers({id:r[o],overwrite:!1,action:"add",ignoreUpdate:!0,ignoreFieldUpdates:!0}));RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),RVS.F.updateZIndexTable(),RVS.F.closeBackupGroup({id:"addLayer"}),RVS.DOC.trigger("selectLayersDone")}),RVS.DOC.on("do_copy_layer",function(){window.copyPasteLayers={amount:0,layers:{}};var e,t,i,a=[],r=[];for(e in RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(t=RVS.selLayers[e],a.push({type:RVS.L[t].type,duplicateId:t,ignoreBackupGroup:!0,ignoreLayerList:!0,ignoreOrderHTMLLayers:!0,copyPaste:"copy",deep:RVS.F.isDeeperGroup(t)}),r.push(t));for(i in a)a.hasOwnProperty(i)&&RVS.F.addLayer(a[i],!0);jQuery("#do_paste_layer").removeClass("disabled")}),RVS.DOC.on("do_paste_layer",function(){var e,t,i,a,r=[],s=[],o=[],n=[],l=RVS.F.getFirstSelectedType("group"),d=RVS.F.getFirstSelectedType("column"),S=0==l?0==d?RVS.F.getFirstSelectedType("row"):d:l,c=[];for(e in window.backupCopyPaste={...window.copyPasteLayers.layers},S=null==(S=0==S?"-1":void 0!==RVS.L[S]&&"row"==RVS.L[S].type?RVS.F.getColumnsInRow({layerid:S,type:"column"})[0]:S)||0==S||null==RVS.L[S]?"-1":S,RVS.S.pastedLayerNewToOld={},RVS.S.pastedLayerOldToNew={},window.copyPasteLayers.layers)if(window.copyPasteLayers.layers.hasOwnProperty(e)){var p=window.copyPasteLayers.layers[e].uid,u=window.copyPasteLayers.layers[e].group.puid,R=RVS.F.isDeeperGroup(window.copyPasteLayers.layers[e]);if(s.push(""+p),"-1"!=S||""+u!="-1"&&void 0===window.copyPasteLayers.layers[u]){switch(window.copyPasteLayers.layers[e].type){case"group":R||"-1"==S?u="-1":"column"==RVS.L[S].type?u=S:"group"==RVS.L[S].type&&""+RVS.L[S].group.puid=="-1"&&window.copyPasteLayers.layers[e].copiedFromUid==S&&"-1"!==S&&RVS.L[S].group.puid;break;case"column":void 0!==window.copyPasteLayers.layers[u]&&"row"===window.copyPasteLayers.layers[u].type||-1!==(u=!1!==S&&"-1"!==S&&"row"==RVS.L[S].type?S:RVS.F.addLayerToLayers({type:"row",alias:"row",buildHTMLLayer:!1,copyPaste:"copy"}))&&-1===jQuery.inArray(u,c)&&c.push(u);break;case"row":u="-1";break;default:u=0<=u&&u<=5e3&&void 0===window.copyPasteLayers.layers[u]||""+u=="-1"&&"-1"!==S?S:u}if(void 0!==RVS.L[u]&&"column"==RVS.L[u].type&&("-1"==window.copyPasteLayers.layers[e].group.puid||null==window.copyPasteLayers.layers[window.copyPasteLayers.layers[e].group.puid]||"column"!==window.copyPasteLayers.layers[window.copyPasteLayers.layers[e].group.puid].type))for(var V in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(V)&&(V=RVS.V.sizes[V],window.copyPasteLayers.layers[e].position.position="relative",window.copyPasteLayers.layers[e].position.horizontal[V].v="center",window.copyPasteLayers.layers[e].position.vertical[V].v="middle",window.copyPasteLayers.layers[e].position.x[V].v=0,window.copyPasteLayers.layers[e].position.y[V].v=0);window.copyPasteLayers.layers[e].group.puid=u}}for(e in window.copyPasteLayers.layers)window.copyPasteLayers.layers.hasOwnProperty(e)&&RVS.F.notChildrenOfList(""+window.copyPasteLayers.layers[e].group.puid,s,window.backupCopyPaste)&&(p=window.copyPasteLayers.layers[e].uid,r.push({type:window.copyPasteLayers.layers[e].type,duplicateId:p,ignoreBackupGroup:!0,ignoreLayerList:!0,ignoreOrderHTMLLayers:!0,copyPaste:"paste"}),o.push(""+p));for(m in RVS.F.openBackupGroup({id:"addLayer",txt:"Copy Paste Layers",icon:"layers",lastkey:"layer"}),r)r.hasOwnProperty(m)&&(n.push(t=RVS.F.addLayer(r[m])),"row"==RVS.L[t].type?c.push(t):"column"===RVS.L[t].type&&-1===jQuery.inArray(RVS.L[p].group.puid,c)&&c.push(RVS.L[p].group.puid));for(t in RVS.S.pastedLayerNewToOld)if(RVS.S.pastedLayerNewToOld.hasOwnProperty(t)&&null!=RVS.L[t]&&null!=RVS.L[t].actions){for(i in RVS.L[t].actions.action)RVS.L[t].actions.action.hasOwnProperty(i)&&null!=RVS.L[t].actions.action[i].layer_target&&(a=RVS.L[t].actions.action[i].layer_target,void 0!==RVS.S.pastedLayerOldToNew[a])&&(RVS.L[t].actions.action[i].layer_target=RVS.S.pastedLayerOldToNew[a]);a=RVS.L[t].labelfor,void 0!==RVS.S.pastedLayerOldToNew[a]&&(RVS.L[t].labelfor=RVS.S.pastedLayerOldToNew[a]),void 0!==RVS.F.updateReferencedLayerIDs&&void 0!==RVS.F.updateReferencedLayerIDs[RVS.L[t].subtype]&&RVS.F.updateReferencedLayerIDs[RVS.L[t].subtype](t)}if(0<c.length)for(var m in c)c.hasOwnProperty(m)&&void 0!==RVS.L[c[m]]&&RVS.F.fixColumnsInRows({layerid:c[m]});for(m in RVS.F.closeBackupGroup({id:"addLayer"}),RVS.F.buildLayerLists({force:!0,ignoreRebuildHTML:!0}),RVS.F.reOrderHTMLLayers(),n)n.hasOwnProperty(m)&&(RVS.F.updateDuplicatedLayerActionDependencies(n[m],window.copyPasteLayers.layers[o[m]].copiedFromUid),RVS.F.selectLayers({id:n[m],overwrite:!1,action:"add",ignoreUpdate:!0}));RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),RVS.DOC.trigger("selectLayersDone"),window.copyPasteLayers.layers={...window.backupCopyPaste}}),RVS.DOC.on("insertContentFromOL",function(e,t){if("fonticons"==t.libraryType){var i="MaterialIcons"===t.tags[0]?"material-icons":t.handle.replace(".",""),a="MaterialIcons"===t.tags[0]?t.handle.replace(".",""):"";for(r in RVS.F.openBackupGroup({id:"PreStyleLAyer",txt:"Prestyle Object Layer",icon:"layers",lastkey:"layer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&(RVS.F.updateLayerObj({path:"text",val:'<i class="'+i+'">'+a+"</i>",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"type",val:"text",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"idle.fontSize."+RVS.screen+".v",val:"50px",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"idle.lineHeight."+RVS.screen+".v",val:"50px",ignoreRedraw:!0}),RVS.H[RVS.selLayers[r]].c[0].innerHTML='<i class="'+i+'">'+a+"</i>",RVS.F.drawHTMLLayer({uid:RVS.selLayers[r]}));RVS.F.closeBackupGroup({id:"PreStyleLAyer"})}else if("svgs"===t.libraryType||"svgcustom"===t.libraryType){RVS.F.openBackupGroup({id:"PreStyleLAyer",txt:"Prestyle Object Layer",icon:"layers",lastkey:"layer"});var r,s=[];for(r in RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&(s.push(RVS.selLayers[r]),"svgcustom"===t.libraryType?RVS.F.updateLayerObj({path:"idle.svg.originalColor",val:!0,ignoreRedraw:!0}):RVS.F.updateLayerObj({path:"idle.svg.originalColor",val:!1,ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"svg.source",val:t.img,ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"type",val:"svg",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"size.width."+RVS.screen+".v",val:"100px",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"size.height."+RVS.screen+".v",val:"100px",ignoreRedraw:!0}));RVS.F.updateLayerSVGSrc({uids:s,src:t.img}),RVS.F.closeBackupGroup({id:"PreStyleLAyer"})}RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),RVS.F.updateLayerInputFields()}),b()},RVS.F.allSelectedHasHover=function(){var e,t=!0;for(e in RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(t=(!0===RVS.L[RVS.selLayers[e]].hover.usehover||"true"===RVS.L[RVS.selLayers[e]].hover.usehover||"desktop"===RVS.L[RVS.selLayers[e]].hover.usehover)&&t);return t},RVS.F.buildHTMLLayer=function(t){var e,i=RVS.L[t.uid],a=void 0!==RVS.H&&void 0!==RVS.H[t.uid]&&void 0!==RVS.H[t.uid].w?RVS.H[t.uid].w[0]:document.getElementById("_lc_"+RVS.S.slideId+"_"+t.uid+"_");if(RVS.H=null==RVS.H?{}:RVS.H,1==t.force||null==RVS.H||void 0===RVS.H[t.uid]||null===a){if(1==t.force||null==RVS.H||void 0===RVS.H[t.uid]){null!==a&&a.parentNode.removeChild(a);var r,s,o,n,l,d,S,c,a=RVS.F.cE({id:"_lc_"+RVS.S.slideId+"_"+t.uid+"_",cN:"_lc_ _lc_type_"+i.type,ds:{type:i.type,uid:t.uid,pid:i.group.puid,multiplemark:!0}}),p=RVS.F.cE({cN:"_lc_locked_bg_"}),u=RVS.F.cE({cN:"_lc_locked_"}),R=RVS.F.cI({c:"lock_outline"}),V=RVS.F.cE({t:"span",cN:"_tb_ _borders_"}),m=RVS.F.cE({t:"span",cN:"_bb_ _borders_"}),y=RVS.F.cE({t:"span",cN:"_rb_ _borders_"}),g=RVS.F.cE({t:"span",cN:"_lb_ _borders_"}),h=RVS.F.cE({cN:"_lc_loop_"}),f=RVS.F.cE({cN:"_lc_mask_"}),v=RVS.F.cE({cN:"_lc_iw_"}),_=RVS.F.cE({t:"div",cN:"_lc_content_"});if("column"!==i.type&&"row"!==i.type||(r=RVS.F.cE({t:"span",cN:"_c_margins _topm_"}),s=RVS.F.cE({t:"span",cN:"_c_margins _botm_"}),o=RVS.F.cE({t:"span",cN:"_c_margins _lefm_"}),n=RVS.F.cE({t:"span",cN:"_c_margins _rigm_"}),l=RVS.F.cE({t:"span",cN:"_c_paddings _topp_"}),d=RVS.F.cE({t:"span",cN:"_c_paddings _botp_"}),S=RVS.F.cE({t:"span",cN:"_c_paddings _lefp_"}),c=RVS.F.cE({t:"span",cN:"_c_paddings _rigp_"})),u.appendChild(R),h.appendChild(f),f.appendChild(v),v.appendChild(_),a.appendChild(p),a.appendChild(u),a.appendChild(V),a.appendChild(m),a.appendChild(y),a.appendChild(g),a.appendChild(h),"column"!==i.type&&"row"!==i.type||(a.appendChild(r),a.appendChild(s),a.appendChild(o),a.appendChild(n),a.appendChild(S),a.appendChild(c),a.appendChild(d),a.appendChild(l)),-1===i.group.puid||"row"===i.type?"row"==i.type&&RVS.C.rZone[i.group.puid]?w({container:RVS.C.rZone[i.group.puid],layer:a,uid:t.uid,type:"._lc_type_row"}):RVS.C.layergrid[0].appendChild(a):"column"===i.type?w({container:RVS.H[i.group.puid].c,layer:a,uid:t.uid,type:"._lc_type_column"}):void 0!==RVS.H[i.group.puid]?w({container:RVS.H[i.group.puid].c,layer:a,uid:t.uid,type:"._lc_"}):i.group.puid=-1,void 0!==i.idle.style&&0<i.idle.style.length&&(a.className+=" "+i.idle.style),RVS.H[t.uid]={w:jQuery(a),last_puid:i.group.puid,last_groupOrder:i.group.groupOrder},RVS.H[t.uid].m=f,RVS.H[t.uid].lp=h,RVS.H[t.uid].iw=v,RVS.H[t.uid].c=jQuery(_),void 0!==RVS.F.buildHTMLLayerSub&&void 0!==RVS.F.buildHTMLLayerSub[i.subtype]&&(RVS.H[t.uid].subc=RVS.F.buildHTMLLayerSub[i.subtype](i.subsubtype),void 0!==RVS.H[t.uid].subc))for(var L in RVS.H[t.uid].subc.attach)_.appendChild(RVS.H[t.uid].subc[RVS.H[t.uid].subc.attach[L]]);"column"!==i.type&&"row"!==i.type||(RVS.H[t.uid].margins={top:r,bottom:s,left:o,right:n},RVS.H[t.uid].paddings={top:l,bottom:d,left:S,right:c}),RVS.H[t.uid].borders={top:V,bottom:m,left:g,right:y}}switch(i.type){case"svg":RVS.H[t.uid].c[0].innerHTML=i.svg.renderedData,RVS.H[t.uid].svg=RVS.H[t.uid].w.find("svg"),RVS.H[t.uid].svgPath=RVS.H[t.uid].w.find(i.idle.svg.styleAll?"svg path, svg circle, svg ellipse, svg line, svg polygon, svg polyline, svg rect":"svg path");break;case"image":null===RVS.H[t.uid].w[0].querySelector("._lc_img_placeholder")&&RVS.H[t.uid].c[0].appendChild(RVS.F.cE({cN:"_lc_img_placeholder",icon:{c:"filter_hdr"}})),null===RVS.H[t.uid].w[0].querySelector("._lc_image_inside_")&&((e=RVS.F.cE({t:"img",cN:"_lc_image_inside_",ds:{ow:i.size.originalWidth,oh:i.size.originalHeight}})).src=i.media.imageUrl,RVS.H[t.uid].c[0].appendChild(e)),i.media.imageUrl===RVS.ENV.img_ph_url&&RVS.H[t.uid].c[0].classList.add("placeholder_on");break;case"video":null===RVS.H[t.uid].w[0].querySelector("._lc_img_placeholder")&&RVS.H[t.uid].c[0].appendChild(RVS.F.cE({cN:"_lc_img_placeholder",icon:{c:"videocam"}})),null===RVS.H[t.uid].w[0].querySelector("._lc_video_title_")?((e=RVS.F.cE({cN:"_lc_video_title_"})).textContent=i.media.mediaType,RVS.H[t.uid].c[0].appendChild(e),RVS.H[t.uid].vtitle=e):void 0===RVS.H[t.uid].vtitle&&(RVS.H[t.uid].vtitle=RVS.H[t.uid].w[0].querySelector("._lc_video_title_")),null===RVS.H[t.uid].w[0].querySelector("._lc_video_placeholder_")&&RVS.H[t.uid].c[0].appendChild(RVS.F.cE({cN:"_lc_video_placeholder_"})),null===RVS.H[t.uid].w[0].querySelector("._lc_video_overlay")?(RVS.H[t.uid].volay=RVS.F.cE({cN:"_lc_video_overlay"}),RVS.H[t.uid].c[0].appendChild(RVS.H[t.uid].volay)):void 0===RVS.H[t.uid].volay&&(RVS.H[t.uid].volay=RVS.H[t.uid].w[0].querySelector("._lc_video_overlay")),i.media.posterUrl===RVS.ENV.img_ph_url&&RVS.H[t.uid].c[0].classList.add("placeholder_on");break;case"audio":null===RVS.H[t.uid].w[0].querySelector("._lc_img_placeholder")&&RVS.H[t.uid].c[0].append(RVS.F.cE({cN:"_lc_img_placeholder",icon:{c:"audiotrack"}})),null===RVS.H[t.uid].w[0].querySelector("audio")&&RVS.H[t.uid].c.append("<audio controls></audio>"),!1===i.media.controls?RVS.H[t.uid].c[0].classList.add("placeholder_on"):RVS.H[t.uid].c[0].classList.remove("audio_controls_on");break;case"group":void 0===RVS.H[t.uid].bg&&(null===RVS.H[t.uid].w[0].querySelector(":scope > ._lc_extra_bg")?(RVS.H[t.uid].bg=RVS.F.cE({cN:"_lc_extra_bg"}),RVS.H[t.uid].w[0].appendChild(RVS.H[t.uid].bg)):RVS.H[t.uid].bg=RVS.H[t.uid].w[0].querySelector(":scope > ._lc_extra_bg")),null===RVS.H[t.uid].w[0].querySelector("._lc_group_placeholder")&&RVS.H[t.uid].c[0].append(RVS.F.cE({cN:"_lc_group_placeholder",icon:{c:"format_shapes"}})),null===RVS.H[t.uid].w[0].querySelector("._group_lock_")&&RVS.H[t.uid].c[0].append(RVS.F.cE({cN:"_group_lock_",icon:{c:"layers"}})),null===RVS.H[t.uid].w[0].querySelector("._group_head_")&&(RVS.H[t.uid].w.append('<div class="_group_head_"><span id="_group_head_title_'+RVS.S.slideId+"_"+t.uid+'" class="_group_head_title_">'+i.alias+'</span><div data-uid="'+t.uid+'" class="_group_lock_toggle_"><i class="group_lock_icon material-icons">layers_clear</i><i class="group_lockopen_icon material-icons">layers</i></div></div>'),RVS.H[t.uid].gpH=RVS.H[t.uid].w[0].getElementsByClassName("_group_head_")[0],RVS.H[t.uid].gpHT=RVS.H[t.uid].w[0].getElementsByClassName("_group_head_title_")[0]);break;case"row":void 0===RVS.H[t.uid].bg&&(null===RVS.H[t.uid].w[0].querySelector(":scope > ._lc_extra_bg")?(RVS.H[t.uid].bg=RVS.F.cE({cN:"_lc_extra_bg"}),RVS.H[t.uid].w[0].appendChild(RVS.H[t.uid].bg)):RVS.H[t.uid].bg=RVS.H[t.uid].w[0].querySelector(":scope > ._lc_extra_bg"));break;case"column":void 0===RVS.H[t.uid].bg&&(null===RVS.H[t.uid].w[0].querySelector(":scope > ._lc_extra_bg_wrap")?(RVS.H[t.uid].bg=RVS.F.cE({cN:"_lc_extra_bg"}),RVS.H[t.uid].bgmask=RVS.F.cE({cN:"_lc_extra_bg_wrap"}),RVS.H[t.uid].bgmask.appendChild(RVS.H[t.uid].bg),RVS.H[t.uid].w[0].appendChild(RVS.H[t.uid].bgmask)):(RVS.H[t.uid].bgmask=RVS.H[t.uid].w[0].querySelector(":scope > ._lc_extra_bg_wrap"),RVS.H[t.uid].bg=RVS.H[t.uid].bgmask.querySelector(":scope > ._lc_extra_bg")));break;case"shape":null===RVS.H[t.uid].w[0].querySelector("._lc_stream_placeholder")&&RVS.H[t.uid].c[0].appendChild(RVS.F.cE({cN:"_lc_stream_placeholder",icon:{c:"cast"}})),i.idle.bgFromStream&&RVS.H[t.uid].c[0].classList.add("placeholder_on")}i.linebreak&&RVS.H[t.uid].w[0].classList.add("rs-linebreak")}void 0===RVS.S.initDragAndResizeonHTMLLayers&&(RVS.S.initDragAndResizeonHTMLLayers=!0,RVS.C.UL[0].addEventListener("mouseenter",function(e){var t,i,a;e.target&&e.target.classList&&e.target.classList.contains("_lc_")&&(e=e.target,RVS.F.updateGroupHeader({uid:e.dataset.uid,delay:.1}),void 0===e.dataset.dragandresize)&&(e.dataset.dragandresize=!0,"column"!==e.dataset.type&&"row"!==e.dataset.type&&RVS.F.doDraggable({uid:e.dataset.uid,drag:!0,resize:!0}),0<=jQuery.inArray(e.dataset.type,["text","button","svg","shape","group"]))&&(void 0!==RVS.H[e.dataset.uid].sclr&&null!==RVS.H[e.dataset.uid].w[0].querySelector(":scope >._lc_reScaler")||(t=RVS.F.cE({cN:"_lc_reScaler"}),i=RVS.F.cE({cN:"_lc_reScaler_pin"}),a=RVS.F.cE({cN:"_lc_reScaler_icon"}),t.appendChild(i),t.appendChild(a),RVS.H[e.dataset.uid].w[0].appendChild(t),RVS.H[e.dataset.uid].sclr=jQuery(i),b(RVS.H[e.dataset.uid].sclr)))},!0),RVS.DOC.on("mouseleave","._lc_",function(){RVS.F.updateGroupHeader({uid:this.dataset.pid})})),"text"===i.type||"button"==i.type?(RVS.F.redrawTextLayerInnerHTML(t.uid),!0!==t.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:t.uid})):"svg"===i.type?void 0===i.svg.renderedData||void 0!==i.svg.source&&4<i.svg.source.length?jQuery.get(i.svg.source,function(e){RVS.H[t.uid].c[0].innerHTML=i.svg.renderedData=(new XMLSerializer).serializeToString(e.documentElement),RVS.H[t.uid].svg=RVS.H[t.uid].w.find("svg"),RVS.H[t.uid].svgPath=RVS.H[t.uid].w.find(i.idle.svg.styleAll?"svg path, svg circle, svg ellipse, svg line, svg polygon, svg polyline, svg rect":"svg path"),RVS.F.drawHTMLLayer({uid:t.uid})}):!0!==t.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:t.uid}):"image"===i.type&&void 0!==i.media.imageUrl&&null!==i.media.imageUrl&&0<i.media.imageUrl.length&&void 0!==i.media&&!0!==i.media.loaded?(tpGS.gsap.set(RVS.H[t.uid].w,{visibility:"hidden"}),RVS.F.preloadImage({uid:t.uid,slideId:RVS.S.slideId,image:i.media.imageUrl,silent:!1,callback:function(){tpGS.gsap.set(RVS.H[t.uid].w,{visibility:"visible"}),!0!==t.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:t.uid})}})):!0!==t.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:t.uid})},RVS.F.updateGroupHeader=function(e){let t=RVS.F.getTopParent({layer:e.uid}),i="",a=0;-1==t&&-1==e.uid&&null==e.delay&&void 0!==RVS.L[RVS.S.lastHoveredLayer]&&"group"==RVS.L[RVS.S.lastHoveredLayer].type&&RVS.H[RVS.S.lastHoveredLayer].w[0].classList.contains("hasSelectedChild")&&("multiple"===RVS.H[RVS.S.lastHoveredLayer].w[0].dataset.selectedchild?i="multiple":(t=RVS.S.lastHoveredLayer,e.uid=RVS.H[RVS.S.lastHoveredLayer].w[0].dataset.selectedchild)),e.delay=null==e.delay?0:e.delay,"multiple"===i?(t=RVS.S.lastHoveredLayer,a=1):void 0!==t&&void 0!==RVS.L[t]&&"group"==RVS.L[t].type&&void 0!==RVS.H[t]&&void 0!==RVS.L[e.uid]?(a+=(t!=RVS.L[e.uid].group.puid?1:0)+(t!=e.uid?1:0),i=RVS.L[t].alias+(t!=RVS.L[e.uid].group.puid?" / "+RVS.L[RVS.L[e.uid].group.puid].alias:"")+(t!=e.uid?" / "+RVS.L[e.uid].alias:"")):void 0!==RVS.L[e.uid]&&"group"==RVS.L[e.uid].type&&(t=e.uid,i=RVS.L[e.uid].alias),""!==i&&(0<e.delay&&clearTimeout(RVS.S.updateHeaderTextTimer),RVS.S.updateHeaderTextTimer=setTimeout(function(){requestAnimationFrame(function(){RVS.F.checkAndWriteGroupHeader({gid:t,t:i,level:a})})},e.delay)),RVS.S.lastHoveredLayer=e.uid},RVS.F.checkAndWriteGroupHeader=function(e){"multiple"===e.t?e.t=RVS_LANG.multiplechildrensel:(0<e.level&&6.5*e.t.length>RVS.H[e.gid].gpH.offsetWidth&&(e.t=".."+e.t.substr(e.t.indexOf(" / ")),1<e.level)&&6.5*e.t.length>RVS.H[e.gid].gpH.offsetWidth&&(e.t=".. / .. "+e.t.substr(e.t.lastIndexOf(" / "))),0<e.level&&(e.t='<span class="sub_text_block">'+e.t,e.t=e.t.substr(0,e.t.lastIndexOf(" / "))+"</span>"+e.t.substr(e.t.lastIndexOf(" / ")))),RVS.H[e.gid].gpHT.innerHTML=e.t},RVS.F.reOrderHTMLLayer=function(e){var t,i,a;null==RVS.H||void 0===RVS.H[e.uid]||void 0===RVS.H[e.uid].w||(t=RVS.L[e.uid],i=RVS.H[e.uid].w,a=RVS.H[e.uid].last_puid===t.group.puid&&RVS.H[e.uid].last_groupOrder===t.group.groupOrder,RVS.H[e.uid].last_puid=t.group.puid,RVS.H[e.uid].last_groupOrder=t.group.groupOrder,-1===t.group.puid||"row"===t.type?"row"==t.type?w({container:RVS.C.rZone[t.group.puid],layer:i[0],uid:e.uid,type:"._lc_type_row"}):RVS.C.layergrid[0].appendChild(i[0]):"column"===t.type?w({container:RVS.H[t.group.puid].c,layer:i[0],uid:e.uid,type:"._lc_type_column"}):w({container:RVS.H[t.group.puid].c,layer:i[0],uid:e.uid,type:"._lc_"}),a)||RVS.S.redrawHTMLLayersList.push(e.uid)},RVS.F.checkRowsChildren=function(){for(var e in RVS.L)if(RVS.L.hasOwnProperty(e)&&("row"==RVS.L[e].type||"group"==RVS.L[e].type)){var t,i=RVS.F.getLayerChildren({layerid:e}),a=0;for(t in i)"column"!==i[t].type&&a++;0<a?RVS.H[e].w.removeClass("nocontent"):RVS.H[e].w.addClass("nocontent")}},RVS.F.addLayerToLayers=function(e){var t;return RVS.S.pastedLayerNewToOld=null==RVS.S.pastedLayerNewToOld?{}:RVS.S.pastedLayerNewToOld,RVS.S.pastedLayerOldToNew=null==RVS.S.pastedLayerOldToNew?{}:RVS.S.pastedLayerOldToNew,void 0!==e.layerobject?((t=jQuery.extend(!0,{},e.layerobject)).uid="copy"===e.copyPaste?"copy"+window.copyPasteLayers.amount:RVS.F.getUniqueid(),RVS.S.pastedLayerNewToOld[t.uid]=void 0!==e.layerobject.copiedFromUid?e.layerobject.copiedFromUid:e.layerobject.uid,RVS.S.pastedLayerOldToNew[void 0!==e.layerobject.copiedFromUid?e.layerobject.copiedFromUid:e.layerobject.uid]=t.uid,(t=RVS.F.addLayerObj(t)).alias=void 0!==e.prefix?e.prefix+" "+t.alias.replace(/Copy/g,""):(1==RVS.S.ignoreCopyPrefix?"":"Copy ")+t.alias.replace(/Copy/g,"")):t=RVS.F.addLayerObj(e.type),e.extension&&(t=jQuery.extend(!0,t,e.extension)),(t=e.subsubtype&&e.subextension?jQuery.extend(!0,t,e.subextension):t).group.puid=(void 0!==e.puid?e:t.group).puid,e.newGroupOrder&&"copy"!==e.copyPaste&&(t.group.groupOrder=function(e){e.type=void 0===e.type?"column":e.type;var t,i=RVS.F.getColumnsInRow({layerid:e.uid,type:e.type}),a=0;for(t in i)i.hasOwnProperty(t)&&(a=parseInt(a,0)<=parseInt(RVS.L[i[t]].group.groupOrder,0)?parseInt(RVS.L[i[t]].group.groupOrder,0)+1:a);return a}({uid:t.group.puid,type:t.type})),t.alias=void 0!==e.extension&&void 0!==e.extension.alias?e.extension.alias+"-"+t.uid:void 0!==e.alias?e.alias+"-"+t.uid:t.alias,"copy"===e.copyPaste?(window.copyPasteLayersSlideId=RVS.S.slideId,window.copyPasteLayers.amount++,t.copiedFromUid=e.layerobject.uid,window.copyPasteLayers.layers[t.uid]=t):(void 0!==e.layerobject&&RVS.F.duplicateSkinColors({type:"layer",layerFrom:void 0!==e.layerobject.copiedFromUid?e.layerobject.copiedFromUid:e.layerobject.uid,layerTo:t.uid,slideFrom:window.copyPasteLayersSlideId,slideTo:RVS.S.slideId}),delete t.copiedFromUid,RVS.SLIDER[RVS.S.slideId].layers[t.uid]=t,RVS.F.backup({path:t.uid,icon:"layers",txt:"Create New Layer",lastkey:"newlayer",force:!0,slideid:RVS.S.slideId,val:jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId]).layers[t.uid],old:{},backupType:"layer",bckpGrType:"addlayer"})),e.buildHTMLLayer&&"copy"!==e.copyPaste&&RVS.F.buildHTMLLayer({uid:t.uid}),t.uid},RVS.F.extendLayerTypes=function(e){if(RVS.S.extendedLayerTypes=void 0===RVS.S.extendedLayerTypes?{}:RVS.S.extendedLayerTypes,void 0===RVS.S.extendedLayerTypes[e.subtype]){var t;if(e.extension.subtype=e.subtype,RVS.S.extendedLayerTypes[e.subtype]={type:e.type,subtype:e.subtype,extension:e.extension,subextension:e.subextension},e.subdrop){if(t='<div id="toolbar_add_layer_'+e.alias+'" class="toolbar_dd_subdrop_wrap">',e.objLibInMainMenu?t+='<div class="add_layer" data-type="'+e.type+'"'+(e.fromobjlib?' data-fromobjlib="true"':"")+' data-subtype="object_library" data-libevent="'+e.libevent+'" data-extensiongroup="'+e.subtype+'" data-libfilters="'+e.libfilters+'"><i class="material-icons">'+e.icon+"</i>"+e.alias+"</div>":t+='<div class="add_layer" data-type="'+e.type+'" data-subtype="'+e.subtype+'"><i class="material-icons">'+e.icon+"</i>"+e.alias+"</div>",t+='<div class="toolbar_dd_subdrop">',e.objectlibrary&&(t+='<div class="add_layer" data-type="'+e.type+'" data-subtype="object_library" data-libevent="'+e.libevent+'" data-extensiongroup="'+e.subtype+'" data-libfilters="'+e.libfilters+'"><i class="material-icons">style</i>Object Library</div>'),e.emptyplaceholder&&(t+='<div class="add_layer" data-type="'+e.type+'" data-subtype="'+e.subtype+'"><i class="material-icons">flip_to_back</i>Empty Placeholder</div>'),e.subList)for(var i in e.subList)e.subList.hasOwnProperty(i)&&(t+='<div class="add_layer" '+(e.subList[i].fromobjlib?'data-fromobjlib="true"':"")+(e.subList[i].objLibInSubMenu?'data-subtype="object_library"':"")+" "+(e.subList[i].filter?' data-filter="'+e.subList[i].filter+'"':"")+" "+(e.subList[i].selected?' data-selected="'+e.subList[i].selected+'"':"")+' data-evt="'+e.subList[i].evt+'" data-libevent="'+e.subList[i].libevent+'" data-libfilters="'+e.subList[i].libfilters+'" obj.data-type="'+e.type+'" data-subtype="'+e.subtype+'" data-subsubtype="'+i+'"><i class="material-icons">'+e.subList[i].icon+"</i>"+e.subList[i].name+"</div>");t=t+"</div>"+"</div>"}else t='<div class="add_layer" data-type="'+e.type+'"'+(e.fromobjlib?' data-fromobjlib="true"':"")+' data-subtype="'+e.subtype+'"><i class="material-icons">'+e.icon+"</i>"+e.alias+"</div>";jQuery(t).insertAfter("#toolbar_add_layer_group")}},RVS.F.addLayer=function(e,t){RVS.DOC.trigger("changeToLayerMode"),e.ignoreBackupGroup||t||RVS.F.openBackupGroup({id:"addLayer",txt:"Create New "+e.type+" Layer",icon:"layers",lastkey:"layer"});var i,a,r,s,o,n,l,d="paste"===e.copyPaste?window.copyPasteLayers.layers:RVS.L;switch(e.type){case"row":if(void 0===e.duplicateId)for(var S=i=RVS.F.addLayerToLayers({type:"row",alias:"row",buildHTMLLayer:!0}),c=0;c<3;c++)RVS.F.addLayerToLayers({type:"column",puid:S,alias:"column",buildHTMLLayer:!0});else{S=i=RVS.F.addLayerToLayers({layerobject:d[e.duplicateId],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix,newGroupOrder:!0});var p,u=RVS.F.getColumnsInRow({layerid:e.duplicateId,copyPaste:e.copyPaste});for(p in u)if(u.hasOwnProperty(p)){var R=RVS.F.addLayerToLayers({puid:S,layerobject:d[u[p]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix}),V=RVS.F.getLayersFirstDepth({layerid:u[p],copyPaste:e.copyPaste});for(r in V)if(V.hasOwnProperty(r)&&(n=RVS.F.addLayerToLayers({puid:R,layerobject:d[V[r]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix}),"group"==d[V[r]].type))for(s in a=RVS.F.getLayersFirstDepth({layerid:V[r],copyPaste:e.copyPaste}))a.hasOwnProperty(s)&&RVS.F.addLayerToLayers({puid:n,layerobject:d[a[s]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix})}}break;case"column":if(void 0===e.duplicateId)i=RVS.F.addLayerToLayers({type:"column",puid:e.puid,alias:"column",buildHTMLLayer:!0});else{var m,y=i=RVS.F.addLayerToLayers({layerobject:d[e.duplicateId],newGroupOrder:!0,buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix});for(r in m=RVS.F.getLayersFirstDepth({layerid:e.duplicateId,copyPaste:e.copyPaste}))m.hasOwnProperty(r)&&RVS.F.addLayerToLayers({puid:y,layerobject:d[m[r]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix})}break;case"group":if(void 0===e.duplicateId)i=RVS.F.addLayerToLayers({type:"group",alias:"group",buildHTMLLayer:!0});else for(r in o=i=RVS.F.addLayerToLayers({layerobject:d[e.duplicateId],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix,newGroupOrder:!0}),m=RVS.F.getLayersFirstDepth({layerid:e.duplicateId,copyPaste:e.copyPaste}))if(m.hasOwnProperty(r)&&(n=RVS.F.addLayerToLayers({puid:o,layerobject:d[m[r]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix}),"group"==d[m[r]].type))for(s in a=RVS.F.getLayersFirstDepth({layerid:m[r],copyPaste:e.copyPaste}))a.hasOwnProperty(s)&&RVS.F.addLayerToLayers({puid:n,layerobject:d[a[s]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix});break;case"linebreak":i=RVS.F.addLayerToLayers({type:"shape",alias:"linebreak",buildHTMLLayer:!0,extension:{size:{width:{d:{v:"100%"},n:{v:"100%"},t:{v:"100%"},m:{v:"100%"}},height:{d:{v:"10px"},n:{v:"10px"},t:{v:"10px"},m:{v:"10px"}}},idle:{backgroundColor:"transparent",clear:{d:{v:"both"},n:{v:"both"},t:{v:"both"},m:{v:"both"}}},position:{position:"relative"},linebreak:!0}});break;default:switch(i="predefined"===e.subtype?RVS.F.addLayerToLayers({type:e.type,alias:e.type,buildHTMLLayer:!0,extension:e.extension}):void 0===e.duplicateId?void 0!==RVS.S.extendedLayerTypes&&void 0!==RVS.S.extendedLayerTypes[e.subtype]||void 0!==RVS.S.extendedLayerTypes&&void 0!==e.extensiongroup&&void 0!==RVS.S.extendedLayerTypes[e.extensiongroup]?void 0!==e.extensiongroup?RVS.F.addLayerToLayers({type:e.type,alias:e.type,subsubtype:e.subsubtype,subextension:null!=RVS.S.extendedLayerTypes[e.subtype]&&void 0!==RVS.S.extendedLayerTypes[e.subtype].subextension?RVS.S.extendedLayerTypes[e.subtype].subextension[e.subsubtype]:void 0,extension:RVS.S.extendedLayerTypes[e.extensiongroup].extension,buildHTMLLayer:!0}):RVS.F.addLayerToLayers({type:e.type,alias:e.type,subsubtype:e.subsubtype,subextension:null!=RVS.S.extendedLayerTypes[e.subtype]&&void 0!==RVS.S.extendedLayerTypes[e.subtype].subextension?RVS.S.extendedLayerTypes[e.subtype].subextension[e.subsubtype]:void 0,extension:RVS.S.extendedLayerTypes[e.subtype].extension,buildHTMLLayer:!0}):RVS.F.addLayerToLayers({type:e.type,alias:e.type,buildHTMLLayer:!0}):RVS.F.addLayerToLayers({layerobject:d[e.duplicateId],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix,newGroupOrder:-1!==d[e.duplicateId].group.puid}),e.subtype){case"wordpress_library":"image"===e.type?jQuery("#image_layer_media_library_button").trigger("click"):"video"===e.type&&jQuery("#video_layer_media_library_button").trigger("click");break;case"object_library":"object"===e.type?RVS.F.openObjectLibrary({types:["fonticons","svgs","svgcustom"],filter:"all",selected:["fonticons"],success:{icon:"insertContentFromOL"}}):"image"===e.type?jQuery("#image_layer_object_library_button").trigger("click"):"video"===e.type?jQuery("#video_layer_object_library_button").trigger("click"):void 0!==e.libfilters&&(l=e.libfilters.split(","),RVS.F.openObjectLibrary({types:l,filter:"undefined"==e.filter||null==e.filter?"all":e.filter,selected:["undefined"==e.selected||null==e.selected?l[0]:e.selected],success:{custom:e.libevent},extension:e.extensiongroup}));break;case"headline":e.ignoreBackupGroup=!0,RVS.F.openQuickStyle({bacupGroupOpen:"addLayer",list:["headlines","content"]});break;case"simple_content":e.ignoreBackupGroup=!0,RVS.F.openQuickStyle({bacupGroupOpen:"addLayer",list:["content","headlines"]});break;case"button":e.ignoreBackupGroup=!0,RVS.F.openQuickStyle({bacupGroupOpen:"addLayer",list:["button"]});break;case"predefined":break;default:e.ignoreBackupGroup=void 0!==RVS.F.subOpenQuickStyle&&void 0!==RVS.F.subOpenQuickStyle[e.subtype]&&RVS.F.subOpenQuickStyle[e.subtype](e.subsubtype)}}return e.ignoreBackupGroup||t||RVS.F.closeBackupGroup({id:"addLayer"}),e.ignoreLayerList||RVS.F.buildLayerLists({force:!0,ignoreRebuildHTML:!0}),e.ignoreOrderHTMLLayers||RVS.F.reOrderHTMLLayers(),void 0!==RVS.eMode&&"layer"===RVS.eMode.top&&"animation"===RVS.eMode.mode&&RVS.F.showForms("*slidelayout**mode__slidecontent*#form_layer_style",!0),RVS.DOC.trigger("layerAdded",{layerid:i,params:e}),i},RVS.F.deleteLayerSingle=function(e){RVS.F.backup({path:e.layerid,icon:"layers",txt:"Remove Layer",lastkey:"removelayer",force:!0,slideid:RVS.S.slideId,val:{},old:jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId]).layers[e.layerid],backupType:"layer",bckpGrType:"removelayer"}),delete RVS.SLIDER[RVS.S.slideId].layers[e.layerid],delete RVS.H[e.layerid],RVS.F.updateTriggeringActionRelations(e.layerid),jQuery("#_lc_"+RVS.S.slideId+"_"+e.layerid+"_").remove()},RVS.F.deleteLayerfromLayers=function(e,t){if(void 0!==RVS.L[e.layerid]){var i;if(t||(RVS.DOC.trigger("changeToLayerMode"),i=!1,void 0!==e.groupisopen)||RVS.S.bckpGrp||(RVS.S.bckpGrp||(i=!0),RVS.F.openBackupGroup({id:"removeLayer",txt:"Remove "+RVS.L[e.layerid].type+" Layer",icon:"delete",lastkey:"layer"})),"row"==RVS.L[e.layerid].type||"column"==RVS.L[e.layerid].type||"group"==RVS.L[e.layerid].type){var a,r=RVS.F.getLayersFirstDepth({layerid:e.layerid});for(a in r)r.hasOwnProperty(a)&&(void 0===e.newpuid||t?RVS.F.deleteLayerfromLayers({layerid:r[a]},!0):(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+r[a]+".group.puid",val:e.newpuid}),void 0!==RVS.H[r[a]]&&void 0!==RVS.H[r[a]].w&&(delete RVS.H[r[a]].w[0].dataset.dragandresize,void 0!==RVS.H[r[a]].sclr)&&null!==RVS.H[r[a]].sclr&&(RVS.H[r[a]].sclr.remove(),RVS.H[r[a]].sclr=void 0)))}RVS.F.deleteLayerSingle(e),t||i&&(RVS.F.closeBackupGroup({id:"removeLayer"}),RVS.F.buildLayerLists({force:!0}))}},RVS.F.updateSelectedHtmlLayers=function(i,a){requestAnimationFrame(function(){var e,t;for(e in document.querySelectorAll(".hasSelectedChild").forEach(e=>{e.classList.remove("hasSelectedChild"),delete e.dataset.selectedchild}),RVS.L)RVS.L.hasOwnProperty(e)&&"top"!==e&&"bottom"!==e&&"middle"!==e&&(!i&&RVS.F.inSelectedLayers({id:e})&&void 0!==RVS.H[e]?(RVS.H[e].w[0].classList.add("selected"),RVS.H[e].selected=!0,-1!==(t=RVS.F.getTopParent({layer:e}))&&"group"==RVS.L[t].type&&(RVS.H[t].w[0].classList.add("hasSelectedChild"),t!=RVS.L[e].group.puid&&RVS.H[RVS.L[e].group.puid].w[0].classList.add("hasSelectedChild"),RVS.H[t].w[0].dataset.selectedchild=void 0===RVS.H[t].w[0].dataset.selectedchild?e:"multiple"),RVS.F.setZindex({id:e,o:475})):void 0!==RVS.H[e]&&(!0!==a&&(RVS.H[e].w[0].classList.remove("selected"),RVS.H[e].selected=!1),RVS.F.setZindex({id:e})))})},RVS.F.updateStaticStartEndList=function(){window.staticLayerStartIndex=void 0===window.staticLayerStartIndex?jQuery("#staticlayer_Startindex"):window.staticLayerStartIndex,window.staticLayerEndIndex=void 0===window.staticLayerEndIndex?jQuery("#staticlayer_Endindex"):window.staticLayerEndIndex,RVS.F.removeAllOptionsS2({select:window.staticLayerStartIndex}),RVS.F.removeAllOptionsS2({select:window.staticLayerEndIndex});for(var e=1;e<RVS.SLIDER.slideIDs.length-1;e++)RVS.F.addOptionS2({select:window.staticLayerStartIndex,val:e.toString(),txt:e}),RVS.F.addOptionS2({select:window.staticLayerEndIndex,val:(e+1).toString(),txt:e+1});RVS.F.addOptionS2({select:window.staticLayerEndIndex,val:"last",txt:RVS_LANG.lastslide})},RVS.F.setZindex=function(e){e.o=null==e.o?0:e.o,void 0!==RVS.H[e.id]&&void 0!==RVS.H[e.id].w&&tpGS.gsap.set(RVS.H[e.id].w,{zIndex:parseInt(RVS.L[e.id].position.zIndex,0)+parseInt(e.o,0)})},RVS.F.allLayersReDraw=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&RVS.F.drawHTMLLayer({uid:e})},RVS.F.selectedLayersVisualUpdate=function(){for(var e in jQuery(".layerselector").removeClass("checked"),jQuery(".tllayerlist_element").removeClass("checked"),RVS.S.selLayerTypes)RVS.S.selLayerTypes.hasOwnProperty(e)&&(RVS.S.selLayerTypes[e]=!1,inset=!1);var t,i=!1,a="";for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.selLayers[t]).addClass("checked"),jQuery("#tllayerlist_element_selector_"+RVS.S.slideId+"_"+RVS.selLayers[t]).addClass("checked"),inset=1==inset||"fullinset"==RVS.L[RVS.selLayers[t]].size.covermode,i||-1==RVS.L[RVS.selLayers[t]].group.puid||(i="column"===RVS.L[RVS.L[RVS.selLayers[t]].group.puid].type?"column":"group"===RVS.L[RVS.L[RVS.selLayers[t]].group.puid].type?"group":"root"),RVS.S.selLayerTypes[RVS.L[RVS.selLayers[t]].type]=!0,void 0!==RVS.L[RVS.selLayers[t]].subtype)&&""!==RVS.L[RVS.selLayers[t]].subtype&&(RVS.S.selLayerTypes[RVS.L[RVS.selLayers[t]].subtype]=!0,void 0!==RVS.L[RVS.selLayers[t]].subsubtype)&&""!==RVS.L[RVS.selLayers[t]].subsubtype&&(RVS.S.selLayerTypes[RVS.L[RVS.selLayers[t]].subsubtype]=!0);for(e in RVS.S.selLayerTypes)RVS.S.selLayerTypes.hasOwnProperty(e)&&RVS.S.selLayerTypes[e]&&(a=a+" _"+e+"_sel_");a=""==a?"no_layers_selected":a+" _layer_in_"+(0==i?"root":i)+"_sel_"+(inset?" layer_is_inset":""),a=1<RVS.selLayers.length?a+" multiple_layers_selected":a,RVS.C.the_cont[0].className=a},RVS.F.doResizeLayers=function(e){if(!(1<RVS.selLayers.length||0===RVS.selLayers.length))switch(e.mode){case"init":if(window.RSCBS={},window.RSCBS[RVS.selLayers[0]]=a(RVS.L[RVS.selLayers[0]]),"group"===RVS.L[RVS.selLayers[0]].type||"auto"!==window.RSCBS[RVS.selLayers[0]].width||-1!==RVS.L[RVS.selLayers[0]].group.puid||"text"!==RVS.L[RVS.selLayers[0]].type&&"button"!==RVS.L[RVS.selLayers[0]].type||("full"!==window.RSCBS[RVS.selLayers[0]].wrap&&"normal"!==window.RSCBS[RVS.selLayers[0]].wrap||(RVS.L[RVS.selLayers[0]].idle.whiteSpace[RVS.screen].v="content"),window.RSCBS[RVS.selLayers[0]].CacheWidth=window.RSCBS[RVS.selLayers[0]].width,window.RSCBS[RVS.selLayers[0]].width="auto"===window.RSCBS[RVS.selLayers[0]].width?RVS.H[RVS.selLayers[0]].w.width():window.RSCBS[RVS.selLayers[0]].width),"group"===RVS.L[RVS.selLayers[0]].type)for(var t in window.RSCBS.layers=RVS.F.getLayersFirstDepth({layerid:RVS.selLayers[0]}),window.RSCBS.layers)window.RSCBS[window.RSCBS.layers[t]]=a(RVS.L[window.RSCBS.layers[t]]);break;case"update":if(d({layerid:RVS.selLayers[0],size:e.size}),"group"===RVS.L[RVS.selLayers[0]].type)for(var t in window.RSCBS.layers)d({layerid:window.RSCBS.layers[t],size:e.size,ingroup:!0});break;case"set":var i=!1;if("group"!==RVS.L[RVS.selLayers[0]].type&&-1===RVS.L[RVS.selLayers[0]].group.puid&&("text"===RVS.L[RVS.selLayers[0]].type||"button"===RVS.L[RVS.selLayers[0]].type)&&RVS.S.layer_grid_offset.left+RVS.S.lgw>RVS.H[RVS.selLayers[0]].w.offset().left+RVS.H[RVS.selLayers[0]].w.width()&&(i=!0,window.RSCBS[RVS.selLayers[0]].width="auto"===window.RSCBS[RVS.selLayers[0]].CacheWidth?"auto":window.RSCBS[RVS.selLayers[0]].width),d({layerid:RVS.selLayers[0],size:1}),"group"===RVS.L[RVS.selLayers[0]].type)for(var t in window.RSCBS.layers)d({layerid:window.RSCBS.layers[t],size:1});if(RVS.F.openBackupGroup({id:"layerScaling",txt:"Layer Scaling",icon:"layers",lastkey:"layer"}),l({layerid:RVS.selLayers[0],size:e.size,ignore:!1,redraw:!0,updatefields:!0,ignoreBackup:!1}),!0===i?RVS.L[RVS.selLayers[0]].idle.whiteSpace[RVS.screen].v=window.RSCBS[RVS.selLayers[0]].wrap:"group"===RVS.L[RVS.selLayers[0]].type||-1!==RVS.L[RVS.selLayers[0]].group.puid||"text"!==RVS.L[RVS.selLayers[0]].type&&"button"!==RVS.L[RVS.selLayers[0]].type||window.RSCBS[RVS.selLayers[0]].width===window.RSCBS[RVS.selLayers[0]].CacheWidth||"auto"!=window.RSCBS[RVS.selLayers[0]].CacheWidth||RVS.F.showInfo({content:RVS_LANG.layerbleedsout,type:"info",showdelay:0,hidedelay:8,hideon:"",event:""}),"group"===RVS.L[RVS.selLayers[0]].type)for(var t in window.RSCBS.layers)l({layerid:window.RSCBS.layers[t],size:e.size,ingroup:!0,ignore:!1,redraw:!0,updatefields:!0,ignoreBackup:!1});RVS.F.closeBackupGroup({id:"layerScaling"})}},RVS.F.selectLayers=function(e){RVS.S.justresized||(e=void 0===e?{}:e,"animation"!==RVS.eMode.mode?RVS.S.keyFrame="idle":!0===e.keepSelectedFrame&&void 0!==RVS.S.keyFrame||(e.selectedKeyFrame=void 0===e.selectedKeyFrame?"idle":e.selectedKeyFrame,RVS.S.keyFrame=e.selectedKeyFrame),void 0===e||"add"!==e.action||void 0===e.id||!RVS.L[e.id].visibility||!RVS.L[e.id].visibility.locked&&RVS.L[e.id].visibility.visible||(e.action="remove"),e.ignoreModeChange||"layer"===RVS.eMode.top&&"#form_layer_animation"===RVS.eMode.menu||(RVS.F.mainMode({set:!1,ignoreReDraw:!0,mode:"slidelayout"}),RVS.F.showHideLayerEditor({mode:"slidecontent",openSettings:!1})),e.overwrite?(RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0],void 0,!0),RVS.selLayers=[]):0<RVS.selLayers.length&&!e.quickmode&&"layer"===RVS.eMode.top&&"#form_layer_animation"===RVS.eMode.menu&&RVS.F.showInfo({content:RVS_LANG.noMultipleSelectionOfLayers,type:"info",showdelay:.2,hidedelay:2,hideon:"",event:""}),e.id="top"===e.id||"bottom"===e.id||"middle"===e.id?"ignore":void 0===e.id?e.id:parseInt(e.id,0),void 0!==e.id&&"ignore"!==e.id&&("add"===e.action&&-1==jQuery.inArray(e.id,RVS.selLayers)?RVS.selLayers.push(e.id):"remove"===e.action&&-1!==jQuery.inArray(e.id,RVS.selLayers)&&RVS.selLayers.splice(jQuery.inArray(e.id,RVS.selLayers),1)),!0===e.ignoreUpdate||e.quickmode||("onlyhtml"!==e.ignoreUpdate&&RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),"animation"!==RVS.eMode.mode&&RVS.F.updateAllLayerToIDLE(),RVS.F.updateSelectedLayersIdleHover(),0<=RVS.C.toggledTextButton.className.indexOf("selected")&&RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0])),!0===e.ignoreFieldUpdates||e.quickmode?e.quickmode?RVS.F.updateSelectedHtmlLayers():window.qstyle_library_open&&RVS.F.updateAvailableLayerTypes():(RVS.F.updateLayerInputFields({short:!0}),RVS.C.slit.textContent=1===RVS.selLayers.length?RVS.F.getLayerIcon(RVS.L[RVS.selLayers[0]].linebreak?"linebreak":RVS.L[RVS.selLayers[0]].type,RVS.L[RVS.selLayers[0]].subtype):"layers",RVS.DOC.trigger("selectLayersDone"),RVS.F.checkForAudioLayer()),void 0!==e.selectedKeyFrame?(RVS.TL.cache.main=(RVS.F.getTimeAtSelectedFrameEnd()-2)/100,RVS.TL.cache.main<=0?RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"selectLayers"}):RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0})):e.quickmode||0!==RVS.selLayers.length||jQuery("framewrap.selected").removeClass("selected"),!e.quickmode&&RVS.S.shwLayerAnim&&RVS.DOC.trigger("previewLayerAnimation"),RVS.F.manageShapeContentShow(),void 0!==RVS.selLayers[0]&&"label"==RVS.L[RVS.selLayers[0]].htmltag&&(RVS.C.jLBLFor=null==RVS.C.jLBLFor?jQuery("#label_for_target"):RVS.C.jLBLFor,RVS.F.upadteLayerTargetDropDowns({select:RVS.C.jLBLFor,targetid:RVS.L[RVS.selLayers[0]].labelfor,ignorestatic:!0})))},RVS.DOC.on("updateLabelFor",function(e,t){void 0!==t&&"label"===t.val&&(RVS.C.jLBLFor=null==RVS.C.jLBLFor?jQuery("#label_for_target"):RVS.C.jLBLFor,RVS.F.upadteLayerTargetDropDowns({select:RVS.C.jLBLFor,targetid:RVS.L[RVS.selLayers[0]].labelfor,ignorestatic:!0}))}),RVS.F.convertTimeToSec=function(e,t){e=""===e?parseFloat(t):e;var t=!RVS.F.isNumeric(e)&&0<=e.indexOf(":"),i=0;return e=t?e.split(":"):e,null==(i=t&&1<e.length?60*parseFloat(e[0])+parseFloat(e[1]):t?parseFloat(e[0]):e)?0:i},RVS.F.updateAudioTimes=function(e){var t;1==RVS.selLayers.length&&"audio"===RVS.L[RVS.selLayers[0]].type&&(RVS.L[RVS.selLayers[0]].media.startAt=""===RVS.L[RVS.selLayers[0]].media.startAt?0:RVS.L[RVS.selLayers[0]].media.startAt,RVS.L[RVS.selLayers[0]].media.endAt=""===RVS.L[RVS.selLayers[0]].media.endAt?e:RVS.L[RVS.selLayers[0]].media.endAt,RVS.L[RVS.selLayers[0]].media.endAt=RVS.L[RVS.selLayers[0]].media.endAt>e?e:RVS.L[RVS.selLayers[0]].media.endAt,document.getElementById("layer_video_start").value=RVS.L[RVS.selLayers[0]].media.startAt,document.getElementById("layer_video_end").value=RVS.L[RVS.selLayers[0]].media.endAt,e=RVS.F.convertTimeToSec(RVS.L[RVS.selLayers[0]].media.startAt,0),t=0===(t=RVS.F.convertTimeToSec(RVS.L[RVS.selLayers[0]].media.endAt,window.audiomaster.getDuration()))||t<=e?window.audiomaster.getDuration():t,window.audiomaster.regions.destroy(),window.audioregion=window.audiomaster.regions.add({start:e,end:t,color:"rgba(0,109,210,0.2)"}),window.audioregion.on("update",function(){RVS.L[RVS.selLayers[0]].media.startAt=window.audioregion.start,RVS.L[RVS.selLayers[0]].media.endAt=window.audioregion.end,document.getElementById("layer_video_start").value=RVS.L[RVS.selLayers[0]].media.startAt,document.getElementById("layer_video_end").value=RVS.L[RVS.selLayers[0]].media.endAt}),window.audioregion.on("dblclick",function(){window.audioregion.play()}))},RVS.F.checkForAudioLayer=function(){1==RVS.selLayers.length&&"audio"===RVS.L[RVS.selLayers[0]].type&&""!==RVS.L[RVS.selLayers[0]].media.audioUrl&&"FAIL"!==window.audiomaster&&(void 0===window.audiomaster?(RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.audiolibraryloading}),jQuery.getScript(RVS.ENV.plugin_url+"/admin/assets/js/plugins/wavesurfer.js",function(){window.audiomaster=WaveSurfer.create({container:"#media_audio_master",cursorColor:"#5e35b1",progressColor:"transparent",height:30,plugins:[WaveSurfer.regions.create({})]}),RVS.DOC.on("listenAudioMaster",function(){window.audiomaster.play()}),RVS.DOC.on("muteAudioMaster",function(){window.audiomaster.pause()}),RVS.DOC.on("updateaudiorange",function(){RVS.F.updateAudioTimes(window.audiomaster.getDuration())}),RVS.F.checkForAudioLayer(),setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100)}).fail(function(e,t,i){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),window.audiomaster="FAIL"})):(window.audiomaster.on("ready",function(){RVS.F.updateAudioTimes(window.audiomaster.getDuration()),jQuery("#audio_simulator").removeClass("disabled")}),window.audiomaster.on("loading",function(){jQuery("#audio_simulator").addClass("disabled")}),window.audiomaster.on("finish",function(){RVS.F.changeSwitchState({el:jQuery("#audio_simulator")[0],state:"play"})}),window.audiomaster.load(RVS.L[RVS.selLayers[0]].media.audioUrl)))},RVS.F.updateSelectedLayersIdleHover=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.H[e]&&("idle"===RVS.eMode.mode&&void 0!==RVS.H[e].hover?RVS.H[e].hover.seek(0).pause():"hover"!==RVS.eMode.mode||!0!==RVS.L[e].hover.usehover&&"true"!==RVS.L[e].hover.usehover&&"desktop"!==RVS.L[e].hover.usehover||void 0===RVS.H[e].hover||(0<=jQuery.inArray(parseInt(e,0),RVS.selLayers)?RVS.H[e].hover.seek(9999):(RVS.F.drawHTMLLayer({uid:e}),RVS.H[e].hover.seek(0))).pause())},RVS.F.checkCurrentLayerHoverMode=function(e){"hover"!==RVS.eMode.mode||"true"!=RVS.L[e.layerid].hover.usehover&&1!=RVS.L[e.layerid].hover.usehover&&"desktop"!=RVS.L[e.layerid].hover.usehover||void 0===RVS.H[e.layerid].hover||RVS.H[e.layerid].hover.seek(9999).pause()},RVS.F.getRowStructures=function(e){if("row"===RVS.L[e.layerid].type){var t,i=RVS.F.getColumnsInRow({layerid:e.layerid}),a="",r=0;for(t in i)i.hasOwnProperty(t)&&(a=0===r?"":a+"+",a+=RVS.L[i[t]].group.columnSize,r++);return a}},RVS.F.updateRowColumnField=function(){var e,t,i,a="",r=!1;for(e in RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(t=RVS.selLayers[e],i="","row"===RVS.L[t].type?i=RVS.F.getRowStructures({layerid:t}):"column"===RVS.L[t].type&&(i=RVS.F.getRowStructures({layerid:RVS.L[RVS.L[t].group.puid].uid})),"row"!==RVS.L[t].type&&"column"!==RVS.L[t].type||r||(a=""===a||a===i?i:(r=!0,"")));jQuery("#row_column_structure").val(RVS.F.sanitize_columns(a)).trigger("change")},RVS.F.getPrevNextLayerInOrder=function(e,t){if(void 0!==RVS.L[e]&&void 0!==RVS.L[e].group&&void 0!==RVS.L[e].group.puid){var i,a={order:"next"===t?99999:-2,id:e};for(i in RVS.L)RVS.L.hasOwnProperty(i)&&RVS.L[i].group&&RVS.L[i].group.puid==RVS.L[e].group.puid&&("next"===t&&RVS.L[i].group.groupOrder>RVS.L[e].group.groupOrder&&RVS.L[i].group.groupOrder<a.order||"prev"===t&&RVS.L[i].group.groupOrder<RVS.L[e].group.groupOrder&&RVS.L[i].group.groupOrder>a.order)&&(a.order=RVS.L[i].group.groupOrder,a.id=RVS.L[i].uid);return a.id}},RVS.F.getLayerDepth=function(e){return e.depth=null==e.depth?0:e.depth,null!=RVS.L[e.layer]&&-1!=RVS.L[e.layer].group.puid?(e.depth++,e.layer=RVS.L[e.layer].group.puid,RVS.F.getLayerDepth(e)):e.depth},RVS.F.getLayerHierArchy=function(e,t){return null==t&&(t=[]),null!=RVS.L[e]&&"row"!==RVS.L[e].type&&""+RVS.L[e].group.puid!="-1"&&(t.push(RVS.L[e].group.puid),t=RVS.F.getLayerHierArchy(RVS.L[e].group.puid,t)),t},RVS.F.isDeeperGroup=function(e){if(null==RVS.L[e]||"group"!==RVS.L[e].type)return!1;var t,i=!1;for(t in RVS.L)RVS.L.hasOwnProperty(t)&&!i&&"top"!=t&&"bottom"!=t&&"middle"!=t&&""+RVS.L[t].group.puid==""+e&&(i="group"==RVS.L[t].type);return i},RVS.F.getTopParent=function(e){return e.par=null==e.par?-1:e.par,null!=RVS.L[e.layer]&&-1!=RVS.L[e.layer].group.puid?(e.par=RVS.L[e.layer].group.puid,e.layer=RVS.L[e.layer].group.puid,RVS.F.getTopParent(e)):e.par},RVS.F.getColumnsInRow=function(e){var t=[],i=[];if(e.type=void 0===e.type?"column":e.type,"paste"===e.copyPaste)for(var a in window.copyPasteLayers.layers)window.copyPasteLayers.layers.hasOwnProperty(a)&&window.copyPasteLayers.layers[a].type===e.type&&window.copyPasteLayers.layers[a].group.puid==e.layerid&&t.push({order:window.copyPasteLayers.layers[a].group.groupOrder,uid:window.copyPasteLayers.layers[a].uid});else for(var a in RVS.L)RVS.L.hasOwnProperty(a)&&RVS.L[a].type===e.type&&RVS.L[a].group.puid==e.layerid&&t.push({order:RVS.L[a].group.groupOrder,uid:RVS.L[a].uid});for(a in t.sort(function(e,t){return e.order-t.order}),t)t.hasOwnProperty(a)&&i.push(t[a].uid);return i},RVS.F.getLayersFirstDepth=function(e){var t=[];if("paste"===e.copyPaste)for(var i in window.copyPasteLayers.layers)window.copyPasteLayers.layers.hasOwnProperty(i)&&window.copyPasteLayers.layers[i].group.puid==e.layerid&&t.push(window.copyPasteLayers.layers[i].uid);else for(var i in RVS.L)RVS.L.hasOwnProperty(i)&&RVS.L[i].group.puid==e.layerid&&t.push(RVS.L[i].uid);return t},RVS.F.getLayersAllDepth=function(e){var t,i=[];for(t in RVS.L)if(RVS.L.hasOwnProperty(t)&&RVS.L[t].group.puid==e.layerid)if("column"===RVS.L[t].type){var a,r=RVS.F.getLayersFirstDepth({layerid:RVS.L[t].uid});for(a in r)r.hasOwnProperty(a)&&i.push(r[a].uid)}else i.push(RVS.L[t].uid);return i},RVS.F.inSelectedLayers=function(e){var t,i=!1;for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&RVS.selLayers[t]==e.id&&(i=!0);return i},RVS.F.notOnRoot=function(e){return void 0!==e&&void 0!==e.group&&void 0!==e.group.puid&&0<=e.group.puid&&e.group.puid<=5e3},RVS.F.groupOrColumn=function(e){return null!=e&&("column"===e.type||"group"===e.type)},RVS.F.getFirstSelectedType=function(e){var t,i=!1;for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&!1===(i=!1===i&&RVS.L[RVS.selLayers[t]].type===e?RVS.selLayers[t]:i)&&RVS.F.notOnRoot(RVS.L[RVS.selLayers[t]])&&RVS.L[RVS.L[RVS.selLayers[t]].group.puid].type===e&&(i=RVS.L[RVS.selLayers[t]].group.puid);return i},RVS.F.updateAllHTMLLayerPositions=function(e){for(var t in RVS.L)!RVS.L.hasOwnProperty(t)||void 0===RVS.L[t].position.x||null!=e&&"slide"!==RVS.L[t].behavior.baseAlign||RVS.F.updateHTMLLayerPosition({uid:t})},RVS.F.updateHTMLLayerPosition=function(e){var t,i,a,r,s,o,n,l,d,S,c,p=RVS.H[e.uid],u=RVS.L[e.uid];void 0!==u&&void 0!==p&&(t={left:0,top:0},i=null==e.o?{x:0,y:0}:e.o,a=u.position.vertical[RVS.screen].v,r=u.position.horizontal[RVS.screen].v,c=s={x:parseInt(u.position.x[RVS.screen].v,0),y:+parseInt(u.position.y[RVS.screen].v,0)},t.force3D=!0,"row"===u.type||"column"===u.type||-1!==u.group.puid&&("column"===RVS.L[u.group.puid].type&&"relative"===u.position.position||"group"===RVS.L[u.group.puid].type&&"relative"===u.position.position)?null==p.chPosRel&&((p.chPosRel=!0)!==p.fastDomProcess?(p.fastDomProcess=!0,fastdom.measure(function(){"relative"!==p.w[0].style.position&&fastdom.mutate(function(){p.w[0].style.position="relative",p.w[0].style.left="auto",p.w[0].style.right="auto",p.w[0].style.top="auto",p.w[0].style.bottom="auto",p.w[0].classList.add("_lc_i_rel"),p.w[0].classList.remove("_lc_i_abs")})})):requestAnimationFrame(function(){"relative"!==p.w[0].style.position&&tpGS.gsap.set(p.w,{x:0,y:0,position:"relative",left:"auto",right:"auto",top:"auto",bottom:"auto"})})):(o=void 0===e.lhCwidth?p.c.outerWidth():e.lhCwidth,n=void 0===e.lhCheight?("group"==u.type?p.w:p.c).outerHeight():e.lhCheight,0==o&&0==n&&(void 0===e.firstDimCheckDone||e.firstDimCheckDone<5)?(e.firstDimCheckDone=void 0===e.firstDimCheckDone?0:e.firstDimCheckDone,e.firstDimCheckDone++,requestAnimationFrame(function(){RVS.F.updateHTMLLayerPosition(e)})):(S=-1===u.group.puid?{width:RVS.C.layergrid.width(),height:RVS.C.layergrid.height()}:{width:RVS.H[u.group.puid].w.width(),height:RVS.H[u.group.puid].w.height()},S={x:"center"===r?S.width/2-o/2:c.x,y:"middle"===a?S.height/2-n/2:c.y},e.snapToGrid&&RVS.S.DaD.sameLevelNotColumn&&(l=RVS.F.getSnapPoint(S.x,S.y),d=RVS.F.getSnapPoint(i.x,i.y),c=RVS.F.getSnapPoint(c.x,c.y),"center"!==r&&(S.x=l.x),"middle"!==a&&(S.y=l.y),RVS.S.updatePosToXDif=i.x-d.x-(c.x-s.x),RVS.S.updatePosToYDif=i.y-d.y-(c.y-s.y),i=d),"fullinset"==u.size.covermode&&"absolute"==u.position.position&&void 0!==RVS.L[u.group.puid]&&"group"==RVS.L[u.group.puid].type&&"100%"==u.size.width[RVS.screen].v?(t.right=u.idle.margin[RVS.screen].v[1]+"px",t.left=u.idle.margin[RVS.screen].v[3]+"px"):"right"!==r?(t.right="auto",t.left=S.x+i.x):(t.left="auto",t.right=S.x-i.x),"fullinset"==u.size.covermode&&"absolute"==u.position.position&&void 0!==RVS.L[u.group.puid]&&"group"==RVS.L[u.group.puid].type&&"100%"==u.size.height[RVS.screen].v?(t.top=u.idle.margin[RVS.screen].v[0]+"px",t.bottom=u.idle.margin[RVS.screen].v[2]+"px"):"bottom"!==a?(t.bottom="auto",t.top=S.y+i.y):(t.top="auto",t.bottom=S.y-i.y),t.x="center"===r?c.x:0,t.y="middle"===a?c.y:0,"slide"===u.behavior.baseAlign&&-1===u.group.puid&&(t.x="right"===r?t.x+RVS.C.layergrid[0].offsetLeft:"left"===r?t.x-RVS.C.layergrid[0].offsetLeft:t.x,t.y="bottom"===a?t.y+RVS.C.layergrid[0].offsetTop:"top"===a?t.y-RVS.C.layergrid[0].offsetTop:t.y),e.updateValues?(l={x:Math.round("right"===r?s.x-i.x:s.x+i.x),y:Math.round("bottom"===a?s.y-i.y:s.y+i.y)},"column"===RVS.S.DaD.toContainerType&&"absolute"!==RVS.S.DaD.draggedPosType?(l.x=0,l.y=0):e.snapToGrid&&RVS.S.DaD.sameLevelNotColumn?l=RVS.F.getSnapPoint(l.x,l.y):e.snapToLayers&&RVS.S.DaD.sameLevelNotColumn&&(-1!==RVS.S.DaD.snapHF.uid&&(e.uid==RVS.S.DaD.currentLayerId?(d=parseInt(RVS.L[RVS.S.DaD.snapHF.uid].position.x[RVS.screen].v,0)+("left"===r?RVS.S.DaD.snapHF.offset:"center"===r?RVS.S.DaD.snapHF.offset-RVS.S.DaD.snapHF.w/2:RVS.S.DaD.snapHF.w-RVS.S.DaD.snapHF.offset),d+=6<RVS.S.DaD.snapHF.prio?"right"===r?0:"left"===r?0-o:0-o/2:3<RVS.S.DaD.snapHF.prio?"right"===r||"left"===r?0-o/2:0:RVS.S.DaD.snapHF.prio<4?"right"===r?0-o:"left"===r?0:o/2:0,RVS.S.DaD.difh=l.x-d,l.x=Math.round(d)):l.x=l.x-RVS.S.DaD.difh,"right"===r?t.right=t.right-RVS.S.DaD.difh:t.left=t.left-RVS.S.DaD.difh),-1!==RVS.S.DaD.snapVF.uid)&&(e.uid==RVS.S.DaD.currentLayerId?(S=parseInt(RVS.L[RVS.S.DaD.snapVF.uid].position.y[RVS.screen].v,0)+("top"===a?RVS.S.DaD.snapVF.offset:"middle"===a?RVS.S.DaD.snapVF.offset-RVS.S.DaD.snapVF.h/2:RVS.S.DaD.snapVF.h-RVS.S.DaD.snapVF.offset),S+=6<RVS.S.DaD.snapVF.prio?"bottom"===a?0:"top"===a?0-n:0-n/2:3<RVS.S.DaD.snapVF.prio?"bottom"===a||"top"===a?0-n/2:0:RVS.S.DaD.snapVF.prio<4?"bottom"===a?0-n:"top"===a?0:n/2:0,RVS.S.DaD.difv=l.y-S,l.y=Math.round(S)):l.y=l.y-RVS.S.DaD.difv,"bottom"===a?t.bottom=t.bottom-RVS.S.DaD.difv:t.top=t.top-RVS.S.DaD.difv),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".position.x.#size#.v",val:l.x+"px",uid:e.uid}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".position.y.#size#.v",val:l.y+"px",uid:e.uid}),RVS.S.updatePosToX=l.x,RVS.S.updatePosToY=l.y):e.mouseInfo&&(RVS.S.updatePosToX="column"===RVS.S.DaD.toContainerType&&"absolute"!==RVS.S.DaD.draggedPosType?0:"right"===r?s.x-i.x:s.x+i.x,RVS.S.updatePosToY="column"===RVS.S.DaD.toContainerType&&"absolute"!==RVS.S.DaD.draggedPosType?0:"bottom"===a?s.y-i.y:s.y+i.y,e.snapToGrid)&&RVS.S.DaD.sameLevelNotColumn&&(c=RVS.F.getSnapPoint(RVS.S.updatePosToX,RVS.S.updatePosToY),RVS.S.updatePosToX=c.x,RVS.S.updatePosToY=c.y),t.position="absolute",p.w[0].classList.add("_lc_i_abs"),p.w[0].classList.remove("_lc_i_rel"),p.chPosRel=void 0,requestAnimationFrame(function(){tpGS.gsap.set(p.w,t)}))))},RVS.F.resetDragStates=function(){for(var e in RVS.S.DaD.showInMini=!1,RVS.H)RVS.H.hasOwnProperty(e)&&u(e)},RVS.F.moveLayerByKeys=function(e){var t;if(window.moveByKeyboard||(RVS.F.openBackupGroup({id:"LayerPosition",txt:"Layer Position",icon:"open_with"}),window.moveByKeyboard=!0),RVS.S.DaD.difh=0,RVS.S.DaD.difv=0,1===RVS.selLayers.length&&-1!==RVS.L[RVS.selLayers[0]].group.puid&&"column"===RVS.L[RVS.L[RVS.selLayers[0]].group.puid].type)-1==e.x||-1==e.y?(t=RVS.F.getPrevNextLayerInOrder(RVS.selLayers[0],"prev"))!==RVS.selLayers[0]&&RVS.F.sortLayer({layer:RVS.selLayers[0],target:"before",env:t,redraw:!0}):1!==e.x&&1!==e.y||(t=RVS.F.getPrevNextLayerInOrder(RVS.selLayers[0],"next"))!==RVS.selLayers[0]&&RVS.F.sortLayer({layer:RVS.selLayers[0],target:"after",env:t,redraw:!0});else for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(i=RVS.selLayers[i],RVS.F.updateHTMLLayerPosition({uid:i,o:e,updateValues:!0,lhCwidth:RVS.H[i].c.outerWidth(),lhCheight:RVS.H[i].c.outerHeight()}),document.getElementById("layer_pos_x").value=RVS.L[i].position.x[RVS.screen].v,document.getElementById("layer_pos_y").value=RVS.L[i].position.y[RVS.screen].v)},RVS.F.collectAllSameAlignedLayers=function(e){for(var t in RVS.S.DaD.snapH={},RVS.S.DaD.snapV={},RVS.L)RVS.L[t].hasOwnProperty&&RVS.L[t].group.puid===RVS.S.DaD.fromContainerID&&void 0!==RVS.L[t].hover&&e!=RVS.L[t].uid&&(RVS.L[t].position.horizontal[RVS.screen].v===RVS.L[e].position.horizontal[RVS.screen].v&&(RVS.S.DaD.snapH[RVS.L[t].uid]={ox:parseInt(RVS.L[t].position.x[RVS.screen].v,0),x:RVS.H[t].w[0].offsetLeft,w:RVS.H[t].w[0].offsetWidth},RVS.S.DaD.snapH[RVS.L[t].uid].x="center"===RVS.L[e].position.horizontal[RVS.screen].v?RVS.S.DaD.snapH[RVS.L[t].uid].ox+RVS.S.lgw/2-RVS.S.DaD.snapH[RVS.L[t].uid].w/2:RVS.S.DaD.snapH[RVS.L[t].uid].x,RVS.S.DaD.snapH[RVS.L[t].uid].xc=RVS.S.DaD.snapH[RVS.L[t].uid].x+RVS.S.DaD.snapH[RVS.L[t].uid].w/2,RVS.S.DaD.snapH[RVS.L[t].uid].xr=RVS.S.DaD.snapH[RVS.L[t].uid].x+RVS.S.DaD.snapH[RVS.L[t].uid].w),RVS.L[t].position.vertical[RVS.screen].v===RVS.L[e].position.vertical[RVS.screen].v)&&(RVS.S.DaD.snapV[RVS.L[t].uid]={oy:parseInt(RVS.L[t].position.y[RVS.screen].v,0),y:RVS.H[t].w[0].offsetTop,h:RVS.H[t].w[0].offsetHeight},RVS.S.DaD.snapV[RVS.L[t].uid].y="middle"===RVS.L[e].position.vertical[RVS.screen].v?RVS.S.DaD.snapV[RVS.L[t].uid].oy+RVS.S.lgh/2-RVS.S.DaD.snapV[RVS.L[t].uid].h/2:RVS.S.DaD.snapV[RVS.L[t].uid].y,RVS.S.DaD.snapV[RVS.L[t].uid].ym=RVS.S.DaD.snapV[RVS.L[t].uid].y+RVS.S.DaD.snapV[RVS.L[t].uid].h/2,RVS.S.DaD.snapV[RVS.L[t].uid].yb=RVS.S.DaD.snapV[RVS.L[t].uid].y+RVS.S.DaD.snapV[RVS.L[t].uid].h)},RVS.F.closeToOtherLayers=function(e,t){RVS.S.DaD.snapHF={offset:1e4,d:2e4,uid:-1,prio:50},RVS.S.DaD.snapVF={offset:1e4,d:2e4,uid:-1,prio:50},t.m=t.x+t.w/2,t.e=t.x+t.w;var i,a,r,s,o,n,l,d,S,c,p,u,R,V,m,y,g,h,f,v,_,L,w,b,I,F,D,x=RVS.SLIDER.settings.snap.gap;for(R in RVS.S.DaD.snapH)RVS.S.DaD.snapH[R].hasOwnProperty&&(i=RVS.S.DaD.snapH[R],a=Math.abs(t.x-i.x+RVS.S.DaD.scrolldiff.x),r=Math.abs(t.x-i.xc+RVS.S.DaD.scrolldiff.x),s=Math.abs(t.x-i.xr+RVS.S.DaD.scrolldiff.x),o=Math.abs(t.x-(i.x-x)+RVS.S.DaD.scrolldiff.x),n=Math.abs(t.x-(i.xr+x)+RVS.S.DaD.scrolldiff.x),l=Math.abs(t.m-i.x+RVS.S.DaD.scrolldiff.x),d=Math.abs(t.m-i.xc+RVS.S.DaD.scrolldiff.x),S=Math.abs(t.m-i.xr+RVS.S.DaD.scrolldiff.x),c=Math.abs(t.e-i.x+RVS.S.DaD.scrolldiff.x),p=Math.abs(t.e-i.xc+RVS.S.DaD.scrolldiff.x),u=Math.abs(t.e-i.xr+RVS.S.DaD.scrolldiff.x),grl=Math.abs(t.e-(i.x-x)+RVS.S.DaD.scrolldiff.x),gre=Math.abs(t.e-(i.xr+x)+RVS.S.DaD.scrolldiff.x),a<10&&a<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,uid:R,d:a,prio:1,w:i.w}:5<x&&o<10&&o<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0-x,uid:R,d:a,prio:1,w:i.w}:2<=RVS.S.DaD.snapHF.prio&&r<=10&&RVS.S.DaD.snapHF.offset>i.w/2?RVS.S.DaD.snapHF={offset:i.w/2,uid:R,prio:2,d:r,w:i.w}:3<=RVS.S.DaD.snapHF.prio&&s<=10&&RVS.S.DaD.snapHF.offset>i.w?RVS.S.DaD.snapHF={offset:i.w,uid:R,prio:3,d:s,w:i.w}:5<x&&3<=RVS.S.DaD.snapHF.prio&&n<10&&RVS.S.DaD.snapHF.offset>i.w?RVS.S.DaD.snapHF={offset:i.w+x,uid:R,prio:3,d:s,w:i.w,gap:1}:4<=RVS.S.DaD.snapHF.prio&&l<=10&&l<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,d:l,uid:R,prio:4,w:i.w}:5<=RVS.S.DaD.snapHF.prio&&d<=10&&d<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:i.w/2,d:d,uid:R,prio:5,w:i.w}:6<=RVS.S.DaD.snapHF.prio&&S<=10&&S<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:i.w,d:S,uid:R,prio:6,w:i.w}:7<=RVS.S.DaD.snapHF.prio&&c<=10&&c<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,d:c,uid:R,prio:7,w:i.w}:5<x&&7<=RVS.S.DaD.snapHF.prio&&grl<x&&c<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0-x,d:c,uid:R,prio:7,w:i.w,gap:1}:8<=RVS.S.DaD.snapHF.prio&&p<=10&&p<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:i.w/2,d:p,uid:R,prio:8,w:i.w}:9<=RVS.S.DaD.snapHF.prio&&u<=10&&u<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:i.w,d:u,uid:R,prio:9,w:i.w}:5<x&&9<=RVS.S.DaD.snapHF.prio&&gre<x&&u<RVS.S.DaD.snapHF.d&&(RVS.S.DaD.snapHF={offset:i.w+x,d:u,uid:R,prio:9,w:i.w,gap:1}));for(R in t.m=t.y+t.h/2,t.e=t.y+t.h,RVS.S.DaD.snapV)RVS.S.DaD.snapV[R].hasOwnProperty&&(V=RVS.S.DaD.snapV[R],m=Math.abs(t.y-V.y+RVS.S.DaD.scrolldiff.y),y=Math.abs(t.y-V.ym+RVS.S.DaD.scrolldiff.y),g=Math.abs(t.y-V.yb+RVS.S.DaD.scrolldiff.y),h=Math.abs(t.y-(V.y-x)+RVS.S.DaD.scrolldiff.y),f=Math.abs(t.y-(V.yb+x)+RVS.S.DaD.scrolldiff.y),v=Math.abs(t.m-V.y+RVS.S.DaD.scrolldiff.y),_=Math.abs(t.m-V.ym+RVS.S.DaD.scrolldiff.y),L=Math.abs(t.m-V.yb+RVS.S.DaD.scrolldiff.y),w=Math.abs(t.e-V.y+RVS.S.DaD.scrolldiff.y),b=Math.abs(t.e-V.ym+RVS.S.DaD.scrolldiff.y),I=Math.abs(t.e-V.yb+RVS.S.DaD.scrolldiff.y),F=Math.abs(t.e-(V.y-x)+RVS.S.DaD.scrolldiff.y),D=Math.abs(t.e-(V.yb+x)+RVS.S.DaD.scrolldiff.y),m<10&&m<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,uid:R,d:m,prio:1,h:V.h}:5<x&&h<10&&m<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0-x,uid:R,d:m,prio:1,h:V.h,gap:1}:2<=RVS.S.DaD.snapVF.prio&&y<10&&RVS.S.DaD.snapVF.offset>V.h/2?RVS.S.DaD.snapVF={offset:V.h/2,uid:R,prio:2,d:y,h:V.h}:3<=RVS.S.DaD.snapVF.prio&&g<10&&RVS.S.DaD.snapVF.offset>V.h?RVS.S.DaD.snapVF={offset:V.h,uid:R,prio:3,d:g,h:V.h}:5<x&&3<=RVS.S.DaD.snapVF.prio&&f<10&&RVS.S.DaD.snapVF.offset>V.h?RVS.S.DaD.snapVF={offset:V.h+x,uid:R,prio:3,d:g,h:V.h,gap:1}:4<=RVS.S.DaD.snapVF.prio&&v<10&&v<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,d:v,uid:R,prio:4,h:V.h}:5<=RVS.S.DaD.snapVF.prio&&_<10&&_<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:V.h/2,d:_,uid:R,prio:5,h:V.h}:6<=RVS.S.DaD.snapVF.prio&&L<10&&L<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:V.h,d:L,uid:R,prio:6,h:V.h}:7<=RVS.S.DaD.snapVF.prio&&w<10&&w<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,d:w,uid:R,prio:7,h:V.h}:5<x&&7<=RVS.S.DaD.snapVF.prio&&F<10&&w<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0-x,d:w,uid:R,prio:7,h:V.h,gap:1}:8<=RVS.S.DaD.snapVF.prio&&b<10&&b<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:V.h/2,d:b,uid:R,prio:8,h:V.h}:9<=RVS.S.DaD.snapVF.prio&&I<10&&I<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:V.h,d:I,uid:R,prio:9,h:V.h}:5<x&&9<=RVS.S.DaD.snapVF.prio&&D<10&&I<RVS.S.DaD.snapVF.d&&(RVS.S.DaD.snapVF={offset:V.h+x,d:I,uid:R,prio:9,h:V.h,gap:1}))},RVS.F.updateDraggedWidth=function(e){var t=void 0!==RVS.S.DaD.CoveredDims&&void 0!==RVS.S.DaD.CoveredDims.width?RVS.S.DaD.CoveredDims:"auto"==RVS.L[RVS.S.DaD.currentLayerId].size.width[RVS.screen].v?RVS.S.DaD.originalWidth:RVS.L[RVS.S.DaD.currentLayerId].size.width[RVS.screen].v;return(null==RVS.S.DaD.parentWidth||void 0!==RVS.S.DaD.toContainerID&&RVS.S.DaD.toContainerID!==RVS.S.DaD.parentID)&&(RVS.S.DaD.parentID=parseInt(RVS.S.DaD.toContainerID,0),RVS.S.DaD.parentWidth=-1!==RVS.S.DaD.parentID&&void 0!==RVS.H[RVS.S.DaD.parentID]?RVS.H[RVS.S.DaD.parentID].w[0].offsetWidth:0),-1!==RVS.S.DaD.parentID&&RVS.S.DaD.wpercent&&(t=RVS.S.DaD.parentWidth*(parseInt(t)/100),e)&&tpGS.gsap.set(RVS.S.DaD.uiHelper,{width:t}),t},RVS.F.doDraggable=function(l){var d=RVS.H[l.uid];d.w.data("draggable")&&d.w.draggable("destroy"),d.w.data("resizable")&&d.w.resizable("destroy"),l.drag&&d.w.draggable({helper:"clone",cancel:"#the_container._layer_in_group_sel_.layer_is_inset .ui-draggable.selected",appendTo:"#layer_grid_"+RVS.S.slideId,start:function(e,t){if("fullinset"==RVS.L[l.uid].size.covermode)RVS.F.showInfo({content:RVS_LANG.notduringinsetmode,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""});else{if(RVS.S.dragging=!0,RVS.S.realDragHappen=!1,RVS.animationMode="#form_layer_animation"===RVS.eMode.menu&&"animation"===RVS.eMode.mode,RVS.F.setRulers(),RVS.F.stopAndPauseAllLayerAnimation(),RVS.F.resetDragStates(),"relative"===RVS.L[l.uid].position.ingrouppositoin&&(RVS.L[l.uid].position.position="relative"),RVS.S.DaD.touchPosition={x:e.clientX-t.originalPosition.left,y:e.clientY-t.originalPosition.top},RVS.S.ulInner[0].classList.add("dropSensorActive"),RVS.F.updateContentDeltas(),RVS.S.DaD.dropSensor=!0!==RVS.animationMode?1:0,RVS.S.DaD.currentLayerId=l.uid,RVS.S.DaD.parentID=-1,RVS.S.DaD.wpercent=0<=(RVS.L[RVS.S.DaD.currentLayerId].size.width[RVS.screen].v+"").indexOf("%"),RVS.S.DaD.wpercent&&(RVS.S.DaD.parentID=parseInt(RVS.L[l.uid].group.puid,0),RVS.S.DaD.parentID=0<=RVS.S.DaD.parentID?RVS.S.DaD.parentID:-1,RVS.S.DaD.parentWidth=0<=RVS.S.DaD.parentID?RVS.H[RVS.S.DaD.parentID].w[0].offsetWidth:0),"relative"===RVS.L[RVS.S.DaD.currentLayerId].position.position?RVS.C.slide[0].classList.add("rel_layer_in_drag"):RVS.C.slide[0].classList.add("abs_layer_in_drag"),RVS.S.DaD.draggedPosType=d.w[0].style.position,RVS.S.click.y=e.clientY,RVS.S.click.x=e.clientX,RVS.S.DaD.startPos="0",RVS.S.DaD.fromContainerID=RVS.L[l.uid].group.puid,RVS.S.DaD.lastRegisteredRow=-1===RVS.S.DaD.fromContainerID?-1:"group"===RVS.L[RVS.S.DaD.fromContainerID].type?"group":RVS.L[RVS.S.DaD.fromContainerID].group.puid,RVS.S.DaD.lastRegisteredRowBefore=RVS.S.DaD.lastRegisteredRow,window.scrollMem={y:RVS.S.rb_ScrollY,x:RVS.S.rb_ScrollX},RVS.S.DaD.fromContainerRowColumn=-1!==RVS.S.DaD.fromContainerID,RVS.S.DaD.uiHelper=t.helper,RVS.S.DaD.clone=RVS.S.DaD.fromContainerRowColumn?t.helper:d.w,RVS.S.DaD.dragItemOffset=d.w.offset(),RVS.S.DaD.fromContainerType=0<=RVS.S.DaD.fromContainerID&&RVS.S.DaD.fromContainerID<=5e3?RVS.L[RVS.L[l.uid].group.puid].type:"root",RVS.S.DaD.scrolldiff={x:RVS.S.rb_ScrollX-window.scrollMem.x,y:RVS.S.rb_ScrollY-window.scrollMem.y},RVS.ENV.tlGridWrap[0].classList.remove("selected"),!0!==RVS.animationMode){for(var i in RVS.S.WWL=RVS.L[l.uid],RVS.S.lpv=RVS.S.WWL.position.vertical[RVS.screen].v,RVS.S.lph=RVS.S.WWL.position.horizontal[RVS.screen].v,RVS.C.layer_pos_x=void 0===RVS.C.layer_pos_x?document.getElementById("layer_pos_x"):RVS.C.layer_pos_x,RVS.C.layer_pos_y=void 0===RVS.C.layer_pos_y?document.getElementById("layer_pos_y"):RVS.C.layer_pos_y,"layers"===RVS.SLIDER.settings.snap.adjust&&RVS.F.collectAllSameAlignedLayers(l.uid),RVS.S.DaD.snapToGrid="grid"===RVS.SLIDER.settings.snap.adjust,RVS.S.DaD.snapToLayers="layers"===RVS.SLIDER.settings.snap.adjust,RVS.H)RVS.H.hasOwnProperty(i)&&"group"===RVS.L[i].type&&(RVS.H[i].w_offset=RVS.H[i].w.offset());for(var a in RVS.F.selectLayers({id:l.uid,overwrite:!0,action:"add",quickmode:!0}),RVS.S.DaD.CoveredDims="slide"===RVS.L[l.uid].behavior.baseAlign?RVS.F.updateCoveredLayer(l.uid):void 0,RVS.selLayers)RVS.selLayers.hasOwnProperty(a)&&(i=RVS.selLayers[a],RVS.H[i].c_width=RVS.H[i].c.outerWidth(),RVS.H[i].c_height=RVS.H[i].c.outerHeight(),RVS.H[i].w_offsetcache={horizontal:RVS.S.DaD.dragItemOffset.left-RVS.H[i].w.offset().left,vertical:RVS.S.DaD.dragItemOffset.top-RVS.H[i].w.offset().top});RVS.S.DaD.originalWidth=d.w.width()+1,RVS.S.DaD.originalHeight=d.w.height()+1,t.helper.css({zIndex:1e5,width:RVS.S.DaD.originalWidth}),tpGS.gsap.set(d.w,{opacity:0}),RVS.C.layergrid.addClass("layersInDragorResize")}else void 0!==RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame]&&""+RVS.S.DaD.currentLayerId==""+RVS.selLayers[0]||(RVS.F.selectLayers({id:RVS.S.DaD.currentLayerId,overwrite:!0,action:"add",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!1,ignoreModeChange:!0}),void 0===RVS.S.keyFrame&&(RVS.F.setKeyframeSelected("frame_1"),RVS.S.keyFrame="frame_1")),RVS.S.DaD.layerFrameX=document.getElementById("le_frame_x"),RVS.S.DaD.layerFrameY=document.getElementById("le_frame_y"),RVS.S.DaD.frameOXH=RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.x[RVS.screen].v,RVS.S.DaD.frameOYH=RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.y[RVS.screen].v,"inherit"!==RVS.S.DaD.frameOXH&&"inherit"!==RVS.S.DaD.frameOYH||(e=RVS.F.getPrevNextFrame({layerid:RVS.selLayers[0],frame:RVS.S.keyFrame}),RVS.S.DaD.frameOXH="inherit"===RVS.S.DaD.frameOXH?RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[e.prev.frameid].transform.x[RVS.screen].v:RVS.S.DaD.frameOXH,RVS.S.DaD.frameOYH="inherit"===RVS.S.DaD.frameOYH?RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[e.prev.frameid].transform.y[RVS.screen].v:RVS.S.DaD.frameOYH,RVS.S.DaD.frameOXH="inherit"===RVS.S.DaD.frameOXH?0:RVS.S.DaD.frameOXH,RVS.S.DaD.frameOYH="inherit"===RVS.S.DaD.frameOYH?0:RVS.S.DaD.frameOYH),RVS.S.DaD.frameOX=parseInt(RVS.S.DaD.frameOXH,0),RVS.S.DaD.frameOY=parseInt(RVS.S.DaD.frameOYH,0),RVS.S.DaD.frameOX_N=RVS.F.isNumeric(RVS.S.DaD.frameOX)&&(0<=(""+RVS.S.DaD.frameOXH).indexOf("px")||"0"==RVS.S.DaD.frameOXH),RVS.S.DaD.frameOY_N=RVS.F.isNumeric(RVS.S.DaD.frameOY)&&(0<=(""+RVS.S.DaD.frameOYH).indexOf("px")||"0"==RVS.S.DaD.frameOYH),tpGS.gsap.set(d.w,{opacity:1}),t.helper.css({opacity:0});tpGS.gsap.set(t.helper.find("._lc_content_")[0],{whiteSpace:RVS.L[RVS.selLayers[0]].idle.whiteSpace[RVS.screen]})}},drag:function(e,t){if("fullinset"!=RVS.L[l.uid].size.covermode)if(RVS.S.DaD.scrolldiff={x:RVS.S.rb_ScrollX-window.scrollMem.x,y:RVS.S.rb_ScrollY-window.scrollMem.y},RVS.S.DaD.dragdelta.x=Math.round((e.clientX-RVS.S.click.x+RVS.S.DaD.scrolldiff.x)/RVS.zoom),RVS.S.DaD.dragdelta.y=Math.round((e.clientY-RVS.S.click.y+RVS.S.DaD.scrolldiff.y)/RVS.zoom),!0===RVS.animationMode)RVS.S.DaD.frameOX_N&&(RVS.S.DaD.layerFrameX.value=RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.x[RVS.screen].v=RVS.S.DaD.frameOX+RVS.S.DaD.dragdelta.x+"px"),RVS.S.DaD.frameOY_N&&(RVS.S.DaD.layerFrameY.value=RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.y[RVS.screen].v=RVS.S.DaD.frameOY+RVS.S.DaD.dragdelta.y+"px"),RVS.F.renderLayerAnimation({layerid:RVS.S.DaD.currentLayerId,quickRendering:!1,timeline:"full",caller:"drawHTMLLayer"}),requestAnimationFrame(function(){RVS.F.showMouseInfo({classes:"purplemouseinfo",html:"<div class='mouse_frame_label'>"+RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].alias+"</div><div class='mouse_info_coor '><div><span class='mouselabel'>X</span><span class='mouseval'>"+RVS.S.DaD.layerFrameX.value+"</span></div><div><span class='mouselabel'>Y</span><span class='mouseval'>"+RVS.S.DaD.layerFrameY.value+"</span></div></div></div>"})});else{for(var i in RVS.S.DaD.sameLevelNotColumn=-1===RVS.S.DaD.toContainerID&&"root"===RVS.S.DaD.fromContainerType,void 0!==RVS.S.updateEsyInputsTimer&&(clearTimeout(RVS.S.updateEsyInputsTimer),RVS.S.updateEsyInputsTimerMemory=!0,delete RVS.S.updateEsyInputsTimer),"column"!==RVS.S.DaD.fromContainerType||RVS.S.DaD.showInMini||"absolute"===RVS.S.DaD.draggedPosType||(RVS.S.DaD.dragdelta.x=RVS.S.DaD.dragdelta.x+RVS.S.DaD.touchPosition.x-RVS.S.layer_grid_offset.left,RVS.S.DaD.dragdelta.y=RVS.S.DaD.dragdelta.y+RVS.S.DaD.touchPosition.y-RVS.S.layer_grid_offset.top),t.position={},RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(i=RVS.selLayers[i],RVS.F.updateHTMLLayerPosition({uid:i,o:RVS.S.DaD.dragdelta,updateDistanceLines:l.uid,lhCwidth:RVS.H[i].c_width,lhCheight:RVS.H[i].c_height,updateFields:i==l.uid,mouseInfo:i==RVS.S.DaD.currentLayerId,snapToGrid:RVS.S.DaD.snapToGrid,snapToLayers:RVS.S.DaD.snapToLayers}));var a={left:(e.clientX-RVS.S.layer_grid_offset.left)/RVS.zoom,top:(e.clientY-RVS.S.layer_grid_offset.top)/RVS.zoom,transformOrigin:"0 0",opacity:.75,scale:.6,width:RVS.S.DaD.originalWidth,display:RVS.L[RVS.S.DaD.currentLayerId].idle.display,x:0+RVS.S.DaD.scrolldiff.x,y:0+RVS.S.DaD.scrolldiff.y};RVS.S.DaD.showInMini||("column"===RVS.S.DaD.fromContainerType&&"absolute"!==RVS.S.DaD.draggedPosType||(a.left=(e.clientX-RVS.S.DaD.touchPosition.x)/RVS.zoom,a.top=(e.clientY-RVS.S.DaD.touchPosition.y)/RVS.zoom),a.width=RVS.F.updateDraggedWidth(),a.height="auto"==RVS.L[RVS.S.DaD.currentLayerId].size.height[RVS.screen].v?RVS.S.DaD.originalHeight:RVS.L[RVS.S.DaD.currentLayerId].size.height[RVS.screen].v,a.display="block",a.scale=1),RVS.S.DaD.snapToGrid&&RVS.S.DaD.sameLevelNotColumn?(a.left=a.left-RVS.S.updatePosToXDif,a.top=a.top-RVS.S.updatePosToYDif):RVS.S.DaD.snapToLayers&&RVS.F.closeToOtherLayers(RVS.S.DaD.currentLayerId,{x:a.left,y:a.top,w:RVS.H[RVS.S.DaD.currentLayerId].c_width,h:RVS.H[RVS.S.DaD.currentLayerId].c_height}),tpGS.gsap.set(t.helper,a),RVS.S.DaD.startPos={x:a.left,y:a.top},RVS.C.layer_pos_x.value=RVS.S.updatePosToX,RVS.C.layer_pos_y.value=RVS.S.updatePosToY,requestAnimationFrame(function(){void 0===RVS.S.updatePosToX||void 0===RVS.S.updatePosToY||0==RVS.S.updatePosToX&&0==RVS.S.updatePosToY?RVS.F.hideMouseInfo():RVS.F.showMouseInfo({html:"<div class='mouse_info_coor'><div><span class='mouselabel'>X</span><span class='mouseval'>"+RVS.S.updatePosToX+"</span></div><div><span class='mouselabel'>Y</span><span class='mouseval'>"+RVS.S.updatePosToY+"</span></div></div><div class='mouse_info_align "+RVS.S.lph+" "+RVS.S.lpv+"'><span class='mia_tl'></span><span class='mia_tc'></span><span class='mia_tr'></span><span class='mia_ml'></span><span class='mia_mc'></span><span class='mia_mr'></span><span class='mia_bl'></span><span class='mia_bc'></span><span class='mia_br'></span></div>"}),"none"!==RVS.SLIDER.settings.snap.adjust&&(RVS.S.DaD.sameLevelNotColumn?RVS.F.snapVisual({av:RVS.S.lpv,ah:RVS.S.lph,sp:"grid"===RVS.SLIDER.settings.snap.adjust?RVS.F.getSnapPoint(RVS.S.updatePosToX,RVS.S.updatePosToY):void 0}):RVS.F.clearSnapVisual())})}},stop:function(e,t){if("fullinset"!=RVS.L[l.uid].size.covermode){if(RVS.S.dragging=!1,"none"!==RVS.SLIDER.settings.snap.adjust&&RVS.F.clearSnapVisual(),RVS.C.slide[0].classList.remove("rel_layer_in_drag"),RVS.C.slide[0].classList.remove("abs_layer_in_drag"),tpGS.gsap.set(t.helper,{scale:1}),RVS.S.ulInner[0].classList.remove("dropSensorActive"),RVS.S.DaD.dropSensor=!1,V(),requestAnimationFrame(function(){RVS.F.hideMouseInfo()}),RVS.S.realDragHappen){t=!0===RVS.animationMode?"frame":-1==RVS.S.DaD.fromContainerID&&void 0!==RVS.S.DaD.target&&"free"==RVS.S.DaD.target.into?"layermovement":"layersorting_layermovement";if(RVS.F.openBackupGroup({id:t,txt:!0!==RVS.animationMode?"Layer Position":"Frame Position",icon:"open_with"}),RVS.S.DaD.difh=0,!(RVS.S.DaD.difv=0)!==RVS.animationMode){if("group"===RVS.S.DaD.toContainerType&&RVS.S.DaD.toContainerID+""!=RVS.S.DaD.fromContainerID+""&&void 0!==RVS.L[RVS.S.DaD.parentID]){var i,a=!1;for(i in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(i)&&RVS.screen!=RVS.V.sizes[i]&&!0===RVS.SLIDER.settings.size.custom[RVS.V.sizes[i]]&&RVS.L[RVS.S.DaD.currentLayerId].position.x[RVS.V.sizes[i]].e&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".position.x."+RVS.V.sizes[i]+".v",val:"0px",uid:RVS.S.DaD.currentLayerId}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".position.y."+RVS.V.sizes[i]+".v",val:"0px",uid:RVS.S.DaD.currentLayerId}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".position.x."+RVS.V.sizes[i]+".e",val:!1,uid:RVS.S.DaD.currentLayerId}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".position.y."+RVS.V.sizes[i]+".e",val:!1,uid:RVS.S.DaD.currentLayerId}),a=!0);a&&RVS.F.showInfo({content:RVS_LANG.noticepositionreseted,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""})}for(var r in RVS.F.updateHTMLLayerPosition({uid:RVS.S.DaD.currentLayerId,o:RVS.S.DaD.dragdelta,updateValues:!0,lhCwidth:RVS.H[RVS.S.DaD.currentLayerId].c_width,lhCheight:RVS.H[RVS.S.DaD.currentLayerId].c_height,snapToGrid:RVS.S.DaD.snapToGrid,snapToLayers:RVS.S.DaD.snapToLayers}),RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&(i=RVS.selLayers[r])!=RVS.S.DaD.currentLayerId&&RVS.F.updateHTMLLayerPosition({uid:i,o:RVS.S.DaD.dragdelta,updateValues:!0,lhCwidth:RVS.H[i].c_width,lhCheight:RVS.H[i].c_height,snapToGrid:RVS.S.DaD.snapToGrid,snapToLayers:RVS.S.DaD.snapToLayers})}else RVS.S.DaD.frameOX_N&&RVS.F.backup({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".timeline.frames."+RVS.S.keyFrame+".transform.x.#size#.v",lastkey:"v",val:RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.x[RVS.screen].v,old:RVS.S.DaD.frameOX}),RVS.S.DaD.frameOY_N&&RVS.F.backup({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".timeline.frames."+RVS.S.keyFrame+".transform.y.#size#.v",lastkey:"v",val:RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.y[RVS.screen].v,old:RVS.S.DaD.frameOY});if(RVS.S.DaD.snapToGrid=!1,RVS.S.DaD.snapToLayers=!1,RVS.C.layergrid[0].classList.remove("layersInDragorResize"),!0!==RVS.animationMode){clearTimeout(RVS.S.DaD.timer);var s=void 0!==RVS.S.DaD.target?RVS.S.DaD.target.into:"free";if("column"===s||"group"===s){if(void 0!==RVS.S.DaD.target)if(void 0!==RVS.S.DaD.target.columnID&&("group"===RVS.S.DaD.target.columnType||void 0===RVS.S.DaD.target.elementID||"column"==RVS.S.DaD.target.columnType&&"absolute"==RVS.S.DaD.draggedPosType))if(RVS.S.DaD.target.columnTop||"absolute"==RVS.S.DaD.draggedPosType)if("group"!==RVS.S.DaD.target.columnType||RVS.S.DaD.fromContainerID!=RVS.S.DaD.target.columnID){s={x:Math.round((RVS.S.DaD.clone.offset().left-RVS.S.DaD.dropParentPos.x)/RVS.zoom+RVS.S.DaD.scrolldiff.x),y:Math.round((RVS.S.DaD.clone.offset().top-RVS.S.DaD.dropParentPos.y)/RVS.zoom+RVS.S.DaD.scrolldiff.y)};if("column"===RVS.S.DaD.target.columnType)for(var o in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(o)&&("absolute"==RVS.S.DaD.draggedPosType&&"column"!==RVS.S.DaD.fromContainerType&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[o]+".position.position",val:"relative",uid:RVS.selLayers[o]}),"text"===RVS.L[RVS.selLayers[o]].type))for(var n in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(n)&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[o]+".idle.whiteSpace."+RVS.V.sizes[n]+".v",val:"full",uid:RVS.selLayers[o]}),-1==RVS.L[RVS.selLayers[o]].size.width[RVS.V.sizes[n]].v.indexOf("%"))&&"auto"!==RVS.L[RVS.selLayers[o]].size.width[RVS.V.sizes[n]].v&&(null==RVS.S.DaD.target||RVS.S.DaD.fromContainerID!==RVS.S.DaD.target.columnID)&&RVS.H[RVS.S.DaD.target.columnID].w[0].offsetWidth<parseInt(RVS.L[RVS.selLayers[o]].size.width[RVS.V.sizes[n]].v,0)&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[o]+".size.width."+RVS.V.sizes[n]+".v",val:"auto",uid:RVS.selLayers[o]});"relative"!==RVS.L[RVS.S.DaD.currentLayerId].position.position?RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:RVS.S.DaD.target.columnType,env:RVS.S.DaD.target.columnID,dropto:RVS.S.DaD.target.columnType,pospos:RVS.S.DaD.draggedPosType,resetPosition:s}):RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:null==RVS.S.DaD.target.elementID?"firstingroup":RVS.S.DaD.target.elementBefore?"before":"after",env:void 0!==RVS.S.DaD.target.elementID?RVS.S.DaD.target.elementID:RVS.S.DaD.target.columnID,dropto:RVS.S.DaD.target.columnType})}else"relative"===RVS.L[RVS.S.DaD.currentLayerId].position.position&&RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:null==RVS.S.DaD.target.elementID?"firstingroup":RVS.S.DaD.target.elementBefore?"before":"after",env:void 0!==RVS.S.DaD.target.elementID?RVS.S.DaD.target.elementID:RVS.S.DaD.target.columnID,dropto:RVS.S.DaD.target.columnType});else RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:"columnend",env:RVS.S.DaD.target.columnID});else void 0!==RVS.S.DaD.target.elementID&&RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:RVS.S.DaD.target.elementBefore?"before":"after",env:RVS.S.DaD.target.elementID})}else RVS.L[RVS.S.DaD.currentLayerId].linebreak?RVS.F.showInfo({content:RVS_LANG.cantpulllinebreakoutside,type:"goodtoknow",showdelay:0,hidedelay:3,hideon:"",event:""}):-1!==RVS.L[RVS.S.DaD.currentLayerId].group.puid&&RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:"before",env:"top",dropto:"root",resetPosition:{x:RVS.S.DaD.startPos.x,y:RVS.S.DaD.startPos.y}})}RVS.L[l.uid].position.position=-1==RVS.L[l.uid].group.puid?"absolute":RVS.L[l.uid].position.position,tpGS.gsap.set(d.w,{opacity:1}),RVS.F.closeBackupGroup({id:t})}else RVS.C.layergrid[0].classList.remove("layersInDragorResize"),tpGS.gsap.set(d.w,{opacity:1});RVS.F.selectedLayersVisualUpdate(),RVS.S.updateEsyInputsTimerMemory?(RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.S.updateEsyInputsTimerMemory=!1):RVS.F.selectLayers({id:l.uid,overwrite:!0,action:"add",keepSelectedFrame:!0===RVS.animationMode}),RVS.F.updateLayerPositionClass(RVS.S.DaD.currentLayerId)}}}),l.resize&&d.w.resizable({handles:"n,s,w,e",start:function(e,t){RVS.F.stopAndPauseAllLayerAnimation(),RVS.F.showForms("*slidelayout**mode__slidecontent*#form_layer_position",!0),RVS.S.WWL=RVS.L[l.uid],RVS.S.lpv=RVS.S.WWL.position.vertical[RVS.screen].v,RVS.S.lph=RVS.S.WWL.position.horizontal[RVS.screen].v,RVS.S.WWHL=RVS.H[l.uid],RVS.C.layer_width=void 0===RVS.C.layer_width?jQuery("#layer_width"):RVS.C.layer_width,RVS.C.layer_height=void 0===RVS.C.layer_height?jQuery("#layer_height"):RVS.C.layer_height,RVS.C.layer_covermode=void 0===RVS.C.layer_covermode?jQuery("#layer_covermode"):RVS.C.layer_covermode,window.layertemp_width=window.layerneww=t.size.width,window.layertemp_height=window.layernewh=t.size.height,window.resizeDirection="none",RVS.F.setZindex({id:l.uid,o:475}),RVS.C.layergrid.addClass("layersInDragorResize"),"text"!==RVS.S.WWL.type&&"button"!==RVS.S.WWL.type||(window.layerclone=RVS.S.WWHL.w.clone(!1),window.layercloneinside=window.layerclone.find("._lc_content_").first(),RVS.C.slide.append(window.layerclone),tpGS.gsap.set(window.layerclone,{autoAlpha:0}))},resize:function(e,t){var i,a=window.layerneww!=Math.round(t.size.width)?"horizontal":"vertical";switch(window.layerneww=Math.round(t.size.width),window.layernewh=Math.round(t.size.height),RVS.S.WWL.type){case"text":case"button":tpGS.gsap.set([window.layercloneinside],{width:Math.round(t.size.width),height:"auto"}),("auto"===RVS.S.WWL.size.height[RVS.screen].v||window.layercloneinside.height()>Math.round(t.size.height))&&(window.layernewh=t.size.height="horizontal"==a?window.layercloneinside.outerHeight():Math.max(parseInt(t.size.height,0)||0,parseInt(window.layercloneinside.outerHeight(),0)||0))}"none"!==RVS.S.WWL.size.minWidth[RVS.screen].v&&(window.layerneww=t.size.width=Math.max(window.layerneww,parseInt(RVS.S.WWL.size.minWidth[RVS.screen].v,0)||0)),"none"!==RVS.S.WWL.size.maxWidth[RVS.screen].v&&(window.layerneww=t.size.width=Math.min(window.layerneww,parseInt(RVS.S.WWL.size.maxWidth[RVS.screen].v,0)||0)),"none"!==RVS.S.WWL.size.minHeight[RVS.screen].v&&(window.layernewh=t.size.height=Math.max(window.layernewh,parseInt(RVS.S.WWL.size.minHeight[RVS.screen].v,0)||0)),"none"!==RVS.S.WWL.size.maxHeight[RVS.screen].v&&(window.layernewh=t.size.height=Math.min(window.layernewh,parseInt(RVS.S.WWL.size.maxHeight[RVS.screen].v,0)||0)),requestAnimationFrame(function(){RVS.F.showMouseInfo({html:"<div class='mouse_info_coor'><div><span class='mouselabel'>W</span><span class='mouseval'>"+window.layerneww+"</span></div><div><span class='mouselabel'>H</span><span class='mouseval'>"+window.layernewh+"</span></div></div><div class='mouse_info_align "+RVS.S.lph+" "+RVS.S.lpv+"'><span class='mia_tl'></span><span class='mia_tc'></span><span class='mia_tr'></span><span class='mia_ml'></span><span class='mia_mc'></span><span class='mia_mr'></span><span class='mia_bl'></span><span class='mia_bc'></span><span class='mia_br'></span></div>"})}),window.layertemp_width!=window.layerneww&&("none"===window.resizeDirection&&(window.resizeDirection="horizontal"),RVS.C.layer_width[0].value=window.layerneww+"px","fullwidth"!==RVS.L[l.uid].size.covermode&&"cover"!==RVS.L[l.uid].size.covermode&&"cover-proportional"!==RVS.L[l.uid].size.covermode||("custom"!==RVS.C.layer_covermode[0].value&&RVS.C.layer_covermode.val("custom").ddTP("change"),("cover"===RVS.L[l.uid].size.covermode||"cover-proportional"===RVS.L[l.uid].size.covermode?jQuery(".layersize_wrap"):jQuery(".layersize_wrap_width")).removeClass("disablecontainer"))),window.layertemp_height!=window.layernewh&&("none"===window.resizeDirection&&(window.resizeDirection="vertical"),RVS.C.layer_height[0].value="video"===RVS.S.WWL.type&&"auto"===RVS.S.WWL.size.height[RVS.screen].v?"auto":window.layernewh+"px","fullheight"!==RVS.L[l.uid].size.covermode&&"cover"!==RVS.L[l.uid].size.covermode&&"cover-proportional"!==RVS.L[l.uid].size.covermode||("custom"!==RVS.C.layer_covermode[0].value&&RVS.C.layer_covermode.val("custom").ddTP("change"),("cover"===RVS.L[l.uid].size.covermode||"cover-proportional"===RVS.L[l.uid].size.covermode?jQuery(".layersize_wrap"):jQuery(".layersize_wrap_height")).removeClass("disablecontainer"))),RVS.S.WWL.size.scaleProportional&&"auto"!==RVS.S.WWL.size.aspectRatio[RVS.screen].v&&"none"!==RVS.S.WWL.size.aspectRatio[RVS.screen].v&&("horizontal"===window.resizeDirection?window.layernewh=t.size.height=Math.round(window.layerneww/RVS.S.WWL.size.aspectRatio[RVS.screen].v):window.layerneww=t.size.width=Math.round(window.layernewh*RVS.S.WWL.size.aspectRatio[RVS.screen].v)),"video"===RVS.S.WWL.type&&"auto"===RVS.S.WWL.size.height[RVS.screen].v&&(i=(i=RVS.S.WWL.media.ratio.split(":"))[1]/i[0],t.size.height=window.layerneww*i),tpGS.gsap.set(RVS.H[l.uid].c,{width:window.layerneww,height:window.layernewh}),RVS.F.updateHTMLLayerPosition({uid:l.uid}),requestAnimationFrame(function(){var e,t=RVS.F.getLayerChildren({layerid:l.uid});for(e in t)t.hasOwnProperty(e)&&RVS.F.updateHTMLLayerPosition({uid:e});RVS.F.updateMinSliderHeights()&&RVS.DOC.trigger("updatesliderlayout","layertools.js - 1893"),RVS.F.updateSharpCorners({uid:l.uid,resize:!0})})},stop:function(e,t){RVS.C.layergrid.removeClass("layersInDragorResize"),RVS.F.hideMouseInfo(),RVS.S.justresized=!0,RVS.F.openBackupGroup({id:"layerresize",txt:"Resize Layer",icon:"photo_size_select_large"}),"text"!==RVS.S.WWL.type&&"button"!==RVS.S.WWL.type||(window.layernewh=window.layercloneinside.height()===window.layernewh&&"text"==RVS.L[l.uid].type?"auto":window.layernewh,window.layerclone.remove()),window.layertemp_width!=window.layerneww&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+l.uid+".size.width.#size#.v",val:window.layerneww+"px",uid:l.uid}),"fullwidth"!==RVS.L[l.uid].size.covermode&&"cover"!==RVS.L[l.uid].size.covermode&&"cover-proportional"!==RVS.L[l.uid].size.covermode||RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+l.uid+".size.covermode",val:"custom",uid:l.uid})),window.layertemp_height!=window.layernewh&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+l.uid+".size.height.#size#.v",val:"video"===RVS.S.WWL.type&&"auto"===RVS.S.WWL.size.height[RVS.screen].v?"auto":isNaN(window.layernewh)?window.layernewh:window.layernewh+"px",uid:l.uid}),"fullheight"!==RVS.L[l.uid].size.covermode&&"cover"!==RVS.L[l.uid].size.covermode&&"cover-proportional"!==RVS.L[l.uid].size.covermode||RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+l.uid+".size.covermode",val:"custom",uid:l.uid})),RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateMinSliderHeights()&&RVS.DOC.trigger("updatesliderlayout","layertools.js - 1056"),setTimeout(function(){RVS.S.justresized=!1},100)}})},RVS.F.isParent=function(e,t,i){return void 0!==i?i:t==e||void 0!==RVS.L[t]&&void 0!==RVS.L[t].group&&-1!=RVS.L[t].group.puid&&(RVS.L[t].group.puid==e||RVS.F.isParent(e,RVS.L[t].group.puid,i))},RVS.F.figureColumnSizes=function(e){if(void 0!==e.plain&&(e.plain=RVS.F.sanitize_columns(e.plain),e.plain=0===e.plain.length||void 0===e.plain||""===e.plain?"1/2+1/2":e.plain,e.cols=e.temp=e.plain.split("+")),e.summ=0,-1===e.plain.indexOf("/"))if(e.cols=[],e.plain="",1==e.temp.length)for(var t=9<(t=parseInt(e.temp[0],0))?"9":t,i=0;i<t;i++)0<e.plain.length&&(e.plain+="+"),e.plain+="1/"+t,e.cols.push("1/"+t);else{var a=0;e.plain="";for(i=0;i<e.temp.length;i++)""!==e.temp[i]&&0<e.temp[i].length&&(a+=parseInt(e.temp[i],0));for(i=0;i<e.temp.length;i++)""!==e.temp[i]&&0<e.temp[i].length&&(0<e.plain.length&&(e.plain+="+"),e.plain+=e.temp[i]+"/"+a,e.cols.push(e.temp[i]+"/"+a))}var r,s;for(s in e.cols)e.cols.hasOwnProperty(s)&&(r=RVS.F.convertFraction(e.cols[s]),e.summ+=100*r);return 100!==Math.round(e.summ)?jQuery("#row_column_structure").addClass("badvalue"):jQuery("#row_column_structure").removeClass("badvalue"),e},RVS.F.fixColumnsInRows=function(e){if(void 0!==RVS.L[e.layerid]&&"row"===RVS.L[e.layerid].type){var t=RVS.F.getColumnsInRow(e),i=0,a=[];for(d in t)t.hasOwnProperty(d)&&(i+=100*RVS.F.convertFraction(RVS.L[t[d]].group.columnSize),a.push(RVS.L[t[d]].group.columnSize.split("/")));var r,s,o,n,l=t.length;if((i=99.99999999999999===i?100:i)<100&&(e=100-i,o=t[t.length-1],r=(s=RVS.L[o].group.columnSize).split("/"),e=e/(100*RVS.F.convertFraction(s)/parseInt(r[0],0)),s=parseInt(r[0],0)+parseInt(e,0)+"/"+r[1],n=RVS.S.slideId+".layers."+o+".group.columnSize",1===l?RVS.F.updateSliderObj({path:n,val:"1/1"}):RVS.F.updateSliderObj({path:n,val:s}),RVS.F.drawHTMLLayer({uid:o})),100<i){for(var d in t)t.hasOwnProperty(d)&&(a[d][0]=1,a[d][1]=l);for(var d in t)t.hasOwnProperty(d)&&(o=t[d],n=RVS.S.slideId+".layers."+o+".group.columnSize",RVS.F.updateSliderObj({path:n,val:a[d][0]+"/"+a[d][1]}),RVS.F.drawHTMLLayer({uid:o}))}}},RVS.F.checkLockedLayers=function(){for(var e in(s=void 0===s?{wrap:jQuery("#locked_layers_list"),switch:jQuery("#layer_lock_iconswitch")}:s).default=void 0===s.default?s.wrap[0].innerHTML:s.default,s.layers=[],RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.L[e].visibility&&RVS.L[e].visibility.locked&&-1===jQuery.inArray(e,s.layers)&&s.layers.push(e);var t,i,a,r="";for(t in s.layers)s.layers.hasOwnProperty(t)&&(i=s.layers[t],void 0!==RVS.H[i])&&null!=RVS.H[i].w&&(RVS.H[i].w.addClass("_locked_"),-1===(a=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+i)).className.indexOf("_locked_")&&(a.className+=" _locked_",window.firstLockTest=void 0===window.firstLockTest?"change":window.firstLockTest),r+='<div data-uid="'+i+'" class="unlock_single_layer lockstep"><i class="material-icons">lock_open</i>'+RVS.L[i].alias+"</div>");r=s.default+r,s.wrap[0].innerHTML=r},RVS.F.lockUnlockLayer=function(e){e.val=void 0===e.val?!RVS.L[e.uid].visibility.locked:e.val,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".visibility.locked",val:e.val}),!1===e.val&&0<=RVS.H[e.uid].w[0].className.indexOf("_locked_")&&(RVS.H[e.uid].w.removeClass("_locked_"),(e=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+e.uid)).className=e.className.replace(" _locked_",""))},RVS.F.lockUnlockLayers=function(e){for(var t in RVS.selLayers){var i;RVS.selLayers.hasOwnProperty(t)&&(i=void 0!==e&&void 0!==e.val?e.val:!RVS.L[RVS.selLayers[t]].visibility.locked,RVS.F.lockUnlockLayer({uid:RVS.selLayers[t],val:i}))}RVS.F.checkLockedLayers()},RVS.F.checkShowHideLayers=function(){for(var e in(o=void 0===o?{wrap:jQuery("#unvisible_layers_list"),switch:jQuery("#layer_visibility_iconswitch")}:o).default=void 0===o.default?o.wrap[0].innerHTML:o.default,o.layers=[],RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.L[e].visibility&&!1===RVS.L[e].visibility.visible&&-1===jQuery.inArray(e,o.layers)&&o.layers.push(e);var t,i,a,r="";for(t in o.layers)o.layers.hasOwnProperty(t)&&(i=o.layers[t],void 0!==RVS.H[i])&&null!=RVS.H[i].w&&(RVS.H[i].w.addClass("_unvisible_"),-1===(a=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+i)).className.indexOf("_unvisible_")&&(a.className+=" _unvisible_",window.firstLockTest=void 0===window.firstLockTest?"change":window.firstLockTest),r+='<div data-uid="'+i+'" class="visible_single_layer visiblestep"><i class="material-icons">visibility</i>'+RVS.L[i].alias+"</div>");r=o.default+r,o.wrap[0].innerHTML=r},RVS.F.showHideLayer=function(e){void 0===e.val&&(e.val=!RVS.L[e.uid].visibility.visible),RVS.F.updateSliderObj({ignoreBackup:e.ignoreBackup,path:RVS.S.slideId+".layers."+e.uid+".visibility.visible",val:e.val}),!0===e.val&&0<=RVS.H[e.uid].w[0].className.indexOf("_unvisible_")&&(RVS.H[e.uid].w.removeClass("_unvisible_"),(e=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+e.uid)).className=e.className.replace(" _unvisible_",""))},RVS.F.showHideLayers=function(e){for(var t in RVS.selLayers){var i;RVS.selLayers.hasOwnProperty(t)&&(i=void 0!==e&&void 0!==e.val?e.val:!RVS.L[RVS.selLayers[t]].visibility.visible,RVS.F.showHideLayer({uid:RVS.selLayers[t],val:i}))}RVS.F.checkShowHideLayers()},RVS.F.updateColumnBreaksChildren=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&"column"===RVS.L[e].type&&(RVS.L[e].group.columnbreakat=RVS.L[RVS.L[e].group.puid].group.columnbreakat)},RVS.F.isIntelligentInherited=function(e,t){return void 0!==t?void 0!==RVS.SLIDER[t].layers[e]&&RVS.SLIDER[t].layers[e].behavior.intelligentInherit:void 0!==RVS.L[e]&&RVS.L[e].behavior.intelligentInherit},RVS.F.inntelligentRespAttrExtend=function(e){r.push(e)},RVS.F.setToIntelligentUpdate=function(e){for(var t in RVS.F.updateScreenShrinks(),RVS.F.openBackupGroup({id:"IntelligentInherit",txt:e?"Reset All values to Intelligent Values":"Enable Intelligent Inherit",icon:"important_devices",lastkey:"layer"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(t)){for(var i in r)r.hasOwnProperty(i)&&RVS.F.intelligentUpdate({calcShrink:!1,key:r[i],index:"v",uid:RVS.selLayers[t],backup:!0,notEdited:e,reset:e});for(var a=0;a<4;a++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:a,uid:RVS.selLayers[t],backup:!0,notEdited:e,reset:e}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:a,uid:RVS.selLayers[t],backup:!0,notEdited:e,reset:e});RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+RVS.selLayers[t]+".behavior.intelligentInherit",val:!0})}RVS.F.closeBackupGroup({id:"IntelligentInherit"}),RVS.DOC.trigger("sliderSizeChanged")},RVS.F.intelligentUpdateValuesOnLayer=function(e){if(RVS.L[e].behavior.intelligentInherit){for(var t in r)r.hasOwnProperty(t)&&RVS.F.intelligentUpdate({calcShrink:!1,key:r[t],index:"v",uid:e,backup:!1,notEdited:!0,reset:!0});for(var i=0;i<4;i++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:i,uid:e,backup:!1,notEdited:!0,reset:!0}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:i,uid:e,backup:!1,notEdited:!0,reset:!0})}},RVS.F.updateAllInheritedSize=function(){RVS.S.updatingAllInheritedSizeCounter=void 0===RVS.S.updatingAllInheritedSizeCounter?0:RVS.S.updatingAllInheritedSizeCounter,!0!==RVS.S.updatingAllInheritedSize&&0<RVS.S.updatingAllInheritedSizeCounter&&(RVS.S.updatingAllInheritedSize=!0,requestAnimationFrame(function(){for(var e in RVS.F.updateScreenShrinks(),RVS.L)if(RVS.L.hasOwnProperty(e)&&"zone"!==RVS.L[e].type&&RVS.L[e].behavior.intelligentInherit){for(var t in r)r.hasOwnProperty(t)&&RVS.F.intelligentUpdate({calcShrink:!1,key:r[t],index:"v",uid:RVS.L[e].uid});for(var i=0;i<4;i++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:i,uid:RVS.L[e].uid}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:i,uid:RVS.L[e].uid})}RVS.F.drawHTMLLayers(),RVS.F.closeBackupGroup({id:"IntelligentInherit"}),RVS.S.updatingAllInheritedSize=!1})),RVS.S.updatingAllInheritedSizeCounter++},RVS.F.disableIntelligentUpdate=function(){for(var e in RVS.F.openBackupGroup({id:"DIntelligentInherit",txt:"Disable Intelligent Inherit",icon:"important_devices",lastkey:"layer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+RVS.selLayers[e]+".behavior.intelligentInherit",val:!1});RVS.F.closeBackupGroup({id:"DIntelligentInherit"})},RVS.F.resetLayersDeviceSizesToDesktop=function(){for(var e in RVS.F.openBackupGroup({id:"desktopValueReset",txt:"Reset Values to Dekstop",icon:"important_devices",lastkey:"layer"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e)){for(var t in r)r.hasOwnProperty(t)&&RVS.F.intelligentUpdate({calcShrink:!1,key:r[t],index:"v",uid:RVS.selLayers[e],backup:!0,allToOne:!0,notEdited:!0});for(var i=0;i<4;i++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:i,uid:RVS.selLayers[e],backup:!0,allToOne:!0,notEdited:!0}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:i,uid:RVS.selLayers[e],backup:!0,allToOne:!0,notEdited:!0})}for(var a in RVS.F.closeBackupGroup({id:"desktopValueReset"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(a)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[a]})},RVS.F.resetIntelligentInherits=function(){RVS.F.setToIntelligentUpdate(!0)},RVS.F.iUHelp=function(e){var t=e.l[RVS.V.sizes[0]].v,i=1;if(null!==t)for(var a=0;a<=3;a++){var r=RVS.F.isNumeric(t)?"":0<=t.indexOf("%")?"%":"px",s="inherit"===t||!RVS.F.isNumeric(t)&&(0<=t.indexOf("{")||0<=t.indexOf("[")||0<=jQuery.inArray(t,["top","left","bottom","right","center","middle"])||"#"==t[0]&&"/"==t[2]&&"#"==t[4]),i=e.iii?RVS.S.shrink[RVS.V.sizes[a]]:i,s=(e.allToOne||(t=e.reset||!e.l[RVS.V.sizes[a]].e?!e.shrink||s||"auto"===t||!RVS.F.isNumeric(t)&&0<=t.indexOf("%")?t:parseInt(t,0)*i:e.number&&!s&&"auto"!==t?parseInt(e.l[RVS.V.sizes[a]].v,0):e.l[RVS.V.sizes[a]].v),e.allToOne?t:!e.reset&&e.l[RVS.V.sizes[a]].e?e.l[RVS.V.sizes[a]].v:!e.number||"auto"===t||s?t:void 0!==e.minValue?Math.max(e.minValue,Math.round(parseInt(t,0))):Math.round(parseInt(t,0))),r="auto"!==s&&RVS.F.isNumeric(s)?r:"";e.backup?(RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.p+RVS.V.sizes[a]+".v",val:s+r}),e.notEdited&&RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.p+RVS.V.sizes[a]+".e",val:!1})):(e.l[RVS.V.sizes[a]].v=s+r,e.notEdited&&(e.l[RVS.V.sizes[a]].e=!1)),t=s+r}},RVS.F.intelligentUpdate=function(e){e.calcShrink&&RVS.F.updateScreenShrinks(),RVS.S.respInfoBar.visible&&RVS.F.showFieldResponsiveValues(),e.iii=void 0===e.iii||e.iii;var t=void 0!==e.slide?RVS.SLIDER[e.slide].layers:RVS.L;switch(e.key){case"viewPortArea":e.l=RVS.SLIDER.settings.general.slideshow.viewPortArea,e.minValue=-1500,e.useSuffix=!0,e.number=!0,e.shrink=!0,RVS.F.iUHelp(e);break;case"horizontal":case"vertical":case"y":case"x":if(e.l=t[e.uid].position[e.key],e.p=e.uid+".position."+e.key+".","x"===e.key||"y"===e.key)for(var i in e.number=!0,e.shrink=!0,RVS.F.iUHelp(e),t[e.uid].timeline.frames)t[e.uid].timeline.frames.hasOwnProperty(i)&&(e.l=t[e.uid].timeline.frames[i].transform[e.key],e.p=e.uid+".timeline.frames."+i+".transform."+e.key+".",RVS.F.iUHelp(e),e.l=t[e.uid].timeline.frames[i].mask[e.key],e.p=e.uid+".timeline.frames."+i+".mask."+e.key+".",RVS.F.iUHelp(e),e.l=t[e.uid].timeline.frames[i].chars[e.key],e.p=e.uid+".timeline.frames."+i+".chars."+e.key+".",RVS.F.iUHelp(e),e.l=t[e.uid].timeline.frames[i].words[e.key],e.p=e.uid+".timeline.frames."+i+".words."+e.key+".",RVS.F.iUHelp(e),e.l=t[e.uid].timeline.frames[i].lines[e.key],e.p=e.uid+".timeline.frames."+i+".lines."+e.key+".",RVS.F.iUHelp(e));else RVS.F.iUHelp(e);break;case"width":case"height":e.l=t[e.uid].size[e.key],e.p=e.uid+".size."+e.key+".",e.minValue=1,e.useSuffix=!0,e.number=!0,e.shrink=!0,RVS.F.iUHelp(e);break;case"blur":case"spread":case"hoffset":case"voffset":e.l=t[e.uid].idle.boxShadow[e.key],e.p=e.uid+".idle.boxShadow."+e.key+".",e.useSuffix=!0,e.number=!0,e.shrink=!0,RVS.F.iUHelp(e),"spread"!==e.key&&(e.l=t[e.uid].idle.textShadow[e.key],e.p=e.uid+".idle.textShadow."+e.key+".",e.useSuffix=!0,e.number=!0,e.shrink=!0,RVS.F.iUHelp(e));break;case"margin":case"padding":if("v"===e.index)for(e.index=0;e.index<4;e.index++){e.val=t[e.uid].idle[e.key][RVS.V.sizes[0]].v[e.index];for(var a=parseInt(e.val,0),r=1,s=0;s<=3;s++)r=e.iii?RVS.S.shrink[RVS.V.sizes[s]]:r,a=e.allToOne?a:e.reset||!t[e.uid].idle[e.key][RVS.V.sizes[s]].e?Math.round(a*r):parseInt(t[e.uid].idle[e.key][RVS.V.sizes[s]].v[e.index],0),e.backup?(RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.uid+".idle."+e.key+"."+RVS.V.sizes[s]+".v."+e.index,val:a}),e.notEdited&&RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.uid+".idle."+e.key+"."+RVS.V.sizes[s]+".e",val:!1})):(t[e.uid].idle[e.key][RVS.V.sizes[s]].v[e.index]=a,e.notEdited&&(t[e.uid].idle[e.key][RVS.V.sizes[s]].e=!1))}else{e.val=t[e.uid].idle[e.key][RVS.V.sizes[0]].v[e.index];for(a=parseInt(e.val,0),r=1,s=0;s<=3;s++)r=e.iii?RVS.S.shrink[RVS.V.sizes[s]]:r,a=e.allToOne?a:e.reset||!t[e.uid].idle[e.key][RVS.V.sizes[s]].e?Math.round(a*r):parseInt(t[e.uid].idle[e.key][RVS.V.sizes[s]].v[e.index],0),e.backup?(RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.uid+".idle."+e.key+"."+RVS.V.sizes[s]+".v."+e.index,val:a}),e.notEdited&&RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.uid+".idle."+e.key+"."+RVS.V.sizes[s]+".e",val:!1})):(t[e.uid].idle[e.key][RVS.V.sizes[s]].v[e.index]=a,e.notEdited&&(t[e.uid].idle[e.key][RVS.V.sizes[s]].e=!1))}break;case"textAlign":case"fontWeight":case"borderStyle":case"color":e.l="color"===e.key&&"svg"===t[e.uid].type?t[e.uid].idle.svg.color:t[e.uid].idle[e.key],e.p="color"===e.key&&"svg"===t[e.uid].type?e.uid+".idle.svg.color.":e.uid+".idle."+e.key+".",RVS.F.iUHelp(e);break;case"lineHeight":case"letterSpacing":case"fontSize":e.l=t[e.uid].idle[e.key],e.p=e.uid+".idle."+e.key+".",e.number=!0,e.shrink=!0,"fontSize"===e.key&&(e.minValue=4),"lineHeight"===e.key&&(e.minValue=6),RVS.F.iUHelp(e);break;case"whiteSpace":e.p=e.uid+".idle.whiteSpace.",e.l=t[e.uid].idle[e.key],RVS.F.iUHelp(e)}void 0!==RVS.F.intelligentUpdateExtend&&void 0!==RVS.F.intelligentUpdateExtend[t[e.uid].subtype]&&RVS.F.intelligentUpdateExtend[t[e.uid].subtype](e,t)},RVS.F.updateGroupLocks=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&RVS.L[e].group&&"group"===RVS.L[e].type&&void 0!==RVS.H[e]&&(RVS.L[e].group.locked?RVS.H[e].w.addClass("_group_locked_"):RVS.H[e].w.removeClass("_group_locked_"))},RVS.F.saveSelectedLayersToCache=function(e){RVS.DOC.trigger("do_copy_layer");var t,i,a,r,s=RVS.F.simplifyAllLayer(window.copyPasteLayers.layers,"min");for(i in s)if(s.hasOwnProperty(i)){if(void 0!==s[i].actions&&void 0!==s[i].actions.action)for(a in s[i].actions.action)if(s[i].actions.action.hasOwnProperty(a)&&void 0!==s[i].actions.action[a].layer_target)for(r in t=s[i].actions.action[a].layer_target,s)if(s.hasOwnProperty(r)&&s[r].copiedFromUid==t){s[i].actions.action[a].layer_target=s[r].uid;break}if(void 0!==s[i].labelfor)for(r in t=s[i].labelfor,s)if(s.hasOwnProperty(r)&&s[r].copiedFromUid==t){s[i].labelfor=s[r].uid;break}void 0!==RVS.F.updateReferencedLayerExports&&void 0!==RVS.F.updateReferencedLayerExports[s[i].subtype]&&(s[i]=RVS.F.updateReferencedLayerExports[s[i].subtype](i,s))}if(2!=e)return JSON.stringify(s);for(i in s)s.hasOwnProperty(i)&&(delete s[i].media,delete s[i].copiedFromUid,delete s[i].toggle,delete s[i].visibility,delete s[i].behavior,void 0!==s[i].size&&(delete s[i].size.maxHeight,delete s[i].size.minHeight,delete s[i].size.maxWidth,delete s[i].size.minWidth),s[i].alias=s[i].alias.replace("Copy ",""));return console.log(s),[JSON.stringify(s),s.copy0.alias.replace("-"," ").replace("-"," ")]},RVS.F.copyToClipboardHandle_FC=function(){var e=RVS.F.saveSelectedLayersToCache();window.isSecureContext?(navigator.clipboard.writeText("RSJSON1.0"+e),RVS.F.showInfo({content:RVS_LANG.clipboardexport,type:"success",showdelay:0,hidedelay:2,hideon:"",event:""})):RVS.F.showInfo({content:RVS_LANG.clipboardwarning,type:"goodtoknow",showdelay:0,hidedelay:3,hideon:"",event:""})},RVS.F.pasteFromClipboardHandle_FC=function(){new Promise((t,i)=>{(async()=>{try{var e;window.isSecureContext?null==navigator.clipboard.readText?RVS.F.showInfo({content:RVS_LANG.clipboardfirefox,type:"goodtoknow",showdelay:0,hidedelay:5,hideon:"",event:""}):(e=await navigator.clipboard.readText(),t(e)):RVS.F.showInfo({content:RVS_LANG.clipboardwarning,type:"goodtoknow",showdelay:0,hidedelay:3,hideon:"",event:""})}catch(e){i(e)}})()}).then(e=>{if(null==e||-1==e.indexOf("RSJSON1.0"))RVS.F.showInfo({content:RVS_LANG.clipboardnotvalid,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""});else{RVS.F.showInfo({content:RVS_LANG.clipboardimport,type:"success",showdelay:0,hidedelay:2,hideon:"",event:""}),e=e.replace("RSJSON1.0","");var t,i=JSON.parse(e);for(t in RVS.LIB.OBJ.import={toImport:[]},i)i.hasOwnProperty(t)&&RVS.LIB.OBJ.import.toImport.push(i[t].uid);RVS.F.showWaitAMinute({fadeIn:100,text:RVS_LANG.importinglayers}),RVS.S.ignoreCopyPrefix=!0,RVS.F.importSelectedLayers(RVS.F.checkLayersRelativeAbsolute(i),!0)}})},RVS.DOC.on("updateLayerFrame",function(e,t){if(void 0!==t)for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(RVS.F.updateLayerFrame({layerid:parseInt(RVS.selLayers[i],0),frame:RVS.S.keyFrame}),RVS.F.updateFrameRealSpeed())}),RVS.DOC.on("updateLayerFrameStart",function(e,t){if(void 0!==t||void 0!==t.val){RVS.F.openBackupGroup({id:"LayerFrameStart",txt:"Layer Frame Start",icon:"layers",lastkey:"layer"});var i=parseInt(RVS.selLayers[0],0),a=RVS.F.getPrevNextFrame({layerid:i,frame:RVS.S.keyFrame});for(i in cur=(cur=(cur=parseInt(t.val,0))<a.prev.end?a.prev.end+10:cur+a.cur.framelength>a.next.start?a.next.start-(a.cur.framelength+10):cur)>10*RVS.F.getSlideLength()?10*RVS.F.getSlideLength():cur,RVS.F.updateLayerObj({path:"timeline.frames."+RVS.S.keyFrame+".timeline.start",val:cur}),RVS.F.closeBackupGroup({id:"LayerFrameStart"}),document.getElementById("layerframestart").value=cur,RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(RVS.F.updateLayerFrame({layerid:parseInt(RVS.selLayers[i],0),frame:RVS.S.keyFrame}),RVS.F.updateFrameRealSpeed());RVS.F.updateAllstartRelatives()}})}(),function(A,P){function M(e,t,i){return e.call.apply(e.bind,arguments)}function z(t,i,e){var a;if(t)return 2<arguments.length?(a=Array.prototype.slice.call(arguments,2),function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,a),t.apply(i,e)}):function(){return t.apply(i,arguments)};throw Error()}function d(e,t,i){return(d=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?M:z).apply(null,arguments)}var a=Date.now||function(){return+new Date};function l(e,t){this.K=e,this.w=t||e,this.G=this.w.document}function i(e,t,i){(e=(e=e.G.getElementsByTagName(t)[0])||P.documentElement)&&e.lastChild&&e.insertBefore(i,e.lastChild)}function S(e,t,i){t=t||[],i=i||[];for(var a=e.className.split(/\s+/),r=0;r<t.length;r+=1){for(var s=!1,o=0;o<a.length;o+=1)if(t[r]===a[o]){s=!0;break}s||a.push(t[r])}for(t=[],r=0;r<a.length;r+=1){for(s=!1,o=0;o<i.length;o+=1)if(a[r]===i[o]){s=!0;break}s||t.push(a[r])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function s(e,t){for(var i=e.className.split(/\s+/),a=0,r=i.length;a<r;a++)if(i[a]==t)return!0;return!1}function c(e){var t;return"string"==typeof e.na?e.na:"https:"==(t="about:"==(t=e.w.location.protocol)?e.K.location.protocol:t)?"https:":"http:"}function p(e,t){t=e.createElement("link",{rel:"stylesheet",href:t,media:"all"});t.onload=function(){0},t.onerror=function(){0},i(e,"head",t)}function u(e,t,i,a){var r,s,o=e.G.getElementsByTagName("head")[0];return o?(r=e.createElement("script",{src:t}),s=!1,r.onload=r.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,i&&i(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&o.removeChild(r))},o.appendChild(r),A.setTimeout(function(){s||(s=!0,i&&i(Error("Script load timeout")))},a||5e3),r):null}function o(e,t){this.Y=e,this.ga=t}function n(e,t,i,a){this.c=null!=e?e:null,this.g=null!=t?t:null,this.D=null!=i?i:null,this.e=null!=a?a:null}l.prototype.createElement=function(e,t,i){if(e=this.G.createElement(e),t)for(var a in t)t.hasOwnProperty(a)&&("style"==a?e.style.cssText=t[a]:e.setAttribute(a,t[a]));return i&&e.appendChild(this.G.createTextNode(i)),e};var H=/^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;function R(e){var t=null,i=null,a=null,r=null;return(e=H.exec(e))&&(null!==e[1]&&e[1]&&(t=parseInt(e[1],10)),null!==e[2]&&e[2]&&(i=parseInt(e[2],10)),null!==e[3]&&e[3]&&(a=parseInt(e[3],10)),null!==e[4])&&e[4]&&(r=/^[0-9]+$/.test(e[4])?parseInt(e[4],10):e[4]),new n(t,i,a,r)}function V(e,t,i,a,r,s,o,n){this.N=e,this.k=n}function r(e){this.a=e}n.prototype.compare=function(e){return this.c>e.c||this.c===e.c&&this.g>e.g||this.c===e.c&&this.g===e.g&&this.D>e.D?1:this.c<e.c||this.c===e.c&&this.g<e.g||this.c===e.c&&this.g===e.g&&this.D<e.D?-1:0},n.prototype.toString=function(){return[this.c,this.g||"",this.D||"",this.e||""].join("")},V.prototype.getName=function(){return this.N};var B=new V("Unknown",0,0,0,0,0,0,new o(!1,!1));function m(e){var t=g(e.a,/(iPod|iPad|iPhone|Android|Windows Phone|BB\d{2}|BlackBerry)/,1);return""!=t?/BB\d{2}/.test(t)?"BlackBerry":t:""!=(e=g(e.a,/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS|PlayStation|CrKey)/,1))?("Mac_PowerPC"==e?e="Macintosh":"PlayStation"==e&&(e="Linux"),e):"Unknown"}function y(e){if(t=(t=(t=g(e.a,/(OS X|Windows NT|Android) ([^;)]+)/,2))||g(e.a,/Windows Phone( OS)? ([^;)]+)/,2))||g(e.a,/(iPhone )?OS ([\d_]+)/,2))return t;if(t=g(e.a,/(?:Linux|CrOS|CrKey) ([^;)]+)/,1))for(var t=t.split(/\s/),i=0;i<t.length;i+=1)if(/^[\d\._]+$/.test(t[i]))return t[i];return(e=g(e.a,/(BB\d{2}|BlackBerry).*?Version\/([^\s]*)/,2))||"Unknown"}function N(e){var t=m(e),i=R(y(e)),a=R(g(e.a,/AppleWeb(?:K|k)it\/([\d\.\+]+)/,1)),r="Unknown",s=new n,s="Unknown";return/OPR\/[\d.]+/.test(e.a)?r="Opera":-1!=e.a.indexOf("Chrome")||-1!=e.a.indexOf("CrMo")||-1!=e.a.indexOf("CriOS")?r="Chrome":/Silk\/\d/.test(e.a)?r="Silk":"BlackBerry"==t||"Android"==t?r="BuiltinBrowser":-1!=e.a.indexOf("PhantomJS")?r="PhantomJS":-1!=e.a.indexOf("Safari")?r="Safari":-1!=e.a.indexOf("AdobeAIR")?r="AdobeAIR":-1!=e.a.indexOf("PlayStation")&&(r="BuiltinBrowser"),"BuiltinBrowser"==r?s="Unknown":"Silk"==r?s=g(e.a,/Silk\/([\d\._]+)/,1):"Chrome"==r?s=g(e.a,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):-1!=e.a.indexOf("Version/")?s=g(e.a,/Version\/([\d\.\w]+)/,1):"AdobeAIR"==r?s=g(e.a,/AdobeAIR\/([\d\.]+)/,1):"Opera"==r?s=g(e.a,/OPR\/([\d.]+)/,1):"PhantomJS"==r&&(s=g(e.a,/PhantomJS\/([\d.]+)/,1)),s=R(s),new V(r,0,0,0,0,0,0,new o("AdobeAIR"==r?2<s.c||2==s.c&&5<=s.g:"BlackBerry"==t?10<=i.c:"Android"==t?2<i.c||2==i.c&&1<i.g:526<=a.c||525<=a.c&&13<=a.g,a.c<536||536==a.c&&a.g<11))}function g(e,t,i){return(e=e.match(t))&&e[i]?e[i]:""}function h(e){this.ma=e||"-"}function f(e,t){this.N=e,this.Z=4,this.O="n";e=(t||"n4").match(/^([nio])([1-9])$/i);e&&(this.O=e[1],this.Z=parseInt(e[2],10))}function v(e){return e.O+e.Z}function G(e,t){this.d=e,this.q=e.w.document.documentElement,this.Q=t,this.j="wf",this.h=new h("-"),this.ha=!1!==t.events,this.F=!1!==t.classes}function _(e){var t,i,a;e.F&&(t=s(e.q,e.h.e(e.j,"active")),i=[],a=[e.h.e(e.j,"loading")],t||i.push(e.h.e(e.j,"inactive")),S(e.q,i,a)),L(e,"inactive")}function L(e,t,i){e.ha&&e.Q[t]&&(i?e.Q[t](i.getName(),v(i)):e.Q[t]())}function Q(){this.C={}}function w(e,t){this.d=e,this.I=t,this.o=this.d.createElement("span",{"aria-hidden":"true"},this.I)}function b(e,t){for(var e=e.o,i=[],a=t.N.split(/,\s*/),r=0;r<a.length;r++){var s=a[r].replace(/['"]/g,"");-1==s.indexOf(" ")?i.push(s):i.push("'"+s+"'")}i=i.join(","),a="normal","o"===t.O?a="oblique":"i"===t.O&&(a="italic"),e.style.cssText="display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+i+";font-style:"+a+";font-weight:"+t.Z+"00;"}function I(e){i(e.d,"body",e.o)}function F(e,t,i,a,r,s,o,n){this.$=e,this.ka=t,this.d=i,this.m=a,this.k=r,this.I=n||"BESbswy",this.v={},this.X=s||3e3,this.ca=o||null,this.H=this.u=this.t=null,this.t=new w(this.d,this.I),this.u=new w(this.d,this.I),this.H=new w(this.d,this.I),b(this.t,new f("serif",v(this.m))),b(this.u,new f("sans-serif",v(this.m))),b(this.H,new f("monospace",v(this.m))),I(this.t),I(this.u),I(this.H),this.v.serif=this.t.o.offsetWidth,this.v["sans-serif"]=this.u.o.offsetWidth,this.v.monospace=this.H.o.offsetWidth}r.prototype.parse=function(){var e,t,i,a;return e=-1!=this.a.indexOf("MSIE")||-1!=this.a.indexOf("Trident/")?(e=m(this),t=R(y(this)),a=null,i=g(this.a,/Trident\/([\d\w\.]+)/,1),a=-1!=this.a.indexOf("MSIE")?R(g(this.a,/MSIE ([\d\w\.]+)/,1)):R(g(this.a,/rv:([\d\w\.]+)/,1)),""!=i&&R(i),new V("MSIE",0,0,0,0,0,0,new o("Windows"==e&&6<=a.c||"Windows Phone"==e&&8<=t.c,!1))):-1!=this.a.indexOf("Opera")?(e=R(g(this.a,/Presto\/([\d\w\.]+)/,1)),R(y(this)),null===e.c&&R(g(this.a,/rv:([^\)]+)/,1)),-1!=this.a.indexOf("Opera Mini/")?(e=R(g(this.a,/Opera Mini\/([\d\.]+)/,1)),new V("OperaMini",0,0,0,m(this),0,0,new o(!1,!1))):-1!=this.a.indexOf("Version/")&&null!==(e=R(g(this.a,/Version\/([\d\.]+)/,1))).c||null!==(e=R(g(this.a,/Opera[\/ ]([\d\.]+)/,1))).c?new V("Opera",0,0,0,m(this),0,0,new o(10<=e.c,!1)):new V("Opera",0,0,0,m(this),0,0,new o(!1,!1))):/OPR\/[\d.]+/.test(this.a)||/AppleWeb(K|k)it/.test(this.a)?N(this):-1!=this.a.indexOf("Gecko")?(e="Unknown",t=new n,R(y(this)),t=!1,-1!=this.a.indexOf("Firefox")?(e="Firefox",t=3<=(t=R(g(this.a,/Firefox\/([\d\w\.]+)/,1))).c&&5<=t.g):-1!=this.a.indexOf("Mozilla")&&(e="Mozilla"),a=R(g(this.a,/rv:([^\)]+)/,1)),t=t||1<a.c||1==a.c&&9<a.g||1==a.c&&9==a.g&&2<=a.D,new V(e,0,0,0,m(this),0,0,new o(t,!1))):B},h.prototype.e=function(e){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.ma)},f.prototype.getName=function(){return this.N},w.prototype.remove=function(){var e=this.o;e.parentNode&&e.parentNode.removeChild(e)};var D={sa:"serif",ra:"sans-serif",qa:"monospace"};function W(e,t,i){for(var a in D)if(D.hasOwnProperty(a)&&t===e.v[D[a]]&&i===e.v[D[a]])return 1}function X(e){var t=e.t.o.offsetWidth,i=e.u.o.offsetWidth;t===e.v.serif&&i===e.v["sans-serif"]||e.k.ga&&W(e,t,i)?a()-e.oa>=e.X?e.k.ga&&W(e,t,i)&&(null===e.ca||e.ca.hasOwnProperty(e.m.getName()))?x(e,e.$):x(e,e.ka):setTimeout(d(function(){X(this)},e),50):x(e,e.$)}function x(e,t){e.t.remove(),e.u.remove(),e.H.remove(),t(e.m)}function k(e,t,i,a){this.d=t,this.A=i,this.S=0,this.ea=this.ba=!1,this.X=a,this.k=e.k}function Y(e,t,i,a,r){if(i=i||{},0===t.length&&r)_(e.A);else for(e.S+=t.length,r&&(e.ba=r),r=0;r<t.length;r++){var s=t[r],o=i[s.getName()],n=e.A,l=s;n.F&&S(n.q,[n.h.e(n.j,l.getName(),v(l).toString(),"loading")]),L(n,"fontloading",l),n=null,(n=new F(d(e.ia,e),d(e.ja,e),e.d,s,e.k,e.X,a,o)).start()}}function U(e){0==--e.S&&e.ba&&(e.ea?((e=e.A).F&&S(e.q,[e.h.e(e.j,"active")],[e.h.e(e.j,"loading"),e.h.e(e.j,"inactive")]),L(e,"active")):_(e.A))}function e(e){this.K=e,this.B=new Q,this.pa=new r(e.navigator.userAgent),this.a=this.pa.parse(),this.U=this.V=0,this.R=this.T=!0}function q(e,t,i){this.P=e||t+"//fonts.googleapis.com/css",this.s=[],this.W=[],this.fa=i||""}F.prototype.start=function(){this.oa=a(),b(this.t,new f(this.m.getName()+",serif",v(this.m))),b(this.u,new f(this.m.getName()+",sans-serif",v(this.m))),X(this)},k.prototype.ia=function(e){var t=this.A;t.F&&S(t.q,[t.h.e(t.j,e.getName(),v(e).toString(),"active")],[t.h.e(t.j,e.getName(),v(e).toString(),"loading"),t.h.e(t.j,e.getName(),v(e).toString(),"inactive")]),L(t,"fontactive",e),this.ea=!0,U(this)},k.prototype.ja=function(e){var t,i,a,r=this.A;r.F&&(t=s(r.q,r.h.e(r.j,e.getName(),v(e).toString(),"active")),i=[],a=[r.h.e(r.j,e.getName(),v(e).toString(),"loading")],t||i.push(r.h.e(r.j,e.getName(),v(e).toString(),"inactive")),S(r.q,i,a)),L(r,"fontinactive",e),U(this)},e.prototype.load=function(e){this.d=new l(this.K,e.context||this.K),this.T=!1!==e.events,this.R=!1!==e.classes;var t,i,a=new G(this.d,e),r=[],s=e.timeout,r=(a.F&&S(a.q,[a.h.e(a.j,"loading")]),L(a,"loading"),this.B),o=this.d,n=[];for(t in e)e.hasOwnProperty(t)&&(i=r.C[t])&&n.push(i(e[t],o));for(this.U=this.V=(r=n).length,e=new k(this.a,this.d,a,s),s=0,t=r.length;s<t;s++)(o=r[s]).L(this.a,d(this.la,this,o,a,e))},e.prototype.la=function(e,t,l,i){var d=this;i?e.load(function(e,t,i){var a,r,s,o,n;a=l,r=e,s=t,o=i,n=0==--(e=d).V,(e.R||e.T)&&setTimeout(function(){Y(a,r,s||null,o||null,n)},0)}):(e=0==--this.V,this.U--,e&&0==this.U?_(t):(this.R||this.T)&&Y(l,[],{},null,e))};function Z(e){this.s=e,this.da=[],this.M={}}q.prototype.e=function(){if(0==this.s.length)throw Error("No fonts to load!");if(-1!=this.P.indexOf("kit="))return this.P;for(var e=this.s.length,t=[],i=0;i<e;i++)t.push(this.s[i].replace(/ /g,"+"));return e=this.P+"?family="+t.join("%7C"),0<this.W.length&&(e+="&subset="+this.W.join(",")),0<this.fa.length&&(e+="&text="+encodeURIComponent(this.fa)),e};var K={latin:"BESbswy",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},$={i:"i",italic:"i",n:"n",normal:"n"},ee=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function C(e,t){this.a=new r(navigator.userAgent).parse(),this.d=e,this.f=t}Z.prototype.parse=function(){for(var e=this.s.length,t=0;t<e;t++){var i=this.s[t].split(":"),a=i[0].replace(/\+/g," "),r=["n4"];if(2<=i.length){var s,o,n=i[1],l=[];if(n)for(var d=(n=n.split(",")).length,S=0;S<d;S++)(s=(s=n[S]).match(/^[\w-]+$/)?(o=void 0,o=null==(s=ee.exec(s.toLowerCase()))?"":(o=void 0,o=null==(o=s[1])||""==o?"4":J[o]||(isNaN(o)?"4":o.substr(0,1)),[null==(s=s[2])||""==s?"n":$[s],o].join(""))):"")&&l.push(s);0<l.length&&(r=l),3==i.length&&(l=[],0<(i=(i=i[2])?i.split(","):l).length)&&(i=K[i[0]])&&(this.M[a]=i)}for(this.M[a]||(i=K[a])&&(this.M[a]=i),i=0;i<r.length;i+=1)this.da.push(new f(a,r[i]))}};var te={Arimo:!0,Cousine:!0,Tinos:!0};function O(e,t){this.d=e,this.f=t,this.p=[]}function T(e,t){this.d=e,this.f=t,this.p=[]}function j(e,t){this.d=e,this.f=t,this.p=[]}function E(e,t){this.d=e,this.f=t}C.prototype.L=function(e,t){t(e.k.Y)},C.prototype.load=function(e){var t,i,a=this.d;"MSIE"==this.a.getName()&&1!=this.f.blocking?(t=a,i=d(this.aa,this,e),function e(){t.G.body?i():setTimeout(e,0)}()):this.aa(e)},C.prototype.aa=function(e){for(var t=this.d,i=new q(this.f.api,c(t),this.f.text),a=this.f.families,r=a.length,s=0;s<r;s++){var o=a[s].split(":"),n=(3==o.length&&i.W.push(o.pop()),"");2==o.length&&""!=o[1]&&(n=":"),i.s.push(o.join(n))}(a=new Z(a)).parse(),p(t,i.e()),e(a.da,a.M,te)},O.prototype.J=function(e){var t=this.d;return c(this.d)+(this.f.api||"//f.fontdeck.com/s/css/js/")+(t.w.location.hostname||t.K.location.hostname)+"/"+e+".js"},O.prototype.L=function(e,l){var t=this.f.id,i=this.d.w,d=this;t?(i.__tpwebfontfontdeckmodule__||(i.__tpwebfontfontdeckmodule__={}),i.__tpwebfontfontdeckmodule__[t]=function(e,t){for(var i,a,r,s=0,o=t.fonts.length;s<o;++s){var n=t.fonts[s];d.p.push(new f(n.name,(n="font-weight:"+n.weight+";font-style:"+n.style,r=a=i=void 0,i=4,a="n",r=null,n&&((r=n.match(/(normal|oblique|italic)/i))&&r[1]&&(a=r[1].substr(0,1).toLowerCase()),r=n.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?i=7:/[1-9]00/.test(r[1])&&(i=parseInt(r[1].substr(0,1),10))),a+i)))}l(e)},u(this.d,this.J(t),function(e){e&&l(!1)})):l(!1)},O.prototype.load=function(e){e(this.p)},T.prototype.J=function(e){var t=c(this.d);return(this.f.api||t+"//use.typekit.net")+"/"+e+".js"},T.prototype.L=function(e,s){var t=this.f.id,o=this.d.w,n=this;t?u(this.d,this.J(t),function(e){if(e)s(!1);else{if(o.Typekit&&o.Typekit.config&&o.Typekit.config.fn){e=o.Typekit.config.fn;for(var t=0;t<e.length;t+=2)for(var i=e[t],a=e[t+1],r=0;r<a.length;r++)n.p.push(new f(i,a[r]));try{o.Typekit.load({events:!1,classes:!1})}catch(e){}}s(!0)}},2e3):s(!1)},T.prototype.load=function(e){e(this.p)},j.prototype.L=function(i,a){var r,s=this,o=s.f.projectId,e=s.f.version;o?(r=s.d.w,u(this.d,s.J(o,e),function(e){if(e)a(!1);else{if(r["__mti_fntLst"+o]&&(e=r["__mti_fntLst"+o]()))for(var t=0;t<e.length;t++)s.p.push(new f(e[t].fontfamily));a(i.k.Y)}}).id="__MonotypeAPIScript__"+o):a(!1)},j.prototype.J=function(e,t){return c(this.d)+"//"+(this.f.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,"")+"/"+e+".js"+(t?"?v="+t:"")},j.prototype.load=function(e){e(this.p)},E.prototype.load=function(e){for(var t=this.f.urls||[],i=this.f.families||[],a=this.f.testStrings||{},r=0,s=t.length;r<s;r++)p(this.d,t[r]);for(t=[],r=0,s=i.length;r<s;r++){var o=i[r].split(":");if(o[1])for(var n=o[1].split(","),l=0;l<n.length;l+=1)t.push(new f(o[0],n[l]));else t.push(new f(o[0]))}e(t,a)},E.prototype.L=function(e,t){return t(e.k.Y)};var t=new e(this);t.B.C.custom=function(e,t){return new E(t,e)},t.B.C.fontdeck=function(e,t){return new O(t,e)},t.B.C.monotype=function(e,t){return new j(t,e)},t.B.C.typekit=function(e,t){return new T(t,e)},t.B.C.google=function(e,t){return new C(t,e)},this.tpWebFont||(this.tpWebFont={},this.tpWebFont.load=d(t.load,t),this.tpWebFontConfig&&t.load(this.tpWebFontConfig))}(this,document),function(){var f,v,_,L,o=["arrows","thumbs","bullets","tabs"];function n(e){var t,i,a="",r="";for(t in RVS.nav.currentSkinType=e,RVS.nav.currentEditorMode="markup",RVS.nav[e])RVS.nav[e].hasOwnProperty(t)&&((i=RVS.nav[e][t]).factory?a+='<div data-type="'+e+'" data-handle="'+t+'" class="rs_ne_nav_skin rs_ne_listelement"><span class="rs_ne_nskin_title">'+i.name+'</span><div class="rs_ne_nskin_tbar_basic"><i class="rs_ne_nskin_copy material-icons">content_copy</i></div></div>':r+='<div id="rs_ne_nav_skin_'+t+'" data-type="'+e+'" data-handle="'+t+'" class="rs_ne_nav_skin rs_ne_listelement"><span class="rs_ne_nskin_title">'+i.name+'</span><span class="rs_ne_nskin_message"></span><input class="rs_ne_nskin_title_input" value="'+i.name+'" type="text"/><div class="rs_ne_nskin_tbar_basic"><i class="rs_ne_nskin_edit material-icons">edit</i><i class="rs_ne_nskin_copy material-icons">content_copy</i><i class="rs_ne_nskin_delete material-icons">delete</i></div><div class="rs_ne_nskin_tbar_yesno"><i class="rs_ne_nskin_yes material-icons">done</i><i class="rs_ne_nskin_no material-icons">close</i></div></div>');document.getElementById("rs_ne_factory_list").innerHTML=a,document.getElementById("rs_ne_custom_list").innerHTML=r,jQuery(".rs_ne_list_wrapper").scrollTop(0).RSScroll({suppressScrollX:!0})}function l(){void 0!==RVS.nav.currentSkin&&(RVS.nav.currentSkin.changed=!0),jQuery("#save_naveditor").show(),RVS.nav.toSave=!0}function d(){document.getElementById("rs_ne_nav_width").value=RVS.nav.currentSkin.dim.width,document.getElementById("rs_ne_nav_height").value=RVS.nav.currentSkin.dim.height,document.getElementById("rs_ne_nav_classname").value=RVS.nav.currentSkin.handle;var e,t="";for(e in RVS.nav.currentSkin.placeholders)RVS.nav.currentSkin.placeholders.hasOwnProperty(e)&&(t=(t+='<div data-placeholder="'+e+'" class="rs_ne_meta_value_btn rs_ne_listelement" ><span data-insert="##'+e+'##" class="rs_ne_nskin_title">'+RVS.nav.currentSkin.placeholders[e].title+'</span><span class="rs_ne_nskin_message"></span>')+'<div class="rs_ne_nskin_tbar_basic"><i data-insert="##'+e+'##" class="rs_ne_nskin_meta_add material-icons">add</i><i data-placeholder="'+e+'" class="rs_ne_nskin_meta_config material-icons">settings</i><i class="rs_ne_nskin_delete material-icons">delete</i></div><div class="rs_ne_nskin_tbar_yesno"><i class="rs_ne_nskin_yes material-icons">done</i><i class="rs_ne_nskin_no material-icons">close</i></div></div>');document.getElementById("rs_ne_meta_values_inner").innerHTML=t}function S(){var e=jQuery("#rs_ne_def_meta_handle")[0].value;0===e.length||0===jQuery("#rs_ne_def_meta_title")[0].value.length||RVS.nav.currentPlaceholder!==e&&void 0!==RVS.nav.currentSkin.placeholders[e]?jQuery("#update_nav_meta_value").addClass("disabled"):jQuery("#update_nav_meta_value").removeClass("disabled"),RVS.nav.currentPlaceholder!==e&&void 0!==RVS.nav.currentSkin.placeholders[e]?jQuery("#rs_ne_def_meta_handle").addClass("badvalue"):jQuery("#rs_ne_def_meta_handle").removeClass("badvalue")}function c(){f.appendTo(jQuery("#rev_slider_ul_inner")),v.appendTo(jQuery("#rev_slider_ul_inner")),_.appendTo(jQuery("#rev_slider_ul_inner")),L.tabs.self.appendTo(jQuery("#rev_slider_ul_inner")),L.thumbs.self.appendTo(jQuery("#rev_slider_ul_inner"))}function p(e){jQuery(".rs_ne_nav_skin.selected").removeClass("selected"),e.className+=" selected",RVS.nav.currentSkinType=e.dataset.type,RVS.nav.currentSkinHandle=e.dataset.handle,RVS.nav.currentSkin=RVS.nav[e.dataset.type][e.dataset.handle],d(),jQuery("#rs_ne_helper_wrap, #rs_ne_settings, #rs_ne_markup_css_button_wrap").show(),jQuery("#rs_ne_cssmeta_config").hide(),jQuery("#rs_ne_cssmeta_values").show(),jQuery("#rs_ne_nav_classname").removeClass("badvalue"),RVS.nav.editor.setValue(RVS.nav.currentSkin[RVS.nav.currentEditorMode]),RVS.nav.infactorymode=RVS.nav.currentSkin.factory,RVS.nav.infactorymode?jQuery("#rs_ne_settings").addClass("infactorymode"):jQuery("#rs_ne_settings").removeClass("infactorymode"),RVS.nav.editor.setOption("readOnly",RVS.nav.currentSkin.factory),RVS.F.drawEditorNavigation(),RVS.F.pickMarkupCssMode(document.getElementById("rs_ne_mcss_thecsseditor"))}function u(e){var t=document.getElementById("sr_"+e.type+"_style_preset");if(null!==t&&null!=t){t.options.length=0;var i,a,r=document.createDocumentFragment();if(r.appendChild(RVS.F.CO("custom","Custom")),r.appendChild(RVS.F.CO("default","Default")),null==e.navobj||null===e.navobj.settings)t.appendChild(r);else{if(void 0!==e.navobj)for(a in e.navobj.presets)e.navobj.presets.hasOwnProperty(a)&&(i=RVS.F.CO(a,e.navobj.presets[a].name),r.appendChild(i));t.appendChild(r),!0===e.presetChange&&(RVS.SLIDER.settings.nav[e.type].preset="default"),t.value=RVS.SLIDER.settings.nav[e.type].preset,jQuery(t).ddTP({tags:!0}).ddTP("change"),RVS.F.updatePresetInputs(e),RVS.F.updateSlideBasedNavigationStyle()}}}function w(a){var e,r=RVS.SLIDER.settings.nav[a.type].presets,s=RVS.SLIDER[RVS.S.slideId].slide.nav[a.type].presets,o=void 0===a.skin?RVS.nav[a.type][a.handle]:a.skin,n=o.css,t=n.split("##"),i=[],l=0;if(null==n)return"";for(var d=0;d<t.length;d++)1==l?(e=t[d],l=0,i.push(e)):l++;return null==RVS.SLIDER[RVS.S.slideId].slide?"":(jQuery.each(i,function(e,t){var i=void 0!==o.placeholders[t]&&void 0!==o.placeholders[t].data?o.placeholders[t].data:"",i=t===a.attribute?a.color:!0===a.default?void 0!==o.placeholders[t]?o.placeholders[t].data:"":void 0!==s&&s[t+"-def"]?s[t]:r[t+"-def"]?r[t]:i;n=n.replace("##"+t+"##",i)}),f.css({width:"",height:""}),v.css({width:"",height:""}),"<style id='"+a.type+"_stylemanipualtion'>"+n+"</style>")}function b(e){var t;return void 0===RVS.SLIDER[e.id]?"":void 0===(t=RVS.SLIDER[e.id].slide.thumb.customThumbSrc)||t.length<3||"/"===t[t.length-1]?RVS.F.getSlideBGDrawObj({id:e.id}):{"background-size":"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundImage:"url("+t+")"}}function R(e,t){if(void 0!==t){var i=0,a=0,r="slider"===t.align?{x:parseInt(t.offsetX,0)+("left"===t.horizontal?i:0),y:parseInt(t.offsetY,0)+("top"===t.vertical?a:0)}:{x:parseInt(t.offsetX,0)+("right"===t.horizontal?RVS.S.layer_wrap_offset.xr:RVS.S.layer_wrap_offset.x),y:parseInt(t.offsetY,0)+("top"===t.vertical?RVS.S.layer_wrap_offset.y:RVS.S.layer_wrap_offset.y-a)},s={marginLeft:"0px",x:"0%",left:r.x+"px",right:"auto",marginTop:"0px",y:"0%",top:r.y+"px",bottom:"auto"};switch(RVS.S.dim_offsets=RVS.F.sliderDimensionOffsets(),t.horizontal){case"right":s.left="auto",s.right=parseInt(r.x,0)+"px";break;case"center":s.marginLeft=i/2+parseInt(t.offsetX,0)+"px",s.x="-50%",s.left="50%"}switch(t.vertical){case"bottom":s.top="auto",s.bottom=r.y+"px";break;case"center":var o=RVS.S.dim_offsets.carouseltop/2+RVS.S.dim_offsets.navtop/2-(RVS.S.dim_offsets.carouselbottom/2+RVS.S.dim_offsets.navbottom/2);s.marginTop=a/2+(parseInt(t.offsetY,0)+parseInt(o,0))+"px",s.y="-50%",s.top="50%"}if(!0===t.spanWrapper)switch(t.direction){case"horizontal":s.marginLeft="0px",s.x="0%",s.left="0%";break;case"vertical":s.marginTop="0px",s.y="0%",s.top="0px"}tpGS.gsap.set(e,s)}}function V(){RVS.DOC.on("openNavigationEditor",RVS.F.openNavigationEditor),RVS.DOC.on("sliderNavUpdate",function(e,t){RVS.F.updateNavStyleSelection({init:!1,type:t,presetChange:!0})}),RVS.DOC.on("redrawNavigation",function(e,t){RVS.F.drawNavigation({type:t,init:!0})}),RVS.DOC.on("sliderNavPreset",function(e,t){RVS.F.setNavPresetValues({type:t})}),RVS.DOC.on("sliderNavPositionUpdate",function(e,t){RVS.F.sliderNavPositionUpdate({type:t})}),RVS.DOC.on("navinnerouter",function(e,t){var i={type:t},t=RVS.SLIDER.settings.nav[i.type],a=jQuery("#sr_"+i.type+"hor"),r=jQuery("#sr_"+i.type+"ver"),s="sr_"+i.type+"direction";switch(jQuery("#sr_"+i.type+"_halignwrap").show(),jQuery("#sr_"+i.type+"_valignwrap").show(),t.innerOuter){case"inner":jQuery("#"+i.type+"pos_selector_center-center").show(),jQuery("#"+i.type+"pos_selector_left-center").show(),jQuery("#"+i.type+"pos_selector_right-center").show(),jQuery("#"+i.type+"pos_selector_center-top").show(),jQuery("#"+i.type+"pos_selector_center-bottom").show();break;case"outer-vertical":RVS.F.setS2Option({select:a,selectValue:"left"}),RVS.F.setS2Option({select:r,selectValue:"center"}),RVS.F.setRadio({radio:s,radioValue:"vertical",change:!0}),jQuery("#"+i.type+"pos_selector_center-top").hide(),jQuery("#"+i.type+"pos_selector_center-center").hide(),jQuery("#"+i.type+"pos_selector_center-bottom").hide(),jQuery("#"+i.type+"pos_selector_left-center").show(),jQuery("#"+i.type+"pos_selector_right-center").show(),jQuery("#sr_"+i.type+"_halignwrap").hide();break;case"outer-horizontal":RVS.F.setS2Option({select:a,selectValue:"center"}),RVS.F.setS2Option({select:r,selectValue:"bottom"}),RVS.F.setRadio({radio:s,radioValue:"horizontal",change:!0}),jQuery("#"+i.type+"pos_selector_left-center").hide(),jQuery("#"+i.type+"pos_selector_center-center").hide(),jQuery("#"+i.type+"pos_selector_right-center").hide(),jQuery("#"+i.type+"pos_selector_center-top").show(),jQuery("#"+i.type+"pos_selector_center-bottom").show(),jQuery("#sr_"+i.type+"_valignwrap").hide()}a.trigger("change"),r.trigger("change")}),RVS.DOC.on("saveNavPreset",function(e,t){RVS.F.saveDeleteNavPreset({mode:"save",type:t})}),RVS.DOC.on("deleteNavPreset",function(e,t){RVS.F.saveDeleteNavPreset({mode:"delete",type:t})}),RVS.DOC.on("mouseenter","#ddTP-sr_arrows_style-results li",function(){var e=this.id.split("-result-")[1].split("-")[0],e=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"arrows",style:e,init:!1,presetChange:!0,default:!0})}),RVS.DOC.on("mouseenter","#ddTP-sr_bullets_style-results li",function(){var e=this.id.split("-result-")[1].split("-")[0],e=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"bullets",style:e,init:!1,presetChange:!0,default:!0})}),RVS.DOC.on("mouseenter","#ddTP-sr_thumbs_style-results li",function(){var e=this.id.split("-result-")[1].split("-")[0],e=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"thumbs",style:e,init:!1,presetChange:!0,default:!0})}),RVS.DOC.on("mouseenter","#ddTP-sr_tabs_style-results li",function(){var e=this.id.split("-result-")[1].split("-")[0],e=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"tabs",style:e,init:!1,presetChange:!0,default:!0})}),RVS.DOC.on("ddTP:open",".sr_nav_style_tos",function(){window.shortcachenav=jQuery.extend(!0,{},RVS.SLIDER.settings.nav[this.dataset.evtparam]),window.shortnavindex=this.selectedIndex}),RVS.DOC.on("ddTP:close",".sr_nav_style_tos",function(e){window.shortnavindex===this.selectedIndex&&(RVS.SLIDER.settings.nav[this.dataset.evtparam]=jQuery.extend(!0,{},window.shortcachenav)),RVS.F.drawNavigation({type:this.dataset.evtparam,init:!1})}),RVS.DOC.on("click",".nav_preseticon_pick",function(){var e=this.parentNode.parentNode;jQuery("#"+e.dataset.insertinto).val(this.dataset.content).trigger("change")})}RVS.F.initNavigation=function(){f=jQuery("#tp-leftarrow"),v=jQuery("#tp-rightarrow"),_=jQuery("#tp-bullets"),L={tabs:{self:jQuery("#tp-tabs"),mask:jQuery("#tp-tabs-mask"),inner:jQuery("#tp-tabs-inner-wrapper"),single:"tp-tab"},thumbs:{self:jQuery("#tp-thumbs"),mask:jQuery("#tp-thumbs-mask"),inner:jQuery("#tp-thumbs-inner-wrapper"),single:"tp-thumb"}},RVS.F.buildNavigationLists(),V()},RVS.F.buildNavigationLists=function(e){for(var t in o)if(o.hasOwnProperty(t)){var i,a="";for(i in RVS.nav[o[t]])RVS.nav[o[t]].hasOwnProperty(i)&&(a+='<option value="'+i+'">'+RVS.nav[o[t]][i].name+"</option>");jQuery("#sr_"+o[t]+"_style")[0].innerHTML=a,e&&jQuery("#sr_"+o[t]+"_style").ddTP({placeholder:"Enter or Select"})}e&&RVS.F.updateEasyInputs({container:jQuery("#nav_form_collector"),path:"settings."})},RVS.F.openNavigationEditor=function(){if(RVS.nav=void 0===RVS.nav?{}:RVS.nav,RVS.nav.toSave=!1,RVS.nav.toDelete=[],"FAIL"!==RVS.nav.editor)if("undefined"==typeof RevMirror||void 0===RevMirror)RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.loadingRevMirror}),RVS.F.loadCSS(RVS.ENV.plugin_url+"/admin/assets/css/RevMirror.css"),jQuery.getScript(RVS.ENV.plugin_url+"/admin/assets/js/plugins/RevMirror.js",function(){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),RVS.F.openNavigationEditor()}).fail(function(e,t,i){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),window.nav.editor="FAIL"});else{if(void 0===RVS.nav.editor){var e,t=jQuery("#nav_fontfamily"),i="";for(e in RVS.LIB.FONTS)RVS.LIB.FONTS.hasOwnProperty(e)&&"Dont Show Me"!==RVS.LIB.FONTS[e].label&&(i+='<option value="'+RVS.LIB.FONTS[e].label+'">'+RVS.LIB.FONTS[e].label+"</option>");t.append(i),t.ddTP({placeholder:"Enter or Select"}),t.ddTP("change"),V(),RVS.nav.editor=RevMirror(document.getElementById("rs_nav_css_js_area"),{value:"",mode:"css",theme:"hopscotch",lineWrapping:!0,lineNumbers:!1}),RVS.DOC.on("click",".rs_ne_nav_skin",function(){p(this)}),RVS.DOC.on("click","#rbm_navigation_editor .rbm_close",function(){RVS.nav.toSave?RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"warning",title:RVS_LANG.warning,maintext:RVS_LANG.changesdone_exit,subtext:RVS_LANG.exitwihoutchangesornot,do:{icon:"exit_to_app",text:RVS_LANG.leavewithoutsave,event:"leavaeditorwithoutsave"},cancel:{icon:"cancel",text:RVS_LANG.stayineditor}}):(c(),RVS.F.RSDialog.close(),RVS.F.buildNavigationLists(!0))}),RVS.DOC.on("leavaeditorwithoutsave",function(){for(var e in o)o.hasOwnProperty(e)&&(RVS.nav[o[e]]=jQuery.extend(!0,{},RVS.nav.cache[o[e]]));RVS.nav.toDelete=[],RVS.nav.toSave=!1,jQuery("#save_naveditor").hide(),c()}),RVS.DOC.on("click","#save_naveditor",RVS.F.savechangesonnavigation),RVS.DOC.on("click",".rs_ne_selector",function(){RVS.F.pickNavType(this)}),RVS.DOC.on("click",".rs_ne_nskin_meta_config",function(){switch(jQuery("#rs_ne_cssmeta_config").show(),jQuery("#rs_ne_cssmeta_values").hide(),RVS.nav.currentPlaceholder=this.dataset.placeholder,jQuery("#rs_ne_meta_type").val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].type).ddTP("change").change(),document.getElementById("rs_ne_def_meta_title").value=RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].title,document.getElementById("rs_ne_def_meta_handle").value=RVS.nav.currentPlaceholder,RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].type){case"color":jQuery("#rs_ne_def_meta_color_val").val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data).rsColorPicker("refresh");break;case"icon":jQuery("#rs_ne_def_meta_icon_val").val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data);var e=0<(e=RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data).length?e.replace("\\",""):e;jQuery(".rs_ne_pick.selected").removeClass("selected"),jQuery(".rs_ne_icon_"+e).addClass("selected");break;case"custom":jQuery("#rs_ne_def_meta_custom_val").val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data);break;case"font-family":e=jQuery("#nav_fontfamily");e.val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data),e.ddTP("change")}}),RVS.DOC.on("click","#add_new_placeholder",function(){jQuery("#rs_ne_cssmeta_config").show(),jQuery("#rs_ne_cssmeta_values").hide(),RVS.nav.currentPlaceholder="in_create_process",document.getElementById("rs_ne_def_meta_title").value="",document.getElementById("rs_ne_def_meta_handle").value="",jQuery("#rs_ne_def_meta_color_val").val("#ffffff"),jQuery("#rs_ne_def_meta_icon_val").val(),jQuery("#rs_ne_def_meta_custom_val").val(),jQuery("#nav_fontfamily").val("Arial"),S()}),RVS.DOC.on("change","#rs_ne_nav_classname",function(){var e=RVS.nav.currentSkin.handle,t=RVS.F.sanitize_input_lc(this.value.toLowerCase());e!==(this.value=t)&&(RVS.F.checkSkinHandle(this.value)?jQuery("#rs_ne_nav_classname").addClass("badvalue"):(jQuery("#rs_ne_nav_classname").removeClass("badvalue"),RVS.nav.currentSkin.handle=t,e=new RegExp("\\."+e,"g"),RVS.nav.currentSkin.css=RVS.nav.currentSkin.css.replace(e,"."+t),RVS.nav.editor.setValue(RVS.nav.currentSkin[RVS.nav.currentEditorMode])),l())}),RVS.DOC.on("setrsnavtovertical",function(){jQuery("#rs_ne_horizontaltest").removeClass("selected"),jQuery("#rs_ne_verticaltest").addClass("selected"),RVS.nav.currentAlignMode="vertical",RVS.F.drawEditorNavigation()}),RVS.DOC.on("setrsnavtohorizontal",function(){jQuery("#rs_ne_horizontaltest").addClass("selected"),jQuery("#rs_ne_verticaltest").removeClass("selected"),RVS.nav.currentAlignMode="horizontal",RVS.F.drawEditorNavigation()}),RVS.DOC.on("rsdimgapchange",function(e,t){if(void 0!==t&&void 0!==t.eventparam){switch(t.eventparam){case"width":case"height":RVS.nav.currentSkin.dim[t.eventparam]=t.val,l();break;case"space":RVS.nav.currentTestSpace=t.val}RVS.F.drawEditorNavigation()}}),RVS.DOC.on("setrsnavposition",function(){switch(jQuery("#rs_nav_test_position").val()){case"left top":RVS.nav.currentPosVer="top",RVS.nav.currentPosHor="left";break;case"center top":RVS.nav.currentPosVer="top",RVS.nav.currentPosHor="center";break;case"right top":RVS.nav.currentPosVer="top",RVS.nav.currentPosHor="right";break;case"left center":RVS.nav.currentPosVer="center",RVS.nav.currentPosHor="left";break;case"center center":RVS.nav.currentPosVer="center",RVS.nav.currentPosHor="center";break;case"right center":RVS.nav.currentPosVer="center",RVS.nav.currentPosHor="right";break;case"left bottom":RVS.nav.currentPosVer="bottom",RVS.nav.currentPosHor="left";break;case"center bottom":RVS.nav.currentPosVer="bottom",RVS.nav.currentPosHor="center";break;case"right bottom":RVS.nav.currentPosVer="bottom",RVS.nav.currentPosHor="right"}RVS.F.drawEditorNavigation()}),RVS.DOC.on("change","#rs_ne_def_meta_title",S),RVS.DOC.on("change","#rs_ne_def_meta_handle",function(){this.value=RVS.F.sanitize_input_lc(this.value),S()}),RVS.DOC.on("click",".rs_ne_pick",function(){jQuery(".rs_ne_pick.selected").removeClass("selected"),this.className+=" selected",jQuery("#rs_ne_def_meta_icon_val").val(this.dataset.content)}),RVS.DOC.on("click",".rs_ne_nskin_meta_add, .rs_ne_markup_meta_btn",function(){return RVS.nav.infactorymode||RVS.F.insertTextAtCursor(RVS.nav.editor,this.dataset.insert),!1}),RVS.DOC.on("closenavmetavalue",function(){jQuery("#rs_ne_cssmeta_config").hide(),jQuery("#rs_ne_cssmeta_values").show()}),RVS.DOC.on("updatenavmetavalue",function(){var e=document.getElementById("rs_ne_def_meta_handle").value;switch(RVS.nav.currentSkin.placeholders=""===RVS.nav.currentSkin.placeholders||void 0===RVS.nav.currentSkin.placeholders||"string"==typeof RVS.nav.currentSkin.placeholders?{}:RVS.nav.currentSkin.placeholders,RVS.nav.currentSkin.placeholders[e]=void 0===RVS.nav.currentSkin.placeholders[e]||""==RVS.nav.currentSkin.placeholders[e]?{}:RVS.nav.currentSkin.placeholders[e],RVS.nav.currentSkin.placeholders[e].type=document.getElementById("rs_ne_meta_type").value,RVS.nav.currentSkin.placeholders[e].title=document.getElementById("rs_ne_def_meta_title").value,RVS.nav.currentSkin.placeholders[e].type){case"color":RVS.nav.currentSkin.placeholders[e].data=document.getElementById("rs_ne_def_meta_color_val").value;break;case"icon":RVS.nav.currentSkin.placeholders[e].data=document.getElementById("rs_ne_def_meta_icon_val").value;break;case"custom":RVS.nav.currentSkin.placeholders[e].data=document.getElementById("rs_ne_def_meta_custom_val").value;break;case"font-family":RVS.nav.currentSkin.placeholders[e].data=document.getElementById("nav_fontfamily").value}e!==RVS.nav.currentPlaceholder&&delete RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder],d(),jQuery("#rs_ne_cssmeta_config").hide(),jQuery("#rs_ne_cssmeta_values").show(),RVS.F.drawEditorNavigation(),l()}),RVS.DOC.on("click",".rs_ne_nskin_edit",function(){var e=jQuery(this).closest(".rs_ne_nav_skin");return e[0].dataset.mode="rename",e.addClass("rs_changename"),e.find("input").trigger("focus").trigger("select"),RVS.S.waitOnFeedback={allowed:["rs_ne_nskin_title_input","rs_ne_nskin_yes","rs_ne_nskin_no","rbm_close"],closeEvent:"hideCustomNavNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".rs_ne_nskin_delete",function(){var e=jQuery(this).closest(".rs_ne_listelement");return e[0].dataset.mode="delete",e.addClass("rs_showmessage"),e.find(".rs_ne_nskin_message").text(RVS_LANG.deletetemplate),RVS.S.waitOnFeedback={allowed:["rs_ne_nskin_yes","rs_ne_nskin_no","rbm_close"],closeEvent:"hideCustomNavNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".rs_ne_nskin_copy",function(){var e=jQuery(this).closest(".rs_ne_nav_skin"),t=(RVS.nav.currentMaxid++,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid]=jQuery.extend(!0,{},RVS.nav[e[0].dataset.type][e[0].dataset.handle]),RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].handle),i=RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].handle+"_copy"+Math.round(100*Math.random()+10),t=(!0===RVS.F.checkSkinHandle(i)&&(i+=Math.round(100*Math.random()+10)),!0===RVS.F.checkSkinHandle(i)&&(i+=Math.round(100*Math.random()+10)),RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].factory=!1,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].name+=" Copy",RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].handle=i,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].changed=!0,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].id="new_"+RVS.nav.currentMaxid,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].presets={},new RegExp("\\."+t,"g"));return RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].css=RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].css.replace(t,"."+i),RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),n(e[0].dataset.type),l(),!1}),RVS.DOC.on("click","#rs_ne_new_custom_nav",function(){RVS.nav.currentMaxid++,RVS.nav[RVS.nav.currentSkinType]["new_"+RVS.nav.currentMaxid]=RVS.F.createNewNavigation(RVS.nav.currentSkinType),n(RVS.nav.currentSkinType),jQuery("#rs_ne_nav_skin_new_"+RVS.nav.currentMaxid).trigger("click"),jQuery("#rs_ne_nav_skin_new_"+RVS.nav.currentMaxid+" .rs_ne_nskin_edit").trigger("click"),l()}),RVS.DOC.on("hideCustomNavNameEntering",function(){jQuery(".rs_changename").removeClass("rs_changename")}),RVS.DOC.on("click",".rs_ne_nskin_yes",function(){var e=jQuery(this).closest(".rs_ne_listelement"),t=e.find("input");return"rename"===e[0].dataset.mode?(RVS.nav[e[0].dataset.type][e[0].dataset.handle].name=t.val(),RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),n(e[0].dataset.type),l(),!1):"delete"===e[0].dataset.mode?(e.hasClass("rs_ne_meta_value_btn")?(delete RVS.nav.currentSkin.placeholders[e[0].dataset.placeholder],RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),d(),RVS.F.drawEditorNavigation()):(void 0!==RVS.nav.cache[e[0].dataset.type][e[0].dataset.handle]&&RVS.nav.toDelete.push(e[0].dataset.handle),delete RVS.nav[e[0].dataset.type][e[0].dataset.handle],RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),n(e[0].dataset.type)),l(),!1):void 0}),RVS.DOC.on("click",".rs_ne_nskin_no",function(){var e=jQuery(this).closest(".rs_ne_listelement");return RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),e.hasClass("rs_ne_meta_value_btn")?d():n(e[0].dataset.type),!1}),RVS.DOC.on("click",".rs_ne_markup_css_button",function(){RVS.F.pickMarkupCssMode(this)}),RVS.nav.editor.on("change",function(){void 0!==RVS.nav.currentSkin&&void 0!==RVS.nav.currentEditorMode&&void 0!==RVS.nav.currentSkin[RVS.nav.currentEditorMode]&&RVS.nav.currentSkin[RVS.nav.currentEditorMode]!==RVS.nav.editor.getValue()&&(RVS.nav.currentSkin[RVS.nav.currentEditorMode]=RVS.nav.editor.getValue(),RVS.F.drawEditorNavigation(),l())})}for(var a in RVS.nav.cache={},o)o.hasOwnProperty(a)&&(RVS.nav.cache[o[a]]=jQuery.extend(!0,{},RVS.nav[o[a]]));RVS.nav.currentMaxid=0,n("arrows"),RVS.F.RSDialog.create({modalid:"rbm_navigation_editor",bgopacity:.5}),jQuery(".emc_toggle_inner").RSScroll({suppressScrollX:!0}),RVS.nav.editor.refresh(),f.detach(),v.detach(),_.detach(),L.tabs.self.detach(),L.thumbs.self.detach();var r="arrows";for(a in o)if(o.hasOwnProperty(a)){var s=document.querySelector('[data-pcontainer="#nav_settings"] .selected');if(s&&s.dataset&&s.dataset.forms&&0<=s.dataset.forms.indexOf(o[a])){r=o[a];break}}t=void 0!==RVS.SLIDER.settings.nav[r]?RVS.SLIDER.settings.nav[r].style:"1000",t=(RVS.F.pickNavType(document.getElementById("rs_ne_selector_"+r)),jQuery('#rs_ne_navlist .rs_ne_nav_skin[data-handle="'+t+'"]'));0<t.length&&p(t[0]),RVS.F.pickMarkupCssMode(document.getElementById("rs_ne_mcss_thecsseditor"))}},RVS.F.drawEditorNavigation=function(){void 0===RVS.nav.c&&(RVS.nav.c={arrows:jQuery("#rs_ne_arrows"),left:jQuery("#rs_ne_tp-leftarrow"),right:jQuery("#rs_ne_tp-rightarrow"),bullets:jQuery("#rs_ne_bullets"),tabs:{self:jQuery("#rs_ne_tabs"),inner:jQuery("#rs_ne_tabs-inner-wrapper"),mask:jQuery("#rs_ne_tabs-mask"),single:"tp-tab"},thumbs:{self:jQuery("#rs_ne_thumbs"),inner:jQuery("#rs_ne_thumbs-inner-wrapper"),mask:jQuery("#rs_ne_thumbs-mask"),single:"tp-thumb"}}),RVS.nav.currentTestSpace=null==RVS.nav.currentTestSpace?5:RVS.nav.currentTestSpace,RVS.nav.currentTestPadding=10,RVS.nav.currentAlignMode=null==RVS.nav.currentAlignMode?"horizontal":RVS.nav.currentAlignMode,RVS.nav.currentPosVer=null==RVS.nav.currentPosVer?"bottom":RVS.nav.currentPosVer,RVS.nav.currentPosHor=null==RVS.nav.currentPosHor?"center":RVS.nav.currentPosHor;var e=RVS.F.sanitize_input(RVS.nav.currentSkin.handle.toLowerCase())+" "+RVS.F.sanitize_input(RVS.nav.currentSkin.name.toLowerCase()),t=w({type:RVS.nav.currentSkinType,skin:RVS.nav.currentSkin,default:!0});switch(RVS.nav.currentSkinType){case"arrows":var i=RVS.nav.currentSkin.markup.replace("##title##","Title");RVS.nav.c.left[0].className="tparrows tp-leftarrow "+e,RVS.nav.c.right[0].className="tparrows tp-rightarrow "+e,RVS.nav.c.left[0].innerHTML=t+i,RVS.nav.c.right[0].innerHTML=i,RVS.nav.c.arrows.show(),RVS.nav.c.bullets.hide(),RVS.nav.c.tabs.self.hide(),RVS.nav.c.thumbs.self.hide();break;case"bullets":RVS.nav.c.arrows.hide(),RVS.nav.c.tabs.self.hide(),RVS.nav.c.thumbs.self.hide(),RVS.nav.c.bullets.show(),RVS.nav.c.bullets[0].className="tp-bullets "+e+" nav-dir-"+RVS.nav.currentAlignMode+" nav-pos-ver-"+RVS.nav.currentPosVer+" nav-pos-hor-"+RVS.nav.currentPosHor;for(var i=RVS.nav.currentSkin.markup.replace("##title##","Slide Title"),a="",r=0;r<=4;r++)a+='<div class="tp-bullet '+(0==r?"selected":"")+'">'+i+"</div>";RVS.nav.c.bullets[0].innerHTML=t+a,RVS.nav.c.bullets.find(".tp-bullet").each(function(e){var t=jQuery(this),i=t.outerWidth()+parseInt(void 0===RVS.nav.currentTestSpace?0:RVS.nav.currentTestSpace,0),a=t.outerHeight()+parseInt(void 0===RVS.nav.currentTestSpace?0:RVS.nav.currentTestSpace,0);"vertical"===RVS.nav.currentAlignMode?(t.css({top:e*a+"px",left:"0px"}),tpGS.gsap.set(RVS.nav.c.bullets,{height:4*a+t.outerHeight(),width:t.outerWidth()})):(t.css({left:e*i+"px",top:"0px"}),tpGS.gsap.set(RVS.nav.c.bullets,{width:4*i+t.outerWidth(),height:t.outerHeight()}))});break;case"tabs":case"thumbs":for(var s=RVS.nav.currentSkinType,o=s.replace("s",""),i=(RVS.nav.c.arrows.hide(),RVS.nav.c.bullets.hide(),RVS.nav.c.tabs.self.hide(),RVS.nav.c.thumbs.self.hide(),RVS.nav.c[s].self.show(),RVS.nav.c[s].self[0].className="tp-"+s+" "+e+" nav-dir-"+RVS.nav.currentAlignMode+" nav-pos-ver-"+RVS.nav.currentPosVer+" nav-pos-hor-"+RVS.nav.currentPosHor,RVS.nav.currentSkin.markup.replace("##title##","Slide Title")),a="",r=0;r<10;r++)i=i.replace("##param"+r+"##","Parameter "+r);for(r=0;r<=2;r++)a+='<div class="'+e+" tp-"+o+" "+(0==r?"selected":"")+'">'+i+"</div>";RVS.nav.c[s].inner[0].innerHTML=t+a;var n=parseInt(RVS.nav.currentSkin.dim.width,0)+parseInt(RVS.nav.currentTestSpace,0),l=parseInt(RVS.nav.currentSkin.dim.height,0)+parseInt(RVS.nav.currentTestSpace,0),d=(tpGS.gsap.set(RVS.nav.c[s].self,{padding:RVS.nav.currentTestPadding}),RVS.nav.currentTestPadding=parseInt(RVS.nav.currentTestPadding,0),RVS.nav.c[s].inner.find("."+RVS.nav.c[s].single).each(function(e){"vertical"===RVS.nav.currentAlignMode?tpGS.gsap.set(this,{top:e*l+"px",left:"0px",width:RVS.nav.currentSkin.dim.width+"px",height:RVS.nav.currentSkin.dim.height+"px"}):tpGS.gsap.set(this,{left:e*n+"px",top:"0px",width:RVS.nav.currentSkin.dim.width+"px",height:RVS.nav.currentSkin.dim.height+"px"})}),"horizontal"===RVS.nav.currentAlignMode?3*RVS.nav.currentSkin.dim.width+2*RVS.nav.currentTestSpace:RVS.nav.currentSkin.dim.width),S="horizontal"===RVS.nav.currentAlignMode?RVS.nav.currentSkin.dim.height:3*RVS.nav.currentSkin.dim.height+2*RVS.nav.currentTestSpace,c={top:"auto",left:"auto",bottom:"auto",marginTop:"0px",marginBottom:"0px",right:"auto",y:"0%",x:"0px",width:d+"px",height:S+"px",overflow:"hidden",position:"relative",overwrite:"auto",marginLeft:"auto",marginRight:"auto"};tpGS.gsap.set(RVS.nav.c[s].self,{width:d+"px",height:S+"px",overwrite:"auto"}),tpGS.gsap.set(RVS.nav.c[s].mask,c)}},RVS.F.savechangesonnavigation=function(){for(var e in RVS.nav.changes={},RVS.nav.currentHandle=void 0!==RVS.nav.currentSkin?RVS.nav.currentSkin.handle:void 0,o)if(o.hasOwnProperty(e))for(var t in RVS.nav[o[e]])if(RVS.nav[o[e]].hasOwnProperty(t)&&RVS.nav[o[e]][t].changed){RVS.nav.changes[t]=jQuery.extend(!0,{},RVS.nav[o[e]][t]),delete RVS.nav.changes[t].changed;try{var i,a=RVS.SLIDER[RVS.S.slideId].slide.nav[o[e]].presets;for(i in RVS.nav.changes[t].placeholders)RVS.nav.changes[t].placeholders.hasOwnProperty(i)&&void 0!==a[i]&&!0!==a[i+"-def"]&&(a[i]=RVS.nav.changes[t].placeholders[i].data)}catch(e){}}RVS.F.ajaxRequest("save_navigation",{navs:RVS.nav.changes,delete:RVS.nav.toDelete},function(e){for(var t in o)o.hasOwnProperty(t)&&(RVS.nav[o[t]]=jQuery.extend(!0,{},e.navs[o[t]]));if(void 0!==RVS.nav.currentHandle){var i;for(t in n(RVS.nav.currentSkinType),RVS.nav[RVS.nav.currentSkinType])RVS.nav[RVS.nav.currentSkinType].hasOwnProperty(t)&&(i=void 0===i&&RVS.nav[RVS.nav.currentSkinType][t].handle==RVS.nav.currentHandle?t:i);void 0!==i&&jQuery("#rs_ne_nav_skin_"+i).trigger("click")}}),RVS.nav.toDelete=[],RVS.nav.toSave=!1,jQuery("#save_naveditor").hide(),RVS.F.updatePresetInputs({type:RVS.nav.currentSkinType,env:"slide"}),RVS.F.updatePresetInputs({type:RVS.nav.currentSkinType,env:"global"})},RVS.F.checkSkinHandle=function(e){var t,i=e.length<4||0<=jQuery.inArray(e,["cursor","pointer","margin","padding","display","position","width","height","transition","relative","absolute","color","arrows","thumbs","arrow","thumb","tab","tabs","bullet","bullets","hover","z-index"]);for(t in RVS.nav[RVS.nav.currentSkinType])RVS.nav[RVS.nav.currentSkinType].hasOwnProperty(t)&&(i=!0===i||RVS.nav[RVS.nav.currentSkinType][t].handle===e);return i},RVS.F.bgUpdate=function(e,t){tpGS.gsap.set(L[e].self,{background:t})},RVS.F.pickMarkupCssMode=function(e){jQuery(".rs_ne_markup_css_button.selected").removeClass("selected"),jQuery(e.dataset.hide).hide(),jQuery(e.dataset.show).show(),RVS.nav.currentEditorMode=e.dataset.mode,e.className+=" selected",void 0!==RVS.nav.currentSkin&&RVS.nav.editor.setValue(RVS.nav.currentSkin[RVS.nav.currentEditorMode])},RVS.F.pickNavType=function(e){jQuery(".rs_ne_selector.selected").removeClass("selected"),e.className+=" selected",RVS.nav.currentSkinType=e.dataset.type,jQuery("#rs_ne_helper_wrap, #rs_ne_settings, #rs_ne_markup_css_button_wrap").hide(),jQuery("#rs_ne_cssmeta_config").hide(),jQuery("#rs_ne_cssmeta_values").show(),RVS.F.pickMarkupCssMode(document.getElementById("rs_ne_mcss_thecsseditor")),n(e.dataset.type),jQuery("#rs_ne_factory_list .rs_ne_nav_skin").first().trigger("click")},RVS.F.setNavPresetValues=function(e){var t=RVS.SLIDER.settings.nav[e.type];if("default"===t.preset)for(var i in RVS.nav[e.type][t.style].placeholders)RVS.nav[e.type][t.style].placeholders.hasOwnProperty(i)&&RVS.F.updateSliderObj({path:"settings.nav."+e.type+".presets",val:{}});else{var a,r=RVS.nav[e.type][t.style].presets[t.preset].values;for(a in r)r.hasOwnProperty(a)&&(-1===a.indexOf("-def")?RVS.F.updateSliderObj({path:"settings.nav."+e.type+".presets."+a,val:r[a]}):"on"!==r[a]&&!0!==r[a]&&"true"!==r[a]||RVS.F.updateSliderObj({path:"settings.nav."+e.type+".presets."+a,val:!0}))}RVS.F.updateNavStyleSelection({init:!1,type:e.type})},RVS.F.updatePresetInputs=function(e){var t,i,a,r,s,o,n=("slide"===e.env?RVS.SLIDER[RVS.S.slideId].slide:RVS.SLIDER.settings).nav[e.type],l="slide"===e.env?jQuery("#sl_"+e.type+"_styles_fieldset"):jQuery("#sr_"+e.type+"_styles_fieldset"),d="slide"===e.env?document.getElementById("form_slide_nav_"+e.type):document.getElementById("form_nav_"+e.type+"_style"),S=(RVS.SLIDER.settings.nav[e.type].style=void 0===RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style]?"arrows"===e.type?1e3:"bullets"===e.type?3e3:"thumbs"===e.type?2e3:4e3:RVS.SLIDER.settings.nav[e.type].style,RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style].placeholders),c="slide"===e.env?void 0:RVS.SLIDER.settings.nav[e.type].preset,p=void 0!==c&&"default"!==c&&void 0!==RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style].presets[c]?RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style].presets[c].values:{},u="slide"===e.env?"sl_"+e.type+"_":"sr_"+e.type+"_",R="slide"===e.env?RVS.S.slideId+".slide.":"settings.",V="slide"===e.env?"slideinput":"sliderinput",m=RVS.F.cF();for(s in n.presets=void 0===n.presets?{}:n.presets,S)if(S.hasOwnProperty(s)){i=void 0!==p[t=S[s]]?p[t]:t.data,g=!1,"default"!==n.preset&&void 0!==n.presets&&void 0!==n.presets[s]?(i=n.presets[s],g=n.presets[s+"-def"]):(n.presets[s]=i,n.presets[s+"-def"]=g);var y,g=(y=function(e){"false"===e||!1===e||"off"===e||void 0===e||0===e||-1===e?e=!1:"true"!==e&&!0!==e&&"on"!==e||(e=!0);return e}(g))?" checked='checked' ":"",h=RVS.F.cE({t:"row",cN:"directrow navpresetrow"}),f=RVS.F.cE({t:"onelong"}),g=RVS.F.cE({t:"oneshort"}),v=RVS.F.cE({t:"label_a"}),_=RVS.F.cE({t:"label_icon"}),L=RVS.F.cE({t:"input",type:"checkbox",id:u+s+"-def",cN:"presetToCustom nav_"+e.type+"_custom_defaults "+V,ds:{evt:"redrawNavigation",evtparam:e.type,r:"nav."+e.type+".presets."+s+"-def"}});switch(v.innerText=t.title,L.checked=y,f.appendChild(v),g.appendChild(_),g.appendChild(L),h.appendChild(f),h.appendChild(g),t.type){case"font-family":var w,b=RVS.F.cE({t:"select",cN:"navstyleinput searchbox tos2 presetToCustom "+F,id:u+s,ds:{evt:"redrawNavigation",evtparam:e.type,theme:"minl120",r:R+"nav."+e.type+".presets."+s}});for(w in f.appendChild(b),RVS.LIB.FONTS)RVS.LIB.FONTS.hasOwnProperty(w)&&"Dont Show Me"!==RVS.LIB.FONTS[w].label&&b.appendChild(RVS.F.CO(RVS.LIB.FONTS[w].label,RVS.LIB.FONTS[w].label));b.value=i;break;case"icon":case"custom":var I,F="";try{RVS.F.isNumeric(parseInt(i,0))&&(F=" valueduekeyboard")}catch(e){}(r=RVS.F.cE({t:"input",type:"text",id:u+s,cN:"presetToCustom"+F+" navstyleinput",ds:{evt:"redrawNavigation",evtparam:e.type,r:R+"nav."+e.type+".presets."+s}})).value=i,"icon"===t.type?((a=RVS.F.cE({cN:"input_presets_wrap"})).appendChild(RVS.F.cI({cN:"input_presets_dropdown",c:"more_vertical"})),(I=RVS.F.cE({cN:"input_presets",ds:{insertinto:u+s}})).innerHTML='<div class="font_icon_subcontainer"><i class="nav_preseticon_pick rs_ne_icon_e817 revicon-left-dir" data-content="\\e817"></i><i class="nav_preseticon_pick rs_ne_icon_e818 revicon-right-dir" data-content="\\e818"></i><i class="nav_preseticon_pick rs_ne_icon_e819 revicon-left-open" data-content="\\e819"></i><i class="nav_preseticon_pick rs_ne_icon_e81a revicon-right-open" data-content="\\e81a"></i><i class="nav_preseticon_pick rs_ne_icon_e820 revicon-angle-left" data-content="\\e820"></i><i class="nav_preseticon_pick rs_ne_icon_e81d revicon-angle-right" data-content="\\e81d"></i><i class="nav_preseticon_pick rs_ne_icon_e81f revicon-left-big" data-content="\\e81f"></i><i class="nav_preseticon_pick rs_ne_icon_e81e revicon-right-big" data-content="\\e81e"></i><i class="nav_preseticon_pick rs_ne_icon_e82a revicon-left-open-1" data-content="\\e82a"></i><i class="nav_preseticon_pick rs_ne_icon_e82b revicon-right-open-1" data-content="\\e82b"></i><i class="nav_preseticon_pick rs_ne_icon_e822 revicon-left-open-mini" data-content="\\e822"></i><i class="nav_preseticon_pick rs_ne_icon_e823 revicon-right-open-mini" data-content="\\e823"></i><i class="nav_preseticon_pick rs_ne_icon_e824 revicon-left-open-big" data-content="\\e824"></i><i class="nav_preseticon_pick rs_ne_icon_e825 revicon-right-open-big" data-content="\\e825"></i><i class="nav_preseticon_pick rs_ne_icon_e836 revicon-left" data-content="\\e836"></i><i class="nav_preseticon_pick rs_ne_icon_e826 revicon-right" data-content="\\e826"></i><i class="nav_preseticon_pick rs_ne_icon_e82e revicon-left-open-outline" data-content="\\e82e"></i><i class="nav_preseticon_pick rs_ne_icon_e82f revicon-right-open-outline" data-content="\\e82f"></i><i class="nav_preseticon_pick rs_ne_icon_e82c revicon-left-open-2" data-content="\\e82c"></i><i class="nav_preseticon_pick rs_ne_icon_e82d revicon-right-open-2" data-content="\\e82d"></i></div>',a.appendChild(I),a.prepend(r),f.appendChild(a)):f.appendChild(r);break;case"color":case"color-rgba":0<=i.indexOf(",")&&-1==i.indexOf("(")&&(i=3<i.split(",").length?"rgba("+i+")":"rgb("+i+")"),h.className="directrow",(r=RVS.F.cE({t:"input",type:"text",id:u+s,cN:"navstyleinput presetToCustom my-color-field",ds:{evt:"redrawNavigation",evtparam:e.type,r:R+"nav."+e.type+".presets."+s,visible:"true",editing:RVS.F.capitalise(e.type)+" "+t.title,navcolor:"1",mode:"single"}})).name=s,r.value=i,f.appendChild(r)}m.appendChild(h)}for(o in requestAnimationFrame(function(){l[0].innerHTML="",l[0].appendChild(m),l.find(".navstyleinput.searchbox.tos2.presetToCustom ").ddTP("destroy").ddTP({placeholder:"Enter or Select"}),RVS.F.initTpColorBoxes(l.find(".navstyleinput.presetToCustom.my-color-field")),RVS.F.initOnOff(l),""===l[0].innerHTML?d.classList.add("hide_while_empty"):d.classList.remove("hide_while_empty")}),n.presets)n.presets.hasOwnProperty(o)&&void 0===S[o.replace("-def","")]&&delete n.presets[o]},RVS.F.updateNavStyleSelection=function(e){u({init:e.init,navobj:RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style],type:e.type,presetChange:e.presetChange}),RVS.F.drawNavigation({type:e.type,init:e.init,presetChange:e.presetChange})},RVS.F.drawNavigation=function(e){if(void 0!==e&&0!=RVS.SLIDER.slideIDs.length){var t=RVS.SLIDER.settings.nav[e.type],i=(void 0!==e.style?e:t).style,a=RVS.nav[e.type][i],r=0<RVS.SLIDER.slideIDs.length?RVS.SLIDER.slideIDs[1]:RVS.SLIDER.slideIDs[0],s=RVS.SLIDER.slideIDs[RVS.SLIDER.slideIDs.length-1];if(void 0!==a&&void 0!==a.markup){var o=RVS.F.sanitize_input(a.handle.toLowerCase()),i=void 0!==a.css?w({color:e.color,attribute:e.attribute,type:e.type,handle:i,default:e.default}):"";if("arrows"===e.type){f.attr("class","aable markable tparrows tp-leftarrow "+o),v.attr("class","aable markable tparrows tp-rightarrow "+o),d=S=a.markup;var n=b({id:s}),l=b({id:r}),d=d.replace("##title##",void 0===RVS.SLIDER[r]?"Title":RVS.SLIDER[r].slide.title),S=S.replace("##title##",void 0===RVS.SLIDER[s]?"Title":RVS.SLIDER[s].slide.title);f.html(i+S),v.html(d),f.find(".tp-arr-imgholder").css(n),f.find(".tp-arr-imgholder").attr("id","arrows_"+s),v.find(".tp-arr-imgholder").css(l),v.find(".tp-arr-imgholder").attr("id","arrows_"+r),RVS.F.dragMe({element:f,input:{x:jQuery("#nav_arrows_left_offsetx"),y:jQuery("#nav_arrows_left_offsety")},updateInput:!0,attributeRoot:"settings.",callEvent:"sliderNavPositionUpdate",callEventParam:"arrows",forms:["*navlayout*#form_nav_arrows:#sr_na_arr_12"]}),RVS.F.dragMe({element:v,input:{x:jQuery("#nav_arrows_right_offsetx"),y:jQuery("#nav_arrows_right_offsety")},updateInput:!0,attributeRoot:"settings.",callEvent:"sliderNavPositionUpdate",callEventParam:"arrows",forms:["*navlayout*#form_nav_arrows:#sr_na_arr_13"]})}else if("bullets"===e.type){_.data("cname",o),_.attr("class","aable markable tp-bullets "+o+" nav-dir-"+t.direction+" nav-pos-ver-"+t.vertical+" nav-pos-hor-"+t.horizontal),_.html(i);for(var c=a.markup,p=0;p<=RVS.SLIDER.slideIDs.length-1;p++){var u=RVS.SLIDER.slideIDs[p],R=c.replace("##title##",RVS.SLIDER[u].slide.title),V=0==p?"selected":"",m=jQuery('<div class="tp-bullet '+V+'">'+R+"</div>");m.find(".tp-bullet-image").css(b({id:u})).attr("id","bullets"+u),_.append(m)}RVS.F.dragMe({element:_,input:{x:jQuery("#nav_bullets_offsetx"),y:jQuery("#nav_bullets_offsety")},updateInput:!0,attributeRoot:"settings.",callEvent:"sliderNavPositionUpdate",callEventParam:"bullets",forms:["*navlayout*form_nav_bullets:#sr_na_bul_11"]})}else if("tabs"===e.type||"thumbs"===e.type){e.presetChange?(t.width=(void 0!==a.dim.width?a.dim:t).width,t.height=(void 0!==a.dim.height?a.dim:t).height,jQuery("#nav_"+e.type+"_width").val(t.width),jQuery("#nav_"+e.type+"_height").val(t.height)):tpGS.gsap.set(L[e.type].self,{background:window.RSColor.get(t.wrapperColor)}),L[e.type].self.data("cname",o),L[e.type].inner.html(i);for(c=a.markup,p=0;p<=Math.min(t.amount,RVS.SLIDER.slideIDs.length-1);p++){for(var u=RVS.SLIDER.slideIDs[p],R=c.replace("##title##",RVS.SLIDER[u].slide.title),V=0==p?"selected":"",y=0;y<10;y++){var g=void 0!==RVS.SLIDER[u].slide.info.params[y]?RVS.SLIDER[u].slide.info.params[y].val:"";void 0!==g&&0<g.length&&(R=R.replace("##param"+y+"##",g))}var h=jQuery('<div class="'+L[e.type].single+" "+V+'">'+R+"</div>");h.find("."+L[e.type].single+"-image").css(b({id:u})).attr("id",e.type+"_"+u),L[e.type].inner.append(h)}S="tabs"==e.type?"*navlayout*#form_nav_tabs:#sr_na_tab_11":"*navlayout*#form_nav_thumbs:#sr_na_thumb_11";RVS.F.dragMe({element:L[e.type].self,input:{x:jQuery("#nav_"+e.type+"_offsetx"),y:jQuery("#nav_"+e.type+"_offsety")},updateInput:!0,attributeRoot:"settings.",callEvent:"sliderNavPositionUpdate",callEventParam:e.type,forms:[S]})}}RVS.F.sliderNavPositionUpdate({type:e.type})}},RVS.F.sliderNavPositionUpdate=function(e){requestAnimationFrame(function(){RVS.F.sliderNavPositionUpdateRAF(e)})},RVS.F.sliderNavPositionUpdateRAF=function(e){var s=RVS.SLIDER.settings.nav[e.type];switch(e.type){case"arrows":s.set&&"hero"!==RVS.SLIDER.settings.type?(f.show(),v.show()):(f.hide(),v.hide());break;case"bullets":s.set&&"hero"!==RVS.SLIDER.settings.type?_.show():_.hide();break;case"tabs":case"thumbs":s.set&&"hero"!==RVS.SLIDER.settings.type?L[e.type].self.show():L[e.type].self.hide()}if(!1===s.set||"hero"===RVS.SLIDER.settings.type)return!1;if("arrows"===e.type)R(f,s.left),R(v,s.right);else if("bullets"===e.type)_.attr("class","aable markable tp-bullets "+_.data("cname")+" nav-dir-"+s.direction+" nav-pos-ver-"+s.vertical+" nav-pos-hor-"+s.horizontal),_.find(".tp-bullet").each(function(e){var t=jQuery(this),i=RVS.SLIDER.slideIDs.length,a=t.outerWidth()+parseInt(void 0===s.space?0:s.space,0),r=t.outerHeight()+parseInt(void 0===s.space?0:s.space,0);"vertical"===s.direction?(t.css({top:e*r+"px",left:"0px"}),_.css({height:(i-1)*r+t.outerHeight(),width:t.outerWidth()})):(t.css({left:e*a+"px",top:"0px"}),_.css({width:(i-1)*a+t.outerWidth(),height:t.outerHeight()}))}),R(_,s);else if("tabs"===e.type||"thumbs"===e.type){var t=Math.min(s.amount,RVS.SLIDER.slideIDs.length),i=parseInt(s.width,0)+parseInt(s.space,0),a=parseInt(s.height,0)+parseInt(s.space,0),r=(s.width=parseInt(s.width),s.height=parseInt(s.height),L[e.type].self.attr("class","aable markable "+L[e.type].single+"s "+L[e.type].self.data("cname")+" nav-dir-"+s.direction+" nav-pos-ver-"+s.vertical+" nav-pos-hor-"+s.horizontal),tpGS.gsap.set(L[e.type].self,{padding:s.padding}),s.padding=parseInt(s.padding,0),L[e.type].inner.find("."+L[e.type].single).each(function(e){"vertical"===s.direction?tpGS.gsap.set(this,{top:e*a+"px",left:"0px",width:s.width+"px",height:s.height+"px"}):tpGS.gsap.set(this,{left:e*i+"px",top:"0px",width:s.width+"px",height:s.height+"px"})}),"horizontal"===s.direction?s.width*t+s.space*(t-1)+parseInt(2*s.mhoffset):s.width+parseInt(2*s.mhoffset)),t="horizontal"===s.direction?parseInt(s.height)+parseInt(2*s.mvoffset):s.height*t+s.space*(t-1)+parseInt(2*s.mvoffset),o={width:r+"px",height:t+"px",overwrite:"auto"},n={padding:s.mvoffset+"px "+s.mhoffset+"px",top:"auto",left:"auto",bottom:"auto",marginTop:"0px",marginBottom:"0px",right:"auto",y:"0%",x:"0px",width:r+"px",height:t+"px",overflow:"hidden",position:"relative",overwrite:"auto",marginLeft:"auto",marginRight:"auto"};if(!0===s.spanWrapper)switch(s.direction){case"horizontal":o.width=RVS.S.ulDIM.width-2*parseInt(s.padding,0)+"px",n.x=s.offsetX,n.marginLeft="center"===s.horizontal?"auto":"0px",n.marginRight="center"===s.horizontal?"auto":"0px","right"===s.horizontal&&(n.right=s.padding+"px",n.position="absolute"),"outer-bottom"===s.innerOuter?RVS.S.navOffset[e.type].bottom=parseInt(s.height,0)+2*s.padding:"outer-top"===s.innerOuter&&(RVS.S.navOffset[e.type].top=parseInt(s.height,0)+2*s.padding);break;case"vertical":o.height=RVS.S.ulDIM.height-2*parseInt(s.padding,0)+"px",n.marginTop="bottom"!==s.vertical?s.offsetY+"px":"0px",n.marginBottom="bottom"===s.vertical?-1*s.offsetY+"px":"0px","center"===s.vertical?(n.top="50%",n.y="-50%",n.position="absolute"):"bottom"===s.vertical&&(n.top="auto",n.bottom=s.padding+"px",n.position="absolute"),"outer-left"===s.innerOuter?RVS.S.navOffset[e.type].left=parseInt(s.width,0)+2*s.padding:"outer-right"===s.innerOuter&&(RVS.S.navOffset[e.type].right=parseInt(s.width,0)+2*s.padding)}tpGS.gsap.set(L[e.type].inner,{position:"relative"}),tpGS.gsap.set(L[e.type].self,o),tpGS.gsap.set(L[e.type].mask,n),R(L[e.type].self,s)}},RVS.F.saveDeleteNavPreset=function(e){var t,i=jQuery("#sr_"+e.type+"_style_preset").val(),a=RVS.F.sanitize_input(i),r={},s=RVS.SLIDER.settings.nav[e.type],o=RVS.nav[e.type][s.style],n="save"===e.mode?"create_navigation_preset":"delete_navigation_preset";if(""===i||"null"===i||null===i)RVS.F.showErrorMessage(RVS_LANG.no_preset_name);else{if("save"===e.mode){for(var l in s.presets)s.presets.hasOwnProperty(l)&&(t=s.presets[l],0<l.indexOf("-def"))&&("on"===t||!0===t||"true"===t)&&(r[t=l.replace("-def","")]=s.presets[t],r[l]=!0);if(jQuery.isEmptyObject(r))return void RVS.F.showErrorMessage(RVS_LANG.no_nav_changes_done)}else"delete"===e.mode&&delete o.presets[a];var d="save"===e.mode?{navigation:s.style,name:i,handle:a,type:e.type,do_overwrite:!0,values:r}:{style_handle:s.style,handle:a,type:e.type};o.presets=void 0===o.presets||""===o.presets?{}:o.presets,"save"===e.mode&&(o.presets[i]={name:i,values:r}),RVS.F.ajaxRequest(n,d,function(e){}),u({init:!1,navobj:o,type:e.type,presetChange:!0}),s.preset="save"===e.mode?a:"default",RVS.F.setNavPresetValues({type:e.type})}},RVS.F.updateSlideBasedNavigationStyle=function(){"hero"!==RVS.F.type&&(RVS.SLIDER.settings.nav.arrows.set&&RVS.F.updatePresetInputs({type:"arrows",env:"slide"}),RVS.SLIDER.settings.nav.bullets.set&&RVS.F.updatePresetInputs({type:"bullets",env:"slide"}),RVS.SLIDER.settings.nav.thumbs.set&&RVS.F.updatePresetInputs({type:"thumbs",env:"slide"}),RVS.SLIDER.settings.nav.tabs.set)&&RVS.F.updatePresetInputs({type:"tabs",env:"slide"})},RVS.F.createNewNavigation=function(e){return{id:"new_"+RVS.nav.currentMaxid,name:"New "+e+" Navigation",css:"",markup:"",dim:{width:160,height:160},placeholders:{},presets:{},type:e,factory:!1,handle:"newnavclass_"+RVS.nav.currentMaxid}},RVS.F.migrateNavigation=function(e){RVS.nav=e}}(),RVS.LIB.QS=jQuery.extend(!0,RVS.LIB.QS,{headlines:[{fs:32,lh:36,ff:"Indie Flower",fw:"400",ls:1},{fs:35,lh:45,ff:"Raleway",fw:"300",ls:2},{fs:46,lh:60,ff:"Shadows Into Light",fw:"400",ls:-1},{fs:36,lh:40,ff:"Roboto",fw:"500",ls:1.5},{fs:40,fst:"italic",lh:44,ff:"Raleway",fw:"800",ls:2},{fs:40,lh:50,ff:"Arial",fw:"400",ls:0},{fs:40,lh:50,ff:"Roboto",fw:"900",ls:0,tt:"uppercase"},{fs:60,lh:70,ff:"Poppins",fw:"500",ls:"-1",tt:"uppercase"},{fs:80,lh:90,ff:"Poppins",fw:"800",ls:"-4"},{fs:80,lh:90,ff:"Montserrat",fw:"200",ls:"-0.2"},{fs:100,lh:110,ff:"Montserrat",fw:"100",ls:"-6"}],headlines_color:"#fff",content_color:"#fff",content:[{fs:14,lh:24,ff:"Roboto",fw:"400",ls:1},{fs:16,lh:24,ff:"Poppins",fw:"400",ls:2},{fs:12,lh:20,ff:"Arial",fw:"400",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vestibulum orci at leo consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore..."},{fs:15,lh:25,ff:"Montserrat",fw:"400",ls:2},{fs:13,lh:20,ff:"Open Sans",fw:"400",ls:2,tt:"uppercase"},{fs:16,lh:24,ff:"Roboto",fw:"500",ls:0},{fs:24,lh:30,ff:"Open Sans",fw:"300",ls:1,content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit"}],buttons:[{showsize:"half",fs:15,fw:"500",ff:"Roboto",lh:32,pd:["0px","20px","0px","20px"],bg:"rgba(255,255,255,1)",color:"#000000",content:"Click Here",cls:"rev-btn",hc:"rgba(255,255,255,1)",hbg:"#000000",hs:300,ease:"power3.inOut"},{showsize:"half",fs:15,fw:"500",ff:"Roboto",lh:32,pd:["0px","20px","0px","20px"],br:["16px","16px","16px","16px"],bg:"rgba(255,255,255,1)",color:"#000000",content:"Click Here",cls:"rev-btn",hc:"rgba(255,255,255,1)",hbg:"#000000",hs:300,ease:"power3.inOut"},{showsize:"half",fs:20,fw:"500",ff:"Roboto",lh:50,pd:["0px","20px","0px","20px"],bg:"rgba(0,0,0,1)",color:"#ffffff",content:"Click Here",cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200,ease:"power1.inOut"},{showsize:"half",fs:20,fw:"500",ff:"Roboto",lh:50,pd:["0px","20px","0px","20px"],br:["25px","25px","25px","25px"],bg:"rgba(0,0,0,1)",color:"#ffffff",content:"Click Here",cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200,ease:"power1.inOut"},{showsize:"half",fs:17,fw:"500",ff:"Roboto",lh:40,pd:["0px","25px","0px","25px"],bg:"rgba(0,0,0,0)",bw:["1px","1px","1px","1px"],bs:"solid",bc:"rgba(255,255,255,0.35)",color:"#ffffff",content:"Click Here",cls:"rev-btn",hbc:"rgba(255,255,255,0.75)",hc:"rgba(255,255,255,1)",hs:300,ease:"power1.inOut"},{showsize:"half",fs:17,fw:"500",ff:"Roboto",lh:40,pd:["0px","25px","0px","25px"],br:["25px","25px","25px","25px"],bw:["1px","1px","1px","1px"],bs:"solid",bc:"rgba(255,255,255,0.35)",bg:"rgba(0,0,0,0)",color:"#ffffff",content:"Click Here",cls:"rev-btn",hbc:"rgba(255,255,255,0.75)",hc:"rgba(255,255,255,1)",hs:300,ease:"power1.inOut"},{showsize:"half",fs:17,fw:"500",ff:"Roboto",lh:40,pd:["0px","25px","0px","25px"],bg:"#007aff",color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"#007aff",hfb:"120%",hfbl:0,hfg:0,ease:"power3.inOut"},{showsize:"half",fs:17,fw:"500",ff:"Roboto",lh:40,pd:["0px","25px","0px","25px"],bg:"#007aff",color:"#ffffff",br:["25px","25px","25px","25px"],content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"#007aff",hfb:"120%",hfbl:0,hfg:0,ease:"power3.inOut"},{fs:18,fw:"500",ff:"Roboto",lh:50,pd:["0px","40px","0px","40px"],bg:"#007aff",br:["3px","3px","3px","3px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:100,hc:"#ffffff",hbg:"#007aff",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut"},{fs:20,fw:"500",ff:"Roboto",lh:55,pd:["0px","50px","0px","50px"],bg:"#007aff",br:["3px","3px","3px","3px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:100,hc:"#ffffff",hbg:"#007aff",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut"},{fs:18,fw:"500",ff:"Roboto",lh:50,pd:["0px","40px","0px","40px"],bxb:"20px",bxc:"#461d7d",bxv:"5px",bxh:"0px",bxs:"0px",br:["5px","5px","5px","5px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"{&type&:&linear&,&angle&:&181&,&colors&:[{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&top&},{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&top&}],&easing&:&sine.easeinout&,&strength&:100}",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut",bg:"{&type&:&linear&,&angle&:&181&,&colors&:[{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&top&},{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&top&}],&easing&:&sine.easeinout&,&strength&:100}"},{fs:20,fw:"500",ff:"Roboto",lh:60,pd:["0px","60px","0px","60px"],bxb:"20px",bxc:"#461d7d",bxv:"5px",bxh:"0px",bxs:"0px",br:["5px","5px","5px","5px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"{&type&:&linear&,&angle&:&181&,&colors&:[{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&top&},{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&top&}],&easing&:&sine.easeinout&,&strength&:100}",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut",bg:"{&type&:&linear&,&angle&:&181&,&colors&:[{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&top&},{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&top&}],&easing&:&sine.easeinout&,&strength&:100}"},{fs:18,fw:"500",ff:"Roboto",lh:50,pd:["0px","40px","0px","40px"],bxb:"20px",bxc:"rgba(0,0,0,0.25)",bxv:"10px",bxh:"0px",bxs:"0px",br:["5px","5px","5px","5px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&top&}],&easing&:&none&,&strength&:100}",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut",bg:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&top&}],&easing&:&none&,&strength&:100}"},{fs:20,fw:"500",ff:"Roboto",lh:60,pd:["0px","60px","0px","60px"],bxb:"20px",bxc:"rgba(0,0,0,0.25)",bxv:"10px",bxh:"0px",bxs:"0px",br:["5px","5px","5px","5px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&top&}],&easing&:&none&,&strength&:100}",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut",bg:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&top&}],&easing&:&none&,&strength&:100}"},{fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["12px","35px","12px","35px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:14,ff:"Roboto",lh:18,ls:1,tt:"uppercase",pd:["10px","30px","10px","30px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:12,ff:"Roboto",lh:14,ls:1,tt:"uppercase",pd:["8px","20px","8px","20px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["12px","35px","12px","35px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn rev-hiddenicon",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:14,ff:"Roboto",lh:18,ls:1,tt:"uppercase",pd:["10px","30px","10px","30px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn rev-hiddenicon",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:12,ff:"Roboto",lh:14,ls:1,tt:"uppercase",pd:["8px","20px","8px","20px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn rev-hiddenicon",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-light",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],bc:"rgba(255,255,255,0.75)",bs:"solid",bw:["2px","2px","2px","2px"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-light",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],bg:"#ffffff",color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-dark",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-dark",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],bc:"rgba(51,51,51,0.75)",bs:"solid",bw:["2px","2px","2px","2px"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-dark",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],bg:"#333333",color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-light",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"fourth",w:"35px",h:"55px",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["23px","23px","23px","23px"],bc:"rgba(255,255,255,0.75)",bs:"solid",bw:["3px","3px","3px","3px"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-scroll-btn rev-b-span-light"},{showsize:"fourth",w:"35px",h:"55px",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["23px","23px","23px","23px"],bc:"rgba(255,255,255,0.75)",bs:"solid",bw:["3px","3px","3px","3px"],bg:"#fff",ignoreIntelligent:!0,color:"#ffffff",content:"<span></span><span></span><span></span>",cls:"rev-scroll-btn rev-b-span-dark"},{showsize:"fourth",w:"35px",h:"55px",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["23px","23px","23px","23px"],bc:"rgba(51,51,51,0.75)",bs:"solid",bw:["3px","3px","3px","3px"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-scroll-btn rev-b-span-dark"},{showsize:"fourth",w:"35px",h:"55px",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["23px","23px","23px","23px"],bc:"rgba(51,51,51,0.75)",bs:"solid",bw:["3px","3px","3px","3px"],bg:"#333",ignoreIntelligent:!0,color:"#ffffff",content:"<span></span><span></span><span></span>",cls:"rev-scroll-btn rev-b-span-light"},{showsize:"fourth",w:"37px",h:"37px",fs:20,ff:"Roboto",lh:37,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#3B5998",color:"#ffffff",content:'<i class="fa-facebook-f"></i>',cls:""},{showsize:"fourth",w:"37px",h:"37px",fs:20,ff:"Roboto",lh:37,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#FD1D1D",color:"#ffffff",content:'<i class="fa-instagram"></i>',cls:""},{showsize:"fourth",w:"37px",h:"37px",fs:20,ff:"Roboto",lh:37,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#00A0D1",color:"#ffffff",content:'<i class="fa-twitter"></i>',cls:""},{showsize:"fourth",w:"37px",h:"37px",fs:20,ff:"Roboto",lh:37,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-envelope"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-play"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#ffffff",color:"#333333",content:'<i class="fa-play"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["5px","5px","5px","5px"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-play"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["5px","5px","5px","5px"],bg:"#ffffff",color:"#333333",content:'<i class="fa-play"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-pause"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#ffffff",color:"#333333",content:'<i class="fa-pause"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["5px","5px","5px","5px"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-pause"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["5px","5px","5px","5px"],bg:"#ffffff",color:"#333333",content:'<i class="fa-pause"></i>',cls:""}],shadows:[{showsize:"half",box_hoff:"0px",box_voff:"0px",box_blur:"0px",box_spread:"0px",box_color:"rgba(0,0,0,0.5)",box_inset:!1},{showsize:"half",box_hoff:"5px",box_voff:"0px",box_blur:"10px",box_spread:"0px",box_color:"rgba(0,0,0,0.25)",box_inset:!1},{showsize:"half",box_hoff:"0px",box_voff:"10px",box_blur:"10px",box_spread:"0px",box_color:"rgba(0,0,0,0.25)",box_inset:!1},{showsize:"half",box_hoff:"5px",box_voff:"5px",box_blur:"10px",box_spread:"0px",box_color:"rgba(0,0,0,0.15)",box_inset:!1},{showsize:"half",text_hoff:"7px",text_voff:"7px",text_blur:"10px",text_color:"rgba(0,0,0,0.75)"},{showsize:"half",text_hoff:"5px",text_voff:"0px",text_blur:"10px",text_color:"rgba(0,0,0,0.75)"},{showsize:"half",text_hoff:"0px",text_voff:"10px",text_blur:"10px",text_color:"rgba(0,0,0,0.75)"},{showsize:"half",text_hoff:"15px",text_voff:"15px",text_blur:"20px",text_color:"rgba(0,0,0,0.45)"}]}),RVS.LIB.QS_CONT={headlines:"Headline",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vestibulum orci at leo..."},function(){function V(e){return e.ls=void 0===e.ls?0:e.ls,e.fw=void 0===e.fw?400:e.fw,e.fst=void 0===e.fst?"normal":e.fst,e.pd=void 0===e.pd?["0px","0px","0px","0px"]:e.pd,e.br=void 0===e.br?["0px","0px","0px","0px"]:e.br,e.bg=void 0===e.bg?"transparent":e.bg,e.bs=void 0===e.bs?"none":e.bs,e.tt=void 0===e.tt?"none":e.tt,e}function e(e,t){var i=e.closest(".quick_style_dep_all");RVS.LIB.QS[e[0].dataset.cont+"_color"]="dark"===t?"#000":"#fff",i.find(".quick_colorchange_"+("dark"===t?"light":"dark")).removeClass("selected"),tpGS.gsap.to(i.find(".quick_style_example_content"),.2,{color:RVS.LIB.QS[e[0].dataset.cont+"_color"]}),tpGS.gsap.to(i.find(".quick_style_example_wrap"),.2,{backgroundColor:"dark"===t?"#fff":"#202224"}),i.removeClass("light").removeClass("dark").addClass(t),e.addClass("selected")}function m(){var e,t=-1;for(e in window.qstyle_scroll_targets)0<window.qstyle_scroll_targets[e].obj.length&&window.qstyle_scroll_targets[e].enable&&(window.qstyle_scroll_targets[e].top=window.qstyle_scroll_targets[e].obj.offset().top-100,window.qstyle_scroll_targets[e].height=window.qstyle_scroll_targets[e].obj.height(),window.qstyle_scroll_targets[e].top<=30)&&0<=window.qstyle_scroll_targets[e].top+window.qstyle_scroll_targets[e].height&&(t=e);t=-1===t?window.qstyle_scroll_targets.length-1:t,jQuery(".quick_style_menu_point").removeClass("active"),window.qstyle_scroll_targets[t].menu.addClass("active")}RVS.F.initQuickStyle=function(){RVS.DOC.on("click",".quick_colorchange_dark",function(){e(jQuery(this),"dark")}),RVS.DOC.on("click",".quick_colorchange_light",function(){e(jQuery(this),"light")}),RVS.DOC.on("quickstyletrigger",function(){RVS.F.openQuickStyle(!1)}),RVS.DOC.on("click","#quick_style_close",RVS.F.closeQuickStyle),RVS.DOC.on("showQuickStyle",RVS.F.showQuickStyle),RVS.DOC.on("click",".quick_style_example",function(){var e,t=this.dataset.qstyletype,i=jQuery.extend(!0,{},RVS.LIB.QS[t][this.dataset.qstyleindex]),a=this.dataset.layertype;if(RVS.F.updateScreenShrinks(),i=V(i),0===RVS.selLayers.length){if("textshadow"===a||"boxshadow"===a)return;var r=RVS.F.addLayer({type:a,forceSelect:!0});RVS.F.selectLayers({id:r,overwrite:!0,action:"add"})}for(e in void 0===RVS.S.qstyleBackupGroup&&RVS.F.openBackupGroup({id:"quickstyle",txt:"Quick Style Change",icon:"invert_colors"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e)){var s=RVS.S.slideId+".layers."+RVS.selLayers[e]+".",o=!1;switch(a){case"text":case"button":if("text"===RVS.L[RVS.selLayers[e]].type&&"text"===a||"button"===RVS.L[RVS.selLayers[e]].type&&"button"===a){if(o=!i.ignoreIntelligent||(RVS.F.updateSliderObj({path:s+"behavior.intelligentInherit",val:!1}),RVS.F.updateSliderObj({path:s+"behavior.autoResponsive",val:!1}),RVS.F.updateSliderObj({path:s+"behavior.responsiveOffset",val:!1}),RVS.F.updateSliderObj({path:s+"behavior.responsiveChilds",val:!1}),!1),"text"!==a||"headlines"!==t&&"content"!==t||RVS.F.updateSliderObj({path:s+"idle.color.d.v",val:RVS.LIB.QS[t+"_color"]}),void 0!==i.fs&&RVS.F.updateSliderObj({path:s+"idle.fontSize.d.v",val:i.fs}),void 0!==i.w?RVS.F.updateSliderObj({path:s+"size.width.d.v",val:i.w}):RVS.F.updateSliderObj({path:s+"size.width.d.v",val:"auto"}),void 0!==i.h?RVS.F.updateSliderObj({path:s+"size.height.d.v",val:i.h}):RVS.F.updateSliderObj({path:s+"size.height.d.v",val:"auto"}),void 0!==i.h&&"auto"!==i.h?RVS.F.updateSliderObj({path:s+"size.minHeight.d.v",val:i.h}):RVS.F.updateSliderObj({path:s+"size.minHeight.d.v",val:"0px"}),void 0!==i.w?RVS.F.updateSliderObj({path:s+"size.minWidth.d.v",val:i.w}):RVS.F.updateSliderObj({path:s+"size.minWidth.d.v",val:"none"}),void 0!==i.lh&&RVS.F.updateSliderObj({path:s+"idle.lineHeight.d.v",val:i.lh}),void 0!==i.ls&&RVS.F.updateSliderObj({path:s+"idle.letterSpacing.d.v",val:i.ls}),void 0!==i.fw&&RVS.F.updateSliderObj({path:s+"idle.fontWeight.d.v",val:i.fw}),void 0!==i.fst&&RVS.F.updateSliderObj({path:s+"idle.fontStyle",val:"italic"===i.fst}),void 0!==i.ff&&RVS.F.updateSliderObj({path:s+"idle.fontFamily",val:i.ff}),void 0!==i.ta&&RVS.F.updateSliderObj({path:s+"idle.textAlign.d.v",val:i.ta}),void 0!==i.tt&&RVS.F.updateSliderObj({path:s+"idle.textTransform",val:i.tt}),void 0!==i.pd&&RVS.F.updateSliderObj({path:s+"idle.padding.d.v",val:i.pd}),void 0!==i.bg&&RVS.F.updateSliderObj({path:s+"idle.backgroundColor",val:i.bg}),void 0!==i.br&&RVS.F.updateSliderObj({path:s+"idle.borderRadius.v",val:i.br}),void 0!==i.bc&&RVS.F.updateSliderObj({path:s+"idle.borderColor",val:i.bc}),void 0!==i.bw&&RVS.F.updateSliderObj({path:s+"idle.borderWidth",val:i.bw}),void 0!==i.bs&&RVS.F.updateSliderObj({path:s+"idle.borderStyle.d.v",val:i.bs}),void 0!==i.bxc?(RVS.F.updateSliderObj({path:s+"idle.boxShadow.inuse",val:!0}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.hoffset.d.v",val:i.bxh}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.voffset.d.v",val:i.bxv}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.blur.d.v",val:i.bxb}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.spread.d.v",val:i.bxs}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.color",val:i.bxc})):RVS.F.updateSliderObj({path:s+"idle.boxShadow.inuse",val:!1}),void 0!==i.color&&RVS.F.updateSliderObj({path:s+"idle.color.d.v",val:i.color}),void 0!==i.cls?RVS.F.updateSliderObj({path:s+"runtime.internalClass",val:i.cls}):RVS.F.updateSliderObj({path:s+"runtime.internalClass",val:""}),void 0!==i.action){var n=void 0!==RVS.L[RVS.selLayers[e]]&&void 0!==RVS.L[RVS.selLayers[e]].actions&&void 0!==RVS.L[RVS.selLayers[e]].actions.action?RVS.L[RVS.selLayers[e]].actions.action:void 0;if(void 0!==n){var l,d=!1;for(l in n)!0!==d&&(d="toggle_class"===n[l].action&&""+n[l].layer_target==""+RVS.selLayers[e]&&"open"===n[l].toggle_class);i.action.layer_target=""+RVS.selLayers[e],!1===d&&n.push(i.action)}}null!=i.content&&"button"===a&&(RVS.F.updateSliderObj({path:s+"text",val:i.content}),RVS.H[RVS.selLayers[e]].c.html(i.content)),void 0!==i.hs?(RVS.F.updateSliderObj({path:s+"hover.usehover",val:!0}),RVS.F.updateSliderObj({path:s+"hover.speed",val:i.hs}),void 0!==i.hc&&RVS.F.updateSliderObj({path:s+"hover.color",val:i.hc}),void 0!==i.hbg?RVS.F.updateSliderObj({path:s+"hover.backgroundColor",val:i.hbg}):void 0!==i.bg&&RVS.F.updateSliderObj({path:s+"hover.backgroundColor",val:i.bg}),void 0!==i.br&&RVS.F.updateSliderObj({path:s+"hover.borderRadius.v",val:i.br}),void 0!==i.hbc?RVS.F.updateSliderObj({path:s+"hover.borderColor",val:i.hbc}):void 0!==i.bc&&RVS.F.updateSliderObj({path:s+"hover.borderColor",val:i.bc}),void 0!==i.ease&&RVS.F.updateSliderObj({path:s+"hover.ease",val:i.ease}),void 0!==i.hfb&&(RVS.F.updateSliderObj({path:s+"hover.filter.grayscale",val:i.hfg}),RVS.F.updateSliderObj({path:s+"hover.filter.brightness",val:i.hfb}),RVS.F.updateSliderObj({path:s+"hover.filter.blir",val:i.hfbl})),void 0!==i.bw&&RVS.F.updateSliderObj({path:s+"hover.borderWidth",val:i.bw}),void 0!==i.bs&&RVS.F.updateSliderObj({path:s+"hover.borderStyle",val:i.bs})):RVS.F.updateSliderObj({path:s+"hover.usehover",val:!1}),void 0!==i.callback&&void 0!==RVS.F.updateQuickStyleObject&&void 0!==RVS.F.updateQuickStyleObject[i.callback]&&RVS.F.updateQuickStyleObject[i.callback](i,s,e)}break;case"boxshadow":RVS.F.updateSliderObj({path:s+"idle.boxShadow.hoffset.d.v",val:i.box_hoff}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.voffset.d.v",val:i.box_voff}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.blur.d.v",val:i.box_blur}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.spread.d.v",val:i.box_spread}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.color",val:i.box_color}),RVS.F.updateSliderObj({path:s+"idle.boxShadow.inuse",val:!0});break;case"textshadow":RVS.F.updateSliderObj({path:s+"idle.textShadow.hoffset.d.v",val:i.text_hoff}),RVS.F.updateSliderObj({path:s+"idle.textShadow.voffset.d.v",val:i.text_voff}),RVS.F.updateSliderObj({path:s+"idle.textShadow.blur.d.v",val:i.text_blur}),RVS.F.updateSliderObj({path:s+"idle.textShadow.color",val:i.text_color}),RVS.F.updateSliderObj({path:s+"idle.textShadow.inuse",val:!0})}RVS.F.intelligentUpdateValuesOnLayer(RVS.selLayers[e]),o&&RVS.F.setToIntelligentUpdate(!0),!1!==o&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[e]+".behavior.intelligentInherit",val:!0}),RVS.F.drawHTMLLayer({uid:RVS.selLayers[e]})}void 0===RVS.S.qstyleBackupGroup&&RVS.F.closeBackupGroup({id:"quickstyle"}),RVS.F.updateLayerInputFields()}),RVS.DOC.on("click",".quick_style_menu_point",function(){m();var e={val:jQuery("#quick_style_scrollable").scrollTop()},t=e.val+window.qstyle_scroll_targets[this.dataset.ostref].top;tpGS.gsap.to(e,.6,{val:t,onUpdate:function(){jQuery("#quick_style_scrollable").scrollTop(e.val)},ease:"power3.out"}),m()}),RVS.DOC.on("mouseenter",".quick_style_example_content, .forms_quick_style_example_content",function(){var e,t,i;void 0!==this.dataset.hoverspeed&&(void 0===(e=jQuery(this)).data("hoveranim")&&(t=tpGS.gsap.timeline(),i={color:this.dataset.hovercolor,backgroundColor:this.dataset.hoverbgcolor},void 0!==this.dataset.hoverbordercolor&&"undefined"!==this.dataset.hoverbordercolor&&(i.borderColor=this.dataset.hoverbordercolor),void 0!==this.dataset.filterbrightness&&"undefined"!==this.dataset.filterbrightness&&(i.filter="blur("+this.dataset.filterblur+"px) grayscale("+this.dataset.filtergrayscale+"%) brightness("+this.dataset.filterbrightness+")",i["-webkit-filter"]="blur("+this.dataset.filterblur+"px) grayscale("+this.dataset.filtergrayscale+"%) brightness("+this.dataset.filterbrightness+")",tpGS.gsap.set(this,{filter:"blur(0px) grayscale(0%) brightness(100%)","-webkit-filter":"blur(0px) grayscale(0%) brightness(100%)"})),void 0!==this.dataset.ease&&(i.ease=this.dataset.ease),t.add(tpGS.gsap.to(this,this.dataset.hoverspeed/1e3,i)),e.data("hoveranim",t)),e.data("hoveranim").play())}),RVS.DOC.on("mouseleave",".quick_style_example_content, .forms_quick_style_example_content",function(){void 0!==this.dataset.hoverspeed&&jQuery(this).data("hoveranim").reverse()})},RVS.F.openQuickStyle=function(e){if(jQuery("#quick_style_trigger").addClass("selected"),RVS.S.qstyleBackupGroup=null==e||void 0===e.bacupGroupOpen?void 0:e.bacupGroupOpen,RVS.S.qstyle_library_open=!0,RVS.S.qstyleParams=e,window.quickStyleExists)RVS.F.showQuickStyle();else{RVS.F.showWaitAMinute({fadeIn:100,text:"Building Quick Style Library"});var t,i,a={},r=[],s=(RVS.F.buildQuickStyleExtensionMenu=void 0===RVS.F.buildQuickStyleExtensionMenu?{}:RVS.F.buildQuickStyleExtensionMenu,'<div id="quick_style"><div id="quick_style_inner">');for(t in s+='<div id="quick_style_menu">',RVS.LIB.QS)RVS.LIB.QS.hasOwnProperty(t)&&(s+='<div data-ref="#quick_style_dep_'+t+'" data-library="'+t+'" id="quick_style_menu_'+t+'" class="quick_style_menu_point">'+RVS_LANG["qs_"+t]+"</div>",void 0!==RVS.F.buildQuickStyleExtensionMenu[t])&&(s+=RVS.F.buildQuickStyleExtensionMenu[t](n));for(t in s=(s+='<div id="quick_style_close"><i class="material-icons">close</i></div>')+'</div><div id="quick_style_scrollable_wrap"><div id="quick_style_scrollable">',RVS.LIB.QS)if(RVS.LIB.QS.hasOwnProperty(t)){for(var o in s+='<div id="quick_style_dep_'+t+'" class="quick_style_dep_all"><div class="quick_style_dep">'+RVS_LANG["qs_"+t]+("headlines"===t||"content"===t?'<div data-cont="'+t+'" class="quick_colorchange_dark"></div><div data-cont="'+t+'" class="quick_colorchange_light selected"></div>':"")+"</div>",RVS.LIB.QS[t])if(RVS.LIB.QS[t].hasOwnProperty(o)){var n=jQuery.extend(!0,{},RVS.LIB.QS[t][o]),l=!1;switch(n=V(n),t){case"headlines":case"content":var d=void 0!==n.bc&&void 0!==n.bw&&void 0!==n.bs?"border-style:"+n.bs+";border-width:"+n.bw[0]+" "+n.bw[1]+" "+n.bw[2]+" "+n.bw[3]+";border-color:"+n.bc+";":"";s+='<div class="quick_style_example_wrap"><div class="quick_style_example" data-layertype="text" data-qstyletype="'+t+'" data-qstyleindex="'+o+'"><div class="qsec_info">'+n.ff+","+n.fs+"px,"+n.fw+'</div><div class="quick_style_example_content" style="'+("headlines"===t?"white-space:nowrap;":"")+d+(void 0!==n.tt?"text-transform:"+n.tt+";":"")+"font-style:"+n.fst+"; font-family:"+n.ff+";font-size:"+n.fs+"px; font-weight:"+n.fw+";line-height:"+n.lh+"px;letter-spacing:"+n.ls+'px">'+(void 0!==n.content?n.content:RVS.LIB.QS_CONT[t])+"</div></div></div>",l=!0;break;case"buttons":var d=void 0!==n.bc&&void 0!==n.bw&&void 0!==n.bs?"border-style:"+n.bs+";border-width:"+n.bw[0]+" "+n.bw[1]+" "+n.bw[2]+" "+n.bw[3]+";border-color:"+n.bc+";":"",S=void 0!==n.hs?'data-ease="'+n.ease+'" data-filterbrightness="'+n.hfb+'" data-filtergrayscale="'+n.hfg+'" data-filterblur="'+n.hfbl+'" data-hoverbordercolor="'+n.hbc+'" data-hovercolor="'+n.hc+'" data-hoverspeed="'+n.hs+'" data-hoverbgcolor="'+n.hbg+'" ':"",c=void 0!==n.w?"width:"+n.w+";":"";c=void 0!==n.h?c+"height:"+n.h+";":c,s+='<div class="quick_style_example_wrap '+(void 0!==n.showsize?"qsew_"+n.showsize:"")+'"><div class="quick_style_example" data-layertype="button" data-qstyletype="'+t+'" data-qstyleindex="'+o+'"><div class="quick_style_example_content '+n.cls+'" '+S+' style="'+d+c+(void 0!==n.tt?"text-transform:"+n.tt+";":"")+(void 0!==n.ta?"text-align:"+n.ta+";":"")+(void 0!==n.bxc?"box-shadow:"+n.bxh+" "+n.bxv+" "+n.bxb+" "+n.bxs+" "+n.bxc+";":"")+"border-radius:"+n.br[0]+" "+n.br[1]+" "+n.br[2]+" "+n.br[3]+";padding:"+n.pd[0]+" "+n.pd[1]+" "+n.pd[2]+" "+n.pd[3]+";background:"+window.RSColor.get(n.bg)+";font-style:"+n.fst+"; font-family:"+n.ff+";font-size:"+n.fs+"px; color:"+n.color+";font-weight:"+n.fw+";line-height:"+n.lh+"px;letter-spacing:"+n.ls+'px">'+n.content+"</div></div></div>",l=!0;break;case"shadows":void 0!==n.box_hoff?s+='<div class="quick_style_example_wrap '+(void 0!==n.showsize?"qsew_"+n.showsize:"")+'"><div class="quick_style_example qse_boxshadow" data-layertype="boxshadow" data-qstyletype="'+t+'" data-qstyleindex="'+o+'" style="box-shadow:'+n.box_hoff+" "+n.box_voff+" "+n.box_blur+" "+n.box_spread+" "+n.box_color+'"></div></div>':s+='<div class="quick_style_example_wrap '+(void 0!==n.showsize?"qsew_"+n.showsize:"")+'"><div class="quick_style_example qse_textshadow" data-layertype="textshadow" data-qstyletype="'+t+'" data-qstyleindex="'+o+'" style="text-shadow:'+n.text_hoff+" "+n.text_voff+" "+n.text_blur+" "+n.text_color+'">Shadow</div></div>';break;default:RVS.F.buildQuickStyleExtension=void 0===RVS.F.buildQuickStyleExtension?{}:RVS.F.buildQuickStyleExtension,void 0!==RVS.F.buildQuickStyleExtension[t]&&(s+=RVS.F.buildQuickStyleExtension[t](o,n),l=!0)}if(l){var p,u=n.ff.replace(/\ /g,"_");for(p in a[u]=void 0===a[u]?{family:u,weights:[],italic:!1}:a[u],a[u].font=n.ff,a[u].italic=!0===a[u].italic||n.fst,RVS.V.sizes)RVS.V.sizes.hasOwnProperty(p)&&-1===a[u].weights.toString().indexOf(n.fw)&&a[u].weights.push(n.fw)}}s+="</div>"}for(t in s+="</div></div></div></div>",window.qstyle_container=jQuery(s),window.qstyle_scroll_targets=[],a)a.hasOwnProperty(t)&&void 0!==(i=RVS.F.loadSingleFont(a[t]))&&r.push(i);RVS.F.showWaitAMinute({fadeOut:500,text:"Building Quick Style Library"}),RVS.F.do_google_font_load(r,void 0,"showQuickStyle"),RVS.C.theEditor.append(window.qstyle_container);var R=0;jQuery(".quick_style_menu_point").each(function(){void 0!==this.dataset.ref&&(window.qstyle_scroll_targets.push({enable:!0,library:this.dataset.library,obj:jQuery(this.dataset.ref),top:jQuery(this.dataset.ref).offset().top,height:jQuery(this.dataset.ref).height(),menu:jQuery(this),menu_js:this}),this.dataset.ostref=R,R++)}),jQuery("#quick_style_scrollable").RSScroll({wheelPropagation:!1}),jQuery("#quick_style_scrollable").on("scroll",m),window.quickStyleExists=!0}},RVS.F.showQuickStyle=function(){RVS.F.updateAvailableLayerTypes(),tpGS.gsap.to("#quick_style",.4,{width:320,display:"block",ease:"power3.inOut"}),tpGS.gsap.to("#quick_style_inner",.4,{left:0,ease:"power3.inOut"}),setTimeout(m,400)},RVS.F.updateAvailableLayerTypes=function(){if(RVS.S.qstyle_library_open){var e,t=!(window.quickstylefilter=[]),i=!1,a=!1,r=!1,s=!1;if(RVS.F.qstyleParamsListCase=void 0===RVS.F.qstyleParamsListCase?{}:RVS.F.qstyleParamsListCase,void 0!==RVS.S.qstyleParams.list&&Array.isArray(RVS.S.qstyleParams.list)){for(var o in RVS.S.qstyleParams.list)if(RVS.S.qstyleParams.list.hasOwnProperty(o))switch(RVS.S.qstyleParams.list[o]){case"button":t||(window.quickstylefilter.push("buttons"),r=!1===r?"buttons":r,t=!0);break;case"content":a||(window.quickstylefilter.push("content"),r=!1===r?"content":r,a=!0);break;case"headlines":case"text":i||(window.quickstylefilter.push("headlines"),r=!1===r?"headlines":r,i=!0);break;default:void 0!==RVS.F.qstyleParamsListCase[RVS.S.qstyleParams.list[o]]&&-1===window.quickstylefilter.indexOf(RVS.S.qstyleParams.list[o])&&(s=RVS.F.qstyleParamsListCase[RVS.S.qstyleParams.list[o]](RVS.S.qstyleParams.list[o]))}}else for(var o in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(o))if(void 0!==RVS.L[RVS.selLayers[o]].subsubtype&&void 0!==RVS.LIB.QS[RVS.L[RVS.selLayers[o]].subsubtype])RVS.L[RVS.selLayers[o]].subsubtype,RVS.F.qstyleParamsListCase[RVS.L[RVS.selLayers[o]].subsubtype]&&-1==window.quickstylefilter.indexOf(RVS.L[RVS.selLayers[o]].subsubtype)&&(s=RVS.F.qstyleParamsListCase[RVS.L[RVS.selLayers[o]].subsubtype](RVS.L[RVS.selLayers[o]].subsubtype));else switch(RVS.L[RVS.selLayers[o]].type){case"button":t||(window.quickstylefilter.push("buttons"),t=!0);break;case"text":i||(window.quickstylefilter.push("headlines"),window.quickstylefilter.push("content"),a=i=!0,r="headlines")}for(e in 0===window.quickstylefilter.length&&(window.quickstylefilter.push("headlines"),window.quickstylefilter.push("content"),window.quickstylefilter.push("buttons")),s||-1!==jQuery.inArray("shadows",window.quickstylefilter)||window.quickstylefilter.push("shadows"),jQuery(".quick_style_dep_all").hide(),jQuery(".quick_style_menu_point").hide(),window.qstyle_scroll_targets)window.qstyle_scroll_targets.hasOwnProperty(e)&&(0<=jQuery.inArray(window.qstyle_scroll_targets[e].library,window.quickstylefilter)?window.qstyle_scroll_targets[e].enable=!0:window.qstyle_scroll_targets[e].enable=!1);for(e in window.quickstylefilter)window.quickstylefilter.hasOwnProperty(e)&&(jQuery("#quick_style_dep_"+window.quickstylefilter[e]).show(),jQuery("#quick_style_menu_"+window.quickstylefilter[e]).show());!1!==r&&setTimeout(function(){jQuery("#quick_style_menu_"+r).trigger("click")},400)}},RVS.F.closeQuickStyle=function(){void 0!==RVS.S.qstyleBackupGroup&&RVS.F.closeBackupGroup({id:RVS.S.qstyleBackupGroup}),RVS.S.qstyleBackupGroup=void 0,RVS.S.qstyle_library_open=!1,tpGS.gsap.to("#quick_style",.4,{width:0,display:"none",ease:"power3.inOut"}),tpGS.gsap.to("#quick_style_inner",.4,{left:-270,ease:"power3.inOut"}),jQuery("#quick_style_trigger").removeClass("selected")}}(),jQuery(function(){var c,l,d,a,p,S,u,R,V,m,y,f,g,h,v,_,L,w,b,I=50,F=50,D=10;RVS.DOC=void 0===RVS.DOC?jQuery(document):RVS.DOC;var i={editlayer:function(){var e;switch(this.dataset.type){case"content":e=["#gst_layer_1"];break;case"image":e=["#gst_layer_1","#image_layer_media_library_button"];break;case"style":e=["#gst_layer_3"];break;case"advstyle":e=["#gst_layer_6"];break;case"size":e=["#gst_layer_2"];break;case"hover":e=["#gst_layer_9"];break;case"scroll":e=["#gst_layer_8"];break;case"responsive":e=["#gst_layer_13"];break;case"animation":e=["#gst_layer_4"];break;case"actions":e=["#gst_layer_5"]}a=!0,e.unshift("#module_layers_trigger");for(var t=e.length,i=0;i<t;i++)try{jQuery(e[i]).trigger("click")}catch(e){}a=!0},editbg:function(){var e;switch(this.dataset.type){case"content":e=["#gst_slide_1"];break;case"image":e=["#gst_slide_1","#slide_bg_image_btn"];break;case"objectlibrary":e=["#gst_slide_1","#slide_object_library_btn"]}a=!0,e.unshift("#module_slide_trigger");for(var t=e.length,i=0;i<t;i++)try{jQuery(e[i]).trigger("click")}catch(e){}a=!1},duplicatelayer:function(){RVS.DOC.trigger("do_duplicate_layer")},deletelayer:function(){RVS.DOC.trigger("do_delete_layer")},hidelayer:function(){RVS.F.showHideLayers()},locklayer:function(){RVS.F.lockUnlockLayers()},copylayer:function(){var e,t,i;p=!(f=g=!1),S="Paste Layer(s)",RVS.selLayers&&1===RVS.selLayers.length&&(i=RVS.L[c.dataset.uid].type)&&-1===i.search(/column|row|zone/)&&(t=(i=RVS.H[c.dataset.uid]).w_height,e="auto"===(e=i.w_width)?i.w.outerWidth(!0):-1!==e.search("%")?i.w.closest(".layer_grid").width()*(.01*parseInt(e,10)):parseInt(e,10),t="auto"===t?i.w.outerHeight(!0):-1!==t.search("%")?i.w.closest(".layer_grid").height()*(.01*parseInt(t,10)):parseInt(t,10),i=RVS.S.shrink[RVS.screen],f={w:.5*(e*=i),h:.5*(t*=i),keys:Object.keys(RVS.H)}),v=RVS.S.slideId,RVS.DOC.trigger("do_copy_layer")},copylayersettings:function(){g=!1;var e=this.dataset.type,t=this.dataset.title,i=RVS.L[c.dataset.uid];i?(p=-1===e.search("idle")?[e,jQuery.extend(!0,{},i[e]),t,RVS.selLayers[0]]:[e,function(e,t){var i;i="idle"===t?["fontSize","lineHeight","fontWeight","letterSpacing","fontStyle","textDecoration","textTransform","selectable","fontFamily","color","backgroundColor","backgroundImage","backgroundImageId","backgroundPosition","backgroundSize","backgroundRepeat","margin","padding","borderColor","borderStyle","borderWidth","borderRadius"]:["rotationX","rotationY","rotationZ","opacity","boxShadow","textShadow","filter","spikeUse","spikeLeft","spikeLeftWidth","spikeRight","spikeRightWidth","cornerLeft","cornerRight"];for(var a,r=i.length,s={},o=0;o<r;o++)(a=e[i[o]])&&(Array.isArray(a)?a=JSON.parse(JSON.stringify(a)):"object"==typeof a&&(a=jQuery.extend(!0,{},a)),s[i[o]]=a);return s}(i.idle,e),t],S="Paste "+t):console.log("Wrong object path when copying layer style/settings")},copybg:function(){p=!1;var e,t=RVS.SLIDER[RVS.S.slideId].slide,i=this.dataset.title,a=this.dataset.type;switch(a){case"background":delete(e=jQuery.extend(!0,{},t.bg)).mediaFilter,g=[a,e,i];break;case"animation":g=[a,function(e){for(var t,i=["transition","duration","easeIn","easeOut","slots","rotation"],a=i.length,r={},s=0;s<a;s++)r[t=i[s]]=jQuery.extend(!0,{},e[t]);return r}(t.timeline),i];break;case"filter":g=[a,t.bg.mediaFilter,i];break;case"onscroll":g=[a,jQuery.extend(!0,{},t.effects),i];break;case"panzoom":e=jQuery.extend(!0,{},t.panzoom),t=t.bg,e.bg={position:t.position,positionX:t.positionX,positionY:t.positionY},g=[a,e,i]}S="Paste "+i},paste:function(e){if(p){var t;if(p&&!1!==p)if(!0===p){if(RVS.DOC.trigger("do_paste_layer"),f&&v===RVS.S.slideId){for(var i=Object.keys(RVS.H),a=i.length,r=0;r<a;r++)if(-1===f.keys.indexOf(i[r])){t=i[r];break}t&&!function(e,t){var i=RVS.L[t].position,a=i.horizontal[RVS.screen].v,r=i.vertical[RVS.screen].v,s=RVS.H[t].w.closest(".layer_grid"),o=s.offset(),n=Math.round(e.pageX-o.left-f.w),l=Math.round(e.pageY-o.top-f.h),d=n,S=l;switch(a){case"right":d=s.width()-n;break;case"center":d=Math.round(.5*s.width()-f.w)}switch(r){case"bottom":S=s.height()-l;break;case"center":S=Math.round(.5*s.height()-f.h)}var c,p,u,R,V,m=jQuery.extend(!0,{},i.horizontal),y=jQuery.extend(!0,{},i.vertical),g=4,h=RVS.V.sizes.slice().reverse();for(;RVS.screen!==h[0];)h.shift();for(R=0;R<4;R++)m[RVS.V.sizes[R]].e=!1;for(g=h.length,c=g-1,d+="px",S+="px",R=0;R<g;R++)u=h[R],p=R===c,((p=RVS.screen===u||p)||i.x[u].e)&&(i.x[u]={v:d,e:!0,u:"px"}),(p||i.y[u].e)&&(i.y[u]={v:S,e:!0,u:"px"}),pH=jQuery.extend(!0,{},m),pV=jQuery.extend(!0,{},y),p&&(pH[u].e=!0,pV[u].e=!0),i.horizontal[u]=jQuery.extend(!0,{},pH[u]),i.vertical[u]=jQuery.extend(!0,{},pV[u]);h=RVS.V.sizes.slice();for(;RVS.screen!==h[0];)h.shift();h.length&&h.shift();for(g=h.length,R=0;R<g;R++)u=h[R],i.x[u].e=!1,i.y[u].e=!1,i.horizontal[u]=jQuery.extend(!0,{},m[u]),i.vertical[u]=jQuery.extend(!0,{},y[u]);for(V in RVS.L)RVS.L.hasOwnProperty(V)&&"zone"!==RVS.L[V].type&&RVS.F.drawHTMLLayer({uid:V});RVS.S.clickedLayer=t}(e,t)}}else{var e=p[0],s=p[1],o=p[3];if(RVS.F.openBackupGroup({id:"pasteLayerSettings",txt:"Paste Layer "+p[2],icon:"file_download"}),-1===e.search("idle"))"timeline"===e&&(RVS.TL[RVS.S.slideId].layers[RVS.selLayers[0]]=jQuery.extend(!0,{},RVS.TL[RVS.S.slideId].layers[o])),RVS.F.updateLayerObj({path:e,val:s}),"timeline"===e&&(RVS.F.reDrawListElements(),jQuery(c).trigger("click"));else for(var n in s)s.hasOwnProperty(n)&&RVS.F.updateLayerObj({path:"idle."+n,val:s[n]});RVS.F.updateLayerInputFields(),RVS.F.closeBackupGroup({id:"pasteLayerSettings"}),RVS.S.clickedLayer=null}else console.log("pasting from layer copy failed")}else if(g&&!1!==g){var l,o=g[0],d=g[1],S=RVS.SLIDER[RVS.S.slideId].slide;switch(RVS.F.openBackupGroup({id:"pasteBgSettings",txt:"Paste BG "+g[2],icon:"file_download"}),o){case"background":jQuery.extend(!0,S.bg,d),l="#form_slidebg_source";break;case"animation":jQuery.extend(!0,S.timeline,d),l="#form_slide_transition";break;case"filter":S.bg.mediaFilter=d,l="#form_slidebg_filters";break;case"onscroll":jQuery.extend(!0,S.effects,d),l="#form_slide_onscroll";break;case"panzoom":jQuery.extend(!0,S.panzoom,d),l="#form_slidebg_kenburn"}RVS.F.updateEasyInputs({container:l,path:RVS.S.slideId+".slide.",trigger:"init"}),"panzoom"===o?function(e,t){e.position=t.position,e.positionX=t.positionX,e.positionY=t.positionY,RVS.F.updateEasyInputs({container:jQuery("#slide_bg_settings_wrapper"),path:RVS.S.slideId+".slide.",trigger:"init"}),jQuery("#sl_pz_set").change()}(S.bg,d.bg):"animation"===o&&RVS.F.updateSlideAnimation(),RVS.F.closeBackupGroup({id:"pasteBgSettings"}),RVS.DOC.trigger("updateslidebasic")}else console.log("pasting from bg copy failed")},disable:function(){w.remove(),y.remove(),b.off(".rcmenu"),jQuery(document.body).off(".rcmenu"),jQuery("#main_hor_toolbar, #the_right_toolbar, #timeline_settings").off(".rcmenu"),u=_=l=d=R=L=c=p=g=h=w=y=b=void 0}};function x(e){var t=this.dataset.rcevent;return t&&i[t]&&i[this.dataset.rcevent].call(this,e),!1}function k(){m&&(m=!1,y.hide(),w.hide())}function C(e,t){return(t.match(/(^|\s)rc-\align-\S+/g)||[]).join(" ")}function O(e){!m||a||"rc_layer_menu"===e.target.id||jQuery(e.target).closest("#rc_layer_menu").length||k()}function t(e,t){r.call(t)}function r(){var e,t,i,a,r,s,o,n;V||(y=jQuery('<div class="tool_dd_wrap rc-menu-wrap" id="rc_layer_menu"><div class="toolbar_dd_subdrop_wrap"><div class="rc-menu-item rc-menu-single"><i class="material-icons">edit</i>Edit</div><div class="toolbar_dd_subdrop"><div class="rc-menu-item rc-menu-layer-edit" data-type="content" data-rcevent="editlayer"><i class="material-icons">edit</i>Content</div><div class="rc-menu-item rc-menu-layer-edit" data-type="image" data-rcevent="editlayer"><i class="material-icons">edit</i>Image</div><div class="rc-menu-item" data-type="style" data-rcevent="editlayer"><i class="material-icons">color_lens</i>Base Style</div><div class="rc-menu-item" data-type="advstyle" data-rcevent="editlayer"><i class="material-icons">invert_colors</i>Adv. Style</div><div class="rc-menu-item" data-type="hover" data-rcevent="editlayer"><i class="material-icons">mouse</i>Hover Style</div><div class="rc-menu-item" data-type="sizepos" data-rcevent="editlayer"><i class="material-icons">open_with</i>Size & Position</div><div class="rc-menu-item" data-type="responsive" data-rcevent="editlayer"><i class="material-icons">photo_size_select_large</i>Responsivity</div><div class="rc-menu-item" data-type="animation" data-rcevent="editlayer"><i class="material-icons">play_arrow</i>Animation</div><div class="rc-menu-item" data-type="scroll" data-rcevent="editlayer"><i class="material-icons">system_update_alt</i>On Scroll</div><div class="rc-menu-item" data-type="actions" data-rcevent="editlayer"><i class="material-icons">touch_app</i>Actions</div></div></div><div class="toolbar_dd_subdrop_wrap"><div class="rc-menu-item" data-type="layer" data-rcevent="copylayer"><i class="material-icons" data-title="Layer(s)">content_paste</i>Copy</div><div class="toolbar_dd_subdrop"><div class="rc-menu-item" data-type="layer" data-rcevent="copylayer"><i class="material-icons" data-title="Layers(s)">layers</i>Selected Layers</div><div class="rc-menu-item rc-menu-single" data-type="idle" data-rcevent="copylayersettings" data-title="Base Style"><i class="material-icons">color_lens</i>Base Style</div><div class="rc-menu-item rc-menu-single" data-type="idleadv" data-rcevent="copylayersettings" data-title="Adv. Style"><i class="material-icons">invert_colors</i>Adv. Style</div><div class="rc-menu-item rc-menu-single" data-type="hover" data-rcevent="copylayersettings" data-title="Hover Style"><i class="material-icons">mouse</i>Hover Style</div><div class="rc-menu-item rc-menu-single" data-type="size" data-rcevent="copylayersettings" data-title="Size"><i class="material-icons">aspect_ratio</i>Size</div><div class="rc-menu-item rc-menu-single" data-type="position" data-rcevent="copylayersettings" data-title="Position"><i class="material-icons">open_with</i>Position</div><div class="rc-menu-item rc-menu-single" data-type="behavior" data-rcevent="copylayersettings" data-title="Responsivity"><i class="material-icons">photo_size_select_large</i>Responsivity</div><div class="rc-menu-item rc-menu-single" data-type="timeline" data-rcevent="copylayersettings" data-title="Animation"><i class="material-icons">play_arrow</i>Animation</div><div class="rc-menu-item rc-menu-single" data-type="effects" data-rcevent="copylayersettings" data-title="On Scroll"><i class="material-icons">system_update_alt</i>On Scroll</div><div class="rc-menu-item rc-menu-single" data-type="actions" data-rcevent="copylayersettings" data-title="Actions"><i class="material-icons">touch_app</i>Actions</div></div></div><div id="rc_paste_layer" class="rc-menu-item" data-rcevent="paste"><i class="material-icons">file_download</i><span class="rc-menu-paste">Paste</span></div><div class="rc-menu-item" data-rcevent="duplicatelayer"><i class="material-icons">content_copy</i>Duplicate</div><div class="rc-menu-item" data-rcevent="deletelayer"><i class="material-icons">delete</i>Delete</div><div class="rc-menu-item" data-rcevent="hidelayer"><i class="material-icons">visibility</i>Show/Hide</div><div class="rc-menu-item" data-rcevent="locklayer"><i class="material-icons">lock_outline</i>Lock/Unlock</div><div class="rc-menu-item" data-rcevent="disable"><i class="material-icons">toggle_off</i>Disable Menu</div></div>').on("mouseleave",k),w=jQuery('<div class="tool_dd_wrap rc-menu-wrap" id="rc_bg_menu"><div class="rc-menu-item rc-menu-bg-edit" data-type="content" data-rcevent="editbg"><i class="material-icons">edit</i>Edit</div><div class="toolbar_dd_subdrop_wrap rc-menu-bg-edit" data-type="image"><div class="rc-menu-item"><i class="material-icons">edit</i>Edit</div><div class="toolbar_dd_subdrop"><div class="rc-menu-item" data-type="image" data-rcevent="editbg" data-title="Background"><i class="material-icons">style</i>Media Library</div><div class="rc-menu-item" data-type="objectlibrary" data-rcevent="editbg" data-title="Animation"><i class="material-icons">camera_enhance</i>Object Library</div></div></div><div class="toolbar_dd_subdrop_wrap"><div class="rc-menu-item"><i class="material-icons">content_paste</i>Copy</div><div class="toolbar_dd_subdrop"><div class="rc-menu-item" data-type="background" data-rcevent="copybg" data-title="Background"><i class="material-icons">color_lens</i>Background</div><div class="rc-menu-item" data-type="animation" data-rcevent="copybg" data-title="Animation"><i class="material-icons">invert_colors</i>Animation</div><div class="rc-menu-item" data-type="filter" data-rcevent="copybg" data-title="Filter"><i class="material-icons">blur_on</i>Filter</div><div class="rc-menu-item" data-type="onscroll" data-rcevent="copybg" data-title="On Scroll"><i class="material-icons">system_update_alt</i>On Scroll</div><div id="rc_menu_panzoom" class="rc-menu-item" data-type="panzoom" data-rcevent="copybg" data-title="Ken Burns"><i class="material-icons">leak_add</i>Ken Burns</div></div></div><div id="rc_paste_bg" class="rc-menu-item" data-rcevent="paste"><i class="material-icons">file_download</i><span class="rc-menu-paste">Paste</span></div><div class="rc-menu-item" data-rcevent="disable"><i class="material-icons">toggle_off</i>Disable Menu</div></div>').on("mouseleave",k),u=y.find("#rc_paste_layer"),_=w.find("#rc_paste_bg"),a=jQuery(document.body).on("click.rcmenu",".rc-menu-item:not(.rc-menu-title)",x).on("click.rcmenu",O),jQuery("#main_hor_toolbar, #the_right_toolbar, #timeline_settings").on("mouseover.rcmenu",k),a.append(y).append(w),l=jQuery(".rc-menu-single"),d=l.parents(".toolbar_dd_subdrop_wrap"),R=jQuery(".rc-menu-paste"),L=jQuery("#rc_menu_panzoom"),b=RVS.WIN.on("resize.rcmenu",k),V=!0),jQuery(this).hasClass("_lc_")?(w.hide(),function(){var e=this.className.split("_lc_type_");e=-1!==(e=e[1].split(" ")[0]).search(/text|button|video|audio/)?"content":"image"===e&&"image",jQuery(".rc-menu-layer-edit").hide(),e&&jQuery('.rc-menu-layer-edit[data-type="'+e+'"').show(),p?(u.removeClass("disabled"),R.text(S)):(u.addClass("disabled"),R.text("Paste"))}.call(this),e=y.removeClass(C),t=RVS.selLayers&&1===RVS.selLayers.length?"removeClass":"addClass",l[t]("disabled"),d[t]("disabled")):(y.hide(),jQuery(".rc-menu-bg-edit").hide(),(a="image"===RVS.SLIDER[RVS.S.slideId].slide.bg.type?"image":"content")&&jQuery('.rc-menu-bg-edit[data-type="'+a+'"]').show(),!0===p||g?(_.removeClass("disabled"),R.text(S)):(_.addClass("disabled"),R.text("Paste")),e=w.removeClass(C),i=RVS.SLIDER[RVS.S.slideId].slide.bg.type,L[t="image"===i||"external"===i?"show":"hide"]()),h.pageX<b.width()-e.width()-I?o=h.pageX+D:(o=h.pageX-e.width()-D,r="rc-align-right"),h.pageY<b.height()-e.height()-F?n=h.pageY+D:(n=h.pageY-e.height()-D,s="rc-align-bottom"),r&&e.addClass(r),s&&e.addClass(s),e.css({left:o,top:n}).show(),h=!(m=!0)}jQuery(document.body).on("contextmenu.rcmenu",".layer_grid, ._lc_",function(e){return h||(c=this,h=e,(e=jQuery(this)).hasClass("_lc_")&&!e.hasClass("selected")?(RVS.DOC.one("layerselectioncomplete.rcmenu",t),e.trigger("click")):r.call(this)),!1})}),function(){var n,l,s='<div class="the_layers_in_slide" id="the_layers_in_slide_###">';function d(e){var t=jQuery("#slide_list_element_"+e.id);e.openclose?t.hasClass("opened_slidetab")?t.removeClass("opened_slidetab"):(jQuery(".slide_list_element.sortable_slide_list_element").removeClass("opened_slidetab"),t.addClass("opened_slidetab"),RVS.S.slideId!==e.id&&RVS.F.setSlideFocus({slideid:e.id})):RVS.S.slideId!==e.id&&RVS.F.setSlideFocus({slideid:e.id}),"mode__slidelayout"!==RVS.S.vWmode&&RVS.F.mainMode({mode:"slidelayout",set:!1}),RVS.F.showHideLayerEditor({mode:"slidelayout"}),setTimeout(function(){RVS.DOC.trigger("sliderSizeChanged"),RVS.DOC.trigger("device_area_availibity")},500)}function S(e){return'<div class="slide_anim_alternates"><div class="remove_altslide basic_action_button leftbutton onlyicon" data-index="'+e+'"><i class="material-icons">delete</i></div><div class="slide_alt_slide"><label_a>'+(parseInt(e)+2)+"."+RVS_LANG.transition+'</label_a><select class="slideinput tos2 searchbox easyinit slideAnimSelect" data-theme="wideopentos2" data-r="slideChange.alt.'+e+'"></select></div></div>'}function c(e){!1!==n.hovered&&!0!==e.force||(tpGS.gsap.set(n.done,{width:e.left}),e.auto&&tpGS.gsap.set(n.pin,{left:e.left}))}function p(e){e=void 0===e?{id:RVS.S.slideId,target:["#admin_purpose_thumbnail, #slide_list_element_"+RVS.S.slideId+" .sle_thumb"],default:!0}:e;var t,i=RVS.SLIDER[e.id].slide.thumb.customAdminThumbSrc,a=RVS.SLIDER[e.id].slide.thumb.customThumbSrc;null===i||null==i||void 0===i||i.length<3?(""===(t=RVS.F.getSlideBGDrawObj(e)).backgroundImage&&"transparent"===t.backgroundColor&&(t.backgroundImage="url("+RVS.ENV.plugin_url+"admin/assets/images/trans_tile.png)",t.backgroundSize="16px",t["background-size"]="16px",t.backgroundRepeat="repeat"),void 0!==e.target&&void 0!==e.target[0]&&tpGS.gsap.set(e.target,t)):tpGS.gsap.set(e.target,{"background-size":"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundImage:"url("+i+")"}),e.default&&(void 0===a||a.length<3||"/"===a[a.length-1]?tpGS.gsap.set(["#navigation_purpose_thumbnail","#thumbs_"+e.id,"#tabs_"+e.id,"#bullets_"+e.id,"#arrow_"+e.id],RVS.F.getSlideBGDrawObj()):tpGS.gsap.set(["#navigation_purpose_thumbnail","#thumbs_"+e.id,"#tabs_"+e.id,"#bullets_"+e.id,"#arrow_"+e.id],{"background-size":"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundImage:"url("+a+")"}))}function u(){var e,t,i={},a=1;for(e in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(e)&&(i[RVS.SLIDER.slideIDs[e]]=a,!RVS.F.isNumeric(RVS.SLIDER.slideIDs[e])&&-1!=RVS.SLIDER.slideIDs[e].indexOf("static")||void 0===RVS.SLIDER[RVS.SLIDER.slideIDs[e]]||void 0===RVS.SLIDER[RVS.SLIDER.slideIDs[e]].slide||void 0===RVS.SLIDER[RVS.SLIDER.slideIDs[e]].slide.child||null!=RVS.SLIDER[RVS.SLIDER.slideIDs[e]].slide.child.parentId&&""!=RVS.SLIDER[RVS.SLIDER.slideIDs[e]].slide.child.parentId||a++);for(e in i)i.hasOwnProperty(e)&&null!=(t=document.getElementById("slide_list_element_title_index_"+e))&&(t.innerHTML="#"+i[e]+" ")}function R(e){return e="object"!=typeof e||Array.isArray(e)||(void 0===e[0]||"string"!=typeof e[0]&&"number"!=typeof e[0])&&(void 0===e[1]||"string"!=typeof e[1]&&"number"!=typeof e[1])?e:Object.values(e)}function V(e){return e=void 0===e?["default"]:e,Array.isArray(e)&&"object"!=typeof e[0]?e:"object"==typeof e[0]?Object.values(e[0]):[e]}function m(e,t,i,a){i=RVS.F.createPresets({modern:!0,icon:e.icon,eclass:e.eclass,groupid:i,groupclass:"slide_trans_templates",maingrpclass:"slide_trans_mains",title:t,customevt:"slide_ajax_calls",groups:e,ref:a,favoriteAjax:"slide_transitions",favoriteList:RVS.LIB.SLTR_FAVORIT,onclick:function(e,t,i,a,r,s){o("true"==t||1==t?{preset:RVS.LIB.SLTR_CUSTOM[e.replace("custom_","")].preset,customkey:e}:{key:e,main:i,sub:a}),RVS.DOC.trigger("showhidetransitions"),RVS.F.updateSlideFrames(),RVS.F.udpateSelectedSlideAnim(),RVS.F.updateSlideAnimationView()}});RVS.S.ATI.append(i.main),RVS.S.ATIR.append(i.inner)}function o(e){e=_(e);RVS.F.openBackupGroup({id:"slide_transition",txt:"Slide Transition Change",icon:"calendar_view_day"}),RVS.F.backup({path:RVS.S.slideId+".slide.slideChange",val:e,old:jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId].slide.slideChange),backupType:"object",mode:"slidetransition",callBack:function(){RVS.F.updateEasyInputs({container:jQuery("#form_slide_transition"),path:RVS.S.slideId+".slide.",trigger:"init"})}}),RVS.SLIDER[RVS.S.slideId].slide.slideChange=jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId].slide.slideChange,e),RVS.F.closeBackupGroup({id:"slide_transition"}),RVS.F.updateEasyInputs({container:jQuery("#form_slide_transition"),path:RVS.S.slideId+".slide.",trigger:"init"}),RVS.F.redrawSlideBG()}function y(e,t){RVS.C.slide.find(".slots_wrapper").attr("class","slots_wrapper "+t)}function g(e,t){"slide_bg_color"===e&&RVS.F.redrawSlideBG({liveColorChange:!0,backgroundColor:t})}function h(e,t,i,a,r,s){var o,n=!1;if(void 0!==t?window.lastColorEditjObj=jQuery(t):(void 0!==window.lastColorEditjObj&&(i=window.RSColor.get(window.lastColorEditjObj.val())),n=!0),void 0!==i&&(g(window.lastColorEditjObj[0].name,i),s)&&!0!==n)for(var l in s.ref)"slide"===s.ref[l].type&&s.ref[l].slide===RVS.S.slideId&&g(s.ref[l].inpname,i),"slide"===s.ref[l].type&&r&&(RVS.F.updateSliderObj({path:s.ref[l].r,val:i}),s.ref[l].slide===RVS.S.slideId?0<(o=jQuery("input[name="+s.ref[l].inpname+"]")).length&&(o[0].value=i,o.rsColorPicker("refresh")):RVS.F.slideinWork(s.ref[l].slide))}function f(e){RVS.SLIDER[RVS.S.slideId].slide.panzoom.set?(jQuery("#slide_bg_settings_wrapper").appendTo(jQuery("#ken_burn_bg_setting_on")),jQuery("#internal_kenburn_settings").hide(),jQuery("#kenburnissue").hide()):(jQuery("#slide_bg_settings_wrapper").appendTo(jQuery("#ken_burn_bg_setting_off")),RVS.SBGS[RVS.S.slideId].n.canvas.style.filter="none",void 0!==RVS.TL[RVS.S.slideId]&&null!=RVS.TL[RVS.S.slideId].panzoom&&(RVS.TL[RVS.S.slideId].panzoom.pause().kill(),RVS.TL[RVS.S.slideId].panzoom=void 0,RVS.SBGS[RVS.S.slideId].n.panzoom=void 0)),!0!==e&&RVS.F.redrawSlideBG()}function v(){var e,t,i,a;"image"!==RVS.SLIDER[RVS.S.slideId].slide.bg.type&&"external"!==RVS.SLIDER[RVS.S.slideId].slide.bg.type&&(RVS.SLIDER[RVS.S.slideId].slide.panzoom.set=!1),RVS.SLIDER[RVS.S.slideId].slide.panzoom.set?"image"===RVS.SBGS[RVS.S.slideId].n.type&&"loaded"!==RVS.SBGS[RVS.S.slideId].n.loadobj.progress||"loaded"!==RVS.SBGS[RVS.S.slideId].c.loadobj.progress||(i=!1,void(t=e=0)!==RVS.TL[RVS.S.slideId].panzoom&&(t=RVS.TL[RVS.S.slideId].panzoom.time(),e=RVS.TL[RVS.S.slideId].panzoom.progress(),i=RVS.TL[RVS.S.slideId].panzoom.isActive(),RVS.TL[RVS.S.slideId].panzoom.kill()),RVS.SBGS[RVS.S.slideId].n.panzoom=!0,RVS.SBGS[RVS.S.slideId].n.panvalues=(a=RVS.SLIDER[RVS.S.slideId].slide.panzoom,{duration:parseInt(a.duration)/1e3,ease:a.ease,scalestart:parseInt(a.fitStart)/100,scaleend:parseInt(a.fitEnd)/100,rotatestart:parseFloat(a.rotateStart),rotateend:parseFloat(a.rotateEnd),blurstart:a.blurStart,blurend:a.blurEnd,offsetstart:[a.xStart,a.yStart],offsetend:[a.xEnd,a.yEnd]}),RVS._R.startPanZoom(RVS.SBGS[RVS.S.slideId].n,void 0,.01,RVS.SBGS[RVS.S.slideId].n.skeyindex,"prepare"),RVS.TL[RVS.S.slideId].panzoom.render(t,!0,!0),n.containerWidth=void 0===n.containerWidth?n.container.width():n.containerWidth,c({left:e*(n.containerWidth-n.pinWidth),auto:!0}),RVS.TL[RVS.S.slideId].panzoom.eventCallback("onUpdate",function(){n.containerWidth=void 0===n.containerWidth?n.container.width():n.containerWidth,c({left:RVS.TL[RVS.S.slideId].panzoom.progress()*(n.containerWidth-n.pinWidth),auto:!0})}),RVS.TL[RVS.S.slideId].panzoom.eventCallback("onComplete",function(){RVS.F.changeSwitchState({el:jQuery("#kenburn_simulator")[0],state:"play"}),RVS.TL[RVS.S.slideId].panzoom.pause()}),i&&RVS.TL[RVS.S.slideId].panzoom.play()):delete RVS.SBGS[RVS.S.slideId].n.panzoom}function _(e){var t=void 0!==e.preset?jQuery.extend(!0,RVS._R.getSlideAnim_EmptyObject(),e.preset):void 0!==e.key&&void 0!==RVS._R.getAnimObjectByKey(e.key,RVS.LIB.SLTR)?jQuery.extend(!0,{},RVS._R.getSlideAnim_EmptyObject(),RVS._R.getAnimObjectByKey(e.key,RVS.LIB.SLTR)):RVS._R.getSlideAnim_EmptyObject();return void 0!==e.slot&&(t.in.col=t.in.row=e.slot),t.speed=Math.round(t.speed),t.preset=void 0!==e.key?e.key:void 0!==e.customkey?e.customkey:"custom",t}function a(e,t){return null==e?t:e}s+='\t\t<div class="resizeMainLayerListWrap" id="resizeMainLayerListWrap_###">\t\t\t<div class="mainLayerListWrap" id="mainLayerListWrap_###">\t\t\t</div>\t\t</div>\t</div>',RVS.LIB=void 0===RVS.LIB?RVS.LIB={}:RVS.LIB,RVS.F.initSlideBuilder=function(){l=jQuery("#slide_thumb_repeater"),RVS.DOC.on("mouseenter",".slide_list_element",function(){l[0].innerHTML="",RVS.SLIDER.settings.general.useWPML?jQuery("#slide_thumb_repeater").append(jQuery(this).find(".sle_thumb").clone()):jQuery("#slide_thumb_repeater").append(jQuery(this).find(".sle_thumb").first().clone()),l.show()}),RVS.DOC.on("mouseleave",".slide_list_element",function(){l[0].innerHTML=""}),RVS.LIB.SLTR_CUSTOM=void 0===RVS.LIB.SLTR_CUSTOM?{}:RVS.LIB.SLTR_CUSTOM;var e,t,i={};for(e in RVS.S.ATI=jQuery("#active_transitions_innerwrap"),RVS.S.ATIR=jQuery("#active_transitions_innerwrap_results"),RVS.JHOOKS.extendSlideAnimationList)RVS.JHOOKS.extendSlideAnimationList.hasOwnProperty(e)&&RVS.JHOOKS.extendSlideAnimationList[e]();for(t in RVS.LIB.SLTR)if(RVS.LIB.SLTR.hasOwnProperty(t))for(var a in i[t]=void 0===i[t]?{}:i[t],RVS.LIB.SLTR[t])if(RVS.LIB.SLTR[t].hasOwnProperty(a))if("noSubLevel"===a)i[t].noSubLevel=RVS.LIB.SLTR[t].noSubLevel;else if("icon"==a)i[t].icon=RVS.LIB.SLTR[t].icon;else if("eclass"==a)i[t].eclass=RVS.LIB.SLTR[t].eclass;else if(RVS.LIB.SLTR[t].noSubLevel)i[t][t]=void 0===i[t][t]?{title:void 0===RVS_LANG["sltr_"+t]?t:RVS_LANG["sltr_"+t],elements:{}}:i[t][t],i[t][t].elements[a]={title:RVS.LIB.SLTR[t][a].title,grp:a,main:t},void 0!==RVS.LIB.SLTR[t][a].rndgrp&&(i[t][t].elements[a].rndgrp=RVS.LIB.SLTR[t][a].rndgrp),void 0!==RVS.LIB.SLTR[t][a].rndmain&&(i[t][t].elements[a].rndmain=RVS.LIB.SLTR[t][a].rndmain);else for(var r in i[t][a]=void 0===i[t][a]?{title:void 0===RVS_LANG["sltr_"+a]?a:RVS_LANG["sltr_"+a],elements:{}}:i[t][a],RVS.LIB.SLTR[t][a])"icon"!==r&&RVS.LIB.SLTR[t][a].hasOwnProperty(r)&&(i[t][a].elements[r]={title:RVS.LIB.SLTR[t][a][r].title,grp:a,main:t});var s=0;for(t in i)i.hasOwnProperty(t)&&m(i[t],void 0===RVS_LANG["sltr_"+t]?t:RVS_LANG["sltr_"+t],"slide_trans_templates"+s++,t);m({icon:"tune",custom:{title:RVS_LANG.customtransitionpresets,elements:RVS.LIB.SLTR_CUSTOM,custom:!0}},RVS_LANG.customtemplates,"slide_trans_templates_custom","custom");var o=jQuery(".transgroup.selected").data("group");jQuery(".inner_transitions").hide(),jQuery(".inner_transitions."+o).show(),RVS.F.udpateSelectedSlideAnim(),RVS.DOC.on("changeflags",RVS.F.changeFlags),RVS.DOC.on("click",".remove_altslide",function(){var e=RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt.join(",").split(",");RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt.splice(this.dataset.index,1),RVS.F.openBackupGroup({id:"slide_transition",txt:"Slide Transition Change",icon:"calendar_view_day"}),RVS.F.backup({path:RVS.S.slideId+".slide.slideChange.alt",val:RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt,old:e,backupType:"array",mode:"slidealttransition",callBack:function(){}}),RVS.F.closeBackupGroup({id:"slide_transition"}),RVS.F.updateAlternateSlideAnims()}),RVS.DOC.on("addslidetransition",function(){RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt=void 0===RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt?[]:RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt,RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt.push("");var e=jQuery(S(RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt.length-1));RVS.C.altslcon.append(e),e.find(".slideAnimSelect").each(function(){RVS.F.createSlideAnimOptions(this),jQuery(this).ddTP({placeholder:"Enter or Select"})})}),RVS.DOC.on("updateSlideAnimationView",RVS.F.updateSlideAnimationView),RVS.DOC.on("updateSlideAnimation",function(e,t){void 0!==t&&("tocustom"===t.eventparam&&RVS.F.setSlideAnimPresetToCustom(),RVS.F.redrawSlideBG())}),RVS.DOC.on("updateSlideAnimationFavoits",function(e,t){void 0!==t&&(RVS.F.showHidePresetFavorits(RVS.LIB.SLTR_FAVORIT,"slide_trans_mains"),RVS.SLIDER[RVS.S.slideId].slide.slideChange.favorit?(RVS.S.ATI[0].classList.add("showonlyfavoritpresets"),RVS.S.ATIR[0].classList.add("showonlyfavoritpresets")):(RVS.S.ATI[0].classList.remove("showonlyfavoritpresets"),RVS.S.ATIR[0].classList.remove("showonlyfavoritpresets")))}),RVS.DOC.on("colrowslideanimchange",function(e,t){if(void 0!==t&&void 0!==t.eventparam){var i=0<=t.eventparam.indexOf("in.")?"in":"out",a=0<=t.eventparam.indexOf(".col")?"col":"row",r="row"==a?"col":"row";if(1e3<parseInt(RVS.SLIDER[RVS.S.slideId].slide.slideChange[i].col)*parseInt(RVS.SLIDER[RVS.S.slideId].slide.slideChange[i].row)&&(RVS.SLIDER[RVS.S.slideId].slide.slideChange[i][r]=Math.floor(1e3/parseInt(RVS.SLIDER[RVS.S.slideId].slide.slideChange[i][a])),document.getElementById("sltrans_"+i+"_"+r).value=RVS.SLIDER[RVS.S.slideId].slide.slideChange[i][r]),RVS.JHOOKS.extendSlideAnimationRowCol)for(var s in RVS.JHOOKS.extendSlideAnimationRowCol)RVS.JHOOKS.extendSlideAnimationRowCol.hasOwnProperty(s)&&RVS.JHOOKS.extendSlideAnimationRowCol[s](i,a,r)}RVS.F.setSlideAnimPresetToCustom(),RVS.F.redrawSlideBG()}),RVS.DOC.on("click",".editslide",function(){return d({id:this.dataset.id}),!1}),RVS.DOC.on("showLastEditedSlideStatic",function(){jQuery(".showunderstatic").removeClass("showunderstatic"),RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&void 0!==RVS.S.lastShownSlideId&&(RVS.SLIDER[RVS.S.slideId].slide.static.lastEdited?(jQuery("#slide_"+RVS.S.lastShownSlideId).addClass("showunderstatic"),jQuery("#slide_"+RVS.S.lastShownSlideId).find("._lc_.selected").removeClass("selected"),setTimeout(function(){jQuery("#slide_"+RVS.S.slideId).addClass("hideslotsinslide")},200)):jQuery("#slide_"+RVS.S.slideId).removeClass("hideslotsinslide"))}),RVS.DOC.on("click",".open_close_slide",function(){return d({id:this.dataset.id,openclose:!0}),!1}),RVS.DOC.on("click",".added_slide_transition",function(){jQuery(".added_slide_transition.selected").removeClass("selected"),this.className=this.className+" selected",RVS.S.slideTrans=jQuery(this).index(),RVS.F.updateEasyInputs({container:jQuery("#active_transitions_settings"),path:RVS.S.slideId+".slide.",trigger:"init"}),RVS.F.updateSlideFrames()}),RVS.DOC.on("click",".transition-replace",function(){RVS.DOC.trigger("showhidetransitions")}),RVS.DOC.on("mouseenter mouseleave","#active_transitions_innerwrap_results .presetelement.dark_btn, #active_transitions_innerwrap_results .presets_listelement.dark_btn",function(e){clearTimeout(window.backToDefaultAnimationTimer),RVS.S.demoSlideAnim="mouseenter"===e.type?{key:"true"==this.dataset.custom&&void 0!==this.dataset&&void 0!==this.dataset.key?this.dataset.key.replace("custom_",""):""+this.dataset.rndgrp!="undefined"||""+this.dataset.rndmain!="undefined"?RVS._R.getRandomSlideTrans(this.dataset.rndmain,this.dataset.rndgrp,RVS.LIB.SLTR):this.dataset.key,preset:"true"==this.dataset.custom?jQuery.extend(!0,{},RVS.LIB.SLTR_CUSTOM[this.dataset.key.replace("custom_","")].preset):void 0}:void 0,window.backToDefaultAnimationTimer=setTimeout(RVS.F.showExampleOrSelectedSlideAnim,"mouseenter"===e.type?200:0)}),RVS.DOC.on("updateslidebasicmediafilter",function(e){RVS.F.redrawSlideBG(e),RVS.F.warnFilterWithTransitions()}),RVS.DOC.on("updateslidebasic",RVS.F.redrawSlideBG),RVS.DOC.on("updateslidebasicmpeg",function(){RVS.F.videoExtract.get(RVS.SLIDER[RVS.S.slideId].slide.bg.mpeg,function(e){RVS.F.setBGPosterImage(e.path,e.id,"slide"),RVS.F.redrawSlideBG()},RVS.SLIDER[RVS.S.slideId].slide.bg.video.startAt,"slide")}),RVS.DOC.on("coloredit colorcancel",h),RVS.DOC.on("showSlideFilter",y),RVS.DOC.on("updateKenBurnBasics",function(){f()}),RVS.DOC.on("updateKenBurnSettings",function(){v()}),RVS.DOC.on("previewKenBurn",function(){RVS.TL[RVS.S.slideId].panzoom.play()}),RVS.DOC.on("previewStopKenBurn",function(){RVS.TL[RVS.S.slideId].panzoom.pause()}),RVS.DOC.on("rewindKenBurn",function(){RVS.TL[RVS.S.slideId].panzoom.progress(0).pause()}),RVS.DOC.on("beforeLayoutModeChange accordionaction",function(){RVS.F.updateTimeLine({state:"stop",timeline:"panzoom"}),RVS.F.changeSwitchState({el:jQuery("#kenburn_simulator")[0],state:"play"})}),RVS.DOC.on("updateslidethumbs",function(){p()}),RVS.DOC.on("resetslideadminthumb",function(e,t){RVS.F.updateSliderObj({path:RVS.S.slideId+"."+t,val:""}),p()}),RVS.DOC.on("changeToLayerMode",function(){RVS.F.showHideLayerEditor({mode:"slidecontent"})}),RVS.DOC.on("changeToSlideMode",function(){RVS.F.showHideLayerEditor({mode:"slidelayout"})}),RVS.DOC.on("windowresized",RVS.F.redrawSlideBG),RVS.DOC.on("sliderSizeChanged",RVS.F.redrawSlideBG),RVS.DOC.on("showhidetransitions",function(){var e=jQuery("#transition_selector");e.is(":visible")?e.hide():e.show()}),RVS.DOC.on("updateSlideNameInList",function(){jQuery("#slide_list_element_title_"+RVS.S.slideId).html(RVS.SLIDER[RVS.S.slideId].slide.title)}),RVS.DOC.on("click","#do_edit_slidename",function(){jQuery("#slide_title_field").trigger("focus")}),RVS.DOC.on("slide_ajax_calls",function(e,t){var i;"overwrite"!==t.mode&&"create"!==t.mode||(i=jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId].slide.slideChange)),"overwrite"!==t.mode&&"rename"!=t.mode||t.pl.data("key"),"rename"===t.mode&&(i=RVS.LIB.SLTR_CUSTOM[t.key].preset,RVS.LIB.SLTR_CUSTOM[t.key].title=t.newname),"delete"===t.mode?RVS.F.ajaxRequest("delete_custom_templates_slidetransitions",{id:t.key.replace("custom_","")},function(e){e.success&&(delete RVS.LIB.SLTR_CUSTOM[t.key],t.pl.remove())}):RVS.F.ajaxRequest("save_custom_templates_slidetransitions",{id:t.key,obj:{title:t.newname,preset:i}},function(e){e.success&&(RVS.LIB.SLTR_CUSTOM[e.data.id]={title:t.newname,preset:i},"create"===t.mode&&(t.element[0].dataset.key=e.data.id),"rename"===t.mode)&&t.pl.find(".cla_custom_name").text(t.newname)})}),(n={container:jQuery("#kenburn_timeline")}).pin=n.container.find(".pz_pin"),n.done=n.container.find(".pz_timedone"),n.pinWidth=9,n.hovered=!1,n.pin.draggable({axis:"x",containment:"parent",start:function(e,t){n.container.addClass("indrag"),n.containerWidth=n.container.width()},stop:function(e,t){n.container.removeClass("indrag")},drag:function(e,t){c({left:t.position.left,force:!0}),RVS.F.updateTimeLine({state:"progress",timeline:"panzoom",prgs:t.position.left/(n.containerWidth-n.pinWidth)})}}),n.container.on("mouseenter",function(){n.hovered=!0,n.laststate=RVS.F.updateTimeLine({state:"getstate",timeline:"panzoom"}),RVS.F.updateTimeLine({state:"pause",timeline:"panzoom"})}).on("mouseleave",function(){n.hovered=!1,n.laststate&&RVS.F.updateTimeLine({state:"play",timeline:"panzoom"})})},RVS.F.changeFlags=function(e){e=RVS.SLIDER[RVS.S.slideId].slide.child,document.getElementById(RVS.S.slideId+"_flag_source").innerHTML=RVS.SLIDER.settings.general.useWPML&&"undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS&&void 0!==e&&void 0!==e.language&&""!==e.language&&!1!==e.language&&void 0!==RS_WPML_LANGS[e.language]?'<span class="wpml_flag_wrap"><img src="'+RS_WPML_LANGS[e.language].image+'" class="wpml-img-flag" /></span>':""},RVS.F.addToSlideList=function(e){RVS.SLIDER.settings.general.useWPML&&RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_general_usewpml"),trigger:"init"});var t=s.split("###").join(RVS.S.slideId),i=RVS.SLIDER[e.id].slide,a=RVS.SLIDER.settings.general.useWPML&&"undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS&&void 0!==i.child&&void 0!==i.child.language&&""!==i.child.language&&!1!==i.child.language&&void 0!==RS_WPML_LANGS[i.child.language]?'<span id="'+e.id+'_flag_source" class="flag_container aaa"><span class="wpml_flag_wrap"><img src="'+RS_WPML_LANGS[i.child.language].image+'" class="wpml-img-flag" /></span></span>':'<span id="'+e.id+'_flag_source" class="flag_container bbb"></span>',r="undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS?'<div class="addchildslide" data-id="'+e.id+'"><i class="material-icons">playlist_add</i></div>':"",r=i.static.isstatic?jQuery('<div id="slide_list_element_'+e.id+'" class="do_not_sort_slide_list_element slide_list_element static-slide-btn" data-ref="'+e.id+'"><div class="sle_description"><i class="material-icons">layers</i>'+i.title+"</div></div>"):void 0===i.child||void 0===i.child.parentId||""===i.child.parentId||0===i.child.parentId.length||!1===i.child.parentId?jQuery('<li id="slide_list_element_'+e.id+'" class="slide_list_element sortable_slide_list_element" data-ref="'+e.id+'"><div class="slide_elemenet_content"><div class="sle_thumb"></div><div class="sle_description"><i class="material-icons">swap_vert</i>'+a+'<span id="slide_list_element_title_index_'+e.id+'"></span><span id="slide_list_element_title_'+e.id+'">'+i.title+'</span></div><div class="slidetab_toolbox"><div id="publish_toggle_icon_'+e.id+'" class="'+i.publish.state+'slide"><i class="publishedicon material-icons">visibility</i><i class="unpublishedicon material-icons">visibility_off</i></div><div class="deleteslide"><i class="material-icons">delete</i></div><div class="duplicateslide"><i class="material-icons">content_copy</i></div><div class="editslide" data-id="'+e.id+'" ><i class="material-icons">settings</i></div>'+r+"</div>"+t+'</div><div id="slide_list_element_childwrap_'+e.id+'" class="slide_list_child_element_wrap"></div></li>'):jQuery('<li id="slide_list_element_'+e.id+'" class="slide_list_child_element" data-ref="'+e.id+'"><div class="sle_thumb"></div><div class="slide_elemenet_content"><div class="sle_description">'+a+'<span id="slide_list_element_title_'+e.id+'">'+i.title+'</span></div><div class="slidetab_toolbox"><div id="publish_toggle_icon_'+e.id+'" class="'+i.publish.state+'slide"><i class="publishedicon material-icons">visibility</i><i class="unpublishedicon material-icons">visibility_off</i></div><div class="deleteslide"><i class="material-icons">delete</i></div><div class="editslide" data-id="'+e.id+'" ><i class="material-icons">settings</i></div></div>'+t+"</div></li>"),a=r.find(".sle_thumb");p({id:e.id,target:a}),i.static.isstatic?r.insertBefore(RVS.C.slideList):(""!==i.child.parentId&&void 0!==i.child.parentId?jQuery("#slide_list_element_childwrap_"+i.child.parentId):RVS.C.slideList).append(r),!0!==e.ignoreSort&&(RVS.F.makeSlideListSortable(),RVS.F.makeSlideListScroll())},RVS.F.makeSlideListScroll=function(){void 0===RVS.S.slidesListSB?RVS.S.slidesListSB=RVS.C.slideList.RSScroll({wheelPropagation:!1,suppressScrollX:!0,minScrollbarLength:100}):RVS.C.slideList.RSScroll("update"),RVS.DOC.on("mouseenter","#slidelist",function(){RVS.C.slideList.RSScroll("update")})},RVS.F.addRemoveSlideWithBackupAfterSlideId=function(i){var e=void 0!==i.urls?i.urls.length:1,a=jQuery.extend(!0,{},i.slideObj);a.slide.child.parentId=void 0!==i.parentId?i.parentId:"",RVS.F.ajaxRequest("create_slide",{slider_id:RVS.ENV.sliderID,amount:e},function(e){if(e.success){for(var t in e.slide_id)e.slide_id.hasOwnProperty(t)&&(i.slideId=e.slide_id[t],i.slideObj=jQuery.extend(!0,{},a),i.slideObj.id=i.slideObj.slide.uid=e.slide_id[t],void 0!==i.urls&&0<i.urls.length&&(i.slideObj.slide.bg.type="image",i.slideObj.slide.bg.image=i.urls[t].url.split(" ").join("%20"),i.slideObj.slide.bg.imageSourceType="full",RVS.F.slideinWork(e.slide_id[t])),RVS.F.addRemoveSlideWithBackup(i),void 0===i.parentID&&void 0===i.fromSlideId||(RVS.F.convertIDStoTxt(),RVS.F.saveSlides({index:0,slides:RVS.SLIDER.slideIDs,trigger:RVS.F.saveSliderSettings,works:RVS.SLIDER.inWork,force:!0})),void 0!==i.fromSlideId&&RVS.F.duplicateSkinColors({type:"slide",slideFrom:i.fromSlideId,slideTo:i.slideId}),RVS.DOC.trigger("newSlideCreated",[e.slide_id[t]]));void 0!==i.endOfMain&&i.endOfMain()}})},RVS.F.addRemoveSlideWithBackup=function(e,t){RVS.F.openBackupGroup({id:e.id,txt:e.step,icon:e.icon,lastkey:"#"+e.slideId}),RVS.SLIDER[e.slideId]=e.slideObj;var i,a,r,s,o,n,l=RVS.SLIDER.slideIDs.slice(),d=!1;if("deleteslide"===e.id){for(n in RVS.SLIDER.slideIDs)o=""+RVS.SLIDER.slideIDs[n],void 0!==RVS.SLIDER[o]&&void 0!==RVS.SLIDER[o].slide&&void 0!==RVS.SLIDER[o].slide.child&&""+RVS.SLIDER[o].slide.child.parentId==""+e.slideId&&(r=0<=(s=RVS.F._inArray(o,l))-1?s-1:s,o==""+RVS.S.slideId&&(d=!0),l.splice(s,1),RVS.SLIDER[o]={});r=0<=(s=RVS.F._inArray(e.slideId,l))-1?s-1:s,RVS.S.slideId==e.slideId&&(d=!0),l.splice(s,1),RVS.F.updateSliderObj({path:"slideIDs",val:l}),i=jQuery("#slide_list_element_"+e.slideId).removeClass("selected").detach()}else l.push(e.slideId),RVS.F.updateSliderObj({path:"slideIDs",val:l}),RVS.F.addToSlideList({id:e.slideId}),a={mode:"slidelayout",set:!0,slide:e.slideId};RVS.F.backup({path:e.slideId,cache:i,beforeSelected:e.beforeSelected,icon:e.icon,txt:e.step,lastkey:"#"+e.slideId,force:!0,val:jQuery.extend(!0,{},RVS.SLIDER[e.slideId]),old:e.slideObjOld,backupType:"slide",bckpGrType:e.id}),void 0!==(a=0==jQuery(".slide_list_element.sortable_slide_list_element").length?{mode:"sliderlayout",set:!0}:a)?RVS.F.mainMode(a):d&&RVS.F.setSlideFocus({slideid:r>=RVS.SLIDER.slideIDs.length?RVS.SLIDER.slideIDs[0]:RVS.SLIDER.slideIDs[r]}),RVS.F.closeBackupGroup({id:e.id}),void 0!==e.after&&e.after()},RVS.F.setSlideFocus=function(e){RVS.F.setEditorUrl(e.slideid),RVS.F.slideinWork(e.slideid),delete RVS.S.bgobj,RVS.DOC.trigger("beforeSlideChange"),jQuery(".slide_list_element.selected, .slide_list_child_element.selected").removeClass("selected"),jQuery("#slide_list_element_"+e.slideid).addClass("selected"),jQuery(".slide_li").hide(),RVS.SLIDER[e.slideid].slide.static.isstatic?(window.lastSlideSettingForm="static",RVS.F.updateStaticStartEndList(),RVS.C.vW.classList.add("staticlayersview"),RVS.F.openSettings({forms:["*slidelayout**mode__slidestyle*#form_slidestatic"],uncollapse:!0})):(RVS.C.vW.classList.remove("staticlayersview"),"static"===window.lastSlideSettingForm&&(window.lastSlideSettingForm=jQuery(".slide_submodule_trigger.selected").data("forms"),RVS.F.openSettings({forms:window.lastSlideSettingForm,uncollapse:!0}))),RVS.DOC.trigger("slideAmountUpdated"),RVS.S.slideId=e.slideid,RVS.ENV.firstLayoutAfterSlideload=!0,RVS.DOC.trigger("showLastEditedSlideStatic"),RVS.DOC.trigger("slideFocusChanged"),0===jQuery("#slide_"+e.slideid).length&&((t=jQuery("#slide_li_template").clone()).attr("id","slide_"+e.slideid),RVS.SLIDER[e.slideid].slide.static.isstatic&&t.addClass("static_slide_li"),t.find(".crumb_title").html('<i class="material-icons">wallpaper</i>'+RVS.SLIDER[e.slideid].slide.title),RVS.S.ulInner.append(t),RVS.TL[RVS.S.slideId]=void 0===RVS.TL[RVS.S.slideId]?{}:RVS.TL[RVS.S.slideId]),RVS.S.lastVisibleSlideId!==e.slideid&&RVS.DOC.trigger("slideChanged"),RVS.S.lastVisibleSlideId=e.slideid,RVS.C.slide=jQuery("#slide_"+e.slideid),void 0!==RVS.SBGS&&void 0!==RVS.SBGS[RVS.S.slideId]||(RVS.SBGS=void 0===RVS.SBGS?{}:RVS.SBGS,RVS.SBGS[RVS.S.slideId]={wrap:RVS.F.cE({t:"rs-sbg-px"}),n:{sbg:RVS.F.cE({t:"rs-sbg-wrap",cN:"in"}),canvas:RVS.F.cE({t:"canvas"}),bgvid:!1,loadobj:{}},c:{sbg:RVS.F.cE({t:"rs-sbg-wrap"}),canvas:RVS.F.cE({t:"canvas"}),bgvid:!1,previous:!0,loadobj:{}}},RVS.SBGS[RVS.S.slideId].n.sbg.appendChild(RVS.SBGS[RVS.S.slideId].n.canvas),RVS.SBGS[RVS.S.slideId].c.sbg.appendChild(RVS.SBGS[RVS.S.slideId].c.canvas),RVS.SBGS[RVS.S.slideId].wrap.appendChild(RVS.SBGS[RVS.S.slideId].n.sbg),RVS.SBGS[RVS.S.slideId].wrap.appendChild(RVS.SBGS[RVS.S.slideId].c.sbg),RVS.C.slide.prepend(RVS.SBGS[RVS.S.slideId].wrap),RVS.SBGS[RVS.S.slideId].c.ctx=RVS.SBGS[RVS.S.slideId].c.canvas.getContext("2d"),RVS.SBGS[RVS.S.slideId].n.ctx=RVS.SBGS[RVS.S.slideId].n.canvas.getContext("2d")),RVS.C.layergrid=RVS.C.slide.find(".layer_grid"),RVS.DOC.trigger("sliderProgressUpdate"),window.contentDeltaFirstRun||RVS.F.updateContentDeltas(),RVS.C.rZone.top=RVS.C.layergrid.find(".row_wrapper_top"),RVS.C.rZone.middle=RVS.C.layergrid.find(".row_wrapper_middle"),RVS.C.rZone.bottom=RVS.C.layergrid.find(".row_wrapper_bottom"),RVS.C.layergrid.attr("id","layer_grid_"+e.slideid),RVS.HALL=null==RVS.HALL?{}:RVS.HALL,RVS.HALL[RVS.S.slideId]=null==RVS.HALL[RVS.S.slideId]?{}:RVS.HALL[RVS.S.slideId],RVS.H=RVS.HALL[RVS.S.slideId],RVS.C.slide.show(),RVS.DOC.trigger("updatesliderlayout","setSlideFocus-139"),RVS.F.setRulers(),RVS.F.updateFields(e.ignoreUpdateFields),"carousel"==RVS.SLIDER.settings.type&&null==RVS.S.carouselSettingsInit&&(RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_caroussel"),trigger:"init",visualUpdate:!0}),RVS.S.carouselSettingsInit=!0),void 0!==RVS.S.slideBGCallFirsttime&&RVS.F.redrawSlideBG(),RVS.S.slideInputFieldsInitialised&&RVS.F.udpateSelectedSlideAnim(!0),RVS.F.updateParallaxLevelTexts(),RVS.F.setRulers();var t=RVS.selLayers.length;RVS.F.buildLayerLists({ignoreSelectLayers:e.ignoreUpdateFields,ignoreDrawLayers:!0}),RVS.F.updateReferencigToggleLayerType(),RVS.F.updateAllLayerFrames(),RVS.F.updateSelectedHtmlLayers(!0,!0),void 0!==RVS.S.slideBGCallFirsttime&&RVS.selLayers.length!=t&&RVS.F.selectedLayersVisualUpdate(),RVS.S.slideBGCallFirsttime=!0,RVS.DOC.trigger("updateScrollBars"),RVS.DOC.trigger("updateAllInheritedSize"),RVS.DOC.trigger("slideFocusFunctionEnd"),void 0!==RVS.S.firstPreparation&&1!==RVS.S.firstPreparation&&RVS.F.expandCollapseTimeLine(!0,"open"),RVS.DOC.trigger("updateSlideLoopRange"),RVS.DOC.trigger("updateFixedScrollRange"),RVS.F.reOrderHTMLLayers(),RVS.S.lastSaved=void 0===RVS.S.lastSaved?{}:RVS.S.lastSaved,setTimeout(function(){void 0===RVS.S.lastSaved[RVS.S.slideId]&&!0!==RVS.S.zIndexAtStartChanged&&(RVS.S.lastSaved[RVS.S.slideId]={params:JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[RVS.S.slideId].slide)),layers:JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[RVS.S.slideId].layers))},delete RVS.S.zIndexAtStartChanged)},500)},RVS.F.getAllSlidesBgDimension=function(){for(var e in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(e)&&(RVS.F.loadBGImages(RVS.SLIDER.slideIDs[e]),RVS.F.slideinWork(RVS.SLIDER.slideIDs[e]))},RVS.F.loadBGImages=function(e,t){var i,a;RVS.allimages=void 0===RVS.allimages?{src:[],dim:[],img:[]}:RVS.allimages,e=void 0===e?RVS.S.slideId:e,(0<=jQuery.inArray(RVS.SLIDER[e].slide.bg.type,["image","youtube","html5","vimeo","external"])||"c"===t&&void 0!==e&&void 0!==RVS.SBGS&&void 0!==RVS.SBGS[RVS.S.slideId]&&void 0!==RVS.SBGS[RVS.S.slideId][t].src)&&(i=("c"===t?RVS.SBGS[RVS.S.slideId][t]:RVS.SBGS[RVS.S.slideId].n).src,void 0!==(i="external"===RVS.SLIDER[e].slide.bg.type&&""===i?RVS.ENV.plugin_url+"admin/assets/images/transparent.png":i))&&(i=i.split(" ").join("%20"),void 0!==t&&(RVS.SBGS[RVS.S.slideId][t].loadobj=void 0===RVS.SBGS[RVS.S.slideId][t].loadobj?{}:RVS.SBGS[RVS.S.slideId][t].loadobj),0<=(a=jQuery.inArray(i,RVS.allimages.src))?void 0!==RVS.allimages.dim[a]&&("c"!==t&&(RVS.SLIDER[e].slide.bg.imageWidth=RVS.allimages.dim[a].w,RVS.SLIDER[e].slide.bg.imageHeight=RVS.allimages.dim[a].h,RVS.SLIDER[e].slide.bg.imageRatio=RVS.allimages.dim[a].r),void 0!==t&&(RVS.SBGS[RVS.S.slideId][t].loadobj.img=RVS.allimages.img[a],RVS.SBGS[RVS.S.slideId][t].loadobj.width=RVS.allimages.dim[a].w,RVS.SBGS[RVS.S.slideId][t].loadobj.height=RVS.allimages.dim[a].h,RVS.SBGS[RVS.S.slideId][t].loadobj.src=RVS.allimages.src[a],RVS.SBGS[RVS.S.slideId][t].loadobj.progress="loaded"),RVS.DOC.trigger("device_area_dimension_update")):i!==RVS.S.lastLoadedBGImage&&(RVS.S.lastLoadedBGImage=i,a=RVS.allimages.src.length,RVS.allimages.img[a]=new Image,RVS.F.getImgWithCORS(RVS.allimages.img[a],i),void 0!==t&&(RVS.SBGS[RVS.S.slideId][t].loadobj.progress="loading"),RVS.allimages.src[a]=i,RVS.allimages.img[a].tpRequest=0,RVS.allimages.img[a].onload=function(){RVS.allimages.dim[a]={w:this.width,h:this.height,r:this.width/this.height},void 0!==t&&(RVS.SBGS[RVS.S.slideId][t].loadobj.img=RVS.allimages.img[a],RVS.SBGS[RVS.S.slideId][t].loadobj.src=RVS.allimages.src[a],RVS.SBGS[RVS.S.slideId][t].loadobj.width=this.width,RVS.SBGS[RVS.S.slideId][t].loadobj.height=this.height,RVS.SBGS[RVS.S.slideId][t].loadobj.progress="loaded"),"c"!==t&&(RVS.SLIDER[e].slide.bg.imageWidth=this.width,RVS.SLIDER[e].slide.bg.imageHeight=this.height,RVS.SLIDER[e].slide.bg.imageRatio=this.width/this.height),RVS.DOC.trigger("device_area_dimension_update"),1===this.tpRequest&&(console.info("%c"+RVS_LANG.CORSWARNING,"color:#f1c40f;"),console.info(this.src))},RVS.allimages.img[a].onerror=function(e,t,i){0===this.tpRequest&&this.crossOrigin&&(delete this.crossOrigin,this.removeAttribute("crossorigin"),this.tpRequest=1,this.src=this.src)},RVS.allimages.img[a].src=RVS.allimages.src[a]))},RVS.F.redrawSlideBG=function(a){void 0!==RVS.C.slide&&(clearTimeout(RVS.S.redrawSlideBGTimeOut),RVS.S.redrawSlideBGTimeOut=setTimeout(function(){var e,t=RVS.SLIDER[RVS.S.slideId].slide;if(void 0!==a&&a.liveColorChange&&void 0!==a.backgroundColor)e={bg:{color:a.backgroundColor,type:"solid"}};else for(var i in RVS.JHOOKS.redrawSlideBG)RVS.JHOOKS.redrawSlideBG.hasOwnProperty(i)&&(e=RVS.JHOOKS.redrawSlideBG[i](e));RVS.SBGS[RVS.S.slideId].n=jQuery.extend(!0,RVS.SBGS[RVS.S.slideId].n,RVS.F.getSlideBGObj({slideBGFrom:e})),RVS.SBGS[RVS.S.slideId].c=jQuery.extend(!0,RVS.SBGS[RVS.S.slideId].c,RVS.F.getSlideBGObj({type:"c",slideBGFrom:{bg:{color:"transparent",repeat:"repeat",position:"center center",fit:"50%",src:RVS.ENV.plugin_url+"admin/assets/images/light_pattern_2x.png"}}})),(void 0===RVS.SBGS[RVS.S.slideId].n.loadobj.img||RVS.S.lastSlideBGSrc!==RVS.SLIDER[RVS.S.slideId].slide.bg.type||RVS.SBGS[RVS.S.slideId].n.loadobj.src!==RVS.SBGS[RVS.S.slideId].n.src&&""!==RVS.SBGS[RVS.S.slideId].n.src)&&RVS.F.loadBGImages(void 0,"n"),void 0===RVS.SBGS[RVS.S.slideId].c.loadobj.img&&RVS.F.loadBGImages(void 0,"c"),RVS.S.lastSlideBGSrc=RVS.SLIDER[RVS.S.slideId].slide.bg.type,v(),RVS.SBGS[RVS.S.slideId].wrap.className=t.bg.mediaFilter,RVS.SBGS[RVS.S.slideId].n.usebgColor&&"transparent"==RVS.SBGS[RVS.S.slideId].n.bgcolor?(RVS.F.resetSlideTL(),RVS.SBGS[RVS.S.slideId].n.ctx.clearRect(0,0,RVS.SBGS[RVS.S.slideId].n.ctx.canvas.width,RVS.SBGS[RVS.S.slideId].n.ctx.canvas.height)):RVS.F.buildSlideAnimation(),RVS.F.slideAnimation({progress:1,type:"slide"});t=document.getElementById("slider_overlay");t&&RVS.C.slide[0].querySelector("rs-sbg-wrap").appendChild(t),RVS.DOC.trigger("redrawSlideBGDone")},100))},RVS.F.updateSlideInputFields=function(){!0!==RVS.S.slideInputFieldsInitialised&&!0!==RVS.F.slideInputFieldsInitialisedInfo&&(RVS.F.udpateSelectedSlideAnim(!0),RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.updatingfields}),RVS.S.slideInputFieldsInitialised=!0,RVS.F.slideInputFieldsInitialisedInfo=!0),setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery(".slide_settings_collector, #do_title_slide"),path:RVS.S.slideId+".slide.",trigger:"init"}),jQuery("#s_bg_color").val(RVS.SLIDER[RVS.S.slideId].slide.bg.color).rsColorPicker("refresh"),jQuery("#slide_bg_type").trigger("change"),p(),!0===RVS.F.slideInputFieldsInitialisedInfo&&(RVS.F.showWaitAMinute({fadeOut:2,text:RVS_LANG.updatingfields}),RVS.F.slideInputFieldsInitialisedInfo=!1),RVS.DOC.trigger("slideInputFieldsUpdated")},5)},RVS.F.updateFields=function(e){var t=document.getElementById("slide_seo_linktoslide");if(null!==t){var i,a,r,s="";for(i in s=(s=s+'<option value="nothing">- Not Choosen -</option>'+'<option value="next">- Next Slide -</option>')+'<option value="prev">- Previous Slide -</option>'+'<option value="scroll_under">- Scroll Below Slider -</option>',RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(i)&&(a=RVS.SLIDER.slideIDs[i],r=RVS.SLIDER[a].slide.title,s+='<option value="'+a+'">'+(r=void 0===r?"Slide":r)+" (ID:"+a+")</option>");t.innerHTML=s}RVS.F.updateSlideAnimationView(),!0!==e&&RVS.F.updateSlideInputFields(),RVS.F.updateSlideBasedNavigationStyle(),f(e),RVS.F.alternatingSlideAnims(),RVS.F.buildSlideFrames(),RVS.F.updateSlideFrames(),RVS.F.updateMaxTime({pos:!0,cont:!0}),void 0!==RVS.S.firstTimeGoToIdle&&RVS.F.goToIdle(),RVS.S.firstTimeGoToIdle=!0},RVS.F.getSlideBGObj=function(e){e.id=void 0===e.id?RVS.S.slideId:e.id;var t=void 0===e.slideBGFrom?RVS.SLIDER[e.id].slide:e.slideBGFrom,i={bgcolor:"transparent",bgrepeat:t.bg.repeat,bgposition:"percentage"===t.bg.position?parseInt(t.bg.positionX,0)+"% "+parseInt(t.bg.positionY,0)+"%":t.bg.position,bgfit:"percentage"===t.bg.fit?parseInt(t.bg.fitX,0)+"% "+parseInt(t.bg.fitY,0)+"%":t.bg.fit},a=jQuery("#slide_bg_image_path");if("c"!==e.type)switch(t.bg.type){case"trans":i.usebgColor=!0;break;case"solid":var r=window.RSColor.get(t.bg.color);0<=r.indexOf("gradient")?i.bgcolor=r:i.bgcolor=t.bg.color,i.type="solid",i.usebgColor=!0;break;case"external":var s=t.bg.externalSrc.split(" ").join("%20");i.src=s,a.val(t.bg.externalSrc),a.height(Math.max(25,8+t.bg.externalSrc.length/20*16)),a.trigger("changedvalue",{sip:a[0].value}),i.type="image",i.usebgColor=!1;break;case"html5":case"vimeo":case"youtube":case"image":s=t.bg.image.split(" ").join("%20");i.src=s,a.val(t.bg.image),a.trigger("changedvalue",{sip:a[0].value}),(void 0!==t.bg.image||void 0!==t.bg.image)&&a.height(Math.max(25,8+t.bg.image.length/20*16)),i.type="image",i.usebgColor=!1}else i.src=t.bg.src;return i},RVS.F.getSlideBGDrawObj=function(e){(e=void 0===e?{updateSip:!1}:e).id=void 0===e.id?RVS.S.slideId:e.id;var t=void 0===e.slideBGFrom?RVS.SLIDER[e.id].slide:e.slideBGFrom,i={backgroundImage:"",backgroundColor:"transparent",backgroundRepeat:t.bg.repeat,backgroundPosition:"percentage"===t.bg.position?parseInt(t.bg.positionX,0)+"% "+parseInt(t.bg.positionY,0)+"%":t.bg.position,"background-size":"percentage"===t.bg.fit?parseInt(t.bg.fitX,0)+"% "+parseInt(t.bg.fitY,0)+"%":t.bg.fit},a=jQuery("#slide_bg_image_path");switch(t.bg.type){case"solid":var r=window.RSColor.get(t.bg.color);0<=r.indexOf("gradient")?i={background:r}:i.backgroundColor=t.bg.color;break;case"trans":break;case"external":var s=t.bg.externalSrc.split(" ").join("%20");i.backgroundImage="url("+s+")",e.updateSip&&(a.val(t.bg.externalSrc),a.height(Math.max(25,8+t.bg.externalSrc.length/20*16)));break;case"html5":case"vimeo":case"youtube":case"image":s=t.bg.image.split(" ").join("%20");i.backgroundImage='url("'+s+'")',e.updateSip&&(a.val(t.bg.image),void 0!==t.bg.image||void 0!==t.bg.image)&&a.height(Math.max(25,8+t.bg.image.length/20*16))}return i},RVS.F.slideMinLength=function(e){var t=e,e=(e="default"===e||"Default"===e||0===e||"0ms"===e?parseInt(RVS.SLIDER.settings.def.delay,0):parseInt(e,0),10*RVS.F.setSmallestSlideLength({left:e/10}));return"Default"===t||0===t||"0ms"===t||"default"===t?"Default":e},RVS.F.getSlideLength=function(e){return e=void 0===e?RVS.S.slideId:e,void 0===RVS.SLIDER[e]?800:(e=null==(e=null==(e=RVS.SLIDER[e].slide.timeline.delay)||""==e||"default"===e||0==e||"Default"===e?RVS.SLIDER.settings.def.delay:e)||""==e||"default"===e||0==e||"Default"===e?8e3:parseInt(e,0))/10},RVS.F.getSlideAnimParams=function(e){var t,i=-1===(i=jQuery("#active_transitions_innerwrap li.selected").index())?1:i;return t=void 0!==RVS.SLIDER[RVS.S.slideId].slide.timeline[e]?(t=RVS.SLIDER[RVS.S.slideId].slide.timeline[e][i],0===i?"default"==t&&"duration"==e?RVS.F.getSliderTransitionParameters(RVS.SLIDER[RVS.S.slideId].slide.timeline.transition[i]).TR[10]:t:"default"==t&&"duration"==e?void 0===RVS.SLIDER[RVS.S.slideId].slide.timeline[e][i]?RVS.SLIDER.settings.def.transitionDuration:RVS.F.getSliderTransitionParameters(RVS.SLIDER[RVS.S.slideId].slide.timeline.transition[i]).TR[10]:t):"default"},RVS.F.buildSlideAnimation=function(e){"image"===RVS.SBGS[RVS.S.slideId].n.type&&"loaded"!==RVS.SBGS[RVS.S.slideId].n.loadobj.progress||"loaded"!==RVS.SBGS[RVS.S.slideId].c.loadobj.progress||RVS._R.animateSlide(void 0,RVS._R.convertSlideAnimVals(void 0===e?RVS.SLIDER[RVS.S.slideId].slide.slideChange:e))},RVS.F.slideAnimation=function(e){void 0!==RVS.TL[RVS.S.slideId][e.type]&&void 0!==e.progress&&(RVS.TL[RVS.S.slideId][e.type].progress(.9999),RVS.TL[RVS.S.slideId][e.type].progress(e.progress))},RVS.F.setSlideAnimPresetToCustom=function(){RVS.SLIDER[RVS.S.slideId].slide.slideChange.preset="custom",RVS.F.udpateSelectedSlideAnim()},RVS.F.alternatingSlideAnims=function(){RVS.C.altslcon=void 0===RVS.C.altslcon?jQuery("#sanimation_sfalternates"):RVS.C.altslcon;var e="",t=RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt;if(void 0!==t&&Array.isArray(t)&&0<t.length)for(var i in t)e+=S(i);RVS.C.altslcon[0].innerHTML=e,RVS.C.altslcon.find(".tos2.slideAnimSelect").each(function(){RVS.F.createSlideAnimOptions(this)})},RVS.F.updateAlternateSlideAnims=function(){RVS.F.alternatingSlideAnims(),RVS.C.altslcon.find(".tos2.slideAnimSelect").ddTP({placeholder:"Enter or Select"}),RVS.F.updateEasyInputs({container:RVS.C.altslcon,path:RVS.S.slideId+".slide.",trigger:"init"})},RVS.F.clearSBGSAttrs=function(e,t){delete e.help_canvas,delete e.help_ctx,void 0!==e.cube&&(document.body.contains(e.cube.c)&&e.cube.c.parentNode.removeChild(e.cube.c),delete e.cube),tpGS.gsap.set([e.canvas,e.sbg],{x:0,y:0,z:0,rotateX:0,rotateY:0,rotateZ:0}),!0!==t&&(delete e.shadowCTX,delete e.shadowCanvas,delete e.SLOT,delete e.cDIMS,delete e.mDIM,delete e.usebgColor,delete e.usepattern,RVS.F.redrawSlideBG())},RVS.F.showExampleOrSelectedSlideAnim=function(){void 0!==RVS.S.demoSlideAnim?(RVS.TL[RVS.S.slideId].slide.pause(),RVS.F.clearSBGSAttrs(RVS.SBGS[RVS.S.slideId].c,!0),RVS.F.clearSBGSAttrs(RVS.SBGS[RVS.S.slideId].n,!0),RVS.TL[RVS.S.slideId].slideRepeat=!0,RVS.F.buildSlideAnimation(_(void 0!==RVS.S.demoSlideAnim.preset?{preset:RVS.S.demoSlideAnim.preset}:{key:RVS.S.demoSlideAnim.key})),RVS.TL[RVS.S.slideId].slide.progress(0).play()):(RVS.TL[RVS.S.slideId].slide.pause(),RVS.F.clearSBGSAttrs(RVS.SBGS[RVS.S.slideId].c),RVS.F.clearSBGSAttrs(RVS.SBGS[RVS.S.slideId].n))},RVS.F.warnFilterWithTransitions=function(){"none"!==RVS.SLIDER[RVS.S.slideId].slide.bg.mediaFilter&&"tpbasic"==RVS.SLIDER[RVS.S.slideId].slide.slideChange.e&&RVS.F.showInfo({content:RVS_LANG.filtertransitionissuepre,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""})},RVS.F.showHideLayerEditor=function(e){var t;RVS.eMode=void 0===RVS.eMode?{top:"",menu:""}:RVS.eMode,"slidecontent"===e.mode?(RVS.C.vW.classList.add("mode__slidecontent"),RVS.C.vW.classList.remove("mode__slidestyle"),RVS.eMode.top="layer",void 0!==(t=jQuery(".layer_submodule_trigger.selected"))&&!1!==e.openSettings&&RVS.F.openSettings({forms:t.data("forms"),uncollapse:t[0].dataset.collapse})):(RVS.C.vW.classList.remove("mode__slidecontent"),RVS.C.vW.classList.add("mode__slidestyle"),RVS.eMode.top="slide",t=jQuery(".slide_submodule_trigger.selected")),void 0!==t&&1<=t.length&&void 0!==t.data("forms")&&(RVS.eMode.menu=t.data("forms")[0])},RVS.F.makeSlideListSortable=function(){RVS.C.slideList;RVS.C.slideList.hasClass("ui-sortable")&&RVS.C.slideList.sortable("destroy"),u(),RVS.C.slideList.sortable({item:".sortable_slide_list_element",cancel:"#theslidermodule, #newslide, .do_not_sort_slide_list_element",start:function(e,t){RVS.C.vW.classList.add("slides_in_sort"),RVS.C.slideList.sortable("refreshPositions")},stop:function(e,t){RVS.C.vW.classList.remove("slides_in_sort");var i,a,r=Array.prototype.slice.call(document.getElementById("slidelist").getElementsByClassName("sortable_slide_list_element")),s=[],o="";for(i in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(i)&&0<=(""+RVS.SLIDER.slideIDs[i]).indexOf("static_")&&(o=RVS.SLIDER.slideIDs[i]);for(a in r)r.hasOwnProperty(a)&&s.push(r[a].dataset.ref);s.push(o),RVS.F.updateSliderObj({path:"slideIDs",val:s}),u()}})},RVS.F.updateSlideAnimationView=function(){var e,t;for(e in RVS.F.updateEasyInputs({container:jQuery("#active_transitions_settings"),path:RVS.S.slideId+".slide.",trigger:"init"}),void 0===RVS.C.sltran&&(RVS.C.sltran={},RVS.C.sltmenu={},RVS.C.sltaddon=void 0===RVS.C.sltaddon?{}:RVS.C.sltaddon,RVS.C.sltran.all_globals=jQuery("#sltrans_all_globals"),RVS.C.sltran.pause=jQuery("#sltrans_pause"),RVS.C.sltran.flow=jQuery("#sltrans_flow"),RVS.C.sltran.in_full_wrap=jQuery("#sltrans_in_full_wrap"),RVS.C.sltran.in_rowcol_wrap=jQuery("#sltrans_in_rowcol_wrap"),RVS.C.sltran.in_ease_wrap=jQuery("#sltrans_in_ease_wrap"),RVS.C.sltran.in_mamo_wrap=jQuery("#sltrans_in_mamo_wrap"),RVS.C.sltran.in_xy_wrap=jQuery("#sltrans_in_xy_wrap"),RVS.C.sltran.in_rzo_wrap=jQuery("#sltrans_in_rzo_wrap"),RVS.C.sltran.in_sxsy_wrap=jQuery("#sltrans_in_sxsy_wrap"),RVS.C.sltran.in_auto_input_wrap=jQuery("#sltrans_in_auto_input_wrap"),RVS.C.sltran.in_filter_input_wrap=jQuery("#sltrans_in_filter_input_wrap"),RVS.C.sltran.filters_wrap=jQuery("#sltrans_filters_wrap"),RVS.C.sltran.d3_wrap=jQuery("#sltrans_3d_wrap"),RVS.C.sltran.out_rowcol_wrap=jQuery("#sltrans_out_rowcol_wrap"),RVS.C.sltran.out_ease_wrap=jQuery("#sltrans_out_ease_wrap"),RVS.C.sltran.out_mask_wrap=jQuery("#sltrans_out_mask_wrap"),RVS.C.sltran.out_xy_wrap=jQuery("#sltrans_out_xy_wrap"),RVS.C.sltran.out_rzo_wrap=jQuery("#sltrans_out_rzo_wrap"),RVS.C.sltran.out_sxsy_wrap=jQuery("#sltrans_out_sxsy_wrap"),RVS.C.sltran.out_full_wrap=jQuery("#sltrans_out_full_wrap"),RVS.C.sltmenu.in=jQuery("#slidein_ts_wrapbrtn"),RVS.C.sltmenu.out=jQuery("#slideout_ts_wrapbrtn"),RVS.C.sltmenu.filter=jQuery("#slidefilter_ts_wrapbrtn"),RVS.C.sltmenu.ddd=jQuery("#slide3d_ts_wrapbrtn")),RVS.C.sltaddon)if(RVS.C.sltaddon.hasOwnProperty(e)&&void 0!==RVS.C.sltaddon[e].slt_areas)for(t in RVS.C.sltaddon[e].slt_areas)RVS.C.sltaddon[e].slt_areas.hasOwnProperty(t)&&RVS.C.sltaddon[e].slt_areas[t].hide();for(e in RVS.C.sltaddon)if(RVS.C.sltaddon.hasOwnProperty(e)&&void 0!==RVS.C.sltaddon[e].menu)for(t in RVS.C.sltaddon[e].menu)RVS.C.sltaddon[e].menu.hasOwnProperty(t)&&RVS.C.sltaddon[e].menu[t][0].classList.add("disabled");switch(RVS.SLIDER[RVS.S.slideId].slide.slideChange.e){case"none":for(e in RVS.C.sltran)RVS.C.sltran.hasOwnProperty(e)&&RVS.C.sltran[e].hide();for(e in RVS.C.sltmenu)RVS.C.sltmenu.hasOwnProperty(e)&&RVS.C.sltmenu[e][0].classList.add("disabled");break;case"basic":for(e in RVS.C.sltran)RVS.C.sltran.hasOwnProperty(e)&&RVS.C.sltran[e].show();for(e in RVS.C.sltmenu)RVS.C.sltmenu.hasOwnProperty(e)&&RVS.C.sltmenu[e][0].classList.remove("disabled");break;case"slidingoverlay":for(e in RVS.C.sltran)RVS.C.sltran.hasOwnProperty(e)&&(0<=jQuery.inArray(e,["in_full_wrap","out_full_wrap","filters_wrap","pause","flow","d3_wrap"])?RVS.C.sltran[e].hide():RVS.C.sltran[e].show());for(e in RVS.C.sltmenu)RVS.C.sltmenu.hasOwnProperty(e)&&RVS.C.sltmenu[e][0].classList.add("disabled");break;default:RVS.DOC.trigger("updateSlideAnimationViewDefault")}},RVS.F.udpateSelectedSlideAnim=function(a){RVS.S.calledSlideAnimListUpdate||(RVS.S.calledSlideAnimListUpdate=!0,requestAnimationFrame(function(){RVS.S.calledSlideAnimListUpdate=!1,RVS.S.ATI.find(".s_s_preset").removeClass("s_s_preset"),RVS.S.ATIR.find(".s_s_preset").removeClass("s_s_preset");var e,t,i=RVS.S.ATIR.find('.presets_listelement[data-key="'+RVS.SLIDER[RVS.S.slideId].slide.slideChange.preset+'"]')[0];null!=i&&(i.classList.add("s_s_preset"),e=document.getElementById(i.dataset.grpid),i=document.getElementById(i.dataset.grpid+"_"+i.dataset.grp),null!=e&&(e.classList.add("s_s_preset"),a)&&-1==e.className.indexOf("open")&&null!=(t=e.getElementsByClassName("presets_liste_head"))&&0<t.length&&t[0].click(),null!=i)&&(i.classList.add("s_s_preset"),a)&&-1==i.className.indexOf("open")&&null!=(t=i.getElementsByClassName("presetssgroup_head"))&&0<t.length&&t[0].click()}))},RVS.F.buildKenBurn=function(){f()},RVS.F.addSlideObj=function(e,t){void 0!==e&&jQuery.isEmptyObject(e);(e=void 0===e?{}:e)&&e.bg&&-1===["cover","contain","percentage","auto"].indexOf(e.bg.fit)&&(e.bg.fit="cover");var i={};return i.addOns=e.addOns||{},i.version=RVS.ENV.revision,i.static=a(e.static,{isstatic:!1,overflow:"hidden",position:"front",lastEdited:!0}),i.runtime=a(e.runtime,{collapsedGroups:[]}),i.title=a(e.title,"New Slide"),i.child=a(e.child,{parentId:"",language:""}),i.bg=a(e.bg,{type:"trans",color:"#ffffff",externalSrc:"",fit:"cover",fitX:"100",fitY:"100",position:"center center",positionX:"0",positionY:"0",repeat:"no-repeat",image:"",imageId:"",crossOriginVideo:!1,imageFromStream:!1,imageSourceType:"full",imageLib:"nothing",galleryType:"gallery",mpeg:"",ogv:"",webm:"",vimeo:"",youtube:"",mediaFilter:"none",video:{args:"",argsVimeo:"",dottedOverlay:"none",dottedOverlaySize:1,dottedColorA:"transparent",dottedColorB:"#000000",startAt:"",endAt:"",fitCover:!0,forceRewind:!0,loop:!0,pausetimer:!1,mute:!0,nextSlideAtEnd:!1,ratio:"16:9",speed:1,volume:0,startAfterTransition:!1},videoId:"",videoFromStream:!1}),void 0!==i&&void 0!==i.bg&&void 0!==i.bg.video&&(0<i.bg.video.dottedOverlay.indexOf("white")&&(i.bg.video.dottedColorB="rgba(255,255,255,255)"),0<=i.bg.video.dottedOverlay.indexOf("twoxtwo")?i.bg.video.dottedOverlay="1":0<=i.bg.video.dottedOverlay.indexOf("threexthree")&&(i.bg.video.dottedOverlay="2")),void 0!==i.bg.video&&void 0!==t&&(i.bg.video.loop=!0===i.bg.video.loop||void 0!==e&&void 0!==e.bg&&void 0!==e.bg.video&&("loopandnoslidestop"===e.bg.video.loop||"loop"===e.bg.video.loop||!0===e.bg.video.loop||"true"===e.bg.video.loop),i.bg.video.pausetimer=void 0===e.pausetimer||!0!==e.pausetimer&&!1!==e.pausetimer?void 0!==e&&void 0!==e.bg&&void 0!==e.bg.video&&"loop"===e.bg.video.loop:e.pausetimer,!0===i.bg.video.loop)&&!0===i.bg.video.nextSlideAtEnd&&(i.bg.video.loop=!1),i.thumb=a(e.thumb,{customThumbSrc:"",customThumbSrcId:"",customAdminThumbSrc:"",customAdminThumbSrcId:"",dimension:"orig"}),i.info=a(e.info,{params:[{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10}],description:""}),i.attributes=a(e.attributes,{title:"",titleOption:"media_library",class:"",data:"",id:"",attr:"",alt:"",altOption:"media_library",deeplink:""}),i.publish=a(e.publish,{from:"",to:"",state:"published"}),i.timeline=a(e.timeline,{stopOnPurpose:!1,delay:"Default",loop:{set:!1,repeat:"unlimited",start:2500,end:4500}}),i.timeline.loop=void 0===i.timeline.loop?{set:!1,repeat:"unlimited",start:2500,end:4500}:i.timeline.loop,i.slideChange=void 0!==i.timeline.transition||void 0===e.slideChange?function(e,t){var i=e.transition;if(t)return RVS._R.getSlideAnim_EmptyObject();var a=["duration","rotation","easeIn","easeOut","slots","transition"];void 0!==e.slots&&(e.slots=V(R(e.slots)));void 0!==e.slots&&(e.slots=V(R(e.slots)));"undefined"!==e.transition&&void 0!==e.transition||(e.transition=["fade"]);if("random"===e.transition[0]||"random-static"===e.transition[0]||"random-premium"===e.transition[0]||"random"===e.transition||"random-static"===e.transition||"random-premium"===e.transition){e.transition=["rndany"],e.slots=[1];try{e.duration=void 0===e.duration||void 0===e.duration[0]||e.duration<500||e.duration[0]<500?750:e.duration}catch(e){}}for(n in a)a.hasOwnProperty(n)&&(e[a[n]]=V(R(e[a[n]])));var r=!1;for(n in RVS.LIB.SLTR.basic)if(RVS.LIB.SLTR.basic.hasOwnProperty(n))for(var s in RVS.LIB.SLTR.basic[n]){if(r)continue;r=s===e.transition[0]}var o=_({key:"fade"==e.transition[0]||"default"==e.transition[0]?"fade":e.transition[0],slot:r?1:void 0!==e.slots&&void 0!==e.slots[0]&&"default"!==e.slots[0]?e.slots[0]:void 0});"3dcurtain-vertical"===e.transition[0]||"3dcurtain-horizontal"===e.transition[0]||"3dcurtain-vertical"===e.transition||"3dcurtain-horizontal"===e.transition?o.speed=void 0===e.duration[0]||"default"===e.duration[0]||"d"==e.duration[0]?500:parseInt(parseInt(e.duration[0])/3):void 0!==e.duration[0]&&"default"!==e.duration[0]&&(o.speed=e.duration[0]);"random"===o.speed&&(o.speed=1e3);void 0!==e.easeIn[0]&&"default"!==e.easeIn[0]&&(o.in.e=e.easeIn[0]);void 0!==e.easeOut[0]&&"default"!==e.easeOut[0]&&(o.out.e=e.easeOut[0]);void 0!==e.rotation[0]&&"default"!==e.rotation[0]&&0!==e.rotation[0]&&(o.in.r=e.rotation[0]);void 0!==e.rotation[0]&&"default"!==e.rotation[0]&&0!==e.rotation[0]&&(o.out.r=e.rotation[0]);if(void 0!==i&&Array.isArray(i)&&1<i.length){o.alt=[];for(var n=1;n<i.length;n++)o.alt.push(i[n])}return o}(i.timeline,t):a(e.slideChange,RVS._R.getSlideAnim_EmptyObject()),t&&void 0!==i.slideChange&&void 0!==i.slideChange.in&&1==i.slideChange.in.o&&delete i.slideChange.in.o,i.timeline.transition&&(delete i.timeline.duration,delete i.timeline.slots,delete i.timeline.easeIn,delete i.timeline.easeOut,delete i.timeline.transition,delete i.timeline.rotation),i.visibility=a(e.visibility,{hideAfterLoop:0,hideOnMobile:!1,hideFromNavigation:!1}),i.effects=a(e.effects,{parallax:"-",fade:"default",blur:"default",grayscale:"default"}),i.panzoom=a(e.panzoom,{set:!1,blurStart:0,blurEnd:0,duration:1e4,ease:"none",fitEnd:100,fitStart:100,xEnd:0,yEnd:0,xStart:0,yStart:0,rotateStart:0,rotateEnd:0}),i.seo=a(e.seo,{set:!1,link:"",linkHelp:"auto",slideLink:"nothing",target:"_self",z:"front",type:"regular",tag:"l"}),i.nav=a(e.nav,{arrows:{presets:{}},thumbs:{presets:{}},tabs:{presets:{}},bullets:{presets:{}}}),i},RVS.F.simplifySlide=function(e){return"zone"===e.type?jQuery.extend(!0,{},e):jQuery.extend(!0,{},RVS.F.simplifyObject(RVS.F.addSlideObj(void 0,!0),jQuery.extend(!0,{},e)))},RVS.F.simplifyAllSlide=function(e){for(var t in window.__Slides={},RVS.SLIDER.slideIDs)!RVS.SLIDER.slideIDs.hasOwnProperty(t)||!RVS.F.isNumeric(RVS.SLIDER.slideIDs[t])&&0<=RVS.SLIDER.slideIDs[t].indexOf("static")||(window.__Slides[RVS.SLIDER.slideIDs[t]]=RVS.F.simplifySlide(RVS.SLIDER[RVS.SLIDER.slideIDs[t]].slide))},RVS.F.expandSlide=function(e){return jQuery.extend(!0,RVS.F.addSlideObj(),e)},RVS.F.getImgWithCORS=function(e,t){URL&&"function"==typeof URL?new URL(t,window.location.href).origin!==window.location.origin&&(e.crossOrigin="anonymous"):console.warn("URL object is not available")},RVS.F.getSlideTransitionDefaults=_}(),RVS.S.ulDIM={width:0,height:0},function(){void 0===tpGS.SFXBounceLite&&(tpGS.SFXBounceLite=tpGS.CustomBounce.create("SFXBounceLite",{strength:.3,squash:1,squashID:"SFXBounceLite-squash"})),void 0===tpGS.SFXBounceSolid&&(tpGS.SFXBounceSolid=tpGS.CustomBounce.create("SFXBounceSolid",{strength:.5,squash:2,squashID:"SFXBounceSolid-squash"})),void 0===tpGS.SFXBounceStrong&&(tpGS.SFXBounceStrong=tpGS.CustomBounce.create("SFXBounceStrong",{strength:.7,squash:3,squashID:"SFXBounceStrong-squash"})),void 0===tpGS.SFXBounceExtrem&&(tpGS.SFXBounceExtrem=tpGS.CustomBounce.create("SFXBounceExtrem",{strength:.9,squash:4,squashID:"SFXBounceExtrem-squash"})),void 0===tpGS.BounceLite&&(tpGS.BounceLite=tpGS.CustomBounce.create("BounceLite",{strength:.3})),void 0===tpGS.BounceSolid&&(tpGS.BounceSolid=tpGS.CustomBounce.create("BounceSolid",{strength:.5})),void 0===tpGS.BounceStrong&&(tpGS.BounceStrong=tpGS.CustomBounce.create("BounceStrong",{strength:.7})),void 0===tpGS.BounceExtrem&&(tpGS.BounceExtrem=tpGS.CustomBounce.create("BounceExtrem",{strength:.9}));var F,l,d,S,r,s,D,a,o,n,e,x,t,c,p={width:0,height:0},u={left:0,top:0},i={x:0,y:0};function A(e){for(var t=e.querySelectorAll("img"),i=0;i<t.length;i++)t[i].setAttribute("draggable",!1)}function R(e){for(var t=e.querySelectorAll(".gm_bl_list li"),i=RVS.ENV.guide.tutorial,a=0;a<t.length;a++)i[a]&&(t[a].querySelector("a").setAttribute("href",i[a].url),t[a].querySelector("span").textContent=i[a].title)}function h(e,t){t=t.split(".");for(var i=0;i<t.length&&"object"==typeof e;i++)e=e[t[i]];return e}function V(e,t){var i='<div id="globalskin_colorrule_'+t+'">';null!==e&&(i=(i=(i+='<input type="text" value="'+e.alias+'" class="globalskin_alias easyinit sliderinput" data-r="skins.colors.'+t+'.alias">')+'<input class="my-color-field skininput easyinit" data-evt="updateAllSkinColors" data-evtparam="'+t+'" data-visible="true" data-editing="Global Skin Color" name="skin-color-'+t+'" data-mode="'+(function(e){var t,i=!1;for(t in e.ref)e.ref.hasOwnProperty(t)&&(i=!0===i||RVS.F.noGradient(e.ref[t].r));return i}(e)?"single":"full")+'" id="sr_skin_color_'+t+'" data-r="skins.colors.'+t+'.v" type="text" value="'+e.v+'">')+'<div style="margin-left:5px" data-evt="deleteSkinColor" data-evtparam="'+t+'" class="'+(t<1?"disabled":"")+' callEventButton basic_action_button onlyicon "><i class="material-icons">delete</i></div></div>',i=jQuery(i),RVS.ENV.skinColors.append(i),RVS.F.initTpColorBoxes(i.find(".my-color-field")))}function m(e){void 0!==window.initQuickGuide&&window.initQuickGuide.page!=window.initQuickGuide.active&&(RVS.F.updateEasyInputs({container:jQuery(".mcg_option_third_wraps"),trigger:"init",path:"settings."}),jQuery("#mcg_page_"+window.initQuickGuide.page).addClass("mcg_selected"),tpGS.gsap.fromTo("#mcg_page_"+window.initQuickGuide.page,.5,{x:-1===e?"-100%":"100%"},{x:"0%",ease:"power3.inOut"}),tpGS.gsap.fromTo("#mcg_page_"+window.initQuickGuide.active,.5,{x:"0%"},{x:-1===e?"100%":"-100%",ease:"power3.inOut",onComplete:function(){jQuery("#mcg_page_"+window.initQuickGuide.active).removeClass("mcg_selected"),window.initQuickGuide.active=window.initQuickGuide.page}}))}function k(e){1==RVS.S.TRTIS_initied||void 0!==e&&"init"!==e?"update"===e&&1==RVS.S.TRTIS_initied&&(clearTimeout(RVS.S.scrollUpdateTimer),RVS.S.scrollUpdateTimer=setTimeout(function(){RVS.C.rb.RSScroll("update"),jQuery("#the_right_toolbar_inner").RSScroll("update")},50)):(RVS.S.rb_ScrollX=0,RVS.S.rb_ScrollY=0,t=jQuery("#settings_sticky_info"),RVS.C.rb.RSScroll({wheelPropagation:!0,minScrollbarLength:100}),jQuery("#the_right_toolbar_inner").RSScroll({wheelPropagation:!0,suppressScrollX:!0,minScrollbarLength:100}).on("ps-scroll-y",function(){50<this.scrollTop?t.show():t.hide(),RVS.S.respInfoBar&&RVS.S.respInfoBar.toolbar&&null!==RVS.S.respInfoBar.toolbar[0]&&(RVS.S.respInfoBar.toolbar[0].style.display="none")}),RVS.C.rb.on("ps-scroll-x",function(){RVS.S.rb_ScrollX=i.x=this.scrollLeft,RVS.F.setRulers()}),RVS.C.rb.on("ps-scroll-y",function(){i.x=this.scrollLeft,i.y=this.scrollTop,RVS.S.rb_ScrollY=i.y=this.scrollTop,RVS.F.setRulers()}),RVS.S.TRTIS_initied=!0)}function y(e,t){"force"!==t&&!c&&void 0!==c||("flickr"===RVS.SLIDER.settings.sourcetype&&v(),"facebook"===RVS.SLIDER.settings.sourcetype&&_(),"youtube"!==RVS.SLIDER.settings.sourcetype)||L(),c=!1,RVS.DOC.trigger("updatesliderthumb")}function g(e){jQuery("rs-loader").css("background","").find("div").css("background","");var t=parseInt(RVS.SLIDER.settings.layout.spinner.type,10);if(NaN===t||t<6)r='<div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div>';else{var i,a=[10,0,4,2,5,9,0,4,4,2][t-6],r='<div class="rs-spinner-inner"';e=e||RVS.SLIDER.settings.layout.spinner.color,7===t?(-1!==e.search("#")?i=RSColor.processRgba(e):-1!==e.search("rgb")&&2<(i=RSColor.rgbValues(e)).length&&(i=RSColor.rgbString(i[0].trim(),i[1].trim(),i[2].trim())),i&&"string"==typeof e&&(r+=' style="border-top-color: '+(i=-1===(i=i.replace(")",", ")).search("rgba")?i.replace("rgb","rgba"):i)+"0.65); border-bottom-color: "+i+"0.15); border-left-color: "+i+"0.65); border-right-color: "+i+'0.15)"')):12===t&&(r+=' style="background:'+e+'"'),r+=">";for(var s=0;s<a;s++)0<s&&(r+=" "),r+='<span style="background:'+e+'"></span>';r+="</div>"}return r}function f(e){e=void 0===e?RVS.SLIDER.settings.layout.spinner.color:e;var t=RVS.SLIDER.settings.layout.spinner.type,i=(0!=t&&5!=t||(e="#ffffff"),jQuery("rs-loader"));0==t||1==t||2==t||5==t?i.css({backgroundColor:e}):3==t||4==t?(i.css({backgroundColor:"transparent"}),i.find("div").css({backgroundColor:e})):i.html(g(e))}function v(){var e,t=RVS.SLIDER.settings.source.flickr;"photosets"==t.type&&(""!=t.userURL&&""!=t.apiKey?(e={url:t.userURL,key:t.apiKey,count:t.count,set:t.photoSet},RVS.F.ajaxRequest("get_flickr_photosets",e,function(e){jQuery("#sr_src_flickr_photoset").html(e.data.html),RVS.F.setS2Option({select:jQuery("#sr_src_flickr_photoset"),selectValue:t.photoSet})})):(jQuery("#sr_src_flickr_photoset").html(""),RVS.F.setS2Option({select:jQuery("#sr_src_flickr_photoset"),selectValue:""})))}function _(){var e,t=RVS.SLIDER.settings.source.facebook;"album"==t.typeSource&&(""!=t.appId&&""!=t.page_id?(e={app_id:t.appId,page_id:t.page_id},RVS.F.ajaxRequest("get_facebook_photosets",e,function(e){jQuery("#sr_src_facebok_album").html(e.html),RVS.F.setS2Option({select:jQuery("#sr_src_facebok_album"),selectValue:t.album})})):(jQuery("#sr_src_facebok_album").html(""),RVS.F.setS2Option({select:jQuery("#sr_src_facebok_album"),selectValue:""})))}function L(){var e,t=RVS.SLIDER.settings.source.youtube;"playlist"==t.typeSource&&(""!=t.api&&""!=t.channelId?(e={api:t.api,id:t.channelId,playlist:t.playList},RVS.F.ajaxRequest("get_youtube_playlists",e,function(e){jQuery("#sr_src_youtube_playlist").html(e.data.html),""===t.playList&&(e=jQuery("#sr_src_youtube_playlist option").first(),t.playList=e[0].value),RVS.F.setS2Option({select:jQuery("#sr_src_youtube_playlist"),selectValue:t.playList})})):(jQuery("#sr_src_youtube_playlist").html(""),RVS.F.setS2Option({select:jQuery("#sr_src_youtube_playlist"),selectValue:""})))}function C(e){var t,i=!1,a={w:RVS.F.GW("d"),h:RVS.SLIDER.settings.size.height.d};for(t in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(t)&&(!i&&RVS.SLIDER.settings.size.custom[RVS.V.sizes[t]]&&(a.w=RVS.F.GW(RVS.V.sizes[t]),a.h=parseInt(RVS.SLIDER.settings.size.height[RVS.V.sizes[t]],0)),RVS.V.sizes[t]===e)&&(i=!0);return a}function w(e,t){var i=RVS.SLIDER.settings.size.custom[RVS.screen],a=C(RVS.screen),r=i?RVS.F.GW(RVS.screen):Math.min(a.w,RVS.ENV.grid_sizes[RVS.screen]),i=i?parseInt(RVS.SLIDER.settings.size.height[RVS.screen],0):r/a.w*a.h,a="fullscreen"===RVS.SLIDER.settings.layouttype?RVS.SLIDER.settings.size.minHeightFullScreen:RVS.SLIDER.settings.size.minHeight,s="100%",o=i/r,n=Math.max(RVS.C.rb[0].offsetWidth-40,r),l="carousel"===RVS.SLIDER.settings.type&&"v"===RVS.SLIDER.settings.carousel.orientation,o=(RVS.SLIDER.settings.carousel.justify&&"carousel"===RVS.SLIDER.settings.type?RVS.C.tRC.classList.add("_just_carousel_"):RVS.C.tRC.classList.remove("_just_carousel_"),a="none"!==a&&RVS.F.isNumeric()?a:0,a="fullscreen"===RVS.SLIDER.settings.layouttype?Math.max(Math.max(a,RVS.S.winh-RVS.ENV.globVerOffset-65),i):Math.max(a,i),a=RVS.SLIDER.settings.size.respectAspectRatio?Math.max(RVS.C.rb.width(),r)*o:a,RVS.F.updateMinSliderHeights(),a=Math.max(a,x),i=Math.max(i,x),r),d=parseInt(RVS.SLIDER.settings.layout.bg.padding,0)||0,s=(RVS.S.dim_offsets=RVS.F.sliderDimensionOffsets(),RVS.F.isNumeric(RVS.SLIDER.settings.size.maxWidth)&&0<RVS.SLIDER.settings.size.maxWidth&&(o=Math.min(parseInt(RVS.SLIDER.settings.size.maxWidth,0),r)+"px"),tpGS.gsap.set([F,".layer_grid"],{width:r+"px",maxWidth:"none",height:i+"px"}),tpGS.gsap.set(RVS.C.UL,{minWidth:parseInt(o,0)+parseInt(d,0)+"px",maxWidth:"none",width:s,minHeight:parseInt(a,0)+parseInt(d,0)}),RVS.F.CVERT()?(RVS.S.vertCarOff=40,RVS.S.ulDIM={width:RVS.C.UL.width(),height:Math.max(Math.min(RVS.S.winh-300,2*parseInt(RVS.SLIDER.settings.size.height[RVS.screen],0)),RVS.C.UL.height())}):(RVS.S.vertCarOff=0,RVS.S.ulDIM={width:RVS.C.UL.width(),height:RVS.C.UL.height()}),RVS.RMD="carousel"===RVS.SLIDER.settings.type?{width:l?n:r,height:i}:{width:RVS.S.ulDIM.width,height:RVS.S.ulDIM.height},Math.max(0,RVS.S.ulDIM.width/2-(l?n:r)/2)),a=Math.max(0,(RVS.S.ulDIM.height-i)/2),d=(tpGS.gsap.set(RVS.C.UL,{minHeight:RVS.S.ulDIM.height+RVS.S.dim_offsets.carouseloffset+RVS.S.dim_offsets.navtop+RVS.S.dim_offsets.navbottom,minWidth:l?n:o}),a=a+RVS.S.dim_offsets.carouseltop+RVS.S.dim_offsets.navtop,s=Math.max(0,s),a=Math.max(0,a),document.getElementById("slide_"+RVS.S.slideId));if("carousel"===RVS.SLIDER.settings.type?(d&&tpGS.gsap.set(d,{width:l?n:r,height:i,top:a,left:s,overflow:"hidden",borderRadius:RVS.SLIDER.settings.carousel.borderRadius}),tpGS.gsap.set([".layer_grid"],{x:0,y:0,left:l?(n-r)/2:0,top:"0px"}),tpGS.gsap.set(F,{x:0,y:0,left:s+"px",top:a}),tpGS.gsap.set(".slots_wrapper",{top:0,left:0,maxWidth:"none",maxHeight:"none"})):(d&&tpGS.gsap.set(d,{width:"100%",height:"100%",top:0,left:0,overflow:"visible",borderRadius:0}),tpGS.gsap.set([F,".layer_grid"],{x:0,y:0,left:s+"px",top:a}),tpGS.gsap.set(".slots_wrapper",{top:0,left:0,maxWidth:Math.max(RVS.S.ulDIM.width,D.width())+"px",maxHeight:RVS.S.ulDIM.height+"px"})),e&&O(),t&&RVS.F.updateScreenShrinks(),RVS.F.updateContentDeltas(),"carousel"===RVS.SLIDER.settings.type){var S={width:l?n:r,height:i,top:a,left:s},c=RVS.SLIDER.settings,p=jQuery("#fake_carousel_elements"),u=0,R=1,V="center"===c.carousel.horizontal?2:1,m=0,y=0,g=c.carousel,h=RVS.SLIDER.slideIDs.length-1;jQuery(".fakecarouselslide").hide();for(var f=1;f<c.carousel.maxItems;f++){var v,_,L=jQuery("#fakecarouselslide_"+f),w=(0===L.length&&(L=jQuery('<div class="fakecarouselslide" id="fakecarouselslide_'+f+'"></div>'),p.append(L)),m=f%2==1?m+1:m,v={width:S.width,height:S.height,top:S.top,left:S.left,borderRadius:c.carousel.borderRadius,display:"block"},parseInt(c.carousel.scaleDown,0)/100),b=parseInt(c.carousel.maxRotation,0),I=parseInt(c.carousel.maxOpacity,0)/100;trans="left",dim="width",rot="rotationY","v"==c.carousel.orientation&&(trans="top",dim="height",rot="rotationX"),c.carousel.fadeOut?c.carousel.varyFade?v.autoAlpha=1-Math.abs(I/Math.ceil(c.carousel.maxItems/V)*m):v.autoAlpha=1<=m||m<=-1?I:I+(1-I)*(1-Math.abs(m)):v.autoAlpha=Math.abs(m)<Math.ceil(c.carousel.maxItems/V)?1:0,c.carousel.scale&&void 0!==c.carousel.scaleDown&&0<w?(c.carousel.varyScale?v.scale=1-Math.abs((1-w)/Math.ceil(c.carousel.maxItems/V)*m):v.scale=1<=m*R||m*R<=-1?w:100-w*Math.abs(m),y=m*(v[dim]-v[dim]*v.scale)/2):v.scale=1,u=f%2==1?parseFloat(u)+parseFloat(S[dim])+parseInt(c.carousel.space,0)*(c.carousel.offsetScale?v.scale:1):u,v[trans]=parseFloat(S[trans])+R*u,"off"===g.spin&&(v.rotationX=0,v.rotation=0,v.rotationY=0),"off"!==g.spin?(g.spinAngle=parseFloat(g.spinAngle),0===_&&(g.spinAngle=1),g.space=parseFloat(g.space),v.scale=1,I=S[dim]/2,_=Math.max(Math.min(g.spinAngle,360/h),-360/h),w=I/Math.sin(_/2*Math.PI/180),w=(Math.sqrt(w*w-I*I)+g.space)*Math.sign(_),"2d"===g.spin&&"h"===g.orientation?w+=(_<=0?0:1)*S.height:"2d"===g.spin&&(w+=(_<=0?0:1)*S.width),Math.floor(g.maxItems/2),I=Math.floor(g.maxItems/2),v[trans]=(I-Math.floor(g.maxItems/2))*(parseFloat(S[dim])+parseInt(c.carousel.space))+S[trans],"2d"===g.spin?(v.rotation=_*(f>Math.floor(g.maxItems/2)?f-Math.floor(g.maxItems/2):f-Math.ceil(g.maxItems/2)),"h"===g.orientation?v.transformOrigin="center "+w+"px 0":v.transformOrigin=w+"px center 0",v.rotationX=0,v.rotationY=0):(v.transformOrigin="center center "+w+"px","h"===g.orientation?(v.rotationY=_*(f>Math.floor(g.maxItems/2)?f-Math.floor(g.maxItems/2):f-Math.ceil(g.maxItems/2)),v.rotation=0,v.rotationX=0):(v.rotationX=_*(f>Math.floor(g.maxItems/2)?f-Math.floor(g.maxItems/2):f-Math.ceil(g.maxItems/2)),v.rotation=0,v.rotationY=0))):c.carousel.rotation&&void 0!==c.carousel.maxRotation&&0!=Math.abs(b)?(c.carousel.varyRotate?(v[rot]=Math.abs(b)-Math.abs((1-Math.abs(1/Math.ceil(c.carousel.maxItems/V)*m))*b),v.autoAlpha=90<Math.abs(v[rot])?0:v.autoAlpha):v[rot]=1<=m*R||m*R<=-1?b:Math.abs(m)*b,v[rot]=v[rot]*R*-1):v[rot]=0,void 0!==v.scale&&1!==v.scale&&(v[trans]=R<0?v[trans]+y:v[trans]-y),v.zIndex=Math.round(100-Math.abs(5*m)),v.force3D=!0,v.transformStyle="flat",v.transformPerspective=1200,"off"===g.spin&&(v.transformOrigin="v"==c.carousel.orientation?"50% 50%":"50% "+c.carousel.vertical),tpGS.gsap.set(L,v),R*=-1}}else jQuery(".fakecarouselslide").remove();RVS.F.sliderNavPositionUpdate({type:"arrows"}),RVS.F.sliderNavPositionUpdate({type:"bullets"}),RVS.F.sliderNavPositionUpdate({type:"tabs"}),RVS.F.sliderNavPositionUpdate({type:"thumbs"}),k("update"),RVS.F.setRulers(),(void 0===RVS.S.firstPreparation||RVS.S.firstPreparation<2)&&(RVS.S.firstPreparation=void 0===RVS.S.firstPreparation?0:RVS.S.firstPreparation,RVS.S.firstPreparation++,2==RVS.S.firstPreparation)&&RVS.F.expandCollapseTimeLine(!0,"open",!0)}function O(){for(var e in RVS.V.sizes){var t,i,a;RVS.V.sizes.hasOwnProperty(e)&&(e=RVS.V.sizes[e],a=RVS.SLIDER.settings.size.custom[e],t=C(e),i=a?RVS.F.GW(e):Math.min(t.w,RVS.ENV.grid_sizes[e]),a=a?parseInt(RVS.SLIDER.settings.size.height[e],0):i/t.w*t.h,i=Math.round(i),a=Math.round(a),jQuery("#sr_size_width_"+e).val(i+"px"),jQuery("#sr_size_height_"+e).val(a+"px"))}var r="none"===RVS.SLIDER.settings.size.maxWidth||0===RVS.SLIDER.settings.size.maxWidth||""===RVS.SLIDER.settings.size.maxWidth?"none":RVS.SLIDER.settings.size.maxWidth;jQuery("#sr_size_maxwidth").val(r),jQuery("#sr_size_minheight").val(RVS.SLIDER.settings.size.minHeight),jQuery("#sr_size_minheight_fs").val(RVS.SLIDER.settings.size.minHeightFullScreen),void 0!==n&&(n.innerHTML=Math.round(RVS.F.GW(RVS.screen))+"px")}function b(a,r){requestAnimationFrame(function(){tpGS.gsap.set(RVS.S.ulInner,{backgroundImage:""});var e=RVS.SLIDER.settings,t=1==a&&void 0!==r?window.RSColor.get(r):window.RSColor.get(e.layout.bg.color),i=(1!=a||void 0===r)&&e.layout.bg.useImage&&void 0!==e.layout.bg.image?e.layout.bg.image:"";""!==i?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundPosition:e.layout.bg.position,"background-size":e.layout.bg.fit,backgroundRepeat:e.layout.bg.repeat,backgroundImage:"url("+i+")"}):0<=t.indexOf("gradient")?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{background:t}):"transparent"!==t?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundColor:t,backgroundImage:"none"}):tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundColor:"transparent",backgroundImage:RVS.S.defaultMainPNG,backgroundRepeat:"repeat","background-size":"16px 16px"}),I(),setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery("#slider_used_library"),trigger:"init"}),RVS.F.updateEasyInputs({container:jQuery("#slider_used_library_lists"),trigger:"init"}),RVS.F.updateEasyInputs({container:jQuery("#slider_bg_inputfields"),trigger:"init"})},100)})}function I(){RVS.C.sliderOverlay=void 0===RVS.C.sliderOverlay?document.getElementById("slider_overlay"):RVS.C.sliderOverlay,RVS.C.sliderOverlay.style.backgroundImage=RVS._R.createOverlay("slider",RVS.SLIDER.settings.layout.bg.dottedOverlay,RVS.SLIDER.settings.layout.bg.dottedOverlaySize,{0:RVS.SLIDER.settings.layout.bg.dottedColorA,1:RVS.SLIDER.settings.layout.bg.dottedColorB})}function T(){requestAnimationFrame(P)}function P(){var t,i,a=RVS.SLIDER.settings.general.progressbar,e=(RVS.C.pbar=void 0===RVS.C.pbar?jQuery("#rev_progress_bar_wrap"):RVS.C.pbar,RVS.C.pbar_lc=void 0===RVS.C.pbar_lc?document.getElementById("progressbar_selector_left-center"):RVS.C.pbar_lc,RVS.C.pbar_rc=void 0===RVS.C.pbar_rc?document.getElementById("progressbar_selector_right-center"):RVS.C.pbar_rc,RVS.C.pbar_ct=void 0===RVS.C.pbar_ct?document.getElementById("progressbar_selector_center-top"):RVS.C.pbar_ct,RVS.C.pbar_cb=void 0===RVS.C.pbar_cb?document.getElementById("progressbar_selector_center-bottom"):RVS.C.pbar_cb,RVS.C.pbar_cc=void 0===RVS.C.pbar_cc?document.getElementById("progressbar_selector_center-center"):RVS.C.pbar_cc,RVS.C.pbar_lc=void 0===RVS.C.pbar_lc?document.getElementById("progressbar_selector_left-center"):RVS.C.pbar_lc,("grid"===a.alignby&&void 0!==RVS.C.layergrid?RVS.C.layergrid:RVS.S.ulInner).append(RVS.C.pbar),"horizontal"===a.style?(tpGS.gsap.set([RVS.C.pbar_lc,RVS.C.pbar_rc],{display:"block"}),tpGS.gsap.set([RVS.C.pbar_ct,RVS.C.pbar_cb,RVS.C.pbar_cc],{display:"none"})):"vertical"===a.style?(tpGS.gsap.set([RVS.C.pbar_ct,RVS.C.pbar_cb],{display:"block"}),tpGS.gsap.set([RVS.C.pbar_lc,RVS.C.pbar_rc,RVS.C.pbar_cc],{display:"none"})):tpGS.gsap.set([RVS.C.pbar_ct,RVS.C.pbar_cb,RVS.C.pbar_lc,RVS.C.pbar_rc,RVS.C.pbar_cc],{display:"block"}),"grid"===a.alignby?RVS.S.lgw:RVS.S.ulDIM.width),r="grid"===a.alignby?RVS.S.lgh:RVS.S.ulDIM.height;a.set&&"hero"!==RVS.SLIDER.settings.style?("horizontal"===a.style||"vertical"===a.style?(RVS.C.pbar[0].innerHTML="module"===a.basedon?'<div class="rev_progress_bar"></div><div class="rev_progress_bar"></div><div class="rev_progress_bgs"><div class="rev_progress_bg"></div><div class="rev_progress_bg"></div><div class="rev_progress_bg"></div><div class="rev_progress_bg"></div></div><div class="rev_progress_gap"></div><div class="rev_progress_gap"></div><div class="rev_progress_gap"></div>':'<div class="rev_progress_bar"></div>',RVS.C.pbars=RVS.C.pbar[0].getElementsByClassName("rev_progress_bar"),RVS.C.pbbgs=RVS.C.pbar[0].getElementsByClassName("rev_progress_bg"),RVS.C.pbgaps=RVS.C.pbar[0].getElementsByClassName("rev_progress_gap"),"horizontal"===a.style?(t=Math.ceil(e/4),i=Math.ceil((e-3*parseInt(a.gapsize,0))/4),tpGS.gsap.set(RVS.C.pbar,{top:"top"===a.vertical?a.y:"center"===a.vertical?"50%":"auto",bottom:"top"===a.vertical||"center"===a.vertical?"auto":a.y,y:"center"===a.vertical?a.y:0,x:0,left:0,right:"auto",width:"100%",height:a.size,marginTop:("grid"===a.alignby||"bottom"!==a.vertical&&a.vertical,0),backgroundColor:"module"===a.basedon?"transparent":a.bgcolor}),tpGS.gsap.set(RVS.C.pbars,{backgroundColor:a.color,y:0,x:"module"===a.basedon?a.gap?function(e){return("right"===a.horizontal?3-e:e)*(i+parseInt(a.gapsize,0))}:function(e){return("right"===a.horizontal?3-e:e)*t}:"right"===a.horizontal?t:0,width:"module"===a.basedon?a.gap?i+"px":"25%":"75%",height:"100%"}),"module"===a.basedon&&tpGS.gsap.set(RVS.C.pbbgs,{backgroundColor:a.bgcolor,y:0,x:"module"===a.basedon?a.gap?function(e){return e*(i+parseInt(a.gapsize,0))}:function(e){return e*t}:0,width:"module"===a.basedon?a.gap?i+"px":"25%":"75%",height:"100%"}),tpGS.gsap.set(RVS.C.pbgaps,{backgroundColor:a.gapcolor,height:"100%",width:"module"===a.basedon&&a.gap?a.gapsize+"px":0,y:0,x:"module"===a.basedon&&a.gap?function(e){return(e+1)*i+parseInt(a.gapsize,0)*e}:0})):"vertical"===a.style&&(t=r/4,i=(r-3*parseInt(a.gapsize,0))/4,tpGS.gsap.set(RVS.C.pbar,{left:"left"===a.horizontal?a.x:"center"===a.horizontal?"50%":"auto",right:"left"===a.horizontal||"center"===a.horizontal?"auto":a.x,x:"center"===a.horizontal?a.x:0,y:(a.alignby,0),top:0,bottom:"auto",height:"100%",width:a.size,marginLeft:("grid"===a.alignby||"left"!==a.horizontal&&a.horizontal,0),backgroundColor:"module"===a.basedon?"transparent":a.bgcolor}),tpGS.gsap.set(RVS.C.pbars,{backgroundColor:a.color,y:"module"===a.basedon?a.gap?function(e){return("bottom"===a.vertical?3-e:e)*(i+parseInt(a.gapsize,0))}:function(e){return("bottom"===a.vertical?3-e:e)*t}:"bottom"===a.vertical?t:0,height:"module"===a.basedon?a.gap?i+"px":"25%":"75%",width:"100%"}),"module"===a.basedon&&tpGS.gsap.set(RVS.C.pbbgs,{backgroundColor:a.bgcolor,y:"module"===a.basedon?a.gap?function(e){return e*(i+parseInt(a.gapsize,0))}:function(e){return e*t}:0,height:"module"===a.basedon?a.gap?i+"px":"25%":"75%",width:"100%"}),tpGS.gsap.set(RVS.C.pbgaps,{backgroundColor:a.gapcolor,width:"100%",height:"module"===a.basedon&&a.gap?a.gapsize+"px":0,x:0,y:"module"===a.basedon&&a.gap?function(e){return(e+1)*i+parseInt(a.gapsize,0)*e}:0}))):(RVS.C.pbar[0].innerHTML='<canvas width="'+2*a.radius+'" height="'+2*a.radius+'" style="position:absolute" class="rev_progress_bar"></canvas>',RVS.C.pbars=RVS.C.pbar[0].getElementsByClassName("rev_progress_bar")[0],tpGS.gsap.set(RVS.C.pbar,{top:"top"===a.vertical?a.y:"center"===a.vertical?"50%":"auto",bottom:"top"===a.vertical||"center"===a.vertical?"auto":a.y,left:"left"===a.horizontal?a.x:"center"===a.horizontal?"50%":"auto",right:"left"===a.horizontal||"center"===a.horizontal?"auto":a.x,y:"center"===a.vertical?a.y:0,x:"center"===a.horizontal?a.x:0,width:2*a.radius,height:2*a.radius,marginTop:"bottom"===a.vertical||"top"===a.vertical?0:0-a.radius,marginLeft:"left"===a.horizontal||"right"===a.horizontal?0:0-a.radius,backgroundColor:"transparent"}),j()),RVS.C.pbar.removeClass("deactivated")):RVS.C.pbar.addClass("deactivated")}function j(e){var t=RVS.SLIDER.settings.general.progressbar,i=RVS.C.pbars.getContext("2d"),a=parseInt(t.radius),r=parseInt(t.radius),s="cw"!==t.style?294:64;i.lineCap="round",i.clearRect(0,0,2*t.radius,2*t.radius),i.beginPath(),i.arc(a,r,t.radius-parseInt(t.size,0),Math.PI/180*270,Math.PI/180*630),i.strokeStyle=(void 0!==e&&void 0!==e.bgcolor?e:t).bgcolor,i.lineWidth=parseInt(t.size,0)-1,i.stroke(),i.beginPath(),i.strokeStyle=(void 0!==e&&void 0!==e.color?e:t).color,i.lineWidth=parseInt(t.size,0),i.arc(a,r,t.radius-parseInt(t.size,0),Math.PI/180*270,Math.PI/180*(270+s),"cw"!==t.style),i.stroke()}function M(e,t,i){switch(e){case"progressgapcolor":"horizontal"!==RVS.SLIDER.settings.general.progressbar.style&&"vertical"!==RVS.SLIDER.settings.general.progressbar.style||tpGS.gsap.set(RVS.C.pbgaps,{bakgroundColor:t});break;case"sliderprogresscolor":"horizontal"===RVS.SLIDER.settings.general.progressbar.style||"vertical"===RVS.SLIDER.settings.general.progressbar.style?tpGS.gsap.set(RVS.C.pbars,{background:t}):j({color:t});break;case"sliderprogresscolorbg":"horizontal"===RVS.SLIDER.settings.general.progressbar.style||"vertical"===RVS.SLIDER.settings.general.progressbar.style?tpGS.gsap.set(RVS.C.pbar,{background:t}):j({bgcolor:t});break;case"sliderbgcolor":i?b():(tpGS.gsap.set(RVS.C.UL,{background:t}),b(!0,t));break;case"sliderTabBgColor":RVS.F.bgUpdate("tabs",t);break;case"sliderThumbBgColor":RVS.F.bgUpdate("thumbs",t);break;case"module_spinner_color":f(t)}}function z(e,t,i,a,r,s){var o=!1;if(void 0!==t?window.lastColorEditjObj=jQuery(t):(void 0!==window.lastColorEditjObj&&(i=window.RSColor.get(window.lastColorEditjObj.val())),o=!0),void 0!==i&&(1==window.lastColorEditjObj[0].dataset.navcolor?RVS.F.drawNavigation({type:window.lastColorEditjObj[0].dataset.evtparam,color:i,attribute:window.lastColorEditjObj[0].name}):M(window.lastColorEditjObj[0].name,i,o),s)&&!0!==o)for(var n in s.ref)"slider"===s.ref[n].type&&M(s.ref[n].inpname,i,o),"navstyle"===s.ref[n].type&&RVS.F.drawNavigation({type:s.ref[n].evtparam,color:i,attribute:s.ref[n].inpname}),"slider"!==s.ref[n].type&&"navstyle"!==s.ref[n].type||!r||(RVS.F.updateSliderObj({path:s.ref[n].r,val:i}),0<(n=jQuery("input[name="+s.ref[n].inpname+"]")).length&&(n[0].value=i,n.rsColorPicker("refresh")))}function H(e){var t={};return t.addOns=jQuery.extend(!0,{},e.addOns)||{},t.version=RVS.ENV.revision,t.alias=E(e.alias,""),t.pakps=E(e.pakps,!1),t.shortcode=E(e.shortcode,""),t.type=E(e.type,"standard"),t.layouttype=E(e.layouttype,"fullwidth"),t.sourcetype=E(e.sourcetype,"gallery"),t.title=E(e.title,"New Slider"),t.googleFont=E(e.googleFont,[]),t.id=E(e.id,""),t.class=E(e.class,""),t.wrapperclass=E(e.wrapperclass,""),t.snap=E(e.snap,{adjust:"none",snap:!1,helpLines:!1,gap:20}),t.source=E(e.source,{gallery:{},post:{excerptLimit:55,maxPosts:30,fetchType:"cat_tag",category:"",sortBy:"ID",types:"post",list:"",sortDirection:"DESC",subType:"post"},woo:{excerptLimit:55,maxProducts:30,featuredOnly:!1,inStockOnly:!1,category:"",sortBy:"ID",types:"product",sortDirection:"DESC",regPriceFrom:"",regPriceTo:"",salePriceFrom:"",salePriceTo:""},instagram:{count:8,hashTag:"",transient:1200,type:"user",userId:"",token_source:"account",connect_with:""},facebook:{album:"",appId:"",appSecret:"",count:8,transient:1200,typeSource:"timeline",token_source:"account",connect_with:"",page_id:""},flickr:{apiKey:"",count:8,galleryURL:"",groupURL:"",photoSet:"",transient:1200,type:"publicphotos",userURL:""},twitter:{accessSecret:"",accessToken:"",consumerKey:"",consumerSecret:"",count:8,excludeReplies:!1,imageOnly:!1,includeRetweets:!1,transient:1200,userId:""},vimeo:{albumId:"",channelName:"",count:8,transient:1200,groupName:"",typeSource:"user",userName:""},youtube:{api:"",channelId:"",count:8,playList:"",transient:1200,typeSource:"channel"}}),void 0!==t.source.facebook&&delete t.source.facebook.pageURL,void 0!==t.source&&void 0!==t.source.post&&-1==(""+t.source.post.excerptLimit).indexOf("chars")&&0<=(""+t.source.post.excerptLimit).indexOf("char")&&(t.source.post.excerptLimit=t.source.post.excerptLimit.replace("char","words")),void 0!==t.source&&void 0!==t.source.woo&&-1==(""+t.source.woo.excerptLimit).indexOf("chars")&&0<=(""+t.source.woo.excerptLimit).indexOf("char")&&(t.source.woo.excerptLimit=t.source.woo.excerptLimit.replace("char","words")),"youtube"===t.sourcetype&&(""===t.source.youtube.count&&(t.source.youtube.count=8),""===t.source.youtube.channelId)&&(t.source.youtube.channelId="UCpVm7bg6pXKo1Pr6k5kxG9A"),"vimeo"===t.sourcetype&&""===t.source.vimeo.count&&(t.source.vimeo.count=8),"twitter"===t.sourcetype&&""===t.source.twitter.count&&(t.source.twitter.count=8),"flickr"===t.sourcetype&&""===t.source.flickr.count&&(t.source.flickr.count=8),"facebook"===t.sourcetype&&""===t.source.facebook.count&&(t.source.facebook.count=8),t.def=E(e.def,{intelligentInherit:!0,autoResponsive:!0,responsiveChilds:!0,responsiveOffset:!0,transition:"fade",transitionDuration:300,delay:9e3,background:{fit:"cover",fitX:100,fitY:100,position:"center center",positionX:0,positionY:0,repeat:"no-repeat"},panZoom:{set:!1,blurStart:0,blurEnd:0,duration:1e4,ease:"none",fitEnd:100,fitStart:100,xEnd:0,yEnd:0,xStart:0,yStart:0,rotateStart:0,rotateEnd:0}}),t.def.intelligentInherit=void 0===t.def.intelligentInherit||t.def.intelligentInherit,t.def.autoResponsive=void 0===t.def.autoResponsive||t.def.autoResponsive,t.def.responsiveChilds=void 0===t.def.responsiveChilds||t.def.responsiveChilds,t.def.responsiveOffset=void 0===t.def.responsiveOffset||t.def.responsiveOffset,t.size=E(e.size,{enableUpscaling:!1,respectAspectRatio:!1,disableForceFullWidth:!1,custom:{d:!0,n:!1,t:!1,m:!1},minHeightFullScreen:"",minHeight:"",maxWidth:0,maxHeight:0,fullScreenOffsetContainer:"",fullScreenOffset:"",width:{d:1240,n:1024,t:778,m:480},height:{d:900,n:768,t:960,m:720},editorCache:{d:0,n:0,t:0,m:0},overflow:!1,useFullScreenHeight:!0,overflowHidden:!1,gridEQModule:!1,forceOverflow:!1,keepBPHeight:!1,ignoreHeightChanges:!0}),t.size.editorCache=void 0===t.size.editorCache?{d:0,n:0,t:0,m:0}:t.size.editorCache,t.size.editorCache.d=(0===t.size.editorCache.d?t.size.height:t.size.editorCache).d,t.size.editorCache.n=(0===t.size.editorCache.n?t.size.height:t.size.editorCache).n,t.size.editorCache.t=(0===t.size.editorCache.t?t.size.height:t.size.editorCache).t,t.size.editorCache.m=(0===t.size.editorCache.m?t.size.height:t.size.editorCache).m,t.codes=E(e.codes,{css:"",javascript:""}),t.carousel=E(e.carousel,{orientation:"h",prevNextVis:"50px",justify:!1,justifyMaxWidth:!1,snap:!0,borderRadius:0,borderRadiusUnit:"px",ease:"power3.inOut",fadeOut:!0,scale:!1,offsetScale:!1,horizontal:"center",vertical:"center",infinity:!1,maxItems:3,maxRotation:0,maxOpacity:100,paddingTop:0,paddingBottom:0,rotation:!1,scaleDown:50,space:0,speed:800,stretch:!1,varyFade:!1,varyRotate:!1,varyScale:!1,showAllLayers:"false",skewX:0,skewY:0,spin:"off",spinAngle:0,overshoot:!1}),t.carousel.showAllLayers="true"===t.carousel.showAllLayers||!0===t.carousel.showAllLayers?"all":t.carousel.showAllLayers,t.hero=E(e.hero,{activeSlide:-1}),t.layout=E(e.layout,{bg:{color:"transparent",padding:0,dottedOverlay:"none",dottedOverlaySize:1,dottedColorA:"transparent",dottedColorB:"#000000",shadow:0,useImage:!1,image:"",imageSourceType:"full",fit:"cover",position:"center center",repeat:"no-repeat"},spinner:{color:"#ffffff",type:"off"},position:{marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,align:"center",fixedOnTop:!1,addClear:!1}}),void 0!==t&&void 0!==t.layout&&void 0!==t.layout.bg&&(0<t.layout.bg.dottedOverlay.indexOf("white")&&(t.layout.bg.dottedColorB="rgba(255,255,255,255)"),0<=t.layout.bg.dottedOverlay.indexOf("twoxtwo")?t.layout.bg.dottedOverlay="1":0<=t.layout.bg.dottedOverlay.indexOf("threexthree")&&(t.layout.bg.dottedOverlay="2")),t.visibility=E(e.visibility,{hideSelectedLayersUnderLimit:0,hideAllLayersUnderLimit:0,hideSliderUnderLimit:0}),t.general=E(e.general,{slideshow:{slideShow:!0,stopOnHover:!1,stopSlider:!1,stopAfterLoops:0,stopAtSlide:1,shuffle:!1,loopSingle:!1,viewPort:!1,viewPortStart:"wait",viewPortArea:RVS.F.cToResp({default:"200px"}),presetSliderHeight:!1,initDelay:0,waitForInit:!1},progressbar:{set:!1,alignby:"slider",style:"horizontal",size:"5px",radius:10,vertical:"bottom",horizontal:"left",x:0,y:0,color:"rgba(255,255,255,0.5)",bgcolor:"transparent",basedon:"slide",gapsize:0,gap:!1,gapcolor:"rgba(255,255,255,0.5)",reset:"reset",visibility:{d:!0,m:!0,n:!0,t:!0}},firstSlide:{set:!1,duration:300,slotAmount:7,type:"fade",alternativeFirstSlideSet:!1,alternativeFirstSlide:1},icache:"default",DPR:"dpr",observeWrap:!1,layerSelection:!1,lazyLoad:"none",nextSlideOnFocus:!1,disableFocusListener:!1,enableurlhash:!1,disableOnMobile:!1,autoPlayVideoOnMobile:!0,disablePanZoomMobile:!1,useWPML:!1,perspective:600,perspectiveType:"global"}),void 0!==t.general.progressbar&&(void 0!==t.general.progressbar.height&&(t.general.progressbar.size=t.general.progressbar.height,delete t.general.progressbar.height),void 0!==t.general.progressbar.position)&&(t.general.progressbar.vertical=t.general.progressbar.position,delete t.general.progressbar.position),void 0===t.general.perspectiveType&&(t.general.perspectiveType="local"),void 0===t.general.perspective&&(t.general.perspective=600),"object"!=typeof t.general.slideshow.viewPortArea&&(t.general.slideshow.viewPortArea=RVS.F.cToResp({default:t.general.slideshow.viewPortArea})),void 0!==e&&void 0!==e.nav&&void 0!==e.nav.swipe&&(e.nav.swipe.setMobileCarousel=void 0===e.nav.swipe.setMobileCarousel||e.nav.swipe.setMobileCarousel,e.nav.swipe.setDesktopCarousel=void 0===e.nav.swipe.setDesktopCarousel||e.nav.swipe.setDesktopCarousel),t.nav=E(e.nav,{preview:{width:50,height:100},swipe:{set:!1,setOnDesktop:!1,setMobileCarousel:!0,setDesktopCarousel:!0,blockDragVertical:!1,direction:"horizontal",minTouch:1,velocity:75},keyboard:{direction:"horizontal",set:!1},mouse:{set:"off",reverse:"default",viewport:50,calldelay:1e3,threshold:50},arrows:{set:!1,rtl:!1,animSpeed:"1000ms",animDelay:"1000ms",style:"1000",preset:"default",presets:{},alwaysOn:!0,hideDelay:200,hideDelayMobile:1200,hideOver:!1,hideOverLimit:0,hideUnder:!1,hideUnderLimit:778,left:{anim:"fade",horizontal:"left",vertical:"center",offsetX:30,offsetY:0,align:"slider"},right:{anim:"fade",horizontal:"right",vertical:"center",offsetX:30,offsetY:0,align:"slider"}},thumbs:{anim:"fade",animSpeed:"1000ms",animDelay:"1000ms",set:!1,rtl:!1,style:"2000",preset:"default",presets:{},alwaysOn:!0,hideDelay:200,hideDelayMobile:1200,hideOver:!1,hideOverLimit:0,hideUnder:!1,hideUnderLimit:778,spanWrapper:!1,horizontal:"center",vertical:"bottom",amount:5,direction:"horizontal",height:50,width:100,widthMin:100,innerOuter:"inner",offsetX:0,offsetY:20,space:5,align:"slider",padding:5,wrapperColor:"transparent",mhoffset:0,mvoffset:0},tabs:{anim:"fade",animSpeed:"1000ms",animDelay:"1000ms",set:!1,rtl:!1,style:"4000",preset:"default",presets:{},alwaysOn:!0,hideDelay:200,hideDelayMobile:1200,hideOver:!1,hideOverLimit:0,hideUnder:!1,hideUnderLimit:778,spanWrapper:!1,horizontal:"center",vertical:"bottom",amount:5,direction:"horizontal",height:50,width:100,widthMin:100,innerOuter:"inner",offsetX:0,offsetY:20,space:5,align:"slider",padding:5,wrapperColor:"transparent",mhoffset:0,mvoffset:0},bullets:{anim:"fade",animSpeed:"1000ms",animDelay:"1000ms",set:!1,rtl:!1,style:"3000",preset:"default",presets:{},alwaysOn:!0,horizontal:"center",vertical:"bottom",direction:"horizontal",offsetX:0,offsetY:20,align:"slider",space:5,hideDelay:200,hideDelayMobile:1200,hideOver:!1,hideOverLimit:0,hideUnder:!1,hideUnderLimit:778}}),void 0!==t.nav&&(void 0===t.nav.arrows||""!=t.nav.arrows.style&&null!=t.nav.arrows.style||(t.nav.arrows.style="1000"),void 0===t.nav.thumbs||""!=t.nav.thumbs.style&&null!=t.nav.thumbs.style||(t.nav.thumbs.style="2000"),void 0===t.nav.bullets||""!=t.nav.bullets.style&&null!=t.nav.bullets.style||(t.nav.bullets.style="3000"),void 0===t.nav.tabs||""!=t.nav.tabs.style&&null!=t.nav.tabs.style||(t.nav.tabs.style="4000")),t.troubleshooting=E(e.troubleshooting,{alternateImageType:"off",alternateURL:"",jsNoConflict:!1,jsInBody:!1,outPutFilter:"none",simplify_ie8_ios4:!1}),t.parallax=E(e.parallax,{set:!1,setDDD:!1,disableOnMobile:!1,levels:[5,10,15,20,25,30,35,40,45,46,47,48,49,50,51,30],ddd:{BGFreeze:!1,layerOverflow:!1,overflow:!1,shadow:!1,zCorrection:65},mouse:{speed:0,bgSpeed:0,layersSpeed:0,origo:"slidercenter",type:"scroll",omulti:1,smulti:1,env:"single",dir:"same"}}),t.modal=E(e.modal,{bodyclass:"",horizontal:"center",vertical:"middle",cover:!0,allowPageScroll:!1,coverColor:"rgba(0,0,0,0.5)",coverSpeed:1e3}),void 0!==t.modal&&(t.modal.coverSpeed=t.modal.coverSpeed<10?1e3*t.modal.coverSpeed:t.modal.coverSpeed),t.scrolleffects=E(e.scrolleffects,{set:!1,setBlur:!1,setFade:!1,setGrayScale:!1,bg:!1,direction:"both",layers:!1,maxBlur:10,multiplicator:"1.3",multiplicatorLayers:"1.3",disableOnMobile:!1,parallaxLayers:!1,staticLayers:!1,staticParallaxLayers:!1,tilt:30}),t.scrolltimeline=E(e.scrolltimeline,{set:!1,fixed:!1,fixedStart:2e3,fixedEnd:4e3,layers:!1,ease:"none",speed:500,pullcontent:!1}),t.skins=E(e.skins,{colorsAtStart:!1}),t.source.post.fetchType=void 0===t.source.post.fetchType?"cat_tag":t.source.post.fetchType,t.source.instagram.hashTag=void 0===t.source.instagram.hashTag?"":t.source.instagram.hashTag,t.source.instagram.transient=void 0===t.source.instagram.transient?1200:t.source.instagram.transient,t.source.instagram.type=void 0===t.source.instagram.type?"":t.source.instagram.type,t.source.flickr.transient=void 0===t.source.flickr.transient?1200:t.source.flickr.transient,t.source.vimeo.transient=void 0===t.source.vimeo.transient?1200:t.source.vimeo.transient,t.source.youtube.transient=void 0===t.source.youtube.transient?1200:t.source.youtube.transient,t.def.transition=void 0===t.def.transition?"fade":t.def.transition,t.def.background.imageSourceType=void 0===t.def.background.imageSourceType?"full":t.def.background.imageSourceType,t.def.panZoom.blurStart=void 0===t.def.panZoom.blurStart?0:t.def.panZoom.blurStart,t.def.panZoom.blurEnd=void 0===t.def.panZoom.blurEnd?0:t.def.panZoom.blurEnd,t.size.maxWidth=void 0===t.size.maxWidth?"":t.size.maxWidth,t.carousel.ease=void 0===t.carousel.ease?"power3.inOut":t.carousel.ease,t.carousel.speed=void 0===t.carousel.speed?"800":t.carousel.speed,void 0!==t.general.firstSlide&&(t.general.firstSlide.alternativeFirstSlideSet=void 0===t.general.firstSlide.alternativeFirstSlideSet?"":t.general.firstSlide.alternativeFirstSlideSet),t.nav.preview&&(t.nav.preview.width=void 0===t.nav.preview.width?50:t.nav.preview.width),t.nav.preview&&(t.nav.preview.height=void 0===t.nav.preview.height?100:t.nav.preview.height),t.nav.mouse&&(t.nav.mouse.reverse=void 0===t.nav.mouse.reverse?"default":t.nav.mouse.reverse),t.nav.arrows.left&&(t.nav.arrows.left.align=void 0===t.nav.arrows.left.align?"slider":t.nav.arrows.left.align),t.nav.arrows.right&&(t.nav.arrows.right.align=void 0===t.nav.arrows.right.align?"slider":t.nav.arrows.right.align),t.nav.bullets&&(t.nav.bullets.align=void 0===t.nav.bullets.align?"slider":t.nav.bullets.align),t.parallax.ddd.zCorrection=void 0===t.parallax.ddd.zCorrection?65:t.parallax.ddd.zCorrection,t.parallax.mouse.bgSpeed=void 0===t.parallax.mouse.bgSpeed?0:t.parallax.mouse.bgSpeed,t.parallax.mouse.layersSpeed=void 0===t.parallax.mouse.layersSpeed?1e3:t.parallax.mouse.layersSpeed,t.scrolleffects.bg=void 0!==t.scrolleffects.bg&&t.scrolleffects.bg,t.scrolleffects.direction=void 0===t.scrolleffects.direction?"both":t.scrolleffects.direction,t.scrolleffects.maxBlur=void 0===t.scrolleffects.maxBlur?10:t.scrolleffects.maxBlur,t.scrolleffects.multiplicator=void 0===t.scrolleffects.multiplicator?"1.3":t.scrolleffects.multiplicator,t.scrolleffects.multiplicatorLayers=void 0===t.scrolleffects.multiplicatorLayers?"1.3":t.scrolleffects.multiplicatorLayers,t.scrolleffects.tilt=void 0===t.scrolleffects.tilt?"":t.scrolleffects.tilt,t}function E(e,t){return null==e?t:e}RVS.S.rulerOffset={x:0,y:0},RVS.F.setSlider=function(e){return e=void 0===e||0==e.length?{}:e,"undefined"!=typeof _rmig_&&(e=_rmig_.migrateSlider(e)),jQuery.extend(!0,H({}),H(e))},RVS.F.initSliderBuilder=function(){if(RVS.C.rb=jQuery("#rev_builder"),RVS.C.tRC=document.getElementById("the_right_toolbar"),RVS.C.UL=_ul=jQuery("#rev_slider_ul"),RVS.C.parllaxMouseSelect=jQuery("#slider_parallax_mouse_sens_event"),F=jQuery("#layer_grid"),l=jQuery("#rev_slider_inbuild"),d=jQuery("#ruler_top_offset"),S=jQuery("#ruler_left_offset"),r=jQuery("#ruler_hor_marker"),s=jQuery("#ruler_ver_marker"),D=jQuery("#rev_builder_inner"),RVS.F.updateEasyInputs({container:jQuery("#rs-layout-type"),trigger:"init"}),RVS.ENV.skinColors=void 0===RVS.ENV.skinColors?jQuery("#module_color_skins"):RVS.ENV.skinColors,RVS.ENV.skinFonts=void 0===RVS.ENV.skinFonts?jQuery("#module_font_skins"):RVS.ENV.skinFonts,void 0!==RVS.SLIDER.settings.skins)for(var e in void 0===RVS.SLIDER.settings.skins.colors&&(RVS.SLIDER.settings.skins.cid=2,RVS.SLIDER.settings.skins.colors={0:{alias:"Highlight",v:"#ff0000"},1:{alias:"Headline Text",v:"#ffffff"},2:{alias:"Content Text",v:"#00ffff"}}),RVS.SLIDER.settings.skins.colors)RVS.SLIDER.settings.skins.colors.hasOwnProperty(e)&&V(RVS.SLIDER.settings.skins.colors[e],e);var t,i;for(i in jQuery("#screenselector").on("change",function(e){RVS.screen=this.value,RVS.S.nextscreen="d"===RVS.screen?"none":"n"===RVS.screen?"d":"t"===RVS.screen?"n":"m"==RVS.screen?"t":"none",RVS.S.prevscreen="d"===RVS.screen?"n":"n"===RVS.screen?"t":"t"===RVS.screen?"m":"none",jQuery(".screen_selector.selected").removeClass("selected"),jQuery(".screen_selector.ss_"+RVS.screen).addClass("selected"),w(!1),RVS.DOC.trigger("sliderSizeChanged"),RVS.F.setRulers()}),RVS.DOC.on("click","#newslide, #add_blank_slide",function(){return RVS.F.addRemoveSlideWithBackupAfterSlideId({id:"addnewslide",step:"Add New Slide",icon:"fiber_new",slideObj:{slide:RVS.F.addSlideObj(),layers:{}},slideObjOld:{},beforeSelected:RVS.S.slideId,after:function(){RVS.DOC.trigger("changeToSlideMode")}}),!1}),RVS.DOC.on("addBulkSlides",function(e,t){return RVS.F.addRemoveSlideWithBackupAfterSlideId({id:"addnewslide",step:"Add New Slide",icon:"fiber_new",slideObj:{slide:RVS.F.addSlideObj(),layers:{}},slideObjOld:{},beforeSelected:RVS.S.slideId,urls:t.urlImage,endOfMain:function(){RVS.DOC.trigger("changeToSlideMode"),setTimeout(function(){RVS.DOC.trigger("saveslider",{force:!0})},500)}}),!1}),RVS.DOC.on("click","#add_template_slide",function(){RVS.F.openObjectLibrary({types:["moduletemplates","modules"],filter:"all",selected:["moduletemplates"],context:"editor",success:{slide:"addSlideFromTemplate"}})}),RVS.DOC.on("click","#add_module_slide",function(){RVS.F.openObjectLibrary({types:["modules","moduletemplates"],filter:"all",selected:["modules"],context:"editor",success:{slide:"addSlideFromTemplate"}})}),RVS.DOC.on("addSlideFromTemplate",function(e,t){RVS.F.ajaxRequest("install_template_slide",{slider_id:RVS.ENV.sliderID,slide_id:t},function(e){if(e.success){for(var t in e.slides)if(e.slides.hasOwnProperty(t)){var i,a,r={slide:RVS.F.addSlideObj(RVS.F.expandSlide(e.slides[t].params)),layers:{},id:e.slides[t].id};for(i in e.slides[t].layers)e.slides[t].layers.hasOwnProperty(i)&&(a=e.slides[t].layers[i],a=RVS.F.addLayerObj(jQuery.extend(!0,RVS.F.addLayerObj(a.type,void 0,!0),a)))&&(r.layers[a.uid]=a);RVS.SLIDER[e.slides[t].id]=r,RVS.SLIDER.slideIDs.push(e.slides[t].id),RVS.F.addToSlideList({id:e.slides[t].id})}RVS.F.mainMode({mode:"slidelayout",set:!0,slide:e.slides[0].id})}})}),RVS.DOC.on("updatepublishicons",function(e,t){void 0!==t&&void 0!==t.val&&(document.getElementById("publish_toggle_icon_"+RVS.S.slideId).className=t.val+"slide")}),RVS.DOC.on("click",".publishedslide, .unpublishedslide",function(){var e=jQuery(this).closest("li").data("ref");return RVS.SLIDER[e].slide.publish.state="published"===RVS.SLIDER[e].slide.publish.state?"unpublished":"published",this.className=RVS.SLIDER[e].slide.publish.state+"slide",RVS.F.updateEasyInputs({container:jQuery("#form_slidegeneral_progstate"),path:e+".slide.",trigger:"init"}),RVS.F.slideinWork(e),!1}),RVS.DOC.on("deletesingleslide",function(){RVS.F.addRemoveSlideWithBackup({id:"deleteslide",step:"Remove Slide",icon:"remove",slideObjOld:jQuery.extend(!0,{},RVS.SLIDER[window.delete_slide_id]),slideId:window.delete_slide_id,slideObj:{},beforeSelected:RVS.S.slideId})}),RVS.DOC.on("click",".deleteslide, #do_delete_slide",function(){return window.delete_slide_id="do_delete_slide"===this.id?RVS.S.slideId:jQuery(this).closest("li").data("ref"),RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deleteslide,maintext:RVS_LANG.deletingslide,subtext:RVS_LANG.deleteselectedslide+" <strong>"+RVS.SLIDER[window.delete_slide_id].slide.title+"</strong> ?",do:{icon:"delete",text:RVS_LANG.yesdeleteslide,event:"deletesingleslide"},cancel:{icon:"cancel",text:RVS_LANG.cancel}}),!1}),RVS.DOC.on("click",".duplicateslide, #do_duplicate_slide",function(){var e="do_duplicate_slide"===this.id?RVS.S.slideId:jQuery(this).closest("li").data("ref");return RVS.F.addRemoveSlideWithBackupAfterSlideId({id:"duplicateslide",step:"Duplicate Existing Slide",icon:"content_copy",slideObj:jQuery.extend(!0,{},RVS.SLIDER[e]),fromSlideId:e,slideObjOld:{},beforeSelected:RVS.S.slideId}),!1}),RVS.DOC.on("click",".addchildslide, #do_addchild_slide",function(){var e="do_addchild_slide"===this.id?RVS.S.slideId:jQuery(this).closest("li").data("ref");return RVS.F.addRemoveSlideWithBackupAfterSlideId({id:"duplicateslide",parentId:e,step:"Duplicate Existing Slide",icon:"content_copy",slideObj:jQuery.extend(!0,{},RVS.SLIDER[e]),fromSlideId:e,slideObjOld:{},beforeSelected:RVS.S.slideId}),!1}),RVS.DOC.on("carouselverticaldouble",function(e,t){void 0!==t&&null!=(t=document.getElementById(t))&&(RVS.F.openBackupGroup({id:"carouselverticalalign",txt:"Carousel Vertial Align",icon:"ui_y"}),RVS.F.updateSliderObj({path:"settings.carousel.vertical",val:t.value}),RVS.F.closeBackupGroup({id:"carouselverticalalign"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_caroussel"),trigger:"init",visualUpdate:!0}))}),RVS.DOC.on("click","#add_skin_color",function(){void 0===RVS.SLIDER.settings.skins||10<RVS.SLIDER.settings.skins.colors.length||(RVS.SLIDER.settings.skins.cid++,RVS.SLIDER.settings.skins.colors[RVS.SLIDER.settings.skins.cid]={alias:"Color Alias",v:"#ffffff"},V(RVS.SLIDER.settings.skins.colors[RVS.SLIDER.settings.skins.cid],RVS.SLIDER.settings.skins.cid),RVS.F.updateEasyInputs({container:RVS.ENV.skinColors,trigger:"init",visualUpdate:!0}))}),t=!1,RVS.DOC.on("click",".save_and_goto_button",function(){t=this.dataset.goto,RVS.DOC.trigger("saveslider")}),RVS.DOC.on("slidersaved",function(){!1!==t&&(window.location.href=t)}),RVS.DOC.on("deleteSkinColor",function(e,t){void 0!==t&&(RVS.S.skinColorToDelete=t,void 0!==RVS.SLIDER.settings.skins.colors[t].ref&&0<RVS.SLIDER.settings.skins.colors[t].ref.length?RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deleteskin,maintext:RVS_LANG.areyousuredeleteskin,subtext:RVS_LANG.colrskinhas+" "+RVS.SLIDER.settings.skins.colors[t].ref.length+" "+RVS_LANG.references+". "+RVS_LANG.colorwillkept,do:{icon:"check_circle",text:RVS_LANG.deleteskin,event:"forcedeleteskincolor"},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0}):RVS.DOC.trigger("forcedeleteskincolor"))}),RVS.DOC.on("forcedeleteskincolor",function(){delete RVS.SLIDER.settings.skins.colors[RVS.S.skinColorToDelete],jQuery("#globalskin_colorrule_"+RVS.S.skinColorToDelete).remove()}),RVS.DOC.on("updateSnapVisual",function(){RVS.F.snapVisual()}),RVS.DOC.on("showhidescrollonssm",function(e,t){jQuery(".sr_sbased_tab").hide(),jQuery("#sr_sbased_"+t).show(),RVS.F.checkForFixedScroll()}),RVS.DOC.on("updateAutoRotate",function(e,t){var i;void 0===t||void 0===t.val?RVS.SLIDER.settings.general.slideshow.slideShow||jQuery("#generalslideshow").hide():(RVS.F.openBackupGroup({id:"autorotate",txt:"Auto Slideshow",icon:"play_circle_outline"}),i="settings.general.slideshow.",t.val?RVS.F.updateSliderObj({path:i+"stopSlider",val:!1}):(RVS.F.updateSliderObj({path:i+"stopSlider",val:!0}),RVS.F.updateSliderObj({path:i+"stopAfterLoops",val:0}),RVS.F.updateSliderObj({path:i+"stopAtSlide",val:1})),RVS.F.closeBackupGroup({id:"autorotate"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_slideshow"),trigger:"init",visualUpdate:!0}))}),RVS.DOC.on("screenSelectorChanged",function(){RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_general_viewport"),init:"true"})}),RVS.DOC.on("checkOnScrollSettings",function(){void 0!==RVS.TL&&void 0!==RVS.TL.TL&&(RVS.SLIDER.settings.scrolltimeline.set&&RVS.SLIDER.settings.scrolltimeline.fixed&&"auto"!==RVS.SLIDER.settings.layouttype?RVS.TL.TL.addClass("fixedscrollon"):RVS.TL.TL.removeClass("fixedscrollon"),RVS.DOC.trigger("checkLayerLoopswithOnScroll"))}),RVS.DOC.on("checkLayerLoopswithOnScroll",function(){clearTimeout(RVS.S.checkLayerLoopswithOnScroll),RVS.S.checkLayerLoopswithOnScroll=setTimeout(function(){if(!0===RVS.SLIDER.settings.scrolltimeline.set){var e,t=!1;for(e in RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.L[e].timeline&&void 0!==RVS.L[e].timeline.scrollBased&&("true"==RVS.L[e].timeline.scrollBased||"default"==RVS.L[e].timeline.scrollBased&&!0===RVS.SLIDER.settings.scrolltimeline.layers)&&(t=!(RVS.L[e].timeline.loop.use=!1));t&&(RVS.F.updateEasyInputs({container:jQuery("#layer_looping_wrap"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.layerloopdisabledduetimeline,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""}))}},200)}),RVS.DOC.on("click",".insertineditor",function(){return RVS.F.insertTextAtCursor(window.rs_jscss_editor,"\n"+jQuery(this.dataset.insertfrom).val().replace("revapi.","revapi"+RVS.ENV.sliderID+".")+"\n"),!1}),RVS.DOC.on("click",".js_css_editor_tabs",function(){jQuery(".js_css_editor_tabs").removeClass("selected"),jQuery(this).addClass("selected"),RVS.SLIDER.settings.codes[window.rs_jscss_editor.getMode().name]=window.rs_jscss_editor.getValue(),window.rs_jscss_editor.setValue(RVS.SLIDER.settings.codes[this.dataset.mode]),window.rs_jscss_editor.setOption("mode",this.dataset.mode)}),RVS.DOC.on("click","#emc_toggle, #form_slidergeneral_advanced_api",function(){jQuery(".emc_toggle_wrap").toggleClass("open")}),RVS.DOC.on("openColorSkinApi",RVS.F.openColorSkinApi),RVS.DOC.on("click","#rbm_colorskins .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("openSliderApi",RVS.F.openSliderApi),RVS.DOC.on("click","#rbm_slider_api .rbm_close",function(){RVS.SLIDER.settings.codes[window.rs_jscss_editor.getMode().name]=window.rs_jscss_editor.getValue(),RVS.F.RSDialog.close()}),RVS.DOC.on("device_area_dimension_update",function(){w(!0,!0),RVS.DOC.trigger("updateAllInheritedSize"),RVS.F.redrawSlideBG(),RVS.F.expandCollapseTimeLine(!0,"open")}),RVS.DOC.on("updatePerspective",function(){jQuery("#global_layers_perspectives").val(RVS.SLIDER.settings.general.perspective),RVS.F.allLayersReDraw()}),RVS.DOC.on("updatesliderlayout_main",function(e,t){RVS.DOC.trigger("checkOnScrollSettings"),RVS.DOC.trigger("updatesliderlayout",[e,t])}),RVS.DOC.on("updatesliderlayout",function(e,t){RVS.F.updatesliderlayout(t)}),RVS.F.updatesliderlayout=function(e){(void 0===RVS.S.calledUpdateSliderLayout||!RVS.S.drawingHTMLLayers&&RVS.S.drawHTMLLayersCalled)&&(clearTimeout(window.updateSliderLayoutTimer),a=RVS.S.lgh,RVS.S.calledUpdateSliderLayout=RVS.S.calledUpdateSliderLayout||0,RVS.S.calledUpdateSliderLayout++,window.updateSliderLayoutTimer=setTimeout(function(){w(!1),RVS.F.redrawSlideBG(),"slidertype"===e&&T(),RVS.S.lastSliderType!==RVS.SLIDER.settings.type&&("carousel"==RVS.SLIDER.settings.type?RVS.F.setS2Option({select:RVS.C.parllaxMouseSelect,enableValue:"mousedrag",update:!0}):("mousedrag"==RVS.SLIDER.settings.parallax.mouse.type&&(RVS.SLIDER.settings.parallax.mouse.type="mouse"),RVS.F.setS2Option({select:RVS.C.parllaxMouseSelect,disableValue:"mousedrag",update:!0})),RVS.S.lastSliderType=RVS.SLIDER.settings.type),a===RVS.S.lgh&&RVS.ENV.globVerOffset===RVS.S.cacheglobVerOffset&&!RVS.ENV.firstLayoutAfterSlideload||(RVS.ENV.firstLayoutAfterSlideload=!1,RVS.F.updateAllHTMLLayerPositions(),RVS.S.cacheglobVerOffset=RVS.ENV.globVerOffset),"wait"==RVS.S.ReadyToShowAll&&(RVS.C.UL[0].style.opacity=1,RVS.S.ReadyToShowAll="done",RVS.F.expandCollapseTimeLine(!0,"open",void 0,!0))},100))},RVS.DOC.on("updatesliderlayoutall",function(e,t){RVS.F.updatesliderlayout(t),RVS.DOC.trigger("device_area_dimension_update")}),RVS.DOC.on("device_area_availibity",function(){w(!0),RVS.F.updateAvailableDevices(),RVS.F.updateDeviceOnOffBtns()}),RVS.DOC.on("check_custom_size",function(e,t){t=t.eventparam,RVS.SLIDER.settings.size.custom[t]=!0,jQuery("#sr_custom_"+t).prop("checked",RVS.SLIDER.settings.size.custom[t]),RVS.F.turnOnOffVisUpdate({input:document.getElementById("sr_custom_"+t)})}),RVS.F.staticsDoubleUpdate=function(e){!0!==RVS.S.resetLastShownAndStatic&&RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&RVS.SLIDER[RVS.S.slideId].slide.static.lastEdited&&void 0!==RVS.S.lastShownSlideId&&(RVS.S.resetLastShownAndStatic=!0,RVS.S.slideIdCache=RVS.S.slideId,RVS.S.slideId=RVS.S.lastShownSlideId),e.call(),RVS.S.resetLastShownAndStatic&&(clearTimeout(window.resetLastShownTimer),window.resetLastShownTimer=setTimeout(function(){RVS.S.resetLastShownAndStatic=!1,RVS.S.lastShownSlideId=RVS.S.slideId,RVS.S.slideId=RVS.S.slideIdCache,e.call()},200))},RVS.DOC.on("windowresized",function(){RVS.F.staticsDoubleUpdate(RVS.F.sliderUpdateAfterResize)}),RVS.F.sliderUpdateAfterResize=function(){D.width(),p.width=l.width(),w(!1),RVS.F.setRulers(),RVS.F.updateContentDeltas(),k("update")},RVS.DOC.on("updateShortCode",function(){RVS.SLIDER.settings.alias=RVS.F.sanitize_input(RVS.SLIDER.settings.alias),RVS.SLIDER.settings.shortcode='[rev_slider alias="'+RVS.SLIDER.settings.alias+'"][/rev_slider]',RVS.SLIDER.settings.modalshortcode='[rev_slider usage="modal" alias="'+RVS.SLIDER.settings.alias+'"][/rev_slider]',RVS.F.updateEasyInputs({container:jQuery("#form_module_title"),init:"true"}),RVS.F.updateEasyInputs({container:jQuery("#form_slider_as_modal"),init:"true"})}),RVS.DOC.on("sliderBGUpdate",b),RVS.DOC.on("drawBGOverlay",I),RVS.DOC.on("sliderProgressUpdate",T),RVS.DOC.on("coloredit colorcancel",z),RVS.DOC.on("updateParallaxLevelTexts",RVS.F.updateParallaxLevelTexts),RVS.DOC.on("updateParallaxdddBG",RVS.F.updateParallaxdddBG),RVS.DOC.on("updateSourcePostCategories",function(){RVS.F.updatePostCategories({postTypes:RVS.SLIDER.settings.source.post.types,categories:jQuery("#post_category")})}),RVS.DOC.on("updateSourceWooCategories",function(){RVS.F.updatePostCategories({postTypes:RVS.SLIDER.settings.source.woo.types,categories:jQuery("#woo_category")})}),RVS.DOC.on("flickrsourcechange",v),RVS.DOC.on("facebooksourcechange",_),RVS.DOC.on("youtubesourcechange",L),RVS.DOC.on("loadStreamDependencies",y),RVS.DOC.on("revertEasyInputs.source",function(e,t){RVS.F.updateEasyInputs({container:t,trigger:"init",path:"settings."});var t=RVS.SLIDER.settings.source.flickr.apiKey!==RVS.F.revert.settings.source.flickr.apiKey||RVS.SLIDER.settings.source.flickr.userURL!==RVS.F.revert.settings.source.flickr.userURL||RVS.SLIDER.settings.source.flickr.apiKey!==RVS.F.revert.settings.source.flickr.apiKey,i=RVS.SLIDER.settings.source.facebook.appId!==RVS.F.revert.settings.source.facebook.appId||RVS.SLIDER.settings.source.facebook.typeSource!==RVS.F.revert.settings.source.facebook.typeSource||RVS.SLIDER.settings.source.facebook.album!==RVS.F.revert.settings.source.facebook.album,a=RVS.SLIDER.settings.source.youtube.api!==RVS.F.revert.settings.source.youtube.api||RVS.SLIDER.settings.source.youtube.channelId!==RVS.F.revert.settings.source.youtube.channelId;(t||i||a)&&(c=!0)}),RVS.DOC.on("moduleSpinnerChange",function(){var e=RVS.SLIDER.settings.layout.spinner.type;jQuery("rs-loader").attr("class","spinner"+e).html(g()),(isNaN(e)||parseInt(e,10)<6)&&f()}),RVS.DOC.on("scrollUpdates",function(){k("update")}),RVS.F.buildRuler(),RVS.F.sliderUpdateAllFields(),RVS.DOC.trigger("updateShortCode"),k(),o=document.getElementById("show_c_height"),void 0!==(n=document.getElementById("show_c_width"))&&(n.innerHTML=Math.round(RVS.F.GW(RVS.screen))+"px"),y(),RVS.F.checkSliderSource(),RVS.F.ajaxRequest("get_global_settings",{},function(e){e.success&&(RVS.globals=RVS.F.getNewGlobalObject(e.global_settings),window.initGlobalSettings=!0,RVS.DOC.trigger("globalSettingsInited"))}),RVS.V.sizesold)document.getElementById("global_size_"+RVS.V.sizesold[i]).innerHTML=0==i?"> "+RVS.ENV.glb_slizes[RVS.V.sizes[1]]:3==i?"< "+RVS.ENV.glb_slizes[RVS.V.sizes[i]]:parseInt(RVS.ENV.glb_slizes[RVS.V.sizes[i]],0)-1+" - "+RVS.ENV.glb_slizes[RVS.V.sizes[parseInt(i,0)+1]]},RVS.F.clearSnapVisual=function(){RVS.C.gcanvas=void 0===RVS.C.gcanvas?document.getElementById("gridcanvas"):RVS.C.gcanvas,RVS.C.gCTX=void 0===RVS.C.gCTX?RVS.C.gcanvas.getContext("2d"):RVS.C.gCTX,RVS.C.gcanvas.width=RVS.S.ulDIM.width,RVS.C.gcanvas.height=RVS.S.ulDIM.height,RVS.C.gCTX.clearRect(0,0,RVS.S.ulDIM.width,RVS.S.ulDIM.height)},RVS.F.getSnapPoint=function(e,t){return{x:RVS.SLIDER.settings.snap.gap*Math.round(e/RVS.SLIDER.settings.snap.gap),y:RVS.SLIDER.settings.snap.gap*Math.round(t/RVS.SLIDER.settings.snap.gap)}},RVS.F.snapVisual=function(e){(e=void 0===e?{}:e).ah=void 0===e.ah?void 0!==RVS.selLayers[0]?RVS.L[RVS.selLayers[0]].position.horizontal[RVS.screen].v:"left":e.ah,e.av=void 0===e.av?void 0!==RVS.selLayers[0]?RVS.L[RVS.selLayers[0]].position.vertical[RVS.screen].v:"top":e.av;var t=RVS.S.rulerOffset.x,i=RVS.S.rulerOffset.y/RVS.zoom;if(RVS.F.clearSnapVisual(),RVS.SLIDER.settings.snap.gap=parseInt(RVS.SLIDER.settings.snap.gap,0),RVS.SLIDER.settings.snap.gap=0===RVS.SLIDER.settings.snap.gap?1:RVS.SLIDER.settings.snap.gap,"grid"===RVS.SLIDER.settings.snap.adjust&&4<RVS.SLIDER.settings.snap.gap){RVS.GSNAP={X:"left"===e.ah?t:"right"===e.ah?t+RVS.S.lgw:t+RVS.S.lgw/2,Y:"top"===e.av?i:"bottom"===e.av?i+RVS.S.lgh:i+RVS.S.lgh/2},RVS.GSNAP.XO=RVS.SLIDER.settings.snap.gap*Math.ceil(RVS.GSNAP.X/RVS.SLIDER.settings.snap.gap),RVS.GSNAP.YO=RVS.SLIDER.settings.snap.gap*Math.ceil(RVS.GSNAP.Y/RVS.SLIDER.settings.snap.gap),RVS.C.gCTX.beginPath();for(var a=RVS.GSNAP.X-RVS.GSNAP.XO;a<RVS.S.ulDIM.width;a+=RVS.SLIDER.settings.snap.gap)RVS.C.gCTX.moveTo(a,0),RVS.C.gCTX.lineTo(a,RVS.S.ulDIM.height);for(var r=RVS.GSNAP.Y-RVS.GSNAP.YO;r<RVS.S.ulDIM.height;r+=RVS.SLIDER.settings.snap.gap)RVS.C.gCTX.moveTo(0,r),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,r);RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 0.25)",RVS.C.gCTX.stroke(),void 0!==e.sp&&(RVS.C.gCTX.beginPath(),e.sp.x=RVS.GSNAP.X+("left"===e.ah?e.sp.x:"right"===e.ah?0-e.sp.x-RVS.SLIDER.settings.snap.gap:e.sp.x-RVS.SLIDER.settings.snap.gap/2),e.sp.y=RVS.GSNAP.Y+("top"===e.av?e.sp.y:"bottom"===e.av?0-e.sp.y-RVS.SLIDER.settings.snap.gap:e.sp.y-RVS.SLIDER.settings.snap.gap/2),l=e.sp.y+("top"!==e.av?RVS.SLIDER.settings.snap.gap/("middle"===e.av?2:1):0),d=e.sp.x+("left"!==e.ah?RVS.SLIDER.settings.snap.gap/("center"===e.ah?2:1):0),RVS.C.gCTX.moveTo(e.sp.x,l),RVS.C.gCTX.lineTo(e.sp.x+RVS.SLIDER.settings.snap.gap,l),RVS.C.gCTX.moveTo(d,e.sp.y),RVS.C.gCTX.lineTo(d,e.sp.y+RVS.SLIDER.settings.snap.gap),RVS.C.gCTX.lineWidth=2,RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 1)",RVS.C.gCTX.stroke())}else if("layers"===RVS.SLIDER.settings.snap.adjust){RVS.C.gCTX.beginPath();var s,o,n,l,d,S={};for(o in RVS.S.DaD.snapH)RVS.S.DaD.snapH.hasOwnProperty(o)&&(void 0===S[(s=RVS.S.DaD.snapH[o]).x]&&(RVS.C.gCTX.moveTo(s.x+t,0),RVS.C.gCTX.lineTo(s.x+t,RVS.S.ulDIM.height),S[s.x]=!0),void 0===S[s.xc]&&(RVS.C.gCTX.moveTo(s.xc+t,0),RVS.C.gCTX.lineTo(s.xc+t,RVS.S.ulDIM.height),S[s.xc]=!0),void 0===S[s.xr]&&(RVS.C.gCTX.moveTo(s.xr+t,0),RVS.C.gCTX.lineTo(s.xr+t,RVS.S.ulDIM.height),S[s.xr]=!0),5<RVS.SLIDER.settings.snap.gap)&&(void 0===S[s.x-RVS.SLIDER.settings.snap.gap]&&(RVS.C.gCTX.moveTo(s.x-RVS.SLIDER.settings.snap.gap+t,0),RVS.C.gCTX.lineTo(s.x-RVS.SLIDER.settings.snap.gap+t,RVS.S.ulDIM.height),S[s.x-RVS.SLIDER.settings.snap.gap]=!0),void 0===S[s.xr+RVS.SLIDER.settings.snap.gap])&&(RVS.C.gCTX.moveTo(s.xr+RVS.SLIDER.settings.snap.gap+t,0),RVS.C.gCTX.lineTo(s.xr+RVS.SLIDER.settings.snap.gap+t,RVS.S.ulDIM.height),S[s.xr+RVS.SLIDER.settings.snap.gap]=!0);for(o in S={},RVS.S.DaD.snapV)RVS.S.DaD.snapV.hasOwnProperty(o)&&(void 0===S[(n=RVS.S.DaD.snapV[o]).y]&&(RVS.C.gCTX.moveTo(0,n.y+i),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,n.y+i),S[n.y]=!0),void 0===S[n.ym]&&(RVS.C.gCTX.moveTo(0,n.ym+i),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,n.ym+i),S[n.ym]=!0),void 0===S[n.yb]&&(RVS.C.gCTX.moveTo(0,n.yb+i),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,n.yb+i),S[n.yb]=!0),5<RVS.SLIDER.settings.snap.gap)&&(void 0===S[n.y-RVS.SLIDER.settings.snap.gap]&&(RVS.C.gCTX.moveTo(0,n.y+i-RVS.SLIDER.settings.snap.gap),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,n.y+i-RVS.SLIDER.settings.snap.gap),S[n.y-RVS.SLIDER.settings.snap.gap]=!0),void 0===S[n.yb+RVS.SLIDER.settings.snap.gap])&&(RVS.C.gCTX.moveTo(0,n.yb+i+RVS.SLIDER.settings.snap.gap),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,n.yb+i+RVS.SLIDER.settings.snap.gap),S[n.yb+RVS.SLIDER.settings.snap.gap]=!0);RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 0.25)",RVS.C.gCTX.stroke(),RVS.C.gCTX.beginPath(),void 0!==RVS.S.DaD.snapHF&&-1!==RVS.S.DaD.snapHF.uid&&(l=RVS.S.DaD.snapH[RVS.S.DaD.snapHF.uid],RVS.C.gCTX.moveTo(l.x+t+RVS.S.DaD.snapHF.offset,0),RVS.C.gCTX.lineTo(l.x+t+RVS.S.DaD.snapHF.offset,RVS.S.ulDIM.height),RVS.C.gCTX.lineWidth=2,RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 1)",RVS.C.gCTX.stroke()),void 0!==RVS.S.DaD.snapVF&&-1!==RVS.S.DaD.snapVF.uid&&(d=RVS.S.DaD.snapV[RVS.S.DaD.snapVF.uid],RVS.C.gCTX.moveTo(0,d.y+i+RVS.S.DaD.snapVF.offset),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,d.y+RVS.S.rulerOffset.y+RVS.S.DaD.snapVF.offset),RVS.C.gCTX.lineWidth=2,RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 1)",RVS.C.gCTX.stroke())}},RVS.F.updateAvailableDevices=function(){for(var e=!1,t=1;t<4;t++)RVS.SLIDER.settings.size.custom[RVS.V.sizes[t]]?jQuery("#screen_selecotr_ss_"+RVS.V.sizes[t]).removeClass("ssnotavailable"):(jQuery("#screen_selecotr_ss_"+RVS.V.sizes[t]).addClass("ssnotavailable"),RVS.screen==RVS.V.sizes[t]&&(e=!0));e&&jQuery("#screen_selecotr_ss_d").trigger("click"),RVS.DOC.trigger("updateAllInheritedSize")},RVS.F.checkForFixedScroll=function(){"slider"===RVS.eMode.top&&"#form_module_scroll"==RVS.eMode.menu&&jQuery("#timeline_slider_tab").hasClass("selected")?(RVS.TL.TL.addClass("fixedscrolledit"),RVS.TL.FixedScrollEdit=!0):RVS.TL.FixedScrollEdit&&(RVS.TL.TL.removeClass("fixedscrolledit"),RVS.TL.FixedScrollEdit=!1)},RVS.F.updateDeviceOnOffBtns=function(e){for(var t in RVS.V.sizes){var i,a;"d"!==RVS.V.sizes[t]&&(i=document.getElementById("sr_custom_"+RVS.V.sizes[t]),a=document.getElementById("sr_custom_"+RVS.V.sizes[t]+"_opt"),i.checked=RVS.SLIDER.settings.size.custom[RVS.V.sizes[t]],a.checked=RVS.SLIDER.settings.size.custom[RVS.V.sizes[t]],e||(RVS.F.turnOnOffVisUpdate({input:i}),RVS.F.turnOnOffVisUpdate({input:a})))}},RVS.F.updateSliderInputFields=function(){!0!==RVS.S.sliderInputFieldsInitialised&&!0!==RVS.S.sliderInputFieldsInitialisedWarning&&(RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.updatingfields}),RVS.S.sliderInputFieldsInitialisedWarning=!0,RVS.S.sliderInputFieldsInitialised=!0),setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery(".sliderconfig_forms"),trigger:"init"}),RVS.F.updateEasyInputs({container:jQuery("#screen_selector_top_list"),path:"settings."}),RVS.F.updateEasyInputs({container:jQuery("#rbm_colorskins"),path:"settings."}),!0===RVS.S.sliderInputFieldsInitialisedWarning&&(RVS.F.showWaitAMinute({fadeOut:2,text:RVS_LANG.updatingfields}),RVS.S.sliderInputFieldsInitialisedWarning=!1),requestAnimationFrame(function(){O()})},5)},RVS.F.updateTopScreenSelectors=function(){RVS.F.updateEasyInputs({container:jQuery("#screen_selector_top_list"),path:"settings."}),RVS.F.turnOnOffVisUpdate({input:document.getElementById("sr_custom_n_opt")}),RVS.F.turnOnOffVisUpdate({input:document.getElementById("sr_custom_m_opt")}),RVS.F.turnOnOffVisUpdate({input:document.getElementById("sr_custom_t_opt")})},RVS.F.sliderUpdateAllFields=function(e){for(var t in w(!0),RVS.F.updateAvailableDevices(),RVS.F.updateTopScreenSelectors(),RVS.S.sliderInputFieldsInitialised&&RVS.F.updateSliderInputFields(),e&&jQuery(".slider_general_collector .tponoffwrap").each(function(){RVS.F.turnOnOff(this,!1)}),RVS.F.initTpColorBoxes(jQuery("#rbm_colorskins").find(".my-color-field")),RVS.DOC.trigger("updateSourcePostCategories"),RVS.DOC.trigger("updateSourceWooCategories"),RVS.DOC.trigger("updatesliderthumb"),RVS.DOC.trigger("moduleSpinnerChange"),RVS.DOC.trigger("updateAutoRotate"),RVS.SLIDER.settings.addOns)RVS.SLIDER.settings.addOns.hasOwnProperty(t)&&RVS.SLIDER.settings.addOns[t].enable&&RVS.DOC.trigger(t+"_init");RVS.F.updateContentDeltas(),RVS.F.updateAllNavigationContainer(!0),T(),b(!1),RVS.S.ulDIM={width:RVS.C.UL.width(),height:RVS.C.UL.height()},RVS.F.updateParallaxLevelTexts(),RVS.F.updateParallaxdddBG(),RVS.DOC.trigger("checkOnScrollSettings"),RVS.SLIDER.settings.pakps&&(RVS.C.RSPREM=document.getElementById("rs_premium"),void 0!==RVS.C.RSPREM)&&null!=RVS.C.RSPREM&&(RVS.C.RSPREM.style.display="block",RVS.ENV.activated?RVS.C.RSPREM.innerHTML='<div class="rs_lib_premium_lila">'+RVS_LANG.premium_template+'</div><div class="rs_premium_content">'+RVS_LANG.rs_premium_content+"</div>":(RVS.C.RSPREM.innerHTML='<div class="rs_lib_premium_red"><i class="material-icons">visibility_off</i>'+RVS_LANG.premiumunlock+'</div><div class="rs_premium_content">'+RVS_LANG.rs_premium_content+"</div>",RVS.DOC.on("click",".rs_lib_premium_red",function(){RVS.F.showRegisterSliderInfo()})))},RVS.F.updateAllNavigationContainer=function(e){RVS.SLIDER.settings.nav.arrows.set&&RVS.F.updateNavStyleSelection({init:e,type:"arrows"}),RVS.SLIDER.settings.nav.bullets.set&&RVS.F.updateNavStyleSelection({init:e,type:"bullets"}),RVS.SLIDER.settings.nav.tabs.set&&RVS.F.updateNavStyleSelection({init:e,type:"tabs"}),RVS.SLIDER.settings.nav.thumbs.set&&RVS.F.updateNavStyleSelection({init:e,type:"thumbs"})},RVS.F.redrawAllNavigationContainer=function(e){RVS.SLIDER.settings.nav.arrows.set&&RVS.F.drawNavigation({init:e,type:"arrows"}),RVS.SLIDER.settings.nav.bullets.set&&RVS.F.drawNavigation({init:e,type:"bullets"}),RVS.SLIDER.settings.nav.tabs.set&&RVS.F.drawNavigation({init:e,type:"tabs"}),RVS.SLIDER.settings.nav.thumbs.set&&RVS.F.drawNavigation({init:e,type:"thumbs"})},RVS.F.setRulers=function(){var t;RVS.S.rulerOffset.x=Math.max(0,(p.width-RVS.F.GW(RVS.screen))/2),RVS.S.rulerOffset.y=Math.max(0,RVS.S.layer_wrap_offset.y),t={offset:{x:RVS.S.rulerOffset.x,y:RVS.S.rulerOffset.y}},requestAnimationFrame(function(){var e;void 0!==t&&void 0!==t.offset.x&&void 0!==t.offset.y&&((e={x:parseInt(t.offset.x,0)-i.x/RVS.zoom+RVS.S.dim_offsets.navleft,y:t.offset.y-(i.y+RVS.S.dim_offsets.navtop)}).x=e.x*RVS.zoom,tpGS.gsap.set(d,{x:e.x+"px"}),tpGS.gsap.set(S,{y:e.y+"px"}))})},RVS.F.setRulerMarkers=function(e){e=void 0===e?{y:0,x:0}:e;var t="overruler"===RVS.S.builderHover||"overbuilder"===RVS.S.builderHover?"block":"hidden",i=e.x,a=Math.max(0,e.y-u.top);requestAnimationFrame(function(){tpGS.gsap.set(r,{left:i+"px",height:"15px",display:t}),tpGS.gsap.set(s,{top:a+"px",width:"15px",display:t})})},RVS.F.updateContentDeltas=function(){var e,t;void 0===RVS.C.layergrid&&void 0===F||(e=RVS.C.UL.offset(),t=("slidelayout"===RVS.S.vWmode?void 0===RVS.C.layergrid?F:RVS.C.layergrid:void 0===F?RVS.C.layergrid:F).offset(),RVS.S.layer_grid_offset=t,RVS.S.layer_wrap_offset.x=t.left-e.left,RVS.S.layer_wrap_offset.y=t.top-e.top,RVS.S.layer_wrap_offset.xr=RVS.C.UL.width()-F.width()-RVS.S.layer_wrap_offset.x,RVS.S.lgw=F.width(),RVS.S.lgh=F.height(),RVS.SLIDER.settings.size.editorCache[RVS.screen]=RVS.S.lgh,void 0!==o&&(o.innerHTML=parseInt(RVS.S.lgh,0)+"px"),void 0!==n&&(n.innerHTML=Math.round(RVS.F.GW(RVS.screen))+"px"),window.contentDeltaFirstRun=!0)},RVS.F.panSlider=function(e){},RVS.F.updateParallaxLevelTexts=function(){var e,t,i=!1;jQuery(".prallaxlevelselect").each(function(){for(i=!1,t=1;t<16;t++)e=t+". ("+RVS.SLIDER.settings.parallax.levels[t-1]+" %)",this.options[t].text!==e&&(i=1,this.options[t].text=e);i&&jQuery(this).ddTP({})})},RVS.F.checkSliderSource=function(){var e=!0,t=RVS.SLIDER.settings.source[RVS.SLIDER.settings.sourcetype],i=void 0===(i=t.count)||""==i?0:i;switch(RVS.SLIDER.settings.sourcetype){case"facebook":e=""!==t.apiId&&("album"!==t.typeSource||"album"==t.typeSource&&""!==t.album)&&0!=i;break;case"flickr":e=""!==t.apiKey&&""!==t.appSecret&&(""!==t.galleryURL||""!==t.groupURL||""!==t.photoSet||""!==t.userURL)&&0!=i;break;case"instagram":e=void 0!==t.token&&""!==t.token;break;case"vimeo":e=!0===(e=!("channel"==t.typeSource&&""==t.channelName||"user"==t.typeSource&&""==t.userName||"group"==t.typeSource&&""==t.groupName||"album"==t.typeSource&&""==t.albumId))&&0!=i;break;case"youtube":e=""!==t.api&&""!==t.channelId&&0!=i;break;case"twitter":e=""!==t.accessSecret&&""!==t.accessToken&&""!==t.consumerKey&&""!=t.consumerSecret&&""!==t.userId&&0!=i}e||RVS.F.showInfo({content:RVS_LANG.somesourceisnotcorrect,type:"goodtoknow",showdelay:2,hidedelay:5,hideon:"click",event:""})},RVS.F.updateParallaxdddBG=function(){clearTimeout(window.updateParallaxDDDBGTimer),window.updateParallaxDDDBGTimer=setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery(".slider_ddd_subsettings"),init:!0})},50)},RVS.F.reSortSlides=function(){for(var e in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(e)&&-1===(""+RVS.SLIDER.slideIDs[e]).indexOf("static_")&&jQuery("#slidelist").append(jQuery("#slide_list_element_"+RVS.SLIDER.slideIDs[e]))},RVS.F.openNewGuide=function(){window.initQuickGuide?window.initQuickGuide.page=0:(RVS.DOC.on("click","#rbm_quickguide .rbm_close, .mcg_quit_page",function(){RVS.F.RSDialog.close(),RVS.F.sliderUpdateAllFields(!0),RVS.F.openHelpGuide("module")}),RVS.DOC.on("click",".mcg_next_page",function(){window.initQuickGuide.page++,m()}),RVS.DOC.on("click",".mcg_prev_page",function(){window.initQuickGuide.page--,m(-1)}),window.initQuickGuide={page:0,active:0},RVS.DOC.on("click",".guide_combi_resize",function(){switch(jQuery(".guide_combi_resize").removeClass("selected"),this.className+=" selected",this.id){case"guide_classic":RVS.SLIDER.settings.def.intelligentInherit=!1,RVS.SLIDER.settings.def.autoResponsive=!1,RVS.SLIDER.settings.def.responsiveChilds=!1,RVS.SLIDER.settings.def.responsiveOffset=!1,RVS.SLIDER.settings.size.custom.n=!1,RVS.SLIDER.settings.size.custom.t=!1,RVS.SLIDER.settings.size.custom.m=!1;break;case"guide_intelligent":RVS.SLIDER.settings.def.intelligentInherit=!0,RVS.SLIDER.settings.def.autoResponsive=!0,RVS.SLIDER.settings.def.responsiveChilds=!0,RVS.SLIDER.settings.def.responsiveOffset=!0;break;case"guide_manual":RVS.SLIDER.settings.def.intelligentInherit=!1,RVS.SLIDER.settings.def.autoResponsive=!1,RVS.SLIDER.settings.def.responsiveChilds=!1,RVS.SLIDER.settings.def.responsiveOffset=!1,RVS.SLIDER.settings.size.custom.n=!0,RVS.SLIDER.settings.size.custom.t=!0,RVS.SLIDER.settings.size.custom.m=!0}RVS.F.sliderUpdateAllFields(!0),w(!0),RVS.F.updateAvailableDevices(),RVS.F.updateDeviceOnOffBtns(),RVS.F.updateEasyInputs({container:jQuery(".mcg_option_third_wraps"),trigger:"init",path:"settings."})})),m(),jQuery("#guide_classic").removeClass("selected"),jQuery("#guide_intelligent").removeClass("selected"),jQuery("#guide_manual").removeClass("selected"),(RVS.SLIDER.settings.def.intelligentInherit?jQuery("#guide_intelligent"):RVS.SLIDER.settings.size.custom.n||RVS.SLIDER.settings.size.custom.t||RVS.SLIDER.settings.size.custom.m?jQuery("#guide_manual"):jQuery("#guide_classic")).addClass("selected"),RVS.F.updateEasyInputs({container:jQuery("#rbm_quickguide"),path:"settings."}),RVS.F.RSDialog.create({modalid:"rbm_quickguide",bgopacity:.85})},RVS.F.openHelpGuide=function(s){function e(){RVS.DOC.on("click","#rbm_template_guide .rbm_close, #rbm_module_guide .rbm_close",function(){var e;RVS.F.RSDialog.close(),guide_tooltip.dataset.showedOnce||("template"!==s||RVS.globals.templateGuide)&&RVS.globals.moduleGuide&&(e=document.querySelector(".help_wrap").getBoundingClientRect(),tpGS.gsap.fromTo(guide_tooltip,{opacity:0,x:e.left+e.width/2-250,y:e.bottom+10},{opacity:1,display:"block",onComplete:function(){tpGS.gsap.to(guide_tooltip,{delay:9,opacity:0,display:"none"})}}),guide_tooltip.dataset.showedOnce=!0)}),"template"===s?(RVS.globals.templateGuide&&RVS.F.RSDialog.create({modalid:"rbm_template_guide",bgopacity:.85}),tpGS.gsap.set("#help_menu_module, #gt_module_title",{display:"none"}),help_menu_template.addEventListener("click",function(e){e.stopPropagation(),RVS.F.RSDialog.create({modalid:"rbm_template_guide",bgopacity:.85})})):"module"===s&&(RVS.ENV.unsaved&&RVS.globals.moduleGuide&&RVS.F.RSDialog.create({modalid:"rbm_module_guide",bgopacity:.85}),tpGS.gsap.set("#help_menu_template, #gt_template_title",{display:"none"}),help_menu_module.addEventListener("click",function(e){e.stopPropagation(),RVS.F.RSDialog.create({modalid:"rbm_module_guide",bgopacity:.85})}))}var t,i,a,r,o="template"===s?[{id:"guideEditContent",title:"Edit Content",links:[{name:"Editing Text",icon:"edit",link:"https://www.sliderrevolution.com/manual/editing-text-from-template-modules/",scan:!1,type:"LAYERS"},{name:"Editing Images",icon:"image",link:"https://www.sliderrevolution.com/manual/editing-images-in-template-modules/",type:"LAYERS",scan:[{target:"layer",type:"image",path:"media.imageUrl",value:"string"},{target:"layer",type:"shape",path:"idle.backgroundImage",value:"string"}]},{name:"Swapping Videos",icon:"play_circle",link:"https://www.sliderrevolution.com/manual/changing-videos-and-dealing-with-cross-site-origin/",scan:[{target:"slide",path:"bg.mpeg",value:"string",check:"bg.type",checkValue:"html5"},{target:"slide",path:"bg.ogv",value:"string",check:"bg.type",checkValue:"html5"},{target:"slide",path:"bg.webm",value:"string",check:"bg.type",checkValue:"html5"},{target:"slide",path:"bg.youtube",value:"string",check:"bg.type",checkValue:"youtube"},{target:"slide",path:"bg.vimeo",value:"string",check:"bg.type",checkValue:"vimeo"},{target:"layer",type:"video",path:"media.mp4Url",value:"string",check:"media.mediaType",checkValue:"html5"},{target:"layer",type:"video",path:"media.ogvUrl",value:"string",check:"media.mediaType",checkValue:"html5"},{target:"layer",type:"video",path:"media.webmUrl",value:"string",check:"media.mediaType",checkValue:"html5"},{target:"layer",type:"video",path:"media.id",value:"string",check:"media.mediaType",checkValue:"youtube"},{target:"layer",type:"video",path:"media.id",value:"string",check:"media.mediaType",checkValue:"vimeo"}],type:"LAYERS"},{name:"Selecting Colors",icon:"palette",link:"https://www.sliderrevolution.com/manual/the-tools-of-the-color-selection-dialogue/",scan:!1,type:"MISC"},{name:"Editing Backgrounds",icon:"wallpaper",link:"https://www.sliderrevolution.com/manual/changing-template-background-colors-and-images/",scan:!1,type:"SLIDES"},{name:"Managing Slides",icon:"rectangle",link:"https://www.sliderrevolution.com/manual/adding-deleting-and-duplicating-slides/",scan:!1,type:"SLIDES"},{name:"Rows, Groups & Global Layers",icon:"table_rows",link:"https://www.sliderrevolution.com/manual/special-layers-rows-groups-backgrounds-global/",scan:[{target:"static"},{target:"layer",path:"row"},{target:"layer",path:"column"},{target:"layer",path:"group"}],type:"LAYERS"}]},{id:"guideTemplateFeatures",title:"Template Features",links:[{name:"Spinner",icon:"loop",link:"https://www.sliderrevolution.com/manual/switching-and-coloring-spinners-a-k-a-pre-loaders/",type:"SLIDER",scan:[{target:"slider",path:"settings.layout.spinner.type",unValue:"off"}]},{name:"Auto Rotate Slideshow",icon:"auto_mode",link:"https://www.sliderrevolution.com/manual/controlling-auto-rotation-of-slides/",type:"SLIDER",scan:[{target:"slider",path:"settings.type",unValue:"hero"}]},{name:"Parallax",icon:"landscape",link:"https://www.sliderrevolution.com/manual/working-with-parallax-effects-in-slider-revolution/",type:"SLIDER",scan:[{target:"slider",path:"settings.parallax.set",unValue:!1}]},{name:"Custom CSS/JS",icon:"code",link:"https://www.sliderrevolution.com/manual/custom-css-and-javascript-with-slider-revolution/",type:"SLIDER",scan:[{target:"slider",path:"settings.codes.css"},{target:"slider",path:"settings.codes.javascript"}]},{name:"Slider As Modal",icon:"check_box_outline_blank",link:"https://www.sliderrevolution.com/manual/slider-revolution-modules-as-modals/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"open_modal"}]},{name:"Global Color Skin",icon:"palette",link:"https://www.sliderrevolution.com/manual/skin-based-color-schemes/",type:"SLIDER",scan:[{target:"slider",path:"settings.skins",special:"skins"}]},{name:"Timeline Scroll Based",icon:"mouse",link:"https://www.sliderrevolution.com/manual/progress-the-timeline-by-scrolling/",type:"SLIDER",scan:[{target:"slider",path:"settings.scrolltimeline.set"}]},{name:"Scroll Based Effects",icon:"mouse",link:"https://www.sliderrevolution.com/manual/add-scroll-based-visual-effects/",type:"SLIDER",scan:[{target:"slider",path:"settings.scrolleffects.set"}]},{name:"Progress Bar",icon:"horizontal_rule",link:"https://www.sliderrevolution.com/manual/add-and-style-progress-bars/",type:"SLIDER",scan:[{target:"slider",path:"settings.general.progressbar.set"}]},{name:"Fixed on Top",icon:"align_vertical_top",link:"https://www.sliderrevolution.com/manual/fix-modules-on-top-of-page/",type:"SLIDER",scan:[{target:"slider",path:"settings.layout.position.fixedOnTop"}]},{name:"Dynamic Viewport Loading",icon:"hourglass_bottom",link:"https://www.sliderrevolution.com/manual/dynamic-viewport-loading/",type:"SLIDER",scan:[{target:"slider",path:"settings.general.slideshow.viewPort"}]}]},{id:"guideUserInteractions",title:"User Interactions",links:[{name:"Editing Links (actions)",icon:"link",link:"https://www.sliderrevolution.com/manual/editing-links-in-template-modules/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"link,callback,getAccelerationPermission,scrollto,scroll_under"}]},{name:"Link Actions",icon:"link",link:"https://www.sliderrevolution.com/manual/add-and-configure-link-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"link,callback,getAccelerationPermission,scrollto,scroll_under"}]},{name:"Slide Actions",icon:"slideshow",link:"https://www.sliderrevolution.com/manual/adding-and-configuring-slide-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"jumpto,next,prev,pause,resume,toggle_slider,open_modal,close_modal"}]},{name:"Layer Actions",icon:"layers",link:"https://www.sliderrevolution.com/manual/add-and-configure-layer-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"start_in,start_out,start_frame,next_frame,prev_frame,toggle_frames,simulate_click,toggle_class,mtrap_follow,mtrap_unfollow"}]},{name:"Media Actions",icon:"movie",link:"https://www.sliderrevolution.com/manual/adding-and-configuring-media-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"start_video,stop_video,toggle_video,mute_video,unmute_video,toggle_mute_video,toggle_global_mute_video"}]},{name:"Full Screen Actions",icon:"fullscreen",link:"https://www.sliderrevolution.com/manual/adding-and-configuring-fullscreen-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"togglefullscreen,gofullscreen,exitfullscreen"}]},{name:"Arrow Navigation",icon:"swap_horiz",link:"https://www.sliderrevolution.com/manual/activate-and-configure-arrow-navigation/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.arrows.set"}]},{name:"Bullet Navigation",icon:"more_horiz",link:"https://www.sliderrevolution.com/manual/activate-and-configure-bullet-navigation/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.bullets.set"}]},{name:"Tab Navigation",icon:"view_column",link:"https://www.sliderrevolution.com/manual/activate-and-configure-tab-navigation/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.tabs.set"}]},{name:"Thumbs Navigation",icon:"filter_frames",link:"https://www.sliderrevolution.com/manual/add-and-configure-thumbs-navigation/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.thumbs.set"}]},{name:"Touch, Mouse & Keyboard Navigation",icon:"touch_app",link:"https://www.sliderrevolution.com/manual/configuring-module-navigation-with-touch-keyboard-mouse/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.mouse.set",unValue:"off"},{target:"slider",path:"settings.nav.swipe.set"},{target:"slider",path:"settings.nav.keyboard.set"}]},{name:"Navigation Editor",icon:"edit_note",link:"https://www.sliderrevolution.com/manual/make-custom-navigation-skins-using-the-navigation-editor/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.arrows.set"},{target:"slider",path:"settings.nav.bullets.set"},{target:"slider",path:"settings.nav.tabs.set"},{target:"slider",path:"settings.nav.thumbs.set"}]}]},{id:"guideAnimations",title:"Animations",links:[{name:"Slide Transitions",icon:"movie",link:"https://www.sliderrevolution.com/manual/setting-slide-transition-animations/",scan:!1,type:"SLIDES"},{name:"Layer Animation",icon:"play_arrow",link:"https://www.sliderrevolution.com/manual/the-fundamentals-of-animation-in-slider-revolution/#h-learning-path-edit-simple-animations",scan:!1,type:"LAYERS"},{name:"Keyframe Animation",icon:"animation",link:"https://www.sliderrevolution.com/manual/the-fundamentals-of-animation-in-slider-revolution/#h-learning-path-multi-keyframe-animations",scan:!1,type:"LAYERS"}]},{id:"guideAddons",title:"Addons",links:[{name:"Managing Addons",icon:"settings_applications",link:"https://www.sliderrevolution.com/manual/browse-install-and-enable-addons/",scan:!1,type:"ADDONS"},{name:"Advanced Transitions",icon:"movie",link:"https://www.sliderrevolution.com/manual/how-to-use-the-advanced-transitions-addon/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-transitionpack-addon.enable"}]},{name:"Lottie Animations",icon:"whatshot",link:"https://www.sliderrevolution.com/manual/lottie-addon-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-lottie-addon.enable"}]},{name:"Scroll Video",icon:"movie",link:"https://www.sliderrevolution.com/manual/scroll-video-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-scrollvideo-addon.enable"}]},{name:"Particle Effects",icon:"blur_on",link:"https://www.sliderrevolution.com/manual/particle-effects-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-particles-addon.enable"}]},{name:"Particle Wave",icon:"leaderboard",link:"https://www.sliderrevolution.com/manual/particle-wave-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-particlewave-addon.enable"}]},{name:"Distortion",icon:"fingerprint",link:"https://www.sliderrevolution.com/manual/distortion-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-liquideffect-addon.enable"}]},{name:"Before & After",icon:"flip",link:"https://www.sliderrevolution.com/manual/before-after-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-beforeafter-addon.enable"}]},{name:"Slicey",icon:"picture_in_picture_alt",link:"https://www.sliderrevolution.com/manual/slicey-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-slicey-addon.enable"}]},{name:"Paintbrush",icon:"format_paint",link:"https://www.sliderrevolution.com/manual/paintbrush-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-paintbrush-addon.enable"}]},{name:"Bubble Morph",icon:"bubble_chart",link:"https://www.sliderrevolution.com/manual/bubble-morph-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-bubblemorph-addon.enable"}]},{name:"Customizing Particle Wave",icon:"leaderboard",link:"https://www.sliderrevolution.com/manual/customizing-particle-waves/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-particlewave-addon.enable"}]},{name:"Mousetrap",icon:"my_location",link:"https://www.sliderrevolution.com/manual/mousetrap-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-mousetrap-addon.enable"}]}]},{id:"guideOptPublish",title:"Optimizing & Publishing",links:[{name:"Ensuring Responsiveness",icon:"equalizer",link:"https://www.sliderrevolution.com/manual/checking-to-ensure-modified-content-is-still-responsive/",scan:!1,type:"SLIDER"},{name:"Optimzing Load Speed & Performance",icon:"tune",link:"https://www.sliderrevolution.com/tutorials/optimizing-load-speed-and-performance/",scan:!1,type:"SLIDER"},{name:"Embedding Modules",icon:"add_card",link:"https://www.sliderrevolution.com/manual/add-modules-to-a-page/",scan:!1,type:"SLIDER"}]}]:[{id:"guideModuleAddingContent",title:"Adding Content",links:[{name:"Adding Layers",icon:"layers",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-your-own-layers/"},{name:"Adding Text",icon:"edit",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/configuring-custom-text-layers/"},{name:"Adding Images",icon:"image",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-image-layers/"},{name:"Adding Buttons",icon:"add_box",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-button-layers/"},{name:"Adding Shapes",icon:"interests",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-shape-layers/"},{name:"Adding Videos",icon:"movie",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-video-layers/"},{name:"Adding Audio",icon:"music_note",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-audio-layers/"},{name:"Adding Icons/SVG",icon:"filter_drama",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-icon-and-svg-layers/"},{name:"Backgrounds",icon:"wallpaper",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/configuring-the-background-layer/"}]},{id:"guideModuleGeneralOptions",title:"Module General Options",links:[{name:"Quick Start Guide",icon:"settings",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/custom-module-quick-start/"}]},{id:"guideModuleUserInteractions",title:"User Interactions",links:[{name:"Link Actions",icon:"link",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/add-and-configure-link-actions/"},{name:"Slide Actions",icon:"slideshow",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-slide-actions/"},{name:"Layer Actions",icon:"layers",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/add-and-configure-layer-actions/"},{name:"Media Actions",icon:"pause",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-media-actions/"},{name:"Full Screen Actions",icon:"fullscreen",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-fullscreen-actions/"},{name:"Arrow Navigation",icon:"swap_horiz",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/activate-and-configure-arrow-navigation/"},{name:"Bullet Navigation",icon:"more_horiz",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/activate-and-configure-bullet-navigation/"},{name:"Tab Navigation",icon:"view_column",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/activate-and-configure-tab-navigation/"},{name:"Thumbs Navigation",icon:"filter_frames",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/add-and-configure-thumbs-navigation/"},{name:"Touch, Mouse & Keyboard Navigation",icon:"touch_app",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/configuring-module-navigation-with-touch-keyboard-mouse/"},{name:"Navigation Editor",icon:"edit_note",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/make-custom-navigation-skins-using-the-navigation-editor/"}]},{id:"guideModuleAnimations",title:"Animations",links:[{name:"Slide Transitions",icon:"movie",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/setting-slide-transition-animations/"},{name:"Layer Animation",icon:"play_arrow",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/the-fundamentals-of-animation-in-slider-revolution/#h-learning-path-edit-simple-animations"},{name:"Keyframe Animation",icon:"animation",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/the-fundamentals-of-animation-in-slider-revolution/#h-learning-path-multi-keyframe-animations"}]},{id:"guideModuleAddons",title:"Addons",links:[{name:"Managing Addons",icon:"settings_applications",link:"https://www.sliderrevolution.com/manual/browse-install-and-enable-addons/",scan:!1,type:"ADDONS"},{name:"Advanced Transitions",icon:"movie",link:"https://www.sliderrevolution.com/manual/how-to-use-the-advanced-transitions-addon/",type:"ADDONS",scan:!1},{name:"Lottie Animations",icon:"whatshot",link:"https://www.sliderrevolution.com/manual/lottie-addon-quick-start/",type:"ADDONS",scan:!1},{name:"Scroll Video",icon:"movie",link:"https://www.sliderrevolution.com/manual/scroll-video-addon-guide/",type:"ADDONS",scan:!1},{name:"Particle Effects",icon:"blur_on",link:"https://www.sliderrevolution.com/manual/particle-effects-quick-start/",type:"ADDONS",scan:!1},{name:"Particle Wave",icon:"leaderboard",link:"https://www.sliderrevolution.com/manual/particle-wave-quick-start/",type:"ADDONS",scan:!1},{name:"Distortion",icon:"fingerprint",link:"https://www.sliderrevolution.com/manual/distortion-quick-start/",type:"ADDONS",scan:!1},{name:"Before & After",icon:"flip",link:"https://www.sliderrevolution.com/manual/before-after-quick-start/",type:"ADDONS",scan:!1},{name:"Slicey",icon:"picture_in_picture_alt",link:"https://www.sliderrevolution.com/manual/slicey-addon-guide/",type:"ADDONS",scan:!1},{name:"Paintbrush",icon:"format_paint",link:"https://www.sliderrevolution.com/manual/paintbrush-addon-guide/",type:"ADDONS",scan:!1},{name:"Bubble Morph",icon:"bubble_chart",link:"https://www.sliderrevolution.com/manual/bubble-morph-addon-guide/",type:"ADDONS",scan:!1},{name:"Customizing Particle Wave",icon:"leaderboard",link:"https://www.sliderrevolution.com/manual/customizing-particle-waves/",type:"ADDONS",scan:!1},{name:"Mousetrap",icon:"my_location",link:"https://www.sliderrevolution.com/manual/mousetrap-addon-guide/",type:"ADDONS",scan:!1}]},{id:"guideModuleOptiPublish",title:"Optimizing & Publishing",links:[{name:"Ensuring Responsiveness",icon:"equalizer",link:"https://www.sliderrevolution.com/manual/checking-to-ensure-modified-content-is-still-responsive/",scan:!1,type:"SLIDER"},{name:"Optimzing Load Speed & Performance",icon:"tune",link:"https://www.sliderrevolution.com/tutorials/optimizing-load-speed-and-performance/",scan:!1,type:"SLIDER"},{name:"Embedding Modules",icon:"add_card",link:"https://www.sliderrevolution.com/manual/add-modules-to-a-page/",scan:!1,type:"SLIDER"}]}];"module"===s?(document.querySelector("#gm_load_tmplib").addEventListener("click",function(e){e.stopPropagation(),document.location.href=RVS.ENV.admin_url+"#template_library"}),R(rbm_module_guide),t=void 0!==RVS.ENV.guide&&void 0!==RVS.ENV.guide.bottom&&RVS.ENV.guide.bottom.title?RVS.ENV.guide.bottom.title:"Load A Template From The Library",i=void 0!==RVS.ENV.guide&&void 0!==RVS.ENV.guide.bottom&&RVS.ENV.guide.bottom.img?RVS.ENV.guide.bottom.img:RVS.ENV.plugin_url+"admin/assets/images/guide/guide_mod_banner.png",document.querySelector("#rbm_module_guide .gm_br_desc").innerHTML=t,document.querySelector("#rbm_module_guide .gm_br_banner img").setAttribute("src",i)):(t=void 0===RVS.ENV.tempGuide||""===RVS.ENV.tempGuide.title?"Require Expert Technical Advice?<br/> Submit a Ticket for Dedicated 1on1 Help.":RVS.ENV.tempGuide.title,i=void 0===RVS.ENV.tempGuide||""===RVS.ENV.tempGuide.img?RVS.ENV.plugin_url+"admin/assets/images/guide/guide_temp_banner.jpg":RVS.ENV.tempGuide.img,a=void 0===RVS.ENV.tempGuide||""===RVS.ENV.tempGuide.url?"https://account.sliderrevolution.com/portal/?redirect_to=supportsystem":RVS.ENV.tempGuide.url,r=void 0===RVS.ENV.tempGuide||""===RVS.ENV.tempGuide.template_img?RVS.ENV.plugin_url+"admin/assets/images/guide/guide_temp_thumb.jpg":RVS.ENV.tempGuide.template_img,a+=(a.includes("?")?"&":"?")+"utm_source=admin&utm_medium=button&utm_campaign=editorguide&utm_content=templatetutorial",document.querySelector("#rbm_template_guide .gm_br_desc").innerHTML=t,document.querySelector("#rbm_template_guide .gm_br_banner img").setAttribute("src",i),document.querySelector("#rbm_template_guide .gm_tl_thumb1").setAttribute("src",r),document.querySelector("#rbm_template_guide .gm_tl_thumb2").setAttribute("src",r),gm_temp_tut.setAttribute("href",a),R(rbm_template_guide),gm_tl_title.textContent=void 0!==RVS.ENV.tempGuide&&RVS.ENV.tempGuide.template_title?RVS.ENV.tempGuide.template_title:RVS.SLIDER.settings.title,void 0!==RVS.ENV.tempGuide&&!a.includes("supportsystem")||RVS.ENV.activated||gm_temp_tut.addEventListener("click",function(e){e.preventDefault(),RVS.F.showRegisterSliderInfo()})),document.querySelector("#gt_global_settings").addEventListener("click",function(){document.location.href=RVS.ENV.admin_url+"#global_settings"}),RVS.F.createHelpLinks(o,"template"===s?".gm_template_collection":".gm_module_collection"),RVS.DOC.on("click",".gm_guide_tile",function(e){var t=document.querySelector("#"+this.getAttribute("data-guide")),i=(tpGS.gsap.set(".gm_guide_links_wrap",{display:"none"}),tpGS.gsap.set(t,{display:"grid"}),this.getBoundingClientRect()),a=t.getBoundingClientRect(),r=document.querySelector("template"===s?"#rbm_template_guide .gm_content":"#rbm_module_guide .gm_content").getBoundingClientRect();tpGS.gsap.set(t,{width:i.width,x:i.left-r.left,y:r.height-(i.top-r.top)>=a.height?i.top-r.top:i.bottom-r.top-a.height})}),RVS.DOC.on("click",".gm_close_guide_links",function(e){tpGS.gsap.set(".gm_guide_links_wrap",{display:"none"})}),RVS.DOC.on("click","#gt_close",function(){tpGS.gsap.set(guide_tooltip,{display:"none"})});A("template"===s?rbm_template_guide:rbm_module_guide),window.initGlobalSettings?e():RVS.DOC.on("globalSettingsInited",e)},RVS.F.createHelpLinks=function(e,t){for(var i=document.querySelector(t),a=0;a<e.length;a++){var r=e[a],s=r.links,o=document.createElement("div"),n=document.createElement("div"),l=document.createElement("div"),d=document.createElement("i"),S=document.createElement("div");o.classList.add("gm_guide_links_wrap"),o.id=r.id,n.classList.add("gm_guide_links_header"),l.classList.add("gm_guide_links_title"),l.textContent=r.title,d.classList.add("rbm_symbol","material-icons","gm_close_guide_links"),d.textContent="close",S.classList.add("gm_guide_links"),i.appendChild(o),o.appendChild(n),n.appendChild(l),n.appendChild(d),o.appendChild(S);for(var c=0;c<s.length;c++){var p,u,R,V,m=s[c],y=!1;if(!1===m.scan)y=!0;else if(Array.isArray(m.scan))for(var g=0;g<m.scan.length&&!(y=function(e){for(var t,i=0;i<RVS.SLIDER.slideIDs.length;i++){var a=RVS.SLIDER[RVS.SLIDER.slideIDs[i]];if("slide"===e.target){if(""!==(t=h(a.slide,e.path))&&e.check){if(h(a.slide,e.check)===e.checkValue)return t}else if(""!==t)return t}else if("layer"===e.target||"action"===e.target){for(var r in a.layers)if(a.layers.hasOwnProperty(r)){var s=a.layers[r];if("action"!==e.target){if(e.checkTarget){if(a.layers[r].type===e.checkTarget)return!0}else if(""!==(t=h(a.layers[r],e.path))&&e.check){if(h(a.slide,e.check)===e.checkValue)return t}else if(""!==t)return t}else if(s.actions)for(var o=s.actions.action,n=0;n<o.length;n++){var l=o[n];if(e.checkValue.includes(",")&&(e.checkValue=e.checkValue.split(",")),e.checkValue&&(l.action===e.checkValue||Array.isArray(e.checkValue)&&e.checkValue.includes(l.action)))return!0}}}else if("static"===e.target){var d=RVS.SLIDER[RVS.SLIDER.staticSlideId];for(r in d.layers)if(d.layers.hasOwnProperty(r)&&"top"!==r&&"middle"!==r&&"bottom"!==r)return!0}else if("slider"===e.target){var S=RVS.SLIDER;if(t=h(S,e.path),e.special){if("skins"===e.special)return!(!t.colorsAtStart&&t.colors[0]&&"#ff0000"===t.colors[0].v&&t.colors[1]&&"#ffffff"===t.colors[1].v&&t.colors[2]&&"#00ffff"===t.colors[2].v)}else{if(e.unValue&&t!==e.unValue)return!0;if(""!==t)return t}}}return t}(m.scan[g]));g++);y&&(p=document.createElement("a"),u=document.createElement("i"),R=document.createElement("span"),V=document.createElement("div"),p.classList.add("gm_guide_link","gm_blue_highlight"),p.setAttribute("href",m.link+"?utm_source=admin&utm_medium=button&utm_campaign=editorguide&utm_content=manual"),p.setAttribute("target","_blank"),u.classList.add("rbm_symbol","material-icons"),u.textContent=m.icon,R.textContent=m.name,V.classList.add("gm_guide_type","gm_guide_type_"+m.type),V.textContent=m.type,S.appendChild(p),p.appendChild(u),p.appendChild(R),p.appendChild(V))}}},RVS.F.duplicateSkinColors=function(e){if(void 0!==RVS.SLIDER.settings.skins&&void 0!==RVS.SLIDER.settings.skins.colors)for(var t in RVS.SLIDER.settings.skins.colors)if(RVS.SLIDER.settings.skins.colors.hasOwnProperty(t)&&void 0!==RVS.SLIDER.settings.skins.colors[t].ref){var i,a,r=RVS.SLIDER.settings.skins.colors[t].ref,s=[];for(i in r)r.hasOwnProperty(i)&&("slide"===e.type&&void 0!==e.slideFrom&&void 0!==e.slideTo&&""+r[i].slide==""+e.slideFrom?((a=jQuery.extend(!0,{},r[i])).slide=""+e.slideTo,a.r=a.r.replace(e.slideFrom,e.slideTo),s.push(a)):"layer"===e.type&&void 0!==e.layerFrom&&void 0!==e.layerTo&&""+r[i].slide==""+e.slideFrom&&""+r[i].layer==""+e.layerFrom&&((a=jQuery.extend(!0,{},r[i])).layer=""+e.layerTo,a.slide=""+e.slideTo,a.r=a.r.replace(e.slideFrom,e.slideTo),a.r=a.r.replace(".layers."+e.layerFrom,".layers."+e.layerTo),s.push(a)));for(i=0;i<s.length;i++)r.push(s[i])}},RVS.F.buildRuler=function(e){void 0===RVS.S.bodyHidden&&(document.body.style.overflowY="hidden",RVS.S.bodyHidden=!0);var t=d[0].getContext("2d"),i=S[0].getContext("2d"),a=0;RVS.S.isRetina=void 0===RVS.S.isRetina?1<window.devicePixelRatio:RVS.S.isRetina,RVS.S.isIOS=void 0===RVS.S.isIOS?t.webkitBackingStorePixelRatio<2||null==t.webkitBackingStorePixelRatio:RVS.S.isIOS,RVS.S.retinaFactor=void 0===RVS.S.retinaFactor?RVS.S.isRetina&&RVS.S.isIOS?2:1:RVS.S.retinaFactor,t.canvas.width=3600*RVS.S.retinaFactor,t.canvas.height=15*RVS.S.retinaFactor,i.canvas.width=15*RVS.S.retinaFactor,i.canvas.height=3600*RVS.S.retinaFactor,t.scale(RVS.S.retinaFactor,RVS.S.retinaFactor),i.scale(RVS.S.retinaFactor,RVS.S.retinaFactor),t.strokeStyle=i.strokeStyle="#414243",t.font="10px Arial",i.font="10px Arial",t.fillStyle="rgba(183,187,192,0.5)",i.fillStyle="rgba(183,187,192,0.5)",t.beginPath(),i.beginPath();for(var r=0;r<600;r++)(a%2==0||0===a)&&0===a?(t.moveTo(10*r*RVS.zoom,15),t.lineTo(10*r*RVS.zoom,0),i.moveTo(15,10*r*RVS.zoom),i.lineTo(0,10*r*RVS.zoom)):(t.moveTo(10*r*RVS.zoom,15),t.lineTo(10*r*RVS.zoom,15-8/RVS.S.retinaFactor),i.moveTo(15,10*r*RVS.zoom),i.lineTo(15-8/RVS.S.retinaFactor,10*r*RVS.zoom)),a=10==++a?0:a;t.stroke(),i.stroke();for(r=0;r<60;r++){var s,o=100*(r-12),n=(""+o).split("");for(s in t.fillText(o,(100*r+5)*RVS.zoom,10),n)i.fillText(n[s],3,(100*r+14)*RVS.zoom+9*s)}tpGS.gsap.set(d,{left:Math.round(-1200*RVS.zoom)+"px"}),tpGS.gsap.set(S,{top:Math.round(-1200*RVS.zoom)+"px"}),void 0===e&&(p.width=l.width(),RVS.S.ulDIM={width:RVS.C.UL.width(),height:RVS.C.UL.height()},u=RVS.C.rb.offset())},RVS.F.openSliderApi=function(){"FAIL"!==window.rs_jscss_editor&&("undefined"==typeof RevMirror||void 0===RevMirror?(RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.loadingRevMirror}),RVS.F.loadCSS(RVS.ENV.plugin_url+"/admin/assets/css/RevMirror.css"),jQuery.getScript(RVS.ENV.plugin_url+"/admin/assets/js/plugins/RevMirror.js",function(){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),RVS.F.openSliderApi()}).fail(function(e,t,i){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),window.rs_jscss_editor="FAIL"})):void 0===window.rs_jscss_editor?(window.rs_jscss_editor=RevMirror(document.getElementById("rs_css_js_area"),{value:RVS.SLIDER.settings.codes.css,mode:"css",theme:"hopscotch",lineWrapping:!0,lineNumbers:!0}),window.rs_jscss_editor.on("focus",function(){window.rs_jscss_editor.refresh()}),setTimeout(RVS.F.openSliderApi,200)):(RVS.F.RSDialog.create({modalid:"rbm_slider_api",bgopacity:.5}),jQuery(".emc_toggle_inner").RSScroll({suppressScrollX:!0}),setTimeout(function(){window.rs_jscss_editor.refresh()},600)))},RVS.F.openColorSkinApi=function(){RVS.F.RSDialog.create({modalid:"rbm_colorskins",bgopacity:0}),RVS.F.updateEasyInputs({container:jQuery("#rbm_colorskins"),path:"settings."}),RVS.F.initTpColorBoxes(jQuery("#rbm_colorskins").find(".my-color-field"))},RVS.F.JWALL=function(){return"carousel"===RVS.SLIDER.settings.type&&!0===RVS.SLIDER.settings.carousel.justify},RVS.F.CSTRETCH=function(){return"carousel"===RVS.SLIDER.settings.type&&(!0===RVS.SLIDER.settings.carousel.stretch||"v"==RVS.SLIDER.settings.carousel.orientation)},RVS.F.CVERT=function(){return"carousel"===RVS.SLIDER.settings.type&&"v"==RVS.SLIDER.settings.carousel.orientation},RVS.F.CHOR=function(){return"carousel"===RVS.SLIDER.settings.type&&"v"!=RVS.SLIDER.settings.carousel.orientation},RVS.F.GW=function(e){var t,i=parseInt(RVS.SLIDER.settings.size.width[e],0);return RVS.F.JWALL()?(t=RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&void 0!==RVS.S.lastShownSlideId?RVS.S.lastShownSlideId:RVS.S.slideId,"image"!==RVS.SLIDER[t].slide.bg.type&&"external"!==RVS.SLIDER[t].slide.bg.type||void 0!==RVS.SLIDER[t].slide.bg.imageRatio&&(i=parseInt(RVS.SLIDER.settings.size.height[e],0)*RVS.SLIDER[t].slide.bg.imageRatio)):RVS.F.CSTRETCH()&&(t=RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&void 0!==RVS.S.lastShownSlideId?RVS.S.lastShownSlideId:RVS.S.slideId),i},RVS.F.sliderDimensionOffsets=function(){var e={};return e.carouseltop="carousel"===RVS.SLIDER.settings.type?parseInt(RVS.SLIDER.settings.carousel.paddingTop,0):0,e.carouselbottom="carousel"===RVS.SLIDER.settings.type?parseInt(RVS.SLIDER.settings.carousel.paddingBottom,0):0,e.carouseloffset="carousel"===RVS.SLIDER.settings.type?e.carouseltop+e.carouselbottom:0,e.navtop="outer-top"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set?RVS.S.navOffset.thumbs.top:0,e.navtop="outer-top"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set?RVS.S.navOffset.tabs.top:e.navtop,e.navbottom="outer-bottom"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set?RVS.S.navOffset.thumbs.bottom:0,e.navbottom="outer-bottom"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set?RVS.S.navOffset.tabs.bottom:e.navbottom,e.navleft="outer-left"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set?RVS.S.navOffset.thumbs.left:0,e.navleft="outer-left"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set?RVS.S.navOffset.tabs.left:e.navleft,e.navright="outer-right"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set?RVS.S.navOffset.thumbs.right:0,e.navright="outer-right"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set?RVS.S.navOffset.tabs.right:e.navright,e.louter="outer-left"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set||"outer-left"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set,e.router="outer-right"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set||"outer-right"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set,e},RVS.F.updateMinSliderHeights=function(){return e=void 0===x?0:x,x=void 0!==RVS.C.layergrid?RVS.C.rZone.top.height()+RVS.C.rZone.middle.height()+RVS.C.rZone.bottom.height():0,e!==x},RVS.F.setSlidesDimension=function(e,t){w(e,t)},RVS.F.updateScreenShrinks=function(){var e,t,i,a=RVS.F.GW("d");for(e in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(e)&&(t=RVS.V.sizes[e],i=RVS.SLIDER.settings.size.custom[t]?RVS.F.GW(t):Math.min(a,RVS.ENV.grid_sizes[t]),RVS.S.shrink[t]=i/a,a=i)}}(),function(){var Q,a,r,s,l,d,S,o,t,W=["chars","words","lines"],i=[];function X(e){e=jQuery.extend(!0,{},e);return delete e.borderWidth,delete e.borderStyle,delete e.borderColor,delete e.backgroundColor,delete e.background,delete e.backgroundImage,delete e["backdrop-filter"],e}function Y(e){return void 0===e?"start":"backward"===e?"end":"middletoedge"===e?"center":"edgetomiddle"===e?"edge":e}function U(e){var t,i;for(i in e)"string"==typeof e[i]&&0<=e[i].indexOf("|")&&(t=e[i].replace("[","").replace("]","").split("|"),e[i]=new function(e){return tpGS.gsap.utils.wrap(t,void 0)});return e}function q(e){var t,i,a=void 0===e.source?jQuery.extend(!0,{},e.frame.transform):jQuery.extend(!0,{},e.frame[e.source]),r={originX:"50%",originY:"50%",originZ:"0"};for(i in a)if(a.hasOwnProperty(i)){if(a[i]="object"==typeof a[i]?a[i][RVS.screen].v:a[i],"inherit"===a[i]||"delay"===i||"direction"===i||"use"===i||"fuse"===i)delete a[i];else if("originX"===i||"originY"===i||"originZ"===i)r[i]=a[i],delete a[i];else if("perspective"!==i&&"transformPerspective"!==i||"global"!==RVS.SLIDER.settings.general.perspectiveType&&"isometric"!==RVS.SLIDER.settings.general.perspectiveType||(a[i]="isometric"===RVS.SLIDER.settings.general.perspectiveType?0:RVS.SLIDER.settings.general.perspective),RVS.F.isNumeric(a[i],0))a[i]=a[i];else if(a[i].match(/[\{\}]/g))a[i]="random("+a[i].replace(/[\{&&\}]+/g,"")+")";else if(a[i].match(/%/g)&&RVS.F.isNumeric(parseInt(a[i],0)))t=void 0===t?{height:RVS.H[e.layerid].w.height(),width:RVS.H[e.layerid].w.width()}:t,a[i]="x"==i?t.width*parseInt(a[i],0)/100:"y"==i?t.height*parseInt(a[i],0)/100:a[i];else if(a[i].match(/[\[\]]/g)){var s=a[i].replace("[","").replace("]","").split("|");a[i]=new function(e){return tpGS.gsap.utils.wrap(s,void 0)}}else{var o=RVS.H[e.layerid].w.position(),n="slide"===RVS.L[e.layerid].behavior.baseAlign?RVS.S.layer_grid_offset.left:0,l=-1===RVS.L[e.layerid].group.puid||void 0===RVS.H[RVS.L[e.layerid].group.puid]?RVS.S.lgh:RVS.H[RVS.L[e.layerid].group.puid].w.height(),d=-1===RVS.L[e.layerid].group.puid||void 0===RVS.H[RVS.L[e.layerid].group.puid]?RVS.S.lgw:RVS.H[RVS.L[e.layerid].group.puid].w.width(),S={t:0,b:0};switch("row"===RVS.L[e.layerid].type&&("top"===RVS.L[e.layerid].group.puid?S={t:0,b:Math.round(RVS.C.rZone.top[0].offsetHeight)}:"middle"===RVS.L[e.layerid].group.puid?S={t:Math.round(RVS.S.ulDIM.height/2-RVS.C.rZone.middle[0].offsetHeight/2),b:Math.round(RVS.S.ulDIM.height/2+RVS.C.rZone.middle[0].offsetHeight/2)}:"bottom"===RVS.L[e.layerid].group.puid&&(S={t:Math.round(RVS.S.ulDIM.height-RVS.C.rZone.bottom[0].offsetHeight),b:RVS.S.ulDIM.height+RVS.C.rZone.bottom[0].offsetHeight})),t=void 0===t?{height:RVS.H[e.layerid].w.height(),width:RVS.H[e.layerid].w.width()}:t,a[i]){case"top":a[i]=0-t.height-o.top-S.b;break;case"bottom":a[i]=l-o.top-S.t;break;case"left":a[i]=n-t.width-o.left;break;case"right":a[i]=d-o.left;break;case"middle":case"center":a[i]="x"===i?d/2-o.left-t.width/2:"y"===i?l/2-o.top-t.height/2:a[i]}}"skewX"===i&&void 0!==a[i]&&0!==parseFloat(a[i])&&(a.scaleY=void 0===a.scaleY?1:parseFloat(a.scaleY),a.scaleY*=Math.cos(parseFloat(a[i])*tpGS.DEG2RAD)),"skewY"===i&&void 0!==a[i]&0!==parseFloat(a[i])&&(a.scaleX=void 0===a.scaleX?1:parseFloat(a.scaleX),a.scaleX*=Math.cos(parseFloat(a[i])*tpGS.DEG2RAD))}if(a.transformOrigin=r.originX+" "+r.originY+" "+r.originZ,a.clip&&RVS.L[e.layerid].timeline.clipPath.use){var c="rectangle"==RVS.L[e.layerid].timeline.clipPath.type,p=parseInt(a.clip,0),u=100-parseInt(a.clipB,0),R=Math.round(p/2);switch(RVS.L[e.layerid].timeline.clipPath.origin){case"invh":a.clipPath="polygon(0% 0%, 0% 100%, "+p+"% 100%, "+p+"% 0%, 100% 0%, 100% 100%, "+u+"% 100%, "+u+"% 0%, 0% 0%)";break;case"invv":a.clipPath="polygon(100% 0%, 0% 0%, 0% "+p+"%, 100% "+p+"%, 100% 100%, 0% 100%, 0% "+u+"%, 100% "+u+"%, 100% 0%)";break;case"cv":a.clipPath=c?"polygon("+(50-R)+"% 0%, "+(50+R)+"% 0%, "+(50+R)+"% 100%, "+(50-R)+"% 100%)":"circle("+p+"% at 50% 50%)";break;case"ch":a.clipPath=c?"polygon(0% "+(50-R)+"%, 0% "+(50+R)+"%, 100% "+(50+R)+"%, 100% "+(50-R)+"%)":"circle("+p+"% at 50% 50%)";break;case"l":a.clipPath=c?"polygon(0% 0%, "+p+"% 0%, "+p+"% 100%, 0% 100%)":"circle("+p+"% at 0% 50%)";break;case"r":a.clipPath=c?"polygon("+(100-p)+"% 0%, 100% 0%, 100% 100%, "+(100-p)+"% 100%)":"circle("+p+"% at 100% 50%)";break;case"t":a.clipPath=c?"polygon(0% 0%, 100% 0%, 100% "+p+"%, 0% "+p+"%)":"circle("+p+"% at 50% 0%)";break;case"b":a.clipPath=c?"polygon(0% 100%, 100% 100%, 100% "+(100-p)+"%, 0% "+(100-p)+"%)":"circle("+p+"% at 50% 100%)";break;case"lt":a.clipPath=c?"polygon(0% 0%,"+2*p+"% 0%, 0% "+2*p+"%)":"circle("+p+"% at 0% 0%)";break;case"lb":a.clipPath=c?"polygon(0% "+(100-2*p)+"%, 0% 100%,"+2*p+"% 100%)":"circle("+p+"% at 0% 100%)";break;case"rt":a.clipPath=c?"polygon("+(100-2*p)+"% 0%, 100% 0%, 100% "+2*p+"%)":"circle("+p+"% at 100% 0%)";break;case"rb":a.clipPath=c?"polygon("+(100-2*p)+"% 100%, 100% 100%, 100% "+(100-2*p)+"%)":"circle("+p+"% at 100% 100%)";break;case"clr":a.clipPath=c?"polygon(0% 0%, 0% "+p+"%, "+(100-p)+"% 100%, 100% 100%, 100% "+(100-p)+"%, "+p+"% 0%)":"circle("+p+"% at 50% 50%)";break;case"crl":a.clipPath=c?"polygon(0% "+(100-p)+"%, 0% 100%, "+p+"% 100%, 100% "+p+"%, 100% 0%, "+(100-p)+"% 0%)":"circle("+p+"% at 50% 50%)"}!0!==RVS.F.isFirefox()&&(a["-webkit-clip-path"]=a.clipPath),a["clip-path"]=a.clipPath,delete a.clip}else a.clip&&(a.clipPath=RVS.L[e.layerid].idle.spikeUse?"polygon("+RVS.F.getClipPaths(RVS.L[e.layerid].idle.spikeLeft,0,parseFloat(RVS.L[e.layerid].idle.spikeLeftWidth))+","+RVS.F.getClipPaths(RVS.L[e.layerid].idle.spikeRight,100,100-parseFloat(RVS.L[e.layerid].idle.spikeRightWidth),!0)+")":"none",!0!==RVS.F.isFirefox()&&(a["-webkit-clip-path"]=a.clipPath),a["clip-path"]=a.clipPath,delete a.clip);return void 0!==e.frame&&void 0!==e.frame.bfilter&&e.frame.bfilter.use&&(a["backdrop-filter"]=RVS.F.buildBackdropFilter(e.frame.bfilter)),void 0!==e.frame&&void 0!==e.frame.filter&&e.frame.filter.use?(a.filter=RVS.F.buildFilter(e.frame.filter),a["-webkit-filter"]=a.filter):0<=jQuery.inArray(e.source,["chars","words","lines"])&&e.frame[e.source].fuse?(a.filter=RVS.F.buildFilter(e.frame[e.source]),a["-webkit-filter"]=a.filter):e.sessionFilterUsed||void 0===e.sessionFilterUsed?(a["-webkit-filter"]="blur(0px) grayscale(0%) brightness(100%)",a.filter="blur(0px) grayscale(0%) brightness(100%)"):(a["-webkit-filter"]="none",a.filter="none"),a.ease=(void 0!==a.ease?a:void 0===a.ease&&void 0!==e.ease||void 0!==a.ease&&void 0!==e.ease&&"inherit"===a.ease?e:e.frame.timeline).ease,a.ease=void 0===a.ease||"default"===a.ease?"power3.inOut":a.ease,a.force3D="auto",a}function n(e,t){e=e<0?0:e;var i=Math.floor(e/6e3),a=Math.floor(Math.ceil(e-6e3*i)/100),e=Math.round(e-100*a-6e3*i);0==i?i="00":i<10&&(i="0"+i.toString()),0==a?a="00":a<10&&(a="0"+a.toString()),0==e?e="00":e<10&&(e="0"+e.toString()),t.ctm.textContent=i.toString(),t.cts.textContent=a.toString(),t.ctms.textContent=e.toString()}RVS.F.initTimeLineModules=function(){RVS.ENV.tlGridWrap=void 0===RVS.ENV.tlGridWrap?jQuery("#tl_gridmanagement_wrap"):RVS.ENV.tlGridWrap,RVS.ENV.tlMultipWrap=void 0===RVS.ENV.tlMultipWrap?jQuery(".tl_multip_wrap"):RVS.ENV.tlMultipWrap,RVS.ENV.tlMagnifWrap=void 0===RVS.ENV.tlMagnifWrap?jQuery(".tl_magnifying_wrap"):RVS.ENV.tlMagnifWrap,RVS.DOC.on("click","#maxtime",function(){jQuery(".slide_submodule_trigger.selected").removeClass("selected"),RVS.F.mainMode({mode:"slidelayout",forms:["*slidelayout**mode__slidestyle*#form_slide_progress"],set:!0,uncollapse:!0,slide:RVS.S.slideId})}),RVS.DOC.on("updateAllLayerFrames",RVS.F.updateAllLayerFrames),RVS.DOC.on("updateSlideLoopRange",function(){RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.set&&RVS.F.updateSlideLoopTimes({cont:!0,pos:!0,start:RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.start/10,end:RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.end/10})}),RVS.DOC.on("updateFixedScrollRange",function(){RVS.SLIDER.settings.scrolltimeline.set&&RVS.SLIDER.settings.scrolltimeline.fixed&&RVS.F.updateFixedScrollTimes({cont:!0,pos:!0,start:parseInt(RVS.SLIDER.settings.scrolltimeline.fixedStart)/10,end:parseInt(RVS.SLIDER.settings.scrolltimeline.fixedEnd)/10})}),RVS.DOC.on("click","#the_slide_timeline",function(){return RVS.F.selectLayers({overwrite:!0}),jQuery(".slide_submodule_trigger.selected").removeClass("selected"),RVS.F.mainMode({mode:"slidelayout",forms:["*slidelayout**mode__slidestyle*#form_slide_transition"],set:!0,uncollapse:!0,slide:RVS.S.slideId}),!1}),RVS.DOC.on("click","#tl_multiplicator",function(){RVS.ENV.tlMultipWrap.toggleClass("selected"),RVS.ENV.tlMultipWrap.hasClass("selected")&&(RVS.ENV.tlMagnifWrap.removeClass("selected"),RVS.ENV.tlGridWrap.removeClass("selected"),RVS.F.clearSnapVisual())}),RVS.DOC.on("click","#tl_framemagnet",function(){RVS.ENV.tlMagnifWrap.toggleClass("selected"),RVS.ENV.tlMagnifWrap.hasClass("selected")&&(RVS.ENV.tlMultipWrap.removeClass("selected"),RVS.ENV.tlGridWrap.removeClass("selected"),RVS.F.clearSnapVisual())}),RVS.DOC.on("click","#tl_gridmanagement",function(){RVS.F.updateEasyInputs({container:RVS.ENV.tlGridWrap,visualUpdate:!0}),RVS.ENV.tlGridWrap.toggleClass("selected"),RVS.ENV.tlGridWrap.hasClass("selected")?(RVS.F.snapVisual(),RVS.ENV.tlMagnifWrap.removeClass("selected"),RVS.ENV.tlMultipWrap.removeClass("selected")):RVS.F.clearSnapVisual()}),RVS.DOC.on("click",".closeme_tl_miniwrapper",function(){RVS.ENV.tlGridWrap.removeClass("selected"),RVS.ENV.tlMagnifWrap.removeClass("selected"),RVS.ENV.tlMultipWrap.removeClass("selected")}),RVS.DOC.on("magnetframes",function(e,t){void 0!==t&&void 0!==t.val&&(d=t.val)}),RVS.DOC.on("click","#gsf_ok",function(){var e,t=parseInt(document.getElementById("general_speed_factor").value,0);if(RVS.F.isNumeric(t)&&100!==t){for(var i in t/=100,RVS.F.openBackupGroup({id:"frame",txt:"General Timings",icon:"access_time"}),RVS.L)if(void 0!==RVS.L[i].timeline)for(var a in RVS.L[i].timeline.frames)RVS.L[i].timeline.frames.hasOwnProperty(a)&&(e=RVS.L[i].timeline.frames[a],RVS.F.isNumeric(parseInt(e.timeline.start,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i+".timeline.frames."+a+".timeline.start",val:Math.round(parseInt(e.timeline.start,0)*t)}),RVS.F.isNumeric(parseInt(e.timeline.speed,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i+".timeline.frames."+a+".timeline.speed",val:Math.round(parseInt(e.timeline.speed,0)*t)}),e.words.use&&RVS.F.isNumeric(parseInt(e.words.delay,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i+".timeline.frames."+a+".words.delay",val:Math.round(parseInt(e.words.delay,0)*t)}),e.chars.use&&RVS.F.isNumeric(parseInt(e.chars.delay,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i+".timeline.frames."+a+".chars.delay",val:Math.round(parseInt(e.chars.delay,0)*t)}),e.lines.use)&&RVS.F.isNumeric(parseInt(e.lines.delay,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i+".timeline.frames."+a+".lines.delay",val:Math.round(parseInt(e.lines.delay,0)*t)});RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.timeline.delay",val:10*Math.round(RVS.F.getSlideLength()*t)}),RVS.F.isNumeric(RVS.SLIDER[RVS.S.slideId].slide.slideChange.speed)&&RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.slideChange.speed",val:Math.round(RVS.SLIDER[RVS.S.slideId].slide.slideChange.speed*t)}),RVS.F.updateAllLayerFrames(),requestAnimationFrame(function(){RVS.F.updateSlideFrames()}),RVS.F.closeBackupGroup({id:"frame"}),RVS.DOC.trigger("updateMaxTime")}document.getElementById("general_speed_factor").value="100%"}),RVS.DOC.on("updateMaxTime",function(e,t){for(var i in RVS.F.updateMaxTime({pos:!0,cont:!0}),RVS.SLIDER.slideIDs){var a=RVS.SLIDER.slideIDs[i];if(!(void 0===a||0<=(""+a).indexOf("static"))){l=RVS.F.getSlideLength(a);var r,s=RVS.F.getSlideLayersEndWithSlide(a);for(r in s)s.hasOwnProperty(r)&&s[r].endWithSlide&&(RVS.SLIDER[a].layers[r].timeline.frames.frame_999.timeline.start=10*l,""+a==""+RVS.S.slideId)&&RVS.F.updateLayerFrame({layerid:r,frame:"frame_999",maxtime:l})}}}),RVS.DOC.on("windowresized",function(){RVS.TL.hasOwnProperty("cache")&&(RVS.TL.timelineStartedFromPlayStop=!1,RVS.TL.cache.main=0,RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}),RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}))}),RVS.DOC.on("updateSlideTransitionTimeLine",function(){requestAnimationFrame(function(){RVS.F.updateSlideFrames(),RVS.F.redrawSlideBG()})}),RVS.DOC.on("playTimeLine",function(){RVS.F.changeSwitchState({el:document.getElementById("timline_process"),state:"stop"}),RVS.TL.timelineStartedFromPlayStop=!0,RVS.F.buildMainTimeLine();var e=RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main?RVS.TL[RVS.S.slideId].main.time():0;RVS.F.updateTimeLine({force:!0,state:"time",time:e,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0}),RVS.F.updateTimeLine({state:"play",timeline:"main",force:!1})}),RVS.DOC.on("stopTimeLine",function(){RVS.TL.cache.main=0,RVS.TL.timelineStartedFromPlayStop=!1,RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}),RVS.F.buildMainTimeLine(),RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"})}),RVS.DOC.on("previewLayerAnimation",function(){for(var e in RVS.S.shwLayerAnim=!0,RVS.F.changeSwitchState({el:document.getElementById("layer_simulator"),state:"stop"}),RVS.F.changeSwitchState({el:document.getElementById("layer_simulator_loop"),state:"stop"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(RVS.F.renderLayerAnimation({layerid:RVS.selLayers[e]}),RVS.F.playLayerAnimation({layerid:RVS.selLayers[e]}))}),RVS.DOC.on("previewStopLayerAnimation",function(){RVS.S.shwLayerAnim=!1,RVS.F.changeSwitchState({el:document.getElementById("layer_simulator"),state:"play"}),RVS.F.changeSwitchState({el:document.getElementById("layer_simulator_loop"),state:"play"}),RVS.F.stopAllLayerAnimation()}),RVS.DOC.on("click","#copy_keyframe",function(){1==RVS.selLayers.length&&void 0!==RVS.S.keyFrame&&(t=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame]),jQuery("#paste_keyframe").show())}),RVS.DOC.on("click","#paste_keyframe",function(){var e;1==RVS.selLayers.length&&void 0!==RVS.S.keyFrame&&((e=RVS.F.getPrevNextFrame({layerid:RVS.selLayers[0],frame:RVS.S.keyFrame})).next.start>=e.cur.end+t.timeline.frameLength?(e=RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame],t.timeline.actionTriggered=e.timeline.actionTriggered,t.timeline.start=e.timeline.start,t.timeline.startRelative=e.timeline.startRelative,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".timeline.frames."+RVS.S.keyFrame,val:t}),RVS.DOC.trigger("updateKeyFramesList"),RVS.F.updateAllLayerFrames(),RVS.F.updateLayerInputFields()):RVS.F.showInfo({content:RVS_LANG.framesizecannotbeextended,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""}))}),RVS.TL.c.layertime=jQuery("#layer_simulator_time"),RVS.TL.c.layerprogress=jQuery("#layer_animation_progressarrow")},RVS.F.animateSlide=function(e,t,i,a){},RVS.F.buildMainTimeLine=function(e){RVS.TL[RVS.S.slideId].main=new tpGS.TimelineMax({paused:!0}),RVS.TL[RVS.S.slideId]=void 0===RVS.TL[RVS.S.slideId]?{}:RVS.TL[RVS.S.slideId],RVS.TL[RVS.S.slideId].slide=void 0===RVS.TL[RVS.S.slideId].slide?new tpGS.gsap.timeline:RVS.TL[RVS.S.slideId].slide,RVS.TL[RVS.S.slideId].main.add(RVS.TL[RVS.S.slideId].slide,0),RVS.TL[RVS.S.slideId].main.add("end",RVS.F.getSlideLength()/100),window.tpfake=1,RVS.TL[RVS.S.slideId].main.add(new tpGS.gsap.set(window,{tpfake:0}),"end"),RVS.SLIDER[RVS.S.slideId].slide.panzoom.set&&void 0!==RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].main.add(RVS.TL[RVS.S.slideId].panzoom,0),e&&(e.time||e.progress)&&RVS.F.updateTimeLine({timeline:"main",state:"time",time:e.tim}),RVS.TL[RVS.S.slideId].main.eventCallback("onUpdate",function(){RVS.F.updateCurTime({pos:!0,cont:!0,left:100*this._time,refreshMainTimeLine:!1,caller:"buildMainTimeLine"})}),RVS.TL[RVS.S.slideId].main.eventCallback("onComplete",function(){RVS.TL.timelineStartedFromPlayStop&&(RVS.TL.timelineStartedFromPlayStop=!1,RVS.TL.cache.main=0,RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}))})},RVS.F.resetSlideTL=function(){void 0!==RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.kill(),RVS.TL[RVS.S.slideId].slide=new tpGS.gsap.timeline},RVS.F.updateFramesZIndexes=function(e){var t,i,a=1e3;for(t in void 0===RVS.L[e.layerid].timeline.frameOrder&&RVS.F.getFrameOrder({layerid:e.layerid}),RVS.L[e.layerid].timeline.frameOrder)RVS.L[e.layerid].timeline.frameOrder.hasOwnProperty(t)&&"frame_0"!==RVS.L[e.layerid].timeline.frameOrder[t].id&&((i=document.getElementById(RVS.S.slideId+"_"+e.layerid+"_"+RVS.L[e.layerid].timeline.frameOrder[t].id))&&tpGS.gsap.set(i,{zIndex:a}),a--)},RVS.F.addFrame=function(e){var t={wrap:e.container,bg:jQuery(e.container.getElementsByTagName("framebg")[0]),frame:RVS.F.cE({t:"framewrap",id:RVS.S.slideId+"_"+e.layerid+"_"+e.frame,cN:"frame_"+e.frame,ds:{layertype:e.layertype,layerid:e.layerid,frame:e.frame}}),framedelay:RVS.F.cE({t:"framedelay"}),info:RVS.F.cE({t:"frameinfo"}),sloop:RVS.F.cE({t:"startloop"}),eloop:RVS.F.cE({t:"endloop"}),marker:RVS.F.cE({t:"marker"}),obj:e};return"frame_1"===e.frame&&(t.frame.appendChild(RVS.F.cE({t:"ffbefore",ds:{frame:"frame_0"}})),t.frame.appendChild(RVS.F.cE({t:"ffafter",ds:{frame:"frame_1"}}))),t.framedelay.textContent="2500",t.sloop.appendChild(RVS.F.cI({c:"chevron_right"})),t.eloop.appendChild(RVS.F.cI({c:"chevron_left"})),t.frame.appendChild(t.framedelay),t.frame.appendChild(t.sloop),t.frame.appendChild(t.eloop),t.frame.appendChild(t.info),t.frame.appendChild(t.marker),e.container.appendChild(t.frame),void 0===RVS.TL.frameMouseListenerObjects&&(RVS.TL.frameMouseListenerObjects={},RVS.DOC.on("mouseenter","framewrap",function(){var e;void 0===this.dataset.mlisteners&&(this.dataset.mlisteners=!0,(e=RVS.TL.frameMouseListenerObjects[this.id]).jframe=jQuery(e.frame),void 0!==e.obj.resize&&e.jframe.resizable({handles:e.obj.resize,minWidth:5,start:e.obj.start,stop:e.obj.stopresize,resize:e.obj.onresize}),void 0!==e.obj.ondrag)&&(e.jframe.draggable({axis:"x",delay:50,start:e.obj.start,stop:e.obj.stopdrag,drag:e.obj.ondrag}),e.bg.draggable({axis:"x",delay:50,start:e.obj.start,stop:e.obj.stopdrag,drag:e.obj.ondrag}))})),RVS.TL.frameMouseListenerObjects[t.frame.id]=t},RVS.F.buildSlideFrames=function(){RVS.TL.fref=void 0===RVS.TL.fref?RVS.F.addFrame({container:document.querySelector("#slide_frame_container .frameswrap"),frame:"0",resize:"e",layerid:"",start:function(e,t){r=(r=RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main?RVS.TL[RVS.S.slideId].main.time():0)<.0015?"idle":r,s=t.element.find("frameinfo"),l=RVS.F.getSlideLength(),RVS.TL.inDrag=!0},onresize:function(e,t){t.size.width=t.size.width<=l?t.size.width:l;var i=RVS.F.slideAnimWithMoreRowCol()?10*t.size.width/(1+1/(RVS.SLIDER[RVS.S.slideId].slide.slideChange.d/10)):10*t.size.width;RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.slideChange.speed",val:Math.round(i),ignoreBackup:!0}),RVS.F.buildMainTimeLine({time:r}),RVS.F.redrawSlideBG(),s[0].innerHTML=10*t.size.width,document.getElementById("sltrans_duration").value=Math.round(i)},stopresize:function(e,t){var i=RVS.F.slideAnimWithMoreRowCol()?10*t.size.width/(1+1/(RVS.SLIDER[RVS.S.slideId].slide.slideChange.d/10)):10*t.size.width;RVS.F.backup({path:RVS.S.slideId+".slide.slideChange.speed",lastkey:"speed",val:Math.round(i),old:10*t.originalSize.width}),RVS.F.buildMainTimeLine({time:r}),RVS.F.timelineDragsStop(),RVS.F.redrawSlideBG(),document.getElementById("sltrans_duration").value=Math.round(i),requestAnimationFrame(function(){RVS.F.updateSlideFrames()})}}):RVS.TL.fref,requestAnimationFrame(function(){RVS.F.updateSlideFrames()})},RVS.F.slideAnimWithMoreRowCol=function(){let e=1<RVS.SLIDER[RVS.S.slideId].slide.slideChange.in.row||1<RVS.SLIDER[RVS.S.slideId].slide.slideChange.in.col;for(var t in RVS.JHOOKS.slideAnimRowColCheck)RVS.JHOOKS.slideAnimRowColCheck.hasOwnProperty(t)&&(e=RVS.JHOOKS.slideAnimRowColCheck[t](e));return e},RVS.F.updateSlideFrames=function(e){(e=void 0===e?{}:e).slidedelay=void 0===e.slidedelay?RVS.F.getSlideLength():e.slidedelay;var t="default"===(t=RVS.SLIDER[RVS.S.slideId].slide.slideChange.speed)||"Default"===t||"Random"===t?1e3:parseFloat(t,0),i=RVS.F.slideAnimWithMoreRowCol()?t/(RVS.SLIDER[RVS.S.slideId].slide.slideChange.d/10):0;t=Math.round(Math.round(t+i)/10),RVS.TL.ssubref=void 0===RVS.TL.ssubref?document.getElementById("slideframespeed_sub"):RVS.TL.ssubref,e.animspeed=void 0===e.animspeed?t:e.animspeed,RVS.TL.ssubref.innerHTML="("+10*e.animspeed+")",tpGS.gsap.set(RVS.TL.fref.wrap,{width:e.slidedelay}),tpGS.gsap.set(RVS.TL.fref.frame,{width:e.animspeed}),RVS.TL.fref.info.innerHTML=10*e.animspeed},RVS.F.addLayerFrames=function(e,t){RVS.TL[RVS.S.slideId].layers=void 0===RVS.TL[RVS.S.slideId].layers?{}:RVS.TL[RVS.S.slideId].layers,RVS.TL[RVS.S.slideId].layers[e.uid]=void 0===RVS.TL[RVS.S.slideId].layers[e.uid]?{}:RVS.TL[RVS.S.slideId].layers[e.uid];var i,a,r=10*RVS.F.getSlideLength();for(i in void 0===e.timeline.frameOrder&&RVS.F.getFrameOrder({layerid:e.uid}),e.timeline.frameOrder)e.timeline.frameOrder.hasOwnProperty(i)&&"frame_0"!==(a=e.timeline.frameOrder[i].id)&&(e.timeline.frames.frame_999.timeline.start=0===e.timeline.frames.frame_999.timeline.start||e.timeline.frames.frame_999.timeline.start>r?r:e.timeline.frames.frame_999.timeline.start,RVS.F.addLayerFrameOnDemand(e,t,a));RVS.F.updateFramesZIndexes({layerid:e.uid})},RVS.F.addLayerFrameOnDemand=function(e,t,i){RVS.F.addLayerFrame({frame:e.timeline.frames[i],frameindex:i,layerid:e.uid,layertype:e.type,framecontainer:RVS.TL[RVS.S.slideId].layers[e.uid],wrap:t.querySelector(".frameswrap")}),RVS.F.updateLayerFrame({layerid:e.uid,frame:i})},RVS.F.getLayerAliasAndFrame=function(e){var t=e.frame.replace("_"," ").replace("f","F");return RVS.F.sanitize_input(RVS.L[e.layerid].alias)+" "+t},RVS.F.setChildrenTimelines=function(e){if(void 0!==e.childLayers)for(var t in e.childLayers)if(e.childLayers.hasOwnProperty(t)){var i,a,r,s=e.childLayers[t];for(i in RVS.L[t].timeline.frameOrder)fi=RVS.L[t].timeline.frameOrder[i],s.frames.hasOwnProperty(fi)&&"frame_0"!==fi&&(a=RVS.F.getPrevNextFrame({layerid:t,frame:fi}),r=s.frames[fi]/10-e.difference,a.prev.end/10>=r?r=a.prev.end/10:a.next.start/10<=r+a.cur.framelength/10&&(r=a.next.start/10-a.cur.framelength/10),l<r&&(r=l),void 0===s.endWithSlide||s.endWithSlide?RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[fi].timeline.start=10*r:s.frames[fi]>10*l&&"frame_999"===fi&&!s.endWithSlide&&(RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[fi].timeline.start=Math.max(a.prev.end,10*l)),RVS.F.updateLayerFrame({layerid:t,frame:fi,maxtime:l}))}},RVS.F.moveChildrenTimelines=function(e){if(void 0!==e.childLayers)for(var t in e.childLayers)if(e.childLayers.hasOwnProperty(t)&&(1!=d||t===S.layerid)){var i,a,r,s,o=e.childLayers[t],n=o.forder.length-1;for(i in o.forder)o.forder.hasOwnProperty(i)&&"frame_0"!==(a=-1===e.order?o.forder[n-i]:o.forder[i])&&(r=RVS.F.getPrevNextFrame({layerid:t,frame:a}),s=o.frames[a]/10-e.difference,(s=r.prev.frameid===S.frame&&e.thend&&r.prev?s<e.thend?e.thend:s:s)<0&&(s=0),r.next.start/10<s+r.cur.framelength/10&&(s=r.next.start/10-r.cur.framelength/10),l<s&&(s=l),void 0!==o.endWithSlide&&!o.endWithSlide||(RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[a].timeline.start=10*s),o.frames[a]>10*l&&"frame_999"===a&&!o.endWithSlide&&(RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[a].timeline.start=Math.max(r.prev.end,10*l)),RVS.F.updateLayerFrame({layerid:t,frame:a,maxtime:l}))}},RVS.F.backupChildren=function(e){if(void 0!==e.childLayers)for(var t in e.childLayers)if(e.childLayers.hasOwnProperty(t)){var i,a=e.childLayers[t];for(i in a.frames)a.frames.hasOwnProperty(i)&&RVS.F.backup({path:RVS.S.slideId+".layers."+t+".timeline.frames."+i+".timeline.start",lastkey:"start",val:RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[i].timeline.start,old:a.frames[i]})}},RVS.F.getFirstFrame=function(e){return void 0===RVS.L[e.layerid].timeline.frameOrder&&RVS.F.getFrameOrder({layerid:e.layerid}),("frame_0"===RVS.L[e.layerid].timeline.frameOrder[0].id?RVS.L[e.layerid].timeline.frameOrder[1]:RVS.L[e.layerid].timeline.frameOrder[0]).id},RVS.F.addLayerFrame=function(e){e.framecontainer[e.frameindex]=RVS.F.addFrame({container:e.wrap,frame:e.frameindex,layerid:e.layerid,layertype:e.layertype,resize:"w,e",start:function(e,t){if(RVS.TL.inDrag=!0,RVS.TL.tS.classList.add("frame_in_drag"),RVS.TL.timeBeforeFrameChange=null==RVS.TL[RVS.S.slideId].main?0:RVS.TL[RVS.S.slideId].main.time(),"true"!==(S=void 0===t.element?{licontainer:document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+t.helper[0].dataset.layerid),layerid:t.helper[0].dataset.layerid,frame:t.helper[0].dataset.frame,type:t.helper[0].dataset.layertype,bg:t.helper[0].dataset.bg}:{layerid:t.element[0].dataset.layerid,frame:t.element[0].dataset.frame,type:t.element[0].dataset.layertype,bg:t.element[0].dataset.bg}).bg?(S.frameName=RVS.F.getLayerAliasAndFrame(S),o=RVS.F.getPrevNextFrame(S),S.path=RVS.F.getLayerObjPath(S)):(S.layerwidth=t.helper.width(),S.frame="All Frames",o=RVS.F.getPrevNextFrame({layerid:S.layerid,frame:RVS.F.getFirstFrame({layerid:S.layerid})}),S.frameName=RVS.F.getLayerAliasAndFrame(S)),l=RVS.F.getSlideLength(),(S.bg&&"dragstart"==e.type&&0<=jQuery.inArray(S.type,["column","row","group"])||"dragstart"==e.type&&S.frame==RVS.F.getFirstFrame({layerid:S.layerid})&&0<=jQuery.inArray(S.type,["column","row","group"]))&&(S.childLayers=RVS.F.getLayerChildren({layerid:S.layerid})),S.bg?S.childLayers=RVS.F.getLayerFrames({layerid:S.layerid,extend:S.childLayers}):S.childLayers=RVS.F.getLayerFrames({layerid:S.layerid,extend:S.childLayers,afterStart:o.cur.start,include999:!0}),1==d||2==d)for(var i in S.childLayers)if(S.childLayers.hasOwnProperty(i))for(var a in S.childLayers[i].forder=[],S.childLayers[i].frames)S.childLayers[i].frames.hasOwnProperty(a)&&S.childLayers[i].forder.push(a);if(RVS.F.updateFrameTime({pos:!0,cont:!0,left:o.cur.start-.31}),"frame_1"===S.frame)for(var i in jQuery(S.licontainer).addClass("frame_1_indrag"),S.childLayers)S.childLayers.hasOwnProperty(i)&&(S.childLayers[i].hiddenc=document.getElementById("frame_unvisible_start_"+RVS.S.slideId+"_"+i))},ondrag:function(e,t){for(var i in t.position.left>window.lastCachedUiPosition&&(1==d||2==d)&&RVS.F.moveChildrenTimelines({thend:t.position.left+S.framelength/10,order:-1,childLayers:S.childLayers,difference:t.originalPosition.left-t.position.left}),o=RVS.F.getPrevNextFrame(S),"true"!==S.bg?("frame_1"!==S.frame&&o.prev.end/10>=t.position.left&&(t.position.left=o.prev.end/10),"frame_1"==S.frame&&t.position.left<=0&&(t.position.left=0),o.next.layerid==S.layerid&&o.next.start/10<=t.position.left+o.cur.framelength/10&&(t.position.left=o.next.start/10-o.cur.framelength/10),t.position.left>l&&(t.position.left=l)):t.position.left=t.position.left<o.prev.end/10?o.prev.end/10:parseInt(t.position.left,0)+parseInt(S.layerwidth,0)>=l?l-S.layerwidth:t.position.left,1!=d&&2!=d||RVS.F.moveChildrenTimelines({thend:t.position.left+S.framelength/10,childLayers:S.childLayers,difference:t.originalPosition.left-t.position.left}),window.lastCachedUiPosition=t.position.left,"true"!==S.bg?(RVS.F.updateSliderObj({path:S.path+"start",val:Math.round(10*t.position.left),ignoreBackup:!0}),RVS.F.updateSliderObj({path:S.path+"startRelative",val:Math.round(10*t.position.left)-o.prev.end,ignoreBackup:!0}),S.framelength=o.cur.framelength,RVS.F.updateLayerFrame(S)):RVS.F.updateLayerFrame({layerid:S.layerid,frame:"frame_999"}),0<=jQuery.inArray(parseInt(S.layerid,0),RVS.selLayers)&&(document.getElementById("layerframestart").value=Math.round(10*t.position.left)),RVS.F.updateFrameTime({pos:!0,cont:!0,left:t.position.left-.31}),S.childLayers)S.childLayers.hasOwnProperty(i)&&i!==S.layerid&&tpGS.gsap.set(S.childLayers[i].hiddenc,{width:t.position.left+20});o=RVS.F.getPrevNextFrame(S)},onresize:function(e,t){"frame_1"!==S.frame&&o.prev.end/10>t.position.left?(t.position.left=o.prev.end/10,t.size.width=(o.cur.end-o.prev.end)/10):"frame_1"==S.frame&&t.position.left<0?(t.position.left=0,t.size.width=o.cur.end/10):o.next.start/10<=t.position.left+t.size.width&&(t.size.width=(o.next.start-o.cur.start)/10),t.position.left>l&&(t.position.left=l),RVS.F.updateSliderObj({path:S.path+"start",val:Math.round(10*t.position.left),ignoreBackup:!0}),RVS.F.updateSliderObj({path:S.path+"startRelative",val:Math.round(10*t.position.left)-o.prev.end,ignoreBackup:!0}),RVS.F.updateSliderObj({path:S.path+"speed",val:Math.round(10*t.size.width-o.cur.splitDelay),ignoreBackup:!0}),RVS.F.updateLayerFrame(S),"frame_1"===S.frame&&!0===RVS.L[S.layerid].timeline.frames.frame_999.timeline.auto&&RVS.F.updateLayerFrame({layerid:S.layerid,frame:"frame_999"}),0<=jQuery.inArray(parseInt(S.layerid,0),RVS.selLayers)&&(document.getElementById("layerframespeed").value=Math.round(10*t.size.width-o.cur.splitDelay),document.getElementById("layerframestart").value=Math.round(10*t.position.left),document.getElementById("layerframespeed_sub").innerHTML="("+Math.round(10*t.size.width)+")")},stopdrag:function(e,t){for(var i in jQuery(S.licontainer).removeClass("frame_1_indrag"),RVS.F.timelineDragsStop(),RVS.F.openBackupGroup({id:"frame",txt:S.frameName+" Start",icon:"access_time"}),RVS.F.updateAllstartRelatives(),RVS.F.backup({path:S.path+"start",lastkey:"start",val:Math.round(10*t.position.left),old:Math.round(10*t.originalPosition.left)}),RVS.F.backupChildren({childLayers:S.childLayers}),RVS.F.closeBackupGroup({id:"frame"}),RVS.F.renderLayerAnimation({layerid:S.layerid,timeline:"full",time:RVS.TL.timeBeforeFrameChange}),S.childLayers)S.childLayers.hasOwnProperty(i)&&RVS.F.renderLayerAnimation({layerid:i,timeline:"full",time:RVS.TL.timeBeforeFrameChange});RVS.TL.tS.classList.remove("frame_in_drag")},stopresize:function(e,t){for(var i in RVS.F.timelineDragsStop(),RVS.F.openBackupGroup({id:"frame",txt:S.frameName+" Speed",icon:"slow_motion_video"}),RVS.F.updateAllstartRelatives(),RVS.F.backup({path:S.path+"start",lastkey:"start",val:Math.round(10*t.position.left),old:Math.round(10*t.originalPosition.left)}),RVS.F.backup({path:S.path+"speed",lastkey:"speed",val:Math.round(10*t.size.width-o.cur.splitDelay),old:Math.round(10*t.originalSize.width-o.cur.splitDelay)}),RVS.F.closeBackupGroup({id:"frame"}),t.element.css({maxWidth:"none"}),RVS.F.renderLayerAnimation({layerid:S.layerid,timeline:"full",time:RVS.TL.timeBeforeFrameChange}),S.childLayers)S.childLayers.hasOwnProperty(i)&&RVS.F.renderLayerAnimation({layerid:i,timeline:"full",time:RVS.TL.timeBeforeFrameChange});RVS.TL.tS.classList.remove("frame_in_drag")}})},RVS.F.updateAllstartRelatives=function(){for(var e in RVS.L)if(RVS.L.hasOwnProperty(e)&&0<=e&&e<=9999)for(var t in RVS.L[e].timeline.frameOrder){var i;RVS.L[e].timeline.frameOrder.hasOwnProperty(t)&&"frame_0"!==(t=RVS.L[e].timeline.frameOrder[t].id)&&(i=RVS.F.getPrevNextFrame({layerid:RVS.L[e].uid,frame:t}),RVS.F.updateSliderObj({path:RVS.F.getLayerObjPath({layerid:RVS.L[e].uid,frame:t})+"startRelative",val:i.cur.start-i.prev.end}))}},RVS.F.getLayerObjPath=function(e){return RVS.S.slideId+".layers."+e.layerid+".timeline.frames."+e.frame+".timeline."},RVS.F.getPrevNextFrame=function(e){var t,i,a=RVS.L[e.layerid].timeline.frames[e.frame].timeline,r=RVS.F.getSplitDelay({layerid:e.layerid,frame:e.frame}),s=RVS.F.addT([a.start,a.speed,r]),o=RVS.F.getFirstFrame({layerid:e.layerid}),n={cur:{start:a.start,end:s,splitDelay:r,framelength:s-a.start},prev:{start:-1,end:0,frame:{}},next:{start:9999999,end:9999999,frame:{}}};for(t in RVS.L[e.layerid].timeline.frames)RVS.L[e.layerid].timeline.frames.hasOwnProperty(t)&&"frame_0"!==t&&t!==e.frame&&((i=RVS.L[e.layerid].timeline.frames[t].timeline).start<a.start&&i.start>n.prev.start&&(n.prev={start:i.start,end:RVS.F.addT([i.start,i.speed,RVS.F.getSplitDelay({layerid:e.layerid,frame:t})]),frame:i,layerid:e.layerid,frameid:t}),i.start>a.start)&&i.start<n.next.start&&(n.next={start:i.start,end:RVS.F.addT([i.start,i.speed,RVS.F.getSplitDelay({layerid:e.layerid,frame:t})]),frame:i,layerid:e.layerid,frameid:t});return e.frame==o&&-1!==RVS.L[e.layerid].group.puid&&-1==jQuery.inArray(RVS.L[e.layerid].group.puid,["top","bottom","middle"])&&(s=RVS.F.getFirstFrame({layerid:RVS.L[e.layerid].group.puid}),o=RVS.L[RVS.L[e.layerid].group.puid].timeline.frames[s].timeline,n.prev.end=o.start,s=RVS.F.addT([o.start,o.speed,r]),n.prev.framelength=s-o.start,n.prev.realEnd=s),n},RVS.F.setStartRelative=function(e){void 0!==RVS.TL[RVS.S.slideId].layers&&RVS.TL[RVS.S.slideId].layers[e.layerid]},RVS.F.updateFrameRealSpeed=function(){document.getElementById("layerframespeed_sub").innerHTML="("+RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.frameLength+")"},RVS.F.getSplitDelay=function(e){var t,i;return void 0!==RVS.H[e.layerid]&&void 0!==RVS.H[e.layerid].splitText||void 0!==RVS.L[e.layerid]&&RVS.L[e.layerid].timeline.split?(i=(t=RVS.L[e.layerid].timeline.frames[e.frame]).chars.use?"chars":t.words.use?"words":t.lines.use?"lines":void 0,void 0!==RVS.H[e.layerid]?(void 0===RVS.H[e.layerid].splitText&&RVS.F.updateSplitContent({layerid:e.layerid}),void 0!==i?RVS.H[e.layerid].splitText[i].length*(void 0===t[i].delay?0:10*t[i].delay):0):void 0!==i&&void 0!==t.timeline.frameLength?t.timeline.frameLength-parseInt(t.timeline.speed,0):0):0},RVS.F.updateAllLayerFrames=function(e){for(var t in e=void 0===e?{}:e,RVS.L)if(RVS.L.hasOwnProperty(t)&&"top"!==t&&"bottom"!==t&&"middle"!==t){var i,a,r=document.getElementById("layerlist_element_alias_"+RVS.S.slideId+"_"+RVS.L[t].uid);for(i in null!==r&&(r.textContent=RVS.L[t].alias),RVS.L[t].timeline.frameOrder)RVS.L[t].timeline.frameOrder.hasOwnProperty(i)&&("frame_0"===(a=RVS.L[t].timeline.frameOrder[i].id)||void 0!==e.frame&&a!==e.frame||RVS.F.updateLayerFrame({layerid:t,frame:a}))}},RVS.F.updateLayerFrames=function(e){for(var t in RVS.L[e.layerid].timeline.frames)!RVS.L[e.layerid].timeline.frames.hasOwnProperty(t)||void 0!==e.frame&&t!==e.frame||"frame_0"===t||RVS.F.updateLayerFrame({layerid:e.layerid,frame:t})},RVS.F.updateLayerFrame=function(e){var t,i,a,r,s,o;void 0!==RVS.TL[RVS.S.slideId].layers&&void 0!==RVS.TL[RVS.S.slideId].layers[e.layerid]&&void 0!==RVS.L[e.layerid].timeline.frames[e.frame]&&(t=RVS.TL[RVS.S.slideId].layers[e.layerid][e.frame],i=RVS.F.getFirstFrame({layerid:e.layerid}),a=RVS.L[e.layerid].timeline.frames[e.frame].timeline,o=RVS.L[e.layerid].timeline.frames[i].timeline,s=(r=RVS.L[e.layerid].timeline.frames.frame_999.timeline).auto&&"frame_999"===e.frame&&void 0!==o&&void 0!==o.frameLength,o=null==e.framelength?s?o.frameLength:RVS.F.addT([a.speed,RVS.F.getSplitDelay({layerid:e.layerid,frame:e.frame})]):e.framelength,tpGS.gsap.set(t.frame,{left:a.start/10+"px",width:o/10}),t.info.textContent=o+(s?" (R)":""),a.frameLength=o,"frame_999"===e.frame&&(t.endframemarker=void 0===t.endframemarker||null==t.endframemarker?document.getElementById("slideendmarker_"+RVS.S.slideId+"_"+e.layerid):t.endframemarker,e.maxtime=void 0===e.maxtime?RVS.F.getSlideLength():e.maxtime,null!==t.endframemarker)&&(a.start/10>=e.maxtime?(t.endframemarker.classList.add("endswithslide"),r.endWithSlide=!0):(t.endframemarker.classList.remove("endswithslide"),r.endWithSlide=!1)),a.actionTriggered=""!==RVS.F.layerFrameTriggeredBy({layerid:e.layerid,frame:e.frame}).uid&&RVS.F.layerFrameTriggered({layerid:e.layerid,frame:e.frame}),t.framedelay.textContent=a.actionTriggered?"a":!0===a.endWithSlide?RVS_LANG.framewait:a.start,null!=RVS.L[e.layerid].timeline&&(t.sloop.style.display=RVS.L[e.layerid].timeline.tloop.use&&RVS.L[e.layerid].timeline.tloop.from===e.frame?"block":"none",t.eloop.style.display=RVS.L[e.layerid].timeline.tloop.use&&RVS.L[e.layerid].timeline.tloop.to===e.frame?"block":"none"),t.framedelay.className=!0===a.endWithSlide?"coloredbg":a.actionTriggered&&e.frame===i?"coloredbgover":a.actionTriggered?"coloredbg":"")},RVS.F.updateAllLayerToIDLE=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.H[e]&&void 0!==RVS.H[e].timeline&&RVS.H[e].timeline.pause("frame_IDLE")},RVS.F.updateTimeLine=function(e){if(e.force&&void 0!==RVS.TL[RVS.S.slideId]&&void 0===RVS.TL[RVS.S.slideId].main&&RVS.F.buildMainTimeLine(),void 0===RVS.TL[RVS.S.slideId]||void 0===RVS.TL[RVS.S.slideId][e.timeline])return!1;switch("panzoom"===e.timeline&&(RVS.TL[RVS.S.slideId].slide.progress(1),RVS.TL[RVS.S.slideId].main)&&RVS.TL[RVS.S.slideId].main.progress(0),(e.forceFullLayerRender||!0===Q&&"main"===e.timeline)&&RVS.F.buildFullLayerAnimation("atstart"),e.state){case"play":if("main"===e.timeline&&(Q=!1),"main"===e.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.play(),"main"===e.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.play(),RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.play(),"main"===e.timeline)for(var t in RVS.L)void 0!==RVS.H[t]&&void 0!==RVS.H[t].timeline&&RVS.H[t].timeline.play();break;case"stop":case"pause":for(var t in"main"===e.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.pause(),"main"===e.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.pause(),RVS.L)RVS.L.hasOwnProperty(t)&&void 0!==RVS.H[t]&&void 0!==RVS.H[t].timeline&&RVS.H[t].timeline.pause();RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.pause();break;case"rewind":if("main"===e.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.time(0),"main"===e.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.time(0),"main"===e.timeline)for(var t in RVS.L)void 0!==RVS.H[t]&&void 0!==RVS.H[t].timeline&&RVS.H[t].timeline.time(0);RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.time(0);break;case"time":if("main"===e.timeline&&(Q=0===e.time),"main"===e.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.time(e.time),"main"===e.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.time(e.time),RVS.TL[RVS.S.slideId].panzoom&&(void 0===e.time?RVS.TL[RVS.S.slideId].panzoom.progress(0):RVS.TL[RVS.S.slideId].panzoom.time(e.time)),e.time=0===e.time?"frame_IDLE":e.time,"main"===e.timeline)for(var t in RVS.L)void 0!==RVS.H[t]&&void 0!==RVS.H[t].timeline&&RVS.H[t].timeline.time(e.time);break;case"progress":if("main"===e.timeline&&(Q=0===e.prgs),"main"===e.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.progress(e.prgs),"main"===e.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.progress(e.prgs),"main"===e.timeline)for(var t in RVS.L)void 0!==RVS.H[t]&&void 0!==RVS.H[t].timeline&&RVS.H[t].timeline.progress(e.prgs);RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.progress(e.prgs);break;case"getprogress":return RVS.TL[RVS.S.slideId][e.timeline].progress();case"getstate":return RVS.TL[RVS.S.slideId][e.timeline].isActive();case"idle":for(var t in RVS.TL.cache={},RVS.TL[RVS.S.slideId].main&&(RVS.TL.cache.main=RVS.TL[RVS.S.slideId].main.time()),RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.progress(0).pause(),RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.progress(0).pause(),RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.progress(1).pause(),RVS.F.changeSwitchState({el:document.getElementById("timline_process"),state:"play"}),RVS.TL.timelineStartedFromPlayStop=!1,RVS.L)RVS.L.hasOwnProperty(t)&&void 0!==RVS.H[t]&&void 0!==RVS.H[t].timeline&&RVS.H[t].timeline.pause("frame_IDLE");Q=!0}0!==e.time&&void 0!==e.time||tpGS.gsap.set(jQuery("rs-sbg-wrap.slotwrapper_cur"),{autoAlpha:1}),RVS.TL[RVS.S.slideId].main&&(RVS.TL.cache.main=RVS.TL[RVS.S.slideId].main.time()),RVS.TL.requestedTime=void 0===e.time?void 0!==RVS.TL[RVS.S.slideId].main?RVS.TL[RVS.S.slideId].main.time():0:e.time,e.updateCurTime&&RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:100*RVS.TL.cache.main,refreshMainTimeLine:!1})},RVS.F.getTimeAtSelectedFrameEnd=function(){var e=0;try{e=RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.start/10+RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.frameLength/10}catch(e){}return e},RVS.F.getTimeAtSelectedFrameMiddle=function(){var e=0;try{e=RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.start/10+RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.frameLength/10/2}catch(e){}return e},RVS.F.getTimeAtSelectedFrameStart=function(e){var t=0;try{t=RVS.L[RVS.selLayers[0]].timeline.frames[e].timeline.start/10}catch(e){}return t},RVS.F.timelineDragsStop=function(){RVS.TL.inDrag=!1,RVS.TL.over||RVS.F.goToIdle()},RVS.F.updateLoopInputs=function(e){e=null==e?{s:RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.start,e:RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.end}:e,jQuery("#slide_loop_end").val(e.e),jQuery("#slide_loop_start").val(e.s)},RVS.F.updateFixedScrollInputs=function(e){e=null==e?{s:RVS.SLIDER.settings.scrolltimeline.fixedStart,e:RVS.SLIDER.settings.scrolltimeline.fixedEnd}:e,jQuery("#fixed_scroll_end").val(e.e),jQuery("#fixed_scroll_start").val(e.s)},RVS.F.getTimeContents=function(e){var t={};return t.ctm=e.querySelector(".ctm"),t.cts=e.querySelector(".cts"),t.ctms=e.querySelector(".ctms"),t},RVS.F.initTimeLineConstruct=function(){a=jQuery("#time_linear");var e=(tlrcanvas=a.find("#time_linear_canvas"))[0].getContext("2d"),t=0;RVS.S.isRetina=void 0===RVS.S.isRetina?1<window.devicePixelRatio:RVS.S.isRetina,RVS.S.isIOS=void 0===RVS.S.isIOS?e.webkitBackingStorePixelRatio<2||null==e.webkitBackingStorePixelRatio:RVS.S.isIOS,RVS.S.retinaFactor=void 0===RVS.S.retinaFactor?RVS.S.isRetina&&RVS.S.isIOS?2:1:RVS.S.retinaFactor,e.canvas.width=16380*RVS.S.retinaFactor,e.canvas.height=35*RVS.S.retinaFactor,RVS.S.retinaFactor=parseInt(RVS.S.retinaFactor),e.scale(RVS.S.retinaFactor,RVS.S.retinaFactor),e.strokeStyle="#414244",e.font="12px Arial",e.fillStyle="rgba(183,187,192,0.5)",e.beginPath();for(var i=0;i<1640;i++)t%20==0||t%10==0?(e.moveTo(10*i+1,28),e.lineTo(10*i+1,14)):(e.moveTo(10*i+1,28),e.lineTo(10*i+1,24)),t=20==++t?0:t;for(e.stroke(),i=0;i<164;i++)e.fillText(i+"s",100*i+5,20),t=2==++t?0:t;RVS.TL.TL=jQuery("#timeline"),RVS.TL.tS=document.getElementById("timeline_settings"),RVS.TL.ft=document.getElementById("frametime"),RVS.TL.ft_txt=RVS.F.getTimeContents(RVS.TL.ft),RVS.TL.mt=jQuery("#maxtime"),RVS.TL.mtfbg=jQuery("#slide_frame_container .frameswrap"),RVS.TL.mt_txt=RVS.F.getTimeContents(RVS.TL.mt[0]),RVS.TL.slts=jQuery("#slidelooptimestart"),RVS.TL.slts_marker=RVS.TL.slts.find(".timebox_marker"),RVS.TL.slts_txt=RVS.F.getTimeContents(RVS.TL.slts[0]),RVS.TL.slte=jQuery("#slidelooptimeend"),RVS.TL.slte_marker=RVS.TL.slte.find(".timebox_marker"),RVS.TL.slte_txt=RVS.F.getTimeContents(RVS.TL.slte[0]),RVS.TL.fixs=jQuery("#fixedscrolltimestart"),RVS.TL.fixs_marker=RVS.TL.fixs.find(".timebox_marker"),RVS.TL.fixs_txt=RVS.F.getTimeContents(RVS.TL.fixs[0]),RVS.TL.fixe=jQuery("#fixedscrolltimeend"),RVS.TL.fixe_marker=RVS.TL.fixe.find(".timebox_marker"),RVS.TL.fixe_txt=RVS.F.getTimeContents(RVS.TL.fixe[0]),RVS.TL.ct=jQuery("#currenttime"),RVS.TL.ct_marker=RVS.TL.ct.find(".timebox_marker"),RVS.TL.ct_txt=RVS.F.getTimeContents(RVS.TL.ct[0]),RVS.TL.ht=jQuery("#hovertime"),RVS.TL.ht_txt=RVS.F.getTimeContents(RVS.TL.ht[0]),RVS.F.updateMaxTime({pos:!0,cont:!0}),a.on("click",function(e){e=e.pageX-310+RVS.TL._scrollLeft;RVS.F.updateCurTime({pos:!0,cont:!0,left:e,refreshMainTimeLine:!0,caller:"initTimeLineConstruct"})}),RVS.TL.fixs.draggable({start:function(e,t){RVS.TL.inDrag=!0},drag:function(e,t){var i=RVS.TL.fixe.position().left;t.position.left=t.position.left>=i?i:t.position.left,t.position.left=t.position.left<1?1:t.position.left,tpGS.gsap.set(".fixedscrolltimemarker",{left:t.position.left,width:i-t.position.left}),RVS.TL.fixs.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.fixs.addClass("covered"):RVS.TL.fixs.removeClass("covered"),RVS.F.updateFixedScrollTimes({cont:!0,start:Math.max(0,t.position.left),end:i}),RVS.F.updateFixedScrollInputs({e:10*i,s:10*Math.max(0,t.position.left)})},stop:function(e,t){var i=RVS.TL.fixe.position().left;t.position.left=t.position.left>=i?i:t.position.left,tpGS.gsap.set(".fixedscrolltimemarker",{left:t.position.left,width:i-t.position.left}),RVS.TL.fixs.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.fixs.addClass("covered"):RVS.TL.fixs.removeClass("covered"),RVS.F.updateFixedScrollTimes({cont:!0,start:t.position.left,end:i}),RVS.F.openBackupGroup({id:"SliderFixedScrollStartTime",txt:"Fixed Scroll Start Time ",icon:"timer_off"}),RVS.F.updateSliderObj({path:"settings.scrolltimeline.fixedStart",val:Math.round(10*t.position.left)}),RVS.F.closeBackupGroup({id:"SliderFixedScrollStartTime"}),RVS.F.updateFixedScrollInputs()},axis:"x"}),RVS.TL.fixe.draggable({start:function(e,t){RVS.TL.inDrag=!0},drag:function(e,t){var i=RVS.TL.fixs.position().left;t.position.left=t.position.left<=i?i:t.position.left,tpGS.gsap.set(".fixedscrolltimemarker",{width:t.position.left-i}),RVS.TL.fixe.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.fixe.addClass("covered"):RVS.TL.fixe.removeClass("covered"),RVS.F.updateFixedScrollTimes({cont:!0,end:t.position.left,start:i}),RVS.F.updateFixedScrollInputs({s:10*i,e:10*t.position.left})},stop:function(e,t){var i=RVS.TL.fixs.position().left;t.position.left=t.position.left<=i?i:t.position.left,tpGS.gsap.set(".fixedscrolltimemarker",{width:t.position.left-i}),RVS.TL.fixe.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.fixe.addClass("covered"):RVS.TL.fixe.removeClass("covered"),RVS.F.updateFixedScrollTimes({cont:!0,end:t.position.left,start:i}),RVS.F.openBackupGroup({id:"SliderFixedScrollEndTime",txt:"Fixed Scroll End Time ",icon:"timer_off"}),RVS.F.updateSliderObj({path:"settings.scrolltimeline.fixedEnd",val:Math.round(10*t.position.left)}),RVS.F.closeBackupGroup({id:"SliderFixedScrollEndTime"}),RVS.F.updateFixedScrollInputs()},axis:"x"}),RVS.TL.slts.draggable({start:function(e,t){RVS.TL.inDrag=!0},drag:function(e,t){var i=RVS.TL.slte.position().left;t.position.left=t.position.left>=i?i:t.position.left,tpGS.gsap.set(".slidelooptimemarker",{left:t.position.left,width:i-t.position.left}),RVS.TL.slts.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.slts.addClass("covered"):RVS.TL.slts.removeClass("covered"),RVS.F.updateSlideLoopTimes({cont:!0,start:t.position.left,end:i}),RVS.F.updateLoopInputs({e:10*i,s:10*t.position.left})},stop:function(e,t){var i=RVS.TL.slte.position().left;t.position.left=t.position.left>=i?i:t.position.left,tpGS.gsap.set(".slidelooptimemarker",{left:t.position.left,width:i-t.position.left}),RVS.TL.slts.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.slts.addClass("covered"):RVS.TL.slts.removeClass("covered"),RVS.F.updateSlideLoopTimes({cont:!0,start:t.position.left,end:i}),RVS.F.openBackupGroup({id:"SlideLoopStartTime",txt:"Slide Loop Start Time ",icon:"timer_off"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.timeline.loop.start",val:Math.round(10*t.position.left)}),RVS.F.closeBackupGroup({id:"SlideLoopStartTime"}),RVS.F.updateLoopInputs()},axis:"x"}),RVS.TL.slte.draggable({start:function(e,t){RVS.TL.inDrag=!0},drag:function(e,t){var i=RVS.TL.slts.position().left;t.position.left=t.position.left<=i?i:t.position.left,tpGS.gsap.set(".slidelooptimemarker",{width:t.position.left-i}),RVS.TL.slte.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.slte.addClass("covered"):RVS.TL.slte.removeClass("covered"),RVS.F.updateSlideLoopTimes({cont:!0,end:t.position.left,start:i}),RVS.F.updateLoopInputs({s:10*i,e:10*t.position.left})},stop:function(e,t){var i=RVS.TL.slts.position().left;t.position.left=t.position.left<=i?i:t.position.left,tpGS.gsap.set(".slidelooptimemarker",{width:t.position.left-i}),RVS.TL.slte.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.slte.addClass("covered"):RVS.TL.slte.removeClass("covered"),RVS.F.updateSlideLoopTimes({cont:!0,end:t.position.left,start:i}),RVS.F.openBackupGroup({id:"SlideLoopEndTime",txt:"Slide Loop End Time ",icon:"timer_off"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.timeline.loop.end",val:Math.round(10*t.position.left)}),RVS.F.closeBackupGroup({id:"SlideLoopEndTime"}),RVS.F.updateLoopInputs()},axis:"x"}),RVS.TL.ct.draggable({start:function(e,t){RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.isActive()||(RVS.F.buildMainTimeLine(),RVS.TL.ht.addClass("hideme"),RVS.TL.inDrag=!0,RVS.TL[RVS.S.slideId]&&void 0!==RVS.TL[RVS.S.slideId].slide&&RVS._R.transitions.motionFilter.clearFull(RVS.SBGS[RVS.S.slideId].n,RVS.TL[RVS.S.slideId].slide))},stop:function(e,t){RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.isActive()||(RVS.TL.ct.offset().left-RVS.TL.TL.offset().left<265?RVS.TL.ct.addClass("covered"):RVS.TL.ct.removeClass("covered"),RVS.TL.ht.removeClass("hideme"),RVS.F.timelineDragsStop())},drag:function(e,t){RVS.SBGS[RVS.S.slideId].n.fmExists&&(RVS.SBGS[RVS.S.slideId].n.timeDirection=t.position.left>RVS.SBGS[RVS.S.slideId].n.lastProcess?"forwards":t.position.left<RVS.SBGS[RVS.S.slideId].n.lastProcess?"backwards":RVS.SBGS[RVS.S.slideId].n.timeDirection,RVS.SBGS[RVS.S.slideId].n.lastDirection!==RVS.SBGS[RVS.S.slideId].n.timeDirection&&RVS.TL[RVS.S.slideId]&&void 0!==RVS.TL[RVS.S.slideId].slide&&RVS._R.transitions.motionFilter.clearFull(RVS.SBGS[RVS.S.slideId].n,RVS.TL[RVS.S.slideId].slide),RVS.SBGS[RVS.S.slideId].n.lastProcess=t.position.left,RVS.SBGS[RVS.S.slideId].n.lastDirection=RVS.SBGS[RVS.S.slideId].n.timeDirection),RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.isActive()||requestAnimationFrame(function(){RVS.F.updateCurTime({pos:!1,cont:!0,left:t.position.left,refreshMainTimeLine:!0,caller:"Timeline DraG"}),RVS.TL.ct.offset().left-RVS.TL.TL.offset().left<265?RVS.TL.ct.addClass("covered"):RVS.TL.ct.removeClass("covered")})},containment:".timeline_right_container",axis:"x"}),RVS.DOC.on("mousemove",".stimeline",function(e,t){RVS.F.updateHoverTime({pos:!0,cont:!0,left:e.pageX-310})}),RVS.DOC.on("mouseenter",".stimeline",function(e,t){RVS.TL.ht.show()}),RVS.DOC.on("mouseenter",".timeline_left_container, .context_left, .timeline_right_container",function(e,t){RVS.TL.ht.hide()}),RVS.DOC.on("mouseenter","#timeline_settings",function(e,t){RVS.DOC.trigger("previewStopLayerAnimation"),!RVS.TL.over&&RVS.TL[RVS.S.slideId].main&&void 0!==RVS.TL.cache&&void 0!==RVS.TL.cache.main&&0!==RVS.TL.cache.main&&RVS.F.goToIdle(),RVS.TL.over=!0}),RVS.DOC.on("mouseleave","#timeline_settings",function(e,t){"animation"!==RVS.eMode.mode&&(RVS.TL.over=!1,RVS.TL.ht.hide(),RVS.TL.inDrag||RVS.F.goToIdle())})},RVS.F.animationMode=function(e){RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"})},RVS.F.setSmallestSlideLength=function(e){var t=Math.max(e.left,function(){var e,t=0;for(e in RVS.L){var i;RVS.L.hasOwnProperty(e)&&"top"!==e&&"bottom"!==e&&"middle"!==e&&(i=RVS.F.getPrevNextFrame({layerid:e,frame:"frame_999"}),t=t<i.prev.end?i.prev.end:t)}return t}()/10);return e.ignore||RVS.F.updateMaxTime({pos:!0,cont:!0,left:t}),t},RVS.F.goToIdle=function(e){Q||(RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}),RVS.F.buildMainTimeLine(),RVS.F.updateCurTime({pos:!0,cont:!0,force:!1,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"})),Q=!0},RVS.F.updateMaxTime=function(e){(e=void 0===e?{pos:!0,cont:!0,left:RVS.F.getSlideLength()}:e).left=void 0===e.left?RVS.F.getSlideLength():e.left,e.pos&&tpGS.gsap.set(RVS.TL.mt,{left:e.left+"px"}),e.cont&&n(e.left,RVS.TL.mt_txt),RVS.F.updateCoveredTimelines()},RVS.F.updateCurTime=function(e){e.pos&&tpGS.gsap.set(RVS.TL.ct,{left:e.left+"px"}),e.cont&&(e.left=isNaN(e.left)?0:e.left,0<e.left?(RVS.TL.ct[0].classList.add("inmove"),n(e.left,RVS.TL.ct_txt)):RVS.TL.ct[0].classList.remove("inmove"),RVS.F.updateCoveredTimelines()),e.refreshMainTimeLine&&(e.left/100<=0?RVS.F.updateTimeLine({force:e.force,state:"idle",timeline:"main",caller:"UpdateCurTime A"}):RVS.F.updateTimeLine({force:e.force,state:"time",time:e.left/100,timeline:"main",freeze:e.freeze}))},RVS.F.updateSlideLoopTimes=function(e){e.pos&&(tpGS.gsap.set(RVS.TL.slts,{left:e.start+"px"}),tpGS.gsap.set(RVS.TL.slte,{left:e.end+"px"}),tpGS.gsap.set(".slidelooptimemarker",{left:e.start,width:e.end-e.start})),e.cont&&(n(e.start,RVS.TL.slts_txt),n(e.end,RVS.TL.slte_txt))},RVS.F.updateFixedScrollTimes=function(e){e.pos&&(tpGS.gsap.set(RVS.TL.fixs,{left:e.start+"px"}),tpGS.gsap.set(RVS.TL.fixe,{left:e.end+"px"}),tpGS.gsap.set(".fixedscrolltimemarker",{left:e.start,width:e.end-e.start})),e.cont&&(n(e.start,RVS.TL.fixs_txt),n(e.end,RVS.TL.fixe_txt))},RVS.F.updateHoverTime=function(e){RVS.TL.hoverTimeLeft=void 0===e.left?RVS.TL.hoverTimeLeft:e.left,RVS.TL.hoverTimeLeft=void 0===RVS.TL.hoverTimeLeft?0:RVS.TL.hoverTimeLeft,RVS.TL._scrollLeft=void 0===RVS.TL._scrollLeft?0:RVS.TL._scrollLeft,e.pos&&tpGS.gsap.set(RVS.TL.ht,{left:e.left+"px"}),e.cont&&n(RVS.TL.hoverTimeLeft+RVS.TL._scrollLeft,RVS.TL.ht_txt)},RVS.F.updateFrameTime=function(e){RVS.TL.frameTimeLeft=void 0===e.left?RVS.TL.frameTimeLeft:e.left,RVS.TL.frameTimeLeft=void 0===RVS.TL.frameTimeLeft?0:RVS.TL.frameTimeLeft,RVS.TL._scrollLeft=void 0===RVS.TL._scrollLeft?0:RVS.TL._scrollLeft,e.pos&&tpGS.gsap.set(RVS.TL.ft,{left:e.left+"px"}),e.cont&&n(RVS.TL.frameTimeLeft,RVS.TL.ft_txt)},RVS.F.getLayerFrames=function(e){var t,i,a=void 0===e.extend?{}:e.extend;for(t in a[e.layerid]={type:RVS.L[e.layerid].type,frames:{}},RVS.L[e.layerid].timeline.frameOrder)RVS.L[e.layerid].timeline.frameOrder.hasOwnProperty(t)&&(i=RVS.L[e.layerid].timeline.frameOrder[t].id,void 0===e.afterStart||(RVS.L[e.layerid].timeline.frames[i].timeline.start>e.afterStart&&"frame_999"!==i&&(a[e.layerid].frames[i]=RVS.L[e.layerid].timeline.frames[i].timeline.start),"frame_999"===i&&!0===e.include999))&&(a[e.layerid].frames[i]=RVS.L[e.layerid].timeline.frames[i].timeline.start);return a},RVS.F.getLayersEndWithSlide=function(){var e,t={};for(e in RVS.L)RVS.L.hasOwnProperty(e)&&"top"!==e&&"bottom"!==e&&"middle"!==e&&(t[e]={type:RVS.L[e].type,endWithSlide:RVS.L[e].timeline.frames.frame_999.timeline.endWithSlide,frames:{frame_999:RVS.L[e].timeline.frames.frame_999.timeline.start}});return t},RVS.F.getSlideLayersEndWithSlide=function(e){if(null==RVS.SLIDER[e])return{};var t,i={};for(t in RVS.SLIDER[e].layers)RVS.SLIDER[e].layers.hasOwnProperty(t)&&"top"!==t&&"bottom"!==t&&"middle"!==t&&(i[t]={type:RVS.SLIDER[e].layers[t].type,endWithSlide:RVS.SLIDER[e].layers[t].timeline.frames.frame_999.timeline.endWithSlide,frames:{frame_999:RVS.SLIDER[e].layers[t].timeline.frames.frame_999.timeline.start}});return i},RVS.F.clearLayerAnimation=function(e){RVS.H[e.layerid].timeline.clear()},RVS.F.formatTime=function(e){e*=1e3;var t=parseInt(e%1e3/10),i=parseInt(e/1e3%60),e=parseInt(e/6e4%60);return(e<10?"0"+e:e)+":"+(i<10?"0"+i:i)+":"+(t<10?"0"+t:t)},RVS.F.updateSplitContent=function(e){var t=!1;if(RVS.H[e.layerid].splitText&&RVS.H[e.layerid].splitText.revert(),"text"===RVS.L[e.layerid].type||"button"===RVS.L[e.layerid].type){for(var i in RVS.L[e.layerid].timeline.frames)if(RVS.L[e.layerid].timeline.frames.hasOwnProperty(i)&&(RVS.L[e.layerid].timeline.frames[i].chars.use||RVS.L[e.layerid].timeline.frames[i].words.use||RVS.L[e.layerid].timeline.frames[i].lines.use)){t=!0;break}RVS.H[e.layerid].splitText=t?new tpGS.SplitText(RVS.H[e.layerid].c,{type:"lines,words,chars",wordsClass:"rs_splitted_words",linesClass:"rs_splitted_lines",charsClass:"rs_splitted_chars"}):void 0}else RVS.H[e.layerid].splitText=void 0;return t},RVS.F.getFrameOrder=function(e){for(var t in RVS.L[e.layerid].timeline.frameOrder=[],RVS.L[e.layerid].timeline.frames)RVS.L[e.layerid].timeline.frames.hasOwnProperty(t)&&RVS.L[e.layerid].timeline.frameOrder.push({id:t,start:"frame_0"===t?-1:RVS.L[e.layerid].timeline.frames[t].timeline.start});RVS.L[e.layerid].timeline.frameOrder.sort(function(e,t){return e.start-t.start}),RVS.L[e.layerid].timeline.frameToIdle=void 0===RVS.L[e.layerid].timeline.frameToIdle?"frame_1":RVS.L[e.layerid].timeline.frameToIdle},RVS.F.renderLayerAnimation=function(e){var t=RVS.H[e.layerid],i=RVS.L[e.layerid],a=600;if(void 0!==RVS.TL[RVS.S.slideId].layers&&void 0!==RVS.TL[RVS.S.slideId].layers[e.layerid]&&void 0!==t&&void 0!==i.timeline&&void 0!==i.timeline.frames){t.timeline&&t.timeline.pause("frame_IDLE"),t.timeline=new tpGS.TimelineMax({paused:!0});var r,A=("text"===i.type||"button"===i.type)&&RVS.F.updateSplitContent({layerid:e.layerid}),s=(i.timeline.split=A,RVS.F.getFrameOrder({layerid:e.layerid}),RVS.F.getFirstFrame({layerid:e.layerid}));for(r in i.timeline.frameOrder)if(i.timeline.frameOrder.hasOwnProperty(r)){var o=i.timeline.frameOrder[r].id;if("frame_0"!==o){var n,l,d,S,c,p=void 0===e.frameObj||e.frame!==o?i.timeline.frames[o]:e.frameObj,u=(i.timeline.sessionFilterUsed=RVS.F.checkGlobalFiltersOnLayer(e.layerid),"frame_999"===o&&i.timeline.frames.frame_999.timeline.auto&&((p=jQuery.extend(!0,{},i.timeline.frames.frame_999)).transform=jQuery.extend(!0,{},i.timeline.frames.frame_0.transform),p.mask=jQuery.extend(!0,{},i.timeline.frames.frame_0.mask),p.words=jQuery.extend(!0,{},i.timeline.frames.frame_0.words),p.lines=jQuery.extend(!0,{},i.timeline.frames.frame_0.lines),p.chars=jQuery.extend(!0,{},i.timeline.frames.frame_0.chars),p.sfx=jQuery.extend(!0,{},i.timeline.frames.frame_0.sfx),p.filter=jQuery.extend(!0,{},i.timeline.frames.frame_0.filter),p.bfilter=jQuery.extend(!0,{},i.timeline.frames.frame_0.bfilter),p.color=jQuery.extend(!0,{},i.timeline.frames.frame_0.color),p.bgcolor=jQuery.extend(!0,{},i.timeline.frames.frame_0.bgcolor)),o===s?i.timeline.frames.frame_0:void 0),R=RVS.TL[RVS.S.slideId].layers[e.layerid][o],V=t.c,m=function(e,t,i){{if(void 0!==e&&0<=e.indexOf("block")){var a={};switch(a.bmask_in=t.querySelector(".tp-blockmask_in"),null===a.bmask_in?(a.bmask_in=RVS.F.cE({cN:"tp-blockmask_in"}),a.bmask_out=RVS.F.cE({cN:"tp-blockmask_out"}),t.appendChild(a.bmask_in),t.appendChild(a.bmask_out)):a.bmask_out=t.querySelector(".tp-blockmask_out"),a.ft=[{scaleY:1,scaleX:0,transformOrigin:"0% 50%"},{scaleY:1,scaleX:1,ease:i=void 0===i?"power3.inOut":i,immediateRender:!1}],a.t={scaleY:1,scaleX:0,transformOrigin:"100% 50%",ease:i,immediateRender:!1},a.type="block",e){case"blocktoleft":case"blockfromright":a.ft[0].transformOrigin="100% 50%",a.t.transformOrigin="0% 50%";break;case"blockfromtop":case"blocktobottom":a.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 0%"},{scaleX:1,scaleY:1,ease:i,immediateRender:!1}],a.t={scaleX:1,scaleY:0,transformOrigin:"50% 100%",ease:i,immediateRender:!1};break;case"blocktotop":case"blockfrombottom":a.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 100%"},{scaleX:1,scaleY:1,ease:i,immediateRender:!1}],a.t={scaleX:1,scaleY:0,transformOrigin:"50% 0%",ease:i,immediateRender:!1}}return a.ft[1].overwrite="auto",a.t.overwrite="auto",a}return!1}}(p.sfx.effect,t.m,p.timeline.ease),y=new tpGS.TimelineMax,g=p.timeline.speed/1e3,h=0,f=(R.timeline=new tpGS.TimelineMax,"block"===m.type&&(m.ft[0].background=window.RSColor.get(p.sfx.color),R.timeline.add(tpGS.gsap.fromTo(m.bmask_in,g/2,m.ft[0],m.ft[1],0)),R.timeline.add(tpGS.gsap.fromTo(m.bmask_in,g/2,m.ft[1],m.t,g/2)),"frame_0"===o||"frame_1"===o?R.timeline.add(y.staggerFromTo(V,.05,{autoAlpha:0},{autoAlpha:1,delay:g/2},0),0):"frame_999"===o&&R.timeline.add(y.staggerFromTo(V,.05,{autoAlpha:1},{autoAlpha:0,delay:g/2},0),0)),q({sessionFilterUsed:i.timeline.sessionFilterUsed,frame:p,layerid:e.layerid,ease:p.timeline.ease,splitAmount:V.length,target:o})),v=o===s?q({sessionFilterUsed:i.timeline.sessionFilterUsed,frame:u,layerid:e.layerid,ease:p.timeline.ease,splitAmount:V.length,target:"frame_0"}):void 0,m="true"==p.mask.use||1==p.mask.use?q({frame:{transform:{x:p.mask.x,y:p.mask.y,clip:p.mask.clip}},layerid:e.layerid,ease:f.ease,target:"mask"}):void 0,_=o===s?q({frame:{transform:{x:u.mask.x,y:u.mask.y,clip:u.mask.clip}},layerid:e.layerid,ease:f.ease,target:"frommask"}):void 0,L=f.ease,P=(void 0!==p.color&&p.color.use?f.color=window.RSColor.get(p.color.color):f.color=window.RSColor.get(i.idle.color[RVS.screen].v),void 0!==u&&(void 0!==u.color&&u.color.use?v.color=window.RSColor.get(u.color.color):v.color=window.RSColor.get(i.idle.color[RVS.screen].v)),void 0!==p.bgcolor&&p.bgcolor.use?0<=(n=window.RSColor.get(p.bgcolor.backgroundColor)).indexOf("gradient")?f.background=n:f.backgroundColor=n:0<=(n=window.RSColor.get(i.idle.backgroundColor)).indexOf("gradient")?f.background=n:f.backgroundColor=n,void 0!==u&&(void 0!==u.bgcolor&&u.bgcolor.use?0<=(n=window.RSColor.get(u.bgcolor.backgroundColor)).indexOf("gradient")?v.background=n:v.backgroundColor=n:0<=(n=window.RSColor.get(i.idle.backgroundColor)).indexOf("gradient")?v.background=n:v.backgroundColor=n),0);if(A)for(var w in W)W.hasOwnProperty(w)&&p[W[w]].use&&!e.quickRendering&&(l=t.splitText[W[w]],d=q({frame:p,source:W[w],ease:L,layerid:e.layerid,splitAmount:l.length,target:o+"_"+W[w]}),S=o===s?q({frame:u,ease:d.ease,source:W[w],layerid:e.layerid,splitAmount:l.length,target:"frame_0_"+W[w]}):void 0,h=parseInt(p[W[w]].delay,0)/100,window.RSColor.get(i.idle.color[RVS.screen].v)===f.color&&"frame_1"===o||(d.color=f.color),void 0!==v&&window.RSColor.get(i.idle.color[RVS.screen].v)!==v.color&&(S.color=v.color),void 0!==S&&S.color!==f.color&&(d.color=f.color),d=U(jQuery.extend(!0,{},d)),S=o===s?U(jQuery.extend(!0,{},S)):void 0,c=Y(p[W[w]].direction),delete d.grayscale,delete d.brightness,void 0!==S&&(delete S.grayscale,delete S.brightness),d.stagger="center"===c||"edge"===c?function(a){a.from="edge"===a.from?"edges":a.from;let r=tpGS.gsap.utils.distribute(a);return function(e,t,i){return r(e,t,i)+(!(e<=i.length/2)&&a.offset||0)}}({each:h,offset:h/2,from:c}):{each:h,from:Y(p[W[w]].direction)},d.duration=g,void 0!==S&&delete S.dir,o===s?R.timeline.add(y.fromTo(l,S,d),0):R.timeline.add(y.to(l,d),0),P=Math.max(P,l.length*h));g+=P,a="local"===RVS.SLIDER.settings.general.perspectiveType?void 0!==v&&void 0!==v.transformPerspective?v.transformPerspective:void 0!==f.transformPerspective?f.transformPerspective:RVS.SLIDER.settings.general.perspective:RVS.SLIDER.settings.general.perspective,void 0!==m?(m.overflow="hidden",m.rotationX=i.idle.rotationX,m.rotationY=i.idle.rotationY,m.rotationZ=i.idle.rotationZ,m.opacity=i.idle.opacity,m.transformPerspective=a,o===s?(_.rotationX=i.idle.rotationX,_.rotationY=i.idle.rotationY,_.rotationZ=i.idle.rotationZ,_.opacity=i.idle.opacity,R.timeline.add(tpGS.gsap.fromTo([t.m,t.bgmask],g,_,m),0)):R.timeline.add(tpGS.gsap.to([t.m,t.bgmask],g,m),0),t.maskAnimFirst=!0):0===parseInt(i.idle.rotationX,0)&&0==parseInt(i.idle.rotationY,0)&&0==parseInt(i.idle.rotationZ,0)?(!t.maskAnimFirst&&null!=t.maskAnimFirst||(t.m.style.transform="none",t.m.style.filter="none",t.m.style.overflow="visible",t.maskAnimFirst=!1),t.m.style.opacity=i.idle.opacity):(t.maskAnimFirst=!0,R.timeline.add(tpGS.gsap.to(t.m,.001,{transformPerspective:a,filter:"none",x:0,y:0,opacity:i.idle.opacity,rotationX:i.idle.rotationX,rotationY:i.idle.rotationY,rotationZ:i.idle.rotationZ,overflow:"visible"}),0)),f.force3D="auto",delete f.clipB,o===s?(delete v.clipB,delete v.transformPerspective,void 0!==t.bg&&R.timeline.fromTo(t.bg,g,v,f,0),void 0!==t.bg&&"column"===i.type?R.timeline.fromTo(V,g,X(v),X(f),0):R.timeline.fromTo(V,g,v,f,0)):(void 0!==t.bg&&R.timeline.to(t.bg,g,f,0),void 0!==t.bg&&"column"===i.type?R.timeline.to(V,g,X(f),0):R.timeline.to(V,g,f,0)),void 0!==L&&Array.isArray(L)&&0<=L.indexOf("SFXBounce")&&R.timeline.to(V,g,{scaleY:.5,scaleX:1.3,ease:f.ease+"-squash",transformOrigin:"bottom"},1e-4),"full"===e.timeline?(_=parseInt(p.timeline.start,0)/1e3,t.timeline.addLabel(o,_),t.timeline.add(R.timeline,_),t.timeline.addLabel(o+"_end","+=0.01"),i.timeline.frameToIdle===o&&t.timeline.addLabel("frame_IDLE")):(t.timeline.addLabel(o),t.timeline.add(R.timeline),o===e.frame?t.timeline.addPause(o+"_end+=0.5",function(e){this.play(e)},[e.frame]):(t.timeline.addLabel(o+"_end"),i.timeline.frameToIdle===o&&t.timeline.addLabel("frame_IDLE"),i.timeline.loop.use?(t.timeline.addPause(o+"_end+="+i.timeline.loop.speed/500,function(){this.play()}),"frame_999"==o&&t.timeline.addPause(o+"_end+=0.5",function(){this.play(0)})):t.timeline.addPause(o+"_end+=0.5",function(){this.play()})))}}if("true"!=i.hover.usehover&&1!=i.hover.usehover&&"desktop"!=i.hover.usehover||!t.htr?t.hoverlistener&&(t.hoverlistener=!1,t.w.off("hover")):(void 0!==t.hover&&t.hover.kill(),t.hover=new tpGS.TimelineMax,t.hover.pause(),t.htr.ease=i.hover.ease,b=0==(b=parseInt(i.hover.speed,0)/1e3)?1e-5:b,"column"!==i.type&&"row"!==i.type||t.hover.to(t.bg,b,jQuery.extend(!0,{},t.htr),0),"text"!==i.type&&"button"!==i.type||!i.timeline.split||void 0===t.splitText||t.hover.to([t.splitText.lines,t.splitText.words,t.splitText.chars],b,{color:t.htr.color,ease:t.htr.ease},0),"column"===i.type?t.hover.to(t.c,b,X(jQuery.extend(!0,{},t.htr)),0):t.hover.to(t.c,b,jQuery.extend(!0,{},t.htr),0),"svg"===i.type&&!0!==i.idle.svg.originalColor&&(t.hover.to(t.svg,b,{fill:window.RSColor.get(i.hover.svg.color),stroke:window.RSColor.get(i.hover.svg.strokeColor),"stroke-width":i.hover.svg.strokeWidth,"stroke-dasharray":RVS.F.getDashArray(i.hover.svg.strokeDashArray),"stroke-dashoffset":void 0===i.hover.svg.strokeDashOffset?0:i.hover.svg.strokeDashOffset},0),t.hover.to(t.svgPath,b,{fill:window.RSColor.get(i.hover.svg.color)},0)),t.hover.to([t.m,t.bgmask],b,{overflow:i.hover.usehovermask?"hidden":"visible"},0),t.hoverlistener||(t.hoverlistener=!0,t.w.on("mouseenter",function(){void 0!==this.dataset.uid&&1!=RVS.L[this.dataset.uid].hover.usehover&&"true"!=RVS.L[this.dataset.uid].hover.usehover||t.hover.play()}).on("mouseleave",function(){void 0!==this.dataset.uid&&1!=RVS.L[this.dataset.uid].hover.usehover&&"true"!=RVS.L[this.dataset.uid].hover.usehover&&RVS.H[this.dataset.uid].hover.time(0).pause(),"hover"===RVS.eMode.mode&&t.w.hasClass("selected")||t.hover.reverse()}),"hover"===RVS.eMode.mode&&0<=jQuery.inArray(parseInt(i.uid,0),RVS.selLayers)&&RVS.L[e.layerid].hover.usehove?t.hover.play():0<t.hover.time()&&t.hover.reverse())),!i.timeline.loop.use||Q&&"animation"!==RVS.eMode.mode)(D=new tpGS.TimelineMax({})).set(t.lp,{"-webkit-filter":"none",filter:"none",x:0,y:0,z:0,scale:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:a,transformOrigin:"50% 50%",opacity:1}),t.timeline.add(D,0);else{var b=i.timeline.loop.frame_0,I=i.timeline.loop.frame_999,F=new tpGS.TimelineMax({}),D=new tpGS.TimelineMax({repeat:-1,yoyo:i.timeline.loop.yoyo_move}),M=new tpGS.TimelineMax({repeat:-1,yoyo:i.timeline.loop.yoyo_rotate}),z=new tpGS.TimelineMax({repeat:-1,yoyo:i.timeline.loop.yoyo_scale}),H=new tpGS.TimelineMax({repeat:-1,yoyo:i.timeline.loop.yoyo_filter}),x=parseInt(i.timeline.loop.speed,0)/1e3,B=parseInt(i.timeline.loop.start)/1e3||0,N=B+.2,k="blur(0px) grayscale(0%) brightness(100%)",C="blur("+parseInt(b.blur||0,0)+"px) grayscale("+parseInt(b.grayscale||0,0)+"%) brightness("+parseInt(b.brightness||100,0)+"%)",O="blur("+(I.blur||0)+"px) grayscale("+(I.grayscale||0)+"%) brightness("+(I.brightness||100)+"%)";if("blur(0px) grayscale(0%) brightness(100%)"===C&&"blur(0px) grayscale(0%) brightness(100%)"===O&&(k=O=C="none"),F.add(D,0),F.add(M,0),F.add(z,0),F.add(H,0),i.timeline.loop.curved){var G,T=parseInt(i.timeline.loop.radiusAngle,0)||0,j=[{x:parseInt(b.x,0)-parseInt(b.xr,0),y:0,z:parseInt(b.z,0)-parseInt(b.zr,0)},{x:0,y:parseInt(b.y,0)+parseInt(b.yr,0),z:0},{x:parseInt(I.x,0)+parseInt(I.xr,0),y:0,z:parseInt(I.z,0)+parseInt(I.zr,0)},{x:0,y:parseInt(I.y,0)-parseInt(I.yr,0),z:0}],E={type:"thru",curviness:i.timeline.loop.curviness,path:[],autoRotate:i.timeline.loop.autoRotate};for(G in j)j.hasOwnProperty(G)&&(E.path[G]=j[T],T=++T==j.length?0:T);t.timeline.fromTo(t.lp,.2,{"-webkit-filter":k,filter:k,x:0,y:0,z:0,scale:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:a,transformOrigin:i.timeline.loop.originX+" "+i.timeline.loop.originY+" "+i.timeline.loop.originZ,opacity:1},{x:E.path[3].x,y:E.path[3].y,z:E.path[3].z,scaleX:b.scaleX,skewX:b.skewX,skewY:b.skewY,scaleY:b.scaleY,rotationX:b.rotationX,rotationY:b.rotationY,rotationZ:b.rotationZ,"-webkit-filter":C,filter:C,ease:"sine.out",opacity:b.opacity},B),D.to(t.lp,i.timeline.loop.yoyo_move?x/2:x,{motionPath:E,ease:i.timeline.loop.ease})}else t.timeline.fromTo(t.lp,.2,{"-webkit-filter":k,filter:k,x:0,y:0,z:0,scale:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:a,transformOrigin:i.timeline.loop.originX+" "+i.timeline.loop.originY+" "+i.timeline.loop.originZ,opacity:1},RVS.F.checkLoopSkew({x:b.x,y:b.y,z:b.z,scaleX:b.scaleX,skewX:b.skewX,skewY:b.skewY,scaleY:b.scaleY,rotationX:b.rotationX,rotationY:b.rotationY,rotationZ:b.rotationZ,ease:"sine.out",opacity:b.opacity,"-webkit-filter":C,filter:C}),B),D.to(t.lp,i.timeline.loop.yoyo_move?x/2:x,{x:I.x,y:I.y,z:I.z,ease:i.timeline.loop.ease});M.to(t.lp,i.timeline.loop.yoyo_rotate?x/2:x,{rotationX:I.rotationX,rotationY:I.rotationY,rotationZ:I.rotationZ,ease:i.timeline.loop.ease}),z.to(t.lp,i.timeline.loop.yoyo_scale?x/2:x,RVS.F.checkLoopSkew({scaleX:I.scaleX,scaleY:I.scaleY,skewX:I.skewX,skewY:I.skewY,ease:i.timeline.loop.ease}));k={opacity:I.opacity,ease:i.timeline.loop.ease,"-webkit-filter":O,filter:O};H.to(t.lp,i.timeline.loop.yoyo_filter?x/2:x,k),t.timeline.add(F,N)}"atstart"!==e.mode&&("0"===RVS.S.keyFrame||"frame_0"===RVS.S.keyFrame?t.timeline.pause("frame_1"):"idle"===RVS.S.keyFrame?t.timeline.pause("frame_IDLE"):t.timeline.pause(RVS.S.keyFrame+"_end")),void 0!==e.time&&t.timeline.time(e.time),"loopsingleframe"===e.timeline?t.timeline.play(e.frame):"full"!==e.timeline&&t.timeline.eventCallback("onComplete",function(){this.restart()})}},RVS.F.checkLoopSkew=function(e){return void 0===e.skewX&&delete e.skewX,void 0===e.skewY&&delete e.skewY,e},RVS.F.buildFullLayerAnimation=function(e){for(var t in RVS.L)RVS.L.hasOwnProperty(t)&&void 0!==RVS.L[t].uid&&RVS.F.renderLayerAnimation({layerid:t,timeline:"full",mode:e})},RVS.F.playLayerAnimation=function(e){void 0!==e.time?RVS.H[e.layerid].timeline.play(e.time):RVS.H[e.layerid].timeline.play(0),i.push(e.layerid)},RVS.F.stopLayerAnimation=function(e){void 0!==RVS.H[e.layerid]&&(RVS.H[e.layerid].timeline&&RVS.H[e.layerid].timeline.pause("frame_IDLE"),i=RVS.F.rArray(i,parseInt(e.layerid,0)))},RVS.F.stopAllLayerAnimation=function(){for(var e=i.length;0<i.length;)RVS.F.stopLayerAnimation({layerid:i[0]});0<e&&(RVS.TL.cache.main<=0?RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"stopAllLayerAnimation"}):RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0}))},RVS.F.stopAndPauseAllLayerAnimation=function(){RVS.S.shwLayerAnim=!1,RVS.F.changeSwitchState({el:document.getElementById("layer_simulator"),state:"play"}),RVS.F.changeSwitchState({el:document.getElementById("layer_simulator_loop"),state:"play"}),RVS.F.stopAllLayerAnimation()},RVS.F.buildFilter=function(e){var t;return void 0===e?"":(t="",RVS.S.isChrome8889&&0===e.blur&&(e.blur=.05),t=void 0!==e.blur?"blur("+parseFloat(e.blur||0)+"px)":"",(t=(t+=void 0!==e.grayscale?(0<t.length?" ":"")+"grayscale("+parseInt(e.grayscale||0)+"%)":"")+(void 0!==e.brightness?(0<t.length?" ":"")+"brightness("+parseInt(e.brightness||100)+"%)":""))||"none")},RVS.F.buildBackdropFilter=function(e){var t;return void 0===e?"":(t="",RVS.S.isChrome8889&&0===e.b_blur&&(e.b_blur=.05),t=void 0!==e.blur?"blur("+parseInt(e.blur||0)+"px)":"",(t=(t=(t=(t+=void 0!==e.grayscale?(0<t.length?" ":"")+"grayscale("+parseInt(e.grayscale||0)+"%)":"")+(void 0!==e.sepia?(0<t.length?" ":"")+"sepia("+parseInt(e.sepia||0)+"%)":""))+(void 0!==e.invert?(0<t.length?" ":"")+"invert("+parseInt(e.invert||0)+"%)":""))+(void 0!==e.brightness?(0<t.length?" ":"")+"brightness("+parseInt(e.brightness||100)+"%)":""))||"none")},RVS.F.checkGlobalFiltersOnLayer=function(e){var t=!0===RVS.L[e].timeline.hoverFilterUsed;if(!0!==t)for(var i in RVS.L[e].timeline.frames){if(!0===t||!RVS.L[e].timeline.frames.hasOwnProperty(i))continue;t=RVS.L[e].timeline.frames[i].filter.use}return t},RVS.F.getClipPaths=function(e,t,i,a){switch(e){case"none":s=t+"% 100%,"+t+"% 0%";break;case"top":s=i+"% 100%,"+t+"% 0%";break;case"middle":s=i+"% 100%,"+t+"% 50%,"+i+"% 0%";break;case"bottom":s=t+"% 100%,"+i+"% 0%";break;case"two":s=i+"% 100%,"+t+"% 75%,"+i+"% 50%,"+t+"% 25%,"+i+"% 0%";break;case"three":s=t+"% 100%,"+i+"% 75%,"+t+"% 50%,"+i+"% 25%,"+t+"% 0%";break;case"four":s=t+"% 100%,"+i+"% 87.5%,"+t+"% 75%,"+i+"% 62.5%,"+t+"% 50%,"+i+"% 37.5%,"+t+"% 25%,"+i+"% 12.5%,"+t+"% 0%";break;case"five":s=t+"% 100%,"+i+"% 90%,"+t+"% 80%,"+i+"% 70%,"+t+"% 60%,"+i+"% 50%,"+t+"% 40%,"+i+"% 30%,"+t+"% 20%,"+i+"% 10%,"+t+"% 0%"}if(a){var r=s.split(","),s="";for(i in r)r.hasOwnProperty(i)&&(s+=r[r.length-1-i]+(i<r.length-1?",":""))}return s},RVS.F.toggleTimeLine=function(){RVS.TL.timelineStartedFromPlayStop?RVS.DOC.trigger("stopTimeLine"):RVS.DOC.trigger("playTimeLine")}}(),function(){"use strict";window._R_is_Editor?RVS._R=void 0===RVS._R?{}:RVS._R:window._R_is_Editor=!1;var e="power1.inOut",t="power2.inOut",f=(jQuery.fn.revolution=jQuery.fn.revolution||{},_R_is_Editor?RVS._R:jQuery.fn.revolution),n=(_R_is_Editor&&(RVS._R.isNumeric=RVS.F.isNumeric),jQuery.extend(!0,f,{getSlideAnimationObj:function(e,t,i){var a,r,s,o,n={};for(r in void 0===t.anim&&null==t.in&&(t.in="o:0"),t)if(t.hasOwnProperty(r)&&void 0!==t[r])for(o in s=t[r].split(";"))s.hasOwnProperty(o)&&void 0!==(a=s[o].split(":"))[0]&&void 0!==a[1]&&(n[r]=void 0===n[r]?{}:n[r],n[r][a[0]]="d3"===r&&"c"===a[0]?a[1]:a[1].split(",")[0]);return n.in=void 0===n.in?{}:n.in,n.anim=void 0===n.anim?{e:"basic"}:n.anim,_R_is_Editor||void 0===n.in||void 0===n.in.prst||f.loadSlideAnimLibrary(e,{key:i,prst:n.in.prst}),f[e].sbgs[i].slideanimationRebuild=!1,n},loadSlideAnimLibrary:function(a,r){void 0===f.SLTR&&!0!==f.SLTR_loading?(f.SLTR_loading=!0,jQuery.ajax({type:"post",url:f[a].ajaxUrl,dataType:"json",data:{action:"revslider_ajax_call_front",client_action:"get_transitions"},success:function(e,t,i){1==e.success&&(f.SLTR=e.transitions,void 0!==r)&&f.setRandomDefaults(a,r.key,r.prst)},error:function(e){console.log("Transition Table can not be loaded"),console.log(e)}})):void 0!==r&&void 0!==f.SLTR&&f.setRandomDefaults(a,r.key,r.prst)},convertSlideAnimVals:function(e){return{anim:{eng:e.eng,ms:parseInt(e.speed,0),o:e.o,e:e.e,f:e.f,p:e.p,d:parseInt(e.d,0),adpr:e.adpr},d3:{f:e.d3.f,d:e.d3.d,z:e.d3.z,t:e.d3.t,c:e.d3.c,e:e.d3.e,fdi:e.d3.fdi,fdo:e.d3.fdo,fz:e.d3.fz,su:e.d3.su,smi:e.d3.smi,sma:e.d3.sma,sc:e.d3.sc,sl:e.d3.sl},in:{eng:e.in.eng,o:_R_is_Editor&&void 0!==e.preset&&0===e.preset.indexOf("rnd")?0:f.valBeau(e.in.o),x:f.valBeau(e.in.x),y:f.valBeau(e.in.y),r:f.valBeau(e.in.r),sx:f.valBeau(e.in.sx),sy:f.valBeau(e.in.sy),m:e.in.m,e:e.in.e,row:e.in.row,col:e.in.col,mo:"false"!==e.in.mou&&!1!==e.in.mou?f.valBeau(e.in.mo):0,moo:"false"!==e.in.mou&&!1!==e.in.mou?f.valBeau(e.in.moo):"none",mou:e.in.mou},out:void 0===e.out.a||"true"==e.out.a||!0===e.out.a?void 0:{a:s(e.out.a),o:f.valBeau(e.out.o),x:f.valBeau(e.out.x),y:f.valBeau(e.out.y),r:f.valBeau(e.out.r),sx:f.valBeau(e.out.sx),sy:f.valBeau(e.out.sy),m:e.out.m,e:e.out.e,row:f.valBeau(e.out.row),col:f.valBeau(e.out.col)},filter:{u:e.filter.u,e:e.filter.e,b:e.filter.b,g:e.filter.g,h:e.filter.h,s:e.filter.s,c:e.filter.c,i:e.filter.i},addOns:e.addOns}},setRandomDefaults:function(e,t,i){f[e].sbgs[t].random=f.getAnimObjectByKey(i,f.SLTR)},getSlideAnim_AddonDefaults:function(){var e,t={};for(e in f.enabledSlideAnimAddons)t=jQuery.extend(!0,t,f[f.enabledSlideAnimAddons[e]].defaults());return t},getSlideAnim_EmptyObject:function(){return{speed:1e3,o:"inout",e:"basic",f:"start",p:"none",d:15,eng:"animateCore",adpr:!0,d3:{f:"none",d:"horizontal",z:300,t:0,c:"#ccc",e:"power2.inOut",fdi:1.5,fdo:2,fz:0,su:!1,smi:0,sma:.5,sc:"#000",sl:1},filter:{u:!1,e:"default",b:0,g:0,h:100,s:0,c:100,i:0},in:{o:1,x:0,y:0,r:0,sx:1,sy:1,m:!1,e:"power2.inOut",row:1,col:1,mo:80,mou:!1},out:{a:"true",o:1,x:0,y:0,r:0,sx:1,sy:1,m:!1,e:"power2.inOut",row:1,col:1},addOns:f.getSlideAnim_AddonDefaults()}},getAnimObjectByKey:function(e,t){if(f.getAnimObjectCacheKey===e)return f.getAnimObjectCache;var i,a;for(a in f.getAnimObjectCacheKey=e,t)if(t.hasOwnProperty(a)&&void 0===i)for(var r in t[a])if(t[a].hasOwnProperty(r)&&void 0===i)if(e===r&&0===e.indexOf("rnd"))(i=t[a][r]).main=a,i.group=r;else for(var s in t[a][r])t[a][r].hasOwnProperty(s)&&void 0===i&&s===e&&((i=t[a][r][s]).main=a,i.group=r);return f.getAnimObjectCache=jQuery.extend(!0,{},i),i},getRandomSlideTrans:function(e,t,i){if(void 0===f.randomSlideAnimCache||void 0===f.randomSlideAnimCache[e]||void 0===f.randomSlideAnimCache[e][t])for(var a in f.randomSlideAnimCache=void 0===f.randomSlideAnimCache?{}:f.randomSlideAnimCache,f.randomSlideAnimCache[e]=void 0===f.randomSlideAnimCache[e]?{}:f.randomSlideAnimCache[e],f.randomSlideAnimCache[e][t]=void 0===f.randomSlideAnimCache[e][t]?[]:f.randomSlideAnimCache[e][t],i)if(i.hasOwnProperty(a)&&"random"!==a&&"custom"!==a&&("all"==e||a==e))for(var r in i[a])if(i[a].hasOwnProperty(r)&&"icon"!==r&&(""+t=="undefined"||0<=t.indexOf(r)))for(var s in i[a][r])i[a][r].hasOwnProperty(s)&&-1==jQuery.inArray(i[a][r][s].title,["*north*","*south*","*east*","*west*"])&&f.randomSlideAnimCache[e][t].push(s);return f.randomSlideAnimCache[e][t][Math.floor(Math.random()*f.randomSlideAnimCache[e][t].length)]},cbgW:function(e,t){return _R_is_Editor?RVS.RMD.width:"carousel"===f[e].sliderType?f[e].justifyCarousel?f[e].carousel.slide_widths[void 0!==t?t:f[e].carousel.focused]:f[e].carousel.slide_width:f[e].canv.width},cbgH:function(e,t){return _R_is_Editor?RVS.RMD.height:"carousel"===f[e].sliderType?"v"==f[e].carousel.orientation&&("fullscreen"===f[e].sliderLayout||f[e].infullscreenmode)||!0===f[e].carousel.justify?f[e].carousel.slide_height:"fullscreen"===f[e].sliderLayout||f[e].infullscreenmode?f[e].module.height:Math.min(f[e].canv.height,f[e].gridheight[f[e].level]):void 0!==f[e].maxHeight&&0<f[e].maxHeight&&!f[e].fixedOnTop?Math.min(f[e].canv.height,f[e].maxHeight):f[e].canv.height},valBeau:function(e){return e=(""+(e=(""+(e=(""+(e=(""+(e=(""+e).split(",").join("|"))).replace("{","ran("))).replace("}",")"))).replace("[","cyc("))).replace("]",")")},animateSlide:function(e,t){return _R_is_Editor&&RVS.F.resetSlideTL(),void 0===tpGS.eases.late&&(tpGS.CustomEase.create("late","M0,0,C0,0,0.474,0.078,0.724,0.26,0.969,0.438,1,1,1,1"),tpGS.CustomEase.create("late2","M0,0 C0,0 0.738,-0.06 0.868,0.22 1,0.506 1,1 1,1 "),tpGS.CustomEase.create("late3","M0,0,C0,0,0.682,0.157,0.812,0.438,0.944,0.724,1,1,1,1")),a(e,t)},getBasic:function(e){return jQuery.extend(!0,{attr:null==e||void 0===e.attr?["o","r","sx","sy","x","y","m","e","row","col","mo","moo"]:e.attr,in:{f:"start",m:!1,o:1,r:0,sx:1,sy:1,x:0,y:0,row:1,col:1,e:t,ms:1e3,mo:0,moo:"none"},out:{f:"start",m:!1,o:1,r:0,sx:1,sy:1,x:0,y:0,row:1,col:1,e:t,ms:1e3}},e)},playBGVideo:function(e,t,i){if(_R_is_Editor)i=void 0===i?RVS.SBGS[RVS.S.slideId].n:i;else{if(void 0===i&&(void 0===f[e].pr_next_bg||0===f[e].pr_next_bg.length))return;i=void 0===i?f[e].sbgs[void 0===t?f[e].pr_next_bg[0].dataset.key:t]:i}void 0!==i.bgvid&&0<i.bgvid.length&&(S(e,{},i,"in"),f.resetVideo(i.bgvid,e),f.playVideo(i.bgvid,e,!0),tpGS.gsap.to(i.bgvid[0],.2,{zIndex:30,display:"block",autoAlpha:1,delay:.075,overwrite:"all"}))},stopBGVideo:function(e,t,i){if(_R_is_Editor)i=void 0===i?RVS.SBGS[RVS.S.slideId].n:i;else{if(void 0===i&&(void 0===f[e].pr_next_bg||0===f[e].pr_next_bg.length))return;i=void 0===i?f[e].sbgs[void 0===t?f[e].pr_next_bg[0].dataset.key:t]:i}void 0!==i.bgvid&&0<i.bgvid.length&&(i.drawVideoCanvasImagesRecall=!1,f.stopVideo(i.bgvid,e),tpGS.gsap.to(i.bgvid[0],.2,{autoAlpha:0,zIndex:0,display:"none"}))},SATools:{getOffset:function(e,t,i,a){var r=0<=(""+e).indexOf("%");return 0==(e=f.SATools.getSpecialValue(e,a,i))||void 0===e?0:r?t*(parseInt(e)/100):parseInt(e)},getSpecialValue:function(e,t,i,a){var r;return f.isNumeric(parseFloat(e,0))?parseFloat(e,0):(e=("random"==(r=1<(""+e).split("ran(").length?"random":1<(""+e).split("cyc(").length?"wrap":1<(""+e).split("(").length?"dir":"unknown")||"wrap"==r?e.slice(4,-1):e.slice(1,-1)).split("|"),"random"==r?tpGS.gsap.utils.random(parseFloat(e[0]),parseFloat(1<e.length?e[1]:0-e[0])):"wrap"==r?1<(""+(t=tpGS.gsap.utils.wrap(e,t))).split("(").length?parseFloat(t.slice(1,-1))*i+(a?"%":""):t:"dir"==r?parseFloat(e[0])*i+(a?"%":""):void 0)}},getmDim:function(e,t,i){var a=f.cbgW(e,t),t=f.cbgH(e,t);return i.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):f[e].DPR,f.maxDimCheck(i,a,t)},maxDimCheck:function(e,t,i){var a,r,s,o,n,l;void 0!==e.video&&"img"!==e.video.tagName&&null!=e.video.videoWidth&&e.video.videoWidth;return("animating"===e.currentState||null!=e.panzoom)&&("animating"!==e.currentState||null!=e.panzoom||null!=e.slideanimation&&null!=e.slideanimation.anim&&"true"===e.slideanimation.anim.adpr)||1<e.DPR&&f.ISM&&1024<i?(e.DPR=1,a=t,r=i):(void 0===(s={w:null==e.video||e.isVidImg||0==e.video.videoWidth?e.loadobj.width:e.video.videoWidth,h:null==e.video||e.isVidImg||0==e.video.videoHeight?e.loadobj.height:e.video.videoHeight}).w&&(s.w=e.loadobj.width),void 0===s.h&&(s.h=e.loadobj.height),l=i/s.w,o=t/s.h,(n=Math.max(l,o))>e.DPR||1<=l&&1<=o?e.DPR=1:e.DPR>n&&(e.DPR=Math.min(e.DPR,e.DPR/n)),a=t*e.DPR,r=i*e.DPR,1<e.DPR&&(l=t/i,s.h<s.w&&s.w<a?(r=(a=Math.max(a,s.w))/l,e.DPR=1):s.w<s.h&&s.h<r&&(a=(r=Math.max(r,s.h))*l,e.DPR=1))),{width:Math.round(a),height:Math.round(r),w:t,h:i}},updateSlideBGs:function(e,t,i,a){if(_R_is_Editor)i=void 0===i?RVS.SBGS[RVS.S.slideId].n:i;else{if(void 0===i&&(void 0===f[e].pr_next_bg||0===f[e].pr_next_bg.length))return;i=void 0===i?f[e].sbgs[void 0===t?f[e].pr_next_bg[0].dataset.key:t]:i}(a=void 0!==i.mDIM&&a)||(i.mDIM=f.getmDim(e,i.skeyindex,i)),void 0!==i.video?("IMG"!==i.video.tagName&&(i.isVidImg=""),i.cDIMS=f.getBGCanvasDetails(e,i),i.canvas.width=i.mDIM.width,i.canvas.height=i.mDIM.height,i.ctx.clearRect(0,0,i.mDIM.width,i.mDIM.height),i.ctx.drawImage(i.shadowCanvas,0,0)):(i.cDIMS=f.getBGCanvasDetails(e,i,a),i.canvas.width=i.mDIM.width,i.canvas.height=i.mDIM.height,"panzoom"===i.currentState||"animating"===i.currentState||void 0===i.currentState&&!_R_is_Editor&&"carousel"!=f[e].sliderType||(i.ctx.clearRect(0,0,i.mDIM.width,i.mDIM.height),0!==i.shadowCanvas.width&&0!==i.shadowCanvas.height&&i.ctx.drawImage(i.shadowCanvas,0,0))),"animating"===i.currentState&&"carousel"!==f[e].sliderType&&f.animatedCanvasUpdate(e,i)},addCanvas:function(){var e=document.createElement("canvas");return x=e.getContext("2d"),e.style.background="transparent",e.style.opacity=1,x},updateVideoFrames:function(e,t,i){var a;t.now=Date.now(),t.then=void 0===t.then?t.now-500:t.then,t.elapsed=t.now-t.then,t.fps="animating"===t.currentState&&window._rs_firefox?50:33,t.elapsed>t.fps&&(t.then=t.now-t.elapsed%t.fps,a="img"===t.video.tagName||null==t.video.videoWidth||0==t.video.videoWidth,void 0!==t.video&&!t.video.BGrendered&&void 0!==t.loadobj&&void 0!==t.loadobj.img||f.ISM&&f.isFirefox(e)?(t.mDIM=f.getmDim(e,t.skeyindex,t),t.pDIMS=r(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.loadobj.width,conth:t.loadobj.height}),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.drawImage(t.loadobj.img,t.pDIMS.x,t.pDIMS.y,t.pDIMS.width,t.pDIMS.height)):(!i&&void 0!==t.sDIMS&&a===t.isVidImg&&0!==t.sDIMS.width&&0!==t.sDIMS.height||(t.isVidImg=a,t.mDIM=f.getmDim(e,t.skeyindex,t),t.sDIMS=r(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.isVidImg?t.loadobj.width:t.video.videoWidth,conth:t.isVidImg?t.loadobj.height:t.video.videoHeight})),void 0!==t.sDIMS&&0!==t.sDIMS.width&&0!==t.sDIMS.height&&("animating"===t.currentState?(t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.drawImage(t.video,t.sDIMS.x,t.sDIMS.y,t.sDIMS.width,t.sDIMS.height)):void 0===t.animateDirection&&(t.canvas.width!==t.mDIM.width&&(t.canvas.width=t.mDIM.width),t.canvas.height!==t.mDIM.height&&(t.canvas.height=t.mDIM.height),t.ctx.drawImage(t.video,t.sDIMS.x,t.sDIMS.y,t.sDIMS.width,t.sDIMS.height)),t.shadowCanvas_Drawn=!0))),(i||t.drawVideoCanvasImagesRecall&&"animating"===t.currentState||"animating"===t.currentState&&void 0===t.shadowCanvas_Drawn)&&window.requestAnimationFrame(function(){f.updateVideoFrames(e,t)})},createOverlay:function(e,t,i,a){if("none"===t)return"none";i=void 0===i?1:i;var a=void 0===a?{0:"rgba(0, 0, 0, 0)",1:"rgba(0, 0, 0, 1)"}:a,r={none:[[0]],1:[[1,0],[0,0]],2:[[1,0,0],[0,0,0],[0,0,0]],3:[[1,0,0,0],[0,0,0,0],[0,0,0,0]],4:[[1],[0]],5:[[1],[0],[0]],6:[[1],[0],[0],[0]],7:[[1,0]],8:[[1,0,0]],9:[[1,0,0,0]],10:[[1,0,0,0,0],[0,1,0,1,0],[0,0,0,0,0],[0,1,0,1,0],[0,0,0,0,1]],11:[[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0]],12:[[1,0,0],[0,1,0],[0,0,1]],13:[[0,0,1],[0,1,0],[1,0,0]],14:[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,0]],15:[[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0],[0,1,0,0,0],[1,0,0,0,0]],16:[[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1]]},s=void 0===r[t=void 0===t?1:t]?r[2]:r[t];_R_is_Editor&&(f[e]=void 0===f[e]?{}:f[e]),f[e].patternCanvas=document.createElement("canvas"),f[e].patternCtx=f[e].patternCanvas.getContext("2d"),f[e].patternCanvas.width=s[0].length*i,f[e].patternCanvas.height=s.length*i;for(var o=0;o<s.length;o++)for(var n=0;n<s[o].length;n++)"transparent"!=a[s[o][n]]&&(f[e].patternCtx.fillStyle=a[s[o][n]],f[e].patternCtx.fillRect(n*i,o*i,i,i));return"url("+f[e].patternCanvas.toDataURL()+")"},getBGCanvasDetails:function(e,t,i){var a;return i||(t.mDIM=f.getmDim(e,t.skeyindex,t)),t.usepattern=("auto"===t.bgfit||0<=t.bgfit.indexOf("%"))&&(void 0===t.loadobj||!0!==t.loadobj.useBGColor),_R_is_Editor&&void 0===t.panzoom&&delete t.shadowCanvas,void 0===t.shadowCanvas&&(t.shadowCanvas=document.createElement("canvas"),t.shadowCTX=t.shadowCanvas.getContext("2d"),t.shadowCanvas.style.background="transparent",t.shadowCanvas.style.opacity=1),!0===t.replaceShadowCanvas||!0===t.loadobj.bgColor||!0===t.usebgColor||void 0!==t.panzoom||null!=t.isHTML5&&1!=t.poster||t.usepattern?(a={width:t.mDIM.width,height:t.mDIM.height,x:0,y:0},t.usepattern&&void 0!==t.loadobj&&void 0!==t.loadobj.img?f.getCanvasPattern(e,t,{ratio:t.loadobj.height/t.loadobj.width}):(t.loadobj.bgColor||t.usebgColor)&&(t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),f.getCanvasGradients(e,t))):(a=r(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.loadobj.width,conth:t.loadobj.height}),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),void 0!==t.loadobj&&void 0!==t.loadobj.img&&t.shadowCTX.drawImage(t.loadobj.img,a.x,a.y,a.width,a.height),a={width:t.mDIM.width,height:t.mDIM.height,x:0,y:0}),a},getCanvasPattern:function(e,t,i){void 0===t.patternImageCanvas&&(t.patternImageCanvas=document.createElement("canvas"),t.patternImageCTX=t.patternImageCanvas.getContext("2d"));var a=t.bgfit.split(" "),a=(1===a.length&&(a[1]=a[0]),i.width="auto"===a[0]?t.loadobj.width:t.loadobj.width*(parseInt(a[0],0)/100),i.height="auto"===a[1]?t.loadobj.height:i.width*i.ratio,t.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):f[e].DPR,i.width/i.height);i.width=i.width*t.DPR,i.height=i.height*t.DPR,f.isIOS&&15728640<i.width*i.height&&(t.mDIM.width>t.mDIM.height?(i.width=t.mDIM.width,i.height=Math.round(t.mDIM.width/a)):(i.height=t.mDIM.height,i.width=Math.round(t.mDIM.height*a))),t.patternImageCanvas.width=i.width,t.patternImageCanvas.height=i.height,t.patternImageCTX.drawImage(t.loadobj.img,0,0,i.width,i.height),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.clearRect(0,0,t.shadowCTX.canvas.width,t.shadowCTX.canvas.height),t.pattern=t.shadowCTX.createPattern(t.patternImageCanvas,t.bgrepeat),t.shadowCTX.fillStyle=t.pattern,t.shadowShifts={h:t.bgposition.split(" ")[0],v:t.bgposition.split(" ")[1]},t.shadowShifts.hperc=f.isNumeric(parseInt(t.shadowShifts.h))?parseInt(t.shadowShifts.h)/100*t.mDIM.width:0,t.shadowShifts.vperc=f.isNumeric(parseInt(t.shadowShifts.v))?parseInt(t.shadowShifts.v)/100*t.mDIM.height:0,t.shadowShifts.x="left"===t.shadowShifts.h?0:"center"===t.shadowShifts.h||"50%"==t.shadowShifts.h?"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?t.mDIM.width/2-i.width/2-Math.ceil(t.mDIM.width/2/i.width)*i.width:t.mDIM.width/2-i.width/2:"right"===t.shadowShifts.h?"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?-(i.width-t.mDIM.width%i.width):t.mDIM.width-i.width:"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?-(i.width-t.shadowShifts.hperc%i.width):t.shadowShifts.hperc,t.shadowShifts.y="top"===t.shadowShifts.v?0:"center"===t.shadowShifts.v||"50%"==t.shadowShifts.v?"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?t.mDIM.height/2-i.height/2-Math.ceil(t.mDIM.height/2/i.height)*i.height:t.mDIM.height/2-i.height/2:"bottom"===t.shadowShifts.v?"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?-(i.height-t.mDIM.height%i.height):t.mDIM.height-i.height:"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?-(i.height-t.shadowShifts.vperc%i.height):t.shadowShifts.vperc,t.shadowCTX.save(),t.shadowCTX.translate(t.shadowShifts.x,t.shadowShifts.y),t.shadowCTX.fillRect(0,0,t.mDIM.width-t.shadowShifts.x,t.mDIM.height-t.shadowShifts.y),t.shadowCTX.restore()},getCanvasGradients:function(e,t){if(0<=t.bgcolor.indexOf("gradient")){t.gradient=null==t.gradient||_R_is_Editor?f.getGradients(t.bgcolor):t.gradient,t.shadowGrd="radialGradient"===t.gradient.type?t.shadowCTX.createRadialGradient(t.mDIM.width/2,t.mDIM.height/2,0,t.mDIM.width/2,t.mDIM.height/2,Math.max(t.mDIM.width/2,t.mDIM.height/2)):f.calcLinearGradient(t.shadowCTX,t.shadowCanvas.width,t.shadowCanvas.height,t.gradient.deg);for(var i=0;i<t.gradient.stops.length;i+=2)t.shadowGrd.addColorStop(t.gradient.stops[i+1],t.gradient.stops[i]);t.shadowCTX.clearRect(0,0,t.mDIM.width,t.mDIM.height),t.shadowCTX.fillStyle=t.shadowGrd}else t.shadowCTX.clearRect(0,0,t.mDIM.width,t.mDIM.height),t.shadowCTX.fillStyle=t.bgcolor;t.shadowCTX.fillRect(0,0,t.mDIM.width,t.mDIM.height)},cNS:function(e){for(var t in e.n=document.createElementNS("http://www.w3.org/2000/svg",e.n),e.v)e.n.setAttributeNS(null,t.replace(/[A-Z]/g,function(e,t,i,a){return"-"+e.toLowerCase()}),e.v[t]);for(t in void 0!==e.c&&e.n.setAttribute("class",e.c),void 0!==e.id&&(e.n.id=e.id),void 0!==e.t&&(e.n.textContent=e.t),e.s)e.s.hasOwnProperty(t)&&(e.n.style[t]=e.s[t]);return e.n},rgbToHex:function(e){return"#"+o(e[0])+o(e[1])+o(e[2])},getSVGGradient:function(e){if(void 0!==e&&-1!=(e=_R_is_Editor?RSColor.convert(e):e).indexOf("gradient")){for(var t=f.getGradients(e),i=(void 0===f.gradSVG&&(f.gradSVG=f.cNS({n:"svg",id:"tp_svg_gradients",s:{width:"100%",height:"100%",opacity:0,pointerEvents:"none"}}),f.gradSVG.setAttribute("viewBox","0 0 1 1"),f.gradSVG.setAttribute("preserveAspectRatio","none"),document.body.appendChild(f.gradSVG),f.svgGradients=[]),!1),a=JSON.stringify(e),r=0;r<f.svgGradients.length;r++)i||f.svgGradients[r].src==a&&(i=!0,e=f.svgGradients[r].url);if(!i){for(var s,o="radialGradient"===t.type?0:t.deg*(Math.PI/180),o="radialGradient"===t.type?0:{x1:Math.round(50+50*Math.sin(o))+"%",y1:Math.round(50+50*Math.cos(o))+"%",x2:Math.round(50+50*Math.sin(o+Math.PI))+"%",y2:Math.round(50+50*Math.cos(o+Math.PI))+"%"},n=f.cNS({n:t.type,id:"tp_svg_gradient_"+f.svgGradients.length,v:"radialGradient"===t.type?void 0:{gradientUnits:"userSpaceOnUse",x1:o.x1,y1:o.y1,x2:o.x2,y2:o.y2}}),l=0;l<=t.stops.length/2;l+=2)s=tpGS.gsap.utils.splitColor(t.stops[l]),s=f.cNS({n:"stop",v:{offset:100*t.stops[l+1]+"%",stopColor:f.rgbToHex(s),stopOpacity:3<s.length?s[3]:1}}),n.appendChild(s);f.gradSVG.appendChild(n),e="url(#tp_svg_gradient_"+f.svgGradients.length+")",f.svgGradients.push({url:e,src:a,g:n})}}return e},getGradients:function(e){return 0<=e.indexOf("radial-gradient")?{stops:f.getGradientColorStopPoints(e.split("radial-gradient(ellipse at center, ")[1]),type:"radialGradient",deg:0}:-1!==e.indexOf("gradient")?f.getLinearGradientStops(e):e},getLinearGradientStops:function(e){var t,i=e.split("linear-gradient(")[1],i=(1<(e=(i=_R_is_Editor?(i=i.split(", ").join(",")).split(",rgba").join(", rgba"):i).split("deg, ")).length?e[1]:e[0]).split(" "),e=1<e.length?e[0]:180;for(t in i)i.hasOwnProperty(t)&&0<=i[t].indexOf("%")&&(i[t]=""+Math.round(100*parseFloat(i[t].split("%,")[0].split("%)")[0]))/1e4);return{stops:i,deg:e,type:"linearGradient"}},getGradientColorStopPoints:function(e){for(var t=/rgb([\s\S]*?)%/g,i=[],a=[];(s=t.exec(e))&&i.push(s[0]),s;);for(var r=0;r<i.length;r++){var s=i[r],e=/rgb([\s\S]*?)\)/.exec(s),o=/\)([\s\S]*?)%/.exec(s);e[0]&&(e=e[0]),o[1]&&(o=o[1]),a.push(e),a.push(parseFloat(o)/100)}return a},calcLinearGradient:function(e,t,i,a){a=a*Math.PI/180+Math.PI/2;for(var r,s,o=t/2,n=i/2,l=Math.sqrt(o*o+n*n),d={x1:Math.cos(a)*l+o,y1:Math.sin(a)*l+n,x2:o,y2:n},S=[R({x:0,y:0},a),R({x:t,y:0},a),R({x:t,y:i},a),R({x:0,y:i},a)],c=[],p=0;p<S.length;p++)c.push(V(S[p],d));return l=(u(o,n,c[0].x,c[0].y)>u(o,n,c[1].x,c[1].y)?(r=c[0].x,c[0]):(r=c[1].x,c[1])).y,t=(u(o,n,c[2].x,c[2].y)>u(o,n,c[3].x,c[3].y)?(s=c[2].x,c[2]):(s=c[3].x,c[3])).y,Math.round(100*Math.atan2(n-l,o-r))/100==Math.round(a%(2*Math.PI)*100)/100&&(i=r,n=l,r=s,l=t,s=i,t=n),e.createLinearGradient(Math.round(r),Math.round(l),Math.round(s),Math.round(t))},transitions:{filter:{update:function(e,t,i){void 0!==e&&void 0!==e.tl&&(i=void 0!==i||void 0!==e.tl.blur?" blur("+(void 0!==i?i:0+e.tl.blur!==void 0?e.tl.blur:0)+"px)":"",t.canvas.style.filter=void 0===e.tl.filter?i:e.tl.filter+i)},extendTimeLine:function(e,t,i){var a;null!=t&&(a=void 0!==t.g&&"0%"!==t.g&&0!==t.g?(""===a?"":" ")+"grayscale(_g_%)":"",""!==(a=(a=(a=(a+=void 0!==t.h&&"100%"!==t.h&&100!==t.h?(""===a?"":" ")+"brightness(_h_%)":"")+(void 0!==t.s&&"0px"!==t.s&&0!==t.s?(""===a?"":" ")+"sepia(_s_%)":""))+(void 0!==t.c&&100!==t.c?(""===a?"":" ")+"contrast(_c_%)":""))+(void 0!==t.i&&0!==t.i?(""===a?"":" ")+"invert(_i_%)":""))&&(t.tl={filter:a.replace("_g_",parseFloat(t.g)).replace("_h_",parseFloat(t.h)).replace("_s_",parseFloat(t.s)).replace("_c_",parseFloat(t.c)).replace("_i_",parseFloat(t.i))}),void 0!==t.b&&"0px"!==t.b&&0!==t.b&&(void 0===t.tl?t.tl={blur:parseFloat(t.b)}:t.tl.blur=parseFloat(t.b)),void 0!==t.tl)&&(e.add(tpGS.gsap.to(t.tl,t.ms/t.sec,void 0===t.tl.filter?{blur:0}:void 0===t.tl.blur?{filter:a.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:t.e}:{blur:0,filter:a.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:t.e}),0),i.canvasFilter=!0)}},slidingoverlay:{getBasic:function(){return f.getBasic({attr:["x","y"],in:{m:!0,o:-1,_xy:20,_gxys:10,_gxye:-10,zIndex:20,e:e},out:{m:!0,reversed:!1,_xy:-100,o:0,zIndex:10,e:e}})},updateAnim:function(e,t,i){var a=void 0!==t.in.x&&0!==t.in.x&&"0%"!==t.in.x?"x":"y",i=(t.in["g"+a+"s"]=f.SATools.getOffset(t.in[a],t.in._gxys,i,1)+"%",t.in["g"+a+"e"]=f.SATools.getOffset(t.in[a],t.in._gxye,i,1)+"%",t.out[a]=f.SATools.getOffset(t.in[a],t.out._xy,i,1)+"%",t.in[a]=f.SATools.getOffset(t.in[a],t.in._xy,i,1)+"%",0<=parseInt(t.in[a]));return t.in.d="x"==a?i?"left":"right":i?"up":"down",t},beforeDraw:function(e,t,i,a){void 0!==i.d&&(i._dxs="right"===i.d?0+i.mw:"left"===i.d?0-i.mw:0,i._dys="down"===i.d?0+i.mh:"up"===i.d?0-i.mh:0,i._xs="left"===i.d?0-i.mw:0,i._ys="up"===i.d?0-i.mh:0,i._xe="right"===i.d?a.SLOT.OW+i.mw:"left"===i.d?a.SLOT.OW-i.mw:a.SLOT.OW,i._ye="down"===i.d?a.SLOT.OH+i.mh:"up"===i.d?a.SLOT.OH-i.mh:a.SLOT.OH,t.beginPath(),t.rect("left"===i.d?Math.max(0,i._xs):"right"===i.d?Math.min(0,i._xs):0,"up"===i.d?Math.max(0,i._ys):"down"===i.d?Math.min(0,i._ys):0,"left"===i.d?Math.max(a.SLOT.OW,i._xe):"right"===i.d?Math.min(a.SLOT.OW,i._xe):i._xe,"up"===i.d?Math.max(a.SLOT.OH,i._ye):"down"===i.d?Math.min(a.SLOT.OH,i._ye):i._ye),t.clip())},afterDraw:function(e,t,i,a,r){void 0!==i.d&&(t.save(),t.beginPath(),t.rect(Math.max(0,i._dxs),Math.max(0,i._dys),i._xe,i._ye),t.clip(),t.save(),t.transform(r.csx,r.ssx,r.ssy,r.csy,.5*a.SLOT.OW+i.x+i.sgx,.5*a.SLOT.OH+i.y+i.sgy),t.drawImage(void 0!==a.shadowCanvas?a.shadowCanvas:a.loadobj.img,0,0,a.SLOT.OW,a.SLOT.OH,i.sgx-a.SLOT.OW/2,i.sgy-a.SLOT.OH/2,a.SLOT.OW,a.SLOT.OH),t.restore(),t.fillStyle="rgba(0,0,0,0.6)",t.fillRect(i.gx,i.gy,a.SLOT.OW,a.SLOT.OH),t.restore())},extendTimeLine:function(e,t,i,a,r,s){"in"!==r.direction||void 0===a.gxe&&void 0===a.gye||(jQuery.extend(!0,i[0],{d:a.d,gx:void 0===a.gxs?0:2*f.SATools.getOffset(a.gxs,s.width,r.sdir,0),gy:void 0===a.gys?0:2*f.SATools.getOffset(a.gys,s.height,r.sdir,0),sgx:void 0===a.gxs?0:f.SATools.getOffset(a.gxs,s.width,r.sdir,0),sgy:void 0===a.gys?0:f.SATools.getOffset(a.gys,s.height,r.sdir,0),mw:0-s.width,mh:0-s.height}),t.add(tpGS.gsap.to(i,a.ms/a.sec,{gx:void 0===a.gxe?0:2*f.SATools.getOffset(a.gxe,s.width,r.sdir,0),gy:void 0===a.gye?0:2*f.SATools.getOffset(a.gye,s.height,r.sdir,0),sgx:void 0===a.gxe?0:2*f.SATools.getOffset(a.gxe,s.width,r.sdir,0),sgy:void 0===a.gye?0:2*f.SATools.getOffset(a.gye,s.height,r.sdir,0),mw:s.width,mh:s.height,ease:a.e}),0))}},motionFilter:{init:function(e,t){return void 0!==t&&0<parseFloat(t)?(t=parseFloat(t),e.fmExists=!0,e.fmShadow=void 0===e.fmShadow?document.createElement("canvas"):e.fmShadow,e.fmCtx=e.fmShadow.getContext("2d"),e.fmShadow.width=e.ctx.canvas.width,e.fmShadow.height=e.ctx.canvas.height,e.fmCtx.globalAlpha=tpGS.gsap.utils.mapRange(100,0,40,0,t)/100,e.fmCtx.clearRect(0,0,e.ctx.canvas.width,e.ctx.canvas.height)):e.fmExists=!1,t},render:function(e,t){"partial"===t&&(e.fmCtx.globalCompositeOperation="source-over"),e.fmCtx.drawImage(e.canvas,0,0,e.canvas.width,e.canvas.height),e.ctx.clearRect(0,0,e.canvas.width,e.canvas.height),e.ctx.drawImage(e.fmCtx.canvas,0,0,e.canvas.width,e.canvas.height),"partial"===t&&(e.fmCtx.globalCompositeOperation="source-atop"),"partial"!==t&&"full"!==t||(e.fmCtx.fillStyle="rgba(255, 255, 255, 0.1)",e.fmCtx.fillRect(0,0,e.canvas.width,e.canvas.height))},clearFull:function(e,t){e.fmExists&&void 0!==e.fmCtx&&(e.ctx.clearRect(0,0,e.canvas.width,e.canvas.height),e.fmCtx.clearRect(0,0,e.canvas.width,e.canvas.height),void 0!==t)&&t.render(t.time(),!0,!0)},complete:function(e){e.fmShadow&&e.fmShadow.remove()}},d3:{ticker:function(e,t,i){var a,r;void 0!==e.helper&&(a=e.smi*("in"===i?e.helper.oo:e.helper.o),r=e.sma*("in"===i?e.helper.oo:e.helper.o),e.gradient="vertical"===e.d?"in"===i?t.ctx.createLinearGradient(0,0,0,t.canvas.height):t.ctx.createLinearGradient(0,t.canvas.height,0,0):"in"===i?t.ctx.createLinearGradient(0,0,t.canvas.width,0):t.ctx.createLinearGradient(t.canvas.width,0,0,0),e.gradient.addColorStop(0,"rgba("+e.sc+","+a+")"),e.gradient.addColorStop(e.sl,"rgba("+e.sc+","+r+")"),t.ctx.fillStyle=e.gradient,t.ctx.fillRect(0,0,t.canvas.width,t.canvas.height),void 0!==t.cube)&&t.cube.ctx&&(a=!1!==(i=void 0!==e.roomhelper&&!1!==e.roomhelper&&(90-e.roomhelper.r)/90)?i:e.smi*e.helper.o,r=!1!==i?i:e.sma*e.helper.o,t.cube.ctx.clearRect(0,0,t.cube.ctx.canvas.width,t.cube.ctx.canvas.height),e.gradientW=!1!==i?"vertical"===e.d?e.t<0&&1===e.sdir||0<e.t&&-1===e.sdir?t.ctx.createRadialGradient(0,t.cube.ctx.canvas.width/2,0,0,0,2*t.cube.ctx.canvas.width):t.ctx.createRadialGradient(t.cube.ctx.canvas.width,0,0,0,0,2*t.cube.ctx.canvas.width):0<e.t&&1===e.sdir||e.t<0&&-1===e.sdir?t.ctx.createRadialGradient(t.cube.ctx.canvas.width/2,t.cube.ctx.canvas.height,0,t.cube.ctx.canvas.width/2,t.cube.ctx.canvas.height,t.cube.ctx.canvas.width):t.ctx.createRadialGradient(t.cube.ctx.canvas.width/2,.2*t.cube.ctx.canvas.height,0,t.cube.ctx.canvas.width/2,.2*t.cube.ctx.canvas.height,t.cube.ctx.canvas.width):"vertical"===e.d?t.ctx.createLinearGradient(0,0,0,t.cube.ctx.canvas.height):t.ctx.createLinearGradient(0,0,t.cube.ctx.canvas.width,0),e.gradientW.addColorStop(0,"rgba("+e.sc+","+(!1!==i?"a"===e.DIR?r:0:"a"===e.DIR?0:r)+")"),e.gradientW.addColorStop(1,"rgba("+e.sc+","+(!1!==i?"a"===e.DIR?0:r:"a"===e.DIR?r:0)+")"),t.cube.ctx.fillStyle=e.gradientW,t.cube.ctx.fillRect(0,0,t.cube.ctx.canvas.width,t.cube.ctx.canvas.height))},setWall:function(e,t,i,a,r,s){return e.TL=tpGS.gsap.timeline(),e.TL.add(tpGS.gsap.to(e.c,.2,{display:"block"}),0),"rotationX"===i?(e.ctx.canvas.width=a.w,e.ctx.canvas.height=a.w,e.TL.add(tpGS.gsap.set(e.w,{backgroundColor:r,width:a.w,height:a.w,transformOrigin:"50% 50% -"+a.w/2+"px",x:0,y:0<t?-(a.w-a.h):0,rotationX:0<t?-90:90,rotationY:0}),0)):(e.ctx.canvas.width=s?a.w:a.h,e.ctx.canvas.height=a.h,e.TL.add(tpGS.gsap.set(e.w,{backgroundColor:r,width:s?a.w:a.h,height:a.h,transformOrigin:"50% 50% -"+(s?a.w:a.h)/2+"px",x:t<0?a.w-a.h:0,y:0,rotationX:0,rotationY:0<t?-90:90}),0)),e.TL},buildCube:function(e){e.cube={c:document.createElement("div"),w:document.createElement("canvas")},e.cube.ctx=e.cube.w.getContext("2d"),e.cube.c.className="rs_fake_cube",e.cube.w.className="rs_fake_cube_wall",tpGS.gsap.set(e.cube.c,{width:e.mDIM.w,height:e.mDIM.h}),tpGS.gsap.set(e.cube.w,{width:e.mDIM.w,height:e.mDIM.h,backgroundColor:"#ccc"}),e.cube.c.appendChild(e.cube.w),e.sbg.appendChild(e.cube.c)},cubeTL:function(e,t,i,a){var r,s,o,n,l,d,S,c,p,u,R,V,m,y,g,h;if("none"!==t.f&&void 0!==t.f)return i.sbg.style.transformStyle="preserve-3d",r=tpGS.gsap.timeline(),s="incube"===t.f?1:-1,o="incube"===t.f||"cube"===t.f,y="fly"===t.f?-30:90,n="turn"!==t.f&&!1!==t.t&&(_R_is_Editor||!0===f[e].firstSlideAnimDone),l=-1*t.z,d={},S={z:n?0:l,ease:"power1.inOut"},c={ease:t.e},p=[i.canvas],u=o?"50% 50% ":"20% 20% ",R="rotationX",V="rotationY",h="y",g="height",m=t.fd,"vertical"!==t.d?(R="rotationY",V="rotationX",h="x",g="width",t.DIR=1===t.sdir?"b":"a"):t.DIR=1===t.sdir?"a":"b",g="width"===g?"w":"height"===g?"h":g,"turn"===t.f?(y="vertical"===t.d?-120:120,u="vertical"===t.d?1===t.sdir?"in"===a?"0% 0% 0%":"0% 100% 0%":"in"===a?"0% 100% 0%":"0% 0% 0%":1===t.sdir?"in"===a?"0% 0% 0%":"100% 0% 0%":"in"===a?"100% 0% 0%":"0% 0% 0%",S.z=0,c.ease="out"===a?"power3.out":c.ease,m="out"===a?m/2:m):u+=s*i.mDIM[g]/2+"px",c[R]=0,c[h]=0,"in"===a?d[R]=y*t.sdir:c[R]=-y*t.sdir,"fly"===t.f&&(y=void 0===t.fz?20*Math.random()-10:parseInt(t.fz),"in"===a?(d[h]=i.mDIM[g]*(void 0===t.fdi?1.5:parseFloat(t.fdi))*t.sdir,d.rotateZ=t.sdir*y,c.rotateZ=0):(c[h]=i.mDIM[g]*(void 0===t.fdo?2:parseFloat(t.fdo))*t.sdir*-1,c.rotateZ=t.sdir*y*-1)),i.sbg.style.perspective=n?"2500px":"1500px",n?(h={z:0,ease:"power1.inOut"},(g={z:l*("fly"===t.f?1.5:3),ease:"power1.inOut"})[V]=-1*t.t,t.roomhelper={r:h[V]=0},r.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:i.wrap[0],{perspective:1200,transformStyle:"preserve-3d",transformOrigin:u}),0),r.add(tpGS.gsap.to(i.sbg,3*t.md,g),0),r.add(tpGS.gsap.to(i.sbg,3*t.md,h),m-t.md),r.add(tpGS.gsap.to(t.roomhelper,3*t.md,{r:Math.abs(t.t)}),0),r.add(tpGS.gsap.to(t.roomhelper,3*t.md,{r:0}),m-t.md),"in"===a&&1!=s&&o&&(void 0===i.cube&&f.transitions.d3.buildCube(i),r.add(f.transitions.d3.setWall(i.cube,g[V],V,i.mDIM,t.c),0),p.push(i.cube.c))):(t.roomhelper=!1,r.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:i.wrap[0],{perspective:"none",transformStyle:"none",transformOrigin:"50% 50%"}),0),!_R_is_Editor&&!0!==f[e].firstSlideAnimDone&&o&&(void 0===i.cube&&f.transitions.d3.buildCube(i),r.add(f.transitions.d3.setWall(i.cube,d[R],R,i.mDIM,t.c,!0),0),r.add(tpGS.gsap.fromTo(i.cube.w,4*t.md,{opacity:0},{opacity:1}),0),p.push(i.cube.c))),t.helper={o:0,oo:1},r.add(tpGS.gsap.to(t.helper,m,{o:1,oo:0,ease:t.e}),t.md+0),r.add(tpGS.gsap.set(p,jQuery.extend(!0,{},d,{force3D:!0,transformOrigin:u})),0),"turn"!==t.f&&r.add(tpGS.gsap.to(p,3*t.md,S),0),r.add(tpGS.gsap.to(p,m,c),t.md+0),"turn"!==t.f&&r.add(tpGS.gsap.to(p,3*t.md,{z:0,ease:"power1.inOut"}),m-t.md),"out"===a&&1!=s&&r.add(tpGS.gsap.to(p,2*t.md,{opacity:0}),t.dur-2*t.md),r}}},animatedCanvasUpdate:function(e,t){t.cDIMS=f.getBGCanvasDetails(e,t),t.canvas.style.backgroundColor="transparent",t.canvas.style.opacity=1,t.canvas.width!==t.mDIM.width&&(t.canvas.width=t.mDIM.width),t.canvas.height!==t.mDIM.height&&(t.canvas.height=t.mDIM.height),_R_is_Editor||!0!==f[e].clearModalBG||(t.ctx.clearRect(0,0,t.canvas.width,t.canvas.height),f[e].clearModalBG=!1,t.sbg.parentNode.style.opacity=1),t.col=Math.min(t.col||1,t.canvas.width-10),t.row=Math.min(t.row||1,t.canvas.height-10),t.SLOT=jQuery.extend(!0,{s:{},c:{}},i(e,t.col,t.row,t.mDIM,"OW","OH")),t.SLOT.DX=0-t.SLOT.OW/2,t.SLOT.DY=0-t.SLOT.OH/2,t.row=Math.ceil(t.mDIM.height/t.SLOT.OH)||1,void 0!==t.callFromAnimatedCanvasUpdate&&t.callFromAnimatedCanvasUpdate()},slideAnimFinished:function(e,t,i,a){void 0!==t&&(void 0!==t.bgvid&&0<t.bgvid.length&&"out"===i.direction&&(t.drawVideoCanvasImagesRecall=!1,f.stopVideo(t.bgvid,e),t.bgvid[0].style.display="none",t.bgvid[0].style.zIndex=0),t.panFake&&t.panFake.img&&("out"===i.direction?t.panFake.img.style.display="none":t.panFake.img.style.display="block"),"in"===i.direction&&(f.transitions.motionFilter.complete(t),t.ctx.canvas.style.filter="none",tpGS.gsap.set(i.slide,{zIndex:20}),delete t.animateDirection,0<t.bgvid.length)&&(t.isHTML5?tpGS.gsap.set(t.bgvid[0],{zIndex:30,display:"block",opacity:1}):(f.resetVideo(t.bgvid,e),tpGS.gsap.delayedCall(.1,function(){f.playVideo(t.bgvid,e,!0),tpGS.gsap.set(t.bgvid[0],{zIndex:30,display:"block",opacity:1})}))),"out"===i.direction?(tpGS.gsap.set(i.slide,{zIndex:10}),tpGS.gsap.set(t.canvas,{rotationX:0,rotationY:0,rotationZ:0,x:0,y:0,z:0,opacity:1}),t.currentState=void 0):t.currentState="idle",void 0!==t.cube&&(t.cube.c.style.display="none"),"in"===i.direction)&&(f.updateSlideBGs(e,t.skeyindex,t),void 0===t.panzoom||_R_is_Editor||f.startPanZoom(f[e].pr_next_bg,e,void 0!==f[e].panzoomTLs[t.skeyindex]?f[e].panzoomTLs[t.skeyindex].progress():0,t.skeyindex,"play",t.key),void 0!==i.BG)&&!0!==a&&i.BG.ctx.clearRect(0,0,2*t.canvas.width,2*t.canvas.height)},animateCore:function(r,s,o,n){var l,d,e,S,c=s.canvas,p=s.ctx,u=0;if(s.col=o.col,s.row=o.row,_R_is_Editor&&s.three){for(s.canvas.style.display="block";0<s.three.scene.children.length;)s.three.scene.remove(s.three.scene.children[0]);s.three.canvas.parentNode.removeChild(s.three.canvas),s.three=void 0}f.animatedCanvasUpdate(r,s),o.row=s.row,s.animateDirection=n.direction,n.delay=void 0===n.delay?0:n.delay,e=o.col*o.row,S=Array(e),void 0===s.help_canvas&&"out"===n.direction&&void 0!==n.bgColor&&(s.help_canvas=document.createElement("canvas"),s.help_ctx=s.help_canvas.getContext("2d"),s.help_canvas.style.backgroundColor="transparent"),"out"===n.direction&&void 0!==n.bgColor&&(s.help_canvas.width=s.mDIM.width,s.help_canvas.height=s.mDIM.height,s.help_ctx.fillStyle=n.bgColor,s.help_ctx.fillRect(0,0,s.mDIM.width,s.mDIM.height)),o.mo=f.transitions.motionFilter.init(s,o.mo),o.dur=o.ms/o.sec,void 0!==n.d3&&(n.d3.dur=o.dur,n.d3.fd=.7*o.dur,n.d3.md=.15*o.dur,n.d3.sdir=n.sdir),s.SLOT.c={ws:0,hs:0,wd:0,hd:0},0<o.mo&&_R_is_Editor&&p.clearRect(0,0,c.width,c.height);var t=tpGS.gsap.timeline({onUpdate:function(){if((u=0)<o.mo?f.transitions.motionFilter.render(s,o.moo):p.clearRect(0,0,c.width,c.height),s.help_canvas&&"out"===n.direction&&p.drawImage(s.help_canvas,0,0),(n.filter&&n.filter.u||!_R_is_Editor)&&f.transitions.filter.update(n.filter,p,s.canvasFilterBlur),_R_is_Editor&&0!==o.zIndex&&void 0!==o.zIndex&&tpGS.gsap.set(n.slide,{zIndex:o.zIndex}),void 0!==s.shadowCanvas)for(l=0;l<o.col;l++)for(s.SLOT.SX=s.SLOT.OW*l,s.SLOT.tw=s.SLOT.OW*(l+.5),s.SLOT.c.wd=s.mDIM.width-(s.SLOT.tw+s.SLOT.DX+s.SLOT.OW),s.SLOT.c.wd=s.SLOT.c.wd<0?s.SLOT.c.wd:0,s.SLOT.DW=s.SLOT.SW=s.SLOT.OW+s.SLOT.c.wd,d=0;d<o.row;d++){p.save();var e=-Math.PI/180*S[u].r,t=0!==o.r?Math.cos(e)*S[u].sx:S[u].sx,i=0!==o.r?Math.cos(e)*S[u].sy:S[u].sy,a=0!==o.r?Math.sin(e)*S[u].sx:0,e=0!==o.r?Math.sin(e)*-S[u].sy:0;s.SLOT.SY=s.SLOT.OH*d,s.SLOT.th=s.SLOT.OH*(d+.5),f.transitions[n.effect]&&f.transitions[n.effect].beforeDraw&&f.transitions[n.effect].beforeDraw(r,p,S[u],s),o.m&&(p.beginPath(),p.rect(s.SLOT.OW*l,s.SLOT.OH*d,s.SLOT.OW,s.SLOT.OH),p.clip()),p.transform(t,a,e,i,s.SLOT.tw+S[u].x,s.SLOT.th+S[u].y),p.globalAlpha=Math.max(0,S[u].o),s.SLOT.c.hd=s.mDIM.height-(s.SLOT.th+s.SLOT.DY+s.SLOT.OH),s.SLOT.c.hd=s.SLOT.c.hd<0?s.SLOT.c.hd:0,s.SLOT.DH=s.SLOT.SH=s.SLOT.OH+s.SLOT.c.hd,1<s.SLOT.SW&&1<s.SLOT.SH&&p.drawImage(s.shadowCanvas,s.SLOT.SX,s.SLOT.SY,s.SLOT.SW,s.SLOT.SH,s.SLOT.DX,s.SLOT.DY,s.SLOT.DW,s.SLOT.DH),p.restore(),f.transitions[n.effect]&&f.transitions[n.effect].afterDraw&&f.transitions[n.effect].afterDraw(r,p,S[u],s,{csx:t,csy:i,ssx:a,ssy:e}),u++}void 0!==n.d3&&n.d3.su&&f.transitions.d3.ticker(n.d3,s,n.direction),s.currentState="animating"},onComplete:function(){f.slideAnimFinished(r,s,n)}});if(o.col*o.row<2&&(o.f="start"),0!==o.zIndex&&void 0!==o.zIndex&&t.add(tpGS.gsap.set(n.slide,{zIndex:parseInt(o.zIndex,0)}),0),o.m="false"!=o.m&&!1!==o.m,"in"===n.direction){for(l=0;l<e;l++)S[l]={x:f.SATools.getOffset(o.x,o.m?s.SLOT.OW:s.mDIM.width,n.sdir,l),y:f.SATools.getOffset(o.y,o.m?s.SLOT.OH:s.mDIM.height,n.sdir,l),o:f.SATools.getSpecialValue(o.o,l,n.sdir),sx:f.SATools.getSpecialValue(o.sx,l,n.sdir),sy:f.SATools.getSpecialValue(o.sy,l,n.sdir),r:0!==o.r?f.SATools.getSpecialValue(o.r,l,n.sdir):0};t.add(tpGS.gsap.to(S,o.dur,{o:1,sx:1,sy:1,r:0,x:0,y:0,ease:o.e,stagger:{amount:"nodelay"===o.f?0:o.ms/o.stasec,grid:[o.col,o.row],from:"nodelay"===o.f?"start":o.f}}),n.delay),void 0!==n.d3&&t.add(f.transitions.d3.cubeTL(r,n.d3,s,"in"),0),f.transitions.filter.extendTimeLine(t,n.filter,s)}else{for(l=0;l<e;l++)S[l]={x:0,y:0,o:1,sx:1,sy:1,r:0};t.add(tpGS.gsap.to(S,o.dur,{o:function(e){return f.SATools.getSpecialValue(o.o,e,n.sdir)},sx:function(e){return f.SATools.getSpecialValue(o.sx,e,n.sdir)},sy:function(e){return f.SATools.getSpecialValue(o.sy,e,n.sdir)},r:0!==o.r&&void 0!==o.r?function(e){return f.SATools.getSpecialValue(o.r,e,n.sdir)}:0,x:function(e){return f.SATools.getOffset(o.x,o.m?s.SLOT.OW:s.mDIM.width,n.sdir,e)*(o.reversed?-1:1)},y:function(e){return f.SATools.getOffset(o.y,o.m?s.SLOT.OH:s.mDIM.height,n.sdir,e)*(o.reversed?-1:1)},ease:o.e,stagger:{amount:"nodelay"===o.f?0:o.ms/o.stasec,grid:[o.col,o.row],from:"nodelay"===o.f?"start":o.f}}),n.delay+(void 0!==o.outdelay?o.outdelay:0)),void 0!==n.d3&&t.add(f.transitions.d3.cubeTL(r,n.d3,s,"out"),0)}f.transitions[n.effect]&&f.transitions[n.effect].extendTimeLine&&f.transitions[n.effect].extendTimeLine(r,t,S,o,n,s.mDIM),_R_is_Editor?RVS.TL[RVS.S.slideId].slide.add(t,0):f[r].mtl.add(t,n.delay)}}),function(e,t){return void 0!==t&&f.isNumeric(t)?parseFloat(t,0):null==t||"default"===t||"d"===t?e:t}),i=function(e,t,i,a,r,s){var o={};return o[r]=Math.ceil(a.width/t),o[s]=(_R_is_Editor,Math.ceil(a.height/i)),o},l=function(e){return null==e||0===e||NaN===e?1:e},a=function(e,t){_R_is_Editor||(f[e].duringslidechange=!0);var i,a=_R_is_Editor?-1:"arrow"!=f[e].sc_indicator||void 0===f[e].sc_indicator_dir?f[e].sdir:f[e].sc_indicator_dir,r=!!_R_is_Editor||void 0!==f[e].pr_next_bg&&0<f[e].pr_next_bg.length&&void 0!==f[e].pr_next_bg[0],s=!!_R_is_Editor||void 0!==f[e].pr_active_bg&&0<f[e].pr_active_bg.length&&void 0!==f[e].pr_active_bg[0],r=_R_is_Editor?RVS.SBGS[RVS.S.slideId].n:r?f[e].sbgs[f[e].pr_next_bg[0].dataset.key]:void 0,o=_R_is_Editor?RVS.SBGS[RVS.S.slideId].c:s?f[e].sbgs[f[e].pr_active_bg[0].dataset.key]:void 0,a=1===a?-1:1;_R_is_Editor||(delete f[e].sc_indicator,delete f[e].sc_indicator_dir),i=jQuery.extend(!0,{},function(e,t,i){var a,r,s=(void 0!==f.transitions[t.anim.e]&&void 0!==f.transitions[t.anim.e].getBasic?f.transitions[t.anim.e]:f).getBasic();s.out=null==s.out?{}:s.out,s.out.reversed=void 0===t.out&&(void 0===s.out.reversed||s.out.reversed),void 0!==t.iw&&parseInt(t.iw,0),void 0!==t.ow&&parseInt(t.ow,0);for(r in s.attr)a=s.attr[r],s.in[a]=n(s.in[a],t.in[a]),s.out[a]=s.out.reversed?s.in[a]:void 0===t.out?s.out[a]:n(s.out[a],t.out[a]);return s.filter=void 0!==t.filter?jQuery.extend(!0,t.filter,t.filter):s.filter,(s=f.transitions[t.anim.e]&&f.transitions[t.anim.e].updateAnim?f.transitions[t.anim.e].updateAnim(e,s,i):s).e=t.anim.e,void 0!==s.in&&(s.in.col="random"===s.in.col?tpGS.gsap.utils.random(1,10,1):l(s.in.col),s.in.row="random"===s.in.row?tpGS.gsap.utils.random(1,10,1):l(s.in.row)),void 0!==s.out&&(s.out.col="random"===s.out.col?tpGS.gsap.utils.random(1,10,1):l(s.out.col),s.out.row="random"===s.out.row?tpGS.gsap.utils.random(1,10,1):l(s.out.row)),s}(e,t,a)),void 0!==r.random&&void 0!==f.SLTR&&void 0!==o&&(delete o.help_canvas,delete o.help_ctx),i.ms=n(void 0,void 0===t.anim.ms?1e3:t.anim.ms),i.f=n(void 0,t.anim.f),i.p=n(void 0,t.anim.p),i.d=n(void 0,t.anim.d),i.o=t.anim.o,void 0!==t.d3&&(t.d3.t=void 0!==t.d3.t&&0!==t.d3.t&&t.d3.t,t.d3.su="true"==t.d3.su||1==t.d3.su,t.d3.su&&(t.d3.smi=void 0===t.d3.smi?0:parseFloat(t.d3.smi),t.d3.sl=void 0===t.d3.sl?1:parseFloat(t.d3.sl),t.d3.sma=void 0===t.d3.sma?.5:parseFloat(t.d3.sma),t.d3.sc=void 0===t.d3.sc?"0,0,0":tpGS.gsap.utils.splitColor(t.d3.sc).join(",")),i.p="none",void 0!==i.in.row)&&void 0!==i.in.col&&200<i.in.row*i.in.col&&(i.filter=void 0),i.in.sec=void 0===i.in.sec?1e3:i.in.sec,i.in.stasec=void 0===i.in.stasec?void 0===i.d?1500:100*i.d:i.in.stasec,i.in.ms="default"===i.ms||"d"===i.ms?i.in.ms:"random"===i.ms?Math.round(1e3*Math.random()+300):null!=i.ms?parseInt(i.ms,0):i.in.ms,i.out.ms=i.in.ms,void 0!==i.filter&&(i.filter.ms=i.in.ms,i.filter.sec=i.in.sec,i.filter.e=(void 0===i.filter.e||"default"===i.filter.e?i.in:i.filter).e),i.in.f=(void 0===i.f||"default"===i.f||"d"===i.f?i.in:i).f,i.in.f="slidebased"===i.in.f?1==a?"start":"end":"oppslidebased"===i.in.f?1==a?"end":"start":i.in.f,i.out.f=i.in.f,i.out=jQuery.extend(!0,{},i.in,i.out),i.in.eng=i.out.eng=t.anim.eng,void 0!==i.out.eng&&null==f[i.out.eng]&&(i.out.o=0,i.in.o=0,i.in.ms=i.out.ms=1e3,i.in.eng=i.out.eng="animateCore"),void 0!==i.p&&"none"!==i.p&&(i.in.bg="dark"===i.p?"#000":"light"===i.p?"#fff":"transparent",i.out.delay="none"!==i.p?function(e,t){return e/2.5}:0,1===i.out.o)&&0===i.out.x&&0===i.out.y&&(i.out.o=0),"forceinout"===i.o?(i.in.zIndex=20,i.out.zIndex=10):"outin"!==i.o&&(1!==i.in.o||0!==i.in.x||0!==i.in.y||void 0===t.out||1===i.out.o&&0===i.out.x&&0===i.out.y)||(i.in.zIndex=10,i.out.zIndex=20),0<r.bgvid.length&&(i.in=S(e,i.in,r,"in")),s&&void 0!==o.bgvid&&0<o.bgvid.length&&(i.out=S(e,i.out,o,"out")),void 0!==i.out&&(i.out.simplify||i.in.simplify)&&(i.out=d(i.out)),i.in.simplify&&(i.in=d(i.in)),_R_is_Editor||requestAnimationFrame(function(){f.generalObserver(f.ISM,!0)}),i.in.eng=void 0===i.in.eng?"animateCore":i.in.eng,i.out.eng=void 0===i.out.eng?"animateCore":i.out.eng,s&&!0!==i.out.skip&&f[i.out.eng](e,o,i.out,{effect:i.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:f[e].pr_active_slide,direction:"out",delay:0,bgColor:i.in.bg,sdir:a,filter:void 0,d3:t.d3,addOns:_R_is_Editor?t.addOns:void 0}),!0!==i.in.skip&&f[i.in.eng](e,r,i.in,{effect:i.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].n.sbg:f[e].pr_next_slide,direction:"in",delay:s?"function"==typeof i.out.delay?i.out.delay(i.in.ms/1e3,i.out.row*i.out.col):i.out.delay:i.in.delay,BG:o,outslide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:f[e].pr_active_slide,sdir:a,filter:i.filter,d3:t.d3,addOns:_R_is_Editor?t.addOns:void 0})},r=function(e,t,i){var a=e.height/e.width,a=(i.ratio=i.conth/i.contw,i.ratio<a&&"contain"===t.bgfit||i.ratio>a&&"cover"===t.bgfit?i.height=e.width*i.ratio:i.ratio>a&&"contain"===t.bgfit||i.ratio<a&&"cover"===t.bgfit?i.width=e.width*a/i.ratio:i.ratio!==a||"contain"!==t.bgfit&&"cover"!==t.bgfit?(1===(a=t.bgfit.split(" ")).length&&(a[1]=a[0]),i.width="auto"===a[0]?i.contw:e.width*(parseInt(a[0],0)/100),i.height="auto"===a[1]?i.conth:i.width*i.ratio,t.usepattern=!0):i.width=e.width,a=e,e=i,1===(t=(t=t.bgposition).split(" ")).length&&(t[1]=t[0]),{x:"center"===t[0]||"50%"===t[0]?(a.width-e.width)/2:"left"===t[0]?0:"right"===t[0]?a.width-e.width:f.isNumeric(t[0])?0:0<=t[0].indexOf("%")?parseInt(t[0],0)/100*a.width-parseInt(t[0],0)/100*e.width:parseInt(t[0],0),y:"center"===t[1]||"50%"===t[1]?(a.height-e.height)/2:"top"===t[1]?0:"bottom"===t[1]?a.height-e.height:f.isNumeric(t[1])?0:0<=t[1].indexOf("%")?parseInt(t[1],0)/100*a.height-parseInt(t[1],0)/100*e.height:parseInt(t[1],0)});return i.x=a.x,i.y=a.y,i},d=function(e){return e.o=0,e.r=0,e.row=1,e.col=1,e.x=0,e.y=0,e.sx=1,e.sy=1,e},s=function(e){return e="false"!==e&&!1!==e&&"off"!==e&&void 0!==e&&0!==e&&-1!==e},o=function(e){e=e.toString(16);return 1==e.length?"0"+e:e},S=function(e,t,i,a){return t.skip=!1,"in"===a?i.isHTML5?(i.bgvid[0].style.display="none",f.resetVideo(i.bgvid,e),i.animateDirection="in",i.currentState="animating",i.drawVideoCanvasImagesRecall=!0,f.updateVideoFrames(e,i,!0),f.playVideo(i.bgvid,e)):(f[e].videos[i.bgvid[0].id].pauseCalled=!1,t.waitToSlideTrans=f[e].videos[i.bgvid[0].id].waitToSlideTrans,!0!==i.poster?(f.resetVideo(i.bgvid,e),!(f[e].videos[i.bgvid[0].id].prePlayForaWhile=!1)!==t.waitToSlideTrans&&f.playVideo(i.bgvid,e,!0),tpGS.gsap.fromTo(i.bgvid,t.ms/t.sec,{zIndex:30,display:"block",opacity:0},{opacity:1,zIndex:30,display:"block"}),i.loadobj.bgColor=!0,i.bgcolor="#000",t.simplify=!0):(f[e].videos[i.bgvid[0].id].prePlayForaWhile=!1,f.resetVideo(i.bgvid,e),f.playVideo(i.bgvid,e),i.bgvid[0].style.display="none",i.bgvid[0].style.zIndex=0,i.bgvid[0].style.opacity=0)):"out"===a&&(i.isHTML5?(i.currentState="animating",i.drawVideoCanvasImagesRecall=!0,f.updateVideoFrames(e,i,!0),window.requestAnimationFrame(function(){tpGS.gsap.to(i.bgvid,.1,{zIndex:0,display:"none"})})):(f.stopVideo(i.bgvid,e,!0),!0!==i.poster&&(i.loadobj.bgColor=!0,i.bgcolor="#000"))),t},u=function(e,t,i,a){return Math.sqrt(Math.pow(e-i,2)+Math.pow(t-a,2))},R=function(e,t){t+=Math.PI/2;return{x1:e.x,y1:e.y,x2:e.x+100*Math.cos(t),y2:e.y+100*Math.sin(t)}},V=function(e,t){var i=e.y2-e.y1,a=e.x1-e.x2,e=i*e.x1+a*e.y1,r=t.y2-t.y1,s=t.x1-t.x2,t=r*t.x1+s*t.y1,o=i*s-r*a;return 0!=o&&{x:Math.round((s*e-a*t)/o*100)/100,y:Math.round((i*t-r*e)/o*100)/100}};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.slideanims={loaded:!0,version:"6.6.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),function(){"use strict";window._R_is_Editor?RVS._R=void 0===RVS._R?{}:RVS._R:window._R_is_Editor=!1,jQuery.fn.revolution=jQuery.fn.revolution||{};var c=_R_is_Editor?RVS._R:jQuery.fn.revolution;jQuery.extend(!0,c,{bgW:function(e,t){return _R_is_Editor?RVS.RMD.width:"carousel"===c[e].sliderType?c[e].justifyCarousel?c[e].carousel.slide_widths[void 0!==t?t:c[e].carousel.focused]:c[e].carousel.slide_width:c[e].module.width},bgH:function(e,t){return _R_is_Editor?RVS.RMD.height:"carousel"===c[e].sliderType?c[e].carousel.slide_height:c[e].module.height},getPZSides:function(e,t,i,a,r,s,o){e*=i,t*=i,i=Math.abs(a-e),a=Math.abs(r-t),r=new Object;return r.l=(0-s)*i,r.r=r.l+e,r.t=(0-o)*a,r.b=r.t+t,r.h=s,r.v=o,r},getPZCorners:function(e,t,i,a){var e=e.bgposition.split(" ")||"center center",r="center"==e[0]?"50%":"left"==e[0]||"left"==e[1]?"0%":"right"==e[0]||"right"==e[1]?"100%":e[0],e="center"==e[1]?"50%":"top"==e[0]||"top"==e[1]?"0%":"bottom"==e[0]||"bottom"==e[1]?"100%":e[1],r=parseInt(r,0)/100||0,e=parseInt(e,0)/100||0,s=new Object;return s.start=c.getPZSides(a.start.width,a.start.height,a.start.scale,t,i,r,e),s.end=c.getPZSides(a.start.width,a.start.height,a.end.scale,t,i,r,e),s},getPZValues:function(e){var t,i=e.panzoom.split(";"),a={duration:10,ease:"none",scalestart:1,scaleend:1,rotatestart:.01,rotateend:0,blurstart:0,blurend:0,offsetstart:"0/0",offsetend:"0/0"};for(t in i)if(i.hasOwnProperty(t)){var r=i[t].split(":"),s=r[0],o=r[1];switch(s){case"d":a.duration=parseInt(o,0)/1e3;break;case"e":a.ease=o;break;case"ss":a.scalestart=parseInt(o,0)/100;break;case"se":a.scaleend=parseInt(o,0)/100;break;case"rs":a.rotatestart=parseInt(o,0);break;case"re":a.rotateend=parseInt(o,0);break;case"bs":a.blurstart=parseInt(o,0);break;case"be":a.blurend=parseInt(o,0);break;case"os":a.offsetstart=o;break;case"oe":a.offsetend=o}}return a.offsetstart=a.offsetstart.split("/")||[0,0],a.offsetend=a.offsetend.split("/")||[0,0],a.rotatestart=0===a.rotatestart?.01:a.rotatestart,e.panvalues=a,e.bgposition="center center"==e.bgposition?"50% 50%":e.bgposition,a},pzCalcL:function(e,t,i){var a,r,s,o=void 0===i.panvalues?jQuery.extend(!0,{},c.getPZValues(i)):jQuery.extend(!0,{},i.panvalues),n=o.offsetstart,l=o.offsetend,d={start:{width:e,height:_R_is_Editor?e/i.loadobj.width*i.loadobj.height:e/i.owidth*i.oheight,rotation:Math.PI/180*o.rotatestart,rotationV:o.rotatestart,scale:o.scalestart,transformOrigin:"0% 0%"},end:{rotation:Math.PI/180*o.rotateend,rotationV:o.rotateend,scale:o.scaleend}};o.scalestart,i.owidth,i.oheight,o.scaleend,i.owidth,i.oheight;return d.start.height<t&&(s=t/d.start.height,d.start.height=t,d.start.width=d.start.width*s),.01===o.rotatestart&&0===o.rotateend&&(delete d.start.rotation,delete d.end.rotation),s=c.getPZCorners(i,e,t,d),n[0]=parseFloat(n[0])+s.start.l,l[0]=parseFloat(l[0])+s.end.l,n[1]=parseFloat(n[1])+s.start.t,l[1]=parseFloat(l[1])+s.end.t,i=s.start.r-s.start.l,a=s.start.b-s.start.t,r=s.end.r-s.end.l,s=s.end.b-s.end.t,n[0]=0<n[0]?0:i+n[0]<e?e-i:n[0],l[0]=0<l[0]?0:r+l[0]<e?e-r:l[0],n[1]=0<n[1]?0:a+n[1]<t?t-a:n[1],l[1]=0<l[1]?0:s+l[1]<t?t-s:l[1],d.start.x=n[0],d.start.y=n[1],d.end.x=l[0],d.end.y=l[1],d.end.ease=o.ease,d},pzDrawShadow:function(e,t,i){"animating"!==t.currentState&&null!=t.panFake&&!t.pzLastFrame||(t.pzLastFrame=!1,t.shadowCTX.clearRect(0,0,t.shadowCanvas.width,t.shadowCanvas.height),t.shadowCTX.save(),void 0!==i.rotation?t.shadowCTX.transform(Math.cos(i.rotation)*i.scale,Math.sin(i.rotation)*i.scale,Math.sin(i.rotation)*-i.scale,Math.cos(i.rotation)*i.scale,i.x,i.y):t.shadowCTX.transform(i.scale,0,0,i.scale,i.x,i.y),t.shadowCTX.drawImage(t.loadobj.img,0,0,i.width,i.height),t.shadowCTX.restore()),"animating"!==t.currentState?null!=t.panFake?(t.panFake.visible||(t.panFake.visible=!0,t.panFake.img.style.opacity=1,t.canvas.style.opacity=0),tpGS.gsap.set(t.panFake.img,{width:i.width,height:i.height,force3D:!0,x:i.x,y:i.y,transformOrigin:"0% 0%",rotationZ:i.rotationV+"deg",scale:i.scale}),void 0!==i.blur&&(t.panFake.img.style.filter=0===i.blur?"none":"blur("+i.blur+"px)")):(c.updateSlideBGs(e,i.slidekey,t,!0),void 0!==i.blur&&(t.canvas.style.filter=0===i.blur?"none":"blur("+i.blur+"px)")):(void 0!==t.panFake&&!1!==t.panFake.visible&&(t.panFake.visible=!1,t.panFake.img.style.opacity=0,t.canvas.style.opacity=1,t.panFake.img.style.filter="none"),void 0!==i.blur&&t.canvasFilter?t.canvasFilterBlur=i.blur:t.canvas.style.filter=0===i.blur?"none":"blur("+i.blur+"px)")},startPanZoom:function(e,t,i,a,r,s){var o,n,l,d,S=_R_is_Editor?e:e.data();void 0!==S.panzoom&&null!==S.panzoom&&(o=_R_is_Editor?S:c[t].sbgs[s],_R_is_Editor||"carousel"!==c[t].sliderType||(c[t].carousel.justify&&void 0===c[t].carousel.slide_widths&&c.setCarouselDefaults(t,!0),c[t].carousel.justify)||(void 0===c[t].carousel.slide_width&&(c[t].carousel.slide_width=!0!==c[t].carousel.stretch?c[t].gridwidth[c[t].level]*(0===c[t].CM.w?1:c[t].CM.w):c[t].canv.width),void 0===c[t].carousel.slide_height&&(c[t].carousel.slide_height=!0!==c[t].carousel.stretch?c[t].gridheight[c[t].level]*(0===c[t].CM.w?1:c[t].CM.w):c[t].canv.height)),n=c.getmDim(t,a,o),l=c.pzCalcL(n.width,n.height,S),o.pzAnim=l,_R_is_Editor||(c[t].panzoomTLs=void 0===c[t].panzoomTLs?{}:c[t].panzoomTLs,c[t].panzoomBGs=void 0===c[t].panzoomBGs?{}:c[t].panzoomBGs,void 0===c[t].panzoomBGs[a]&&(c[t].panzoomBGs[a]=e),d=c[t].panzoomTLs[a]),i=i||0,void 0!==d&&(d.pause(),d.kill(),d=void 0),d=tpGS.gsap.timeline({paused:!0}),S.panvalues.duration=NaN===S.panvalues.duration||void 0===S.panvalues.duration?10:S.panvalues.duration,_R_is_Editor||void 0===S||void 0===o||(o.panvalues=S.panvalues),void 0!==o)&&(void 0===o.shadowCanvas&&(o.shadowCanvas=document.createElement("canvas"),o.shadowCTX=o.shadowCanvas.getContext("2d"),o.shadowCanvas.style.background="transparent",o.shadowCanvas.style.opacity=1),o.shadowCanvas.width!==n.width&&(o.shadowCanvas.width=n.width),o.shadowCanvas.height!==n.height&&(o.shadowCanvas.height=n.height),l.slideindex=a,l.slidekey=_R_is_Editor?void 0:s,l.start.slidekey=l.slidekey,c.pzDrawShadow(t,o,l.start),l.end.onUpdate=function(){c.pzDrawShadow(t,o,l.start)},o.panStart=jQuery.extend(!0,{},l.start),void 0===S.panvalues.blurstart||void 0===S.panvalues.blurend||0===S.panvalues.blurstart&&0===S.panvalues.blurend||(l.start.blur=S.panvalues.blurstart,l.end.blur=S.panvalues.blurend),(!_R_is_Editor&&void 0===l.start.blur&&!c.isFF||window.isSafari11&&c.ISM)&&(o.panFake=void 0===o.panFake?{img:o.loadobj.img.cloneNode(!0)}:o.panFake,void 0!==o.panFake)&&(!0!==o.panFake.appended&&(o.panFake.appended=!0,o.sbg.appendChild(o.panFake.img),o.panFake.img.style.position="absolute",o.panFake.img.style.display="block",o.panFake.img.style.zIndex=0,o.panFake.img.style.opacity=0,o.panFake.img.style.top="0px",o.panFake.img.style.left="0px"),o.panFake.img.width=l.start.width,o.panFake.img.height=l.start.height),d.add(tpGS.gsap.to(l.start,S.panvalues.duration,l.end),0),d.progress(i),"play"!==r&&"first"!==r||d.play(),_R_is_Editor?RVS.TL[RVS.S.slideId].panzoom=d:c[t].panzoomTLs[a]=d)}}),window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.panzoom={loaded:!0,version:"6.6.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),RVS.S.layerTypes=["text","button","image","video","audio","svg","object","shape","row","column","group"],RVS.S.nextscreen="none",RVS.S.prevscreen="n",RVS.S.uniqueIds=[],RVS.S.uniqueId=0,RVS.S.selLayerTypes={row:!1,column:!1,group:!1,text:!1,image:!1,shape:!1,object:!1,button:!1,audio:!1,video:!1,bottom:!1,top:!1,middle:!1},RVS.S.selElements=[],RVS.selLayers=[],RVS.screen="d",RVS.TL={currentTime:0,c:{}},RVS.C.rZone={top:"",middle:"",bottom:""},RVS.S.slideTrans=0,RVS.S.emptyLayerObj={},function(){"use strict";RVS.F.initAdmin(),RVS.SLIDER={},RVS.zoom=1,RVS.F.loadBuilder=function(e){var t=void 0!==e&&void 0!==e.id&&e.id;!1!==t&&RVS.F.setEditorUrl(t),RVS.V.ignoreAutoStart=!0,0<jQuery("#builderView").length&&jQuery("#builderView").remove(),RVS.F.ajaxRequest("load_builder",{},function(e){jQuery("#wpbody").append(e.data),!1!==t&&RVS.F.loadSlider({id:t})})},RVS.F.loadSlider=function(e){RVS.C.slideList=jQuery("#slidelist"),RVS.C.theRightToolbar=jQuery("#the_right_toolbar_inner"),RVS.C.theEditor=jQuery("#the_editor"),RVS.S.ulInner=jQuery("#rev_slider_ul_inner"),(void 0!==e.id&&""!==e.id||void 0!==e.alias&&""!==e.alias)&&(RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.loadingcontent}),RVS.F.ajaxRequest("get_full_slider_object",void 0!==e.alias&&""!==e.alias?{alias:e.alias}:{id:e.id},function(e){if(void 0===e.id)RVS.F.showWaitAMinute({fadeIn:200,text:RVS_LANG.redirectingtooverview}),RVS.F.backToOverview();else{if(RVS.F.showWaitAMinute({fadeIn:200,text:RVS_LANG.preparingdatas}),RVS.SLIDER.id=e.id,RVS.ENV.sliderID=e.id,RVS.ENV.tempGuide=e.guide,e.slider_params.alias=e.alias,e.slider_params.title=e.title,o(e.slider_params),void 0===RVS.S.emptyLayerObj.shape)for(var t in RVS.S.layerTypes)RVS.S.emptyLayerObj[RVS.S.layerTypes[t]]=RVS.F.addLayerObj(RVS.S.layerTypes[t],void 0,!1,!0,!0);for(var i in e.slides)if(e.slides.hasOwnProperty(i)){var a=e.slides[i];for(t in a.params=void 0!==a.params&&Array.isArray(a.params)?void 0:RVS.F.expandSlide(a.params),a.layers)void 0!==a.layers[t].position&&null==a.layers[t].position.zIndex&&void 0!==a.layers[t].group&&void 0!==a.layers[t].group.groupOrder&&(a.layers[t].position.zIndex=a.layers[t].group.groupOrder,RVS.S.zIndexAtStartChanged=!0);void 0!==a.params&&void 0!==a.params.static&&(a.params.static.isstatic=!1),s({slideid:a.id,uid:a.id,slide:a.params,layers:a.layers})}r(e.static_slide),RVS.F.makeSlideListSortable(),RVS.F.makeSlideListScroll(),n(),RVS.F.showWaitAMinute({fadeOut:200,text:RVS_LANG.preparingdatas}),e.slider_params.pakps?RVS.F.openHelpGuide("template"):void 0!==e.slider_params.layout&&RVS.F.openHelpGuide("module",!0),void 0===e.slider_params.layout?(RVS.ENV.unsaved=!0,RVS.F.openNewGuide()):void 0!==RVS.SLIDER.settings.skins&&!0===RVS.SLIDER.settings.skins.colorsAtStart&&setTimeout(RVS.F.openColorSkinApi(),500)}},void 0,!0,void 0,void 0,!0),RVS.F.showWaitAMinute({fadeOut:0,text:RVS_LANG.loadingcontent}),i(),RVS.F.manageShapeContentShow())},RVS.F.addOnsBasics=function(){for(var e in RVS.LIB.ADDONS)RVS.LIB.ADDONS.hasOwnProperty(e)&&(RVS.SLIDER.settings.addOns[e]=void 0===RVS.SLIDER.settings.addOns[e]?{enable:!1}:RVS.SLIDER.settings.addOns[e])};var t,e,r=function(e){var t=void 0!==e.params?RVS.F.addSlideObj():RVS.F.addSlideObj(e.slide);t.title=RVS_LANG.globalLayers,t.static.isstatic=!0,void 0!==e.params&&void 0!==e.params.static&&(t.static.overflow=void 0===e.params.static.overflow?"hidden":e.params.static.overflow,t.static.position=void 0===e.params.static.position?"front":e.params.static.position,t.static.lastEdited=void 0===e.params.static.lastEdited||"front"===e.params.static.lastEdited||e.params.static.lastEdited),e.id=void 0===e.id?RVS.ENV.sliderID:e.id,s({slideid:"static_"+e.id,uid:e.id,slide:t,layers:e.layers,order:999}),RVS.SLIDER.staticSlideId="static_"+e.id},s=function(e){e.layers=void 0===e.layers?{}:e.layers,e.slide=void 0===e.slide?{}:e.slide,RVS.SLIDER.slideIDs=void 0===RVS.SLIDER.slideIDs?[]:RVS.SLIDER.slideIDs;var t,i,a={slide:RVS.F.addSlideObj(e.slide),layers:{},id:e.uid};for(t in e.layers)e.layers.hasOwnProperty(t)&&(i=e.layers[t],void 0===(i=RVS.F.addLayerObj(jQuery.extend(!0,jQuery.extend(!0,{},RVS.S.emptyLayerObj[i.type]),i)))||"zone"===i.type&&"bottom"!==i.uid&&"middle"!==i.uid&&"top"!==i.uid||i&&(a.layers[i.uid]=i));RVS.SLIDER[e.slideid]=a,RVS.SLIDER.slideIDs.push(e.slideid),RVS.S.slideId=e.slideid,RVS.F.addToSlideList({id:e.slideid,ignoreSort:!0})},o=function(e){e.layout&&e.layout.bg&&Array.isArray(e.layout.bg)&&e.layout.bg.length<=0&&delete e.layout.bg,RVS.SLIDER.settings=RVS.F.setSlider(e)},i=function(){RVS.C.undo=document.getElementById("undolist"),RVS.C.redo=document.getElementById("redolist"),RVS.C.vW=document.getElementById("builderView"),RVS.C.rb=jQuery("#rev_builder"),RVS.C.rb_tlw=jQuery("#rb_tlw"),RVS.C.the_cont=void 0===RVS.C.the_cont?jQuery("#the_container"):RVS.C.the_cont,RVS.C.the_cont[0].className="no_layers_selected",RVS.C.formCollectors=document.getElementsByClassName("form_collector"),RVS.C.simpleCollectors=[];var e,t=0;for(e in RVS.C.formCollectors)RVS.C.formCollectors.hasOwnProperty(e)&&(""===RVS.C.formCollectors[e].id&&(RVS.C.formCollectors[e].id="form_collector_id_"+t),-1==RVS.C.formCollectors[e].className.indexOf("__inmodal")&&RVS.C.simpleCollectors.push(RVS.C.formCollectors[e]),RVS.C.formCollectors[e].className+=" "+RVS.C.formCollectors[e].dataset.type+"_forms",t++);for(e in RVS.C.simpleCollectors)RVS.C.simpleCollectors.hasOwnProperty(e)&&RVS.C.theRightToolbar[0].appendChild(RVS.C.simpleCollectors[e]);RVS.F.initNavigation(),RVS.DOC.on("revertEasyInputs",function(e,t){RVS.F.updateEasyInputs({container:t,trigger:"init",path:"settings."})}),RVS.F.initialiseInputBoxes()},n=function(){RVS.F.generateAttachmentMetaData(),RVS.S.slideId=RVS.F.getEditorUrl(),0<=""+RVS.S.slideId.indexOf("slider-")&&(RVS.S.slideId=RVS.SLIDER.slideIDs[0],0<""+RVS.S.slideId.indexOf("static_"))&&1<RVS.SLIDER.slideIDs.length&&(RVS.S.slideId=RVS.SLIDER.slideIDs[1]),RVS.F.initSliderBuilder(),RVS.F.initTimeLineModules(),RVS.F.initTimeLineConstruct(),RVS.F.initSlideBuilder(),RVS.F.initLayerTools(),RVS.F.initLayerActions(),RVS.F.initLayerBuilder(),RVS.F.initLayerListBuilder(),RVS.F.initQuickStyle(),RVS.F.updateInputBoxes(),RVS.F.initOnOff(),RVS.F.switchButtonInit(),jQuery("#undoredowrap").RSScroll({wheelPropagation:!1,suppressScrollX:!0,minScrollbarLength:100}),tpGS.gsap.set("#adminmenumain, #wpadminbar",{opacity:0}),window.onbeforeunload=function(e){if(RVS.F.showWaitAMinute({fadeIn:500,text:t?RVS_LANG.redirectingtooverview:RVS_LANG.leavingpage}),RVS.S.need_to_save)return t=!1,RVS.F.showWaitAMinute({fadeOut:500}),(e=e||window.event)&&(e.returnValue=RVS_LANG.leaving),RVS_LANG.leaving},RVS.DOC.on("enablePXModule",function(e,t){void 0!==t&&("slideparallax"===t&&!0!==RVS.SLIDER.settings.parallax.set&&"-"!==RVS.SLIDER[RVS.S.slideId].slide.effects.parallax||"object"==typeof t&&"-"!==RVS.L[t.layerid].effects.parallax&&!0!==RVS.SLIDER.settings.parallax.set)&&(RVS.SLIDER.settings.parallax.set=!0,RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_effects_scroll"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.parallaxsettoenabled,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""}))}),RVS.DOC.on("enableScrollEffectModule",function(e,t){void 0!==t&&("object"!=typeof t&&("fade"===t||"blur"===t||"grayscale"===t)&&!0!==RVS.SLIDER.settings.parallax.set&&"true"==RVS.SLIDER[RVS.S.slideId].slide.effects[t]||"object"==typeof t&&null==t.layerid&&void 0!==t.val&&"true"==t.val&&!0!==RVS.SLIDER.settings.scrolleffects.set||"object"==typeof t&&void 0!==t.layerid&&"true"==RVS.L[t.layerid].effects.effect&&!0!==RVS.SLIDER.settings.scrolleffects.set)&&(RVS.SLIDER.settings.scrolleffects.set=!0,RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_effects_scroll"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.feffectscrollsettoenabled,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""}))}),RVS.DOC.on("enableScrollModule",function(e,t){void 0!==t&&void 0!==t.layerid&&("true"==RVS.L[t.layerid].timeline.scrollBased&&!0!==RVS.SLIDER.settings.scrolltimeline.set&&(RVS.SLIDER.settings.scrolltimeline.set=!0,RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_effects_scroll"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.timelinescrollsettoenabled,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""})),!0===RVS.SLIDER.settings.scrolltimeline.set)&&("true"==RVS.L[t.layerid].timeline.scrollBased||"default"==RVS.L[t.layerid].timeline.scrollBased&&!0===RVS.SLIDER.settings.scrolltimeline.layers)&&(RVS.L[t.layerid].timeline.loop.use=!1,RVS.F.updateEasyInputs({container:jQuery("#layer_looping_wrap"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.layerloopdisabledduetimeline,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""}))}),help_menu_support.addEventListener("click",function(e){e.stopPropagation(),e.stopImmediatePropagation(),RVS.ENV.activated||(e.preventDefault(),RVS.F.showRegisterSliderInfo())}),RVS.DOC.on("click",".action_collection_wrap",function(){jQuery(this).toggleClass("showmore")}),RVS.DOC.on("click","#rb_editor_logo",function(){clearTimeout(e),jQuery(".rs-builder-mode.hideallwp").addClass("showwpmenus"),tpGS.gsap.to("#adminmenumain",.5,{opacity:1})}),RVS.DOC.on("mouseenter","#adminmenumain, #wpadminbar",function(){clearTimeout(e),jQuery(".rs-builder-mode.hideallwp").addClass("showwpmenus"),tpGS.gsap.to("#adminmenumain",.5,{opacity:1})}),RVS.DOC.on("mouseleave","#adminmenumain, #wpadminbar",function(){e=setTimeout(function(){tpGS.gsap.to("#adminmenumain, #wpadminbar",.1,{opacity:0,onComplete:function(){jQuery(".rs-builder-mode.hideallwp").removeClass("showwpmenus")}})},200)}),RVS.DOC.on("mouseleave",".action_collection_wrap",function(){jQuery(this).removeClass("showmore")}),RVS.DOC.on("mouseover",".aable",function(e){jQuery(".aable.hovered").removeClass("hovered");e=jQuery(e.toElement);(e.hasClass("aable")?e.addClass("aable"):e.closest(".aable")).addClass("hovered")}),RVS.DOC.on("mouseleave",".aable",function(e){var t=jQuery(this);(t.hasClass("aable")?t:t.closest(".aable")).removeClass("hovered")}),RVS.DOC.on("click",".markable",function(){if(!RVS.S.justresized)return function(e){if(void 0===e||"object"!=typeof e||void 0===e.element&&void 0===e.jelement&&void 0===e.id)return;void 0!==e.id&&(e.jelement=jQuery("#"+e.id));void 0===e.element&&(e.element=e.jelement[0]);void 0===e.jelement&&(e.jelement=jQuery(e.element));void 0===e.id&&(e.id=e.element.id);if(void 0!==e.jelement){var t,i=e.element.id,a=[];for(t in RVS.S.selElements)RVS.S.selElements[t].id===i?a.push(RVS.S.selElements[t]):RVS.S.selElements[t].jobj.removeClass("marked");RVS.S.selElements=a,RVS.DOC.trigger("cursorselection"),RVS.F.selectLayers({ignoreModeChange:!0,overwrite:!0}),RVS.S.selElements=[],RVS.S.selElements.push({jobj:e.jelement,multiplemark:e.element.dataset.multiplemark,forms:e.jelement.data("forms"),id:e.element.id}),e.jelement.addClass("marked")}}({id:this.id}),RVS.F.openSettings({forms:jQuery(this).data("forms"),uncollapse:this.dataset.collapse}),!1}),RVS.DOC.on("click",".slide_list_element, .slide_list_child_element",function(){var i;if(""+this.dataset.ref!==RVS.S.slideId)return RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.preparingNextSlide}),i=this.dataset.ref,setTimeout(function(){var e=RVS.SLIDER[RVS.S.slideId].slide.static.isstatic,t=(RVS.S.lastShownSlideId=RVS.S.slideId,0<=(" "+RVS.C.vW.className).indexOf(" mode__slidestyle"));RVS.F.mainMode({mode:"slidelayout",slide:i}),t?(RVS.DOC.trigger("changeToSlideMode"),!RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&e&&(jQuery(".slide_submodule_trigger.selected").removeClass("selected"),RVS.F.showForms("#form_slidebg",!0)),RVS.F.updateSlideInputFields()):(RVS.DOC.trigger("changeToLayerMode"),RVS.F.updateLayerInputFields()),RVS.F.showWaitAMinute({fadeOut:0,text:RVS_LANG.preparingNextSlide})},10),!1}),RVS.DOC.on("click",".callEventButton",function(){void 0!==this.dataset.evt&&RVS.DOC.trigger(this.dataset.evt,this.dataset.evtparam)}),RVS.DOC.on("click","#back_to_overview",function(){RVS.F.setCookie("rs6_shortly_edited_slider",RVS.ENV.sliderID,17e-5),t=!0,RVS.S.need_to_save||RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.redirectingtooverview}),RVS.F.backToOverview()}),RVS.DOC.on("click","#undo, #undo_redo_wrap",function(){RVS.F.undo({step:1})}),RVS.DOC.on("click","#redo",function(){RVS.F.redo({step:1})}),RVS.DOC.on("click",".undoredostep",function(){"redolist"===this.parentElement.id?RVS.F.redo({step:parseInt(jQuery(this).index(),0)+1}):RVS.F.undo({step:jQuery("#undolist li").length-jQuery(this).index()-1})}),RVS.DOC.on("click","#noactiondone_undo",function(){RVS.F.undo({step:jQuery("#undolist li").length})}),RVS.DOC.on("keydown",function(e){if(("none"===RVS.S.inFocus||void 0===RVS.S.inFocus)&&("MacOS"===RVS.S.OSName&&e.metaKey&&!e.ctrlKey||e.ctrlKey))switch(e.keyCode){case 83:return e.preventDefault(),RVS.DOC.trigger("saveslider"),!1;case 90:return RVS.F.undo({step:1}),!1;case 89:return RVS.F.redo({step:1}),!1}}),RVS.DOC.on("click",".close_and_accept",function(){jQuery(this.closest(".form_collector")).hide(),void 0!==this.dataset.evt&&RVS.DOC.trigger(this.dataset.evt,this.dataset.evtparam)}),RVS.DOC.on("mouseover",".callhoverevt",function(e){void 0!==this.dataset.hoverevt&&RVS.DOC.trigger(this.dataset.hoverevt,this.dataset.hoverevtparam)}),RVS.DOC.on("mouseleave",".callhoverevt",function(e){void 0!==this.dataset.leaveevt&&RVS.DOC.trigger(this.dataset.leaveevt,this.dataset.leaveevtparam)}),RVS.DOC.on("mouseover","#ruler_top, #ruler_left",function(e){return!(RVS.S.builderHover="overruler")}),RVS.DOC.on("mouseover","#timeline_settings",function(e){return!(RVS.S.builderHover="overtimeline")}),RVS.DOC.on("mouseover","#rev_builder_inner",function(e){return!(RVS.S.builderHover="overbuilder")}),RVS.DOC.on("mouseleave","#rev_builder_wrapper",function(e){return RVS.S.builderHover=!1,RVS.F.setRulerMarkers(),!1}),RVS.DOC.on("mouseleave","#the_right_toolbar_inner",function(e){return RVS.S.builderHover=!1,RVS.F.setRulerMarkers(),!1}),tpGS.gsap.set("#optimizeslider",{display:"none",autoAlpha:0,y:50}),RVS.DOC.on("mouseenter","#save_slider, #optimizeslider",function(e){clearTimeout(RVS.S.mouseOverSaveOpt),tpGS.gsap.to("#optimizeslider",.3,{display:"block",autoAlpha:1,y:0,ease:"power3.inOut"})}),RVS.DOC.on("mouseleave","#save_slider, #optimizeslider",function(e){RVS.S.mouseOverSaveOpt=setTimeout(function(){tpGS.gsap.to("#optimizeslider",.3,{display:"none",autoAlpha:0,y:50,ease:"power3.inOut"})},10)}),RVS.DOC.on("click","#save_slider",function(){RVS.DOC.trigger("saveslider")}),RVS.DOC.on("click","#optimizeslider",function(e){RVS.F.openOptimizer()}),RVS.DOC.on("click","#preview_slider",function(){RVS.F.openPreivew({title:RVS.SLIDER.settings.title,alias:RVS.SLIDER.settings.alias,id:RVS.SLIDER.id,mode:this.dataset.mode})}),RVS.DOC.on("saveslider",function(e,t){RVS.F.convertIDStoTxt(),RVS.F.convertArrayToObjects(),RVS.F.saveSlides({index:0,slides:RVS.SLIDER.slideIDs,trigger:RVS.F.saveSliderSettings,works:RVS.SLIDER.inWork,force:void 0!==t&&void 0!==t.force&&t.force})}),tpGS.gsap.fromTo("#builderView",.001,{x:"100%"},{x:"0%",ease:"power3.inOut"}),setTimeout(function(){if(RVS.F.mainMode({mode:"slidelayout",ignoreUpdateFields:!0,forms:["*slidelayout*"],set:!0,uncollapse:!0,slide:RVS.S.slideId}),RVS.F.mainMode({mode:"sliderlayout",forms:["*sliderlayout*#form_module_title"],set:!0,uncollapse:!0,slide:RVS.S.slideId}),jQuery("body.rs-builder-mode").addClass("hideallwp"),jQuery("#ui_preset_toggle").on("click",function(){var e=jQuery(this);e.hasClass("windowmode")?(e.removeClass("windowmode"),RVS.F.fixTools()):(e.addClass("windowmode"),RVS.F.releaseDarkTools())}),"MacOS"===RVS.F.os()){var e,t=document.querySelectorAll(".shortcut_cmdctrl"),i=document.querySelectorAll(".shortcut_alt"),a=document.querySelectorAll(".shortcut_shift"),r=document.querySelectorAll(".shortcuttext");for(e in i)i.hasOwnProperty(e)&&(i[e].textContent="⌥");for(e in a)a.hasOwnProperty(e)&&(a[e].textContent="⇧");for(e in t)t.hasOwnProperty(e)&&(t[e].textContent="⌘");for(e in r)t.hasOwnProperty(e)&&r[e].classList.add("osx")}RVS.DOC.trigger("checkOnScrollSettings"),RVS.DOC.trigger("builderInitialised")},1)}}();