UNPKG

use-on-demand

Version:
3 lines 267 kB
module.exports=function(t){function e(e){for(var n,i,o=e[0],s=e[1],a=0,u=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);c&&c(e);while(u.length)u.shift()()}var n={},r={Live2D_Config_Dialog:0};function i(t){return o.p+"js/"+({}[t]||t)+"."+{"chunk-2d0c8f48":"99a369cb","chunk-2d0df0f4":"8eef4757","chunk-594d6d48":"8a216641","chunk-2d217155":"b56613b5","chunk-dfb7bcd8":"2ebecbb2","chunk-746d07e2":"9aaeeacf","chunk-8f1848e6":"f895aaa1"}[t]+".js"}function o(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var s=new Promise((function(e,i){n=r[t]=[e,i]}));e.push(n[2]=s);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=i(t);var c=new Error;a=function(e){u.onerror=u.onload=null,clearTimeout(l);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;c.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,n[1](c)}r[t]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:u})}),12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(e)},o.m=t,o.c=n,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o.oe=function(t){throw console.error(t),t};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],a=s.push.bind(s);s.push=e,s=s.slice();for(var u=0;u<s.length;u++)e(s[u]);var c=a;return o(o.s="a5c5")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"01a6":function(t,e){t.exports=require("vue-property-decorator")},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),s=n("fc6a"),a=n("c04e"),u=n("5135"),c=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=s(t),e=a(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1ff6":function(t,e){t.exports='/* FileSaver.js\n * A saveAs() FileSaver implementation.\n * 1.3.2\n * 2016-06-16 18:25:19\n *\n * By Eli Grey, http://eligrey.com\n * License: MIT\n * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md\n */\n\n/*global self */\n/*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */\n\n/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */\n\nvar saveAs = saveAs || (function(view) {\n\t"use strict";\n\t// IE <10 is explicitly unsupported\n\tif (typeof view === "undefined" || typeof navigator !== "undefined" && /MSIE [1-9]\\./.test(navigator.userAgent)) {\n\t\treturn;\n\t}\n\tvar\n\t\t doc = view.document\n\t\t // only get URL when necessary in case Blob.js hasn\'t overridden it yet\n\t\t, get_URL = function() {\n\t\t\treturn view.URL || view.webkitURL || view;\n\t\t}\n\t\t, save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")\n\t\t, can_use_save_link = "download" in save_link\n\t\t, click = function(node) {\n\t\t\tvar event = new MouseEvent("click");\n\t\t\tnode.dispatchEvent(event);\n\t\t}\n\t\t, is_safari = /constructor/i.test(view.HTMLElement) || view.safari\n\t\t, is_chrome_ios =/CriOS\\/[\\d]+/.test(navigator.userAgent)\n\t\t, throw_outside = function(ex) {\n\t\t\t(view.setImmediate || view.setTimeout)(function() {\n\t\t\t\tthrow ex;\n\t\t\t}, 0);\n\t\t}\n\t\t, force_saveable_type = "application/octet-stream"\n\t\t// the Blob API is fundamentally broken as there is no "downloadfinished" event to subscribe to\n\t\t, arbitrary_revoke_timeout = 1000 * 40 // in ms\n\t\t, revoke = function(file) {\n\t\t\tvar revoker = function() {\n\t\t\t\tif (typeof file === "string") { // file is an object URL\n\t\t\t\t\tget_URL().revokeObjectURL(file);\n\t\t\t\t} else { // file is a File\n\t\t\t\t\tfile.remove();\n\t\t\t\t}\n\t\t\t};\n\t\t\tsetTimeout(revoker, arbitrary_revoke_timeout);\n\t\t}\n\t\t, dispatch = function(filesaver, event_types, event) {\n\t\t\tevent_types = [].concat(event_types);\n\t\t\tvar i = event_types.length;\n\t\t\twhile (i--) {\n\t\t\t\tvar listener = filesaver["on" + event_types[i]];\n\t\t\t\tif (typeof listener === "function") {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlistener.call(filesaver, event || filesaver);\n\t\t\t\t\t} catch (ex) {\n\t\t\t\t\t\tthrow_outside(ex);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t, auto_bom = function(blob) {\n\t\t\t// prepend BOM for UTF-8 XML and text/* types (including HTML)\n\t\t\t// note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\n\t\t\tif (/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\n\t\t\t\treturn new Blob([String.fromCharCode(0xFEFF), blob], {type: blob.type});\n\t\t\t}\n\t\t\treturn blob;\n\t\t}\n\t\t, FileSaver = function(blob, name, no_auto_bom) {\n\t\t\tif (!no_auto_bom) {\n\t\t\t\tblob = auto_bom(blob);\n\t\t\t}\n\t\t\t// First try a.download, then web filesystem, then object URLs\n\t\t\tvar\n\t\t\t\t filesaver = this\n\t\t\t\t, type = blob.type\n\t\t\t\t, force = type === force_saveable_type\n\t\t\t\t, object_url\n\t\t\t\t, dispatch_all = function() {\n\t\t\t\t\tdispatch(filesaver, "writestart progress write writeend".split(" "));\n\t\t\t\t}\n\t\t\t\t// on any filesys errors revert to saving with object URLs\n\t\t\t\t, fs_error = function() {\n\t\t\t\t\tif ((is_chrome_ios || (force && is_safari)) && view.FileReader) {\n\t\t\t\t\t\t// Safari doesn\'t allow downloading of blob urls\n\t\t\t\t\t\tvar reader = new FileReader();\n\t\t\t\t\t\treader.onloadend = function() {\n\t\t\t\t\t\t\tvar url = is_chrome_ios ? reader.result : reader.result.replace(/^data:[^;]*;/, \'data:attachment/file;\');\n\t\t\t\t\t\t\tvar popup = view.open(url, \'_blank\');\n\t\t\t\t\t\t\tif(!popup) view.location.href = url;\n\t\t\t\t\t\t\turl=undefined; // release reference before dispatching\n\t\t\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\t\t\tdispatch_all();\n\t\t\t\t\t\t};\n\t\t\t\t\t\treader.readAsDataURL(blob);\n\t\t\t\t\t\tfilesaver.readyState = filesaver.INIT;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// don\'t create more object URLs than needed\n\t\t\t\t\tif (!object_url) {\n\t\t\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\t\t}\n\t\t\t\t\tif (force) {\n\t\t\t\t\t\tview.location.href = object_url;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar opened = view.open(object_url, "_blank");\n\t\t\t\t\t\tif (!opened) {\n\t\t\t\t\t\t\t// Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html\n\t\t\t\t\t\t\tview.location.href = object_url;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t}\n\t\t\t;\n\t\t\tfilesaver.readyState = filesaver.INIT;\n\n\t\t\tif (can_use_save_link) {\n\t\t\t\tobject_url = get_URL().createObjectURL(blob);\n\t\t\t\tsetTimeout(function() {\n\t\t\t\t\tsave_link.href = object_url;\n\t\t\t\t\tsave_link.download = name;\n\t\t\t\t\tclick(save_link);\n\t\t\t\t\tdispatch_all();\n\t\t\t\t\trevoke(object_url);\n\t\t\t\t\tfilesaver.readyState = filesaver.DONE;\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfs_error();\n\t\t}\n\t\t, FS_proto = FileSaver.prototype\n\t\t, saveAs = function(blob, name, no_auto_bom) {\n\t\t\treturn new FileSaver(blob, name || blob.name || "download", no_auto_bom);\n\t\t}\n\t;\n\t// IE 10+ (native saveAs)\n\tif (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob) {\n\t\treturn function(blob, name, no_auto_bom) {\n\t\t\tname = name || blob.name || "download";\n\n\t\t\tif (!no_auto_bom) {\n\t\t\t\tblob = auto_bom(blob);\n\t\t\t}\n\t\t\treturn navigator.msSaveOrOpenBlob(blob, name);\n\t\t};\n\t}\n\n\tFS_proto.abort = function(){};\n\tFS_proto.readyState = FS_proto.INIT = 0;\n\tFS_proto.WRITING = 1;\n\tFS_proto.DONE = 2;\n\n\tFS_proto.error =\n\tFS_proto.onwritestart =\n\tFS_proto.onprogress =\n\tFS_proto.onwrite =\n\tFS_proto.onabort =\n\tFS_proto.onerror =\n\tFS_proto.onwriteend =\n\t\tnull;\n\n\treturn saveAs;\n}(\n\t typeof self !== "undefined" && self\n\t|| typeof window !== "undefined" && window\n\t|| this.content\n));\n// `self` is undefined in Firefox for Android content script context\n// while `this` is nsIContentFrameMessageManager\n// with an attribute `content` that corresponds to the window\n\nif (typeof module !== "undefined" && module.exports) {\n module.exports.saveAs = saveAs;\n} else if ((typeof define !== "undefined" && define !== null) && (define.amd !== null)) {\n define("FileSaver.js", function() {\n return saveAs;\n });\n}\n'},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),s=n("0366"),a=n("35a1"),u=n("9bdd"),c=function(t,e){this.stopped=t,this.result=e},l=t.exports=function(t,e,n,l,h){var f,_,p,d,$,y,g,v=s(e,n,l?2:1);if(h)f=t;else{if(_=a(t),"function"!=typeof _)throw TypeError("Target is not iterable");if(i(_)){for(p=0,d=o(t.length);d>p;p++)if($=l?v(r(g=t[p])[0],g[1]):v(t[p]),$&&$ instanceof c)return $;return new c(!1)}f=_.call(t)}y=f.next;while(!(g=y.call(f)).done)if($=u(f,v,g.value,l),"object"==typeof $&&$&&$ instanceof c)return $;return new c(!1)};l.stop=function(t){return new c(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),s=n("6eeb"),a=n("ce4e"),u=n("e893"),c=n("94ca");t.exports=function(t,e){var n,l,h,f,_,p,d=t.target,$=t.global,y=t.stat;if(l=$?r:y?r[d]||a(d,{}):(r[d]||{}).prototype,l)for(h in e){if(_=e[h],t.noTargetGet?(p=i(l,h),f=p&&p.value):f=l[h],n=c($?h:d+(y?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof _===typeof f)continue;u(_,f)}(t.sham||f&&f.sham)&&o(_,"sham",!0),s(l,h,_,t)}}},2403:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var r,i=n("9ab4");null===t||void 0===t||t.server;(function(t){t["bgTokenAbout"]="bgTokenAbout",t["KlinePerformance"]="KlinePerformance",t["KlineCycleLife"]="KlineCycleLife",t["tradingViewDraw"]="tradingViewDraw",t["indexPage"]="indexPage",t["baseConfig"]="baseConfig",t["axiosBase"]="axiosBase",t["storeBase"]="storeBase",t["axiosWatcher"]="axiosWatcher",t["qrcodeCp"]="qrcodeCp",t["cookieUtil"]="cookieUtil",t["pluginBxUi"]="pluginBxUi",t["wasm"]="wasm",t["BgNavHeader"]="BgNavHeader",t["createContractAccount"]="createContractAccount",t["positLine"]="positLine",t["positCp"]="positCp",t["leverageInfo"]="leverageInfo",t["chatroom"]="chatroom",t["directive"]="directive",t["directiveDrag"]="directiveDrag",t["contractArea"]="contractArea",t["transferWindow"]="transferWindow",t["loadScript"]="loadScript",t["sentry"]="sentry",t["decorator"]="decorator",t["versionCheck"]="versionCheck",t["wClient_Side"]="wClient_Side",t["wWorker_Side"]="wWorker_Side"})(r||(r={}));var o=function(){function t(){}return t.l=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.allowKeys.includes(t)&&console.log.apply(console,Object(i["h"])([t,this.separator],e))},t.e=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.allowKeys.includes(t)&&console.error.apply(console,Object(i["h"])([t,this.separator],e))},t.pic=function(t,e){void 0===e&&(e="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"),console.log("%c ","\n padding :50px 300px;\n line-height :100px;\n background-size :contain;\n background-repeat :no-repeat;\n background-image:url("+e+")\n ")},t.prototype.realLog=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];console.log("【特别注意】JSON格式不会包括函数、正则、Date对象。");var r=e[0];0===r.length?console.log(JSON.parse(JSON.stringify(t))):console.log(JSON.parse(JSON.stringify(t)),JSON.parse(JSON.stringify(e))[0][0])},t.separator="//",t.allowKeys=[r.tradingViewDraw,r.chatroom,r.transferWindow,r.loadScript,r.sentry,r.wClient_Side,r.wWorker_Side],t}()}).call(this,n("4362"))},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),s=n("ad6d"),a="toString",u=RegExp.prototype,c=u[a],l=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),h=c.name!=a;(l||h)&&r(RegExp.prototype,a,(function(){var t=i(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in u)?s.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),s=n("83ab"),a=o("species");t.exports=function(t){var e=r(t),n=i.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},"2cf4":function(t,e,n){var r,i,o,s=n("da84"),a=n("d039"),u=n("c6b6"),c=n("0366"),l=n("1be4"),h=n("cc12"),f=n("1cdc"),_=s.location,p=s.setImmediate,d=s.clearImmediate,$=s.process,y=s.MessageChannel,g=s.Dispatch,v=0,m={},b="onreadystatechange",w=function(t){if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},T=function(t){return function(){w(t)}},S=function(t){w(t.data)},P=function(t){s.postMessage(t+"",_.protocol+"//"+_.host)};p&&d||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return m[++v]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(v),v},d=function(t){delete m[t]},"process"==u($)?r=function(t){$.nextTick(T(t))}:g&&g.now?r=function(t){g.now(T(t))}:y&&!f?(i=new y,o=i.port2,i.port1.onmessage=S,r=c(o.postMessage,o,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||a(P)||"file:"===_.protocol?r=b in h("script")?function(t){l.appendChild(h("script"))[b]=function(){l.removeChild(this),w(t)}}:function(t){setTimeout(T(t),0)}:(r=P,s.addEventListener("message",S,!1))),t.exports={set:p,clear:d}},"2d00":function(t,e,n){var r,i,o=n("da84"),s=n("342f"),a=o.process,u=a&&a.versions,c=u&&u.v8;c?(r=c.split("."),i=r[0]+r[1]):s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2e60":function(t,e){t.exports=require("use-on-demand/lib-cp/MyFormEasy")},3215:function(t,e){ /*! https://github.com/xiazeyu/live2d-widget.js built@2020-8-22 14:53:39 */ !function(t,e){for(var n in e)t[n]=e[n]}(e,function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=9)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.L2Dwidget=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(5),s=(r=o,r&&r.__esModule?r:{default:r}),a=n(1),u=n(6),c=new(function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.config=a.config,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u.EventEmitter),i(e,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.configApplyer)(e),this.emit("config",this.config),!a.config.mobile.show&&s.default.mobile()||new Promise((function(t){t()})).then(n.bind(null,12)).then((function(e){t.coreApp=e,t.live2DMgr=t.coreApp.theRealInit(t)})).catch((function(t){console.error(t)}))}},{key:"captureFrame",value:function(t){return this.coreApp.captureFrame(t)}},{key:"downloadFrame",value:function(){this.captureFrame((function(t){var e=document.createElement("a");document.body.appendChild(e),e.setAttribute("type","hidden"),e.href=t,e.download="live2d.png",e.click()}))}}]),e}());e.L2Dwidget=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.config=e.configApplyer=void 0;var r=o(n(10)),i=o(n(11));function o(t){return t&&t.__esModule?t:{default:t}}var s={};e.configApplyer=function(t){(0,i.default)(s,t,r.default)},e.config=s},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=!0;function r(){n||(this._$MT=null,this._$5S=null,this._$NP=0,r._$42++,this._$5S=new B(this))}function i(t){if(!n){this.clipContextList=new Array,this.glcontext=t.gl,this.dp_webgl=t,this.curFrameNo=0,this.firstError_clipInNotUpdate=!0,this.colorBuffer=0,this.isInitGLFBFunc=!1,this.tmpBoundsOnModel=new b,at.glContext.length>at.frameBuffers.length&&(this.curFrameNo=this.getMaskRenderTexture()),this.tmpModelToViewMatrix=new D,this.tmpMatrix2=new D,this.tmpMatrixForMask=new D,this.tmpMatrixForDraw=new D,this.CHANNEL_COLORS=new Array;var e=new x;(e=new x).r=0,e.g=0,e.b=0,e.a=1,this.CHANNEL_COLORS.push(e),(e=new x).r=1,e.g=0,e.b=0,e.a=0,this.CHANNEL_COLORS.push(e),(e=new x).r=0,e.g=1,e.b=0,e.a=0,this.CHANNEL_COLORS.push(e),(e=new x).r=0,e.g=0,e.b=1,e.a=0,this.CHANNEL_COLORS.push(e);for(var r=0;r<this.CHANNEL_COLORS.length;r++)this.dp_webgl.setChannelFlagAsColor(r,this.CHANNEL_COLORS[r])}}function o(t,e,n){this.clipIDList=new Array,this.clipIDList=n,this.clippingMaskDrawIndexList=new Array;for(var r=0;r<n.length;r++)this.clippingMaskDrawIndexList.push(e.getDrawDataIndex(n[r]));this.clippedDrawContextList=new Array,this.isUsing=!0,this.layoutChannelNo=0,this.layoutBounds=new b,this.allClippedDrawRect=new b,this.matrixForMask=new Float32Array(16),this.matrixForDraw=new Float32Array(16),this.owner=t}function s(){n||(this._$dP=null,this._$eo=null,this._$V0=null,this._$dP=1e3,this._$eo=1e3,this._$V0=1,this._$a0())}function a(){}function u(){n||(this.x=null,this.y=null,this.width=null,this.height=null)}function c(t){n||nt.prototype.constructor.call(this,t)}function l(t){n||nt.prototype.constructor.call(this,t)}function h(){n||(this._$vo=null,this._$F2=null,this._$ao=400,this._$1S=400,h._$42++)}function f(){n||(this.p1=new _,this.p2=new _,this._$Fo=0,this._$Db=0,this._$L2=0,this._$M2=0,this._$ks=0,this._$9b=0,this._$iP=0,this._$iT=0,this._$lL=new Array,this._$qP=new Array,this.setup(.3,.5,.1))}function _(){this._$p=1,this.x=0,this.y=0,this.vx=0,this.vy=0,this.ax=0,this.ay=0,this.fx=0,this.fy=0,this._$s0=0,this._$70=0,this._$7L=0,this._$HL=0}function p(t,e,n){this._$wL=null,this.scale=null,this._$V0=null,this._$wL=t,this.scale=e,this._$V0=n}function d(t,e,n,r){p.prototype.constructor.call(this,e,n,r),this._$tL=null,this._$tL=t}function $(t,e,n){this._$wL=null,this.scale=null,this._$V0=null,this._$wL=t,this.scale=e,this._$V0=n}function y(t,e,n,r){$.prototype.constructor.call(this,e,n,r),this._$YP=null,this._$YP=t}function g(){n||(this._$fL=0,this._$gL=0,this._$B0=1,this._$z0=1,this._$qT=0,this.reflectX=!1,this.reflectY=!1)}r._$0s=1,r._$4s=2,r._$42=0,r._$62=function(t,e){try{if(e instanceof ArrayBuffer&&(e=new DataView(e)),!(e instanceof DataView))throw new ct("_$SS#loadModel(b) / b _$x be DataView or ArrayBuffer");var n,i=new bt(e),o=i._$ST(),s=i._$ST(),u=i._$ST();if(109!=o||111!=s||99!=u)throw new ct("_$gi _$C _$li , _$Q0 _$P0.");if(n=i._$ST(),i._$gr(n),n>j._$T7)throw t._$NP|=r._$4s,new ct("_$gi _$C _$li , _$n0 _$_ version _$li ( SDK : "+j._$T7+" < _$f0 : "+n+" )@_$SS#loadModel()\n");var c=i._$nP();if(n>=j._$s7){var l=i._$9T(),h=i._$9T();if(-30584!=l||-30584!=h)throw t._$NP|=r._$0s,new ct("_$gi _$C _$li , _$0 _$6 _$Ui.")}t._$KS(c);var f=t.getModelContext();f.setDrawParam(t.getDrawParam()),f.init()}catch(t){a._$Rb(t)}},r.prototype._$KS=function(t){this._$MT=t},r.prototype.getModelImpl=function(){return null==this._$MT&&(this._$MT=new h,this._$MT._$zP()),this._$MT},r.prototype.getCanvasWidth=function(){return null==this._$MT?0:this._$MT.getCanvasWidth()},r.prototype.getCanvasHeight=function(){return null==this._$MT?0:this._$MT.getCanvasHeight()},r.prototype.getParamFloat=function(t){return"number"!=typeof t&&(t=this._$5S.getParamIndex(l.getID(t))),this._$5S.getParamFloat(t)},r.prototype.setParamFloat=function(t,e,n){"number"!=typeof t&&(t=this._$5S.getParamIndex(l.getID(t))),arguments.length<3&&(n=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1-n)+e*n)},r.prototype.addToParamFloat=function(t,e,n){"number"!=typeof t&&(t=this._$5S.getParamIndex(l.getID(t))),arguments.length<3&&(n=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)+e*n)},r.prototype.multParamFloat=function(t,e,n){"number"!=typeof t&&(t=this._$5S.getParamIndex(l.getID(t))),arguments.length<3&&(n=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1+(e-1)*n))},r.prototype.getParamIndex=function(t){return this._$5S.getParamIndex(l.getID(t))},r.prototype.loadParam=function(){this._$5S.loadParam()},r.prototype.saveParam=function(){this._$5S.saveParam()},r.prototype.init=function(){this._$5S.init()},r.prototype.update=function(){this._$5S.update()},r.prototype._$Rs=function(){return a._$li("_$60 _$PT _$Rs()"),-1},r.prototype._$Ds=function(t){a._$li("_$60 _$PT _$SS#_$Ds() \n")},r.prototype._$K2=function(){},r.prototype.draw=function(){},r.prototype.getModelContext=function(){return this._$5S},r.prototype._$s2=function(){return this._$NP},r.prototype._$P7=function(t,e,n,r){var i=-1,o=0;if(0!=n)if(1==t.length){f=t[0];var s=0!=this.getParamFloat(f),a=(_=e[0],this.getPartsOpacity(_)),u=n/r;s?(a+=u)>1&&(a=1):(a-=u)<0&&(a=0),this.setPartsOpacity(_,a)}else{for(h=0;h<t.length;h++)if(f=t[h],p=0!=this.getParamFloat(f)){if(i>=0)break;i=h,_=e[h],o=this.getPartsOpacity(_),(o+=n/r)>1&&(o=1)}for(i<0&&(console.log("No _$wi _$q0/ _$U default[%s]",t[0]),i=0,o=1,this.loadParam(),this.setParamFloat(t[i],o),this.saveParam()),h=0;h<t.length;h++)if(_=e[h],i==h)this.setPartsOpacity(_,o);else{var c,l=this.getPartsOpacity(_);(1-(c=o<.5?-.5*o/.5+1:.5*(1-o)/.5))*(1-o)>.15&&(c=1-.15/(1-o)),l>c&&(l=c),this.setPartsOpacity(_,l)}}else for(var h=0;h<t.length;h++){var f=t[h],_=e[h],p=0!=this.getParamFloat(f);this.setPartsOpacity(_,p?1:0)}},r.prototype.setPartsOpacity=function(t,e){"number"!=typeof t&&(t=this._$5S.getPartsDataIndex(c.getID(t))),this._$5S.setPartsOpacity(t,e)},r.prototype.getPartsDataIndex=function(t){return t instanceof c||(t=c.getID(t)),this._$5S.getPartsDataIndex(t)},r.prototype.getPartsOpacity=function(t){return"number"!=typeof t&&(t=this._$5S.getPartsDataIndex(c.getID(t))),t<0?0:this._$5S.getPartsOpacity(t)},r.prototype.getDrawParam=function(){},r.prototype.getDrawDataIndex=function(t){return this._$5S.getDrawDataIndex(I.getID(t))},r.prototype.getDrawData=function(t){return this._$5S.getDrawData(t)},r.prototype.getTransformedPoints=function(t){var e=this._$5S._$C2(t);return e instanceof ht?e.getTransformedPoints():null},r.prototype.getIndexArray=function(t){if(t<0||t>=this._$5S._$aS.length)return null;var e=this._$5S._$aS[t];return null!=e&&e.getType()==X._$wb&&e instanceof lt?e.getIndexArray():null},i.CHANNEL_COUNT=4,i.RENDER_TEXTURE_USE_MIPMAP=!1,i.NOT_USED_FRAME=-100,i.prototype._$L7=function(){if(this.tmpModelToViewMatrix&&(this.tmpModelToViewMatrix=null),this.tmpMatrix2&&(this.tmpMatrix2=null),this.tmpMatrixForMask&&(this.tmpMatrixForMask=null),this.tmpMatrixForDraw&&(this.tmpMatrixForDraw=null),this.tmpBoundsOnModel&&(this.tmpBoundsOnModel=null),this.CHANNEL_COLORS){for(var t=this.CHANNEL_COLORS.length-1;t>=0;--t)this.CHANNEL_COLORS.splice(t,1);this.CHANNEL_COLORS=[]}this.releaseShader()},i.prototype.releaseShader=function(){for(var t=at.frameBuffers.length,e=0;e<t;e++)this.gl.deleteFramebuffer(at.frameBuffers[e].framebuffer);at.frameBuffers=[],at.glContext=[]},i.prototype.init=function(t,e,n){for(var r=0;r<e.length;r++){var i=e[r].getClipIDList();if(null!=i){var s=this.findSameClip(i);null==s&&(s=new o(this,t,i),this.clipContextList.push(s));var a=e[r].getDrawDataID(),u=t.getDrawDataIndex(a);s.addClippedDrawData(a,u),n[r].clipBufPre_clipContext=s}}},i.prototype.getMaskRenderTexture=function(){var t=null;return t=this.dp_webgl.createFramebuffer(),at.frameBuffers[this.dp_webgl.glno]=t,this.dp_webgl.glno},i.prototype.setupClip=function(t,e){for(var n=0,r=0;r<this.clipContextList.length;r++){var i=this.clipContextList[r];this.calcClippedDrawTotalBounds(t,i),i.isUsing&&n++}if(n>0){var o=e.gl.getParameter(e.gl.FRAMEBUFFER_BINDING),s=new Array(4);for(s[0]=0,s[1]=0,s[2]=e.gl.canvas.width,s[3]=e.gl.canvas.height,e.gl.viewport(0,0,at.clippingMaskBufferSize,at.clippingMaskBufferSize),this.setupLayoutBounds(n),e.gl.bindFramebuffer(e.gl.FRAMEBUFFER,at.frameBuffers[this.curFrameNo].framebuffer),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT),r=0;r<this.clipContextList.length;r++){var a=(i=this.clipContextList[r]).allClippedDrawRect,u=(i.layoutChannelNo,i.layoutBounds);this.tmpBoundsOnModel._$jL(a),this.tmpBoundsOnModel.expand(.05*a.width,.05*a.height);var c=u.width/this.tmpBoundsOnModel.width,l=u.height/this.tmpBoundsOnModel.height;this.tmpMatrix2.identity(),this.tmpMatrix2.translate(-1,-1,0),this.tmpMatrix2.scale(2,2,1),this.tmpMatrix2.translate(u.x,u.y,0),this.tmpMatrix2.scale(c,l,1),this.tmpMatrix2.translate(-this.tmpBoundsOnModel.x,-this.tmpBoundsOnModel.y,0),this.tmpMatrixForMask.setMatrix(this.tmpMatrix2.m),this.tmpMatrix2.identity(),this.tmpMatrix2.translate(u.x,u.y,0),this.tmpMatrix2.scale(c,l,1),this.tmpMatrix2.translate(-this.tmpBoundsOnModel.x,-this.tmpBoundsOnModel.y,0),this.tmpMatrixForDraw.setMatrix(this.tmpMatrix2.m);for(var h=this.tmpMatrixForMask.getArray(),f=0;f<16;f++)i.matrixForMask[f]=h[f];var _=this.tmpMatrixForDraw.getArray();for(f=0;f<16;f++)i.matrixForDraw[f]=_[f];for(var p=i.clippingMaskDrawIndexList.length,d=0;d<p;d++){var $=i.clippingMaskDrawIndexList[d],y=t.getDrawData($),g=t._$C2($);e.setClipBufPre_clipContextForMask(i),y.draw(e,t,g)}}e.gl.bindFramebuffer(e.gl.FRAMEBUFFER,o),e.setClipBufPre_clipContextForMask(null),e.gl.viewport(s[0],s[1],s[2],s[3])}},i.prototype.getColorBuffer=function(){return this.colorBuffer},i.prototype.findSameClip=function(t){for(var e=0;e<this.clipContextList.length;e++){var n=this.clipContextList[e],r=n.clipIDList.length;if(r==t.length){for(var i=0,o=0;o<r;o++)for(var s=n.clipIDList[o],a=0;a<r;a++)if(t[a]==s){i++;break}if(i==r)return n}}return null},i.prototype.calcClippedDrawTotalBounds=function(t,e){for(var n=t._$Ri.getModelImpl().getCanvasWidth(),r=t._$Ri.getModelImpl().getCanvasHeight(),i=n>r?n:r,o=i,s=i,a=0,u=0,c=e.clippedDrawContextList.length,l=0;l<c;l++){var h=e.clippedDrawContextList[l].drawDataIndex,f=t._$C2(h);if(f._$yo()){for(var _=f.getTransformedPoints(),p=_.length,d=[],$=[],y=0,g=k._$i2;g<p;g+=k._$No)d[y]=_[g],$[y]=_[g+1],y++;var v=Math.min.apply(null,d),m=Math.min.apply(null,$),b=Math.max.apply(null,d),w=Math.max.apply(null,$);v<o&&(o=v),m<s&&(s=m),b>a&&(a=b),w>u&&(u=w)}}if(o==i)e.allClippedDrawRect.x=0,e.allClippedDrawRect.y=0,e.allClippedDrawRect.width=0,e.allClippedDrawRect.height=0,e.isUsing=!1;else{var T=a-o,S=u-s;e.allClippedDrawRect.x=o,e.allClippedDrawRect.y=s,e.allClippedDrawRect.width=T,e.allClippedDrawRect.height=S,e.isUsing=!0}},i.prototype.setupLayoutBounds=function(t){var e=t/i.CHANNEL_COUNT,n=t%i.CHANNEL_COUNT;e=~~e,n=~~n;for(var r=0,o=0;o<i.CHANNEL_COUNT;o++){var s=e+(o<n?1:0);if(0==s);else if(1==s)(h=this.clipContextList[r++]).layoutChannelNo=o,h.layoutBounds.x=0,h.layoutBounds.y=0,h.layoutBounds.width=1,h.layoutBounds.height=1;else if(2==s)for(var u=0;u<s;u++){var c=0;l=~~(l=u%2),(h=this.clipContextList[r++]).layoutChannelNo=o,h.layoutBounds.x=.5*l,h.layoutBounds.y=0,h.layoutBounds.width=.5,h.layoutBounds.height=1}else if(s<=4)for(u=0;u<s;u++)l=~~(l=u%2),c=~~(c=u/2),(h=this.clipContextList[r++]).layoutChannelNo=o,h.layoutBounds.x=.5*l,h.layoutBounds.y=.5*c,h.layoutBounds.width=.5,h.layoutBounds.height=.5;else if(s<=9)for(u=0;u<s;u++){var l,h;l=~~(l=u%3),c=~~(c=u/3),(h=this.clipContextList[r++]).layoutChannelNo=o,h.layoutBounds.x=l/3,h.layoutBounds.y=c/3,h.layoutBounds.width=1/3,h.layoutBounds.height=1/3}else a._$li("_$6 _$0P mask count : %d",s)}},o.prototype.addClippedDrawData=function(t,e){var n=new function(t,e){this._$gP=t,this.drawDataIndex=e}(t,e);this.clippedDrawContextList.push(n)},s._$JT=function(t,e,n){var r=t/e,i=n/e,o=1-(1-i)*(1-i),s=1-(1-i)*(1-i),a=1/3*(1-i)*o+(i*(2/3)+1/3*(1-i))*(1-o),u=(i+2/3*(1-i))*s+(i*(1/3)+2/3*(1-i))*(1-s),c=1-3*u+3*a-0,l=3*u-6*a+0,h=3*a-0;if(r<=0)return 0;if(r>=1)return 1;var f=r*r;return c*(r*f)+l*f+h*r+0},s.prototype._$a0=function(){},s.prototype.setFadeIn=function(t){this._$dP=t},s.prototype.setFadeOut=function(t){this._$eo=t},s.prototype._$pT=function(t){this._$V0=t},s.prototype.getFadeOut=function(){return this._$eo},s.prototype._$4T=function(){return this._$eo},s.prototype._$mT=function(){return this._$V0},s.prototype.getDurationMSec=function(){return-1},s.prototype.getLoopDurationMSec=function(){return-1},s.prototype.updateParam=function(t,e){if(e._$AT&&!e._$9L){var n=E.getUserTimeMSec();if(e._$z2<0){e._$z2=n,e._$bs=n;var r=this.getDurationMSec();e._$Do<0&&(e._$Do=r<=0?-1:e._$z2+r)}var i=this._$V0;0<=(i=i*(0==this._$dP?1:ut._$r2((n-e._$bs)/this._$dP))*(0==this._$eo||e._$Do<0?1:ut._$r2((e._$Do-n)/this._$eo)))&&i<=1||console.log("### assert!! ### "),this.updateParamExe(t,n,i,e),e._$Do>0&&e._$Do<n&&(e._$9L=!0)}},s.prototype.updateParamExe=function(t,e,n,r){},a._$8s=0,a._$fT=new Object,a.start=function(t){var e=a._$fT[t];null==e&&((e=new function(){this._$r=null,this._$0S=null})._$r=t,a._$fT[t]=e),e._$0S=E.getSystemTimeMSec()},a.dump=function(t){var e=a._$fT[t];if(null!=e){var n=E.getSystemTimeMSec()-e._$0S;return console.log(t+" : "+n+"ms"),n}return-1},a.end=function(t){var e=a._$fT[t];return null!=e?E.getSystemTimeMSec()-e._$0S:-1},a._$li=function(t,e){console.log("_$li : "+t+"\n",e)},a._$Ji=function(t,e){console.log(t,e)},a._$dL=function(t,e){console.log(t,e),console.log("\n")},a._$KL=function(t,e){for(var n=0;n<e;n++)n%16==0&&n>0?console.log("\n"):n%8==0&&n>0&&console.log(" "),console.log("%02X ",255&t[n]);console.log("\n")},a._$nr=function(t,e,n){console.log("%s\n",t);for(var r=e.length,i=0;i<r;++i)console.log("%5d",e[i]),console.log("%s\n",n),console.log(",");console.log("\n")},a._$Rb=function(t){console.log("dump exception : "+t),console.log("stack :: "+t.stack)},u.prototype._$8P=function(){return.5*(this.x+this.x+this.width)},u.prototype._$6P=function(){return.5*(this.y+this.y+this.height)},u.prototype._$EL=function(){return this.x+this.width},u.prototype._$5T=function(){return this.y+this.height},u.prototype._$jL=function(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r},u.prototype._$jL=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},c.prototype=new nt,c._$tP=new Object,c._$27=function(){c._$tP.clear()},c.getID=function(t){var e=c._$tP[t];return null==e&&(e=new c(t),c._$tP[t]=e),e},c.prototype._$3s=function(){return new c},l.prototype=new nt,l._$tP=new Object,l._$27=function(){l._$tP.clear()},l.getID=function(t){var e=l._$tP[t];return null==e&&(e=new l(t),l._$tP[t]=e),e},l.prototype._$3s=function(){return new l},h._$42=0,h.prototype._$zP=function(){null==this._$vo&&(this._$vo=new rt),null==this._$F2&&(this._$F2=new Array)},h.prototype.getCanvasWidth=function(){return this._$ao},h.prototype.getCanvasHeight=function(){return this._$1S},h.prototype._$F0=function(t){this._$vo=t._$nP(),this._$F2=t._$nP(),this._$ao=t._$6L(),this._$1S=t._$6L()},h.prototype._$6S=function(t){this._$F2.push(t)},h.prototype._$Xr=function(){return this._$F2},h.prototype._$E2=function(){return this._$vo},f.prototype.setup=function(t,e,n){this._$ks=this._$Yb(),this.p2._$xT(),3==arguments.length&&(this._$Fo=t,this._$L2=e,this.p1._$p=n,this.p2._$p=n,this.p2.y=t,this.setup())},f.prototype.getPhysicsPoint1=function(){return this.p1},f.prototype.getPhysicsPoint2=function(){return this.p2},f.prototype._$qr=function(){return this._$Db},f.prototype._$pr=function(t){this._$Db=t},f.prototype._$5r=function(){return this._$M2},f.prototype._$Cs=function(){return this._$9b},f.prototype._$Yb=function(){return-180*Math.atan2(this.p1.x-this.p2.x,-(this.p1.y-this.p2.y))/Math.PI},f.prototype.addSrcParam=function(t,e,n,r){var i=new d(t,e,n,r);this._$lL.push(i)},f.prototype.addTargetParam=function(t,e,n,r){var i=new y(t,e,n,r);this._$qP.push(i)},f.prototype.update=function(t,e){if(0==this._$iP)return this._$iP=this._$iT=e,void(this._$Fo=Math.sqrt((this.p1.x-this.p2.x)*(this.p1.x-this.p2.x)+(this.p1.y-this.p2.y)*(this.p1.y-this.p2.y)));var n=(e-this._$iT)/1e3;if(0!=n){for(var r=this._$lL.length-1;r>=0;--r)this._$lL[r]._$oP(t,this);this._$oo(t,n),this._$M2=this._$Yb(),this._$9b=(this._$M2-this._$ks)/n,this._$ks=this._$M2}for(r=this._$qP.length-1;r>=0;--r)this._$qP[r]._$YS(t,this);this._$iT=e},f.prototype._$oo=function(t,e){e<.033&&(e=.033);var n=1/e;this.p1.vx=(this.p1.x-this.p1._$s0)*n,this.p1.vy=(this.p1.y-this.p1._$70)*n,this.p1.ax=(this.p1.vx-this.p1._$7L)*n,this.p1.ay=(this.p1.vy-this.p1._$HL)*n,this.p1.fx=this.p1.ax*this.p1._$p,this.p1.fy=this.p1.ay*this.p1._$p,this.p1._$xT();var r,i,o=-Math.atan2(this.p1.y-this.p2.y,this.p1.x-this.p2.x),s=Math.cos(o),a=Math.sin(o),u=9.8*this.p2._$p,c=this._$Db*Tt._$bS,l=u*Math.cos(o-c);r=l*a,i=l*s;var h=-this.p1.fx*a*a,f=-this.p1.fy*a*s,_=-this.p2.vx*this._$L2,p=-this.p2.vy*this._$L2;this.p2.fx=r+h+_,this.p2.fy=i+f+p,this.p2.ax=this.p2.fx/this.p2._$p,this.p2.ay=this.p2.fy/this.p2._$p,this.p2.vx+=this.p2.ax*e,this.p2.vy+=this.p2.ay*e,this.p2.x+=this.p2.vx*e,this.p2.y+=this.p2.vy*e;var d=Math.sqrt((this.p1.x-this.p2.x)*(this.p1.x-this.p2.x)+(this.p1.y-this.p2.y)*(this.p1.y-this.p2.y));this.p2.x=this.p1.x+this._$Fo*(this.p2.x-this.p1.x)/d,this.p2.y=this.p1.y+this._$Fo*(this.p2.y-this.p1.y)/d,this.p2.vx=(this.p2.x-this.p2._$s0)*n,this.p2.vy=(this.p2.y-this.p2._$70)*n,this.p2._$xT()},_.prototype._$xT=function(){this._$s0=this.x,this._$70=this.y,this._$7L=this.vx,this._$HL=this.vy},p.prototype._$oP=function(t,e){},d.prototype=new p,d.prototype._$oP=function(t,e){var n=this.scale*t.getParamFloat(this._$wL),r=e.getPhysicsPoint1();switch(this._$tL){default:case f.Src.SRC_TO_X:r.x=r.x+(n-r.x)*this._$V0;break;case f.Src.SRC_TO_Y:r.y=r.y+(n-r.y)*this._$V0;break;case f.Src.SRC_TO_G_ANGLE:var i=e._$qr();i+=(n-i)*this._$V0,e._$pr(i)}},$.prototype._$YS=function(t,e){},y.prototype=new $,y.prototype._$YS=function(t,e){switch(this._$YP){default:case f.Target.TARGET_FROM_ANGLE:t.setParamFloat(this._$wL,this.scale*e._$5r(),this._$V0);break;case f.Target.TARGET_FROM_ANGLE_V:t.setParamFloat(this._$wL,this.scale*e._$Cs(),this._$V0)}},f.Src=function(){},f.Src.SRC_TO_X="SRC_TO_X",f.Src.SRC_TO_Y="SRC_TO_Y",f.Src.SRC_TO_G_ANGLE="SRC_TO_G_ANGLE",f.Target=function(){},f.Target.TARGET_FROM_ANGLE="TARGET_FROM_ANGLE",f.Target.TARGET_FROM_ANGLE_V="TARGET_FROM_ANGLE_V",g.prototype.init=function(t){this._$fL=t._$fL,this._$gL=t._$gL,this._$B0=t._$B0,this._$z0=t._$z0,this._$qT=t._$qT,this.reflectX=t.reflectX,this.reflectY=t.reflectY},g.prototype._$F0=function(t){this._$fL=t._$_T(),this._$gL=t._$_T(),this._$B0=t._$_T(),this._$z0=t._$_T(),this._$qT=t._$_T(),t.getFormatVersion()>=j.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this.reflectX=t._$po(),this.reflectY=t._$po())},g.prototype._$e=function(){};var v=function(){};function b(){n||(this.x=null,this.y=null,this.width=null,this.height=null)}function w(){}function T(){n||(this.x=null,this.y=null)}function S(){n||(this._$gP=null,this._$dr=null,this._$GS=null,this._$qb=null,this._$Lb=null,this._$mS=null,this.clipID=null,this.clipIDList=new Array)}function P(){n||(this._$Eb=P._$ps,this._$lT=1,this._$C0=1,this._$tT=1,this._$WL=1,this.culling=!1,this.matrix4x4=new Float32Array(16),this.premultipliedAlpha=!1,this.anisotropy=0,this.clippingProcess=P.CLIPPING_PROCESS_NONE,this.clipBufPre_clipContextMask=null,this.clipBufPre_clipContextDraw=null,this.CHANNEL_COLORS=new Array)}function x(){n||(this.a=1,this.r=1,this.g=1,this.b=1,this.scale=1,this._$ho=1,this.blendMode=at.L2D_COLOR_BLEND_MODE_MULT)}function L(){n||(this._$kP=null,this._$dr=null,this._$Ai=!0,this._$mS=null)}function E(){}function O(){n||(this._$VP=0,this._$wL=null,this._$GP=null,this._$8o=O._$ds,this._$2r=-1,this._$O2=0,this._$ri=0)}function M(){}function A(){n||(this._$Ob=null)}function D(){this.m=new Float32Array(16),this.identity()}function I(t){n||nt.prototype.constructor.call(this,t)}function C(){n||(this._$7=1,this._$f=0,this._$H=0,this._$g=1,this._$k=0,this._$w=0,this._$hi=STATE_IDENTITY,this._$Z=_$pS)}function R(){n||(s.prototype.constructor.call(this),this.motions=new Array,this._$7r=null,this._$7r=R._$Co++,this._$D0=30,this._$yT=0,this._$E=!0,this.loopFadeIn=!0,this._$AS=-1,_$a0())}function F(){this._$P=new Float32Array(100),this.size=0}function N(){this._$4P=null,this._$I0=null,this._$RP=null}function k(){}function j(){}function B(t){n||(this._$QT=!0,this._$co=-1,this._$qo=0,this._$pb=new Array(B._$is),this._$_2=new Float32Array(B._$is),this._$vr=new Float32Array(B._$is),this._$Rr=new Float32Array(B._$is),this._$Or=new Float32Array(B._$is),this._$fs=new Float32Array(B._$is),this._$Js=new Array(B._$is),this._$3S=new Array,this._$aS=new Array,this._$Bo=null,this._$F2=new Array,this._$db=new Array,this._$8b=new Array,this._$Hr=new Array,this._$Ws=null,this._$Vs=null,this._$Er=null,this._$Es=new Int16Array(k._$Qb),this._$ZP=new Float32Array(2*k._$1r),this._$Ri=t,this._$b0=B._$HP++,this.clipManager=null,this.dp_webgl=null)}function U(){}function G(){n||(this._$12=null,this._$bb=null,this._$_L=null,this._$jo=null,this._$iL=null,this._$0L=null,this._$Br=null,this._$Dr=null,this._$Cb=null,this._$mr=null,this._$_L=Y.STATE_FIRST,this._$Br=4e3,this._$Dr=100,this._$Cb=50,this._$mr=150,this._$jo=!0,this._$iL="PARAM_EYE_L_OPEN",this._$0L="PARAM_EYE_R_OPEN")}v._$ni=function(t,e,n,r,i,o,s,a,u){var c=s*o-a*i;if(0==c)return null;var l,h=((t-n)*o-(e-r)*i)/c;return l=0!=i?(t-n-h*s)/i:(e-r-h*a)/o,isNaN(l)&&(l=(t-n-h*s)/i,isNaN(l)&&(l=(e-r-h*a)/o),isNaN(l)&&(console.log("a is NaN @UtVector#_$ni() "),console.log("v1x : "+i),console.log("v1x != 0 ? "+(0!=i)))),null==u?new Array(l,h):(u[0]=l,u[1]=h,u)},b.prototype._$8P=function(){return this.x+.5*this.width},b.prototype._$6P=function(){return this.y+.5*this.height},b.prototype._$EL=function(){return this.x+this.width},b.prototype._$5T=function(){return this.y+this.height},b.prototype._$jL=function(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r},b.prototype._$jL=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},b.prototype.contains=function(t,e){return this.x<=this.x&&this.y<=this.y&&this.x<=this.x+this.width&&this.y<=this.y+this.height},b.prototype.expand=function(t,e){this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e},w._$Z2=function(t,e,n,r){var i=e._$Q2(t,n),o=t._$vs(),s=t._$Tr();if(e._$zr(o,s,i),i<=0)return r[o[0]];if(1==i)return(a=r[o[0]])+((u=r[o[1]])-a)*(h=s[0])|0;if(2==i){var a=r[o[0]],u=r[o[1]],c=r[o[2]],l=r[o[3]],h=s[0],f=s[1];return(w=a+(u-a)*h|0)+((c+(l-c)*h|0)-w)*f|0}if(3==i){var _=r[o[0]],p=r[o[1]],d=r[o[2]],$=r[o[3]],y=r[o[4]],g=r[o[5]],v=r[o[6]],m=r[o[7]],b=(h=s[0],f=s[1],s[2]);return(w=(a=_+(p-_)*h|0)+((u=d+($-d)*h|0)-a)*f|0)+(((c=y+(g-y)*h|0)+((l=v+(m-v)*h|0)-c)*f|0)-w)*b|0}if(4==i){var w,T=r[o[0]],S=r[o[1]],P=r[o[2]],x=r[o[3]],L=r[o[4]],E=r[o[5]],O=r[o[6]],M=r[o[7]],A=r[o[8]],D=r[o[9]],I=r[o[10]],C=r[o[11]],R=r[o[12]],F=r[o[13]],N=r[o[14]],k=r[o[15]],j=(h=s[0],f=s[1],b=s[2],s[3]);return(w=(a=(_=T+(S-T)*h|0)+((p=P+(x-P)*h|0)-_)*f|0)+((u=(d=L+(E-L)*h|0)+(($=O+(M-O)*h|0)-d)*f|0)-a)*b|0)+(((c=(y=A+(D-A)*h|0)+((g=I+(C-I)*h|0)-y)*f|0)+((l=(v=R+(F-R)*h|0)+((m=N+(k-N)*h|0)-v)*f|0)-c)*b|0)-w)*j|0}for(var B=1<<i,U=new Float32Array(B),G=0;G<B;G++){for(var Y=G,V=1,z=0;z<i;z++)V*=Y%2==0?1-s[z]:s[z],Y/=2;U[G]=V}for(var H=new Float32Array(B),X=0;X<B;X++)H[X]=r[o[X]];var W=0;for(X=0;X<B;X++)W+=U[X]*H[X];return W+.5|0},w._$br=function(t,e,n,r){var i=e._$Q2(t,n),o=t._$vs(),s=t._$Tr();if(e._$zr(o,s,i),i<=0)return r[o[0]];if(1==i)return(a=r[o[0]])+((u=r[o[1]])-a)*s[0];if(2==i){var a=r[o[0]],u=r[o[1]],c=r[o[2]],l=r[o[3]],h=s[0];return(1-(m=s[1]))*(a+(u-a)*h)+m*(c+(l-c)*h)}if(3==i){var f=r[o[0]],_=r[o[1]],p=r[o[2]],d=r[o[3]],$=r[o[4]],y=r[o[5]],g=r[o[6]],v=r[o[7]],m=(h=s[0],s[1]);return(1-(N=s[2]))*((1-m)*(f+(_-f)*h)+m*(p+(d-p)*h))+N*((1-m)*($+(y-$)*h)+m*(g+(v-g)*h))}if(4==i){var b=r[o[0]],w=r[o[1]],T=r[o[2]],S=r[o[3]],P=r[o[4]],x=r[o[5]],L=r[o[6]],E=r[o[7]],O=r[o[8]],M=r[o[9]],A=r[o[10]],D=r[o[11]],I=r[o[12]],C=r[o[13]],R=r[o[14]],F=r[o[15]],N=(h=s[0],m=s[1],s[2]),k=s[3];return(1-k)*((1-N)*((1-m)*(b+(w-b)*h)+m*(T+(S-T)*h))+N*((1-m)*(P+(x-P)*h)+m*(L+(E-L)*h)))+k*((1-N)*((1-m)*(O+(M-O)*h)+m*(A+(D-A)*h))+N*((1-m)*(I+(C-I)*h)+m*(R+(F-R)*h)))}for(var j=1<<i,B=new Float32Array(j),U=0;U<j;U++){for(var G=U,Y=1,V=0;V<i;V++)Y*=G%2==0?1-s[V]:s[V],G/=2;B[U]=Y}for(var z=new Float32Array(j),H=0;H<j;H++)z[H]=r[o[H]];var X=0;for(H=0;H<j;H++)X+=B[H]*z[H];return X},w._$Vr=function(t,e,n,r,i,o,s,a){var u=e._$Q2(t,n),c=t._$vs(),l=t._$Tr();e._$zr(c,l,u);var h=2*r,f=s;if(u<=0){var _=i[c[0]];if(2==a&&0==s)E._$jT(_,0,o,0,h);else for(var p=0;p<h;)o[f]=_[p++],o[f+1]=_[p++],f+=a}else if(1==u){_=i[c[0]];var d=i[c[1]],$=1-(v=l[0]);for(p=0;p<h;)o[f]=_[p]*$+d[p]*v,++p,o[f+1]=_[p]*$+d[p]*v,++p,f+=a}else if(2==u){_=i[c[0]],d=i[c[1]];var y=i[c[2]],g=i[c[3]],v=l[0],m=(G=1-(I=l[1]))*($=1-v),b=G*v,w=I*$,T=I*v;for(p=0;p<h;)o[f]=m*_[p]+b*d[p]+w*y[p]+T*g[p],++p,o[f+1]=m*_[p]+b*d[p]+w*y[p]+T*g[p],++p,f+=a}else if(3==u){var S=i[c[0]],P=i[c[1]],x=i[c[2]],L=i[c[3]],O=i[c[4]],M=i[c[5]],A=i[c[6]],D=i[c[7]],I=(v=l[0],l[1]),C=(Y=1-(st=l[2]))*(G=1-I)*($=1-v),R=Y*G*v,F=Y*I*$,N=Y*I*v,k=st*G*$,j=st*G*v,B=st*I*$,U=st*I*v;for(p=0;p<h;)o[f]=C*S[p]+R*P[p]+F*x[p]+N*L[p]+k*O[p]+j*M[p]+B*A[p]+U*D[p],++p,o[f+1]=C*S[p]+R*P[p]+F*x[p]+N*L[p]+k*O[p]+j*M[p]+B*A[p]+U*D[p],++p,f+=a}else if(4==u){var G,Y,V=i[c[0]],z=i[c[1]],H=i[c[2]],X=i[c[3]],W=i[c[4]],q=i[c[5]],J=i[c[6]],K=i[c[7]],Q=i[c[8]],Z=i[c[9]],tt=i[c[10]],et=i[c[11]],nt=i[c[12]],rt=i[c[13]],it=i[c[14]],ot=i[c[15]],st=(v=l[0],I=l[1],l[2]),at=l[3],ut=1-at,ct=ut*(Y=1-st)*(G=1-I)*($=1-v),lt=ut*Y*G*v,ht=ut*Y*I*$,ft=ut*Y*I*v,_t=ut*st*G*$,pt=ut*st*G*v,dt=ut*st*I*$,$t=ut*st*I*v,yt=at*Y*G*$,gt=at*Y*G*v,vt=at*Y*I*$,mt=at*Y*I*v,bt=at*st*G*$,wt=at*st*G*v,Tt=at*st*I*$,St=at*st*I*v;for(p=0;p<h;)o[f]=ct*V[p]+lt*z[p]+ht*H[p]+ft*X[p]+_t*W[p]+pt*q[p]+dt*J[p]+$t*K[p]+yt*Q[p]+gt*Z[p]+vt*tt[p]+mt*et[p]+bt*nt[p]+wt*rt[p]+Tt*it[p]+St*ot[p],++p,o[f+1]=ct*V[p]+lt*z[p]+ht*H[p]+ft*X[p]+_t*W[p]+pt*q[p]+dt*J[p]+$t*K[p]+yt*Q[p]+gt*Z[p]+vt*tt[p]+mt*et[p]+bt*nt[p]+wt*rt[p]+Tt*it[p]+St*ot[p],++p,f+=a}else{for(var Pt=1<<u,xt=new Float32Array(Pt),Lt=0;Lt<Pt;Lt++){for(var Et=Lt,Ot=1,Mt=0;Mt<u;Mt++)Ot*=Et%2==0?1-l[Mt]:l[Mt],Et/=2;xt[Lt]=Ot}for(var At=new Float32Array(Pt),Dt=0;Dt<Pt;Dt++)At[Dt]=i[c[Dt]];for(p=0;p<h;){var It=0,Ct=0,Rt=p+1;for(Dt=0;Dt<Pt;Dt++)It+=xt[Dt]*At[Dt][p],Ct+=xt[Dt]*At[Dt][Rt];p+=2,o[f]=It,o[f+1]=Ct,f+=a}}},T.prototype._$HT=function(t,e){this.x=t,this.y=e},T.prototype._$HT=function(t){this.x=t.x,this.y=t.y},S._$ur=-2,S._$ES=500,S._$wb=2,S._$8S=3,S._$52=S._$ES,S._$R2=S._$ES,S._$or=function(){return S._$52},S._$Pr=function(){return S._$R2},S.prototype.convertClipIDForV2_11=function(t){var e=[];return null==t||0==t.length?null:/,/.test(t)?e=t.id.split(","):(e.push(t.id),e)},S.prototype._$F0=function(t){this._$gP=t._$nP(),this._$dr=t._$nP(),this._$GS=t._$nP(),this._$qb=t._$6L(),this._$Lb=t._$cS(),this._$mS=t._$Tb(),t.getFormatVersion()>=j._$T7?(this.clipID=t._$nP(),this.clipIDList=this.convertClipIDForV2_11(this.clipID)):this.clipIDList=[],this._$MS(this._$Lb)},S.prototype.getClipIDList=function(){return this.clipIDList},S.prototype.init=function(t){},S.prototype._$Nr=function(t,e){if(e._$IS[0]=!1,e._$Us=w._$Z2(t,this._$GS,e._$IS,this._$Lb),at._$Zs);else if(e._$IS[0])return;e._$7s=w._$br(t,this._$GS,e._$IS,this._$mS)},S.prototype._$2b=function(t,e){},S.prototype.getDrawDataID=function(){return this._$gP},S.prototype._$j2=function(t){this._$gP=t},S.prototype.getOpacity=function(t,e){return e._$7s},S.prototype._$zS=function(t,e){return e._$Us},S.prototype._$MS=function(t){for(var e=t.length-1;e>=0;--e){var n=t[e];n<S._$52?S._$52=n:n>S._$R2&&(S._$R2=n)}},S.prototype.getTargetBaseDataID=function(){return this._$dr},S.prototype._$gs=function(t){this._$dr=t},S.prototype._$32=function(){return null!=this._$dr&&this._$dr!=yt._$2o()},S.prototype.preDraw=function(t,e,n){},S.prototype.draw=function(t,e,n){},S.prototype.getType=function(){},S.prototype._$B2=function(t,e,n){},P._$ps=32,P.CLIPPING_PROCESS_NONE=0,P.CLIPPING_PROCESS_OVERWRITE_ALPHA=1,P.CLIPPING_PROCESS_MULTIPLY_ALPHA=2,P.CLIPPING_PROCESS_DRAW=3,P.CLIPPING_PROCESS_CLEAR_ALPHA=4,P.prototype.setChannelFlagAsColor=function(t,e){this.CHANNEL_COLORS[t]=e},P.prototype.getChannelFlagAsColor=function(t){return this.CHANNEL_COLORS[t]},P.prototype._$ZT=function(){},P.prototype._$Uo=function(t,e,n,r,i,o,s){},P.prototype._$Rs=function(){return-1},P.prototype._$Ds=function(t){},P.prototype.setBaseColor=function(t,e,n,r){t<0?t=0:t>1&&(t=1),e<0?e=0:e>1&&(e=1),n<0?n=0:n>1&&(n=1),r<0?r=0:r>1&&(r=1),this._$lT=t,this._$C0=e,this._$tT=n,this._$WL=r},P.prototype._$WP=function(t){this.culling=t},P.prototype.setMatrix=function(t){for(var e=0;e<16;e++)this.matrix4x4[e]=t[e]},P.prototype._$IT=function(){return this.matrix4x4},P.prototype.setPremultipliedAlpha=function(t){this.premultipliedAlpha=t},P.prototype.isPremultipliedAlpha=function(){return this.premultipliedAlpha},P.prototype.setAnisotropy=function(t){this.anisotropy=t},P.prototype.getAnisotropy=function(){return this.anisotropy},P.prototype.getClippingProcess=function(){return this.clippingProcess},P.prototype.setClippingProcess=function(t){this.clippingProcess=t},P.prototype.setClipBufPre_clipContextForMask=function(t){this.clipBufPre_clipContextMask=t},P.prototype.getClipBufPre_clipContextMask=function(){return this.clipBufPre_clipContextMask},P.prototype.setClipBufPre_clipContextForDraw=function(t){this.clipBufPre_clipContextDraw=t},P.prototype.getClipBufPre_clipContextDraw=function(){return this.clipBufPre_clipContextDraw},L._$ur=-2,L._$c2=1,L._$_b=2,L.prototype._$F0=function(t){this._$kP=t._$nP(),this._$dr=t._$nP()},L.prototype.readV2_opacity=function(t){t.getFormatVersion()>=j.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this._$mS=t._$Tb())},L.prototype.init=function(t){},L.prototype._$Nr=function(t,e){},L.prototype.interpolateOpacity=function(t,e,n,r){null==this._$mS?n.setInterpolatedOpacity(1):n.setInterpolatedOpacity(w._$br(t,e,r,this._$mS))},L.prototype._$2b=function(t,e){},L.prototype._$nb=function(t,e,n,r