Free javascript Hosting


mod-r81.js

Uploaded on Nov 19 2021 20:13 by myxiuren101

/*! v2.15.7 - 2021-10-28 */
!function(){define("domReady",[],function(){"use strict";function e(e){var t;for(t=0;t<e.length;t+=1)e[t](c)}function t(){var t=d;l&&t.length&&(d=[],e(t))}function n(){l||(l=!0,s&&clearInterval(s),t())}function i(e){return l?e(c):d.push(e),i}var a,o,s,r="undefined"!=typeof window&&window.document,l=!r,c=r?document:null,d=[];if(r){if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else if(window.attachEvent){window.attachEvent("onload",n),o=document.createElement("div");try{a=null===window.frameElement}catch(e){}o.doScroll&&a&&window.external&&(s=setInterval(function(){try{o.doScroll(),n()}catch(e){}},30))}"complete"===document.readyState&&n()}return i.version="2.0.1",i.load=function(e,t,n,a){a.isBuild?n(null):i(n)},i}),define("_video",["jquery","videojs","vjsswitch","vjshotkeys","domReady!"],function(e,t,n,i){function a(n,i,a,s){var r,l=720,c="undefined"==typeof a||a,d="undefined"==typeof s?"auto":s;i="undefined"==typeof i||i;var u;"undefined"!=typeof Storage&&(u=localStorage.getItem("volumeLevel"),null==u&&(u=.5,localStorage.setItem("volumeLevel",u)));var p=sessionStorage.getItem("resolution")?sessionStorage.getItem("resolution"):l,m=[];e("#"+n+" source").each(function(){m.push(e(this).attr("res"))}),e("#"+n).addClass("volume"+10*Math.round(10*u));var f=t(n,{autoplay:i,preload:d,plugins:{videoJsResolutionSwitcher:{default:e.inArray(p,m)!==-1?p:0!==m.length?m[m.length-1]:240,dynamicLabel:!0}}},function(){r=this.muted()?1:0,e(".vjs-tech").each(function(n){var i=e(this).attr("id");t(i).ready(function(){this.on("play",function(t){e(".video-js").each(function(e){n!==e&&this.player.pause()})})})}),c&&this.hotkeys({volumeStep:.1,seekStep:5,enableModifiersForNumbers:!1,alwaysCaptureHotkeys:!0}),this.on("ended",function(){this.hasStarted(!1),this.bigPlayButton.show()}),this.on("play",function(){e("#"+n).focus(),o(this,localStorage.getItem("volumeLevel")),i||(e("#"+n).find("video").removeAttr("poster"),e("#"+n).find(".vjs-poster").css("background-image",""))}),this.on("volumechange",function(e){if(this.muted())localStorage.setItem("videoMuted",1);else if(localStorage.setItem("videoMuted",0),r)this.volume(localStorage.getItem("volumeLevel")),r=0;else{this.volume();var t=this.volume();"undefined"!=typeof Storage&&localStorage.setItem("volumeLevel",t)}}),this.on("resolutionchange",function(e){var t=this.currentResolution(),n=t.sources[0].res;"undefined"!=typeof Storage&&sessionStorage.setItem("resolution",n)})});return o(f,u),f}function o(e,t){1==localStorage.getItem("videoMuted")?e.muted(!0):e.volume(t)}return"function"==typeof t&&(t.plugin("videoJsResolutionSwitcher",n.videoJsResolutionSwitcher),t.plugin("hotkeys",i.hotkeys)),{init:a}}),define("_csrf",["domReady!"],function(){var e=document.getElementById("csrf");return{get:function(){return e.dataset.csrf},set:function(t){void 0!==t&&(e.dataset.csrf=t)}}}),define("_page",["jquery","domReady!"],function(e){var t=!1;e(window).bind("beforeunload",function(){t=!0});for(var n=document.querySelectorAll(".channels-nav li a"),i=window.location.pathname.split("/")[3],a=0;a<n.length;a++)i===n[a].href.split("channels/")[1].split("/")[0]&&(n[a].className="active");return{isNavigating:t}}),define("_api",["jquery","domReady!"],function(e){function t(){return{unit:s,lang:r,device:"pc",browserlang:navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage}}function n(e){var n=t();return e.lang=n.lang,e.unit=n.unit,e.device=n.device,e.browserlang=n.browserlang,e}function i(e){var t=document.getElementById("ajaxurl-"+e);return null!==t&&t.getAttribute("data-src")?t.getAttribute("data-src"):null}function a(t,n,i,a){e.ajax({url:t,data:n,type:"POST",dataType:"json",statusCode:{401:function(){console.log("unauthorised"),msg._notify("Your session has expired. Please log in to continue.")}},success:function(e){return"function"!=typeof i?e:void i(e)},error:function(){"function"==typeof a&&a()}})}function o(t){var n=e(t).parentsUntil("section").find("header a").attr("href");return n="undefined"!=typeof n?'<br><a href="'+n+'">See full list of items here &rarr;</a>':"",'<div class="api-list-error"><i class="ico-info blk"></i><p>Oops... Something went wrong.'+n+"</div>"}var s=e("#hd-form-localCurrency").find("option:selected").val()||"USD",r=document.getElementsByTagName("html")[0].lang||"",l={item:{stream:i("user-player")},channels:{stream:i("stream-selector")},recommend:{related:i("recommend-related"),popular:i("recommend-popular"),user:i("recommend-user")}};return{baseParams:t,mergeParams:n,endpoint:l,doAJAX:a,errorMsg:o}}),define("_playback_support",["jquery","domReady!"],function(e){function t(){e(".cart-product-support").fadeIn(200)}function n(t){e(".js-selected-format").fadeOut(150,function(){e(".js-selected-format > *").hide(),e(".js-selected-format > *").removeClass("is-visible"),e(".js-selected-format ."+t).show(),e(".js-selected-format ."+t).addClass("is-visible"),e(".js-selected-format").fadeIn(150)}),e(".js-selected-format-info").fadeOut(150,function(){e(".js-selected-format-info > *").hide(),e(".js-selected-format-info ."+t).show(),e(".js-selected-format-info").fadeIn(150)})}return e(".cart-product-support").html()&&e(".icn-info").click(function(){e(".js-detail-pc-format").trigger("click")}),e(".js-detail-link-format").on("click",function(){window.open(e(this).data("url"),"_blank")}),{_select_format_to_display:n,_display_playback_support:t}}),define("_cart_box",["jquery","_api","_playback_support","domReady!"],function(e,t,n){function i(e,n){var i="/api/v1/content/cart_info/",o={id:e};t.doAJAX(i,o,function(t){return a(JSON.parse(JSON.stringify(t)),e,n),!0},function(){console.log(window.r18_trns.oops_error)})}function a(t,i,a){var s,r="own-tab",u=!1,p=Object.keys(t.items.price_info);if(1==p.length){var m=p[0];u=!("dl"==m.substr(m.length-2)||e.inArray(m.substr(m.length-3),["dl6","dl7"])>=0)}var f=!1,h=p.findIndex(function(e){return"dl7"==e.substr(e.length-3)});f=h!==-1;var v="";(d().channels||"channels"==location.pathname.split("/")[2])&&(r="channel-tab","prime"!=d().channels&&"prime"!=location.pathname.split("/")[3]||(v="label_05"));var g=t.items.is_vr,b=t.items.is_sale,_="",w=!1,y=!1;if(b){var k=t.items.sale_last_timestamp,j=Math.floor(new Date(t.items.current_date||Date.now())/1e3),x=k-j;if(x>0){var C=parseInt(x/86400);x%=86400;var I=parseInt(x/3600);x%=3600;var S=parseInt(x/60);if(_+='<div class="sec-box-saleTime js-sec-box-saleTime sale-pop">',_+=window.r18_trns.cart_sale_ends,C){var O=C>1?window.r18_trns.cart_sale_days:window.r18_trns.cart_sale_day;_+=C+O}if(I>0){var P=I>1?window.r18_trns.cart_sale_hours:window.r18_trns.cart_sale_hour;_+=I+P}else{var A=S>1?window.r18_trns.cart_sale_minutes:window.r18_trns.cart_sale_minute;_+=S+A}_+="</div>"}}var D="",E="",R="",T="",M="",N="",L="",q="",$="",W=0,U=0,F=0,B=0,H=0,z=0,X=0,K=0;if(e.each(t.items.price_info,function(e,t){var n="dl"==e.substr(e.length-2),i="dl6"==e.substr(e.length-3),a="dl7"==e.substr(e.length-3);n||i||a?(L="own-tab"==r?'<li class="active own-it" data-type="downloads">'+window.r18_trns.cart_label_own+"</li>":'<li class="own-it" data-type="downloads">'+window.r18_trns.cart_label_own+"</li>",a?(D+=o(e,t,"own",!1,g,!1,f),W=t.points_default,z=t.points):i?(E+=o(e,t,"own",!1,g,!1,f),U=t.points_default,X=t.points):(R+=o(e,t,"own",!1,g,!1,f),F=t.points_default,K=t.points),s=e):(T+=o(e,t,"rent",g,!1,f),N=u?'<li class="active rent-it" data-type="rental">'+window.r18_trns.cart_label_rent+"</li>":'<li class="rent-it" data-type="rental">'+window.r18_trns.cart_label_rent+"</li>",B=t.points_default,H=t.points)}),t.items.channel_info){var G=0,V=!1;e.each(t.items.channel_info,function(e,t){$=t.points_default,t.subscribed?22==e&&(V=!0,v=""):G++,7==e&&(w=!0),22==e&&(y=!0)}),e.each(t.items.channel_info,function(e,t){M+=o(e,t,"channel",V,g,y,f),!V&22!==e&&($=t.points_default)}),G<1||V?(r="own-tab",u?(N='<li class="active rent-it" data-type="rental">'+window.r18_trns.cart_label_rent+"</li>",T=T.replace("<input","<input checked").replace("txt01","txt01 activeLabel")):(L='<li class="active own-it" data-type="downloads">'+window.r18_trns.cart_label_own+"</li>",D?D=D.replace("<input","<input checked").replace("txt01","txt01 activeLabel"):E=E.replace("<input","<input checked").replace("txt01","txt01 activeLabel"))):1===G&&(d().channels||"channels"==location.pathname.split("/")[2]?M=M.replace("<input","<input checked"):V||(u?N='<li class="active rent-it" data-type="rental">'+window.r18_trns.cart_label_rent+"</li>":L='<li class="active own-it" data-type="downloads">'+window.r18_trns.cart_label_own+"</li>")),""!==M&&(q="channel-tab"==r?'<li data-type="subscribe" class="active subscribe-it">'+window.r18_trns.cart_label_subscribe+"</li>":'<li data-type="subscribe" class="subscribe-it">'+window.r18_trns.cart_label_subscribe+"</li>")}var Y="";if(Y+=_,Y+='<form action="#" class="cart-tabs js-add-to-cart-form '+r+'" id="'+i+'-content-wrapper">',Y+='<div class="cart-wrapper">',Y+='<ul id="cart-tabs">',Y+=L+N+q,Y+="</ul>",!u){Y+="own-tab"==r?'<div class="cart-box-contents contents_downloads">':'<div class="cart-box-contents contents_downloads" hidden>',Y+=' <ul class="list01" data-selected="">',Y+=l(t.items.price_info,i),""==E&&""==D&&(R=R.replace("<input","<input checked")),Y+=D+E+R,Y+=" </ul>";var J=W?W:U?U:F,Q=W?z:U?X:K;Y+=' <div data-content-id="'+i+'" class="add-to-cart-btn js-add-to-cart">'+window.r18_trns.cart_add+"</div>",Y+='<div class="cart-box-point_container">'+c(J,Q)+"</div>",Y+="</div>"}Y+=u?'<div class="cart-box-contents contents_rental">':'<div class="cart-box-contents contents_rental" hidden>',Y+=' <ul class="list01" data-selected="">',Y+=l(t.items.price_info,i),Y+=T,Y+=" </ul>",Y+=' <div data-content-id="'+i+'" class="add-to-cart-btn js-add-to-cart">'+window.r18_trns.cart_add+"</div>",Y+='<div class="cart-box-point_container">'+c(B,H)+"</div>",Y+="</div>",""!==M&&(Y+="channel-tab"==r?'<div class="cart-box-contents contents_subscribe">':'<div class="cart-box-contents contents_subscribe" hidden>',Y+='<ul class="list01" data-selected="'+v+'">',Y+=M,Y+="</ul>",!G<1?y&w|!w&&(Y+='<div data-content-id="'+i+'" class="add-to-cart-btn subscribe js-add-to-cart">'+window.r18_trns.cart_channel_subscribe+"</div>"):Y+='<div class="subscribed-all"></div>',Y+='<div class="cart-box-point_container">'+c($,0)+"</div>",Y+="</div>"),t.items.content_info.in_wishlist?(Y+='<div class="save-wishlist cmn-in-wishlist">',Y+='\t<span class="txt">'+window.r18_trns.cart_wish_added+"</span>"):(Y+='<div class="js-add-to-wishlist save-wishlist" data-wishlist-id="'+s+'">',Y+='\t<span class="txt">'+window.r18_trns.cart_wish_add+"</span>"),Y+="\t</div>",Y+="\t</div>",Y+="</form>",e(".cart-module").html(Y),e(".detail-movie-options").fadeIn(200),a&&(n._display_playback_support(),e(".js-add-to-cart-form input:checked[type=radio]").each(function(){var e=this.id;n._select_format_to_display(e)}))}function o(t,n,i,a,o,r,l){var c,u=e(".local-currency").find(":selected").attr("value")||"USD",p=" own-rent",m="",f="",h="detail"==location.pathname.split("/")[4],v=h?"detail":"modal";if("channel"===i)c=n.name,p=" cart-channel-logo channel-logo-"+t,(d().channels&&d().channels==n.id_tag||location.pathname.split("/")[3]==n.id_tag)&&(a||(m=" checked ",f=" activeLabel "));else{var g=n.option_type,c=c=window.r18_trns[g],b=/^own_4k_4k/.test(g),_=/^own_hd(_hd|_sd)?/.test(g),w=/^own_vr_hq/.test(g);b?(i+=" hd",d().channels||(m=" checked ",f=" activeLabel ")):_&&(i+=" hd",d().channels||l!==!1||(m=" checked ",f=" activeLabel ")),w&&(i+=" hq")}var y="";y+='<li class="on">',y+='<div class="btn01 clearfix">';var k=t;"channel"==i&&(k=22==t?"05":"04");var j="";if(j+='data-points="'+n.points+'" ',j+='data-points_pct="'+n.points_pct+'" ',j+='data-points_default="'+n.points_default+'" ',y+=" <label "+j+' class="txt01'+p+f+" "+i+'" for="label_'+k+'">',"channel"==i){n.subscribed?y+='<div class="subscribed-icon"></div>':r&"7"===t||(y+='\t<input type="radio" name="01" id="label_'+k+'" value="'+c+'"'+m+">"),y+='<div class="channel-cart-info"><strong>'+c+"</strong></div>",y+='<div class="js-item-data channel-price" data-product-id="channels" data-play-limit="1 month" data-product-type="Channel Subscription<br>1 Month" data-price="'+n.price_local+'" data-price-local="'+n.price_local+'" data-cta="Subscribe" data-subscribe-url="'+n.subscribe+"?dmmref=pc_vod_subscribe&i3_ref="+v+'">',y+=n.price_local+" "+u+" "+window.r18_trns.per_month+"</div>",n.subscribed&&(y+='<div class="channel-subscribed">'+window.r18_trns.cart_channel_subscribed+"</div>");var x=s(n.movie_count,n.update);y+='<div class="channel-updates">'+x+"</div>"}else{if(y+='\t<input type="radio" name="01" id="label_'+k+'" value="'+c+'"'+m+">",b){var C=c.replace(/^HD/,'<span class="hd-label">HD</span>');C=C.replace(/4K/,'<span class="hd-label">4K</span>'),y+='<span class="label-txt">'+C+"</span>"}else if(_){var C=c.replace(/^HD/,'<span class="hd-label">HD</span>');y+='<span class="label-txt">'+C+"</span>"}else if(w){var C=c.replace(/^HQ/,'<span class="hq-label">HQ</span>');C=C.replace(/Mobile/,'<span class="new-line">Mobile</span>'),y+='<span class="label-txt">'+C+"</span>"}else y+='<span class="label-txt">'+c+"</span>";var I=1==n.is_sale;y+=I?'<span class="js-item-data price on-sale" data-product-id="'+t+'"><del>'+n.price_local+" "+u+"</del> "+n.sale_local+" "+u+"</span>":'<span class="js-item-data price" data-product-id="'+t+'">'+n.price_local+" "+u+"</span>"}return y+=" </label>",y+="</div>",y+="</li>"}function s(e,t){var n=t.replace(/[^0-9]/g,"");return"<strong>"+e.toLocaleString()+window.r18_trns.movies+"</strong> - "+n.toLocaleString()+" +"+window.r18_trns.per_month}function r(t){e("body").on("click","#cart-tabs li",function(){if(e(this).hasClass("active"))return!1;e("#cart-tabs li").removeClass("active"),e(this).addClass("active"),"subscribe"==e(this).data("type")?e(this).parents("form").addClass("channel-tab"):e(this).parents("form").removeClass("channel-tab"),e(".cart-box-contents").hide(),e("input:radio[name=01]").prop("checked",!1);var t=".contents_"+e(this).data("type");if(e(this).parents(".cart-tabs").find(t).fadeIn(100),e(t).find("ul").data("selected")){var n=e(t).find("ul").data("selected");e(t).find("input#"+n).prop("checked",!0).trigger("click")}else e(t).find("input:radio[name=01]:not(:disabled):first").prop("checked",!0).trigger("click");var i=e(t).find(".activeLabel").data("points_default"),a=e(t).find(".activeLabel").data("points");e(t).find(".cart-box-point_container").html(""),e(t).find(".cart-box-point_container").html(c(i,a))}),e("body").on("click",".js-add-to-cart-form label",function(t){var n=e(this).data("points_default"),i=e(this).data("points");e(this).parents(".cart-box-contents").find(".cart-box-point_container").html(c(n,i))})}function l(t,n){var i=0;if(e.each(t,function(e,t){i=t.points_pct}),0==i||null==i)return"";var a="";return a+='<div class="points-cashback">',a+='<span class="bonus">'+i+'%</span> <span class="text">'+window.r18_trns.cart_point_bonus_points+"!</span>",a+="</div>"}function c(e,t){if(0==e||!e)return"";var n="";return n+='<div class="points-promotion">',n+='<div class="message">',n+='<span class="normal-points">'+window.r18_trns.cart_point_get+" "+e+" "+window.r18_trns.cart_point_points+"</span>",t>0&&(n+='<span class="special-points"> + '+t+" "+window.r18_trns.cart_point_bonus_points+"</span>"),n+="</div>",n+='<div class="fine-print">',n+="<span>"+window.r18_trns.cart_point_cc_payment_only+"</span>",n+="</div>",n+="</div>"}function d(){for(var e={},t=location.search.substr(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");e[i[0]]=decodeURIComponent(i[1])}return e}return e("body").on("click",".js-notice.notify",function(){e(this).fadeOut(150,function(){e(this).remove(),e(".js-whiteout:not(.black)").remove()})}),{_cart_box:i,_select_default:r}}),define("_msg",["jquery","_page","_video","_api","_cart_box","domReady!"],function(e,t,n,i,a){function o(t,n){n||(n=2e3);var i=document.createElement("div");i.className="js-mini-msg",i.innerHTML=t,document.getElementsByTagName("body")[0].appendChild(i),e(".js-mini-msg").stop(!0,!1).slideDown(150,function(){window.clearTimeout(t);var t=window.setTimeout(function(){e(".js-mini-msg").slideUp(150,function(){e(this).remove()})},n)})}function s(e,t){m(e,"notify",t)}function r(e,n){t.isNavigating||(m(e,"error"),n&&"function"==typeof n&&n())}function l(e){m(e,"warning")}function c(t){e("video").each(function(){e(this).get(0).pause()});var i="",o=(void 0!==t.contentId?t.contentId:"",void 0!==t.productPageUrl?t.productPageUrl:"");url=void 0!==t.url?t.url:"",title=void 0!==t.title?t.title:"",comment=void 0!==t.comment?t.comment:"",vidPoster=void 0!==t.videoPoster?t.videoPoster:"/assets/image/trpx.gif",i+='<div id="close-modal" class="js-player-close"></div>',i+='<div id="movie-player">',i+=' <div id="player">';var s="html5-video";t.detail?(i+='<video id="samplevideo" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width="640" height="360">',s="html5-video html5-video-640"):i+='<video id="samplevideo" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width="560" height="315" poster="'+vidPoster+'">';var r=t.videoLow,l=t.videoMed,c=t.videoHigh;if(i+=t.videoLow?'<source src="'+r.replace("http://","https://")+'" type="video/mp4" res="240" label="300 Kbps">':"",i+=t.videoMed?'<source src="'+l.replace("http://","https://")+'" type="video/mp4" res="480" label="1000 Kbps">':"",i+=t.videoHigh?'<source src="'+c.replace("http://","https://")+'" type="video/mp4" res="720" label="1500 Kbps">':"",i+='<p class="vjs-no-js">'+window.r18_trns.video_tag_not_supported+"</p>",i+="</video>",i+='</div">',!t.detail&&t.id&&(i+='<div class="html5-pop-details">',i+=' <div class="pop-img">',t.poster&&(i+="<a "+d(t)+' href="'+o+'"><img src="'+t.poster+'" /></a>'),i+="\t</div>",i+=' <div class="pop-title"><a '+d(t)+' href="'+o+'">'+title+"</a></div>",t.actress&&"----"!==t.actress&&(i+=' <span class="pop-actress">'+t.actress+"</span>"),i+=' <div class="pop-link"><a '+d(t)+' href="'+o+'">'+window.r18_trns.movie_details+"</a></div>",i+="</div>"),t.channel&&!t.id){if(s="html5-video html5-video-channel",t.id||(s+=" html5-video-no-cart"),i+='<div class="html5-pop-details html5-pop-channel">',i+=' <div class="pop-title"><a '+d(t)+' href="'+o+'">'+title+"</a></div>",t.actress&&(i+='<div class="pop-actress">'+t.actress+"</div>"),!t.id){var u=window.r18_trns.unlock_channel;i+=' <div class="box-modal-subscribe clearfix"><p class="">'+u.replace(/%s/g,t.channel.count)+"</p>",i+=' <a class="btn-ch-top btn-ch-top-subscribe" href="/my/channels/'+t.channel.name+'/subscribe/checkout/"><span>MONTHLY PLAN</span><p>'+t.channel.monthly+" JPY/mo<span>"+t.channel.monthly_local+"</span></p></a>",t.channel.campaign&&(i+=' <a class="btn-ch-top btn-ch-top-trial" href="/my/channels/'+t.channel.name+"/subscribe/checkout/?pc="+t.channel.campaign+'"><span>'+window.r18_trns.channel_trial+"</span><p>"+t.channel.trial+" JPY<span>"+t.channel.trial_local+"</span></p></a>")}i+=" </div>",i+="</div>"}i+="</div>",t.detail||(i+='<div class="cart-module" style="width: 235px;float: left;"></div>'),i+="</div>",m(i,s,null,function(){if(f=n.init("samplevideo",!0),"function"==typeof i3&&t.id){i3("create","sample");var i=e("<a>",{href:o})[0],s=i.search.substring(1).split("&"),r="",l="";if(s){for(var c=0;s[c];c++){var d=s[c].split("=");"i3_ref"==d[0]&&(l=d[1]),"dmmref"==d[0]&&(r=d[1])}i3("sample.set","detail",{via_info:l,via_option:r})}i3("sample.add","detail",{content_id:t.id}),i3("sample.send","click","play_sample")}e("html").css("overflow","hidden"),e("body").css("margin-right","15px"),t.id&&!t.detail&&a._cart_box(t.id,!1),a._select_default()},!0,function(){null!==f&&f.dispose()})}function d(e){var t=e.dmmref?" data-dmmref="+e.dmmref:"",n=e.i3ref?" data-i3ref="+e.i3ref:"",i=e.i3ord?" data-i3ord="+e.i3ord:"";return' class="i3NLink" '+t+n+i}function u(t,n,i,o){e("video").each(function(){e(this).get(0).pause()});const s=function(){if("function"==typeof i3&&t.id){i3("create","sample");var n=void 0!==t.productPageUrl?t.productPageUrl:"",i=e("<a>",{href:n})[0],o=i.search.substring(1).split("&"),s="",r="";if(o){for(var l=0;o[l];l++){var c=o[l].split("=");"i3_ref"==c[0]&&(r=c[1]),"dmmref"==c[0]&&(s=c[1])}i3("sample.set","detail",{via_info:r,via_option:s})}i3("sample.add","detail",{content_id:t.id}),i3("sample.send","click","play_sample")}e("html").css("overflow","hidden"),e("body").css("margin-right","15px"),t.id&&!t.detail&&a._cart_box(t.id,!1),a._select_default()};var r='<div id="close-modal" class="js-player-close"></div>';r+='<div id="movie-player">',r+=' <div id="player">';var l="html5-video";const c={url:n,format:i,angle:o};var u=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")};r+='<iframe src="/vrsampleplayer?'+u(c)+'" width="560" height="315" scrolling="no" frameborder="no" allowfullscreen style="border:none;display:block;"></iframe>',r+='</div">';const p=void 0!==t.productPageUrl?t.productPageUrl:"",f=void 0!==t.title?t.title:"";if(!t.detail&&t.id&&(r+='<div class="html5-pop-details">',r+=' <div class="pop-img">',t.poster&&(r+="<a "+d(t)+' href="'+p+'"><img src="'+t.poster+'" /></a>'),r+=" </div>",r+=' <div class="pop-title"><a '+d(t)+' href="'+p+'">'+f+"</a></div>",t.actress&&"----"!==t.actress&&(r+=' <span class="pop-actress">'+t.actress+"</span>"),r+=' <div class="pop-link"><a '+d(t)+' href="'+p+'">'+window.r18_trns.movie_details+"</a></div>",r+="</div>"),t.channel&&!t.id){if(l="html5-video html5-video-channel",t.id||(l+=" html5-video-no-cart"),r+='<div class="html5-pop-details html5-pop-channel">',r+=' <div class="pop-title"><a href="'+p+'">'+f+"</a></div>",t.actress&&(r+='<div class="pop-actress">'+t.actress+"</div>"),!t.id){var h=window.r18_trns.unlock_channel;r+=' <div class="box-modal-subscribe clearfix"><p class="">'+h.replace(/%s/g,t.channel.count)+"</p>",r+=' <a class="btn-ch-top btn-ch-top-subscribe" href="/my/channels/'+t.channel.name+'/subscribe/checkout/"><span>MONTHLY PLAN</span><p>'+t.channel.monthly+" JPY/mo<span>"+t.channel.monthly_local+"</span></p></a>",t.channel.campaign&&(r+=' <a class="btn-ch-top btn-ch-top-trial" href="/my/channels/'+t.channel.name+"/subscribe/checkout/?pc="+t.channel.campaign+'"><span>'+window.r18_trns.channel_trial+"</span><p>"+t.channel.trial+" JPY<span>"+t.channel.trial_local+"</span></p></a>")}r+=" </div>",r+="</div>"}r+="</div>",t.detail||(r+='<div class="cart-module" style="width: 235px;float: left;"></div>'),r+="</div>",m(r,l,null,s,!0,null)}function p(t){var n={poster:"",format:"",angle:"",url:"",id:""};e.extend(n,t);var i=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")},a="html5-video html5-video-640",o='<div id="close-modal" class="js-player-close"></div>';o+='<div id="movie-player">',o+='<div id="player" style="background:#121212">',o+='<iframe src="/vrsampleplayer?'+i(n)+'" width="640" height="360" scrolling="no" frameborder="no" allowfullscreen style="border:none;display:block;"></iframe>',o+="</div></div>",m(o,a,null,function(){"function"==typeof i3&&n.id&&(i3("create","sample"),i3("sample.add","detail",{content_id:n.id}),i3("sample.send","click","play_sample")),e("html").css("overflow","hidden"),e("body").css("margin-right","15px")},!0,function(){})}function m(t,n,i,a,o,s){var r=document.createElement("div"),l=document.createElement("div");document.getElementsByTagName("body");return o===!0?r.className="js-whiteout black":e(".js-whiteout").length>0?r.className="":r.className="js-whiteout ",l.className="js-notice "+n,l.innerHTML=t,document.getElementsByTagName("body")[0].appendChild(r),document.getElementsByTagName("body")[0].appendChild(l),e(".js-whiteout").fadeIn(250,function(){function t(){e(".js-notice:last").css("margin-left",(e(window).width()-e(".js-notice:last").outerWidth())/2)}t(),e(".js-notice").fadeIn(150),i&&(e("html").css("overflow",""),e("body").css("margin-right",""),window.setTimeout(function(){e(".js-notice, .js-whiteout").fadeOut(150,function(){e(this).remove()})},i)),e(window).on("resize",function(){t()}),e(".js-whiteout, .js-player-close, .js-close").on("click",function(t){e("html").css("overflow",""),e("body").css("margin-right",""),e(".js-notice").fadeOut(150).remove(),e(".js-whiteout").fadeOut(150,function(){e(this).remove(),"function"==typeof s&&s()})})}),a&&"function"==typeof a&&a(),this}var f=null;return e("a.js-pop-window").on("click",function(e){e.preventDefault(),window.open(this.href,"_blank","width=670,height=500")}),{_notify:s,_error:r,_warn:l,_mini:o,_video:c,_vrVideo:p,_3dVideo:u,_box:m}}),define("_account",["jquery","_csrf","_msg","domReady!"],function(e,t,n){e(".logout_device").click(function(){var i="/my/account/devices/remove/",a=t.get(),o=e(this).attr("login_device_type");e.ajax({method:"post",url:i,headers:{"X-R18-CSRF-Token":a},data:{device:o},success:function(e){location.reload()},error:function(e){console.log(e),n._error(e.responseJSON.message),t.set(e.responseJSON.csrf_token)}})}),e(".add_roku").click(function(t){var n=e("#roku_link"),i=n.data("src");t.stopPropagation(),t.preventDefault(),n.addClass("roku-inprogress"),e(".roku-error")&&e(".roku-error").remove(),e.ajax({method:"post",url:i,data:{code:e("#rokuCode").val()},success:function(t){n.removeClass("roku-inprogress"),"OK"===t.status?e("#roku_link").find(".roku-wrapper").html('<p class="roku-success">'+n.data("success")+"</p>"):e("#roku_link").find("form").prepend('<p class="roku-error">'+n.data("error")+"</p>")},error:function(t){e("#roku_link").find("form").prepend('<p class="roku-error">'+n.data("error")+"</p>")}})})}),define("_owl_trim",["jquery"],function(e){"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(e,t,n,i){var a={init:function(t,n){var i=this;i.$elem=e(n),i.options=e.extend({},e.fn.owlCarousel.options,i.$elem.data(),t),i.userOptions=t,i.loadContent()},loadContent:function(){var t=this;if("function"==typeof t.options.beforeInit&&t.options.beforeInit.apply(this,[t.$elem]),"string"==typeof t.options.jsonPath){var n=t.options.jsonPath;e.getJSON(n,function(e){if("function"==typeof t.options.jsonSuccess)t.options.jsonSuccess.apply(this,[e]);else{var n="";for(var i in e.owl)n+=e.owl[i].item;t.$elem.html(n)}t.logIn()})}else t.logIn()},logIn:function(e){var t=this;t.$elem.data("owl-originalStyles",t.$elem.attr("style")).data("owl-originalClasses",t.$elem.attr("class")),t.$elem.css({opacity:0}),t.orignalItems=t.options.items,t.checkBrowser(),t.wrapperWidth=0,t.setVars()},setVars:function(){var e=this;return 0!==e.$elem.children().length&&(e.baseClass(),e.eventTypes(),e.$userItems=e.$elem.children(),e.itemsAmount=e.$userItems.length,e.wrapItems(),e.$owlItems=e.$elem.find(".owl-item"),e.$owlWrapper=e.$elem.find(".owl-wrapper"),e.playDirection="next",e.prevItem=0,e.prevArr=[0],e.currentItem=0,e.customEvents(),void e.onStartup())},onStartup:function(){var e=this;e.calculateAll(),e.moveEvents(),e.stopOnHover(),e.owlStatus(),e.options.transitionStyle!==!1&&e.transitionTypes(e.options.transitionStyle),e.options.autoPlay===!0&&(e.options.autoPlay=5e3),e.play(),e.$elem.find(".owl-wrapper").css("display","block"),e.$elem.is(":visible")?e.$elem.css("opacity",1):e.watchVisibility(),e.onstartup=!1,e.eachMoveUpdate(),"function"==typeof e.options.afterInit&&e.options.afterInit.apply(this,[e.$elem])},eachMoveUpdate:function(){var e=this;e.options.lazyLoad===!0&&e.lazyLoad(),e.onVisibleItems(),"function"==typeof e.options.afterAction&&e.options.afterAction.apply(this,[e.$elem])},updateVars:function(){var e=this;"function"==typeof e.options.beforeUpdate&&e.options.beforeUpdate.apply(this,[e.$elem]),e.watchVisibility(),e.calculateAll(),e.updatePosition(),e.eachMoveUpdate(),"function"==typeof e.options.afterUpdate&&e.options.afterUpdate.apply(this,[e.$elem])},reload:function(e){var t=this;setTimeout(function(){t.updateVars()},0)},watchVisibility:function(){var e=this;return e.$elem.is(":visible")===!1&&(e.$elem.css({opacity:0}),clearInterval(e.autoPlayInterval),clearInterval(e.checkVisible),void(e.checkVisible=setInterval(function(){e.$elem.is(":visible")&&(e.reload(),e.$elem.animate({opacity:1},200),clearInterval(e.checkVisible))},500)))},wrapItems:function(){var e=this;e.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'),e.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),e.wrapperOuter=e.$elem.find(".owl-wrapper-outer"),e.$elem.css("display","block")},baseClass:function(){var e=this,t=e.$elem.hasClass(e.options.baseClass),n=e.$elem.hasClass(e.options.theme);t||e.$elem.addClass(e.options.baseClass),n||e.$elem.addClass(e.options.theme)},updateItems:function(){var t=this;if(t.options.responsive===!1)return!1;if(t.options.singleItem===!0)return t.options.items=t.orignalItems=1,t.options.itemsDesktop=!1,t.options.itemsDesktopSmall=!1,t.options.itemsTablet=!1,t.options.itemsTabletSmall=!1,t.options.itemsMobile=!1,!1;var n=e(t.options.responsiveBaseWidth).width();n>(t.options.itemsDesktop[0]||t.orignalItems)&&(t.options.items=t.orignalItems),n<=t.options.itemsDesktop[0]&&t.options.itemsDesktop!==!1&&(t.options.items=t.options.itemsDesktop[1]),n<=t.options.itemsDesktopSmall[0]&&t.options.itemsDesktopSmall!==!1&&(t.options.items=t.options.itemsDesktopSmall[1]),n<=t.options.itemsTablet[0]&&t.options.itemsTablet!==!1&&(t.options.items=t.options.itemsTablet[1]),n<=t.options.itemsTabletSmall[0]&&t.options.itemsTabletSmall!==!1&&(t.options.items=t.options.itemsTabletSmall[1]),n<=t.options.itemsMobile[0]&&t.options.itemsMobile!==!1&&(t.options.items=t.options.itemsMobile[1]),t.options.items>t.itemsAmount&&t.options.itemsScaleUp===!0&&(t.options.items=t.itemsAmount)},updatePosition:function(){var e=this;e.jumpTo(e.currentItem),e.options.autoPlay!==!1&&e.checkAp()},appendItemsSizes:function(){var t=this,n=0,i=t.itemsAmount-t.options.items;t.$owlItems.each(function(a){var o=e(this);o.css({width:t.itemWidth}).data("owl-item",Number(a)),a%t.options.items!==0&&a!==i||i>=a&&(n+=1),o.data("owl-roundPages",n)})},appendWrapperSizes:function(){var e=this,t=0;t=e.$owlItems.length*e.itemWidth,e.$owlWrapper.css({width:2*t,left:0}),e.appendItemsSizes()},calculateAll:function(){var e=this;e.calculateWidth(),e.appendWrapperSizes(),e.loops(),e.max()},calculateWidth:function(){var e=this;e.itemWidth=Math.round(e.$elem.width()/e.options.items)},max:function(){var e=this,t=(e.itemsAmount*e.itemWidth-e.options.items*e.itemWidth)*-1;return e.options.items>e.itemsAmount?(e.maximumItem=0,t=0,e.maximumPixels=0):(e.maximumItem=e.itemsAmount-e.options.items,e.maximumPixels=t),t},min:function(){return 0},loops:function(){var t=this;t.positionsInArray=[0],t.pagesInArray=[];for(var n=0,i=0,a=0;a<t.itemsAmount;a++)if(i+=t.itemWidth,t.positionsInArray.push(-i),t.options.scrollPerPage===!0){var o=e(t.$owlItems[a]),s=o.data("owl-roundPages");s!==n&&(t.pagesInArray[n]=t.positionsInArray[a],n=s)}},next:function(e){var t=this;if(t.isTransition)return!1;if(t.currentItem+=t.options.scrollPerPage===!0?t.options.items:1,t.currentItem>t.maximumItem+(t.options.scrollPerPage===!0?t.options.items-1:0)){if(t.options.rewindNav!==!0)return t.currentItem=t.maximumItem,!1;t.currentItem=0,e="rewind"}t.goTo(t.currentItem,e)},prev:function(e){var t=this;if(t.isTransition)return!1;if(t.options.scrollPerPage===!0&&t.currentItem>0&&t.currentItem<t.options.items?t.currentItem=0:t.currentItem-=t.options.scrollPerPage===!0?t.options.items:1,t.currentItem<0){if(t.options.rewindNav!==!0)return t.currentItem=0,!1;t.currentItem=t.maximumItem,e="rewind"}t.goTo(t.currentItem,e)},goTo:function(e,t,n){var i=this;if(i.isTransition)return!1;if("function"==typeof i.options.beforeMove&&i.options.beforeMove.apply(this,[i.$elem]),e>=i.maximumItem?e=i.maximumItem:e<=0&&(e=0),
i.currentItem=i.owl.currentItem=e,i.options.transitionStyle!==!1&&"drag"!==n&&1===i.options.items&&i.browser.support3d===!0)return i.swapSpeed(0),i.browser.support3d===!0?i.transition3d(i.positionsInArray[e]):i.css2slide(i.positionsInArray[e],1),i.afterGo(),i.singleItemTransition(),!1;var a=i.positionsInArray[e];i.browser.support3d===!0?(i.isCss3Finish=!1,t===!0?(i.swapSpeed("paginationSpeed"),setTimeout(function(){i.isCss3Finish=!0},i.options.paginationSpeed)):"rewind"===t?(i.swapSpeed(i.options.rewindSpeed),setTimeout(function(){i.isCss3Finish=!0},i.options.rewindSpeed)):(i.swapSpeed("slideSpeed"),setTimeout(function(){i.isCss3Finish=!0},i.options.slideSpeed)),i.transition3d(a)):t===!0?i.css2slide(a,i.options.paginationSpeed):"rewind"===t?i.css2slide(a,i.options.rewindSpeed):i.css2slide(a,i.options.slideSpeed),i.afterGo()},jumpTo:function(e){var t=this;"function"==typeof t.options.beforeMove&&t.options.beforeMove.apply(this,[t.$elem]),e>=t.maximumItem||e===-1?e=t.maximumItem:e<=0&&(e=0),t.swapSpeed(0),t.browser.support3d===!0?t.transition3d(t.positionsInArray[e]):t.css2slide(t.positionsInArray[e],1),t.currentItem=t.owl.currentItem=e,t.afterGo()},afterGo:function(){var e=this;e.prevArr.push(e.currentItem),e.prevItem=e.owl.prevItem=e.prevArr[e.prevArr.length-2],e.prevArr.shift(0),e.prevItem!==e.currentItem&&(e.eachMoveUpdate(),e.options.autoPlay!==!1&&e.checkAp()),"function"==typeof e.options.afterMove&&e.prevItem!==e.currentItem&&e.options.afterMove.apply(this,[e.$elem])},stop:function(){var e=this;e.apStatus="stop",clearInterval(e.autoPlayInterval)},checkAp:function(){var e=this;"stop"!==e.apStatus&&e.play()},play:function(){var e=this;return e.apStatus="play",e.options.autoPlay!==!1&&(clearInterval(e.autoPlayInterval),void(e.autoPlayInterval=setInterval(function(){e.next(!0)},e.options.autoPlay)))},swapSpeed:function(e){var t=this;"slideSpeed"===e?t.$owlWrapper.css(t.addCssSpeed(t.options.slideSpeed)):"paginationSpeed"===e?t.$owlWrapper.css(t.addCssSpeed(t.options.paginationSpeed)):"string"!=typeof e&&t.$owlWrapper.css(t.addCssSpeed(e))},addCssSpeed:function(e){return{"-webkit-transition":"all "+e+"ms ease","-moz-transition":"all "+e+"ms ease","-o-transition":"all "+e+"ms ease",transition:"all "+e+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(e){return{"-webkit-transform":"translate3d("+e+"px, 0px, 0px)","-moz-transform":"translate3d("+e+"px, 0px, 0px)","-o-transform":"translate3d("+e+"px, 0px, 0px)","-ms-transform":"translate3d("+e+"px, 0px, 0px)",transform:"translate3d("+e+"px, 0px,0px)"}},transition3d:function(e){var t=this;t.$owlWrapper.css(t.doTranslate(e))},css2move:function(e){var t=this;t.$owlWrapper.css({left:e})},css2slide:function(e,t){var n=this;n.isCssFinish=!1,n.$owlWrapper.stop(!0,!0).animate({left:e},{duration:t||n.options.slideSpeed,complete:function(){n.isCssFinish=!0}})},checkBrowser:function(){var e=this,i="translate3d(0px, 0px, 0px)",a=n.createElement("div");a.style.cssText=" -moz-transform:"+i+"; -ms-transform:"+i+"; -o-transform:"+i+"; -webkit-transform:"+i+"; transform:"+i;var o=/translate3d\(0px, 0px, 0px\)/g,s=a.style.cssText.match(o),r=null!==s&&1===s.length,l="ontouchstart"in t||navigator.msMaxTouchPoints;e.browser={support3d:r,isTouch:l}},moveEvents:function(){var e=this;e.options.mouseDrag===!1&&e.options.touchDrag===!1||(e.gestures(),e.disabledEvents())},eventTypes:function(){var e=this,t=["s","e","x"];e.ev_types={},e.options.mouseDrag===!0&&e.options.touchDrag===!0?t=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:e.options.mouseDrag===!1&&e.options.touchDrag===!0?t=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:e.options.mouseDrag===!0&&e.options.touchDrag===!1&&(t=["mousedown.owl","mousemove.owl","mouseup.owl"]),e.ev_types.start=t[0],e.ev_types.move=t[1],e.ev_types.end=t[2]},disabledEvents:function(){var t=this;t.$elem.on("dragstart.owl",function(e){e.preventDefault()}),t.$elem.on("mousedown.disableTextSelect",function(t){return e(t.target).is("input, textarea, select, option")})},gestures:function(){function a(e){return e.touches?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.pageX!==i?{x:e.pageX,y:e.pageY}:{x:e.clientX,y:e.clientY}}function o(t){"on"===t?(e(n).on(c.ev_types.move,r),e(n).on(c.ev_types.end,l)):"off"===t&&(e(n).off(c.ev_types.move),e(n).off(c.ev_types.end))}function s(n){if(n=n.originalEvent||n||t.event,3===n.which)return!1;if(c.itemsAmount<=c.options.items)return!1;if(c.isCssFinish===!1&&!c.options.dragBeforeAnimFinish)return!1;if(c.isCss3Finish===!1&&!c.options.dragBeforeAnimFinish)return!1;c.options.autoPlay!==!1&&clearInterval(c.autoPlayInterval),c.browser.isTouch===!0||c.$owlWrapper.hasClass("grabbing")||c.$owlWrapper.addClass("grabbing"),c.newPosX=0,c.newRelativeX=0,e(this).css(c.removeTransition());var i=e(this).position();d.relativePos=i.left,d.offsetX=a(n).x-i.left,d.offsetY=a(n).y-i.top,o("on"),d.sliding=!1,d.targetElement=n.target||n.srcElement}function r(i){i=i.originalEvent||i||t.event,c.newPosX=a(i).x-d.offsetX,c.newPosY=a(i).y-d.offsetY,c.newRelativeX=c.newPosX-d.relativePos,"function"==typeof c.options.startDragging&&d.dragging!==!0&&0!==c.newRelativeX&&(d.dragging=!0,c.options.startDragging.apply(c,[c.$elem])),(c.newRelativeX>8||c.newRelativeX<-8&&c.browser.isTouch===!0)&&(i.preventDefault?i.preventDefault():i.returnValue=!1,d.sliding=!0),(c.newPosY>10||c.newPosY<-10)&&d.sliding===!1&&e(n).off("touchmove.owl");var o=function(){return c.newRelativeX/5},s=function(){return c.maximumPixels+c.newRelativeX/5};c.newPosX=Math.max(Math.min(c.newPosX,o()),s()),c.browser.support3d===!0?c.transition3d(c.newPosX):c.css2move(c.newPosX)}function l(n){if(n=n.originalEvent||n||t.event,n.target=n.target||n.srcElement,d.dragging=!1,c.browser.isTouch!==!0&&c.$owlWrapper.removeClass("grabbing"),c.newRelativeX<0?c.dragDirection=c.owl.dragDirection="left":c.dragDirection=c.owl.dragDirection="right",0!==c.newRelativeX){var i=c.getNewPosition();if(c.goTo(i,!1,"drag"),d.targetElement===n.target&&c.browser.isTouch!==!0){e(n.target).on("click.disable",function(t){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),e(n.target).off("click.disable")});var a=e._data(n.target,"events").click,s=a.pop();a.splice(0,0,s)}}o("off")}var c=this,d={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};c.isCssFinish=!0,c.$elem.on(c.ev_types.start,".owl-wrapper",s)},getNewPosition:function(){var e,t=this;return e=t.closestItem(),e>t.maximumItem?(t.currentItem=t.maximumItem,e=t.maximumItem):t.newPosX>=0&&(e=0,t.currentItem=0),e},closestItem:function(){var t=this,n=t.options.scrollPerPage===!0?t.pagesInArray:t.positionsInArray,i=t.newPosX,a=null;return e.each(n,function(o,s){i-t.itemWidth/20>n[o+1]&&i-t.itemWidth/20<s&&"left"===t.moveDirection()?(a=s,t.options.scrollPerPage===!0?t.currentItem=e.inArray(a,t.positionsInArray):t.currentItem=o):i+t.itemWidth/20<s&&i+t.itemWidth/20>(n[o+1]||n[o]-t.itemWidth)&&"right"===t.moveDirection()&&(t.options.scrollPerPage===!0?(a=n[o+1]||n[n.length-1],t.currentItem=e.inArray(a,t.positionsInArray)):(a=n[o+1],t.currentItem=o+1))}),t.currentItem},moveDirection:function(){var e,t=this;return t.newRelativeX<0?(e="right",t.playDirection="next"):(e="left",t.playDirection="prev"),e},customEvents:function(){var e=this;e.$elem.on("owl.next",function(){e.next()}),e.$elem.on("owl.prev",function(){e.prev()}),e.$elem.on("owl.play",function(t,n){e.options.autoPlay=n,e.play(),e.hoverStatus="play"}),e.$elem.on("owl.stop",function(){e.stop(),e.hoverStatus="stop"}),e.$elem.on("owl.goTo",function(t,n){e.goTo(n)}),e.$elem.on("owl.jumpTo",function(t,n){e.jumpTo(n)})},stopOnHover:function(){var e=this;e.options.stopOnHover===!0&&e.browser.isTouch!==!0&&e.options.autoPlay!==!1&&(e.$elem.on("mouseover",function(){e.stop()}),e.$elem.on("mouseout",function(){"stop"!==e.hoverStatus&&e.play()}))},lazyLoad:function(){var t=this;if(t.options.lazyLoad===!1)return!1;for(var n=0;n<t.itemsAmount;n++){var a=e(t.$owlItems[n]);if("loaded"!==a.data("owl-loaded")){var o,s=a.data("owl-item"),r=a.find(".lazyOwl");"string"==typeof r.data("src")?(a.data("owl-loaded")===i&&(r.hide(),a.addClass("loading").data("owl-loaded","checked")),o=t.options.lazyFollow!==!0||s>=t.currentItem,o&&s<t.currentItem+t.options.items&&r.length&&t.lazyPreload(a,r)):a.data("owl-loaded","loaded")}}},lazyPreload:function(e,t){function n(){o+=1,a.completeImg(t.get(0))||s===!0?i():o<=100?setTimeout(n,100):i()}function i(){e.data("owl-loaded","loaded").removeClass("loading"),t.removeAttr("data-src"),"fade"===a.options.lazyEffect?t.fadeIn(400):t.show(),"function"==typeof a.options.afterLazyLoad&&a.options.afterLazyLoad.apply(this,[a.$elem])}var a=this,o=0;if("DIV"===t.prop("tagName")){t.css("background-image","url("+t.data("src")+")");var s=!0}else t[0].src=t.data("src");n()},completeImg:function(e){return!!e.complete&&("undefined"==typeof e.naturalWidth||0!==e.naturalWidth)},onVisibleItems:function(){var t=this;t.options.addClassActive===!0&&t.$owlItems.removeClass("active"),t.visibleItems=[];for(var n=t.currentItem;n<t.currentItem+t.options.items;n++)t.visibleItems.push(n),t.options.addClassActive===!0&&e(t.$owlItems[n]).addClass("active");t.owl.visibleItems=t.visibleItems},transitionTypes:function(e){var t=this;t.outClass="owl-"+e+"-out",t.inClass="owl-"+e+"-in"},singleItemTransition:function(){function e(e,t){return{position:"relative",left:e+"px"}}var t=this;t.isTransition=!0;var n=t.outClass,i=t.inClass,a=t.$owlItems.eq(t.currentItem),o=t.$owlItems.eq(t.prevItem),s=Math.abs(t.positionsInArray[t.currentItem])+t.positionsInArray[t.prevItem],r=Math.abs(t.positionsInArray[t.currentItem])+t.itemWidth/2;t.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":r+"px","-moz-perspective-origin":r+"px","perspective-origin":r+"px"});var l="webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";o.css(e(s,10)).addClass(n).on(l,function(){t.endPrev=!0,o.off(l),t.clearTransStyle(o,n)}),a.addClass(i).on(l,function(){t.endCurrent=!0,a.off(l),t.clearTransStyle(a,i)})},clearTransStyle:function(e,t){var n=this;e.css({position:"",left:""}).removeClass(t),n.endPrev&&n.endCurrent&&(n.$owlWrapper.removeClass("owl-origin"),n.endPrev=!1,n.endCurrent=!1,n.isTransition=!1)},owlStatus:function(){var e=this;e.owl={userOptions:e.userOptions,baseElement:e.$elem,userItems:e.$userItems,owlItems:e.$owlItems,currentItem:e.currentItem,prevItem:e.prevItem,visibleItems:e.visibleItems,isTouch:e.browser.isTouch,browser:e.browser,dragDirection:e.dragDirection}},clearEvents:function(){var i=this;i.$elem.off(".owl owl mousedown.disableTextSelect"),e(n).off(".owl owl"),e(t).off("resize",i.resizer)},unWrap:function(){var e=this;0!==e.$elem.children().length&&(e.$owlWrapper.unwrap(),e.$userItems.unwrap().unwrap(),e.owlControls&&e.owlControls.remove()),e.clearEvents(),e.$elem.attr("style",e.$elem.data("owl-originalStyles")||"").attr("class",e.$elem.data("owl-originalClasses"))},destroy:function(){var e=this;e.stop(),clearInterval(e.checkVisible),e.unWrap(),e.$elem.removeData()},reinit:function(t){var n=this,i=e.extend({},n.userOptions,t);n.unWrap(),n.init(i,n.$elem)},addItem:function(e,t){var n,a=this;return!!e&&(0===a.$elem.children().length?(a.$elem.append(e),a.setVars(),!1):(a.unWrap(),n=t===i||t===-1?-1:t,n>=a.$userItems.length||n===-1?a.$userItems.eq(-1).after(e):a.$userItems.eq(n).before(e),void a.setVars()))}};e.fn.owlCarousel=function(t){return this.each(function(){if(e(this).data("owl-init")===!0)return!1;e(this).data("owl-init",!0);var n=Object.create(a);n.init(t,this),e.data(this,"owlCarousel",n)})},e.fn.owlCarousel.options={items:5,singleItem:!1,itemsScaleUp:!1,slideSpeed:500,paginationSpeed:500,rewindSpeed:500,autoPlay:!1,stopOnHover:!1,rewindNav:!0,scrollPerPage:!0,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!0,lazyFollow:!0,lazyEffect:"fade",jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(e,window,document)}),define("_aspect",["jquery","domReady!"],function(e){function t(t){if(0===e(t).width()){var n=new Image;n.onload=function(){this.width>this.height?e(t).addClass("js-aspect-landscape"):e(t).addClass("js-aspect-portrait"),delete n.onload},n.src=e(t).data("src")||e(t).attr("src")}else e(t).width()>e(t).height()?e(t).addClass("js-aspect-landscape"):e(t).addClass("js-aspect-portrait")}return{init:t}}),define("_i3",["jquery","domReady!"],function(e){function t(e,t){a[t]=e}function n(e,t){if("function"==typeof i3){var n="rec_"+Date.now(),i=5;i3("create",n),i3(n+".set","recommend",{type:a[t].items[0].tracking_id,hit_count:a[t].items.length,page_number:Math.ceil(e/i+1),limit:a[t].items.length,show_count:i});for(var o=e;o<i+e;o++)o<a[t].items.length&&i3(n+".add","recommend",{content_id:a[t].items[o].content_id,product_id:a[t].items[o].content_id,price:parseInt(a[t].items[o].price.replace(",",""),10),has_stock:!0});i3(n+".send","show","recommend")}}function i(e,t,n,i){if("function"==typeof i3){var a="rec_"+Date.now();void 0!==i&&null!==i||(i=5),i3("create",a),i3(a+".set","recommend",{type:n[0].tracking_id,hit_count:n.length,page_number:Math.ceil(e/i+1),limit:n.length,show_count:i});for(var o=e;o<i+e;o++)o<i+e&&i3(a+".add","recommend",{content_id:n[o].content_id,product_id:n[o].content_id,price:n[o].price,has_stock:!0});i3(a+".send","show","recommend")}}var a={};return{initRcmCaro:t,sendRcmCaro:n,sendHomeRcmCaro:i}}),define("_carousel",["jquery","_owl_trim","_aspect","_i3"],function(e,t,n,i){function a(t){var a=t?e(t):e(".js-carousel").not(".js-api-carousel");if(a)for(var o=function(t){var a=e(t).find("ul")[0],o=a.className.split(" ");_afterInit=function(){if(this.owl.visibleItems.length>=this.owl.owlItems.length&&e(t).addClass("caro-hide-next"),a.className.indexOf("js-home-rcmd-init")!==-1)for(_class in o)if(o[_class].indexOf("js-home-rcmd-init")!==-1){var n=[];e(a).find("li").each(function(t){n.push(e(this).data())}),i.sendHomeRcmCaro(this.owl.currentItem,o[_class],n);break}},_afterMove=function(){e(".js-owl-current")&&e(".js-owl-current").html(this.owl.currentItem+1),this.owl.visibleItems[this.owl.visibleItems.length-1]===this.owl.owlItems.length-1?e(t).addClass("caro-hide-next"):e(t).removeClass("caro-hide-next"),0===this.owl.currentItem?e(t).addClass("caro-hide-prev"):e(t).removeClass("caro-hide-prev");var n=e(t).find("ul")[0],a=n.className.split(" ");if(n.className.indexOf("js-rcmd")!==-1)for(var o in a)if(a[o].indexOf("js-rcmd")!==-1){i.sendRcmCaro(this.owl.currentItem,a[o]);break}if(n.className.indexOf("js-home-rcmd")!==-1)for(var o in a)if(a[o].indexOf("js-home-rcm")!==-1){var s=[];e(n).find("li").each(function(t){console.log(e(this).data()),s.push(e(this).data())}),i.sendHomeRcmCaro(this.owl.currentItem,a[o],s);break}};var s=5,r=t.className.split(/\s+/);if(r)for(var l=0;l<r.length;l++)r[l].indexOf("js-carousel-")!=-1&&(s=r[l].split("-"),s=parseInt(s[2][0],10));if(1===s)if(_afterLazyLoad=function(){e(".js-carousel-1 li img").removeClass("js-aspect-portrait").removeClass("js-aspect-landscape"),e.each(e(".js-carousel-1 li img"),function(){n.init(e(this))})},_singleItem=!0,_rewindNav=!1,_paginationNumbers=!0,e(".cmn-box-slider01.js-carousel-1").length>0){var c=e(".cmn-box-slider01.js-carousel-1 li")[0];e(c).clone(!0).removeClass("on").appendTo(e(".cmn-box-slider01.js-carousel-1 ul")),_autoplay=!0,_afterMove=function(){if(this.owl.currentItem===this.owl.owlItems.length-1)var t=this,n=window.setTimeout(function(){t.jumpTo(0),window.clearTimeout(n)},500);e(".js-owl-current")&&e(".js-owl-current").html(this.owl.currentItem+1)}}else _autoplay=!1;else _singleItem=!1,_rewindNav=!1,_paginationNumbers=!1,_autoplay=!1,_afterLazyLoad=!1;var d=e(t).children(".js-owl-carousel");e(d).owlCarousel({items:s,singleItem:_singleItem,lazyLoad:!0,lazyEffect:!0,pagination:!1,scrollPerPage:!0,rewindNav:_rewindNav,navigation:!1,paginationNumbers:_paginationNumbers,autoPlay:_autoplay,afterInit:_afterInit,afterMove:_afterMove,afterLazyLoad:_afterLazyLoad}),e(t).find(".js-prev a").click(function(){d.trigger("owl.prev")}),e(t).find(".js-next a").click(function(){d.trigger("owl.next")}),e(t).addClass("caro-hide-prev")},s=0;s<a.length;s++)o(a[s])}return a(),{init:a}}),define("_ajax_carousel",["jquery","_api","_carousel","_i3"],function(e,t,n,a){function o(o,r,l){t.doAJAX(o,l,function(d){if(o!==t.endpoint.recommend.popular&&o!==t.endpoint.recommend.related&&o!==t.endpoint.recommend.user||!Array.isArray(d)||(d.items=d,r.className.split(" ").forEach(function(e){e.indexOf("js-rcmd")!==-1&&(a.initRcmCaro(d,e),a.sendRcmCaro(0,e))})),d&&d.hasOwnProperty("items")&&d.items.length>0){var u="";for(i=0;i<d.items.length;i++)u+=s(d.items[i],l.unit,i+1,c);e(r).is("ul")&&(e(r).append(u),n.init(e(r).closest(".js-carousel")))}},function(){})}function s(e,t,n,i){var a=r(e),o=e.hasOwnProperty("name")?e.name:e.title,o="string"==typeof o?o.replace(/"/g,"'"):"",s=1==e.sale,l=s?e.sale_local:e["price-local"],c=!!e.hasOwnProperty("is_vr")&&e.is_vr,d=s?"<span>"+i+"</span>":"",u="";if(s||c){var p=[];s&&p.push("saleRibbon"),c&&p.push("vrRibbon");var m=p.join(" "),f=[],h=c&&!s?"VR":i;f.push('<span class="'+m+'">'),f.push(h),f.push("</span>"),u=f.join("")}var v=e.dvd_id?e.dvd_id:e.content_id,g=[],b=e.tracking_id?"data-dmmref="+e.tracking_id:"";return g.push('<li class="item-list '+(s?"is-sale":"")+'">'),g.push('<a class="i3NLink" '+b+" data-i3ref= recommend data-i3ord="+n+' href="'+e.url+'">'),g.push(u),g.push("<p>"),g.push('<img alt="'+v+'" class="lazyOwl" src="/assets/image/common/img-147x200.gif" data-src="'+a+'" width="147" height="200" style="display:inline">'),g.push("</p>"),g.push("<dl>"),g.push("<dt>"),g.push(d),g.push(o),g.push("</dt>"),g.push("<dd>~"+l+"&nbsp;"+t+"&nbsp;-</dd>"),g.push("</dl>"),g.push("</a>"),g.push("</li>"),g.join("")}function r(e){return e.hasOwnProperty("package")?e.package.medium:e.hasOwnProperty("image")?e.image.medium:e.img}var l=document.querySelector(".js-api-carousel"),c="";return l&&(c=void 0!==l.getAttribute("data-sale-text")?l.getAttribute("data-sale-text"):""),["related","popular","user"].map(function(n){e(".js-rcmd-"+n).each(function(){var i=t.mergeParams(e(this).data());i.content_id=i.id,i.ua=navigator.userAgent,delete i.id,o(t.endpoint.recommend[n],this,i)})}),{init:o}}),define("_agegate",["jquery","domReady!"],function(e,t){e(".js-agegate").on("click",function(){document.cookie="mack=1",e(".agegate").fadeOut("100",function(){e("#wrapper, #footer").fadeIn("300")})}),e(".js-agegate-sa").on("click",function(t){t.preventDefault(),document.cookie="mack=1",window.location.href=e(this)[0].href})}),define("_header_dropdown",["jquery","domReady!"],function(e){e(".js-mycart-active").on("click",function(n){const i=e(".js-mycart-active").first(),a=i.hasClass("update-cart-count-only")||i.hasClass("update-cart-count-only-cartselector");a||(n.preventDefault(),t())}),e(".header-myaccount").on("click",function(){n(".my-account-list",null)}),e(".js-dropdown-trigger").on("click",function(t){var i=e(this).children(".hd-sec-dropDown01");i&&n(i)});var t=function(e){n(".hd-sec-dropDown02",e)},n=function(t,n){e(t).stop(!0,!1).slideDown(250,function(){e(this).parent("li").addClass("active"),e(t).on("click",function(e){e.stopPropagation()}),e("html").on("click",function(){e(t).stop(!0,!1).slideUp(250),e(t).parent("li").removeClass("active"),e("html").unbind("click")}),e(t).find(".hd-btn-dropDownClose01").on("click",function(){e(t).slideUp(250,function(){e(t).parent("li").removeClass("active"),e("html").unbind("click")})}),n&&"function"==typeof n&&n()})};return{openCart:t}}),define("_header_cart",["jquery","_header_dropdown","_msg","domReady!"],function(e,t,n){function i(){e(".js-cart-list").html(e(".js-emptycart-html").html()),e(".js-cart-list .hd-box-dropDownEmpty01").fadeIn()}function a(t){e("#"+t).animate({height:"0px",opacity:"0"},function(){e(this).remove()})}function o(t){var n=e(".local-currency").find(":selected").attr("value")||"USD",i=t.type.replace(/^HD\s/,'<span class="icon-hd">HD&nbsp;</span>');i=i.replace(/^HQ\s/,'<span class="icon-hq">HQ&nbsp;</span>'),i=i.replace(/4K\s/,'<span class="icon-hd">4K&nbsp;</span>');var a=[];return a.push('<li id="cart-'+t.id+'" data-contentid="'+t.contentID+'"style="display:none;">'),a.push('<p class="close01"></p>'),a.push('<a class="clearfix">'),a.push('<p class="flImgL">'),a.push('<img src="'+t.img_url+'" width="64" alt="'+t.title+'">'),a.push("</p>"),a.push('<div class="ftBox">'),a.push('<p class="product_type">'+i+"</p>"),a.push('<p class="ttl01">'+t.title+"</p>"),a.push('<div class="clearfix">'),a.push('<p class="product_price">'+t.price_local+" "+n+"</p>"),a.push("</div>"),a.push("</div>"),a.push("</a>"),a.push("</li>"),a.join("")}function s(n,i,a){var s=o(n);e(".js-cart-list").prepend(s),a?e("#cart-"+n.id).fadeIn(150):t.openCart(function(){e("#cart-"+n.id).slideDown(150).addClass("add"),setTimeout(function(){e("#cart-"+n.id).removeClass("add")},170)}),i&&"function"==typeof i&&i()}function r(t){e(".numberMyCart span").html(t),t>0?(e(".numberMyCart").show(),e(".numberMyCart").parents("li").removeClass("cart-0"),e(".hd-box-dropDownEmpty01").fadeOut(150,function(){})):(e(".numberMyCart").parents("li").addClass("cart-"+t),e(".numberMyCart").hide(),i())}return function(){var t=e("#ajaxurl-cart-count").data("src");t&&e.post(t,{getcount:!0},function(t){switch(t.status){case"OK":r(t.cartcount),e(".numberMyCart span").addClass("loaded");break;case"FAIL":n._notify(t.msg)}})}(),{addToCart:s,animateRemoveFromHeaderCart:a,updateCountDisplay:r}}),define("_cart",["jquery","_header_cart","_msg","_csrf","domReady!"],function(e,t,n,i){function a(){v=e(".js-cart-list li");for(var t=v.length-1;t>=0;t--)h.push(v[t].id)}function o(o,s,r){if(b)n._mini(window.r18_trns.fetching_cart_data);else{g?s=!0:b=!0;var c=g?e("#ajaxurl-add-to-cart").data("src"):e("#ajaxurl-get-cart").data("src"),d=o,u=e("#"+d+"-content-wrapper input[type=radio]:checked").parent().find(".js-item-data").data("product-id");u||(u=e("#"+d).data("product-id")),e.post(c,{contentid:d,productid:u,add:s,csrf_token:i.get()},function(o){if(o.status){switch(o.status){case"OK":if(o.hasOwnProperty("products")&&o.products.length>0&&(o.product=o.products[0]),!g){t.updateCountDisplay(o.cartcount);for(var c=o.addToCart?1:0,p=o.products.length-1;p>=c;p--)t.addToCart(o.products[p],function(){l("#cart-"+o.products[p].id)},!0);b=!1,g=!0,a()}if(s&&(t.addToCart(o.product,function(){l("#cart-"+o.product.id)},!1),h.push("cart-"+o.product.id),t.updateCountDisplay(o.cartcount),"function"==typeof i3)){if(i3("create","cart"),e(".html5-pop-details .pop-title a").length>0)var m=e(".html5-pop-details .pop-title a").attr("href"),f=e("<a>",{href:m})[0],v=f.search.substring(1).split("&");else var v=window.location.search.substring(1).split("&");var _="",w="";if(v){for(var p=0;v[p];p++){var y=v[p].split("=");"i3_ref"==y[0]&&(w=y[1]),"dmmref"==y[0]&&(_=y[1])}i3("cart.set","detail",{via_info:w,via_option:_})}i3("cart.add","detail",{content_id:d,product_id:u}),i3("cart.send","click","add_cart")}r&&"function"==typeof r&&r();break;case"ALREADY_IN_CART":case"SAME_CONTENT_ID_IN_CART":case"ALREADY_OWN":case"COULD_NOT_ADD":case"CART_LOCK":case"IN_WISHLIST":case"FAIL":n._notify(o.msg)}b=!1}i.set(o.new_csrf_token)}).fail(function(t){n._error(e(".js-error-msg").data("msg")),b=!1})}}function s(a){if(a<=h.length-1&&a>=0){var o=e("#ajaxurl-remove-from-cart").data("src"),s=e("#"+h[a]).data("contentid");e.post(o,{contentid:s,csrf_token:i.get()},function(e){if(e.status){switch(e.status){case"OK":t.animateRemoveFromHeaderCart(h[a]),a>=0&&h.splice(a,1),t.updateCountDisplay(e.cartcount);break;case"FAIL":n._error(e.msg)}i.set(e.new_csrf_token)}}).fail(function(){n._error(e(".js-error-msg").data("msg"))})}}function r(t){return e.inArray(t,h)}function l(t){e(t).children(".close01").on("click",function(t){s(r(e(this).parent().attr("id")))})}function c(){return new Promise(function(t,a){e.post("/my/cart/item_various/",{csrf_token:i.get()},function(e){if(e.status){switch(e.status){case"OK":break;case"FAIL":n._error(e.msg)}t(e)}}).fail(function(t){n._error(e(".js-error-msg").data("msg")),a(t)})})}function d(t){const n=e("#cart_count"),i=e(".numberMyCart");n.html(""),i.hide(),t>0?(e(".myCartOn").removeClass("cart-0"),i.show(),n.html(t),e(".hd-btn-dropDownBtm01").first()):m();const a=e(".js-mycart-active").first();a.removeClass("update-cart-count-only"),a.removeClass("update-cart-count-only-cartselector")}function u(t){const n=e("ul.js-cart-list").first();n.empty();for(var i="",a=0;a<t.length;a++){const o=t[a],s=e(".local-currency").find(":selected").attr("value")||"USD";var r=o.type.replace(/^HD\s/,'<span class="icon-hd">HD&nbsp;</span>');r=r.replace(/^HQ\s/,'<span class="icon-hq">HQ&nbsp;</span>'),r=r.replace(/4K\s/,'<span class="icon-hq">4K&nbsp;</span>'),i+='<li id="cart-'+o.id+'" data-contentid="'+o.contentID+'">',i+='<p class="close01 myLibrary-v2-cart-remove-item" data-contentid="'+o.contentID+'"></p>',i+='<a class="clearfix">',i+='<p class="flImgL"><img src="'+o.img_url+'" width="64" alt="'+o.title+'"></p>',i+='<div class="ftBox">',i+='<p class="product_type">'+r+"</p>",i+='<p class="ttl01">'+o.title+"</p>",i+='<div class="clearfix">',i+='<p class="product_price">'+o.price_local+" "+s+"</p>",i+="</div>",i+="</div>",i+="</a>",i+="</li>"}n.html(i),e(".myLibrary-v2-cart-remove-item").on("click",function(e){e.preventDefault(),p(e).then(function(e){f()},function(e){console.error(e)})})}function p(t){const a=t.target.attributes["data-contentid"].value;return new Promise(function(t,o){e.post("/my/cart/remove/",{contentid:a,csrf_token:i.get()},function(e){t(),i.set(e.new_csrf_token)}).fail(function(t){n._error(e(".js-error-msg").data("msg")),o(t)})})}function m(){e(".myCartOn").addClass("cart-0"),e(".js-cart-list").html(e(".js-emptycart-html").html()),e(".js-cart-list .hd-box-dropDownEmpty01").fadeIn()}function f(){c().then(function(e){"OK"===e.status?(u(e.products),d(e.cartcount)):console.error(e)},function(e){console.error(e)})}var h=[],v=[],g=!1,b=!1;return e(".js-mycart-active").on("click",function(t){const n=e(".js-mycart-active").first(),i=n.hasClass("myLibrary-v2-cart");i||(t.preventDefault(),g||o())}),e(".myLibrary-v2-cart").on("click",function(e){e.preventDefault(),f()}),{addToCart:o,addHandler:l}}),define("_l18n",["jquery","domReady!"],function(e){function t(e){var t,n=0;for(t=e.length-1;t>=0;t--)n+=parseInt(e[t],10);return a._yen(n)}function n(e){var t,n=0;for(t=e.length-1;t>=0;t--)n+=100*e[t];return _toLocal(n/100)}var i=e(".local-currency").find(":selected").attr("value")||"USD",a={_yen:function(e){return a._formatThousands(e)+" JPY"},_formatThousands:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},_format:function(e,t){return e=parseFloat(e),e=e.toFixed(2),t?a._formatThousands(e):e},USD:function(e,t){return a._format(e,t)+" USD"},GBP:function(e,t){return a._format(e,t)+" GBP"},AUD:function(e,t){return a._format(e,t)+" AUD"},CAD:function(e,t){return a._format(e,t)+" CAD"},SGD:function(e,t){return a._format(e,t)+" SGD"},KRW:function(e,t){return a._format(e,t)+" KRW"},TWD:function(e,t){return a._format(e,t)+" TWD"},CNY:function(e,t){return a._format(e,t)+" CNY"},HKD:function(e,t){return a._format(e,t)+" HKD"},NZD:function(e,t){return a._format(e,t)+" NZD"},PHP:function(e,t){return a._format(e,t)+" PHP"},MXN:function(e,t){return a._format(e,t)+" MXN"},RUB:function(e,t){return a._format(e,t)+" RUB"},CHF:function(e,t){return a._format(e,t)+" CHF"},JPY:function(e,t){return a._format(e,t)+" JPY"},EUR:function(e,t){return a._format(e,t)+" EUR"}};return _toLocal=a[i],{local:i,toLocal:_toLocal,yenTotal:t,localTotal:n,yen:a._yen,USD:a.USD,GBP:a.GBP,EUR:a.EUR,_formatThousands:a._formatThousands}}),define("_add_to_cart",["jquery","_cart","_l18n","_playback_support","domReady!"],function(e,t,n,i){function a(n){n||e(".js-add-to-cart").unbind("click"),e("body").on("click",".js-add-to-cart",function(n){var i=!e(".js-add-to-cart-form").find("input[type=radio]:checked ++ .js-item-data").data("subscribe-url");if(i){var a=e(this).data("content-id");t.addToCart(a,!0,function(){0!==e(".js-wishlist").length&&0!==e(".js-ajax-list").length&&e(".list-account-items01 #cart-"+a).animate({height:"0px",opacity:"0"},function(){e(this).remove(),t.addHandler("#cart-"+a)})})}else window.location=e(".js-add-to-cart-form").find("input[type=radio]:checked ++ .js-item-data").data("subscribe-url")})}function o(e){i._select_format_to_display(e)}var s=!e(".js-add-to-cart-form").find("input[type=radio]:checked ++ .js-item-data").data("subscribe-url");return e("body").on("click",".js-add-to-cart-form input[type=radio]",function(t){e(this).parents("form").find("label").removeClass("activeLabel"),e(this).parents("ul").data("selected",e(this).attr("id")),e(this).parents("label").addClass("activeLabel");var i=e(this).parent().children(".js-item-data");e(".js-selected-type").fadeOut(150,function(){e(this).html(e(i).data("product-type")).fadeIn(150)}),e(".js-selected-price-yen").fadeOut(150,function(){e(this).html(n.yen(e(i).data("price"))).fadeIn(150)}),e(".js-selected-price-local").fadeOut(150,function(){e(this).html(n.toLocal(e(i).data("price-local"))).fadeIn(150)}),e(".js-play-limit").fadeOut(150,function(){e(this).html(e(i).data("play-limit")).fadeIn(150)}),e(".js-file-format").fadeOut(150,function(){e(this).html(e(i).data("file-format")).fadeIn(150)}),e(i).data("cta")?s===!0&&e(".js-add-to-cart p").fadeOut(150,function(){e(this).html(e(i).data("cta")).fadeIn(150),s=!1,e(".js-add-to-cart").addClass("on")}):s===!1&&e(".js-add-to-cart p").fadeOut(150,function(){e(this).html(window.r18_trns.addtocart).fadeIn(150),s=!0,e(".js-add-to-cart").removeClass("on")}),e(".js-stream-time").fadeOut(150,function(){e(this).html(e(i).data("stream-time")).fadeIn(150)}),e(".js-file-size").fadeOut(150,function(){e(this).html(e(i).data("file-size")).fadeIn(150)});var a=e(i).data("sale-price"),r=e(i).data("sale-price-local");e(".js-selected-sale-price-yen").fadeOut(150,function(){a?(e(".sale-price").fadeIn(150),e(this).html(n.yen(a)).fadeIn(150),e(".js-selected-price-yen").addClass("sale-orig-price")):e(".js-selected-price-yen").removeClass("sale-orig-price")}),a||e(".box02-01 .sale-price").fadeOut(100),e(".js-selected-sale-price-local").fadeOut(150,function(){r?(e(this).html(n.toLocal(r)).fadeIn(150),e(".js-selected-price-local").addClass("sale-orig-price")):e(".js-selected-price-local").removeClass("sale-orig-price")});var l=this.id;o(l)}),e(".sub-sec-cart01 .box01 ul > li label").on("click",function(){e(".sub-sec-cart01 .box01 ul > li").removeClass("on"),e(this).parent().parent().addClass("on")}),e(".js-slideupdown-toggle").on("click",function(){e(this).toggleClass("on"),e("."+e(this).data("slideupdown-elem")).stop().slideToggle(300)}),e(".icn-question-faq-popup").hover(function(){e(".box-faq").fadeIn("fast")}),e(".box-faq").hover(function(){},function(){e(".box-faq").fadeOut("fast")}),a(!0),{_rebind:a}}),define("_advanced_search",["jquery","domReady!"],function(e){function t(t){e(".sub-box-popUp01").stop(!0,!1).fadeOut(150),e(t).parent().children(".sub-box-popUp01").stop(!0,!1).fadeIn(150,function(){e(".sub-box-popUp01, .sub-sec-search01").on("click",function(e){e.stopPropagation()}),e("html, .js-advanced-search-close-trigger").on("click",function(){n()})})}function n(){e(".sub-box-popUp01").stop(!0,!1).fadeOut(150),e("html").unbind("click"),e(".js-advanced-search-trigger").removeClass("on")}e(".js-advanced-search-trigger").on("click",function(){if(e(this).hasClass("on"))n();else{e(".js-advanced-search-trigger").removeClass("on"),e(this).addClass("on");var i=this;t(i)}})}),define("_captcha",["jquery","domReady!"],function(e){e("input[type=submit]").on("click",function(){
if(e(this).hasClass("disabled"))return!1})}),define("_dmm_points",["jquery","_csrf","_msg","domReady!"],function(e,t,n){function i(){P={isRedeemLoading:!1,pointOptions:j.NONE,redeemOption:null,pointsToSpend:0,hasRedeemOptionError:{PREPAID:!1,PIN:!1},redeemOptionCustomError:{PREPAID:null,PIN:null},earnPointsTable:C.earnPointsTable,balance:C.balance,spendError:!1,spendErrorMore:!1,forceSpendErrorMore:!1},C.paymentDefault===k.DMM_POINTS&&(P.pointOptions=j.MAXIMUM,P.pointsToSpend=f(),e(".js-dmm-points-checkout input[name=amount]").val(P.pointsToSpend),e(".js-dmm-points-checkout input[type=radio][name=dmm-points-option][value="+j.MAXIMUM+"]").prop("checked",!0)),l()<=w&&(e(".dmm-points-radio-custom").addClass("disabled"),e(".dmm-points-radio-custom input[type=radio][name=dmm-points-option]").prop("disabled",!0),e(".dmm-points-radio-custom input[type=text][name=amount]").prop("readonly",!0),P.forceSpendErrorMore=!0),b()}function a(n,i,a){var o=t.get();e.ajax({method:"put",url:C.redeemPrepaidUrl,headers:{"X-R18-CSRF-Token":o},data:{code:n},success:function(e){t.set(e.csrf_token),i(e)},error:function(e){t.set(e.responseJSON.csrf_token),a(e)}})}function o(n,i,a){var o=t.get();e.ajax({method:"put",url:C.redeemPinUrl,headers:{"X-R18-CSRF-Token":o},data:{code:n},success:function(e){t.set(e.csrf_token),i(e)},error:function(e){t.set(e.responseJSON.csrf_token),a(e)}})}function s(){return P.earnPointsTable}function r(){return P.balance}function l(){return I}function c(){return S}function d(){return O}function u(e,t,n){var i=t,a=i-e,o=p(a,n),s=Math.max(Math.floor(a*o),0);return s}function p(e,t){var n=Object.keys(t).filter(function(t){return!isNaN(t)&&e<=parseInt(t,10)}).sort(function(e,t){return parseInt(e,10)-parseInt(t,10)}),i=n[0],a=t[i]||t.max,o=parseFloat(a);return o}function m(e,t,n){var i=new RegExp("^[0-9]+$"),a=Math.max(parseInt(e,10)||0,0),o=!1,s=!1;return a>t&&(a=t,o=!0),a>n-w&&a<n&&(a=n-w,o=!0),i.test(e)||(s=!0),{amount:a,exceeded:o,notNumber:s}}function f(){var e=l(),t=r(),n=Math.min(t,e);return n>e-w&&n<e?Math.max(e-w,0):n}function h(e,t){if(!e)return 0;if(t===y)return Number(e).toLocaleString("ja-JP");var n=e*c(),i=n.toString().split(".");switch(t){case"KRW":return i[0];case"EUR":return i[0]+","+i[1].substr(0,2);default:return Number(n).toFixed(2)}}function v(){var t=e(".js-dmm-points-checkout input[type=radio][name=dmm-points-redeem-option]:checked").val();t===x.PREPAID?P.redeemOption=x.PREPAID:t===x.PIN?P.redeemOption=x.PIN:(console.log(t,"should NEVER occur"),P.redeemOption=null,e(".js-dmm-points-redeem .js-dmm-points-redeem-button").prop("disabled",!0)),b()}function g(){e(".js-dmm-points-checkout .DMMPointsRedeem").hide(),e(".js-dmm-points-redeem .radio input[type=text]").val(""),P.redeemOption=null,P.hasRedeemOptionError[x.PREPAID]=!1,P.hasRedeemOptionError[x.PIN]=!1,b()}function b(){var t=r();e(".js-dmm-points-balance").each(function(n,i){e(i).text(t)});var n=f();e(".js-dmm-points-maximum-available").each(function(t,i){e(i).text(n)});var i=u(P.pointsToSpend,l(),s());e(".js-dmm-points-to-earn").each(function(t,n){e(n).text(i)});var a=l()-P.pointsToSpend,o=h(a,y),c=h(a,d());e(".js-grand-total-with-points").text(o+" "+y),e(".js-grand-total-exchange-with-points").text(c+" "+d());var p=P.isRedeemLoading||!P.redeemOption;e(".js-dmm-points-redeem .js-dmm-points-redeem-button").prop("disabled",p),e(".js-dmm-points-redeem .error-label.error-prepaid").hide(),e(".js-dmm-points-redeem .error-label.error-prepaid-custom").hide(),e(".js-dmm-points-redeem .error-label.error-pin").hide(),e(".js-dmm-points-redeem .error-label.error-pin-custom").hide(),P.hasRedeemOptionError[x.PREPAID]&&(P.redeemOptionCustomError[x.PREPAID]?(e(".js-dmm-points-redeem .error-label.error-prepaid-custom").show(),e(".js-dmm-points-redeem .error-label.error-prepaid-custom").text(P.redeemOptionCustomError[x.PREPAID])):e(".js-dmm-points-redeem .error-label.error-prepaid").show()),P.hasRedeemOptionError[x.PIN]&&(P.redeemOptionCustomError[x.PIN]?(e(".js-dmm-points-redeem .error-label.error-pin-custom").show(),e(".js-dmm-points-redeem .error-label.error-pin-custom").text(P.redeemOptionCustomError[x.PIN])):e(".js-dmm-points-redeem .error-label.error-pin").show()),e(".js-dmm-points-checkout .amount-exceeded-label").hide(),e(".js-dmm-points-checkout .amount-exceeded-detailed").hide(),P.spendError&&e(".js-dmm-points-checkout .amount-exceeded-label").show(),(P.spendErrorMore||P.forceSpendErrorMore)&&e(".js-dmm-points-checkout .amount-exceeded-detailed").show()}function _(){var e=P.pointOptions!==j.NONE;if(!e)return!1;var t=P.pointsToSpend>=l();return t}var w=100,y="JPY",k={CREDIT:"credit",DMM_POINTS:"dmmpoint"},j={NONE:"NONE",MAXIMUM:"MAXIMUM",CUSTOM:"CUSTOM"},x={PREPAID:"PREPAID",PIN:"PIN"},C={redeemPinUrl:e("#js-dmmpoints-data").data("redeem-pin-url")||null,redeemPrepaidUrl:e("#js-dmmpoints-data").data("redeem-prepaid-url")||null,balance:parseInt(e("p.title-my01 .js-dmm-points-balance").text(),10)||0,earnPointsTable:e("#js-dmmpoints-data").data("table")||{},paymentDefault:e("#js-dmmpoints-data").data("payment_default")||k.CREDIT},I=e("#js-data-checkout-price").data("price-yen")||0,S=e("#js-data-checkout-price").data("exchange-rate")||0,O=e("#js-data-checkout-price").data("exchange-code")||0,P={};return e(".js-dmm-points-checkout input[type=radio][name=dmm-points-option]").change(function(t){e(".js-dmm-points-checkout .choose-amount").hide(),P.pointsToSpend=0,P.spendError=!1,P.spendErrorMore=!1,this.value===j.NONE?P.pointOptions=j.NONE:this.value===j.MAXIMUM?(P.pointOptions=j.MAXIMUM,P.pointsToSpend=f()):this.value===j.CUSTOM?(e(".choose-amount").css("display","inline-block"),P.pointOptions=j.CUSTOM):(console.log(this.value,"should NEVER occur"),P.pointOptions=j.NONE),e(".js-dmm-points-checkout input[name=amount]").val(P.pointsToSpend),b()}),e(".js-dmm-points-checkout input[type=text][name=amount]").on("change paste keyup",function(t){P.spendError=!1,P.spendErrorMore=!1;var n=this.value||0,i=f(),a=l(),o=m(n,i,a);P.pointsToSpend=o.amount,o.exceeded&&(e(".js-dmm-points-checkout input[type=text][name=amount]").val(o.amount),P.spendError=!0),o.notNumber&&e(".js-dmm-points-checkout input[type=text][name=amount]").val(""),b()}),e(".js-dmm-points-checkout .js-btn-amount-exceeded-more-info").on("click",function(e){P.spendErrorMore=!0,b()}),e(".js-dmm-points-checkout .link-redeem").on("click",function(t){e(".js-dmm-points-checkout .DMMPointsRedeem").fadeIn(200)}),e(".js-dmm-points-redeem .radio input[type=text]").on("click",function(t){var n=e(t.target),i=n.data("option");e(".js-dmm-points-redeem input[type=radio][name=dmm-points-redeem-option][value="+i+"]").prop("checked",!0),v()}),e(".js-dmm-points-redeem input[type=radio][name=dmm-points-redeem-option]").change(function(t){this.value===x.PREPAID?e(".js-dmm-points-redeem .radio input[type=text]#points-input-prepaid-code").focus():this.value===x.PIN&&e(".js-dmm-points-redeem .radio input[type=text]#points-input-pin-code").focus(),v()}),e(".js-dmm-points-redeem .close-button, .js-dmm-points-redeem .overlay-click-blocker").on("click",function(e){P.isRedeemLoading||g()}),e(".js-dmm-points-redeem .js-dmm-points-redeem-button").on("click",function(t){if(!P.isRedeemLoading){P.isRedeemLoading=!0,P.hasRedeemOptionError[x.PREPAID]=!1,P.hasRedeemOptionError[x.PIN]=!1,b();var i=P.redeemOption,s=null,r=null;if(i===x.PIN)r=o,s=e(".js-dmm-points-redeem input[type=text]#points-input-pin-code").val();else{if(i!==x.PREPAID)return console.log(i,"should never occur"),P.isRedeemLoading=!1,void b();r=a,s=e(".js-dmm-points-redeem input[type=text]#points-input-prepaid-code").val()}r(s,function(e){var t=e.point_info;P.balance=t.total_points,P.isRedeemLoading=!1,P.hasRedeemOptionError[x.PREPAID]=!1,P.hasRedeemOptionError[x.PIN]=!1,P.redeemOptionCustomError[x.PREPAID]=null,P.redeemOptionCustomError[x.PIN]=null,n._notify("success",2e3),g()},function(e){switch(e.responseJSON.status){case"v3.point.redeem.prepaid_code":P.hasRedeemOptionError[x.PREPAID]=!0;break;case"v3.point.redeem.pin_code":P.hasRedeemOptionError[x.PIN]=!0;break;case"v3.point.redeem.custom":P.redeemOptionCustomError[i]=e.responseJSON.message,P.hasRedeemOptionError[i]=!0;break;case"v3.point.redeem.charge_fail":default:P.hasRedeemOptionError[i]=!0}P.isRedeemLoading=!1,b()})}}),i(),{is_using_points_to_cover_entire_purchase:_}}),define("_ga",["jquery","domReady!"],function(e){e(".product-details-page .cmn-ttl-item03 h1").html()?(e(".js-view-sample").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"Productpage_R18dotcom",event_action:"PlaySample",event_label:"sample_btn"})}),e(".detail-movie-options .js-follow").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"Productpage_R18dotcom",event_action:"ClickFollow",event_label:"follow_btn"})}),e(".product-sidebar-cart").on("click",".save-wishlist",function(e){dataLayer.push({event:"UA_event",event_category:"Productpage_R18dotcom",event_action:"SaveWishlist",event_label:"wishlist_btn"})})):e(".js-view-sample").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"List_R18dotcom",event_action:"PlaySample",event_label:"sample_btn"})}),e("body").on("click",".js-add-to-cart",function(t){var n;n=e(this).parents("ul.js-wishlist").length?"Wishlist_R18dotcom":e(this).parents(".js-notice").length?"Modal_R18dotcom":" Productpage_R18dotcom",e(this).hasClass("subscribe")?dataLayer.push({event:"UA_event",event_category:n,event_action:"ClickSubscribe",event_label:"subscribe_btn"}):dataLayer.push({event:"UA_event",event_category:n,event_action:"AddCart",event_label:"addcart_btn"})}),e("body").on("click",".wishlist-inline",function(t){e(this).hasClass("added-to-wishlist")||dataLayer.push({event:"UA_event",event_category:"List_R18dotcom",event_action:"SaveWishlist",event_label:"wishlist_btn"})}),e("body").on("click",".js-notice .save-wishlist",function(e){dataLayer.push({event:"UA_event",event_category:"Modal_R18dotcom",event_action:"SaveWishlist",event_label:"wishlist_btn"})}),e("body").on("click",".js-remove-from-wishlist",function(e){dataLayer.push({event:"UA_event",event_category:"Wishlist_R18dotcom",event_action:"RemoveWishlist",event_label:"remove_btn"})}),e(".hd-btn-dropDownBtm01").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"Header_R18dotcom",event_action:"ClickCheckout",event_label:"checkout_btn"})}),e("#my-account-points").html()&&(e(".dmm-apply .apply-btn").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"MyAccount_R18dotcom",event_action:"PurchasePoints",event_label:"purchasepoints_btn"})}),e(".p_crg_tbl .apply-btn").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"MyAccount_R18dotcom",event_action:"RedeemPoints",event_label:"redeempoints_btn"})})),e(".mnt-home").html()&&e("#channel-home-description .btn-subscribe").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"Channelpage_R18dotcom",event_action:"ClickSubscribe",event_label:"subscribe_btn"})}),e(".ch-top-list-block").html()&&(e(".ch-top-list-block .btn-ch-top-subscribe").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"Channelpage_R18dotcom",event_action:"ClickSubscribe",event_label:"subscribe_btn"})}),e(".ch-top-list-block .btn-ch-top-trial").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"Channelpage_R18dotcom",event_action:"ClickTrial",event_label:"trial_btn"})})),e(".ch-top-prime").html()&&(e(".prime-unsubd .btn-ch-top-subscribe").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"Channelpage_R18dotcom",event_action:"ClickSubscribe",event_label:"subscribe_btn"})}),e(".prime-unsubd .prime-trial a").on("click",function(e){dataLayer.push({event:"UA_event",event_category:"Channelpage_R18dotcom",event_action:"ClickTrial",event_label:"trial_btn"})}))}),define("_cookie",[],function(){function e(e){var t=null,n=e+"=",i=document.cookie,a=i.indexOf(n),o="",s="";return a!=-1&&(o=a+n.length,s=i.indexOf(";",o),s==-1&&(s=i.length),t=decodeURIComponent(i.substring(o,s))),t}function t(e,t,n){var i="";if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}document.cookie=e+"="+(t||"")+i+"; path=/"}return{getCookie:e,setCookie:t}}),function(){"use strict";function e(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function t(e,t,n){var a={6.4:"10",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&(a=a[/[\d.]+$/.exec(e)])&&(e="Windows "+a),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=i(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").split(" on ")[0])}function n(e,t){var n=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=g)for(;++n<i;)t(e[n],n,e);else a(e,t)}function i(t){return t=c(t),/^(?:webOS|i(?:OS|P))/.test(t)?t:e(t)}function a(e,t){for(var n in e)y.call(e,n)&&t(e[n],n,e)}function o(t){return null==t?e(t):k.call(t).slice(8,-1)}function s(e,t){var n=null!=e?typeof e[t]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!e[t])}function r(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function l(e,t){var i=null;return n(e,function(n,a){i=t(i,n,a,e)}),i}function c(e){return String(e).replace(/^ +| +$/g,"")}function d(e){function n(t){return l(t,function(t,n){return t||RegExp("\\b"+(n.pattern||r(n))+"\\b","i").exec(e)&&(n.label||n)})}function u(t){return l(t,function(t,n,i){return t||(n[V]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(V)]||RegExp("\\b"+r(i)+"(?:\\b|\\w*\\d)","i").exec(e))&&i})}function f(t){return l(t,function(t,n){return t||RegExp("\\b"+(n.pattern||r(n))+"\\b","i").exec(e)&&(n.label||n)})}function h(n){return l(n,function(n,i){var a=i.pattern||r(i);return!n&&(n=RegExp("\\b"+a+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(n=t(n,a,i.label||i)),n})}function v(t){return l(t,function(t,n){var a=n.pattern||r(n);return!t&&(t=RegExp("\\b"+a+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+a+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(n.label&&!RegExp(a,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),n=n.label||n,t=i(t[0].replace(RegExp(a,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function g(t){return l(t,function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}function w(){return this.description||""}var y=p,j=e&&"object"==typeof e&&"String"!=o(e);j&&(y=e,e=null);var x=y.navigator||{},C=x.userAgent||"";e||(e=C);var I,S,O=j||_==m,P=j?!!x.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(k.toString()),A="Object",D=j?A:"ScriptBridgingProxyObject",E=j?A:"Environment",R=j&&y.java?"JavaPackage":o(y.java),T=j?A:"RuntimeObject",M=/\bJava/.test(R)&&y.java,N=M&&o(y.environment)==E,L=M?"a":"α",q=M?"b":"β",$=y.document||{},W=y.operamini||y.opera,U=b.test(U=j&&W?W["[[Class]]"]:o(W))?U:W=null,F=e,B=[],H=null,z=e==C,X=z&&W&&"function"==typeof W.version&&W.version(),K=n(["Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),G=f(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel",{label:"SRWare Iron",pattern:"Iron"},"K-Meleon","Konqueror","Lunascape","Maxthon","Midori","Nook Browser","PhantomJS","Raven","Rekonq","RockMelt","SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser","Sunrise","Swiftfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),V=v([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nook","PlayBook","PlayStation 4","PlayStation 3","PlayStation Vita","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Y=u({Apple:{iPad:1,iPhone:1,iPod:1},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{"PlayStation 4":1,"PlayStation 3":1,"PlayStation Vita":1}}),J=h(["Windows Phone ","Android","CentOS","Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(K&&(K=[K]),Y&&!V&&(V=v([Y])),(I=/\bGoogle TV\b/.exec(V))&&(V=I[0]),/\bSimulator\b/i.test(e)&&(V=(V?V+" ":"")+"Simulator"),"Opera Mini"==G&&/\bOPiOS\b/.test(e)&&B.push("running in Turbo/Uncompressed mode"),/^iP/.test(V)?(G||(G="Safari"),J="iOS"+((I=/ OS ([\d_]+)/i.exec(e))?" "+I[1].replace(/_/g,"."):"")):"Konqueror"!=G||/buntu/i.test(J)?Y&&"Google"!=Y&&(/Chrome/.test(G)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(V))?(G="Android Browser",J=/\bAndroid\b/.test(J)?J:"Android"):G&&!(I=!/\bMinefield\b|\(Android;/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(G))||(G&&!V&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(I+"/")+8))&&(G=null),(I=V||Y||J)&&(V||Y||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(J))&&(G=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(J)?J:I)+" Browser")):J="Kubuntu",(I=/\((Mobile|Tablet).*?Firefox\b/i.exec(e))&&I[1]&&(J="Firefox OS",V||(V=I[1])),X||(X=g(["(?:Cloud9|CriOS|CrMo|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|Silk(?!/[\\d.]+$))","Version",r(G),"(?:Firefox|Minefield|NetFront)"])),"iCab"==K&&parseFloat(X)>3?K=["WebKit"]:"Trident"!=K&&(I=/\bOpera\b/.test(G)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&"WebKit"||!K&&/\bMSIE\b/i.test(e)&&("Mac OS"==J?"Tasman":"Trident"))?K=[I]:/\bPlayStation\b(?! Vita\b)/i.test(G)&&"WebKit"==K&&(K=["NetFront"]),"IE"==G&&(I=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(G+=" Mobile",J="Windows Phone "+(/\+$/.test(I)?I:I+".x"),B.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(G="IE Mobile",J="Windows Phone 8+",B.unshift("desktop mode"),X||(X=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=G&&"Trident"==K&&(I=/\brv:([\d.]+)/.exec(e))?(/\bWPDesktop\b/i.test(e)||(G&&B.push("identifying as "+G+(X?" "+X:"")),G="IE"),X=I[1]):"Chrome"!=G&&"IE"==G||!(I=/\bEdge\/([\d.]+)/.exec(e))||(G="Microsoft Edge",X=I[1],K=["Trident"]),z){if(s(y,"global"))if(M&&(I=M.lang.System,F=I.getProperty("os.arch"),J=J||I.getProperty("os.name")+" "+I.getProperty("os.version")),O&&s(y,"system")&&(I=[y.system])[0]){J||(J=I[0].os||null);try{I[1]=y.require("ringo/engine").version,X=I[1].join("."),G="RingoJS"}catch(e){I[0].global.system==y.system&&(G="Narwhal")}}else"object"==typeof y.process&&(I=y.process)?(G="Node.js",F=I.arch,J=I.platform,X=/[\d.]+/.exec(I.version)[0]):N&&(G="Rhino");else o(I=y.runtime)==D?(G="Adobe AIR",J=I.flash.system.Capabilities.os):o(I=y.phantom)==T?(G="PhantomJS",X=(I=I.version||null)&&I.major+"."+I.minor+"."+I.patch):"number"==typeof $.documentMode&&(I=/\bTrident\/(\d+)/i.exec(e))&&(X=[X,$.documentMode],(I=+I[1]+4)!=X[1]&&(B.push("IE "+X[1]+" mode"),K&&(K[1]=""),X[1]=I),X="IE"==G?String(X[1].toFixed(1)):X[0]);J=J&&i(J)}X&&(I=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(X)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(z&&x.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(H=/b/i.test(I)?"beta":"alpha",X=X.replace(RegExp(I+"\\+?$"),"")+("beta"==H?q:L)+(/\d+\+?/.exec(I)||"")),"Fennec"==G||"Firefox"==G&&/\b(?:Android|Firefox OS)\b/.test(J)?G="Firefox Mobile":"Maxthon"==G&&X?X=X.replace(/\.[\d.]+/,".x"):"Silk"==G?(/\bMobi/i.test(e)||(J="Android",B.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&B.unshift("accelerated")):/\bXbox\b/i.test(V)?(J=null,"Xbox 360"==V&&/\bIEMobile\b/.test(e)&&B.unshift("mobile mode")):!/^(?:Chrome|IE|Opera)$/.test(G)&&(!G||V||/Browser|Mobi/.test(G))||"Windows CE"!=J&&!/Mobi/i.test(e)?"IE"==G&&z&&null===y.external?B.unshift("platform preview"):(/\bBlackBerry\b/.test(V)||/\bBB10\b/.test(e))&&(I=(RegExp(V.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||X)?(I=[I,/BB10/.test(e)],J=(I[1]?(V=null,Y="BlackBerry"):"Device Software")+" "+I[0],X=null):this!=a&&"Wii"!=V&&(z&&W||/Opera/.test(G)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==G&&/\bOS X (?:\d+\.){2,}/.test(J)||"IE"==G&&(J&&!/^Win/.test(J)&&X>5.5||/\bWindows XP\b/.test(J)&&X>8||8==X&&!/\bTrident\b/.test(e)))&&!b.test(I=d.call(a,e.replace(b,"")+";"))&&I.name&&(I="ing as "+I.name+((I=I.version)?" "+I:""),b.test(G)?(/\bIE\b/.test(I)&&"Mac OS"==J&&(J=null),I="identify"+I):(I="mask"+I,G=U?i(U.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(I)&&(J=null),z||(X=null)),K=["Presto"],B.push(I)):G+=" Mobile",(I=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(I=[parseFloat(I.replace(/\.(\d)$/,".0$1")),I],"Safari"==G&&"+"==I[1].slice(-1)?(G="WebKit Nightly",H="alpha",X=I[1].slice(0,-1)):X!=I[1]&&X!=(I[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(X=null),I[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==I[0]&&537.36==I[2]&&parseFloat(I[1])>=28&&"IE"!=G&&"Microsoft Edge"!=G&&(K=["Blink"]),z&&(P||I[1])?(K&&(K[1]="like Chrome"),I=I[1]||(I=I[0],I<530?1:I<532?2:I<532.05?3:I<533?4:I<534.03?5:I<534.07?6:I<534.1?7:I<534.13?8:I<534.16?9:I<534.24?10:I<534.3?11:I<535.01?12:I<535.02?"13+":I<535.07?15:I<535.11?16:I<535.19?17:I<536.05?18:I<536.1?19:I<537.01?20:I<537.11?"21+":I<537.13?23:I<537.18?24:I<537.24?25:I<537.36?26:"Blink"!=K?"27":"28")):(K&&(K[1]="like Safari"),I=I[0],I=I<400?1:I<500?2:I<526?3:I<533?4:I<534?"4+":I<535?5:I<537?6:I<538?7:I<601?8:"8"),K&&(K[1]+=" "+(I+="number"==typeof I?".x":/[.+]/.test(I)?"":"+")),"Safari"==G&&(!X||parseInt(X)>45)&&(X=I)),"Opera"==G&&(I=/\bzbov|zvav$/.exec(J))?(G+=" ",B.unshift("desktop mode"),"zvav"==I?(G+="Mini",X=null):G+="Mobile",J=J.replace(RegExp(" *"+I+"$"),"")):"Safari"==G&&/\bChrome\b/.exec(K&&K[1])&&(B.unshift("desktop mode"),G="Chrome Mobile",X=null,/\bOS X\b/.test(J)?(Y="Apple",J="iOS 4.3+"):J=null),X&&0==X.indexOf(I=/[\d.]+$/.exec(J))&&e.indexOf("/"+I+"-")>-1&&(J=c(J.replace(I,""))),K&&!/\b(?:Avant|Nook)\b/.test(G)&&(/Browser|Lunascape|Maxthon/.test(G)||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(G)&&K[1])&&(I=K[K.length-1])&&B.push(I),B.length&&(B=["("+B.join("; ")+")"]),Y&&V&&V.indexOf(Y)<0&&B.push("on "+Y),V&&B.push((/^on /.test(B[B.length-1])?"":"on ")+V),J&&(I=/ ([\d.+]+)$/.exec(J),S=I&&"/"==J.charAt(J.length-I[0].length-1),J={architecture:32,family:I&&!S?J.replace(I[0],""):J,version:I?I[1]:null,toString:function(){var e=this.version;return this.family+(e&&!S?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(I=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(F))&&!/\bi686\b/i.test(F)&&(J&&(J.architecture=64,J.family=J.family.replace(RegExp(" *"+I),"")),G&&(/\bWOW64\b/i.test(e)||z&&/\w(?:86|32)$/.test(x.cpuClass||x.platform)&&!/\bWin64; x64\b/i.test(e))&&B.unshift("32-bit")),e||(e=null);var Q={};return Q.description=e,Q.layout=K&&K[0],Q.manufacturer=Y,Q.name=G,Q.prerelease=H,Q.product=V,Q.ua=e,Q.version=G&&X,Q.os=J||{architecture:null,family:null,version:null,toString:function(){return"null"}},Q.parse=d,Q.toString=w,Q.version&&B.unshift(X),Q.name&&B.unshift(G),J&&G&&(J!=String(J).split(" ")[0]||J!=G.split(" ")[0]&&!V)&&B.push(V?"("+J+")":"on "+J),B.length&&(Q.description=B.join(" ")),Q}var u={function:!0,object:!0},p=u[typeof window]&&window||this,m=p,f=u[typeof exports]&&exports,h=u[typeof module]&&module&&!module.nodeType&&module,v=f&&h&&"object"==typeof global&&global;!v||v.global!==v&&v.window!==v&&v.self!==v||(p=v);var g=Math.pow(2,53)-1,b=/\bOpera/,_=this,w=Object.prototype,y=w.hasOwnProperty,k=w.toString;"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("platform",[],function(){return d()}):f&&h?a(d(),function(e,t){f[t]=e}):p.platform=d()}.call(this),define("_detections",["platform"],function(e){return{winapp:e.os.family&&e.os.family.indexOf("Windows")>=0&&parseFloat(e.os.version)>=8.1,isWin7:e.os.family&&e.os.family.indexOf("Windows")>=0&&parseFloat(e.os.version)<=8,isMac:e.ua.indexOf("Mac")>=0,ie:"IE"===e.name,edge:"Microsoft Edge"==e.name,isChrome:"Chrome"===e.name,isFF:"Firefox"===e.name,isSafari:"Safari"===e.name,isOther:"Firefox"!==e.name&&"Chrome"!==e.name&&"Safari"!==e.name&&"Microsoft Edge"!==e.name&&"IE"!==e.name}}),define("_expand",["jquery","domReady!"],function(e){var t;e(".cmn-ttl-item03 h1 cite").html()&&e(".cmn-ttl-item03 h1 cite").height()>30&&(e(".cmn-ttl-item03 .col01 a h1").addClass("expand"),e(".cmn-ttl-item03 h1").on("click",function(){t=!t,t?e(".cmn-ttl-item03 .col01 a").addClass("on").css("height",e(".cmn-ttl-item03 .col01 a h1").height()):e(".cmn-ttl-item03 .col01 a").removeClass("on").css("height",41)})),e(".cmn-list-info01 ul li .txt02.type01 .ico02").on("click",function(){e(this).parent().toggleClass("on")}),e(".dl-faq01 dt").on("click",function(){e(this).next().slideToggle()})}),define("_redirect",["jquery","domReady!"],function(e){var t=function(){window.location.href="login.php?refer="+window.location.href},n=function(e){window.location.href=e};return{login:t,location:n}}),define("_follow",["jquery","_redirect","_msg","_csrf","domReady!"],function(e,t,n,i){function a(t){t||(t=".js-follow"),e(t).filter(".following").on("click",function(t){r(e(this))})}function o(t){t||(t=".js-follow"),e(t).not(".following").on("click",function(t){s(e(this))})}function s(t){var o=e("#ajaxurl-follow").data("src"),s=e(t).data("follow-id"),r=location.origin+location.pathname;"#loggedout"===location.hash?loggedout=!0:loggedout=!1,e.active||e.post(o,{id:s,follow:!0,loggedout:loggedout,referer:r,csrf_token:i.get()},function(o){switch(o.status){case"OK":n._mini(o.msg,1600),e(t).children().fadeOut(300,function(){e(this).parent().addClass("following").unbind("click"),a(t)}).fadeIn();break;case"FAIL":n._notify(o.msg);break;case"NOT_LOGGED_IN":n._notify(o.msg)}i.set(o.new_csrf_token)}).fail(function(t){n._error(e(".js-error-msg").data("msg"))})}function r(t){var a=e("#ajaxurl-unfollow").data("src"),s=e(t).data("follow-id");e.post(a,{id:s,follow:!1,csrf_token:i.get()},function(a){switch(a.status){case"OK":n._mini(a.msg,1600),e(t).children().fadeOut(300,function(n){e(this).parent().removeClass("following").addClass("ico01").unbind("click"),o(t)}).fadeIn();break;case"FAIL":n._notify(a.msg)}i.set(a.new_csrf_token)}).fail(function(t){n._error(e(".js-error-msg").data("msg"))})}a(),o()}),define("_form_edit",["jquery","_msg","domReady!"],function(e,t){function n(){return t._warn(a),e(".fn-account-confirm-yes").on("click",function(){e("form#remove-card").submit()}),e(".fn-account-confirm-no").click(function(){return e(".js-notice").fadeOut(150).remove(),e(".js-whiteout").fadeOut(150,function(){e(this).remove()}),!0}),!1}var i={cardnumber:"",securitycode:""};e(".edit-btn").on("click",function(t){t.preventDefault(),t.stopPropagation();var n=e(this).closest("form").attr("id"),a="#"+n;e(a+" .edit-block").fadeOut(150,function(){e(a+" .save-cancel-block").fadeIn(150),e(a+" :input[type='text']").attr("disabled",!1),e(a+" select").attr("disabled",!1),e(a+" :input[type='password']").attr("disabled",!1),e(a+" :input[type='radio']").attr("disabled",!1),e(a+" :input[type='checkbox']").attr("disabled",!1),e(a+" .title01.disabled").removeClass("disabled"),e(a+" label").removeClass("disabled"),e("form#remove-card .fn-remove-card").fadeIn(150)}),"cardinfo"==e(this).parents("form").attr("id")&&(i.cardnumber=e(a+" .fn-input-cardnumber").attr("value"),i.securitycode=e(a+" .fn-input-securitycode").attr("value"),e(a+" .fn-input-cardnumber").attr("value",""),e(a+" .fn-input-securitycode").attr("value",""))}),e(".cancel-btn").on("click",function(t){t.preventDefault(),t.stopPropagation(),e(".select01.month .cmn-box-selectIn input").attr("placeholder","**"),e(".select01.year .cmn-box-selectIn input").attr("placeholder","20**"),e("#cardinfo .country .cmn-box-selectIn input").attr("placeholder",e("#cardinfo .country .cmn-box-selectIn input").attr("value"));var n=e(this).closest("form").attr("id"),a="#"+n;e(a+" .save-cancel-block").fadeOut("slow",function(){document.getElementById(n).reset(),e(a+" :input[type='text']").attr("disabled",!0),e(a+" select").attr("disabled",!0),e(a+" :input[type='password']").attr("disabled",!0),e(a+" :input[type='radio']").attr("disabled",!0),e(a+" :input[type='checkbox']").attr("disabled",!0),e(a+" .edit-block").fadeIn("slow"),e(a+" label").addClass("disabled"),e(a+" .title01").addClass("disabled"),e(a+" label").addClass("disabled"),"cardinfo"==e(this).parents("form").attr("id")&&(e(a+" .fn-input-cardnumber").attr("value",i.cardnumber),e(a+" .fn-input-securitycode").attr("value",i.securitycode)),e(a+" .password-confirm-block").hide(150)}),e("form#remove-card .fn-remove-card").fadeOut("slow")}),e("#account-info .input-password").on({keyup:function(){e(this).val().length>0&&e("#account-info .password-confirm-block").is(":hidden")&&e("#account-info .password-confirm-block").fadeIn(150)},blur:function(){0===e(this).val().length&&e("#account-info .password-confirm-block").fadeOut(150)}}),e("#account-info .item-error").length>0&&(e(".edit-btn").trigger("click"),e('#account-info :input[type="password"].item-error').length>0&&e("#account-info .password-confirm-block").fadeIn(0));var a='<div class="box-accountConfirm01"><p class="title01">'+window.r18_trns.confirm_remove_card+'</p><ul class="list01"><li class="fn-account-confirm-yes">'+window.r18_trns.yes+'</li><li class="fn-account-confirm-no">'+window.r18_trns.no+"</li></ul></div>";e(".fn-remove-card").on("click",n)}),define("_history",["jquery","_msg","_csrf","domReady!"],function(e,t,n){e(".js-clear-history").on("click",function(){var i=e("#ajaxurl-clear-history").data("src");e.post(i,{clearHistory:!0,csrf_token:n.get()},function(i){switch(i.status){case"OK":e(".js-clear-history").fadeOut(150),e(".list-account-items01").animate({height:"0px",opacity:"0"},function(){e(this).remove(),e(".js-clear-history").parent().parent().slideUp(150),0===e(".list-account-items01 li").length&&e(".box-historyEmpty01").show()});break;case"FAIL":t._notify(i.msg)}n.set(i.new_csrf_token)}).fail(function(){t._error(e(".js-error-msg").data("msg"))})})}),define("_lazy",["jquery","domReady!"],function(e){!function(e,t,n,i){var a=e(t);e.fn.lazyload=function(o){function s(){var t=0;l.each(function(){var n=e(this);if(!c.skip_invisible||n.is(":visible"))if(e.abovethetop(this,c)||e.leftofbegin(this,c));else if(e.belowthefold(this,c)||e.rightoffold(this,c)){if(++t>c.failure_limit)return!1}else n.trigger("appear"),t=0})}var r,l=this,c={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return o&&(i!==o.failurelimit&&(o.failure_limit=o.failurelimit,delete o.failurelimit),i!==o.effectspeed&&(o.effect_speed=o.effectspeed,delete o.effectspeed),e.extend(c,o)),r=c.container===i||c.container===t?a:e(c.container),0===c.event.indexOf("scroll")&&r.bind(c.event,function(){return s()}),this.each(function(){var t=this,n=e(t);t.loaded=!1,n.attr("src")!==i&&n.attr("src")!==!1||n.is("img")&&n.attr("src",c.placeholder),
n.one("appear",function(){if(!this.loaded){if(c.appear){var i=l.length;c.appear.call(t,i,c)}e("<img />").bind("load",function(){var i=n.attr("data-"+c.data_attribute);n.hide(),n.is("img")?n.attr("src",i):n.css("background-image","url('"+i+"')"),n[c.effect](c.effect_speed),t.loaded=!0;var a=e.grep(l,function(e){return!e.loaded});if(l=e(a),c.load){var o=l.length;c.load.call(t,o,c)}}).attr("src",n.attr("data-"+c.data_attribute))}}),0!==c.event.indexOf("scroll")&&n.bind(c.event,function(){t.loaded||n.trigger("appear")})}),a.bind("resize",function(){s()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&a.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&l.each(function(){e(this).trigger("appear")})}),e(n).ready(function(){s()}),this},e.belowthefold=function(n,o){var s;return s=o.container===i||o.container===t?(t.innerHeight?t.innerHeight:a.height())+a.scrollTop():e(o.container).offset().top+e(o.container).height(),s<=e(n).offset().top-o.threshold},e.rightoffold=function(n,o){var s;return s=o.container===i||o.container===t?a.width()+a.scrollLeft():e(o.container).offset().left+e(o.container).width(),s<=e(n).offset().left-o.threshold},e.abovethetop=function(n,o){var s;return s=o.container===i||o.container===t?a.scrollTop():e(o.container).offset().top,s>=e(n).offset().top+o.threshold+e(n).height()},e.leftofbegin=function(n,o){var s;return s=o.container===i||o.container===t?a.scrollLeft():e(o.container).offset().left,s>=e(n).offset().left+o.threshold+e(n).width()},e.inviewport=function(t,n){return!(e.rightoffold(t,n)||e.leftofbegin(t,n)||e.belowthefold(t,n)||e.abovethetop(t,n))},e.extend(e.expr[":"],{"below-the-fold":function(t){return e.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return e.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!e.rightoffold(t,{threshold:0})},"in-viewport":function(t){return e.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return e.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!e.rightoffold(t,{threshold:0})}})}(e,window,document),e("img.lazy").lazyload({threshold:200,container:e("body"),failure_limit:18})}),define("_lost_pw",["jquery","_msg","domReady!"],function(e,t){function n(){e(".js-lost-pw-form").fadeOut(150,function(){e(".js-lost-pw-thanks").fadeIn(150,function(){i(".js-lost-pw-thanks")})})}function i(t){e(t).find(".close01").on("click",function(){e(t).fadeOut(150,function(){a()})})}function a(){e(".js-lost-pw-form").fadeOut(150),e(".js-lost-pw-thanks").fadeOut(150,function(){e(".js-login-options").fadeIn(150)})}var o=!1;e(".js-lost-pw-trigger").on("click",function(){e(".js-login-options").fadeOut(150,function(){e(".js-lost-pw-form").fadeIn(150,function(){i(".js-lost-pw-form"),o||e(".js-lost-pw-form").on("submit",function(i){o=!0,i.stopPropagation(),i.preventDefault();var a=e("#ajaxurl-lost-pw").data("src");e.post(a,{email:e("#lostPWEmail")[0].value},function(e){switch(e.status){case"OK":n();break;case"EMAIL_NOT_FOUND":t._notify(e.msg),o=!1;break;case"FAIL":t._notify(e.msg),o=!1}}).fail(function(){t._error(e(".js-error-msg").data("msg")),o=!1})})})})})}),define("_modal",["jquery","_detections","_msg","domReady!"],function(e,t,n){function i(e){D(),q(L("viewer-popup"),{content_id:e,contentid:e,res:"app"},function(t){t.hasOwnProperty("info")&&"OK"===t.info.status||"OK"===t.status?(W=t,u(t),p(t),m(t),f(t),d(),h(t,e),this.showDownload&&!t.is_vr&&(g(t),t.hasOwnProperty("bonusfiles")&&(v(t),b(t))),A(),a(t)):n._notify(t.msg)})}function a(t){t.is_vr?(e(".buttons").hide(),t.is_hq?(s(t),document.querySelector(".vr-quality").style.display="block",document.querySelector(".vr-quality").style.margin="5px 0px 0px",document.querySelector(".vr-parts").style.margin="20px 0px 0px"):(document.querySelector(".vr-parts").style.margin="10px 0px 0px",document.querySelector(".vr-quality").style.display="none"),o(t),document.querySelector(".vr-parts.dl-parts").style.margin="5px 0px 0px",document.querySelector(".vr-parts").style.display="block",document.querySelector(".download").style.display="none",document.querySelector(".help-area").style.display="none"):(e(".buttons").show(),document.querySelector(".vr-quality").style.display="none",document.querySelector(".vr-parts").style.display="none",document.querySelector(".help-area").style.display="block",t.hasOwnProperty("dllinks")&&null!==t.dllinks?document.querySelector(".download").style.display="block":document.querySelector(".download").style.display="none")}function o(e){r(e,".vr-parts.dl-parts")}function s(e){l(".js-select.hq",e)}function r(t,n){for(var i=document.querySelector(n);i.firstChild;)i.removeChild(i.firstChild);var a=t.part>0?t.part:1;i.textContent="";for(var o="HQ"==e(".js-select.hq .dropdown-child.active").data("value")?"high":"normal",s=0;s<a;s++){var r=document.createElement("a");r.textContent=s+1,r.href=t.h5pstreamurl+"&part="+(s+1)+"&qualitygroup="+o,i.appendChild(r)}}function l(t,n){function i(e,t){var n=document.createElement("div");return n.dataset.value=e,n.textContent=e,n.classList.add("dropdown-child"),t&&n.classList.add(t),n}var a=["HQ","Standard"],o=document.querySelector(t),s=document.createElement("div"),r=0;for(s.classList.add("dropdown-inner");o.firstChild;)o.removeChild(o.firstChild);for(o.appendChild(i(a[r],"active"));r<2;r++)s.appendChild(i(a[r],null));o.appendChild(s),e(".js-select.hq .dropdown-child").not(".active").on("click",c(n))}function c(t){return function(){var n=e(this).data("value"),i=n;e(".js-select.hq .dropdown-child").removeClass("selected"),e(".js-select.hq .dropdown-child.active").data("value",n).text(i),e(this).addClass("selected"),r(t,".vr-parts.dl-parts")}}function d(){e(".modal .help").each(function(){e(this)[0].href="/info/tools/"})}function u(t){t.hasOwnProperty("title")&&e(".modal h1").text(t.title).data("title",t.title)}function p(e){e.hasOwnProperty("image")&&(document.querySelector(".modal .leftbox > a img").src=e.image),e.hasOwnProperty("detailurl")&&e.detailurl.length>0?document.querySelector(".modal .leftbox > a").href=e.detailurl:(document.querySelector(".modal .leftbox > a").style.cursor="default",document.querySelector(".modal .leftbox > a img").style.cursor="default",document.querySelector(".modal .leftbox > a").onclick=function(e){e.preventDefault()})}function m(t){if(t.hasOwnProperty("expire")){var n=Date.parse(t.expire);isNaN(n)?e(".availability, .availability + dd").hide():(e(".availability + dd").text(e(".availability + dd").data("prefix")+" "+t.expire),e(".availability, .availability + dd").fadeIn())}else e(".availability").hide()}function f(t){t.hasOwnProperty("purchase")?(e(".purchase-date + dd").text(t.purchase),e(".purchase-date, .purchase-date + dd").fadeIn()):e(".purchase-date").hide()}function h(n,i){document.querySelector(".modal").className=!t.ie||t.edge?"modal html5":t.winapp?"modal newie":"modal oldie",null!==n.streamurl&&n.streamurl.length>0?(P(n.streamurl,n.h5pstreamurl),e(".for-vod").not(".mainfiles").show(),C()):(e(".for-vod").not(".mainfiles").show(),document.querySelector(".streaming").style.display="none")}function v(t){t.bonusfiles.hasOwnProperty("streamurl")&&null!==t.bonusfiles.streamurl&&(e(".streaming .bonusfiles").show(),e(".streaming .bonusfiles, .streaming .mainfiles").on("click",function(){if(e(".streaming h2").text(e(this).data("title")),"bonusfiles"===e(this)[0].className){t.bonusfiles.streamurl}e(this).parent().find("i").show(),e(this).hide(),P("bonusfiles"===e(this)[0].className?t.bonusfiles.streamurl:t.streamurl,"bonusfiles"===e(this)[0].className?t.bonusfiles.h5pstreamurl:t.h5pstreamurl)}))}function g(e){if(e.hasOwnProperty("dllinks")&&null!==e.dllinks){var t=Object.keys(e.dllinks),n=t.sort(function(e,t){return e-t});if(n.length>=1&&1!=n[0]){var i=null;e.rate_to_quality&&(i=e.rate_to_quality),R(n,".download-block .js-select.kbps",!1,i),M(e,n[0],".download-block .dl-parts")}else 1==n[0]&&x(W.dllinks[1])}else document.querySelector(".download").style.display="none"}function b(t){if(t.bonusfiles.hasOwnProperty("dllinks")&&null!==t.bonusfiles.dllinks){var n=Object.keys(t.bonusfiles.dllinks);bf_kbps_array=n.sort(function(e,t){return e-t}),e(".download .bonusfiles").show(),e(".download .bonusfiles, .download .mainfiles").off("click").on("click",function(){w(),e(".download h2").text(e(this).data("title")),"bonusfiles"===e(this)[0].className?bf_kbps_array.length>0?(1==bf_kbps_array[0]&&j(W.bonusfiles.dllinks[1]),bf_kbps_array.length>=1&&1!=bf_kbps_array[0]&&(R(bf_kbps_array,".download-block .js-select.kbps",!0),M(t.bonusfiles,bf_kbps_array[0],".download-block .dl-parts"))):e(".download-block > .vod").fadeOut():g(t),e(".download .bonusfiles, .download .mainfiles").show(),e(this).hide()})}}function _(){e(".for-vod").hide()}function w(){y(),k()}function y(){e(".download-block > .vod").hide()}function k(){e(".download-block > .bonus-zip").hide()}function j(t){N(W.bonusfiles.filesize[1],".filesize-zip"),document.querySelector(".bonus-zip a.dl-btn").href=t,e(".download-block > .bonus-zip").show()}function x(t){N(W.filesize[1],".filesize-zip"),document.querySelector(".bonus-zip a.dl-btn").href=t,e(".download-block > .bonus-zip").show()}function C(){document.querySelector(".streaming .win10").style.display=t.winapp&&t.ie?"inline-block":"none",t.winapp&&I(),document.querySelector(".streaming .ie11").style.display=!t.winapp&&t.ie?"inline-block":"none",document.querySelector(".streaming .html5").style.display=!t.ie||t.edge?"inline-block":"none"}function I(){e(".streaming .win10 a").off("click").on("click",function(t){t.preventDefault();var n=document.activeElement.href,i=window.navigator.userAgent.toLowerCase(),a=n.replace(/view_flag=1/g,"view_flag=1/storeapp=1");return n.indexOf("view_flag=0")!==-1&&(a=n.replace(/view_flag=0/g,"view_flag=0/storeapp=1")),!!i.match(/win(dows )?nt (6\.3|10\.0)/)&&void e.ajax({url:a,async:!0,crossDomain:!0,dataType:"text",success:function(e){e=O(S(e)),window.location.href=/r18plus.movie.player:/.test(e)?e:n},error:function(){console.log("there was an error playing .. fail silently for now")}})})}function S(e){for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);65<=i&&78>i||97<=i&&110>i?i+=13:(78<=i&&90>=i||110<=i&&122>=i)&&(i-=13),t+=String.fromCharCode(i)}e="";for(var a,o,i=-8,s=0,n=0;n<t.length;n++)0>(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(n)))||(s=s<<6|63&a,0<=(i+=6)&&(o=s>>i&255,64!=a&&(e+=String.fromCharCode(o)),s&=63,i-=8));return e}function O(e){return e.replace(/&(quot|amp);/gi,function(e,t){if(/^amp$/i.test(t))return"&"})}function P(n,i){e(".streaming .buttons a").stop(!0,!0).fadeOut().each(function(){!t.ie||t.edge?U?document.querySelector(".streaming .html5 a").href=i:document.querySelector(".streaming .html5 a").href=i:(e(this)[0].href=n,e(this).parent().hasClass("silverlight")&&e(this).off("click").on("click",function(e){e.preventDefault(),window.open(n,"_blank","width=640,height=640")}))}).stop(!0,!0).fadeIn()}function A(){e(".modal").fadeIn(),e(".modalScreen, .modal .close").fadeIn().off("click").on("click",D)}function D(){E(),U=!1,e(".modalScreen, .modal").fadeOut(300,function(){e(".bonusfiles, .mainfiles").hide(),e(".streaming h2.for-vod").text(e(".streaming .mainfiles.for-vod").data("title")),e(".download h2").text(e(".download .mainfiles").data("title")),w(),_(),document.querySelector(".modal .leftbox > a img").src="",document.querySelector(".modal .leftbox > a").onclick=null,document.querySelector(".modal .leftbox > a").style.cursor="pointer",document.querySelector(".modal .leftbox > a img").style.cursor="pointer",document.querySelector(".modal .leftbox > a").href="",document.querySelector(".streaming").style.display="block",this.showDownload&&(document.querySelector(".download").style.display="block")})}function E(){e(".modal .dropdown").removeClass("open")}function R(t,n,i,a){function o(e,t,n){var i=document.createElement("div"),a="";i.dataset.value=e;const o=n?n[e]:e;return i.textContent=o+(a?" - "+a:""),i.classList.add("dropdown-child"),t&&i.classList.add(t),i}var s=void 0!==a?a:null,r=document.querySelector(n),l=document.createElement("div"),c=1===t[0]?1:0;for(l.classList.add("dropdown-inner"),r.textContent="",N((i?W.bonusfiles:W).filesize[t[c]]),r.appendChild(o(s?s[t[c]]:t[c],"active"));c<t.length;c++)l.appendChild(o(t[c],null,s));r.appendChild(l),e(".download-block > .vod").show(),e(".js-select.kbps .dropdown-child").not(".active").on("click",T(i,s))}function T(t,n){return function(){var i=e(this).data("value");e(".js-select.kbps .dropdown-child").removeClass("selected"),e(".js-select.kbps .dropdown-child.active").data("value",i).text(n?n[i]:i),e(this).addClass("selected"),M(t?W.bonusfiles:W,i,".download-block .dl-parts")}}function M(e,t,n){var i=document.querySelector(n),a=e.dllinks[t];i.textContent="","string"==typeof a&&(a=[a]);for(var o=0;o<a.length;o++){var s=document.createElement("a");s.textContent=o+1,s.href=a[o],s.download="",i.appendChild(s)}N(e.filesize[t])}function N(e,t){var n=t?document.querySelector(t):F;n.textContent=B+" "+e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+"MB"}function L(e){var t=document.getElementById("ajaxurl-"+e);return null!==t&&t.getAttribute("data-src")?t.getAttribute("data-src"):null}function q(t,n,i,a){e.ajax({url:t,type:"POST",data:n,dataType:"json",success:function(e){return"function"!=typeof i?e:void i(e)},error:function(){console.log("ajax error.. "),"function"==typeof a&&a()}})}function $(){const t=e(".js-view-stream.watchnow, .click_to_view");t.off("click").on("click",function(t){t.preventDefault(),i(e(this).data("content-id"))}),t.keypress(function(t){if(13==t.which)return e(this).click(),!1}),t.attr("tabindex",0)}this.showDownload=!!document.querySelector("#service_download");var W=null,U=!1,F=document.querySelector(".download .filesize")||null,B=null!==F?F.textContent:"";return e(".js-select.hq").on("click",function(t){t.stopPropagation(),e(this).toggleClass("open")}),e(".js-select.parts").on("click",function(t){t.stopPropagation(),e(this).toggleClass("open")}),e(".modal").on("click",function(t){t.stopPropagation(),e(this).hasClass("dropdown")||E()}),e(".js-select.kbps").on("click",function(t){t.stopPropagation(),e(this).toggleClass("open")}),$(),{rebind:$}}),define("_monthly",["jquery","_api","domReady!"],function(e,t){e(".table-subscribe01 .js-btn-cancel").on("click",function(){e(this).closest("tr").next(".box-hided-cancel-dialog").find(".js-box-to-cancel").stop().slideDown(300)}),e(".box-hided-cancel-dialog .close01").on("click",function(){e(this).closest("tr").find(".js-box-to-cancel").stop().slideUp(300)}),e(".table-subscribe01 tr.tr-subscribelist").each(function(t){t%2===0&&e(this).addClass("bg-white")}),e(".js-channel-api").each(function(){var n=t.mergeParams(e(this).data()),a=this;e.ajax({url:"/api/v1/content/list/",data:n,type:"POST",dataType:"json",success:function(t){var n="";if(t.hasOwnProperty("items")&&t.items.length>0){for(i=0;i<5;i++)n+='<li><a target="_blank" href="'+t.items[i].url+'"><img src="'+t.items[i].image.medium+'"></a></li>';e(a).addClass("is-loaded").append(n)}},error:function(){console.log("something went wrong")}})})}),define("_payment_history",["jquery","_msg","_csrf","domReady!"],function(e,t,n){var i={};e(".js-view-purchase").on("click",function(){var a=e("#ajaxurl-view-purchase").data("src"),o=e(this).children("a").data("purchase-number");i[o]?e("#PN-"+o).find(".js-view-purchase").children("div").slideToggle(150):e.post(a,{purchaseid:o,csrf_token:n.get()},function(a){switch(a.status){case"OK":i[o]=a,e("#PN-"+o).find(".js-view-purchase").children("div").html(a.purchase).slideToggle(150);break;case"FAIL":t._notify(a.msg)}n.set(a.new_csrf_token)}).fail(function(){t._error(e(".js-error-msg").data("msg"))})})}),define("_payment_information",["jquery","_msg","_csrf","domReady!"],function(e,t,n){function i(){e(".payment-info-hidden").removeClass("payment-info-hidden"),a()}function a(){o(),b===p.VIEWING?r():b===p.EDITING&&s()}function o(){var t=e(".js-cci-ctrl");t.removeClass("cci-state--viewing cci-state--editing"),t.removeClass("cci-card-status--none cci-card-status--exists"),b===p.VIEWING?t.addClass("cci-state--viewing"):b===p.EDITING&&t.addClass("cci-state--editing"),g===m.NO_CARD?t.addClass("cci-card-status--none"):g===m.HAS_CARD&&t.addClass("cci-card-status--exists")}function s(){e(".js-cci-action-save").addClass("cci-disabled"),e(".js-cci-action-delete").addClass("cci-disabled"),e(".js-payment-sandbox").fadeIn(function(){e("#payment-sandbox-pci").prop("src",function(){return e(this).data("src")})})}function r(){e("#payment-sandbox-pci").removeAttr("src"),e(".js-payment-sandbox").hide(),e(".js-cci-action-save").addClass("cci-disabled"),e(".js-cci-action-delete").addClass("cci-disabled")}function l(e){y=e,d()}function c(){return g===m.NO_CARD||b===p.EDITING}function d(){var t=e("#js-data-cci-iframe").data("origin"),n=document.getElementById("payment-sandbox-pci"),i=n.contentWindow.postMessage?n.contentWindow:void 0;return"undefined"!=typeof i&&void i.postMessage({action:w.SUBMIT},t)}function u(){e(".js-cci-action-delete").addClass("cci-disabled"),e(".js-cci-action-save").addClass("cci-disabled");var i=e("#ajaxurl-remove-card").data("src");e.ajax({url:i,type:"DELETE",headers:{csrftoken:n.get()},success:function(i){switch(i.status){case"OK":window.location.reload(!0);break;default:t._warn(i.msg),e(".js-cci-action-delete").removeClass("cci-disabled"),e(".js-cci-action-save").removeClass("cci-disabled")}n.set(i.new_csrf_token)},error:function(){t._error(e(".js-error-msg").data("msg")),e(".js-cci-action-delete").removeClass("cci-disabled"),e(".js-cci-action-save").removeClass("cci-disabled")}})}var p={VIEWING:"VIEWING",EDITING:"EDITING"},m={HAS_CARD:"HAS_CARD",NO_CARD:"NO_CARD"},f=e("#js-data-payment-information").data("has-cc")||!1,h=e("#js-data-payment-information").data("reload-on-success")||!1,v=e("#js-data-payment-information").data("editForNoCard")||!1,g=f?m.HAS_CARD:m.NO_CARD,b=p.VIEWING;v&&g===m.NO_CARD&&(b=p.EDITING),e(".js-cci-action-edit").on("click",function(){return b=p.EDITING,a(),!1}),e(".js-cci-action-cancel").on("click",function(){return b=p.VIEWING,a(),!1});var _={ON_LOADED:"onLoaded",ON_SUBMISSION:"onSubmission",ON_ERROR:"onError",ON_COMPLETED:"ON_COMPLETED"},w={SUBMIT:"submit"},y=null;e(".js-cci-action-save").on("click",function(t){return e(this).hasClass("cci-disabled")?t.preventDefault():(d(),void e(this).addClass("cci-disabled"))});var k='<div class="box-accountConfirm01"><p class="title01">'+window.r18_trns.confirm_remove_card+'</p><ul class="list01"><li class="fn-account-confirm-yes">'+window.r18_trns.yes+'</li><li class="fn-account-confirm-no">'+window.r18_trns.no+"</li></ul></div>";return e(".js-cci-action-delete").on("click",function(n){return e(this).hasClass("cci-disabled")?n.preventDefault():(t._warn(k),e(".fn-account-confirm-yes").on("click",function(){u()}),e(".fn-account-confirm-no").click(function(){e(".js-notice").fadeOut(150).remove(),e(".js-whiteout").fadeOut(150,function(){e(this).remove()})}),!1)}),window.addEventListener("message",function(t){var n=e("#js-data-cci-iframe").data("origin");if(t.origin+"/"===n&&t.data.status)switch(t.data.status){case _.ON_LOADED:var i=t.data.height+20+20;e("#payment-sandbox-pci").height(i),e(".js-cci-action-save").removeClass("cci-disabled"),e(".js-cci-action-delete").removeClass("cci-disabled");break;case _.ON_SUBMISSION:e(".js-cci-action-save").addClass("cci-disabled"),e(".js-cci-action-delete").addClass("cci-disabled");break;case _.ON_ERROR:e(".js-cci-action-save").removeClass("cci-disabled"),e(".js-cci-action-delete").removeClass("cci-disabled"),y&&(y({status:"fail",message:t.data.message}),y=null);break;case _.ON_COMPLETED:y&&(y({status:"ok"}),y=null),h&&window.location.reload(!0)}},!1),i(),{_submit_credit_card_form:l,_requires_credit_card_submission:c}}),define("_responsive",["jquery","domReady!"],function(e){e("#toggleHeaderSearch").click(function(){e("#wrapper").toggleClass("searchActive")}),e(".js-open-toggle-friend").on("click",function(){var t=e(".dropdown-contents ."+e(this).data("friend"));e(t).hasClass("open")?e(t).removeClass("open"):(e(".dropdown-contents").children().removeClass("open"),e(t).addClass("open"))})}),define("_quicklist",["jquery","domReady!"],function(e){e(".js-quicklist-trigger").on("click",function(){e(".sub-box-popUp01").stop(!0,!1).fadeIn(150,function(){e("html").on("click",function(){e(".sub-box-popUp01").stop(!0,!1).fadeOut(150),e("html").unbind("click")}),e(".sub-box-popUp01").on("click",function(e){e.stopPropagation()})}),e(".js-quicklist-close-trigger").on("click",function(){e(".sub-box-popUp01").fadeOut(150),e("html").unbind("click")})})}),define("_reader",["jquery"],function(e){function t(e){var t=screen.availWidth-10,n=screen.availHeight-35;form=document.createElement("form"),input=document.createElement("input"),w=window.open("","book_viewer","scrollbars=0,width="+t+",height="+n+"left=0,top=0,resizable=1,status=0,toolbar=0"),form.action="/ecomics/file/viewer/id="+e+"/",form.target="book_viewer",form.method="post",input.setAttribute("type","hidden"),input.setAttribute("name","my_ref"),input.setAttribute("value","mylibrary"),form.appendChild(input),document.body.appendChild(form),form.submit(),document.body.removeChild(form),w.focus()}return{pop:t}}),define("_register",["jquery","_msg","domReady!"],function(e,t){e("#signup [name='email']").on("copy",function(){return!1}),e("#signup [name='emailconfirm']").on("paste",function(){return!1}),e("#signup [name='emailconfirm']").blur(function(){var n=e("#signup [name='email']").val(),i=e("#signup [name='emailconfirm']").val();n!==i&&(t._error(e("#signup .js-error-msg-emailconfirm").text()),e("#signup [name='emailconfirm']").val(""))}),e("#signup [name='gdpr']").click(function(){e(this).parent("label").toggleClass("not-accepted",!e(this).prop("checked")),e("#signup [name='btnSubmit']").toggleClass("disabled",!e(this).prop("checked"))})}),define("_rollbox",["jquery","domReady!"],function(e){e(".js-rollbox li").on("mouseover",function(t){var n=e(this).parent().parent();e(n).find(".on").removeClass("on"),e(n).find("img").attr("src",e(this).data("src")),e(n).find("p.img a").attr("href",e(this).data("link")),e(n).find("p.second").children("a").html(e(this).data("title")),e(n).find("p.second").children("a").attr("href",e(this).data("link")),e(this).addClass("on")})}),define("_rotator",["jquery","domReady!"],function(e,t){function n(t){var n=e(".navi li.active",t.elem),i=n.next().length?n.next():e(".navi li:first",t.elem);e(".chn-preview-banner .bnr-chn-preview > img").attr("src","/assets/image/channels/banners/"+i.attr("id")+".jpg"),e(".chn-preview-banner .logo").removeClass(function(e,t){return(t.match(/\blogo-img-\S+/g)||[]).join(" ")}),e(".chn-preview-banner .logo").addClass("logo-img-"+i.attr("id")),e(".chn-preview-banner .descrip").html(i.data("descrip")),e(".chn-preview-banner .titlescount").html(i.data("titlescount")),e(".chn-preview-banner .price").html(i.data("price")),e(".chn-hover-banner .ttl-chn-navi").html(i.data("name")),e(".bnr-chn-preview").attr("href",e("#"+i.attr("id")+" a").attr("href")),i.addClass("active"),n.removeClass("active last-active")}function i(e){e.autoPlay&&(imgRotationTimerID=setInterval(function(){n(e)},e.time))}function a(t){e(t).addClass("active"),e(".chn-preview-banner .logo").removeClass(function(e,t){return(t.match(/\blogo-img-\S+/g)||[]).join(" ")}),e(".chn-preview-banner .logo").addClass("logo-img-"+t.id),e(".chn-preview-banner .descrip").html(e(t).data("descrip")),e(".chn-preview-banner .titlescount").html(e(t).data("titlescount")),e(".chn-preview-banner .bnr-chn-preview > img").attr("src","/assets/image/channels/banners/"+t.id+".jpg"),e(".chn-preview-banner .price").html(e(t).data("price")),e(".chn-hover-banner .ttl-chn-navi").html(e(t).data("name")),e(".bnr-chn-preview").attr("href",e("#"+t.id+" a").attr("href"))}e("#image-rotation .navi li:first-child").addClass("active"),e.fn.imageRotation=function(t){t=e.extend({elem:this,time:2e3,animationTime:500,autoPlay:!0,rolloverImage:!0,rolloverTime:10,rolloutTime:800},t),i(t)},e(".chn-preview-banner, .navi li").hover(function(t){if(e(this).hasClass("chn-preview-banner"));else{e(".navi li.active").removeClass("active");var n=this;a(n)}clearInterval(imgRotationTimerID)},function(t){imgRotationTimerID=setInterval(function(){n(t)},2e3),e(".chn-preview-banner .logo").removeClass(this.id)}),e("#image-rotation").imageRotation({})}),define("_scroll",["jquery","domReady!"],function(e){if(e(".js-faq-link").on("click",function(t){if(t.preventDefault(),e(".dl-faq01 dd").css("display","none"),e(this.hash+"_ + dd").slideDown("slow"),e("body").css({overflow:"unset"}),e("html").css({"overflow-x":"auto"}),e(this.hash+"_").length>0){var n=e(".mainWrap > #header").height()+10;e("html, body").animate({scrollTop:e(this.hash+"_").offset().top-n+"px"},0)}}),""!==location.hash){var t=location.hash.split("--");if(e(t[0]+"_").length>0){var n=e(".mainWrap > #header").height()+10;2===t.length&&e("#"+t[1]+"_").length>0?(e(t[0]+"_ + dd").show(0),e("html, body").animate({scrollTop:e("#"+t[1]+"_").offset().top-n},0)):e(t[0]+"_").length>0&&e("html, body").animate({scrollTop:e(t[0]+"_").offset().top-n},0).promise().done(function(){e(t[0]+"_ + dd").slideDown("slow")})}}""!==location.hash&&"_"===location.hash.substr(-1)&&e("html, body").animate({scrollTop:e(location.hash).offset().top-40+"px"},0).promise().done(function(){e(location.hash+" + dd").slideDown("slow")})}),define("_select",["jquery","domReady!"],function(e){function t(){e(".fn-cmn-box-select").not(".js-year-select").not(".js-month-select").minimalect({class_container:"cmn-box-selectIn"}),e(".fn-cmn-box-select.js-year-select").minimalect({class_container:"cmn-box-selectIn",placeholder:"20**"}),e(".fn-cmn-box-select.js-month-select").minimalect({class_container:"cmn-box-selectIn",placeholder:"**"}),e(".js-typesearch").parent().find(".cmn-box-selectIn input").attr("disabled",!1)}return function(e,t,n,i){function a(t,n){s.text_search||(s.text_search="disabled"),this.element=e(t),this.options=e.extend({},s,n),this._defaults=s,this._name=o,this.label=e('[for="'+this.element.attr("id")+'"]').attr("for","minict_"+this.element.attr("id")),this.init()}var o="minimalect",s={theme:"",transition:"fade",remove_empty_option:!0,text_search:!1,placeholder:t.r18_trns.pls_select,empty:"No results match your keyword.",class_container:"minict_wrapper",class_group:"minict_group",class_empty:"minict_empty",class_active:"active",class_selected:"selected",class_hidden:"hidden",class_highlighted:"highlighted",class_first:"minict_first",class_last:"minict_last",beforeinit:function(){},afterinit:function(){e('select[name="subject"] + .cmn-box-selectIn ul > li').click(function(t){var n="Content ID(title) with issues: \nOS/OS version: \nBrowser: \nError codes/error messages, if any: \nYour steps till error occurred: ",i="Content ID(title) with issues: \nVR Device: \n(For PCVR) OS/OS version/Browser: \nError codes/error messages, if any: \nYour steps till error occurred: ",a="Paypal payment number (or transaction ID): \nDate of DMM point charge: \nAmount of DMM point charge: ",o="HIRAGANA ID (The last 4 letters): \nDate of DMM point charge: \nAmount of DMM point charge: ",s="Bitcoin Order Number : \nDate of DMM point charge: \nAmount of DMM point charge: \nYour Bitcoin Address to get refund: ",r="PIN code: \nA purchase store name: \nDate of DMM point charge: \nAmount of DMM point charge: ",l="※ Please do not write PIN code in MESSAGE \nA purchase store name: \nDate of DMM point charge: \nAmount of DMM point charge: ";e(this).hasClass("js-contact-subject-video")?e(".js-contact-support-message").val(n):e(this).hasClass("js-contact-subject-vr-video")?e(".js-contact-support-message").val(i):e(this).hasClass("js-contact-subject-paypal")?e(".js-contact-support-message").val(a):e(this).hasClass("js-contact-subject-bitcoin")?e(".js-contact-support-message").val(s):e(this).hasClass("js-contact-subject-bitcash")?e(".js-contact-support-message").val(o):e(this).hasClass("js-contact-subject-dmmpoint-logged-in")?e(".js-contact-support-message").val(r):e(this).hasClass("js-contact-subject-dmmpoint-logged-out")?e(".js-contact-support-message").val(l):e(".js-contact-support-message").val()!==n&&e(".js-contact-support-message").val()!==i&&e(".js-contact-support-message").val()!==a&&e(".js-contact-support-message").val()!==o&&e(".js-contact-support-message").val()!==s&&e(".js-contact-support-message").val()!==r&&e(".js-contact-support-message").val()!==l||e(".js-contact-support-message").val("")})},onchange:function(){},onopen:function(){},onclose:function(){},onfilter:function(){}};a.prototype={init:function(){this.options.beforeinit();var t=this;this.wrapper=e('<div class="'+this.options.class_container+'"></div>'),this.element.hide().after(this.wrapper),this.options.theme&&this.wrapper.addClass(this.options.theme),this.input=e('<input type="text" value="'+(this.element.find("option[selected]").html()||"")+'" placeholder="'+(this.element.find("option[selected]").html()||this.options.placeholder)+'" '+(this.element.is("[tabindex]")?"tabindex="+this.element.attr("tabindex"):"")+(this.options.text_search||"")+" />").appendTo(this.wrapper),this.ul=e("<ul>"+t.parseSelect()+'<li class="'+t.options.class_empty+'">'+t.options.empty+"</li></ul>").appendTo(this.wrapper),this.items=this.wrapper.find("li"),this.element.find("option[selected]").length&&this.items.filter('[data-value="'+this.element.find("option[selected]").val()+'"]').addClass(t.options.class_selected),t.element.on("change",function(){var e=t.items.filter("."+t.options.class_selected),n=t.parseSelect();t.element.val()!=e.data("value")&&t.hideChoices(t.wrapper,function(){""===t.element.val()?t.input.val("").attr("placeholder",t.options.placeholder):(t.ul.html(n+'<li class="'+t.options.class_empty+'">'+t.options.empty+"</li>"),t.items=t.wrapper.find("li"),t.selectChoice(t.items.filter('[data-value="'+t.element.val()+'"]')))})}),e(n).on("click",function(){t.hideChoices(t.wrapper)}),e("*").not(t.wrapper).not(t.wrapper.find("*")).on("focus",function(){t.hideChoices(t.wrapper)}),this.wrapper.on("click",function(e){e.stopPropagation(),t.toggleChoices()}),this.label.on("click",function(e){e.stopPropagation(),t.input.trigger("focus")}),this.wrapper.on("click","li:not(."+t.options.class_group+", ."+t.options.class_empty+")",function(){t.selectChoice(e(this))}),this.wrapper.on("click","li."+t.options.class_group+", li."+t.options.class_empty,function(e){e.stopPropagation(),t.input.focus()}),this.input.on("focus click",function(e){e.stopPropagation(),t.showChoices()}).on("keydown",function(e){switch(e.keyCode){case 38:t.navigateChoices("up");break;case 40:t.navigateChoices("down");break;case 13:case 9:t.items.filter("."+t.options.class_highlighted).length?t.selectChoice(t.items.filter("."+t.options.class_highlighted)):t.input.val()&&t.selectChoice(t.items.not("."+t.options.class_group+", ."+t.options.class_empty).filter(":visible").first()),13===e.keyCode&&(e.preventDefault(),t.hideChoices(t.wrapper));break;case 27:t.hideChoices(t.wrapper)}}).on("keyup",function(n){e.inArray(n.keyCode,[38,40,13,9,27])===-1&&t.filterChoices()}),this.options.afterinit()},navigateChoices:function(e){var t=this,n=(t.wrapper,t.options),i=t.items,a="."+n.class_hidden+", ."+n.class_empty+", ."+n.class_group;if(!i.filter("."+n.class_highlighted).length)return"up"===e?i.not(a).last().addClass(n.class_highlighted):"down"===e&&i.not(a).first().addClass(n.class_highlighted),!1;if(cur=i.filter("."+n.class_highlighted),cur.removeClass(n.class_highlighted),"up"===e)if(i.not(a).first()[0]!=cur[0]){cur.prevAll("li").not(a).first().addClass(n.class_highlighted);var o=i.filter("."+n.class_highlighted).offset().top-t.ul.offset().top+t.ul.scrollTop();t.ul.scrollTop()>o&&t.ul.scrollTop(o)}else i.not(a).last().addClass(n.class_highlighted),
t.ul.scrollTop(t.ul.height());else if("down"===e)if(i.not(a).last()[0]!=cur[0]){cur.nextAll("li").not(a).first().addClass(n.class_highlighted);var s=t.ul.height(),r=i.filter("."+n.class_highlighted).offset().top-t.ul.offset().top+i.filter("."+n.class_highlighted).outerHeight();s<r&&t.ul.scrollTop(t.ul.scrollTop()+r-s)}else i.not(a).first().addClass(n.class_highlighted),t.ul.scrollTop(0)},parseSelect:function(){var t=this,n="";return t.element.find("optgroup").length?t.element.find("optgroup").each(function(){n+='<li class="'+t.options.class_group+'">'+e(this).attr("label")+"</li>",n+=t.parseElements(e(this).html())}):n=this.parseElements(t.element.html()),n},parseElements:function(t){var n=this,i="";return e(e.trim(t)).filter("option").each(function(){var t=e(this);""===t.attr("value")&&n.options.remove_empty_option||(i+='<li data-value="'+t.val()+'" class="'+(t.attr("class")||"")+'">'+t.text()+"</li>")}),i},toggleChoices:function(){this.wrapper.hasClass(this.options.class_active)?this.hideChoices(this.wrapper):this.showChoices()},showChoices:function(t){var n=this,i=this.wrapper,a=this.options;if(i.hasClass(a.class_active))"function"==typeof t&&t.call();else{switch(this.updateFirstLast(!1),e("."+a.class_container).each(function(){e(this)[0]!==i[0]&&n.hideChoices(e(this))}),"function"==typeof t&&t.call(),i.addClass(a.class_active),a.transition){case"fade":n.ul.fadeIn(150);break;default:n.ul.show()}this.input.val("").focus(),this.options.onopen()}},resetDropdown:function(e){var t=this.options;this.items.removeClass(t.class_hidden),this.wrapper.find("."+t.class_empty).hide(),this.items.filter("."+t.class_highlighted).removeClass(t.class_highlighted),"function"==typeof e&&e.call()},hideChoices:function(e,t){var n=this.options,i=e.find("input");if(e.hasClass(n.class_active)){switch(e.removeClass(n.class_active),n.transition){case"fade":e.children("ul").fadeOut(100);break;default:e.children("ul").hide()}this.resetDropdown(t),i.blur(),i.attr("placeholder")!=n.placeholder?i.val(i.attr("placeholder")):this.items.filter("."+n.class_selected).length||i.val(""),n.onclose()}else"function"==typeof t&&t.call()},filterChoices:function(){var t=this.wrapper,n=this.options,i=this.input.val();this.items.filter("."+n.class_highlighted).removeClass(n.class_highlighted),this.items.not(n.class_group).each(function(){e(this).text().search(new RegExp(i,"i"))<0?e(this).addClass(n.class_hidden):e(this).removeClass(n.class_hidden)}),this.items.filter("."+n.class_group).removeClass(n.class_hidden).each(function(){nextlis=e(this).nextAll("li").not("."+n.class_hidden+", ."+n.class_empty),!nextlis.first().hasClass(n.class_group)&&nextlis.length||e(this).addClass(n.class_hidden)}),t.find("."+n.class_empty).hide(),this.items.not("."+n.class_hidden+", ."+n.class_empty).length?this.options.onfilter(!0):(t.find("."+n.class_empty).show(),this.options.onfilter(!1)),this.updateFirstLast(!0)},selectChoice:function(e){var t=this.element,n=this.options;this.items.removeClass(n.class_selected),e.addClass(n.class_selected),e.data("value")?this.input.val(e.text()).attr("placeholder",e.text()):this.input.val("").attr("placeholder",n.placeholder),t.find("option:selected").val()!=e.data("value")&&(t.find("option:selected").prop("selected",!1),t.find('option[value="'+e.data("value")+'"]').prop("selected",!0),t.trigger("change")),this.options.onchange(e.data("value"),e.text())},updateFirstLast:function(e){var t=this.wrapper,n=this.options;t.find("."+n.class_first+", ."+n.class_last).removeClass(n.class_first+" "+n.class_last),e?(this.items.filter(":visible").first().addClass(n.class_first),this.items.filter(":visible").last().addClass(n.class_last)):(this.items.first().addClass(n.class_first),this.items.not("."+n.class_empty).last().addClass(n.class_last))}},e.fn[o]=function(t){return this.each(function(){e.data(this,"plugin_"+o)||e.data(this,"plugin_"+o,new a(this,t))})}}(jQuery,window,document),t(),{init:t}}),define("_silverlight_check",["jquery","domReady!"],function(e){function t(){var e=!1;try{try{new ActiveXObject("AgControl.AgControl");e=!0}catch(t){navigator.plugins["Silverlight Plug-In"]&&(e=!0)}}catch(e){}return e}t()?e(".silverlight-installed").removeClass("hidden"):e(".silverlight-not-installed").removeClass("hidden")}),define("_unfollow",["jquery","_msg","_carousel","_csrf","domReady!"],function(e,t,n,i){function a(){e(".js-unfollow").on("click",function(n){var a=e("#ajaxurl-remove").data("src"),o=e(n.target.parentNode).data("follow-id");e.post(a,{id:o,csrf_token:i.get()},function(n){switch(n.status){case"OK":e("#"+o).parent().animate({height:"0px",opacity:"0"},300,function(){e(this).remove(),0===e(".js-ajax-list li").length&&e(".js-updates-none").show()}),t._mini(n.msg);break;case"FAIL":t._notify(n.msg)}i.set(n.new_csrf_token)}).fail(function(){t._error(e(".js-error-msg").data("msg"))})})}return a(),{addUnfollowHandler:a}}),define("_wishlist",["jquery","_msg","_csrf","domReady!"],function(e,t,n){function i(i){i||e(".js-remove-from-wishlist").unbind("click"),e(".js-remove-from-wishlist").on("click",function(i){var a=e("#ajaxurl-remove").data("src"),o=e(this).data("content-id");e.post(a,{id:o,csrf_token:n.get()},function(i){switch(i.status){case"OK":t._mini(i.msg),e(this).removeClass("js-remove-from-wishlist"),e("#"+o).animate({height:"0px",opacity:"0"},300,function(){e(this).remove(),0===e(".js-wishlist li").length&&e(".js-wishlist-empty").show()});break;case"FAIL":t._notify(i.msg)}n.set(i.new_csrf_token)}).fail(function(){t._error(e(".js-error-msg").data("msg"))})})}function a(i){i||e(".js-move-to-wishlist").unbind("click"),e(".js-move-to-wishlist").on("click",function(i){var a=e("#ajaxurl-move-to-wishlist").data("src"),o=e(this).data("content-id"),s=e(this).data("product-id"),r=location.origin+location.pathname;e.post(a,{contentid:o,productid:s,referer:r,csrf_token:n.get()},function(e){switch(e.status){case"OK":t._mini(e.msg);break;case"FAIL":t._notify(e.msg);break;case"NOT_LOGGED_IN":t._notify(e.msg)}n.set(e.new_csrf_token)}).fail(function(){t._error(e(".js-error-msg").data("msg"))})})}return e("body").on("click",".js-add-to-wishlist",function(){if(e(this).hasClass("cmn-in-wishlist"))return!1;var i=e(this).data("wishlist-id"),a=e("#ajaxurl-add-to-wishlist").data("src"),o=this,s=location.origin+location.pathname;e.post(a,{id:i,referer:s,csrf_token:n.get()},function(i){switch(i.status){case"OK":t._mini(i.msg),e(o).addClass("cmn-in-wishlist").unbind("click");break;case"FAIL":t._notify(i.msg);break;case"NOT_LOGGED_IN":t._notify(i.msg)}n.set(i.new_csrf_token)}).fail(function(){t._error(e(".js-error-msg").data("msg"))})}),a(!0),i(!0),{_rebind_moveto:a,_rebind_removefrm:i}}),define("_show_more",["jquery","_unfollow","_carousel","_add_to_cart","_wishlist","_modal","_msg","domReady!"],function(e,t,n,i,a,o,s){function r(o){o||(o=".js-show-more-history");var l=!1;e(o).on("click",function(){if(l===!1){var o=e("#ajaxurl-show-more").data("src"),c=this;l=!0,e.post(o,{},function(o){if(o.status)switch(o.status){case"OK":e(c).parent().remove(),e(".js-ajax-list").append(o.html),r(e(".js-ajax-list li").last().find(".js-show-more-history")),e(".js-new-insert").slideDown(150).removeClass(".js-new-insert"),e(".js-unfollow").unbind("click"),t.addUnfollowHandler(),i._rebind(),a._rebind_moveto(),e(".js-ajax-list .js-carousel").each(function(){e("> ul",this).hasClass("owl-carousel")!==!0&&n.init(this)}),0===e(".js-ajax-list li").length&&e(".js-updates-none").show();break;case"FAIL":s._notify(o.msg)}l=!1}).fail(function(){s._error(e(".js-error-msg").data("msg")),l=!1})}})}function l(t){t||e(".js-show-more-wishlist").unbind("click");var n=!1;e(".js-show-more-wishlist").on("click",function(){if(n===!1){var t=e("#ajaxurl-show-more").data("src"),o=this;n=!0,e.post(t,{},function(t){if(t.status)switch(t.status){case"OK":e(o).parent().remove(),e(".js-wishlist").append(t.html),e(".js-new-insert").slideDown(150).removeClass(".js-new-insert"),l(),i._rebind(),a._rebind_removefrm();break;case"NO_MORE_ITEMS":case"FAIL":s._notify(t.msg)}n=!1}).fail(function(){s._error(e(".js-error-msg").data("msg")),n=!1})}})}function c(t){t||e(".js-show-more-library").unbind("click");var n=!1;e(".js-show-more-library").on("click",function(){if(n===!1){var t=e("#ajaxurl-show-more").data("src"),a=this;n=!0,e.post(t,{},function(t){if(t.status)switch(t.status){case"OK":e(a).parent().remove(),e(".js-library").append(t.html),e(".js-new-insert").slideDown(150).removeClass(".js-new-insert"),c(),o.rebind(),i._rebind();break;case"NO_MORE_ITEMS":case"FAIL":s._notify(t.msg)}n=!1}).fail(function(){s._error(e(".js-error-msg").data("msg")),n=!1})}})}r(),l(!0),c(!0)}),define("_social",["jquery","domReady!"],function(e){e(".js-sexcom-share").on("click",function(){domain=".sex.com";var e=document.createElement("script");e.setAttribute("language","javascript"),e.setAttribute("src","http://www.sex.com/javascript/bookmarklet.js?seed="+1e5*Math.random()),document.body.appendChild(e)}),e(".js-tw-share").on("click",function(){var t=e(".cmn-ttl-item03 cite").html().substr(0,80)||"Home of Japanese porn",n="https://twitter.com/intent/tweet?url="+encodeURIComponent(location.href.split("?")[0])+"&via=R18dotcom&text="+t,i=window.open(n,"twshare","width=580,height=450");i.focus()})}),define("_tabs",["jquery","domReady!"],function(e){function t(){window.clearTimeout(n),c=!1,n=window.setTimeout(function(){e(".cmn-tab-content04 .tab-triggers .on").removeClass("on"),d+1>=l?d=0:d++,e(e(i)[d]).addClass("on"),tab_block_to_show="#"+e(e(".cmn-tab-content04 .tab-triggers li a")[d]).data("tab"),e(".cmn-tab-content04Wrap .js-tab").hide(),e(tab_block_to_show).fadeIn(200),c||t()},a)}var n,i=e(".cmn-tab-content04 .tab-triggers").find("li"),a=5500,o=4e3,s=12e3,r=[],l=i.length,c=!1,d=0;e(".tab-click-trigger").on("click",function(i){if(e(this).data("link")&&(e(this).data("sm-class")?e("."+e(this).data("sm-class")).attr("href",e(this).data("link")):e(".js-vod-seemore-link").attr("href",e(this).data("link"))),!e(this).hasClass("on")){e(this).parents(".tab-triggers").find(".on").removeClass("on"),e(this).parents(".js-tab-scroller").find(".on").removeClass("on"),e(this).parent().parent().addClass("on"),e(this).parent().addClass("on"),e(this).addClass("on");var a=e(this).data("tab"),o=e("#"+a).parent();e(o).children(".js-tab").stop(!0,!1).hide().promise().done(function(){e("#"+a).stop(!0,!1).fadeIn(200)}),e(".js-tab .close01").on("click",function(t){e(this).parent().slideUp(),e(this).parents(".main").find(".on .tab-click-trigger").removeClass("on").parent().removeClass("on")})}e(this).parents(".cmn-tab-content04")[0]&&(window.clearTimeout(n),c=!0,d=r.indexOf(e(this).data("tab")),n=window.setTimeout(function(){t()},s))}),e('header[class^="g01"] #gNav01').addClass("on"),e('header[class^="g02"] #gNav02').addClass("on"),e('header[class^="g03"] #gNav03').addClass("on"),e('header[class^="g04"] #gNav04').addClass("on"),e(".js-hd-tab").on("mouseenter",function(t){if(e(this).hasClass("on"))return!1;e(".js-hd-tab").removeClass("on"),e(this).addClass("on"),e("header").hasClass("gDef")&&e("#gNavi").addClass("on");var n=e(this).attr("id");e(this).closest("header").removeClass().addClass(n),e(this).hasClass("on")||(e(".js-hd-tab").removeClass("on"),e(this).addClass("on"))}),e("#gNav01 .nav01").hover(function(){e("#gNavi, #gNavi li ul").css("overflow","visible")}),e(".cmn-tab-content04Wrap .js-tab").hover(function(){c=!0,window.clearTimeout(n)},function(){c=!1,n=window.setTimeout(function(){t()},o)}),0!==e(".cmn-tab-content04 .tab-triggers .on").length&&t(),e(".cmn-tab-content04 .tab-triggers li a").each(function(){r.push(e(this).data("tab"))})}),define("_view_sample",["jquery","_msg","_video","domReady!"],function(e,t,n){e("#wrapper").on("click",".js-view-sample",function(){var n=e(this);if($showSampleVideoWithPurchaseOptions=n.data("show-sample-video-with-purchase-options"),!$showSampleVideoWithPurchaseOptions&&n.data("vr-url"))return t._vrVideo({url:n.data("vr-url"),format:n.data("vr-format"),angle:n.data("vr-angle"),poster:n.data("poster"),id:n.data("id")}),!1;if(e(this).attr("id"))e(this).data("poster",e(this).attr("data-poster")),e(this).data("title",e(this).attr("data-title")),e(this).data("id",e(this).attr("data-id")),e(this).data("video-low",e(this).attr("data-video-low")),e(this).data("video-med",e(this).attr("data-video-med")),e(this).data("video-high",e(this).attr("data-video-high")),e(this).data("actress",e(this).attr("data-actress")),e(this).data("product-page-url",e(this).attr("data-product-page-url")),t._video(e("#"+e(this).attr("id")).data());else{const i=e(this).data();i.vrUrl&&i.vrFormat&&i.vrAngle?t._3dVideo(i,i.vrUrl,i.vrFormat,i.vrAngle):t._video(i)}}),e(document).keyup(function(t){27===t.keyCode&&e(".js-player-close").trigger("click")}),e("#iframeSample").length&&n.init("iframeSample",!1,!1,"none")}),define("_home",["jquery","_i3","_video","domReady!"],function(e,t,n){var i=[],a=0,o="dailyranking rank1";e("#home-features .dailyranking, #home-features li").each(function(){a++;var t=new Image;t.src=e(this).data("image"),e(this).addClass("rank"+a),i.push(t)}).mouseenter(function(){if(o!=e(this).attr("class")){var t=e("#rankingCover img"),n=new Image;n.src=e(this).data("image");var i=e(n).hide();e("#rankingCover").append(n),t.stop(!0).fadeOut(500,function(){e(this).remove()}),i.fadeIn(500),o=e(this).attr("class"),e("#rankingCover").css("background-image","url("+i.attr("src")+")")}});var s=null;e(".amateurPlaceholder").click(function(){e(".home-amature-li.active").trigger("click")}),e(".amateurList li").click(function(){e(".amateurList li").removeClass("active"),e(this).addClass("active");var t=e(this).find("a").data("sample-low"),i=e(this).find("a").data("sample-med"),a=e(this).find("a").data("sample-high"),o=e(".amateurList ul li").index(e(this)),r=e(this).find("a").data("poster");if(t||i||a){null!==s&&s.dispose();var l='<video id="amateursample'+o+'" poster="'+r+'" class="js-samplevideo video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width="400" height="225">';l+=t?'<source src="'+t+'" type="video/mp4" res="240" label="300kbps">':"",l+=i?'<source src="'+i+'" type="video/mp4" res="480" label="1000kbps">':"",l+=a?'<source src="'+a+'" type="video/mp4" res="720" label="1500kbps">':"",l+='<p class="vjs-no-js">'+window.r18_trns.video_tag_not_supported+"</p>",l+="</video>",e(".amateurVideo").html(l),s=n.init("amateursample"+o,!0)}else{var c='<div style="background-color: #363636; background-image: url('+r+'); width: 400px;height: 225px;background-position: center;background-repeat: no-repeat; box-shadow; 0 2px 4px 0 rgba(0,0,0,.19)"></div>';e(".amateurVideo").html(c)}}),e(".tab-triggers li a").click(function(){e(this).parents("section").find(".showMore span").text(e(this).find(".txt").text());var n=e(this).parents("section").find(".showMore");n.attr("href",e(this).data("link")),n.data("dmmref",e(this).data("dmmref")),n.data("i3ord",e(this).data("i3ord")),e(this).parents("ul").find("li").removeClass("active"),e(this).parents("li").addClass("active");var i="#"+e(this).data("tab"),a=[],o=0;if(e(i).find("li").each(function(t){a.push(e(this).data())}),a.length){var s=e(i).find("div.js-carousel.js-carousel-5.caro-hide-next");o=s.length?5:0,t.sendHomeRcmCaro(o,null,a,5)}});var r=[];e(".home-amature-li").each(function(t){r.push(e(this).data())}),r.length&&t.sendHomeRcmCaro(0,null,r,r.length),e("a[href='#wrapper']").click(function(){return e("html, body").animate({scrollTop:0},"slow"),!1}),e("#home-maintenance-trigger").click(function(){e(".home-maintenance-content").stop().slideToggle(10),e(this).toggleClass("active")});var l=location.pathname;e(".hd-list-nav01 a").each(function(){var t=e(this)[0].pathname;t===l&&e(this).addClass("active")});var c=0;e("#channel-next").click(function(){e("#subnav02 ul")[0].scrollWidth+c>e("#subnav02").innerWidth()?(c-=300,e("#subnav02 ul").animate({marginLeft:"-=300px"},"slow"),e("#channel-prev").show(),e("#subnav02 ul")[0].scrollWidth+c<e("#subnav02").innerWidth()&&e(this).hide()):e(this).hide()}),e("#channel-prev").click(function(){0!=c&&(e("#subnav02 ul").animate({marginLeft:"+=300px"},"slow"),c+=300),0==c&&e(this).hide(),e("#subnav02 ul")[0].scrollWidth+c>e("#subnav02").innerWidth()&&e("#channel-next").show()})}),define("_sale",["jquery","domReady!"],function(e){function t(t,i){if(0==i){t.closest("li").remove();var d=e(".home-sale-page1"),u=e(".home-sale-page2 li").first();d.append(u),e.trim(e(".home-sale-page2").html()).length||(e(".home_sale_container .home-carousel").hide(),e(".owl-wrapper").css("transform","translate3d(0, 0px, 0px)")),e("ul.home-sale-page1 li").length<10&&(clearInterval(c),location.reload())}a=Math.floor(i/31536e3),o=Math.floor((i-365*a*60*60*24)/2592e3),s=Math.floor((i-365*a*60*60*24-30*o*60*60*24)/86400),r=Math.floor((i-365*a*60*60*24-30*o*60*60*24-60*s*60*24)/3600),r=("0"+r).slice(-2),minutes=Math.floor((i-365*a*60*60*24-30*o*60*60*24-60*s*60*24-60*r*60)/60),minutes=("0"+minutes).slice(-2),l=Math.floor(i-365*a*60*60*24-30*o*60*60*24-60*s*60*24-60*r*60-60*minutes),l=("0"+l).slice(-2),s>0?t.text(n(s)):(t.text(window.r18_trns.sale_ends_prefix_days+r+":"+minutes+":"+l),t.data("remainingtime",i-1))}function n(e){var t=window.r18_trns.sale_ends_prefix_days;return t+e+(e>1?window.r18_trns.days:window.r18_trns.day)+window.r18_trns.sale_ends_suffix}if(e("#home-sale")){var i,a,o,s,r,l;e(".sale_last_date_info").each(function(){if(e(this).data("remainingtime")>86400){e(this).addClass("noCountdown");var t=Math.floor(e(this).data("remainingtime")/86400);e(this).text(n(t))}});var c=setInterval(function(){var n=1;e(".sale_last_date_info").each(function(){return 22!=n&&(n++,e(this).css("display","block"),void(e(this).hasClass("noCountdown")||(i=e(this).data("remainingtime"),t(e(this),i))))})},1e3);e("#home-sale .js-next").click(function(){e(".home-sale-page2 img").each(function(){e(this).attr("src")!==e(this).data("original")&&e(this).attr("src",e(this).data("original"))})})}}),define("_standalone_player",["jquery","_video","domReady!"],function(e,t){e(".js-samplevideo").each(function(n){t.init(e(this).attr("id"),!1)})}),define("_ua",["jquery","_cookie","domReady!"],function(e,t){function n(){const e=window.navigator.userAgent;if(e.indexOf("iPad")>-1)return!1;if(e.indexOf("Macintosh")>-1){var t=!1;try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return!!t}return!1}const i="te";var a=t.getCookie(i);if(null===a){a=!1;try{document.createEvent("TouchEvent"),a=!0}catch(e){a=!1}t.setCookie(i,a,365),n()&&window.location.reload()}}),define("_mylibrary",["jquery","domReady!"],function(e){function t(e,t){return(RegExp(t+"=(.+?)(&|$)").exec(e)||[,null])[1]}function n(e,t){var n=e+"="+t;if(""==window.location.search)return window.location.href+"?"+n;if(window.location.search.indexOf(e+"=")==-1)return window.location.href+"&"+n;for(var i=window.location.search.substring(1).split("&"),a=0;a<i.length;a++)if(i[a].indexOf(e)>-1){i[a]=e+"="+t;break}return window.location.href.split("?")[0]+"?"+i.join("&")}e("#contentsLibrary").html()&&(e(".nlink").bind("click",function(i){i.preventDefault();var a=e(this).attr("href"),o=t(a,"lg");window.location.href=n("lg",o)}),e(".nlinkCur").bind("click",function(i){i.preventDefault();var a=e(this).attr("href"),o=t(a,"unit");window.location.href=n("unit",o)}),e(".nlink").on("mouseover mouseout",function(){var i=e(this).attr("href"),a=t(i,"lg");e(this).attr("href",n("lg",a))}),e(".nlinkCur").on("mouseover mouseout",function(){var i=e(this).attr("href"),a=t(i,"unit");e(this).attr("href",n("unit",a))})),e(".hd-box-selectLocal").change(function(){var i=e(this).find(":selected").data("src"),a=t(i,"unit");window.location.href=n("unit",a)})}),define("_link",["jquery","domReady!"],function(e){e("body").on("click",".i3NLink",function(t){/*t.preventDefault();var n=[];e(this).data("channel")&&n.push("channels="+e(this).data("channel")),e(this).data("dmmref")&&n.push("dmmref="+e(this).data("dmmref")),e(this).data("i3ref")&&n.push("i3_ref="+e(this).data("i3ref")),e(this).data("i3ord")&&n.push("i3_ord="+e(this).data("i3ord"));var i=e(this).attr("href");n.length&&i?window.location.href=i+="?"+n.join("&"):window.location.href=i*/}),e("body").on("click",".nDataLink",function(t){t.preventDefault();var n=e(this).data("link")?e(this).data("link"):e(this).attr("href");window.location.href=n}),e("#header a").click(function(t){if(!e(this).hasClass("noref")){t.preventDefault();var n=e(this).attr("href");window.location.href=n+="?dmmref=pc_header"}})}),window.r18_trns={oops_error:"Oops... Something went wrong.",see_full_list:"See full list of items here",session_expired:"Your session has expired. Please log in to continue.",confirm_remove_card:"Are you sure you want to remove your credit card information?",try_again_later:"Try to access this page later.",network_error:"Network Error: please try again",follow_channel:"Follow this channel",following_channel:"Following this channel",follow:"Follow",following:"Following",back:"back",addtocart:"Add To Cart",fetching_cart_data:"Fetching cart data, please wait.",off:"off",yes:"Yes",no:"No",video_tag_not_supported:"Your browser does not support the video tag.",getflash:"Get Adobe Flash player",pls_select:"Please select",flash_problem:"Having difficulties playing samples?",movie_details:"More details about this title",cart_label_own:"OWN",cart_label_rent:"RENT",cart_label_subscribe:"SUBSCRIBE",cart_download_sd:"Download",cart_download_hd:"HD Download",cart_download_vr_standard:"Download",cart_download_vr_hq:"HQ Download",streaming:"Mobile Download + Streaming",rent_sd:"Streaming (7 Days)",rent_hd:"HD Streaming (7 Days)",own_4k_4k:"4K Download + 4K Streaming",own_hd_hd:"HD Download + HD Streaming",own_hd_sd:"HD Download + Streaming",own_sd_hd:"Download + HD Streaming",own_sd_sd:"Download + Streaming",own_hd:"HD Download",own_sd:"Download",own_vr_hq_hq:"HQ Mobile Download + HQ Streaming",own_vr_hq_standard:"HQ Mobile Download + Streaming",own_vr_standard_hq:"Mobile Download + HQ Streaming",own_vr_standard_standard:"Mobile Download + Streaming",cart_hd:"Download & Streaming",cart_sd:"SD Download & Streaming",cart_rent:"7 Days Streaming",cart_sale_ends:"Sale ends in ",cart_sale_time:"JST",cart_sale_day:" day and ",cart_sale_days:" days and ",cart_sale_hours:" hours ",cart_sale_hour:" hour ",cart_sale_minutes:" minutes",cart_sale_minute:" minute",cart_add:"Add to Cart",cart_wish_add:"save to wishlist",cart_wish_added:"in your wishlist",cart_channel_subscribe:"Subscribe",cart_channel_subscribed:"You are subscribed to this channel",per_month:"/month",movies:" movies",channel_trial:"2-DAY TRIAL",unlock_channel:"UNLOCK THIS MOVIE AND %s MORE",cart_point_cc_payment_only:"(when paying with credit card)",cart_point_points:"points",cart_point_bonus_points:"bonus points",cart_point_get:"Get",cart_point_points_back:"points back!",sale_ends_prefix:"Sale ends in ",sale_ends_prefix_days:"Sale ends in ",sale_ends_suffix:"",day:" day",days:" days"},require.config({baseUrl:"/assets/js/modules",waitSeconds:600,paths:{jquery:["//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min","../jquery"],videojs:["../vendor/video.min"],vjsswitch:["../vendor/videojs-switcher.min.r"],vjshotkeys:["../vendor/videojs.hotkeys"]}}),require(["jquery","videojs","vjsswitch","vjshotkeys","_video","_account","_ajax_carousel","_api","_aspect","_agegate","_add_to_cart","_advanced_search","_captcha","_carousel","_dmm_points","_ga","_cart_box","_csrf","_cookie","_detections","_expand","_follow","_form_edit","_header_cart","_header_dropdown","_history","_i3","_l18n","_lazy","_lost_pw","_modal","_monthly","_msg","_owl_trim","_page","_payment_history","_payment_information","platform","_playback_support","_responsive","_quicklist","_reader","_redirect","_register","_rollbox","_rotator","_scroll","_select","_silverlight_check","_show_more","_social","_tabs","_unfollow","_view_sample","_wishlist","_home","_sale","_standalone_player","_ua","_mylibrary","_link"]),define("../main",function(){})}();

Back to list