function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var DeviceType="pc";$(function(){if($.browser.msie&&parseInt($.browser.version)<8){var zIndexNumber=10000;$("#header,#header_main,#header_main_inner,#header_main_inner .overflow").each(function(){$(this).css("zIndex",zIndexNumber);zIndexNumber-=10});$("#header_navi,#container,footer").each(function(){$("div,nav,section,aside,header,footer",this).each(function(){$(this).css("zIndex",zIndexNumber);zIndexNumber-=10})})}if(typeof BookLiveBlackBalloon!="undefined"){new BookLiveBlackBalloon($("#header_mymenu .mybook:not(.off) dt"),"My\u672C\u68DA\u3092\u898B\u308B");new BookLiveBlackBalloon($("#header_mymenu .point:not(.buy) dt"),"\u30DD\u30A4\u30F3\u30C8\u3092\u8CFC\u5165\u3059\u308B");new BookLiveBlackBalloon($("#header_mymenu .point.buy dt"),"\u30DD\u30A4\u30F3\u30C8\u3092\u8CFC\u5165\u3059\u308B");new BookLiveBlackBalloon($("#header_mymenu .cart dt"),"\u30AB\u30FC\u30C8\u3092\u898B\u308B");new BookLiveBlackBalloon($("#header_mymenu .keep:not(.off) dt"),"\u30D5\u30A9\u30ED\u30FC\u3092\u898B\u308B")}$("#pagetop a[href=#header]").click(function(){var speed=400;var href=$(this).attr("href");var target=$(href=="#"||href==""?"html":href+":visible");if(target.length){var position=target.offset().top;$($.browser.safari?"body":"html").animate({scrollTop:position},speed,"swing");return false}});(function(){if(jQuery("[id $=input_search]").size()>0){jQuery("[id $=input_search]").suggest("/json/suggest",{minchars:1,delay:1})}if(jQuery("[id $=input_search_sub]").size()>0){jQuery("[id $=input_search_sub]").suggest("/json/suggest",{minchars:1,delay:1})}$("[id $=input_search]").click(function(event){event.preventDefault();$(this).trigger("input_focus")});if($("#header .header_tools_message").size()>0){$.userMessage.checkNewMessage().done(function(data){$("#header .header_tools_message .header_tools_num").show()});$("#header .header_tools_message").commonjsMessagePopup()}})();$(".commonjs_collapsible").each(function(){if($(this).hasClass("on")){$("#"+$(this).attr("data-target")).hide()}$(this).click(function(){if($(this).hasClass("on")){$("#"+$(this).attr("data-target")).show();$(this).removeClass("on")}else{$("#"+$(this).attr("data-target")).hide();$(this).addClass("on")}return false})});function commonjs_pages_select(current_pg,pages){$(".commonjs_page",pages).removeClass("active").hide();$(".commonjs_page_btn").removeClass("selected");$(current_pg,pages).show().addClass("active");$(".commonjs_page_btn").each(function(){if($(this).attr("data-page")==current_pg){$(this).addClass("selected")}})}$(".commonjs_pages").each(function(){var current_pg=null;var pages=this;$(".commonjs_page_btn").each(function(){if($(this).hasClass("selected")){$(this).removeClass("selected")}$(this).on("click",function(e){if($(this).hasClass("selected")){}else{commonjs_pages_select($(this).attr("data-page"),pages)}e.preventDefault()})});$pages=$(this).find(".commonjs_page");var urlHash=location.hash.substr(1);$active=$($pages.filter("[id=\""+urlHash+"\"]")[0]||$pages.filter(".active")[0]||$($pages[0]));commonjs_pages_select("#"+$active.attr("id"))})});var InputTextBlock=function InputTextBlock(obj){var func1=function func1(self){if(!self.focused&&$(self).val()==""){$(self).next("span").show()}};var func2=function func2(self){$(self).next("span").hide()};obj.each(function(){var focused=false;var block=this;if(!$("input.text,textarea.text",block).length||!$("span",block).length)return false;$("input.text,textarea.text",block).addClass("transparent").focus(function(){focused=true;func2(this);if($(this).val()=="")$(this).val(" ").val("")}).blur(function(){focused=false;func1(this)}).change(function(){func1(this)}).each(function(){func1(this)});$("span",block).click(function(){$(".text",block).focus()})})};$(function(){InputTextBlock($(".input_text_block"));$(".pulldown_box").each(function(){var item=$(this).find(".pulldown_box_item").clone(true);var btn=$(this).find(".pulldown a:first");item.find("a").css("width","auto");item.find("a").click(function(){btn.text($(this).text());item.hide();if($(this).attr("data-return")!="true"){return false}});btn.click(function(){var btn=$(this);var offset=btn.offset();item.css({top:offset.top+btn.get(0).offsetHeight+1,left:offset.left-1,zIndex:99999});item.width(btn.get(0).offsetWidth-1);item.show();return false});$("body").prepend(item);$("html").click(function(){item.hide()});$(window).resize(function(){item.hide()})});if($.browser.msie&&parseInt($.browser.version)<=7){setInterval(function(){$(".book .pmark").each(function(){if(!$(this).hasClass("__adjusted")){$(this).addClass("__adjusted");$(this).wrap("
");$(this).parent().css({backgroundImage:$(this).css("backgroundImage"),backgroundRepeat:$(this).css("backgroundRepeat"),backgroundPositionX:$(this).css("backgroundPositionX"),backgroundPositionY:$(this).css("backgroundPositionY"),margin:0,padding:0});$(this).width($(this).width()-20)}})},500)}});(function(a,b,c,d){var e=a(b);a.fn.lazyload=function(c){function i(){var b=0;f.each(function(){var c=a(this);if(h.skip_invisible&&!c.is(":visible"))return;if(!a.abovethetop(this,h)&&!a.leftofbegin(this,h))if(!a.belowthefold(this,h)&&!a.rightoffold(this,h))c.trigger("appear"),b=0;else if(++b>h.failure_limit)return!1})}var f=this,g,h={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!0,appear:null,load:null};return c&&(d!==c.failurelimit&&(c.failure_limit=c.failurelimit,delete c.failurelimit),d!==c.effectspeed&&(c.effect_speed=c.effectspeed,delete c.effectspeed),a.extend(h,c)),g=h.container===d||h.container===b?e:a(h.container),0===h.event.indexOf("scroll")&&g.bind(h.event,function(a){return i()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,c.one("appear",function(){if(!this.loaded){if(h.appear){var d=f.length;h.appear.call(b,d,h)}a("").bind("load",function(){c.hide().attr("src",c.data(h.data_attribute))[h.effect](h.effect_speed),b.loaded=!0;var d=a.grep(f,function(a){return!a.loaded});f=a(d);if(h.load){var e=f.length;h.load.call(b,e,h)}}).attr("src",c.data(h.data_attribute))}}),0!==h.event.indexOf("scroll")&&c.bind(h.event,function(a){b.loaded||c.trigger("appear")})}),e.bind("resize",function(a){i()}),/iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent.persisted&&f.each(function(){a(this).trigger("appear")})}),a(b).load(function(){i()}),this},a.belowthefold=function(c,f){var g;return f.container===d||f.container===b?g=e.height()+e.scrollTop():g=a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return f.container===d||f.container===b?g=e.width()+e.scrollLeft():g=a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return f.container===d||f.container===b?g=e.scrollTop():g=a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return f.container===d||f.container===b?g=e.scrollLeft():g=a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!a.rightoffold(b,c)&&!a.leftofbegin(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)},a.extend(a.expr[":"],{"below-the-fold":function belowTheFold(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function aboveTheTop(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function rightOfScreen(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function leftOfScreen(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function inViewport(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function aboveTheFold(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function rightOfFold(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function leftOfFold(b){return!a.rightoffold(b,{threshold:0})}})})(jQuery,window,document);$.commonjsMessagePopup={status_flg:{show_popup:true,add_list_delay:false,request_complete:false},list_show_cnt:null,list_template:null,message_list_link:{},loadingobj_add_classname:"message_list",notice:{none:"\u65B0\u7740\u306E\u901A\u77E5\u306F\u3042\u308A\u307E\u305B\u3093\u3002",view_past:"\u904E\u53BB\u306E\u901A\u77E5\u3092\u898B\u308B",error:"\u901A\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u6642\u9593\u3092\u304A\u3044\u3066\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},init:function init(options){var $this=this;if(!$("#area_message_popup").length){return false}if($this.status_flg.show_popup===false){return false}$this.mergeUtilityObject();$this.setListTemplate();$this.setListShowCnt();$("#area_message_popup .list_btns").click(function(e){e.stopPropagation()});var hideObj=["#area_message_popup","#allgenretarget_overlay"];$("body").on("click.message_popup_hide",hideObj.join(","),function(e){$this.hidePopup()})},mergeUtilityObject:function mergeUtilityObject(){if(typeof $.message_list_link!="undefind"&&$.message_list_link){$.extend(this,$.message_list_link)}if(typeof $.userMessage!="undefind"&&$.userMessage){$.extend(this,$.userMessage)}},setListTemplate:function setListTemplate(){this.list_template=$("#area_message_popup .message_list_template").html()},setListShowCnt:function setListShowCnt(){this.list_show_cnt=$("#area_message_popup .list_btns").attr("data-list_show_cnt")},setStatusFlg:function setStatusFlg(args){var name=typeof args.name!="undefined"&&args.name?args.name:null;if(!name){return false}if(name=="request_complete"){this.status_flg.request_complete=args.flg}},getMessageListLink:function getMessageListLink(){return this.message_list_link},getListShowCnt:function getListShowCnt(){return this.list_show_cnt},getListTemplate:function getListTemplate(){return this.list_template},getAddReadSeq:function getAddReadSeq(){var read_seq=this.getCookieReadSeq();var add_read_seq=[];var message_seq=[];if(read_seq.length){$("#area_message_popup a[data-message_seq]").each(function(){var this_seq=$(this).attr("data-message_seq");this_seq=this_seq&&$.trim(this_seq)?$.trim(this_seq):null;if(this_seq){message_seq.push(this_seq)}});if(message_seq.length){for(var i=0;i