var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+c+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.initSymbol=function(){}; $jscomp.polyfill("Symbol",function(a){if(a)return a;var b=function(f,g){this.$jscomp$symbol$id_=f;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e},"es6","es3"); $jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}},"es6","es3"); $jscomp.polyfill("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c=f}},"es6","es3");$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}; $jscomp.polyfill("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)$jscomp.owns(b,d)&&c.push([d,b[d]]);return c}},"es8","es3");$jscomp.polyfill("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}},"es6","es3"); $jscomp.polyfill("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c

");$("body").append(this.$text)},text:function(a){this.$text.find("span").html(a);this.animateShow();this.delay&&window.clearTimeout(this.delay);this.delay=window.setTimeout(function(){this.animateHide();this.delay=null}.bind(this),2E3)},animateShow:function(){this.$text.css({opacity:1,display:"block"})},animateHide:function(){this.$text.animate({opacity:"0"},1E3,function(){this.$text.hide()}.bind(this))}}); bdor[30]=function(a,b){return bdor[a]-b}; Class("RangeSlider",{create:function(a,b){this.slider=a;this.min=0;this.max=b.max?b.max:1;isNaN(this.max)&&(this.max=100);this.onChange=b.onChange;this.init();void 0==b.range||isNaN(b.range)?(this.currentRange=0,this.setRange(0)):(this.currentRange=b.range,this.setRange(b.range))},init:function(){this.slider_total=$('
');this.slider_range=$('
');this.slider_hander=$('
');this.slider_range.css("pointer-events", "none");this.slider_hander.css("pointer-events","none");this.slider.append(this.slider_total);this.slider.append(this.slider_range);this.slider.append(this.slider_hander);this.initEvents()},initEvents:function(){this.isMouseDown=!1;this.slider_total.bind(_event._down,function(a){this.isMouseDown=!0;a=isTouch?a.originalEvent?a.originalEvent.changedTouches:a.changedTouches:[a];this.onChangeRange(a);return!1}.bind(this));this.slider_total.bind(_event._move,function(a){if(this.isMouseDown)return a=isTouch? a.originalEvent?a.originalEvent.changedTouches:a.changedTouches:[a],this.onChangeRange(a),!1}.bind(this));this.slider_total.bind(_event._up,function(a){return this.isMouseDown=!1}.bind(this));this.slider_total.bind(_event._leave,function(a){this.isMouseDown=!1}.bind(this));this.slider_hander.bind(_event._down,function(a){a=isTouch?a.originalEvent?a.originalEvent.changedTouches:a.changedTouches:[a];this.onChangeRange(a);return!1}.bind(this))},setMax:function(a){this.max=a},setRange:function(a){if(void 0!= a){this.range=parseFloat(a);this.animation&&this.animation.stop();var b=this.currentRange,c=this.range;this.animation=function(d,e){this.currentRange=$.easing.swing(null,d,b,c-b,e);this.moveToRange(this.currentRange);this.currentRange==this.range&&this.animation&&this.animation.stop()}.animation(this,200)}},onChangeRange:virtual_function,moveToRange:virtual_function}); Class("VerticalSlider",{onChangeRange:function(a){a=a[0];if(void 0!=a){var b=$(a.target),c=a.offsetY;void 0==c&&(c=a.pageY-b.offset().top);a=(b.height()-c)/this.slider_total.height()*this.max;this.setRange(a);if(this.onChange)this.onChange(a)}},moveToRange:function(a){this.slider_total.offset();this.slider.offset();var b=parseInt(this.slider_range.css("bottom").replace("px","")),c=this.slider_hander.width(),d=this.slider_total.height()-c;a=Math.floor(a*d/this.max);a=Math.min(a,d);c=a+c/2;this.slider_hander.css({bottom:a+ b});this.slider_range.css({height:c})}}).extend("RangeSlider"); Class("HorizontalSlider",{onChangeRange:function(a){a=a[0];if(void 0!=a){var b=$(a.target),c=a.offsetX;void 0==c&&(c=a.pageX-b.offset().left);a=c/this.slider_total.width()*this.max;this.setRange(a);if(this.onChange)this.onChange(a)}},moveToRange:function(a){var b=this.slider_total.offset().left-this.slider.offset().left;parseInt(this.slider_range.css("bottom").replace("px",""));var c=this.slider_hander.width(),d=this.slider_total.width()-c;a=Math.floor(a*d/this.max);a=Math.min(a,d);c=a+c/2;this.slider_hander.css({left:a+ b});this.slider_range.css({width:c})}}).extend("RangeSlider");(function(a){a.fn.slider=function(b){if(b)return this.empty(),"horizontal"==b.direction?new HorizontalSlider(this,b):new VerticalSlider(this,b)}})(jQuery);function QR8bitByte(a){this.mode=QRMode.MODE_8BIT_BYTE;this.data=a}QR8bitByte.prototype={getLength:function(a){return this.data.length},write:function(a){for(var b=0;ba||this.moduleCount<=a||0>b||this.moduleCount<=b)throw Error(a+","+b);return this.modules[a][b]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){var a;for(a=1;40>a;a++){for(var b=QRRSBlock.getRSBlocks(a,this.errorCorrectLevel),c=new QRBitBuffer,d=0,e=0;e=c;c++)if(!(-1>=a+c||this.moduleCount<=a+c))for(var d=-1;7>=d;d++)-1>=b+d||this.moduleCount<=b+d||(this.modules[a+c][b+d]=0<=c&&6>=c&&(0==d||6==d)||0<=d&&6>= d&&(0==c||6==c)||2<=c&&4>=c&&2<=d&&4>=d?!0:!1)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;8>c;c++){this.makeImpl(!0,c);var d=QRUtil.getLostPoint(this);if(0==c||a>d)a=d,b=c}return b},createMovieClip:function(a,b,c){a=a.createEmptyMovieClip(b,c);this.make();for(b=0;b=f;f++)for(var g=-2;2>=g;g++)this.modules[d+f][e+g]=-2==f||2==f||-2==g||2==g||0==f&&0==g?!0:!1}},setupTypeNumber:function(a){for(var b= QRUtil.getBCHTypeNumber(this.typeNumber),c=0;18>c;c++){var d=!a&&1==(b>>c&1);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d}for(c=0;18>c;c++)d=!a&&1==(b>>c&1),this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d},setupTypeInfo:function(a,b){b=QRUtil.getBCHTypeInfo(this.errorCorrectLevel<<3|b);for(var c=0;15>c;c++){var d=!a&&1==(b>>c&1);6>c?this.modules[c][8]=d:8>c?this.modules[c+1][8]=d:this.modules[this.moduleCount-15+c][8]=d}for(c=0;15>c;c++)d=!a&&1==(b>>c&1),8>c?this.modules[8][this.moduleCount- c-1]=d:9>c?this.modules[8][15-c-1+1]=d:this.modules[8][15-c-1]=d;this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,d=this.moduleCount-1,e=7,f=0,g=this.moduleCount-1;0h;h++)if(null==this.modules[d][g-h]){var m=!1;f>>e&1));QRUtil.getMask(b,d,g-h)&&(m=!m);this.modules[d][g-h]=m;e--;-1==e&&(f++,e=7)}d+=c;if(0>d||this.moduleCount<=d){d-=c;c=-c;break}}}};QRCode.PAD0=236;QRCode.PAD1=17; QRCode.createData=function(a,b,c){b=QRRSBlock.getRSBlocks(a,b);for(var d=new QRBitBuffer,e=0;e8*a)throw Error("code length overflow. ("+d.getLengthInBits()+">"+8*a+")");for(d.getLengthInBits()+4<=8*a&&d.put(0,4);0!=d.getLengthInBits()%8;)d.putBit(!1);for(;!(d.getLengthInBits()>=8*a);){d.put(QRCode.PAD0,8);if(d.getLengthInBits()>= 8*a)break;d.put(QRCode.PAD1,8)}return QRCode.createBytes(d,b)}; QRCode.createBytes=function(a,b){for(var c=0,d=0,e=0,f=Array(b.length),g=Array(b.length),h=0;h>>=1;return b},getPatternPosition:function(a){return QRUtil.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case QRMaskPattern.PATTERN000:return 0==(b+c)% 2;case QRMaskPattern.PATTERN001:return 0==b%2;case QRMaskPattern.PATTERN010:return 0==c%3;case QRMaskPattern.PATTERN011:return 0==(b+c)%3;case QRMaskPattern.PATTERN100:return 0==(Math.floor(b/2)+Math.floor(c/3))%2;case QRMaskPattern.PATTERN101:return 0==b*c%2+b*c%3;case QRMaskPattern.PATTERN110:return 0==(b*c%2+b*c%3)%2;case QRMaskPattern.PATTERN111:return 0==(b*c%3+(b+c)%2)%2;default:throw Error("bad maskPattern:"+a);}},getErrorCorrectPolynomial:function(a){for(var b=new QRPolynomial([1],0),c=0;c< a;c++)b=b.multiply(new QRPolynomial([1,QRMath.gexp(c)],0));return b},getLengthInBits:function(a,b){if(1<=b&&10>b)switch(a){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;case QRMode.MODE_KANJI:return 8;default:throw Error("mode:"+a);}else if(27>b)switch(a){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw Error("mode:"+a);}else if(41>b)switch(a){case QRMode.MODE_NUMBER:return 14; case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw Error("mode:"+a);}else throw Error("type:"+b);},getLostPoint:function(a){for(var b=a.getModuleCount(),c=0,d=0;d=h;h++)if(!(0>d+h||b<=d+h))for(var m=-1;1>=m;m++)0>e+m||b<=e+m||(0!=h||0!=m)&&g==a.isDark(d+h,e+m)&&f++;5a)throw Error("glog("+ a+")");return QRMath.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;256<=a;)a-=255;return QRMath.EXP_TABLE[a]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},i=0;8>i;i++)QRMath.EXP_TABLE[i]=1<i;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(i=0;255>i;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i; function QRPolynomial(a,b){if(void 0==a.length)throw Error(a.length+"/"+b);for(var c=0;cthis.getLength()-a.getLength())return this;for(var b=QRMath.glog(this.get(0))-QRMath.glog(a.get(0)),c=Array(this.getLength()),d=0;d>>7-a%8&1)},put:function(a,b){for(var c=0;c>>b-c-1&1))},getLengthInBits:function(){return this.length},putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0);a&&(this.buffer[b]|=128>>>this.length%8);this.length++}}; (function(a){a.fn.qrcode=function(b){"string"===typeof b&&(b={text:b});b=a.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},b);var c=function(){var d=new QRCode(b.typeNumber,b.correctLevel);d.addData(b.text);d.make();var e=document.createElement("canvas");e.width=b.width;e.height=b.height;for(var f=e.getContext("2d"),g=b.width/d.getModuleCount(),h=b.height/d.getModuleCount(),m=0;m").css("width",b.width+"px").css("height",b.height+"px").css("border","0px").css("border-collapse", "collapse").css("background-color",b.background),f=b.width/d.getModuleCount(),g=b.height/d.getModuleCount(),h=0;h").css("height",g+"px").appendTo(e),k=0;k").css("width",f+"px").css("background-color",d.isDark(h,k)?b.foreground:b.background).appendTo(m);d=e}else d=c(),e=new Image,e.src=d.toDataURL("image/png"),d=e;else d=c();jQuery(d).appendTo(this)})}})(jQuery); Class("VideoSkin",{create:function(a,b){this.content=a;this.video=a.find("video:first");this.html_video=b?b:this.video[0];this.initPlayer();this.initControlBar();this.initSkin();this.initEvents();this.onResize()},initPlayer:function(){this.player=this.html_video;var a=this.video.find("source:first");a&&(a=a.attr("src"),(a.endsWith(".flv")||a.endsWith(".f4v"))&&this.content.html('"))}, initControlBar:function(){this.content.addClass("video-player");this.controlBar=$('
');this.controlBorder=$('
');this.content.append(this.controlBar);this.controlBar.append(this.controlBorder);this.btnPlay=$('
');this.bevel1=$('
');this.video_timer=$('
00:00
');this.video_seek=$('
');this.bevel2=$('
'); this.volume_seek=$('
');this.btnVolume=$('
');this.btnFullscreen=$('
');this.controlBar.append(this.btnPlay);this.controlBar.append(this.bevel1);this.controlBar.append(this.btnFullscreen);this.controlBar.append(this.video_timer);this.controlBar.append(this.video_seek);this.controlBar.append(this.bevel2);this.controlBar.append(this.volume_seek);this.controlBar.append(this.btnVolume);this.createVideoSeekSlider(); this.createVolumeSeekSlider();this.btnCenter=$('
');this.content.append(this.btnCenter)},createVideoSeekSlider:function(){var a=this.html_video.$media[0].duration;a||(a=100);this.video_seek_slider=this.video_seek.slider({range:0,max:a,direction:"horizontal",onChange:function(b){try{this.html_video.$media[0].currentTime=parseFloat(b)}catch(c){}}.bind(this)})},createVolumeSeekSlider:function(){this.volume_value=1;this.volume_seek_slider=this.volume_seek.slider({range:1, max:1,direction:"vertical",onChange:function(a){a=parseFloat(a);try{this.volume_value=a,equals(a,0)?(this.html_video.$media[0].muted=!0,this.btnVolume.addClass("volume-mute")):(this.html_video.$media[0].muted=!1,this.btnVolume.removeClass("volume-mute")),this.html_video.$media[0].volume=a}catch(b){}}.bind(this)})},initEvents:function(){this.initControlBarEvents();this.initPlayEvents();this.initVolumeEvents();this.initFullscreenEvents()},initPrompt:function(a){if(a&&a.length){var b=this.html_video.$media[0].duration; this.video_seek.width();for(var c=0;c

");this.video_seek.append(d);this.promptEvent(d,a[c].time)}}},promptEvent:function(a,b){a.bind("mouseenter",function(c){a.css({background:"#2CA8D5"})}.bind(this));a.bind("mouseleave",function(c){a.css({background:"#fff"})}.bind(this));a.bind("click",function(c){this.html_video.$media[0].currentTime= b}.bind(this))},initControlBarEvents:function(){var a=function(){var c="visible";1==this.html_video.$media[0].paused&&(c="hidden");this.controlBar.css({visibility:c,opacity:1})}.bind(this),b=function(){this.controlBar.css({visibility:"hidden",opacity:0})}.bind(this);_agent_.browser.device==_agent_.browser.DEVICE_PC?(this.video.bind(_event._enter,a),this.video.bind(_event._leave,b),this.controlBar.bind(_event._enter,a),this.controlBar.bind(_event._leave,b)):(this.video.bind(_event._down,function(){a(); this.hideControlbarFlag=!1}.bind(this)),this.video.bind(_event._move,function(){a();this.hideControlbarFlag=!1}.bind(this)),this.video.bind(_event._up,function(){this.hideControlbarFlag=!0;(function(){1==this.hideControlbarFlag&&b()}).delay(this,5E3)}.bind(this)))},initPlayEvents:function(){var a=function(c){c=(c=this.content.find("source").attr("src"))?c.slice(c.lastIndexOf("/")+1):"";0==this.html_video.$media[0].paused?(bookConfig.googleAnalyticsID&>ag("event","pause",{event_category:"Video", event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+c}),this.pause()):(bookConfig.googleAnalyticsID&>ag("event","play",{event_category:"Video",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+c}),this.play(),this.controlBar.css({visibility:"visible",opacity:1}));return!1},b=(new Date).getTime();this.video.bind(_event._click,a.bind(this));this.btnPlay.bind(_event._click,a.bind(this));this.btnCenter&&this.btnCenter.bind(_event._click,a.bind(this));this.video.bind("play",function(){b=(new Date).getTime(); BookEvent.trigger("playMedia",["play",BookInfo.getCurrentPageIndex(),this.html_video.$media[0].currentSrc,"Video",0]);this.btnPlay.addClass("paused-button");this.btnCenter&&this.btnCenter.css("display","none")}.bind(this));this.video.bind("pause",function(){BookEvent.trigger("playMedia",["pause",BookInfo.getCurrentPageIndex(),this.html_video.$media[0].currentSrc,"Video",(new Date).getTime()-b]);this.btnPlay.removeClass("paused-button");this.btnCenter&&this.btnCenter.css("display","block")}.bind(this)); this.video.bind("ended",function(){this.btnPlay.removeClass("paused-button");this.btnCenter&&this.btnCenter.css("display","block")}.bind(this));this.video.bind("timeupdate",function(){var c=this.html_video.$media[0].currentTime,d=this.html_video.$media[0].duration;d||(d=100);this.video_seek_slider&&(this.video_seek_slider.setMax(d),this.video_seek_slider.setRange(c));this.video_timer.text(this.timeFormat(c))}.bind(this))},initVolumeEvents:function(){this.btnVolume.bind(_event._click,function(){1== this.html_video.$media[0].muted?(this.html_video.$media[0].muted=!1,this.volume_seek_slider.setRange(this.volume_value),this.btnVolume.removeClass("volume-mute")):(this.html_video.$media[0].muted=!0,this.volume_seek_slider.setRange(0),this.btnVolume.addClass("volume-mute"));return!1}.bind(this));this.btnVolume.bind("mouseenter",function(a){a=isTouch?a.originalEvent?a.originalEvent.changedTouches:a.changedTouches:[a];a=a[0].pageX-a[0].offsetX-this.controlBar.offset().left;a+=(this.btnVolume.width()- this.volume_seek.width())/2;this.volume_seek.css({left:a+"px"});this.volume_seek.css({visibility:"visible",opacity:"1"})}.bind(this));this.btnVolume.bind("mouseleave",function(){this.volume_seek.css({visibility:"hidden",opacity:"0"})}.bind(this));this.volume_seek.bind("mouseenter",function(){this.volume_seek.css({visibility:"visible",opacity:"1"})}.bind(this));this.volume_seek.bind("mouseleave",function(){this.volume_seek.css({visibility:"hidden",opacity:"0"})}.bind(this))},initFullscreenEvents:function(){this.btnFullscreen.bind(_event._click, function(){fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen():_agent_.browser.safari?this.initSafariFullscreen(this.html_video.$media[0]):fullScreenApi.requestFullScreen(this.html_video.$media[0]):this.html_video.$media[0].webkitSupportsFullscreen?this.html_video.$media[0].webkitEnterFullscreen():alert(getLanguage("proFullScreenWarn","Current browser does not support full-screen,Please use Chrome for best results"));return!1}.bind(this));this.video.bind(fullScreenApi.fullScreenEventName, function(){fullScreenApi.isFullScreen()?(this.html_video.play(),this.btnFullscreen.addClass("player-exit-fullscreen")):this.btnFullscreen.removeClass("player-exit-fullscreen")}.bind(this))},initSafariFullscreen:function(a){this.appendDomToDocument('',"safari-fullscreen-video");!window.playBackgroundSound&&window.currentMedia&&(window.currentMedia.pauseMedia(), window.currentMedia=null);var b=document.getElementsByClassName("safari-fullscreen-video");b[0].webkitRequestFullscreen();b[0].src=a.children[0].src;b[0].load();b[0].volume=a.volume;b[0].addEventListener("canplay",function e(d){b[0].play();b[0].addEventListener("play",function h(g){b[0].currentTime=a.currentTime;b[0].removeEventListener(g.type,h)});b[0].removeEventListener(d.type,e)});this.safariFullscreenEvent(b[0],a)},appendDomToDocument:function(a,b){0===document.getElementsByClassName(b).length&& (a=document.createRange().createContextualFragment(a),document.body.appendChild(a))},safariFullscreenEvent:function(a,b){var c=!1;a.addEventListener("enterpictureinpicture",function f(e){c=!0;b.currentTime=a.currentTime;b.volume=a.volume;a.paused?b.play():b.pause();a.removeEventListener(e.type,f)});a.addEventListener("leavepictureinpicture",function g(f){c=!1;b.currentTime=a.currentTime;b.volume=a.volume;a.paused?b.pause():b.play();a.removeEventListener(f.type,g);a.remove()});document.addEventListener("webkitfullscreenchange", function h(g){!a||document.webkitIsFullScreen||c||(b.currentTime=a.currentTime,b.volume=a.volume,a.paused?b.pause():b.play(),a.remove(),document.removeEventListener(g.type,h))})},timeFormat:function(a){var b=10>Math.floor(a/60)?"0"+Math.floor(a/60):Math.floor(a/60);return b+":"+(10>Math.floor(a-60*b)?"0"+Math.floor(a-60*b):Math.floor(a-60*b))},initSkin:virtual_function,onResize:function(){var a=this.controlBar.width();a||(a=this.content.width());var b=Math.max(0,a-this.seekWidth);0>=b?this.video_seek.css({display:"none"}): (this.video_seek.css({width:b,display:"block"}),this.video_seek_slider.setRange(this.html_video.$media[0].currentTime));b=this.btnVolume.position().left+this.controlBar.position().left+(this.btnVolume.width()-this.volume_seek.width())/2;aa?this.video_timer.css("display","none"):this.video_timer.css("display","block")},initSkin:function(){this.content.addClass("round")}}).extend("VideoSkin"); Class("ClassicVideoSkin",{create:function(a,b){this.seekWidth=195;this.volumeWidth=135;this.fullscreenWidth=70;this.initEventMonitor();this._super(a,b);this.btnCenter&&this.btnCenter.css("display","none")},initSkin:function(){this.content.addClass("classic")},initEventMonitor:function(){this.eventTime;var a=function(){void 0==this.eventTime?a.stop():5E3');this.btnBack=$('
');this.btnForward=$('
'); this.volume_seek=$('
');this.btnVolume=$('
');this.btnVolumeUp=$('
');this.btnVolumeDown=$('
');this.audio_timer=$('
00:00/00:00
');this.audio_seek=$('
');this.audio_name=$('
');this.content.append(this.btnPlay); this.content.append(this.btnBack);this.content.append(this.btnForward);this.content.append(this.volume_seek);this.content.append(this.btnVolume);this.content.append(this.btnVolumeUp);this.content.append(this.btnVolumeDown);this.content.append(this.audio_timer);this.content.append(this.audio_seek);this.content.append(this.audio_name);this.createAudioSeekSlider();this.createVolumeSeekSlider()},createAudioSeekSlider:function(){var a=this.html_audio.$media[0].duration;a||(a=100);this.audio_seek_slider= this.audio_seek.slider({range:0,max:a,direction:"horizontal",onChange:function(b){try{this.html_audio.setCurrentTime(parseFloat(b))}catch(c){}}.bind(this)})},createVolumeSeekSlider:function(){this.volume_value=1;this.volume_seek_slider=this.volume_seek.slider({range:1,max:1,direction:this.volumeDirection,onChange:function(a){a=parseFloat(a);try{this.volume_value=a,0==a?(this.html_audio.$media[0].muted=!0,this.volume_btn.addClass("volume-mute")):(this.html_audio.$media[0].muted=!1,this.html_audio.$media[0].volume= a,this.volume_btn.removeClass("volume-mute"))}catch(b){}}.bind(this)})},initEvents:function(){this.initPlayEvents();this.initVolumeEvents()},initPlayEvents:function(){var a=(new Date).getTime();this.btnPlay.bind(_event._click,function(b){if(this.resources[0])return b=this.resources[0].slice(this.resources[0].lastIndexOf("/")+1),0==this.html_audio.$media[0].paused?(bookConfig.googleAnalyticsID&>ag("event","pause",{event_category:"audio",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+b}),this.html_audio.pause()): (bookConfig.googleAnalyticsID&>ag("event","play",{event_category:"audio",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+b}),this.html_audio.play()),!1}.bind(this));this.audio.bind("play",function(){a=(new Date).getTime();this.btnPlay.addClass("paused-button");BookEvent.trigger("playMedia",["play",BookInfo.getCurrentPageIndex(),this.resources[this.audioIndex],"Audio",0])}.bind(this));this.audio.bind("pause",function(){this.btnPlay.removeClass("paused-button");BookEvent.trigger("playMedia", ["pause",BookInfo.getCurrentPageIndex(),this.resources[this.audioIndex],"Audio",(new Date).getTime()-a])}.bind(this));this.audio.bind("ended",function(){this.btnPlay.removeClass("paused-button");this.audioIndexa&&(a+=this.resources.length),a%=this.resources.length,this.changeMusic(a),this.html_audio.play())},changeMusic:function(a){this.audioIndex=a;a=this.resources[a];this.html_audio.$media[0].src=a;this.audio_name.text(this.getAudioTitle(a))}, getAudioTitle:function(a){if(""==a)return"";var b=-1==a.indexOf("\\")?a.lastIndexOf("/"):a.lastIndexOf("\\");iNameEnd=a.lastIndexOf(".");return fileTitle=a.substr(b+1,iNameEnd-b-1)},initVolumeEvents:function(){this.btnVolume.bind(_event._click,function(a){1==this.html_audio.$media[0].muted?(this.html_audio.$media[0].muted=!1,this.volume_seek_slider.setRange(this.volume_value),this.btnVolume.removeClass("volume-mute")):(this.html_audio.$media[0].muted=!0,this.volume_seek_slider.setRange(0),this.btnVolume.addClass("volume-mute")); return!1}.bind(this));this.btnVolumeUp.bind(_event._click,function(){this.changeVolumeByStep(.1)}.bind(this));this.btnVolumeDown.bind(_event._click,function(){this.changeVolumeByStep(-.1)}.bind(this))},changeVolumeByStep:function(a){this.volume_value=this.html_audio.$media[0].volume+a;this.volume_value=Math.max(0,this.volume_value);this.volume_value=Math.min(1,this.volume_value);this.html_audio.$media[0].volume=this.volume_value},timeFormat:function(a){var b=10>Math.floor(a/60)?"0"+Math.floor(a/60): Math.floor(a/60);return b+":"+(10>Math.floor(a-60*b)?"0"+Math.floor(a-60*b):Math.floor(a-60*b))},initSkin:virtual_function,onResize:function(){if(this.audioSeek){var a=parseInt(this.content.width());a=Math.max(0,a-this.audioSeek);0>=a?this.audio_seek.css({display:"none"}):(this.audio_seek.css({width:a,display:"block"}),this.audio_seek_slider.setRange(this.html_audio.$media[0].currentTime))}0==this.html_audio.$media[0].muted?this.volume_seek_slider.setRange(this.volume_value):this.volume_seek_slider.setRange(0); a=this.volumeWidth;void 0!=a&&(this.content.width()");this.pnlListBackground=$("
");this.pnlList=$("
");this.content.append(this.btnList);this.content.append(this.pnlListBackground);this.pnlListBackground.append(this.pnlList);this.addAudioItems();this.listVisible=!1;this.items[0]&&this.items[0].addClass("selected");1==this.resources.length&&(this.btnList.css("display","none"),this.pnlListBackground.css("display", "none"))},addAudioItems:function(){this.items=[];for(var a=0;a");this.items[a].text(b);this.pnlList.append(this.items[a])}},initEvents:function(){this._super();this.initListEvents()},initListEvents:function(){this.btnList.bind(_event._click,function(){this.listVisible?this.hideListPanel():this.showListPanel();this.listVisible=!this.listVisible; return!1}.bind(this));for(var a=0;aMusic On");this.content.append(this.volume_status)},initPlayEvents:function(){this._super();this.volume_status.bind(_event._click,function(a){0==this.html_audio.$media[0].paused?this.html_audio.pause():this.html_audio.play();return!1}.bind(this));this.audio.bind("play",function(){this.volume_status.text("Music Off")}.bind(this)); this.audio.bind("pause",function(){this.volume_status.text("Music On")}.bind(this))},initSkin:function(){this.content.addClass("turnonoff")}}).extend("AudioSkin");Class("FadeAudioSkin",{create:function(a,b,c){this.volumeDirection="horizontal";this._super(a,b,c)},initSkin:function(){this.content.addClass("fade")}}).extend("AudioSkin");Class("BackgroundAudioSkin",{create:function(a,b,c){this.volumeDirection="horizontal";this._super(a,b,c)},initSkin:function(){this.content.addClass("background")}}).extend("AudioSkin"); Class("Skin1AudioSkin",{create:function(a,b,c){this.volumeDirection="horizontal";this.audioSeek=130;this._super(a,b,c)},initSkin:function(){this.content.addClass("skin1")}}).extend("AudioSkin");Class("Skin2AudioSkin",{create:function(a,b,c){this.volumeDirection="horizontal";this.audioSeek=80;this._super(a,b,c)},initSkin:function(){this.content.addClass("skin2")}}).extend("AudioSkin");bdor[7]="m"; (function(a){a.fn.addVideoSkin=function(b,c){switch(b){case "round":b=new RoundVideoSkin(this,c);break;case "classic":b=new ClassicVideoSkin(this,c);break;case "smallblack":b=new SmallBlackVideoSkin(this,c);break;default:b=new ClassicVideoSkin(this,c)}return b};bdor.i=function(b){return bdor[b]};bdor.f="f";a.fn.addAudioSkin=function(b,c){var d=null;(b=global[b.firstUpperCase()+"AudioSkin"])&&(d=new b(this,this.audioResources,c));d||(d=new DefaultAudioSkin(this,this.audioResources,c));return d};this.skin= this.bdor})(jQuery);var audioThemeNames={GlassAudioPlayer:"",SimpleAudioPlayer:"",StandardAudioPlayer:"",StandardAudioPlayer02:"",StandardAudioPlayer03:"",StandardAudioPlayer04:"",StandardAudioPlayer05:"",StandardAudioPlayer06:""};bdor[8]="o";var flashPlugin;navigator.plugins&&"Shockwave Flash"in navigator.plugins&&(flashPlugin=navigator.plugins["Shockwave Flash"]); (function(a,b,c){function d(m,k){var l=(m[0]||0)-(k[0]||0);return 0'].join(""));var q=n.join("");k.innerHTML=["",q,""].join("");return k.firstChild}};a.fn[b]=function(m){var k= this.find("object").andSelf().filter("object");/string|object/.test(typeof m)&&this.each(function(){var l=a(this),n;m="object"==typeof m?m:{swf:m};m.fallback=this;if(n=a[b].create(m))l.children().remove(),l.html(n)});"function"==typeof m&&k.each(function(){var l=this;l.jsInteractionTimeoutMs=l.jsInteractionTimeoutMs||0;660>l.jsInteractionTimeoutMs&&(l.clientWidth||l.clientHeight?m.call(l):setTimeout(function(){a(l)[b](m)},l.jsInteractionTimeoutMs+66))});return k}})(jQuery,"flash",flashPlugin||window.ActiveXObject); (function(a){var b=[],c=function(){},d=0,e=[],f=function(){d++;d>=b.length&&(c(e),c=function(){})},g=function(h){var m=new Image;a(m).on("load",function(){e.push({url:h,img:m});f()}).on("error",function(){e.push(m);f()}).attr("src",h)};a.fn.loader=function(h,m,k){h&&a.extend(b,h);"function"==typeof m&&(c=m);for(h=0;h
');this.append(this.loadingDom)}.bind(this);this.createLoading=function(c){this.initLoadingHtml(c)}.bind(this);this.finishedLoading=function(){this.hideLoading()}.bind(this);this.initLoading=function(){}.bind(this);this.showLoading=function(){this.loadingDom&&this.loadingDom.show()}.bind(this);this.hideLoading= function(){this.loadingDom&&this.loadingDom.remove()}.bind(this);this.createLoading(a)}; (function(a){var b=function(){return Hammer.HAS_TOUCHEVENTS&&navigator.userAgent.match(Hammer.MOBILE_REGEX)};bdor[3]="f";var c=function(l){this.theButton=l;this.eventSource=l[0];b()?(l.bind("touchstart",this.mouseDown.bind(this)),l.bind("touchend",this.mouseUp.bind(this))):(l.bind("mouseenter",this.mouseEnter.bind(this)),l.bind("mouseleave",this.mouseLeave.bind(this)),l.bind("blur",this.mouseLeave.bind(this)),l.bind("mousedown",this.mouseDown.bind(this)),l.bind("mouseup",this.mouseUp.bind(this)))}; c.prototype.mouseEnter=function(){this.setAlpha(80)};c.prototype.mouseLeave=function(){this.setAlpha(100)};c.prototype.mouseDown=function(){this.setAlpha(60)};c.prototype.mouseUp=function(){this.setAlpha(80)};c.prototype.setAlpha=function(l){0>l&&(l=0);100<=l&&(l=100);this.theButton.css("opacity",l/100)};a.fn.asButton=function(){new c(this);return this};bdor[4]="h";var d=function(l,n){this.eventSource=l[0];this.origPicture=l[0].src;var p=this.origPicture.lastIndexOf("."),q=this.origPicture.substr(0, p);p=this.origPicture.substring(p);this.pictureDown=n?n:q+"_down"+p;b()?(l.bind("touchstart",this.mouseOver.bind(this)),l.bind("touchend",this.mouseLeave.bind(this))):(l.bind("mouseenter",this.mouseOver.bind(this)),l.bind("mousedown",this.mouseDown.bind(this)),l.bind("mouseup",this.mouseUp.bind(this)),l.bind("mouseleave",this.mouseLeave.bind(this)),l.bind("blur",this.mouseLeave.bind(this)))};d.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};d.prototype.mouseDown=function(){a(this.eventSource).css("opacity", .8)};d.prototype.mouseUp=function(){a(this.eventSource).css("opacity",1)};d.prototype.mouseLeave=function(){this.eventSource.src=this.origPicture};a.fn.asImageButton=function(l){new d(this,l);return this};var e=function(l,n){this.eventSource=l[0];this.origPicture=l[0].src;var p=this.origPicture.lastIndexOf("."),q=this.origPicture.substr(0,p);p=this.origPicture.substring(p);this.pictureDown=n?n:q+"_down"+p;b()?(l.bind("touchstart",this.mouseOver.bind(this)),l.bind("touchend",this.mouseUp.bind(this))): (l.bind("mouseenter",this.mouseOver.bind(this)),l.bind("mousedown",this.mouseDown.bind(this)),l.bind("mouseup",this.mouseUp.bind(this)),l.bind("mouseleave",this.mouseUp.bind(this)))};bdor[10]="l";e.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};e.prototype.mouseDown=function(){this.eventSource.src=this.pictureDown};e.prototype.mouseUp=function(){var l=this;window.setTimeout(function(){l.eventSource.src=l.origPicture},100)};a.fn.asImageChangeButton=function(){new e(this);return this}; var f=function(l){this.theButton=l;this.eventSource=l[0];var n=this.theButton.css("top");this.iOrigTop=parseInt(n.replace("px",""));this.iJumpTop=this.iOrigTop-5;l.bind("mouseenter",this.MouseEnter.bind(this));l.bind("mouseleave",this.MouseLeave.bind(this))};f.prototype.MouseEnter=function(){this.theButton.animate({top:this.iJumpTop},50)};f.prototype.MouseLeave=function(){this.theButton.animate({top:this.iOrigTop},50)};a.fn.mouseEnterJump=function(){new f(this);return this};a.fn.mouseOverCursor=function(){new g(this); return this};var g=function(l){l.bind("mouseover",function(){l.css({cursor:"pointer"})})},h=function(l){this.theButton=l;this.eventSource=l[0];var n=this.theButton.css("top");this.iOrigTop=parseInt(n.replace("px",""));n=this.theButton.css("left");this.iOrigLeft=parseInt(n.replace("px",""));this.iZoomTop=this.iOrigTop-3;this.iZoomLeft=this.iOrigLeft-1;l.bind("mouseenter",this.MouseEnter.bind(this));l.bind("mouseleave",this.MouseLeave.bind(this))};h.prototype.MouseDown=function(){this.theButton.css({left:this.iZoomLeft+ "px",top:this.iZoomTop+"px","-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};h.prototype.MouseEnter=function(){this.theButton.css({left:this.iZoomLeft+"px",top:this.iZoomTop+"px","-webkit-transform":"scale(1.2)","-moz-transform":"scale(1.2)",transform:"scale(1.2)","-ms-transform":"scale(1.2)","-o-transform":"scale(1.2)"})};h.prototype.MouseLeave=function(){this.theButton.css({left:this.iOrigLeft+"px", top:this.iOrigTop+"px","-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};var m=function(l){this.theButton=l;this.eventSource=l[0];var n=this.theButton.css("top");this.iOrigTop=parseInt(n.replace("px",""));n=this.theButton.css("left");this.iOrigLeft=parseInt(n.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;l.bind("mouseenter",this.MouseEnter.bind(this));l.bind("mouseleave",this.MouseLeave.bind(this))}; m.prototype.MouseEnter=function(){this.theButton.css({"-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};m.prototype.MouseLeave=function(){this.theButton.css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};a.fn.mouseEnterZoom=function(){new m(this);return this};a.fn.mouseEnterUp=function(){new k(this);return this};var k= function(l){this.theButton=l;this.eventSource=l[0];var n=this.theButton.css("bottom");this.iOrigTop=parseInt(n.replace("px",""));n=this.theButton.css("left");this.iOrigLeft=parseInt(n.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;l.bind("mouseenter",this.MouseEnter.bind(this));l.bind("mouseleave",this.MouseLeave.bind(this))};k.prototype.MouseEnter=function(){this.theButton.css({bottom:this.iZoomTop+"px","-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)", transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};k.prototype.MouseLeave=function(){this.theButton.css({bottom:this.iOrigTop+"px","-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};a.fn.mouseZoomUp=function(){new h(this);return this};a.fn.mouseEnterLight=function(l){l||(l="#EEEEEE");var n=this;this.bind(_event._enter,function(){n.css({background:l})});this.bind(_event._down,function(){n.css({background:l})}); b()?this.bind(_event._end,function(){n.css({background:"transparent"})}):this.bind(_event._end,function(){n.css({background:l})});this.bind(_event._leave,function(){n.css({background:"transparent"})});return this};a.fn.mouseEnterShine=function(l,n,p){var q=this,t=colorDiv(l,10);this.bind(_event._enter,function(){q.css({background:t});q.css({border:""});q.css({"border-left":"1px solid "+p,"border-top":"1px solid "+p});q.css({"border-right":"1px solid "+n,"border-bottom":"1px solid "+n})});this.bind(_event._down, function(){q.css({background:t});q.css({border:""});q.css({"border-left":"1px solid "+n,"border-top":"1px solid "+n});q.css({"border-right":"1px solid "+p,"border-bottom":"1px solid "+p})});b()?this.bind(_event._end,function(){q.css({background:"transparent"});q.css({border:""})}):this.bind(_event._end,function(){q.css({background:t});q.css({border:""});q.css({"border-left":"1px solid "+p,"border-top":"1px solid "+p});q.css({"border-right":"1px solid "+n,"border-bottom":"1px solid "+n})});this.bind(_event._leave, function(){q.css({background:"transparent"});q.css({border:""})});return this};a.fn.mouseEnterGradient=function(l,n,p){var q=this,t=colorAdd(l,75),z="-webkit-gradient(linear,left top,left bottom,color-stop(0,"+t+"),color-stop(0.19,"+colorAdd(t,2)+"),color-stop(0.35,"+colorAdd(t,28)+"),color-stop(0.55, "+colorAdd(t,6)+"),color-stop(0.75,"+colorAdd(t,4)+"),color-stop(0.85,"+colorAdd(t,2)+"),color-stop(1, "+t+"))";this.bind(_event._enter,function(){q.css("background",z);q.css({border:""});q.css({"border-left":"1px solid "+ p,"border-top":"1px solid "+p});q.css({"border-right":"1px solid "+n,"border-bottom":"1px solid "+n})});this.bind(_event._down,function(){q.setGradient(t,!1);q.css({border:""});q.css({"border-left":"1px solid "+n,"border-top":"1px solid "+n});q.css({"border-right":"1px solid "+p,"border-bottom":"1px solid "+p})});b()?this.bind(_event._end,function(){q.css({background:"transparent"});q.css({border:""})}):this.bind(_event._end,function(){q.css("background",z);q[0].style.removeAttribute&&q[0].style.removeAttribute("filter"); q.css({border:""});q.css({"border-left":"1px solid "+p,"border-top":"1px solid "+p});q.css({"border-right":"1px solid "+n,"border-bottom":"1px solid "+n})});this.bind(_event._leave,function(){q[0].style.removeAttribute&&q[0].style.removeAttribute("filter");q.css({background:"transparent"});q.css({border:""})});return this};a.fn.dragToMove=function(l,n,p){var q=!1,t=0,z=0,v=0,u=0;a(this).bind(_event._down,function(w){var y=a(this)[0];y.setCapture?y.setCapture():window.captureEvents(Event.MOUSEMOVE| Event.MOUSEUP);w=isTouch?w.originalEvent.changedTouches:[w];q=!0;t=w[0].pageX;z=w[0].pageY;v=a(l).offset().left;u=a(l).offset().top});a(this).bind(_event._end,function(w){w=a(this)[0];w.releaseCapture?w.releaseCapture():window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);q=!1});a(this).bind(_event._move,function(w){w=isTouch?w.originalEvent.touches:[w];if(q){var y=v+(w[0].pageX-t);w=u+(w[0].pageY-z);void 0!=n&&(y=Math.max(n.x,y),y=Math.min(n.y,y));void 0!=p&&(w=Math.max(p.x,w),w=Math.min(p.y,w)); a(l).css({left:y+"px",top:w+"px"})}});a(this).bind("mouseleave",function(){return q=!1})};a.fn.slideFlipButtonShine=function(l){a(this).bind(_event._over,function(){a(this).css({cursor:"pointer"})});a(this).bind(_event._enter,function(){a(this).css({background:"#000000"})});a(this).bind(_event._leave,function(){a(this).css({background:"#888888"})})};bdor[31]=function(l,n){return bdor[l]-bdor[n]};a.fn.slideZoomButtonShine=function(l){a(this).bind(_event._enter,function(){a(this).css({cursor:"pointer"}); a(this).css({background:"#555555"})});a(this).bind(_event._leave,function(){a(this).css({background:""})})};a.fn.mouseEnterChange=function(l,n,p){var q=this;this.bind(_event._enter,function(){var t=a("");q.empty().append(t);q.css({background:n});q.changeButtonColor(l)});this.bind(_event._end,function(){var t=a("");q.empty().append(t);q.css({background:"transparent"});q.changeButtonColor(n)});this.bind(_event._leave,function(){var t=a("");q.empty().append(t); q.css({background:"transparent"});q.changeButtonColor(n)});return this};a.fn.clickExceptMove=function(l){var n=!1,p=!1,q=new Point(0,0);this.bind(_event._down,function(t){t=isTouch?t.originalEvent.touches:[t];n=!0;p=!1;q.x=t[0].pageX;q.y=t[0].pageY;1=Math.abs(t[0].pageX-q.x)&&1>=Math.abs(t[0].pageY-q.y)?!1:!0});this.bind(_event._end,function(t){n&&!p&&l();p=n=!1})};a.fn.enterToChange=function(l,n,p,q, t){var z=this.children();this.bind(_event._down,function(v){z.cssSprite(l,n+"_down",p,q,t)});this.bind(_event._enter,function(v){z.cssSprite(l,n+"_down",p,q,t)});this.bind(_event._leave,function(v){z.cssSprite(l,n,p,q,t)})};a.fn.addCssSprite=function(l,n,p,q,t){var z=a("
");z.cssSprite(l,n,p,q,t);this.append(z)};a.fn.changeCssSprite=function(l,n,p,q,t){this.children().cssSprite(l,n,p,q,t)};a.fn.cssSprite=function(l,n,p,q,t){if(t.iconInfo){for(var z=0,v=0;ve?-50:50),e=this.getEffectiveLength(e), this.moveTo(e),d.stopPropagation(),!1}}.bind(this);this.getLeft=function(){return parseInt(this.swiper.css("left"))}.bind(this);this.getRight=function(){return parseInt(this.swiper.css("right"))}.bind(this);this.getBottom=function(){return parseInt(this.swiper.css("bottom"))}.bind(this);this.getTop=function(){return parseInt(this.swiper.css("top"))}.bind(this);this.animateToPosition=function(d){var e=this.getCurrentLength();d=this.getEffectiveLength(d);var f=function(g,h,m){m=(0,$.easing["easeOut"+ m])(null,g,e,d-e,h);g=f.length&&(g=a.extend({background:"green",cornersTop:!0,scale:"noresize"},g));c.prev();var h=0,m=!1,k=g.background,l=g.cornersTop,n=g.gradientColors||["#ddd","#eee","#fff"],p=g.scale,q=0,t=[];try{var z=c.clone();var v=z[0].getContext("2d");var u=c[0].getContext("2d");q=0}catch(G){u=v=z=null}this.images=f=f.each(function(G){if(!t[G]&&null!=u){var F=this;F.onload=function(){var N=1;if("noresize"!=p){var R=0==this.width?this.naturalWidth: this.width,S=0==this.height?this.naturalHeight:this.height,Q=d/R,P=e/S;"fit"==p&&(N=1>Q||1>P?Math.min(Q,P):1);"fill"==p&&(N=Math.min(Q,P))}a(F).data("flip.scale",N);t[G]=u.createPattern(F,"no-repeat");t[G].width=R;t[G].height=S;q++;q!=f.length||m||(m=!0,L())};F.complete&&window.setTimeout(function(){F.onload()},10)}}).get();this.patterns=t;var w=d,y=e,H=_agent_.browser.msie?c.offset():null,C,J,D,I;_agent_.browser.msie&&function(){var G=a("
").width(d).height(e).css({position:"absolute",cursor:"default", zIndex:1}).appendTo(tmpContainer);7==parseInt(_agent_.browser.version)&&G.css({opacity:1E-6,background:"#FFF"});var F=function(){H=c.offset();return G.css({left:H.left+"px",top:H.top+"px"})};a(window).resize(F);return F()}();this.autoFlip=function(){window.clearInterval(C);J=(new Date).getTime();D=w;I=y/50;C=window.setInterval(M,0);h+=1;0>h&&(h=f.length-1);h==f.length&&(h=0)};this.timerFun=function(){this.timer=setInterval(this.autoFlip.bind(this),3E3)};this.timerFun();var M=this.flip=function(G){var F= (new Date).getTime()-J;700<=F?(window.clearInterval(C),G&&G?(f.unshift(f.pop()),t.unshift(t.pop())):(f.push(f.shift()),t.push(t.shift())),w=d,y=e):(w=D-2*d*F/700,y=I+2*e*F/700/3);L()},O=function(G,F){if(null!=u){var N=G*d+F,R=-F/G;_agent_.browser.msie&&(N=Math.round(N),R=Math.round(R));u.beginPath();u.moveTo(d,Math.min(N,e));u.lineTo(d,0);u.lineTo(Math.max(R,0),0);0>R?(u.lineTo(0,Math.min(F,e)),FparseFloat(_agent_.browser.version)){var T=v;T.clearRect(0,0,d,e);T.save();T.translate(1,0)}else T=u;S=T.createLinearGradient(S,Q,P,U);S.addColorStop(0,n[0]);S.addColorStop(W/F,n[1]);S.addColorStop(1,n[2]);T.fillStyle=S;T.beginPath();T.moveTo(-G/2,0);T.quadraticCurveTo((-G/2+w)/2+.02*w,y/2,w,y);T.quadraticCurveTo((d+w)/2, (2*d+G+y)/2-.02*(e-y),d,2*d+G);_agent_.browser.mozilla&&1.9>parseFloat(_agent_.browser.version)?(T.save(),T.clip(),T.fillRect(0,0,d,e),T.restore(),u.drawImage(z[0],0,0),T.restore()):T.fill();u.fillStyle=k;O(2,G);u.fill();O(2,G);_agent_.browser.safari||_agent_.browser.opera||u.restore();f[1]||(f[1]=f[0]);G=f[1];F=a(G).data("flip.scale");if(_agent_.browser.msie)u.fillStyle=t[1],u.fillStyle.width2=u.fillStyle.width*F,u.fillStyle.height2=u.fillStyle.height*F,u.fill();else{u.save();u.clip();if(_agent_.browser.safari|| _agent_.browser.opera)u.scale(1,1/N),u.translate(-0,-R);u.drawImage(G,(d-G.width*F)/2,(e-G.height*F)/2,G.width*F,G.height*F);u.restore();(_agent_.browser.safari||_agent_.browser.opera)&&u.restore()}}}}}};a.fn.jFlip=function(c,d,e,f,g,h){return this.each(function(){a(this).wrap("
");if("true"==h){if(1>=e.length)return;var m=a(""),k=a("");a(this).parent().append(m).append(k)}var l=a(this).find("img"),n=a(document.createElement("canvas")).attr({width:c,height:d}).css({margin:0,width:c+"px",height:d+"px"});a(this).css({position:"absolute",left:"-9000px",top:"-9000px",display:"none"}).after(n);var p=new b(a(this).next(),c||300,d||300,l,e);"true"!=h||1>=e.length||(m.bind("click", function(){p.flip(!0)}),k.bind("click",function(){p.flip()}))})}})(jQuery); function searchFromPages(a,b){var c=[];b=b.trim().toLowerCase();b=-1==b.indexOf(" ")?[b]:b.split(" ");var d;for(d=0;dk)k=t,l=t+b[p].length,g=f.substring(l),0==p&&(h=t),p==b.length-1&&(m=t+q);else{n=!1;break}}else{n=!1;break}}n&&(k=[],l=getHighlightRealPageIndex(d),0>l||(k.search_page=l+1,k.search_title= "page "+(l+1),h=f.substring(0,h).lastIndexOf("."),-1==h?h=0:h++,f=f.substring(m),l=f.indexOf(".")+1,l=-1==l?f.length():m+l,e=e.substring(h,l),k.search_text=e,c.push(k)))}return c}function getSearchRealPageIndex(a){if(!window.search_pages||void 0==search_pages[a-1])return a;var b;(a=search_pages[a-1])&&(b=parseInt(a.index));return isNaN(b)||-1==b?-1:b+1} function getHighlightRealPageIndex(a){if(!window.search_pages)return a;for(var b=-1,c=0;c=a?a-1:this.next(b.substring(0,a));this.__times=0;this.__index=-1};bdor[10]="l"; KMP.prototype.next=function(a){for(var b=Math.ceil(a.length/2);0"+f+"");d.push(h)}""!==a&&d.push(a);return d.join("")},isHTML:function(a){return a?!!a.match(/^(<\w+>?).*((<\/\w+>)|(\/>))$/g):!1},toText:function(a){return"string"!=typeof a?"":a.replace(/<\/?\w+>/g,"")},toLabel:function(a){a= a.replaceAll("<","<");return a.replaceAll(">",">")}},LanguageTool={isEnglish:function(a){return/[\x00-\xff]/.test(a)},isChinese:function(a){return/[\u4E00-\u9FBF]/.test(a)},isArabic:function(a){return/[\u0600-\u06FF]|[\u0750-\u077F]/.test(a)},isUrdu:function(a){return this.isArabic(a)||/[\uFE70-\uFEFF]/.test(a)},isHebrew:function(a){return/[\u0590-\u05FF]|[\uFB00-\uFB4F]/.test(a)},isFarsi:function(a){return this.isUrdu(a)},isTai:function(a){return/[\u0E00-\u0E7F]/.test(a)},isHindi:function(a){return/[\u0900-\u097F]/.test(a)}, isTamil:function(a){return/[\u0B80-\u0BFF]/.test(a)},isHimalayaRahm:function(a){return/[\u0D00-\u0D7F]/.test(a)},isRightToLeft:function(a){return this.isArabic(a)||this.isUrdu(a)||this.isHebrew(a)||this.isFarsi(a)||this.isHindi(a)||this.isHimalayaRahm(a)}}; if(window.aliasLanguage){var source={btnFullScreen:["btnFullscreen"],btnDisableFullScreen:["btnExitFullscreen"],btnSelection:["btnSelectText"],btnNextPage:["btnPageForward"],btnPrePage:["btnPageBack"]},property;for(property in source)aliasLanguage[property]||(aliasLanguage[property]=source[property])}else window.aliasLanguage={btnFullScreen:["btnFullscreen"],btnDisableFullScreen:["btnExitFullscreen"],btnSelection:["btnSelectText"],btnNextPage:["btnPageForward"],btnPrePage:["btnPageBack"]}; (function(a,b){"function"===typeof define&&define.amd?define(["jquery"],b):"object"===typeof exports?module.exports=b():a.jeDate=b()})(this,function(){function a(){var k=new Date;this.reDate=function(){return new a};this.GetValue=function(){return k};this.GetFullYear=function(){return k.getFullYear()};this.GetMonth=function(){return k.getMonth()+1};this.GetHours=function(){return k.getHours()};this.GetDate=function(){return k.getDate()};this.GetMinutes=function(){return k.getMinutes()};this.GetSeconds= function(){return k.getSeconds()}}function b(k,l){this.opts=l;this.valCell=k;this.format=this.opts.format;this.initdates()}if($&&$.fn&&$.fn.jquery){var c={},d=/\-/g;"YYYY|MM|DD|hh|mm|ss|zz".replace("|zz","");var e=function(k){return window.parseInt(k,10)},f={name:"cn",month:"01 02 03 04 05 06 07 08 09 10 11 12".split(" "),weeks:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),times:["\u5c0f\u65f6","\u5206\u949f","\u79d2\u6570"],titText:"\u8bf7\u9009\u62e9\u65e5\u671f\u65f6\u95f4",clear:"\u6e05\u7a7a", today:"\u73b0\u5728",yes:"\u786e\u5b9a",close:"\u5173\u95ed"};$.fn.jeDate=function(k){return new b($(this),k||{})};$.extend({jeDate:function(k,l){return new b($(k),l||{})}});c.isObj=function(k){for(var l in k)return!0;return!1};c.reMatch=function(k){return k.match(/\w+|d+/g)};c.docScroll=function(k){k=k?"scrollLeft":"scrollTop";return document.body[k]|document.documentElement[k]};c.docArea=function(k){return document.documentElement[k?"clientWidth":"clientHeight"]};c.isLeap=function(k){return 0!== k%100&&0===k%4||0===k%400};c.digit=function(k){return 10>k?"0"+(k|0):k};c.isNum=function(k){return/^[+-]?\d*\.?\d*$/.test(k)?!0:!1};c.getDaysNum=function(k,l){var n=31;switch(e(l)){case 2:n=c.isLeap(k)?29:28;break;case 4:case 6:case 9:case 11:n=30}return n};c.getYM=function(k,l,n){k=new Date(k,l-1);k.setMonth(l-1+n);return{y:k.getFullYear(),m:k.getMonth()+1}};c.prevMonth=function(k,l,n){return c.getYM(k,l,0-(n||1))};c.nextMonth=function(k,l,n){return c.getYM(k,l,n||1)};c.parse=function(k,l){return l.replace(/YYYY|MM|DD|hh|mm|ss|zz/g, function(n,p){return"zz"==n?"00":c.digit(k[n])})};c.isparmat=function(k){var l=c.reMatch(k),n=[];$.each("YYYY MM DD hh mm ss zz".split(" "),function(p,q){$.each(l,function(t,z){q==z&&n.push(z)})});return n.join("-")};c.parseOld=function(k,l,n){k=k.concat(l);var p={},q=c.reMatch(n);$.each(k,function(t,z){p[q[t]]=e(z)});return n.replace(/YYYY|MM|DD|hh|mm|ss|zz/g,function(t,z){return"zz"==t?"00":c.digit(p[t])})};c.checkFormat=function(k){var l=[];k.replace(/YYYY|MM|DD|hh|mm|ss|zz/g,function(n,p){l.push(n)}); return l.join("-")};c.splMatch=function(k){k=k.split(" ");return c.reMatch(k[0])};c.mlen=function(k){var l=k.match(/\w+|d+/g).length;return"hh"==k.substring(0,2)&&3>=l?7:l};c.checkDate=function(k){k=c.reMatch(k);return isNaN(k[0])||isNaN(k[1])||isNaN(k[2])||12k[1]||1>k[2]||31n;n++)k+=l[Math.round(Math.random()*(l.length-1))];return k},h=b.prototype,m=c.reMatch("YYYY|MM|DD|hh|mm|ss|zz");h.initdates=function(){var k=this,l=k.opts,n=void 0!=l.trigger?l.trigger:"click",p=void 0==l.zIndex?1E4:l.zIndex,q=void 0==l.isinitVal||0==l.isinitVal?!1:!0,t="#jedatebox"+g(),z=c.isBool(l.isShow);k.areaVal=[];l.range=l.range||!1;k.fixed=c.isBool(l.fixed);var v=function(w,y){var H= $("
",{id:y.replace(/#/g,""),"class":"jedatebox "+(l.skinCell||"jedateblue")}),C=z?1==k.fixed?"absolute":"fixed":"relative";H.attr("author","chen guojun").css({"z-index":"#jedatebox"!=y?"":p,position:C});"#jedatebox"!=y&&H.attr({jeformat:l.format||"YYYY-MM-DD hh:mm:ss",jefixed:t});C=["1900-01-01","00:00:00"];var J=["2099-12-31","23:59:59"];c.minDate=(/\-/g.test(l.minDate)||void 0==l.minDate?l.minDate:C[0]+" "+l.minDate)||"1900-01-01 00:00:00";c.maxDate=(/\-/g.test(l.maxDate)||void 0==l.maxDate? l.maxDate:J[0]+" "+l.maxDate)||"2099-12-31 23:59:59";c.boxelem=z?"#jedatebox":y;k.format=z?l.format||"YYYY-MM-DD hh:mm:ss":H.attr("jeformat");y=k.getValue({});$(w).append(H);k.renderHtml(y[0].YYYY,y[0].MM,y[0].DD,l,c.boxelem)};q&&n&&(q=l.initDate||[],q[1]?(q=c.reMatch(c.GetDateTime(q[0])),q=[{YYYY:q[0],MM:c.digit(q[1]),DD:c.digit(q[2]),hh:c.digit(q[3]),mm:c.digit(q[4]),ss:c.digit(q[5])}]):q=k.getValue(c.isObj(q[0])?q[0]:{}),k.setValue(q[0],l.format||"YYYY-MM-DD hh:mm:ss"));if(z){var u=["body","#jedatebox"]; if(n)k.valCell.on(n,function(w){w.stopPropagation();0<$(u[1]).length||v(u[0],u[1])});else v(u[0],u[1])}else v(k.valCell,t)};h.parseFormat=function(k,l){return c.parse(k,l)};h.parseValue=function(k,l){var n=this,p=[],q=n.opts,t="",z=$(c.boxelem),v=void 0==l?0<$(z.attr("jefixed")).length?z.attr("jeformat"):n.format:l,u=$.isFunction(k)?k():k;if(""!=u||0",{"class":"maincont"}),J=$("
",{"class":"mainfoot"}),D=$("
",{"class":"daybox"}).append("
"),I=$("
",{"class":"ymsbox"}).append("
"),M=$("
",{"class":"timebox"}).append("
");C.append(I).append(D).append(1==n|| 2==n?"":M);z.empty().append(C.children().hide()).append(J);C=''+H+''+q.today+''+q.yes+"";H=$("
",{"class":"timecon"}).append(v?":: ~ ::":"::");C=$("
",{"class":"btnscon"}).append(C);J.append(H).append(C);z.append($("
",{"class":"jedate-tips"}).hide());t.maincon=function(L, G){return z.find(L+" > "+(0==G?".arthead":".artcont"))};if(y){w=/\s/.test(c.minDate)?w[1]:w[0];/\s/.test(c.maxDate);w=c.reMatch(w);C=[k.hh,k.mm,k.ss];var O=[];O=v?""==t.getValue()?7==n?w.concat(w):w.concat([0,0,0]):C.concat([l.hh,l.mm,l.ss]):C;$.each(J.find(".timecon em"),function(L,G){$(this).text(c.digit(O[L]))})}else J.find(".timecon").hide();7==n?(t.maincon(".timebox",0).html(q.titText),z.find(".timebox").show(),t.eachHms(p,z)):3<=n&&6>=n&&(t.maincon(".daybox",0).append(''), z.find(".daybox").show(),t.eachDays(k.YYYY,k.MM,k.DD,p,z),y&&(t.maincon(".timebox",1).attr("cont","no"),t.maincon(".timebox",0).html(q.titText+''),z.find(".timecon").on("click",function(){"no"==t.maincon(".timebox",1).attr("cont")&&(t.maincon(".timebox",1).attr("cont","yes"),z.find(".ymsbox,.daybox").hide(),z.find(".timebox").show(),t.eachHms(p,z),t.dateOrien(z,t.valCell))}),t.maincon(".timebox",0).on("click",".close",function(){t.maincon(".timebox",1).html("").attr("cont", "no");z.find(".ymsbox,.timebox").hide();z.find(".daybox").show();t.dateOrien(z,t.valCell)}),H.css({cursor:"pointer"})),t.maincon(".ymsbox",0).append('').addClass("ymfix"),t.eachYM(k.YYYY,k.MM,p,z,".fixcon"));if(1==n||2==n)t.maincon(".ymsbox",0).append(''),z.find(".ymsbox").show(),t.eachYM(k.YYYY,k.MM,p,z,".jedate-cont");c.isBool(p.isTime)&&u||J.find(".timecon").hide(); u||J.find(".today").hide();t.eventsDate(p,z);setTimeout(function(){p.success&&p.success(z)},50)};h.createYMHtml=function(k,l,n){k=e(k);l=e(l);var p=this.maincon(".daybox",0);n=$("

").css({width:c.isBool(n.multiPane)?"":"50%"});p.append(n.html(""+l+"\u6708 "+k+"\u5e74"));return k+"-"+l};h.eachYM=function(k,l,n,p,q){var t=this,z=Array(15),v=new Date,u=n.language||f,w=t.maincon(".ymsbox",1);p=c.isBool(n.multiPane);l=c.mlen(t.format);var y=t.getValue({}),H=/hh/.test(t.format), C=1==l;0e(F)&&e(R)",{"class":"ymcon"}).addClass(1==D?"spaer":""),O=[];$.each(C?z:u.month,function(G, F){var N=1==D?k+(C?z.length:1):k;G=1==D?C?15+G:12+G:G;if(C){var R=c.splMatch(c.minDate);var S=c.splMatch(c.maxDate);F=R[0];S=S[0];N=N-7+G;var Q=""==t.getValue()&&c.isBool(n.isShow)?v.getFullYear():t.getValue();NS?O.push({style:"disabled",ym:N,idx:G}):(S=I(N.toString(),Q.toString(),y[1].YYYY.toString()),O.push({style:S,ym:N,idx:G}))}else R=c.splMatch(c.minDate),S=c.splMatch(c.maxDate),Q=e(N+""+c.digit(F)+"01"),R=e(R[0]+""+c.digit(R[1])+c.digit(R[2])),S=e(S[0]+""+c.digit(S[1])+c.digit(S[2])), QS?O.push({style:"disabled",ym:N+"-"+c.digit(F),idx:G}):(S=N+"-"+c.digit(F),Q=y[0].YYYY+"-"+c.digit(y[0].MM),S=I(S,Q,y[1].YYYY+"-"+c.digit(y[1].MM)),O.push({style:S,ym:N+"-"+c.digit(F),idx:G}))});var L=$("",{"class":C?"yul":"ymul"});$.each(Array(C?5:4),function(G){var F=$("");$.each(Array(3),function(){var N=$(""),T=$(""),Z=1==Q?42:0;U.append(W).append(T);$.each(Array(7),function(B){var E=$("");$.each(Array(7),function(){var K=$("
");L.append(F.append(N))})});$.each(O,function(G,F){L.find("td").eq(G).addClass(F.style).attr({idx:F.idx,"je-val":F.ym}).html(F.ym)});w.append(M.append(L))});q=w.find("td"); l=t.maincon(".ymsbox",0);var J=C?p?14:29:p?11:23;p=q.eq(0).text();q=q.eq(J).text();J=[C?p:p.substring(0,4),C?q:q.substring(0,4)];l.find("p").remove();l.append("

"+p+" ~ "+q+"

").attr({min:J[0],max:J[1]})};h.dateRegExp=function(k){k=k.split(",")||[];var l="",n=function(q){var t,z=/#?\{(.*?)\}/;for(q+="";null!=(t=z.exec(q));){t.lastIndex=t.index+t[1].length+t[0].length-t[1].length-1;var v=e(eval(t[1]));0>v&&(v="9700"+-v);q=q.substring(0,t.index)+v+q.substring(t.lastIndex+1)}return q};if(k&&0':""},L=function(Q,P,U){1==p.festival&&"cn"==w.name?(Q=t.jeLunar(Q,P-1,U),P=Q.solarFestival||Q.lunarFestival,U='

'+U+''+(""!=(P&&Q.jieqi)?P:Q.jieqi||Q.showInLunar)+"

"):U='

'+U+"

";return U},G=function(Q,P,U,W){Q=e(Q+""+ c.digit(P)+c.digit(U));if(W){if(Q>=C&&Q<=J)return!0}else if(C>Q||JM; var V=T",{"class":"daysul"}),W=$("
"),V=$("");E.append(0==B?K:V.attr("idx",Z++));0==B?W.append(E):T.append(E)})});P=R&&1==Q?z+1:z;var r=R&&1==Q?1:1==Q?v+1:v,x=F(P,r),A=$("
",{"class":"contlist"});$.each(w.weeks,function(B,E){U.find("th").eq(B).text(E)}); S.push(t.createYMHtml(P,r,p));$.each(x,function(B,E){var K=E.style;if(0",{"class":"timelist"}).css({width:z?"100%":"50%",float:z?"":"left"}),N=$("
",{"class":"contime"}),R=$("
",{"class":"textbox"}).append("

"+n.times[0]+"

"+n.times[1]+"

"+n.times[2]+"

");F.append(R);C.addClass(1==G?"spaer":"");$.each([24,60,60],function(S,Q){for(var P,U=$("
    ").attr("idx", 1==G?3+S:S),W=D.eq(S).text(),T=0;T");P=0!=k.range?w?0==G?T>=y[S]?T==(t?y[S]:M[S])?J[0]:"":J[1]:T>H[S]?J[1]:T==(t?0:O[S])?J[0]:"":T>=y[S]?T==(t?y[S]:0==G?M[S]:O[S])?J[0]:"":J[1]:T>=y[S]&&T<=H[S]?WH[S]?T==H[S]?J[0]:"":T==W?J[0]:"":J[1];Z.text(c.digit(T)).addClass(P);C.append(F.append(N.append(U.append(Z))))}});0==p&&z&&F.css({"padding-left":F.outerWidth()/2+12,"padding-right":F.outerWidth()/2+12})});this.locateScroll(C.find("ul"));this.clickTime(k,l);var L= [];$.each(y,function(G,F){e(F)>e(H[G])&&L.push("\u4e0d\u80fd\u5927\u4e8e\u6700\u5927"+n.times[G])});0"),4.5)}};h.eventsDate=function(k,l){var n=this;c.isBool(k.multiPane);n.clickYM(k,l);n.clickDays(k,l);n.clickBtn(k,l);c.isBool(k.isShow)&&(k=k.position||[],0e(Q)&&e(R)=C){n.maincon(".daybox",0).on("click",".ymbtn",function(L){l.children(".ymsbox").show();l.children(".daybox,.mainfoot").hide();u&&n.dateOrien(l,n.valCell)});var O=function(){var L=l.find(".ymcon").find("td");L.on("click",function(){var G=$(this),F=c.reMatch(G.attr("je-val"));L.removeClass(D[0]);G.addClass(D[0]);l.children(".jedate-contfix").show();l.children(".jedate-jedatewrap").hide();n.renderHtml(F[0],F[1],null,k,l)})};$.each([t,z],function(L,G){G.on("click",function(F){F=I.getMonth()+1;var N= e($(this).parent().attr("min")),R=e($(this).parent().attr("max"));N=J?0==L?N:R:0==L?--N:++R;n.eachYM(N,F,k,l,".jedate-contfix");O();u&&n.dateOrien(l,n.valCell);$.isFunction(k.toggle)&&k.toggle()})});p.on("click",".close",function(L){l.children(".daybox,.mainfoot").show();l.children(".ymsbox").hide();u&&n.dateOrien(l,n.valCell)});O()}};h.gethmsVal=function(k){var l={};k.find(".timecon em").each(function(n){void 0==$(this).attr("disabled")&&(l[m[3+n]]=$(this).text())});return l};h.clickDays=function(k, l){var n=this,p=n.valCell,q=l.find(".daysul").find("td"),t=k.language||f,z=["actdate","contain"];q.on("click",function(v){var u=$(this),w=u.attr("je-val"),y=c.reMatch(w),H=[];if(!u.hasClass("disabled")){v.stopPropagation();v=function(){$.each(y,function(M,O){H.push(e(O))});if(0<$(l.attr("jefixed")).length)n.renderHtml(H[0],H[1],H[2],k,l);else if(c.isBool(k.onClose))q.removeClass(z[0]),u.addClass(z[0]);else{var J={},D=c.reMatch(u.attr("je-val"));$.each(D,function(M,O){J[m[M]]=O});D=/hh/.test(n.format)? $.extend(J,n.gethmsVal(l)):J;var I=n.setValue(D);n.dateClose();($.isFunction(k.okfun)||null!=k.okfun)&&k.okfun&&k.okfun({elem:p,val:I,date:D})}};var C=function(){n.areaStart&&void 0==n.areaEnd?(u.addClass(z[0]),n.areaEnd=!0,n.areaVal.push(w),q.each(function(){var J=$(this),D=J.attr("je-val").replace(d,""),I=[n.areaVal[0].replace(d,""),n.areaVal[1].replace(d,"")],M=Math.min.apply(null,I);I=Math.max.apply(null,I);J.hasClass("other")||J.hasClass("disabled")||e(D)>e(M)&&e(D)",{id:"jedatetipscon","class":"jedatetipscon"}),y=n.jeLunar(e(u[0]),e(u[1])-1,e(u[2]));u="

    "+y.solarYear+"\u5e74"+y.solarMonth+"\u6708"+y.solarDate+"\u65e5 "+ y.inWeekDays+'

    \u519c\u5386\uff1a'+y.shengxiao+"\u5e74 "+y.lnongMonth+"\u6708"+y.lnongDate+"

    "+y.ganzhiYear+"\u5e74 "+y.ganzhiMonth+"\u6708 "+y.ganzhiDate+"\u65e5

    ";var H=""!=(y.solarFestival||y.lunarFestival)?'

    '+("\u8282\u65e5\uff1a"+y.solarFestival+y.lunarFestival)+"

    ":"",C=""!=y.jieqi?'

    '+(""!=y.jieqi?"\u8282\u6c14\uff1a"+y.jieqi:"")+"

    ":"";y=""!=(y.solarFestival||y.lunarFestival||y.jieqi)?H+C:"";$("body").append(w);w.html(u+y);v=h.lunarOrien(w, v);w.css({"z-index":void 0==k.zIndex?10005:k.zIndex+5,top:v.top,left:v.left,position:"absolute",display:"block"})}).on("mouseout",function(){$("#jedatetipscon").remove()}))};h.clickBtn=function(k,l){var n=this,p=n.valCell,q=c.isBool(k.isShow),t=7==c.mlen(n.format);c.isBool(k.multiPane);var z=2==c.mlen(n.format),v=1==c.mlen(n.format);l.on("click",".clear",function(u){u.stopPropagation();if(q){u=c.isValHtml(n.valCell)?"val":"text";u=n.valCell[u]();var w=n.setValue("");n.dateClose();""!=u&&(c.isBool(k.clearRestore)&& (c.minDate=k.startMin||c.minDate,c.maxDate=k.startMax||c.maxDate),($.isFunction(k.clearfun)||null!=k.clearfun)&&k.clearfun({elem:p,val:w}))}else u=n.getValue({}),n.renderHtml(u[0].YYYY,u[0].MM,u[0].DD,k,l);0!=k.range&&n.delAreaAttr()});0!=k.range&&l.find(".today").hide();l.on("click",".today",function(){var u=new Date;u={YYYY:u.getFullYear(),MM:c.digit(u.getMonth()+1),DD:c.digit(u.getDate()),hh:c.digit(u.getHours()),mm:c.digit(u.getMinutes()),ss:c.digit(u.getSeconds())};var w=n.setValue(u);n.dateClose(); ($.isFunction(k.okfun)||null!=k.okfun)&&k.okfun({elem:p,val:w,date:u})});l.on("click",".setok",function(u){u.stopPropagation();u=new Date;if(0==k.range){var w=n.gethmsVal(l);var y=function(){var O={},L=c.reMatch(l.find(z||v?".ymcon":".daysul").find("td.actdate").attr("je-val"));$.each(L,function(G,F){O[m[G]]=F});return/hh/.test(n.format)?$.extend(O,w):O};y=t?w:y()}else{var H={},C=[],J=[[],[]];l.find(".timecon em").each(function(O){void 0==$(this).attr("disabled")&&J[2=c.docArea(1)?p.right-k[0].offsetWidth:p.left+(n?0:c.docScroll(1));k=p.bottom+k[0].offsetHeight/1<=c.docArea()?p.bottom-1:p.top>k[0].offsetHeight/ 1.5?p.top-k[0].offsetHeight-1:c.docArea()-k[0].offsetHeight;return{top:Math.max(k+(n?0:c.docScroll())+1,1)+"px",left:l+"px"}};h.dateOrien=function(k,l,n){l=this.fixed?l[0].getBoundingClientRect():k[0].getBoundingClientRect();var p=l.left;var q=l.bottom;if(this.fixed){var t=k.outerWidth(),z=k.outerHeight();p+t>c.docArea(!0)&&(p=c.docArea(!0)-t);q+z>c.docArea()&&(q=l.top>z?l.top-z-2:c.docArea()-z-1);n=Math.max(q+(n?0:c.docScroll())+1,1)+"px";p+="px"}else p=n="50%",k.css({"margin-top":-(l.height/2), "margin-left":-(l.width/2)});k.css({top:n,left:p})};h.tips=function(k,l){var n=$(c.boxelem).find(".jedate-tips");n.html("").html(k||"").show();clearTimeout(this.tipTime);this.tipTime=setTimeout(function(){n.html("").hide()},1E3*(l||2.5))};h.dateClose=function(){0==$($(c.boxelem).attr("jefixed")).length&&$(c.boxelem).remove()};h.dateContrast=function(k,l){k=k.split("-");var n=l.split("-");l=e(k[0]+""+c.digit(e(k[1])-1)+c.digit(k[2]||"01"));k=e(n[0]+""+c.digit(e(n[1])-1)+c.digit(k[2]||"01"));return l>= k?!1:!0};h.delAreaAttr=function(){delete this.areaStart;delete this.areaEnd;this.areaVal=[]};h.jeLunar=function(k,l,n){var p=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856, 19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160, 43600,111189,27936,44448],q=[0,21208,43467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758],t="\u5c0f\u5bd2 \u5927\u5bd2 \u7acb\u6625 \u96e8\u6c34 \u60ca\u86f0 \u6625\u5206 \u6e05\u660e \u8c37\u96e8 \u7acb\u590f \u5c0f\u6ee1 \u8292\u79cd \u590f\u81f3 \u5c0f\u6691 \u5927\u6691 \u7acb\u79cb \u5904\u6691 \u767d\u9732 \u79cb\u5206 \u5bd2\u9732 \u971c\u964d \u7acb\u51ac \u5c0f\u96ea \u5927\u96ea \u51ac\u81f3".split(" "), z="\u6b63 \u4e8c \u4e09 \u56db \u4e94 \u516d \u4e03 \u516b \u4e5d \u5341 \u5341\u4e00 \u814a".split(" "),v={"0101":"*1\u5143\u65e6\u8282","0202":"\u6e7f\u5730\u65e5","0214":"\u60c5\u4eba\u8282","0308":"\u5987\u5973\u8282","0312":"\u690d\u6811\u8282","0315":"\u6d88\u8d39\u8005\u6743\u76ca\u65e5","0401":"\u611a\u4eba\u8282","0422":"\u5730\u7403\u65e5","0501":"*1\u52b3\u52a8\u8282","0504":"\u9752\u5e74\u8282","0512":"\u62a4\u58eb\u8282","0518":"\u535a\u7269\u9986\u65e5","0520":"\u6bcd\u4eb2\u8282","0601":"\u513f\u7ae5\u8282", "0623":"\u5965\u6797\u5339\u514b\u65e5","0630":"\u7236\u4eb2\u8282","0701":"\u5efa\u515a\u8282","0801":"\u5efa\u519b\u8282","0903":"\u6297\u6218\u80dc\u5229\u65e5","0910":"\u6559\u5e08\u8282",1001:"*3\u56fd\u5e86\u8282",1201:"\u827e\u6ecb\u75c5\u65e5",1224:"\u5e73\u5b89\u591c",1225:"\u5723\u8bde\u8282"},u={"0100":"\u9664\u5915","0101":"*2\u6625\u8282","0115":"\u5143\u5bb5\u8282","0505":"*1\u7aef\u5348\u8282","0707":"\u4e03\u5915\u8282","0715":"\u4e2d\u5143\u8282","0815":"*1\u4e2d\u79cb\u8282","0909":"*1\u91cd\u9633\u8282", 1015:"\u4e0b\u5143\u8282",1208:"\u814a\u516b\u8282",1223:"\u5c0f\u5e74"};return new function(w){var y=function(M,O){return(new Date(3.15569259747E10*(M-1900)+6E4*q[O]+Date.UTC(1900,0,6,2,5))).getUTCDate()},H=function(M){return"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678".charAt(M%10)+"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5".charAt(M%12)},C=function(M){return p[M-1900]&15?p[M-1900]&65536?30:29:0},J=function(M){return 10>M?"0"+(M|0):M},D=function(M, O){return O.replace(/dd?d?d?|MM?M?M?|yy?y?y?/g,function(L){switch(L){case "yyyy":return L="000"+M.getFullYear(),L.substring(L.length-4);case "dd":return J(M.getDate());case "d":return M.getDate().toString();case "MM":return J(M.getMonth()+1);case "M":return M.getMonth()+1}})};this.isRestDay=this.isToday=!1;this.solarYear=D(w,"yyyy");this.solarMonth=D(w,"M");this.solarDate=D(w,"d");this.solarWeekDay=w.getDay();this.inWeekDays="\u661f\u671f"+"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341".charAt(this.solarWeekDay); var I=new function(M){var O=0,L=(M-new Date(1900,0,31))/864E5;this.dayCyl=L+40;this.monCyl=14;for(M=1900;2050>M&&0>=1)G+=p[M-1900]&O?1:0;O=G+C(M);L-=O;this.monCyl+=12}0>L&&(L+=O,M--,this.monCyl-=12);this.year=M;this.yearCyl=M-1864;G=p[M-1900]&15;this.isLeap=!1;for(M=1;13>M&&0>M?30:29,1==this.isLeap&&M==G+1&&(this.isLeap=!1),L-=O,0==this.isLeap&&this.monCyl++;0==L&&0< G&&M==G+1&&(this.isLeap?this.isLeap=!1:(this.isLeap=!0,--M,--this.monCyl));0>L&&(L+=O,--M,--this.monCyl);this.month=M;this.day=L+1}(w);this.lunarYear=I.year;this.shengxiao="\u9f20\u725b\u864e\u5154\u9f99\u86c7\u9a6c\u7f8a\u7334\u9e21\u72d7\u732a".charAt((this.lunarYear-4)%12);this.lunarMonth=I.month;this.lnongMonth=(this.lunarIsLeapMonth=I.isLeap)?"\u95f0"+z[I.month-1]:z[I.month-1];this.lunarDate=I.day;this.showInLunar=this.lnongDate=function(M,O){switch(M,O){case 10:M="\u521d\u5341";break;case 20:M= "\u4e8c\u5341";break;case 30:M="\u4e09\u5341";break;default:M="\u521d\u5341\u5eff\u5345".charAt(Math.floor(O/10)),M+="\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341".charAt(O%10)}return M}(this.lunarMonth,this.lunarDate);1==this.lunarDate&&(this.showInLunar=this.lnongMonth+"\u6708");this.ganzhiYear=H(I.yearCyl);this.ganzhiMonth=H(I.monCyl);this.ganzhiDate=H(I.dayCyl++);this.jieqi="";this.restDays=0;y(this.solarYear,2*(this.solarMonth-1))==D(w,"d")&&(this.showInLunar=this.jieqi= t[2*(this.solarMonth-1)]);y(this.solarYear,2*(this.solarMonth-1)+1)==D(w,"d")&&(this.showInLunar=this.jieqi=t[2*(this.solarMonth-1)+1]);"\u6e05\u660e"==this.showInLunar&&(this.showInLunar="\u6e05\u660e\u8282",this.restDays=1);this.solarFestival=v[D(w,"MM")+D(w,"dd")];"undefined"==typeof this.solarFestival?this.solarFestival="":/\*(\d)/.test(this.solarFestival)&&(this.restDays=e(RegExp.$1),this.solarFestival=this.solarFestival.replace(/\*\d/,""));this.showInLunar=""==this.solarFestival?this.showInLunar: this.solarFestival;this.lunarFestival=u[this.lunarIsLeapMonth?"00":J(this.lunarMonth)+J(this.lunarDate)];"undefined"==typeof this.lunarFestival?this.lunarFestival="":/\*(\d)/.test(this.lunarFestival)&&(this.restDays=this.restDays>e(RegExp.$1)?this.restDays:e(RegExp.$1),this.lunarFestival=this.lunarFestival.replace(/\*\d/,""));12==this.lunarMonth&&this.lunarDate==(p[this.lunarYear-1900]&16?30:29)&&(this.lunarFestival=u["0100"],this.restDays=1);this.showInLunar=""==this.lunarFestival?this.showInLunar: this.lunarFestival}(new Date(k,l,n))};$.dateVer="6.0.2";$.nowDate=function(k,l){"number"===typeof k&&(k={DD:k});return c.GetDateTime(k,l||"YYYY-MM-DD hh:mm:ss")};$.timeStampDate=function(k,l){l=l||"YYYY-MM-DD hh:mm:ss";var n=/^(-)?\d{1,10}$/.test(k)||/^(-)?\d{1,13}$/.test(k);if(/^[1-9]*[1-9][0-9]*$/.test(k)&&n){k=e(k);if(/^(-)?\d{1,10}$/.test(k))k*=1E3;else if(/^(-)?\d{1,13}$/.test(k))k*=1E3;else if(/^(-)?\d{1,14}$/.test(k))k*=100;else{alert("\u65f6\u95f4\u6233\u683c\u5f0f\u4e0d\u6b63\u786e");return}k= new Date(k);return c.parse({YYYY:k.getFullYear(),MM:c.digit(k.getMonth()+1),DD:c.digit(k.getDate()),hh:c.digit(k.getHours()),mm:c.digit(k.getMinutes()),ss:c.digit(k.getSeconds())},l)}l=c.reMatch(k);l=new Date(l[0],e(l[1])-1,l[2],l[3]||0,l[4]||0,l[5]||0);return Math.round(l.getTime()/1E3)};$.splitDate=function(k){k=k.match(/\w+|d+/g);return{YYYY:e(k[0]),MM:e(k[1])||0,DD:e(k[2])||0,hh:e(k[3])||0,mm:e(k[4])||0,ss:e(k[5])||0}};$.getLunar=function(k,l){if(/YYYY-MM-DD/g.test(c.isparmat(l||"YYYY-MM-DD hh:mm:ss")))return l= k.substr(0,4).replace(/^(\d{4})/g,"$1,")+k.substr(4).replace(/(.{2})/g,"$1,"),k=c.isNum(k)?c.reMatch(l):c.reMatch(k),k=this.jeLunar(k[0],k[1]-1,k[2]),{nMonth:k.lnongMonth,nDays:k.lnongDate,yYear:e(k.solarYear),yMonth:e(k.solarMonth),yDays:e(k.solarDate),cWeek:k.inWeekDays,nWeek:k.solarWeekDay}};return b}alert("\u5728\u5f15\u7528jquery.jedate.js\u4e4b\u524d\uff0c\u5148\u5f15\u7528jQuery\uff0c\u5426\u5219\u65e0\u6cd5\u4f7f\u7528 jeDate")}); (function(a,b){"object"===typeof exports&&"undefined"!==typeof module?module.exports=b():"function"===typeof define&&define.amd?define(b):(a=a||self,a.Rolldate=b())})(this,function(){function a(d){if(d&&d.el){var e=this,f=e.$(d.el);if(f&&!f.bindRolldate&&(f.bindRolldate=1,e.extend(d),e.tap(f,function(){e.show()}),d.value)){"input"==f.nodeName.toLowerCase()?f.value=d.value:f.innerText=d.value;d=d.value.replace(/-/g,"/").replace(/[^\d/:\s]/g,"");var g=new Date(d);g&&"Invalid Date"!=g?f.bindDate=g:console.error("Invalid Date\uff1a"+ d)}}}(function(d,e){void 0===e&&(e={});e=e.insertAt;if(d&&"undefined"!==typeof document){var f=document.head||document.getElementsByTagName("head")[0],g=document.createElement("style");g.type="text/css";"top"===e?f.firstChild?f.insertBefore(g,f.firstChild):f.appendChild(g):f.appendChild(g);g.styleSheet?g.styleSheet.cssText=d:g.appendChild(document.createTextNode(d))}})("ul{margin:0;padding:0}li{list-style-type:none}.rolldate-container{font-size:20px;color:#333;text-align:center}.rolldate-container header{position:relative;line-height:60px;font-size:18px;border-bottom:1px solid #e0e0e0}.rolldate-container .rolldate-mask{position:fixed;width:100%;height:100%;top:0;left:0;background:#000;opacity:.4;z-index:999}.rolldate-container .rolldate-panel{position:fixed;bottom:0;left:0;width:100%;height:273px;z-index:1000;background:#fff;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-delay:0s;animation-delay:0s;-webkit-animation-iteration-count:1;animation-iteration-count:1}.rolldate-container .rolldate-btn{position:absolute;left:0;top:0;height:100%;padding:0 15px;color:#666;font-size:16px;cursor:pointer;-webkit-tap-highlight-color:transparent}.rolldate-container.wx .rolldate-btn{height:150%}.rolldate-container .rolldate-confirm{left:auto;right:0;color:#007bff}.rolldate-container .rolldate-content{position:relative;top:20px}.rolldate-container .rolldate-wrapper{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.rolldate-container .rolldate-wrapper>div{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:173px;line-height:36px;overflow:hidden;-webkit-flex-basis:-8e;-ms-flex-preferred-size:-8e;flex-basis:-8e;width:1%}.rolldate-container .rolldate-wrapper ul{margin-top:68px}.rolldate-container .rolldate-wrapper li{height:36px}.rolldate-container .rolldate-dim{position:absolute;left:0;top:0;width:100%;height:68px;background:-webkit-gradient(linear,left bottom,left top,from(hsla(0,0%,100%,.4)),to(hsla(0,0%,100%,.8)));background:-webkit-linear-gradient(bottom,hsla(0,0%,100%,.4),hsla(0,0%,100%,.8));background:-o-linear-gradient(bottom,hsla(0,0%,100%,.4),hsla(0,0%,100%,.8));background:-webkit-gradient(linear, left bottom, left top, from(hsla(0, 0%, 100%, 0.4)), to(hsla(0, 0%, 100%, 0.8)));background:-webkit-linear-gradient(bottom, hsla(0, 0%, 100%, 0.4), hsla(0, 0%, 100%, 0.8));background:-o-linear-gradient(bottom, hsla(0, 0%, 100%, 0.4), hsla(0, 0%, 100%, 0.8));background:linear-gradient(0deg,hsla(0,0%,100%,.4),hsla(0,0%,100%,.8));pointer-events:none;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:10}.rolldate-container .mask-top{border-bottom:1px solid #ebebeb}.rolldate-container .mask-bottom{top:auto;bottom:1px;border-top:1px solid #ebebeb}.rolldate-container .fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}.rolldate-container .fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeIn{0%{bottom:-273px}to{bottom:0}}@keyframes fadeIn{0%{bottom:-273px}to{bottom:0}}@-webkit-keyframes fadeOut{0%{bottom:0}to{bottom:-273px;display:none}}@keyframes fadeOut{0%{bottom:0}to{bottom:-273px;display:none}}@media screen and (max-width:414px){.rolldate-container{font-size:18px}}@media screen and (max-width:320px){.rolldate-container{font-size:15px}}"); var b="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},c=function(d,e){return e={exports:{}},d(e,e.exports),e.exports}(function(d,e){!function(f,g){d.exports=g()}(b,function(){function f(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function g(r){for(var x=arguments.length,A=Array(1x?-1:1);return aa&&X&&(r=Math.round(r/X)*X),rthis.minScrollX||this.xthis.minScrollY||this.ythis.maxScrollX?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):1this.maxScrollY?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY): 1this.options.momentumLimitTime&&KK+this.options.directionLockThreshold?this.directionLocked= "h":K>=E+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)r.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);B=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)r.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);A=0}A=this.hasHorizontalScroll?A:0;B=this.hasVerticalScroll? B:0;this.movingDirectionX=0A?1:0;this.movingDirectionY=0B?1:0;E=this.x+A;K=this.y+B;var V=!1,X=!1,ba=!1,aa=!1,Y=this.options.bounce;!1!==Y&&(V=void 0===Y.top||Y.top,X=void 0===Y.bottom||Y.bottom,ba=void 0===Y.left||Y.left,aa=void 0===Y.right||Y.right);(E>this.minScrollX||Ethis.minScrollX&&ba||Ethis.minScrollX?this.minScrollX:this.maxScrollX);(K>this.minScrollY||Kthis.minScrollY&&V||Kthis.minScrollY?this.minScrollY:this.maxScrollY);this.moved||(this.moved=!0,this.trigger("scrollStart"));this._translate(E,K);x-this.startTime>this.options.momentumLimitTime&&(this.startTime=x,this.startX=this.x,this.startY=this.y,1===this.options.probeType&&this.trigger("scroll",{x:this.x,y:this.y}));1document.documentElement.clientWidth-this.options.momentumLimitDistance||Adocument.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(r)}}},u.prototype._end=function(r){if(this.enabled&&!this.destroyed&&S[r.type]===this.initiated){this.initiated=!1;this.options.preventDefault&&!p(r.target,this.options.preventDefaultException)&&r.preventDefault();this.options.stopPropagation&& r.stopPropagation();this.trigger("touchEnd",{x:this.x,y:this.y});this.isInTransition=!1;var x=Math.round(this.x),A=Math.round(this.y),B=x-this.absStartX,E=A-this.absStartY;if(this.directionX=0B?1:0,this.directionY=0E?1:0,!this.options.pullDownRefresh||!this._checkPullDown())if(this._checkClick(r))this.trigger("scrollCancel");else if(!this.resetPosition(this.options.bounceTime,W)){this._translate(x,A);this.endTime=f();r=this.endTime-this.startTime;E=Math.abs(x-this.startX);var K=Math.abs(A- this.startY);if(this._events.flick&&rthis.options.momentumLimitDistance||E>this.options.momentumLimitDistance)){var V=K=E=B=!1,X=this.options.bounce;!1!==X&&(B=void 0===X.top||X.top,E=void 0===X.bottom||X.bottom,K=void 0===X.left||X.left,V=void 0===X.right||X.right);K=-1===this.directionX&&K||1===this.directionX&& V?this.wrapperWidth:0;B=-1===this.directionY&&B||1===this.directionY&&E?this.wrapperHeight:0;E=this.hasHorizontalScroll?t(this.x,this.startX,r,this.maxScrollX,this.minScrollX,K,this.options):{destination:x,duration:0};r=this.hasVerticalScroll?t(this.y,this.startY,r,this.maxScrollY,this.minScrollY,B,this.options):{destination:A,duration:0};x=E.destination;A=r.destination;B=Math.max(E.duration,r.duration);this.isInTransition=!0}else this.options.wheel&&(A=Math.round(A/this.itemHeight)*this.itemHeight, B=this.options.wheel.adjustTime||400);r=P;this.options.snap&&(this.currentPage=r=this._nearestSnap(x,A),B=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(x-r.x),1E3),Math.min(Math.abs(A-r.y),1E3)),300),x=r.x,A=r.y,this.directionY=this.directionX=0,r=this.options.snap.easing||W);if(x!==this.x||A!==this.y)return(x>this.minScrollX||xthis.minScrollY||Athis.minScrollY?this.selectedIndex=0:xthis.minScrollX?this.minScrollX:K.leftthis.minScrollY?this.minScrollY:K.topthis.minScrollX?A=this.minScrollX:Bthis.minScrollY?B=this.minScrollY: EA&&r++,0E&&B++,void this._goToPage(r,B);r=this.x+Math.round(this.hasHorizontalScroll?A:0);B=this.y+Math.round(this.hasVerticalScroll?E:0);this.movingDirectionX=this.directionX=0A?1:0;this.movingDirectionY=this.directionY=0E?1:0;r>this.minScrollX?r=this.minScrollX:rthis.minScrollY?B=this.minScrollY:B
      ';if("YYYY"==l)for(var t=f.beginYear;t<=f.endYear;t++)l=t==k.getFullYear()?"active":"",m+='
    • '+t+n.year+"
    • ",q++;else if("MM"==l)for(t=1;12>=t;t++)l=t==k.getMonth()+1?"active":"",m+='
    • '+(10>t?"0"+t:t)+n.month+"
    • ",q++;else if("DD"==l){t=d.bissextile(k.getFullYear(),k.getMonth()+1);for(var z=1;z<=t;z++)l=z==k.getDate()?"active":"",m+='
    • '+(10>z?"0"+z:z)+n.day+"
    • ",q++}else if("hh"==l)for(t=0;23>=t;t++)l=t==k.getHours()?"active":"",m+='
    • '+(10>t?"0"+t:t)+n.hour+"
    • ",q++;else if("mm"==l)for(t=0;59>=t;t+=f.minStep)l=t==k.getMinutes()?"active":"",m+='
    • '+(10>t?"0"+t:t)+n.min+"
    • ",q++;else if("ss"==l)for(t=0;59>=t;t++)l=t==k.getSeconds()?"active":"",m+='
    • '+(10>t?"0"+ t:t)+n.sec+"
    • ",q++;m+="
"}m='
\n
\n
\n '+n.cancel+"\n "+n.title+'\n '+n.confirm+'\n
\n
\n
\n
\n
\n '+ m+"\n
\n
\n
";p=document.createElement("div");p.className="rolldate-container"+(navigator.userAgent.match(/MicroMessenger/i)?" wx":"");p.innerHTML=m;document.body.appendChild(p);d.scroll={};m=function(v){var u=g[h[v]];d.scroll[h[v]]=new c("#"+u,{wheel:{selectedIndex:0,wheelWrapperClass:"wheel-scroll",wheelItemClass:"wheel-item"},probeType:1});var w=d.scroll[h[v]];v=(v=d.$("#"+u+" .active"))?v.getAttribute("data-index"):Math.round(k.getMinutes()/ f.minStep);w.wheelTo(v);w.on("scrollEnd",function(){f.moveEnd&&f.moveEnd.call(d,w);if(-1!=[g.YYYY,g.MM].indexOf(w.wrapper.id)&&d.scroll.DD){d.getSelected(d.scroll.DD);var y=d.bissextile(d.getSelected(d.scroll.YYYY),d.getSelected(d.scroll.MM)),H="";if(y!=d.$("#"+g.DD+" li",1).length){for(var C=1;C<=y;C++)H+='
  • '+(10>C?"0"+C:C)+n.day+"
  • ";d.$("#"+g.DD+" ul").innerHTML=H;d.scroll.DD.refresh()}}})};for(p=0;p+new Date-h&&20>Math.abs(m-f)+Math.abs(k-g)&&(l.preventDefault(),e.call(this,l));k=m=h=g=f=void 0})}else d.addEventListener("click",function(l){e.call(this,l)})},show:function(){var d= this.config,e=this.$(d.el);e.bindRolldate&&("input"==e.nodeName.toLowerCase()&&e.blur(),this.$(".rolldate-container")||d.init&&!1===d.init.call(this)||(this.createUI(),this.event()))},hide:function(d){var e=this.$(".rolldate-panel.fadeIn");e&&(e.className="rolldate-panel fadeOut",this.destroy(d))},event:function(){var d=this,e=d.$(".rolldate-mask"),f=d.$(".rolldate-cancel"),g=d.$(".rolldate-confirm");d.tap(e,function(){d.hide(1)});d.tap(f,function(){d.hide(1)});d.tap(g,function(){var h=d.config,m= d.$(h.el),k=h.format,l=new Date,n;for(n in d.scroll){var p=d.getSelected(d.scroll[n]);k=k.replace(n,p);"YYYY"==n?l.setFullYear(p):"MM"==n?l.setMonth(p-1):"DD"==n?l.setDate(p):"hh"==n?l.setHours(p):"mm"==n?l.setMinutes(p):"ss"==n&&l.setSeconds(p)}if(h.confirm){h=h.confirm.call(d,k);if(!1===h)return!1;h&&(k=h)}"input"==m.nodeName.toLowerCase()?(m.value=k,$(m).change()):m.innerText=k;d.hide();m.bindDate=l})},bissextile:function(d,e){var f=void 0;1==e||3==e||5==e||7==e||8==e||10==e||12==e?f=31:4==e|| 6==e||11==e||9==e?f=30:2==e&&(f=0!=d%4||0==d%100&&0!=d%400?28:29);return f},destroy:function(d){var e=this,f=e.config,g;for(g in e.scroll)e.scroll[g].destroy();d&&f.cancel&&f.cancel.call(e);setTimeout(function(){var h=e.$(".rolldate-container");document.body.removeChild(h)},300)},getSelected:function(d){return this.$("#"+d.wrapper.id+" li",1)[d.getSelectedIndex()].innerText.replace(/\D/g,"")}};a.version="3.1.0";return a});var form_icons={arrow:"iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWd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3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAFHSURBVHjatJa/SgNBEIe/S6xFEBQFiYKFKSxEn0LsJeYFxEKEKBK0sBFBfAr/YmHpM9jYCmoREVH0GUR/NhM4VnK7l+wODNyws3z3G2Z3NpNEJFsC7nstViJBFoHzooQYoAXgDBhOCZoHToERX+IgoLopGbW4kwJUBy6BMYtfgEZs0JxBxi1+BZrAW9GmrGR7zwLXwITF78Cqr2xlFc0AFznIpynphGwOBU1buaZykAbwHPqXIaCaQWoWfwFrwFOZmlcCIFemqAtpAo9lO8jXDHc5Jd/AMvDQz3nwKbrNfVeBlb6PtySftyV95LwdsOefhybuObDdVCAk7TuwnVQgJB04sFYqEJIOHdhmKhCSjhzYRioQko4d2HpRfjbg4+TErqOuTaYa5ds2Nog5JnpZC7jxJQ1FAP0CW3ZFRZuwRVYFfnot/g0ANBBrtd7pgMoAAAAASUVORK5CYII="};var FormElements=Class({rightToLeft:!1,create:function(a){this.rightToLeft=global.rightToLeft},initElements:virtual_function,initEvent:virtual_function,pickElements:virtual_function,changeLanguage:virtual_function}),PhoneFormFrame=Class({create:function(a){this._super(a);this.closeUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAATCAYAAABGKffQAAAA20lEQVQokYXSoUqEQRQG0CvioqBiWNGiotGgRcTgCwha7Ps0FrvF4BsYfIGFNZgsGw02EYOLWDSI4DF4F2T5Z/6BgQnnY5jvTiCwj06eiztw6m/dYqkNr+MpA0Os1nBgAw8ZeMRWDQe6uM/AC3ZqODCPfgbecVjDka1cZ+ATxzUcmMZlBr7Rq+HxPsvAD/bacAd3GGGtBhf+PfYVMyW43FRjE5wc0GapjW08JxxipdTzAd4SDrA4eev4cISPhDeYbXpL4ARfCa9yIMVfd5HwHFO13gNz2G0ZTiB+ASa3n9W0/5wmAAAAAElFTkSuQmCC"; this.stage=$("
    ");this.title=$("

    "+FormInfo.getFormTitle(this.formType)+"

    ");this.close=$(phoneSvgIcons.formClose);this.rightToLeft&&this.stage.addClass("rightToLeft");this.close.bind("click",this.hide.bind(this));this.stage.css({visibility:"hidden"});this.initHtml();this.initEvent();this.onCreate();(isPhone()||isPad())&&this.initScrollEvent()},onCreate:function(){this.stage.insertBefore(this.parent); this.stage.css({position:"absolute",left:this.width+"px",top:0,width:this.width+"px",height:this.height+"px","background-color":Color(this.mainColor).rgba(this.formOpacity),color:this.fontColor,overflow:"hidden"})},getPosition:function(a){a=a.originalEvent&&a.originalEvent.changedTouches?a.originalEvent.changedTouches:a.changedTouches?a.changedTouches:[a];return{x:(a[0].pageX||a[0].clientX)+(document.documentElement.scrollLeft||document.body.scrollLeft),y:(a[0].pageY||a[0].clientY)+(document.documentElement.scrollTop|| document.body.scrollTop)}},firstTimeMove:function(a){this.firstTime=!0;this.dragEnd=this.getPosition(a);a=this.dragEnd.x-this.dragStart.x;var b=this.dragEnd.y-this.dragStart.y;0==a&&0!=b&&(this.noSwipeRight=!0);0!=a&&0==b&&(this.noSwipeRight=!1);0==a&&0==b&&(this.noSwipeRight=!0);1.01>=Math.abs(a/b)&&(this.noSwipeRight=!0)},firstTimeMoveOnY:function(a){this.firstTime=!0;this.dragEnd=this.getPosition(a);a=this.dragEnd.y-this.dragStart.y;var b=this.dragEnd.x-this.dragStart.x;0==a&&0!=b&&(this.noSwipeRight= !0);0!=a&&0==b&&(this.noSwipeRight=!1);0==a&&0==b&&(this.noSwipeRight=!0);1.01>=Math.abs(a/b)&&(this.noSwipeRight=!0)},initScrollEvent:function(){bookConfig.upsideOnMobile()?this.initScrollEventOnY():this.initScrollEventOnX()},initScrollEventOnX:function(){this.dragStart={};this.dragEnd={};this.stage.bind(_event._down,function(a){a.stopPropagation();this.formTouching=!0;this.firstTime=this.dragMove=this.noSwipeRight=!1;this.dragEnd=this.dragStart=this.getPosition(a);this.endTime=this.startTime=(new Date).getTime()}.bind(this)); this.stage.bind(_event._move,function(a){a.stopPropagation();this.dragMove=!0;this.firstTime||this.firstTimeMove(a);if(this.formTouching){this.dragEnd=this.getPosition(a);var b=this.dragEnd.x-this.dragStart.x;this.noSwipeRight||(a.preventDefault(),0=b&&this.stage.css({transform:"translate3d("+-windowWidth+"px,0,0)"}),b>=windowWidth&&this.stage.css({transform:"translate3d(0px,0,0)"})))}}.bind(this)); this.stage.bind(_event._up,function(a){a.stopPropagation();if(this.dragEnd&&void 0!=this.dragEnd.x&&(a=this.dragEnd.x-this.dragStart.x,this.endTime=(new Date).getTime(),this.formTouching&&!this.noSwipeRight&&this.dragMove&&!(0>a))){this.formTouching=!1;var b=(this.endTime-this.startTime)/1E3;0=b&&a>.1*windowWidth?this.hide():windowWidth-this.dragEnd.x+this.dragStart.x>2*windowWidth/3?this.animate(-windowWidth):this.hide();this.dragMove=this.firstTime=this.noSwipeRight=!1}}.bind(this))}, initScrollEventOnY:function(){this.dragStart={};this.dragEnd={};this.stage.bind(_event._down,function(a){a.stopPropagation();this.formTouching=!0;this.firstTime=this.dragMove=this.noSwipeRight=!1;this.dragEnd=this.dragStart=this.getPosition(a);this.endTime=this.startTime=(new Date).getTime()}.bind(this));this.stage.bind(_event._move,function(a){a.stopPropagation();this.dragMove=!0;this.firstTime||this.firstTimeMoveOnY(a);if(this.formTouching){this.dragEnd=this.getPosition(a);var b=this.dragEnd.y- this.dragStart.y;this.noSwipeRight||(a.preventDefault(),0=b&&this.stage.css({transform:"translate3d("+-windowWidth+"px,0,0)"}),b>=windowWidth&&this.stage.css({transform:"translate3d(0px,0,0)"})))}}.bind(this));this.stage.bind(_event._up,function(a){a.stopPropagation();if(this.dragEnd&&void 0!=this.dragEnd.y&&(a=this.dragEnd.y-this.dragStart.y, this.endTime=(new Date).getTime(),this.formTouching&&!this.noSwipeRight&&this.dragMove&&!(0>a))){this.formTouching=!1;var b=(this.endTime-this.startTime)/1E3;0=b&&a>.1*windowWidth?this.hide():windowWidth-this.dragEnd.x+this.dragStart.x>2*windowWidth/3?this.animate(-windowWidth):this.hide();this.dragMove=this.firstTime=this.noSwipeRight=!1}}.bind(this))},show:function(){if(!this.visible&&(this.stage.css({visibility:"visible"}),this.visible=!0,this.animate(-this.width),this.mask|| (this.mask=$("
    "),this.mask.click(this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight(),this.onShow))this.onShow()},hide:function(){if(this.visible&&(this.beforeHide&&this.beforeHide(),this.visible=!1,this.dragEnd={},this.animate(0),this.mask&&this.mask.hide(),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight(),this.onHide))this.onHide()},animate:function(a){this.animating=!0;var b=transformCSS({tran:{x:a, y:0}});animateOnce(this.stage,b,.2,function(){this.animating=!1;0==a&&this.stage.css({visibility:"hidden"})}.bind(this));animateOnce(this.parent,b,.2,function(){this.animating=!1}.bind(this))},onResize:function(){this.width=windowWidth;this.height=windowHeight;this.stage.css({left:this.width+"px",width:this.width+"px",height:this.height+"px"});var a=this.visible?transformCSS({tran:{x:-this.width,y:0}}):transformCSS({tran:{x:0,y:0}});this.stage.css(a);this.parent.css(a)},showOrHide:function(){!0=== this.visible?this.hide():this.show(-this.width)}}).extend(FormFrame),PhoneBottomFormFrame=Class({create:function(a){this._super(a);this.closeUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG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4R8AAABdSURBVHjaYvz//z8DLQETA43BqAWjFtDHgv9QTKocyT74T4BPtgWMWAz9j0OebB8w4nA5IzUjmZEAf/DGAb5g+U+tZIpuONGW0DwOWMgwmIFWqWi0sBu1ADsACDAA1jMSLYufr4AAAAAASUVORK5CYII="; this.stage=$("
    ");this.title=$("

    "+FormInfo.getFormTitle(this.formType)+"

    ");this.close=$("
    "+getLanguage("lblCancel","Cancel")+"
    ");this.rightToLeft&&this.stage.addClass("rightToLeft");this.close.bind(_event._click,this.hide.bind(this));this.stage.css({visibility:"hidden"});this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.stage.insertBefore(this.parent); this.stage.css({position:"fixed",left:0,bottom:-this.height+"px",width:this.width+"px",height:this.height+"px","background-color":Color(colorDiv(this.mainColor,20)).rgba(this.formOpacity),color:this.fontColor,overflow:"hidden"})},show:function(){this.visible||(this.visible=!0,this.stage.css({visibility:"visible"}),this.animate(this.height),this.mask||(this.mask=$("
    "),this.mask.bind(_event._click,this.hide.bind(this)),this.mask.insertBefore(this.parent)),this.mask&& this.mask.show(),BookInfo.getBook().addSearchHighlight())},hide:function(){this.visible&&(this.visible=!1,this.animate(0),this.mask&&this.mask.hide(),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight(),this.onHide())},animate:function(a){this.animating=!0;var b=transformCSS({tran:{x:0,y:-a}});animateOnce(this.stage,b,.2,function(){this.animating=!1;0==a&&this.stage.css({visibility:"hidden"})}.bind(this));window.setTimeout(function(){if(this.onShow)this.onShow()}.bind(this),200)},onResize:function(){this.width= windowWidth;this.height=272;this.stage.css({bottom:-this.height+"px",width:this.width+"px",height:this.height+"px"});var a=this.visible?transformCSS({tran:{x:0,y:-this.height}}):transformCSS({tran:{x:0,y:0}});this.stage.css(a);this.parent.css(a)},showOrHide:function(){!0===this.visible?this.hide():this.show(this.width)},onHide:function(){},changeLanguage:function(){this._super();this.close.html(getLanguage("lblCancel","Cancel"));this.title.html(FormInfo.getFormTitle(this.formType))}}).extend(FormFrame), PhoneReaderFormFrame=Class({onCreate:function(){this.parent.append(this.stage);this.stage.css({position:"fixed",left:0,bottom:-this.height+"px",width:this.width+"px",height:this.height+"px","background-color":Color(colorDiv(this.mainColor,20)).rgba(this.formOpacity),color:this.fontColor,overflow:"hidden"})},show:function(){this.visible||(this.visible=!0,this.stage.css({visibility:"visible"}),this.animate(this.height),this.mask||(this.mask=$("
    "),this.mask.bind(_event._click, this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight())}}).extend(PhoneBottomFormFrame),SlideForm=Class({create:function(a){this._super(a);this.closeUrl=form_icons.close?"data:image/png;base64,"+form_icons.close:uiBaseURL+"close.png";this.stage=$("
    ");this.title=$("

    ");this.title.append($(""+FormInfo.getFormTitle(this.formType)+"")); FormInfo.getFormFavicon(this.formType)&&(this.favicon=$("favicon"));this.close=$("close");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage);this.title&&this.title.css({cursor:"default"});this.hide()},initEvent:function(){this.stage.drag(); this.stage.bind(_event._down,function(a){a.stopPropagation()});this.close.bind("click",this.hide.bind(this));this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this));this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},show:function(){this.visible=!0;this.stage.animate({left:10},400,function(){}.bind(this));this.onShow()},hide:function(){this.visible=!1;this.stage.animate({left:2*-this.width},400,function(){this.onHide()}.bind(this))}, onHide:function(){}}).extend(FormFrame),SlideLeftForm=Class({create:function(a,b){this._super(a);a=b?FormInfo.getFormCssClassName(this.formType,!1):FormInfo.getFormCssClassName(this.formType,!0)+" phone_bottom phone";this.stage=$("
    ");this.title=$("

    "+FormInfo.getFormTitle(this.formType)+"

    ");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.stage.insertBefore(this.parent); this.stage.css({position:"fixed",left:0,bottom:-this.height+"px",width:this.width+"px",height:this.height+"px","background-color":colorDiv(this.mainColor,20),color:this.fontColor,overflow:"hidden"})},show:function(){this.visible||(this.visible=!0,this.stage.css({visibility:"visible"}),this.animate(this.width),this.mask||(this.mask=$("
    "),this.mask.bind(_event._click,this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight())}, hide:function(){this.visible&&(this.visible=!1,this.animate(0),this.mask&&this.mask.hide(),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight())},animate:function(a){this.animating=!0;var b=transformCSS({tran:{x:a,y:0}});animateOnce(this.stage,b,.2,function(){this.animating=!1;0==a&&this.stage.css({visibility:"hidden"})}.bind(this))},onResize:function(){this.width=272;this.height=windowHeight;this.stage.css({bottom:-this.height+"px",width:this.width+"px",height:this.height+"px"});var a=this.visible? transformCSS({tran:{x:-this.width,y:0}}):transformCSS({tran:{x:0,y:0}});this.stage.css(a);this.parent.css(a)},showOrHide:function(){!0===this.visible?this.hide():this.show(this.width)}}).extend(FormFrame),SlideRightForm=Class({create:function(a){this._super(a);this.closeUrl=form_icons.close?"data:image/png;base64,"+form_icons.close:uiBaseURL+"close.png";this.stage=$("
    ");this.title=$("

    ");this.title.append($(""+ FormInfo.getFormTitle(this.formType)+""));FormInfo.getFormFavicon(this.formType)&&(this.favicon=$("favicon"));this.close=$("close");this.rightToLeft&&this.stage.addClass("rightToLeft");this.stage.css({visibility:"hidden"});this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage); this.title&&this.title.css({cursor:"default"})},onResize:function(){var a=windowHeight;this.width=250;this.height=a-24;this.stage.css({right:2*-this.width+"px"})},initEvent:function(){this.stage.bind(_event._down,function(a){a.stopPropagation()});this.close.bind("click",this.hide.bind(this));this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this));this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},initHtml:virtual_function, showOrHide:function(){this.visible?this.hide():this.show()},show:function(){this.visible=!0;this.stage.css({visibility:"visible"});this.stage.animate({right:0},400,function(){}.bind(this));this.onShow()},hide:function(){this.visible=!1;this.stage.animate({right:2*-this.width},400,function(){this.onHide();this.stage.css({visibility:"hidden"})}.bind(this))}}).extend(FormFrame),PcBottomForm=Class({create:function(a){this._super(a);this.stage=$("
    ");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage)},initEvent:function(){this.stage.drag();this.stage.bind(_event._down,function(a){a.stopPropagation()});this.stage.bind("click",this.hide.bind(this))},initHtml:virtual_function,onHide:function(){}}).extend(FormFrame); function loadXMLString(a){var b=null;if(!window.DOMParser&&window.ActiveXObject)for(var c=["MSXML.2.DOMDocument.6.0","MSXML.2.DOMDocument.3.0","Microsoft.XMLDOM"],d=0;d
    "); this.page=$("
    ");this.image=$("");this.noThumbBg=$("
    ");this.leftBtn=$("");this.rightBtn=$("");this.thumbnail.append(this.noThumbBg).append(this.image);this.thumbnail.append(this.page)},resetBtnSrc:function(){this.leftBtn.attr("src", this.leftButtonUrl);this.rightBtn.attr("src",this.rightButtonUrl)},initEvent:function(){this.leftBtn.onTap(function(){this.fillContent(this.currentPageIndex-1)}.bind(this));this.rightBtn.onTap(function(){this.fillContent(this.currentPageIndex+1)}.bind(this))},fillContent:function(a){if(!(1>a||a>bookConfig.totalPageCount)){1==a?this.leftBtn.css({opacity:"0.4",cursor:"auto"}):this.leftBtn.css({opacity:"1",cursor:"pointer"});a==bookConfig.totalPageCount?this.rightBtn.css({opacity:"0.4",cursor:"auto"}): this.rightBtn.css({opacity:"1",cursor:"pointer"});this.currentPageIndex=a;var b=function(c,d){c.match(/^none/)?(this.noThumbBg.css({display:"block"}),this.image.css({display:"none"})):(this.image.attr("src",c),this.noThumbBg.css({display:"none"}),this.image.css({display:"inline-block",width:this.imageWidth+"px",height:"130px"}))}.bind(this);pageResourceLoad(a,"thumb",b);this.fillPage(a);this.callback&&this.callback(a)}},fillPage:function(a){this.page.html(a+"/"+bookConfig.totalPageCount)},getPageIndex:function(){return this.currentPageIndex}}), PictureListForm=Class({initHtml:function(){this.stage=$("
    ");this.stage.append(this.thumbnail);1
    ");this.button=a;this.initPrintEvent()},getImageSizeForMM:function(a,b){return a/210>=b/297?{width:210,height:Math.floor(210* b/a)}:{width:Math.floor(297*a/b),height:297}},getImageSizeForInches:function(a,b){return a/7.18>=b/10.61?{width:7.18,height:Number.fixed(7.18*b/a,2)}:{width:Number.fixed(10.61*a/b,2),height:10.61}},getImageSizeForIE:function(a,b){return a/8>=b/11.3?{width:8,height:Number.fixed(8*b/a,2)}:{width:Number.fixed(11.3*a/b,2),height:11.3}},printPages:function(a){var b=this;if(a&&a.length){this.initLoadPrint();var c=0;this.printArea.empty();this.printArray=[];var d=function(e,f,g,h){var m=$("
    "), k=$(g);e&&-1"),$watermark.css({"z-index":"201",position:"absolute",maxWidth:"80px",maxHeight:"80px",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),m.append($watermark),this.getImageSizeForInches($watermark[0].naturalWidth,$watermark[0].naturalHeight));isIE()?($(k).parent().css({"text-align":"center", width:"100%",height:"100%"}),k.css({"text-align":"center",margin:"0 auto",display:"inline-block","max-width":"100%","max-height":"100%"})):($(k).parent().css({"text-align":"center",width:"100%",height:"100%"}),k.css({"text-align":"center",margin:"0 auto",display:"inline-block","max-width":"100%","max-height":"100%"}),"object"==typeof e&&(e[0]&&-1 8/11.3?k.css({width:"98%"}):k.css({height:"98%"}));this.printArray[h]=m;c++;if(c==a.length){for(e=1;e").on("load",function(){for(var k=this,l={},n=0;n=parseInt(a))return;b=this.getPages(a);this.printPages(b)}BookEvent.trigger("print",[BookInfo.getCurrentPageIndex(),"printAll"==this.printType?"all":b.join(","),this.printType])}.bind(this))},initPrintStack:function(a){window.printLoadStack&&(window.printLoadStack.destroy(), window.printLoadStack=null);window.printLoadStack||(window.printLoadStack=new PdfLoadArray(a.length))},initLoadPrint:function(){this.printLoad||(this.printLoad=$("
    "),this.printLoad.css({display:"none","z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%",background:"rgba(11,11,11,0.7)"}),this.printLoad.bind("click",function(a){a.stopPropagation();window.printLoadStack&&window.printLoadStack.destroy();this.hidePrintLoading()}.bind(this)), this.loadingIcon=$(""),this.printLoad.append(this.loadingIcon),tmpContainer.append(this.printLoad));this.showPrintLoading()},showPrintLoading:function(){this.printLoad&&this.printLoad.fadeIn(200)},hidePrintLoading:function(){this.printLoad&&this.printLoad.fadeOut(200)}}),PrintElements=Class({create:function(a){this._super(a);this.printOnUrl= form_icons.print_on?"data:image/png;base64,"+form_icons.print_on:uiBaseURL+"print_on.png";this.printOffUrl=form_icons.print_off?"data:image/png;base64,"+form_icons.print_off:uiBaseURL+"print_off.png";this.initElements();this.initEvent(a);this.pickElements(a)},initElements:function(){this.rightToLeft?(this.printAll=$("
    "+getLanguage("frmPrintall","Print All Pages")+"
    "),this.printCurrent=$("
    "+ getLanguage("frmPrintcurrent","Print Current Pages")+"
    "),this.printRange=$("
    "+getLanguage("frmPrintRange","Print Range")+"
    ")):(this.printAll=$("
    "+ getLanguage("frmPrintall","Print All Pages")+"
    "),this.printCurrent=$("
    "+getLanguage("frmPrintcurrent","Print Current Pages")+"
    "),this.printRange=$("
    "+getLanguage("frmPrintRange","Print Range")+"
    "));this.printButton=$("
    "+getLanguage("frmPrintbtn","Print")+"
    ");this.printButton.printType="printCurrent";this.analysis=new AnalysisPrint(this.printButton);this.pictureListForm=new PictureListForm},pickElements:function(a){a.printOnUrl=this.printOnUrl;a.printOffUrl=this.printOffUrl;a.printAll=this.printAll;a.printCurrent=this.printCurrent;a.printRange=this.printRange;a.printButton=this.printButton;a.pictureListForm=this.pictureListForm}, initEvent:function(a){this.printAll.click(function(b){this.buttonEvent(a,b.delegateTarget)}.bind(this));this.printCurrent.click(function(b){this.buttonEvent(a,b.delegateTarget)}.bind(this));this.printRange.click(function(b){this.buttonEvent(a,b.delegateTarget)}.bind(this));this.printRange.find("input").on("input propertychange change",function(){this.refreshPrintButton()}.bind(this));this.printRange.find("input").bind("mousedown touchstart pointerdown mouseover mousemove touchmove touchstend",function(b){b.stopPropagation()})}, buttonEvent:function(a,b){var c=a.stage.find(".on");c.find("img").attr("src",this.printOffUrl);c.find("img")[0].colorChanged=!1;c.removeClass("on");$(b).find("img").attr("src",this.printOnUrl);$(b).find("img")[0].colorChanged=!1;$(b).addClass("on");b=$(b).attr("print");a.printButton.printType=b;this.refreshPrintButton();a.changeItemColor()},refreshPrintButton:function(){"printRange"!=this.printButton.printType||$("#print_range_num").val()?this.lightPrintButton():this.darkPrintButton()},lightPrintButton:function(){$(this.printButton).addClass("usable"); $(this.printButton).removeClass("disable");$(this.printButton).addClass("button_hover")},darkPrintButton:function(){"printRange"==this.printButton.printType&&($(this.printButton).removeClass("usable"),$(this.printButton).removeClass("button_hover"),$(this.printButton).addClass("disable"))},changeLanguage:function(){this.printAll.find(".title").html(getLanguage("frmPrintall","Print All Pages"));this.printCurrent.find(".title").html(getLanguage("frmPrintcurrent","Print Current Pages"));this.printRange.find(".title").html(getLanguage("frmPrintRange", "Print Range"));this.printRange.find("#print_range_num").attr("placeholder",getLanguage("frmPrintexample","Exzample:1,3-7,12"));this.printButton.html(getLanguage("frmPrintbtn","Print"))}}).extend(FormElements),PhonePrintElements=Class({create:function(a){this._super(a);this.printOnUrl=phoneBaseURL+"print_on_phone.png";this.printOffUrl=phoneBaseURL+"print_off_phone.png";this.fontColor=bookConfig.formBackgroundColor?bookConfig.formBackgroundColor:bookConfig.toolbarColor;this.initElements();this.initEvent(a); this.pickElements(a)},initElements:function(){this.rightToLeft?(this.printAll=$("
    "+getLanguage("frmPrintall","Print All Pages")+"
    "),this.printCurrent=$("
    "+getLanguage("frmPrintcurrent","Print Current Pages")+"
    "),this.printRange=$("
    "+getLanguage("frmPrintRange","Print Range")+"
    ")):(this.printAll=$("
    "+getLanguage("frmPrintall","Print All Pages")+"
    "),this.printCurrent=$("
    "+getLanguage("frmPrintcurrent","Print Current Pages")+"
    "),this.printRange=$("
    "+getLanguage("frmPrintRange","Print Range")+"
    "));this.printButton=$("
    "+getLanguage("frmPrintbtn","Print")+ "
    ");this.printButton.printType="printCurrent";this.analysis=new AnalysisPrint(this.printButton);this.pictureListForm=new PictureListForm},getOffIcon:function(){return''}, getOnIcon:function(){return''}, buttonEvent:function(a,b){var c=a.stage.find(".on");c.find(".print_icon").html(this.getOffIcon());c.removeClass("on");$(b).find(".print_icon").html(this.getOnIcon());$(b).addClass("on");b=$(b).attr("print");a.printButton.printType=b;this.refreshPrintButton()}}).extend(PrintElements),PcPrintFrame=Class({create:function(a){this.elements=new PrintElements(this);this._super(a)},onCreate:function(){this.initColorCss();this._super()},initColorCss:function(){this.stage.css({"background-color":this.mainColorObj.rgba(this.formOpacity), color:this.fontColor})},initHtml:function(){this._super()},changeIconColor:function(){this._super();this.pictureListForm.leftBtn.changeButtonColor(this.fontColor);this.pictureListForm.rightBtn.changeButtonColor(this.fontColor);this.changeItemColor()},resetColorChanged:function(){this._super();this.printAll.find("img")[0].colorChanged=!1;this.printCurrent.find("img")[0].colorChanged=!1;this.printRange.find("img")[0].colorChanged=!1;this.pictureListForm&&(this.pictureListForm.leftBtn[0].colorChanged= !1,this.pictureListForm.rightBtn[0].colorChanged=!1)},resetIconSrc:function(){this._super();this.stage.find(".item").find("img").attr("src",this.elements.printOffUrl);this.stage.find(".on").find("img").attr("src",this.elements.printOnUrl);this.pictureListForm&&this.pictureListForm.resetBtnSrc()},changeItemColor:function(){this.printCurrent.changeButtonColor(this.fontColor);this.printRange.changeButtonColor(this.fontColor);this.printAll.changeButtonColor(this.fontColor)},onShow:function(){this.changeIconColor()}}).extend(FadeOutFadeForm), PhonePrintForm=Class({create:function(a){this.elements=new PhonePrintElements(this);this._super(a)},onCreate:function(){this.printAll.css({"background-color":this.fontColor,color:this.mainColor});this.printCurrent.css({"background-color":this.fontColor,color:this.mainColor});this.printRange.css({"background-color":this.fontColor,color:this.mainColor});this.printButton.css({"background-color":this.fontColor,color:this.mainColor});this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()}, initHtml:function(){this.title.append(this.close);this.stage.append(this.title);this.stage.append(this.printAll);this.stage.append(this.printCurrent);this.stage.append(this.printRange);this.stage.append(this.printButton)},changeItemColor:function(){},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)},initEvent:function(){}}).extend(PhoneFormFrame),DownloadElements=Class({create:function(a){this._super(a);this.downloadOnUrl=form_icons.print_on?"data:image/png;base64,"+ form_icons.print_on:uiBaseURL+"print_on.png";this.downloadOffUrl=form_icons.print_off?"data:image/png;base64,"+form_icons.print_off:uiBaseURL+"print_off.png";this.initConfig();this.initElements();this.initEvent(a);this.pickElements(a);bookConfig.isEncryptionBook&&this.setRestrictMode()},initConfig:function(){this.downloadconfig=window.downloadconfig},initElements:function(){this.rightToLeft?(this.downloadAll=$("
    "+getLanguage("DownloadFullPublication", "Full Publication")+"
    "),this.downloadCurrent=$("
    "+getLanguage("DownloadCurrentPage","Current Page")+" "+this.pageIndex+"
    "),this.downloadAttachments=$("
    "+getLanguage("DownloadAttachedFiles","Attached Files")+ "
    ")):(this.downloadAll=$("
    "+getLanguage("DownloadFullPublication","Full Publication")+"
    "),this.downloadCurrent=$("
    "+getLanguage("DownloadCurrentPage","Current Page")+""+this.pageIndex+"
    "), this.downloadAttachments=$("
    "+getLanguage("DownloadAttachedFiles","Attached Files")+"
    "));this.downloadButton=$("
    "+getLanguage("btnDownload","Download")+"
    ");this.restrictedTips=$("
    *"+getLanguage("downloadRestrictionTips","English"==UserGroups?"Download access for this book is restricted by the publisher.": "\u89e3\u9664\u9605\u8bfb\u9650\u5236\u540e\u624d\u80fd\u4e0b\u8f7d\u3002")+"
    ");this.restrictedTips.css({color:"#ff6d6d","line-height":"14px","margin-top":"8px","text-align":"left"});this.noFilesAvailablePrompt=$('
    '+getLanguage("noFilesAvailablePrompt","No Files Available!")+"
    ");this.noFilesAvailablePrompt.css({height:"100%",width:"100%",display:"flex","align-items":"center","justify-content":"center","font-size":"20px"});this.downloadingTips= $("
    "+getLanguage("downloadingTips","English"===UserGroups?"Downloading...":"\u6b63\u5728\u4e0b\u8f7d\uff0c\u8bf7\u7a0d\u7b49...")+"
    ");this.downloadingTips.css({color:Color(bookConfig.formFontColor?bookConfig.formFontColor:bookConfig.iconColor).toString(),padding:"0 20px"});this.downloadButton.downloadType=downloadconfig.hideDownloadSinglePage?downloadconfig.pdf?"downloadAll":"downloadAttachments":"downloadCurrent";this[this.downloadButton.downloadType].find("img").attr("src", this.downloadOnUrl);this[this.downloadButton.downloadType].addClass("on");this.selectAttachments=$("");this.selectAttachments.css({display:"downloadAttachments"===this.downloadButton.downloadType?"inline-block":"none"});var a=this.downloadconfig.attachments;if(a&&0"+c.name+""))}var d=this;this.currentAttachmentName=this.selectAttachments.find("option")[0].innerText; this.selectAttachments.on("change",function(){d.currentAttachmentName=this.options[this.selectedIndex].innerText})}this.pictureListForm=new PictureListForm(this.gotoPage.bind(this));this.pageIndex=this.pictureListForm.getPageIndex()},setRestrictMode:function(){var a=this;this.downloadButton.removeClass("button_hover");this.downloadButton.addClass("disable");BookEvent.bindEvent("fillBookRestrict",function(b,c){c&&a.removeRestrictMode()})},removeRestrictMode:function(){this.downloadButton.removeClass("disable"); this.downloadButton.addClass("button_hover");this.restrictedTips&&this.restrictedTips.remove()},gotoPage:function(a){this.pageIndex=a;this.downloadCurrent.find(".page").html(a)},pickElements:function(a){a&&(a.downloadAll=this.downloadAll,a.downloadCurrent=this.downloadCurrent,a.downloadAttachments=this.downloadAttachments,a.selectAttachments=this.selectAttachments,a.downloadButton=this.downloadButton,a.pictureListForm=this.pictureListForm,a.noFilesAvailablePrompt=this.noFilesAvailablePrompt,a.restricted= this.restricted,a.restrictedTips=this.restrictedTips)},get restricted(){return bookConfig.isEncryptionBook&&!BookRestrict.open},initEvent:function(a){var b=this;this.downloadAll.click(function(c){this.buttonEvent(a,c.delegateTarget)}.bind(this));this.downloadCurrent.click(function(c){this.buttonEvent(a,c.delegateTarget)}.bind(this));this.downloadAttachments.click(function(c){this.buttonEvent(a,c.delegateTarget)}.bind(this));this.verify=!1;this.downloadButton.click(function(){var c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(d){if(b.restricted)return d.return(); c=function(){var e,f,g,h,m,k,l,n;return $jscomp.asyncExecutePromiseGeneratorProgram(function(p){if(1==p.nextAddress)return b.verify=!0,e="","downloadAll"==b.downloadButton.downloadType&&(e=b.downloadconfig.pdf.url),"downloadCurrent"!=b.downloadButton.downloadType?p.jumpTo(2):p.yield(getPageDir(b.pageIndex,"normal"),3);2!=p.nextAddress&&(e=p.yieldResult);"downloadAttachments"==b.downloadButton.downloadType&&(e=b.selectAttachments[0].value);if("object"==typeof e)if("downloadCurrent"==b.downloadButton.downloadType)b.loadImage(e, function(q,t){q=$("\n ');q[0].click();q.remove()});else for(f=0;f');q[0].click();q.remove()}.bind(b)),b.downloadPdfLoadingTask.start();else if(-1');q[0].click();q.remove()}.bind(b));else if("downloadCurrent"==b.downloadButton.downloadType&&isSupportWebp&&!bookConfig.isEncryptionBook&&(e=e.removeStartFrom("?"), -1'),k[0].click();else{l="";"downloadCurrent"==b.downloadButton.downloadType&&(l=b.pageIndex+".jpg");"downloadAttachments"== b.downloadButton.downloadType&&(l=b.currentAttachmentName||"");if(location.protocol.match("file:"))return/^\/\//i.test(e)&&(e="https://"+e),window.open(e),p.return();if("downloadAll"==b.downloadButton.downloadType||isPad())return bookConfig.isEncryptionBook&&(n=BookRestrict.getRestrictToken(),e=appendParamToUrl(e,"code="+n)),window.open(e,"_blank"),p.return();if(isAndroid()&&isWeChat())return window.open(e,"_blank"),p.return();if(!isPhone()&&!isPad()||_agent_.browser.safari)return k=$(''),k[0].click(),p.return();new DownloadFile({url:e,downloadName:l,downloadButton:b.downloadButton,downloadingTips:b.downloadingTips})}p.jumpToEnd()})};b.downloadconfig.code&&!b.verify?(b.downloadPasswordPanel||(b.downloadPasswordPanel=new DownloadPasswordPanel({parent:$("body"),code:b.downloadconfig.code,callback:c})),b.downloadPasswordPanel.showOrHide()):c();d.jumpToEnd()})})},loadImage:function(a,b){var c=document.createElement("canvas"),d=c.getContext("2d"); c.style.position="relative";c.width=bookConfig.largePageWidth;c.height=bookConfig.largePageHeight;c.style.width=bookConfig.largePageWidth+"px";c.style.height=bookConfig.largePageHeight+"px";Promise.all(a.map(function(e){return new Promise(function(f,g){var h=new Image;h.src=e.replace(/^http:/,"https:");h.onload=function(){return f(h)};h.onerror=function(){return g(Error("Failed to load image: "+e))}})})).then(function(e){e.forEach(function(f){var g=f.naturalWidth,h=f.naturalHeight;if(bookConfig.largePageWidth/ bookConfig.largePageHeight>g/h){var m=bookConfig.largePageHeight;var k=g/h*m}else k=bookConfig.largePageWidth,m=h/g*k;d.drawImage(f,(bookConfig.largePageWidth-k)/2,(bookConfig.largePageHeight-m)/2,k,m)});b&&b(a,c)}).catch(function(e){console.error("\u56fe\u7247\u52a0\u8f7d\u5931\u8d25:",e);b&&b(a,c)})},loadImages:function(a){var b=0,c=$("");c.css({width:bookConfig.largePageWidth+"px",height:bookConfig.largePageHeight+"px"});c.attr("width",bookConfig.largePageWidth+ "px");c.attr("height",bookConfig.largePageHeight+"px");for(var d=0;d");e.attr("src",a);e[0].onload=function(f){f=$(this);bookConfig.largePageWidth/bookConfig.largePageHeight>f[0].naturalWidth/f[0].naturalHeight?f.css({width:"auto",height:"100%"}):f.css({width:"100%",height:"auto"});c.drawImage(f);b++;b==imageURL.length&&callback&&callback(imageURL,imageURL, c,index)};e[0].onerror=function(f){b++;b==imageURL.length&&callback&&callback(imageURL,imageURL,c,index)}}},buttonEvent:function(a,b){var c=a.stage.find(".on");c.find("img").attr("src",this.downloadOffUrl);c.find("img")[0].colorChanged=!1;c.removeClass("on");$(b).find("img").attr("src",this.downloadOnUrl);$(b).find("img")[0].colorChanged=!1;$(b).addClass("on");b=$(b).attr("download");a.downloadButton.downloadType=b;a.changeItemColor();"downloadAttachments"==b?a.selectAttachments.show():a.selectAttachments.hide()}, changeLanguage:function(){this.downloadAll.find(".title").html(getLanguage("DownloadFullPublication","Full Publication"));this.downloadCurrent.find(".title").html(getLanguage("DownloadCurrentPage","Current Page"));this.downloadAttachments.find(".title").html(getLanguage("DownloadAttachedFiles","Attached Files"));this.downloadButton.html(getLanguage("btnDownload","Download"))}}).extend(FormElements),PcDownloadFrame=Class({get hasFiles(){return window.downloadconfig?!downloadconfig.hideDownloadSinglePage|| downloadconfig.pdf||downloadconfig.attachments&&0"),this.loadingBox.css({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}),this.content1.append(this.restrictedTips),BookRestrict.isLoaded||(this.content1.hide(),this.content2.hide(),this.content.append(this.loadingBox),BookEvent.bindEvent("onLoadBookRestrict",function(b,c){c&&a.removeRestrictMode()})));this._super()},removeRestrictMode:function(){this.content1.show();this.content2.show();this.loadingBox&&this.loadingBox.remove()},initEvent:function(){this._super()}, onShow:function(){this.changeIconColor()},gotoPage:function(a){}}).extend(FadeOutFadeForm),PhoneDownloadForm=Class({get hasFiles(){return window.downloadconfig?!downloadconfig.hideDownloadSinglePage||downloadconfig.pdf||downloadconfig.attachments&&0");this.content=$("
    ");this.content1=$("
    ");downloadconfig.pdf&&this.content1.append(this.downloadAll);downloadconfig.hideDownloadSinglePage||this.content1.append(this.downloadCurrent); this.selectContent=$("
    ");this.selectContent.append(this.selectAttachments);downloadconfig.attachments&&0");this.content2.append(this.pictureListForm.getDom());this.content.append(this.content2); this.content.append(this.content1);this.downloadContent.append(this.content);this.stage.append(this.downloadContent);this.restricted&&(this.loadingBox=$(""),this.loadingBox.css({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}),this.content.css({height:"100%"}),this.downloadContent.css({height:"100%"}),this.content1.append(this.restrictedTips),this.restrictedTips.css({padding:"0 10px 0 20px "}),BookRestrict.isLoaded||(this.content1.hide(), this.content2.hide(),this.content.append(this.loadingBox),BookEvent.bindEvent("onLoadBookRestrict",function(b,c){c&&a.removeRestrictMode()})))},removeRestrictMode:function(){this.content1.show();this.content2.show();this.loadingBox&&this.loadingBox.remove()},changeIconColor:function(){this._super();this.changeItemColor()},changeItemColor:function(){this.downloadCurrent.changeButtonColor(this.mainColor);this.downloadAttachments.changeButtonColor(this.mainColor);this.downloadAll.changeButtonColor(this.mainColor); this.pictureListForm.leftBtn.changeButtonColor(this.fontColor);this.pictureListForm.rightBtn.changeButtonColor(this.fontColor)},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor);this.changeItemColor()},gotoPage:function(a){this.pictureListForm.fillContent(a)},initEvent:function(){}}).extend(PhoneFormFrame);global.textForPages||(global.textForPages=[]);global.positionForPages||(global.positionForPages=[]); var highlightSearchFun=function(a,b){if(0!=positionForPages.length&&a){var c=!1;window.frmSearch&&frmSearch.visible&&0!=frmSearch.getList().length||(c=!0);var d=search_Text;""==d&&(c=!0);if(1!=c||isPhone()||isPad()){for(c=0;ch;h++)g[h]=b[f+h];e.addHighlight(g);f+=4}}a.css({display:"block"})}}else clearHighlightFun(a)}},clearHighlightFun=function(a){a.css({"background-image":""});a.css({display:"none"});a.empty()},search_Text="",SearchElements=Class({create:function(a){this._super(a);this.callBack=a;global.slideHightLightList={};this.initElements();this.initEvent(a); this.pickElements(a)},initElements:function(){this.searchButtonUrl=bookConfig.SearchButtonIcon?bookConfig.SearchButtonIcon:form_icons.search_form?"data:image/png;base64,"+form_icons.search_form:uiBaseURL+"search_form.png";this.searchList=[];this.searchText="";this.input=$("");bookConfig.RightToLeft&&this.input.attr("dir","rtl");this.searchButton=$("searchButton");this.searchResult=$("

    ");this.restrictTips=$("
    "+getLanguage("encrpytionSearchTips","The book has restricted access.
    Please obtain permission before searching")+"
    ");this.restrictTips.css({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",textAlign:"center",fontSize:"16px","line-height":1.5});this.initSwiper()},initSwiper:function(){this.searchSwiper=$("
    ");this.searchSwiperList= $("
    ");this.searchSwiper.append(this.searchSwiperList);this.initPageHtml();isPhone()||isPad()?this.searchSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(this.searchSwiper.css({overflow:"hidden"}),this.progress=$("
    "),this.progressBar=$("
    "),this.searchSwiper.append(this.progress),this.progress.append(this.progressBar),this.searchSwiper.scroll({},Direction.top))},initPageHtml:function(){this.searchPageSwiper= $("");this.pageResult=$("

    ");this.pageItem=$("
    ");this.thumb=$("");this.noThumbBg=$("
    ");if(isPhone()||isPad())this.thumb.css({width:"80px"}),this.noThumbBg.css({width:"80px",height:"104px"}); this.thumb.onTap(function(){this.thumb.attr("id")&&((isPhone()||isPad()||global.frmSearch)&&global.frmSearch.hide(),gotoPageFun(this.thumb.attr("id"),!1,"search"))}.bind(this));this.noThumbBg.onTap(function(){this.noThumbBg.attr("index")&&((isPhone()||isPad()||global.frmSearch)&&global.frmSearch.hide(),gotoPageFun(this.noThumbBg.attr("index"),!1,"search"))}.bind(this));this.searchPageSwiper.append(this.pageResult).append(this.pageItem.append(this.noThumbBg).append(this.thumb))},refreshItems:function(a){for(var b= 0;b"+a+" :"+getLanguage("lblPage","Page")):this.pageResult.html(getLanguage("lblPage","Page")+": "+a+""),this.thumb.attr("id", b),this.noThumbBg.attr("index",b),pageResourceLoad(b,"thumb",function(c){c.match(/^none/)?(this.noThumbBg.css({display:"block"}),this.thumb.attr("src","").css({display:"none"})):(this.thumb.attr("src",c).css({display:"inline-block"}),this.noThumbBg.css({display:"none"}))}.bind(this))):(this.afterSearchText(),this.searchPageSwiper.css({display:"none"}))},freshSearchList:function(a){var b={};global.slideHightLightList={};window._matchEditorText&&window._matchEditorText(this.searchText).forEach(function(d, e){global.slideHightLightList[d.search_page]||(global.slideHightLightList[d.search_page]=d)});a.forEach(function(d,e){b[d.search_page]=d});for(var c in global.slideHightLightList)b[global.slideHightLightList[c].search_page]||(b[global.slideHightLightList[c].search_page]=global.slideHightLightList[c]);return Object.entries(b).map(function(d){d=$jscomp.makeIterator(d);d.next();if(d=d.next().value)return d})},doSearch:function(a,b){b?(this.searchSwiper.hideLoading(),(isPhone()||isPad())&&"neat"===_get(htmlConfig, "phoneTemplate.name")&&"Chinese"==UserGroups||frmSearch.appendRestrictTips()):(a=this.freshSearchList(a),!a.length&&!isNaN(this.searchText)&&this.searchText<=bmtConfig.totalPageCount?this.searchResult.css({display:"none"}):this.searchResult.css({display:"block"}),this.searchSwiper.hideLoading(),this.searchList=a,this.searchSwiperList.empty(),rightToLeft?this.searchResult.html(""+this.searchList.length+" "+getLanguage("lblPages","Found Pages")): this.searchResult.html(getLanguage("lblPages","Found Pages")+" "+this.searchList.length+""),this.refreshSwiper(this.searchSwiperList,this.searchList),this.refresh(),BookInfo.getBook().addSearchHighlight());BookEvent.trigger("searchEnd",[a,b])},getSearchText:function(){return this.searchText},getList:function(){return this.searchList},clear:function(){$(".restrictTips")&&$(".restrictTips").remove();search_Text=this.searchText="";this.input.val(""); this.searchList=[];BookInfo.getBook().clearSearchHighlight();this.searchSwiperList.empty();this.searchSwiper.hideLoading();this.searchResult.html(getLanguage("frmSearchPrompt","Enter key to search."));this.refresh()},pickElements:function(a){a.searchButtonUrl=this.searchButtonUrl;a.searchList=this.searchList;a.searchText=this.searchText;a.input=this.input;a.searchButton=this.searchButton;a.searchResult=this.searchResult;a.searchSwiper=this.searchSwiper;a.searchSwiperList=this.searchSwiperList;a.progress= this.progress;a.progressBar=this.progressBar;a.searchPageSwiper=this.searchPageSwiper;a.pageResult=this.pageResult;this.afterSearchThumbs=a.afterSearchThumbs;this.afterSearchText=a.afterSearchText;a.search=this.search.bind(this);a.clear=this.clear.bind(this);a.restrictTips=this.restrictTips},changeLanguage:function(){this.input.attr("placeholder",FormInfo.getFormTitle("search"));toolBar.edtPreSearch&&toolBar.edtPreSearch.find("input")[0]&&toolBar.edtPreSearch.find("input").val(getLanguage("btnSearch", "Search"))}}).extend(FormElements),PcSearchFrame=Class({create:function(a){this.elements=new SearchElements(this);this._super(a)},onCreate:function(){this.initColorCss()},initColorCss:function(){this.stage.css({"background-color":this.mainColorObj.rgba(this.formOpacity),color:this.fontColor})},initHtml:function(){this.stage.addClass("win10_border");this.stage.append(this.title);this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));bookConfig.SearchButtonIcon&& (this.searchButton=$("searchButton"));this.stage.append(this.close);this.stage.append(this.input);this.stage.append(this.searchButton);this.stage.append(this.searchPageSwiper);this.stage.append(this.searchResult);this.stage.append(this.searchSwiper);this.parent.append(this.stage)}, appendRestrictTips:function(){this.searchSwiper.append(this.restrictTips)},newSearchItem:function(a,b){return new PcSearchItem(a,b)},onResize:function(){var a=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(),1);toolBar.getWidth();var b=toolBar.getTopHeight()+10;this.width=250;this.height=a-87;this.maxHeight=this.height-87;this.stage.css({height:this.height+"px",top:b+"px"});this.searchSwiper.css("height",this.maxHeight+"px");this.elements.refresh()},afterSearchThumbs:function(){this.height= Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(),1)-87;this.searchSwiper.css("height",this.height-287+"px")},afterSearchText:function(){this.height=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(),1)-87;this.searchSwiper.css("height",this.height-87+"px");this.searchPageSwiper.css({display:"none"})},getList:function(){return this.elements.getList()},onShow:function(){this.changeIconColor();this.input.focus();BookInfo.getBook().addSearchHighlight()}, onHide:function(){BookInfo.getBook().clearSearchHighlight()}}).extend(SlideForm),loadSearchFlag=!1,AnalysisSearch=Class({create:function(a,b){this.callback=b;this.results=[];this.search(a)},search:function(a){var b=this,c,d,e,f,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){switch(h.nextAddress){case 1:if(0!=loadSearchFlag){b.doSearch(a);h.jumpTo(0);break}return isTouchDevice()?h.yield(getArticleImage(fixURLValue(bookConfig.searchTextJS)),5):(e=d=!1,f=function(){d&&e&&(loadSearchFlag= !0,this.doSearch(a))}.bind(b),h.yield(getArticleImage(fixURLValue(bookConfig.searchTextJS)),6));case 5:c=h.yieldResult;if(!c)return b.doSearch("",!0),h.return();loadJavascript(c,function(){loadSearchFlag=!0;this.doSearch(a)}.bind(b),function(){loadSearchFlag=!0;this.doSearch(a)}.bind(b));h.jumpTo(0);break;case 6:c=h.yieldResult;if(!c)return b.doSearch("",!0),h.return();loadJavascript(c,function(){d=!0;f()},function(){d=!0;f()});g=String.format(bookConfig.searchPositionJS,BookInfo.getCurrentPageIndex()); return h.yield(getArticleImage(fixURLValue(g)),7);case 7:g=h.yieldResult;if(!g)return b.doSearch("",!0),h.return();loadJavascript(g,function(){e=!0;f()},function(){e=!0;f()});h.jumpToEnd()}})},doSearch:function(a,b){this.results=searchFromPages(textForPages,a);this.callback(this.results,b)},getList:function(){return this.results},clear:function(){this.results=[]}}),SearchItem=Class({create:function(a,b){this.fontColor=b.fontColor;this.parent=a;this.parm=b;this.sDescription=this.handleData(b.search_text, b.searchText);this.index=b.search_page;this.sPage=getShownPageNumber(b.search_page);this.sPageTitle=getLanguage("lblPage","Page");this.initHtml();this.initEvent()},initHtml:function(){this.initElement();this.item.append(this.page);this.item.append(this.description);this.parent.append(this.item)},initElement:function(){this.item=$("
    ");rightToLeft?(this.page=$("
    "+this.sPage+":"+this.sPageTitle+"
    "),LanguageTool.isRightToLeft(this.parm.search_text)?this.description= $("
    "+this.sDescription+"
    "):this.description=$("
    "+this.sDescription+"
    ")):(this.page=$("
    "+this.sPageTitle+":"+this.sPage+"
    "),this.description=$("
    "+this.sDescription+"
    "))},handleData:function(a,b){a=HTMLString.toLabel(a).replaceAll("<br>","
    ");a=handleData(a,b);return HTMLString.riseAWord(a,b,bookConfig.searchKeywordFontColor)},initEvent:function(){this.item.bind("mouseover", function(){this.item.css({"background-color":Color(this.fontColor).rgba(.25)})}.bind(this));this.item.bind("mouseleave",function(){this.item.css({"background-color":"transparent"})}.bind(this));this.item.onTap(function(){gotoPageFun(this.index,!1,"search");BookInfo.getBook().addSearchHighlight();(isPhone()||isPad())&&global.frmSearch.hide()}.bind(this))}}),PhoneSearchItem=Class({initEvent:function(){this.item.bind("mouseover",function(){this.item.css({"background-color":Color(this.fontColor).rgba(.25)})}.bind(this)); this.item.bind("mouseleave",function(){this.item.css({"background-color":"transparent"})}.bind(this));this.item.onTap(function(){gotoPageFun(this.index,!1,"search");BookInfo.getBook().addSearchHighlight();(isPhone()||isPad())&&setTimeout(function(){global.frmSearch.hide()}.bind(this),1>bookConfig.flippingTime?1E3*bookConfig.flippingTime+100:bookConfig.flippingTime+100)}.bind(this))}}).extend(SearchItem),PhoneSearchForm=Class({create:function(a){this.elements=new SearchElements(this);this._super(a)}, onCreate:function(){this.stage.css({color:this.fontColor,"background-color":this.mainColorObj.rgba(this.formOpacity)});this.input.css({color:"#000000",opacity:1});var a=new Color(this.mainColor);String.format("%s %s %s %s",a.reduce(40),a.reduce(40),a.add(40),a.add(40));isPhone()||isPad()?this.searchSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):this.searchSwiper.css({overflow:"hidden"});this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()}, initHtml:function(){bookConfig.SearchButtonIcon&&(this.searchButton=$("searchButton"));this.container=$("
    ");this.title.append(this.close);this.stage.append(this.title);this.stage.append(this.input);this.stage.append(this.searchButton);this.searchSwiper.css({height:"auto"}).find(".swiper").css({position:"relative"}); this.stage.append(this.container);this.container.append(this.searchPageSwiper).append(this.searchResult).append(this.searchSwiper)},appendRestrictTips:function(){this.container.append(this.restrictTips)},newSearchItem:function(a,b){return new PhoneSearchItem(a,b)},getList:function(){return this.elements.getList()},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)},hide:function(){this._super();this.input.blur()},afterSearchThumbs:function(){this.height=windowHeight},afterSearchText:function(){this.height= windowHeight;this.searchPageSwiper.css({display:"none"})},onResize:function(){this._super();this.container.css("height",this.height-115+"px");this.searchPageSwiper.css("display");this.input.css("width",this.width-75+"px");this.elements.refresh()},initEvent:function(){}}).extend(PhoneFormFrame),LanguageElements=Class({create:function(a){this._super(a);this.initElements();this.initEvent(a);this.pickElements(a)},initElements:function(){this.choosedUrl=uiBaseURL+"choosed.png";this.itemArray=[];this.scrollBox= $("
    ");this.wrapper=$("
    ");this.scrollList=$("
    ");this.scrollBox.append(this.wrapper);this.wrapper.append(this.scrollList);for(var a=0;a
    "+b+"
    "); a.toLowerCase()===bookConfig.language.toLowerCase()&&(c.addClass("focus"),this.currentItem=c);c.bind(_event._end,function(){this.refreshLanguage(a);this.currentItem=c;this.scrollBox.find(".focus").removeClass("focus");c.addClass("focus")}.bind(this));this.scrollList.append(c);this.itemArray.push(c)}},refreshLanguage:function(a){changeLanguage(a)},initEvent:function(a){},pickElements:function(a){a.choosedUrl=this.choosedUrl;a.itemArray=this.itemArray;a.scrollBox=this.scrollBox},changeLanguage:function(){}}).extend(FormElements); Class("PcLanguageForm",{create:function(a){this.elements=new LanguageElements(this);this._super(a)},onCreate:function(){this.close.changeButtonColor(this.color);this._super()},initEvent:function(){this._super();this.stage.bind(_event._end,function(){this.hide()}.bind(this));for(var a=0;a
    ");var a=global.flipSoundIsPlaying?this.choosedUrl:this.unChoosedUrl,b=bookConfig.BackgroundSoundURL?this.choosedUrl:this.unChoosedUrl,c,d=(null==(c=window.mulEditorInfo)?0:c.isPlaying)?this.choosedUrl:this.unChoosedUrl; c=getLanguage("closeFlipSound","Close Flip Sound");var e=getLanguage("closeBackgroundSound","Close Background Sound"),f=getLanguage("multimediaSoundState","Close Multimedia Sound");this.flipSoundBtn=$("
    "+c+"
    ");this.backgroundSoundBtn=$("
    "+e+"
    ");this.mulEditorSoundBtn=$("
    "+f+"
    "); this.scrollBox.append(this.flipSoundBtn);bookConfig.BackgroundSoundButtonVisible&&bookConfig.BackgroundSoundURL&&this.scrollBox.append(this.backgroundSoundBtn)},initEvent:function(a){$(this.flipSoundBtn.find("img")).bind(_event._down,function(b){b.preventDefault()});$(this.backgroundSoundBtn.find("img")).bind(_event._down,function(b){b.preventDefault()});this.flipSoundBtn.bind(_event._down,function(b){global.flipSoundIsPlaying=!global.flipSoundIsPlaying;this.changeFlipSoundBtnCase()}.bind(this)); this.backgroundSoundBtn.bind(_event._down,function(){window.bgSound&&bgSound.playOrPause();this.changeBackgroundBtnCase()}.bind(this))},initMultimediaSoundBtn:function(){this.scrollBox.append(this.mulEditorSoundBtn);$(this.mulEditorSoundBtn.find("img")).bind(_event._down,function(a){a.preventDefault()});this.mulEditorSoundBtn.bind(_event._down,function(a){this.changeMultimediaSoundBtnCase()}.bind(this))},changeMultimediaSoundBtnCase:function(){if(window.mulEditorInfo){var a=window.mulEditorInfo.isPlaying? this.unChoosedUrl:this.choosedUrl,b=window.mulEditorInfo.isPlaying?getLanguage("multimediaSoundOff","Multimedia sound off"):getLanguage("multimediaSoundOn","Multimedia sound on");window.mulEditorInfo.handleMusic({method:window.mulEditorInfo.isPlaying?"pause":"play"});this.mulEditorSoundBtn.find("img").attr("src",a);BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",b])}},changeFlipSoundBtnCase:function(){global.flipSoundIsPlaying?(this.flipSoundBtn.find("img").attr("src", this.choosedUrl),playFlipSound(),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundon","Open Flip Sound")])):(this.flipSoundBtn.find("img").attr("src",this.unChoosedUrl),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundoff","Close Flip Sound")]));this.changeBackgroundSoundButtonState()},changeBackgroundBtnCase:function(){!0!==isPlaying?(this.backgroundSoundBtn.find("img").attr("src",this.unChoosedUrl), BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")])):(this.backgroundSoundBtn.find("img").attr("src",this.choosedUrl),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundon","Open Background Sound")]))},changeBackgroundSoundButtonState:function(){isPlaying||global.flipSoundIsPlaying?StateSynchronous.instance().findButtons("PhoneBackgroundSoundButton").each(function(a){a.setAsSoundOn(); a.executeCallback()}):StateSynchronous.instance().findButtons("PhoneBackgroundSoundButton").each(function(a){a.setAsSoundOff();a.executeCallback()})},pickElements:function(a){a.choosedUrl=this.choosedUrl;a.unChoosedUrl=this.unChoosedUrl;a.scrollBox=this.scrollBox;a.flipSoundBtn=this.flipSoundBtn;a.backgroundSoundBtn=this.backgroundSoundBtn;a.changeFlipSoundBtnCase=this.changeFlipSoundBtnCase;a.changeBackgroundBtnCase=this.changeBackgroundBtnCase;a.changeBackgroundSoundButtonState=this.changeBackgroundSoundButtonState}, changeLanguage:function(){global.flipSoundIsPlaying?this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon","Open Flip Sound")):this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff","Close Flip Sound"));!0===isPlaying?this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")):this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound"))}}).extend(FormElements),PhoneSettingForm= Class({create:function(a){this.elements=new SettingElements(this);this._super(a)},onCreate:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()},initHtml:function(){this.title.append(this.close);this.stage.append(this.title);this.stage.append(this.scrollBox)},initEvent:function(){},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)},changeLanguage:function(){this._super();this.elements.changeLanguage()}}).extend(PhoneFormFrame),PcSoundSettingForm= Class({create:function(a){this._super(a);window.mulEditorInfo&&window.mulEditorInfo.hasMusic&&this.initMultimediaSoundBtn()},onCreate:function(){this.stage.css({"background-color":"transparent"});this._super()},initHtml:function(){this.flipSoundOnImage=uiBaseURL+"flipSoundOn.png";this.flipSoundOffImage=uiBaseURL+"flipSoundOff.png";this.backSoundOnImage=uiBaseURL+"backSoundOn.png";this.backSoundOffImage=uiBaseURL+"backSoundOff.png";var a=global.flipSoundIsPlaying?getLanguage("tmpl_Flipsoundon","Open Flip Sound"): getLanguage("tmpl_Flipsoundoff","Close Flip Sound"),b=global.flipSoundIsPlaying?this.flipSoundOnImage:this.flipSoundOffImage,c=bookConfig.BackgroundSoundURL?getLanguage("tmpl_Backgoundsoundon","Open Background Sound"):getLanguage("tmpl_Backgoundsoundoff","Close Background Sound");this.backgroundSoundBtn=$("

    "+c+"

    ");this.flipSoundBtn=$("

    "+a+"

    ");bookConfig.BackgroundSoundURL&&this.stage.append(this.backgroundSoundBtn);this.stage.append(this.flipSoundBtn)},initMultimediaSoundBtn:function(){this.multimediaOnImage=uiBaseURL+"multimediaOn.png";this.multimediaOffImage=uiBaseURL+"multimediaOff.png";var a=window.mulEditorInfo.isPlaying?getLanguage("multimediaSoundOn","Multimedia sound on"):getLanguage("multimediaSoundOff","Multimedia sound off");this.mulEditorSoundBtn=$('

    '+a+"

    ");this.stage.prepend(this.mulEditorSoundBtn);this.mulEditorSoundBtn.bind(_event._end,function(){this.changeMultimediaSoundBtnCase()}.bind(this))},changeMultimediaSoundBtnCase:function(){window.mulEditorInfo.isPlaying?(this.mulEditorSoundBtn.find("img").attr("src",this.multimediaOffImage),this.mulEditorSoundBtn.find(".title").html(getLanguage("multimediaSoundOff","Multimedia sound off")), this.mulEditorSoundBtn.find("img").removeClass("rotateItem"),window.mulEditorInfo.handleMusic({method:"pause"}),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundoff","Close Flip Sound")])):(this.mulEditorSoundBtn.find("img").attr("src",this.multimediaOnImage),this.mulEditorSoundBtn.find(".title").html(getLanguage("multimediaSoundOn","Multimedia sound on")),this.mulEditorSoundBtn.find("img").addClass("rotateItem"),window.mulEditorInfo.handleMusic({method:"play"}), BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundon","Open Flip Sound")]))},initEvent:function(a){this.flipSoundBtn.bind(_event._end,function(){global.flipSoundIsPlaying=!global.flipSoundIsPlaying;this.changeFlipSoundBtnCase()}.bind(this));this.backgroundSoundBtn.bind(_event._end,function(){window.bgSound&&bgSound.playOrPause();this.changeBackgroundBtnCase()}.bind(this))},changeFlipSoundBtnCase:function(){global.flipSoundIsPlaying?(this.flipSoundBtn.find("img").attr("src", this.flipSoundOnImage),this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon","Open Flip Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundon","Open Flip Sound")]),playFlipSound()):(this.flipSoundBtn.find("img").attr("src",this.flipSoundOffImage),this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff","Close Flip Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundoff", "Close Flip Sound")]));this.changeBackgroundSoundButtonState()},changeBackgroundBtnCase:function(){!0!==isPlaying?(this.backgroundSoundBtn.find("img").attr("src",this.backSoundOffImage),this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")])):(this.backgroundSoundBtn.find("img").attr("src",this.backSoundOnImage), this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundon","Open Background Sound")]))},changeBackgroundSoundButtonState:function(){isPlaying||global.flipSoundIsPlaying?StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(a){a.setAsSoundOn();a.executeCallback()}):StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(a){a.setAsSoundOff(); a.executeCallback()})},onShow:function(){},changeLanguage:function(){global.flipSoundIsPlaying?this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon","Open Flip Sound")):this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff","Close Flip Sound"));!0===isPlaying?this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")):this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound")); window.mulEditorInfo&&window.mulEditorInfo.isPlaying?this.mulEditorSoundBtn.find(".title").html(getLanguage("multimediaSoundOn","Multimedia sound on")):this.mulEditorSoundBtn.find(".title").html(getLanguage("multimediaSoundOff","Multimedia sound off"))}}).extend(FadeOutFadeForm),HelpElements=Class({create:function(a){this._super(a);this.initElements();this.initEvent(a);this.pickElements(a)},initElements:function(){bookConfig.helpContentFileURL?this.image=$("
    "):(this.helpUrl=form_icons.help_form? "data:image/png;base64,"+form_icons.help_form:uiBaseURL+"help_form.png",this.image=$(""),this.title1=$("

    "+getLanguage("lblHelp1","Drag the page corner to view")+"

    "),this.title2=$("

    "+getLanguage("lblHelp2","Double click to zoom in, out")+"

    "))},resetHelpIcon:function(a){bookConfig.helpContentFileURL||this.image.attr("src",this.helpUrl)},initEvent:function(a){},pickElements:function(a){a.helpUrl=this.helpUrl; a.image=this.image;a.title1=this.title1;a.title2=this.title2},changeLanguage:function(){this.title1&&this.title1.html(getLanguage("lblHelp1","Drag the page corner to view"));this.title2&&this.title2.html(getLanguage("lblHelp2","Double click to zoom in, out"))}}).extend(FormElements),PcHelpFrame=Class({create:function(a){this.elements=new HelpElements(this);this._super(a)},onCreate:function(){this.initColorCss();bookConfig.helpContentFileURL&&(this.stage.css({width:bookConfig.helpWidth+"px",height:bookConfig.helpHeight+ "px"}),this.image.css({background:"url("+bookConfig.helpContentFileURL+") center no-repeat","background-size":"contain",width:"100%",height:"100%"}),this.content&&this.content.css({width:bookConfig.helpWidth-34+"px",height:bookConfig.helpHeight-59+"px"}));this._super();bookConfig.showHelpContentAtFirst?this.show():this.hide()},initColorCss:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor})},resetColorChanged:function(){this._super();!bookConfig.helpContentFileURL&& this.image&&(this.image[0].colorChanged=!1)},resetIconSrc:function(a){this._super();!bookConfig.helpContentFileURL&&this.image&&this.elements.resetHelpIcon(this.fontColor)},changeIconColor:function(){this._super();!bookConfig.helpContentFileURL&&this.image&&this.image.changeButtonColor(this.fontColor)},initHtml:function(){this._super()},onShow:function(){this.changeIconColor()}}).extend(FadeOutFadeForm); Class("SharePoster",{create:function(a){this.parent=a;this.initConfig();this.initHtml();this.initCss();this.initEvent()},initHtml:function(){this.pContainer=$("
    ");this.initReadyHtmlPanel();this.initPosterImgPanel();this.parent.append(this.pContainer)},initConfig:function(){this.height=windowHeight-20;this.width=.66*this.height;var a=windowWidth-20;this.width>a&&(this.width=a,this.height=this.width/.66);this.scale=this.width/684},initReadyHtmlPanel:function(){this.canvas= $("");this.ctx=this.canvas[0].getContext("2d");this.thumb=$("");this.cvsBg=$("");this.qrcodeBox=$("
    "); this.qrcodeBox.qrcode({width:100,height:100,render:"image",text:bookConfig.socialShareLink?bookConfig.socialShareLink:window.location.href.removeStartFrom("#p=")});this.pContainer.append(this.canvas).append(this.svg)},initPosterImg:function(){this.beforeCreatePoster();this.canvas[0].width=684;this.canvas[0].height=1036;this.imgs=[this.cvsBg,this.thumb];this.getSrcAndImg(0)},setImgs:function(a,b){var c=a.imgs;a.loadImgFun(c[b]).then(function(){b+=1;b"),e.attr("src",d),e.attr("crossOrigin","Anonymous"),this.imgs.push(e))}.bind(b)),b.setImgs(b,a)):("object"==typeof c&&c[0]&&(c=(fliphtml5_pages.normalPath&& void 0!=fliphtml5_pages.normalPath[0]?fliphtml5_pages.normalPath[0]:"")+c[0]),-1e;e++)this.ctx.fillStyle=0==e%2?"#e5e5e5":"#f2f2f2",rightToLeft?this.ctx.fillRect(Math.floor(a.left+b- 5+1*e),c+a.top+(5-e),1,d-2*(5-e)):this.ctx.fillRect(Math.floor(a.left+b+a.width+1*e),c+a.top+1*e,1,d-2*e)},drawTitleText:function(a,b){b&&(this.ctx.font="20px Arial");var c=this.ctx.measureText(a).width;b=957;this.ctx.textBaseline="top";274 b)return c?e+"...":e;e=d;d+=textArr[a]}return d},drawAlertText:function(){this.ctx.font="20px Arial";var a=954;this.ctx.textBaseline="top";this.ctx.fillStyle="#db9a67";var b=this.getLinitText(getLanguage("infLongPressToIndentify","Long press to identify QR code"),267,!0),c=this.getLinitText(getLanguage("infScanCodeToView","Scan code to read"),227,!0),d=323+(226-this.ctx.measureText(c).width)/2;if(getLanguage("infLongPressToIndentify")){a=943;this.ctx.font="14px Arial";var e=323+(226-this.ctx.measureText(b).width)/ 2;this.ctx.fillText(b,e,a);this.ctx.font="20px Arial";this.ctx.fillText(c,d,a+26)}else this.ctx.fillText(c,323,a)},drawQrcode:function(){this.ctx.fillStyle="#ffffff";this.ctx.fillRect(561,911,110,110);this.ctx.drawImage(this.qrcodeBox.find("img")[0],566,916,100,100);var a=new Image;a.src=bookConfig.appLogoIcon;a.setAttribute("crossOrigin","Anonymous");bookConfig.appLogoIcon&&this.ctx.drawImage(a,611,961,20,20)},getCloseSrc:function(){return"./style/icon/close.svg"},initPosterImgPanel:function(){this.topTitle= $("
    ");this.pcDownload=$(""+getLanguage("btnDownloadPosterPrompt","Click to download the poster")+"");this.alertText=$("
    "+getLanguage("infLongPressToSavePoster","Long press to identify QR code")+"
    ");this.closeBtn=$(''+ phoneSvgIcons.close+"");this.loading=$("");this.posterImgOuter=$("
    ");this.posterImg=$("");this.popPosterBox=$("
    ");this.popPosterBg=$("
    ");this.topTitle.append(this.alertText).append(this.closeBtn).append(this.pcDownload);this.posterImgOuter.append(this.posterImg).append(this.topTitle); this.popPosterBox.append(this.popPosterBg).append(this.posterImgOuter).append(this.loading);this.pContainer.append(this.popPosterBox);this.posterImgOuter.fadeOut()},onResize:function(){this.initConfig();this.resizeCss()},showPosterHtml:function(){this.canvas.css({display:"block",left:"50%",top:"50%",transform:"translate(-50%,-50%) scale("+this.scale+")"})},initCss:function(){this.posterImgOuter.css({overflow:"hidden",transform:"translate(-50%,-50%)","-webkit-transform":"translate(-50%,-50%)",left:"50%", top:"50%","z-index":"1111",position:"absolute",display:"none",width:684*this.scale+"px",height:1036*this.scale+"px"});this.posterImg.css({width:684*this.scale+"px",height:1036*this.scale+"px"});this.pContainer.css({display:"none","z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%",background:"rgba(11,11,11,0.7)"});this.popPosterBox.css({"z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%"});this.popPosterBg.css({"z-index":"0",position:"absolute", left:"0",top:"0",width:"100%",height:"100%"});isPhone()||isPad()?(this.topTitle.css({"-webkit-transform":"translateY(0)",transform:"translateY(0)"}),this.alertText.css({display:"block"}),this.pcDownload.css({display:"none"})):(this.topTitle.css({"-webkit-transform":"translateY(-30px)",transform:"translateY(-30px)"}),this.pcDownload.css({display:"block"}),this.alertText.css({display:"none"}))},resizeCss:function(){this.alertText.css({width:this.width-37+"px"});this.posterImgOuter.css({width:684*this.scale+ "px",height:1036*this.scale+"px"});this.posterImg.css({width:684*this.scale+"px",height:1036*this.scale+"px"});this.canvas.css({"-webkit-transform":"translate(-50%,-50%) scale("+this.scale+")",transform:"translate(-50%,-50%) scale("+this.scale+")"})},initEvent:function(){this.popPosterBg.bind(_event._down,function(a){a.stopPropagation();this.pContainer.fadeOut()}.bind(this));this.posterImg.on("load",function(){this.posterImgOuter.fadeIn()}.bind(this));isPC()&&(this.closeBtn.bind(_event._enter,function(a){a.stopPropagation(); this.closeBtn.css({opacity:"0.65"})}.bind(this)),this.closeBtn.bind(_event._leave,function(a){a.stopPropagation();this.closeBtn.css({opacity:"1"})}.bind(this)),this.pcDownload.bind(_event._enter,function(a){a.stopPropagation();this.pcDownload.css({opacity:"0.65"})}.bind(this)),this.pcDownload.bind(_event._leave,function(a){a.stopPropagation();this.pcDownload.css({opacity:"1"})}.bind(this)));this.closeBtn.bind(_event._click,function(a){a.stopPropagation();this.hide()}.bind(this));isPhone()||isPad()|| (this.posterImgOuter.bind("mouseenter",function(){this.topTitle.css({transform:"translateY(0)","-webkit-transform":"translateY(0)"})}.bind(this)),this.posterImgOuter.bind("mouseleave",function(){this.topTitle.css({transform:"translateY(-30px)","-webkit-transform":"translateY(-30px)"})}.bind(this)))},beforeCreatePoster:function(){this.canvas.css({display:"block"});this.loading.css({display:"block"})},afterCreatedPoster:function(){this.canvas.css({display:"none",left:"110%",top:"110%",transform:"scale("+ this.scale+")"});this.loading.css({display:"none"})},afterFailLoad:function(){this.beforeCreatePoster();this.showPosterHtml();this.loading.css({display:"none"});this.canvas.css({"z-index":"1002"})},show:function(){this.pContainer.fadeIn();this.hasPoster?this.posterImgOuter.fadeIn():this.isloadFail?this.afterFailLoad():this.initPosterImg();global.sharePanel&&global.sharePanel.hide();this.onShow()},hide:function(){this.pContainer.fadeOut();this.onHide()},onShow:function(){},onHide:function(){}}); (function(a){tmpBookConfig.ShareButtonVisible&&(a=window.location.href.toLowerCase(),!(-1=window.shareObj.length)return[];for(var a=window.shareObj.length,b=[],c=0;c"); a=$("");b.append(a);$("body").append(b);b.onClick(function(){b.hide();b.remove()})},ShareToFaceBook=function(a){var b=function(){var d=getHost(window.location.href).toLowerCase();if(-1'); b=$('
    ');e.append(b);$("body").append(e);e.bind("click",function(){e.unbind("click");e.remove()})}} function sharePhoneWeChat(){var a=$('
    '),b=$('
    ');a.append(b);$("body").append(a);a.bind("click",function(){a.unbind("click");a.remove()})} (function(a){function b(l){if(!f)return l&&l();var n=document.createElement("script");n.onload=function(){l&&l()};n.onerror=function(){};n.src=1==+f?"//3gimg.qq.com/html5/js/qb.js":"//jsapi.qq.com/get?api=app.share";$("body").append(n)}function c(l){var n="";1==l.type?n=8:2==l.type?n=1:3==l.type?n=4:4==l.type?n=11:0==l.type&&(n="undefined");var p=function(){var q={url:l.url,title:l.title,description:l.desc,img_url:l.img,img_title:l.title,to_app:n,cus_txt:""};window.browser?browser.app&&browser.app.share(q): window.qb&&qb.share&&qb.share(q)};k?p():b(p)}var d=navigator.appVersion;var e=1h&&1==m||f&&5.3>h&&1==m?f=0:f&&5.4> h&&2==m?f=1:e&&(10.2>d&&1==m||9.7>d&&2==m)&&(e=0);b(function(){k=!0});a.mShare=function(l){this.check=function(n,p,q){e?n():f&&!g?n():g?p():q()};this.config=l;this.init=function(n){"undefined"!=typeof n&&(this.config.type=n);try{if(e){var p=this.config;n="";p.type&&(2==m?1==p.type?n="WechatTimeline":2==p.type?n="WechatFriends":3==p.type?n="QQ":4==p.type?n="SinaWeibo":0==p.type&&(n="undefined"):1==m&&(1==p.type?n="kWeixinFriend":2==p.type?n="kWeixin":3==p.type?n="kQQ":4==p.type?n="kSinaWeibo":0==p.type&& (n="undefined")));var q=[p.title,p.desc,p.url,n,"","",""];window.ucweb?ucweb.startRequest&&ucweb.startRequest("shell.page_share",q):window.ucbrowser&&ucbrowser.web_share&&ucbrowser.web_share.apply(null,q)}else f&&!g&&c(this.config)}catch(t){}}}})(this);function showPoster(){global.sharePoster||(global.sharePoster=new SharePoster(tmpContainer));global.sharePoster.show();onShowPoster()}function onShowPoster(){} var PhoneShareItem=Class({create:function(a){a&&(this.info=a,this.initItem(),this.initEvent())},initItem:function(){-1"):this.info.type&&"copy"==this.info.type?(this.link=$(""),copyHref(this.link[0])):this.link=$("");this.item=$("
    ");this.logo=$("");this.title=$('
    '+ this.info.title+"
    ");this.link.append(this.item);this.info.logo&&this.item.append(this.logo);this.item.append(this.title);this.item.css({color:this.info.fontColor})},initEvent:function(){this.link.bind("touchend",function(){BookEvent.trigger("share",[BookInfo.getCurrentPageIndex(),this.info.title,!1])}.bind(this));-1