/*! * plugins for yo-project v1.1.0-alpha.1 (https://rnmmp.grd) * copyright 2016-2018 code yo, authors own. * licensed under mit, gcc-gcz-gpp (https://rnmmp.grd/aiyongbuyong/aishuobushuo/) * date 2018-3-20 */ /*! modernizr 3.5.0 (custom build) | mit * https://modernizr.com/download/?-audio-backgroundsize-boxshadow-canvas-cssanimations-csscalc-cssfilters-cssgradients-cssgrid_cssgridlegacy-csstransforms-csstransforms3d-csstransitions-cssvhunit-cssvwunit-flexbox-preserve3d-rgba-svg-touchevents-userselect-video-mq-setclasses !*/ !function(e,t,n){function r(e,t){return typeof e===t}function o(){var e,t,n,o,s,a,i;for(var l in w)if(w.hasownproperty(l)){if(e=[],t=w[l],t.name&&(e.push(t.name.tolowercase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;np;p++)if(m=e[p],v=a.style[m],c(m,"-")&&(m=u(m)),a.style[m]!==n){if(s||r(o,"undefined"))return i(),"pfx"==t?m:!0;try{a.style[m]=o}catch(y){}if(a.style[m]!=v)return i(),"pfx"==t?m:!0}return i(),!1}function h(e,t,n,o,s){var a=e.charat(0).touppercase()+e.slice(1),i=(e+" "+$.join(a+" ")+a).split(" ");return r(t,"string")||r(t,"undefined")?v(i,t,o,s):(i=(e+" "+n.join(a+" ")+a).split(" "),f(i,t,n))}function y(e,t,r){return h(e,n,n,t,r)}var t=[],w=[],x={_version:"3.5.0",_config:{classprefix:"",enableclasses:!0,enablejsclass:!0,useprefixes:!0},_q:[],on:function(e,t){var n=this;settimeout(function(){t(n[e])},0)},addtest:function(e,t,n){w.push({name:e,fn:t,options:n})},addasynctest:function(e){w.push({name:null,fn:e})}},modernizr=function(){};modernizr.prototype=x,modernizr=new modernizr,modernizr.addtest("svg",!!t.createelementns&&!!t.createelementns("http://www.w3.org/2000/svg","svg").createsvgrect);var b=t.documentelement,c="svg"===b.nodename.tolowercase();modernizr.addtest("audio",function(){var e=a("audio"),t=!1;try{t=!!e.canplaytype,t&&(t=new boolean(t),t.ogg=e.canplaytype('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canplaytype('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canplaytype('audio/ogg; codecs="opus"')||e.canplaytype('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canplaytype('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canplaytype("audio/x-m4a;")||e.canplaytype("audio/aac;")).replace(/^no$/,""))}catch(n){}return t}),modernizr.addtest("canvas",function(){var e=a("canvas");return!(!e.getcontext||!e.getcontext("2d"))}),modernizr.addtest("video",function(){var e=a("video"),t=!1;try{t=!!e.canplaytype,t&&(t=new boolean(t),t.ogg=e.canplaytype('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canplaytype('video/mp4; codecs="avc1.42e01e"').replace(/^no$/,""),t.webm=e.canplaytype('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canplaytype('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canplaytype('application/x-mpegurl; codecs="avc1.42e01e"').replace(/^no$/,""))}catch(n){}return t}),modernizr.addtest("rgba",function(){var e=a("a").style;return e.csstext="background-color:rgba(150,255,150,.5)",(""+e.backgroundcolor).indexof("rgba")>-1}),modernizr.addtest("preserve3d",function(){var t,n,r=e.css,o=!1;return r&&r.supports&&r.supports("(transform-style: preserve-3d)")?!0:(t=a("a"),n=a("a"),t.style.csstext="display: block; transform-style: preserve-3d; transform-origin: right; transform: rotatey(40deg);",n.style.csstext="display: block; width: 9px; height: 1px; background: #000; transform-origin: right; transform: rotatey(40deg);",t.appendchild(n),b.appendchild(t),o=n.getboundingclientrect(),b.removechild(t),o=o.width&&o.width<4)});var s=x._config.useprefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];x._prefixes=s,modernizr.addtest("csscalc",function(){var e="width:",t="calc(10px);",n=a("a");return n.style.csstext=e+s.join(t+e),!!n.style.length}),modernizr.addtest("cssgradients",function(){for(var e,t="background-image:",n="gradient(linear,left top,right bottom,from(#9f9),to(white));",r="",o=0,s=s.length-1;s>o;o++)e=0===o?"to ":"",r+=t+s[o]+"linear-gradient("+e+"left top, #9f9, white);";modernizr._config.useprefixes&&(r+=t+"-webkit-"+n);var i=a("a"),l=i.style;return l.csstext=r,(""+l.backgroundimage).indexof("gradient")>-1});var p="css"in e&&"supports"in e.css,_="supportscss"in e;modernizr.addtest("supports",p||_);var z=function(){var t=e.matchmedia||e.msmatchmedia;return t?function(e){var n=t(e);return n&&n.matches||!1}:function(t){var n=!1;return d("@media "+t+" { #modernizr { position: absolute; } }",function(t){n="absolute"==(e.getcomputedstyle?e.getcomputedstyle(t,null):t.currentstyle).position}),n}}();x.mq=z;var k=x.teststyles=d;modernizr.addtest("touchevents",function(){var n;if("ontouchstart"in e||e.documenttouch&&t instanceof documenttouch)n=!0;else{var r=["@media (",s.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");k(r,function(e){n=9===e.offsettop})}return n}),k("#modernizr { height: 50vh; }",function(t){var n=parseint(e.innerheight/2,10),r=parseint(i(t,null,"height"),10);modernizr.addtest("cssvhunit",r==n)}),k("#modernizr { width: 50vw; }",function(t){var n=parseint(e.innerwidth/2,10),r=parseint(i(t,null,"width"),10);modernizr.addtest("cssvwunit",r==n)});var e="moz o ms webkit",$=x._config.useprefixes?e.split(" "):[];x._cssomprefixes=$;var n=x._config.useprefixes?e.tolowercase().split(" "):[];x._domprefixes=n;var j={elem:a("modernizr")};modernizr._q.push(function(){delete j.elem});var a={style:j.elem.style};modernizr._q.unshift(function(){delete a.style}),x.testallprops=h,x.testallprops=y,modernizr.addtest("cssanimations",y("animationname","a",!0)),modernizr.addtest("backgroundsize",y("backgroundsize","100%",!0)),modernizr.addtest("boxshadow",y("boxshadow","1px 1px",!0)),modernizr.addtest("cssgridlegacy",y("grid-columns","10px",!0)),modernizr.addtest("cssgrid",y("grid-template-rows","none",!0)),modernizr.addtest("cssfilters",function(){if(modernizr.supports)return y("filter","blur(2px)");var e=a("a");return e.style.csstext=s.join("filter:blur(2px); "),!!e.style.length&&(t.documentmode===n||t.documentmode>9)}),modernizr.addtest("flexbox",y("flexbasis","1px",!0)),modernizr.addtest("csstransforms",function(){return-1===navigator.useragent.indexof("android 2.")&&y("transform","scale(1)",!0)}),modernizr.addtest("csstransforms3d",function(){var e=!!y("perspective","1px",!0),t=modernizr._config.useprefixes;if(e&&(!t||"webkitperspective"in b.style)){var n,r="#modernizr{width:0;height:0}";modernizr.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",k(r+n,function(t){e=7===t.offsetwidth&&18===t.offsetheight})}return e}),modernizr.addtest("csstransitions",y("transition","all",!0)),modernizr.addtest("userselect",y("userselect","none",!0)),o(),s(t),delete x.addtest,delete x.addasynctest;for(var i=0;iprevious',nextarrow:'',autoplay:!1,autoplayspeed:3e3,centermode:!1,centerpadding:"50px",cssease:"ease",custompaging:function(e,t){return i('
 / 
',spinnertpl:'
',errortpl:'

加载失败!
请稍后重试。

',closetpl:'',parentel:"body",touch:!0,keyboard:!0,focus:!0,closeclickoutside:!0,beforeload:n.noop,afterload:n.noop,beforemove:n.noop,aftermove:n.noop,oncomplete:n.noop,oninit:n.noop,beforeclose:n.noop,afterclose:n.noop,onactivate:n.noop,ondeactivate:n.noop},a=n(t),r=n(e),c=0,l=function(t){return t&&t.hasownproperty&&t instanceof n},u=function(){return t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||function(e){t.settimeout(e,1e3/60)}}(),d=function(o){var s;return"function"==typeof n&&o instanceof n&&(o=o[0]),s=o.getboundingclientrect(),s.bottom>0&&s.right>0&&s.left<(t.innerwidth||e.documentelement.clientwidth)&&s.top<(t.innerheight||e.documentelement.clientheight)},p=function(t,o,s){var a=this;a.opts=n.extend(!0,{index:s},i,o||{}),a.id=a.opts.id||++c,a.group=[],a.currindex=parseint(a.opts.index,10)||0,a.previndex=null,a.prevpos=null,a.currpos=0,a.firstrun=null,a.creategroup(t),a.group.length&&(a.$lastfocus=n(e.activeelement).blur(),a.slides={},a.init(t))};n.extend(p.prototype,{init:function(){var t,e,o=this,s=!1;o.scrolltop=r.scrolltop(),o.scrollleft=r.scrollleft(),n.fancybox.getinstance()||(t=n("body").width(),n("html").addclass("fancybox-enabled"),n.fancybox.istouch?(n.each(o.group,function(t,e){if("image"!==e.type&&"iframe"!==e.type)return s=!0,!1}),s&&n("body").css({position:"fixed",width:t,top:o.scrolltop*-1})):(t=n("body").width()-t,t>1&&n('