text: /*! For license information please see 1.fdcb3e0fa640fae9276d.js.LICENSE.txt */
  (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"1X2N":function(t,e){!function(t){function e(e){if("string"==typeof e.data){var i=e.handler,n=e.data.toLowerCase().split(" ");e.handler=function(e){if(this===e.target||!/textarea|select/i.test(e.target.nodeName)&&"text"!==e.target.type){var o="keypress"!==e.type&&t.hotkeys.specialKeys[e.which],s=String.fromCharCode(e.which).toLowerCase(),r="",a={};e.altKey&&"alt"!==o&&(r+="alt+"),e.ctrlKey&&"ctrl"!==o&&(r+="ctrl+"),e.metaKey&&!e.ctrlKey&&"meta"!==o&&(r+="meta+"),e.shiftKey&&"shift"!==o&&(r+="shift+"),o?a[r+o]=!0:(a[r+s]=!0,a[r+t.hotkeys.shiftNums[s]]=!0,"shift+"===r&&(a[t.hotkeys.shiftNums[s]]=!0));for(var l=0,c=n.length;l<c;l++)if(a[n[l]])return i.apply(this,arguments)}}}}t.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},t.each(["keydown","keyup","keypress"],(function(){t.event.special[this]={add:e}}))}(window.jQuery)},"2GgJ":function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){t.fn.selectText=function(){var t,e,i=document,n=this[0];i.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(n),t.select()):window.getSelection&&(e=window.getSelection(),(t=document.createRange()).selectNodeContents(n),e.removeAllRanges(),e.addRange(t)),this.focus(),n.selectionStart=0,n.selectionEnd=1},t.fn.setCursorPos=function(t){var e,i;if((e=this.eq(0))&&e.is("input"))if((i=e.get(0)).setSelectionRange)i.focus(),i.setSelectionRange(t,t);else if(i.createTextRange){var n=i.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}},t.fn.getCursorPos=function(){var t,e;if((t=this.eq(0))&&t.is("input")){if((e=t.get(0)).selectionStart)return e.selectionStart;if(document.selection){e.focus();var i=document.selection.createRange(),n=document.selection.createRange().text.length;return i.moveStart("character",-e.value.length),i.text.length-n}}},t.fn.flashClass=function(t,e){var n,o=this;return this.addClass(t),clearTimeout(this.data("timeout")),n=setTimeout((function(){"object"===i(o)&&o.length&&(o.removeClass(t),o.data("timeout",null))}),e),this.data("timeout",n),this},t.fn.cardNumberFormatter=function(){this.on("input",function(){var e,i,n,o;o=this.getCursorPos(),/[^\d\s]/g.test(this.val())&&(this.val(this.val().replace(/[^\d\s]/g,"")),this.setCursorPos(o-1)),e=this.val().replace(/\s/g,""),this.data("prev_card_digits",this.data("prev_card_digits")||e),window.Stripe&&window.Stripe.card&&window.Stripe.card.cardType&&(i=Stripe.card.cardType(e)),n="American Express"==i?function(t){return t.replace(/^(\d{4})(\d{6})?/,"$1 $2 ").replace(/\s+/g," ")}:function(e){return t.trim(e.replace(/(\d{4})(\d{4})?(\d{4})?(\d{3,4})?/,"$1 $2 $3 $4").replace(/\s+/g," "))},(!this.data("prev_card_digits")||e.length>this.data("prev_card_digits").length&&e.length<17)&&(o=this.getCursorPos(),this.val(n(e)),o<t.trim(this.val()).length-1&&this.data("prev_card_digits")&&this.setCursorPos(o)),this.data("prev_card_digits",e)}.bind(this))},t.expr[":"].icontains=function(e,i,n,o){var s=n[3]+"",r=e.textContent||e.innerText||t(e).text()||"",a=new RegExp("("+s+")","i");return!!r.match(a)},t.expr[":"].econtains=function(e,i,n,o){var s=n[3]+"",r=e.textContent||e.innerText||t(e).text()||"",a=new RegExp("(^"+s+"$)","");return!!r.match(a)}}($)},"3eHG":function(t,e,i){"use strict";var n=i("xi34"),o=i("rFsW"),s=i("tZHv"),r=i("OTSC"),a=i("Fi5S"),l=[],c=[],h=[],u=[],d=null,f=null;window.googleMapsAPIAuthError=!1,window.gm_authFailure=function(){a.a.trigger("gmaps:auth_error",!0),window.googleMapsAPIAuthError=!0};var p="//maps.googleapis.com/maps/api/js",g={initGMapsAPI:function(t,e){if(window.googleMapsAPIAuthError&&t&&g.destroyGMapsAPI(),window.google&&window.google.maps)return e();if(!window.processGoogleMapsAPICallbacks){window.processGoogleMapsAPICallbacks=function(){o.a.each(l,(function(t){o.a.isFunction(t)&&t()}))};var i=document.createElement("script");i.type="text/javascript";var a={libraries:"places",callback:"processGoogleMapsAPICallbacks"};t?a.key=t:window.googleMapsAPIAuthError=!0;var c=s.a.IS_FILE_PROTOCOL?"":n.a.param(a);i.src=r.default.selectProtocol(p+"?"+c),document.body.appendChild(i)}l.push(e)},destroyGMapsAPI:function(){for(var t=document.querySelectorAll("script[src*='"+p+"']"),e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e]);window.google&&window.google.maps&&delete window.google.maps,delete window.processGoogleMapsAPICallbacks,l=[],window.googleMapsAPIAuthError=!1},initFacebookAPI:function(t){var e=s.a.FACEBOOK_APP_ID||"";if("function"==typeof t){if(g.isFacebookInited)return t();var i,a,l,h,u;c.push(t),Object(n.a)("#fb-root").length||Object(n.a)("body").prepend(Object(n.a)('<div id="fb-root"></div>')),window.fbAsyncInit=function(){FB.init({appId:e,xfbml:!1,version:"v"+s.a.FACEBOOK_API_VERSION}),o.a.each(c,(function(t){o.a.isFunction(t)&&t()})),g.isFacebookInited=!0},i=document,a="script",l="facebook-jssdk",u=i.getElementsByTagName(a)[0],i.getElementById(l)||((h=i.createElement(a)).id=l,h.src=r.default.selectProtocol("//connect.facebook.net/en_US/sdk.js"),u.parentNode.insertBefore(h,u))}},initFacebookPixel:function(){return new Promise((function(t){return g.isFacebookPixelInited||(e=window,i=document,n="script",e.fbq||(o=e.fbq=function(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)},e._fbq||(e._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[],(r=i.createElement(n)).async=!0,r.src="https://connect.facebook.net/en_US/fbevents.js",(a=i.getElementsByTagName(n)[0]).parentNode.insertBefore(r,a)),fbq("init",s.a.FACEBOOK_PIXEL_ID),g.isFacebookPixelInited=!0),t();var e,i,n,o,r,a}))},initTwitterAPI:function(t){g.isTwitterInited?o.a.isFunction(t)&&t():(o.a.isFunction(t)&&h.push(t),g.isTwitterLoading||(g.isTwitterLoading=!0,Object(n.a)('body > script[src^="//syndication.twimg.com/tweets.json"]').remove(),n.a.ajax({url:r.default.selectProtocol("//platform.twitter.com/widgets.js"),dataType:"script",cache:!1,success:function(){o.a.each(h,(function(t){o.a.isFunction(t)&&t()})),twttr.events.bind("click",r.default.getFocusBack),g.isTwitterInited=!0,g.isTwitterLoading=!1}})))},initTwitterTrackingAPI:function(t){return d||(d=new Promise((function(t){n.a.ajax({url:r.default.selectProtocol("//platform.twitter.com/oct.js"),dataType:"script",cache:!1,success:t})})))},initMailchimpAPI:function(t){g.isMailchimpInited?o.a.isFunction(t)&&t(g.mailchimp):(o.a.isFunction(t)&&u.push(t),g.isMailchimpLoading||(g.isMailchimpLoading=!0,n.a.ajax({url:r.default.selectProtocol("//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js"),dataType:"script",cache:!1,success:function(){window.require?window.require(["mojo/signup-forms/Loader"],(function(t){g.mailchimp=t,o.a.each(u,(function(t){o.a.isFunction(t)&&t(g.mailchimp)})),g.isMailchimpInited=!0})):u=[]},complete:function(){g.isMailchimpLoading=!1}})))},initPinterestTrackingAPI:function(t){return f||(f=new Promise((function(t){!function(t){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};var e=window.pintrk;e.queue=[],e.version="3.0";var i=document.createElement("script");i.async=!0,i.src="https://s.pinimg.com/ct/core.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n)}}(),window.pintrk("load","2614453656440"),window.pintrk("page"),t()})))}};e.a=g},"4HyG":function(t,e){!function(t,e){var i,n,o=[],s=!1,r=t.documentElement,a=function(){},l="hidden",c="visibilitychange";void 0!==t.webkitHidden&&(l="webkitHidden",c="webkitvisibilitychange"),e.getComputedStyle||f();for(var h=["","-webkit-","-moz-","-ms-"],u=document.createElement("div"),d=h.length-1;d>=0;d--){try{u.style.position=h[d]+"sticky"}catch(t){}""!=u.style.position&&f()}function f(){E=F=D=z=H=O=a}function p(t){return parseFloat(t)||0}function g(){i={top:e.pageYOffset,left:e.pageXOffset}}function m(){if(e.pageXOffset!=i.left)return g(),void D();e.pageYOffset!=i.top&&(g(),_())}function v(t){setTimeout((function(){e.pageYOffset!=i.top&&(i.top=e.pageYOffset,_())}),0)}function _(){for(var t=o.length-1;t>=0;t--)b(o[t])}function b(t){if(t.inited){var e=i.top<=t.limit.start?0:i.top>=t.limit.end?2:1;t.mode!=e&&function(t,e){var i=t.node.style;switch(e){case 0:i.position="absolute",i.left=t.offset.left+"px",i.right=t.offset.right+"px",i.top=t.offset.top+"px",i.bottom="auto",i.width="auto",i.marginLeft=0,i.marginRight=0,i.marginTop=0;break;case 1:i.position="fixed",i.left=t.box.left+"px",i.right=t.box.right+"px",i.top=t.css.top,i.bottom="auto",i.width="auto",i.marginLeft=0,i.marginRight=0,i.marginTop=0;break;case 2:i.position="absolute",i.left=t.offset.left+"px",i.right=t.offset.right+"px",i.top="auto",i.bottom=0,i.width="auto",i.marginLeft=0,i.marginRight=0}t.mode=e}(t,e)}}function w(t){isNaN(parseFloat(t.computed.top))||t.isCell||"none"==t.computed.display||(t.inited=!0,t.clone||function(t){t.clone=document.createElement("div");var e=t.node.nextSibling||t.node,i=t.clone.style;i.height=t.height+"px",i.width=t.width+"px",i.marginTop=t.computed.marginTop,i.marginBottom=t.computed.marginBottom,i.marginLeft=t.computed.marginLeft,i.marginRight=t.computed.marginRight,i.padding=i.border=i.borderSpacing=0,i.fontSize="1em",i.position="static",i.cssFloat=t.computed.cssFloat,t.node.parentNode.insertBefore(t.clone,e)}(t),"absolute"!=t.parent.computed.position&&"relative"!=t.parent.computed.position&&(t.parent.node.style.position="relative"),b(t),t.parent.height=t.parent.node.offsetHeight,t.docOffsetTop=T(t.clone))}function y(t){var e=!0;t.clone&&function(t){t.clone.parentNode.removeChild(t.clone),t.clone=void 0}(t),function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(t.node.style,t.css);for(var i=o.length-1;i>=0;i--)if(o[i].node!==t.node&&o[i].parent.node===t.parent.node){e=!1;break}e&&(t.parent.node.style.position=t.parent.css.position),t.mode=-1}function x(){for(var t=o.length-1;t>=0;t--)w(o[t])}function C(){for(var t=o.length-1;t>=0;t--)y(o[t])}function k(t){var e=getComputedStyle(t),i=t.parentNode,n=getComputedStyle(i),o=t.style.position;t.style.position="relative";var s={top:e.top,marginTop:e.marginTop,marginBottom:e.marginBottom,marginLeft:e.marginLeft,marginRight:e.marginRight,cssFloat:e.cssFloat,display:e.display},a={top:p(e.top),marginBottom:p(e.marginBottom),paddingLeft:p(e.paddingLeft),paddingRight:p(e.paddingRight),borderLeftWidth:p(e.borderLeftWidth),borderRightWidth:p(e.borderRightWidth)};t.style.position=o;var l={position:t.style.position,top:t.style.top,bottom:t.style.bottom,left:t.style.left,right:t.style.right,width:t.style.width,marginTop:t.style.marginTop,marginLeft:t.style.marginLeft,marginRight:t.style.marginRight},c=S(t),h=S(i),u={node:i,css:{position:i.style.position},computed:{position:n.position},numeric:{borderLeftWidth:p(n.borderLeftWidth),borderRightWidth:p(n.borderRightWidth),borderTopWidth:p(n.borderTopWidth),borderBottomWidth:p(n.borderBottomWidth)}};return{node:t,box:{left:c.win.left,right:r.clientWidth-c.win.right},offset:{top:c.win.top-h.win.top-u.numeric.borderTopWidth,left:c.win.left-h.win.left-u.numeric.borderLeftWidth,right:-c.win.right+h.win.right-u.numeric.borderRightWidth},css:l,isCell:"table-cell"==e.display,computed:s,numeric:a,width:c.win.right-c.win.left,height:c.win.bottom-c.win.top,mode:-1,inited:!1,parent:u,limit:{start:c.doc.top-a.top,end:h.doc.top+i.offsetHeight-u.numeric.borderBottomWidth-t.offsetHeight-a.top-a.marginBottom}}}function T(t){for(var e=0;t;)e+=t.offsetTop,t=t.offsetParent;return e}function S(t){var i=t.getBoundingClientRect();return{doc:{top:i.top+e.pageYOffset,left:i.left+e.pageXOffset},win:i}}function M(){n=setInterval((function(){!function(){for(var t=o.length-1;t>=0;t--)if(o[t].inited){var e=Math.abs(T(o[t].clone)-o[t].docOffsetTop),i=Math.abs(o[t].parent.node.offsetHeight-o[t].parent.height);if(e>=2||i>=2)return!1}return!0}()&&D()}),500)}function I(){clearInterval(n)}function P(){s&&(document[l]?I():M())}function E(){s||(g(),x(),e.addEventListener("scroll",m),e.addEventListener("wheel",v),e.addEventListener("resize",D),e.addEventListener("orientationchange",D),t.addEventListener(c,P),M(),s=!0)}function D(){if(s){C();for(var t=o.length-1;t>=0;t--)o[t]=k(o[t].node);x()}}function z(){e.removeEventListener("scroll",m),e.removeEventListener("wheel",v),e.removeEventListener("resize",D),e.removeEventListener("orientationchange",D),t.removeEventListener(c,P),I(),s=!1}function H(){z(),C()}function O(){for(H();o.length;)o.pop()}function F(t){for(var e=o.length-1;e>=0;e--)if(o[e].node===t)return;var i=k(t);o.push(i),s?w(i):E()}g(),e.Stickyfill={stickies:o,add:F,remove:function(t){for(var e=o.length-1;e>=0;e--)o[e].node===t&&(y(o[e]),o.splice(e,1))},init:E,rebuild:D,pause:z,stop:H,kill:O}}(document,window),window.jQuery&&(window.jQuery.fn.Stickyfill=function(t){return this.each((function(){Stickyfill.add(this)})),this})},"5aof":function(t,e){!function(t,e){t.fn.RMDrag=function(e){if(!e)return this;"function"==typeof e&&(e={start:arguments[0],move:arguments[1],stop:arguments[2]}),e.start=e.start||e.begin||e.down,e.stop=e.stop||e.end||e.up,e.move=e.move||e.drag,e.silent=void 0===e.silent||e.silent;var i,n={start:"mousedown",move:"mousemove",end:"mouseup"},o={X:200,Y:200},s=isNaN(Number(e.threshold))?1:Number(e.threshold),r=this[0],a=t(r);function l(o){d(o),window._moveInProcess||(i={startX:o.pageX,startY:o.pageY,deltaX:0,deltaY:0,velocityX:0,velocityY:0,moved:!1,startTime:Number(new Date),duration:0},u(o),t(document).on(n.move,c).on(n.end,h),"function"==typeof e.start&&e.start.call(r,o),e.dragClass&&"string"==typeof e.dragClass&&a.addClass(e.dragClass))}function c(t){d(t);var n=t.pageX-i.startX,a=t.pageY-i.startY;if(!(Math.max(Math.abs(n),Math.abs(a))<s)){i.moved=!0;var l=n-i.deltaX||n,c=a-i.deltaY||a;Math.abs(l)>o.X&&(l=i.velocityX),Math.abs(c)>o.Y&&(c=i.velocityY),i.deltaX=n,i.deltaY=a,i.velocityX=l,i.velocityY=c,u(t),"function"==typeof e.move&&e.move.call(r,t),window._moveInProcess=!0}}function h(o){d(o),i.duration=Number(new Date)-i.startTime,i.moved&&(window.suppressClick=+new Date+100),u(o),t(document).off(n.move,c).off(n.end,h),"function"==typeof e.stop&&e.stop.call(r,o),window._moveInProcess=!1,e.dragClass&&"string"==typeof e.dragClass&&a.removeClass(e.dragClass)}function u(t){for(prop in i)t[prop]=i[prop]}function d(t){t&&(e.preventDefault&&t.preventDefault(),e.silent&&t.stopPropagation())}return this.on(n.start,l),this}}(jQuery)},Fi5S:function(t,e,i){"use strict";var n=i("q1z7"),o=i.n(n),s=i("rFsW"),r=window.RM&&window.RM.DEBUG?{on:function(t,e){console.log('RM.Events: subscribe to "'+t+'": ',e),o.a.Events.on.apply(this,arguments)},trigger:function(t,e){console.log('RM.Events: "'+t+'": ',e),o.a.Events.trigger.apply(this,arguments)}}:{};e.a=s.a.extend(r,o.a.Events)},GLJd:function(t,e,i){"use strict";i.r(e);var n=i("rFsW"),o=i("QNiq");!function(t){t.fn.RMAltText=function(e){var i=[],s={top:"bottom",bottom:"top",left:"right",right:"left"},r=function(i){var r={direction:"top",offset:9,manual:!1,container:null,keepInBounds:!1,targetZoom:1};e&&t.extend(r,e);var a=r.container&&r.container.length?r.container:t("body");if((!i.hasClass("rmalttext")||r.text)&&o.a.isDesktop){i.addClass("rmalttext");var l=i.attr("data-alt")||r.text;if(l){var c,h,u,d='<div class="rmalttext-wrapper">\t\t\t\t\t\t\t\t\t\t<div class="rmalttext-content">'+l+'</div>\t\t\t\t\t\t\t\t\t\t<div class="rmalttext-corner-wrapper"><div class="rmalttext-corner"></div></div>\t\t\t\t\t\t\t\t\t</div>';return r.manual||i.on("mouseenter",f).on("mouseleave",p).on("click",b).on("rmalt-hide",b),i.on("DOMNodeRemovedFromDocument",b),{hide:b,show:g,update:_,destroy:function(){b(),i.removeClass("rmalttext"),i.off("mouseenter",f).off("mouseleave",p).off("click",b).off("rmalt-hide",b).off("DOMNodeRemovedFromDocument",b)},getElement:function(){return c},setTargetZoom:function(t){r.targetZoom=t}}}}function f(e){var i=t(e.currentTarget),n=800,o=!1;window.rmalt_current_shown&&window.rmalt_current_shown!==i&&(window.rmalt_current_shown.trigger("rmalt-hide"),n=0,o=!0),h=setTimeout(g.bind(i[0],o),n)}function p(){clearTimeout(h),clearInterval(u),h=setTimeout((function(){window.rmalt_current_shown=null,c&&c.fadeOut(150,(function(){c.remove(),c=void 0}))}),400)}function g(e){var n=e?0:200;if(clearTimeout(h),clearInterval(u),!(i.hasClass("rmalttext-disable")||i.hasClass("active")||i.hasClass("disabled")||i.hasClass("no-hover"))){if(!c){(c=t(d).appendTo(a)).find(".rmalttext-content").text(i.attr("data-alt"));var o=i.attr("data-alt-style")||r.cssClass;o&&c.addClass(o),c.css({display:"none"}),_()}c.fadeIn(n),window.rmalt_current_shown=i,u=setInterval(function(){i instanceof t&&function(e){e instanceof t&&(e=e.get(0));var i=e.getBoundingClientRect();return i.width>0&&i.height>0}(i)||b()}.bind(i),200)}}function m(e){var i=t(window).width(),n=t(window).height();return e.top>=0&&e.bottom<=n&&e.left>=0&&e.right<=i}function v(t,e){var i,n;return"top"==(t=t||r.direction)&&(i=e.targetX+(e.targetW-e.tipW)/2,n=e.targetY-e.offset-e.tipH),"bottom"==t&&(i=e.targetX+(e.targetW-e.tipW)/2,n=e.targetY+e.targetH+e.offset),"left"==t&&(i=e.targetX-e.offset-e.tipW,n=e.targetY+(e.targetH-e.tipH)/2),"right"==t&&(i=e.targetX+e.targetW+e.offset,n=e.targetY+(e.targetH-e.tipH)/2),{left:i=Math.floor(i),top:n=Math.floor(n),right:i+e.tipW,bottom:n+e.tipH,relativeLeft:i-e.containerX,relativeTop:n-e.containerY}}function _(){if(c){var t=a[0].getBoundingClientRect(),e=i[0].getBoundingClientRect(),o=i.attr("data-alt-pos")||r.direction,l={offset:i.attr("data-alt-offset")?i.attr("data-alt-offset")-0:r.offset,tipW:c.outerWidth(!1),tipH:c.outerHeight(!1),targetX:e.left,targetY:e.top,containerX:t.left,containerY:t.top,targetW:e.width*r.targetZoom,targetH:e.height*r.targetZoom},h=v(o,l);if(r.keepInBounds&&!m(h)){var u=s[o],d=[u].concat(n.a.without(n.a.keys(s),o,u));o=n.a.find(d,(function(t){return m(v(t,l))})),h=v(o=o||"top",l)}c.addClass("rmalttext-"+o),c.css({left:h.relativeLeft,top:h.relativeTop})}else this.destroy()}function b(){clearTimeout(h),clearInterval(u),window.rmalt_current_shown=null,c&&c.remove(),c=void 0}};return this.each((function(){var e=r(t(this));i.push(e)})),{show:function(){i.forEach((function(t){t&&t.show()}))},hide:function(){i.forEach((function(t){t&&t.hide()}))},destroy:function(){i.forEach((function(t){t&&t.destroy()}))},update:function(){i.forEach((function(t){t&&t.update()}))},getElement:function(){return i&&i[0]&&i[0].getElement()},setTargetZoom:function(t){return i.forEach((function(e){return e&&e.setTargetZoom(t)}))}}}}(jQuery)},Hx4W:function(t,e){!function(t){t.fn.drag=function(e,i,n){var o="string"==typeof e?e:"",s=t.isFunction(e)?e:t.isFunction(i)?i:null;return 0!==o.indexOf("drag")&&(o="drag"+o),n=(e==s?i:n)||{},s?this.bind(o,n,s):this.trigger(o)};var e=t.event,i=e.special,n=i.drag={defaults:{which:1,distance:0,not:":input:not([readonly])",handle:null,relative:!1,drop:!0,click:!1,delay:0},datakey:"dragdata",noBubble:!0,add:function(e){var i=t.data(this,n.datakey),o=e.data||{};i.related+=1,t.each(n.defaults,(function(t,e){void 0!==o[t]&&(i[t]=o[t])}))},remove:function(){t.data(this,n.datakey).related-=1},setup:function(){if(!t.data(this,n.datakey)){var i=t.extend({related:0},n.defaults);t.data(this,n.datakey,i),e.add(this,"touchstart mousedown",n.init,i),this.attachEvent&&this.attachEvent("ondragstart",n.dontstart)}},teardown:function(){(t.data(this,n.datakey)||{}).related||(t.removeData(this,n.datakey),e.remove(this,"touchstart mousedown",n.init),n.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",n.dontstart))},init:function(o){if(!n.touched){var s,r=o.data;if(!(0!=o.which&&r.which>0&&o.which!=r.which)&&!t(o.target).is(r.not)&&!t(o.currentTarget).is(r.not)&&(!r.handle||t(o.target).closest(r.handle,o.currentTarget).length)&&(n.touched="touchstart"==o.type?this:null,r.propagates=1,r.mousedown=this,r.interactions=[n.interaction(this,r)],r.target=o.target,r.pageX=o.pageX,r.pageY=o.pageY,r.dragging=null,r.starttime=+new Date,s=n.hijack(o,"draginit",r),r.propagates))return(s=n.flatten(s))&&s.length&&(r.interactions=[],t.each(s,(function(){r.interactions.push(n.interaction(this,r))}))),r.propagates=r.interactions.length,!1!==r.drop&&i.drop&&i.drop.handler(o,r),n.textselect(!1),n.touched?e.add(n.touched,"touchmove touchend",n.handler,r):e.add(document,"mousemove mouseup",n.handler,r),!n.touched||r.live?(t(":focus").blur(),!1):void 0}},interaction:function(e,i){var o=t(e)[i.relative?"position":"offset"]()||{top:0,left:0};return{drag:e,callback:new n.callback,droppable:[],offset:o}},handler:function(o){var s=o.data;switch(o.type){case!s.dragging&&"touchmove":o.preventDefault();case!s.dragging&&"mousemove":if(Math.pow(o.pageX-s.pageX,2)+Math.pow(o.pageY-s.pageY,2)<Math.pow(s.distance,2))break;if(+new Date-s.starttime<s.delay)break;o.target=s.target,n.hijack(o,"dragstart",s),s.propagates&&(s.dragging=!0);case"touchmove":o.preventDefault();case"mousemove":if(s.dragging){if(n.hijack(o,"drag",s),s.propagates){!1!==s.drop&&i.drop&&i.drop.handler(o,s);break}o.type="mouseup"}case"touchend":case"mouseup":default:n.touched?e.remove(n.touched,"touchmove touchend",n.handler):e.remove(document,"mousemove mouseup",n.handler),s.dragging&&(!1!==s.drop&&i.drop&&i.drop.handler(o,s),n.hijack(o,"dragend",s)),n.textselect(!0),!1===s.click&&s.dragging&&(t.data(s.mousedown,"suppress.click",(new Date).getTime()+5),window.suppressClick=+new Date+100),s.dragging=n.touched=!1}},hijack:function(i,o,s,r,a){if(s){var l,c,h,u={event:i.originalEvent,type:i.type},d=o.indexOf("drop")?"drag":"drop",f=r||0,p=isNaN(r)?s.interactions.length:r;i.type=o,i.originalEvent=null,s.results=[];do{if(c=s.interactions[f]){if("dragend"!==o&&c.cancelled)continue;h=n.properties(i,s,c),c.results=[],t(a||c[d]||s.droppable).each((function(r,a){if(h.target=a,i.isPropagationStopped=function(){return!1},!1===(l=a?e.dispatch.call(a,i,h):null)?("drag"==d&&(c.cancelled=!0,s.propagates-=1),"drop"==o&&(c[d][r]=null)):"dropinit"==o&&c.droppable.push(n.element(l)||a),"dragstart"==o&&(c.proxy=t(n.element(l)||c.drag)[0]),c.results.push(l),delete i.result,"dropinit"!==o)return l})),s.results[f]=n.flatten(c.results),"dropinit"==o&&(c.droppable=n.flatten(c.droppable)),"dragstart"!=o||c.cancelled||h.update()}}while(++f<p);return i.type=u.type,i.originalEvent=u.event,n.flatten(s.results)}},properties:function(t,e,i){var o=i.callback;return o.drag=i.drag,o.proxy=i.proxy||i.drag,o.startX=e.pageX,o.startY=e.pageY,o.deltaX=t.pageX-e.pageX,o.deltaY=t.pageY-e.pageY,o.originalX=i.offset.left,o.originalY=i.offset.top,o.offsetX=o.originalX+o.deltaX,o.offsetY=o.originalY+o.deltaY,o.drop=n.flatten((i.drop||[]).slice()),o.available=n.flatten((i.droppable||[]).slice()),o},element:function(t){if(t&&(t.jquery||1==t.nodeType))return t},flatten:function(e){return t.map(e,(function(e){return e&&e.jquery?t.makeArray(e):e&&e.length?n.flatten(e):e}))},textselect:function(e){t(document)[e?"unbind":"bind"]("selectstart",n.dontstart).css("MozUserSelect",e?"":"none"),document.unselectable=e?"off":"on"},dontstart:function(){return!1},callback:function(){},toggle:function(){var i=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=t.event.special.drag;if(i)try{n.setup.apply(this)}catch(t){console.error("Error while enabling drag event",t)}else try{e.remove(this,"touchstart mousedown",n.init),t.removeData(this,n.datakey),n.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",n.dontstart)}catch(t){console.error("Error while disabling drag event",t)}}};n.callback.prototype={update:function(){i.drop&&this.available.length&&t.each(this.available,(function(t){i.drop.locate(this,t)}))}};var o=e.dispatch;e.dispatch=function(e){if(!(t.data(this,"suppress."+e.type)-(new Date).getTime()>0))return o.apply(this,arguments);t.removeData(this,"suppress."+e.type)};var s=e.fixHooks.touchstart=e.fixHooks.touchmove=e.fixHooks.touchend=e.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(e,i){if(i){var n=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0]||null;n&&t.each(s.props,(function(t,i){e[i]=n[i]}))}return e}};i.draginit=i.dragstart=i.dragend=n}(jQuery)},IIhP:function(t,e,i){"use strict";i.r(e);var n=i("rFsW");!function(t,e){t.fn.rmOpacityDrag=function(e){return this.each((function(){var i=t(this),o=i.find(".opacity-handle"),s=e&&e.onenddrag?e.onenddrag:t.noop,r=e.width||176,a=(e.handleWidth||28)/2,l=e.gap||0,c=function(n){var s=n.pageX-i.offset().left,c=a+(l?l+1:0),h=r-a-(l?l-1:0);(s=Math.min(Math.max(s,0),r-1))>h&&(s=h),s<c&&(s=c);var u,d,f=((s-c)/(h-c)).toFixed(2);o.css({left:s}).addClass("opacity-dragging").find(".opacity-val .val").text(Math.round(100*f)),u=f-0,d=e&&e.onchange?e.onchange:t.noop,i.data("opacity",u),d(u)},h=function(t){var e=a+(l?l+1:0),i=(r-a-(l?l-1:0)-e)*t+e;o.css({left:i}).find(".opacity-val .val").text(Math.round(100*t))};i.data("rmopacitydrag-change",(function(t){var e,o,s,r,a;t&&(t.setcolor&&(e=t.setcolor[0],o=t.setcolor[1],s=t.setcolor[2],r="rgba("+e+", "+o+", "+s+", 1)",a="rgba("+e+", "+o+", "+s+", 0)",i.css("background","-webkit-linear-gradient(left, "+r+" 0%, "+a+" 100%)"),i.css("background","-linear-gradient(to right, "+r+" 0%, "+a+" 100%)")),n.a.has(t,"opacity")&&h(t.opacity))})),i.RMDrag({start:c,move:c,end:function(t){o.removeClass("opacity-dragging"),s()},silent:!0,preventDefault:!0}),h(e.opacity)})),this}}(jQuery)},IQCz:function(t,e,i){var n,o,s;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}o=[i("EVdn")],void 0===(s="function"==typeof(n=function(t){function e(e,n){var o,s,r,a=e.nodeName.toLowerCase();return"area"===a?(s=(o=e.parentNode).name,!(!e.href||!s||"map"!==o.nodeName.toLowerCase())&&!!(r=t("img[usemap='#"+s+"']")[0])&&i(r)):(/^(input|select|textarea|button|object)$/.test(a)?!e.disabled:"a"===a&&e.href||n)&&i(e)}function i(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter((function(){return"hidden"===t.css(this,"visibility")})).length}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var i=this.css("position"),n="absolute"===i,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&s.length?s:t(this[0].ownerDocument||document)},uniqueId:function(){var t=0;return function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++t)}))}}(),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])},focusable:function(i){return e(i,!isNaN(t.attr(i,"tabindex")))},tabbable:function(i){var n=t.attr(i,"tabindex"),o=isNaN(n);return(o||n>=0)&&e(i,!o)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],(function(e,i){function n(e,i,n,s){return t.each(o,(function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),s&&(i-=parseFloat(t.css(e,"margin"+this))||0)})),i}var o="Width"===i?["Left","Right"]:["Top","Bottom"],s=i.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?r["inner"+i].call(this):this.each((function(){t(this).css(s,n(this,e)+"px")}))},t.fn["outer"+i]=function(e,o){return"number"!=typeof e?r["outer"+i].call(this,e):this.each((function(){t(this).css(s,n(this,e,!0,o)+"px")}))}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each((function(){var e=this;setTimeout((function(){t(e).focus(),n&&n.call(e)}),i)})):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",(function(t){t.preventDefault()}))}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,n,o=t(this[0]);o.length&&o[0]!==document;){if(("absolute"===(i=o.css("position"))||"relative"===i||"fixed"===i)&&(n=parseInt(o.css("zIndex"),10),!isNaN(n)&&0!==n))return n;o=o.parent()}return 0}}),t.ui.plugin={add:function(e,i,n){var o,s=t.ui[e].prototype;for(o in n)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([i,n[o]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;s.length>o;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}};var n=0,o=Array.prototype.slice;t.cleanData=function(e){return function(i){var n,o,s;for(s=0;null!=(o=i[s]);s++)try{(n=t._data(o,"events"))&&n.remove&&t(o).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var o,s,r,a,l={},c=e.split(".")[0];return e=e.split(".")[1],o=c+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][o.toLowerCase()]=function(e){return!!t.data(e,o)},t[c]=t[c]||{},s=t[c][e],r=t[c][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new r(t,e)},t.extend(r,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,(function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},o=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,s=this._superApply;return this._super=t,this._superApply=o,e=n.apply(this,arguments),this._super=i,this._superApply=s,e}}()):void(l[e]=n)})),r.prototype=t.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||e},l,{constructor:r,namespace:c,widgetName:e,widgetFullName:o}),s?(t.each(s._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)})),delete s._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var i,n,s=o.call(arguments,1),r=0,a=s.length;a>r;r++)for(i in s[r])n=s[r][i],s[r].hasOwnProperty(i)&&void 0!==n&&(e[i]=t.isPlainObject(n)?t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(s){var r="string"==typeof s,a=o.call(arguments,1),l=this;return r?this.each((function(){var i,o=t.data(this,n);return"instance"===s?(l=o,!1):o?t.isFunction(o[s])&&"_"!==s.charAt(0)?(i=o[s].apply(o,a))!==o&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")})):(a.length&&(s=t.widget.extend.apply(null,[s].concat(a))),this.each((function(){var e=t.data(this,n);e?(e.option(s||{}),e._init&&e._init()):t.data(this,n,new i(s,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,o,s,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},n=e.split("."),e=n.shift(),n.length){for(o=r[e]=t.widget.extend({},this.options[e]),s=0;n.length-1>s;s++)o[n[s]]=o[n[s]]||{},o=o[n[s]];if(e=n.pop(),1===arguments.length)return void 0===o[e]?null:o[e];o[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,i,n){var o,s=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=o=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),t.each(n,(function(n,r){function a(){return e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?s[r]:r).apply(s,arguments):void 0}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+s.eventNamespace,h=l[2];h?o.delegate(h,c,a):i.bind(c,a)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(i).undelegate(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var o,s,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(o in s)o in i||(i[o]=s[o]);return this.element.trigger(i,n),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,o,s){"string"==typeof o&&(o={effect:o});var r,a=o?!0===o||"number"==typeof o?i:o.effect||i:e;"number"==typeof(o=o||{})&&(o={duration:o}),r=!t.isEmptyObject(o),o.complete=s,o.delay&&n.delay(o.delay),r&&t.effects&&t.effects.effect[a]?n[e](o):a!==e&&n[a]?n[a](o.duration,o.easing,s):n.queue((function(i){t(this)[e](),s&&s.call(n[0]),i()}))}})),t.widget;var s=!1;t(document).mouseup((function(){s=!1})),t.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).bind("click."+this.widgetName,(function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!s){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,o=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!o&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),s=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),s=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function e(t,e,i){return[parseFloat(t[0])*(f.test(t[0])?e/100:1),parseFloat(t[1])*(f.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var o,s,r=Math.max,a=Math.abs,l=Math.round,c=/left|center|right/,h=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,f=/%$/,p=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==o)return o;var e,i,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=n.children()[0];return t("body").append(n),e=s.offsetWidth,n.css("overflow","scroll"),e===(i=s.offsetWidth)&&(i=n[0].clientWidth),n.remove(),o=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:o,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n||o?i.width():i.outerWidth(),height:n||o?i.height():i.outerHeight()}}},t.fn.position=function(o){if(!o||!o.of)return p.apply(this,arguments);o=t.extend({},o);var f,g,m,v,_,b,w=t(o.of),y=t.position.getWithinInfo(o.within),x=t.position.getScrollInfo(y),C=(o.collision||"flip").split(" "),k={};return b=n(w),w[0].preventDefault&&(o.at="left top"),g=b.width,m=b.height,v=b.offset,_=t.extend({},v),t.each(["my","at"],(function(){var t,e,i=(o[this]||"").split(" ");1===i.length&&(i=c.test(i[0])?i.concat(["center"]):h.test(i[0])?["center"].concat(i):["center","center"]),i[0]=c.test(i[0])?i[0]:"center",i[1]=h.test(i[1])?i[1]:"center",t=u.exec(i[0]),e=u.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],o[this]=[d.exec(i[0])[0],d.exec(i[1])[0]]})),1===C.length&&(C[1]=C[0]),"right"===o.at[0]?_.left+=g:"center"===o.at[0]&&(_.left+=g/2),"bottom"===o.at[1]?_.top+=m:"center"===o.at[1]&&(_.top+=m/2),f=e(k.at,g,m),_.left+=f[0],_.top+=f[1],this.each((function(){var n,c,h=t(this),u=h.outerWidth(),d=h.outerHeight(),p=i(this,"marginLeft"),b=i(this,"marginTop"),T=u+p+i(this,"marginRight")+x.width,S=d+b+i(this,"marginBottom")+x.height,M=t.extend({},_),I=e(k.my,h.outerWidth(),h.outerHeight());"right"===o.my[0]?M.left-=u:"center"===o.my[0]&&(M.left-=u/2),"bottom"===o.my[1]?M.top-=d:"center"===o.my[1]&&(M.top-=d/2),M.left+=I[0],M.top+=I[1],s||(M.left=l(M.left),M.top=l(M.top)),n={marginLeft:p,marginTop:b},t.each(["left","top"],(function(e,i){t.ui.position[C[e]]&&t.ui.position[C[e]][i](M,{targetWidth:g,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:n,collisionWidth:T,collisionHeight:S,offset:[f[0]+I[0],f[1]+I[1]],my:o.my,at:o.at,within:y,elem:h})})),o.using&&(c=function(t){var e=v.left-M.left,i=e+g-u,n=v.top-M.top,s=n+m-d,l={target:{element:w,left:v.left,top:v.top,width:g,height:m},element:{element:h,left:M.left,top:M.top,width:u,height:d},horizontal:0>i?"left":e>0?"right":"center",vertical:0>s?"top":n>0?"bottom":"middle"};u>g&&g>a(e+i)&&(l.horizontal="center"),d>m&&m>a(n+s)&&(l.vertical="middle"),l.important=r(a(e),a(i))>r(a(n),a(s))?"horizontal":"vertical",o.using.call(this,t,l)}),h.offset(t.extend(M,{using:c}))}))},t.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,c=a+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&0>=c?(i=t.left+l+e.collisionWidth-s-o,t.left+=l-i):t.left=c>0&&0>=l?o:l>c?o+s-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=r(t.left-a,t.left)},top:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,c=a+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&0>=c?(i=t.top+l+e.collisionHeight-s-o,t.top+=l-i):t.top=c>0&&0>=l?o:l>c?o+s-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=r(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,o=e.within,s=o.offset.left+o.scrollLeft,r=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,u=c+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];0>h?(0>(i=t.left+d+f+p+e.collisionWidth-r-s)||a(h)>i)&&(t.left+=d+f+p):u>0&&((n=t.left-e.collisionPosition.marginLeft+d+f+p-l)>0||u>a(n))&&(t.left+=d+f+p)},top:function(t,e){var i,n,o=e.within,s=o.offset.top+o.scrollTop,r=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-l,u=c+e.collisionHeight-r-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];0>h?(0>(n=t.top+d+f+p+e.collisionHeight-r-s)||a(h)>n)&&(t.top+=d+f+p):u>0&&((i=t.top-e.collisionPosition.marginTop+d+f+p-l)>0||u>a(i))&&(t.top+=d+f+p)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,o,r,a=document.getElementsByTagName("body")[0],l=document.createElement("div");for(r in e=document.createElement(a?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)e.style[r]=n[r];e.appendChild(l),(i=a||document.documentElement).insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",o=t(l).offset().left,s=o>10&&11>o,e.innerHTML="",i.removeChild(e)}()}(),t.ui.position,t.widget("ui.sortable",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),t.each(this.items,(function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")}))},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,o=!1,s=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){return t.data(this,s.widgetName+"-item")===s?(n=t(this),!1):void 0})),t.data(e.target,s.widgetName+"-item")===s&&(n=t(e.target)),!n||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(o=!0)})),!o)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var o,s,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(s)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,o,s,r=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-this.document.scrollTop()<r.scrollSensitivity?a=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<r.scrollSensitivity&&(a=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),e.pageX-this.document.scrollLeft()<r.scrollSensitivity?a=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(a=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==a&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(o=(n=this.items[i]).item[0],(s=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[1===s?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],o))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,o=this.placeholder.offset(),s=this.options.axis,r={};s&&"x"!==s||(r.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(r.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,s=t.left,r=s+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||n+c>a&&l>n+c,d="y"===this.options.axis||e+h>s&&r>e+h,f=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?f:e+this.helperProportions.width/2>s&&r>i-this.helperProportions.width/2&&n+this.helperProportions.height/2>a&&l>o-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=e&&i,o=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return!!n&&(this.floating?s&&"right"===s||"down"===o?2:1:o&&("down"===o?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&i||"left"===o&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){a.push(this)}var n,o,s,r,a=[],l=[],c=this._connectWith();if(c&&e)for(n=c.length-1;n>=0;n--)for(o=(s=t(c[n],this.document[0])).length-1;o>=0;o--)(r=t.data(s[o],this.widgetFullName))&&r!==this&&!r.options.disabled&&l.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,o,s,r,a,l,c,h=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=(o=t(d[i],this.document[0])).length-1;n>=0;n--)(s=t.data(o[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&(u.push([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=u.length-1;i>=0;i--)for(r=u[i][1],n=0,c=(a=u[i][0]).length;c>n;n++)(l=t(a[n])).data(this.widgetName+"-item",r),h.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,o,s;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=o.outerWidth(),n.height=o.outerHeight()),s=o.offset(),n.left=s.left,n.top=s.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(o)):"tr"===n?e._createTrPlaceholder(e.currentItem,o):"img"===n&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,o){(!i||n.forcePlaceholderSize)&&(o.height()||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,o,s,r,a,l,c,h,u,d=null,f=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],f=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(o=1e4,s=null,r=(h=d.floating||this._isFloating(this.currentItem))?"left":"top",a=h?"width":"height",u=h?"clientX":"clientY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[f].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,e[u]-l>this.items[n][a]/2&&(c=!0),o>Math.abs(e[u]-l)&&(o=Math.abs(e[u]-l),s=this.items[n],this.direction=c?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[f].element,!0),this._trigger("change",e,this._uiHash()),this.containers[f]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),("document"===o.containment||"window"===o.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===o.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===o.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],i=t(o.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())*n}},_generatePosition:function(e){var i,n,o=this.options,s=e.pageX,r=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/o.grid[1])*o.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-o.grid[1]:i+o.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/o.grid[0])*o.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-o.grid[0]:n+o.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay((function(){o===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)("auto"===this._storedCSS[n]||"static"===this._storedCSS[n])&&(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&o.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||o.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(o.push((function(t){this._trigger("remove",t,this._uiHash())})),o.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),o.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||o.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(o.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;o.length>n;n++)o[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.slider",t.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,o=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s=[];for(i=n.values&&n.values.length||1,o.length>i&&(o.slice(i).remove(),o=o.slice(0,i)),e=o.length;i>e;e++)s.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>");this.handles=o.add(t(s.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e)}))},_createRange:function(){var e=this.options,i="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,o,s,r,a,l,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var i=Math.abs(n-c.values(e));(o>i||o===i&&(e===c._lastChangedValue||c.values(e)===h.min))&&(o=i,s=t(this),r=e)})),!1!==this._start(e,r)&&(this._mouseSliding=!0,this._handleIndex=r,s.addClass("ui-state-active").focus(),a=s.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-a.left-s.width()/2,top:e.pageY-a.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,o,s;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/e)>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),o=this._valueMax()-this._valueMin(),s=this._valueMin()+n*o,this._trimAlignValue(s)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,o,s;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>n||1===e&&n>i)&&(i=n),i!==this.values(e)&&((o=this.values())[e]=i,s=this._trigger("slide",t,{handle:this.handles[e],value:i,values:o}),n=this.values(e?0:1),!1!==s&&this.values(e,i))):i!==this.value()&&!1!==(s=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i)},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,o,s;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,o=arguments[0],s=0;n.length>s;s+=1)n[s]=this._trimAlignValue(o[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,i){var n,o=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(o=this.options.values.length),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!i),this._super(e,i),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;o>n;n+=1)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;t=Math.floor(+(t-e).toFixed(this._precision())/i)*i+e,this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var e,i,n,o,s,r=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,h={};this.options.values&&this.options.values.length?this.handles.each((function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](h,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i})):(n=this.value(),o=this._valueMin(),s=this._valueMax(),i=s!==o?(n-o)/(s-o)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](h,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:a.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(e){var i,n,o,s=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),!1===this._start(e,s)))return}switch(o=this.options.step,i=n=this.options.values&&this.options.values.length?this.values(s):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-o)}this._slide(e,s,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}});var a="ui-effects-",l=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var n=h[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:t>n.max?n.max:t)}function n(i){var n=l(),o=n._rgba=[];return i=i.toLowerCase(),f(a,(function(t,s){var r,a=s.re.exec(i),l=a&&s.parse(a),h=s.space||"rgba";return l?(r=n[h](l),n[c[h].cache]=r[c[h].cache],o=n._rgba=r._rgba,!1):e})),o.length?("0,0,0,0"===o.join()&&t.extend(o,s.transparent),n):s[i]}function o(t,e,i){return 1>6*(i=(i+1)%1)?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var s,r=/^([\-+])=\s*(\d+\.?\d*)/,a=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,i,n,o){return new t.Color.fn.parse(e,i,n,o)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=l.support={},d=t("<p>")[0],f=t.each;d.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=d.style.backgroundColor.indexOf("rgba")>-1,f(c,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),l.fn=t.extend(l.prototype,{parse:function(o,r,a,h){if(o===e)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=t(o).css(r),r=e);var u=this,d=t.type(o),p=this._rgba=[];return r!==e&&(o=[o,r,a,h],d="array"),"string"===d?this.parse(n(o)||s._default):"array"===d?(f(c.rgba.props,(function(t,e){p[e.idx]=i(o[e.idx],e)})),this):"object"===d?(f(c,o instanceof l?function(t,e){o[e.cache]&&(u[e.cache]=o[e.cache].slice())}:function(e,n){var s=n.cache;f(n.props,(function(t,e){if(!u[s]&&n.to){if("alpha"===t||null==o[t])return;u[s]=n.to(u._rgba)}u[s][e.idx]=i(o[t],e,!0)})),u[s]&&0>t.inArray(null,u[s].slice(0,3))&&(u[s][3]=1,n.from&&(u._rgba=n.from(u[s])))}),this):e},is:function(t){var i=l(t),n=!0,o=this;return f(c,(function(t,s){var r,a=i[s.cache];return a&&(r=o[s.cache]||s.to&&s.to(o._rgba)||[],f(s.props,(function(t,i){return null!=a[i.idx]?n=a[i.idx]===r[i.idx]:e}))),n})),n},_space:function(){var t=[],e=this;return f(c,(function(i,n){e[n.cache]&&t.push(i)})),t.pop()},transition:function(t,e){var n=l(t),o=n._space(),s=c[o],r=0===this.alpha()?l("transparent"):this,a=r[s.cache]||s.to(r._rgba),u=a.slice();return n=n[s.cache],f(s.props,(function(t,o){var s=o.idx,r=a[s],l=n[s],c=h[o.type]||{};null!==l&&(null===r?u[s]=l:(c.mod&&(l-r>c.mod/2?r+=c.mod:r-l>c.mod/2&&(r-=c.mod)),u[s]=i((l-r)*e+r,o)))})),this[o](u)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=l(e)._rgba;return l(t.map(i,(function(t,e){return(1-n)*o[e]+n*t})))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),(function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t}));return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,o=t[1]/255,s=t[2]/255,r=t[3],a=Math.max(n,o,s),l=Math.min(n,o,s),c=a-l,h=a+l,u=.5*h;return e=l===a?0:n===a?60*(o-s)/c+360:o===a?60*(s-n)/c+120:60*(n-o)/c+240,i=0===c?0:.5>=u?c/h:c/(2-h),[Math.round(e)%360,i,u,null==r?1:r]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],s=t[3],r=.5>=n?n*(1+i):n+i-n*i,a=2*n-r;return[Math.round(255*o(a,r,e+1/3)),Math.round(255*o(a,r,e)),Math.round(255*o(a,r,e-1/3)),s]},f(c,(function(n,o){var s=o.props,a=o.cache,c=o.to,h=o.from;l.fn[n]=function(n){if(c&&!this[a]&&(this[a]=c(this._rgba)),n===e)return this[a].slice();var o,r=t.type(n),u="array"===r||"object"===r?n:arguments,d=this[a].slice();return f(s,(function(t,e){var n=u["object"===r?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)})),h?((o=l(h(d)))[a]=d,o):l(d)},f(s,(function(e,i){l.fn[e]||(l.fn[e]=function(o){var s,a=t.type(o),l="alpha"===e?this._hsla?"hsla":"rgba":n,c=this[l](),h=c[i.idx];return"undefined"===a?h:("function"===a&&(o=o.call(this,h),a=t.type(o)),null==o&&i.empty?this:("string"===a&&(s=r.exec(o))&&(o=h+parseFloat(s[2])*("+"===s[1]?1:-1)),c[i.idx]=o,this[l](c)))})}))})),l.hook=function(e){var i=e.split(" ");f(i,(function(e,i){t.cssHooks[i]={set:function(e,o){var s,r,a="";if("transparent"!==o&&("string"!==t.type(o)||(s=n(o)))){if(o=l(s||o),!u.rgba&&1!==o._rgba[3]){for(r="backgroundColor"===i?e.parentNode:e;(""===a||"transparent"===a)&&r&&r.style;)try{a=t.css(r,"backgroundColor"),r=r.parentNode}catch(t){}o=o.blend(a&&"transparent"!==a?a:"_default")}o=o.toRgbaString()}try{e.style[i]=o}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}}))},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],(function(i,n){e["border"+n+"Color"]=t})),e}},s=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(l),function(){function e(e){var i,n,o=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(o&&o.length&&o[0]&&o[o[0]])for(n=o.length;n--;)"string"==typeof o[i=o[n]]&&(s[t.camelCase(i)]=o[i]);else for(i in o)"string"==typeof o[i]&&(s[i]=o[i]);return s}function i(e,i){var n,s,r={};for(n in i)s=i[n],e[n]!==s&&(o[n]||(t.fx.step[n]||!isNaN(parseFloat(s)))&&(r[n]=s));return r}var n=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(l.style(t.elem,i,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(o,s,r,a){var l=t.speed(s,r,a);return this.queue((function(){var s,r=t(this),a=r.attr("class")||"",c=l.children?r.find("*").addBack():r;c=c.map((function(){return{el:t(this),start:e(this)}})),(s=function(){t.each(n,(function(t,e){o[e]&&r[e+"Class"](o[e])}))})(),c=c.map((function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this})),r.attr("class",a),c=c.map((function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()})),t.when.apply(t,c.get()).done((function(){s(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),l.complete.call(r[0])}))}))},t.fn.extend({addClass:function(e){return function(i,n,o,s){return n?t.effects.animateClass.call(this,{add:i},n,o,s):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,o,s){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,o,s):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,n,o,s,r){return"boolean"==typeof n||void 0===n?o?t.effects.animateClass.call(this,n?{add:i}:{remove:i},o,s,r):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},n,o,s)}}(t.fn.toggleClass),switchClass:function(e,i,n,o,s){return t.effects.animateClass.call(this,{add:i,remove:e},n,o,s)}})}(),function(){function e(e,i,n,o){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(o=n,n=i,i={}),t.isFunction(n)&&(o=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=o||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"===r(e)&&!e.effect}t.extend(t.effects,{version:"1.11.4",save:function(t,e){for(var i=0;e.length>i;i++)null!==e[i]&&t.data(a+e[i],t[0].style[e[i]])},restore:function(t,e){var i,n;for(n=0;e.length>n;n++)null!==e[n]&&(void 0===(i=t.data(a+e[n]))&&(i=""),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:e.width(),height:e.height()},s=document.activeElement;try{s.id}catch(t){s=document.body}return e.wrap(n),(e[0]===s||t.contains(e[0],s))&&t(s).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(o),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,o){return o=o||{},t.each(i,(function(t,i){var s=e.cssUnit(i);s[0]>0&&(o[i]=s[0]*n+s[1])})),o}}),t.fn.extend({effect:function(){function i(e){function i(){t.isFunction(s)&&s.call(o[0]),t.isFunction(e)&&e()}var o=t(this),s=n.complete,a=n.mode;(o.is(":hidden")?"hide"===a:"show"===a)?(o[a](),i()):r.call(o[0],n,i)}var n=e.apply(this,arguments),o=n.mode,s=n.queue,r=t.effects.effect[n.effect];return t.fx.off||!r?o?this[o](n.duration,n.complete):this.each((function(){n.complete&&n.complete.call(this)})):!1===s?this.each(i):this.queue(s||"fx",i)},show:function(t){return function(n){if(i(n))return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="show",this.effect.call(this,o)}}(t.fn.show),hide:function(t){return function(n){if(i(n))return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="hide",this.effect.call(this,o)}}(t.fn.hide),toggle:function(t){return function(n){if(i(n)||"boolean"==typeof n)return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="toggle",this.effect.call(this,o)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],(function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])})),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,i){e[i]=function(e){return Math.pow(e,t+2)}})),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,(function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}}))}(),t.effects,t.effects.effect.blind=function(e,i){var n,o,s,r=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(r,e.mode||"hide"),c=e.direction||"up",h=/up|down|vertical/.test(c),u=h?"height":"width",d=h?"top":"left",f=/up|left|vertical|horizontal/.test(c),p={},g="show"===l;r.parent().is(".ui-effects-wrapper")?t.effects.save(r.parent(),a):t.effects.save(r,a),r.show(),o=(n=t.effects.createWrapper(r).css({overflow:"hidden"}))[u](),s=parseFloat(n.css(d))||0,p[u]=g?o:0,f||(r.css(h?"bottom":"right",0).css(h?"top":"left","auto").css({position:"absolute"}),p[d]=g?s:o+s),g&&(n.css(u,0),f||n.css(d,s+o)),n.animate(p,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===l&&r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),i()}})},t.effects.effect.bounce=function(e,i){var n,o,s,r=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(r,e.mode||"effect"),c="hide"===l,h="show"===l,u=e.direction||"up",d=e.distance,f=e.times||5,p=2*f+(h||c?1:0),g=e.duration/p,m=e.easing,v="up"===u||"down"===u?"top":"left",_="up"===u||"left"===u,b=r.queue(),w=b.length;for((h||c)&&a.push("opacity"),t.effects.save(r,a),r.show(),t.effects.createWrapper(r),d||(d=r["top"===v?"outerHeight":"outerWidth"]()/3),h&&((s={opacity:1})[v]=0,r.css("opacity",0).css(v,_?2*-d:2*d).animate(s,g,m)),c&&(d/=Math.pow(2,f-1)),(s={})[v]=0,n=0;f>n;n++)(o={})[v]=(_?"-=":"+=")+d,r.animate(o,g,m).animate(s,g,m),d=c?2*d:d/2;c&&((o={opacity:0})[v]=(_?"-=":"+=")+d,r.animate(o,g,m)),r.queue((function(){c&&r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),i()})),w>1&&b.splice.apply(b,[1,0].concat(b.splice(w,p+1))),r.dequeue()},t.effects.effect.clip=function(e,i){var n,o,s,r=t(this),a=["position","top","bottom","left","right","height","width"],l="show"===t.effects.setMode(r,e.mode||"hide"),c="vertical"===(e.direction||"vertical"),h=c?"height":"width",u=c?"top":"left",d={};t.effects.save(r,a),r.show(),n=t.effects.createWrapper(r).css({overflow:"hidden"}),s=(o="IMG"===r[0].tagName?n:r)[h](),l&&(o.css(h,0),o.css(u,s/2)),d[h]=l?s:0,d[u]=l?0:s/2,o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),i()}})},t.effects.effect.drop=function(e,i){var n,o=t(this),s=["position","top","bottom","left","right","opacity","height","width"],r=t.effects.setMode(o,e.mode||"hide"),a="show"===r,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l?"pos":"neg",u={opacity:a?1:0};t.effects.save(o,s),o.show(),t.effects.createWrapper(o),n=e.distance||o["top"===c?"outerHeight":"outerWidth"](!0)/2,a&&o.css("opacity",0).css(c,"pos"===h?-n:n),u[c]=(a?"pos"===h?"+=":"-=":"pos"===h?"-=":"+=")+n,o.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),i()}})},t.effects.effect.explode=function(e,i){function n(){v.push(this),v.length===h*u&&(d.css({visibility:"visible"}),t(v).remove(),f||d.hide(),i())}var o,s,r,a,l,c,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=h,d=t(this),f="show"===t.effects.setMode(d,e.mode||"hide"),p=d.show().css("visibility","hidden").offset(),g=Math.ceil(d.outerWidth()/u),m=Math.ceil(d.outerHeight()/h),v=[];for(o=0;h>o;o++)for(a=p.top+o*m,c=o-(h-1)/2,s=0;u>s;s++)r=p.left+s*g,l=s-(u-1)/2,d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*g,top:-o*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:m,left:r+(f?l*g:0),top:a+(f?c*m:0),opacity:f?0:1}).animate({left:r+(f?0:l*g),top:a+(f?0:c*m),opacity:f?1:0},e.duration||500,e.easing,n)},t.effects.effect.fade=function(e,i){var n=t(this),o=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:o},{queue:!1,duration:e.duration,easing:e.easing,complete:i})},t.effects.effect.fold=function(e,i){var n,o,s=t(this),r=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(s,e.mode||"hide"),l="show"===a,c="hide"===a,h=e.size||15,u=/([0-9]+)%/.exec(h),d=!!e.horizFirst,f=l!==d,p=f?["width","height"]:["height","width"],g=e.duration/2,m={},v={};t.effects.save(s,r),s.show(),n=t.effects.createWrapper(s).css({overflow:"hidden"}),o=f?[n.width(),n.height()]:[n.height(),n.width()],u&&(h=parseInt(u[1],10)/100*o[c?0:1]),l&&n.css(d?{height:0,width:h}:{height:h,width:0}),m[p[0]]=l?o[0]:h,v[p[1]]=l?o[1]:0,n.animate(m,g,e.easing).animate(v,g,e.easing,(function(){c&&s.hide(),t.effects.restore(s,r),t.effects.removeWrapper(s),i()}))},t.effects.effect.highlight=function(e,i){var n=t(this),o=["backgroundImage","backgroundColor","opacity"],s=t.effects.setMode(n,e.mode||"show"),r={backgroundColor:n.css("backgroundColor")};"hide"===s&&(r.opacity=0),t.effects.save(n,o),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&&n.hide(),t.effects.restore(n,o),i()}})},t.effects.effect.size=function(e,i){var n,o,s,r=t(this),a=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["width","height","overflow"],c=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=t.effects.setMode(r,e.mode||"effect"),f=e.restore||"effect"!==d,p=e.scale||"both",g=e.origin||["middle","center"],m=r.css("position"),v=f?a:["position","top","bottom","left","right","overflow","opacity"],_={height:0,width:0,outerHeight:0,outerWidth:0};"show"===d&&r.show(),n={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===e.mode&&"show"===d?(r.from=e.to||_,r.to=e.from||n):(r.from=e.from||("show"===d?_:n),r.to=e.to||("hide"===d?_:n)),s={from:{y:r.from.height/n.height,x:r.from.width/n.width},to:{y:r.to.height/n.height,x:r.to.width/n.width}},("box"===p||"both"===p)&&(s.from.y!==s.to.y&&(v=v.concat(h),r.from=t.effects.setTransition(r,h,s.from.y,r.from),r.to=t.effects.setTransition(r,h,s.to.y,r.to)),s.from.x!==s.to.x&&(v=v.concat(u),r.from=t.effects.setTransition(r,u,s.from.x,r.from),r.to=t.effects.setTransition(r,u,s.to.x,r.to))),("content"===p||"both"===p)&&s.from.y!==s.to.y&&(v=v.concat(c).concat(l),r.from=t.effects.setTransition(r,c,s.from.y,r.from),r.to=t.effects.setTransition(r,c,s.to.y,r.to)),t.effects.save(r,v),r.show(),t.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),g&&(o=t.effects.getBaseline(g,n),r.from.top=(n.outerHeight-r.outerHeight())*o.y,r.from.left=(n.outerWidth-r.outerWidth())*o.x,r.to.top=(n.outerHeight-r.to.outerHeight)*o.y,r.to.left=(n.outerWidth-r.to.outerWidth)*o.x),r.css(r.from),("content"===p||"both"===p)&&(h=h.concat(["marginTop","marginBottom"]).concat(c),u=u.concat(["marginLeft","marginRight"]),l=a.concat(h).concat(u),r.find("*[width]").each((function(){var i=t(this),n=i.height(),o=i.width(),r=i.outerHeight(),a=i.outerWidth();f&&t.effects.save(i,l),i.from={height:n*s.from.y,width:o*s.from.x,outerHeight:r*s.from.y,outerWidth:a*s.from.x},i.to={height:n*s.to.y,width:o*s.to.x,outerHeight:n*s.to.y,outerWidth:o*s.to.x},s.from.y!==s.to.y&&(i.from=t.effects.setTransition(i,h,s.from.y,i.from),i.to=t.effects.setTransition(i,h,s.to.y,i.to)),s.from.x!==s.to.x&&(i.from=t.effects.setTransition(i,u,s.from.x,i.from),i.to=t.effects.setTransition(i,u,s.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,(function(){f&&t.effects.restore(i,l)}))}))),r.animate(r.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===d&&r.hide(),t.effects.restore(r,v),f||("static"===m?r.css({position:"relative",top:r.to.top,left:r.to.left}):t.each(["top","left"],(function(t,e){r.css(e,(function(e,i){var n=parseInt(i,10),o=t?r.to.left:r.to.top;return"auto"===i?o+"px":n+o+"px"}))}))),t.effects.removeWrapper(r),i()}})},t.effects.effect.scale=function(e,i){var n=t(this),o=t.extend(!0,{},e),s=t.effects.setMode(n,e.mode||"effect"),r=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"hide"===s?0:100),a=e.direction||"both",l=e.origin,c={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},h="horizontal"!==a?r/100:1,u="vertical"!==a?r/100:1;o.effect="size",o.queue=!1,o.complete=i,"effect"!==s&&(o.origin=l||["middle","center"],o.restore=!0),o.from=e.from||("show"===s?{height:0,width:0,outerHeight:0,outerWidth:0}:c),o.to={height:c.height*h,width:c.width*u,outerHeight:c.outerHeight*h,outerWidth:c.outerWidth*u},o.fade&&("show"===s&&(o.from.opacity=0,o.to.opacity=1),"hide"===s&&(o.from.opacity=1,o.to.opacity=0)),n.effect(o)},t.effects.effect.puff=function(e,i){var n=t(this),o=t.effects.setMode(n,e.mode||"hide"),s="hide"===o,r=parseInt(e.percent,10)||150,a=r/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:o,complete:i,percent:s?r:100,from:s?l:{height:l.height*a,width:l.width*a,outerHeight:l.outerHeight*a,outerWidth:l.outerWidth*a}}),n.effect(e)},t.effects.effect.pulsate=function(e,i){var n,o=t(this),s=t.effects.setMode(o,e.mode||"show"),r="show"===s,a="hide"===s,l=r||"hide"===s,c=2*(e.times||5)+(l?1:0),h=e.duration/c,u=0,d=o.queue(),f=d.length;for((r||!o.is(":visible"))&&(o.css("opacity",0).show(),u=1),n=1;c>n;n++)o.animate({opacity:u},h,e.easing),u=1-u;o.animate({opacity:u},h,e.easing),o.queue((function(){a&&o.hide(),i()})),f>1&&d.splice.apply(d,[1,0].concat(d.splice(f,c+1))),o.dequeue()},t.effects.effect.shake=function(e,i){var n,o=t(this),s=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(o,e.mode||"effect"),a=e.direction||"left",l=e.distance||20,c=e.times||3,h=2*c+1,u=Math.round(e.duration/h),d="up"===a||"down"===a?"top":"left",f="up"===a||"left"===a,p={},g={},m={},v=o.queue(),_=v.length;for(t.effects.save(o,s),o.show(),t.effects.createWrapper(o),p[d]=(f?"-=":"+=")+l,g[d]=(f?"+=":"-=")+2*l,m[d]=(f?"-=":"+=")+2*l,o.animate(p,u,e.easing),n=1;c>n;n++)o.animate(g,u,e.easing).animate(m,u,e.easing);o.animate(g,u,e.easing).animate(p,u/2,e.easing).queue((function(){"hide"===r&&o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),i()})),_>1&&v.splice.apply(v,[1,0].concat(v.splice(_,h+1))),o.dequeue()},t.effects.effect.slide=function(e,i){var n,o=t(this),s=["position","top","bottom","left","right","width","height"],r=t.effects.setMode(o,e.mode||"show"),a="show"===r,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,u={};t.effects.save(o,s),o.show(),n=e.distance||o["top"===c?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(o).css({overflow:"hidden"}),a&&o.css(c,h?isNaN(n)?"-"+n:-n:n),u[c]=(a?h?"+=":"-=":h?"-=":"+=")+n,o.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),i()}})},t.effects.effect.transfer=function(e,i){var n=t(this),o=t(e.to),s="fixed"===o.css("position"),r=t("body"),a=s?r.scrollTop():0,l=s?r.scrollLeft():0,c=o.offset(),h={top:c.top-a,left:c.left-l,height:o.innerHeight(),width:o.innerWidth()},u=n.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:u.top-a,left:u.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(h,e.duration,e.easing,(function(){d.remove(),i()}))}})?n.apply(e,o):n)||(t.exports=s)},OTSC:function(t,e,i){"use strict";i.r(e);var n=i("xi34"),o=i("rFsW"),s=i("3eHG"),r=i("Kw5r"),a=i("QNiq"),l=i("tZHv"),c={isURL:function(t){return/^http(s?)\:\/\//i.test(t)}};o.a.keys(c).forEach((function(t){r.default.filter(t,c[t])}));var h={picSizes:[256,304,512,608,1024],isPageNativelyScaled:function(){return window.innerWidth!=document.documentElement.clientWidth},declination:function(t,e,i,n,o){var s=n%100;return s=s>=11&&s<=14?0:(s%=10)<5?s>2?2:s:0,o||(s=1==n?1:0),[t,e,i][s]},queryUrlGetParam:function(t,e){try{for(var i=e?e.split("?")[1]:location.search.substring(1),n=i?i.split("&"):[],o=0;o<n.length;o++){var s=n[o].split("=");if(s[0]==t)return!(s.length>1)||decodeURIComponent(s[1])}}catch(t){console.log(t)}},autoWindowScroll:function(t,e,i){this.autoWindowScrollClear();var o=0,s=Object(n.a)(window).height();t.pageY<10&&(o=-Math.abs(Math.floor(3*(10-t.pageY)))),t.pageY>s-10&&(o=Math.abs(Math.floor(3*(10-(s-t.pageY))))),0!=(o=Math.max(Math.min(20,o),-20))&&(e.scrollTop(e.scrollTop()+o),RM.common.autoWindowScrollTimeout=setTimeout((function(){i&&i()}),100))},autoWindowScrollClear:function(){clearTimeout(RM.common.autoWindowScrollTimeout)},isValidEmail:function(t,e){return e||(t=t.replace(/^\s+|\s+$/g,"")),/^([a-z0-9_\-]+[\.\+])*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*\.)+[a-z]{2,}$/i.test(t)},isValidEmailLink:function(t){return h.isValidEmail(t.split("?")[0])},isValidPhoneNumber:function(t){return/^\s*(?:\+?(\d{1,3}))?([-. (]*(\d{3})[-. )]*)?((\d{3})[-. ]*(\d{2,4})(?:[-.x ]*(\d+))?)\s*$/g.test(t)},getRGBA:function(t,e){var i="";if(t){var n=[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)];i=e>.99?"rgb("+n[0]+","+n[1]+","+n[2]+")":"rgba("+n[0]+","+n[1]+","+n[2]+", "+e+")"}return i},generateUUID:function(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var i=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?i:3&i|8).toString(16)}))},escapeSpecial:function(t,e){return(t=(t+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1"))&&e&&(t="'"+t+"'"),t},scanForURIs:function(t,e,i){var n=[],o=0;return t=(t=(t=(t+=" ").replace(/\b([a-z0-9_\.-]+)@([\da-z\.-]+)\.(biz|com|edu|gov|net|org|us|ru|ua|uk|su|se|co|no|jp|it|in|il|gb|fr|fi|es|de|cz|ch|ca|by|at|au)/gim,(function(t){return o++,n[o]="<a "+(e?'class = "'+e+'"':"")+' href="mailto:'+t+'">'+t+"</a>","INNER_TMP_BLOCK_"+o+"_INNER_TMP_BLOCK"}))).replace(/\b(https?:\/\/)?([\da-z\.-]+)\.(biz|com|edu|gov|net|org|us|ru|ua|uk|su|se|co|no|jp|it|in|il|gb|fr|fi|es|de|cz|ch|ca|by|at|au)(\/[^\s\(\)\[\]\{\}\<\>]*)*/gim,(function(t,s,r,a,l,c){var h=t;null!=s&&""!=s||(h="http://"+h);var u=r;return null!=a&&""!=a&&(u+="."+a),o++,i||(u=(u=h).replace(/^https?:\/\//,"")),n[o]="<a "+(e?'class = "'+e+'"':"")+' href="'+h+'" target="_blank" title="'+h+'">'+u+"</a>","INNER_TMP_BLOCK_"+o+"_INNER_TMP_BLOCK"}))).replace(/INNER_TMP_BLOCK_([\d]+)_INNER_TMP_BLOCK/gim,(function(t,e){return n[e]}))},plainTextToHtml:function(t,e){return t=(t=(t=(t=(t=(t=t||"").replace(/\&/gim,"&amp;")).replace(/\</gim,"&lt;")).replace(/\>/gim,"&gt;")).replace(/\n/gim,"<br/>")).replace(/\s\s/gim," &nbsp;"),e&&e.detectLinks&&(t=h.scanForURIs(t)),t},screenshotSize:function(t){return Modernizr.retina&&(t*=2),-1==this.picSizes.indexOf(t)&&(t=o.a.filter(this.picSizes,(function(e){return e>t}))[0]),-1==this.picSizes.indexOf(t)?(console.error("screenshot size not found! size: "+t),512):t},addFilenameComponent:function(t,e){var i=t.split(".");return i.length>1?(i[i.length-2]+="_"+e,i.join(".")):t+"_"+e},URLParts:function(t){var e=/(.+:\/\/)?([^\/]+)(\/.*)*/i.exec(t);return{url:(e=e||[])[0]||"",protocol:e[1]||"",hostname:e[2]||"",path:e[3]||""}},filterNonAscii:function(t){if(t&&t.val){var e=t.val();return!!/[^\x00-\x7f]/.test(e)&&(e=e.replace(/[^\x00-\x7f]/g,""),t.val(e),!0)}},applyTransform:function(t,e){t.css({"-webkit-transform":e,transform:e})},getCurrentTranslate:function(t){var e,i=window.getComputedStyle(t,null),n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform");return n&&"none"!=n?[(e=(e=(e=n.split("(")[1]).split(")")[0]).split(","))[4]-0,e[5]-0]:[0,0]},applyTransition:function(t,e){t.css({"-webkit-transition":e.replace("transform","-webkit-transform"),transition:e})},waitForTransitionEnd:function(t,e,i,n){return this.animationTransitionEndHandler("transition",t,e,i,n)},waitForAnimationEnd:function(t,e,i,n){return this.animationTransitionEndHandler("animation",t,e,i,n)},animationTransitionEndHandler:function(t,e,i,o,s){e=e instanceof jQuery?e:Object(n.a)(e);var r="transition"===t?{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")]:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OTransition:"oAnimationEnd",msTransition:"MSAnimationEnd",animation:"animationend"}[Modernizr.prefixed("animation")],a=function i(a){if(a){var c="transition"===t?a.originalEvent.propertyName.toLowerCase():a.originalEvent.animationName.toLowerCase();if("transition"===t&&!Object(n.a)(a.target).is(e))return;if(-1===c.indexOf(o))return}e.off(r,i),clearTimeout(l),s()};e.on(r,a);var l=setTimeout(a,i);return function(){e.off(r,a),clearTimeout(l)}},vueTransitionsShow:function(t,e){var i=e+"-enter",n=e+"-enter-active";t.addClass(i),window.requestAnimationFrame((function(){t.removeClass(i),t.addClass(n),h.waitForTransitionEnd(t,200,"opacity",(function(){t.removeClass(n)}))}))},vueTransitionsHide:function(t,e){var i=e+"-leave-to",n=e+"-leave-active";return t.addClass(i+" "+n),new window.Promise((function(e){h.waitForTransitionEnd(t,200,"opacity",e)})).then((function(){t.removeClass(i+" "+n)}))},getFixedPositionCSS:function(t,e,i){var n=e.left*i,s=e.top*i,r=e.width,a=e.height,l=r*(1-i)/2,c=a*(1-i)/2,h={left:"",top:"",bottom:"",right:"","margin-left":"","margin-top":""};return t?("c"!=t&&(t.indexOf("n")>-1&&(h.top=s-c),t.indexOf("w")>-1&&(h.left=n-l),t.indexOf("e")>-1&&(h.right=n-l),t.indexOf("s")>-1&&(h.bottom=s-c)),["n","c","s"].indexOf(t)>-1&&(h.left="50%",h["margin-left"]=-r/2+n),["w","c","e"].indexOf(t)>-1&&(h.top="50%",h["margin-top"]=-a/2+s),h):o.a.extend({},h,e)},getFixedPositionBox:function(t,e,i,n){i=i||1;var o=e.x*i,s=e.y*i,r=e.w*i,a=e.h*i,l={left:o,top:s,width:r,height:a};return t?("c"!==t&&(-1!==t.indexOf("s")&&(l.top=n.height-s-a),-1!==t.indexOf("e")&&(l.left=n.width-o-r)),-1!==["n","c","s"].indexOf(t)&&(l.left=n.width/2-r/2+o),-1!==["w","c","e"].indexOf(t)&&(l.top=n.height/2-a/2+s),l.bottom=l.top+l.height,l.right=l.left+l.width,l):l},decimals:function(t,e){var i=Math.pow(10,e);return Math.round(t*i)/i},getFocusBack:function(){a.a.isDesktop&&Object(n.a)('<input style="position: absolute;left: -999px;" type="text"/>').appendTo("body").css({top:Object(n.a)(window).scrollTop()}).focus().remove()},hex2rgb:function(t){if(t)return[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]},rgba2hex:function(t){if(t){var e=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*(\d*)\.?(\d*)\s*)?\)$/);return"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2)}},rgba2alpha:function(t){if(t){var e=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*(\d*)\.?(\d*)\s*)?\)$/);return parseFloat(e[4].slice(1))}},loadLoggedUser:function(t){if(RM.common.isDownloadedSource&&!RM.common.homepageRewrite)return t&&t();if(window.ServerData&&window.ServerData.me&&window.ServerData.me.user)return t&&t();if(h.__loadLoggedUserCallbackStack=h.__loadLoggedUserCallbackStack||[],t&&"function"==typeof t&&h.__loadLoggedUserCallbackStack.push(t),!h.__loadLoggedUserLoadStarted){h.__loadLoggedUserLoadStarted=!0,Object(n.a)(window).on("message",o.a.bind((function(t){if((t=t.originalEvent||{}).origin==l.a.readymag_auth_host){if("string"!=typeof t.data)return;var i=JSON.parse(t.data);if("user"!=i.event)return;var n=i.message;window.ServerData&&(window.ServerData.me={user:n});for(var o=0;o<h.__loadLoggedUserCallbackStack.length;o++)h.__loadLoggedUserCallbackStack[o].call(this,n);h.__loadLoggedUserCallbackStack=null,h.__loadLoggedUserLoadStarted=null,e.remove()}}),this));var e=Object(n.a)("<iframe>").attr("width","0").attr("height","0").css({position:"absolute",top:"-999px"}).on("load",(function(){e[0].contentWindow.postMessage("GetLoggedUser","*")})).attr("src",l.a.readymag_auth_host+"/get_user_cookies."+Date.now()).appendTo("body")}},selectProtocol:function(t){return t&&t.length?(0==t.indexOf("//")&&l.a.IS_FILE_PROTOCOL&&(t="http:"+t),t):t},_sendFBGraphRequest:function(t){n.a.ajax({type:"GET",url:"https://graph.facebook.com/?id="+encodeURIComponent(t)+"&scrape=true&method=post",success:function(t){}})},facebookGraphRefresh:function(t){var e,i,n,o=l.a.readymag_host||window.location.origin;n=o+"/"+t.user_uri+"/"+t.mag_uri+"/",this._sendFBGraphRequest(n);var s=o+"/"+t.mag_numid+"/";this._sendFBGraphRequest(s),t.mag_domain?(e="http://"+t.mag_domain+"/",this._sendFBGraphRequest(e)):t.user_domain&&(i="http://"+t.user_domain+"/"+t.mag_uri+"/",this._sendFBGraphRequest(i));var r=t.pages;if(0!=r.length)for(var a in e||i||o+"/",r){var c=o+"p"+(a=r[a]).num_id+"/";this._sendFBGraphRequest(c)}},simulateEvent:function(t,e){if(t){var i,n={HTMLEvents:/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,MouseEvents:/^(?:click|dblclick|mouse(?:down|up|over|move|out))$/},o={pointerX:0,pointerY:0,button:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,bubbles:!0,cancelable:!0},s=c(o,arguments[2]||{}),r=null;for(var a in n)if(n[a].test(e)){r=a;break}if(!r)throw new SyntaxError("Only HTMLEvents and MouseEvents interfaces are supported");if(document.createEvent)i=document.createEvent(r),"HTMLEvents"===r?i.initEvent(e,s.bubbles,s.cancelable):i.initMouseEvent(e,s.bubbles,s.cancelable,document.defaultView,s.button,s.pointerX,s.pointerY,s.pointerX,s.pointerY,s.ctrlKey,s.altKey,s.shiftKey,s.metaKey,s.button,t),t.dispatchEvent(i);else{s.clientX=s.pointerX,s.clientY=s.pointerY;var l=document.createEventObject();i=c(l,s),t.fireEvent("on"+e,i)}return t}function c(t,e){for(var i in e)t[i]=e[i];return t}},getTestIndexes:function(){if(RM.common.rm_test)return RM.common.rm_test;var t,e,i={};for(t=2;t<=5;t++)i["_test_"+t]=-1;if(Modernizr.localstorage)for(t=2;t<=5;t++)i[e="_test_"+t]=localStorage.getItem("rm_test_"+t),(parseInt(i[e])!=i[e]||i[e]<0||i[e]>=t)&&(i[e]=Math.floor(Math.random()*t),localStorage.setItem("rm_test_"+t,i[e])),i[e]-=0;return RM.common.rm_test=i,i},setInputSize:function(t,e,i){var o=Object(n.a)('<div style="position:absolute; left:-9999px; right:auto; margin:0; white-space:pre; width:auto"></div>').appendTo(t.parent());o[0].className=t[0].className,o.text(i||t.val());var s=o.width();s=2*Math.ceil(s/2)+2,e&&s>e&&(s=e),t.width(s),o.remove()},PageVisibilityManager:function(){var t,e;void 0!==document.hidden?(t="hidden",e="visibilitychange"):void 0!==document.mozHidden?(t="mozHidden",e="mozvisibilitychange"):void 0!==document.msHidden?(t="msHidden",e="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",e="webkitvisibilitychange");return{addEventListener:function(i){if(!t)return!1;document.addEventListener(e,i)},removeEventListener:function(i){if(!t)return!1;document.removeEventListener(e,i)},isPageHidden:function(){return document[t]}}}(),getCookie:function(t){var e=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0},deleteCookie:function(t,e){e=e||{};var i=l.a.readymag_host.replace(/https?:\/\//i,"").replace("/",""),n=l.a.readymag_auth_host.replace(/https?:\/\//i,"").replace("/","");document.cookie="".concat(t,"=; path=").concat(e.path?e.path:"/","; domain=").concat(i,"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"),document.cookie="".concat(t,"=; path=").concat(e.path?e.path:"/","; domain=.").concat(i,"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"),document.cookie="".concat(t,"=; path=").concat(e.path?e.path:"/","; domain=").concat(n,"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"),document.cookie="".concat(t,"=; path=").concat(e.path?e.path:"/","; domain=.").concat(n,"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"),document.cookie="".concat(t,"=; path=").concat(e.path?e.path:"/","; expires=Thu, 01 Jan 1970 00:00:01 GMT;")},createCookie:function(t,e,i){i=i||36500;var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var o,s="; expires="+n.toGMTString();o=(o=l.a.readymag_host.replace(/https?:\/\//i,"")).replace("/",""),document.cookie=t+"="+e+s+"; path=/; domain=."+o},isMongoObjectId:function(t){return/^[0-9a-fA-F]{24}$/.test(t)},setNoTransitions:function(t){return t=!!t||void 0===t,l.a.noanimations=t,Object(n.a)("html").toggleClass("notransitions"),"Transitions are "+(t?"disabled":"enabled")},sendAnalyticsCustomEvent:function(t,e,i,s,r){var a={v:"1",t:"event",tid:l.a.GA_ID},c=o.a.extend({},a,{ec:encodeURIComponent(t),ea:encodeURIComponent(e)});i&&o.a.extend(c,{el:encodeURIComponent(i)}),s&&o.a.extend(c,{ev:encodeURIComponent(s)}),o.a.extend(c,{cid:r||this.getGAcid()});var h=Object.keys(c).map((function(t){return t+"="+c[t]})).join("&");n.a.ajax({url:"https://www.google-analytics.com/collect",method:"POST",data:h,processData:!1,contentType:"text/plain"})},getGAcid:function(){var t=this.getCookie("_ga"),e=null;return t&&(t=t.match(/GA[0-9]+\.[0-9]+\.(.*)/)).length>1&&(e=t[1]),e||(e=this.generateUUID()),e},processCustomTrackingEventCookies:function(){var t={_rm_send_event_user:{facebook:l.a.FacebookTrackingEvents.RegisteredUser,twitter:l.a.TwitterTrackingEvents.RegisteredUser,pinterest:l.a.PinterestTrackingEvents.RegisteredUser},_rm_send_event_subscriber:{facebook:l.a.FacebookTrackingEvents.ActiveSubscriber,twitter:l.a.TwitterTrackingEvents.ActiveSubscriber,pinterest:l.a.PinterestTrackingEvents.ActiveSubscriber}};for(var e in t)h.getCookie(e)&&(h.sendFacebookPixelEvent(t[e].facebook),h.trackTwitterConversion(t[e].twitter),h.trackPinterestConversion(t[e].pinterest),h.deleteCookie(e))},sendFacebookPixelEvent:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};switch(t){case"PageView":e="PageView";break;case"Joined":e="CompleteRegistration",n=o.a.pick(i,"value","currency");break;case"Subscribed":e="Customer Created",n=o.a.pick(i,"currency","value");break;case"Create Mag":e="Create Mag";break;case"Publish Mag":e="Publish";break;case"Republish Mag":e="Republish";break;case"Purchase":e="Purchase",n=o.a.pick(i,"content_name","content_category","content_type","value","currency");break;case"Mi_Usuario":e="Mi_Usuario";break;case"CLient":e="CLient"}e&&s.a.initFacebookPixel().then((function(){"function"==typeof window.fbq&&window.fbq("trackCustom",e,n)}))},trackTwitterConversion:function(t){s.a.initTwitterTrackingAPI().then((function(){window.twttr&&window.twttr.conversion&&(window.twttr.conversion.trackPid(t,{tw_sale_amount:0,tw_order_quantity:0}),(new Image).src="https://analytics.twitter.com/i/adsct?txn_id=".concat(t,"&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0"),(new Image).src=h.selectProtocol("//t.co/i/adsct?txn_id=".concat(t,"&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0")))}))},trackPinterestConversion:function(t){s.a.initPinterestTrackingAPI().then((function(){window.pintrk&&window.pintrk("track",t)}))},toHttps:function(t){return t.replace(/^http:\/\//i,"https://")},escapeRegExp:function(t){var e=new RegExp("(\\"+["$","^","*","(",")","+","[","]","{","}","\\","|",".","?","/"].join("|\\")+")","g");return t.replace(e,"\\$1")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},filters:c};e.default=h},RjiT:function(t,e){!function(t){var e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],n=navigator.platform.toUpperCase().indexOf("WIN")>=0,o=navigator.platform.toUpperCase().indexOf("MAC")>=0,s=navigator.userAgent.toUpperCase().indexOf("FIREFOX")>=0,r=navigator.userAgent.toUpperCase().indexOf("OPERA")>=0;if(t.event.fixHooks)for(var a=e.length;a;)t.event.fixHooks[e[--a]]=t.event.mouseHooks;function l(e){var i=e||window.event,a=[].slice.call(arguments,1),l=0,c=0,h=0;(e=t.event.fix(i)).type="mousewheel",i.detail&&(l=-1*i.detail),i.wheelDelta&&(l=i.wheelDelta),i.deltaY&&(l=h=-1*i.deltaY),i.deltaX&&(l=c=-1*i.deltaX),void 0!==i.wheelDeltaY&&(h=i.wheelDeltaY),void 0!==i.wheelDeltaX&&(c=i.wheelDeltaX);var u=1;return o&&s&&Math.abs(l-Math.round(l))>1e-7&&(u*=120),n&&s&&(u*=40),o&&r&&(u/=15),l*=u,c*=u,h*=u,a.unshift(e,l,c,h),(t.event.dispatch||t.event.handle).apply(this,a)}t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],l,!1);else this.onmousewheel=l},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],l,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery)},Surn:function(t,e,i){"use strict";i.r(e);var n=i("rFsW");!function(t,e){var i=function(e,i,n){var o=t('<div style="position:absolute; left:-9999px; right:auto; margin:0; white-space:pre; width:auto"></div>').appendTo(e.parent());o[0].className=e[0].className,o.text(n||e.val());var s=o.width();s=2*Math.ceil(s/2)+2,i&&s>i&&(s=i),e.width(s),o.remove()};t.fn.RMNumericInput=function(e){var o=t.extend({min:Number.NEGATIVE_INFINITY,max:Number.POSITIVE_INFINITY,mouseUse:!0,mouseSpeed:3,mouseDir:"v",keyboardUse:!0,stopPropagation:!0,setCursors:!0,labelSelector:void 0,invertMouse:!1,invertKeyboard:!1,onChange:function(){},onBeforeChange:function(t,e,i){return e},step:1,shiftStep:10,useFloat:!1,floatDigits:1,autoSize:!1,autofocus:!1,mouseOnly:!1,thousandDelimiter:"",debounceKeyboard:0},e);return this.filter("input").each((function(){var e,s,r,a=t(this),l=n.a.clone(o),c=a.val();function h(t,e){w(t=l.useFloat?m(t):Math.round(t)),w(f().num),p(void 0,e,"change-callback")}function u(){a.addClass("focused"),s&&s.addClass("focused")}function d(t,e){a.removeClass("focused"),s&&s.removeClass("focused"),w(f().num),p(void 0,void 0,e&&e.changeSource?e.changeSource:"filter-on-exit")}function f(e){var i=t.trim(a.val()+""),n={num:0,onlyMinus:!1,pointAtEnd:!1};return""==i?(e||(n.num=Math.max(l.min,0)),n):(l.useFloat&&(i=i.replace(/\,/gim,".")),l.min>=0?i=l.useFloat?i.replace(/([^\d\.]+)/gim,""):i.replace(/([^\d]+)/gim,""):("-0"!=i&&"0-"!=i&&"-"!=i||(a.val("-"),n.onlyMinus=!0),i=(i=l.useFloat?i.replace(/([^\d\-\.]+)/gim,""):i.replace(/([^\d\-]+)/gim,"")).replace(/([\S\s]+?)(\-)/gim,(function(t,e,i,n,o){return e})),l.useFloat&&(i=(i=i.replace(/^\./gim,"")).replace(/^(.*?\..*?)(\.)/gim,(function(t,e,i,n,o){return e})))),l.useFloat&&/\.$/.test(i)?(n.pointAtEnd=!0,n.num=i,n):(i-=0,isNaN(i)&&(i=Math.max(l.min,0)),l.useFloat&&(i=m(i)),e||(i<l.min&&(i=l.min),i>l.max&&(i=l.max)),n.num=i,n))}function p(t,e,n){var o=f();if(n=n||"keyboard",o.num+""==a.val()+""||o.onlyMinus||o.pointAtEnd){if(o.onlyMinus)return;w(o.num)}else{var s=f(!0).num,r=(s<0?l.min+"":l.max+"").length+(l.useFloat?1+l.floatDigits:0);if(w((s+"").substr(0,r)),s<l.min||s>l.max)return void(l.autoSize&&i(a,200))}var h=l.onBeforeChange.call(null,a,o.num,c-0,n);c==h&&0!=a.css("opacity")||o.onlyMinus||o.pointAtEnd||(l.useFloat&&(h=m(h)),Math.abs(h-o.num)>1e-6&&w(h),e||(l.debounceKeyboard&&"arrows"!==n&&"mouse"!==n?l.onChange.__debounced.call(null,a,h):l.onChange.call(null,a,h)),c=h),l.autoSize&&i(a,200)}function g(t){l.stopPropagation&&t.stopPropagation(),!l.keyboardUse||13!=t.keyCode&&38!=t.keyCode&&40!=t.keyCode||t.preventDefault();var e=f().num;if("keyup"==t.type&&l.keyboardUse&&13==t.keyCode){var i=f();if(i.pointAtEnd){var n=i.num.substring(0,i.num.length-1);n-=0,isNaN(n)&&(n=Math.max(l.min,0)),(n=m(n))<l.min&&(n=l.min),n>l.max&&(n=l.max),h(n)}a.blur()}else if("keydown"==t.type&&l.keyboardUse&&(38==t.keyCode||40==t.keyCode)){var o=t.shiftKey?l.shiftStep:l.step;e+=(38==t.keyCode?o:-o)*(l.invertKeyboard?-1:1),e=Math.max(Math.min(e,l.max),l.min),l.useFloat&&(e=m(e)),w(e),p(0,void 0,"arrows")}}function m(t){var e=Math.pow(10,l.floatDigits),i=t*e;return Math.abs(i-Math.round(i))<1e-5?Math.round(i)/e:Math.floor(i)/e}function v(i){l.setCursors&&(t("body").removeClass("ns-resize-cursor").removeClass("ew-resize-cursor"),"v"==l.mouseDir&&t("body").addClass("ns-resize-cursor"),"h"==l.mouseDir&&t("body").addClass("ew-resize-cursor")),a.trigger("blur",{changeSource:"mouse"}),e=0,a.addClass("dragging"),s&&s.addClass("dragging")}function _(t){if(!a.get(0).readOnly||l.mouseOnly){var i=0;"h"==l.mouseDir&&(i=Math.round(t.deltaX/l.mouseSpeed)),"v"==l.mouseDir&&(i=-Math.round(t.deltaY/l.mouseSpeed));var n=parseFloat(a.attr("data-min")),o=parseFloat(a.attr("data-max"));l.min=isFinite(n)?n:l.min,l.max=isFinite(o)?o:l.max;var s=f().num+(i-e)*(l.invertMouse?-1:1)*(t.shiftKey?l.shiftStep:l.step);s=Math.max(Math.min(s,l.max),l.min),l.useFloat&&(s=m(s)),w(s),p(0,void 0,"mouse"),e=i}}function b(e){a.removeClass("dragging"),s&&s.removeClass("dragging"),l.setCursors&&t("body").removeClass("ns-resize-cursor").removeClass("ew-resize-cursor"),e.moved||a.focus().select()}function w(t){if(!l.thousandDelimiter)return a.val(t),t;var e=t.toString().replace(/(\d)(?=(\d{3})+$)/g,"$1"+l.thousandDelimiter);return a.val(e),e}n.a.each(l,(function(t,e){var i=a.attr("data-"+e);null!=i&&(l[e]=i,n.a.contains(["min","max","step","mouseSpeed","shiftStep","floatDigits","debounceKeyboard"],e)&&(l[e]=parseFloat(l[e])),n.a.contains(["mouseUse","keyboardUse","stopPropagation","setCursors","invertMouse","invertKeyboard","useFloat","autoSize","autofocus"],e)&&"boolean"!=typeof l[e]&&(l[e]="true"==l[e]))})),l.onChange.__debounced=n.a.debounce(l.onChange,l.debounceKeyboard),l.mouseUse&&(l.setCursors&&("v"==l.mouseDir&&a.css({cursor:"ns-resize"}),"h"==l.mouseDir&&a.css({cursor:"ew-resize"})),a.RMDrag({start:v,move:_,end:b,silent:!0,preventDefault:!0}),l.labelSelector&&1==(s="<"==l.labelSelector.substr(0,1)?a.closest(l.labelSelector.substr(1)):a.parent().find(l.labelSelector)).length&&(l.setCursors&&("v"==l.mouseDir&&s.css({cursor:"ns-resize"}),"h"==l.mouseDir&&s.css({cursor:"ew-resize"})),s.RMDrag({start:v,move:_,end:b,silent:!0,preventDefault:!0}))),a.add(s||t()).on("mouseenter",(function(){clearTimeout(r),a.addClass("hovered"),s&&s.addClass("hovered")})).on("mouseleave",(function(){r=setTimeout((function(){a.removeClass("hovered"),s&&s.removeClass("hovered")}),100)})),a.on("input propertychange",p),a.on("keydown keypressed keyup",g),a.data("changeValue",h),a.data("formatValue",w),a.data("getValue",(function(){return f().num})),a.data("changeMinMax",(function(t,e){null!=t&&(l.min=parseFloat(t));null!=e&&(l.max=parseFloat(e))})),l.autofocus?a.addClass("transparent-selection").focus().select().one("focus",(function(){t(this).removeClass("transparent-selection")})):a.on("focus",u),a.on("blur",d),a.data("destroy",(function(){return a.css("cursor",""),a.removeClass("hovered"),a.removeClass("focused"),a.removeClass("dragging"),a.removeClass("transparent-selection"),t("body").removeClass("ns-resize-cursor").removeClass("ew-resize-cursor"),a.off("input propertychange",p),a.off("keydown keypressed keyup",g),a.off("focus",u),a.off("blur",d),a.data("changeValue",null),a.data("changeMinMax",null),a.removeData("destroy"),this}))})),this}}(jQuery)},XAO4:function(t,e,i){"use strict";i.r(e);var n=i("rFsW");!function(t,e){t.fn.RMScroll=function(e){var i=function(t,e){this.options=n.a.clone(t),this.$scroll=e,this.incDelta=0,this.mouseWheelProceedThrottled=n.a.throttle(this.mouseWheelProceed,50),n.a.defaults(this.options,{gap_start:0,gap_end:0,$gutter:null,tp:"vertical",wheelScrollSpeed:1,scrollStep:1,maxHandleSize:9999,dragScroll:!1,systemScroll:!1,needRecalc:!0,savedScrollPosition:0})};i.prototype={initialize:function(){n.a.bindAll(this),this.options.$container.bind("scroll",this.onScroll),this.options.systemScroll||this.options.$container.bind("mousewheel",this.onMouseWheel),t(this.options.$handle).RMDrag({start:this.startScrollDrag,move:this.moveScrollDrag,end:this.stopScrollDrag,silent:!0,preventDefault:!0}),this.options.dragScroll&&t(this.options.$content).RMDrag({start:this.startContentDrag,move:this.moveContentDrag,end:this.stopContentDrag,silent:!0,preventDefault:!0}),this.data={handle_pos:0,handle_size:0,container_size:0,content_size:0,scroll_pos:0,scroll_percent:0,save:!0},this.options.needRecalc&&this.recalc()},onMouseWheel:function(t,e,i,n){this.options.savedScrollPosition=0,t.preventDefault(),(i||n)&&("vertical"==this.options.tp?e=n:(e=i||n,t.stopPropagation()));var o=-Math.ceil(e*this.options.wheelScrollSpeed);this.incDelta+=o,this.mouseWheelProceedThrottled(this.incDelta)},mouseWheelProceed:function(t){if(t>0&&t<this.options.scrollStep&&(t=this.options.scrollStep),t<0&&t>-this.options.scrollStep&&(t=-this.options.scrollStep),"vertical"==this.options.tp){var e=t+this.options.$container.scrollTop();e-=e%this.options.scrollStep,this.options.$container.scrollTop(e)}else{e=t+this.options.$container.scrollLeft();e-=e%this.options.scrollStep,this.options.$container.scrollLeft(e)}this.incDelta=0},changeGaps:function(t){null!=(t=t||{}).gap_start&&(this.options.gap_start=t.gap_start),null!=t.gap_end&&(this.options.gap_end=t.gap_end),this.recalc()},recalc:function(){this.data.container_size="vertical"==this.options.tp?this.options.$container.height():this.options.$container.width(),this.data.container_size_with_gaps=this.data.container_size-this.options.gap_start-this.options.gap_end,this.data.content_size="vertical"==this.options.tp?this.options.$content.outerHeight(!0):this.options.$content.outerWidth(!0),this.data.handle_size=this.data.container_size_with_gaps/this.data.content_size,this.data.handle_size=Math.max(Math.min(this.data.handle_size,1),0),this.data.handle_size=Math.sqrt(this.data.handle_size),this.data.handle_size=Math.ceil(this.data.handle_size*this.data.container_size_with_gaps),this.data.handle_size=Math.min(this.data.handle_size,this.options.maxHandleSize),this.data.container_size>=this.data.content_size?(this.options.$handle.css("display","none"),this.options.$gutter&&this.options.$gutter.css("display","none")):(this.options.$handle.css("display","block"),this.options.$gutter&&this.options.$gutter.css("display","block")),this.options.$handle.css("vertical"==this.options.tp?"height":"width",this.data.handle_size),this.onScroll()},clearScroll:function(){this.options.$container.scrollTop(0)},onScroll:function(t){this.data.scroll_pos="vertical"==this.options.tp?this.options.$container.scrollTop():this.options.$container.scrollLeft();var e=this.data.content_size-this.data.container_size;this.data.scroll_pos>e&&(this.data.scroll_pos=e),this.data.scroll_percent=e>0?this.data.scroll_pos/e:0,this.data.handle_pos=this.options.gap_start+Math.ceil(this.data.scroll_percent*(this.data.container_size_with_gaps-this.data.handle_size)),this.options.$handle.css("vertical"==this.options.tp?"top":"left",this.data.handle_pos),this.data.scroll_event=t,0!=this.options.savedScrollPosition&&this.options.$container.scrollTop(this.options.savedScrollPosition),"function"==typeof this.options.onScroll&&this.options.onScroll(this.data)},startScrollDrag:function(t){this.options.savedScrollPosition=0,this.options.$handle.addClass("dragging"),this.oldHandlePos=this.data.handle_pos},moveScrollDrag:function(t){var e="vertical"==this.options.tp?t.deltaY:t.deltaX,i=(this.oldHandlePos+e-this.options.gap_start)/(this.data.container_size_with_gaps-this.data.handle_size),n=(i=Math.min(Math.max(i,0),1))*(this.data.content_size-this.data.container_size);"vertical"==this.options.tp?this.options.$container.scrollTop(n):this.options.$container.scrollLeft(n)},stopScrollDrag:function(t){this.options.$handle.removeClass("dragging")},startContentDrag:function(t){"vertical"==this.options.tp?this.oldDragPos=this.options.$container.scrollTop():this.oldDragPos=this.options.$container.scrollLeft(),this.maxDragShift=0,this.wasContentDrag=!1},moveContentDrag:function(t){var e="vertical"==this.options.tp?t.deltaY:t.deltaX;this.maxDragShift=Math.max(this.maxDragShift,Math.abs(e));var i=this.oldDragPos-e;i=Math.min(Math.max(i,0),this.data.content_size-this.data.container_size),"vertical"==this.options.tp?this.options.$container.scrollTop(i):this.options.$container.scrollLeft(i)},stopContentDrag:function(t){this.wasContentDrag=this.maxDragShift>5},destroy:function(){}};var o=t(this),s=new i(e,o);return s.initialize(),o.data("scroll",s),this}}(jQuery)},rHC9:function(t,e,i){"use strict";i.r(e);var n=i("rFsW");!function(t,e){t.fn.RMAutoResizeTextArea=function(e){var i=function(t,e){this.options=n.a.clone(t),this.$input=e,n.a.defaults(this.options,{maxHeight:9999,maxVisibleHeight:9999,disableMultiline:!1,$scroll:null}),this.$scroll=this.options.$scroll};i.prototype={initialize:function(){n.a.bindAll(this),this.$input.on("input",this.resizeTextArea),this.$input.on("keydown",this.keyDown),this.options.$scroll&&(this.$input.on("scroll",this.onScroll),this.$input.bind("mousewheel",this.onMouseWheel),this.$scroll.bind("mousewheel",this.onMouseWheel),t(this.$scroll).RMDrag({start:this.startScrollDrag,move:this.moveScrollDrag,end:this.stopScrollDrag,silent:!0,preventDefault:!0})),this.data={handle_pos:0,handle_size:0,container_size:0,content_size:0,scroll_pos:0,scroll_percent:0};var e="0% 0%";try{e=this.$input.css("background-position")}catch(t){}var i=e.split(" ");this.background_x=parseInt(i[0],10),this.background_y=parseInt(i[1],10),this.prevText=this.$input.val(),this.resizeTextArea()},onMouseWheel:function(t,e){if(this.options.$scroll){var i=-Math.ceil(.1*e);if(i){t.preventDefault(),i>0&&i<1&&(i=1),i<0&&i>-1&&(i=-1);var n=i+this.$input.scrollTop();this.$input.scrollTop(n)}}},onScroll:function(t){if(this.options.$scroll){this.data.scroll_pos=this.$input.scrollTop();var e=this.data.content_size-this.data.container_size;this.data.scroll_pos>e&&(this.data.scroll_pos=e),this.data.scroll_percent=e>0?this.data.scroll_pos/e:0,this.data.handle_pos=Math.ceil(this.data.scroll_percent*(this.data.container_size-this.data.handle_size)),this.$scroll.css("top",this.data.handle_pos),this.$input.css("background-position",this.background_x+"px "+(this.background_y-this.data.scroll_pos)+"px")}},recalcScroll:function(){this.options.$scroll&&(this.data.handle_size=this.data.container_size/this.data.content_size,this.data.handle_size=Math.max(Math.min(this.data.handle_size,1),0),this.data.handle_size=Math.sqrt(this.data.handle_size),this.data.handle_size=Math.ceil(this.data.handle_size*this.data.container_size),this.data.container_size>=this.data.content_size?this.$scroll.css("display","none"):this.$scroll.css("display","block"),this.$scroll.css("height",this.data.handle_size),this.onScroll())},startScrollDrag:function(t){this.$scroll.addClass("dragging"),this.oldDeltaY=0},moveScrollDrag:function(t){var e=t.deltaY-this.oldDeltaY,i=(this.data.container_size-this.data.handle_size)/(this.data.content_size-this.data.container_size);e<0&&e>-i&&(e=-i),e>0&&e<i&&(e=i);var n=(this.data.handle_pos+e)/(this.data.container_size-this.data.handle_size),o=(n=Math.min(Math.max(n,0),1))*(this.data.content_size-this.data.container_size);this.$input.scrollTop(o),this.oldDeltaY=t.deltaY},stopScrollDrag:function(t){this.$scroll.removeClass("dragging")},keyDown:function(){this.st=this.$input[0].selectionStart,this.ed=this.$input[0].selectionEnd},resizeTextArea:function(){try{this.$input.css("background-position")}catch(t){return}var t=this.$input.val(),e=this.$input.scrollTop();if(this.options.disableMultiline&&(a=t.split("\n").join(""))!=t)return this.$input.val(a),n.a.defer(n.a.bind((function(){this.$input[0].selectionStart=this.st,this.$input[0].selectionEnd=this.ed}),this)),void this.resizeTextArea();var i=this.calcHeight();if(i>this.options.maxHeight){if(t.length-this.prevText.length==1)this.$input.val(this.prevText);else{for(var o=0,s=t.length-1;o<s;){var r=Math.floor((o+s)/2),a=t.substring(0,r+1);this.$input.val(a),(i=this.calcHeight())>this.options.maxHeight?s=r:o=r+1}this.$input.val(t.substring(0,s))}return n.a.defer(n.a.bind((function(){this.$input[0].selectionStart=this.st,this.$input[0].selectionEnd=this.ed}),this)),void this.resizeTextArea()}i>this.options.maxVisibleHeight?(this.$input.height(this.options.maxVisibleHeight),this.data.container_size=this.options.maxVisibleHeight,this.data.content_size=i):(this.$input.height(i),this.data.container_size=i,this.data.content_size=i),this.options.onChange&&this.options.onChange(t),this.$input.scrollTop(e),this.prevText=t,this.recalcScroll()},calcHeight:function(){return this.$input.height(0),this.$input.scrollTop("9999"),this.$input.height()+this.$input.scrollTop()}};var o=t(this),s=new i(e,o);return s.initialize(),o.data("autoresize",s),this}}(jQuery)},sIM0:function(t,e){jQuery.keycodes={enter:13,esc:27,tab:9,alt:18,shift:16,pgUp:33,pgDn:34,left:37,right:39,up:38,down:40,del:46,backspace:8,f:70,comma:188,g:71,h:72,s:83,w:87,v:86,x:88,b:66,m:77,a:65}},"sa/m":function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each((function(){t(this).dotdotdot(e)}));var o=this,s=o.contents();o.data("dotdotdot")&&o.trigger("destroy.dot"),o.data("dotdotdot-style",o.attr("style")||""),o.css("word-wrap","break-word"),"nowrap"===o.css("white-space")&&o.css("white-space","normal"),o.bind_events=function(){return o.bind("update.dot",(function(e,n){switch(o.removeClass("is-truncated"),e.preventDefault(),e.stopPropagation(),i(u.height)){case"number":u.maxHeight=u.height;break;case"function":u.maxHeight=u.height.call(o[0]);break;default:u.maxHeight=function(t){for(var e=t.innerHeight(),i=["paddingTop","paddingBottom"],n=0,o=i.length;n<o;n++){var s=parseInt(t.css(i[n]),10);isNaN(s)&&(s=0),e-=s}return e}(o)}u.maxHeight+=u.tolerance,void 0!==n&&(("string"==typeof n||"nodeType"in n&&1===n.nodeType)&&(n=t("<div />").append(n).contents()),n instanceof t&&(s=n)),(m=o.wrapInner('<div class="dotdotdot" />').children()).contents().detach().end().append(s.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var l=!1,p=!1;return f.afterElement&&((l=f.afterElement.clone(!0)).show(),f.afterElement.detach()),r(m,u)&&(p="children"==u.wrap?function(t,e,i){var n=t.children(),o=!1;t.empty();for(var s=0,a=n.length;s<a;s++){var l=n.eq(s);if(t.append(l),i&&t.append(i),r(t,e)){l.remove(),o=!0;break}i&&i.detach()}return o}(m,u,l):function e(i,n,o,s,l){var u=!1;return i.contents().detach().each((function(){var f=this,p=t(f);if(void 0===f)return!0;if(p.is("script, .dotdotdot-keep"))i.append(p);else{if(u)return!0;i.append(p),!l||p.is(s.after)||p.find(s.after).length||i[i.is("a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](l),r(o,s)&&(u=3==f.nodeType?function(e,i,n,o,s){var l=e[0];if(!l)return!1;var u=h(l),f=-1!==u.indexOf(" ")?" ":"　",p="letter"==o.wrap?"":f,g=u.split(p),m=-1,v=-1,_=0,b=g.length-1;o.fallbackToLetter&&0==_&&0==b&&(p="",g=u.split(p),b=g.length-1);for(;_<=b&&(0!=_||0!=b);){var w=Math.floor((_+b)/2);if(w==v)break;v=w,c(l,g.slice(0,v+1).join(p)+o.ellipsis),n.children().each((function(){t(this).toggle().toggle()})),r(n,o)?(b=v,o.fallbackToLetter&&0==_&&0==b&&(p="",g=g[0].split(p),m=-1,v=-1,_=0,b=g.length-1)):(m=v,_=v)}if(-1==m||1==g.length&&0==g[0].length){var y=e.parent();e.detach();var x=s&&s.closest(y).length?s.length:0;y.contents().length>x?l=d(y.contents().eq(-1-x),i):(l=d(y,i,!0),x||y.detach()),l&&(u=a(h(l),o),c(l,u),x&&s&&t(l).parent().append(s))}else u=a(g.slice(0,m+1).join(p),o),c(l,u);return!0}(p,n,o,s,l):e(p,n,o,s,l)),u||l&&l.detach()}})),n.addClass("is-truncated"),u}(m,o,m,u,l)),m.replaceWith(m.contents()),m=null,t.isFunction(u.callback)&&u.callback.call(o[0],p,s),f.isTruncated=p,p})).bind("isTruncated.dot",(function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(o[0],f.isTruncated),f.isTruncated})).bind("originalContent.dot",(function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(o[0],s),s})).bind("destroy.dot",(function(t){t.preventDefault(),t.stopPropagation(),o.unwatch().unbind_events().contents().detach().end().append(s).attr("style",o.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)})),o},o.unbind_events=function(){return o.unbind(".dot"),o},o.watch=function(){if(o.unwatch(),"window"==u.watch){var e=t(window),i=e.width(),n=e.height();e.bind("resize.dot"+f.dotId,(function(){i==e.width()&&n==e.height()&&u.windowResizeFix||(i=e.width(),n=e.height(),g&&clearInterval(g),g=setTimeout((function(){o.trigger("update.dot")}),100))}))}else p=l(o),g=setInterval((function(){if(o.is(":visible")){var t=l(o);p.width==t.width&&p.height==t.height||(o.trigger("update.dot"),p=t)}}),500);return o},o.unwatch=function(){return t(window).unbind("resize.dot"+f.dotId),g&&clearInterval(g),o};var u=t.extend(!0,{},t.fn.dotdotdot.defaults,e),f={},p={},g=null,m=null;return u.lastCharacter.remove instanceof Array||(u.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),u.lastCharacter.noEllipsis instanceof Array||(u.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),f.afterElement=function(e,i){if(!e)return!1;if("string"==typeof e)return!!(e=t(e,i)).length&&e;return!!e.jquery&&e}(u.after,o),f.isTruncated=!1,f.dotId=n++,o.data("dotdotdot",!0).bind_events().trigger("update.dot"),u.watch&&o.watch(),o},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var n=1,o=t.fn.html;t.fn.html=function(e){return null!=e&&!t.isFunction(e)&&this.data("dotdotdot")?this.trigger("update",[e]):o.apply(this,arguments)};var s=t.fn.text;t.fn.text=function(e){return null!=e&&!t.isFunction(e)&&this.data("dotdotdot")?(e=t("<div />").text(e).html(),this.trigger("update",[e])):s.apply(this,arguments)}}function r(t,e){return t.innerHeight()>e.maxHeight}function a(e,i){for(;t.inArray(e.slice(-1),i.lastCharacter.remove)>-1;)e=e.slice(0,-1);return t.inArray(e.slice(-1),i.lastCharacter.noEllipsis)<0&&(e+=i.ellipsis),e}function l(t){return{width:t.innerWidth(),height:t.innerHeight()}}function c(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function h(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function u(t){do{t=t.previousSibling}while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function d(e,i,n){var o,s=e&&e[0];if(s){if(!n){if(3===s.nodeType)return s;if(t.trim(e.text()))return d(e.contents().last(),i)}for(o=u(s);!o;){if((e=e.parent()).is(i)||!e.length)return!1;o=u(e[0])}if(o)return d(t(o),i)}return!1}}(jQuery),jQuery(document).ready((function(t){t(".dot-ellipsis").each((function(){var e=t(this).hasClass("dot-resize-update"),i=t(this).hasClass("dot-timer-update"),n=0,o=t(this).attr("class").split(/\s+/);t.each(o,(function(t,e){var i=e.match(/^dot-height-(\d+)$/);null!==i&&(n=Number(i[1]))}));var s=new Object;i&&(s.watch=!0),e&&(s.watch="window"),n>0&&(s.height=n),t(this).dotdotdot(s)}))}))},tPNG:function(t,e){!function(t){t.fn.RMSwitcher=function(e,i){var n=t(this),o=new function(e,i){"use strict";var o,s,r,a,l;this.settings={width:64,height:28,shadow:"inset 0 1px 1px rgba(0, 0, 0, 0.32)","color-0":"#1ce4c8","text-0":"On","text-size-0":12,"text-color-0":"#ffffff","color-1":"#989ea8","text-1":"Off","text-size-1":12,"text-color-1":"#ffffff","handle-color-top":"#f5f5f5","handle-color-bottom":"#e7e7e7","handle-shadow":"0 0 0 1px rgba(40, 40, 40, 0.12)",state:!1},e&&t.extend(this.settings,e);this.settings["color-array-0"]=S(this.settings["color-0"]),this.settings["color-array-1"]=S(this.settings["color-1"]);var c=this.settings.height-2,h=2*(this.settings.width-c-1)+c,u=Math.round(.75*this.settings.width-8-8),d=this.settings.width-h,f="-webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; position:relative; cursor:pointer; width:"+this.settings.width+"px; height:"+this.settings.height+"px; box-shadow:"+this.settings.shadow+"; overflow:hidden; border-radius: "+Math.floor(this.settings.height/2)+"px;",p="position:relative; top:0; width:"+h+"px; height:"+this.settings.height+"px;",g="position:absolute; top:0; width:"+u+"px; white-space:nowrap; text-align:center; overflow:hidden; text-overflow:ellipsis; line-height:"+this.settings.height+"px;",m=g+"font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Ubuntu, 'Fira Sans', Roboto, 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:"+this.settings["text-size-0"]+"px; color:"+this.settings["text-color-0"]+"; left:6px",v=g+"font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Ubuntu, 'Fira Sans', Roboto, 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:"+this.settings["text-size-1"]+"px; color:"+this.settings["text-color-1"]+"; right:6px",_=this.settings["handle-color-top"],b=this.settings["handle-color-bottom"],w="background: "+M(S(_),S(b),.5)+"; background: -webkit-gradient(linear, left top, left bottom, from("+_+"), to("+b+")); background: -moz-linear-gradient(top,  "+_+",  "+b+"); background: -o-linear-gradient(top,  "+_+",  "+b+"); background: -ms-linear-gradient(top,  "+_+",  "+b+");",y="position:absolute; top:1px; left:50%; margin-left:-"+Math.floor(c/2)+"px;width:"+c+"px; height:"+c+"px; border-radius: "+Math.floor(c/2)+"px; box-shadow:"+this.settings["handle-shadow"]+"; "+w,x='<div class="rmswitcher-body" style="'+f+'">\t\t\t\t\t\t<div class="rmswitcher-panel-back"></div>\t\t\t\t\t\t<div class="rmswitcher-panel" style="'+p+'">\t\t\t\t\t\t\t<div class="rmswitcher-panel-on" style="'+m+'">'+this.settings["text-0"]+'</div>\t\t\t\t\t\t\t<div class="rmswitcher-panel-off" style="'+v+'">'+this.settings["text-1"]+'</div>\t\t\t\t\t\t\t<div class="rmswitcher-panel-slider" style="'+y+'"></div>\t\t\t\t\t\t</div>\t\t\t\t\t </div>';n.append(x),s=n.find(".rmswitcher-body"),o=n.find(".rmswitcher-panel"),r=n.find(".rmswitcher-panel-back"),o.on("click",(function(){if(l)return;k(!C.settings.state)}));var C=this;T(this.settings.state?0:1),this.setState=k,this.setDisabled=function(t){if(void 0===t)return;l=t=!!t,s.css({opacity:t?.5:1,cursor:t?"default":"pointer"})},this.setUndefinedState=function(){T(.5),C.settings.state=void 0},this.settings.disabled&&this.setDisabled(!0);function k(t,e){C.settings.state!=t&&"function"==typeof i&&(e||(C.settings.state=t,i(t,C))),C.settings.state=t,clearInterval(a),a=setInterval((function(){!function(t){var e=(t=t?0:1)<C.settings.cur_state?-1:1,i=Math.max(Math.min(C.settings.cur_state+.1*e,1),0);(e>0&&i>=t||e<0&&i<=t)&&(i=t,clearInterval(a));T(i)}(t)}),20)}function T(t){C.settings.cur_state=t,s.css("background-color",M(C.settings["color-array-0"],C.settings["color-array-1"],t)),o.css("left",Math.round(d*t)),r.css("opacity",(1-t).toFixed(2))}function S(t){return[parseInt(t.substring(1,3),16),parseInt(t.substring(3,5),16),parseInt(t.substring(5,7),16)]}function M(t,e,i){return"rgb("+Math.max(Math.min(parseInt(i*(e[0]-t[0])+t[0],10),255),0)+","+Math.max(Math.min(parseInt(i*(e[1]-t[1])+t[1],10),255),0)+","+Math.max(Math.min(parseInt(i*(e[2]-t[2])+t[2],10),255),0)+")"}return this}(e,i);return n.data("switcher",o),this}}(jQuery)},wAnu:function(t,e){function i(t,e){"use strict";var i=function(){},n=function(t){setTimeout(t||i,0)},o=!!window.addEventListener,s="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,r=function(t){var e=["transitionProperty","WebkitTransition","MozTransition","OTransition","msTransition"];for(var i in e)if(void 0!==t.style[e[i]])return!0;return!1}(document.createElement("swipe"));if(t){var a,l,c,h,u=t.children[0];e=e||{};var d=parseInt(e.startSlide,10)||0,f=e.speed||300;e.continuous=void 0===e.continuous||e.continuous;var p,g,m=e.auto||0,v={},_={},b={handleEvent:function(t){switch(t.type){case"touchstart":this.start(t);break;case"touchmove":this.move(t);break;case"touchend":n(this.end(t));break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"otransitionend":case"transitionend":n(this.transitionEnd(t));break;case"resize":n(w)}e.stopPropagation&&t.stopPropagation()},start:function(t){var e=t.touches[0];v={x:e.pageX,y:e.pageY,time:+new Date},g=void 0,_={},u.addEventListener("touchmove",this,!1),u.addEventListener("touchend",this,!1)},move:function(t){if(!(t.touches.length>1||t.scale&&1!==t.scale)){e.disableScroll&&t.preventDefault();var i=t.touches[0];_={x:i.pageX-v.x,y:i.pageY-v.y},void 0===g&&(g=!!(g||Math.abs(_.x)<Math.abs(_.y))),g||(t.preventDefault(),M(),e.continuous?(T(x(d-1),_.x+l[x(d-1)],0),T(d,_.x+l[d],0),T(x(d+1),_.x+l[x(d+1)],0)):(_.x=_.x/(!d&&_.x>0||d==a.length-1&&_.x<0?Math.abs(_.x)/c+1:1),T(d-1,_.x+l[d-1],0),T(d,_.x+l[d],0),T(d+1,_.x+l[d+1],0)))}},end:function(t){var i=+new Date-v.time,n=Number(i)<250&&Math.abs(_.x)>20||Math.abs(_.x)>c/2,o=!d&&_.x>0||d==a.length-1&&_.x<0;e.continuous&&(o=!1);var s=_.x<0;g||(n&&!o?(s?(e.continuous?(k(x(d-1),-c,0),k(x(d+2),c,0)):k(d-1,-c,0),k(d,l[d]-c,f),k(x(d+1),l[x(d+1)]-c,f),d=x(d+1)):(e.continuous?(k(x(d+1),c,0),k(x(d-2),-c,0)):k(d+1,c,0),k(d,l[d]+c,f),k(x(d-1),l[x(d-1)]+c,f),d=x(d-1)),e.callback&&e.callback(d,a[d])):e.continuous?(k(x(d-1),-c,f),k(d,0,f),k(x(d+1),c,f)):(k(d-1,-c,f),k(d,0,f),k(d+1,c,f))),u.removeEventListener("touchmove",b,!1),u.removeEventListener("touchend",b,!1)},transitionEnd:function(t){parseInt(t.target.getAttribute("data-index"),10)==d&&(m&&S(),e.transitionEnd&&e.transitionEnd.call(t,d,a[d]))}};return w(),m&&S(),o?(s&&u.addEventListener("touchstart",b,!1),r&&(u.addEventListener("webkitTransitionEnd",b,!1),u.addEventListener("msTransitionEnd",b,!1),u.addEventListener("oTransitionEnd",b,!1),u.addEventListener("otransitionend",b,!1),u.addEventListener("transitionend",b,!1)),window.addEventListener("resize",b,!1)):window.onresize=function(){w()},{setup:function(){w()},slide:function(t,e){M(),C(t,e)},prev:function(){M(),(e.continuous||d)&&C(d-1)},next:function(){M(),y()},stop:function(){M()},getPos:function(){return d},getNumSlides:function(){return h},kill:function(){M(),u.style.width="",u.style.left="";for(var t=a.length;t--;){var e=a[t];e.style.width="",e.style.left="",r&&T(t,0,0)}o?(u.removeEventListener("touchstart",b,!1),u.removeEventListener("webkitTransitionEnd",b,!1),u.removeEventListener("msTransitionEnd",b,!1),u.removeEventListener("oTransitionEnd",b,!1),u.removeEventListener("otransitionend",b,!1),u.removeEventListener("transitionend",b,!1),window.removeEventListener("resize",b,!1)):window.onresize=null}}}function w(){a=u.children,h=a.length,a.length<2&&(e.continuous=!1),r&&e.continuous&&a.length<3&&(u.appendChild(a[0].cloneNode(!0)),u.appendChild(u.children[1].cloneNode(!0)),a=u.children),l=new Array(a.length),c=t.getBoundingClientRect().width||t.offsetWidth,u.style.width=a.length*c+"px";for(var i=a.length;i--;){var n=a[i];n.style.width=c+"px",n.setAttribute("data-index",i),r&&(n.style.left=i*-c+"px",k(i,d>i?-c:d<i?c:0,0))}e.continuous&&r&&(k(x(d-1),-c,0),k(x(d+1),c,0)),r||(u.style.left=d*-c+"px"),t.style.visibility="visible"}function y(){(e.continuous||d<a.length-1)&&C(d+1)}function x(t){return(a.length+t%a.length)%a.length}function C(t,i){if(d!=t){if(r){var o=Math.abs(d-t)/(d-t);if(e.continuous){var s=o;(o=-l[x(t)]/c)!==s&&(t=-o*a.length+t)}for(var h=Math.abs(d-t)-1;h--;)k(x((t>d?t:d)-h-1),c*o,0);t=x(t),k(d,c*o,i||f),k(t,0,i||f),e.continuous&&k(x(t-o),-c*o,0)}else t=x(t),function(t,i,n){if(!n)return void(u.style.left=i+"px");var o=+new Date,s=setInterval((function(){var r=+new Date-o;if(r>n)return u.style.left=i+"px",m&&S(),e.transitionEnd&&e.transitionEnd.call(event,d,a[d]),void clearInterval(s);u.style.left=(i-t)*(Math.floor(r/n*100)/100)+t+"px"}),4)}(d*-c,t*-c,i||f);d=t,n(e.callback&&e.callback(d,a[d]))}}function k(t,e,i){T(t,e,i),l[t]=e}function T(t,e,i){var n=a[t],o=n&&n.style;o&&(o.webkitTransitionDuration=o.MozTransitionDuration=o.msTransitionDuration=o.OTransitionDuration=o.transitionDuration=i+"ms",o.webkitTransform="translate("+e+"px,0)translateZ(0)",o.msTransform=o.MozTransform=o.OTransform="translateX("+e+"px)")}function S(){p=setTimeout(y,m)}function M(){m=0,clearTimeout(p)}}(window.jQuery||window.Zepto)&&function(t){t.fn.Swipe=function(e){return this.each((function(){t(this).data("Swipe",new i(t(this)[0],e))}))}}(window.jQuery||window.Zepto)},xOFd:function(t,e){!function(t){"use strict";!function(t){function e(e){var i="dragover"===e;return function(n){n.dataTransfer=n.originalEvent&&n.originalEvent.dataTransfer;var o=n.dataTransfer;o&&-1!==t.inArray("Files",o.types)&&!1!==this._trigger(e,t.Event(e,{delegatedEvent:n}))&&(n.preventDefault(),i&&(o.dropEffect="copy"))}}t.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||t('<input type="file">').prop("disabled")),t.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),t.support.xhrFormDataFileUpload=!!window.FormData,t.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),t.widget("blueimp.fileupload",{options:{dropZone:t(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(e,i){return e=this.messages[e]||e.toString(),i&&t.each(i,(function(t,i){e=e.replace("{"+t+"}",i)})),e},formData:function(t){return t.serializeArray()},add:function(e,i){if(e.isDefaultPrevented())return!1;(i.autoUpload||!1!==i.autoUpload&&t(this).fileupload("option","autoUpload"))&&i.process().done((function(){i.submit()}))},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:t.support.blobSlice&&function(){var t=this.slice||this.webkitSlice||this.mozSlice;return t.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(t,e,i){var n=t-this.timestamp;return(!this.bitrate||!i||n>i)&&(this.bitrate=(e-this.loaded)*(1e3/n)*8,this.loaded=e,this.timestamp=t),this.bitrate}},_isXHRUpload:function(e){return!e.forceIframeTransport&&(!e.multipart&&t.support.xhrFileUpload||t.support.xhrFormDataFileUpload)},_getFormData:function(e){var i;return"function"===t.type(e.formData)?e.formData(e.form):t.isArray(e.formData)?e.formData:"object"===t.type(e.formData)?(i=[],t.each(e.formData,(function(t,e){i.push({name:t,value:e})})),i):[]},_getTotal:function(e){var i=0;return t.each(e,(function(t,e){i+=e.size||1})),i},_initProgressObject:function(e){var i={loaded:0,total:0,bitrate:0};e._progress?t.extend(e._progress,i):e._progress=i},_initResponseObject:function(t){var e;if(t._response)for(e in t._response)t._response.hasOwnProperty(e)&&delete t._response[e];else t._response={}},_onProgress:function(e,i){if(e.lengthComputable){var n,o=Date.now?Date.now():(new Date).getTime();if(i._time&&i.progressInterval&&o-i._time<i.progressInterval&&e.loaded!==e.total)return;i._time=o,n=Math.floor(e.loaded/e.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0),this._progress.loaded+=n-i._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(o,this._progress.loaded,i.bitrateInterval),i._progress.loaded=i.loaded=n,i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(o,n,i.bitrateInterval),this._trigger("progress",t.Event("progress",{delegatedEvent:e}),i),this._trigger("progressall",t.Event("progressall",{delegatedEvent:e}),this._progress)}},_initProgressListener:function(e){var i=this,n=e.xhr?e.xhr():t.ajaxSettings.xhr();n.upload&&(t(n.upload).bind("progress",(function(t){var n=t.originalEvent;t.lengthComputable=n.lengthComputable,t.loaded=n.loaded,t.total=n.total,i._onProgress(t,e)})),e.xhr=function(){return n})},_isInstanceOf:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"},_initXHRData:function(e){var i,n=this,o=e.files[0],s=e.multipart||!t.support.xhrFileUpload,r="array"===t.type(e.paramName)?e.paramName[0]:e.paramName;e.headers=t.extend({},e.headers),e.contentRange&&(e.headers["Content-Range"]=e.contentRange),s&&!e.blob&&this._isInstanceOf("File",o)||(e.headers["Content-Disposition"]='attachment; filename="'+encodeURI(o.name)+'"'),s?t.support.xhrFormDataFileUpload&&(e.postMessage?(i=this._getFormData(e),e.blob?i.push({name:r,value:e.blob}):t.each(e.files,(function(n,o){i.push({name:"array"===t.type(e.paramName)&&e.paramName[n]||r,value:o})}))):(n._isInstanceOf("FormData",e.formData)?i=e.formData:(i=new FormData,t.each(this._getFormData(e),(function(t,e){i.append(e.name,e.value)}))),e.blob?i.append(r,e.blob,o.name):t.each(e.files,(function(o,s){(n._isInstanceOf("File",s)||n._isInstanceOf("Blob",s))&&i.append("array"===t.type(e.paramName)&&e.paramName[o]||r,s,s.uploadName||s.name)}))),e.data=i):(e.contentType=o.type||"application/octet-stream",e.data=e.blob||o),e.blob=null},_initIframeSettings:function(e){var i=t("<a></a>").prop("href",e.url).prop("host");e.dataType="iframe "+(e.dataType||""),e.formData=this._getFormData(e),e.redirect&&i&&i!==location.host&&e.formData.push({name:e.redirectParamName||"redirect",value:e.redirect})},_initDataSettings:function(t){this._isXHRUpload(t)?(this._chunkedUpload(t,!0)||(t.data||this._initXHRData(t),this._initProgressListener(t)),t.postMessage&&(t.dataType="postmessage "+(t.dataType||""))):this._initIframeSettings(t)},_getParamName:function(e){var i=t(e.fileInput),n=e.paramName;return n?t.isArray(n)||(n=[n]):(n=[],i.each((function(){for(var e=t(this),i=e.prop("name")||"files[]",o=(e.prop("files")||[1]).length;o;)n.push(i),o-=1})),n.length||(n=[i.prop("name")||"files[]"])),n},_initFormSettings:function(e){e.form&&e.form.length||(e.form=t(e.fileInput.prop("form")),e.form.length||(e.form=t(this.options.fileInput.prop("form")))),e.paramName=this._getParamName(e),e.url||(e.url=e.form.prop("action")||location.href),e.type=(e.type||"string"===t.type(e.form.prop("method"))&&e.form.prop("method")||"").toUpperCase(),"POST"!==e.type&&"PUT"!==e.type&&"PATCH"!==e.type&&(e.type="POST"),e.formAcceptCharset||(e.formAcceptCharset=e.form.attr("accept-charset"))},_getAJAXSettings:function(e){var i=t.extend({},this.options,e);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(t){return t.state?t.state():t.isResolved()?"resolved":t.isRejected()?"rejected":"pending"},_enhancePromise:function(t){return t.success=t.done,t.error=t.fail,t.complete=t.always,t},_getXHRPromise:function(e,i,n){var o=t.Deferred(),s=o.promise();return i=i||this.options.context||s,!0===e?o.resolveWith(i,n):!1===e&&o.rejectWith(i,n),s.abort=o.promise,this._enhancePromise(s)},_addConvenienceMethods:function(e,i){var n=this,o=function(e){return t.Deferred().resolveWith(n,e).promise()};i.process=function(e,s){return(e||s)&&(i._processQueue=this._processQueue=(this._processQueue||o([this])).then((function(){return i.errorThrown?t.Deferred().rejectWith(n,[i]).promise():o(arguments)})).then(e,s)),this._processQueue||o([this])},i.submit=function(){return"pending"!==this.state()&&(i.jqXHR=this.jqXHR=!1!==n._trigger("submit",t.Event("submit",{delegatedEvent:e}),this)&&n._onSend(e,this)),this.jqXHR||n._getXHRPromise()},i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",n._trigger("fail",null,this),n._getXHRPromise(!1))},i.state=function(){return this.jqXHR?n._getDeferredState(this.jqXHR):this._processQueue?n._getDeferredState(this._processQueue):void 0},i.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===n._getDeferredState(this._processQueue)},i.progress=function(){return this._progress},i.response=function(){return this._response}},_getUploadedBytes:function(t){var e=t.getResponseHeader("Range"),i=e&&e.split("-"),n=i&&i.length>1&&parseInt(i[1],10);return n&&n+1},_chunkedUpload:function(e,i){e.uploadedBytes=e.uploadedBytes||0;var n,o,s=this,r=e.files[0],a=r.size,l=e.uploadedBytes,c=e.maxChunkSize||a,h=this._blobSlice,u=t.Deferred(),d=u.promise();return!(!(this._isXHRUpload(e)&&h&&(l||c<a))||e.data)&&(!!i||(l>=a?(r.error=e.i18n("uploadedBytes"),this._getXHRPromise(!1,e.context,[null,"error",r.error])):(o=function(){var i=t.extend({},e),d=i._progress.loaded;i.blob=h.call(r,l,l+c,r.type),i.chunkSize=i.blob.size,i.contentRange="bytes "+l+"-"+(l+i.chunkSize-1)+"/"+a,s._initXHRData(i),s._initProgressListener(i),n=(!1!==s._trigger("chunksend",null,i)&&t.ajax(i)||s._getXHRPromise(!1,i.context)).done((function(n,r,c){l=s._getUploadedBytes(c)||l+i.chunkSize,d+i.chunkSize-i._progress.loaded&&s._onProgress(t.Event("progress",{lengthComputable:!0,loaded:l-i.uploadedBytes,total:l-i.uploadedBytes}),i),e.uploadedBytes=i.uploadedBytes=l,i.result=n,i.textStatus=r,i.jqXHR=c,s._trigger("chunkdone",null,i),s._trigger("chunkalways",null,i),l<a?o():u.resolveWith(i.context,[n,r,c])})).fail((function(t,e,n){i.jqXHR=t,i.textStatus=e,i.errorThrown=n,s._trigger("chunkfail",null,i),s._trigger("chunkalways",null,i),u.rejectWith(i.context,[t,e,n])}))},this._enhancePromise(d),d.abort=function(){return n.abort()},o(),d)))},_beforeSend:function(t,e){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(e),this._initProgressObject(e),e._progress.loaded=e.loaded=e.uploadedBytes||0,e._progress.total=e.total=this._getTotal(e.files)||1,e._progress.bitrate=e.bitrate=0,this._active+=1,this._progress.loaded+=e.loaded,this._progress.total+=e.total},_onDone:function(e,i,n,o){var s=o._progress.total,r=o._response;o._progress.loaded<s&&this._onProgress(t.Event("progress",{lengthComputable:!0,loaded:s,total:s}),o),r.result=o.result=e,r.textStatus=o.textStatus=i,r.jqXHR=o.jqXHR=n,this._trigger("done",null,o)},_onFail:function(t,e,i,n){var o=n._response;n.recalculateProgress&&(this._progress.loaded-=n._progress.loaded,this._progress.total-=n._progress.total),o.jqXHR=n.jqXHR=t,o.textStatus=n.textStatus=e,o.errorThrown=n.errorThrown=i,this._trigger("fail",null,n)},_onAlways:function(t,e,i,n){this._trigger("always",null,n)},_onSend:function(e,i){i.submit||this._addConvenienceMethods(e,i);var n,o,s,r,a=this,l=a._getAJAXSettings(i),c=function(){return a._sending+=1,l._bitrateTimer=new a._BitrateTimer,n=n||((o||!1===a._trigger("send",t.Event("send",{delegatedEvent:e}),l))&&a._getXHRPromise(!1,l.context,o)||a._chunkedUpload(l)||t.ajax(l)).done((function(t,e,i){a._onDone(t,e,i,l)})).fail((function(t,e,i){a._onFail(t,e,i,l)})).always((function(t,e,i){if(a._onAlways(t,e,i,l),a._sending-=1,a._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>a._sending)for(var n=a._slots.shift();n;){if("pending"===a._getDeferredState(n)){n.resolve();break}n=a._slots.shift()}0===a._active&&a._trigger("stop")}))};return this._beforeSend(e,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(s=t.Deferred(),this._slots.push(s),r=s.then(c)):(this._sequence=this._sequence.then(c,c),r=this._sequence),r.abort=function(){return o=[void 0,"abort","abort"],n?n.abort():(s&&s.rejectWith(l.context,o),c())},this._enhancePromise(r)):c()},_onAdd:function(e,i){var n,o,s,r,a=this,l=!0,c=t.extend({},this.options,i),h=i.files,u=h.length,d=c.limitMultiFileUploads,f=c.limitMultiFileUploadSize,p=c.limitMultiFileUploadSizeOverhead,g=0,m=this._getParamName(c),v=0;if(!u)return!1;if(f&&void 0===h[0].size&&(f=void 0),(c.singleFileUploads||d||f)&&this._isXHRUpload(c))if(c.singleFileUploads||f||!d)if(!c.singleFileUploads&&f)for(s=[],n=[],r=0;r<u;r+=1)g+=h[r].size+p,(r+1===u||g+h[r+1].size+p>f||d&&r+1-v>=d)&&(s.push(h.slice(v,r+1)),(o=m.slice(v,r+1)).length||(o=m),n.push(o),v=r+1,g=0);else n=m;else for(s=[],n=[],r=0;r<u;r+=d)s.push(h.slice(r,r+d)),(o=m.slice(r,r+d)).length||(o=m),n.push(o);else s=[h],n=[m];return i.originalFiles=h,t.each(s||h,(function(o,r){var c=t.extend({},i);return c.files=s?r:[r],c.paramName=n[o],a._initResponseObject(c),a._initProgressObject(c),a._addConvenienceMethods(e,c),l=a._trigger("add",t.Event("add",{delegatedEvent:e}),c)})),l},_replaceFileInput:function(e){var i=e.fileInput,n=i.clone(!0),o=i.is(document.activeElement);e.fileInputClone=n,t("<form></form>").append(n)[0].reset(),i.after(n).detach(),o&&n.focus(),t.cleanData(i.unbind("remove")),this.options.fileInput=this.options.fileInput.map((function(t,e){return e===i[0]?n[0]:e})),i[0]===this.element[0]&&(this.element=n)},_handleFileTreeEntry:function(e,i){var n,o=this,s=t.Deferred(),r=function(t){t&&!t.entry&&(t.entry=e),s.resolve([t])},a=[];return i=i||"",e.isFile?e._file?(e._file.relativePath=i,s.resolve(e._file)):e.file((function(t){t.relativePath=i,s.resolve(t)}),r):e.isDirectory?(n=e.createReader(),function t(){n.readEntries((function(n){n.length?(a=a.concat(n),t()):function(t){o._handleFileTreeEntries(t,i+e.name+"/").done((function(t){s.resolve(t)})).fail(r)}(a)}),r)}()):s.resolve([]),s.promise()},_handleFileTreeEntries:function(e,i){var n=this;return t.when.apply(t,t.map(e,(function(t){return n._handleFileTreeEntry(t,i)}))).then((function(){return Array.prototype.concat.apply([],arguments)}))},_getDroppedFiles:function(e){var i=(e=e||{}).items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(t.map(i,(function(t){var e;return t.webkitGetAsEntry?((e=t.webkitGetAsEntry())&&(e._file=t.getAsFile()),e):t.getAsEntry()}))):t.Deferred().resolve(t.makeArray(e.files)).promise()},_getSingleFileInputFiles:function(e){var i,n,o=(e=t(e)).prop("webkitEntries")||e.prop("entries");if((o=[])&&o.length)return this._handleFileTreeEntries(o);if((i=t.makeArray(e.prop("files"))).length)void 0===i[0].name&&i[0].fileName&&t.each(i,(function(t,e){e.name=e.fileName,e.size=e.fileSize}));else{if(!(n=e.prop("value")))return t.Deferred().resolve([]).promise();i=[{name:n.replace(/^.*\\/,"")}]}return t.Deferred().resolve(i).promise()},_getFileInputFiles:function(e){return e instanceof t&&1!==e.length?t.when.apply(t,t.map(e,this._getSingleFileInputFiles)).then((function(){return Array.prototype.concat.apply([],arguments)})):this._getSingleFileInputFiles(e)},_onChange:function(e){var i=this,n={fileInput:t(e.target),form:t(e.target.form)};this._getFileInputFiles(n.fileInput).always((function(o){n.files=o,i.options.replaceFileInput&&i._replaceFileInput(n),!1!==i._trigger("change",t.Event("change",{delegatedEvent:e}),n)&&i._onAdd(e,n)}))},_onPaste:function(e){var i=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,n={files:[]};i&&i.length&&(t.each(i,(function(t,e){var i=e.getAsFile&&e.getAsFile();i&&n.files.push(i)})),!1!==this._trigger("paste",t.Event("paste",{delegatedEvent:e}),n)&&this._onAdd(e,n))},_onDrop:function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var i=this,n=e.dataTransfer,o={};n&&n.files&&n.files.length&&(e.preventDefault(),this._getDroppedFiles(n).always((function(n){o.files=n,!1!==i._trigger("drop",t.Event("drop",{delegatedEvent:e}),o)&&i._onAdd(e,o)})))},_onDragOver:e("dragover"),_onDragEnter:e("dragenter"),_onDragLeave:e("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),t.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(e,i){var n=-1!==t.inArray(e,this._specialOptions);n&&this._destroyEventHandlers(),this._super(e,i),n&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var e=this.options;void 0===e.fileInput?e.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):e.fileInput instanceof t||(e.fileInput=t(e.fileInput)),e.dropZone instanceof t||(e.dropZone=t(e.dropZone)),e.pasteZone instanceof t||(e.pasteZone=t(e.pasteZone))},_getRegExp:function(t){var e=t.split("/"),i=e.pop();return e.shift(),new RegExp(e.join("/"),i)},_isRegExpOption:function(e,i){return"url"!==e&&"string"===t.type(i)&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var e=this,i=this.options,n=this.element.data();t.each(this.element[0].attributes,(function(t,o){var s,r=o.name.toLowerCase();/^data-/.test(r)&&(r=r.slice(5).replace(/-[a-z]/g,(function(t){return t.charAt(1).toUpperCase()})),s=n[r],e._isRegExpOption(r,s)&&(s=e._getRegExp(s)),i[r]=s)}))},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(e){var i=this;e&&!this.options.disabled&&(e.fileInput&&!e.files?this._getFileInputFiles(e.fileInput).always((function(t){e.files=t,i._onAdd(null,e)})):(e.files=t.makeArray(e.files),this._onAdd(null,e)))},send:function(e){if(e&&!this.options.disabled){if(e.fileInput&&!e.files){var i,n,o=this,s=t.Deferred(),r=s.promise();return r.abort=function(){return n=!0,i?i.abort():(s.reject(null,"abort","abort"),r)},this._getFileInputFiles(e.fileInput).always((function(t){n||(t.length?(e.files=t,(i=o._onSend(null,e)).then((function(t,e,i){s.resolve(t,e,i)}),(function(t,e,i){s.reject(t,e,i)}))):s.reject())})),this._enhancePromise(r)}if(e.files=t.makeArray(e.files),e.files.length)return this._onSend(null,e)}return this._getXHRPromise(!1,e&&e.context)}})}(window.jQuery)}()},xi34:function(t,e,i){"use strict";var n=i("EVdn").noConflict(!0);window.$=window.jQuery=n,i("1X2N"),i("IQCz"),i("sa/m"),i("Hx4W"),i("xOFd"),i("sIM0"),i("GLJd"),i("rHC9"),i("5aof"),i("RjiT"),i("Surn"),i("IIhP"),i("XAO4"),i("tPNG"),i("ybRX"),i("2GgJ"),i("4HyG"),i("wAnu"),e.a=n},ybRX:function(t,e,i){"use strict";i.r(e);var n=i("rFsW");!function(t,e){var i=function(t){var e,i=window.getComputedStyle(t,null),n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform");return n&&"none"!=n?[(e=(e=(e=n.split("(")[1]).split(")")[0]).split(","))[4]-0,e[5]-0]:[0,0]},o=function(e,i,n,o){e=e instanceof t?e:t(e);var s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")],r=function i(r){if(r){var l=r.originalEvent.propertyName.toLowerCase();if(!t(r.target).is(e))return;if(-1==l.indexOf(n))return}e.off(s,i),clearTimeout(a),o()};e.on(s,r);var a=setTimeout(r,i);return function(){e.off(s,r),clearTimeout(a)}};t.fn.RMSwipe=function(e){var s=function(t,e){this.options=n.a.clone(t),this.$swipes=e,n.a.defaults(this.options,{actionTreshold:25,rubberBand:!0,rubberBandForce:1/1.55,tolerance:5,disableOnScaled:!0,autoAnimate:!0,immediateCallback:!1,maxTransitionSpeed:400,minTransitionSpeed:100,stopOnItems:["input","textarea",".no-rmswipe"]})};s.prototype={initialize:function(){n.a.bindAll(this),this.$swipes.on("touchstart",this.onTouchStart),this.$swipes.on("touchmove",this.onTouchMove),this.$swipes.on("touchend touchcancel",this.onTouchEnd)},destroy:function(){return this.$swipes&&(this.$swipes.off("touchstart",this.onTouchStart),this.$swipes.off("touchmove",this.onTouchMove),this.$swipes.off("touchend touchcancel",this.onTouchEnd),this.$swipes.data("swipe",null)),this.$swipes},onTouchStart:function(e){var n=(e=e.originalEvent).touches,o=this.options,s=this,r=window.innerWidth!=document.documentElement.clientWidth;if(o.stopOnItems&&o.stopOnItems.length){var a=t(e.target).closest(o.stopOnItems.join(", "));if(a.length&&this.$swipes.find(a).length)return}if(!this.animating&&!this.data&&!(1!=n.length||(e.scale&&1!==e.scale||r)&&o.disableOnScaled)){this.data={},this.data.constraints=o.getCurrentConstraints(t(e.target)),this.data.id=n[0].identifier,this.data.clientX=n[0].clientX,this.data.clientY=n[0].clientY,this.data.lastTime=+new Date,this.data.shift=0,this.data.velocity=0,this.data.$moveItems=this.data.constraints.$moveItems||this.$swipes,this.data.$moveItems=this.data.$moveItems.filter((function(){return 3!=this.nodeType})),this.data.$referenceItem=this.data.constraints.$referenceItem||this.data.$moveItems.last(),this.data.$referenceItem.length||(this.data.$referenceItem=this.data.$moveItems.last(),console.log("No reference object found, use substitution: ",this.data.constraints,t(e.target),this.data.$moveItems,this.$swipes)),this.data.translate=[],this.data.oldStyle=[],this.data.$moveItems.each((function(){var e=t(this);s.data.translate.push(i(this)),s.data.oldStyle.push(e.attr("style"))})),this.data.isTargetScrollable=!(!o.$scrollElements||!t(e.target).closest(o.$scrollElements).length);var l=this.data.$referenceItem[0].getBoundingClientRect();this.data.targetX=l.left,this.data.targetY=l.top}},onTouchMove:function(e){var i,n,o=(e=e.originalEvent).touches,s=o[0],r=this.data,a=this.options,l=a.tolerance,c=r&&r.constraints,h=this;if(!this.animating&&r&&1==o.length&&!(e.scale&&1!==e.scale&&a.disableOnScaled||s.identifier!=r.id)){if(!this.started||r.noActionConstraints&&!r.isTargetScrollable){var u=0,d="";(n={up:r.clientY-s.clientY,down:s.clientY-r.clientY,left:r.clientX-s.clientX,right:s.clientX-r.clientX}).up>u&&(d="up",u=n.up),n.down>u&&(d="down",u=n.down),n.left>u&&(d="left",u=n.left),n.right>u&&(d="right",u=n.right);var f=!1;if(this.started&&(f=c.up&&n.up>l||c.down&&n.down>l||c.left&&n.left>l||c.right&&n.right>l),u>=l)if(this.started=!0,c[d]||f){var p=r.$referenceItem[0].getBoundingClientRect();r.targetX==p.left&&r.targetY==p.top||(r.noActionMovement=!0);var g=c.left||c.right?Math.abs(r.clientX-s.clientX):0,m=c.up||c.down?Math.abs(r.clientY-s.clientY):0;r.axis=g>m?"x":"y",r.translateInd="x"==r.axis?0:1,r.noActionMovement||(r.clientX=s.clientX,r.clientY=s.clientY,r.$moveItems.addClass("swiping")),r.noActionConstraints=!1,a.onSwipeStart&&a.onSwipeStart()}else r.noActionConstraints=!0}if(this.started&&(r.isTargetScrollable&&r.noActionConstraints&&!r.noActionMovement||e.preventDefault()),this.started&&!r.noActionConstraints&&!r.noActionMovement){"x"==r.axis?(i=s.clientX-r.clientX)<0?(d="left",i=-b(-i,c.left)):i>0&&(d="right",i=b(i,c.right)):(i=s.clientY-r.clientY)<0?(d="up",i=-b(-i,c.up)):i>0&&(d="down",i=b(i,c.down)),r.$moveItems.each((function(e,n){var o=r.translate[e],s=o[r.translateInd];a.customMoveCheck&&!a.customMoveCheck(t(this),i)||(o[r.translateInd]+=i),h.applyTransform(this,r.oldStyle[e],o,0),o[r.translateInd]=s}));var v=r.shift,_=Math.abs(v-i)/(+new Date+1-r.lastTime);r.shift=i,r.curDir=d,r.velocity=.8*_+.2*r.velocity}r.lastTime=+new Date}function b(t,e){return e?t>e.max?e.max+(a.rubberBand?Math.pow(t-e.max,a.rubberBandForce):0):t:0}},onTouchEnd:function(e){var i=(e=e.originalEvent).touches,n=this.data,s=this.options,r=n&&n.constraints,a=this;if(!this.animating&&(!i.length||"touchcancel"==e.type)&&n)if(this.started){if(!n.noActionConstraints&&!n.noActionMovement)if(r[n.curDir]&&!r[n.curDir].noTrigger&&Math.abs(n.shift)>=s.actionTreshold){var l=s.beforeAutoAnimation?s.beforeAutoAnimation(n.curDir,n.shift):null,c=l?l.autoAnimate:s.autoAnimate,h=l?l.immediateCallback:s.immediateCallback;if(c){this.animating=!0;var u=Math.abs(Math.abs(n.shift)-r[n.curDir].max)/n.velocity,d=s.getMaxTransitionSpeed?s.getMaxTransitionSpeed():s.maxTransitionSpeed,f=Math.max(Math.min(d,u),s.minTransitionSpeed),p=!1;n.$moveItems.each((function(e,i){if(!s.customMoveCheck||s.customMoveCheck(t(this),n.shift)){var l=n.translate[e];"up"==n.curDir||"left"==n.curDir?l[n.translateInd]-=r[n.curDir].max:l[n.translateInd]+=r[n.curDir].max,p||(o(t(this),f+1e3,"transform",(function(){a.animating=!1,h||s.callback(n.curDir),n.$moveItems.each((function(t,e){this.style.cssText=n.oldStyle[t]||" "})),n.$moveItems.removeClass("swiping")})),p=!0),a.applyTransform(this,n.oldStyle[e],l,f)}else this.style.cssText=n.oldStyle[e]||" "})),h&&s.callback(n.curDir)}else n.$moveItems.each((function(t,e){this.style.cssText=n.oldStyle[t]||" "})),s.callback(n.curDir),n.$moveItems.removeClass("swiping")}else n.$moveItems.removeClass("swiping"),n.$moveItems.each((function(t,e){this.style.cssText=n.oldStyle[t]||" "}));this.data=null,this.started=null}else this.data=null},applyTransform:function(t,e,i,n){var o="translateX("+Math.round(1e5*i[0])/1e5+"px) translateY("+Math.round(1e5*i[1])/1e5+"px) translateZ(0)",s="transform "+n+"ms ease",r="",a="";r+="-webkit-transform: "+o+";",r+="-ms-transform: "+o+";",r+="transform: "+o+";",a+="-webkit-transition: -webkit-"+s+";",a+="transition: "+s+";",t.style.cssText=e+";"+r+a}};var r=t(this),a=new s(e,r);return a.initialize(),r.data("swipe",a),this}}(jQuery)}}]);