From ccbe0d0897bef83569295df77bc16f8ffd2a305f Mon Sep 17 00:00:00 2001 From: xiazeyu_2011 Date: Sun, 31 Dec 2017 00:17:44 +0800 Subject: [PATCH] feat(Webpack): lazy load and chunks --- .babelrc | 11 + .../CODE_OF_CONDUCT.md | 0 .github/CONTRIBUTING.md | 111 + .../ISSUE_TEMPLATE.md | 0 .../PULL_REQUEST_TEMPLATE.md | 0 .gitignore | 3 + README.md | 208 + dev.html | 68 + index.js | 2 +- lib/clL2D.0.min.js | 2 + lib/clL2D.min.js | 4 +- lib/clL2D.min.js.map | 1 - lib/manifest.json | 4 + lib/stats.html | 2 +- package-lock.json | 206 +- package.json | 15 +- src/SettingsTip.txt | 22 + src/cDefine.js | 45 + src/cLive2DApp.js | 405 + src/cManager.js | 100 + src/cModel.js | 452 ++ src/index.js | 30 +- src/lib/L2DMatrix44Study.txt | 17 + src/lib/Live2DFramework.js | 1391 ++++ src/lib/PlatformManager.js | 216 + src/lib/canvasManager.js | 26 + src/lib/configManager.js | 42 + src/lib/live2d.core.js | 7030 +++++++++++++++++ src/lib/webglcontext.js | 30 + src/note.txt | 1 + src/tmplate/innerHTML.dev.html | 15 + src/tmplate/innerHTML.html | 12 + src/utils/MatrixStack.js | 136 + src/utils/ModelSettingJson.js | 388 + webpack.config.dev.js | 53 - webpack.config.prod.js | 51 - wp.conf/webpack.dev.conf.js | 69 + wp.conf/webpack.prod.conf.js | 71 + 38 files changed, 11092 insertions(+), 147 deletions(-) create mode 100644 .babelrc rename CODE_OF_CONDUCT.md => .github/CODE_OF_CONDUCT.md (100%) create mode 100644 .github/CONTRIBUTING.md rename ISSUE_TEMPLATE.md => .github/ISSUE_TEMPLATE.md (100%) rename PULL_REQUEST_TEMPLATE.md => .github/PULL_REQUEST_TEMPLATE.md (100%) create mode 100644 README.md create mode 100644 dev.html create mode 100644 lib/clL2D.0.min.js delete mode 100644 lib/clL2D.min.js.map create mode 100644 lib/manifest.json create mode 100644 src/SettingsTip.txt create mode 100644 src/cDefine.js create mode 100644 src/cLive2DApp.js create mode 100644 src/cManager.js create mode 100644 src/cModel.js create mode 100644 src/lib/L2DMatrix44Study.txt create mode 100644 src/lib/Live2DFramework.js create mode 100644 src/lib/PlatformManager.js create mode 100644 src/lib/canvasManager.js create mode 100644 src/lib/configManager.js create mode 100644 src/lib/live2d.core.js create mode 100644 src/lib/webglcontext.js create mode 100644 src/note.txt create mode 100644 src/tmplate/innerHTML.dev.html create mode 100644 src/tmplate/innerHTML.html create mode 100644 src/utils/MatrixStack.js create mode 100644 src/utils/ModelSettingJson.js delete mode 100644 webpack.config.dev.js delete mode 100644 webpack.config.prod.js create mode 100644 wp.conf/webpack.dev.conf.js create mode 100644 wp.conf/webpack.prod.conf.js diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..071c9af --- /dev/null +++ b/.babelrc @@ -0,0 +1,11 @@ +{ + "presets": [ + ["env",{ + "debug": true + }] + ], + "plugins": [ + "syntax-dynamic-import" + ] +} + diff --git a/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md similarity index 100% rename from CODE_OF_CONDUCT.md rename to .github/CODE_OF_CONDUCT.md diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..4baef8c --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,111 @@ +# Contributing + + +## Issues + +- Most of the time, if this plugin is not working correctly for you it is a simple **configuration** issue. + +- **Search on the internet** and **among closed issues** in advance would do a great help for us. + +- Please **keep focus on the topic** of any issue, and use **English** as far as possible so that everyone will understand you. + +- **If you have discovered a bug or have a feature suggestion, feel free to create an issue on Github.** + + +## Contributing directly to the source code + +**Working on your first Pull Request?** You can learn how from this *free* series +[How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github) + +See workflow for more code developing information. + + +## Submitting Changes + +After getting some feedback, push to your fork and submit a pull request. We +may suggest some changes or improvements or alternatives, but for small changes +your pull request should be accepted quickly. + +Some things that will increase the chance that your pull request is accepted: + +- Follow the existing coding style +- Write a good commit message use `npm run commit` +- Make sure that your code can work properly. + + +## Documentation + +live2d-widget.js's feature is now becoming richer and richer, and documentation is a huge time sink. +We greatly appreciate any time spent fixing typos or clarifying sections in the +documentation. + +From opening a bug report to creating a pull request: every contribution is +appreciated and welcome. If you're planning to implement a new feature or change +the api please create an issue first. This way we can ensure that your precious +work is not in vain. + + + +## Workflow: modify the code + +- We use **[EditorConfig](http://editorconfig.org/)** to define and maintain consistent coding styles, so have a look first. + +- Please use the latest version of Node.js to work with. + +### 1. Install environments + +- Use `npm run inst:dev` to install all the environments. + +### 2. Make changes + +- Modify files in `/src/` + +- Use `npm run build:dev` to build client js files **with debug files and watchdog.**. + +### 3. Debug until you make sure that your code works properly. + +### 4. Commit those changes + +- **Use `npm run build:prod` to build final client js.** +**Important!!! The step must be done before commit!!!** + +- Use `git add *`, or choose the file you want to commit. + +- Use `npm run commit` to commit, **Never use `git commit`!!!** + +### 5. Push the changes + +- Use `git push` to push the changes to the github server. + +### 6. Push to the webbranch + +- Use `push-gh-pages.bat` or `push-gh-pages.sh` + + +## Workflow(author): Release a new version + +*Let the Collaborator or author do it.* + +### 1. Bump the version + +- bump the version in `package.json` + +- delete `package-lock.json` + +- run `npm install` to generate new `package-lock.json` + +### 2. Commit package.json and package-lock.json + +- Use `npm run commit` to commit, **Never use `git commit`!!!** + +### 3. Tag and release a new version + +- In the Github page. + +### 4. Update changelog + +- Use `npm run changelog` + +### 5. Publish the package to npm. + +- Use `npm publish` to publish it. diff --git a/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md similarity index 100% rename from ISSUE_TEMPLATE.md rename to .github/ISSUE_TEMPLATE.md diff --git a/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from PULL_REQUEST_TEMPLATE.md rename to .github/PULL_REQUEST_TEMPLATE.md diff --git a/.gitignore b/.gitignore index 5148e52..356ccd0 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,6 @@ jspm_packages # Optional REPL history .node_repl_history + +# Developing folder +dev diff --git a/README.md b/README.md new file mode 100644 index 0000000..a562591 --- /dev/null +++ b/README.md @@ -0,0 +1,208 @@ +[![npm][npm]][npm-url] +[![deps][deps]][deps-url] +[![devdeps][devdeps]][devdeps-url] + +[![downloads][downloads]][downloads-url] +[![downloads-month][downloads-month]][downloads-month-url] + +[![GitHub stars][GitHub stars]][GitHub stars-url] +[![GitHub forks][GitHub forks]][GitHub forks-url] +[![GitHub issues][GitHub issues]][GitHub issues-url] + +[![Commitizen friendly][Commitizen friendly]][Commitizen friendly-url] +[![PRs Welcome][PRs Welcome]][PRs Welcome-url] +[![license][license]][license-url] + + +# live2d-widget.js + +[简体中文文档](./README.zh-CN.md) + +
+ +Add the Sseexxyyy live2d to your webpages! + +Demo: [TBD.](javascript:void(0);) + +Online generator: [TBD.](javascript:void(0);) + + +## Installation + +### Hexo + +Please visit [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) for the hexo plugin. + +### Webpack + +Install the module: + +``` +npm install --save live2d-widet.js +``` + +Import the module: + +```js +// using as es modules +import 'live2d-widget.js'; +``` + +Then call the function with your config. + +```js +loadL2D({ + 'config1': 'value1', + 'config2': 'value2', +}); +``` + +### Online + +TBD. + +## Settings + +See src/SettingTip.txt + +
Current supported models:
+ + - `chitose` + - `Epsilon2.1` + - `Gantzert_Felixander` + - `haru01` + - `haru02` + - `haruto` + - `hibiki` + - `hijiki` + - `izumi` + - `koharu` + - `miku` + - `nico` + - `ni-j` + - `nipsilon` + - `nito` + - `shizuku` + - `tororo` + - `tsumiki` + - `Unitychan` + - `wanko` + - `z16` + +
+ +## Custom model + +1. Create a `live2d_models` folder at your blog's root directory. + +2. Create a folder by the name of your model. + +3. Copy your model to this folder. + +**Attention! The path of the model's json must be `/live2d_models/{name}/{name}.model.json`** + +
An Example:
+ +Your model is named `mymiku`. + +Then, create a folder at `/` (Which should exists `_config.yml` 、`sources` 、 `themes` ) named `mymiku`. + +Copy your model to `/live2d_models/mymiku/`. + +Up to now, there should be `mymiku.model.json` in the directory of `/live2d_models/mymiku/`. + +
+ +
~The problem was once releated to [(#22)](https://github.com/EYHN/hexo-helper-live2d/issues/22).~ + +
+ +Enjoy!:beer: + +> This is my first hexo plugin, star :star: and watch :eyeglasses:, pull request is also welcomed. + +Github: [https://github.com/EYHN/hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) + +issues: [https://github.com/EYHN/hexo-helper-live2d/issues](https://github.com/EYHN/hexo-helper-live2d/issues) + + +## Contribute + +**Please pay enough attention to this document if you want to commit your changes or submit issues.** + +[CONTRIBUTING](./CONTRIBUTING.md) + +## Releated projects + +- [Cubism SDK WebGL 2.1](http://sites.cybernoids.jp/cubism-sdk2_e/webgl2-1) + +- [pixi-live2d](https://github.com/avgjs/pixi-live2d) + +- [CubismJsComponents](https://github.com/Live2D/CubismJsComponents) + +- [live2d-widget.js](https://github.com/xiazeyu/live2d-widget.js) + +- [hexo-helper-live2d](https://github.com/EYHN/hexo-helper-live2d) + + +## About me + +[![Author][author]][author-url] + +[![QQ][qq]][qq-url] + +[![Email][email]][email-url] + + +## Imported + +[![current-device][current-device]][current-device-url] + +
+ +Open sourced under the GPL v2.0 license. + +[npm]: https://badge.fury.io/js/hexo-helper-live2d.svg?label=hexo-helper-live2d +[npm-url]: https://www.npmjs.com/package/hexo-helper-live2d + +[deps]: https://img.shields.io/david/EYHN/hexo-helper-live2d.svg +[deps-url]: javascript:void(0); + +[devdeps]: https://img.shields.io/david/dev/EYHN/hexo-helper-live2d.svg +[devdeps-url]: javascript:void(0); + +[license]: https://img.shields.io/github/license/EYHN/hexo-helper-live2d.svg +[license-url]: https://github.com/EYHN/hexo-helper-live2d/blob/master/LICENSE + +[PRs Welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square +[PRs Welcome-url]: http://makeapullrequest.com + +[downloads]: https://img.shields.io/npm/dt/hexo-helper-live2d.svg +[downloads-url]: https://www.npmjs.com/package/hexo-helper-live2d + +[downloads-month]: https://img.shields.io/npm/dm/hexo-helper-live2d.svg +[downloads-month-url]: https://www.npmjs.com/package/hexo-helper-live2d + +[Commitizen friendly]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg +[Commitizen friendly-url]: http://commitizen.github.io/cz-cli/ + +[GitHub stars]: https://img.shields.io/github/stars/EYHN/hexo-helper-live2d.svg +[GitHub stars-url]: https://github.com/EYHN/hexo-helper-live2d/stargazers + +[GitHub forks]: https://img.shields.io/github/forks/EYHN/hexo-helper-live2d.svg +[GitHub forks-url]: https://github.com/EYHN/hexo-helper-live2d/network + +[GitHub issues]: https://img.shields.io/github/issues/EYHN/hexo-helper-live2d.svg +[GitHub issues-url]: https://github.com/EYHN/hexo-helper-live2d/issues + +[author]: https://img.shields.io/badge/author-cneyhn-green.svg +[author-url]: https://delusion.coding.me/ + +[qq]: https://img.shields.io/badge/QQ-1106996185-blue.svg +[qq-url]: http://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes + +[email]: https://img.shields.io/badge/Emali%20me-cneyhn@gmail.com-green.svg +[email-url]: mailto:cneyhn@gmail.com + +[current-device]: https://img.shields.io/npm/v/current-device.svg?label=current-device +[current-device-url]: https://github.com/matthewhudson/current-device diff --git a/dev.html b/dev.html new file mode 100644 index 0000000..5965aad --- /dev/null +++ b/dev.html @@ -0,0 +1,68 @@ + + + + + Live2d Test Env + + + + +
+ +
+ + + width:
+ height:
+ modelName:
+ headPos:
+ scaling:
+ opacityDefault:
+ opacityHover:
+ + + + diff --git a/index.js b/index.js index bb0a047..d4bb2a1 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -module.exports = require('./lib'); +module.exports = require('./lib/clL2D.min'); diff --git a/lib/clL2D.0.min.js b/lib/clL2D.0.min.js new file mode 100644 index 0000000..a16f0ae --- /dev/null +++ b/lib/clL2D.0.min.js @@ -0,0 +1,2 @@ +/*! https://github.com/xiazeyu/live2d-widget.js~built@2017-12-31 00:14:43 */ +webpackJsonp([0],[,,,function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),e(6);var r=(e(10),e(0),e(4),e(12)),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e(8),e(7),e(5),new o.default;console.log("cLive2DApp.js is loaded."),i.default=function(){console.log("Finally!~")}},function(t,i,e){"use strict";function r(){this.live2DModel=null,this.modelMatrix=null,this.eyeBlink=null,this.physics=null,this.pose=null,this.debugMode=!1,this.initialized=!1,this.updating=!1,this.alpha=1,this.accAlpha=0,this.lipSync=!1,this.lipSyncValue=0,this.accelX=0,this.accelY=0,this.accelZ=0,this.dragX=0,this.dragY=0,this.startTimeMSec=null,this.mainMotionManager=new h,this.expressionManager=new h,this.motions={},this.expressions={},this.isTexLoaded=!1}function o(){AMotion.prototype.constructor.call(this),this.paramList=new Array}function s(){this.id="",this.type=-1,this.value=null}function n(){this.nextBlinkTime=null,this.stateStartTime=null,this.blinkIntervalMsec=null,this.eyeState=y.STATE_FIRST,this.blinkIntervalMsec=4e3,this.closingMotionMsec=100,this.closedMotionMsec=50,this.openingMotionMsec=150,this.closeIfZero=!0,this.eyeID_L="PARAM_EYE_L_OPEN",this.eyeID_R="PARAM_EYE_R_OPEN"}function _(){this.tr=new Float32Array(16),this.identity()}function a(t,i){_.prototype.constructor.call(this),this.width=t,this.height=i}function h(){MotionQueueManager.prototype.constructor.call(this),this.currentPriority=null,this.reservePriority=null,this.super=MotionQueueManager.prototype}function $(){this.physicsList=new Array,this.startTimeMSec=UtSystem.getUserTimeMSec()}function l(){this.lastTime=0,this.lastModel=null,this.partsGroups=new Array}function u(t){this.paramIndex=-1,this.partsIndex=-1,this.link=null,this.id=t}function p(){this.EPSILON=.01,this.faceTargetX=0,this.faceTargetY=0,this.faceX=0,this.faceY=0,this.faceVX=0,this.faceVY=0,this.lastTimeSec=0}function f(){_.prototype.constructor.call(this),this.screenLeft=null,this.screenRight=null,this.screenTop=null,this.screenBottom=null,this.maxLeft=null,this.maxRight=null,this.maxTop=null,this.maxBottom=null}function c(){}var g=0;r.prototype.getModelMatrix=function(){return this.modelMatrix},r.prototype.setAlpha=function(t){t>.999&&(t=1),t<.001&&(t=0),this.alpha=t},r.prototype.getAlpha=function(){return this.alpha},r.prototype.isInitialized=function(){return this.initialized},r.prototype.setInitialized=function(t){this.initialized=t},r.prototype.isUpdating=function(){return this.updating},r.prototype.setUpdating=function(t){this.updating=t},r.prototype.getLive2DModel=function(){return this.live2DModel},r.prototype.setLipSync=function(t){this.lipSync=t},r.prototype.setLipSyncValue=function(t){this.lipSyncValue=t},r.prototype.setAccel=function(t,i,e){this.accelX=t,this.accelY=i,this.accelZ=e},r.prototype.setDrag=function(t,i){this.dragX=t,this.dragY=i},r.prototype.getMainMotionManager=function(){return this.mainMotionManager},r.prototype.getExpressionManager=function(){return this.expressionManager},r.prototype.loadModelData=function(t,i){var e=c.getPlatformManager();this.debugMode&&e.log("Load model : "+t);var r=this;e.loadLive2DModel(t,function(t){if(r.live2DModel=t,r.live2DModel.saveParam(),0!=Live2D.getError())return void console.error("Error : Failed to loadModelData().");r.modelMatrix=new a(r.live2DModel.getCanvasWidth(),r.live2DModel.getCanvasHeight()),r.modelMatrix.setWidth(2),r.modelMatrix.setCenterPosition(0,0),i(r.live2DModel)})},r.prototype.loadTexture=function(t,i,e){g++;var r=c.getPlatformManager();this.debugMode&&r.log("Load Texture : "+i);var o=this;r.loadTexture(this.live2DModel,t,i,function(){g--,0==g&&(o.isTexLoaded=!0),"function"==typeof e&&e()})},r.prototype.loadMotion=function(t,i,e){var r=c.getPlatformManager();this.debugMode&&r.log("Load Motion : "+i);var o=null,s=this;r.loadBytes(i,function(i){o=Live2DMotion.loadMotion(i),null!=t&&(s.motions[t]=o),e(o)})},r.prototype.loadExpression=function(t,i,e){var r=c.getPlatformManager();this.debugMode&&r.log("Load Expression : "+i);var s=this;r.loadBytes(i,function(i){null!=t&&(s.expressions[t]=o.loadJson(i)),"function"==typeof e&&e()})},r.prototype.loadPose=function(t,i){var e=c.getPlatformManager();this.debugMode&&e.log("Load Pose : "+t);var r=this;try{e.loadBytes(t,function(t){r.pose=l.load(t),"function"==typeof i&&i()})}catch(t){console.warn(t)}},r.prototype.loadPhysics=function(t){var i=c.getPlatformManager();this.debugMode&&i.log("Load Physics : "+t);var e=this;try{i.loadBytes(t,function(t){e.physics=$.load(t)})}catch(t){console.warn(t)}},r.prototype.hitTestSimple=function(t,i,e){if(null===this.live2DModel)return!1;var r=this.live2DModel.getDrawDataIndex(t);if(r<0)return!1;for(var o=this.live2DModel.getTransformedPoints(r),s=this.live2DModel.getCanvasWidth(),n=0,_=this.live2DModel.getCanvasHeight(),a=0,h=0;hn&&(n=$),l<_&&(_=l),l>a&&(a=l)}var u=this.modelMatrix.invertTransformX(i),p=this.modelMatrix.invertTransformY(e);return s<=u&&u<=n&&_<=p&&p<=a},o.prototype=new AMotion,o.EXPRESSION_DEFAULT="DEFAULT",o.TYPE_SET=0,o.TYPE_ADD=1,o.TYPE_MULT=2,o.loadJson=function(t){var i=new o,e=c.getPlatformManager(),r=e.jsonParseFromBytes(t);if(i.setFadeIn(parseInt(r.fade_in)>0?parseInt(r.fade_in):1e3),i.setFadeOut(parseInt(r.fade_out)>0?parseInt(r.fade_out):1e3),null==r.params)return i;var n=r.params,_=n.length;i.paramList=[];for(var a=0;a<_;a++){var h=n[a],$=h.id.toString(),l=parseFloat(h.val),u=o.TYPE_ADD,p=null!=h.calc?h.calc.toString():"add";if((u="add"===p?o.TYPE_ADD:"mult"===p?o.TYPE_MULT:"set"===p?o.TYPE_SET:o.TYPE_ADD)==o.TYPE_ADD){var f=null==h.def?0:parseFloat(h.def);l-=f}else if(u==o.TYPE_MULT){var f=null==h.def?1:parseFloat(h.def);0==f&&(f=1),l/=f}var g=new s;g.id=$,g.type=u,g.value=l,i.paramList.push(g)}return i},o.prototype.updateParamExe=function(t,i,e,r){for(var s=this.paramList.length-1;s>=0;--s){var n=this.paramList[s];n.type==o.TYPE_ADD?t.addToParamFloat(n.id,n.value,e):n.type==o.TYPE_MULT?t.multParamFloat(n.id,n.value,e):n.type==o.TYPE_SET&&t.setParamFloat(n.id,n.value,e)}},n.prototype.calcNextBlink=function(){return UtSystem.getUserTimeMSec()+Math.random()*(2*this.blinkIntervalMsec-1)},n.prototype.setInterval=function(t){this.blinkIntervalMsec=t},n.prototype.setEyeMotion=function(t,i,e){this.closingMotionMsec=t,this.closedMotionMsec=i,this.openingMotionMsec=e},n.prototype.updateParam=function(t){var i,e=UtSystem.getUserTimeMSec(),r=0;switch(this.eyeState){case y.STATE_CLOSING:r=(e-this.stateStartTime)/this.closingMotionMsec,r>=1&&(r=1,this.eyeState=y.STATE_CLOSED,this.stateStartTime=e),i=1-r;break;case y.STATE_CLOSED:r=(e-this.stateStartTime)/this.closedMotionMsec,r>=1&&(this.eyeState=y.STATE_OPENING,this.stateStartTime=e),i=0;break;case y.STATE_OPENING:r=(e-this.stateStartTime)/this.openingMotionMsec,r>=1&&(r=1,this.eyeState=y.STATE_INTERVAL,this.nextBlinkTime=this.calcNextBlink()),i=r;break;case y.STATE_INTERVAL:this.nextBlinkTime=t)&&(!(this.currentPriority>=t)&&(this.reservePriority=t,!0))},h.prototype.setReservePriority=function(t){this.reservePriority=t},h.prototype.updateParam=function(t){var i=MotionQueueManager.prototype.updateParam.call(this,t);return this.isFinished()&&(this.currentPriority=0),i},h.prototype.startMotionPrio=function(t,i){return i==this.reservePriority&&(this.reservePriority=0),this.currentPriority=i,this.startMotion(t,!1)},$.load=function(t){for(var i=new $,e=c.getPlatformManager(),r=e.jsonParseFromBytes(t),o=r.physics_hair,s=o.length,n=0;n=0)break;r=s,o=t.getPartsOpacity(n),o+=e/.5,o>1&&(o=1)}}r<0&&(r=0,o=1);for(var s=0;s.15&&(a=1-.15/(1-o)),h>a&&(h=a),t.setPartsOpacity(n,h)}}},l.prototype.copyOpacityOtherParts=function(t,i){for(var e=0;eo)&&($*=o/u,l*=o/u,u=o),this.faceVX+=$,this.faceVY+=l;var f=.5*(Math.sqrt(o*o+16*o*_-8*o*_)-o),c=Math.sqrt(this.faceVX*this.faceVX+this.faceVY*this.faceVY);c>f&&(this.faceVX*=f/c,this.faceVY*=f/c),this.faceX+=this.faceVX,this.faceY+=this.faceVY}},f.prototype=new _,f.prototype.adjustTranslate=function(t,i){this.tr[0]*this.maxLeft+(this.tr[12]+t)>this.screenLeft&&(t=this.screenLeft-this.tr[0]*this.maxLeft-this.tr[12]),this.tr[0]*this.maxRight+(this.tr[12]+t)this.screenBottom&&(i=this.screenBottom-this.tr[5]*this.maxBottom-this.tr[13]);var e=[1,0,0,0,0,1,0,0,0,0,1,0,t,i,0,1];_.mul(e,this.tr,this.tr)},f.prototype.adjustScale=function(t,i,e){var r=(this.tr[0],[1,0,0,0,0,1,0,0,0,0,1,0,t,i,0,1]),o=[e,0,0,0,0,e,0,0,0,0,1,0,0,0,0,1],s=[1,0,0,0,0,1,0,0,0,0,1,0,-t,-i,0,1];_.mul(s,this.tr,this.tr),_.mul(o,this.tr,this.tr),_.mul(r,this.tr,this.tr)},f.prototype.setScreenRect=function(t,i,e,r){this.screenLeft=t,this.screenRight=i,this.screenTop=r,this.screenBottom=e},f.prototype.setMaxScreenRect=function(t,i,e,r){this.maxLeft=t,this.maxRight=i,this.maxTop=r,this.maxBottom=e},f.prototype.getScreenLeft=function(){return this.screenLeft},f.prototype.getScreenRight=function(){return this.screenRight},f.prototype.getScreenBottom=function(){return this.screenBottom},f.prototype.getScreenTop=function(){return this.screenTop},f.prototype.getMaxLeft=function(){return this.maxLeft},f.prototype.getMaxRight=function(){return this.maxRight},f.prototype.getMaxBottom=function(){return this.maxBottom},f.prototype.getMaxTop=function(){return this.maxTop},c.platformManager=null,c.getPlatformManager=function(){return c.platformManager},c.setPlatformManager=function(t){c.platformManager=t},t.exports={L2DTargetPoint:p,Live2DFramework:c,L2DViewMatrix:f,L2DPose:l,L2DPartsParam:u,L2DPhysics:$,L2DMotionManager:h,L2DModelMatrix:a,L2DMatrix44:_,EYE_STATE:y,L2DEyeBlink:n,L2DExpressionParam:s,L2DExpressionMotion:o,L2DBaseModel:r}},function(t,i,e){"use strict";var r={DEBUG_LOG:!1,DEBUG_MOUSE_LOG:!1,VIEW_LOGICAL_LEFT:-1,VIEW_LOGICAL_RIGHT:1,VIEW_LOGICAL_MAX_LEFT:-2,VIEW_LOGICAL_MAX_RIGHT:2,VIEW_LOGICAL_MAX_BOTTOM:-2,VIEW_LOGICAL_MAX_TOP:2,PRIORITY_NONE:0,PRIORITY_IDLE:1,PRIORITY_NORMAL:2,PRIORITY_FORCE:3,MOTION_GROUP_IDLE:"idle",MOTION_GROUP_TAP_BODY:"tap_body",MOTION_GROUP_FLICK_HEAD:"flick_head",MOTION_GROUP_PINCH_IN:"pinch_in",MOTION_GROUP_PINCH_OUT:"pinch_out",MOTION_GROUP_SHAKE:"shake",HIT_AREA_HEAD:"head",HIT_AREA_BODY:"body"};t.exports=r},function(t,i,e){"use strict";(function(t){!function(){function i(){At||(this._$MT=null,this._$5S=null,this._$NP=0,i._$42++,this._$5S=new Y(this))}function e(t){if(!At){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 S,at.glContext.length>at.frameBuffers.length&&(this.curFrameNo=this.getMaskRenderTexture()),this.tmpModelToViewMatrix=new R,this.tmpMatrix2=new R,this.tmpMatrixForMask=new R,this.tmpMatrixForDraw=new R,this.CHANNEL_COLORS=new Array;var i=new A;i=new A,i.r=0,i.g=0,i.b=0,i.a=1,this.CHANNEL_COLORS.push(i),i=new A,i.r=1,i.g=0,i.b=0,i.a=0,this.CHANNEL_COLORS.push(i),i=new A,i.r=0,i.g=1,i.b=0,i.a=0,this.CHANNEL_COLORS.push(i),i=new A,i.r=0,i.g=0,i.b=1,i.a=0,this.CHANNEL_COLORS.push(i);for(var e=0;eG._$T7){t._$NP|=i._$4s;throw new $t("_$gi _$C _$li , _$n0 _$_ version _$li ( SDK : "+G._$T7+" < _$f0 : "+r+" )@_$SS#loadModel()\n")}var h=o._$nP();if(r>=G._$s7){var $=o._$9T(),l=o._$9T();if(-30584!=$||-30584!=l)throw t._$NP|=i._$0s,new $t("_$gi _$C _$li , _$0 _$6 _$Ui.")}t._$KS(h);var u=t.getModelContext();u.setDrawParam(t.getDrawParam()),u.init()}catch(t){_._$Rb(t)}},i.prototype._$KS=function(t){this._$MT=t},i.prototype.getModelImpl=function(){return null==this._$MT&&(this._$MT=new p,this._$MT._$zP()),this._$MT},i.prototype.getCanvasWidth=function(){return null==this._$MT?0:this._$MT.getCanvasWidth()},i.prototype.getCanvasHeight=function(){return null==this._$MT?0:this._$MT.getCanvasHeight()},i.prototype.getParamFloat=function(t){return"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),this._$5S.getParamFloat(t)},i.prototype.setParamFloat=function(t,i,e){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(e=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1-e)+i*e)},i.prototype.addToParamFloat=function(t,i,e){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(e=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)+i*e)},i.prototype.multParamFloat=function(t,i,e){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(e=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1+(i-1)*e))},i.prototype.getParamIndex=function(t){return this._$5S.getParamIndex(u.getID(t))},i.prototype.loadParam=function(){this._$5S.loadParam()},i.prototype.saveParam=function(){this._$5S.saveParam()},i.prototype.init=function(){this._$5S.init()},i.prototype.update=function(){this._$5S.update()},i.prototype._$Rs=function(){return _._$li("_$60 _$PT _$Rs()"),-1},i.prototype._$Ds=function(t){_._$li("_$60 _$PT _$SS#_$Ds() \n")},i.prototype._$K2=function(){},i.prototype.draw=function(){},i.prototype.getModelContext=function(){return this._$5S},i.prototype._$s2=function(){return this._$NP},i.prototype._$P7=function(t,i,e,r){var o=-1,s=0,n=this;if(0!=e)if(1==t.length){var _=t[0],a=0!=n.getParamFloat(_),h=i[0],$=n.getPartsOpacity(h),l=e/r;a?($+=l)>1&&($=1):($-=l)<0&&($=0),n.setPartsOpacity(h,$)}else{for(var u=0;u=0)break;o=u;var h=i[u];s=n.getPartsOpacity(h),s+=e/r,s>1&&(s=1)}}o<0&&(console.log("No _$wi _$q0/ _$U default[%s]",t[0]),o=0,s=1,n.loadParam(),n.setParamFloat(t[o],s),n.saveParam());for(var u=0;u.15&&(f=1-.15/(1-s)),c>f&&(c=f),n.setPartsOpacity(h,c)}}}else for(var u=0;u=this._$5S._$aS.length)return null;var i=this._$5S._$aS[t];return null!=i&&i.getType()==W._$wb&&i instanceof lt?i.getIndexArray():null},e.CHANNEL_COUNT=4,e.RENDER_TEXTURE_USE_MIPMAP=!1,e.NOT_USED_FRAME=-100,e.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()},e.prototype.releaseShader=function(){for(var t=at.frameBuffers.length,i=0;i0){var s=i.gl.getParameter(i.gl.FRAMEBUFFER_BINDING),n=new Array(4);n[0]=0,n[1]=0,n[2]=i.gl.canvas.width,n[3]=i.gl.canvas.height,i.gl.viewport(0,0,at.clippingMaskBufferSize,at.clippingMaskBufferSize),this.setupLayoutBounds(e),i.gl.bindFramebuffer(i.gl.FRAMEBUFFER,at.frameBuffers[this.curFrameNo].framebuffer),i.gl.clearColor(0,0,0,0),i.gl.clear(i.gl.COLOR_BUFFER_BIT);for(var r=0;rr?e:r,s=o,n=o,_=0,a=0,h=i.clippedDrawContextList.length,$=0;$_&&(_=S),v>a&&(a=v)}}if(s==o)i.allClippedDrawRect.x=0,i.allClippedDrawRect.y=0,i.allClippedDrawRect.width=0,i.allClippedDrawRect.height=0,i.isUsing=!1;else{var L=_-s,E=a-n;i.allClippedDrawRect.x=s,i.allClippedDrawRect.y=n,i.allClippedDrawRect.width=L,i.allClippedDrawRect.height=E,i.isUsing=!0}},e.prototype.setupLayoutBounds=function(t){var i=t/e.CHANNEL_COUNT,r=t%e.CHANNEL_COUNT;i=~~i,r=~~r;for(var o=0,s=0;s=1)return 1;var p=r,f=p*p;return $*(p*f)+l*f+u*p+0},n.prototype._$a0=function(){},n.prototype.setFadeIn=function(t){this._$dP=t},n.prototype.setFadeOut=function(t){this._$eo=t},n.prototype._$pT=function(t){this._$V0=t},n.prototype.getFadeOut=function(){return this._$eo},n.prototype._$4T=function(){return this._$eo},n.prototype._$mT=function(){return this._$V0},n.prototype.getDurationMSec=function(){return-1},n.prototype.getLoopDurationMSec=function(){return-1},n.prototype.updateParam=function(t,i){if(i._$AT&&!i._$9L){var e=w.getUserTimeMSec();if(i._$z2<0){i._$z2=e,i._$bs=e;var r=this.getDurationMSec();i._$Do<0&&(i._$Do=r<=0?-1:i._$z2+r)}var o=this._$V0;o=o*(0==this._$dP?1:ht._$r2((e-i._$bs)/this._$dP))*(0==this._$eo||i._$Do<0?1:ht._$r2((i._$Do-e)/this._$eo)),0<=o&&o<=1||console.log("### assert!! ### "),this.updateParamExe(t,e,o,i),i._$Do>0&&i._$Do0?console.log("\n"):e%8==0&&e>0&&console.log(" "),console.log("%02X ",255&t[e]);console.log("\n")},_._$nr=function(t,i,e){console.log("%s\n",t);for(var r=i.length,o=0;o=0;--r){this._$lL[r]._$oP(t,this)}this._$oo(t,e),this._$M2=this._$Yb(),this._$9b=(this._$M2-this._$ks)/e,this._$ks=this._$M2}for(var r=this._$qP.length-1;r>=0;--r){this._$qP[r]._$YS(t,this)}this._$iT=i},f.prototype._$oo=function(t,i){i<.033&&(i=.033);var e=1/i;this.p1.vx=(this.p1.x-this.p1._$s0)*e,this.p1.vy=(this.p1.y-this.p1._$70)*e,this.p1.ax=(this.p1.vx-this.p1._$7L)*e,this.p1.ay=(this.p1.vy-this.p1._$HL)*e,this.p1.fx=this.p1.ax*this.p1._$p,this.p1.fy=this.p1.ay*this.p1._$p,this.p1._$xT();var r,o,s=-Math.atan2(this.p1.y-this.p2.y,this.p1.x-this.p2.x),n=Math.cos(s),_=Math.sin(s),a=9.8*this.p2._$p,h=this._$Db*Lt._$bS,$=a*Math.cos(s-h);r=$*_,o=$*n;var l=-this.p1.fx*_*_,u=-this.p1.fy*_*n,p=-this.p2.vx*this._$L2,f=-this.p2.vy*this._$L2;this.p2.fx=r+l+p,this.p2.fy=o+u+f,this.p2.ax=this.p2.fx/this.p2._$p,this.p2.ay=this.p2.fy/this.p2._$p,this.p2.vx+=this.p2.ax*i,this.p2.vy+=this.p2.ay*i,this.p2.x+=this.p2.vx*i,this.p2.y+=this.p2.vy*i;var c=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)/c,this.p2.y=this.p1.y+this._$Fo*(this.p2.y-this.p1.y)/c,this.p2.vx=(this.p2.x-this.p2._$s0)*e,this.p2.vy=(this.p2.y-this.p2._$70)*e,this.p2._$xT()},c.prototype._$xT=function(){this._$s0=this.x,this._$70=this.y,this._$7L=this.vx,this._$HL=this.vy},g.prototype._$oP=function(t,i){},y.prototype=new g,y.prototype._$oP=function(t,i){var e=this.scale*t.getParamFloat(this._$wL),r=i.getPhysicsPoint1();switch(this._$tL){default:case f.Src.SRC_TO_X:r.x=r.x+(e-r.x)*this._$V0;break;case f.Src.SRC_TO_Y:r.y=r.y+(e-r.y)*this._$V0;break;case f.Src.SRC_TO_G_ANGLE:var o=i._$qr();o+=(e-o)*this._$V0,i._$pr(o)}},d.prototype._$YS=function(t,i){},T.prototype=new d,T.prototype._$YS=function(t,i){switch(this._$YP){default:case f.Target.TARGET_FROM_ANGLE:t.setParamFloat(this._$wL,this.scale*i._$5r(),this._$V0);break;case f.Target.TARGET_FROM_ANGLE_V:t.setParamFloat(this._$wL,this.scale*i._$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",P.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},P.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()>=G.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this.reflectX=t._$po(),this.reflectY=t._$po())},P.prototype._$e=function(){};var It=function(){};It._$ni=function(t,i,e,r,o,s,n,_,a){var h=n*s-_*o;if(0==h)return null;var $,l=((t-e)*s-(i-r)*o)/h;return $=0!=o?(t-e-l*n)/o:(i-r-l*_)/s,isNaN($)&&($=(t-e-l*n)/o,isNaN($)&&($=(i-r-l*_)/s),isNaN($)&&(console.log("a is NaN @UtVector#_$ni() "),console.log("v1x : "+o),console.log("v1x != 0 ? "+(0!=o)))),null==a?new Array($,l):(a[0]=$,a[1]=l,a)},S.prototype._$8P=function(){return this.x+.5*this.width},S.prototype._$6P=function(){return this.y+.5*this.height},S.prototype._$EL=function(){return this.x+this.width},S.prototype._$5T=function(){return this.y+this.height},S.prototype._$jL=function(t,i,e,r){this.x=t,this.y=i,this.width=e,this.height=r},S.prototype._$jL=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},S.prototype.contains=function(t,i){return this.x<=this.x&&this.y<=this.y&&this.x<=this.x+this.width&&this.y<=this.y+this.height},S.prototype.expand=function(t,i){this.x-=t,this.y-=i,this.width+=2*t,this.height+=2*i},v._$Z2=function(t,i,e,r){var o=i._$Q2(t,e),s=t._$vs(),n=t._$Tr();if(i._$zr(s,n,o),o<=0)return r[s[0]];if(1==o){var _=r[s[0]],a=r[s[1]],h=n[0];return _+(a-_)*h|0}if(2==o){var _=r[s[0]],a=r[s[1]],$=r[s[2]],l=r[s[3]],h=n[0],u=n[1],p=_+(a-_)*h|0,f=$+(l-$)*h|0;return p+(f-p)*u|0}if(3==o){var c=r[s[0]],g=r[s[1]],y=r[s[2]],d=r[s[3]],m=r[s[4]],T=r[s[5]],P=r[s[6]],S=r[s[7]],h=n[0],u=n[1],v=n[2],_=c+(g-c)*h|0,a=y+(d-y)*h|0,$=m+(T-m)*h|0,l=P+(S-P)*h|0,p=_+(a-_)*u|0,f=$+(l-$)*u|0;return p+(f-p)*v|0}if(4==o){var L=r[s[0]],E=r[s[1]],M=r[s[2]],A=r[s[3]],I=r[s[4]],w=r[s[5]],x=r[s[6]],O=r[s[7]],D=r[s[8]],R=r[s[9]],F=r[s[10]],b=r[s[11]],N=r[s[12]],C=r[s[13]],B=r[s[14]],U=r[s[15]],h=n[0],u=n[1],v=n[2],G=n[3],c=L+(E-L)*h|0,g=M+(A-M)*h|0,y=I+(w-I)*h|0,d=x+(O-x)*h|0,m=D+(R-D)*h|0,T=F+(b-F)*h|0,P=N+(C-N)*h|0,S=B+(U-B)*h|0,_=c+(g-c)*u|0,a=y+(d-y)*u|0,$=m+(T-m)*u|0,l=P+(S-P)*u|0,p=_+(a-_)*v|0,f=$+(l-$)*v|0;return p+(f-p)*G|0}for(var Y=1<=G._$T7?(this.clipID=t._$nP(),this.clipIDList=this.convertClipIDForV2_11(this.clipID)):this.clipIDList=[],this._$MS(this._$Lb)},E.prototype.getClipIDList=function(){return this.clipIDList},E.prototype.init=function(t){},E.prototype._$Nr=function(t,i){if(i._$IS[0]=!1,i._$Us=v._$Z2(t,this._$GS,i._$IS,this._$Lb),at._$Zs);else if(i._$IS[0])return;i._$7s=v._$br(t,this._$GS,i._$IS,this._$mS)},E.prototype._$2b=function(t,i){},E.prototype.getDrawDataID=function(){return this._$gP},E.prototype._$j2=function(t){this._$gP=t},E.prototype.getOpacity=function(t,i){return i._$7s},E.prototype._$zS=function(t,i){return i._$Us},E.prototype._$MS=function(t){for(var i=t.length-1;i>=0;--i){var e=t[i];eE._$R2&&(E._$R2=e)}},E.prototype.getTargetBaseDataID=function(){return this._$dr},E.prototype._$gs=function(t){this._$dr=t},E.prototype._$32=function(){return null!=this._$dr&&this._$dr!=dt._$2o()},E.prototype.preDraw=function(t,i,e){},E.prototype.draw=function(t,i,e){},E.prototype.getType=function(){},E.prototype._$B2=function(t,i,e){},M._$ps=32,M.CLIPPING_PROCESS_NONE=0,M.CLIPPING_PROCESS_OVERWRITE_ALPHA=1,M.CLIPPING_PROCESS_MULTIPLY_ALPHA=2,M.CLIPPING_PROCESS_DRAW=3,M.CLIPPING_PROCESS_CLEAR_ALPHA=4,M.prototype.setChannelFlagAsColor=function(t,i){this.CHANNEL_COLORS[t]=i},M.prototype.getChannelFlagAsColor=function(t){return this.CHANNEL_COLORS[t]},M.prototype._$ZT=function(){},M.prototype._$Uo=function(t,i,e,r,o,s,n){},M.prototype._$Rs=function(){return-1},M.prototype._$Ds=function(t){},M.prototype.setBaseColor=function(t,i,e,r){t<0?t=0:t>1&&(t=1),i<0?i=0:i>1&&(i=1),e<0?e=0:e>1&&(e=1),r<0?r=0:r>1&&(r=1),this._$lT=t,this._$C0=i,this._$tT=e,this._$WL=r},M.prototype._$WP=function(t){this.culling=t},M.prototype.setMatrix=function(t){for(var i=0;i<16;i++)this.matrix4x4[i]=t[i]},M.prototype._$IT=function(){return this.matrix4x4},M.prototype.setPremultipliedAlpha=function(t){this.premultipliedAlpha=t},M.prototype.isPremultipliedAlpha=function(){return this.premultipliedAlpha},M.prototype.setAnisotropy=function(t){this.anisotropy=t},M.prototype.getAnisotropy=function(){return this.anisotropy},M.prototype.getClippingProcess=function(){return this.clippingProcess},M.prototype.setClippingProcess=function(t){this.clippingProcess=t},M.prototype.setClipBufPre_clipContextForMask=function(t){this.clipBufPre_clipContextMask=t},M.prototype.getClipBufPre_clipContextMask=function(){return this.clipBufPre_clipContextMask},M.prototype.setClipBufPre_clipContextForDraw=function(t){this.clipBufPre_clipContextDraw=t},M.prototype.getClipBufPre_clipContextDraw=function(){return this.clipBufPre_clipContextDraw},I._$ur=-2,I._$c2=1,I._$_b=2,I.prototype._$F0=function(t){this._$kP=t._$nP(),this._$dr=t._$nP()},I.prototype.readV2_opacity=function(t){t.getFormatVersion()>=G.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this._$mS=t._$Tb())},I.prototype.init=function(t){},I.prototype._$Nr=function(t,i){},I.prototype.interpolateOpacity=function(t,i,e,r){null==this._$mS?e.setInterpolatedOpacity(1):e.setInterpolatedOpacity(v._$br(t,i,r,this._$mS))},I.prototype._$2b=function(t,i){},I.prototype._$nb=function(t,i,e,r,o,s,n){},I.prototype.getType=function(){},I.prototype._$gs=function(t){this._$dr=t},I.prototype._$a2=function(t){this._$kP=t},I.prototype.getTargetBaseDataID=function(){return this._$dr},I.prototype.getBaseDataID=function(){return this._$kP},I.prototype._$32=function(){return null!=this._$dr&&this._$dr!=dt._$2o()},w._$W2=0,w._$CS=w._$W2,w._$Mo=function(){return!0},w._$XP=function(t){try{for(var i=getTimeMSec();getTimeMSec()-i=t.length)return!1;for(var o=i;o=0;--e){var r=this._$Ob[e].getParamIndex(i);if(r==x._$ds&&(r=t.getParamIndex(this._$Ob[e].getParamID())),t._$Xb(r))return!0}return!1},D.prototype._$Q2=function(t,i){for(var e,r,o=this._$Ob.length,s=t._$v2(),n=0,_=0;_U._$Qb&&console.log("err 23245\n");for(var o=this._$Ob.length,s=1,n=1,_=0,a=0;a=0;--s)e[s]=o[s]}else this.mult_fast(t,i,e,r)},R.prototype.mult_fast=function(t,i,e,r){r?(e[0]=t[0]*i[0]+t[4]*i[1]+t[8]*i[2],e[4]=t[0]*i[4]+t[4]*i[5]+t[8]*i[6],e[8]=t[0]*i[8]+t[4]*i[9]+t[8]*i[10],e[12]=t[0]*i[12]+t[4]*i[13]+t[8]*i[14]+t[12],e[1]=t[1]*i[0]+t[5]*i[1]+t[9]*i[2],e[5]=t[1]*i[4]+t[5]*i[5]+t[9]*i[6],e[9]=t[1]*i[8]+t[5]*i[9]+t[9]*i[10],e[13]=t[1]*i[12]+t[5]*i[13]+t[9]*i[14]+t[13],e[2]=t[2]*i[0]+t[6]*i[1]+t[10]*i[2],e[6]=t[2]*i[4]+t[6]*i[5]+t[10]*i[6],e[10]=t[2]*i[8]+t[6]*i[9]+t[10]*i[10],e[14]=t[2]*i[12]+t[6]*i[13]+t[10]*i[14]+t[14],e[3]=e[7]=e[11]=0,e[15]=1):(e[0]=t[0]*i[0]+t[4]*i[1]+t[8]*i[2]+t[12]*i[3],e[4]=t[0]*i[4]+t[4]*i[5]+t[8]*i[6]+t[12]*i[7],e[8]=t[0]*i[8]+t[4]*i[9]+t[8]*i[10]+t[12]*i[11],e[12]=t[0]*i[12]+t[4]*i[13]+t[8]*i[14]+t[12]*i[15],e[1]=t[1]*i[0]+t[5]*i[1]+t[9]*i[2]+t[13]*i[3],e[5]=t[1]*i[4]+t[5]*i[5]+t[9]*i[6]+t[13]*i[7],e[9]=t[1]*i[8]+t[5]*i[9]+t[9]*i[10]+t[13]*i[11],e[13]=t[1]*i[12]+t[5]*i[13]+t[9]*i[14]+t[13]*i[15],e[2]=t[2]*i[0]+t[6]*i[1]+t[10]*i[2]+t[14]*i[3],e[6]=t[2]*i[4]+t[6]*i[5]+t[10]*i[6]+t[14]*i[7],e[10]=t[2]*i[8]+t[6]*i[9]+t[10]*i[10]+t[14]*i[11],e[14]=t[2]*i[12]+t[6]*i[13]+t[10]*i[14]+t[14]*i[15],e[3]=t[3]*i[0]+t[7]*i[1]+t[11]*i[2]+t[15]*i[3],e[7]=t[3]*i[4]+t[7]*i[5]+t[11]*i[6]+t[15]*i[7],e[11]=t[3]*i[8]+t[7]*i[9]+t[11]*i[10]+t[15]*i[11],e[15]=t[3]*i[12]+t[7]*i[13]+t[11]*i[14]+t[15]*i[15])},R.prototype.translate=function(t,i,e){this.m[12]=this.m[0]*t+this.m[4]*i+this.m[8]*e+this.m[12],this.m[13]=this.m[1]*t+this.m[5]*i+this.m[9]*e+this.m[13],this.m[14]=this.m[2]*t+this.m[6]*i+this.m[10]*e+this.m[14],this.m[15]=this.m[3]*t+this.m[7]*i+this.m[11]*e+this.m[15]},R.prototype.scale=function(t,i,e){this.m[0]*=t,this.m[4]*=i,this.m[8]*=e,this.m[1]*=t,this.m[5]*=i,this.m[9]*=e,this.m[2]*=t,this.m[6]*=i,this.m[10]*=e,this.m[3]*=t,this.m[7]*=i,this.m[11]*=e},R.prototype.rotateX=function(t){var i=Lt.fcos(t),e=Lt._$9(t),r=this.m[4];this.m[4]=r*i+this.m[8]*e,this.m[8]=r*-e+this.m[8]*i,r=this.m[5],this.m[5]=r*i+this.m[9]*e,this.m[9]=r*-e+this.m[9]*i,r=this.m[6],this.m[6]=r*i+this.m[10]*e,this.m[10]=r*-e+this.m[10]*i,r=this.m[7],this.m[7]=r*i+this.m[11]*e,this.m[11]=r*-e+this.m[11]*i},R.prototype.rotateY=function(t){var i=Lt.fcos(t),e=Lt._$9(t),r=this.m[0];this.m[0]=r*i+this.m[8]*-e,this.m[8]=r*e+this.m[8]*i,r=this.m[1],this.m[1]=r*i+this.m[9]*-e,this.m[9]=r*e+this.m[9]*i,r=m[2],this.m[2]=r*i+this.m[10]*-e,this.m[10]=r*e+this.m[10]*i,r=m[3],this.m[3]=r*i+this.m[11]*-e,this.m[11]=r*e+this.m[11]*i},R.prototype.rotateZ=function(t){var i=Lt.fcos(t),e=Lt._$9(t),r=this.m[0];this.m[0]=r*i+this.m[4]*e,this.m[4]=r*-e+this.m[4]*i,r=this.m[1],this.m[1]=r*i+this.m[5]*e,this.m[5]=r*-e+this.m[5]*i,r=this.m[2],this.m[2]=r*i+this.m[6]*e,this.m[6]=r*-e+this.m[6]*i,r=this.m[3],this.m[3]=r*i+this.m[7]*e,this.m[7]=r*-e+this.m[7]*i},F.prototype=new et,F._$tP=new Object,F._$27=function(){F._$tP.clear()},F.getID=function(t){var i=F._$tP[t];return null==i&&(i=new F(t),F._$tP[t]=i),i},F.prototype._$3s=function(){return new F},b._$kS=-1,b._$pS=0,b._$hb=1,b.STATE_IDENTITY=0,b._$gb=1,b._$fo=2,b._$go=4,b.prototype.transform=function(t,i,e){var r,o,s,n,_,a,h=0,$=0;switch(this._$hi){default:return;case b._$go|b._$fo|b._$gb:for(r=this._$7,o=this._$H,s=this._$k,n=this._$f,_=this._$g,a=this._$w;--e>=0;){var l=t[h++],u=t[h++];i[$++]=r*l+o*u+s,i[$++]=n*l+_*u+a}return;case b._$go|b._$fo:for(r=this._$7,o=this._$H,n=this._$f,_=this._$g;--e>=0;){var l=t[h++],u=t[h++];i[$++]=r*l+o*u,i[$++]=n*l+_*u}return;case b._$go|b._$gb:for(o=this._$H,s=this._$k,n=this._$f,a=this._$w;--e>=0;){var l=t[h++];i[$++]=o*t[h++]+s,i[$++]=n*l+a}return;case b._$go:for(o=this._$H,n=this._$f;--e>=0;){var l=t[h++];i[$++]=o*t[h++],i[$++]=n*l}return;case b._$fo|b._$gb:for(r=this._$7,s=this._$k,_=this._$g,a=this._$w;--e>=0;)i[$++]=r*t[h++]+s,i[$++]=_*t[h++]+a;return;case b._$fo:for(r=this._$7,_=this._$g;--e>=0;)i[$++]=r*t[h++],i[$++]=_*t[h++];return;case b._$gb:for(s=this._$k,a=this._$w;--e>=0;)i[$++]=t[h++]+s,i[$++]=t[h++]+a;return;case b.STATE_IDENTITY:return void(t==i&&h==$||w._$jT(t,h,i,$,2*e))}},b.prototype.update=function(){0==this._$H&&0==this._$f?1==this._$7&&1==this._$g?0==this._$k&&0==this._$w?(this._$hi=b.STATE_IDENTITY,this._$Z=b._$pS):(this._$hi=b._$gb,this._$Z=b._$hb):0==this._$k&&0==this._$w?(this._$hi=b._$fo,this._$Z=b._$kS):(this._$hi=b._$fo|b._$gb,this._$Z=b._$kS):0==this._$7&&0==this._$g?0==this._$k&&0==this._$w?(this._$hi=b._$go,this._$Z=b._$kS):(this._$hi=b._$go|b._$gb,this._$Z=b._$kS):0==this._$k&&0==this._$w?(this._$hi=b._$go|b._$fo,this._$Z=b._$kS):(this._$hi=b._$go|b._$fo|b._$gb,this._$Z=b._$kS)},b.prototype._$RT=function(t){this._$IT(t);var i=t[0],e=t[2],r=t[1],o=t[3],s=Math.sqrt(i*i+r*r),n=i*o-e*r;0==s?at._$so&&console.log("affine._$RT() / rt==0"):(t[0]=s,t[1]=n/s,t[2]=(r*o+i*e)/n,t[3]=Math.atan2(r,i))},b.prototype._$ho=function(t,i,e,r){var o=new Float32Array(6),s=new Float32Array(6);t._$RT(o),i._$RT(s);var n=new Float32Array(6);n[0]=o[0]+(s[0]-o[0])*e,n[1]=o[1]+(s[1]-o[1])*e,n[2]=o[2]+(s[2]-o[2])*e,n[3]=o[3]+(s[3]-o[3])*e,n[4]=o[4]+(s[4]-o[4])*e,n[5]=o[5]+(s[5]-o[5])*e,r._$CT(n)},b.prototype._$CT=function(t){var i=Math.cos(t[3]),e=Math.sin(t[3]);this._$7=t[0]*i,this._$f=t[0]*e,this._$H=t[1]*(t[2]*i-e),this._$g=t[1]*(t[2]*e+i),this._$k=t[4],this._$w=t[5],this.update()},b.prototype._$IT=function(t){t[0]=this._$7,t[1]=this._$f,t[2]=this._$H,t[3]=this._$g,t[4]=this._$k,t[5]=this._$w},N.prototype=new n,N._$cs="VISIBLE:",N._$ar="LAYOUT:",N._$Co=0,N._$D2=[],N._$1T=1,N.loadMotion=function(t){var i=new N,e=[0],r=t.length;i._$yT=0;for(var o=0;o=0){var a=new B;O.startsWith(t,n,N._$cs)?(a._$RP=B._$hs,a._$4P=new String(t,n,_-n)):O.startsWith(t,n,N._$ar)?(a._$4P=new String(t,n+7,_-n-7),O.startsWith(t,n+7,"ANCHOR_X")?a._$RP=B._$xs:O.startsWith(t,n+7,"ANCHOR_Y")?a._$RP=B._$us:O.startsWith(t,n+7,"SCALE_X")?a._$RP=B._$qs:O.startsWith(t,n+7,"SCALE_Y")?a._$RP=B._$Ys:O.startsWith(t,n+7,"X")?a._$RP=B._$ws:O.startsWith(t,n+7,"Y")&&(a._$RP=B._$Ns)):(a._$RP=B._$Fr,a._$4P=new String(t,n,_-n)),i.motions.push(a);var h=0;for(N._$D2.clear(),o=_+1;o0){N._$D2.push($),h++;var l=e[0];if(li._$yT&&(i._$yT=h)}}}else{for(var n=o,_=-1;o=0)for(_==n+4&&"f"==t[n+1]&&"p"==t[n+2]&&"s"==t[n+3]&&(u=!0),o=_+1;o0&&u&&5<$&&$<121&&(i._$D0=$),o=e[0]}for(;o=$?$-1:n];t.setParamFloat(l,u)}else if(B._$ws<=h._$RP&&h._$RP<=B._$Ys);else{var p=t.getParamFloat(l),f=h._$I0[n>=$?$-1:n],c=h._$I0[n+1>=$?$-1:n+1],g=f+(c-f)*_,y=p+(g-p)*e;t.setParamFloat(l,y)}}n>=this._$yT&&(this._$E?(r._$z2=i,this.loopFadeIn&&(r._$bs=i)):r._$9L=!0)},N.prototype._$r0=function(){return this._$E},N.prototype._$aL=function(t){this._$E=t},N.prototype.isLoopFadeIn=function(){return this.loopFadeIn},N.prototype.setLoopFadeIn=function(t){this.loopFadeIn=t},C.prototype.clear=function(){this.size=0},C.prototype.add=function(t){if(this._$P.length<=this.size){var i=new Float32Array(2*this.size);w._$jT(this._$P,0,i,0,this.size),this._$P=i}this._$P[this.size++]=t},C.prototype._$BL=function(){var t=new Float32Array(this.size);return w._$jT(this._$P,0,t,0,this.size),t},B._$Fr=0,B._$hs=1,B._$ws=100,B._$Ns=101,B._$xs=102,B._$us=103,B._$qs=104,B._$Ys=105,U._$Ms=1,U._$Qs=2,U._$i2=0,U._$No=2,U._$do=U._$Ms,U._$Ls=!0,U._$1r=5,U._$Qb=65,U._$J=1e-4,U._$FT=.001,U._$Ss=3,G._$o7=6,G._$S7=7,G._$s7=8,G._$77=9,G.LIVE2D_FORMAT_VERSION_V2_10_SDK2=10,G.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1=11,G._$T7=G.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1,G._$Is=-2004318072,G._$h0=0,G._$4L=23,G._$7P=33,G._$uT=function(t){console.log("_$bo :: _$6 _$mo _$E0 : %d\n",t)},G._$9o=function(t){if(t<40)return G._$uT(t),null;if(t<50)return G._$uT(t),null;if(t<60)return G._$uT(t),null;if(t<100)switch(t){case 65:return new Z;case 66:return new D;case 67:return new x;case 68:return new X;case 69:return new P;case 70:return new lt;default:return G._$uT(t),null}else if(t<150)switch(t){case 131:return new nt;case 133:return new tt;case 136:return new p;case 137:return new ot;case 142:return new j}return G._$uT(t),null},Y._$HP=0,Y._$_0=!0;Y._$V2=-1,Y._$W0=-1,Y._$jr=!1,Y._$ZS=!0,Y._$tr=-1e6,Y._$lr=1e6,Y._$is=32,Y._$e=!1,Y.prototype.getDrawDataIndex=function(t){for(var i=this._$aS.length-1;i>=0;--i)if(null!=this._$aS[i]&&this._$aS[i].getDrawDataID()==t)return i;return-1},Y.prototype.getDrawData=function(t){if(t instanceof F){if(null==this._$Bo){this._$Bo=new Object;for(var i=this._$aS.length,e=0;e0&&this.release();for(var t=this._$Ri.getModelImpl(),i=t._$Xr(),r=i.length,o=new Array,s=new Array,n=0;n=0)&&(this._$3S.push(m),this._$db.push(s[n]),o[n]=null,d=!0)}}if(!d)break}var P=t._$E2();if(null!=P){var S=P._$1s();if(null!=S)for(var v=S.length,n=0;n=0;i--)this._$Js[i]=Y._$jr;return this._$QT=!1,Y._$e&&_.dump("_$eL"),!1},Y.prototype.preDraw=function(t){null!=this.clipManager&&(t._$ZT(),this.clipManager.setupClip(this,t))},Y.prototype.draw=function(t){if(null==this._$Ws)return void _._$li("call _$Ri.update() before _$Ri.draw() ");var i=this._$Ws.length;t._$ZT();for(var e=0;e=0;--i)if(this._$pb[i]==t)return i;return this._$02(t,0,Y._$tr,Y._$lr)},Y.prototype._$BS=function(t){return this.getBaseDataIndex(t)},Y.prototype.getBaseDataIndex=function(t){for(var i=this._$3S.length-1;i>=0;--i)if(null!=this._$3S[i]&&this._$3S[i].getBaseDataID()==t)return i;return-1},Y.prototype._$UT=function(t,i){var e=new Float32Array(i);return w._$jT(t,0,e,0,t.length),e},Y.prototype._$02=function(t,i,e,r){if(this._$qo>=this._$pb.length){var o=this._$pb.length,s=new Array(2*o);w._$jT(this._$pb,0,s,0,o),this._$pb=s,this._$_2=this._$UT(this._$_2,2*o),this._$vr=this._$UT(this._$vr,2*o),this._$Rr=this._$UT(this._$Rr,2*o),this._$Or=this._$UT(this._$Or,2*o);var n=new Array;w._$jT(this._$Js,0,n,0,o),this._$Js=n}return this._$pb[this._$qo]=t,this._$_2[this._$qo]=i,this._$vr[this._$qo]=i,this._$Rr[this._$qo]=e,this._$Or[this._$qo]=r,this._$Js[this._$qo]=Y._$ZS,this._$qo++},Y.prototype._$Zo=function(t,i){this._$3S[t]=i},Y.prototype.setParamFloat=function(t,i){ithis._$Or[t]&&(i=this._$Or[t]),this._$_2[t]=i},Y.prototype.loadParam=function(){var t=this._$_2.length;t>this._$fs.length&&(t=this._$fs.length),w._$jT(this._$fs,0,this._$_2,0,t)},Y.prototype.saveParam=function(){var t=this._$_2.length;t>this._$fs.length&&(this._$fs=new Float32Array(t)),w._$jT(this._$_2,0,this._$fs,0,t)},Y.prototype._$v2=function(){return this._$co},Y.prototype._$WS=function(){return this._$QT},Y.prototype._$Xb=function(t){return this._$Js[t]==Y._$ZS},Y.prototype._$vs=function(){return this._$Es},Y.prototype._$Tr=function(){return this._$ZP},Y.prototype.getBaseData=function(t){return this._$3S[t]},Y.prototype.getParamFloat=function(t){return this._$_2[t]},Y.prototype.getParamMax=function(t){return this._$Or[t]},Y.prototype.getParamMin=function(t){return this._$Rr[t]},Y.prototype.setPartsOpacity=function(t,i){this._$Hr[t].setPartsOpacity(i)},Y.prototype.getPartsOpacity=function(t){return this._$Hr[t].getPartsOpacity()},Y.prototype.getPartsDataIndex=function(t){for(var i=this._$F2.length-1;i>=0;--i)if(null!=this._$F2[i]&&this._$F2[i]._$p2()==t)return i;return-1},Y.prototype._$q2=function(t){return this._$db[t]},Y.prototype._$C2=function(t){return this._$8b[t]},Y.prototype._$Bb=function(t){return this._$Hr[t]},Y.prototype._$5s=function(t,i){for(var e=this._$Ws.length,r=t,o=0;o0;)s+=i;return r},k._$C=function(t){var i=null,e=null;try{i=t instanceof Array?t:new _$Xs(t,8192),e=new _$js;for(var r,o=new Int8Array(1e3);(r=i.read(o))>0;)e.write(o,0,r);return e._$TS()}finally{null!=t&&t.close(),null!=e&&(e.flush(),e.close())}},V.prototype._$T2=function(){return w.getUserTimeMSec()+Math._$10()*(2*this._$Br-1)},V.prototype._$uo=function(t){this._$Br=t},V.prototype._$QS=function(t,i,e){this._$Dr=t,this._$Cb=i,this._$mr=e},V.prototype._$7T=function(t){var i,e=w.getUserTimeMSec(),r=0;switch(this._$_L){case STATE_CLOSING:r=(e-this._$bb)/this._$Dr,r>=1&&(r=1,this._$_L=wt.STATE_CLOSED,this._$bb=e),i=1-r;break;case STATE_CLOSED:r=(e-this._$bb)/this._$Cb,r>=1&&(this._$_L=wt.STATE_OPENING,this._$bb=e),i=0;break;case STATE_OPENING:r=(e-this._$bb)/this._$mr,r>=1&&(r=1,this._$_L=wt.STATE_INTERVAL,this._$12=this._$T2()),i=r;break;case STATE_INTERVAL:this._$12.9?at.EXPAND_W:0;this.gl.drawElements(a,e,r,o,s,h,this.transform,_)}},z.prototype._$Rs=function(){throw new Error("_$Rs")},z.prototype._$Ds=function(t){throw new Error("_$Ds")},z.prototype._$K2=function(){for(var t=0;t=0;--i){var e=t[i];eW._$R2&&(W._$R2=e)}},W._$or=function(){return W._$52},W._$Pr=function(){return W._$R2},W.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()>=G._$T7?(this.clipID=t._$nP(),this.clipIDList=this.convertClipIDForV2_11(this.clipID)):this.clipIDList=null,W._$Sb(this._$Lb)},W.prototype.getClipIDList=function(){return this.clipIDList},W.prototype._$Nr=function(t,i){if(i._$IS[0]=!1,i._$Us=v._$Z2(t,this._$GS,i._$IS,this._$Lb),at._$Zs);else if(i._$IS[0])return;i._$7s=v._$br(t,this._$GS,i._$IS,this._$mS)},W.prototype._$2b=function(t){},W.prototype.getDrawDataID=function(){return this._$gP},W.prototype._$j2=function(t){this._$gP=t},W.prototype.getOpacity=function(t,i){return i._$7s},W.prototype._$zS=function(t,i){return i._$Us},W.prototype.getTargetBaseDataID=function(){return this._$dr},W.prototype._$gs=function(t){this._$dr=t},W.prototype._$32=function(){return null!=this._$dr&&this._$dr!=dt._$2o()},W.prototype.getType=function(){},j._$42=0,j.prototype._$1b=function(){return this._$3S},j.prototype.getDrawDataList=function(){return this._$aS},j.prototype._$F0=function(t){this._$NL=t._$nP(),this._$aS=t._$nP(),this._$3S=t._$nP()},j.prototype._$kr=function(t){t._$Zo(this._$3S),t._$xo(this._$aS),this._$3S=null,this._$aS=null},q.prototype=new i,q.loadModel=function(t){var e=new q;return i._$62(e,t),e},q.loadModel=function(t){var e=new q;return i._$62(e,t),e},q._$to=function(){return new q},q._$er=function(t){var i=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(!i.exists())throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+i._$PL());for(var e=["../_$_r/_$t0/_$Ri/_$_P.512/_$CP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$vP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$EP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$pP._$1"],r=q.loadModel(i._$3b()),o=0;o=0){var h=new B;O.startsWith(t,_,J._$cs)?(h._$RP=B._$hs,h._$4P=O.createString(t,_,a-_)):O.startsWith(t,_,J._$ar)?(h._$4P=O.createString(t,_+7,a-_-7),O.startsWith(t,_+7,"ANCHOR_X")?h._$RP=B._$xs:O.startsWith(t,_+7,"ANCHOR_Y")?h._$RP=B._$us:O.startsWith(t,_+7,"SCALE_X")?h._$RP=B._$qs:O.startsWith(t,_+7,"SCALE_Y")?h._$RP=B._$Ys:O.startsWith(t,_+7,"X")?h._$RP=B._$ws:O.startsWith(t,_+7,"Y")&&(h._$RP=B._$Ns)):(h._$RP=B._$Fr,h._$4P=O.createString(t,_,a-_)),i.motions.push(h);var $=0,l=[];for(o=a+1;o0){l.push(u),$++;var p=e[0];if(pi._$yT&&(i._$yT=$)}}}else{for(var _=o,a=-1;o=0)for(a==_+4&&"f"==Q(t,_+1)&&"p"==Q(t,_+2)&&"s"==Q(t,_+3)&&(f=!0),o=a+1;o0&&f&&5=$?$-1:n];t.setParamFloat(l,u)}else if(B._$ws<=h._$RP&&h._$RP<=B._$Ys);else{var p,f=t.getParamIndex(l),c=t.getModelContext(),g=c.getParamMax(f),y=c.getParamMin(f),d=.4*(g-y),m=c.getParamFloat(f),T=h._$I0[n>=$?$-1:n],P=h._$I0[n+1>=$?$-1:n+1];p=Td||T>P&&T-P>d?T:T+(P-T)*_;var S=m+(p-m)*e;t.setParamFloat(l,S)}}n>=this._$yT&&(this._$E?(r._$z2=i,this.loopFadeIn&&(r._$bs=i)):r._$9L=!0),this._$eP=e},J.prototype._$r0=function(){return this._$E},J.prototype._$aL=function(t){this._$E=t},J.prototype._$S0=function(){return this._$D0},J.prototype._$U0=function(t){this._$D0=t},J.prototype.isLoopFadeIn=function(){return this.loopFadeIn},J.prototype.setLoopFadeIn=function(t){this.loopFadeIn=t},C.prototype.clear=function(){this.size=0},C.prototype.add=function(t){if(this._$P.length<=this.size){var i=new Float32Array(2*this.size);w._$jT(this._$P,0,i,0,this.size),this._$P=i}this._$P[this.size++]=t},C.prototype._$BL=function(){var t=new Float32Array(this.size);return w._$jT(this._$P,0,t,0,this.size),t},B._$Fr=0,B._$hs=1,B._$ws=100,B._$Ns=101,B._$xs=102,B._$us=103,B._$qs=104,B._$Ys=105,Z.prototype=new I,Z._$gT=new Array,Z.prototype._$zP=function(){this._$GS=new D,this._$GS._$zP()},Z.prototype._$F0=function(t){I.prototype._$F0.call(this,t),this._$A=t._$6L(),this._$o=t._$6L(),this._$GS=t._$nP(),this._$Eo=t._$nP(),I.prototype.readV2_opacity.call(this,t)},Z.prototype.init=function(t){var i=new K(this),e=(this._$o+1)*(this._$A+1);return null!=i._$Cr&&(i._$Cr=null),i._$Cr=new Float32Array(2*e),null!=i._$hr&&(i._$hr=null),this._$32()?i._$hr=new Float32Array(2*e):i._$hr=null,i},Z.prototype._$Nr=function(t,i){var e=i;if(this._$GS._$Ur(t)){var r=this._$VT(),o=Z._$gT;o[0]=!1,v._$Vr(t,this._$GS,o,r,this._$Eo,e._$Cr,0,2),i._$Ib(o[0]),this.interpolateOpacity(t,this._$GS,i,o)}},Z.prototype._$2b=function(t,i){var e=i;if(e._$hS(!0),this._$32()){var r=this.getTargetBaseDataID();if(e._$8r==I._$ur&&(e._$8r=t.getBaseDataIndex(r)),e._$8r<0)at._$so&&_._$li("_$L _$0P _$G :: %s",r),e._$hS(!1);else{var o=t.getBaseData(e._$8r),s=t._$q2(e._$8r);if(null!=o&&s._$yo()){var n=s.getTotalScale();e.setTotalScale_notForClient(n);var a=s.getTotalOpacity();e.setTotalOpacity(a*e.getInterpolatedOpacity()),o._$nb(t,s,e._$Cr,e._$hr,this._$VT(),0,2),e._$hS(!0)}else e._$hS(!1)}}else e.setTotalOpacity(e.getInterpolatedOpacity())},Z.prototype._$nb=function(t,i,e,r,o,s,n){var _=i,a=null!=_._$hr?_._$hr:_._$Cr;Z.transformPoints_sdk2(e,r,o,s,n,a,this._$o,this._$A)},Z.transformPoints_sdk2=function(i,e,r,o,s,n,_,a){for(var h,$,l,u=r*s,p=0,f=0,c=0,g=0,y=0,d=0,m=!1,T=o;T=1){var F=n[2*(0+a*E)],b=n[2*(0+a*E)+1],N=p-2*c+1*y,C=f-2*g+1*d,x=p+3*y,O=f+3*d,D=p-2*c+3*y,R=f-2*g+3*d,B=.5*(v- -2),U=.5*(L-1);B+U<=1?(e[T]=N+(F-N)*B+(D-N)*U,e[T+1]=C+(b-C)*B+(R-C)*U):(e[T]=x+(D-x)*(1-B)+(F-x)*(1-U),e[T+1]=O+(R-O)*(1-B)+(b-O)*(1-U))}else{var G=0|S;G==a&&(G=a-1);var B=.5*(v- -2),U=S-G,Y=G/a,k=(G+1)/a,F=n[2*(0+G*E)],b=n[2*(0+G*E)+1],x=n[2*(0+(G+1)*E)],O=n[2*(0+(G+1)*E)+1],N=p-2*c+Y*y,C=f-2*g+Y*d,D=p-2*c+k*y,R=f-2*g+k*d;B+U<=1?(e[T]=N+(F-N)*B+(D-N)*U,e[T+1]=C+(b-C)*B+(R-C)*U):(e[T]=x+(D-x)*(1-B)+(F-x)*(1-U),e[T+1]=O+(R-O)*(1-B)+(b-O)*(1-U))}else if(1<=v)if(L<=0){var D=n[2*(_+0*E)],R=n[2*(_+0*E)+1],x=p+3*c,O=f+3*g,N=p+1*c-2*y,C=f+1*g-2*d,F=p+3*c-2*y,b=f+3*g-2*d,B=.5*(v-1),U=.5*(L- -2);B+U<=1?(e[T]=N+(F-N)*B+(D-N)*U,e[T+1]=C+(b-C)*B+(R-C)*U):(e[T]=x+(D-x)*(1-B)+(F-x)*(1-U),e[T+1]=O+(R-O)*(1-B)+(b-O)*(1-U))}else if(L>=1){var N=n[2*(_+a*E)],C=n[2*(_+a*E)+1],F=p+3*c+1*y,b=f+3*g+1*d,D=p+1*c+3*y,R=f+1*g+3*d,x=p+3*c+3*y,O=f+3*g+3*d,B=.5*(v-1),U=.5*(L-1);B+U<=1?(e[T]=N+(F-N)*B+(D-N)*U,e[T+1]=C+(b-C)*B+(R-C)*U):(e[T]=x+(D-x)*(1-B)+(F-x)*(1-U),e[T+1]=O+(R-O)*(1-B)+(b-O)*(1-U))}else{var G=0|S;G==a&&(G=a-1);var B=.5*(v-1),U=S-G,Y=G/a,k=(G+1)/a,N=n[2*(_+G*E)],C=n[2*(_+G*E)+1],D=n[2*(_+(G+1)*E)],R=n[2*(_+(G+1)*E)+1],F=p+3*c+Y*y,b=f+3*g+Y*d,x=p+3*c+k*y,O=f+3*g+k*d;B+U<=1?(e[T]=N+(F-N)*B+(D-N)*U,e[T+1]=C+(b-C)*B+(R-C)*U):(e[T]=x+(D-x)*(1-B)+(F-x)*(1-U),e[T+1]=O+(R-O)*(1-B)+(b-O)*(1-U))}else if(L<=0){var V=0|P;V==_&&(V=_-1);var B=P-V,U=.5*(L- -2),z=V/_,X=(V+1)/_,D=n[2*(V+0*E)],R=n[2*(V+0*E)+1],x=n[2*(V+1+0*E)],O=n[2*(V+1+0*E)+1],N=p+z*c-2*y,C=f+z*g-2*d,F=p+X*c-2*y,b=f+X*g-2*d;B+U<=1?(e[T]=N+(F-N)*B+(D-N)*U,e[T+1]=C+(b-C)*B+(R-C)*U):(e[T]=x+(D-x)*(1-B)+(F-x)*(1-U),e[T+1]=O+(R-O)*(1-B)+(b-O)*(1-U))}else if(L>=1){var V=0|P;V==_&&(V=_-1);var B=P-V,U=.5*(L-1),z=V/_,X=(V+1)/_,N=n[2*(V+a*E)],C=n[2*(V+a*E)+1],F=n[2*(V+1+a*E)],b=n[2*(V+1+a*E)+1],D=p+z*c+3*y,R=f+z*g+3*d,x=p+X*c+3*y,O=f+X*g+3*d;B+U<=1?(e[T]=N+(F-N)*B+(D-N)*U,e[T+1]=C+(b-C)*B+(R-C)*U):(e[T]=x+(D-x)*(1-B)+(F-x)*(1-U),e[T+1]=O+(R-O)*(1-B)+(b-O)*(1-U))}else t.err.printf("_$li calc : %.4f , %.4f @@BDBoxGrid\n",v,L);else e[T]=p+v*c+L*y,e[T+1]=f+v*g+L*d}else $=P-(0|P),l=S-(0|S),h=2*((0|P)+(0|S)*(_+1)),$+l<1?(e[T]=n[h]*(1-$-l)+n[h+2]*$+n[h+2*(_+1)]*l,e[T+1]=n[h+1]*(1-$-l)+n[h+3]*$+n[h+2*(_+1)+1]*l):(e[T]=n[h+2*(_+1)+2]*($-1+l)+n[h+2*(_+1)]*(1-$)+n[h+2]*(1-l),e[T+1]=n[h+2*(_+1)+3]*($-1+l)+n[h+2*(_+1)+1]*(1-$)+n[h+3]*(1-l))}},Z.prototype.transformPoints_sdk1=function(t,i,e,r,o,s,n){for(var _,a,h,$,l,u,p,f=i,c=this._$o,g=this._$A,y=o*n,d=null!=f._$hr?f._$hr:f._$Cr,m=s;m1&&(_=1),a<0?a=0:a>1&&(a=1),_*=c,a*=g,h=0|_,$=0|a,h>c-1&&(h=c-1),$>g-1&&($=g-1),u=_-h,p=a-$,l=2*(h+$*(c+1))):(_=e[m]*c,a=e[m+1]*g,u=_-(0|_),p=a-(0|a),l=2*((0|_)+(0|a)*(c+1))),u+p<1?(r[m]=d[l]*(1-u-p)+d[l+2]*u+d[l+2*(c+1)]*p,r[m+1]=d[l+1]*(1-u-p)+d[l+3]*u+d[l+2*(c+1)+1]*p):(r[m]=d[l+2*(c+1)+2]*(u-1+p)+d[l+2*(c+1)]*(1-u)+d[l+2]*(1-p),r[m+1]=d[l+2*(c+1)+3]*(u-1+p)+d[l+2*(c+1)+1]*(1-u)+d[l+3]*(1-p))},Z.prototype._$VT=function(){return(this._$o+1)*(this._$A+1)},Z.prototype.getType=function(){return I._$_b},K.prototype=new _t,tt._$42=0,tt.prototype._$zP=function(){this._$3S=new Array,this._$aS=new Array},tt.prototype._$F0=function(t){this._$g0=t._$8L(),this.visible=t._$8L(),this._$NL=t._$nP(),this._$3S=t._$nP(),this._$aS=t._$nP()},tt.prototype.init=function(t){var i=new it(this);return i.setPartsOpacity(this.isVisible()?1:0),i},tt.prototype._$6o=function(t){if(null==this._$3S)throw new Error("_$3S _$6 _$Wo@_$6o");this._$3S.push(t)},tt.prototype._$3o=function(t){if(null==this._$aS)throw new Error("_$aS _$6 _$Wo@_$3o");this._$aS.push(t)},tt.prototype._$Zo=function(t){this._$3S=t},tt.prototype._$xo=function(t){this._$aS=t},tt.prototype.isVisible=function(){return this.visible},tt.prototype._$uL=function(){return this._$g0},tt.prototype._$KP=function(t){this.visible=t},tt.prototype._$ET=function(t){this._$g0=t},tt.prototype.getBaseData=function(){return this._$3S},tt.prototype.getDrawData=function(){return this._$aS},tt.prototype._$p2=function(){return this._$NL},tt.prototype._$ob=function(t){this._$NL=t},tt.prototype.getPartsID=function(){return this._$NL},tt.prototype._$MP=function(t){this._$NL=t},it.prototype=new l,it.prototype.getPartsOpacity=function(){return this._$VS},it.prototype.setPartsOpacity=function(t){this._$VS=t},et._$L7=function(){u._$27(),dt._$27(),F._$27(),$._$27()},et.prototype.toString=function(){return this.id},rt.prototype._$F0=function(t){},ot.prototype._$1s=function(){return this._$4S},ot.prototype._$zP=function(){this._$4S=new Array},ot.prototype._$F0=function(t){this._$4S=t._$nP()},ot.prototype._$Ks=function(t){this._$4S.push(t)},st.tr=new yt,st._$50=new yt,st._$Ti=new Array(0,0),st._$Pi=new Array(0,0),st._$B=new Array(0,0),st.prototype._$lP=function(t,i,e,r){this.viewport=new Array(t,i,e,r)},st.prototype._$bL=function(){this.context.save();var t=this.viewport;null!=t&&(this.context.beginPath(),this.context._$Li(t[0],t[1],t[2],t[3]),this.context.clip())},st.prototype._$ei=function(){this.context.restore()},st.prototype.drawElements=function(t,i,e,r,o,s,n,a){try{o!=this._$Qo&&(this._$Qo=o,this.context.globalAlpha=o);for(var h=i.length,$=t.width,l=t.height,u=this.context,p=this._$xP,f=this._$uP,c=this._$6r,g=this._$3r,y=st.tr,d=st._$Ti,m=st._$Pi,T=st._$B,P=0;P.02?st.expandClip(t,i,e,r,$,l,u,p,f,c):st.clipWithTransform(t,null,o,s,n,_,a,h)},st.expandClip=function(t,i,e,r,o,s,n,_,a,h){var $=n-o,l=_-s,u=a-o,p=h-s,f=$*p-l*u>0?e:-e,c=-l,g=$,y=a-n,d=h-_,m=-d,T=y,P=Math.sqrt(y*y+d*d),S=-p,v=u,L=Math.sqrt(u*u+p*p),E=o-f*c/r,M=s-f*g/r,A=n-f*c/r,I=_-f*g/r,w=n-f*m/P,x=_-f*T/P,O=a-f*m/P,D=h-f*T/P,R=o+f*S/L,F=s+f*v/L,b=a+f*S/L,N=h+f*v/L,C=st._$50;return null!=i._$P2(C)&&(st.clipWithTransform(t,C,E,M,A,I,w,x,O,D,b,N,R,F),!0)},st.clipWithTransform=function(t,i,e,r,o,s,n,a){if(arguments.length<7)return void _._$li("err : @LDGL.clip()");if(!(arguments[1]instanceof yt))return void _._$li("err : a[0] is _$6 LDTransform @LDGL.clip()");var h=st._$B,$=i,l=arguments;if(t.beginPath(),$){$._$PS(l[2],l[3],h),t.moveTo(h[0],h[1]);for(var u=4;u1?1:.5-.5*Math.cos(t*Lt.PI_F)},$t._$fr=-1,$t.prototype.toString=function(){return this._$ib},lt.prototype=new W,lt._$42=0,lt._$Os=30,lt._$ms=0,lt._$ns=1,lt._$_s=2,lt._$gT=new Array,lt.prototype._$_S=function(t){this._$LP=t},lt.prototype.getTextureNo=function(){return this._$LP},lt.prototype._$ZL=function(){return this._$Qi},lt.prototype._$H2=function(){return this._$JP},lt.prototype.getNumPoints=function(){return this._$d0},lt.prototype.getType=function(){return W._$wb},lt.prototype._$B2=function(t,i,e){var r=i,o=null!=r._$hr?r._$hr:r._$Cr;switch(U._$do){default:case U._$Ms:throw new Error("_$L _$ro ");case U._$Qs:for(var s=this._$d0-1;s>=0;--s)o[s*U._$No+4]=e}},lt.prototype._$zP=function(){this._$GS=new D,this._$GS._$zP()},lt.prototype._$F0=function(t){W.prototype._$F0.call(this,t),this._$LP=t._$6L(),this._$d0=t._$6L(),this._$Yo=t._$6L();var i=t._$nP();this._$BP=new Int16Array(3*this._$Yo);for(var e=3*this._$Yo-1;e>=0;--e)this._$BP[e]=i[e];if(this._$Eo=t._$nP(),this._$Qi=t._$nP(),t.getFormatVersion()>=G._$s7){if(this._$JP=t._$6L(),0!=this._$JP){if(0!=(1&this._$JP)){var r=t._$6L();null==this._$5P&&(this._$5P=new Object),this._$5P._$Hb=parseInt(r)}0!=(this._$JP<._$Os)?this._$6s=(this._$JP<._$Os)>>1:this._$6s=lt._$ms,0!=(32&this._$JP)&&(this.culling=!1)}}else this._$JP=0},lt.prototype.init=function(t){var i=new ut(this),e=this._$d0*U._$No,r=this._$32();switch(null!=i._$Cr&&(i._$Cr=null),i._$Cr=new Float32Array(e),null!=i._$hr&&(i._$hr=null),i._$hr=r?new Float32Array(e):null,U._$do){default:case U._$Ms:if(U._$Ls)for(var o=this._$d0-1;o>=0;--o){var s=o<<1;this._$Qi[s+1]=1-this._$Qi[s+1]}break;case U._$Qs:for(var o=this._$d0-1;o>=0;--o){var s=o<<1,n=o*U._$No,_=this._$Qi[s],a=this._$Qi[s+1];i._$Cr[n]=_,i._$Cr[n+1]=a,i._$Cr[n+4]=0,r&&(i._$hr[n]=_,i._$hr[n+1]=a,i._$hr[n+4]=0)}}return i},lt.prototype._$Nr=function(t,i){var e=i;if(this!=e._$GT()&&console.log("### assert!! ### "),this._$GS._$Ur(t)&&(W.prototype._$Nr.call(this,t,e),!e._$IS[0])){var r=lt._$gT;r[0]=!1,v._$Vr(t,this._$GS,r,this._$d0,this._$Eo,e._$Cr,U._$i2,U._$No)}},lt.prototype._$2b=function(t,i){try{this!=i._$GT()&&console.log("### assert!! ### ");var e=!1;i._$IS[0]&&(e=!0);var r=i;if(!e&&(W.prototype._$2b.call(this,t),this._$32())){var o=this.getTargetBaseDataID();if(r._$8r==W._$ur&&(r._$8r=t.getBaseDataIndex(o)),r._$8r<0)at._$so&&_._$li("_$L _$0P _$G :: %s",o);else{var s=t.getBaseData(r._$8r),n=t._$q2(r._$8r);null==s||n._$x2()?r._$AT=!1:(s._$nb(t,n,r._$Cr,r._$hr,this._$d0,U._$i2,U._$No),r._$AT=!0),r.baseOpacity=n.getTotalOpacity()}}}catch(t){throw t}},lt.prototype.draw=function(t,i,e){if(this!=e._$GT()&&console.log("### assert!! ### "),!e._$IS[0]){var r=e,o=this._$LP;o<0&&(o=1);var s=this.getOpacity(i,r)*e._$VS*e.baseOpacity,n=null!=r._$hr?r._$hr:r._$Cr;t.setClipBufPre_clipContextForDraw(e.clipBufPre_clipContext),t._$WP(this.culling),t._$Uo(o,3*this._$Yo,this._$BP,n,this._$Qi,s,this._$6s,r)}},lt.prototype.dump=function(){console.log(" _$yi( %d ) , _$d0( %d ) , _$Yo( %d ) \n",this._$LP,this._$d0,this._$Yo),console.log(" _$Oi _$di = { ");for(var t=0;tstartMotion() / start _$K _$3 (m%d)\n",r,e._$sr));if(null==t)return-1;e=new gt,e._$w0=t,this.motions.push(e);var s=e._$sr;return this._$eb&&_._$Ji("MotionQueueManager[size:%2d]->startMotion() / new _$w0 (m%d)\n",r,s),s},ct.prototype.updateParam=function(t){try{for(var i=!1,e=0;eupdateParam() / _$T0 _$w0 (m%d)\n",this.motions.length-1,r._$sr),this.motions.splice(e,1),e--)):(this.motions=this.motions.splice(e,1),e--)}else this.motions.splice(e,1),e--}return i}catch(t){return _._$li(t),!0}},ct.prototype.isFinished=function(t){if(arguments.length>=1){for(var i=0;i=48){var r=G._$9o(t);return null!=r?(r._$F0(this),r):null}switch(t){case 1:return this._$bT();case 10:return new s(this._$6L(),!0);case 11:return new S(this._$mP(),this._$mP(),this._$mP(),this._$mP());case 12:return new S(this._$_T(),this._$_T(),this._$_T(),this._$_T());case 13:return new L(this._$mP(),this._$mP());case 14:return new L(this._$_T(),this._$_T());case 15:for(var o=this._$3L(),e=new Array(o),n=0;n>7-this._$hL++&1)},St.prototype._$zT=function(){0!=this._$hL&&(this._$hL=0)},vt.prototype._$wP=function(t,i,e){for(var r=0;rMath.PI;)e-=2*Math.PI;return e},Lt._$9=function(t){return Math.sin(t)},Lt.fcos=function(t){return Math.cos(t)},Et.prototype._$u2=function(){return this._$IS[0]},Et.prototype._$yo=function(){return this._$AT&&!this._$IS[0]},Et.prototype._$GT=function(){return this._$e0},Mt._$W2=0,Mt.SYSTEM_INFO=null,Mt.USER_AGENT=navigator.userAgent,Mt.isIPhone=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO._isIPhone},Mt.isIOS=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO._isIPhone||Mt.SYSTEM_INFO._isIPad},Mt.isAndroid=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO._isAndroid},Mt.getOSVersion=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO.version},Mt.getOS=function(){return Mt.SYSTEM_INFO||Mt.setup(),Mt.SYSTEM_INFO._isIPhone||Mt.SYSTEM_INFO._isIPad?"iOS":Mt.SYSTEM_INFO._isAndroid?"Android":"_$Q0 OS"},Mt.setup=function(){function t(t,i){for(var e=t.substring(i).split(/[ _,;\.]/),r=0,o=0;o<=2&&!isNaN(e[o]);o++){var s=parseInt(e[o]);if(s<0||s>999){_._$li("err : "+s+" @UtHtml5.setup()"),r=0;break}r+=s*Math.pow(1e3,2-o)}return r}var i,e=Mt.USER_AGENT,r=Mt.SYSTEM_INFO={userAgent:e};if((i=e.indexOf("iPhone OS "))>=0)r.os="iPhone",r._isIPhone=!0,r.version=t(e,i+"iPhone OS ".length);else if((i=e.indexOf("iPad"))>=0){if((i=e.indexOf("CPU OS"))<0)return void _._$li(" err : "+e+" @UtHtml5.setup()");r.os="iPad",r._isIPad=!0,r.version=t(e,i+"CPU OS ".length)}else(i=e.indexOf("Android"))>=0?(r.os="Android",r._isAndroid=!0,r.version=t(e,i+"Android ".length)):(r.os="-",r.version=-1)},window.UtSystem=w,window.UtDebug=_,window.LDTransform=yt,window.LDGL=st,window.Live2D=at,window.Live2DModelWebGL=ft,window.Live2DModelJS=q,window.Live2DMotion=J,window.MotionQueueManager=ct,window.PhysicsHair=f,window.AMotion=n,window.PartsDataID=$,window.DrawDataID=F,window.BaseDataID=dt,window.ParamID=u,at.init();var At=!1}()}).call(i,e(9))},function(t,i,e){"use strict";function r(t){s=t}function o(){return s}Object.defineProperty(i,"__esModule",{value:!0}),i.setContext=r,i.getContext=o;var s=void 0},function(t,i,e){"use strict";function r(){}r.matrixStack=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],r.depth=0,r.currentMatrix=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],r.tmp=new Array(16),r.reset=function(){this.depth=0},r.loadIdentity=function(){for(var t=this,i=0;i<16;i++)t.currentMatrix[i]=i%5==0?1:0},r.push=function(){var t=this,i=16*(t.depth+1);t.matrixStack.length#canvasID{position:fixed;width:1;height:2;opacity:3;right:4;bottom:5;z-index:999;pointer-events:none} "},function(t,i,e){"use strict";function r(){this.models=[],this.count=-1,this.reloadFlg=!1,Live2D.init(),o.Live2DFramework.setPlatformManager(new n.default)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=r;var o=e(4),s=e(13),n=function(t){return t&&t.__esModule?t:{default:t}}(s),_=e(14),a=e(5);r.prototype.createModel=function(){var t=new _.cModel;return this.models.push(t),t},r.prototype.changeModel=function(t,i){this.reloadFlg&&(this.reloadFlg=!1,this.releaseModel(0,t),this.createModel(),this.models[0].load(t,i))},r.prototype.getModel=function(t){return t>=this.models.length?null:this.models[t]},r.prototype.releaseModel=function(t,i){this.models.length<=t||(this.models[t].release(i),delete this.models[t],this.models.splice(t,1))},r.prototype.numModels=function(){return this.models.length},r.prototype.setDrag=function(t,i){for(var e=0;e0){r.expressions={};for(var t=0;t1},p.landscape=function(){return window.innerHeight/window.innerWidth<1},p.noConflict=function(){return window.device=b,this},p.ios()?p.ipad()?i("ios ipad tablet"):p.iphone()?i("ios iphone mobile"):p.ipod()&&i("ios ipod mobile"):p.macos()?i("macos desktop"):p.android()?i(p.androidTablet()?"android tablet":"android mobile"):p.blackberry()?i(p.blackberryTablet()?"blackberry tablet":"blackberry mobile"):p.windows()?i(p.windowsTablet()?"windows tablet":p.windowsPhone()?"windows mobile":"windows desktop"):p.fxos()?i(p.fxosTablet()?"fxos tablet":"fxos mobile"):p.meego()?i("meego mobile"):p.nodeWebkit()?i("node-webkit"):p.television()?i("television"):p.desktop()&&i("desktop"),p.cordova()&&i("cordova"),p.onChangeOrientation=function(n){"function"==typeof n&&w.push(n)};var v="resize";Object.prototype.hasOwnProperty.call(window,"onorientationchange")&&(v="onorientationchange"),window.addEventListener?window.addEventListener(v,c,!1):window.attachEvent?window.attachEvent(v,c):window[v]=c,c(),p.type=d(["mobile","tablet","desktop"]),p.os=d(["ios","iphone","ipad","ipod","android","blackberry","windows","fxos","meego","television"]),l(),o.default=p},function(n,o,e){n.exports=e(2)},function(n,o,e){"use strict";function t(n){e.e(0).then(e.bind(null,3)).then(function(n){n.default()}).catch(function(n){console.error(n)})}var r=e(0);!function(n){n&&n.__esModule}(r);window.loadL2D=t}]); \ No newline at end of file diff --git a/lib/clL2D.min.js.map b/lib/clL2D.min.js.map deleted file mode 100644 index 3f260e6..0000000 --- a/lib/clL2D.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///clL2D.min.js","webpack:///webpack/bootstrap c4052e748cfd6494f166","webpack:///./src/index.js"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","document","body","appendChild","element","createElement","innerHTML","_","join"],"mappings":";;;;CAIS,SAAUA,GCAnB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAI,EAAAJ,EACAK,GAAA,EACAH,WAUA,OANAJ,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,GAAA,EAGAF,EAAAD,QAvBA,GAAAD,KA4BAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAAU,EAAA,SAAAP,EAAAQ,EAAAC,GACAZ,EAAAa,EAAAV,EAAAQ,IACAG,OAAAC,eAAAZ,EAAAQ,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAAf,GACA,GAAAQ,GAAAR,KAAAgB,WACA,WAA2B,MAAAhB,GAAA,SAC3B,WAAiC,MAAAA,GAEjC,OADAJ,GAAAU,EAAAE,EAAA,IAAAA,GACAA,GAIAZ,EAAAa,EAAA,SAAAQ,EAAAC,GAAsD,MAAAR,QAAAS,UAAAC,eAAAjB,KAAAc,EAAAC,IAGtDtB,EAAAyB,EAAA,GAGAzB,IAAA0B,EAAA,KDUM,SAAUtB,EAAQD,EAASH,GAEjCI,EAAOD,QAAUH,EAAoB,IAK/B,SAAUI,EAAQD,EAASH,GAEjC,YEvEA2B,UAASC,KAAKC,YATd,WACE,GAAIC,GAAUH,SAASI,cAAc,MAKrC,OAFAD,GAAQE,UAAYC,EAAEC,MAAM,QAAS,WAAY,KAE1CJ","file":"clL2D.min.js","sourcesContent":["/*!\n * DEVELOPING BUILD\n * https://github.com/EYHN/hexo-helper-live2d -The file is creted at Sat Dec 23 2017 23:50:24 GMT+0800 (中国标准时间)\n */\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(1);\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nfunction component() {\n var element = document.createElement('div');\n\n // Lodash(目前通过一个 script 脚本引入)对于执行这一行是必需的\n element.innerHTML = _.join(['Hello', 'webpack'], ' ');\n\n return element;\n}\n\ndocument.body.appendChild(component());\n\n/***/ })\n/******/ ]);\n\n\n// WEBPACK FOOTER //\n// clL2D.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap c4052e748cfd6494f166","function component() {\n var element = document.createElement('div');\n\n // Lodash(目前通过一个 script 脚本引入)对于执行这一行是必需的\n element.innerHTML = _.join(['Hello', 'webpack'], ' ');\n\n return element;\n}\n\ndocument.body.appendChild(component());\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js"],"sourceRoot":""} \ No newline at end of file diff --git a/lib/manifest.json b/lib/manifest.json new file mode 100644 index 0000000..5ca2227 --- /dev/null +++ b/lib/manifest.json @@ -0,0 +1,4 @@ +{ + "clL2D.0.min.js": "clL2D.0.min.js", + "main.js": "clL2D.min.js" +} \ No newline at end of file diff --git a/lib/stats.html b/lib/stats.html index 0e53fc3..139ff3c 100644 --- a/lib/stats.html +++ b/lib/stats.html @@ -181,7 +181,7 @@ }
- +