/*! Project : 寰疯タ浜氬疄涓氭湁闄愬叕鍙 +-----YL.js-V-2020.04.10-----+ | | | Author | yeshiqiu | | Q__Q | 337676937 | | Addr | SC_Chengdu | | Date | 2020.04.10 | | | +--!-_-!--------------!-_-!--+ */ //**!!**Modernizr (Custom Build) | MIT * 鑷畾涔 ysqUEO supports chrome Safari svgable !function(e,n,t){function r(e,n){return typeof e===n}function s(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):S?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function o(e,t,r,o){var i,a,l,f,u="modernizr",d=s("div"),c=function(){var e=n.body;return e||(e=s(S?"svg":"body"),e.fake=!0),e}();if(parseInt(r,10))for(;r--;)l=s("div"),l.id=o?o[r]:u+(r+1),d.appendChild(l);return i=s("style"),i.type="text/css",i.id="s"+u,(c.fake?c:d).appendChild(i),c.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(n.createTextNode(e)),d.id=u,c.fake&&(c.style.background="",c.style.overflow="hidden",f=y.style.overflow,y.style.overflow="hidden",y.appendChild(c)),a=t(d,e),c.fake?(c.parentNode.removeChild(c),y.style.overflow=f,y.offsetHeight):d.parentNode.removeChild(d),!!a}function i(e,n){return!!~(""+e).indexOf(n)}function a(e){return e.replace(/([a-z])-([a-z])/g,function(e,n,t){return n+t.toUpperCase()}).replace(/^-/,"")}function l(e,n){return function(){return e.apply(n,arguments)}}function f(e){return e.replace(/([A-Z])/g,function(e,n){return"-"+n}).replace(/^ms-/,"-ms-")}function u(n,r){var s=n.length;if("CSS"in e&&"supports"in e.CSS){for(;s--;)if(e.CSS.supports(f(n[s]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];s--;)i.push("("+f(n[s])+":"+r+")");return i=i.join(" or "),o("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return t}function d(e,n,o,l){function f(){c&&(delete E.style,delete E.modElem)}if(l=!r(l,"undefined")&&l,!r(o,"undefined")){var d=u(e,o);if(!r(d,"undefined"))return d}for(var c,p,m,v,h,g=["modernizr","tspan"];!E.style;)c=!0,E.modElem=s(g.shift()),E.style=E.modElem.style;for(m=e.length,p=0;m>p;p++)if(v=e[p],h=E.style[v],i(v,"-")&&(v=a(v)),E.style[v]!==t){if(l||r(o,"undefined"))return f(),"pfx"!=n||v;try{E.style[v]=o}catch(e){}if(E.style[v]!=h)return f(),"pfx"!=n||v}return f(),!1}function c(e,n,t,s,o){var i=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+_.join(i+" ")+i).split(" ");return r(n,"string")||r(n,"undefined")?d(a,n,s,o):(a=(e+" "+b.join(i+" ")+i).split(" "),function(e,n,t){var s;for(var o in e)if(e[o]in n)return!1===t?e[o]:(s=n[e[o]],r(s,"function")?l(s,t||n):s);return!1}(a,n,t))}function p(e,n,r){return c(e,t,t,n,r)}var m=[],v=[],h={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){v.push({name:e,fn:n,options:t})},addAsyncTest:function(e){v.push({name:null,fn:e})}},g=function(){};g.prototype=h,g=new g;var y=n.documentElement,S="svg"===y.nodeName,C="CSS"in e&&"supports"in e.CSS,w="supportsCSS"in e;g.addTest("ysqUEO",function(){return p("transform","scale(1)",!0)&&(navigator.userAgent.indexOf("Chrome")>-1||navigator.userAgent.indexOf("Firefox")>-1)}),g.addTest("supports",C||w),g.addTest("chrome",function(){return navigator.userAgent.indexOf("Chrome")>-1}),g.addTest("Safari",function(){return MacTest()}),g.addTest("svgable",function(){return!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect}),h.testStyles=o;var x="Moz O ms Webkit",_=h._config.usePrefixes?x.split(" "):[];h._cssomPrefixes=_;var b=h._config.usePrefixes?x.split(" "):[];h._domPrefixes=b;var T={elem:s("modernizr")};g._q.push(function(){delete T.elem});var E={style:T.elem.style};g._q.unshift(function(){delete E.style}),h.testAllProps=c,h.testAllProps=p,function(){var e,n,t,s,o,i,a;for(var l in v)if(v.hasOwnProperty(l)){if(e=[],(n=v[l]).name&&(e.push(n.name),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t0){ysq.IsMoble=!0;break}if(Touchable="ontouchstart"in window&&ysq.IsMoble&&!/hp-tablet/gi.test(navigator.appVersion),TouchOn=Touchable?"touchstart":"mousedown",TouchIng=Touchable?"touchmove":"mousemove",TouchEd=Touchable?"touchend":"mouseup",ysq.Switch&&(ysq.Switch=ysq.UEO),Global.device=MinWidth(1024)?"pc":"wap",$h.addClass(Global.device),w.data("device_status",Global.device),ysq.Response)Global={DesignHeight:1080,FPduration:750,resWidth:1024};else{var i=parseInt($h.css("min-width")),s=parseInt(window.screen.width)/(i+20);ysq.IsMoble&&(ysq.Switch=!1,document.querySelector('meta[name="viewport"]').setAttribute("content","width="+(i+20)+",initial-scale="+s+",minimum-scale="+s+",target-densitydpi=device-dpi"))}ysq.Switch&&(document.documentElement.firstElementChild.appendChild(document.createElement("style")).innerHTML=ysq.wrap+"{opacity:0.67;} [scrollEle],[swAnimate]{visibility: hidden;}",setTimeout(function(){$(ysq.wrap).hasClass("show")||ysq.htmlInit()},500)),window.onload=function(){document.documentMode<(ysq.Response?10:9)&&null==GetData("bIEOk")&&$b.hide()&&confirm("鎮ㄧ殑娴忚鍣ㄧ増鏈繃浣庯紝寤鸿鍙互浣跨敤鏈€鏂扮増鐨刢hrome娴忚鍣ㄦ潵鑾峰彇鏈€濂界殑浣撻獙锛屾槸鍚︾户缁闂紵")&&($b.show().addClass("lowerIE"),SaveData("bIEOk",!0))}}};ysq.basic(); jQuery,ysq.resetFs=function(){var e=parseInt($h.css("min-width")),t=Math.min(parseInt(window.screen.width),e)/e,i="width="+(e>parseInt(window.screen.width)?e:"device-width")+", initial-scale = "+t+", target-densitydpi=device-dpi";document.querySelector('meta[name="viewport"]').setAttribute("content",i)},ysq.resetFs(),window.addEventListener("resize",function(){clearTimeout(ysq.resetFs.timer),ysq.resetFs.timer=setTimeout(ysq.resetFs,1)},!1),window.addEventListener("pageshow",function(e){window.persisted&&(clearTimeout(ysq.resetFs.timer),ysq.resetFs.timer=setTimeout(ysq.resetFs,1))},!1),window.addEventListener("DOMContentLoaded",function(e){ysq.resetFs()}),$(document).ready(function(){w.Y_InitSet().Y_ScrollEle(),w.load(function(){fnLazyloadPd($b)&&$.fn.Y_LazyLoad.Init($b,!1)}),w.trigger("resize").trigger("scroll.unTriggered")}); /*鎵╁睍缁勪欢*/ $.fn.extend({Y_InitSet:function(){return ysq.TT&&console.log("鍔犺浇鏃堕棿:"+((new Date).getTime()-ysq.TT)+"ms"),w.on("scroll",function(e){$(".Y_AutoCheck").each(function(e,t){t.fnAuto.call(this)})}).load(function(){fnLazyloadPd($b)&&$.fn.Y_LazyLoad.Init($b,!1),setTimeout(function(){fnLazyloadPd($b)&&$.fn.Y_LazyLoad.Init($b,!1)},500)}).trigger("scroll").trigger("resize"),w.on("scroll.PointerNone",function(){$(".notPointerNone").length||($b.addClass("_pen"),clearTimeout($b[0].scrollTimer),$b[0].scrollTimer=setTimeout(function(){$b.removeClass("_pen")},200))}),$b.delegate("a","click",function(e){if("#"==$(this).attr("href")||isNull($(this).attr("href")))return prevent_default(e)}),$(".backToHistory").click(function(){window.history.go(-1)}),window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),i=Math.max(0,16-(n-l)),a=window.setTimeout(function(){e(n+i)},i);return l=n+i,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),setTextLine($("[data-text-line]")),(ysq.UEO||ysq.IsMoble)&&$("[ActiveEle]").each(function(e,t){$(t).addClass("ActAni").on("click.ActAni",function(){var e=$(this),t=e.attr("ActiveEle");e.hasClass("animated")||e.hasClass(t)||(e.addClass(t),setTimeout(function(){e.removeClass(t)},getAniDur(e)))})}),ysq.UEO&&$("[swAnimate]").each(function(e,t){var n=$(t),i=n.attr("swAnimate")||"fainInUp",a=n.attr("swStep")?new String(n.attr("swStep")).split(","):[300,133];w.on("scroll.Y_swAnimate",function(e){inWindow(n)&&n.Y_swAnimate({animation:i,interval:a}).removeAttr("swAnimate")}).trigger("scroll.Y_swAnimate")}),this} ,Y_ScrollEle:function(e){if(!ysq.Switch)return ysq.htmlInit(),this;var t={err:[0,w.height()/8],delay:200,fullScreen:!1,responsive:!1,ResAnimation:"fadeInDowns"};e=$.extend({},t,e);var n=[],i="[scrollEle],br",a=function(t,n,i){return isNull($(t).attr("scrollEle"))?(cw("notScrollEle:"+sElements($(t))),$(t).removeAttr("scrollEle"),!1):$(t).is(":hidden")?(ysq.TT&&cw("hidden:"+sElements($(t))),!1):!e.fullScreen&&n==$b||($.fn.Y_ScrollEle.SE_Animate($(t),i),!1)},o=function(e,t,n){e.on("destroy.Y_ScrollEle",function(){clearTimeout(e[0].timer1),clearTimeout(e[0].timer2),$(this).off("destroy.Y_ScrollEle");var n=e.data("scReset")?"AniDoing":"AniDo AniDoing";e.removeAttr("scrollNext").removeClass(t).parent().add(e).removeClass(n)}),n=getAniDur(e)+(n||0),e[0].timer1=setTimeout(function(){e.attr("scrollCbk")&&e.addClass("AniDid")},e.attr("scrollCbk")/1*n),e[0].timer2=setTimeout(function(){e.trigger("destroy.Y_ScrollEle")},n)},s=function(e){e.attr("scrollEle-temp",e.attr("scrollEle")).removeAttr("scrollEle")},l=function(e,t){e.children().not("br").each(function(n,i){$(i).attr("scrollDelay",150+n%(e.attr("scrollColumns")||Math.round(e.outerWidth()/getW($(i))))*t)})};return $.fn.Y_ScrollEle.SE_Reset=function(e){$("[scrollEle-temp]",e).add(e).each(function(e,t){$(t).attr("scrollEle",$(t).attr("scrollEle-temp")).removeAttr("scrollEle-temp")})},$.fn.Y_ScrollEle.SE_Animate=function(e,t){if(isNull(e.attr("scrollEle"))||e.is(":hidden")||"1"==e.attr("scrollWait")||!isNull(e.attr("lazy-src")))return!0;e.hasClass("AniDo")||e.addClass("AniDo");var n=e.attr("scrollEle"),a=e.attr("scrollDir")||"ltr",l=e.attr("scrollDelay")||0;if(t&&(l=t*(t>0?e.index():e.index()-e.parent().children().length)),"team"==n){var r=e.attr("scrollStep")||150;if(n=function(e){switch(e){case"rotateS":return["rotateInUpRight","rotateInDownLeft"];case"rotateN":return["rotateInDownRight","rotateInUpLeft"];case"lightLR":return["lightSpeedInLeft","lightSpeedInRight"];case"slideLR":return["slideInLeft","slideInRight"];case"fadeLR":return["fadeInLeft","fadeInRight"];case"fadeLRs":return["fadeInLefts","fadeInRights"];case"fadeLRm":return["fadeInLeftm","fadeInRightm"];case"fadeUD":return["fadeInUp","fadeInDown"];case"fadeUDs":return["fadeInUps","fadeInDowns"];case"fadeUDm":return["fadeInUpm","fadeInDownm"];case"fade4s":return["fadeInUps","fadeInLefts","fadeInRights","fadeInDowns"];case"fade4":return["fadeInUp","fadeInLeft","fadeInRight","fadeInDown"];case"zoomLR":return["zoomInLeft","zoomInRight"];case"zoomUD":return["zoomInUp","zoomInDown"];case"bounceLR":return["bounceInLeft","bounceInRight"];case"bounceUD":return["bounceInUp","bounceInDown"]}}(e.attr("scrollArray"))||e.attr("scrollArray")||"fadeIns",!$.isArray(n)){var c=n;(n=[]).push(c)}var d=e.children().not(i),f=d.length,u=1==e.attr("scrollSolo")||1==n.length;d.addClass("AniDo"),setTimeout(function(){"AniSerialize"==e.addClass("AniDoing").attr("scrollArray")||!!e.attr("scrollCbk")&&d.attr("scrollCbk",e.attr("scrollCbk")||1),d.each(function(t,i){var s="ltr"==a?t:f-(t+1);i.sAniName=n[s%n.length],setTimeout(function(){$(i).addClass(i.sAniName+" AniDoing").data("scReset",!1).attr("scrollCbk")&&$(i).addClass("AniStart"),!!e.attr("scrollStayCls")||o($(i),i.sAniName)},$(i).attr("scrollDelay")||50+r*(u?s:1))}),s(e)},l)}else e.addClass("AniDo").hasClass(n)||setTimeout(function(){e.addClass(n+" AniDoing").data("scReset",!1).attr("scrollCbk")&&e.addClass("AniStart"),s(e),o(e,n)},l);fnLazyloadPd(e)&&$.fn.Y_LazyLoad.Init(e,!0)},$.fn.Y_ScrollEle.Do=function(t,i,o){if(t=t||$b,!ysq.shutDown)if(o&&$("[scrollWait]",t).removeAttr("scrollWait"),$("[scrollDelayArray]").each(function(e,t){l($(t),$(t).attr("scrollDelayArray")||125)}),n.length){var s=0;$.each(n,function(e,t){ysq.TT&&cw("Y_ScrollEle_Step:"+s),s+=0==e?0:getAniDur($(t))/3||200,setTimeout(function(){$.fn.Y_ScrollEle.SE_Animate($(t)),$(t).is("[scrollNext]")&&w.trigger("scroll.Y_scrollEle")},s)}),n=[]}else $("[scrollEle]",t).add(t.is("[scrollEle]")).each(function(n,o){a(o,t,i)&&inWindow($(o),e.err)&&$.fn.Y_ScrollEle.SE_Animate($(o))})},$.fn.Y_ScrollEle.Init=function(e){e=e||$b,$("[scrollEle]",e).children().add(e.is("[scrollEle]")).data("scReset",!0),$("[scrollNext]",e).each(function(e,t){$(t).children().not(i).attr("scrollEle",$(t).attr("scrollNext")).attr("scrollCbk",$(t).attr("scrollCbk")),l($(t),$(t).attr("scrollDelayArray")||125)}),$("[scrollEle]",e).each(function(e,t){var n=$(t).attr("scrollEle");"team"==n||"parent"==n?$(t).addClass("AniDo").children().not(i).addClass("AniDo"):$(t).addClass("AniDo")})},e.responsive&&!MinWidth(1024)&&$("[scrollEle]").each(function(t,n){var i=$(n).attr("scrollEle"),a=$(n).attr("scrollMAni")||e.ResAnimation;"team"==i||"parent"==i?$(n).attr("scrollArray",a):$(n).attr("scrollEle",a)}),e.fullScreen?ysq.htmlInit():setTimeout(function(){ysq.htmlInit();var t=$b;$("[scrollEle]").each(function(i,o){a(o,t,e.delay)&&!isHidden($(o))&&inWindow($(o),e.err)&&n.push($(o))}),$.fn.Y_ScrollEle.Init(),w.on("scroll.Y_scrollEle",function(){$.fn.Y_ScrollEle.Do(t)}).trigger("scroll.Y_scrollEle")},e.delay),this} ,Y_swAnimate:function(e){return e=$.extend({},{animation:"fadeInUp",interval:[300,133],va:"vat"},e),this.each(function(t,n){var i=$(n);if(!i.hasClass("_ed")){var a=i.find(">p").length?i.find(">p"):i,o=i.attr("swDelay")?i.attr("swDelay")/1:333;a.each(function(t,n){var s=$(n).html(),l="",r="dib AniDo "+e.va;$(n).html("");for(var c=0;c"+s.charAt(c)+"");$(n).html(l),setTimeout(function(){i.removeAttr("swAnimate")},1),"none"==e.animation?$(".dib",n).removeClass("AniDo"):setTimeout(function(){$(n).find(".dib").each(function(o,s){setTimeout(function(){$(s).addClass(e.animation),t==a.length-1&&o==$(n).find(".dib").length&&setTimeout(function(){i.removeAttr("swAnimate")},200)},o*e.interval[1])})},o+t*e.interval[0])}),i.addClass("_ed")}}),this} ,Y_LoadImg:function(e){return e=$.extend({},{imgSrc:null,delay:50,cls:".picBox,.pic,.img",callback:null},e),this.attr("scrollWait","1").each(function(t,n){var i=$(n),a=e.imgSrc;if(ysq.TT&&(a+="?time="+(new Date).getTime()),i.is("img"))if(i.attr("src",a||""),i.parents(e.cls).length){var o=e.delay,s=(new Date).getTime(),l=function(){var t=o-((new Date).getTime()-s);i.addClass("destroying"),setTimeout(function(){i.parents(e.cls).addClass("imgLoaded loadDone").removeClass("loading").removeClass("loading-m"),i.hasClass("AniDo")||i.addClass("Done"),i.addClass("Loaded"),setTimeout(function(){i.removeClass("lazyimg Done").removeAttr("scrollWait"),ysq.Switch&&$.fn.Y_ScrollEle.SE_Animate&&$.fn.Y_ScrollEle.SE_Animate(i)},1e3*parseFloat(i.css("transition-duration"))||1),e.callback&&e.callback.call(this),i.removeClass("destroying")},Math.max(t,1))};i.load(function(e){l()}).error(function(t){i.data("loadOnce")?(i.parents(e.cls).removeClass("loading").removeClass("loading-m"),i.attr("data-default")?i.attr("src",i.attr("data-default")).addClass("default"):i.parents(e.cls).addClass("load-error loadDone"),e.callback&&e.callback.call(this)):(i.data("loadOnce",!0),i.attr("src",a||""))}),i.hasClass("destroying")||setTimeout(function(){l()},5e3)}else i.removeClass("lazyimg").addClass("Loaded").removeAttr("scrollWait"),e.callback&&e.callback.call(this),ysq.Switch&&$.fn.Y_ScrollEle.SE_Animate&&$.fn.Y_ScrollEle.SE_Animate(i);else a&&i.css("background-image","url("+a+")").addClass("Loaded").removeAttr("scrollWait");i.removeAttr("lazy-src")}),this} ,Y_LazyLoad:function(){return $.fn.Y_LazyLoad.Init=function(e,t,n,i){function a(e,t){!!$(e[t]).attr("lazy-src")&&$(e[t]).Y_LoadImg({imgSrc:$(e[t]).attr("lazy-src"),delay:n,callback:function(){a(e,t+1)}})}var o=e;ysq.LoadImgArray=[],t=!!t,!ysq.shutDown&&$("[lazy-src]",o).length&&(MacTest()?$("[lazy-src]",o).attr("src",function(){return $(this).attr("lazy-src")}).removeAttr("lazy-src").error(function(){$(this).parents(".picBox,.pic,.img").addClass("load-error loadDone")}).parents(".picBox,.pic,.img").addClass("imgLoaded loadDone"):($("[lazy-src]",o).each(function(e,n){isNull($(n).attr("lazy-src"))&&$(n).attr("lazy-src","none"),$(n).hasClass("loaded")||!$(n).is("img")?inWindow($(n),[-w.height()/3,-w.height()/3])&&$(n).Y_LoadImg({imgSrc:$(n).attr("lazy-src")}):($(n).hasClass("AniDo")||$(n).addClass("lazyimg"),(t||!$(n).parents(".waitLoad").length&&!isHidden($(n))&&inWindow($(n),[w.height()/10,w.height()/10]))&&($(n).parents(".picBox,.pic,.img").addClass(function(){return $(this).outerWidth()<150?"loading-m":"loading"}),ysq.LoadImgArray.push(n)))}),a(ysq.LoadImgArray,0)))},w.add($(".oScroll,.hScroll,.vScroll")).scroll(function(){$.fn.Y_LazyLoad.Init($b)}),this} ,Y_Move:function(e){return e=$.extend({},{transparent:!0,slidable:!1,flipIn:!1,flipOut:!1,fullpageScroll:!1,anchors:[],setHash:!1,hashRoot:"Y_MoveSection",InOut:!0,steps:200,oddEven:!0,AniPagination:!1,AniItem:!1,synchro:!0,stopable:!0,IsLoop:!0,loopDir:!0,IsDrag:!1,instant:!1,clickPass:!0,IsPaging:!1,setPaging:!1,sptPaging:!1,backInit:!1,evenWidth:!1,contain:".ysqJsBox,.ysqMoveBox,.box",item:".item",Pagination:".pagination",prev:".prev",next:".next",clickMoveTg:[!1,"h","scroll"],lazyLoad:[!1,20],delaytion:[0,0],direction:"h",easing:"easeOutQuad",event:"click",duration:800,TimeOut:0,initNum:0,MinNum:1,fn:{before:null,after:null,start:null,callback:null,icoClick:null,ctrReject:null}},e),this.each(function(t,n){function i(){if(y){var t={width:parseInt(h.outerWidth()),height:parseInt(h.outerHeight())};l=getWH(1==e.MinNum?d:h,!p),p?f.css({width:(2+l)*Math.max(m,e.MinNum)}):f.css({height:(2+l)*Math.max(m,e.MinNum)}),ysq.IsMoble&&"border-box"==h.css("box-sizing")&&(p?h.css({width:t.width,marginRight:mlr(h,0)}):h.css({height:t.height,marginTop:mtb(h,1)})),e.fullpageScroll&&(p?h.css({width:t.width}):h.css({height:t.height}))}else if(e.evenWidth){var n=d.outerWidth();$(".shade",d).css({left:"50%",marginLeft:-1*(n+(n%2!=0?1:0))/2})}}function a(){var t=window.location.hash.replace("#"+e.hashRoot+"=","").split("/");if(e.anchors.length)for(var i=0;i1;if(n.idx=e.initNum,n.Dragable=e.IsDrag,0==e.slidable&&(e.slidable=e.flipIn||e.flipOut),n.dragIn=!1,e.fn.before&&e.fn.before.call(this,d,h),UCTest()&&(e.TimeOut=!1),m<=e.MinNum)return d.addClass("_nojs"),e.lazyLoad[0]&&fnLazyloadPd(d)&&$.fn.Y_LazyLoad.Init(d,!0,e.lazyLoad[1]),o(!0),!0;if(y||h.css({position:"absolute"}).each(function(e,t){$(t).css("z-index",9-e)}),e.setPaging){for(var b="01",I=1;I<=x;I++)b+=(e.sptPaging?"":"")+""+tensDigit(I+1)+"";$(e.Pagination,n).length?$(e.Pagination,n).append(b):d.append("
"+b+"
")}if(e.IsPaging&&(r=$(e.Pagination,n),c=r.find(".btn"),TgL=c.length,e.AniPagination&&c.Y_SetCss3({dur:e.TimeOut+"s"})),n.AutoNext=function(){e.TimeOut>0&&(clearInterval(n.Y_timer),n.Y_timer=setInterval(function(){n.next(!0)},1e3*e.TimeOut))},n.dirPD=function(e){e>0?d.addClass("dir_z").removeClass("dir_f"):d.addClass("dir_f").removeClass("dir_z")},n.resetDistance=function(e){n.Move(e,!1,null,!0)},n.prev=function(t,i){var a,o=n.idx;n.idx=--n.idx<0?!e.IsLoop||e.IsDrag&&n.dragIn&&e.MinNum>1?0:x:n.idx,a=e.loopDir?-1:o>n.idx?-1:1,n.idx==o?(t&&$(e.prev,n).Y_Animation({animation:"dotShake"}),e.instant&&n.resetDistance(a),e.fn.ctrReject&&e.fn.ctrReject.call(this,d,h,a)):h.eq(n.idx).hasClass("_stay")||n.prevDisable?n.idx=o:n.Move(a,!1,i)},n.next=function(t,i){var a,o=n.idx;n.idx=++n.idx>x?!e.IsLoop||e.IsDrag&&n.dragIn&&e.MinNum>1?x:0:n.idx,a=e.loopDir?1:o>n.idx?-1:1,n.idx==o?(t&&$(e.next,n).Y_Animation({animation:"dotShake"}),e.instant&&n.resetDistance(a),e.fn.ctrReject&&e.fn.ctrReject.call(this,d,h,a)):h.eq(n.idx).hasClass("_stay")||n.nextDisable?n.idx=o:n.Move(a,!1,i)},n.MoveTo=function(e){if(e==n.idx)return!0;var t=e>n.idx?1:e1)&&(n.idx*e.MinNum==0?$(e.prev,n).addClass("nagetive"):$(e.prev,n).removeClass("nagetive"),n.idx*e.MinNum>=m-e.MinNum?$(e.next,n).addClass("nagetive"):$(e.next,n).removeClass("nagetive")),setProperty(n,"ysqble",!1),n.AutoNext(),n.dirPD(t);var u=n.idx+1>m-1?0:n.idx+1,b=n.idx-1<0?m-1:n.idx-1;if(a=null==a?e.duration:a,t>=0?(g=i?n.idxed:b,v=u):t<0&&(g=i?n.idxed:u,v=b),1==e.MinNum&&e.oddEven&&(h.eq(n.idx).hasClass("odd")?h.eq(v).addClass("even").removeClass("odd"):h.eq(v).addClass("odd").removeClass("even"),h.eq(n.idx).hasClass("even")?h.eq(v).addClass("odd").removeClass("even"):h.eq(v).addClass("even").removeClass("odd")),r||e.fn.start&&e.fn.start.call(this,d,h,n.idx,g,v,t,i),e.setHash&&(location.hash=e.hashRoot+"="+(e.anchors.length?e.anchors[n.idx]:n.idx)),e.lazyLoad[0]&&fnLazyloadPd(h.slice(0,(n.idx+1)*e.MinNum))&&$.fn.Y_LazyLoad.Init(h.slice(0,(n.idx+1)*e.MinNum),!0,e.lazyLoad[1]),setTextLine($("[data-text-line]",d)),i&&e.fn.icoClick&&e.fn.icoClick.call(this,d,h,n.idx,g,v,t,i),y){e.instant&&e.IsPaging&&onoff(c.eq(n.idx)),e.synchro&&o();var I=-Math.ceil(n.idx>=x?(Math.max(m,e.MinNum)-e.MinNum)*l:n.idx*l*e.MinNum),C=p?{left:I}:{top:I},w=Math.min(1,Math.abs(parseInt(I)-parseInt(f.css(p?"left":"top")))/l/e.MinNum);if(e.InOut){var _=d.hasClass("dir_z")?0:e.MinNum*e.steps,M=((n.idx>=x?m-1:n.idx)+1)*e.MinNum,T=M-e.MinNum;h.each(function(n,i){n+1>T&&n+1<=M?(d.hasClass("dir_z")?$(i).hasClass("in")?_+=0:_+=e.steps:$(i).hasClass("in")?_-=0:_-=e.steps,setTimeout(function(){$(i).addClass("in")},0==t?0:_)):setTimeout(function(){$(i).removeClass("in")},0==t?0:(w?1-w:1)*a)})}0==t?(s(t,i,r),f.css(C)):(d.addClass("_moveing"),f.stop(!0,!1).animate(C,(w||1)*a,e.easing,function(){s(t,i,r),d.removeClass("_moveing")}))}else{setProperty(n,"ysqble",e.clickPass&&!e.InOut);var k=e.transparent?0:1,A=e.transparent?0:1,q=e.slidable?100*t:0;if(h.eq(v).css("z-index",7),p)var Y={left:q+"%",opacity:k},L={left:0,opacity:1},S={left:0,opacity:1},D={left:-1*q+"%",opacity:A};else var Y={top:q+"%",opacity:k},L={top:0,opacity:1},S={top:0,opacity:1},D={top:-1*q+"%",opacity:A};if(h.css({"z-index":1}).css(Y).eq(n.idx).css("z-index",9).css(S),e.lazyLoad[0]&&h.hide().eq(n.idx).stop(!0,!0).show(),setTimeout(function(){e.synchro&&o()},1),e.AniItem){var P=h.eq(n.idx);$("[scrollEle-temp]",P).add(P).each(function(e,t){$(t).attr("scrollEle-temp")&&$(t).attr("scrollEle",$(t).attr("scrollEle-temp"))}),$("[scrollEle]",P).add(P).addClass("AniDo").trigger("destroy.Y_ScrollEle")}0==t?(s(t,i,r),e.oddEven&&h.eq(0).addClass("odd")):(e.InOut&&(onoff(h.eq(g),{cls:"leave"}),onoff(h.eq(n.idx),{cls:"come"}),e.IsPaging&&(onoff(c.eq(g),{cls:"Out"}),onoff(c.eq(n.idx),{cls:"In"})),setTimeout(function(){setTimeout(function(){e.IsPaging&&c.eq(g).removeClass("Out"),h.eq(g).removeClass("leave")},e.delaytion[0]),setTimeout(function(){e.IsPaging&&c.eq(n.idx).removeClass("In"),h.eq(n.idx).removeClass("come")},e.delaytion[1])},a)),h.eq(g).show().stop(!0,e.clickPass).css(L).css("z-index",16),setTimeout(function(){h.eq(g).animate(e.flipIn?L:D,a,e.easing,function(){e.slidable&&e.backInit&&$(this).css(L),e.lazyLoad[0]&&$(this).stop(!0,!0).hide()})},e.delaytion[0]),h.eq(n.idx).show().stop(!0,e.clickPass).css(e.flipOut?S:Y).css("z-index",!e.slidable||e.flipIn?22:12),setTimeout(function(){h.eq(n.idx).animate(S,a,e.easing,function(){s(t,i,r)})},e.delaytion[1]))}},bindScrollFn(n,function(){clearInterval(n.Y_timer),inWindow(d,null,!0)&&n.AutoNext()}),d.addClass("_loaded"),h.addClass("moveItem"),e.lazyLoad[0]&&h.addClass("waitLoad"),e.flipOut&&h.Y_SetCss3({ppty:"transform",dur:e.duration+"ms"}),e.setHash&&a(),setTimeout(function(){n.Move(0,!1,0),n.dirPD(1),e.fn.after&&e.fn.after.call(this,d,h,c)},1),(e.resizable||y||e.evenWidth)&&(w.resize(function(){i(),y&&n.Move(0)}),i()),(e.stopable||d.data("stopable"))&&(ysq.IsMoble||e.TimeOut)&&d.on({"mousemove.Y_Move":function(){clearInterval(n.Y_timer)},"mouseleave.Y_Move":function(){n.AutoNext()}}),e.setHash&&w.on("hashchange",function(t){var i=n.idx;a(),i!=n.idx&&(location.hash=e.hashRoot+"="+(e.anchors.length?e.anchors[n.idx]:n.idx),n.Move(e.duration,!1,0))}),e.IsDrag&&d.Y_Drag({contain:e.contain,direction:d[0].direction||e.direction,left:n.next,right:n.prev,up:n.next,down:n.prev,instant:y&&e.instant,dragPass:e.transparent}),e.fullpageScroll&&($(document).on("mousewheel.Y_Move",function(e){n.ysqble&&(e.deltaY<0?n.next():n.prev())}),$(document).on("keydown.Y_Move",function(e){if(!n.ysqble)return!0;switch(e.which||e.keyCode){case 37:p&&n.prev();break;case 39:p&&n.next();break;case 38:p||n.prev();break;case 40:p||n.next();break;case 33:n.prev();break;case 34:n.next();break;case 36:n.MoveTo(0);break;case 35:n.MoveTo(m-1)}})),u.length){u.show();var C=$(e.prev,n),_=$(e.next,n);_.click(function(){n.ysqble||$(this).hasClass("unable")?n.next(!0):$(this).Y_Animation({animation:"dotShake"})}),C.click(function(){n.ysqble||$(this).hasClass("unable")?n.prev(!0):$(this).Y_Animation({animation:"dotShake"})}),ysq.IsMoble?u.addClass("ctrShow"):d.on({"mousemove.Y_Move":function(e){var t=e.pageX,n=e.pageY;(p?ta.offset().top;switch(i){case"h":m?(s.css({left:t.left+n.x2-n.x1}),r=!0):(r&&s.stop(!0,!1).animate({left:t.left},e.easing,Math.abs(n.x2-n.x1),u),r=!1);break;case"v":m?(s.css({top:t.top+n.y2-n.y1}),r=!0):(r&&s.stop(!0,!1).animate({top:t.top},e.easing,Math.abs(n.y2-n.y1),u),r=!1);break;case"o":m?(s.css({left:t.left+n.x2-n.x1,top:t.top+n.y2-n.y1}),r=!0):(r&&s.stop(!0,!1).animate({left:t.left,top:t.top},e.easing,Math.abs(n.x2-n.x1),u),r=!1)}var g=n.x2-n.x1,v=n.y2-n.y1;switch(i){case"h":Math.abs(g)>Math.abs(v)?(prevent_default(f),d=!1):d=!0;break;case"v":Math.abs(g)Math.min(m/8,w.width()/10)?(g(),v()):s.stop(!0,!1).animate({left:t.left},y,e.easing,function(){setProperty(o,"ysqble",!0)});break;case"v":b>Math.min($/8,w.height()/10)?(p(),x()):s.stop(!0,!1).animate({top:t.top},b,e.easing,function(){setProperty(o,"ysqble",!0)});break;case"o":y>Math.min(m/8,w.width()/10)&&(g(),v()),b>Math.min($/8,w.height()/10)&&(p(),x()),setProperty(o,"ysqble",!0)}Touchable?(s[0].removeEventListener(TouchIng,u,!1),s[0].removeEventListener(TouchEd,h,!1)):s.off(TouchIng,u).off(TouchEd,h),r=!1,prevent_default(f)},m=function(){(e.reMove||a.data("removeDrag"))&&(Touchable?s[0].removeEventListener(TouchOn,f,!1):a.off(TouchOn,f))},g=function(){$.isFunction(e.left)&&n.x2<=n.x1&&(e.left(!1),m())},v=function(){$.isFunction(e.right)&&n.x2>n.x1&&(e.right(!1),m())},p=function(){$.isFunction(e.up)&&n.y2<=n.y1&&(e.up(!1),m())},x=function(){$.isFunction(e.down)&&n.y2>n.y1&&(e.down(!1),m())};return Touchable?addEvent(s[0],TouchOn,f,!1):s.on(TouchOn,f).on("mouseleave",function(e){s.trigger(TouchEd)}),this} ,Y_SetCss3:function(e){return e=$.extend({},{ppty:"all",delay:"0ms",dur:"300ms"},e),this.css({"transition-property":e.ppty,"transition-duration":e.dur,"transition-delay":e.delay}),this} ,Y_Animation:function(e){var t="AniDo AniDoing "+(e=$.extend({},{animation:"",Inout:!0,delaytion:0,callback:function(){}},e)).animation,n=e.Inout?"vv":"vh";return this.each(function(i,a){var o=$(a);setTimeout(function(){o.addClass(t+" "+n),setTimeout(function(){o.removeClass(t),o.data("flag")||o.removeClass(n),e.callback.call(this,o)},getAniDur(o))},e.delaytion)}),this} ,Y_NavSlideBlock:function(e){return e=$.extend({},{tag:"li",item:".item",actCls:"on",target:null,event:"mouseenter",vertical:!1,bInitial:!0,blockSize:null,blockImg:"",cssHide:null,duration:400,easing:"swing",delaytion:300,phantom:[!1,.2],fn:{before:null,mouseOn:null,mouseOut:null,come:null,leave:null}},e),$(".block",this).length||this.append("<"+e.tag+' class="block">'+e.blockImg+""),this.each(function(t,n){var i=$(n),a=$(".block",n),o=$(e.item,n),s=e.vertical?{w:"100%",h:"0",l:"0",t:"50%"}:{w:0,h:"100%",l:"50%",t:0},l=!!$(e.item+"."+e.actCls,n).length&&i.find(e.item).index($(e.item+"."+e.actCls,n)),r=l;s=$.extend({},{op:0},s,e.cssHide),n.blurable=!0,n.switch=!0,n.backInit=function(){n.Y_timer=setTimeout(function(){var t={width:s.w,height:s.h,top:s.t,left:s.l,opacity:s.op};!1===l?a.stop(!0,!1).animate(t,200,function(){e.fn.leave&&e.fn.leave.call(this,i,r)}).siblings(e.tag).removeClass("on"):n.Move(l,e.duration,function(){e.fn.leave&&e.fn.leave.call(this,i,r)}),e.fn.mouseOut&&e.fn.mouseOut.call(this,i,r)},e.delaytion)},n.Move=function(t,n,s){t<0&&(t=l);var r=e.target?o.eq(t).children(e.target):o.eq(t),c=r.offset(),d=i.offset();if(e.vertical)f=e.blockSize?{top:c.top-d.top+(r.outerHeight()-a.height())/2,left:0,width:"100%",opacity:1}:{top:c.top-d.top,height:r.outerHeight(),left:0,width:"100%",opacity:1};else var f=e.blockSize?{left:c.left-d.left+(r.outerWidth()-a.width())/2,top:0,height:"100%",opacity:1}:{left:c.left-d.left,width:r.outerWidth(),top:0,height:"100%",opacity:1};e.phantom[0]&&a.css({opacity:e.phantom[1]}),$(e.item,i).removeClass(e.actCls),setTimeout(function(){onoff($(e.item,i).eq(t),{cls:e.actCls})},n-200),a.stop(!0,!1).animate(f,n,e.easing,function(){s&&s()})},"mouseenter"==e.event?$(e.item,i).off("mouseenter.Y_NavSlideBlock").off("mouseleave.Y_NavSlideBlock").on("mouseenter.Y_NavSlideBlock",function(){if(clearTimeout(n.Y_timer),!n.switch)return!1;r=i.find(e.item).index($(this)),a.addClass("Moving"),n.Move(r,e.duration,function(){a.removeClass("Moving"),e.fn.come&&e.fn.come.call(this,i,r)}),e.fn.mouseOn&&e.fn.mouseOn.call(this,i,r)}).on("mouseleave.Y_NavSlideBlock",function(){if(!n.switch||l===i.find("."+e.actCls).index())return!1;n.blurable&&e.bInitial&&n.backInit()}):$(e.item,i).off("click.Y_NavSlideBlock").on("click.Y_NavSlideBlock",function(t){if(!n.switch||$(this).hasClass(e.actCls))return!1;r=i.find(e.item).index($(this)),a.addClass("Moving"),n.Move(r,e.duration,function(){a.removeClass("Moving"),e.fn.come&&e.fn.come.call(this,i,r)}),e.fn.mouseOn&&e.fn.mouseOn.call(this,i,r)}),w.on("resize.Y_NavSlideBlock",function(t){n.switch&&!1!==l&&n.Move(e.bInitial?l:$(e.item+".on",i).index($(e.item,i)),1)}),a.css({width:s.w,height:s.h,top:s.t,left:s.l,opacity:s.op}).fadeIn(500,function(){e.blockSize&&(e.vertical?a.css({height:e.blockSize}):a.css({width:e.blockSize})),e.fn.before&&e.fn.before.call(this,i),!1!==l&&n.switch&&n.Move(l,1)})}),this} ,Y_Marquee:function(e){return e=$.extend({},{contain:".box,.ysqJsBox,.ysqMoveBox",mouseMove:!0,vertical:!1,oneByone:!0,MinNum:1,duration:600,easing:"linear",TimeOut:1200,rate:2,bInTrigger:!1},e),this.each(function(t,n){var o=$(n),i=$(e.contain,n),a=i.children(),s=a.length,c=0,l=0,d=!1,r=e.vertical;if(n.distance=0,a.each(function(e,t){c+=getWH($(t),r)}),$(".shade",n).outerHeight()>c||a.length<=e.MinNum)return $(n);i.html(i.html()+i.html()).css(r?{height:2*c}:{width:2*c});var u=(a=i.children()).eq(s-1);if(n.MoveOneByOne=function(t){++l,onoff(a.eq(l)),l==s&&(l=0,d=!0),nSteps-=getWH(a.eq(l),r),i.stop(!0,!1).animate(r?{top:n.distance}:{left:n.distance},e.duration,e.easing,function(){fnLazyloadPd(i)&&$.fn.Y_LazyLoad.Init(i),d&&($(this).css(r?{top:0}:{left:0}),onoff(a.eq(l)),d=!1,n.distance=0)})},n.MoveRoll=function(){n.distance=Math.abs(n.distance)>c?0:n.distance-2,i.css(e.vertical?"top":"left",n.distance),fnLazyloadPd(i)&&$.fn.Y_LazyLoad.Init(i)},n.Stop=function(){clearInterval(n.timer)},n.Run=function(){e.oneByone?n.timer=setInterval(function(){n.MoveOneByOne(1)},e.TimeOut):n.timer=setInterval(function(){n.MoveRoll()},40/e.rate)},e.mouseMove&&$(".ysqUEO.pc").length){var f="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",h=$(".shade",o),v=function(t){var o=e.vertical?u.offset().top-i.offset().top+u.outerHeight()-h.outerHeight():u.offset().left-i.offset().left+u.outerWidth()-h.outerWidth();t.deltaY>0?n.distance=Math.abs(n.distance)>=o?-o:n.distance-20:n.distance=n.distance>=0?0:n.distance+20,i.css(e.vertical?"top":"left",n.distance),(t=$.event.fix(t)).preventDefault()};window.addEventListener?i[0].addEventListener(f,v,!1):i[0].onmousewheel=v}i.on("mouseenter.Y_Marquee",function(){$h.hasClass("pc")&&n.Stop()}).on("mouseleave.Y_Marquee",function(){$h.hasClass("pc")&&(n.Stop(),n.Run())}),bindScrollFn(n,function(){!e.bInTrigger&&inWindow(o,null,!0)?(n.Stop(),n.Run()):n.Stop()}),o.addClass("_loaded")}),this} ,Y_Tab:function(t){return t=$.extend({},{Tt:".Tt",Tg:".Tg",TBtn:".btn",contain:".ysqJsBox,.ysqMoveBox,.box",item:null,link:".Ta",TgActCls:"on",TtActCls:"on",prev:null,next:null,btnAnimate:!1,animateTt:!1,lazyLoad:[!0,100],event:"click",init:!0,initNum:0,TimeOut:0,duration:220,stopable:!0,PagingSept:!1,hasNum:!1,keyboard:!1,overviewMid:!1,IsDrag:!1,clickMoveTg:[!1,"h","scroll"],fn:{before:null,after:null,start:null,callback:null}},t),this.each(function(e,n){var o=$(n),i=$(t.Tt,n),l=$(t.Tg,n),a=$(t.link,n),r=i.find(t.contain),s=r.length,d=l.find(t.TBtn),c=d.length,f=$(t.next,n),h=$(t.prev,n),u=!1;if(setProperty(n,"ysqble",!0),n.idx=t.initNum,n.pdx=0,n.Dragable=t.IsDrag,n.Move=function(e,i){var s=d.eq(n.idx),c=r.eq(n.idx);n.idx>n.pdx?o.addClass("dir_z").removeClass("dir_f"):o.addClass("dir_f").removeClass("dir_z"),onoff(r.eq(n.pdx),{cls:"leave"}),onoff(r.eq(n.idx),{cls:"come"}),n.AutoNext(),r.removeClass(t.TtActCls),l.length&&onoff(s,{cls:t.TgActCls}),a.length&&a.attr("href",s.attr("data-href")||s.attr("href")),setTextLine($("[data-text-line]",s)),i||t.fn.start&&t.fn.start.call(this,o,n.idx,r,d,a),t.animateTt&&($("[scrollEle-temp]",c).add(c).each(function(t,e){$(e).attr("scrollEle-temp")&&$(e).attr("scrollEle",$(e).attr("scrollEle-temp"))}),$("[scrollEle]",c).addClass("AniDo").trigger("destroy.Y_ScrollEle")),t.clickMoveTg[0]?setTimeout(function(){!function(e){var i=l.find(".viewport").length?l.find(".viewport"):l,a=($(".overview",l),$(".btn.on",o)),r={x:a.offset().left+i.scrollLeft()-i.offset().left+a.outerWidth()/2-i.outerWidth()/2,y:a.offset().top+i.scrollTop()-i.offset().top+a.outerHeight()/2-i.outerHeight()/2},s="scroll"!=t.clickMoveTg[2]?{left:-1*r.x,top:-1*r.y}:{scrollLeft:r.x,scrollTop:r.y};i.stop(!0,!1).animate(s,$b.hasClass("pc")?333:1,function(){t.lazyLoad[0]&&fnLazyloadPd(i)&&$.fn.Y_LazyLoad.Init(i,!0,t.lazyLoad[1]),t.btnAnimate&&n.barMove()})}(t.clickMoveTg[1])},1):t.btnAnimate&&n.barMove(),c.length?(c.addClass(t.TtActCls),setTextLine($("[data-text-line]",o)),setTimeout(function(){setProperty(n,"ysqble",!0),t.overviewMid&&ysq.MsBoxSet(c.find(".overview")),i||t.fn.callback&&t.fn.callback.call(this,o,n.idx,r,d,a),e||t.lazyLoad[0]&&fnLazyloadPd(c)&&$.fn.Y_LazyLoad.Init(c,!0,t.lazyLoad[1]),e||fnScrollElePd(c)&&($.fn.Y_ScrollEle.Init(c),$.fn.Y_ScrollEle.Do(c,0,!0)),c.removeClass("waitLoad"),r.eq(n.pdx).removeClass("leave"),r.eq(n.idx).removeClass("come")},(e?0:t.duration)+1)):setProperty(n,"ysqble",!0)},n.barMove=function(){var e=$(".block",n),o={},i=d.eq(n.idx),a=i.offset(),r=l.offset();o="h"==t.clickMoveTg[1]?t.blockSize?{left:a.left-r.left+(i.outerWidth()-e.width())/2,top:0,height:"100%",opacity:1}:{left:a.left-r.left,width:i.outerWidth(),top:0,height:"100%",opacity:1}:t.blockSize?{top:a.top-r.top+(i.outerHeight()-e.height())/2,left:0,width:"100%",opacity:1}:{top:a.top-r.top,height:i.outerHeight(),left:0,width:"100%",opacity:1},$b.hasClass("pc")?e.stop(!0,!1).animate(o):e.show().css(o)},n.next=function(){n.pdx=n.idx,n.idx=++n.idx%c,setProperty(n,"ysqble",!1),n.Move()},n.prev=function(){n.pdx=n.idx,n.idx=--n.idx<0?c-1:n.idx,setProperty(n,"ysqble",!1),n.Move()},n.AutoNext=function(){t.TimeOut>0&&(clearInterval(n.Y_timer),n.Y_timer=setInterval(function(){n.next(!0)},1e3*t.TimeOut))},!d.length){for(var v="",e=0;e":"")+""+(t.hasNum?e+1:" ")+"";l.append(v),d=l.find(t.TBtn)}fnLazyloadPd($b)&&$.fn.Y_LazyLoad.Init($b,!1),t.lazyLoad[0]&&r.addClass("waitLoad"),t.fn.before&&t.fn.before.call(this,o,r,d,a),t.init&&!n.linkable&&n.Move(!0),t.fn.after&&t.fn.after.call(this,o,r,d,a),d.off(t.event+".Y_Tab").on(t.event+".Y_Tab",function(e){if(n.ysqble&&!n.linkable)return $(this).hasClass(t.TgActCls)||(n.pdx=n.idx,n.idx=d.index($(this)),t.item?r.eq(n.idx).find(t.item).length&&n.Move():n.Move()),prevent_default(e)}),o.hover(function(){u=!0,t.TimeOut&&t.stopable&&clearInterval(n.Y_timer)},function(){u=!1,n.AutoNext()}),1==d.length?(f.hide(),h.hide()):(f.length&&f.show().click(function(t){n.ysqble?n.next():$(this).Y_Animation({animation:"dotShake"})}),h.length&&h.show().click(function(t){n.ysqble?n.prev():$(this).Y_Animation({animation:"dotShake"})})),t.IsDrag&&o.Y_Drag({contain:t.Tt,direction:t.clickMoveTg[1],left:n.next,right:n.prev,down:n.prev,up:n.next}),t.btnAnimate&&w.on("resize.Y_Tab",function(e){t.btnAnimate&&n.barMove()}),t.keyboard&&$(document).keydown(function(t){u&&(39==t.keyCode&&(f.length?f.trigger("click"):n.next()),37==t.keyCode&&(h.length?h.trigger("click"):n.prev()))})}),this} ,Y_ResMove:function(e){return e=$.extend({},{IsPaging:!1,PagingSept:!1,aniPagination:!1,synchro:!0,IsDrag:!0,instant:!1,backInit:!1,oddEven:!1,itemInit:!1,stopable:!0,clickPass:!1,contain:".ysqJsBox,.ysqMoveBox,.box",item:".item",Pagination:".pagination",prev:".prev",next:".next",lazyLoad:[!1,500],direction:"h",easing:"easeOutQuad",event:"click",duration:800,TimeOut:0,initNum:0,sData:[{w:0,n:1}],safeP:0,fn:{before:null,after:null,start:null,callback:null,icoClick:null}},e),this.each(function(t,n){function i(){1==v&&onoff(d.eq(n.idx)),e.instant||e.IsPaging&&onoff(s.eq(n.idx))}function a(t,a){e.synchro||i(),e.fn.callback&&e.fn.callback.call(this,l,d,n.idx,u,h,t,a,v),setProperty(n,"ysqble",!0)}var o,s,l=$(n),r=$(e.contain,n).eq(0),c=$(e.prev+","+e.next,n),d=r.find(e.item),f=d.length,u=0,h=0,m="h"==e.direction,g=e.sData,v=g[0].n,p=(g[0].mr,0),x=Math.ceil(f/v)-1,y=!0;if(n.idx=e.initNum,n.Dragable=e.IsDrag,e.fn.before&&e.fn.before.call(this,l,d),n.AutoNext=function(){e.TimeOut>0&&(clearInterval(n.Y_timer),n.Y_timer=setInterval(function(){n.next(!0)},1e3*e.TimeOut))},n.dirPD=function(e){e>0?l.addClass("dir_z").removeClass("dir_f"):l.addClass("dir_f").removeClass("dir_z")},n.prev=function(t,i){n.dirPD(-1),clearInterval(n.Y_timer),n.idx=--n.idx<0?!t&&e.IsDrag?0:x:n.idx,n.Move(-1,!1,i)},n.next=function(t,i){n.dirPD(1),clearInterval(n.Y_timer),n.idx=++n.idx>x?!t&&e.IsDrag?x:0:n.idx,n.Move(1,!1,i)},n.Move=function(t,o,c){var g=n.idx+1>f-1?0:n.idx+1,y=n.idx-1<0?f-1:n.idx-1;c=null==c?e.duration:c,t>=0?(u=o?n.idxed:y,h=g):t<0&&(u=o?n.idxed:g,h=y),1==v&&e.oddEven&&(d.eq(n.idx).hasClass("odd")?d.eq(h).addClass("even").removeClass("odd"):d.eq(h).addClass("odd").removeClass("even"),d.eq(n.idx).hasClass("even")?d.eq(h).addClass("odd").removeClass("even"):d.eq(h).addClass("even").removeClass("odd")),n.AutoNext(),e.fn.start&&e.fn.start.call(this,l,d,n.idx,u,h,t,o,v),e.lazyLoad[0]&&fnLazyloadPd(d.slice(n.idx*v,(n.idx+1)*v))&&$.fn.Y_LazyLoad.Init(d.slice(n.idx*v,(n.idx+1)*v),!0,e.lazyLoad[1]),o&&e.fn.icoClick&&e.fn.icoClick.call(this,l,d,n.idx,u,h,t,o,v),setTimeout(function(){fnScrollElePd(d.eq(n.idx))&&($.fn.Y_ScrollEle.Init(d.eq(n.idx)),$.fn.Y_ScrollEle.Do(d.eq(n.idx),0,!0))},.7*c),e.instant&&e.IsPaging&&onoff(s.eq(n.idx)),e.synchro&&i();var b=n.idx>=x?Math.max(f,v)/v-1:n.idx,I=parseFloat(b*p*v),C=Math.abs(Math.abs(parseInt(r.css(m?"left":"top")))%parseInt(p*v)-parseInt(p*v))/(p*v)%1,w=m?{left:-I}:{top:-I};0==t?(a(t,o),r.css(w)):r.stop(!0,e.clickPass).animate(w,(C||1)*c,e.easing,function(){a(t,o),fnLazyloadPd(d)&&$.fn.Y_LazyLoad.Init(d)})},w.on("resize.ResMove",function(){$.each(g,function(e,t){(window.innerWidth<=t.w||0==e)&&(v=t.n,marR=t.mr||0)}),x=Math.ceil(f/v)-1,n.Dragable=f>v,m?(o=l.width()*(1-marR*(v-1))/v,p=o+marR*l.width(),d.css({width:o,marginRight:marR*l.width()}),r.css({width:(e.safeP+p)*Math.max(f,v)})):(o=l.height()/v,d.height(o),r.css({height:(e.safeP+o)*Math.max(f,v)})),v>=f?(c.hide(),y=!1):(c.show(),y=!0),function(){if(e.IsPaging&&y){for(var t="01",i=1;i<=x;i++)t+=(e.PagingSept?"":"")+""+tensDigit(i+1)+"";$(e.Pagination,n).length||l.append(""),$(e.Pagination,n).html(t)}s=$(e.Pagination,n).find(".btn"),TgL=s.length,e.AniPagination&&s.Y_SetCss3({dur:e.TimeOut+"s"})}(),n.Move(0,!0)}).trigger("resize.ResMove"),e.itemInit&&d.each(function(e,t){$(t).addClass("moveItem idx"+(e+1))}),e.fn.after&&e.fn.after.call(this,l,d,n.idx,u,h,0,!1,v),l.addClass("_loaded"),c.length){var b=$(e.prev,n),I=$(e.next,n);setProperty(n,"ysqble",e.clickPass),I.addClass(e.mouseLR&&"cursorR").click(function(){n.ysqble?n.next(!0):$(this).Y_Animation({animation:"dotShake"})}),b.addClass(e.mouseLR&&"cursorL").click(function(){n.ysqble?n.prev(!0):$(this).Y_Animation({animation:"dotShake"})})}e.IsDrag&&l.Y_Drag({contain:e.contain,direction:l[0].direction||e.direction,left:n.next,right:n.prev,up:n.next,down:n.prev,instant:e.instant}),e.TimeOut&&l.on({"mouseenter.Y_ResMove":function(){(e.stopable||l.data("stopable"))&&clearInterval(n.Y_timer)},"mouseleave.Y_ResMove":function(){n.AutoNext()}}),l.undelegate(".pagination .btn",e.event+".Y_ResMove").delegate(".pagination .btn",e.event+".Y_ResMove",function(t){if((e.clickPass||"mouseenter"==e.event)&&setProperty(n,"ysqble",!0),$(this).hasClass("on")||!n.ysqble)return $(this).Y_Animation({animation:"dotShake"});e.TimeOut&&(clearInterval(n.Y_timer),n.AutoNext());var i=s.index($(this))>n.idx?1:s.index($(this))f-1?e.bLoop?0:f-1:d,n.Move()},n.Move=function(){e.bLoop||(0==d?t.find(".prev").hide():t.find(".prev").show(),d==f-1?t.find(".next").hide():t.find(".next").show());var i=-d*u,a=o.children("."+e.albumItem).eq(d),s=Math.min(Math.abs(parseInt(o.css("left"))-i)/u,1);e.fn.start&&e.fn.start.call(this,t,d),e.synchro&&(e.IsPaging&&onoff($Tg.eq(d)),onoff(a)),setProperty(n,"ysqble",!1),fnLazyloadPd(a)&&$.fn.Y_LazyLoad.Init(a,!0),o.stop(!0,!1).animate({left:i},e.duration*s,e.easing,function(){setProperty(n,"ysqble",!0),e.synchro||(e.IsPaging&&onoff($Tg.eq(d)),onoff(a)),e.fn.callback&&e.fn.callback.call(this,t,d)}),l.html(d+1),r.text($("img",a).attr("alt")),c.attr("href",$("img",a).attr("src"))},e.IsDrag&&t.Y_Drag({direction:"h",left:function(){n.next(!0)},right:function(){n.prev(!0)},instant:e.instant}),w.off("resize.Y_ModalAlbum").on("resize.Y_ModalAlbum",function(){if(h){var t=$("."+e.albumItem,o);setVamCss(w.height()-e.posSet[0]-e.posSet[2]-e.pad[0]-e.pad[2],e.albumItem,".img"),t.css({width:a.width(),marginRight:mlr(t,0)}),u=getWH(t,!1),o.css({width:f*(2+u),left:-d*u})}}),$b.delegate(i,"click",function(i){h=!0;var r=$(this),c=r.parents(e.triggerList),u=$(e.btn,c);r.is(e.item)||r.parents(e.item);if(d=u.index(r),f=u.length,u.each(function(n,i){var a=$("img",i).attr("big-src")||$("img",i).attr("lazy-src")||$("img",i).attr("src"),s=$("h3",i).text()||$("img",i).attr("alt");$("
  • ").appendTo(o),$("",{"lazy-src":a,src:"images/g.png",alt:s}).appendTo($("."+e.albumItem,o).eq(n)).wrap("
    ").wrap(""),e.fn.created&&e.fn.created.call(this,t,$("."+e.albumItem,o).eq(n),$(i))}),e.IsPaging){for(var m="01",g=1;g<=f-1;g++)m+=(e.PagingSept?"":"")+""+tensDigit(g+1)+"";$(e.Pagination,n).length?$(e.Pagination,n).append(m):a.append(""),$Tg=$(e.Pagination,n).find(".btn"),TgL=$Tg.length,TgW=getW($Tg),e.AniPagination&&$Tg.Y_SetCss3({dur:e.TimeOut+"s"})}s.html(f),l.html(d+1),t.addClass("visible"),setTimeout(function(){w.trigger("resize.Y_ModalAlbum"),n.Move(d),t.find(".close").off("click.Y_ModalAlbum").on("click.Y_ModalAlbum",function(){n.destroy()}),t.find(".prev").off("click.Y_ModalAlbum").on("click.Y_ModalAlbum",function(){n.prev()}),t.find(".next").off("click.Y_ModalAlbum").on("click.Y_ModalAlbum",function(){n.next()}),e.IsPaging&&$Tg.off(e.paginationEve+".Y_ModalAlbum").on(e.paginationEve+".Y_ModalAlbum",function(){if($(this).hasClass("on"))return $(this).Y_Animation({animation:"dotShake"});d=$Tg.index($(this)),n.Move()}),$(document).on("keydown.Y_ModalAlbum",function(e){switch(e.keyCode){case 27:n.destroy();break;case 37:n.prev();break;case 39:n.next()}})},1),lockScroll()}),this}}); //plugins.js /* linear swing jswing easeInQuad easeOutQuad easeInOutQuad easeInCubic easeOutCubic easeInOutCubic easeInQuart easeOutQuart easeInOutQuart easeInQuint easeOutQuint easeInOutQuint easeInSine easeOutSine easeInOutSine easeInExpo easeOutExpo easeInOutExpo easeInCirc easeInOutCirc easeInElastic easeOutElastic easeInOutElastic easeInBack easeInOutBack easeInBounce easeOutBounce easeInOutBounce */ jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(A,B,C,D,E){return jQuery.easing[jQuery.easing.def](A,B,C,D,E);},easeInQuad:function(A,B,C,D,E){return D*(B/=E)*B+C},easeOutQuad:function(A,B,C,D,E){return-D*(B/=E)*(B-2)+C},easeInOutQuad:function(A,B,C,D,E){if((B/=E/2)<1){return D/2*B*B+C}return-D/2*((--B)*(B-2)-1)+C},easeInCubic:function(A,B,C,D,E){return D*(B/=E)*B*B+C},easeOutCubic:function(A,B,C,D,E){return D*((B=B/E-1)*B*B+1)+C},easeInOutCubic:function(A,B,C,D,E){if((B/=E/2)<1){return D/2*B*B*B+C}return D/2*((B-=2)*B*B+2)+C},easeInQuart:function(A,B,C,D,E){return D*(B/=E)*B*B*B+C},easeOutQuart:function(A,B,C,D,E){return-D*((B=B/E-1)*B*B*B-1)+C},easeInOutQuart:function(A,B,C,D,E){if((B/=E/2)<1){return D/2*B*B*B*B+C}return-D/2*((B-=2)*B*B*B-2)+C},easeInQuint:function(A,B,C,D,E){return D*(B/=E)*B*B*B*B+C},easeOutQuint:function(A,B,C,D,E){return D*((B=B/E-1)*B*B*B*B+1)+C},easeInOutQuint:function(A,B,C,D,E){if((B/=E/2)<1){return D/2*B*B*B*B*B+C}return D/2*((B-=2)*B*B*B*B+2)+C},easeInSine:function(A,B,C,D,E){return-D*Math.cos(B/E*(Math.PI/2))+D+C},easeOutSine:function(A,B,C,D,E){return D*Math.sin(B/E*(Math.PI/2))+C},easeInOutSine:function(A,B,C,D,E){return-D/2*(Math.cos(Math.PI*B/E)-1)+C},easeInExpo:function(A,B,C,D,E){return(B==0)?C:D*Math.pow(2,10*(B/E-1))+C},easeOutExpo:function(A,B,C,D,E){return(B==E)?C+D:D*(-Math.pow(2,-10*B/E)+1)+C},easeInOutExpo:function(A,B,C,D,E){if(B==0){return C}if(B==E){return C+D}if((B/=E/2)<1){return D/2*Math.pow(2,10*(B-1))+C}return D/2*(-Math.pow(2,-10*--B)+2)+C},easeInCirc:function(A,B,C,D,E){return-D*(Math.sqrt(1-(B/=E)*B)-1)+C},easeOutCirc:function(A,B,C,D,E){return D*Math.sqrt(1-(B=B/E-1)*B)+C},easeInOutCirc:function(A,B,C,D,E){if((B/=E/2)<1){return-D/2*(Math.sqrt(1-B*B)-1)+C}return D/2*(Math.sqrt(1-(B-=2)*B)+1)+C},easeInElastic:function(A,B,C,D,E){var F=1.70158;var G=0;var H=D;if(B==0){return C}if((B/=E)==1){return C+D}if(!G){G=E*0.3}if(H=0?t:e,l=e,p=!0,top!=self)g=!0;else if(o>n&&(e.offsetHeight<=n||t.offsetHeight<=n)){var r=!1,a=function(){r||t.scrollHeight==document.height||(r=!0,setTimeout(function(){t.style.height=document.height+"px",r=!1},500))};if(t.style.height="",setTimeout(a,10),i("DOMNodeInserted",a),i("DOMNodeRemoved",a),x.offsetHeight<=n){var u=document.createElement("div");u.style.clear="both",e.appendChild(u)}}if(document.URL.indexOf("mail.google.com")>-1){var s=document.createElement("style");s.innerHTML=".iu { visibility: hidden }",(document.getElementsByTagName("head")[0]||t).appendChild(s)}b||w||(e.style.backgroundAttachment="scroll",t.style.backgroundAttachment="scroll")}}function t(e,t,n,o){if(o||(o=1e3),function(e,t){e=e>0?1:-1,t=t>0?1:-1,y.x===e&&y.y===t||(y.x=e,y.y=t,D=[],M=0)}(t,n),h){var i=+new Date-M;if(i1&&(r=Math.min(r,v),t*=r,n*=r)}M=+new Date}if(D.push({x:t,y:n,lastX:t<0?.99:-.99,lastY:n<0?.99:-.99,start:+new Date}),!H){var l=e===document.body,d=function(){for(var i=+new Date,r=0,h=0,m=0;m=s,y=g?1:w/s;c&&(y=function(e){return e>=1?1:e<=0?0:(1==f&&(f/=a(1)),a(e))}(y));var p=v.x*y-v.lastX>>0,b=v.y*y-v.lastY>>0;r+=p,h+=b,v.lastX+=p,v.lastY+=b,g&&(D.splice(m,1),m--)}l?window.scrollBy(r,h):(r&&(e.scrollLeft+=r),h&&(e.scrollTop+=h)),!t&&!n&&(D=[]),D.length?C(d,e,o/u+1):H=!1};C(d,e,0),H=!0}}function n(e,t){for(var n=e.length;n--;)E[q(e[n])]=t;return t}function o(e){var t=[],o=x.scrollHeight;do{var i=E[q(e)];if(i)return n(t,i);if(t.push(e),o===e.scrollHeight){if(!g||x.clientHeight+101.2&&(u*=stepsize/120),Math.abs(s)>1.2&&(s*=stepsize/120),t(a,-u,-s),n.preventDefault()}),i("load",e)}})(jQuery,300,120); /*pluginsS*/ var CountUp=function(a,t,n,e,i,r){function o(a){return"number"==typeof a&&!isNaN(a)}for(var l=0,s=["webkit","moz","ms","o"],u=0;u1?m.options.decimal+t[1]:"",i=/(\d+)(\d{3})/,m.options.useGrouping)for(;i.test(n);)n=n.replace(i,"$1"+m.options.separator+"$2");return m.options.prefix+n+e+m.options.suffix},prefix:"",suffix:""},r&&"object"==typeof r)for(var d in m.options)r.hasOwnProperty(d)&&null!==r[d]&&(m.options[d]=r[d]);""===m.options.separator&&(m.options.useGrouping=!1),m.initialize=function(){return!(!m.initialized&&(m.d="string"==typeof a?document.getElementById(a):a,m.d?(m.startVal=Number(t)||0,m.endVal=Number(n)||0,o(m.startVal)&&o(m.endVal)?(m.decimals=Math.max(0,e||0),m.dec=Math.pow(10,m.decimals),m.duration=1e3*Number(i)||2e3,m.countDown=m.startVal>m.endVal,m.frameVal=m.startVal,m.initialized=!0,0):(console.error("[CountUp] startVal or endVal is not a number",m.startVal,m.endVal),1)):(console.error("[CountUp] target is null or undefined",m.d),1)))},m.printValue=function(a){var t=m.options.formattingFn(a);"INPUT"===m.d.tagName?this.d.value=t:"text"===m.d.tagName||"tspan"===m.d.tagName?this.d.textContent=t:this.d.innerHTML=t},m.count=function(a){m.startTime||(m.startTime=a),m.timestamp=a;var t=a-m.startTime;m.remaining=m.duration-t,m.options.useEasing?m.countDown?m.frameVal=m.startVal-m.options.easingFn(t,0,m.startVal-m.endVal,m.duration,m.options.rate):m.frameVal=m.options.easingFn(t,m.startVal,m.endVal-m.startVal,m.duration,m.options.rate):m.countDown?m.frameVal=m.startVal-(m.startVal-m.endVal)*(t/m.duration):m.frameVal=m.startVal+(m.endVal-m.startVal)*(t/m.duration),m.countDown?m.frameVal=m.frameValm.endVal?m.endVal:m.frameVal,m.frameVal=Math.round(m.frameVal*m.dec)/m.dec,m.printValue(m.frameVal),tm.endVal,m.rAF=requestAnimationFrame(m.count))}},m.initialize()&&m.printValue(m.startVal)}; /*ScrollBox {.data('callback')--function(){}}瑙﹀簳鍥炶皟*/ !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";function o(o,e){function s(){return l.update(),function(){z&&(d[0].ontouchstart=function(t){1===t.touches.length&&(t.stopPropagation(),h(t.touches[0]))});S.bind(TouchOn,function(t){t.stopPropagation(),h(t)}),p.bind(TouchOn,function(t){h(t,!0)}),t(window).resize(function(){l.update("relative")}),l.options.wheel&&window.addEventListener?o[0].addEventListener(b,a,!1):l.options.wheel&&(o[0].onmousewheel=a)}(),l}function c(){return l.contentPosition>=0&&l.contentPosition5&&o.addClass("unlock"),o.data("callback")&&o.data("callback")()):(o[0].counter=0,o.removeClass("unlock")),(l.options.wheelLock||c()&&!o.hasClass("unlock"))&&(n=t.event.fix(n)).preventDefault(),fnLazyloadPd(o)&&t.fn.Y_LazyLoad.Init(o),fnScrollElePd(o)&&(t.fn.Y_ScrollEle.Init(o),t.fn.Y_ScrollEle.Do(o,0,!0))}}function u(t){if(l.hasContentToSroll){var n=v?t.pageX:t.pageY,e=t[i+"Touch"]?k-n:n-k,s=Math.min(l.trackSize-l.thumbSize,Math.max(0,l.thumbPosition+e));l.contentPosition=s*l.trackRatio,o.trigger("move"),S.css(P,s),f.css(P,-l.contentPosition).find(".fixed").css(P,l.contentPosition)}}function r(){l.thumbPosition=parseInt(S.css(P),10)||0,f.removeClass("unsel"),f.hasClass("mousein")||f.trigger("mouseleave"),t(document).unbind(TouchIng+".moduleScroll",u),t(document).unbind(TouchEd+".moduleScroll",r),S.unbind(TouchEd+".moduleScroll",r),p.unbind(TouchEd+".moduleScroll",r),document.ontouchmove=document.ontouchend=null,setTimeout(function(){fnLazyloadPd(o)&&t.fn.Y_LazyLoad.Init(o),fnScrollElePd(o)&&(t.fn.Y_ScrollEle.Init(o),t.fn.Y_ScrollEle.Do(o,0,!0))},240)}this.options=t.extend({},n,e),this._defaults=n,this._name=i;var l=this,d=o.find(this.options.viewport),f=o.find(this.options.overview),m=o.find(this.options.scrollbar),p=m.find(this.options.track),S=m.find(this.options.thumb),z="ontouchstart"in document.documentElement,b="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",v="x"===this.options.axis,w=v?"width":"height",P=v?"left":"top",k=0;return this.contentPosition=0,this.viewportSize=0,this.contentSize=0,this.contentRatio=0,this.trackSize=0,this.trackRatio=0,this.thumbSize=0,this.thumbPosition=0,this.hasContentToSroll=!1,this.update=function(t){var o=w.charAt(0).toUpperCase()+w.slice(1).toLowerCase();switch(this.viewportSize=d[0]["offset"+o],this.contentSize=f[0]["scroll"+o],this.contentRatio=this.viewportSize/this.contentSize,this.trackSize=this.options.trackSize||this.viewportSize,this.thumbSize=Math.min(this.trackSize,Math.max(this.options.thumbSizeMin,this.options.thumbSize||this.trackSize*this.contentRatio)),this.trackRatio=(this.contentSize-this.viewportSize)/(this.trackSize-this.thumbSize),this.hasContentToSroll=this.contentRatio<1,m.toggleClass("disable",!this.hasContentToSroll),t){case"bottom":this.contentPosition=Math.max(this.contentSize-this.viewportSize,0);break;case"relative":this.contentPosition=Math.min(Math.max(this.contentSize-this.viewportSize,0),Math.max(0,this.contentPosition));break;default:this.contentPosition=parseInt(t,10)||0}return this.thumbPosition=this.contentPosition/this.trackRatio,S.css(P,l.thumbPosition),f.css(P,-l.contentPosition).find(".fixed").css(P,l.contentPosition),m.css(w,l.trackSize),p.css(w,l.trackSize),S.css(w,l.thumbSize),l},s()}var i="tinyscrollbar",n={axis:"y",wheel:!0,wheelSpeed:16,wheelLock:!1,touchLock:!1,trackSize:!1,thumbSize:!1,thumbSizeMin:20,viewport:".viewport",overview:".overview",scrollbar:".scrollbar",track:".track",thumb:".thumb"};t.fn[i]=function(n){return this.each(function(){t.data(this,"plugin_"+i)||t.data(this,"plugin_"+i,new o(t(this),n))})}}); /*pluginsE*/ /* basic Fn S*/ function a(t){alert(t)}function c(t){console.log(t)}function cw(t){console.warn(t)}function ce(t){console.error(t)}function dbn(t,e){e=e||"",t.show().siblings(e).hide()}function mlr(t,e){return Math.ceil(parseInt(t.css(e?"margin-left":"margin-right")))||0}function mtb(t,e){return Math.ceil(parseInt(t.css(e?"margin-top":"margin-bottom")))||0}function plr(t,e){return Math.ceil(parseInt(t.css(e?"padding-left":"padding-right")))||0}function ptb(t,e){return Math.ceil(parseInt(t.css(e?"padding-top":"padding-bottom")))||0}function getW(t){return Math.ceil(parseInt(t.outerWidth()+mlr(t,1)+mlr(t,0)))}function getH(t){return Math.ceil(parseInt(t.outerHeight()+mtb(t,1)+mtb(t,0)))}function getWH(t,e){return Math.ceil(e?parseInt(t.outerHeight()+mtb(t,1)+mtb(t,0)):parseInt(t.outerWidth()+mlr(t,1)+mlr(t,0)))}function getAniDur(t){return parseFloat(t.css("animation-duration"))>10?parseFloat(t.css("animation-duration")):1e3*parseFloat(t.css("animation-duration"))}function sElements(t){return String(t[0].tagName+"."+t.attr("class"))}function fnScrollElePd(t){return ysq.Switch&&$.fn.Y_ScrollEle&&(t.is("[scrollEle]")||t.find("[scrollEle]").length)}function fnLazyloadPd(t){return $.fn.Y_LazyLoad&&t.find("[lazy-src]").length}function bindScrollFn(t,e){$(t).addClass("Y_AutoCheck"),t.fnAuto=function(){e()}}function inWindow(t,e,n){var o=t.offset().top,i=t.offset().left,s=w.scrollTop(),r=w.scrollLeft(),a=s+w.height(),e=e||[0,0];ysq.IsMoble&&(e=[0,w.height()/10]);var l=r+0,c=r+w.width()-0,u=s+e[0],d=a-e[1],f=i,h=i+t.outerWidth(),p=o,v=o+t.outerHeight(),m=h-f>=c-l?h>=l&&l>=f||h>=c&&f<=c:h>=l&&h<=c||f>=l&&f<=c,g=v-p>=d-u?v>=u&&u>=p||v>=d&&p<=d:v>=u&&(v<=d||a>=$b.outerHeight()-e[1]&&p<=a)||p<=d&&(p>=u||(s<=e[0]||"fixed"==t.css("position"))&&p>=s);return n&&(m=h>=l&&h<=c||f<=c&&f>=l,g=v>=u&&v<=d||p<=d&&p>=u),ysq.Test&&ysq.TT&&cw("outerWindow:"+sElements(t)),m&&g}function isHidden(t){return t.is(":hidden")||"hidden"==t.parent().css("visibility")}function fnPen(t,e){t.hasClass("_pen")||(t.addClass("_pen"),setTimeout(function(){t.removeClass("_pen")},e||800))}function iPhoneTest(){return navigator.userAgent.indexOf("iPhone")>-1}function MacTest(){return navigator.userAgent.indexOf("Mac")>-1&&navigator.userAgent.indexOf("Safari")>-1}function UCTest(){return navigator.userAgent.indexOf("UCBrowser")>-1}function SaveData(t,e,n){n=n||1;var o=new Date;o.setDate(o.getDate()+n),document.cookie=t+"="+e+";expires="+o}function GetData(t){for(var e=document.cookie.split("; "),n=0;nt}function isNull(t){return""==!!t||void 0==!!t||null==!!t||/^[ ]+$/.test(t)}function isSpace(t){return"\r"==t||"\n"==t||" "==t}function stopprop(t){if(!(t=t||window.event)||!t.stopPropagation)return window.event.cancelBubble=!1,!1;t.stopPropagation()}function prevent_default(t){if(!(t=t||window.event)||!t.preventDefault)return window.event.returnValue=!1,!1;t.preventDefault()}function addEvent(t,e,n,o){if(t.addEventListener)return t.addEventListener(e,n,o),!0;if(t.attachEvent){return t.attachEvent("on"+e,n)}t["on"+e]=n}function removeEvent(t,e,n,o){if(t.removeEventListener)return t.removeEventListener(e,n,o),!0;if(t.detachEvent){return t.detachEvent("on"+e,n)}return void(t["on"+e]=null)}function setVamCss(t,e,n,o){$(".css"+e).length&&$(".css"+e).remove();var i="."+e+" "+(n||"");$("head").append('")}function setProperty(oE,ppty,_boole){_boole?$(oE).removeClass("_disabled"):$(oE).addClass("_disabled"),$(oE).attr("temp_ID",0),eval('$("[temp_ID]")[0].'+ppty+"="+_boole),$(oE).removeAttr("temp_ID")}function lockScroll(){if(ysq.IsMoble)w.lastPosTop=w.scrollTop(),setTimeout(function(){$h.add($b).css({height:"100%",overflow:"hidden"}),$(".scroll-wrap").css({top:-1*w.lastPosTop})},500);else{var t=w.scrollTop();w.on("scroll.lock",function(e){w.scrollTop(t)}),$b.css({overflow:"hidden"})}}function unlockScroll(){ysq.IsMoble?($h.add($b).css({height:"auto",overflow:"visible"}),w.scrollTop(w.lastPosTop),$(".scroll-wrap").css({top:"auto"})):(w.off("scroll.lock"),$b.css({overflow:"auto"}))}function packStr(t,e,n){n=n||"i",t.each(function(t,o){for(var i=$(o).html(),s="",r=0;r"+i.charAt(r)+"":i.charAt(r);$(o).html(s)})}function makeMask(t){return"
    "}function onoff(t,e){e=$.extend({},{cls:"on",sib:""},e),t.addClass(e.cls).siblings(e.sib).removeClass(e.cls)}function inout(t,e){e=$.extend({},{cls:"on",sib:"",dur:0,cbk:null},e),t.addClass(e.cls).stop(!0,!0).fadeIn(e.dur,function(){e.cbk&&e.cbk(),fnScrollElePd(t)&&($.fn.Y_ScrollEle.Init(t),$.fn.Y_ScrollEle.Do(t,0,!0))}).siblings(e.sib).removeClass(e.cls).fadeOut(e.dur)}function setTextLine(t,e,n){t.each(function(t,o){if(o.lined||$(o).is(":hidden"))return!0;var i=(t=$(o)).attr("data-text-line")&&t.attr("data-text-line").split(","),s=e||i[0],r=t.css("font-size"),a=t.width()*s,l=$.trim(t.html()).replace(" ","銆€"),c=$("
    "+t.html()+"
    ").css({fontSize:r}).appendTo($("body")),u=c.width(),d=n||i[1]||2*parseInt(r);if(u>a){var f=Math.floor(l.length*a/u),h=l.substring(0,f)+"...";if((u=c.text(h).width()+d)>a)for(;u>a&&f>1;)f--,h=l.substring(0,f)+"... ",u=c.text(h).width()+d;else if(a>u){for(;a>u&&fa&&(h=l.substring(0,f-1)+"...")}t.removeAttr("data-text-line").html(h.replace("銆€"," "))}c.remove(),o.lined=!0})}function Y_BodyScroll(t){t=$.extend({},{contain:"html,body",goal:0,err:0,dur:400,cbk:null},t),$(t.contain).stop(!0,!1).animate({scrollTop:t.goal-t.err},t.dur,function(){t.cbk&&t.cbk()})}function Y_Tan(t,e){function n(t){ysq.HasTan[1]&&clearTimeout(i),$(".TAlert").removeClass("on").fadeOut(333,function(){r=!1,$(".TAlert,.cssTAlert").remove(),t&&t.call(this)})}var o={headWord:"鎻愮ず淇℃伅",fnNo:null,fnYes:null,bAutoClose:!0,nTimeOut:1500,cls:" "};if(o=$.extend({},o,e),!ysq.HasTan[0])return a(t),!1;var i,s=o.fnYes?1:0,r=!0;$(".TAlert").length&&$(".TAlert").remove();var l='
    '+o.headWord+'X
    '+t+"
    ";sDiv2='',l+=s?'':sDiv2,l+="
    ",$b.append(l),r&&setVamCss(w.height(),"TAlert"),o.bAutoClose&&ysq.HasTan[1]&&(i=setTimeout(function(){n(o.fnNo)},o.nTimeOut)),$(".TAlert").prepend(makeMask()).fadeIn(600,function(){$(this).find(".close").off(TouchEd).on(TouchEd,function(){n(o.fnNo)})}).addClass("on"),o.fnYes&&$(".TAlert .enter").off(TouchEd).on(TouchEd,function(){n(o.fnYes)}),w.resize(function(){r&&setVamCss(w.height(),"TAlert")}),$(document).keydown(function(t){r&&27==t.keyCode&&n(o.fnNo)})} /* basic Fn E*/