1/*! For license information please see viewer.js.LICENSE.txt */ 2(()=>{var e={232(e,t){"use strict";t.qg=function(e,t){const s=new n,c=e.length;if(c<2)return s;const l=t?.decode||a;let d=0;do{const t=o(e,d,c);if(-1===t)break;const n=i(e,d,c);if(t>n){d=e.lastIndexOf(";",t-1)+1;continue}const a=r(e,d,t);void 0===s[a]&&(s[a]=l(r(e,t+1,n))),d=n+1}while(d<c);return s};Object.prototype.toString;const n=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function i(e,t,n){const i=e.indexOf(";",t);return-1===i?n:i}function o(e,t,n){const i=e.indexOf("=",t);return i<n?i:-1}function r(e,t,n){let i=t,o=n;do{const t=e.charCodeAt(i);if(32!==t&&9!==t)break}while(++i<o);for(;o>i;){const t=e.charCodeAt(o-1);if(32!==t&&9!==t)break;o--}return e.slice(i,o)}function a(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},452(e){var t=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var r=t&&t.prototype instanceof m?t:m,a=Object.create(r.prototype),s=new E(i||[]);return o(a,"_invoke",{value:V(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var p="suspendedStart",v="suspendedYield",h="executing",f="completed",g={};function m(){}function w(){}function b(){}var y={};l(y,a,function(){return this});var C=Object.getPrototypeOf,x=C&&C(C(M([])));x&&x!==n&&i.call(x,a)&&(y=x);var P=b.prototype=m.prototype=Object.create(y);function I(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function T(e,t){function n(o,r,a,s){var c=u(e[o],e,r);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&i.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(d).then(function(e){l.value=e,a(l)},function(e){return n("throw",e,a,s)})}s(c.arg)}var r;o(this,"_invoke",{value:function(e,i){function o(){return new t(function(t,o){n(e,i,t,o)})}return r=r?r.then(o,o):o()}})}function V(e,n,i){var o=p;return function(r,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===r)throw a;return{value:t,done:!0}}for(i.method=r,i.arg=a;;){var s=i.delegate;if(s){var c=L(s,i);if(c){if(c===g)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===p)throw o=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=h;var l=u(e,n,i);if("normal"===l.type){if(o=i.done?f:v,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=f,i.method="throw",i.arg=l.arg)}}}function L(e,n){var i=n.method,o=e.iterator[i];if(o===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=u(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var a=r.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function M(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=b,o(P,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(P),e},e.awrap=function(e){return{__await:e}},I(T.prototype),l(T.prototype,s,function(){return this}),e.AsyncIterator=T,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var a=new T(d(t,n,i,o),r);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},I(P),l(P,c,"Generator"),l(P,a,function(){return this}),l(P,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=M,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
2h(S),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(i,o){return s.type="throw",s.arg=e,n.next=i,o&&(n.method="next",n.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:M(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},675(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0});var o={};t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=r?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(973)),a=n(321);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"state",void 0),l(this,"props",void 0),this.state=r.getInitialState(),this.props=r.getInitialProps(t),this.handleSwipeStart=this.handleSwipeStart.bind(this),this.handleSwipeMove=this.handleSwipeMove.bind(this),this.handleSwipeEnd=this.handleSwipeEnd.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this)}var t,n,i;return t=e,n=[{key:"init",value:function(){this.setupTouchListeners(),this.setupMouseListeners()}},{key:"update",value:function(e){var t=this.props,n=Object.assign({},t,e);if(t.element!==n.element||t.target!==n.target)return this.destroy(),this.props=n,void this.init();this.props=n,t.mouseTrackingEnabled===n.mouseTrackingEnabled&&t.preventTrackingOnMouseleave===n.preventTrackingOnMouseleave||(this.cleanupMouseListeners(),n.mouseTrackingEnabled?this.setupMouseListeners():this.cleanupMouseListeners()),t.touchTrackingEnabled!==n.touchTrackingEnabled&&(this.cleanupTouchListeners(),n.touchTrackingEnabled?this.setupTouchListeners():this.cleanupTouchListeners())}},{key:"destroy",value:function(){this.cleanupMouseListeners(),this.cleanupTouchListeners(),this.state=r.getInitialState(),this.props=r.getInitialProps()}},{key:"setupTouchListeners",value:function(){var e=this.props,t=e.element,n=e.target,i=e.touchTrackingEnabled;if(t&&i){var o=n||t,a=r.checkIsPassiveSupported(),s=r.getOptions(a);o.addEventListener("touchstart",this.handleSwipeStart,s),o.addEventListener("touchmove",this.handleSwipeMove,s),o.addEventListener("touchend",this.handleSwipeEnd,s)}}},{key:"cleanupTouchListeners",value:function(){var e=this.props,t=e.element,n=e.target||t;n&&(n.removeEventListener("touchstart",this.handleSwipeStart),n.removeEventListener("touchmove",this.handleSwipeMove),n.removeEventListener("touchend",this.handleSwipeEnd))}},{key:"setupMouseListeners",value:function(){var e=this.props,t=e.element,n=e.mouseTrackingEnabled,i=e.preventTrackingOnMouseleave;n&&t&&(t.addEventListener("mousedown",this.handleMouseDown),t.addEventListener("mousemove",this.handleMouseMove),t.addEventListener("mouseup",this.handleMouseUp),i&&t.addEventListener("mouseleave",this.handleMouseLeave))}},{key:"cleanupMouseListeners",value:function(){var e=this.props.element;e&&(e.removeEventListener("mousedown",this.handleMouseDown),e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("mouseup",this.handleMouseUp),e.removeEventListener("mouseleave",this.handleMouseLeave))}},{key:"getEventData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{directionDelta:0},n=this.props.rotationAngle,i=t.directionDelta,o=r.calculateMovingPosition(e),a=r.rotateByAngle(o,n);return r.calculatePosition(this.state,{rotatePosition:a,directionDelta:i})}},{key:"handleSwipeStart",value:function(e){if(!r.checkIsMoreThanSingleTouches(e)){var t=this.props.rotationAngle,n=r.calculateMovingPosition(e),i=r.rotateByAngle(n,t),o=i.x,a=i.y;this.state=r.getInitialState({isSwiping:!1,start:Date.now(),x:o,y:a})}}},{key:"handleSwipeMove",value:function(e){var t=this.state,n=t.x,i=t.y,o=t.isSwiping;if(n&&i&&!r.checkIsMoreThanSingleTouches(e)){var a=this.props.directionDelta||0,s=this.getEventData(e,{directionDelta:a}),c=s.absX,l=s.absY,d=s.deltaX,u=s.deltaY,p=s.directionX,v=s.directionY,h=s.duration,f=s.velocity,g=this.props,m=g.delta,w=g.preventDefaultTouchmoveEvent,b=g.onSwipeStart,y=g.onSwiping;e.cancelable&&w&&e.preventDefault(),c<Number(m)&&l<Number(m)&&!o||(b&&!o&&b(e,{deltaX:d,deltaY:u,absX:c,absY:l,directionX:p,directionY:v,duration:h,velocity:f}),this.state.isSwiping=!0,y&&y(e,{deltaX:d,deltaY:u,absX:c,absY:l,directionX:p,directionY:v,duration:h,velocity:f}))}}},{key:"handleSwipeEnd",value:function(e){var t=this.props,n=t.onSwiped,i=t.onTap;if(this.state.isSwiping){var o=this.props.directionDelta||0,a=this.getEventData(e,{directionDelta:o});n&&n(e,a)}else{var s=this.getEventData(e);i&&i(e,s)}this.state=r.getInitialState()}},{key:"handleMouseDown",value:function(e){var t=this.props.target;t?t===e.target&&this.handleSwipeStart(e):this.handleSwipeStart(e)}},{key:"handleMouseMove",value:function(e){this.handleSwipeMove(e)}},{key:"handleMouseUp",value:function(e){var t=this.state.isSwiping,n=this.props.target;n?(n===e.target||t)&&this.handleSwipeEnd(e):this.handleSwipeEnd(e)}},{key:"handleMouseLeave",value:function(e){this.state.isSwiping&&this.handleSwipeEnd(e)}}],i=[{key:"isTouchEventsSupported",value:function(){return r.checkIsTouchEventsSupported()}}],n&&c(t.prototype,n),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=d},321(e,t){"use strict";var n,i,o;
2Object.defineProperty(t,"__esModule",{value:!0}),t.TraceDirectionKey=t.Direction=t.Axis=void 0,t.TraceDirectionKey=n,function(e){e.NEGATIVE="NEGATIVE",e.POSITIVE="POSITIVE",e.NONE="NONE"}(n||(t.TraceDirectionKey=n={})),t.Direction=i,function(e){e.TOP="TOP",e.LEFT="LEFT",e.RIGHT="RIGHT",e.BOTTOM="BOTTOM",e.NONE="NONE"}(i||(t.Direction=i={})),t.Axis=o,function(e){e.X="x",e.Y="y"}(o||(t.Axis=o={}))},336(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateDirection=function(e){var t,n=i.TraceDirectionKey.NEGATIVE,o=i.TraceDirectionKey.POSITIVE,r=e[e.length-1],a=e[e.length-2]||0;return e.every(function(e){return 0===e})?i.TraceDirectionKey.NONE:(t=r>a?o:n,0===r&&(t=a<0?o:n),t)};var i=n(321)},48(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateDirectionDelta=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.length-1,r=i.TraceDirectionKey.NONE;n>=0;n--){var a=e[n],s=(0,o.getDirectionKey)(a),c=(0,o.getDirectionValue)(a[s]),l=e[n-1]||{},d=(0,o.getDirectionKey)(l),u=(0,o.getDirectionValue)(l[d]);if((0,o.getDifference)(c,u)>=t){r=s;break}r=d}return r};var i=n(321),o=n(436)},501(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateDuration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e?(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)-e:0}},316(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateMovingPosition=function(e){if("changedTouches"in e){var t=e.changedTouches&&e.changedTouches[0];return{x:t&&t.clientX,y:t&&t.clientY}}return{x:e.clientX,y:e.clientY}}},50(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculatePosition=function(e,t){var n=e.start,c=e.x,l=e.y,d=e.traceX,u=e.traceY,p=t.rotatePosition,v=t.directionDelta,h=p.x-c,f=l-p.y,g=Math.abs(h),m=Math.abs(f);(0,i.updateTrace)(d,h),(0,i.updateTrace)(u,f);var w=(0,o.resolveDirection)(d,s.Axis.X,v),b=(0,o.resolveDirection)(u,s.Axis.Y,v),y=(0,r.calculateDuration)(n,Date.now()),C=(0,a.calculateVelocity)(g,m,y);return{absX:g,absY:m,deltaX:h,deltaY:f,directionX:w,directionY:b,duration:y,positionX:p.x,positionY:p.y,velocity:C}};var i=n(707),o=n(168),r=n(501),a=n(6),s=n(321)},702(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateTraceDirections=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=i.TraceDirectionKey.POSITIVE,r=i.TraceDirectionKey.NEGATIVE,a=0,s=[],c=i.TraceDirectionKey.NONE;a<e.length;a++){var l=e[a],d=e[a-1];if(s.length){var u=l>d?n:r;c===i.TraceDirectionKey.NONE&&(c=u),u===c?s.push(l):(t.push(o({},c,s.slice())),(s=[]).push(l),c=u)}else 0!==l&&(c=l>0?n:r),s.push(l)}return s.length&&t.push(o({},c,s)),t};var i=n(321);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},6(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateVelocity=function(e,t,n){return Math.sqrt(e*e+t*t)/(n||1)}},196(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsMoreThanSingleTouches=void 0,t.checkIsMoreThanSingleTouches=function(e){return Boolean(e.touches&&e.touches.length>1)}},152(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsPassiveSupported=function(e){if("boolean"==typeof e)return e;var t={isPassiveSupported:e};try{var n=(0,i.createOptions)(t);window.addEventListener("checkIsPassiveSupported",o,n),window.removeEventListener("checkIsPassiveSupported",o,n)}catch(e){}return t.isPassiveSupported},t.noop=void 0;var i=n(963),o=function(){};t.noop=o},493(e,t){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.checkIsTouchEventsSupported=void 0,t.checkIsTouchEventsSupported=function(){return"object"===("undefined"==typeof window?"undefined":n(window))&&("ontouchstart"in window||Boolean(window.navigator.maxTouchPoints))}},436(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAxisDirection=t.getDirectionValue=t.getDirectionKey=t.getDifference=void 0;var i=n(321);t.getDirectionKey=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(Object.keys(e).toString()){case i.TraceDirectionKey.POSITIVE:return i.TraceDirectionKey.POSITIVE;case i.TraceDirectionKey.NEGATIVE:return i.TraceDirectionKey.NEGATIVE;default:return i.TraceDirectionKey.NONE}},t.getDirectionValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e[e.length-1]||0},t.getDifference=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.abs(e-t)},t.resolveAxisDirection=function(e,t){var n=i.Direction.LEFT,o=i.Direction.RIGHT,r=i.Direction.NONE;return e===i.Axis.Y&&(n=i.Direction.BOTTOM,o=i.Direction.TOP),t===i.TraceDirectionKey.NEGATIVE&&(r=n),t===i.TraceDirectionKey.POSITIVE&&(r=o),r}},963(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOptions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.defineProperty(e,"passive",{get:function(){return this.isPassiveSupported=!0,!0},enumerable:!0}),e}},331(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.getInitialProps=void 0,t.getInitialProps=function(){return function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach(function(t){i(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({element:null,target:null,delta:10,directionDelta:0,rotationAngle:0,mouseTrackingEnabled:!1,touchTrackingEnabled:!0,preventDefaultTouchmoveEvent:!1,preventTrackingOnMouseleave:!1},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},816(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.getInitialState=void 0,t.getInitialState=function(){return function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach(function(t){i(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({x:0,y:0,start:0,isSwiping:!1,traceX:[],traceY:[]},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},51(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOptions=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{passive:!1}:{}}},973(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(336);
2Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var o=n(48);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var r=n(501);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))});var a=n(316);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))});var s=n(50);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))});var c=n(702);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});var l=n(6);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var d=n(196);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var u=n(152);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))});var p=n(493);Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))});var v=n(436);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))});var h=n(963);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))});var f=n(816);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))});var g=n(331);Object.keys(g).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))});var m=n(51);Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))});var w=n(168);
2Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))});var b=n(132);Object.keys(b).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))});var y=n(707);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))})},168(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDirection=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Axis.X,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n){var c=(0,o.calculateTraceDirections)(e),l=(0,r.calculateDirectionDelta)(c,n);return(0,a.resolveAxisDirection)(t,l)}var d=(0,i.calculateDirection)(e);return(0,a.resolveAxisDirection)(t,d)};var i=n(336),o=n(702),r=n(48),a=n(436),s=n(321)},132(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rotateByAngle=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0===t)return e;var n=e.x,i=e.y,o=Math.PI/180*t;return{x:n*Math.cos(o)+i*Math.sin(o),y:i*Math.cos(o)-n*Math.sin(o)}}},707(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTrace=function(e,t){return e[e.length-1]!==t&&e.push(t),e}}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(452);const e=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},t="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var i="object"==typeof self&&self&&self.Object===Object&&self;const o=t||i||Function("return this")(),r=function(){return o.Date.now()};var a=/\s/;var s=/^\s+/;const c=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t}(e)+1).replace(s,""):e},l=o.Symbol;var d=Object.prototype,u=d.hasOwnProperty,p=d.toString,v=l?l.toStringTag:void 0;var h=Object.prototype.toString;var f=l?l.toStringTag:void 0;const g=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":f&&f in Object(e)?function(e){var t=u.call(e,v),n=e[v];try{e[v]=void 0;var i=!0}catch(e){}var o=p.call(e);return i&&(t?e[v]=n:delete e[v]),o}(e):function(e){return h.call(e)}(e)};var m=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,b=/^0o[0-7]+$/i,y=parseInt;const C=function(t){if("number"==typeof t)return t;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==g(e)}(t))return NaN;if(e(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=e(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=c(t);var i=w.test(t);return i||b.test(t)?y(t.slice(2),i?2:8):m.test(t)?NaN:+t};var x=Math.max,P=Math.min;const I=function(t,n,i){var o,a,s,c,l,d,u=0,p=!1,v=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=o,i=a;return o=a=void 0,u=e,c=t.apply(i,n)}function g(e){var t=e-d;return void 0===d||t>=n||t<0||v&&e-u>=s}function m(){var e=r();if(g(e))return w(e);l=setTimeout(m,function(e){var t=n-(e-d);return v?P(t,s-(e-u)):t}(e))}function w(e){return l=void 0,h&&o?f(e):(o=a=void 0,c)}function b(){var e=r(),t=g(e);if(o=arguments,a=this,d=e,t){if(void 0===l)return function(e){return u=e,l=setTimeout(m,n),p?f(e):c}(d);if(v)return clearTimeout(l),l=setTimeout(m,n),f(d)}return void 0===l&&(l=setTimeout(m,n)),c}return n=C(n)||0,e(i)&&(p=!!i.leading,s=(v="maxWait"in i)?x(C(i.maxWait)||0,n):s,h="trailing"in i?!!i.trailing:h),b.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=d=a=l=void 0},b.flush=function(){return void 0===l?c:w(r())},b},T={},V={local:"/img/iframe_logo.png"},L="next",k="prev",S=[1,7,30,90],E="top_pr",M="bottom_pr_1",_="bottom_pr_2",D="bottom_pr_3",O="ltr",H="rtl",B="mode-nav-open",A="mode-toc-open",N="mode-prelast-ad",j="mode-loading",F="mode-first-page",z="mode-last-page",R="mode-lastad-page",G="mode-pr-page",W="mode-ci-page",U="mode-top-pr-page",Z="mode-hidden",K="mode-expire",$="mode-load-error",X="mode-sending",Y="mode-faved",J="mode-show",q="mode-disabled",Q={close:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',left:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',right:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',up:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',down:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',expand:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z"/></svg>
2',external:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></svg>',shrink:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/></svg>',fullscreen:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>',list:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"/><path fill="none" d="M0 0h24v24H0V0z"/></svg>',settings:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/></svg>',skip_next:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',skip_prev:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',arrow_left:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>',arrow_right:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 13L16.17 13L10.58 18.59L12 20L20 12L12 4L10.59 5.41L16.17 11L4 11L4 13Z"/></svg>',arrow_down:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/></svg>',twitter:'<svg viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31984_972)"><path d="M14.2833 10.5804L23.2178 0H21.1006L13.3427 9.18678L7.14656 0H0L9.36984 13.892L0 24.9872H2.11732L10.3098 15.2856L16.8534 24.9872H24L14.2827 10.5804H14.2833ZM11.3833 14.0144L10.4339 12.6311L2.88022 1.62376H6.1323L12.2282 10.507L13.1776 11.8904L21.1016 23.4372H17.8495L11.3833 14.015V14.0144Z" fill="black"/></g><defs><clipPath id="clip0_31984_972"><rect width="24" height="25" fill="white"/></clipPath></defs></svg>',star:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',good:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l
2-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"/></svg>',gooded:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>',comment:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></svg>'};function ee(e,t,n){return`${te()}${Lt.domain}/book/contentsInfo?user-id=${Lt.memberJwt}&comici-viewer-id=${Lt.viewerId}&page-from=${e}&page-to=${t}${n?`&contentId=${n}`:""}`}function te(e=!1){return e||0===Lt.domain.indexOf("localhost:50")?`${location.protocol}//`:"https://"}function ne(){if(Lt.iframeLogo){return V[Lt.iframeLogo]||Lt.iframeLogo}return""}function ie(e){if(e)return"/xfer?cid="+e}function oe(){if(Lt.useNextPrevJs){const e=window.comiciViewer.onNext;if(e)return void e()}Lt.nextViewerId&&ae(ie(Lt.nextViewerId))}function re(){if(Lt.useNextPrevJs){const e=window.comiciViewer.onPrev;if(e)return void e()}Lt.prevViewerId&&ae(ie(Lt.prevViewerId))}function ae(e,t=null){if(Lt.useExternalRouter&&window.comiciViewer&&window.comiciViewer.onLinkClicked)t&&(t.preventDefault(),t.stopPropagation()),window.comiciViewer.onLinkClicked(e);else{if(t)return!0;location.href=e}}const se={en:{all:"ALL",openAndRead:"Open and read",nextEpisode:"Next episode",prevEpisode:"Previous episode",nextVolume:"Next volume",prevVolume:"Previous volume",episodes:"Episodes",list:"list",fullScreen:"Full screen",share:"Share",zoomIn:"Zoom in",zoomOut:"Zoom out",verticalHorizontalSwitching:"Vertical/Horizontal<br>switching",scrollToTop:"Scroll to top",cancel:"Cancel",buyAsAnEBook:"Buy as an e-book.",buyAsAPaperBook:"Buy as a paper book",addToFavorites:"add to favorites",addedToFavorites:"added to favorites",ifYouEnjoyedItSupportUs:"If you enjoyed it, support us!",iLikeThis:"I Like this!",supportViaShare:"Support via Share",sendAFanLetter:"Send a fan letter",times:"times",youHaveFinishedReadingTheLatestEpisode:"You have finished reading the latest episode",readNextEpisode:"Read Next episode",close:"Close",readVertically:"Read vertically",readToTheLeft:"Read to the left",readToTheRight:"Read to the right",readTheNextEpisodeQuestion:"Read the next episode?",readThePreviousEpisodeQuestion:"Read the previous episode?",readTheNextVolumeQuestion:"Read the next volume?",readThePreviousVolumeQuestion:"Read the previous volume?",read:"read",openApp:"open",imageExpired:"The image viewing period has expired. You can continue to view it by reloading.",doReload:"reload",swipeToTheNextEpisode:"Swipe to the next episode"},ja:{all:"ALL",openAndRead:"éãã¦èªã",nextEpisode:"次ã®è©±",prevEpisode:"åã®è©±",nextVolume:"次ã®å·»",prevVolume:"åã®å·»",episodes:"話",list:"ä¸è¦§",fullScreen:"å
¨ç»é¢",share:"ã·ã§ã¢",zoomIn:"æ¡å¤§",zoomOut:"縮å°",verticalHorizontalSwitching:"ç¸¦æ¨ªåæ¿ã",scrollToTop:"ã¯ãããã",cancel:"ãã£ã³ã»ã«",buyAsAnEBook:"é»åæ¸ç±ã§è³¼å
¥ãã",buyAsAPaperBook:"æ¸ç±ï¼ç´ï¼ã§è³¼å
¥ãã",addToFavorites:"ãæ°ã«å
¥ãã«<br>追å ãã",addedToFavorites:"ãæ°ã«å
¥ãã«<br>è¿½å æ¸ã¿",ifYouEnjoyedItSupportUs:"é¢ç½ãã£ããå¿æ´!",iLikeThis:"ããã!",supportViaShare:"ãã¹ãã§å¿æ´",sendAFanLetter:"ãã¡ã³ã¬ã¿ã¼ãéã",times:"å",youHaveFinishedReadingTheLatestEpisode:"ææ°è©±ã¾ã§èªã¿çµããã¾ãã",readNextEpisode:"次ã®è©±ãèªã",close:"éãã",readVertically:"縦ã«èªã¿ã¾ã",readToTheLeft:"å·¦ã«èªã¿ã¾ã",readToTheRight:"å³ã«èªã¿ã¾ã",readTheNextEpisodeQuestion:"次ã®è©±ãèªã¿ã¾ããï¼",readThePreviousEpisodeQuestion:"åã®è©±ãèªã¿ã¾ããï¼",readTheNextVolumeQuestion:"次ã®å·»ãèªã¿ã¾ããï¼",readThePreviousVolumeQuestion:"åã®å·»ãèªã¿ã¾ããï¼",read:"èªã",openApp:"éã",imageExpired:"ç»åé²è¦§ã®æéãåãã¾ãããåèªã¿è¾¼ã¿ããã¨å¼ãç¶ãã覧ããã ãã¾ãã",doReload:"åèªã¿è¾¼ã¿ãã",swipeToTheNextEpisode:"ã¹ã¯ã¤ãã§æ¬¡ã®è©±ã¸"},"zh-hans":{all:"ALL",openAndRead:"æå¼é
读",nextEpisode:"ä¸ä¸è¯",prevEpisode:"ä¸ä¸è¯",nextVolume:"ä¸ä¸å·",prevVolume:"ä¸ä¸å·",episodes:"è¯",list:"å表",fullScreen:"å
¨å±",share:"å享",zoomIn:"æ¾å¤§",zoomOut:"缩å°",verticalHorizontalSwitching:"纵å/横å忢",scrollToTop:"åå°å¼å¤´",cancel:"åæ¶",buyAsAnEBook:"è´ä¹°çµå书",buyAsAPaperBook:"è´ä¹°çº¸è´¨ä¹¦",addToFavorites:"å å
¥æ¶è",addedToFavorites:"å·²å å
¥æ¶è",ifYouEnjoyedItSupportUs:"妿忬¢çè¯ï¼è¯·æ¯ææä»¬ï¼",iLikeThis:"ç¹èµï¼",supportViaShare:"éè¿åäº«æ¯æ",sendAFanLetter:"åéç²ä¸æ¥ä¿¡",times:"次",youHaveFinishedReadingTheLatestEpisode:"å·²é
è¯»è³ææ°è¯",readNextEpisode:"é
读ä¸ä¸è¯",close:"å
³é",readVertically:"纵åé
读",readToTheLeft:"åå·¦é
读",readToTheRight:"åå³é
读",readTheNextEpisodeQuestion:"é
读ä¸ä¸è¯ï¼",readThePreviousEpisodeQuestion:"é
读ä¸ä¸è¯ï¼",readTheNextVolumeQuestion:"é
读ä¸ä¸å·ï¼",readThePreviousVolumeQuestion:"é
读ä¸ä¸å·ï¼",read:"读",openApp:"æå¼",imageExpired:"å¾çæµè§å·²è¿æï¼å·æ°é¡µé¢å³å¯ç»§ç»é
读",doReload:"å·æ°",swipeToTheNextEpisode:"æ»å¨å°ä¸ä¸è¯"}};function ce(e,t,n){let i=se[t][e]||e;return n&&n.length>
20&&n.forEach((e,t)=>{i="string"==typeof i?i.replace(new RegExp(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(`{${t}}`),"g"),e||""):i}),i}function le(e){return Et.view.dataset[e]}function de(e){return Et.view.attributes.hasOwnProperty(e)}function ue(e,t){return t||(t=Et.view),t.querySelector(e)}function pe(e,t){return t||(t=Et.view),t.querySelectorAll(e)}function ve(e){return Et.view?Et.view.querySelector("#"+e):document.getElementById(e)}function he(e,...t){return e.classList.add(...t),e}function fe(e,...t){return e.classList.remove(...t),e}function ge(e,t){return!!e&&e.classList.contains(t)}function me(e){e===B&&window.comiciViewer.onStateChange&&"function"==typeof window.comiciViewer.onStateChange&&window.comiciViewer.onStateChange()}function we(e){he(Et.view,e),me(e)}function be(e){fe(Et.view,e),me(e)}function ye(e){return ge(Et.view,e)}function Ce(e){e&&(e.style.display="none")}function xe(e,t){return e&&(e.textContent=t),e}function Pe(e,t){return e&&(e.innerHTML=t),e}function Ie(e,t,n){return e&&(e.dataset[t]=n),e}function Te(e,t){return e.dataset[t]}function Ve(e){return document.createElement(e)}function Le(e){let t=Ve("div");return t.innerHTML=e,t.children[0]}function ke(e,t,n,i=!1){e&&e.addEventListener(t,n,i)}function Se(e,t,n){e&&e.removeEventListener&&e.removeEventListener(t,n)}function Ee(e,t){let n;for(n in t)e.style[n]=t[n]}function Me(e,t){e.forEach(e=>{Ee(e,t)})}function _e(e,t){return e.style[t]}function De(){return window.scrollY}function Oe(e){return parseFloat(getComputedStyle(e,null).width.replace("px",""))}function He(e){e.parentNode.removeChild(e)}function Be(){let e=jt()-1,t=jt()-1;return Lt.lastPageAdId&&Lt.lastPageAdToLast&&(e-=1,t-=1),kt.isSpread&&e%2==1&&(e-=1),e<=kt.currentPage&&kt.currentPage<=t}let Ae,Ne;function je(){Lt.useInstruction&&Ae&&(ot(Ne,"1"),Ae.classList.add("mode-hide"),setTimeout(()=>{try{Ae.parentNode.removeChild(Ae),Ae=null}catch(e){}},500))}function Fe(){let e=pe(".x-cv-pr");e.length&&e.forEach((e,t)=>{let n=pe(".x-cv-pr-img",e);if(n&&n.length){let e={maxHeight:.9*kt.imageRenderHeight};n.length>=2&&(e.maxHeight=.5*e.maxHeight),n.forEach(t=>{Ee(t,e)})}})}let ze,Re="";function Ge(e,t,n,i,o){if(Lt.isIframe)return;const r=document.getElementById("xCVConfirmContent"),a=document.getElementById("xCVConfirmButton"),s=document.getElementById("xCVConfirmDialog"),c=document.getElementById("xCVConfirmCancelButton");let l,d,u;r.innerHTML=e,a.innerText=n||"OK",Re&&(fe(s,Re),Re=""),o&&(Re=o,he(s,Re)),ze=d=e=>{i&&i(e),c.removeEventListener("click",d),a.removeEventListener("click",l),document.removeEventListener("keydown",u),s.style.display="none"},l=e=>{t(e),a.removeEventListener("click",l),document.removeEventListener("keydown",u),c.removeEventListener("click",d),s.style.display="none"},u=e=>{e.isComposing||("Enter"==e.key&&l(e),!1!==i&&"Escape"==e.key&&d(e))},a.addEventListener("click",l),document.addEventListener("keydown",u),c.addEventListener("click",d),!1===i?he(c,Z):fe(c,Z),s.style.display="block"}function We(e){e||(e=kt.currentPage);const t=Et.canvases[e-1];t&&t.scrollIntoView()}function Ue(){console.log("aaa");const e=window.document;e.fullscreenElement||e.msFullscreenElement||(kt.isGlimpseBottomAfterFullScreen?setTimeout(()=>{ve("xCVGlimpseBottomOnBtn").click()},800):setTimeout(()=>{ve("xCVGlimpseBottomOffBtn").click()},800),e.documentElement.removeEventListener("fullscreenchange",Ue))}function Ze(){const e=window.document;if(e.fullscreenElement||e.msFullscreenElement)(e.exitFullscreen||e.msExitFullscreen).call(e);else{kt.isGlimpseBottomAfterFullScreen=kt.isGlimpseBottom,!Lt.isVertical&&Lt.useGlimpseBottom&&setTimeout(()=>{let e=kt.isGlimpseBottomAfterFullScreen;ve("xCVGlimpseBottomOffBtn").click(),kt.isGlimpseBottomAfterFullScreen=e},800);const t=e.documentElement;(t.requestFullscreen||t.msRequestFullscreen).call(t),t.addEventListener("fullscreenchange",Ue)}}var Ke=n(232);class $e extends Error{constructor(e,t){super(e),this.name="ComiciViewerError",this.shouldReload=t}}class Xe extends $e{constructor(e,t){super(e,!1),this.name="ComiciViewerDataError",this.url=t,this.isDataError=!0}}class Ye extends Xe{constructor(e,t,n){super(e,t),this.name="ComiciViewerDataResponseError",this.co
2de=n,this.isDataResponseError=!0}}class Je extends Xe{constructor(e,t,n){super(e,t),this.name="ComiciViewerDataNetworkError",this.isDataNetworkError=!0,this.errorName=n}}let qe=0;async function Qe(e,t="GET",n=null,i=!0,o=""){let r=new AbortController;setTimeout(()=>r.abort(),3e4);const a={method:t,signal:r.signal,headers:{origin:"*"}};if(n&&(n instanceof FormData?a.body=n:(a.body=n,a.headers["Content-Type"]="application/json")),i&&(a.mode="cors"),o&&(a.headers["X-CSRF-Token"]=o),window.comiciAuth?.client?.fetchIdToken){let e;try{e=await window.comiciAuth.client.fetchIdToken()}catch(e){console.log(e)}e&&(a.headers.Authorization=e)}return a.headers.Authorization||(a.headers.Authorization=Lt.memberIdToken),fetch(e,a).catch(t=>{throw new Je(t.message,e,t.name)}).then(t=>{if(t.ok)return t;throw new Ye("response error",e,t.status)})}function et(e,t){return Qe(e).then(e=>e.json()).then(n=>{if(!n||!n.result)throw new Xe("JSON parse failed",e);Object.assign(t,n)})}const tt=["PUT","POST"];function nt(e,t,n,i){let o=null;if(n||(n=t?"POST":i),tt.includes(n)&&t)if(function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(t))o=t;else{const e=new URLSearchParams(t);o=new FormData;for(const[t,n]of e)o.append(t,n)}return Qe(e,n,o,!0,function(){const e=document.querySelector('meta[name="csrf-token"]');return e?e.getAttribute("content"):""}())}function it(e){const t=window.localStorage;let n="";if(t){const i=t.getItem(e);i&&(n=i)}return n}function ot(e,t){window.localStorage.setItem(e,t)}function rt(e){window.localStorage.removeItem(e)}function at(e){try{const t=window.sessionStorage;if(t){const n=t.getItem(e);if(n)return n}}catch(e){}return!1}function st(e,t){try{const n=window.sessionStorage;n&&n.setItem(e,t)}catch(e){}}function ct(e){try{"function"==typeof window.setTdButtonClickEvent&&window.setTdButtonClickEvent(Lt.fingerPrint,e,Lt.viewerId,Lt.memberId)}catch(e){}}const lt="cv_session_id";function dt(){const e="cv"+(new Date).getTime()+"-"+Math.floor(1e4*Math.random());return{url:location.href,request_id:e,session_id:ht(e)}}function ut(){return{language:navigator.language,user_language:navigator.language,user_agent:navigator.userAgent,referrer:document.referrer,screen_width:"",screen_height:""}}let pt=dt(),vt=ut();function ht(e){let t=Ke.qg(document.cookie);if(t.fingerprint)return t.fingerprint;{let t=at(lt);return t||(t=e,st(lt,t)),t}}async function ft(e){if(!Lt.logDomain)return void console.warn("bad log event");pt.url!==location.href&&(pt=dt(),vt=ut()),e=Object.assign({timestamp:(new Date).getTime(),user_id:Lt.memberId,tid:Lt.logTid,service_type:Lt.logServiceType},pt,e);let t,n,i,o=[],r=0;for(n in e)i=e[n],i&&(t=n+"="+encodeURIComponent(i),r+=t.length,o.push(t));for(n in vt)i=vt[n],"screen_width"===n&&(i=String(window.innerWidth)),"screen_height"===n&&(i=String(window.innerHeight)),i&&(t=n+"="+encodeURIComponent(i),r+=t.length,r<2048&&o.push(t));(new Image).src="https://"+Lt.logDomain+"/collect?"+o.join("&")}function gt(e,t){let n={event_type:"recommend_clk",viewer_id:e,position:t+1};return()=>(ft(n),!0)}function mt(e,t,n,i){let o={event_type:"pr_clk",viewer_id:Lt.viewerId,position:e,image_id:i,b_url:t,b_name:n};return()=>(ft(o),!0)}function wt(e,t){if(!t||!t.length||kt.isImpSent[e])return;let n={event_type:"pr_imp",viewer_id:Lt.viewerId};for(let i of[[0,""],[1,"2"]]){let o=t[i[0]];if(!o)continue;let r=i[1];n["image_id"+r]=o.image_id,n["position"+r]=e+(1===t.length?"":"_"+(i[0]+1)),n["b_url"+r]=o.url,n["b_name"+r]=o.title}ft(n),kt.isImpSent[e]=!0}function bt(e){kt.isImpSent[e]||(ft({event_type:e,viewer_id:Lt.viewerId,position:1}),kt.isImpSent[e]=!0)}function yt(){if(kt.isAdImpSent)return;const e=window.comiciViewer.onAdImp;e&&"function"==typeof e&&e(),kt.isAdImpSent=!0}function Ct(e,t){return n=>{window.comiciViewer.onClickStoreItem&&window.comiciViewer.onClickStoreItem(e,t.id,t.name)}}const xt=window.location||{href:null};function Pt(){return"visualViewport"in window?window.visualViewport.scale>1&&window.visualViewport.width<document.documentElement.clientWidth:document.documentElement.clientWidth>window.innerWidth}function It(e){return xt.href=function(e){if(!e)return"";var t=[".","/"],n=e.replace(/[^\x20-\x7EÃ-ž]/gim,"").trim();if(function(e){return t.indexOf(e[0])>-1}(n))return n;var i=n.match(/^([^:]+):/gm);if(!i)return n;var o=i[0];return/^(%20|\s)*(javascript|data|vbscript)/im.test(o)?"":n}(e),!1}const Tt="scroll_vertical",Vt="glimpse_bottom",Lt={isIframe:!1,contentType:"",domain:"",permissionApi:"",logDomain:"",logTid:"ky9d4fgMJUsDvWm2",logServiceType:"",bookInfo:{result:{thumb_image_url:"",title:"",authors:[{name:""}]}},volumeInfo:{result:[]},episodeInfo:{result:[]},isVertical:!1,pageDirection:H,navDirection:H,isVolume:!1,isCanvasPadding:!1,isPreview:!1,viewerId:"",memberId:"",memberJwt:"",memberIdToken:"",storeId:0,seriesId:"",subTitle:"",headerTitle:"",nextViewerId:void 0,prevViewerId:void 0,firstViewerId:void 0,externalUrl:void 0,toTopUrl:"",toTopLabel:"ããããã¼ã¸ã¸",toTopNextIfLast:!1,toTopDialogMessage:"",toTopDialogBtnLabel:"ç§»åãã",toNextLabel:"",fingerPrint:"",isBgColor:!1,useGlimpseBottom:!1,useDoubleTapZoom:!1,useRecommend:!1,recommendPeriod:7,recommendItems:null,recommendH:"ããªãã«ãããã",glimpseBottomHeight:100,goodCountMax:10,disableTapScroll:!1,hashtag:"",shareText:"",navigation:{totalPages:0,spreadDesignation:1,result:[]},canSetting:!1,canWindowSizeChange:!1,canHVChange:!1,savedPageKey:"",splashDisplayedKey:"splashDisplayed",useInstruction:!1,instructionDisplayedKey:"instDisplayed",preloadPages:6,useComiciStyleLastPages:!1,lastPageAdId:"",lastPageAdToLast:!1,hideVerticalLastpages:!1,skipNextConfirm:!1,watermark:"",iframeLogo:"",iframeLinkRoot:"",iframePage:1,brandImg:"",brandUrl:"",topPr:"",hideVerticalTopPr:!1,pr:"",pr2:"",pr3:"",lastBanner:{img:"",url:"",external:!1,title:"",classes:[]},expireBuffer:3e4,verticalImageMaxWidth:1/0,favAddApi:"",favAddParams:"",favAddMethod:"",favRemoveApi:"",favRemoveParam
2s:"",favRemoveMethod:"",favLinkUrl:"",favAddLabel:"",favAddedLabel:"",favPopupText:"",favFavedSync:"",useFavPage:!1,useComicInfoPage:!1,comicInfoApi:"/api/users/storeItemForEpisodeDetailAPI",comicInfoParams:"",comicInfoData:null,comicInfoHeader:"ãã®è©±ã¯ãã¡ãã«åé²ããã¦ãã¾ã",fanLetterUrl:"",useNextPrevJs:!1,nextEpisodeId:"",prevEpisodeId:"",firstEpisodeId:"",disableToc:!1,useExternalRouter:!1,lang:"ja",hasAppLink:!1,appLinkUrl:"",appLinkLabel:"<strong>ã¢ããª</strong>ã§ãç¶ããèªããããã«ãªãã¾ããï¼",appLinkIcon:"comimaga",contentId:""},kt={viewer:null,viewerHeight:0,viewerWidth:0,imageHeight:0,imageWidth:0,imageRenderHeight:0,imageRenderWidth:0,defaultImageWidth:640,defaultImageHeight:910,zooming:!1,zoomMarginTopMin:0,zoomMarginTopMax:0,zoomMarginInlineMin:0,zoomMarginInlineMax:0,totalPages:0,currentPage:0,isSpread:null,isSP:null,isDrawerOpen:!1,isFirstImageLoaded:!1,isHoverActive:!0,hoverSeekbar:!1,tmpImageWidthRem:-1,tmpImageHeightRem:-1,scaleUp:[],isAuto:!1,autoSpeed:"off",autoScrollTimer:null,isHoverVertical:!1,verticalTimeout:void 0,drawerTimeout:void 0,swiped:!1,sliderChanged:!1,usingSlider:!1,isGlimpseBottom:!1,isGlimpseBottomAfterFullScreen:!1,isRecommendImpSent:!1,isRecommendDataLoaded:!1,isImpSent:{},isAdImpSent:!1,isComicInfoImpSent:!1,watermarkImg:null,watermarkImgWidth:0,watermarkImgHeight:0,permissionError:!1,isTopPrLoaded:!1,isPrLoaded:!1,topPrItems:[],prItems:[],prItems2:[],prItems3:[],epLastLoadedTimeServer:0,epLastLoadedTimeLocal:0,imgExpired:!1,favCount:-1,favFaved:!1,applyFavFavedUi:null,goodCountTotal:0,goodCount:0,commentCount:0,prPageNumber:void 0},St={browserWidth:0,browserHeight:0,dpr:window.devicePixelRatio||1,isTouch:!1},Et={view:null,canvases:null,pageContainer:null,pages:null,pageContents:null,pageCanvases:null,seekBar:null,seekBarToolTip:null},Mt=JSON.parse(JSON.stringify(Lt)),_t=JSON.parse(JSON.stringify(kt)),Dt=JSON.parse(JSON.stringify(St)),Ot=JSON.parse(JSON.stringify(Et)),Ht=()=>{let e,t;St.browserWidth=Bt(),St.browserHeight=At(),kt.viewerWidth=St.browserWidth,kt.viewerHeight=St.browserHeight,Lt.isVertical||Lt.useGlimpseBottom&&kt.isGlimpseBottom&&(kt.viewerHeight=Math.max(Math.min(900,St.browserHeight-Lt.glimpseBottomHeight),320)),Lt.isIframe?(e=!1,t=!0):(kt.viewerWidth<=480?(e=!1,t=!0):(e=kt.viewerWidth>kt.viewerHeight,t=!1),Lt.isVertical&&(e=!1)),kt.isSpread!==e&&(kt.isSpread=e,kt.isSpread?(we("mode-spread"),be("mode-single")):(be("mode-spread"),we("mode-single"))),kt.isSP!==t&&(kt.isSP=t,kt.isSP?(we("mode-sp"),be("mode-pc")):(be("mode-sp"),we("mode-pc"))),Lt.navigation.totalPages&&(kt.totalPages=jt(),(kt.currentPage<0||kt.currentPage>kt.totalPages)&&(kt.currentPage=0))};function Bt(){let e=Et.view.clientWidth;return e%2==1&&(e+=1),e}function At(){if(Et.view)return window.innerHeight}function Nt(){let e=0;return Lt.isIframe||(Lt.topPr&&(Lt.isVertical&&Lt.hideVerticalTopPr||(e+=1)),Lt.isVertical||kt.isSpread&&(2===Lt.navigation.spreadDesignation?Lt.topPr||(e+=1):Lt.topPr&&(e+=1))),e}function jt(){let e=Lt.navigation.totalPages;return Lt.isIframe||(e+=Nt(),Lt.useComicInfoPage&&(e+=1),Lt.pr&&(e+=1),Lt.pr2&&(e+=1),Lt.pr3&&(e+=1),Lt.lastPageAdId&&(e+=1),Lt.useComiciStyleLastPages&&(e+=1),Lt.useFavPage&&(e+=1),e+=1),e}const Ft=()=>Lt.isVolume?"å·»":"話";var zt={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Rt={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Gt=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Wt={CSS:{},springs:{}};function Ut(e,t,n){return Math.min(Math.max(e,t),n)}function Zt(e,t){return e.indexOf(t)>-1}function Kt(e,t){return e.apply(null,t)}var $t={arr:function(e){return Array.isArray(e)},obj:function(e){return Zt(Object.prototype.toString.call(e),"Object")},pth:function(e){return $t.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement}
vendor: 18,738 bytes, line 2
2,dom:function(e){return e.nodeType||$t.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return $t.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return $t.hex(e)||$t.rgb(e)||$t.hsl(e)},key:function(e){return!zt.hasOwnProperty(e)&&!Rt.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function Xt(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function Yt(e,t){var n=Xt(e),i=Ut($t.und(n[0])?1:n[0],.1,100),o=Ut($t.und(n[1])?100:n[1],.1,100),r=Ut($t.und(n[2])?10:n[2],.1,100),a=Ut($t.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/i),c=r/(2*Math.sqrt(o*i)),l=c<1?s*Math.sqrt(1-c*c):0,d=c<1?(c*s-a)/l:-a+s;function u(e){var n=t?t*e/1e3:e;return n=c<1?Math.exp(-n*c*s)*(1*Math.cos(l*n)+d*Math.sin(l*n)):(1+d*n)*Math.exp(-n*s),0===e||1===e?e:1-n}return t?u:function(){var t=Wt.springs[e];if(t)return t;for(var n=1/6,i=0,o=0;;)if(1===u(i+=n)){if(++o>=16)break}else o=0;var r=i*n*1e3;return Wt.springs[e]=r,r}}function Jt(e){return void 0===e&&(e=10),function(t){return Math.ceil(Ut(t,1e-6,1)*e)*(1/e)}}var qt,Qt,en=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function i(e){return 3*e}function o(e,o,r){return((t(o,r)*e+n(o,r))*e+i(o))*e}function r(e,o,r){return 3*t(o,r)*e*e+2*n(o,r)*e+i(o)}return function(t,n,i,a){if(0<=t&&t<=1&&0<=i&&i<=1){var s=new Float32Array(11);if(t!==n||i!==a)for(var c=0;c<11;++c)s[c]=o(c*e,t,i);return function(c){return t===n&&i===a||0===c||1===c?c:o(function(n){for(var a=0,c=1;10!==c&&s[c]<=n;++c)a+=e;--c;var l=a+(n-s[c])/(s[c+1]-s[c])*e,d=r(l,t,i);return d>=.001?function(e,t,n,i){for(var a=0;a<4;++a){var s=r(t,n,i);if(0===s)return t;t-=(o(t,n,i)-e)/s}return t}(n,l,t,i):0===d?l:function(e,t,n,i,r){var a,s,c=0;do{(a=o(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++c<10);return s}(n,a,a+e,t,i)}(c),n,a)}}}}(),tn=(qt={linear:function(){return function(e){return e}}},Qt={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=Ut(e,1,10),i=Ut(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-i/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint"].forEach(function(e,t){Qt[e]=function(){return function(e){return Math.pow(e,t+2)}}}),Object.keys(Qt).forEach(function(e){var t=Qt[e];qt["easeIn"+e]=t,qt["easeOut"+e]=function(e,n){return function(i){return 1-t(e,n)(1-i)}},qt["easeInOut"+e]=function(e,n){return function(i){return i<.5?t(e,n)(2*i)/2:1-t(e,n)(-2*i+2)/2}},qt["easeOutIn"+e]=function(e,n){return function(i){return i<.5?(1-t(e,n)(1-2*i))/2:(t(e,n)(2*i-1)+1)/2}}}),qt);function nn(e,t){if($t.fnc(e))return e;var n=e.split("(")[0],i=tn[n],o=Xt(e);switch(n){case"spring":return Yt(e,t);case"cubicBezier":return Kt(en,o);case"steps":return Kt(Jt,o);default:return Kt(i,o)}}function on(e){try{return document.querySelectorAll(e)}catch(e){return}}function rn(e,t){for(var n=e.length,i=arguments.length>=2?arguments[1]:void 0,o=[],r=0;r<n;r++)if(r in e){var a=e[r];t.call(i,a,r,e)&&o.push(a)}return o}function an(e){return e.reduce(function(e,t){return e.concat($t.arr(t)?an(t):t)},[])}function sn(e){return $t.arr(e)?e:($t.str(e)&&(e=on(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function cn(e,t){return e.some(function(e){return e===t})}function ln(e){var t={};for(var n in e)t[n]=e[n];return t}function dn(e,t){var n=ln(e);for(var i in e)n[i]=t.hasOwnProperty(i)?t[i]:e[i];return n}function un(e,t){var n=ln(e);for(var i in t)n[i]=$t.und(e[i])?t[i]:e[i];return n}function pn(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function vn(e,t){return $t.fnc(e)?e(t.target,t.id,t.total):e}function hn(e,t){return e.getAttribute(t)}function fn(e,t,n){if(cn([n,"deg","rad","turn"],pn(t)))return t;var i=Wt.CSS[t+n];if(!$t.und(i))return i;var o=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(o),o.style.position="absolute",o.style.width=100+n;var a=100/o.offsetWidth;r.removeChild(o);var s=a*parseFloat(t);return Wt.CSS[t+n]=s,s}function gn(e,t,n){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return n?fn(e,o,n):o}}function mn(e,t){return $t.dom(e)&&!$t.inp(e)&&(!$t.nil(hn(e,t))||$t.svg(e)&&e[t])?"attribute":$t.dom(e)&&cn(Gt,t)?"transform":$t.dom(e)&&"transform"!==t&&gn(e,t)?"css":null!=e[t]?"object":void 0}function wn(e){if($t.dom(e)){for(var t,n=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,o=new Map;t=i.exec(n);)o.set(t[1],t[2]);return o}}function bn(e,t,n,i){switch(mn(e,t)){case"transform":return function(e,t,n,i){var o=Zt(t,"scale")?1:0+function(e){return Zt(e,"translate")||"perspective"===e?"px":Zt(e,"rotate")||Zt(e,"skew")?"deg":void 0}(t),r=wn(e).get(t)||o;return n&&(n.transforms.list.set(t,r),n.transforms.last=t),i?fn(e,r,i):r}(e,t,i,n);case"css":return gn(e,t,n);case"attribute":return hn(e,t);default:return e[t]||0}}function yn(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var i=pn(e)||0,o=parseFloat(t),r=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+r+i;case"-":return o-r+i;case"*":return o*r+i}}function Cn(e,t){if($t.col(e))return function(e){return $t.rgb(e)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+n[1]+",1)":t:$t.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i}),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):$t.hsl(e)?function(e){var t,n,i,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(o[1],10)/360,a=parseInt(o[2],10)/100,s=parseInt(o[3],10)/100,c=o[4]||1;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==a)t=n=i=s;else{var d=s<.5?s*(1+a):s+a-s*a,u=2*s-d;t=l(u,d,r+1/3),n=l(u,d,r),i=l(u,d,r-1/3)}return"rgba("+255*t+","+255*n+","+255*i+","+c+")"}(e):void 0;var t,n}(e);if(/\s/g.test(e))return e;var n=pn(e),i=n?e.substr(0,e.length-n.length):e;return t?i+t:i}function xn(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Pn(e){for(var t,n=e.points,i=0,o=0;o<n.numberOfItems;o++){var r=n.getItem(o);o>0&&(i+=xn(t,r)),t=r}return i}function In(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*hn(e,"r")}(e);case"rect":return function(e){return 2*hn(e,"width")+2*hn(e,"height")}(e);case"line":return function(e){return xn({x:hn(e,"x1"),y:hn(e,"y1")},{x:hn(e,"x2"),y:hn(e,"y2")})}(e);case"polyline":return Pn(e);case"polygon":return function(e){var t=e.points;return Pn(e)+xn(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Tn(e,t){var n=t||{},i=n.el||function(e){for(var t=e.parentNode;$t.svg(t)&&$t.svg(t.parentNode);)t=t.parentNode;return t}(e),o=i.getBoundingClientRect(),r=hn(i,"viewBox"),a=o.width,s=o.height,c=n.viewBox||(r?r.split(" "):[0,0,a,s]);return{el:i,viewBox:c,x:c[0]/1,y:c[1]/1,w:a,h:s,vW:c[2],vH:c[3]}}function Vn(e,t,n){function i(n){void 0===n&&(n=0);var i=t+n>=1?t+n:0;return e.el.getPointAtLength(i)}var o=Tn(e.el,e.svg),r=i(),a=i(-1),s=i(1),c=n?1:o.w/o.vW,l=n?1:o.h/o.vH;switch(e.property){case"x":return(r.x-o.x)*c;case"y":return(r.y-o.y)*l;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function Ln(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=Cn($t.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:$t.str(e)||t?i.split(n):[]}}function kn(e){return rn(e?an($t.arr(e)?e.map(sn):sn(e)):[],function(e,t,n){return n.indexOf(e)===t})}function Sn(e){var t=kn(e);return t.map(function(e,n){return{target:e,id:n,total:t.length,transforms:{list:wn(e)}}})}function En(e,t){var n=ln(t);if(/^spring/.test(n.easing)&&(n.duration=Yt(n.easing)),$t.arr(e)){var i=e.length;2!==i||$t.obj(e[0])?$t.fnc(t.duration)||(n.duration=t.duration/i):e={value:e}}var o=$t.arr(e)?e:[e];return o.map(function(e,n){var i=$t.obj(e)&&!$t.pth(e)?e:{value:e};return $t.und(i.delay)&&(i.delay=n?0:t.delay),$t.und(i.endDelay)&&(i.endDelay=n===o.length-1?t.endDelay:0),i}).map(function(e){return un(e,n)})}var Mn={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,i,o){if(i.list.set(t,n),t===i.last||o){var r="";i.list.forEach(function(e,t){r+=t+"("+e+") "}),e.style.transform=r}}};function _n(e,t){Sn(e).forEach(function(e){for(var n in t){var i=vn(t[n],e),o=e.target,r=pn(i),a=bn(o,n,r,e),s=yn(Cn(i,r||pn(a)),a),c=mn(o,n);Mn[c](o,n,s,e.transforms,!0)}})}function Dn(e,t){return rn(an(e.map(function(e){return t.map(function(t){return function(e,t){var n=mn(e.target,t.name);if(n){var i=function(e,t){var n;return e.tweens.map(function(i){var o=function(e,t){var n={};for(var i in e){var o=vn(e[i],t);$t.arr(o)&&1===(o=o.map(function(e){return vn(e,t)})).length&&(o=o[0]),n[i]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(i,t),r=o.value,a=$t.arr(r)?r[1]:r,s=pn(a),c=bn(t.target,e.name,s,t),l=n?n.to.original:c,d=$t.arr(r)?r[0]:l,u=pn(d)||pn(c),p=s||u;return $t.und(a)&&(a=l),o.from=Ln(d,p),o.to=Ln(yn(a,d),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=nn(o.easing,o.duration),o.isPath=$t.pth(r),o.isPathTargetInsideSVG=o.isPath&&$t.svg(t.target),o.isColor=$t.col(o.from.original),o.isColor&&(o.round=1),n=o,o})}(t,e),o=i[i.length-1];return{type:n,property:t.name,animatable:e,tweens:i,duration:o.end,delay:i[0].delay,endDelay:o.endDelay}}}(e,t)})})),function(e){return!$t.und(e)})}function On(e,t){var n=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map(function(e){return i(e)+e.duration})):t.duration,o.delay=n?Math.min.apply(Math,e.map(function(e){return i(e)+e.delay})):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map(function(e){return i(e)+e.duration-e.endDelay})):t.endDelay,o}var Hn=0,Bn=[],An=function(){var e;function t(n){for(var i=Bn.length,o=0;o<i;){var r=Bn[o];r.paused?(Bn.splice(o,1),i--):(r.tick(n),o++)}e=o>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){jn.suspendWhenDocumentHidden&&(Nn()?e=cancelAnimationFrame(e):(Bn.forEach(function(e){return e._onDocumentVisibility()}),An()))}),function(){e||Nn()&&jn.suspendWhenDocumentHidden||!(Bn.length>0)||(e=requestAnimationFrame(t))}}();function Nn(){return!!document&&document.hidden}function jn(e){void 0===e&&(e={});var t,n=0,i=0,o=0,r=0,a=null;function s(e){var t=window.Promise&&new Promise(function(e){return a=e});return e.finished=t,t}var c=function(e){var t=dn(zt,e),n=dn(Rt,e),i=function(e,t){var n=[],i=t.keyframes;for(var o in i&&(t=un(function(e){for(var t=rn(an(e.map(function(e){return Object.keys(e)})),function(e){return $t.key(e)}).reduce(function(e,t){return e.indexOf(t)<0&&e.push(t),e},[]),n={},i=function(i){var o=t[i];n[o]=e.map(function(e){var t={};for(var n in e)$t.key(n)?n==o&&(t.value=e[n]):t[n]=e[n];return t})},o=0;o<t.length;o++)i(o);return n}(i),t)),t)$t.key(o)&&n.push({name:o,tweens:En(t[o],e)});return n}(n,e),o=Sn(e.targets),r=Dn(o,i),a=On(r,n),s=Hn;return Hn++,un(t,{id:s,children:[],animatables:o,animations:r,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);function l(){var e=c.direction;"alternate"!==e&&(c.direction="normal"!==e?"normal":"reverse"),c.reversed=!c.reversed,t.forEach(function(e){return e.reversed=c.reversed})}function d(e){return c.reversed?c.duration-e:e}function u(){n=0,i=d(c.currentTime)*(1/jn.speed)}function p(e,t){t&&t.seek(e-t.timelineOffset)}function v(e){for(var t=0,n=c.animations,i=n.length;t<i;){var o=n[t],r=o.animatable,a=o.tweens,s=a.length-1,l=a[s];s&&(l=rn(a,function(t){return e<t.end})[0]||l);for(var d=Ut(e-l.start-l.delay,0,l.duration)/l.duration,u=isNaN(d)?1:l.easing(d),p=l.to.strings,v=l.round,h=[],f=l.to.numbers.length,g=void 0,m=0;m<f;m++){var w=void 0,b=l.to.numbers[m],y=l.from.numbers[m]||0;w=l.isPath?Vn(l.value,u*b,l.isPathTargetInsideSVG):y+u*(b-y),v&&(l.isColor&&m>2||(w=Math.round(w*v)/v)),h.push(w)}var C=p.length;if(C){g=p[0];for(var x=0;x<C;x++){p[x];var P=p[x+1],I=h[x];isNaN(I)||(g+=P?I+P:I+" ")}}else g=h[0];Mn[o.type](r.target,o.property,g,r.transforms),o.currentValue=g,t++}}function h(e){c[e]&&!c.passThrough&&c[e](c)}function f(e){var u=c.duration,f=c.delay,g=u-c.endDelay,m=d(e);c.progress=Ut(m/u*100,0,100),c.reversePlayback=m<c.currentTime,t&&function(e){if(c.reversePlayback)for(var n=r;n--;)p(e,t[n]);else for(var i=0;i<r;i++)p(e,t[i])}(m),!c.began&&c.currentTime>0&&(c.began=!0,h("begin")),!c.loopBegan&&c.currentTime>0&&(c.loopBegan=!0,h("loopBegin")),m<=f&&0!==c.currentTime&&v(0),(m>=g&&c.currentTime!==u||!u)&&v(u),m>f&&m<g?(c.changeBegan||(c.changeBegan=!0,c.changeCompleted=!1,h("changeBegin")),h("change"),v(m)):c.changeBegan&&(c.changeCompleted=!0,c.changeBegan=!1,h("changeComplete")),c.currentTime=Ut(m,0,u),c.began&&h("update"),e>=u&&(i=0,c.remaining&&!0!==c.remaining&&c.remaining--,c.remaining?(n=o,h("loopComplete"),c.loopBegan=!1,"alternate"===c.direction&&l()):(c.paused=!0,c.completed||(c.completed=!0,h("loopComplete"),h("complete"),!c.passThrough&&"Promise"in window&&(a(),s(c)))))}return s(c),c.reset=function(){var e=c.direction;c.passThrough=!1,c.currentTime=0,c.progress=0,c.paused=!0,c.began=!1,c.loopBegan=!1,c.changeBegan=!1,c.completed=!1,c.changeCompleted=!1,c.reversePlayback=!1,c.reversed="reverse"===e,c.remaining=c.loop,t=c.children;for(var n=r=t.length;n--;)c.children[n].reset();(c.reversed&&!0!==c.loop||"alternate"===e&&1===c.loop)&&c.remaining++,v(c.reversed?c.duration:0)},c._onDocumentVisibility=u,c.set=function(e,t){return _n(e,t),c},c.tick=function(e){o=e,n||(n=o),f((o+(i-n))*jn.speed)},c.seek=function(e){f(d(e))},c.pause=function(){c.paused=!0,u()},c.play=function(){c.paused&&(c.completed&&c.reset(),c.paused=!1,Bn.push(c),u(),An())},c.reverse=function(){l(),c.completed=!c.reversed,u()},c.restart=function(){c.reset(),c.play()},c.remove=function(e){zn(kn(e),c)},c.reset(),c.autoplay&&c.play(),c}function Fn(e,t){for(var n=t.length;n--;)cn(e,t[n].animatable.target)&&t.splice(n,1)}function zn(e,t){var n=t.animations,i=t.children;Fn(e,n);for(var o=i.length;o--;){var r=i[o],a=r.animations;Fn(e,a),a.length||r.children.length||i.splice(o,1)}n.length||i.length||t.pause()}jn.version="3.2.1",jn.speed=1,jn.suspendWhenDocumentHidden=!0,jn.running=Bn,jn.remove=function(e){for(var t=kn(e),n=Bn.length;n--;)zn(t,Bn[n])},jn.get=bn,jn.set=_n,jn.convertPx=fn,jn.path=function(e,t){var n=$t.str(e)?on(e)[0]:e,i=t||100;return function(e){return{property:e,el:n,svg:Tn(n),totalLength:In(n)*(i/100)}}},jn.setDashoffset=function(e){var t=In(e);return e.setAttribute("stroke-dasharray",t),t},jn.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",i=t.easing?nn(t.easing):null,o=t.grid,r=t.axis,a=t.from||0,s="first"===a,c="center"===a,l="last"===a,d=$t.arr(e),u=d?parseFloat(e[0]):parseFloat(e),p=d?parseFloat(e[1]):0,v=pn(d?e[1]:e)||0,h=t.start||0+(d?u:0),f=[],g=0;return function(e,t,m){if(s&&(a=0),c&&(a=(m-1)/2),l&&(a=m-1),!f.length){for(var w=0;w<m;w++){if(o){var b=c?(o[0]-1)/2:a%o[0],y=c?(o[1]-1)/2:Math.floor(a/o[0]),C=b-w%o[0],x=y-Math.floor(w/o[0]),P=Math.sqrt(C*C+x*x);"x"===r&&(P=-C),"y"===r&&(P=-x),f.push(P)}else f.push(Math.abs(a-w));g=Math.max.apply(Math,f)}i&&(f=f.map(function(e){return i(e/g)*g})),"reverse"===n&&(f=f.map(function(e){return r?e<0?-1*e:-e:Math.abs(g-e)}))}return h+(d?(p-u)/g:u)*(Math.round(100*f[t])/100)+v}},jn.timeline=function(e){void 0===e&&(e={});var t=jn(e);return t.duration=0,t.add=function(n,i){var o=Bn.indexOf(t),r=t.children;function a(e){e.passThrough=!0}o>-1&&Bn.splice(o,1);for(var s=0;s<r.length;s++)a(r[s]);var c=un(n,dn(Rt,e));c.targets=c.targets||e.targets;var l=t.duration;c.autoplay=!1,c.direction=t.direction,c.timelineOffset=$t.und(i)?l:yn(i,l),a(t),t.seek(c.timelineOffset);var d=jn(c);a(d),r.push(d);var u=On(r,e);return t.delay=u.delay,t.endDelay=u.endDelay,t.duration=u.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},jn.easing=nn,jn.penner=tn,jn.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const Rn=jn,Gn='<div id="xCVLastPage" class="mode-last" dir="ltr"><div class="-cv-last"><div class="-cv-last-btns last_page_button_area"><a class="-cv-last-app" id="xCVLastPageAppLinkBtn" target="_blank"><span class="-cv-last-app-icon mode-comimaga"><svg width="72" height="72" viewBox="0 0 72 72" fill="none" class="-cv-last-app-icon-img" xmlns="http://www.w3.org/2000/svg"><path d="M0 31.2176C0 20.1753 0 14.6541 2.18303 10.4516C4.02265 6.91019 6.91019 4.02265 10.4516 2.18303C14.6541 0 20.1753 0 31.2176 0H40.7824C51.8247 0 57.3459 0 61.5484 2.18303C65.0898 4.02265 67.9773 6.91019 69.817 10.4516C72 14.6541 72 20.1753 72 31.2176V40.7824C72 51.8247 72 57.3459 69.817 61.5484C67.9773 65.0898 65.0898 67.9773 61.5484 69.817C57.3459 72 51.8247 72 40.7824 72H31.2176C20.1753 72 14.6541 72 10.4516 69.817C6.91019 67.9773 4.02265 65.0898 2.18303 61.5484C0 57.3459 0 51.8247 0 40.7824V31.2176Z" fill="#D80C24"/><path d="M14.3298 57.9166C17.2122 59.5445 20.845 58.1406 21.7747 59.5557C23.4586 62.1282 13.9602 65.7386 13.9602 65.7386C13.9602 65.7386 18.5003 65.1973 21.8195 64.1481C26.173 62.7741 28.7417 62.8413 37.4823 62.3858C42.2315 62.1394 48.3696 62.4082 55.822 59.5408C66.5339 55.4188 67.1313 39.8009 59.1861 35.5744C63.5731 31.8631 64.4841 24.9932 62.2029 19.3479C60.351 14.7666 56.9122 11.6789 51.771 9.93155C41.2495 6.3547 25.2956 6.72433 16.4879 12.1979C6.38456 18.4742 5.82824 36.8662 12.9894 43.3404C9.19601 45.7449 8.59489 54.6795 14.3298 57.9166Z" fill="white"/><path d="M37.0491 15.5208L55.3142 16.1929V22.1332L37.0491 21.4574V15.5208Z" fill="#D70B24"/><path d="M37.0491 28.4281L55.3142 29.1002V23.1599L37.0491 22.4879V28.4281Z" fill="#D70B24"/><path d="M28.0249 28.6484H16.8538V35.7312H35.6789V15.5134H16.8538V22.5961H28.0249V28.6484Z" fill="#D70B24"/>
2<path d="M16.8538 43.1948H27.4648C27.3752 45.9502 26.8525 47.6154 25.8071 48.8438L23.7536 44.2215H16.8538L22.5364 57.0056H29.4362L28.6969 55.3441C32.4903 52.1966 34.7119 47.5893 35.1189 43.1948V37.0977H16.8538V43.1948Z" fill="#D70B24"/><path d="M46.6185 40.0548H45.1997L45.5731 36.575H38.677L38.2999 40.0548H36.4891V46.7791H37.5719L36.4891 56.7965H43.3852L44.4717 46.7791H49.0491V51.0653H45.9017L45.1549 56.7965H55.3142V43.9079H44.8674L46.6185 40.0548Z" fill="#D70B24"/><path d="M50.2738 43.0193L52.9994 36.5825H49.1836L46.4617 43.0193H50.2738Z" fill="#D70B24"/><path d="M55.2508 43.0193L57.9763 36.5825H54.1605L51.4387 43.0193H55.2508Z" fill="#D70B24"/><path d="M48.6982 35.5146H55.3142V30.1269L37.0491 29.4549V35.3951L48.56 35.8208L48.6982 35.5146Z" fill="#D70B24"/></svg> </span><span class="-cv-last-app-icon mode-manga"><svg width="118" height="118" viewBox="0 0 118 118" fill="none" class="-cv-last-app-icon-img" xmlns="http://www.w3.org/2000/svg"><path d="M0 46.046C0 29.7586 0 21.6148 3.21998 15.4161C5.93342 10.1925 10.1925 5.93342 15.4161 3.21998C21.6148 0 29.7586 0 46.046 0H71.954C88.2414 0 96.3852 0 102.584 3.21998C107.807 5.93342 112.067 10.1925 114.78 15.4161C118 21.6148 118 29.7586 118 46.046V71.954C118 88.2414 118 96.3852 114.78 102.584C112.067 107.807 107.807 112.067 102.584 114.78C96.3852 118 88.2414 118 71.954 118H46.046C29.7586 118 21.6148 118 15.4161 114.78C10.1925 112.067 5.93342 107.807 3.21998 102.584C0 96.3852 0 88.2414 0 71.954V46.046Z" fill="white"/><path d="M82.0109 49.8752C81.0615 52.9964 79.6374 55.786 77.7386 58.2388C75.8346 60.6916 73.4347 62.6969 70.5286 64.2602C67.6224 65.8234 64.1571 66.6024 60.138 66.6024C56.119 66.6024 52.6484 65.8234 49.7475 64.2602C49.6948 64.2339 49.6473 64.197 49.5946 64.1707C47.1103 62.9759 44.5153 61.3811 41.2294 60.6389C34.7261 59.1757 30.6068 59.1073 24.3145 58.8967C24.3145 58.8967 32.2102 57.7861 35.7493 51.7648C37.031 49.5804 37.0363 46.1223 36.936 42.9327C36.8728 42.1221 36.8358 41.3168 36.8358 40.5062C36.8358 37.385 37.3105 34.2901 38.2599 31.2215C39.2093 28.1582 40.6334 25.3949 42.5322 22.9421C44.4309 20.4946 46.8361 18.5103 49.7422 17.005C52.6484 15.4996 56.1137 14.7469 60.1328 14.7469C64.1518 14.7469 67.6171 15.4996 70.5233 17.005C73.4295 18.5103 75.8293 20.4946 77.7334 22.9421C79.6321 25.3949 81.0562 28.1582 82.0056 31.2215C82.955 34.2901 83.4297 37.385 83.4297 40.5062C83.4297 43.6275 82.955 46.754 82.0056 49.8752H82.0109Z" fill="#D80C24"/><path d="M25.2845 93.1269L25.4947 100.706H21.2495V87.2894H27.2027L29.6552 94.5097H29.7515L31.877 87.2894H38.0228V100.706H33.585L33.7193 93.1646L33.6054 93.1443L31.0799 100.706H27.8683L25.3808 93.1269H25.2845Z" fill="#D80C24"/><path d="M44.2972 87.2894H49.135L54.4137 100.706H49.4591L48.7526 98.7359H44.449L43.7804 100.706H38.9601L44.2972 87.2894ZM46.6475 91.9699L45.538 95.2849H47.7365L46.6475 91.9699Z" fill="#D80C24"/><path d="M55.3684 87.2894H59.9026L63.7653 94.0931H63.8412L63.6485 87.2894H67.9696V100.706H63.3215L59.5727 94.3014H59.4968L59.6895 100.706H55.3684V87.2894Z" fill="#D80C24"/><path d="M77.2599 101.088C76.1826 101.088 75.1841 100.923 74.2673 100.593C73.3505 100.263 72.5535 99.7888 71.882 99.1727C71.2104 98.5565 70.6791 97.8102 70.2937 96.9337C69.9083 96.0572 69.7156 95.0795 69.7156 93.9976C69.7156 92.9157 69.9083 91.938 70.2937 91.0615C70.6791 90.185 71.2046 89.4358 71.8703 88.8109C72.5359 88.189 73.3184 87.7088 74.2177 87.3704C75.1169 87.0348 76.0775 86.8641 77.1052 86.8641C78.1329 86.8641 79.181 87.0348 80.1358 87.379C81.0905 87.7233 81.87 88.1919 82.4744 88.7907L79.8 91.9756C79.5168 91.6458 79.184 91.3826 78.7986 91.1859C78.4132 90.9892 77.9402 90.8908 77.3738 90.8908C77.003 90.8908 76.638 90.9631 76.2877 91.1106C75.9344 91.2582 75.6249 91.4665 75.3534 91.7384C75.0848 92.0132 74.8658 92.3401 74.6994 92.719C74.533 93.1008 74.4483 93.5261 74.4483 93.9976C74.4483 94.9377 74.6965 95.7043 75.1899 96.2944C75.6833 96.8845 76.4745 97.1796 77.5665 97.1796C77.7592 97.1796 77.9577 97.1651 78.1621 97.1304C78.3665 97.0986 78.5271 97.0523 78.6438 96.9887V95.9589H76.4512V92.395H82.7051V99.7715C82.3839 99.9624 82.016 100.136 81.5985 100.295C81.181 100.454 80.7401 100.59 80.2701 100.706C79.8 100.822 79.3124 100.911 78.7986 100.984C78.2847 101.053 77.7709 101.088 77.2599 101.088Z" fill="#D80C24"/><path d="M88.7546 87.2894H93.5924L98.8711 100.706H93.9165L93.21 98.7359H88.9064L88.2378 100.706H83.4175L88.7546 87.2894ZM91.1078 91.9699L89.9984 95.2849H92.1968L91.1078 91.9699Z" fill="#D80C24"/><path d="M68.7101 74.1083H70.8304V82.3785H68.7101V74.1083ZM69.7526 70.0594C69.0196 70.0594 68.4277 70.6405 68.4277 71.3542C68.4277 72.068 69.0223 72.649 69.7526 72.649C70.4829 72.649 71.0775 72.068 71.0775 71.3542C71.0775 70.6405 70.4829 70.0594 69.7526 70.0594ZM83.4822 82.3759H85.6025V74.1083H83.4822V82.3785V82.3759ZM84.5247 72.649C85.2577 72.649 85.8496 72.068 85.8496 71.3542C85.8496 70.6405 85.255 70.0594 84.5247 70.0594C83.7944 70.0594 83.1998 70.6405 83.1998 71.3542C83.1998 72.068 83.7944 72.649 84.5247 72.649ZM36.6274 75.5729C37.3523 75.5729 38.0011 75.9179 38.4491 76.4618L39.793 75.1484C38.9839 74.3577 37.8627 73.8669 36.6274 73.8669C34.154 73.8669 32.1504 75.825 32.1504 78.2421C32.1504 80.6592 34.154 82.6173 36.6274 82.6173C37.8627 82.6173 38.9839 82.1265 39.793 81.3358L38.4491 80.0225C38.0011 80.5664 37.3523 80.9113 36.6274 80.9113C35.2753 80.9113 34.1758 79.7147 34.1758 78.2421C34.1758 76.7696 35.2726 75.5729 36.6274 75.5729ZM77.8758 75.5729C78.6007 75.5729 79.2495 75.9179 79.6975 76.4618L81.0414 75.1484C80.2324 74.3577 79.1111 73.8
2669 77.8758 73.8669C75.4024 73.8669 73.3988 75.825 73.3988 78.2421C73.3988 80.6592 75.4024 82.6173 77.8758 82.6173C79.1111 82.6173 80.2324 82.1265 81.0414 81.3358L79.6975 80.0225C79.2495 80.5664 78.6007 80.9113 77.8758 80.9113C76.5237 80.9113 75.4242 79.7147 75.4242 78.2421C75.4242 76.7696 76.521 75.5729 77.8758 75.5729ZM63.6629 74.2304C62.2675 73.8324 60.8068 74.1402 59.71 75.4482C59.3679 74.8778 58.8493 74.4479 58.0918 74.2304C56.9353 73.9014 55.738 74.0579 54.7362 74.8619V74.1083H52.6158V82.3785H54.7362V78.1599C54.7362 76.8438 55.1325 75.8807 56.0991 75.6446C57.2556 75.3607 58.1842 75.8887 58.1842 78.1784V82.3785H60.3045V78.1599C60.3045 76.8438 60.7009 75.8807 61.6674 75.6446C62.824 75.3607 63.7525 75.8887 63.7525 78.1784V82.3785H65.8729V78.2262C65.8729 76.353 65.3978 74.7265 63.6575 74.233L63.6629 74.2304ZM50.4492 78.2448C50.4492 80.6619 48.4456 82.62 45.9723 82.62C43.4989 82.62 41.4953 80.6619 41.4953 78.2448C41.4953 75.8276 43.4989 73.8695 45.9723 73.8695C48.4456 73.8695 50.4492 75.8276 50.4492 78.2448ZM48.4293 78.2262C48.4293 77.9051 48.3804 77.5868 48.28 77.271C48.1795 76.9553 48.0302 76.6714 47.8293 76.4193C47.6284 76.1673 47.3759 75.963 47.0718 75.8091C46.765 75.6552 46.4012 75.5756 45.9777 75.5756C45.5542 75.5756 45.1904 75.6525 44.8836 75.8091C44.5768 75.963 44.3243 76.1673 44.1261 76.4193C43.9252 76.6714 43.7759 76.9553 43.6754 77.271C43.575 77.5868 43.5261 77.9051 43.5261 78.2262C43.5261 78.3084 43.5288 78.3934 43.5369 78.4756C43.5478 78.8046 43.5478 79.1601 43.4121 79.3857C43.0401 80.0065 42.2093 80.1206 42.2093 80.1206C42.8718 80.1418 43.3035 80.1498 43.9876 80.301C44.3324 80.378 44.6066 80.5425 44.8673 80.6645C44.8727 80.6672 44.8781 80.6698 44.8836 80.6725C45.1876 80.8343 45.5542 80.9139 45.9777 80.9139C46.4012 80.9139 46.765 80.8343 47.0718 80.6725C47.3786 80.5107 47.6311 80.3063 47.8293 80.0516C48.0302 79.7996 48.1795 79.513 48.28 79.1893C48.3804 78.8683 48.4293 78.5472 48.4293 78.2235V78.2262Z" fill="#D80C24"/></svg></span><span class="-cv-last-app-label" id="xCVLastPageAppLinkLabel"></span> <span class="-cv-last-app-btn" data-i18n="1">openApp</span></a><div class="-cv-last-text" id="xCVLastPageLastText" data-i18n="1">youHaveFinishedReadingTheLatestEpisode</div><div class="-cv-last-btn-unit"><a id="xCVLastPageFavBtn" class="-cv-last-btn mode-fav last_page_fav_button ga-viewer-fav x-cv-fav-btn"><span id="xCVLastPageFavPopup" class="-cv-last-fav-tooltip"></span> <span class="-cv-last-fav-star"><span class="-cv-icon -cv-last-icon mode-fav" data-icon="star"></span> </span><span id="xCVLastPageFavLabel" class="-cv-last-btn-label mode-fav">ãæ°ã«å
¥ã<br>ç»é²ãã</span> <span id="xCVLastPageFavedLabel" class="-cv-last-btn-label mode-faved">ãæ°ã«å
¥ã<br>ç»é²æ¸ã¿</span> </a><a id="xCVLastPageTwitBtn" class="-cv-last-btn mode-share last_page_twitter_button ga-viewer-share"><span class="-cv-icon -cv-last-icon mode-share" data-icon="twitter"></span> <span class="-cv-last-btn-label mode-share">ã·ã§ã¢ãã</span></a><p class="-cv-last-fav-error" id="xCVLastPageFavError"></p></div><a id="xCVLastPageNextBtn" class="-cv-last-btn mode-next last_page_next_button"><span id="xCVLastPageNextBtnLabel" data-i18n="1">readNextEpisode</span></a><p class="-cv-last-swipe-note" data-i18n="1">swipeToTheNextEpisode</p><a id="xCVLastPageBannerLink" class="-cv-last-banner"><img id="xCVLastPageBanner" class="-cv-last-banner-img" loading="lazy"></a><a id="xCVLastPageComicBtn" class="-cv-last-btn mode-comic last_page_comic_button ga-viewer-link-comic">åè¡æ¬ã¯ãã¡ããã </a><a id="xCVLastPageTopBtn" class="-cv-last-btn mode-totop last_page_top_button">ããããã¼ã¸ã¸</a><div class="-cv-rec"><h2 class="-cv-rec-h" id="xCVRecommendH"></h2><div class="-cv-last-rec-items" id="xCVRecommend"></div></div></div></div></div>',Wn='<div id="xCVGoodPage" class="mode-good" dir="ltr"><div class="-cv-good"><div class="-cv-good-btns"><h3 class="-cv-good-btns-h" id="xCVGoodPageTitle" data-i18n="1">ifYouEnjoyedItSupportUs</h3><div class="-cv-good-btns-line"><div class="-cv-good-btn-wrap mode-comment"><a id="xCVGoodPageCommentBtn" class="-cv-good-btn mode-comment"><span class="-cv-icon -cv-good-icon mode-comment" data-icon="comment"></span> <span class="-cv-good-btn-label mode-comment"><span id="xCVGoodPageCommentLabel">ã³ã¡ã³ãã§å¿æ´</span> (<span id="xCVGoodPageCommentCount">0</span>)</span></a></div><div class="-cv-good-btn-wrap mode-good"><a id="xCVGoodPageGoodBtn" class="-cv-good-btn mode-good"><span class="-cv-good-fav-count"><span id="xCVGoodPageGoodCount">0</span>/<span id="xCVGoodPageGoodCountMax">10</span><span data-i18n="1">times</span> <span class="-cv-good-fav-heart"><span class="-cv-icon -cv-good-icon mode-good" data-icon="good"></span> <span class="-cv-icon -cv-good-icon mode-good mode-gooded" data-icon="gooded"></span> </span><span class="-cv-good-btn-label mode-good" data-i18n="1">iLikeThis</span> </span></a><span class="-cv-good-fav-count-total" id="xCVGoodPageGoodCountTotal"></span></div><div class="-cv-good-btn-wrap mode-share"><a id="xCVGoodPageTwitBtn" class="-cv-good-btn mode-share last_page_twitter_button ga-viewer-share"><span class="-cv-icon -cv-good-icon mode-share" data-icon="twitter"></span> <span class="-cv-good-btn-label mode-share" id="xCVGoodPageTweetLabel" data-i18n="1">supportViaShare</span></a></div></div><div id="xCVGoodPageLetter" class="-cv-good-letter"><a id="xCVGoodPageLetterBtn" class="-cv-good-letter-btn" data-i18n="1">sendAFanLetter</a></div></div></div></div>',Un='<div id="xCVFavPage" class="mode-fav" dir="ltr"><div class="-cv-fav"><div class="-cv-fav-btns"><div class="-cv-fav-btns-line"><div class="-cv-fav-btn-wrap" id="xCVFavPageFavBtnWrap"><a id="xCVFavPageFavBtn" class="-cv-fav-btn x-cv-fav-btn"><span class="-cv-fav-fav-star"><span class="-cv-icon -cv-fav-icon" data-icon="star"></span> </span><span id="xCVFavPageFavLabel" class="-cv-fav-btn-label mode-fav" data-i18n="1" data-i18n-use-inner-html="1">addToFavorites</span> <span id="xCVFavPageFavedLabel" class="-cv-fav-btn-label mode-faved" data-i18n="1" data-i18n-use-inner-html="1">addedToFavorites</span></a><p id="xCVFavPageFavCount" class="-cv-fav-fav-count"></p><p id="xCVFavPageFavError" class="-cv-fav-fav-error"></p></div></div></div></div></div>',Zn=[];let Kn=null;const $n="mode-loading",Xn="mode-rendered",Yn="mode-req-render",Jn=[],qn=[];let Qn=!1,ei=0,ti=0;function ni(){if(!Jn.length)for(let e=0,t=Lt.navigation.result.length;e<t;e++){let t=Lt.navigation.result[e];t&&t.width&&t.width>kt.defaultImageWidth&&(kt.defaultImageWidth=t.width),t&&t.height&&t.height>kt.defaultImageHeight&&(kt.defaultImageHeight=t.height)}!function(){if(!Et.pages)return;const e=kt.defaultImageWidth,t=kt.defaultImageHeight,n=Lt.isVertical&&kt.viewerWidth>Lt.verticalImageMaxWidth?Lt.verticalImageMaxWidth:kt.viewerWidth,i=kt.viewerHeight;let o;if(Lt.isVertical)o=n/e,o>1&&(o=1);else{let r=i/t,a=n/e;kt.isSpread?(a=n/(2*e),Me(Et.pages,{width:n/2+"px",height:i+"px"})):Me(Et.pages,{width:n+"px",height:i+"px"}),o=Math.min(r,a),o>1&&(o=1)}let r=Math.round(t*o),a=Math.round(e*o),s=!1;if(kt.imageRenderWidth!==a||kt.imageRenderHeight!==r){kt.imageRenderHeight=r,kt.imageRenderWidth=a;let e={width:kt.imageRenderWidth+"px",height:kt.imageRenderHeight+"px"};
2Me(Et.pageContents,e),Me(Et.pageCanvases,e),Fe(),s=!0}if(Lt.isVertical){let e,n,i,r,a;for(let c=0,l=Lt.navigation.result.length;c<l;c++)e=Lt.navigation.result[c],e.height&&e.height!==t&&(i=Math.round(e.height*o),r=Math.round(e.width*o),n=Lt.topPr&&!Lt.hideVerticalTopPr?Et.pageContents[c+1]:Et.pageContents[c],a=_e(n,"height"),a!==i+"px"&&(Ee(n,{height:i+"px"}),Ee(Et.pageCanvases[c],{height:i+"px"}),e.renderWidth=r,e.renderHeight=i,s=!0))}s&&ii(kt.currentPage,Kn);let c=2*a;kt.isSpread&&(c*=2);let l=2*r;kt.zoomMarginTopMin=-(l-i)/2,kt.zoomMarginTopMax=-kt.zoomMarginTopMin,kt.zoomMarginInlineMin=-(c-n)/2,kt.zoomMarginInlineMax=-kt.zoomMarginInlineMin}()}function ii(e,t=0){if(Et.pages)if(Kn=t,Array.isArray(t)){let e,n;for(e=0,n=t.length;e<n;e++)di(t[e]);for(e=0,n=Et.pages.length;e<n;e++)t.includes(e)||hi(e)}else{t||(t=Lt.preloadPages),Lt.isVertical||kt.isSpread||!(1===Lt.navigation.spreadDesignation&&Lt.topPr||2===Lt.navigation.spreadDesignation&&!Lt.topPr)||(e+=1);let n=2,i=1;Lt.isVertical?(n=2,i=3):kt.isSpread&&(n=3);let o,r,a,s=0,c=0;for(o=e;o<e+t;o++)a=o,o<=e+n&&(r=o);for(o=e-1;o>=0&&o>e-t/2;o--)c=o,o>=e-i&&(s=o);for(o=0;o<Et.pages.length;o++)(o<s||r<o)&&hi(o);for(o=0;o<Et.pages.length;o++)c<=o&&o<=a&&(s<=o&&o<=r?di(o):di(o,!0))}}const oi=4,ri=4,ai=[];let si=0;for(let e=0;e<oi;e++)for(let t=0;t<ri;t++)ai[si++]=[e,t];function ci(e){let t=e;return Lt.isVertical&&Lt.topPr&&!Lt.hideVerticalTopPr?t=e-1:Lt.isVertical||Lt.isIframe||(Lt.topPr?t=2===Lt.navigation.spreadDesignation?e-1:e-2:2===Lt.navigation.spreadDesignation&&(t=e-1)),t}function li(e){let t=ci(e),n=Lt.navigation.result[t];return n&&n.sort===t||(n=Lt.navigation.result.find(e=>e&&e.sort===t)),{pageIdx:t,pageData:n}}function di(e,t=!1,n=!1){if(!Et.pages)return;const i=ti;let o=Et.pages[e];if(o&&!ge(o,"mode-empty")){let{pageIdx:r,pageData:a}=li(e);if(!a)return;if(!ge(o,Xn)||St.dpr<2)if(!n&&Jn[r])t||ge(o,$)||ge(o,K)||(vi(Jn[r],r,a),he(o,Xn));else{if(t?fe(o,Yn):he(o,Yn),ge(o,$n))return;n&&fe(o,$),he(o,$n);let s=qn[r];s&&!n||(s=new Image,s.crossOrigin="anonymous");const c=()=>{if(i!==ti)return;const e=ge(o,$)||ge(o,K);fe(o,$n),he(o,"mode-loaded"),Jn[r]=s,e||(a.width=s.width-s.width%oi,a.height=s.height-s.height%ri),ge(o,Yn)&&!e&&(vi(s,r,a),he(o,Xn),fe(o,Yn)),kt.isFirstImageLoaded=!0,(kt.defaultImageWidth<a.width||kt.defaultImageHeight<a.height)&&Lt.navigation.totalPages>1&&r<Lt.navigation.totalPages-1?(kt.defaultImageWidth=a.width,kt.defaultImageHeight=a.height,ni()):Lt.isVertical&&a.height!==kt.defaultImageHeight&&ni()},l=o.querySelector(".x-cv-page-retry-btn");if(l.onclick=null,s.onerror=t=>{i===ti&&(a.expiresOn&&ui(a)?(he(o,K),l.onclick=()=>{window.comiciViewer.init(!0)}):(he(o,$),l.onclick=()=>{di(e,!1,!0)}),c())},s.src&&s.complete)c();else{if(a.expiresOn&&ui(a))return kt.imgExpired||(Ge(ce("imageExpired",Lt.lang),()=>{window.comiciViewer.init(!0)},ce("doReload",Lt.lang),!1,"mode-wide"),kt.imgExpired=!0),he(o,K),void(l.onclick=()=>{window.comiciViewer.init(!0)});if(s.onload=c,!s.src)if(Qn)s.src=a.imageUrl;else{let e;e=setInterval(()=>{i===ti?Qn&&(s.src=a.imageUrl,clearInterval(e)):clearInterval(e)},200)}}}}}function ui(e){let t=e.expiresOn-Lt.expireBuffer;return kt.epLastLoadedTimeServer+(Date.now()-kt.epLastLoadedTimeLocal)>t}let pi=document.createElement("canvas");function vi(e,t,n){let i=n.width,o=n.height,r=Et.canvases[t];if(!r)return;if("CANVAS"!==r.tagName){const e=r.parentNode;e.removeChild(r),r=Zn.pop(),r||(r=document.createElement("canvas")),e.appendChild(r),Et.canvases[t]=r}let a,s=r.getContext("2d");s.imageSmoothingQuality="high",s.imageSmoothingEnabled=!0,a=St.dpr>=2?r:pi,a.width=i,a.height=o;let c=a.getContext("2d");c.imageSmoothingQuality="high",c.imageSmoothingEnabled=!0;let l=Math.floor(i/oi),d=Math.floor(o/ri),u=0;const p=function(e,t){let n=e.length,i=[];const o=t.replace(/\s+/g,"").slice(1).slice(0,-1).split(",");for(let t=0;t<n;t++)i.push(e[o[t]]);return i}(ai,n.scramble);for(let t=0;t<oi;t++)for(let n=0;n<ri;n++){let i=p[u][0],o=p[u][1];c.drawImage(e,l*i,d*o,l,d,l*t,d*n,l,d),u++}if(Lt.watermark&&kt.watermarkImg&&c.drawImage(kt.watermarkImg,0,0,kt.watermarkImgWidth,kt.watermarkImgHeight,i-kt.
2watermarkImgWidth,o-kt.watermarkImgHeight,kt.watermarkImgWidth,kt.watermarkImgHeight),St.dpr<2){let e=n.renderWidth||kt.imageRenderWidth,t=n.renderHeight||kt.imageRenderHeight,l=1.5;i<=e&&(l=1),r.width=e*l,r.height=t*l,s.drawImage(a,0,0,i,o,0,0,e*l,t*l),c.clearRect(0,0,a.width,a.height),a.width=0,a.height=0}a=null}function hi(e){let t=Et.pages[e];if(fe(t,Yn),ge(t,Xn)){fe(t,Xn),e=ci(e);let n=Et.canvases[e];if(n){if(n.width){n.getContext("2d").clearRect(0,0,n.width,n.height),n.width=0,n.height=0;let e=n.getContext("2d");e=null}Zn.push(n);const t=n.parentNode;let i=document.createElement("i");t.removeChild(n),t.appendChild(i),Et.canvases[e]=i}}}function fi(){if(Et.canvases)for(const e of Et.canvases)if(e.width){e.getContext("2d").clearRect(0,0,e.width,e.height),e.width=0,e.height=0;let t=e.getContext("2d");t=null}}function gi(e){return e.stopPropagation(),!1}class mi{constructor(){this._dataLoaded=!1,this.htmlInitialized=!1,this._destroyed=!1,Et.view.oncontextmenu=gi}loadData(){return console.warn("loadData"),Promise.resolve()}start(){return new Promise((e,t)=>{this._destroyed?e(""):(this.constructHtml(),this.loadData().then(()=>{this._destroyed||(this._dataLoaded=!0,Ht(),function(){let e,t,n,i,o=Lt.volumeInfo.result,r=o.findIndex(e=>e.id===Lt.viewerId);-1!==r?(Lt.isVolume=!0,i=o.find(e=>1===Number(e.volume_number))):(Lt.isVolume=!1,o=Lt.episodeInfo.result,r=o.findIndex(e=>e.id===Lt.viewerId),i=o.find(e=>1===Number(e.episode_number))),e=o[r],t=o[r+1],n=o[r-1],e&&(Lt.subTitle=e.name,Lt.externalUrl=e.external_url),t&&(Lt.nextViewerId=t.id),n&&(Lt.prevViewerId=n.id),i&&(Lt.firstViewerId=i.id)}(),Lt.firstViewerId?we("mode-has-first-ep"):be("mode-has-first-ep"),Lt.prevViewerId?we("mode-has-prev-ep"):be("mode-has-prev-ep"),Lt.nextViewerId?we("mode-has-next-ep"):be("mode-has-next-ep"),kt.permissionError?we("mode-perm-err"):be("mode-perm-err"),this.initHtmlPropsAndEvents(),this.onlyOnceSetting(),ni(),be(j),this.update()),e("")},e=>{this.showError(),t(e)}))})}update(){Ht(),this.updateHtmlState()}constructHtml(){console.warn("constructHtml")}initHtmlPropsAndEvents(){Et.confirmDialogContainer=ve("xCVConfirmDialog"),Pe(Et.confirmDialogContainer,'<div id="xCVConfirmContent" class="-cv-confirm-text"></div><div class="-cv-confirm-btns"><button type="button" id="xCVConfirmButton" class="-cv-confirm-btn"></button> <button type="button" id="xCVConfirmCancelButton" class="-cv-confirm-btn-cancel" data-i18n="1">cancel</button></div>'),Et.pages=[],Et.canvases=[],Et.pageContents=[],Et.pageCanvases=[],Et.pageContainer=ve("xCVPages");const e="mode-empty";let t=[];!Lt.topPr||Lt.isIframe||Lt.isVertical&&Lt.hideVerticalTopPr||t.push(he(Pe(Ve("div"),'<div><div id="xCVTopPr" class="-cv-pr"></div></div>'),e,"mode-pr","mode-top-pr")),Lt.isVertical||Lt.isIframe||!(2===Lt.navigation.spreadDesignation&&!Lt.topPr||1===Lt.navigation.spreadDesignation&&Lt.topPr)||(t.push(he(Pe(Ve("div"),"<div><i/></div>"),e)),we("mode-has-top-emptypage"));for(var n=0,i=Lt.navigation.totalPages;n<i;n++){let e=Ve("i");Et.canvases.push(e);let n=Ve("button");n.type="button",n.className="-cv-page-content-btn mode-retry x-cv-page-retry-btn";let i=Ve("div"),o=Ve("div");o.appendChild(e),o.appendChild(n),i.appendChild(o),t.push(i)}if(!(Lt.isIframe||Lt.isVertical&&Lt.hideVerticalLastpages))if(Lt.useComicInfoPage&&t.push(Le('<div id="xCVComicInfoPage" class="mode-ci" dir="ltr"><div class="-cv-ci"><div class="-cv-ci-content" id="xCVComicInfoContent"><h3 class="-cv-ci-h" id="xCVComicInfoHeader"></h3><div class="-cv-ci-info"><figure class="-cv-ci-fig"><a class="-cv-ci-fig-link" id="xCVComicInfoImgLink"><img class="-cv-ci-img" id="xCVComicInfoImg" alt=""></a></figure><div class="-cv-ci-info-main"><h4 class="-cv-ci-info-h"><a class="-cv-ci-info-h-link" id="xCVComicInfoTitleLink"><span id="xCVComicInfoTitle"></span></a></h4><div class="-cv-ci-info-d" id="xCVComicInfoDesc"></div></div></div><div class="-cv-ci-store" id="xCVComicInfoStoreEbook"><h4 class="-cv-ci-store-h" data-i18n="1">buyAsAnEBook</h4><ul class="-cv-ci-store-items x-cv-ci-store-items" id="xCVComicInfoStoreItemsEbook"></ul></div><div class="-cv-ci-store" id="xCVComicInfoStoreStore"><h4 class="-cv-ci-store-h" data-i18n="1">buyAsAPaperBook</h4><ul class="-cv-ci-store-items x-cv-ci-store-items" id="xCVComicInfoStoreItemsStore"></ul></div></div></div></div>
2')),[[Lt.pr,""],[Lt.pr2,"2"],[Lt.pr3,"3"]].forEach((n,i)=>{n[0]&&t.push(he(Pe(Ve("div"),'<div><div id="xCVPr'+n[1]+'" class="-cv-pr"></div></div>'),e,"mode-pr"))}),Lt.lastPageAdId){let n=Ve("div");he(n,e);let i=Ve("div");n.appendChild(i),he(n,N),n.dir="ltr";let o=he(Ve("div"),"-cv-page-ad");o.id=Lt.lastPageAdId,i.appendChild(o),function(e){const t=()=>{const e=window.comiciViewer.onAdClick;e&&"function"==typeof e&&e()};ke(e,"click",t,!0),window.addEventListener("blur",()=>{document.activeElement===e.querySelector("iframe")&&t()})}(o),Lt.lastPageAdToLast?(Lt.useComiciStyleLastPages&&t.push(Le(Wn)),Lt.useFavPage&&t.push(Le(Un)),t.push(Le(Gn)),t.push(n)):(t.push(n),Lt.useComiciStyleLastPages&&t.push(Le(Wn)),Lt.useFavPage&&t.push(Le(Un)),t.push(Le(Gn)))}else Lt.useComiciStyleLastPages&&t.push(Le(Wn)),Lt.useFavPage&&t.push(Le(Un)),t.push(Le(Gn));for(let e of t)Et.pageContainer.appendChild(e);for(let e of Et.pageContainer.children)for(let t of e.children)Et.pageContents.push(he(t,"-cv-page-content"));for(let e of pe("i",Et.pageContainer)){let t=e.parentNode,n=he(Ve("div"),"-cv-page-canvas");t.appendChild(n),n.appendChild(e),Et.pageCanvases.push(n)}for(let e of Et.pageContainer.children)Et.pages.push(he(e,"-cv-page"));pe(".-cv-icon").forEach(e=>{let t=Te(e,"icon");if(t){let n=Q[t];e.innerHTML=n}}),Et.view.querySelectorAll("[data-i18n]").forEach(e=>{if(e instanceof HTMLElement){const t=Boolean(e.dataset.i18nUseInnerHtml);((e,t,n)=>{e&&(n&&e instanceof HTMLElement?e.innerHTML=ce(t,Lt.lang):e.textContent=ce(t,Lt.lang))})(e,e.textContent,t)}}),this.htmlInitialized=!0}updateHtmlState(){console.warn("updateHtml")}onlyOnceSetting(){console.warn("onlyOnceSetting")}showError(){we("mode-error");let e=Le('<div class="-cv-error">ãã¥ã¼ã¯åæåä¸ã«ã¨ã©ã¼ãçºçãã¾ããã<br />ãã°ãããå¾
ã¡ããã ããã®ã¡ããã¼ã¸ã®åèªã¿è¾¼ã¿ãã試ããã ããã</div>');Et.view.appendChild(e)}destroy(){this._destroyed=!0}}class wi extends mi{constructor(){super(),this.recommendInitialized=!1,this.recommendImgInitialized=!1,this.prInitialized=!1,this.topPrInitialized=!1,this.prImgInitialized=!1,this.topPrImgInitialized=!1,this._seekbarTimeoutId=null,this._pendingIntervals=[],this.prItemsSnapshot=[],this.prItems2Snapshot=[],this.prItems3Snapshot=[],this.topPrItemsSnapshot=[]}_observeFlgThenDoTracked(e,t){if(this._destroyed)return;let n=null;n=function(e,t){if(e())return t(),null;{const n=window.setInterval(()=>{if(e())try{t()}finally{clearInterval(n)}},500);return n}}(e,()=>
2{if(!this._destroyed&&(t(),null!==n)){const e=this._pendingIntervals.indexOf(n);-1!==e&&this._pendingIntervals.splice(e,1)}}),null!==n&&this._pendingIntervals.push(n)}loadData(){let e;window.comiciViewer.data?.bookInfo?(Lt.bookInfo.result=window.comiciViewer.data.bookInfo.result,e=Promise.resolve()):e=et(`${te()}${Lt.domain}/book/Info?comici-viewer-id=${Lt.viewerId}`,Lt.bookInfo);let t,n=Promise.resolve();t=Lt.disableToc?Promise.resolve():et(`${te()}${Lt.domain}/book/episodeInfo?comici-viewer-id=${Lt.viewerId}&isPreview=${Lt.isPreview}`,Lt.episodeInfo);let i=[e,n,t];if(!kt.permissionError){let e=kt.currentPage-1,t=e+2;const n=new Promise((n,i)=>{const o=n=>{if(this._destroyed)return!1;if(n&&n.totalPages){if(n.result||(console.log("json.result is null"),n.result=[]),kt.epLastLoadedTimeServer=n.ts,kt.epLastLoadedTimeLocal=(new Date).getTime(),Object.assign(Lt.navigation,n),e=t=e+1,Lt.isVertical||(kt.isSpread?t=e+1:2==Lt.navigation.spreadDesignation&&(e=t=e+1)),function(e,t){const n=ti,i=()=>{n===ti&&(ei-=1,ei<=0&&(Qn=!0))};let o=e;for(;o<=t;){let{pageIdx:e,pageData:t}=li(o);if(t){let n=new Image;n.crossOrigin="anonymous",n.addEventListener("load",i),n.addEventListener("error",i),qn[e]=n,ei+=1,n.src=t.imageUrl}o++}0===ei&&(Qn=!0)}(e,t),Lt.isIframe)Lt.navigation.totalPages=1,Lt.navigation.result[0].sort=0;else{if(Qe(ee(0,Lt.navigation.totalPages,Lt.contentId)).then(e=>e.json()).then(e=>{if(!this._destroyed&&e&&e.result){kt.epLastLoadedTimeServer=e.ts||Date.now(),kt.epLastLoadedTimeLocal=Date.now();let t=Lt.navigation.result;Lt.navigation.result=e.result;let n=Lt.navigation.result;for(let e=0,i=t.length;e<i;e++){let i=t[e];for(let e=0,t=n.length;e<t;e++)if(n[e].sort===i.sort){n[e]=i;break}}ii(kt.currentPage)}}).catch(e=>{console.log(e)}),Lt.topPr)if("js"===Lt.topPr){const e=window.comiciViewer.data?.topPr;if(e&&e.banners&&e.banners.length){kt.topPrItems=e.banners,kt.isTopPrLoaded=!0;const t=this;this._observeFlgThenDoTracked(()=>t.htmlInitialized,this.initTopPr.bind(this))}else Lt.topPr=""}else Qe(Lt.topPr).then(e=>e.json()).then(e=>{if(this._destroyed)return;e&&e.banners&&(kt.topPrItems=e.banners),kt.isTopPrLoaded=!0;const t=this;this._observeFlgThenDoTracked(()=>t.htmlInitialized,this.initTopPr.bind(this))}).catch(e=>{console.log(e)});if(Lt.useRecommend&&Qe(`${te()}${Lt.domain}/book/recommend?period=${Lt.recommendPeriod}&comici-viewer-id=${Lt.viewerId}&apiVersion=1&id=${Lt.memberId}`).then(e=>e.json()).then(e=>{if(!this._destroyed&&(kt.isRecommendDataLoaded=!0,e&&e.result)){Lt.recommendItems=e.result;const t=this;this._observeFlgThenDoTracked(()=>t.htmlInitialized,this.initRecommend.bind(this))}}).catch(e=>{console.log(e)}),Lt.useComicInfoPage){let e=Lt.comicInfoApi;if("js"===e){const e=window.comiciViewer.data?.comicInfo;if(e){Lt.comicInfoData=e;const t=this;this._observeFlgThenDoTracked(()=>t.htmlInitialized,this.initComicInfo.bind(this))}else Lt.useComicInfoPage=!1}else Lt.comicInfoParams&&(e=e+"?"+Lt.comicInfoParams),Qe(e).then(e=>e.json()).then(e=>{if(!this._destroyed&&e&&e.title){Lt.comicInfoData=e;const t=this;this._observeFlgThenDoTracked(()=>t.htmlInitialized,this.initComicInfo.bind(this))}}).catch(e=>{console.log(e)})}const e=[];for(const t of[[Lt.pr,""],[Lt.pr2,"2"],[Lt.pr3,"3"]])if(t[0])if("js"===t[0]){const n=window.comiciViewer.data?.["pr"+t[1]];n&&n.banners&&n.banners.length?(kt["prItems"+t[1]]=n.banners,e.push(Promise.resolve())):Lt["pr"+t[1]]=""}else e.push(Qe(t[0]).then(e=>e.json()).then(e=>{this._destroyed||e&&e.banners&&(kt["prItems"+t[1]]=e.banners)}).catch(e=>{console.log(e)}));e.length&&Promise.all(e).finally(()=>{if(this._destroyed)return;kt.isPrLoaded=!0;const e=this;this._observeFlgThenDoTracked(()=>e.htmlInitialized,this.initPr.bind(this))})}return!0}return!1};Qe(ee(Math.max(e,0),t,Lt.contentId)).then(e=>e.json()).then(r=>{this._destroyed||o(r)?n():(e=0,t=0,Qe(ee(e,t,Lt.contentId)).then(e=>e.json()).then(e=>{this._destroyed?n():o(e)?(kt.currentPage=0,n()):i(new $e("content info load error",!1))}))}).catch(e=>{i(e)})});i.push(n)}if(Lt.watermark){let e=new Promise((e,t)=>{const n=new Image;n.crossOrigin="anonymous",n.onerror=n=>{this._destroyed?e():(console.warn("watermark load error"),t(n))},n.onload=()=>{this._destroyed||(kt.watermarkImg=n,kt.watermarkImgHeight=n.height,kt.watermarkImgWidth=n.width),e()},n.src=function(){if(Lt.watermark){let e=T[Lt.watermark];if(e)return e}return console.log("bad watermark setting"),""}()});i.push(e)}return Promise.all(i)}initHtmlPropsAndEvents(){super.initHtmlPropsAndEvents(),Et.seekBar=ve("xCVSeekBar"),Et.seekBarToolTip=ve("sliderTooltip"),Et.headerTitle=pe(".x-cv-header-title"),Et.headerAuthors=ve("xCVHeaderAuthors"),Et.headerBrand=ve("xCVHeaderBrand"),Et.sliderTooltip=ve("sliderTooltip");for(let e of pe(".x-cv-unit"))xe(e,Ft());let e="";e=Lt.isIframe?Lt.headerTitle||Lt.subTitle||Lt.bookInfo.result.title||"":Lt.headerTitle||Lt.bookInfo.result.title||Lt.subTitle||"";for(let t of Et.headerTitle)xe(t,e);if(Et.headerAuthors&&xe(Et.headerAuthors,Lt.bookInfo.result.authors&&Lt.bookInfo.result.authors.length>0?Lt.bookInfo.result.authors.map(e=>e.name).join(","):""),Et.headerBrand&&Lt.brandImg&&Lt.brandUrl){const e=Et.headerBrand,t=ue("img",Et.headerBrand);e.href=Lt.brandUrl,e.onclick=e=>{ae(Lt.brandUrl,e)},t.src=Lt.brandImg}const t=pe(".x-cv-header-back");if(Lt.toTopUrl)for(let e of t){const t=e;
2t.href=Lt.toTopUrl,t.onclick=e=>{ae(Lt.toTopUrl,e)}}else{let e=!1;window.addEventListener("unload",()=>{e=!0});for(let n of t)ke(n,"click",()=>{history.back(),setTimeout(()=>{e||ae("/")},100)})}const n=ve("xCVLastPageNextBtn");if(n)if(Lt.nextViewerId)if(Lt.useNextPrevJs)ke(n,"click",e=>{const t=window.comiciViewer.onNext;t&&(e.stopPropagation(),e.preventDefault(),t())}),n.href=(i=Lt.nextEpisodeId)?`/episodes/${i}`:"";else{const e=n;e.href=ie(Lt.nextViewerId),e.onclick=t=>{ae(e.href,t)}}else Ce(n);var i;const o=ve("xCVLastPageComicBtn");o&&(Lt.externalUrl?(o.href=Lt.externalUrl,o.onclick=e=>{ae(Lt.externalUrl,e)},0===Lt.externalUrl.indexOf("http")&&(o.target="_blank")):Ce(o));const r=ve("xCVLastPageTwitBtn");r&&bi(r);const a=ve("xCVLastPageTopBtn");if(a&&(a.href=Lt.toTopUrl||"/",a.onclick=e=>{ae(a.href,e)},xe(a,Lt.toTopLabel),0===Lt.toTopUrl.indexOf("http")&&(a.target="_blank")),Lt.toNextLabel){const e=ve("xCVLastPageNextBtnLabel");e&&xe(e,Lt.toNextLabel)}const s=ve("xCVLastPageFavBtn");if(Lt.favAddApi||Lt.favLinkUrl){let e;Lt.useFavPage?(e=ve("xCVFavPageFavBtn"),s&&He(s)):e=s;const t=Lt.useFavPage?"Fav":"Last",n=ve("xCV"+t+"PageFavCount"),i=ve("xCV"+t+"PageFavError"),o=ve("xCV"+t+"PageFavBtnWrap");if(Lt.favAddLabel){const e=ve("xCV"+t+"PageFavLabel");e&&Pe(e,Lt.favAddLabel)}if(Lt.favAddedLabel){const e=ve("xCV"+t+"PageFavedLabel");e&&Pe(e,Lt.favAddedLabel)}const r="Last"===t?ve("xCVLastPageFavPopup"):null;r&&Lt.favPopupText&&xe(r,Lt.favPopupText);const a=t=>{t?(he(e,Y),o&&he(o,Y),r&&fe(r,"mode-show")):(fe(e,Y),o&&fe(o,Y),r&&Lt.favPopupText&&he(r,"mode-show"))};kt.applyFavFavedUi=a,a(kt.favFaved),kt.favCount>=0&&xe(n,String(kt.favCount)),Lt.favAddApi&&!Lt.favRemoveApi&&he(e,"mode-no-remove-fav");const c="js"===Lt.favFavedSync;ke(e,"click",t=>{ge(e,X)||(!kt.favFaved&&Lt.favAddApi?(he(e,X),function(){if("js"===Lt.favAddApi){const e=window.comiciViewer?.onFavAdd;return"function"==typeof e?Promise.resolve().then(()=>e()):Promise.reject(new Error("onFavAdd is not defined"))}return nt(Lt.favAddApi,Lt.favAddParams,Lt.favAddMethod,"GET")}().then(()=>{c||(kt.favFaved=!0,kt.favCount>=0&&(kt.favCount+=1,xe(n,String(kt.favCount))),a(!0))}).catch(e=>{console.log(e),xe(i,"ãæ°ã«å
¥ãç»é²ã«å¤±æãã¾ããããã°ããå¾
ã£ã¦å度ã試ããã ãã"),he(i,J),setTimeout(()=>{fe(i,J)},7e3)}).finally(()=>{fe(e,X)})):kt.favFaved&&Lt.favRemoveApi?(he(e,X),function(){if("js"===Lt.favRemoveApi){const e=window.comiciViewer?.onFavRemove;return"function"==typeof e?Promise.resolve().then(()=>e()):Promise.reject(new Error("onFavRemove is not defined"))}return nt(Lt.favRemoveApi,Lt.favRemoveParams,Lt.favRemoveMethod,"DELETE")}().then(()=>{c||(kt.favFaved=!1,kt.favCount>=0&&(kt.favCount-=1,xe(n,String(kt.favCount))),a(!1))}).catch(e=>{console.log(e),xe(i,"ãæ°ã«å
¥ãè§£é¤ã«å¤±æãã¾ããããã°ããå¾
ã£ã¦å度ã試ããã ãã"),he(i,J),setTimeout(()=>{fe(i,J)},7e3)}).finally(()=>{fe(e,X)})):Lt.favLinkUrl&&It(Lt.favLinkUrl))})}else s&&He(s);if(Lt.hasAppLink&&(ve("xCVLastPageAppLinkBtn").href=Lt.appLinkUrl,Pe(ve("xCVLastPageAppLinkLabel"),Lt.appLinkLabel)),Lt.lastPageAdId&&setTimeout(()=>{try{window.googletag.cmd.push(function(){window.googletag.display(Lt.lastPageAdId)})}catch(e){console.log(e)}}),Lt.lastBanner.img){const e=ve("xCVLastPageBannerLink");e.href=Lt.lastBanner.url,Lt.lastBanner.external?e.target="_blank":e.onclick=e=>{ae(Lt.lastBanner.url,e)};for(const t of Lt.lastBanner.classes)e.classList.add(t);const t=ve("xCVLastPageBanner");t.src=Lt.lastBanner.img,t.alt=Lt.lastBanner.title}if(Lt.useComiciStyleLastPages){const e=ve("xCVGoodPageGoodBtn"),t=ve("xCVGoodPageGoodCountTotal"),n=ve("xCVGoodPageGoodCount"),i=ve("xCVGoodPageGoodCountMax"),o="mode-gooded";xe(i,String(Lt.goodCountMax));const r=()=>{xe(t,String(kt.goodCountTotal)),xe(n,String(kt.goodCount)),kt.goodCount>=Lt.goodCountMax?he(e,q):(fe(e,q),!kt.goodCount||kt.goodCount<=0?fe(e,o):he(e,o))};r();let a,s=0;if(ke(e,"click",e=>{e.preventDefault(),e.stopPropagation(),kt.goodCount<Lt.goodCountMax&&(s+=1,kt.goodCountTotal+=1,kt.goodCount+=1,r(),a&&window.clearTimeout(a),a=window.setTimeout(()=>{const e=s;s=0,window.comiciViewer.onGoodButtonClick(e).then(()=>{},()=>{kt.goodCountTotal-=e,kt.goodCount-=e,r()})},500))}),c=ve("xCVGoodPageCommentBtn"),(l=ve("xCVGoodPageCommentCount"))&&xe(l,String(kt.commentCount)),ke(c,"click",()=>{const e=window.comiciViewer.onCommentButtonClick();e&&e.then&&e.then(e=>{e&&(kt.commentCount=e,l&&xe(l,String(kt.commentCount)))},()=>{})}),bi(ve("xCVGoodPageTwitBtn")),Lt.fanLetterUrl){he(ve("xCVGoodPageLetter"),"mode-enabled");const e=ve("xCVGoodPageLetterBtn");e.href=Lt.fanLetterUrl,0===Lt.fanLetterUrl.indexOf("http")?e.target="_blank":e.onclick=e=>{ae(Lt.fanLetterUrl,e)}}}var c,l;let d;Lt.isIframe||Lt.disableToc||(document.getElementById("tableOfContentsDialog").innerHTML="<div class='-cv-toc-items'>"+function(){let e="";return e=(Lt.isVolume?Lt.volumeInfo.result:Lt.episodeInfo.result).map(e=>"<div class='item -cv-toc-item' onclick=location.href='"+ie(e.id)+"'><figure class='-cv-toc-img'><img class='-cv-toc-img-img' src='https:"+e.thumb_image_url+"' loading='lazy'/></figure><div class='-cv-toc-label'>"+e.name+"</div></div>").join(""),e}()+"</div>"),function(){const e=ve("prevArrow");xe(ve("xCVPrevArrowLabel"),Lt.navDirection===O?"話"===Ft()?ce("nextEpisode",Lt.lang):ce("nextVolume",Lt.lang):"話"===Ft()?ce("prevEpisode",Lt.lang):ce("prevVolume",Lt.lang));
2const t=Lt.navDirection===O?Lt.nextViewerId:Lt.prevViewerId;t&&ke(e,"click",function(e){if(Lt.useNextPrevJs){const e=Lt.navDirection===O?window.comiciViewer.onNext:window.comiciViewer.onPrev;if(e)return e(),void ct(k)}e.stopPropagation();const n=ie(t);n&&ae(n),ct(k)});const n=ve("tableOfContents");!function(){if(Lt.disableToc)return!1;let e=[];return e=Lt.isVolume?Lt.volumeInfo.result:Lt.episodeInfo.result,e.length>0}()?we("mode-no-toc"):ke(n,"click",function(e){var t;e.stopPropagation(),t=A,function(e,t){e.classList.toggle(t)}(Et.view,t),me(t)});const i=ve("nextArrow");xe(ve("xCVNextArrowLabel"),Lt.navDirection===O?"話"===Ft()?ce("prevEpisode",Lt.lang):ce("prevVolume",Lt.lang):"話"===Ft()?ce("nextEpisode",Lt.lang):ce("nextVolume",Lt.lang));const o=Lt.navDirection===O?Lt.prevViewerId:Lt.nextViewerId;o&&ke(i,"click",function(e){if(Lt.useNextPrevJs){const e=Lt.navDirection===O?window.comiciViewer.onPrev:window.comiciViewer.onNext;if(e)return e(),void ct(L)}e.stopPropagation();const t=ie(o);t&&ae(t),ct(L)}),ke(ve("shareLink"),"click",e=>{e.stopPropagation();const t=ve("shareLinkDialog");"none"!==t.style.display?(t.style.display="none",kt.isHoverActive=!0):(t.style.display="block",kt.isHoverActive=!1,ct("share"))});const r=ve("settingButton");r&&ke(r,"click",function(e){e.stopPropagation();const t=ve("settingDialog");"none"!==t.style.display?(t.style.display="none",kt.isHoverActive=!0):(t.style.display="block",kt.isHoverActive=!1)});const a=ve("xCVChangeScreenSize");a&&ke(a,"click",function(e){e.stopPropagation(),kt.hoverSeekbar=!1,Ze()});const s=ve("changeVHButton");s&&ke(s,"click",function(e){!function(e){var t;e.stopPropagation(),ot(Tt+Lt.contentType,Lt.isVertical?"0":"1"),t=Lt.splashDisplayedKey+(Lt.isVertical?"H":"V"),window.sessionStorage.removeItem(t),It(window.location.href)}(e)})}(),ke(Et.seekBar,"input",e=>{let t;e.stopPropagation(),t=Lt.navDirection===O?Number(e.target.value)-1:jt()-Number(e.target.value),kt.sliderChanged=!0,this.goto(t,!0),this.hideNavLater(),d&&clearTimeout(d),d=setTimeout(()=>{kt.sliderChanged=!1},800)}),ke(Et.seekBar,"change",e=>{e.stopPropagation(),d&&clearTimeout(d),d=setTimeout(()=>{kt.sliderChanged=!1},200)}),ke(Et.seekBar,"touchstart",e=>{kt.usingSlider=!0}),ke(Et.seekBar,"touchend",e=>{kt.usingSlider=!1})}updateHtmlState(){if(ni(),Et.seekBar){Et.seekBar.step=!Lt.isVertical&&kt.isSpread?"2":"1";let e=jt();!Lt.isVertical&&kt.isSpread&&e%2==0&&(e-=1),Et.seekBar.max=String(e)}!function(){if(!Lt.canSetting){const e=document.getElementById("settingButton");if(e&&(e.style.display="none"),Lt.isVertical){const e=document.getElementById("verticalSettingButton");e&&(e.style.display="none")}}if(!Lt.canWindowSizeChange||!document.fullscreenEnabled){const e=document.getElementById("xCVChangeScreenSize");e&&(e.style.display="none")}if(!Lt.canHVChange){const e=document.getElementById("changeVHButton");e&&(e.style.display="none")}}(),setTimeout(()=>{this.initRecommend(),this.initPr()},100)}onlyOnceSetting(){Lt.isIframe||(function(){if(Lt.useInstruction&&(Ne=Lt.instructionDisplayedKey+(Lt.isVertical?"V":"H"),!it(Ne))){Ae=Et.view.appendChild(document.createElement("div")),Ae.className="-cv-inst-backdrop x-cv-inst-ok",Ae.innerHTML='<div class="-cv-inst"><div class="-cv-inst-content"><a class="-cv-inst-close x-cv-inst-ok"></a><p class="-cv-inst-img"></p><p class="-cv-inst-act"><a class="-cv-inst-btn x-cv-inst-ok">'+ce("close",Lt.lang)+"</a></p></div></div>";const e=pe(".x-cv-inst-ok",Et.view);for(let t of e)ke(t,"click",je)}}(),function(){const e=Lt.splashDisplayedKey+(Lt.isVertical?"V":"H"),t=at(e),n=Lt.isVertical||Lt.pageDirection!==O?"1":"2";if(Lt.isVertical&&!t||!Lt.isVertical&&n!==t){st(e,n);const t=Lt.isVertical?Q.arrow_down:Lt.pageDirection===O?Q.arrow_right:Q.arrow_left,i=Lt.isVertical?ce("readVertically",Lt.lang):Lt.pageDirection===O?ce("readToTheRight",Lt.lang):ce("readToTheLeft",Lt.lang),o=Et.view.appendChild(document.createElement("div"));o.className="-cv-splash",o.innerHTML='<div class="-cv-splash-content"><p class="-cv-splash-arrow"><i class="-cv-icon">'+t+'</i></p><p class="-cv-splash-text">'+i+"</p></div>",setTimeout(()=>{o.classList.add("mode-hide")},2800),setTimeout(()=>{o.parentNode.removeChild(o)},3300)}}())}goto(e,t=!1){let n=Lt.navigation.totalPages;if(!n)return;!e||e<0?e=0:e>=kt.totalPages&&(e=kt.totalPages-1),!Lt.isVertical&&kt.isSpread&&e%2==1&&(e-=1),kt.currentPage=e,function(){let e=Et.seekBar,t=kt.currentPage,n=jt(),i=function(){let e=kt.currentPage+1-Nt();return e>Lt.navigation.totalPages&&(e=Lt.navigation.totalPages),e}(),o=Lt.navigation.totalPages;e&&(!Lt.isVertical&&kt.isSpread&&n%2==0&&(n-=1),kt.usingSlider||(Lt.isVertical||Lt.pageDirection!==O?e.value=String(n-t):e.value=String(t+1))),Et.seekBarToolTip&&(Et.seekBarToolTip.innerHTML='<span class="-cv-f-page-current">'+(Lt.isVertical?i:t+1)+'</span>/<span class="-cv-f-page-total">'+(Lt.isVertical?o:n)+"</span>")}(),function(){if(!Lt.isVertical){if(kt.currentPage<=0?we(F):be(F),Be()?we(z):be(z),Lt.lastPageAdId&&(function(){if(!Lt.lastPageAdId)return!1;let e=jt()-2,t=jt()-2;return Lt.lastPageAdToLast?(e+=1,t+=1):(Lt.useComiciStyleLastPages&&(e-=1),Lt.useFavPage&&(e-=1)),kt.isSpread&&e%2==1&&(e-=1),e<=kt.currentPage&&kt.currentPage<=t}()?we(R):be(R)),Lt.pr||Lt.pr2||Lt.pr3||Lt.useComicInfoPage||Lt.useComiciStyleLastPages){let e=jt()-1,t=jt()-2;Lt.lastPageAdId&&(t-=1,e-=1),Lt.pr&&(e-=1),Lt.pr2&&(e-=1),Lt.pr3&&(e-=1),Lt.useComiciStyleLastPages&&(e-=1),Lt.useFavPage&&(e-=1),Lt.useComicInfoPage&&(e-=1),kt.isSpread&&e%2==1&&(e-=1),e<=kt.currentPage&&kt.currentPage<=t?(we(G),kt.prPageNumber=kt.currentPage):(be(G),kt.prPageNumber=void 0,rt(`banner_click_${Lt.savedPageKey}`)),Lt.useComicInfoPage&&e==kt.currentPage?we(W):be(W)}Lt.topPr&&(0===kt.currentPage?we(U):be(U))}}(),function(){let e=!!window.comiciViewer&&window.comiciViewer.onPageView;if(e&&"function"==typeof e){let t=kt.currentPage+1-Nt();t<=0&&(t-=1);let n=Lt.navigation.totalPages;if(t!==qe){try{e({current:t,total:n})}catch(e){console.log(e)}qe=t}}}();let i=kt.currentPage+1-Nt();i<=0&&(i-=1);i>=n-1||i<=3?(rt(Lt.savedPageKey),["xCVPr","xCVPr2","xCVPr3"].forEach(e
2=>{const t=ve(e);if(t){const e=()=>{ot(`banner_click_${Lt.savedPageKey}`,String(kt.prPageNumber)),Se(t,"click",e)};ke(t,"click",e)}})):ot(Lt.savedPageKey,String(kt.currentPage)),ii(kt.currentPage);let o=kt.isSpread?e+1:e;if(Lt.logDomain&&!Lt.isIframe){let t=Nt();e<=t&&t<=o&&bt("start_imp");let n=t+Lt.navigation.totalPages-1;e<=n&&n<=o&&bt("end_imp")}if(kt.totalPages>0){if(Lt.useRecommend){if(kt.isSpread&&e>=kt.totalPages-4||!kt.isSpread&&e>=kt.totalPages-3){const e=this;this._observeFlgThenDoTracked(()=>e.recommendInitialized,this.loadRecommendImgs.bind(this))}Lt.logDomain&&Be()&&setTimeout(()=>{!function(){if(kt.isRecommendImpSent)return;let e=[],t=[];pe(".x-cv-rec-link").forEach((n,i)=>{(function(e){return!(0===e.offsetWidth&&0===e.offsetHeight)})(n)&&(e.push(Te(n,"viewerId")),t.push(Te(n,"position")))});let n={event_type:"recommend_imp"};for(let i=0,o=e.length;i<o;i++)n["viewer_id"+(i+1)]=e[i],n["position"+(i+1)]=t[i];ft(n),kt.isRecommendImpSent=!0}()},500)}if((Lt.pr||Lt.pr2||Lt.pr3||Lt.useComicInfoPage)&&(kt.isSpread&&e>=kt.totalPages-10||!kt.isSpread&&e>=kt.totalPages-9)){const t=this;if(this._observeFlgThenDoTracked(()=>t.comicInfoInitialized,this.loadComicInfoImgs.bind(this)),this._observeFlgThenDoTracked(()=>t.prInitialized,this.loadPrImgs.bind(this)),Lt.logDomain){let n=kt.totalPages-2;Lt.lastPageAdId&&(n-=1),Lt.useComiciStyleLastPages&&(n-=1),Lt.useFavPage&&(n-=1),Lt.pr3&&(e<=n&&n<=o&&this._observeFlgThenDoTracked(()=>t.prInitialized,()=>{t._destroyed||wt(D,t.prItems3Snapshot)}),n-=1),Lt.pr2&&(e<=n&&n<=o&&this._observeFlgThenDoTracked(()=>t.prInitialized,()=>{t._destroyed||wt(_,t.prItems2Snapshot)}),n-=1),Lt.pr&&(e<=n&&n<=o&&this._observeFlgThenDoTracked(()=>t.prInitialized,()=>{t._destroyed||wt(M,t.prItemsSnapshot)}),n-=1),Lt.useComicInfoPage&&e<=n&&n<=o&&this._observeFlgThenDoTracked(()=>t.comicInfoInitialized,()=>{t._destroyed||kt.isComicInfoImpSent||window.comiciViewer.onLoadStoreItem&&(window.comiciViewer.onLoadStoreItem(Lt.comicInfoData.id),kt.isComicInfoImpSent=!0)})}}if(Lt.topPr&&(!Lt.isVertical||!Lt.hideVerticalTopPr)){if(e<=4){const e=this;this._observeFlgThenDoTracked(()=>e.topPrInitialized,this.loadTopPrImgs.bind(this))}if(Lt.logDomain&&(0===e||Lt.isVertical&&De()<50)){const e=this;this._observeFlgThenDoTracked(()=>e.topPrInitialized,()=>{e._destroyed||wt(E,e.topPrItemsSnapshot)})}}if(Lt.lastPageAdId)if(Lt.lastPageAdToLast)e>=kt.totalPages-1&&yt();else{let t=kt.totalPages-2;Lt.useComiciStyleLastPages&&(t-=1),Lt.useFavPage&&(t-=1),e<=t&&t<=o&&yt()}}}initRecommend(){if(this.recommendInitialized)return;let e=ve("xCVRecommend");if(e&&Lt.useRecommend&&Lt.recommendItems){this.recommendInitialized=!0,we("mode-has-recommend"),xe(ve("xCVRecommendH"),Lt.recommendH);for(let t=0;t<8;t++){let n=Lt.recommendItems[t];if(n&&n.viewerId){let i=Le('<div class="-cv-rec-item"><a class="-cv-rec-link x-cv-rec-link"><figure class="-cv-rec-img-wrap"><img class="-cv-rec-img x-cv-rec-img"></figure></a></div>'),o=ue(".x-cv-rec-link",i);if(o.href=ie(n.viewerId),n.bookType&&he(o,"3"==n.bookType||"4"==n.bookType?"mode-g":"mode-m"),Lt.logDomain){const e=gt(n.viewerId,t);ke(o,"click",t=>{e(),ae(o.href,t)})}else o.onclick=e=>{ae(o.href,e)};Ie(o,"viewerId",n.viewerId),Ie(o,"position",n.position),Ie(ue(".x-cv-rec-img",i),"src",n.bookThumbnailUrl||n.episodeThumbnailUrl),e.appendChild(i)}}}}initComicInfo(){if(this.comicInfoInitialized)return;const e=ve("xCVComicInfoPage"),t=Lt.comicInfoData;if(e&&Lt.useComicInfoPage&&t){this.comicInfoInitialized=!0,we("mode-has-comic-info"),xe(ve("xCVComicInfoHeader"),Lt.comicInfoHeader),xe(ve("xCVComicInfoTitle"),t.title),Pe(ve("xCVComicInfoDesc"),t.description);const e=ve("xCVComicInfoImg");Ie(e,"src",t.thumbnail);const n=t.url;n&&(e&&(e.alt=t.title),["xCVComicInfoImgLink","xCVComicInfoTitleLink"].forEach(e=>{const t=ve(e);t&&(t.href=n,ke(t,"click",e=>{ae(n,e)}))})),[["store","Store"],["ebook","Ebook"]].forEach(e=>{const n=t.links?t.links[e[0]]:t[e[0]],i=ve("xCVComicInfoStoreItems"+e[1]);if(n&&n.length)for(let e of n){let n,o;e.banner?(n=Ve("img"),n.alt=e.name,he(n,"-cv-ci-store-item-img"),Ie(n,"src",e.banner)):(o=Ve("span"),o.textContent=e.name,he(o,"-cv-ci-store-item-label"));const r=Ve("a");r.href=e.url,r.target="_blank",he(r,"-cv-ci-store-item-link"),e.banner?(he(r,"mode-img"),r.appendChild(n)):(he(r,"mode-text"),r.appendChild(o)),ke(r,"click",Ct(t.id,e));const a=Ve("li");he(a,"-cv-ci-store-item"),a.appendChild(r),i.appendChild(a)}else he(ve("xCVComicInfoStore"+e[1]),"mode-hidden")});const i=ve("xCVComicInfoContent"),o="mode-overflow",r="mode-scroll-bottom",a=()=>{console.log(i.scrollHeight,i.clientHeight+i.scrollTop),i.scrollHeight>i.clientHeight?he(i,o):fe(i,o),i.scrollHeight<=i.clientHeight+i.scrollTop?he(i,r):fe(i,r)};window.addEventListener("resize",a),i.addEventListener("scroll",a),setInterval(()=>{a()},5e3)}}initPrPage(e){const t=ve(e.id);if(t&&e.url&&e.banners.length){if(e.banners.length>2)return void console.warn("PR must 1 or 2 items:");he(t,"x-cv-pr"),he(t,"mode-"+e.banners.length),we("mode-has-pr");for(let n=0,i=e.banners.length;n<i;n++){let o=e.banners[n];if(o&&(o.img||o.image)&&o.url){let r=Le('<div class="-cv-pr-item"><a class="-cv-pr-link x-cv-pr-link"><h3 class="-cv-pr-h x-cv-pr-h"></h3><figure class="-cv-pr-img-wrap"><img class="-cv-pr-img x-cv-pr-img" width="520" height="700"></figure><p class="-cv-pr-btn x-cv-pr-btn"></p></a></div>'),a=ue(".x-cv-pr-link",r);if(a.href=o.url,o.external&&(a.target="_blank"),o.hasOwnProperty("headerText")){he(a,"mode-with-header"),a.style.backgroundColor=o.bgColor;const e=ue(".x-cv-pr-h",a);Pe(e,o.headerText.split("\n").join("<br />")),e.style.color=o.titleColor,xe(ue(".x-cv-pr-btn",a),o.buttonLabel?o.buttonLabel:"ã¿ãããã¦è³¼å
¥ãã")}if(o.classes&&Array.isArray(o.classes)&&he(a,...o.classes),o.title&&Ie(a,"name",o.title),o.index&&Ie(a,"index",o.index),Lt.logDomain){const t=mt(e.position+(1===i?"":"_"+(n+1)),o.url,o.title||"",o.image_id);ke(a,"click",e=>{t(),ae(a.href,e)})}else o.external||(a.onclick=e=>{ae(a.href,e)});let s=ue(".x-cv-pr-img",r);!o.img&&o.image&&(o.img=o.image.url),Ie(s,"src",o.img),t.appendChild(r)}}}}initPr(){!this.prInitialized&&kt.isPrLoaded&&this.htmlInitialized&&(this.prItemsSnapshot=kt.prItems,this.prItems2Snapshot=kt.prItems2,this.prItems3Snapshot=kt.prItems3,this.initPrPage({id:"xCVPr",url:Lt.pr,banners:this.prItemsSnapshot,position:M}),this.initPrPage({id:"xCVPr2",url:Lt.pr2,banners:this.prItems2Snapshot,position:_}),this.initPrPage({id:"xCVPr3",url:Lt.pr3,banners:this.prItems3Snapshot,position:D}),this.prInitialized=!0)}initTopPr(){!this.topPrInitialized&&kt.isTopPrLoaded&&(this.topPrItemsSnapshot=kt.topPrItems,this.initPrPage({id:"xCVTopPr",url:Lt.topPr,banners:this.topPrItemsSnapshot,position:E}),this.topPrInitialized=!0)}loadRecommendImgs(){if(this.recommendImgInitialized)return;const e=pe(".x-cv-rec-img",ve("xCVRecommend"));e.length&&(e.forEach((e,t)=>{e.src=Te(e,"src")}),this.recommendImgInitialized=!0)}doLoadPrImg(e){const t=pe(".x-cv-pr-img",ve(e));t.length&&t.forEach((e,t)=>{e.src=Te(e,"src")})}loadPrImgs(){this.prImgInitialized||(["xCVPr","xCVPr2","xCVPr3"].forEach(e
2=>{this.doLoadPrImg(e)}),this.prImgInitialized=!0),Fe()}loadTopPrImgs(){this.topPrImgInitialized||(this.doLoadPrImg("xCVTopPr"),this.topPrImgInitialized=!0),Fe()}loadComicInfoImgs(){if(!this.comicInfoImgInitialized){this.comicInfoImgInitialized=!0;const e=pe("#xCVComicInfoPage img");e.length&&e.forEach((e,t)=>{e.src=Te(e,"src")})}}toggleNav(){kt.zooming||(ye(B)?(be(B),be(A)):we(B))}hideNav(){this._seekbarTimeoutId&&clearTimeout(this._seekbarTimeoutId),ye(B)&&(be(B),be(A))}showNav(){kt.zooming||we(B)}hideNavLater(){this._seekbarTimeoutId&&clearTimeout(this._seekbarTimeoutId),this._seekbarTimeoutId=window.setTimeout(()=>{ye(A)||this.hideNav()},3e3)}destroy(){for(const e of this._pendingIntervals)clearInterval(e);this._pendingIntervals=[],super.destroy()}}function bi(e){let t=Lt.hashtag?Lt.hashtag:"",n=location.href.split("#")[0];Lt.seriesId&&(n=n+(n.includes("?")?"&":"?")+"utm_source=twitter&utm_medium=share&utm_campaign=tw_sh_ep_"+Lt.seriesId);let i="https://twitter.com/intent/tweet?url="+encodeURIComponent(n);Lt.shareText?i+="&text="+encodeURIComponent(Lt.shareText):Lt.hashtag?i+="&hashtags="+encodeURIComponent(t):i+="&text="+encodeURIComponent(Lt.bookInfo.result.title),e.href=i,e.target="_blank",window.comiciViewer.onPostClick&&"function"==typeof window.comiciViewer.onPostClick&&ke(e,"click",()=>{window.comiciViewer.onPostClick()})}class yi extends wi{constructor(){super(),this.isTapScrolling=!1}detectCurrentPage(){let e,t;for(e=0;e<kt.totalPages;e++){const n=Et.pages[e];if(n){if(t=n.getBoundingClientRect(),!(t.top<=St.browserHeight))break;kt.currentPage=e}}}constructHtml(){const e=Et.view.getBoundingClientRect().height;Ee(Et.view,{minHeight:e+"px"}),Et.view.innerHTML='<div class="-cv-v"><div class="-cv-v-main-wrap" id="xCVVMainWrap"><div id="xCVPages" class="-cv-v-main"></div><div class="-cv-v-navs-wrap" id="xCVVNavWrap"><div class="-cv-v-navs" id="xCVVNav"><div class="-cv-v-nav mode-up" id="xCVVNavUp"></div><div class="-cv-v-nav mode-menu" id="xCVVNavMenu"></div><div class="-cv-v-nav mode-down" id="xCVVNavDown"></div><div class="-cv-h"><span class="-cv-h-back"><a class="-cv-h-back-link x-cv-header-back"><span class="-cv-icon" data-icon="left"></span><span class="-cv-h-subh x-cv-header-title"></span></a> </span><a class="-cv-h-brand" id="xCVHeaderBrand"><img class="-cv-h-brand-img"></a></div><div id="pageContainer" class="-cv-f"><div class="-cv-f-contents"><div class="-cv-f-btns mode-l"><a id="nextArrow" class="-cv-f-btn mode-next"><span class="-cv-icon -cv-f-icon" data-icon="skip_prev"></span> <span id="xCVNextArrowLabel" class="-cv-f-label" data-i18n="1">nextEpisode</span> </a><a id="tableOfContents" class="-cv-f-btn mode-toc"><span class="-cv-icon -cv-f-icon" data-icon="list"></span> <span class="-cv-f-label"><span class="x-cv-unit" data-i18n="1">episode</span><span data-i18n="1">list</span> </span></a><a id="prevArrow" class="-cv-f-btn mode-prev"><span class="-cv-icon -cv-f-icon" data-icon="skip_next"></span> <span id="xCVPrevArrowLabel" class="-cv-f-label" data-i18n="prevEpisode">prevEpisode</span></a></div><div class="-cv-f-btns mode-r"><a id="changeVHButton" class="-cv-f-btn mode-changevh"><span class="-cv-icon -cv-f-icon"><svg viewBox="0 0 192 192" xmlns="http://www.w3.org/2000/svg"><path d="M32 16V176H160V16H32ZM144 160H102V124H90V160H48V32H90V68H102V32H144V160Z"/>
2<path d="M82 112V126L52 96L82 66V80L110 80V66L140 96L110 126V112H82Z"/></svg> </span><span class="-cv-f-label" data-i18n="1">verticalHorizontalSwitching</span></a></div></div></div><div id="tableOfContentsDialog" class="-cv-toc mode-h"></div><div id="xCVConfirmDialog" class="-cv-confirm"></div><div class="-cv-f-seek-wrap"><span id="sliderTooltip" class="-cv-f-label x-cv-label"></span></div><a class="-cv-v-totop-btn" id="xCVToTopBtn"><span class="-cv-icon -cv-v-totop-icon" data-icon="up"></span><span data-i18n="1">scrollToTop</span></a></div></div></div></div>',setTimeout(()=>{this.navWrapElm=ve("xCVVNavWrap"),this.navElm=ve("xCVVNav"),this.mainWrapElm=ve("xCVVMainWrap")})}initHtmlPropsAndEvents(){if(super.initHtmlPropsAndEvents(),Et.seekBar&&(Et.seekBar.max=String(jt())),kt.currentPage>0){let e;const t=kt.currentPage;e=setInterval(()=>{kt.isFirstImageLoaded&&setTimeout(()=>{We(t),this.initScrollEvent(),clearInterval(e)},100)},100)}else this.initScrollEvent();const e=window.document.scrollingElement||window.document.body||window.document.documentElement;let t;ke(ve("xCVVNavUp"),"click",()=>{this.hideNav(),Pt()||(t&&(clearTimeout(t),t=null),this.isTapScrolling=!0,Rn({targets:{scroll:e.scrollTop},scroll:e.scrollTop-.85*St.browserHeight,duration:250,easing:"easeInOutCubic",update:t=>{e.scrollTop=t.animations[0].currentValue},complete:e=>{t=window.setTimeout(()=>{this.isTapScrolling=!1},250)}}))}),ke(ve("xCVVNavDown"),"click",()=>{this.hideNav(),Pt()||(t&&(clearTimeout(t),t=null),this.isTapScrolling=!0,Rn({targets:{scroll:e.scrollTop},scroll:e.scrollTop+.85*St.browserHeight,duration:250,easing:"easeInOutCubic",update:t=>{e.scrollTop=t.animations[0].currentValue},complete:e=>{t=window.setTimeout(()=>{this.isTapScrolling=!1},250)}}))}),ke(ve("xCVToTopBtn"),"click",()=>{this.hideNav(),Pt()||Rn({targets:{scroll:e.scrollTop},scroll:0,duration:250,easing:"easeInOutCubic",update:t=>{e.scrollTop=t.animations[0].currentValue}})}),ke(ve("xCVVNavMenu"),"click",()=>{Pt()?this.hideNav():this.toggleNav()})}initScrollEvent(){this._onScrollForPage=function(t,n,i){var o=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return e(i)&&(o="leading"in i?!!i.leading:o,r="trailing"in i?!!i.trailing:r),I(t,n,{leading:o,maxWait:n,trailing:r})}(()=>{kt.sliderChanged||kt.usingSlider||(this.detectCurrentPage(),this.goto(kt.currentPage))},400),window.addEventListener("scroll",this._onScrollForPage);let t=0;this._onScrollForNav=()=>{let e=De(),n=function(e){var t=e.getBoundingClientRect();return{top:t.top+(document.documentElement.scrollTop||document.body.scrollTop),left:t.left+(document.documentElement.scrollLeft||document.body.scrollLeft)}}(this.mainWrapElm).top;n<=e?we("mode-v-nav-fixed"):be("mode-v-nav-fixed"),e>t?kt.sliderChanged||kt.usingSlider||(this.hideNav(),je()):kt.sliderChanged||kt.usingSlider||this.isTapScrolling||this.showNav(),t=e},window.addEventListener("scroll",this._onScrollForNav),this._onScrollForNav()}updateHtmlState(){super.updateHtmlState(),Ee(Et.view,{minHeight:""});const e=ve("verticalChangeScreenSize");Se(e,"click",this.onChangeScreenSize),ke(e,"click",this.onChangeScreenSize),Ee(this.navWrapElm,{height:kt.viewerHeight+"px"}),Ee(this.navElm,{width:Oe(this.navWrapElm)+"px"}),this.goto(kt.currentPage)}onChangeScreenSize(e){e.stopPropagation(),kt.hoverSeekbar=!1,Ze()}onlyOnceSetting(){super.onlyOnceSetting()}goto(e){e>=Lt.navigation.totalPages+(Lt.topPr&&!Lt.hideVerticalTopPr?1:0)?we("mode-v-nav-bottom"):be("mode-v-nav-bottom"),e>2?we("mode-v-in-middle"):be("mode-v-in-middle"),super.goto(e),kt.sliderChanged&&We()}destroy(){window.removeEventListener("scroll",this._onScrollForPage),window.removeEventListener("scroll",this._onScrollForNav),super.destroy()}}var Ci=n(675),xi=n.n(Ci);const Pi="mode-glimpse-bottom",Ii="mode-zooming";class Ti extends wi{constructor(){super(),this._currentMarginInline=0,this._currentMarginTop=0,this._adjustMarginWidth=0,this._firstConfirmShown=!1,this._lastConfirmShown=!1}constructHtml(){Et.view.innerHTML='<div id="headerContainer" class="-cv-h header_container"><span class="-cv-h-back"><a class="-cv-h-back-link x-cv-header-back"><span class="-cv-icon" data-icon="left"></span><span class="-cv-h-subh x-cv-header-title"></span></a> </span><a class="-cv-h-brand" id="xCVHeaderBrand"><img class="-cv-h-brand-img"></a></div><div class="-cv-wrap" id="xCVHMain"><div id="xCVPagesWrap" class="-cv-pages-wrap mode-h"><div id="xCVPages" class="-cv-pages" dir="rtl"></div><img class="-cv-iframe-thumb" id="xCVIframeThumbImg"><div class="-cv-iframe-noimg">no image</div></div><div id="xCVLeftNav" class="-cv-nav mode-l"></div><div id="xCVNavCenter" class="-cv-nav mode-center"></div><div id="xCVRightNav" class="-cv-nav mode-r"></div><a id="xCVNavIframe" class="-cv-nav mode-iframe" target="_blank"><div class="-cv-nav-iframe-btn"><i class="-cv-icon" data-icon="external"></i> <span data-i18n="1">openAndRead</span></div></a></div><div id="pageContainer" class="-cv-f"><div class="-cv-f-contents"><div class="-cv-f-seek-wrap"><span class="-cv-f-seek"><input id="xCVSeekBar" ontouchstart="" class="-cv-input-seek mode-h" name="range" t
2ype="range" value="1" min="1" max="1" step="1"> </span><span id="sliderTooltip" class="-cv-f-label x-cv-label"></span></div><div class="-cv-f-btns mode-l"><a id="nextArrow" class="-cv-f-btn mode-next"><span class="-cv-icon -cv-f-icon" data-icon="skip_prev"></span> <span id="xCVNextArrowLabel" class="-cv-f-label" data-i18n="1">nextEpisode</span> </a><a id="tableOfContents" class="-cv-f-btn mode-toc"><span class="-cv-icon -cv-f-icon" data-icon="list"></span> <span class="-cv-f-label"><span class="x-cv-unit" data-i18n="1">episode</span><span data-i18n="1">list</span> </span></a><a id="prevArrow" class="-cv-f-btn mode-prev"><span class="-cv-icon -cv-f-icon" data-icon="skip_next"></span> <span id="xCVPrevArrowLabel" class="-cv-f-label" data-i18n="1">prevEpisode</span></a></div><div class="-cv-f-btns mode-r"><a id="xCVChangeScreenSize" class="-cv-f-btn mode-fullscreen"><span class="-cv-icon -cv-f-icon" data-icon="fullscreen"></span> <span class="-cv-f-label" data-i18n="1">fullScreen</span> </a><a id="shareLink" class="-cv-f-btn" style="display: none"><span class="-cv-icon -cv-f-icon" data-icon="share"></span> <span class="-cv-f-label" data-i18n="1">share</span> </a><a id="xCVGlimpseBottomOnBtn" class="-cv-f-btn mode-glimpse-btm-on"><span class="-cv-icon -cv-f-icon" data-icon="shrink"></span> <span class="-cv-f-label" data-i18n="1">zoomOut</span> </a><a id="xCVGlimpseBottomOffBtn" class="-cv-f-btn mode-glimpse-btm-off"><span class="-cv-icon -cv-f-icon" data-icon="expand"></span> <span class="-cv-f-label" data-i18n="1">zoomIn</span> </a><a id="changeVHButton" class="-cv-f-btn"><span class="-cv-icon -cv-f-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><g><polygon points="64 112 96 144 128 112 112 112 112 100 112 92 112 64 80 64 80 92 80 100 80 112 64 112"/><path d="M32,16V176H160V16ZM144,92H124v8h20v60H48V100H68V92H48V32h96Z"/></g></svg> </span><span class="-cv-f-label" data-i18n="1" data-i18n-use-inner-html="1">verticalHorizontalSwitching</span></a></div></div></div><div id="tableOfContentsDialog" class="-cv-toc mode-h"></div><div id="shareLinkDialog"></div><div id="settingDialog"></div><div id="xCVConfirmDialog" class="-cv-confirm"></div><div id="xCVIframeLogo" class="-cv-iframe-logo"></div>'}initHtmlPropsAndEvents(){if(super.initHtmlPropsAndEvents(),Et.canvasWrap=ve("xCVCanvasWrap"),Et.horizontalLastPageNextBtn=ve("lastPageNextButton"),Et.pageContainer.setAttribute("dir",Lt.pageDirection),Lt.isIframe){if(ve("xCVNavIframe").href=function(e){if(e)return Lt.iframeLinkRoot+"/xfer?cid="+e}(Lt.viewerId),Ee(ve("xCVIframeLogo"),{backgroundImage:"url("+ne()+")"}),kt.permissionError){let e;const t=Lt.isVolume?Lt.volumeInfo.result:Lt.episodeInfo.result;for(let n=0,i=t.length;n<i;n++){let i=t[n];if(i.id===Lt.viewerId){e=i.thumb_image_url;break}}e||(e=Lt.bookInfo.result.thumb_image_url||""),e?ve("xCVIframeThumbImg").src=e:we("mode-iframe-noimg")}}else{Lt.nextViewerId,ke(ve("xCVLeftNav"),"click",e=>{Pt()||(e.stopPropagation(),Lt.navDirection===H?this.nextPage(!0):this.prevPage(!0))});let e=0;ke(ve("xCVNavCenter"),"click",t=>{if(!kt.swiped&&!Pt()){if(t.stopPropagation(),Lt.useDoubleTapZoom&&St.isTouch){let t=Date.now();if(t-e<200)return void this.toggleZoom();e=t}this.toggleNav()}}),ke(ve("xCVRightNav"),"click",e=>{e.stopPropagation(),Lt.navDirection===H?this.prevPage(!0):this.nextPage(!0)}),ke(ve("xCVFirstEpBtn"),"click",e=>{e.stopPropagation(),function(){if(Lt.useNextPrevJs){const e=window.comiciViewer.onFirst;if(e)return void e()}Lt.firstEpisodeId&&ae(ie(Lt.firstEpisodeId))}()}),Lt.useGlimpseBottom&&we("mode-use-glimpse-bottom"),ke(ve("xCVGlimpseBottomOnBtn"),"click",()=>{kt.isGlimpseBottom=!0,kt.isGlimpseBottomAfterFullScreen=!0,ot(Vt,"1"),this.update()}),ke(ve("xCVGlimpseBottomOffBtn"),"click",()=>{kt.isGlimpseBottom=!1,kt.isGlimpseBottomAfterFullScreen=!1,ot(Vt,"0"),this.update()})}}updateHtmlState(){if(super.updateHtmlState(),Ee(Et.view,{height:kt.viewerHeight+"px"}),kt.zooming&&this.endZoom(),kt.isGlimpseBottom?we(Pi):be(Pi),it(`banner_click_${Lt.savedPageKey}`)){const e=it(`banner_click_${Lt.savedPageKey}`);kt.currentPage=parseInt(e),rt(`banner_click_${Lt.savedPageKey}`)}this.goto(kt.currentPage,!0)}onlyOnceSetting(){if(super.onlyOnceSetting(),Lt.isIframe)this.showNav();else{const e=ve("xCVHMain"),t=e=>{if(!Pt())for(let t of e.changedTouches)if(t.pageX<=5||window.innerWidth-5<=t.pageX)return void e.preventDefault()};Et.view.addEventListener("touchstart",t);const n=document.getElementById("xHeader");n&&n.addEventListener("touchstart",t);let i=!0;const o=()=>Lt.useComicInfoPage&&ye(W);this._vanillaSwipe=new(xi())({element:e,mouseTrackingEnabled:!0,preventDefaultTouchmoveEvent:!0,onSwiping:(e,t)=>
2{if(Pt()||o()?i&&(i=!1,this._vanillaSwipe.update({preventDefaultTouchmoveEvent:!1})):i||(i=!0,this._vanillaSwipe.update({preventDefaultTouchmoveEvent:!0})),e.touches&&1===e.touches.length&&!ye(A)&&!kt.usingSlider&&!Pt())if(kt.zooming){e.preventDefault(),e.stopPropagation();let n=this._currentMarginInline+(Lt.pageDirection===H?-t.deltaX:t.deltaX),i=this._currentMarginTop-t.deltaY;n=Math.min(kt.zoomMarginInlineMax+this._adjustMarginWidth,Math.max(kt.zoomMarginInlineMin+this._adjustMarginWidth,n)),i=Math.min(kt.zoomMarginTopMax,Math.max(kt.zoomMarginTopMin,i)),Ee(Et.pageContainer,{[Lt.pageDirection===H?"marginRight":"marginLeft"]:n+"px",marginTop:i+"px"})}else t.absX>t.absY&&(e.preventDefault(),e.stopPropagation(),Ee(Et.pageContainer,{[Lt.pageDirection===H?"marginRight":"marginLeft"]:this._currentMarginInline+(Lt.pageDirection===H?-t.deltaX:t.deltaX)+"px"}))},onSwiped:(e,t)=>{if(kt.sliderChanged||ye(A)||Pt()||kt.zooming)return void(kt.zooming&&(this._currentMarginInline=Number(Et.pageContainer.style[Lt.pageDirection===H?"marginRight":"marginLeft"].replace("px","")),this._currentMarginTop=Number(Et.pageContainer.style.marginTop.replace("px",""))));let n=!1;t.absX>t.absY&&(t.duration>500?t.absX>150&&(n=!0):t.absX>40&&(n=!0)),n?("LEFT"===t.directionX?Lt.pageDirection===H?this.prevPage(!1):this.nextPage(!1):"RIGHT"===t.directionX&&(Lt.pageDirection===H?this.nextPage(!1):this.prevPage(!1)),we("mode-using-swipe")):this.goto(kt.currentPage,!1),(n||t.absY>40)&&(kt.swiped=!0,setTimeout(()=>{kt.swiped=!1},200))}}),this._vanillaSwipe.init(),this._onKeydown=e=>{e.stopPropagation();const t=Et.seekBar;t&&t.blur();const n=e.key;e.shiftKey&&" "===n||"d"===n||"l"===n||"ArrowRight"===n?Lt.pageDirection===H?this.prevPage(!0):this.nextPage(!0):" "!==n&&"a"!==n&&"h"!==n&&"ArrowLeft"!==n||(Lt.pageDirection===H?this.nextPage(!0):this.prevPage(!0))},ke(document,"keydown",this._onKeydown),this.showNav(),this.hideNavLater()}}goto(e,t){kt.zooming||(Lt.isIframe||(e<0?Lt.prevViewerId&&(this._firstConfirmShown?re():(this._firstConfirmShown=!0,Ge("話"===Ft()?ce("readThePreviousEpisodeQuestion",Lt.lang):ce("readThePreviousVolumeQuestion",Lt.lang),function(e){e.stopPropagation(),re()},ce("read",Lt.lang),e=>{this._firstConfirmShown=!1}))):e>0&&kt.totalPages>0&&e>=kt.totalPages?Lt.nextViewerId?Lt.skipNextConfirm||this._lastConfirmShown?oe():(this._lastConfirmShown=!0,Ge("話"===Ft()?ce("readTheNextEpisodeQuestion",Lt.lang):ce("readTheNextVolumeQuestion",Lt.lang),function(e){e.stopPropagation(),oe()},ce("read",Lt.lang),e=>{this._lastConfirmShown=!1})):Lt.toTopUrl&&Lt.toTopNextIfLast&&(this._lastConfirmShown?ae(Lt.toTopUrl):(this._lastConfirmShown=!0,Ge(Lt.toTopDialogMessage?Lt.toTopDialogMessage:"ææ°è©±ã¾ã§èªã¿çµããã¾ãã<br />"+Lt.toTopLabel+"ç§»åãã¾ããï¼",function(e){e.stopPropagation(),ae(Lt.toTopUrl)},Lt.toTopDialogBtnLabel,e=>{this._lastConfirmShown=!1}))):(kt.imgExpired||ze&&ze(),this._firstConfirmShown=!1,this._lastConfirmShown=!1)),super.goto(e,t),this.setPagePosition(t))}nextPage(e,t=!1){kt.isSpread?this.goto(kt.currentPage+2,e):this.goto(kt.currentPage+1,e),t||this.hideNav(),je()}prevPage(e=!1,t=!1){kt.isSpread?this.goto(kt.currentPage-2,e):this.goto(kt.currentPage-1,e),t||this.hideNav(),je()}setPagePosition(e=!1){if(!Et.pageContainer)return;let t=kt.currentPage;kt.isSpread&&(t=Math.floor(t/2));const n=Lt.pageDirection===H?"right":"left",i=Lt.pageDirection===H?"marginRight":"marginLeft";let o={[n]:-kt.viewerWidth*t,[i]:0,marginTop:0},r=0;if(Lt.isVertical||Lt.isIframe||kt.isSpread||t<Nt()+Lt.navigation.totalPages&&(r=Math.floor((kt.viewerWidth-kt.imageRenderWidth)/2),2===Lt.navigation.spreadDesignation&&!Lt.topPr||1===Lt.navigation.spreadDesignation&&Lt.topPr?kt.currentPage%2==1&&(r=-r):kt.currentPage%2==0&&(r=-r),o[i]=r),this._currentMarginInline=o[i],this._currentMarginTop=o.marginTop,this._adjustMarginWidth=r,e){let e={[n]:o[n]-5+"px",[i]:o[i]+5+"px",marginTop:o.marginTop+"px"};Ee(Et.pageContainer,e)}Rn(Object.assign(o,{targets:Et.pageContainer,duration:100,easing:"easeOutCubic"}))}toggleZoom(){if(kt.zooming)this.endZoom();else{let e=kt.currentPage;if(e<Nt()||e>
2=Nt()+Lt.navigation.totalPages)return;kt.zooming=!0,kt.isSpread||(2===Lt.navigation.spreadDesignation?Lt.topPr||(e+=1):Lt.topPr&&(e+=1)),he(Et.pages[e],Ii),kt.isSpread&&he(Et.pages[e+1],Ii)}this.hideNav()}endZoom(){kt.zooming=!1,Et.pages.forEach((e,t)=>{fe(e,Ii)}),this.setPagePosition()}destroy(){Se(document,"keydown",this._onKeydown),this._vanillaSwipe&&(this._vanillaSwipe.destroy(),this._vanillaSwipe=null),super.destroy()}}let Vi=!1;function Li(e=!1){return new Promise((t,n)=>{if(kt.viewer){if(!e)return void n(new $e("Viewer already initialized",!0));ki()}try{((e=!1)=>{if(e){for(const e of[[Lt,Mt],[kt,_t],[St,Dt],[Et,Ot]]){const t=e[0],n=JSON.parse(JSON.stringify(e[1]));for(const e in n)t[e]=n[e]}qe=0}if(Et.view=ve("comici-viewer"),Et.view){if(we("-cv"),we(j),Lt.viewerId=function(e){if(de(e))return Et.view.attributes[e].value}("comici-viewer-id")||le("comiciViewerId"),!Lt.viewerId)throw new $e("Invalid parameter:comici-viewer-id",!1);if(Lt.lang=le("lang")||"ja",we("mode-lang-"+Lt.lang),Lt.contentId=le("contentId")||"",Lt.memberId=le("memberId")||"0",Lt.memberJwt=le("memberJwt")||"",Lt.memberIdToken=le("memberIdToken")||"",Lt.seriesId=le("seriesId")||"",Lt.canSetting=de("use-setting"),Lt.canWindowSizeChange=!!le("useFullscreen"),Lt.isVertical=de("mode-vertical")||!!le("modeVertical"),Lt.contentType=le("contentType")||"",Lt.canHVChange=!!le("useVhChange"),Lt.canHVChange){we("mode-vh-change");const e=it(Tt+Lt.contentType);e&&(Number(e)>0?Lt.isVertical=!0:Lt.isVertical=!1)}Lt.isIframe=!!le("modeIframe"),Lt.isIframe&&(we("mode-iframe"),Lt.isVertical=!1,Lt.iframeLogo=le("iframeLogo")||"",Lt.iframeLinkRoot=le("iframeLinkRoot")||"",Lt.iframePage=Number(le("iframePage"))||1,Lt.iframePage>5&&(Lt.iframePage=1)),Lt.isVertical?(we("mode-v"),Lt.isCanvasPadding=de("canvas-span"),Lt.isCanvasPadding&&we("mode-separate-pages"),Lt.isBgColor=de("bg-black"),Lt.isBgColor&&we("mode-bg-black")):we("mode-h");const e=le("hDirection");
2if(!e||e!==H&&e!==O||(Lt.pageDirection=e),Lt.isVertical){const e=le("vNavDirection");!e||e!==H&&e!==O||(Lt.navDirection=e)}else Lt.navDirection=Lt.pageDirection;we("mode-dir-"+Lt.pageDirection),we("mode-nav-dir-"+Lt.navDirection);const t=le("apiDomain");if(!t)throw new $e("Invalid parameter:api-domain",!1);t.startsWith("/")?Lt.domain=location.href.split("/")[2]+t:Lt.domain=t;const n=le("logDomain");n&&(Lt.logDomain=n);const i=le("logTid");i&&(Lt.logTid=i);const o=le("logServiceType");o&&(Lt.logServiceType=o),Lt.isPreview=de("preview")||!!le("preview");let r=le("totopUrl");r&&(Lt.toTopUrl=r);let a=le("totopLabel");a&&(Lt.toTopLabel=a),Lt.toTopNextIfLast=!!le("totopNextIfLast");let s=le("totopDialogMessage");s&&(Lt.toTopDialogMessage=s);let c=le("totopDialogBtnLabel");c&&(Lt.toTopDialogBtnLabel=c);let l=le("tonextLabel");if(l&&(Lt.toNextLabel=l),Lt.isIframe)kt.currentPage=Lt.iframePage;else{Lt.savedPageKey=`mg_${Lt.viewerId}_page`;const e=it(Lt.savedPageKey);if(e)kt.currentPage=Number(e);else if(location.hash&&0===location.hash.indexOf("#page-")){const e=parseInt(location.hash.replace("#page-",""),10);e&&(kt.currentPage=e)}}if("function"==typeof window.comiciViewer.getFingerPrint&&(Lt.fingerPrint=window.comiciViewer.getFingerPrint()),le("useGlimpseBottom")){Lt.useGlimpseBottom=!0;let e=le("glimpseBottomHeight");e&&(Lt.glimpseBottomHeight=Number(e));const t=it(Vt);t?Number(t)>0?kt.isGlimpseBottom=!0:kt.isGlimpseBottom=!1:(kt.isGlimpseBottom=!0,ot(Vt,"1"))}let d=le("lastpageAdId");if(d&&(Lt.lastPageAdId=d,we(N)),Lt.lastPageAdToLast=!!le("lastpageAdToLast"),le("hideVLastpages")&&(Lt.hideVerticalLastpages=!0),le("useRecommend")){Lt.useRecommend=!0;let e=Number(le("recommendPeriod"));e&&S.includes(e)&&(Lt.recommendPeriod=e);let t=le("recommendH");t&&(Lt.recommendH=t)}let u=le("topPr");u&&(Lt.topPr=u),le("hideVTopPr")&&(Lt.hideVerticalTopPr=!0);let p=le("pr");p&&(Lt.pr=p);let v=le("pr2");v&&(Lt.pr2=v);let h=le("pr3");h&&(Lt.pr3=h);let f,g=le("lastbannerImg");g&&(Lt.lastBanner.img=g,Lt.lastBanner.url=le("lastbannerUrl"),Lt.lastBanner.external=!!le("lastbannerExternal"),Lt.lastBanner.classes=le("lastbannerClasses").split(","),Lt.lastBanner.title=le("lastbannerTitle"),we("mode-has-lastbanner")),le("useDoubleTapZoom")&&(Lt.useDoubleTapZoom=!0);let m=document;f=()=>{St.isTouch=!0,Se(m,"touchstart",f)},ke(m,"touchstart",f);let w=!!le("disableTapScroll");Lt.disableTapScroll=w,w&&we("mode-disable-tap-scroll");let b=le("hashtag");b&&(Lt.hashtag=b);let y=le("shareText");y&&(Lt.shareText=y);let C=le("watermark");if(C&&(Lt.watermark=C),!Lt.isIframe){let e=le("brandImg"),t=le("brandUrl");e&&t&&(Lt.brandImg=e,Lt.brandUrl=t,we("mode-has-brand"))}let x=le("headerTitle");x&&(Lt.headerTitle=x);let P=le("vImageMaxWidth");P&&(Lt.verticalImageMaxWidth=Number(P)),Lt.favAddApi=le("favAdd"),Lt.favAddParams=le("favAddParams"),Lt.favAddMethod=le("favAddMethod"),Lt.favRemoveApi=le("favRemove"),Lt.favRemoveParams=le("favRemoveParams"),Lt.favRemoveMethod=le("favRemoveMethod"),Lt.favLinkUrl=le("favUrl"),Lt.favAddLabel=le("favAddLabel")||"",Lt.favAddedLabel=le("favAddedLabel")||"",Lt.favPopupText=le("favPopupText")||"",Lt.favFavedSync=le("favFavedSync")||"";let I=le("favCount");I&&(kt.favCount=parseInt(I)),le("favFaved")&&(kt.favFaved=!0),Lt.useFavPage=!!le("useFavPage"),Lt.useFavPage&&we("mode-has-fav-page"),Lt.useComiciStyleLastPages=!!le("useComiciStyleLastpages"),Lt.useComiciStyleLastPages&&we("mode-has-good-page");let T=le("goodCountTotal");T&&(kt.goodCountTotal=parseInt(T));let V=le("goodCountUser");V&&(kt.goodCount=parseInt(V));let L=le("commentCount");L&&(kt.commentCount=parseInt(L)),Lt.fanLetterUrl=le("fanLetterUrl");let k=!!le("skipNextConfirm");Lt.skipNextConfirm=k,k&&we("mode-skip-next-confirm"),Lt.useInstruction=!!le("useInstruction"),Lt.useComicInfoPage=!!le("comicInfo");const E=le("comicInfoApi");E&&(Lt.comicInfoApi=E);const M=le("comicInfoParams");M&&(Lt.comicInfoParams=M);const _=le("comicInfoTitle");_&&(Lt.comicInfoHeader=_),Lt.useNextPrevJs=!!le("usePrevNextJs"),Lt.nextEpisodeId=le("nextEpisodeId"),Lt.prevEpisodeId=le("prevEpisodeId"),Lt.firstEpisodeId=le("firstEpisodeId"),Lt.useNextPrevJs&&(Lt.nextViewerId=!!Lt.nextEpisodeId,Lt.prevViewerId=!!Lt.prevEpisodeId,Lt.firstViewerId=!!Lt.firstEpisodeId),Lt.disableToc=!!le("disableToc"),Lt.disableToc&&we("mode-disable-toc"),Lt.useExternalRouter=!!le("useExternalRouter"),Lt.hasAppLink=!!le("hasAppLink"),Lt.appLinkUrl=le("appLinkUrl"),Lt.appLinkLabel=le("appLinkLabel")||Lt.appLinkLabel,Lt.hasAppLink&&we("mode-has-app-link"),Lt.appLinkIcon=le("appLinkIcon")||Lt.appLinkIcon,we("mode-app-link-"+Lt.appLinkIcon),Ht()}})(e)}catch(e){n(e instanceof $e?e:new $e("initState Failed",!1))}Lt.viewerId?function(){Lt.isVertical?kt.viewer=new yi:kt.viewer=new Ti;const e=kt.viewer.start();if(!Vi){const e=I(e=>{setTimeout(()=>{if(Pt())return;let t=Bt(),n=At();(!0===e||t!==St.browserWidth||t>500&&Math.abs(St.browserHeight-n)>
2115)&&kt.viewer.update()})},300);window.addEventListener("resize",e),window.addEventListener("load",e),setTimeout(()=>{e(!0)},500),window.addEventListener("unload",fi),Vi=!0}return e}().then(()=>{t()},e=>{n(e)}):n(new $e("Viewer ID reuquired.",!1))})}function ki(){kt.viewer&&(kt.viewer.destroy&&kt.viewer.destroy(),Et.view.innerHTML="",ti++,Jn.forEach(e=>{e&&(e.onload=null,e.onerror=null,e.removeAttribute("src"))}),qn.forEach(e=>{e&&(e.onload=null,e.onerror=null,e.removeAttribute("src"))}),fi(),Jn.length=0,Zn.length=0,Kn=null,qn.length=0,Qn=!1,ei=0,kt.applyFavFavedUi=null)}window.comiciViewer=window.comiciViewer||{},window.comiciViewer.init=(e=!1)=>new Promise((t,n)=>{const i=()=>{Li(e).then(()=>{t()},e=>{n(e)})};"loading"!=document.readyState?i():document.addEventListener("DOMContentLoaded",i)}),window.comiciViewer.destroy=()=>{ki()},window.comiciViewer.setFavFaved=e=>{kt.favFaved=!!e,kt.applyFavFavedUi&&kt.applyFavFavedUi(kt.favFaved)}})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.