Deploying to gh-pages from @ eaa8644df6 🚀

This commit is contained in:
unanmed committed 2023-01-11 01:47:19 +00:00
1 parent 686dec1364
commit 849a8ea4b3
19 files changed
+272 -316

No files matched your search

@@ -1,4 +1,4 @@
(function(){function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}System.register(["./common-legacy.f0900b0f.js","./antdv-legacy.8282396f.js"],(function(exports,module){"use strict";var __vite_style__=document.createElement("style"),lodash,message,ref,defineComponent,onMounted,onUpdated,createElementBlock,unref,onUnmounted,openBlock,createBaseVNode,toDisplayString,createVNode,Fragment,renderList,normalizeStyle,createTextVNode,__unplugin_components_1,renderSlot,withCtx,createBlock,resolveDynamicComponent,pushScopeId,popScopeId,computed,watch,__unplugin_components_0,reactive,withModifiers,Transition,createCommentVNode,LeftOutlined,RightOutlined,__unplugin_components_1$1,SortAscendingOutlined,SortDescendingOutlined,SelectOption,__unplugin_components_0$1,DoubleLeftOutlined,DoubleRightOutlined,shallowReactive,markRaw,DragOutlined,createApp;return __vite_style__.textContent='body{margin:0;color:rgba(0,0,0,.85);font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:500}a{color:#1890ff;text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color .3s;-webkit-text-decoration-skip:objects}a:hover{color:#40a9ff}a:active{color:#096dd9}a[disabled]{color:rgba(0,0,0,.25);cursor:not-allowed}caption{padding-top:.75em;padding-bottom:.3em;color:rgba(0,0,0,.45);text-align:left;caption-side:bottom}mark{padding:.2em;background-color:#feffe6}::-moz-selection{color:#fff;background:#1890ff}::selection{color:#fff;background:#1890ff}html{--antd-wave-shadow-color: #1890ff;--scroll-bar: 0}[ant-click-animating-without-extra-node=true]:after,.ant-click-animating-node{position:absolute;top:0;right:0;bottom:0;left:0;display:block;border-radius:inherit;box-shadow:0 0 #1890ff;box-shadow:0 0 0 0 var(--antd-wave-shadow-color);opacity:.2;animation:fadeEffect 2s cubic-bezier(.08,.82,.17,1),waveEffect .4s cubic-bezier(.08,.82,.17,1);animation-fill-mode:forwards;content:"";pointer-events:none}@keyframes waveEffect{to{box-shadow:0 0 #1890ff;box-shadow:0 0 0 6px var(--antd-wave-shadow-color)}}.ant-divider{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";border-top:1px solid rgba(0,0,0,.06)}.ant-divider-vertical{position:relative;top:-.06em;display:inline-block;height:.9em;margin:0 8px;vertical-align:middle;border-top:0;border-left:1px solid rgba(0,0,0,.06)}.ant-divider-horizontal.ant-divider-with-text{display:flex;margin:16px 0;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-align:center;border-top:0;border-top-color:rgba(0,0,0,.06)}.ant-divider-dashed{background:none;border-color:rgba(0,0,0,.06);border-style:dashed;border-width:1px 0 0}.ant-divider-plain.ant-divider-with-text{color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.enemy-container[data-v-03a35715]{border:1.5px solid transparent;border-radius:1.1vw;transition:all .2s linear;height:100%}.enemy-container .info[data-v-03a35715]{flex-basis:100%;display:flex;flex-direction:row;align-items:center;justify-content:stretch;height:100%}.enemy-container[data-v-03a35715]:hover,.enemy-container[selected=true][data-v-03a35715]{border:1.5px solid gold}.leftbar[data-v-03a35715]{width:15%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:2vh;padding-left:1%}.name[data-v-03a35715]{text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.special-text[data-v-03a35715]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:row;align-items:center;justify-items:space-between}.rightbar[data-v-03a35715]{font-size:2.5vh;width:100%;height:100%;padding:1.5vh 0}.rightbar .detail[data-v-03a35715]{display:flex;flex-direction:row;flex-wrap:wrap;height:100%}.rightbar .detail .detail-info[data-v-03a35715]{flex-basis:33.3%;line-height:0;display:flex;flex-direction:column;justify-content:center}@media screen and (max-width: 600px){.rightbar[data-v-03a35715]{font-size:3.2vw}.leftbar[data-v-03a35715]{font-size:2vw}.enemy-container[data-v-03a35715]{border-radius:1.6vh}}.scroll[data-v-1626479d]{opacity:.2;transition:opacity .2s linear}.scroll[data-v-Line truncated
(function(){function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}System.register(["./common-legacy.f0900b0f.js","./antdv-legacy.8282396f.js"],(function(exports,module){"use strict";var __vite_style__=document.createElement("style"),lodash,message,ref,defineComponent,onMounted,onUpdated,createElementBlock,unref,onUnmounted,openBlock,createBaseVNode,toDisplayString,createVNode,Fragment,renderList,normalizeStyle,createTextVNode,__unplugin_components_1,renderSlot,withCtx,createBlock,resolveDynamicComponent,pushScopeId,popScopeId,computed,watch,__unplugin_components_0,reactive,withModifiers,Transition,createCommentVNode,LeftOutlined,RightOutlined,__unplugin_components_1$1,SortAscendingOutlined,SortDescendingOutlined,SelectOption,__unplugin_components_0$1,DoubleLeftOutlined,DoubleRightOutlined,shallowReactive,markRaw,DragOutlined,createApp;return __vite_style__.textContent='body{margin:0;color:rgba(0,0,0,.85);font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:500}a{color:#1890ff;text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color .3s;-webkit-text-decoration-skip:objects}a:hover{color:#40a9ff}a:active{color:#096dd9}a[disabled]{color:rgba(0,0,0,.25);cursor:not-allowed}caption{padding-top:.75em;padding-bottom:.3em;color:rgba(0,0,0,.45);text-align:left;caption-side:bottom}mark{padding:.2em;background-color:#feffe6}::-moz-selection{color:#fff;background:#1890ff}::selection{color:#fff;background:#1890ff}html{--antd-wave-shadow-color: #1890ff;--scroll-bar: 0}[ant-click-animating-without-extra-node=true]:after,.ant-click-animating-node{position:absolute;top:0;right:0;bottom:0;left:0;display:block;border-radius:inherit;box-shadow:0 0 #1890ff;box-shadow:0 0 0 0 var(--antd-wave-shadow-color);opacity:.2;animation:fadeEffect 2s cubic-bezier(.08,.82,.17,1),waveEffect .4s cubic-bezier(.08,.82,.17,1);animation-fill-mode:forwards;content:"";pointer-events:none}@keyframes waveEffect{to{box-shadow:0 0 #1890ff;box-shadow:0 0 0 6px var(--antd-wave-shadow-color)}}.ant-divider{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";border-top:1px solid rgba(0,0,0,.06)}.ant-divider-vertical{position:relative;top:-.06em;display:inline-block;height:.9em;margin:0 8px;vertical-align:middle;border-top:0;border-left:1px solid rgba(0,0,0,.06)}.ant-divider-horizontal.ant-divider-with-text{display:flex;margin:16px 0;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-align:center;border-top:0;border-top-color:rgba(0,0,0,.06)}.ant-divider-dashed{background:none;border-color:rgba(0,0,0,.06);border-style:dashed;border-width:1px 0 0}.ant-divider-plain.ant-divider-with-text{color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.enemy-container[data-v-03a35715]{border:1.5px solid transparent;border-radius:1.1vw;transition:all .2s linear;height:100%}.enemy-container .info[data-v-03a35715]{flex-basis:100%;display:flex;flex-direction:row;align-items:center;justify-content:stretch;height:100%}.enemy-container[data-v-03a35715]:hover,.enemy-container[selected=true][data-v-03a35715]{border:1.5px solid gold}.leftbar[data-v-03a35715]{width:15%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:2vh;padding-left:1%}.name[data-v-03a35715]{text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.special-text[data-v-03a35715]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:row;align-items:center;justify-items:space-between}.rightbar[data-v-03a35715]{font-size:2.5vh;width:100%;height:100%;padding:1.5vh 0}.rightbar .detail[data-v-03a35715]{display:flex;flex-direction:row;flex-wrap:wrap;height:100%}.rightbar .detail .detail-info[data-v-03a35715]{flex-basis:33.3%;line-height:0;display:flex;flex-direction:column;justify-content:center}@media screen and (max-width: 600px){.rightbar[data-v-03a35715]{font-size:3.2vw}.leftbar[data-v-03a35715]{font-size:2vw}.enemy-container[data-v-03a35715]{border-radius:1.6vh}}.scroll[data-v-1626479d]{opacity:.2;transition:opacity .2s linear}.scroll[data-v-Line truncated
/*!
* @kurkle/color v0.3.1
* https://github.com/kurkle/color#readme
@@ -17,4 +17,4 @@ function round(t){return t+.5|0}const lim=(t,e,n)=>Math.max(Math.min(t,n),e);fun
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,a){const o=e.listeners[a],i=e.duration;o.forEach((a=>a({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,a)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,r=o.length-1,l=!1;for(;r>=0;--r)i=o[r],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),l=!0):(o[r]=o[o.length-1],o.pop());l&&(a.draw(),this._notify(a,n,t,"progress")),o.length||(n.running=!1,this._notify(a,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let a=n.length-1;for(;a>=0;--a)n[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const a=color(t||transparent),o=a.valid&&color(e||transparent);return o&&o.valid?o.mix(a,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Animation{constructor(t,e,n,a){const o=e[n];a=resolve([t.to,a,o,t.from]);const i=resolve([t.from,o,a]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof i],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const a=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=resolve([t.to,e,a,t.from]),this._from=resolve([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,a=this._prop,o=this._from,i=this._loop,r=this._to;let l;if(this._active=o!==r&&(i||e<n),!this._active)return this._target[a]=r,void this._notify(!0);e<0?this._target[a]=o:(l=e/n%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(o,r,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let a=0;a<n.length;a++)n[a][e]()}}class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!isObject(t))return;const e=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((a=>{const o=t[a];if(!isObject(o))return;const i={};for(const t of e)i[t]=o[t];(isArray(o.properties)&&o.properties||[a]).forEach((t=>{t!==a&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,a=resolveTargetOptions(t,n);if(!a)return[];const o=this._createAnimations(a,n);return n.$shared&&awaitAll(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,a=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),r=Date.now();let l;for(l=i.length-1;l>=0;--l){const s=i[l];if("$"===s.charAt(0))continue;if("options"===s){a.push(...this._animateOptions(t,e));continue}const c=e[s];let d=o[s];const p=n.get(s);if(d){if(p&&d.active()){d.update(p,c,r);continue}d.cancel()}p&&p.duration?(o[s]=d=new Animation(p,t,s,c),a.push(d)):t[s]=c}return a}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(animator.add(this._chart,n),!0):void 0}}function awaitAll(t,e){const n=[],a=Object.keys(e);for(let o=0;o<a.length;o++){const e=t[a[o]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}function resolveTargetOptions(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function scaleClip(t,e){const n=t&&t.options||{},a=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:a?i:o,end:a?o:i}}function defaultClip(t,e,n){if(!1===n)return!1;const a=scaleClip(t,n),o=scaleClip(e,n);return{top:o.end,right:a.end,bottom:o.start,left:a.start}}function tLine truncated
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,a){const o=e.listeners[a],i=e.duration;o.forEach((a=>a({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,a)=>{if(!n.running||!n.items.length)return;const o=n.items;let i,r=o.length-1,l=!1;for(;r>=0;--r)i=o[r],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),l=!0):(o[r]=o[o.length-1],o.pop());l&&(a.draw(),this._notify(a,n,t,"progress")),o.length||(n.running=!1,this._notify(a,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let a=n.length-1;for(;a>=0;--a)n[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const a=color(t||transparent),o=a.valid&&color(e||transparent);return o&&o.valid?o.mix(a,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Animation{constructor(t,e,n,a){const o=e[n];a=resolve([t.to,a,o,t.from]);const i=resolve([t.from,o,a]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof i],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const a=this._target[this._prop],o=n-this._start,i=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=resolve([t.to,e,a,t.from]),this._from=resolve([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,a=this._prop,o=this._from,i=this._loop,r=this._to;let l;if(this._active=o!==r&&(i||e<n),!this._active)return this._target[a]=r,void this._notify(!0);e<0?this._target[a]=o:(l=e/n%2,l=i&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(o,r,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let a=0;a<n.length;a++)n[a][e]()}}class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!isObject(t))return;const e=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((a=>{const o=t[a];if(!isObject(o))return;const i={};for(const t of e)i[t]=o[t];(isArray(o.properties)&&o.properties||[a]).forEach((t=>{t!==a&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,a=resolveTargetOptions(t,n);if(!a)return[];const o=this._createAnimations(a,n);return n.$shared&&awaitAll(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,a=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),r=Date.now();let l;for(l=i.length-1;l>=0;--l){const s=i[l];if("$"===s.charAt(0))continue;if("options"===s){a.push(...this._animateOptions(t,e));continue}const c=e[s];let d=o[s];const p=n.get(s);if(d){if(p&&d.active()){d.update(p,c,r);continue}d.cancel()}p&&p.duration?(o[s]=d=new Animation(p,t,s,c),a.push(d)):t[s]=c}return a}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(animator.add(this._chart,n),!0):void 0}}function awaitAll(t,e){const n=[],a=Object.keys(e);for(let o=0;o<a.length;o++){const e=t[a[o]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}function resolveTargetOptions(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function scaleClip(t,e){const n=t&&t.options||{},a=n.reverse,o=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:a?i:o,end:a?o:i}}function defaultClip(t,e,n){if(!1===n)return!1;const a=scaleClip(t,n),o=scaleClip(e,n);return{top:o.end,right:a.end,bottom:o.start,left:a.start}}function tLine truncated
@@ -1,4 +1,4 @@
body{margin:0;color:rgba(0,0,0,.85);font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:500}a{color:#1890ff;text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color .3s;-webkit-text-decoration-skip:objects}a:hover{color:#40a9ff}a:active{color:#096dd9}a[disabled]{color:rgba(0,0,0,.25);cursor:not-allowed}caption{padding-top:.75em;padding-bottom:.3em;color:rgba(0,0,0,.45);text-align:left;caption-side:bottom}mark{padding:.2em;background-color:#feffe6}::-moz-selection{color:#fff;background:#1890ff}::selection{color:#fff;background:#1890ff}html{--antd-wave-shadow-color: #1890ff;--scroll-bar: 0}[ant-click-animating-without-extra-node=true]:after,.ant-click-animating-node{position:absolute;top:0;right:0;bottom:0;left:0;display:block;border-radius:inherit;box-shadow:0 0 #1890ff;box-shadow:0 0 0 0 var(--antd-wave-shadow-color);opacity:.2;animation:fadeEffect 2s cubic-bezier(.08,.82,.17,1),waveEffect .4s cubic-bezier(.08,.82,.17,1);animation-fill-mode:forwards;content:"";pointer-events:none}@keyframes waveEffect{to{box-shadow:0 0 #1890ff;box-shadow:0 0 0 6px var(--antd-wave-shadow-color)}}.ant-divider{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";border-top:1px solid rgba(0,0,0,.06)}.ant-divider-vertical{position:relative;top:-.06em;display:inline-block;height:.9em;margin:0 8px;vertical-align:middle;border-top:0;border-left:1px solid rgba(0,0,0,.06)}.ant-divider-horizontal.ant-divider-with-text{display:flex;margin:16px 0;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-align:center;border-top:0;border-top-color:rgba(0,0,0,.06)}.ant-divider-dashed{background:none;border-color:rgba(0,0,0,.06);border-style:dashed;border-width:1px 0 0}.ant-divider-plain.ant-divider-with-text{color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.enemy-container[data-v-03a35715]{border:1.5px solid transparent;border-radius:1.1vw;transition:all .2s linear;height:100%}.enemy-container .info[data-v-03a35715]{flex-basis:100%;display:flex;flex-direction:row;align-items:center;justify-content:stretch;height:100%}.enemy-container[data-v-03a35715]:hover,.enemy-container[selected=true][data-v-03a35715]{border:1.5px solid gold}.leftbar[data-v-03a35715]{width:15%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:2vh;padding-left:1%}.name[data-v-03a35715]{text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.special-text[data-v-03a35715]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:row;align-items:center;justify-items:space-between}.rightbar[data-v-03a35715]{font-size:2.5vh;width:100%;height:100%;padding:1.5vh 0}.rightbar .detail[data-v-03a35715]{display:flex;flex-direction:row;flex-wrap:wrap;height:100%}.rightbar .detail .detail-info[data-v-03a35715]{flex-basis:33.3%;line-height:0;display:flex;flex-direction:column;justify-content:center}@media screen and (max-width: 600px){.rightbar[data-v-03a35715]{font-size:3.2vw}.leftbar[data-v-03a35715]{font-size:2vw}.enemy-container[data-v-03a35715]{border-radius:1.6vh}}.scroll[data-v-1626479d]{opacity:.2;transition:opacity .2s linear}.scroll[data-v-1626479d]:hover{opacity:.4}.scroll[data-v-1626479d]:active{opacity:.6}.scroll-main[data-v-1626479d]{display:flex;flex-direction:row;max-width:100%;max-height:100%;justify-content:stretch}.content[data-v-1626479d]{width:100%;position:relative}.main-div[data-v-1626479d]{flex-basis:100%;overflow:hidden}#special-main[data-v-723dadcb]{width:100%;user-select:none;font-size:2em;position:absolute;top:20vh}#critical-main[data-v-723dadcb]{display:flex;flex-direction:row;justify-content:space-between}#critical-des[data-v-723dadcb],.critical[data-v-723dadcb]{font-size:1.6vw;display:flex;flex-direction:column}.critical-atk[data-v-723dadcb]{border-bottom:1px solid #ddd4}.critical[data-v-723dadcb]{border-left:1px solid #ddd4;padding-left:1%}#special-scroll[data-v-723dadcb]{height:40vh}@media screen and (max-width: 600px){#detail-main[data-v-723dadcb]{font-size:3.8vw}#special-scroll[data-v-723dadcb]{height:50vh}#critical-des[data-v-723dadcb],.critical[data-v-723dadcb]{font-size:3.6vw}#special[data-v-723dadcb]{font-size:3.8vw}#special-main[data-v-723dadcb]{top:25vh;width:90vw}}.ant-slider{box-sizing:border-box;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;height:12px;margin:10px 6px;padding:4px 0;cursor:pointer;touch-action:none}.ant-slider-rail{posiLine truncated
body{margin:0;color:rgba(0,0,0,.85);font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;color:rgba(0,0,0,.85);font-weight:500}a{color:#1890ff;text-decoration:none;background-color:transparent;outline:none;cursor:pointer;transition:color .3s;-webkit-text-decoration-skip:objects}a:hover{color:#40a9ff}a:active{color:#096dd9}a[disabled]{color:rgba(0,0,0,.25);cursor:not-allowed}caption{padding-top:.75em;padding-bottom:.3em;color:rgba(0,0,0,.45);text-align:left;caption-side:bottom}mark{padding:.2em;background-color:#feffe6}::-moz-selection{color:#fff;background:#1890ff}::selection{color:#fff;background:#1890ff}html{--antd-wave-shadow-color: #1890ff;--scroll-bar: 0}[ant-click-animating-without-extra-node=true]:after,.ant-click-animating-node{position:absolute;top:0;right:0;bottom:0;left:0;display:block;border-radius:inherit;box-shadow:0 0 #1890ff;box-shadow:0 0 0 0 var(--antd-wave-shadow-color);opacity:.2;animation:fadeEffect 2s cubic-bezier(.08,.82,.17,1),waveEffect .4s cubic-bezier(.08,.82,.17,1);animation-fill-mode:forwards;content:"";pointer-events:none}@keyframes waveEffect{to{box-shadow:0 0 #1890ff;box-shadow:0 0 0 6px var(--antd-wave-shadow-color)}}.ant-divider{box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";border-top:1px solid rgba(0,0,0,.06)}.ant-divider-vertical{position:relative;top:-.06em;display:inline-block;height:.9em;margin:0 8px;vertical-align:middle;border-top:0;border-left:1px solid rgba(0,0,0,.06)}.ant-divider-horizontal.ant-divider-with-text{display:flex;margin:16px 0;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;white-space:nowrap;text-align:center;border-top:0;border-top-color:rgba(0,0,0,.06)}.ant-divider-dashed{background:none;border-color:rgba(0,0,0,.06);border-style:dashed;border-width:1px 0 0}.ant-divider-plain.ant-divider-with-text{color:rgba(0,0,0,.85);font-weight:400;font-size:14px}.enemy-container[data-v-03a35715]{border:1.5px solid transparent;border-radius:1.1vw;transition:all .2s linear;height:100%}.enemy-container .info[data-v-03a35715]{flex-basis:100%;display:flex;flex-direction:row;align-items:center;justify-content:stretch;height:100%}.enemy-container[data-v-03a35715]:hover,.enemy-container[selected=true][data-v-03a35715]{border:1.5px solid gold}.leftbar[data-v-03a35715]{width:15%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:2vh;padding-left:1%}.name[data-v-03a35715]{text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.special-text[data-v-03a35715]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:row;align-items:center;justify-items:space-between}.rightbar[data-v-03a35715]{font-size:2.5vh;width:100%;height:100%;padding:1.5vh 0}.rightbar .detail[data-v-03a35715]{display:flex;flex-direction:row;flex-wrap:wrap;height:100%}.rightbar .detail .detail-info[data-v-03a35715]{flex-basis:33.3%;line-height:0;display:flex;flex-direction:column;justify-content:center}@media screen and (max-width: 600px){.rightbar[data-v-03a35715]{font-size:3.2vw}.leftbar[data-v-03a35715]{font-size:2vw}.enemy-container[data-v-03a35715]{border-radius:1.6vh}}.scroll[data-v-1626479d]{opacity:.2;transition:opacity .2s linear}.scroll[data-v-1626479d]:hover{opacity:.4}.scroll[data-v-1626479d]:active{opacity:.6}.scroll-main[data-v-1626479d]{display:flex;flex-direction:row;max-width:100%;max-height:100%;justify-content:stretch}.content[data-v-1626479d]{width:100%;position:relative}.main-div[data-v-1626479d]{flex-basis:100%;overflow:hidden}#special-main[data-v-723dadcb]{width:100%;user-select:none;font-size:2em;position:absolute;top:20vh}#critical-main[data-v-723dadcb]{display:flex;flex-direction:row;justify-content:space-between}#critical-des[data-v-723dadcb],.critical[data-v-723dadcb]{font-size:1.6vw;display:flex;flex-direction:column}.critical-atk[data-v-723dadcb]{border-bottom:1px solid #ddd4}.critical[data-v-723dadcb]{border-left:1px solid #ddd4;padding-left:1%}#special-scroll[data-v-723dadcb]{height:40vh}@media screen and (max-width: 600px){#detail-main[data-v-723dadcb]{font-size:3.8vw}#special-scroll[data-v-723dadcb]{height:50vh}#critical-des[data-v-723dadcb],.critical[data-v-723dadcb]{font-size:3.6vw}#special[data-v-723dadcb]{font-size:3.8vw}#special-main[data-v-723dadcb]{top:25vh;width:90vw}}.ant-slider{box-sizing:border-box;color:rgba(0,0,0,.85);font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:relative;height:12px;margin:10px 6px;padding:4px 0;cursor:pointer;touch-action:none}.ant-slider-rail{posiLine truncated
*
* ant-design-vue v3.2.15
*
@@ -1,4 +1,4 @@
var De=Object.defineProperty;var Ee=(t,e,i)=>e in t?De(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Q=(t,e,i)=>(Ee(t,typeof e!="symbol"?e+"":e,i),i);import{l as lodash}from"./common.7ff7c6bc.js";import{m as message,r as ref,d as defineComponent,o as onMounted,a as onUpdated,b as createElementBlock,u as unref,e as onUnmounted,f as openBlock,g as createBaseVNode,t as toDisplayString,h as createVNode,F as Fragment,i as renderList,n as normalizeStyle,j as createTextVNode,_ as __unplugin_components_1,k as renderSlot,w as withCtx,l as createBlock,p as resolveDynamicComponent,q as pushScopeId,s as popScopeId,v as computed,x as watch,y as __unplugin_components_0,z as reactive,A as withModifiers,T as Transition,B as createCommentVNode,L as LeftOutlined,R as RightOutlined,C as __unplugin_components_1$1,S as SortAscendingOutlined,D as SortDescendingOutlined,E as SelectOption,G as __unplugin_components_0$1,H as DoubleLeftOutlined,I as DoubleRightOutlined,J as shallowReactive,K as markRaw,M as DragOutlined,N as createApp}from"./antdv.5500b770.js";function __vite_legacy_guard(){import("data:text/javascript,")}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerpolicy&&(a.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?a.credentials="include":s.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();let pop=[],time=0;function init$b(){return main.replayChecking||core.registerAnimationFrame("pop",!0,popValue),{addPop,pop}}function popValue(t){if(t-time<15)return;let e=core.getContextByName("pop");e||(e=core.createCanvas("pop",0,0,core._PX_,core._PY_,90)),core.clearMap(e);let i=0;pop.forEach(function(n){const s=6-n.frame*.2,a=1;n.py-=s,n.px+=a,n.frame++,n.frame>=60?core.setAlpha(e,3-n.frame/30):core.setAlpha(e,1),core.fillBoldText(e,n.value,n.px,n.py,"#f22","#000","24px normal"),n.frame>=90&&i++}),i>0&&pop.splice(0,i),time=t}function addPop(t,e,i){var n={px:t,py:e,value:i,frame:0};pop.push(n)}var M=Object.defineProperty,E=(t,e,i)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>(E(t,typeof e!="symbol"?e+"":e,i),i);let b=[];const k=t=>{for(const e of b)if(e.status==="running")try{for(const i of e.funcs)i(t-e.startTime)}catch(i){e.destroy(),console.error(i)}requestAnimationFrame(k)};requestAnimationFrame(k);class I{constructor(){o(this,"funcs",[]),o(this,"status","stop"),o(this,"startTime",0),this.status="running",b.push(this),requestAnimationFrame(e=>this.startTime=e)}add(e,i=!1){return i?this.funcs.unshift(e):this.funcs.push(e),this}remove(e){const i=this.funcs.findIndex(n=>n===e);if(i===-1)throw new ReferenceError("You are going to remove nonexistent ticker function.");return this.funcs.splice(i,1),this}clear(){this.funcs=[]}destroy(){this.clear(),this.stop()}stop(){this.status="stop",b=b.filter(e=>e!==this)}}class F{constructor(){o(this,"timing"),o(this,"relation","absolute"),o(this,"easeTime",0),o(this,"applying",{}),o(this,"ticker",new I),o(this,"value",{}),o(this,"listener",{}),this.timing=e=>e}async all(){if(Object.values(this.applying).every(e=>e===!0))throw new ReferenceError("There is no animates to be waited.");await new Promise(e=>{const i=()=>{Object.values(this.applying).every(n=>n===!1)&&(this.unlisten("end",i),e("all animated."))};this.listen("end",i)})}async n(e){const i=Object.values(this.applying).filter(s=>s===!0).length;if(i<e)throw new ReferenceError(`You are trying to wait ${e} animate, but there are only ${i} animate animating.`);let n=0;await new Promise(s=>{const a=()=>{n++,n===e&&(this.unlisten("end",a),s(`${e} animated.`))};this.listen("end",a)})}async w(e){if(this.applying[e]===!1)throw new ReferenceError(`The ${e} animate is not animating.`);await new Promise(i=>{const n=()=>{this.applying[e]===!1&&(this.unlisten("end",n),i(`${e} animated.`))};this.listen("end",n)})}listen(e,i){var n;(n=this.listener)[e]!=null||(n[e]=[]),this.listener[e].push(i)}unlisten(e,i){const n=this.listener[e].findIndex(s=>s===i);if(n===-1)throw new ReferenceError("You are trying to remove a nonexistent listener.");this.listener[e].splice(n,1)}hook(...e){const i=Object.entries(this.listener).filter(n=>e.includes(n[0]));for(const[n,s]of i)for(const a of s)a(this,n)}}function x(t){return t!=null}async function S(t){return new Promise(e=>setTimeout(e,t))}class R extends F{constructor(){super(),o(this,"shakeTiming"),o(this,"path"),o(this,"multiTiming"),o(this,"value",{}),o(this,"size",1),o(this,"angle",0),o(this,"targetValue",{system:{move:[0,0],moveAs:[0,0],rLine truncated
var De=Object.defineProperty;var Ee=(t,e,i)=>e in t?De(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Q=(t,e,i)=>(Ee(t,typeof e!="symbol"?e+"":e,i),i);import{l as lodash}from"./common.7ff7c6bc.js";import{m as message,r as ref,d as defineComponent,o as onMounted,a as onUpdated,b as createElementBlock,u as unref,e as onUnmounted,f as openBlock,g as createBaseVNode,t as toDisplayString,h as createVNode,F as Fragment,i as renderList,n as normalizeStyle,j as createTextVNode,_ as __unplugin_components_1,k as renderSlot,w as withCtx,l as createBlock,p as resolveDynamicComponent,q as pushScopeId,s as popScopeId,v as computed,x as watch,y as __unplugin_components_0,z as reactive,A as withModifiers,T as Transition,B as createCommentVNode,L as LeftOutlined,R as RightOutlined,C as __unplugin_components_1$1,S as SortAscendingOutlined,D as SortDescendingOutlined,E as SelectOption,G as __unplugin_components_0$1,H as DoubleLeftOutlined,I as DoubleRightOutlined,J as shallowReactive,K as markRaw,M as DragOutlined,N as createApp}from"./antdv.5500b770.js";function __vite_legacy_guard(){import("data:text/javascript,")}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function i(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerpolicy&&(a.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?a.credentials="include":s.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=i(s);fetch(s.href,a)}})();let pop=[],time=0;function init$b(){return main.replayChecking||core.registerAnimationFrame("pop",!0,popValue),{addPop,pop}}function popValue(t){if(t-time<15)return;let e=core.getContextByName("pop");e||(e=core.createCanvas("pop",0,0,core._PX_,core._PY_,90)),core.clearMap(e);let i=0;pop.forEach(function(n){const s=6-n.frame*.2,a=1;n.py-=s,n.px+=a,n.frame++,n.frame>=60?core.setAlpha(e,3-n.frame/30):core.setAlpha(e,1),core.fillBoldText(e,n.value,n.px,n.py,"#f22","#000","24px normal"),n.frame>=90&&i++}),i>0&&pop.splice(0,i),time=t}function addPop(t,e,i){var n={px:t,py:e,value:i,frame:0};pop.push(n)}var M=Object.defineProperty,E=(t,e,i)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=(t,e,i)=>(E(t,typeof e!="symbol"?e+"":e,i),i);let b=[];const k=t=>{for(const e of b)if(e.status==="running")try{for(const i of e.funcs)i(t-e.startTime)}catch(i){e.destroy(),console.error(i)}requestAnimationFrame(k)};requestAnimationFrame(k);class I{constructor(){o(this,"funcs",[]),o(this,"status","stop"),o(this,"startTime",0),this.status="running",b.push(this),requestAnimationFrame(e=>this.startTime=e)}add(e,i=!1){return i?this.funcs.unshift(e):this.funcs.push(e),this}remove(e){const i=this.funcs.findIndex(n=>n===e);if(i===-1)throw new ReferenceError("You are going to remove nonexistent ticker function.");return this.funcs.splice(i,1),this}clear(){this.funcs=[]}destroy(){this.clear(),this.stop()}stop(){this.status="stop",b=b.filter(e=>e!==this)}}class F{constructor(){o(this,"timing"),o(this,"relation","absolute"),o(this,"easeTime",0),o(this,"applying",{}),o(this,"ticker",new I),o(this,"value",{}),o(this,"listener",{}),this.timing=e=>e}async all(){if(Object.values(this.applying).every(e=>e===!0))throw new ReferenceError("There is no animates to be waited.");await new Promise(e=>{const i=()=>{Object.values(this.applying).every(n=>n===!1)&&(this.unlisten("end",i),e("all animated."))};this.listen("end",i)})}async n(e){const i=Object.values(this.applying).filter(s=>s===!0).length;if(i<e)throw new ReferenceError(`You are trying to wait ${e} animate, but there are only ${i} animate animating.`);let n=0;await new Promise(s=>{const a=()=>{n++,n===e&&(this.unlisten("end",a),s(`${e} animated.`))};this.listen("end",a)})}async w(e){if(this.applying[e]===!1)throw new ReferenceError(`The ${e} animate is not animating.`);await new Promise(i=>{const n=()=>{this.applying[e]===!1&&(this.unlisten("end",n),i(`${e} animated.`))};this.listen("end",n)})}listen(e,i){var n;(n=this.listener)[e]!=null||(n[e]=[]),this.listener[e].push(i)}unlisten(e,i){const n=this.listener[e].findIndex(s=>s===i);if(n===-1)throw new ReferenceError("You are trying to remove a nonexistent listener.");this.listener[e].splice(n,1)}hook(...e){const i=Object.entries(this.listener).filter(n=>e.includes(n[0]));for(const[n,s]of i)for(const a of s)a(this,n)}}function x(t){return t!=null}async function S(t){return new Promise(e=>setTimeout(e,t))}class R extends F{constructor(){super(),o(this,"shakeTiming"),o(this,"path"),o(this,"multiTiming"),o(this,"value",{}),o(this,"size",1),o(this,"angle",0),o(this,"targetValue",{system:{move:[0,0],moveAs:[0,0],rLine truncated
* @kurkle/color v0.3.1
* https://github.com/kurkle/color#readme
* (c) 2022 Jukka Kurkela
@@ -13,6 +13,6 @@ var De=Object.defineProperty;var Ee=(t,e,i)=>e in t?De(t,e,{enumerable:!0,config
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,i,n,s){const a=i.listeners[s],r=i.duration;a.forEach(l=>l({chart:e,initial:i.initial,numSteps:r,currentStep:Math.min(n-i.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let i=0;this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;const a=n.items;let r=a.length-1,l=!1,c;for(;r>=0;--r)c=a[r],c._active?(c._total>n.duration&&(n.duration=c._total),c.tick(e),l=!0):(a[r]=a[a.length-1],a.pop());l&&(s.draw(),this._notify(s,n,e,"progress")),a.length||(n.running=!1,this._notify(s,n,e,"complete"),n.initial=!1),i+=a.length}),this._lastDate=e,i===0&&(this._running=!1)}_getAnims(e){const i=this._charts;let n=i.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(e,n)),n}listen(e,i,n){this._getAnims(e).listeners[i].push(n)}add(e,i){!i||!i.length||this._getAnims(e).items.push(...i)}has(e){return this._getAnims(e).items.length>0}start(e){const i=this._charts.get(e);!i||(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const i=this._charts.get(e);return!(!i||!i.running||!i.items.length)}stop(e){const i=this._charts.get(e);if(!i||!i.items.length)return;const n=i.items;let s=n.length-1;for(;s>=0;--s)n[s].cancel();i.items=[],this._notify(e,i,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const n=color(t||transparent),s=n.valid&&color(e||transparent);return s&&s.valid?s.mix(n,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class Animation{constructor(e,i,n,s){const a=i[n];s=resolve([e.to,s,a,e.from]);const r=resolve([e.from,a,s]);this._active=!0,this._fn=e.fn||interpolators[e.type||typeof r],this._easing=effects[e.easing]||effects.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=i,this._prop=n,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(e,i,n){if(this._active){this._notify(!1);const s=this._target[this._prop],a=n-this._start,r=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=resolve([e.to,i,s,e.from]),this._from=resolve([e.from,s,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const i=e-this._start,n=this._duration,s=this._prop,a=this._from,r=this._loop,l=this._to;let c;if(this._active=a!==l&&(r||i<n),!this._active){this._target[s]=l,this._notify(!0);return}if(i<0){this._target[s]=a;return}c=i/n%2,c=r&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[s]=this._fn(a,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((i,n)=>{e.push({res:i,rej:n})})}_notify(e){const i=e?"res":"rej",n=this._promises||[];for(let s=0;s<n.length;s++)n[s][i]()}}class Animations{constructor(e,i){this._chart=e,this._properties=new Map,this.configure(i)}configure(e){if(!isObject(e))return;const i=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!isObject(a))return;const r={};for(const l of i)r[l]=a[l];(isArray(a.properties)&&a.properties||[s]).forEach(l=>{(l===s||!n.has(l))&&n.set(l,r)})})}_animateOptions(e,i){const n=i.options,s=resolveTargetOptions(e,n);if(!s)return[];const a=this._createAnimations(s,n);return n.$shared&&awaitAll(e.options.$animations,n).then(()=>{e.options=n},()=>{}),a}_createAnimations(e,i){const n=this._properties,s=[],a=e.$animations||(e.$animations={}),r=Object.keys(i),l=Date.now();let c;for(c=r.length-1;c>=0;--c){const d=r[c];if(d.charAt(0)==="$")continue;if(d==="options"){s.push(...this._animateOptions(e,i));continue}const u=i[d];let h=a[d];const f=n.get(d);if(h)if(f&&h.active()){h.update(f,u,l);continue}else h.cancel();if(!f||!f.duration){e[d]=u;continue}a[d]=h=new Animation(f,e,d,u),s.push(h)}return s}update(e,i){if(this._properties.size===0){Object.assign(e,i);return}const n=this._createAnimations(e,i);if(n.length)return animator.add(this._chart,n),!0}}function awaitAll(t,e){const i=[],n=Object.keys(e);for(let s=0;s<n.length;s++){const a=t[n[s]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}function resolveTargetOptions(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function scaleClip(t,e){const i=t&&t.options||{},n=i.reverse,s=i.min===void 0?e:0,a=i.max===void 0?e:0;return{start:n?a:s,end:n?s:a}}function defaultClip(t,e,i){if(i===!1)return!1;const n=scaleClip(t,i),s=scaleClip(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}Line truncated
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,i,n,s){const a=i.listeners[s],r=i.duration;a.forEach(l=>l({chart:e,initial:i.initial,numSteps:r,currentStep:Math.min(n-i.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let i=0;this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;const a=n.items;let r=a.length-1,l=!1,c;for(;r>=0;--r)c=a[r],c._active?(c._total>n.duration&&(n.duration=c._total),c.tick(e),l=!0):(a[r]=a[a.length-1],a.pop());l&&(s.draw(),this._notify(s,n,e,"progress")),a.length||(n.running=!1,this._notify(s,n,e,"complete"),n.initial=!1),i+=a.length}),this._lastDate=e,i===0&&(this._running=!1)}_getAnims(e){const i=this._charts;let n=i.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(e,n)),n}listen(e,i,n){this._getAnims(e).listeners[i].push(n)}add(e,i){!i||!i.length||this._getAnims(e).items.push(...i)}has(e){return this._getAnims(e).items.length>0}start(e){const i=this._charts.get(e);!i||(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const i=this._charts.get(e);return!(!i||!i.running||!i.items.length)}stop(e){const i=this._charts.get(e);if(!i||!i.items.length)return;const n=i.items;let s=n.length-1;for(;s>=0;--s)n[s].cancel();i.items=[],this._notify(e,i,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const n=color(t||transparent),s=n.valid&&color(e||transparent);return s&&s.valid?s.mix(n,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class Animation{constructor(e,i,n,s){const a=i[n];s=resolve([e.to,s,a,e.from]);const r=resolve([e.from,a,s]);this._active=!0,this._fn=e.fn||interpolators[e.type||typeof r],this._easing=effects[e.easing]||effects.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=i,this._prop=n,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(e,i,n){if(this._active){this._notify(!1);const s=this._target[this._prop],a=n-this._start,r=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=resolve([e.to,i,s,e.from]),this._from=resolve([e.from,s,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const i=e-this._start,n=this._duration,s=this._prop,a=this._from,r=this._loop,l=this._to;let c;if(this._active=a!==l&&(r||i<n),!this._active){this._target[s]=l,this._notify(!0);return}if(i<0){this._target[s]=a;return}c=i/n%2,c=r&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[s]=this._fn(a,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((i,n)=>{e.push({res:i,rej:n})})}_notify(e){const i=e?"res":"rej",n=this._promises||[];for(let s=0;s<n.length;s++)n[s][i]()}}class Animations{constructor(e,i){this._chart=e,this._properties=new Map,this.configure(i)}configure(e){if(!isObject(e))return;const i=Object.keys(defaults.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!isObject(a))return;const r={};for(const l of i)r[l]=a[l];(isArray(a.properties)&&a.properties||[s]).forEach(l=>{(l===s||!n.has(l))&&n.set(l,r)})})}_animateOptions(e,i){const n=i.options,s=resolveTargetOptions(e,n);if(!s)return[];const a=this._createAnimations(s,n);return n.$shared&&awaitAll(e.options.$animations,n).then(()=>{e.options=n},()=>{}),a}_createAnimations(e,i){const n=this._properties,s=[],a=e.$animations||(e.$animations={}),r=Object.keys(i),l=Date.now();let c;for(c=r.length-1;c>=0;--c){const d=r[c];if(d.charAt(0)==="$")continue;if(d==="options"){s.push(...this._animateOptions(e,i));continue}const u=i[d];let h=a[d];const f=n.get(d);if(h)if(f&&h.active()){h.update(f,u,l);continue}else h.cancel();if(!f||!f.duration){e[d]=u;continue}a[d]=h=new Animation(f,e,d,u),s.push(h)}return s}update(e,i){if(this._properties.size===0){Object.assign(e,i);return}const n=this._createAnimations(e,i);if(n.length)return animator.add(this._chart,n),!0}}function awaitAll(t,e){const i=[],n=Object.keys(e);for(let s=0;s<n.length;s++){const a=t[n[s]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}function resolveTargetOptions(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function scaleClip(t,e){const i=t&&t.options||{},n=i.reverse,s=i.min===void 0?e:0,a=i.max===void 0?e:0;return{start:n?a:s,end:n?s:a}}function defaultClip(t,e,i){if(i===!1)return!1;const n=scaleClip(t,i),s=scaleClip(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}Line truncated
`)>-1?t.split(`
`):t}function createTooltipItem(t,e){const{element:i,datasetIndex:n,index:s}=e,a=t.getDatasetMeta(n).controller,{label:r,value:l}=a.getLabelAndValue(s);return{chart:t,label:r,parsed:a.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:l,dataset:a.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function getTooltipSize(t,e){const i=t.chart.ctx,{body:n,footer:s,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=toFont(e.bodyFont),d=toFont(e.titleFont),u=toFont(e.footerFont),h=a.length,f=s.length,g=n.length,m=toPadding(e.padding);let _=m.height,w=0,B=n.reduce((L,P)=>L+P.before.length+P.lines.length+P.after.length,0);if(B+=t.beforeBody.length+t.afterBody.length,h&&(_+=h*d.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),B){const L=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;_+=g*L+(B-g)*c.lineHeight+(B-1)*e.bodySpacing}f&&(_+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let D=0;const N=function(L){w=Math.max(w,i.measureText(L).width+D)};return i.save(),i.font=d.string,each(t.title,N),i.font=c.string,each(t.beforeBody.concat(t.afterBody),N),D=e.displayColors?r+2+e.boxPadding:0,each(n,L=>{each(L.before,N),each(L.lines,N),each(L.after,N)}),D=0,i.font=u.string,each(t.footer,N),i.restore(),w+=m.width,{width:w,height:_}}function determineYAlign(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}function doesNotFitWithAlign(t,e,i,n){const{x:s,width:a}=n,r=i.caretSize+i.caretPadding;if(t==="left"&&s+a+r>e.width||t==="right"&&s-a-r<0)return!0}function determineXAlign(t,e,i,n){const{x:s,width:a}=i,{width:r,chartArea:{left:l,right:c}}=t;let d="center";return n==="center"?d=s<=(l+c)/2?"left":"right":s<=a/2?d="left":s>=r-a/2&&(d="right"),doesNotFitWithAlign(d,t,e,i)&&(d="center"),d}function determineAlignment(t,e,i){const n=i.yAlign||e.yAlign||determineYAlign(t,i);return{xAlign:i.xAlign||e.xAlign||determineXAlign(t,e,i,n),yAlign:n}}function alignX(t,e){let{x:i,width:n}=t;return e==="right"?i-=n:e==="center"&&(i-=n/2),i}function alignY(t,e,i){let{y:n,height:s}=t;return e==="top"?n+=i:e==="bottom"?n-=s+i:n-=s/2,n}function getBackgroundPoint(t,e,i,n){const{caretSize:s,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,d=s+a,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:g}=toTRBLCorners(r);let m=alignX(e,l);const _=alignY(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,f)+s:l==="right"&&(m+=Math.max(h,g)+s),{x:_limitValue(m,0,n.width-e.width),y:_limitValue(_,0,n.height-e.height)}}function getAlignedX(t,e,i){const n=toPadding(i.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function getBeforeAfterBodyLines(t){return pushOrConcat([],splitNewlines(t))}function createTooltipContext(t,e,i){return createContext(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function overrideCallbacks(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const defaultCallbacks={beforeTitle:noop,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:noop,beforeBody:noop,beforeLabel:noop,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return isNullOrUndef(i)||(e+=i),e},labelColor(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:noop,afterBody:noop,beforeFooter:noop,footer:noop,afterFooter:noop};function invokeCallbackWithFallback(t,e,i,n){const s=t[e].call(i,n);return typeof s>"u"?defaultCallbacks[e].call(i,n):s}class Tooltip extends Element{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&i.options.animation&&n Line truncated
`):t}function createTooltipItem(t,e){const{element:i,datasetIndex:n,index:s}=e,a=t.getDatasetMeta(n).controller,{label:r,value:l}=a.getLabelAndValue(s);return{chart:t,label:r,parsed:a.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:l,dataset:a.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function getTooltipSize(t,e){const i=t.chart.ctx,{body:n,footer:s,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=toFont(e.bodyFont),d=toFont(e.titleFont),u=toFont(e.footerFont),h=a.length,f=s.length,g=n.length,m=toPadding(e.padding);let _=m.height,w=0,B=n.reduce((L,P)=>L+P.before.length+P.lines.length+P.after.length,0);if(B+=t.beforeBody.length+t.afterBody.length,h&&(_+=h*d.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),B){const L=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;_+=g*L+(B-g)*c.lineHeight+(B-1)*e.bodySpacing}f&&(_+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let D=0;const N=function(L){w=Math.max(w,i.measureText(L).width+D)};return i.save(),i.font=d.string,each(t.title,N),i.font=c.string,each(t.beforeBody.concat(t.afterBody),N),D=e.displayColors?r+2+e.boxPadding:0,each(n,L=>{each(L.before,N),each(L.lines,N),each(L.after,N)}),D=0,i.font=u.string,each(t.footer,N),i.restore(),w+=m.width,{width:w,height:_}}function determineYAlign(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}function doesNotFitWithAlign(t,e,i,n){const{x:s,width:a}=n,r=i.caretSize+i.caretPadding;if(t==="left"&&s+a+r>e.width||t==="right"&&s-a-r<0)return!0}function determineXAlign(t,e,i,n){const{x:s,width:a}=i,{width:r,chartArea:{left:l,right:c}}=t;let d="center";return n==="center"?d=s<=(l+c)/2?"left":"right":s<=a/2?d="left":s>=r-a/2&&(d="right"),doesNotFitWithAlign(d,t,e,i)&&(d="center"),d}function determineAlignment(t,e,i){const n=i.yAlign||e.yAlign||determineYAlign(t,i);return{xAlign:i.xAlign||e.xAlign||determineXAlign(t,e,i,n),yAlign:n}}function alignX(t,e){let{x:i,width:n}=t;return e==="right"?i-=n:e==="center"&&(i-=n/2),i}function alignY(t,e,i){let{y:n,height:s}=t;return e==="top"?n+=i:e==="bottom"?n-=s+i:n-=s/2,n}function getBackgroundPoint(t,e,i,n){const{caretSize:s,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,d=s+a,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:g}=toTRBLCorners(r);let m=alignX(e,l);const _=alignY(e,c,d);return c==="center"?l==="left"?m+=d:l==="right"&&(m-=d):l==="left"?m-=Math.max(u,f)+s:l==="right"&&(m+=Math.max(h,g)+s),{x:_limitValue(m,0,n.width-e.width),y:_limitValue(_,0,n.height-e.height)}}function getAlignedX(t,e,i){const n=toPadding(i.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function getBeforeAfterBodyLines(t){return pushOrConcat([],splitNewlines(t))}function createTooltipContext(t,e,i){return createContext(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function overrideCallbacks(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const defaultCallbacks={beforeTitle:noop,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:noop,beforeBody:noop,beforeLabel:noop,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return isNullOrUndef(i)||(e+=i),e},labelColor(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const i=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:noop,afterBody:noop,beforeFooter:noop,footer:noop,afterFooter:noop};function invokeCallbackWithFallback(t,e,i,n){const s=t[e].call(i,n);return typeof s>"u"?defaultCallbacks[e].call(i,n):s}class Tooltip extends Element{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&i.options.animation&&n Line truncated
+3 -3
View File
@@ -18,10 +18,10 @@
<meta name="x5-fullscreen" content="true">
<meta name="x5-page-mode" content="app">
<link id="mota-css" type='text/css' href='/HumanBreak/styles.css' rel='stylesheet'>
<script type="module" crossorigin src="/HumanBreak/assets/index.e842c75a.js"></script>
<script type="module" crossorigin src="/HumanBreak/assets/index.1ffee200.js"></script>
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/antdv.5500b770.js">
<link rel="modulepreload" crossorigin href="/HumanBreak/assets/common.7ff7c6bc.js">
<link rel="stylesheet" href="/HumanBreak/assets/index.b63f6c4b.css">
<link rel="stylesheet" href="/HumanBreak/assets/index.0260879d.css">
<script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
@@ -215,7 +215,7 @@
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="/HumanBreak/assets/polyfills-legacy.fcbd97b9.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy.d8c1fc77.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/HumanBreak/assets/index-legacy.d2b0fb35.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
+7 -11
View File
@@ -1030,7 +1030,10 @@ control.prototype.tryMoveDirectly = function (destX, destY) {
if (dir && !core.inArray(canMoveArray[dx][dy], dir)) continue;
if (canMoveDirectlyArray[i] < 0) continue;
if (core.control.moveDirectly(dx, dy, canMoveDirectlyArray[i])) {
if (dir) core.moveHero(dir, function () {});
if (dir) {
console.log(dir);
core.moveHero(dir, function () {});
}
return true;
}
}
@@ -4288,19 +4291,12 @@ control.prototype._resize_canvas = function (obj) {
// resize bigmap
core.bigmap.canvas.forEach(function (cn) {
var ratio = core.canvas[cn].canvas.hasAttribute('isHD')
? core.domStyle.ratio
? core.domStyle.scale * devicePixelRatio
: 1;
core.canvas[cn].canvas.style.width =
(core.canvas[cn].canvas.width /
devicePixelRatio /
core.domStyle.ratio) *
core.domStyle.scale +
'px';
(core.canvas[cn].canvas.width / ratio) * core.domStyle.scale + 'px';
core.canvas[cn].canvas.style.height =
(core.canvas[cn].canvas.height /
devicePixelRatio /
core.domStyle.ratio) *
core.domStyle.scale +
(core.canvas[cn].canvas.height / ratio) * core.domStyle.scale +
'px';
});
// resize dynamic canvas
+12 -6
View File
@@ -108,7 +108,8 @@ function core() {
availableScale: [],
isVertical: false,
showStatusBar: true,
toolbarBtn: false
toolbarBtn: false,
hdCanvas: ['damage', 'ui', 'data']
};
this.bigmap = {
canvas: ['bg', 'event', 'event2', 'fg', 'damage'],
@@ -294,11 +295,16 @@ core.prototype.init = function (coreData, callback) {
var b = main.mode == 'editor';
// 初始化画布
for (var name in core.canvas) {
core.maps._setHDCanvasSize(
core.canvas[name],
b ? core.__PIXELS__ : core._PX_,
b ? core.__PIXELS__ : core._PY_
);
if (core.domStyle.hdCanvas.includes(name))
core.maps._setHDCanvasSize(
core.canvas[name],
b ? core.__PIXELS__ : core._PX_,
b ? core.__PIXELS__ : core._PY_
);
else {
core.canvas[name].canvas.width = b ? core.__PIXELS__ : core._PX_;
core.canvas[name].canvas.height = b ? core.__PIXELS__ : core._PY_;
}
}
core.loader._load(function () {
+27 -111
View File
@@ -208,9 +208,9 @@ enemys.prototype.canBattle = function (enemy, x, y, floorId) {
return damage != null && damage < core.status.hero.hp;
};
enemys.prototype.getDamageString = function (enemy, x, y, floorId) {
enemys.prototype.getDamageString = function (enemy, x, y, floorId, hero) {
if (typeof enemy == 'string') enemy = core.material.enemys[enemy];
var damage = this.getDamage(enemy, x, y, floorId);
var damage = this.getDamage(enemy, x, y, floorId, hero);
var color = '#000000';
@@ -234,7 +234,7 @@ enemys.prototype.getDamageString = function (enemy, x, y, floorId) {
};
////// 接下来N个临界值和临界减伤计算 //////
enemys.prototype.nextCriticals = function (enemy, number, x, y, floorId) {
enemys.prototype.nextCriticals = function (enemy, number, x, y, floorId, hero) {
if (typeof enemy == 'string') enemy = core.material.enemys[enemy];
number = number || 1;
@@ -246,7 +246,7 @@ enemys.prototype.nextCriticals = function (enemy, number, x, y, floorId) {
floorId
);
if (specialCriticals != null) return specialCriticals;
var info = this.getDamageInfo(enemy, null, x, y, floorId);
var info = this.getDamageInfo(enemy, hero, x, y, floorId);
if (info == null) {
// 如果未破防...
var overAtk = this._nextCriticals_overAtk(enemy, x, y, floorId);
@@ -268,12 +268,19 @@ enemys.prototype.nextCriticals = function (enemy, number, x, y, floorId) {
number,
x,
y,
floorId
floorId,
hero
);
};
/// 未破防临界采用二分计算
enemys.prototype._nextCriticals_overAtk = function (enemy, x, y, floorId) {
enemys.prototype._nextCriticals_overAtk = function (
enemy,
x,
y,
floorId,
hero
) {
var calNext = function (currAtk, maxAtk) {
var start = currAtk,
end = maxAtk;
@@ -284,7 +291,7 @@ enemys.prototype._nextCriticals_overAtk = function (enemy, x, y, floorId) {
if (mid - start > end - mid) mid--;
var nextInfo = core.enemys.getDamageInfo(
enemy,
{ atk: mid },
{ atk: mid, x: hero?.x, y: hero?.y },
x,
y,
floorId
@@ -294,17 +301,17 @@ enemys.prototype._nextCriticals_overAtk = function (enemy, x, y, floorId) {
}
var nextInfo = core.enemys.getDamageInfo(
enemy,
{ atk: start },
{ atk: start, x: hero?.x, y: hero?.y },
x,
y,
floorId
);
return nextInfo == null
? null
: [start - core.getStatus('atk'), nextInfo];
: [start - core.getStatusOrDefault(hero, 'atk'), nextInfo];
};
return calNext(
core.getStatus('atk') + 1,
core.getStatusOrDefault(hero, 'atk') + 1,
core.getEnemyValue(enemy, 'hp', x, y, floorId) +
core.getEnemyValue(enemy, 'def', x, y, floorId)
);
@@ -322,48 +329,17 @@ enemys.prototype._nextCriticals_special = function (
return null;
};
enemys.prototype._nextCriticals_useLoop = function (
enemy,
info,
number,
x,
y,
floorId
) {
var mon_hp = info.mon_hp,
hero_atk = core.getStatus('atk'),
mon_def = info.mon_def,
pre = info.damage;
var list = [];
var start_atk = hero_atk;
if (info.__over__) {
start_atk += info.__overAtk__;
list.push([info.__overAtk__, -info.damage]);
}
for (var atk = start_atk + 1; atk <= mon_hp + mon_def; atk++) {
var nextInfo = this.getDamageInfo(enemy, { atk: atk }, x, y, floorId);
if (nextInfo == null || typeof nextInfo == 'number') break;
if (pre > nextInfo.damage) {
pre = nextInfo.damage;
list.push([atk - hero_atk, info.damage - nextInfo.damage]);
if (nextInfo.damage <= 0 && !core.flags.enableNegativeDamage) break;
if (list.length >= number) break;
}
}
if (list.length == 0) list.push([0, 0]);
return list;
};
enemys.prototype._nextCriticals_useBinarySearch = function (
enemy,
info,
number,
x,
y,
floorId
floorId,
hero
) {
var mon_hp = info.mon_hp,
hero_atk = core.getStatus('atk'),
hero_atk = core.getStatusOrDefault(hero, 'atk'),
mon_def = info.mon_def,
pre = info.damage;
var list = [];
@@ -382,7 +358,7 @@ enemys.prototype._nextCriticals_useBinarySearch = function (
if (mid - start > end - mid) mid--;
var nextInfo = core.enemys.getDamageInfo(
enemy,
{ atk: mid },
{ atk: mid, x: hero?.x, y: hero?.y },
x,
y,
floorId
@@ -393,7 +369,7 @@ enemys.prototype._nextCriticals_useBinarySearch = function (
}
var nextInfo = core.enemys.getDamageInfo(
enemy,
{ atk: start },
{ atk: start, x: hero?.x, y: hero?.y },
x,
y,
floorId
@@ -418,73 +394,14 @@ enemys.prototype._nextCriticals_useBinarySearch = function (
return list;
};
enemys.prototype._nextCriticals_useTurn = function (
enemy,
info,
number,
x,
y,
floorId
) {
var mon_hp = info.mon_hp,
hero_atk = core.getStatus('atk'),
mon_def = info.mon_def,
turn = info.turn;
// ------ 超大回合数强制使用二分算临界
// 以避免1攻10e回合,2攻5e回合导致下述循环卡死问题
if (turn >= 1e6) {
// 100w回合以上强制二分计算临界
return this._nextCriticals_useBinarySearch(
enemy,
info,
number,
x,
y,
floorId
);
}
var list = [],
pre = null;
var start_atk = hero_atk;
if (info.__over__) {
start_atk += info.__overAtk__;
list.push([info.__overAtk__, -info.damage]);
}
for (var t = turn - 1; t >= 1; t--) {
var nextAtk = Math.ceil(mon_hp / t) + mon_def;
// 装备提升比例的计算临界
nextAtk = Math.ceil(nextAtk / core.getBuff('atk'));
if (nextAtk <= start_atk) break;
if (nextAtk != pre) {
var nextInfo = this.getDamageInfo(
enemy,
{ atk: nextAtk },
x,
y,
floorId
);
if (nextInfo == null || typeof nextInfo == 'number') break;
list.push([
nextAtk - hero_atk,
Math.floor(info.damage - nextInfo.damage)
]);
if (nextInfo.damage <= 0 && !core.flags.enableNegativeDamage) break;
pre = nextAtk;
}
if (list.length >= number) break;
}
if (list.length == 0) list.push([0, 0]);
return list;
};
////// N防减伤计算 //////
enemys.prototype.getDefDamage = function (enemy, k, x, y, floorId) {
enemys.prototype.getDefDamage = function (enemy, k, x, y, floorId, hero) {
if (typeof enemy == 'string') enemy = core.material.enemys[enemy];
k = k || 1;
var nowDamage = this._getDamage(enemy, null, x, y, floorId);
var nowDamage = this._getDamage(enemy, hero, x, y, floorId);
var nextDamage = this._getDamage(
enemy,
{ def: core.getStatus('def') + k },
Object.assign({}, hero ?? {}, { def: core.getStatus('def') + k }),
x,
y,
floorId
@@ -508,8 +425,8 @@ enemys.prototype.getDamageInfo = function (enemy, hero, x, y, floorId) {
};
////// 获得在某个勇士属性下怪物伤害 //////
enemys.prototype.getDamage = function (enemy, x, y, floorId) {
return this._getDamage(enemy, null, x, y, floorId);
enemys.prototype.getDamage = function (enemy, x, y, floorId, hero) {
return this._getDamage(enemy, hero, x, y, floorId);
};
enemys.prototype._getDamage = function (enemy, hero, x, y, floorId) {
@@ -517,7 +434,6 @@ enemys.prototype._getDamage = function (enemy, hero, x, y, floorId) {
if (typeof enemy == 'string') enemy = core.material.enemys[enemy];
if (enemy == null) return null;
if (x === 9 && y === 3) debugger;
var info = this.getDamageInfo(enemy, hero, x, y, floorId);
if (info == null) return null;
if (typeof info == 'number') return info;
+18 -5
View File
@@ -634,7 +634,12 @@ maps.prototype.resizeMap = function (floorId) {
var height = core.bigmap.v2 ? core._PY_ + 64 : core.bigmap.height * 32;
core.bigmap.canvas.forEach(function (cn) {
core.maps._setHDCanvasSize(core.canvas[cn], width, height);
if (core.domStyle.hdCanvas.includes(cn))
core.maps._setHDCanvasSize(core.canvas[cn], width, height);
else {
core.canvas[cn].canvas.width = width;
core.canvas[cn].canvas.height = height;
}
core.canvas[cn].canvas.style.width = width * core.domStyle.scale + 'px';
core.canvas[cn].canvas.style.height =
@@ -2581,7 +2586,7 @@ maps.prototype._drawThumbnail_drawTempCanvas = function (
tempCanvas.canvas.height = height * 32;
tempCanvas.canvas.removeAttribute('isHD');
} else {
core.resizeCanvas(tempCanvas, width * 32, height * 32, false, true);
core.maps._setHDCanvasSize(tempCanvas, width * 32, height * 32);
}
} else if (width * height > core.bigmap.threshold) {
options.v2 = true;
@@ -2589,7 +2594,7 @@ maps.prototype._drawThumbnail_drawTempCanvas = function (
tempCanvas.canvas.width = core._PX_;
tempCanvas.canvas.height = core._PY_;
tempCanvas.canvas.removeAttribute('isHD');
} else core.resizeCanvas(tempCanvas, core._PX_, core._PY_);
} else core.maps._setHDCanvasSize(tempCanvas, width * 32, height * 32);
var centerX = options.centerX,
centerY = options.centerY;
if (centerX == null) centerX = Math.floor(width / 2);
@@ -2611,8 +2616,7 @@ maps.prototype._drawThumbnail_drawTempCanvas = function (
tempCanvas.canvas.width = width * 32;
tempCanvas.canvas.height = height * 32;
tempCanvas.canvas.removeAttribute('isHD');
} else
core.resizeCanvas(tempCanvas, width * 32, height * 32, false, true);
} else core.maps._setHDCanvasSize(tempCanvas, width * 32, height * 32);
}
options.ctx = tempCanvas;
@@ -2695,6 +2699,10 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) {
if (centerY == null) centerY = Math.floor(height / 2);
var tempCanvas = core.bigmap.tempCanvas;
if (!core.getLocalStorage('antiAliasing')) {
ctx.imageSmoothingEnabled = false;
}
if (options.inFlyMap) {
ctx.drawImage(
tempCanvas.canvas,
@@ -2707,6 +2715,7 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) {
options.w,
options.h
);
ctx.imageSmoothingEnabled = true;
return;
}
@@ -2752,6 +2761,7 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) {
realHeight
);
}
ctx.imageSmoothingEnabled = true;
} else {
// 只绘制可见窗口
var pw = core._PX_,
@@ -2793,6 +2803,7 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) {
h
);
}
ctx.imageSmoothingEnabled = true;
} else {
var offsetX = core.clamp(centerX - hw, 0, width - W),
offsetY = core.clamp(centerY - hh, 0, height - H);
@@ -2809,6 +2820,7 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) {
w,
h
);
ctx.imageSmoothingEnabled = true;
return;
}
core.drawImage(
@@ -2823,6 +2835,7 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) {
w,
h
);
ctx.imageSmoothingEnabled = true;
}
}
};
+2 -2
View File
@@ -4203,12 +4203,12 @@ ui.prototype.resizeCanvas = function (
var ctx = core.getContextByName(name);
if (!ctx) return null;
if (width != null) {
if (!styleOnly)
if (!styleOnly && ctx.canvas.hasAttribute('isHD'))
core.maps._setHDCanvasSize(ctx, width, null, isTempCanvas);
ctx.canvas.style.width = width * core.domStyle.scale + 'px';
}
if (height != null) {
if (!styleOnly)
if (!styleOnly && ctx.canvas.hasAttribute('isHD'))
core.maps._setHDCanvasSize(ctx, null, height, isTempCanvas);
ctx.canvas.style.height = height * core.domStyle.scale + 'px';
}
+9
View File
@@ -220,6 +220,15 @@ function main() {
}
main.prototype.init = function (mode, callback) {
try {
var a = {};
var b = {};
new Proxy(a, b);
} catch (e) {
alert('浏览器版本过低,无法游玩本塔!');
return;
}
for (var i = 0; i < main.dom.gameCanvas.length; i++) {
main.canvas[main.dom.gameCanvas[i].id] =
main.dom.gameCanvas[i].getContext('2d');
+3 -3
View File
@@ -34,7 +34,7 @@ main.floors.MT35=
"你来这干什么",
{
"type": "if",
"condition": "core.getBlock(10,1)",
"condition": "(core.getBlockId(10,1)!=='none')",
"true": [
"把怪踢到这了,想打?",
"没门!",
@@ -60,7 +60,7 @@ main.floors.MT35=
"你来这干什么",
{
"type": "if",
"condition": "core.getBlock(4,1)",
"condition": "(core.getBlockId(4,1)!=='none')",
"true": [
"把怪踢到这了,想打?",
"没门!",
@@ -82,7 +82,7 @@ main.floors.MT35=
"7,0": [
{
"type": "if",
"condition": "flag:inWinter2===true",
"condition": "(flag:inWinter2===true)",
"true": [
{
"type": "changeFloor",
+94 -26
View File
@@ -1,37 +1,85 @@
main.floors.MT36=
{
"floorId": "MT36",
"title": "冰封雪原",
"name": "冰封雪原",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T580",
"bgm": "winter.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
"floorId": "MT36",
"title": "冰封雪原",
"name": "冰封雪原",
"width": 15,
"height": 15,
"canFlyTo": true,
"canFlyFrom": true,
"canUseQuickShop": true,
"cannotViewMap": false,
"images": [],
"ratio": 8,
"defaultGround": "T580",
"bgm": "winter.mp3",
"firstArrive": [],
"eachArrive": [],
"parallelDo": "",
"events": {
"7,14": [
{
"type": "changeFloor",
"floorId": "MT35",
"loc": [
7,
0
]
}
],
"6,14": [
"在本地图的右方,会看到一个棕色的线,这是由于抗锯齿出现的像素错误。这里关闭抗锯齿即可解决(默认是关闭的)。"
]
},
"changeFloor": {},
"beforeBattle": {},
"afterBattle": {},
"afterGetItem": {},
"afterOpenDoor": {},
"autoEvent": {},
"cannotMove": {},
"cannotMoveIn": {},
"map": [
[ 0, 0, 0,604,604,604,604,604,604, 91,604, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,604, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70176,70177,70177,70177,70177],
[604, 0, 0, 0, 0, 0, 0, 0, 0, 0,70184,70185,70185,70185, 94],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70208,70209,70209,70209,70209],
[604, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[587, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[587, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[584,584,584,584,584,584,584,584,584,584,584, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[585,585,585,585,585,585,129, 0,585,585,585,585,585,585,585]
],
"bgmap": [
[70073,70073,70073,70056, 0, 0, 0, 0, 0, 0,70058,70086,70086,70086,70086],
[70073,70073,70073,70056, 0, 0, 0, 0, 0, 0,70058,70094,70094,70094,70094],
[70081,70081,70081,70056, 0, 0, 0, 0, 0, 0,70058,70102,70102,70102,70102],
[ 0, 0, 0,70056, 0, 0, 0, 0, 0, 0, 0,70110,70110,70110,70110],
[ 0, 0, 0,70056, 0, 0, 0, 0, 0, 0,70058,70118,70118,70118,70118],
[ 0, 0, 0,70056, 0, 0, 0, 0, 0, 0,70058,70067,70067,70067,70067],
[70049,70049,70049,70051, 0, 0, 0, 0, 0, 0,70058,70067,70067,70067,70067],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70052,70067,70067,70067,70067],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70058],
[70065,70065,70065,70065,70065,70065,70065,70065,70065,70065,70065,70059, 0, 0,70058],
[70070,70070,70070,70070,70070,70070,70070,70070,70070,70070,70070,70056, 0, 0,70058],
[70081,70081,70081,70081,70081,70081,70081,70081,70081,70081,70081,70056, 0, 0,70058],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70051, 0, 0,70058],
[70056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70058],
[70056, 0, 0, 0, 0, 0, 0, 93, 0, 0, 0, 0, 0, 0,70058]
],
"fgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70200,70201,70201,70201,70201],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
@@ -42,4 +90,24 @@ main.floors.MT36=
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"bg2map": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70184,70185,70185,70185,70185],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70192,70193,70193,70193,70193],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70049,70049,70049,70050],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[70048,70049,70049,70049,70049,70049,70049,70049,70049,70049,70049, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
],
"fg2map": [
]
}
Binary file not shown.
+69 -139
View File
@@ -336,8 +336,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
var equipId = core.getEquip(0);
if (equipId && (core.material.items[equipId].equip || {}).animate)
animate = core.material.items[equipId].equip.animate;
// 你也可以在这里根据自己的需要,比如enemyId或special或flag来修改播放的动画效果
// if (enemyId == '...') animate = '...';
// 检查该动画是否存在SE,如果不存在则使用默认音效
if (!(core.material.animates[animate] || {}).se)
@@ -348,11 +346,16 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
else core.drawHeroAnimate(animate);
// 获得战斗伤害信息
var damageInfo = core.getDamageInfo(enemyId, null, x, y) || {};
// 注意这里勇士坐标要传入当前勇士坐标,不然会默认取伤害最低的地方打怪
const damageInfo =
core.getDamageInfo(
enemyId,
{ x: core.status.hero.loc.x, y: core.status.hero.loc.y },
x,
y
) ?? {};
// 战斗伤害
var damage = damageInfo.damage;
// 当前战斗回合数,可用于战后所需的判定
var turn = damageInfo.turn;
const damage = damageInfo.damage;
// 判定是否致死
if (damage == null || damage >= core.status.hero.hp) {
core.status.hero.hp = 0;
@@ -367,7 +370,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
core.status.hero.statistics.battle++;
// 智慧之源
if (core.hasSpecial(special, 14) && flags.hard == 2) {
if (core.hasSpecial(special, 14) && flags.hard === 2) {
core.addFlag(
'inte_' + floorId,
Math.ceil((core.status.hero.mdef / 10) * 0.3) * 10
@@ -390,32 +393,18 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
core.declineStudiedSkill();
}
// 计算当前怪物的支援怪物
var guards = [];
if (x != null && y != null) {
guards = core.getFlag('__guards__' + x + '_' + y, []);
core.removeFlag('__guards__' + x + '_' + y);
}
// 获得金币
var money = guards.reduce(function (curr, g) {
return curr + core.material.enemys[g[2]].money;
}, enemy.money);
const money = enemy.money;
core.status.hero.money += money;
core.status.hero.statistics.money += money;
// 获得经验
var exp = guards.reduce(function (curr, g) {
return curr + core.material.enemys[g[2]].exp;
}, enemy.exp);
const exp = enemy.exp;
core.status.hero.exp += exp;
core.status.hero.statistics.exp += exp;
var hint = '打败 ' + enemy.name;
if (core.flags.statusBarItems.indexOf('enableMoney') >= 0)
hint += ',金币+' + money;
if (core.flags.statusBarItems.indexOf('enableExp') >= 0)
hint += ',经验+' + exp;
const hint =
'打败 ' + enemy.name + ',金币+' + money + ',经验+' + exp;
core.drawTip(hint, enemy.id);
if (core.getFlag('bladeOn') && core.getFlag('blade')) {
@@ -940,6 +929,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
x !== void 0 &&
y !== null &&
y !== void 0 &&
(hero?.x === null || hero?.x === void 0) &&
(hero?.y === null || hero?.y === void 0) &&
floorId !== null &&
floorId !== void 0 &&
flags.autoLocate &&
@@ -950,7 +941,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
for (const [dir, { x: dx, y: dy }] of Object.entries(
core.utils.scan
)) {
// 只有攻击和防御和特殊光环需要注意,其他的一般都不会随楼层与坐标变化
// 只有攻击和防御和特殊光环需要注意,其他的都不会随楼层与坐标变化
const nx = x + dx;
const ny = y + dy;
if (
@@ -971,8 +962,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
const status = core.getHeroStatusOf(
hero,
toGet,
x,
y,
nx,
ny,
floorId
);
if (
@@ -982,20 +973,28 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
) {
continue;
}
toMap.push([dir, Object.assign({}, status, { x, y })]);
toMap.push([
dir,
Object.assign({}, status, { x: nx, y: ny })
]);
}
} else {
toMap = [['none', core.getHeroStatusOf(hero, ['atk', 'def'])]];
// 指定了勇士坐标或者没有怪物坐标时
toMap = [
[
'none',
core.getHeroStatusOf(
hero,
['atk', 'def'],
hero?.x,
hero?.y
)
]
];
}
function getDamage(h) {
const enemyInfo = core.enemys.getEnemyInfo(
enemy,
hero,
x,
y,
floorId
);
const enemyInfo = core.getEnemyInfo(enemy, hero, x, y, floorId);
let {
hp: mon_hp,
@@ -1033,12 +1032,15 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
// 每回合怪物对勇士造成的战斗伤害
var per_damage = mon_atk - hero_def;
// 魔攻:战斗伤害就是怪物攻击力
if (
core.hasSpecial(mon_special, 2) ||
core.hasSpecial(mon_special, 13)
)
) {
per_damage = mon_atk;
}
// 战斗伤害不能为负值
if (per_damage < 0) per_damage = 0;
@@ -1121,20 +1123,21 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
];
function autoSkillOf(h) {
damageInfo = getDamage(h);
damage = damageInfo?.damage ?? Infinity;
if (flags.autoSkill) {
for (const [unlock, condition] of skills) {
if (flags[unlock]) {
flags[condition] = true;
const info = getDamage(h);
const d = info?.damage;
if (d !== null && d !== void 0) {
if (d < damage) {
damage = d;
damageInfo = info;
}
if (!flags[unlock]) continue;
flags[condition] = true;
const info = getDamage(h);
const d = info?.damage;
if (d !== null && d !== void 0) {
if (d < damage) {
damage = d;
damageInfo = info;
}
flags[condition] = false;
}
flags[condition] = false;
}
} else {
damageInfo = getDamage(h);
@@ -1142,6 +1145,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
}
}
let dirDamageInfo = null;
let dirMinDamage = Infinity;
let damageInfo = null;
let damage = Infinity;
@@ -1150,18 +1155,29 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
return damageInfo;
}
if (toMap.length === 1) {
if (toMap.length <= 1) {
// 单个与多个分开计算,有助于提高性能表现
const h = toMap[0][1];
const h =
toMap[0]?.[1] ?? core.getHeroStatusOf(hero, ['atk', 'def']);
autoSkillOf(h);
if (damageInfo) {
return Object.assign(damageInfo, { dir: toMap[0][0] });
return Object.assign(damageInfo, {
dir: [toMap[0]?.[0] ?? 'none', damage]
});
} else return null;
} else {
const dirDamage = [];
for (const [dir, h] of toMap) {
damage = Infinity;
damageInfo = null;
autoSkillOf(h);
if (damageInfo) {
return Object.assign(damageInfo, { dir });
dirDamage.push([dir, damage]);
if (damage < dirMinDamage) {
dirMinDamage = damage;
dirDamageInfo = damageInfo;
}
if (dirDamageInfo) {
return Object.assign(dirDamageInfo, { dir: dirDamage });
} else return null;
}
}
@@ -1501,7 +1517,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
repulse = {}, // 每个点的阻击怪信息
mockery = {}, // 电摇嘲讽
halo = {}; // 光环
var betweenAttackLocs = {}; // 所有可能的夹击点
var needCache = false;
var canGoDeadZone = core.flags.canGoDeadZone;
var haveHunt = false;
@@ -1702,23 +1717,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
}
}
// 夹击;在这里提前计算所有可能的夹击点,具体计算逻辑在下面
// 如果要防止夹击伤害,可以简单的将 flag:no_betweenAttack 设为true
if (
enemy &&
core.enemys.hasSpecial(enemy.special, 16) &&
!core.hasFlag('no_betweenAttack')
) {
for (var dir in core.utils.scan) {
var nx = x + core.utils.scan[dir].x,
ny = y + core.utils.scan[dir].y,
currloc = nx + ',' + ny;
if (nx < 0 || nx >= width || ny < 0 || ny >= height)
continue;
betweenAttackLocs[currloc] = true;
}
}
// 检查地图范围类技能
var specialFlag = core.getSpecialFlag(enemy);
if (specialFlag & 1) needCache = true;
@@ -1743,74 +1741,6 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = {
}
}
// 对每个可能的夹击点计算夹击伤害
for (var loc in betweenAttackLocs) {
var xy = loc.split(','),
x = parseInt(xy[0]),
y = parseInt(xy[1]);
// 夹击怪物的ID
var enemyId1 = null,
enemyId2 = null;
// 检查左右夹击
var leftBlock = blocks[x - 1 + ',' + y],
rightBlock = blocks[x + 1 + ',' + y];
if (
leftBlock &&
!leftBlock.disable &&
rightBlock &&
!rightBlock.disable &&
leftBlock.id == rightBlock.id
) {
if (core.hasSpecial(leftBlock.event.id, 16))
enemyId1 = leftBlock.event.id;
}
// 检查上下夹击
var topBlock = blocks[x + ',' + (y - 1)],
bottomBlock = blocks[x + ',' + (y + 1)];
if (
topBlock &&
!topBlock.disable &&
bottomBlock &&
!bottomBlock.disable &&
topBlock.id == bottomBlock.id
) {
if (core.hasSpecial(topBlock.event.id, 16))
enemyId2 = topBlock.event.id;
}
if (enemyId1 != null || enemyId2 != null) {
var leftHp = core.status.hero.hp - (damage[loc] || 0);
if (leftHp > 1) {
// 夹击伤害值
var value = Math.floor(leftHp / 2);
// 是否不超过怪物伤害值
if (core.flags.betweenAttackMax) {
var enemyDamage1 = core.getDamage(
enemyId1,
x,
y,
floorId
);
if (enemyDamage1 != null && enemyDamage1 < value)
value = enemyDamage1;
var enemyDamage2 = core.getDamage(
enemyId2,
x,
y,
floorId
);
if (enemyDamage2 != null && enemyDamage2 < value)
value = enemyDamage2;
}
if (value > 0) {
damage[loc] = (damage[loc] || 0) + value;
type[loc] = type[loc] || {};
type[loc]['夹击伤害'] = true;
}
}
}
}
core.flags.canGoDeadZone = canGoDeadZone;
core.status.checkBlock = {
damage: damage,
+2 -1
View File
@@ -121,7 +121,8 @@ var icons_4665ee12_3a1f_44a4_bea3_0fccba634dc1 =
"T585": 61,
"T586": 62,
"T587": 63,
"T588": 64
"T588": 64,
"T604": 65
},
"animates": {
"star": 0,
+16 -2
View File
@@ -531,6 +531,7 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"601": {"cls":"enemys","id":"E601"},
"602": {"cls":"enemys","id":"E602"},
"603": {"cls":"enemys","id":"E603"},
"604": {"cls":"terrains","id":"T604"},
"20037": {"cls":"tileset","id":"X20037","cannotOut":["up","left"],"cannotIn":["up","left"]},
"20038": {"cls":"tileset","id":"X20038","cannotOut":["up"],"cannotIn":["up"]},
"20039": {"cls":"tileset","id":"X20039","cannotOut":["up","right"],"cannotIn":["up","right"]},
@@ -562,11 +563,24 @@ var maps_90f36752_8815_4be8_b32b_d7fad1d0542e =
"30121": {"cls":"tileset","id":"X30121","canPass":true},
"30196": {"cls":"tileset","id":"X30196","canPass":true},
"30204": {"cls":"tileset","id":"X30204","canPass":true},
"70065": {"cls":"tileset","id":"X70065","cannotIn":["down"],"cannotOut":["down"]},
"70048": {"cls":"tileset","id":"X70048","cannotOut":["up","left"],"cannotIn":["up","left"]},
"70049": {"cls":"tileset","id":"X70049","cannotOut":["up"],"cannotIn":["up"]},
"70050": {"cls":"tileset","id":"X70050","cannotOut":["up","right"],"cannotIn":["up","right"]},
"70056": {"cls":"tileset","id":"X70056","cannotOut":["left"],"cannotIn":["left"]},
"70058": {"cls":"tileset","id":"X70058","cannotOut":["right"],"cannotIn":["right"]},
"70064": {"cls":"tileset","id":"X70064","cannotOut":["down","left"],"cannotIn":["down","left"]},
"70065": {"cls":"tileset","id":"X70065","cannotIn":["up","down","left","right"],"cannotOut":["up","down","left","right"]},
"70066": {"cls":"tileset","id":"X70066","cannotOut":["down","right"],"cannotIn":["down","right"]},
"70112": {"cls":"tileset","id":"X70112","cannotIn":["down"],"cannotOut":["down"]},
"70114": {"cls":"tileset","id":"X70114","cannotIn":["down"],"cannotOut":["down"]},
"70120": {"cls":"tileset","id":"X70120","cannotIn":["up","down","left","right"]},
"70122": {"cls":"tileset","id":"X70122","cannotIn":["up","down","left","right"]},
"70128": {"cls":"tileset","id":"X70128","cannotIn":["up","down","left","right"]},
"70130": {"cls":"tileset","id":"X70130","cannotIn":["up","down","left","right"]}
"70130": {"cls":"tileset","id":"X70130","cannotIn":["up","down","left","right"]},
"70184": {"cls":"tileset","id":"X70184","canPass":true},
"70185": {"cls":"tileset","id":"X70185","canPass":true},
"70186": {"cls":"tileset","id":"X70186","canPass":true},
"70200": {"cls":"tileset","id":"X70200","canPass":true},
"70201": {"cls":"tileset","id":"X70201","canPass":true},
"70202": {"cls":"tileset","id":"X70202","canPass":true}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 54 KiB

-1
View File
@@ -659,7 +659,6 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = {
document.getElementById('gameDraw').appendChild(canvas);
var ctx = canvas.getContext('2d');
core.canvas[name] = ctx;
core.maps._setHDCanvasSize(ctx, core.__PIXELS__, core.__PIXELS__);
return canvas;
}
+4
View File
@@ -435,6 +435,10 @@ p#name {
z-index: 170;
}
.no-anti-aliasing {
image-rendering: pixelated;
}
#inputDiv {
display: none;
width: 100%;