diff --git a/themes/yilia/layout/_partial/script.ejs b/themes/yilia/layout/_partial/script.ejs index 5c0adcd..5e24487 100644 --- a/themes/yilia/layout/_partial/script.ejs +++ b/themes/yilia/layout/_partial/script.ejs @@ -1 +1 @@ -<%- js('js/mobile.20f43113c8272156b4bc.js') %> <%- js('js/slider.04cd5097b8512828a2aa.js') %> <%- js('js/comment.3c5be78a9577afb4fddf.js') %> <%- js('js/main.bc3ad605ba4123d612db.js') %> <%- js('js/waifu.0fd1dce4d3ba6f0ae31d.js') %> \ No newline at end of file +<%- js('js/mobile.20f43113c8272156b4bc.js') %> <%- js('js/slider.04cd5097b8512828a2aa.js') %> <%- js('js/comment.3c5be78a9577afb4fddf.js') %> <%- js('js/main.bc3ad605ba4123d612db.js') %> <%- js('js/waifu.9d85c4a11fee47ec966e.js') %> \ No newline at end of file diff --git a/themes/yilia/source-src/js/waifu.js b/themes/yilia/source-src/js/waifu.js index fdb4563..ccc22e6 100644 --- a/themes/yilia/source-src/js/waifu.js +++ b/themes/yilia/source-src/js/waifu.js @@ -4,7 +4,7 @@ import Browser from './browser' const isMobile = (Browser.versions.mobile && window.screen.width < 800) // 加载live2d模型 if(!isMobile) { - loadlive2d('live2d', '/model/model.json') + loadlive2d('live2d', 'https://blog-cdn.nos-eastchina1.126.net/live2D/Kesshouban/model.json') document.querySelector('.waifu').style.display = 'block' } diff --git a/themes/yilia/source/js/waifu.0fd1dce4d3ba6f0ae31d.js b/themes/yilia/source/js/waifu.0fd1dce4d3ba6f0ae31d.js deleted file mode 100644 index f4099a0..0000000 --- a/themes/yilia/source/js/waifu.0fd1dce4d3ba6f0ae31d.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){function e(r){if(i[r])return i[r].exports;var o=i[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=531)}({1:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},10:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},11:function(t,e,i){var r=i(1),o=i(2),n=i(23),s=i(9),a=i(10),_=function(t,e,i){var h,l,$,u=t&_.F,p=t&_.G,f=t&_.S,c=t&_.P,d=t&_.B,y=t&_.W,g=p?o:o[e]||(o[e]={}),m=g.prototype,T=p?r:f?r[e]:(r[e]||{}).prototype;p&&(i=e);for(h in i)(l=!u&&T&&void 0!==T[h])&&a(g,h)||($=l?T[h]:i[h],g[h]=p&&"function"!=typeof T[h]?i[h]:d&&l?n($,r):y&&T[h]==$?function(t){var e=function(e,i,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}($):c&&"function"==typeof $?n(Function.call,$):$,c&&((g.virtual||(g.virtual={}))[h]=$,t&_.R&&m&&!m[h]&&s(m,h,$)))};_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,t.exports=_},119:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={versions:function(){var t=window.navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1==t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1||t.indexOf("Mac")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1==t.indexOf("Safari"),weixin:-1==t.indexOf("MicroMessenger")}}()}},121:function(t,e,i){t.exports={default:i(122),__esModule:!0}},122:function(t,e,i){i(123);var r=i(2).Object;t.exports=function(t,e,i){return r.defineProperty(t,e,i)}},123:function(t,e,i){var r=i(11);r(r.S+r.F*!i(3),"Object",{defineProperty:i(5).f})},14:function(t,e,i){var r=i(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},16:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},18:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2:function(t,e){var i=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},23:function(t,e,i){var r=i(40);t.exports=function(t,e,i){if(r(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,o){return t.call(e,i,r,o)}}return function(){return t.apply(e,arguments)}}},28:function(t,e,i){var r=i(6);t.exports=function(t,e){if(!r(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!r(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!r(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!r(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3:function(t,e,i){t.exports=!i(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},40:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},41:function(t,e,i){var r=i(6),o=i(1).document,n=r(o)&&r(o.createElement);t.exports=function(t){return n?o.createElement(t):{}}},44:function(t,e,i){t.exports=!i(3)&&!i(16)(function(){return 7!=Object.defineProperty(i(41)("div"),"a",{get:function(){return 7}}).a})},5:function(t,e,i){var r=i(14),o=i(44),n=i(28),s=Object.defineProperty;e.f=i(3)?Object.defineProperty:function(t,e,i){if(r(t),e=n(e,!0),r(i),o)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},531:function(t,e,i){"use strict";i(532);var r=i(119);(function(t){return t&&t.__esModule?t:{default:t}})(r).default.versions.mobile&&window.screen.width<800||(loadlive2d("live2d","/model/model.json"),document.querySelector(".waifu").style.display="block"),console.log("\n %c Silence %c https://www.colorfulsweet.site \n","color:#FFFFFB;background:#ffa628;padding:5px 0;border-radius:.5rem 0 0 .5rem;","background: #efefef;padding:5px 0;border-radius:0 .5rem .5rem 0;"),console.log("页面加载消耗了 "+(Math.round(100*performance.now())/100/1e3).toFixed(2)+"s")},532:function(t,e,i){"use strict";var r=i(121),o=function(t){return t&&t.__esModule?t:{default:t}}(r);!function(t){function e(r){if(i[r])return i[r].exports;var o=i[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,r){e.o(t,i)||(0,o.default)(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,i){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 n(){this.id="",this.type=-1,this.value=null}function s(){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 a(){this.tr=new Float32Array(16),this.identity()}function _(t,e){a.prototype.constructor.call(this),this.width=t,this.height=e}function h(){MotionQueueManager.prototype.constructor.call(this),this.currentPriority=null,this.reservePriority=null,this.super=MotionQueueManager.prototype}function l(){this.physicsList=new Array,this.startTimeMSec=UtSystem.getUserTimeMSec()}function $(){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(){a.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,this.max=Number.MAX_VALUE,this.min=0}function c(){}var d=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,e,i){this.accelX=t,this.accelY=e,this.accelZ=i},r.prototype.setDrag=function(t,e){this.dragX=t,this.dragY=e},r.prototype.getMainMotionManager=function(){return this.mainMotionManager},r.prototype.getExpressionManager=function(){return this.expressionManager},r.prototype.loadModelData=function(t,e){var i=c.getPlatformManager();this.debugMode&&i.log("Load model : "+t);var r=this;i.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 _(r.live2DModel.getCanvasWidth(),r.live2DModel.getCanvasHeight()),r.modelMatrix.setWidth(2),r.modelMatrix.setCenterPosition(0,0),e(r.live2DModel)})},r.prototype.loadTexture=function(t,e,i){d++;var r=c.getPlatformManager();this.debugMode&&r.log("Load Texture : "+e);var o=this;r.loadTexture(this.live2DModel,t,e,function(){d--,0==d&&(o.isTexLoaded=!0),"function"==typeof i&&i()})},r.prototype.loadMotion=function(t,e,i){var r=c.getPlatformManager();this.debugMode&&r.log("Load Motion : "+e);var o=null,n=this;r.loadBytes(e,function(e){o=Live2DMotion.loadMotion(e),null!=t&&(n.motions[t]=o),i(o)})},r.prototype.loadExpression=function(t,e,i){var r=c.getPlatformManager();this.debugMode&&r.log("Load Expression : "+e);var n=this;r.loadBytes(e,function(e){null!=t&&(n.expressions[t]=o.loadJson(e)),"function"==typeof i&&i()})},r.prototype.loadPose=function(t,e){var i=c.getPlatformManager();this.debugMode&&i.log("Load Pose : "+t);var r=this;try{i.loadBytes(t,function(t){r.pose=$.load(t),"function"==typeof e&&e()})}catch(t){console.warn(t)}},r.prototype.loadPhysics=function(t){var e=c.getPlatformManager();this.debugMode&&e.log("Load Physics : "+t);var i=this;try{e.loadBytes(t,function(t){i.physics=l.load(t)})}catch(t){console.warn(t)}},r.prototype.hitTestSimple=function(t,e,i){if(null===this.live2DModel)return!1;var r=this.live2DModel.getDrawDataIndex(t);if(r<0)return!1;for(var o=this.live2DModel.getTransformedPoints(r),n=this.live2DModel.getCanvasWidth(),s=0,a=this.live2DModel.getCanvasHeight(),_=0,h=0;hs&&(s=l),$_&&(_=$)}var u=this.modelMatrix.invertTransformX(e),p=this.modelMatrix.invertTransformY(i);return n<=u&&u<=s&&a<=p&&p<=_},r.prototype.hitTestSimpleCustom=function(t,e,i,r){return null!==this.live2DModel&&i>=t[0]&&i<=e[0]&&r<=t[1]&&r>=e[1]},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 e=new o,i=c.getPlatformManager(),r=i.jsonParseFromBytes(t);if(e.setFadeIn(parseInt(r.fade_in)>0?parseInt(r.fade_in):1e3),e.setFadeOut(parseInt(r.fade_out)>0?parseInt(r.fade_out):1e3),null==r.params)return e;var s=r.params,a=s.length;e.paramList=[];for(var _=0;_=0;--n){var s=this.paramList[n];s.type==o.TYPE_ADD?t.addToParamFloat(s.id,s.value,i):s.type==o.TYPE_MULT?t.multParamFloat(s.id,s.value,i):s.type==o.TYPE_SET&&t.setParamFloat(s.id,s.value,i)}},s.prototype.calcNextBlink=function(){return UtSystem.getUserTimeMSec()+Math.random()*(2*this.blinkIntervalMsec-1)},s.prototype.setInterval=function(t){this.blinkIntervalMsec=t},s.prototype.setEyeMotion=function(t,e,i){this.closingMotionMsec=t,this.closedMotionMsec=e,this.openingMotionMsec=i},s.prototype.updateParam=function(t){var e,i=UtSystem.getUserTimeMSec(),r=0;switch(this.eyeState){case y.STATE_CLOSING:r=(i-this.stateStartTime)/this.closingMotionMsec,r>=1&&(r=1,this.eyeState=y.STATE_CLOSED,this.stateStartTime=i),e=1-r;break;case y.STATE_CLOSED:r=(i-this.stateStartTime)/this.closedMotionMsec,r>=1&&(this.eyeState=y.STATE_OPENING,this.stateStartTime=i),e=0;break;case y.STATE_OPENING:r=(i-this.stateStartTime)/this.openingMotionMsec,r>=1&&(r=1,this.eyeState=y.STATE_INTERVAL,this.nextBlinkTime=this.calcNextBlink()),e=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 e=MotionQueueManager.prototype.updateParam.call(this,t);return this.isFinished()&&(this.currentPriority=0),e},h.prototype.startMotionPrio=function(t,e){return e==this.reservePriority&&(this.reservePriority=0),this.currentPriority=e,this.startMotion(t,!1)},l.load=function(t){for(var e=new l,i=c.getPlatformManager(),r=i.jsonParseFromBytes(t),o=r.physics_hair,n=o.length,s=0;s=0)break;r=n,o=t.getPartsOpacity(s),(o+=i/.5)>1&&(o=1)}}r<0&&(r=0,o=1);for(var n=0;n.15&&(_=1-.15/(1-o)),h>_&&(h=_),t.setPartsOpacity(s,h)}}},$.prototype.copyOpacityOtherParts=function(t,e){for(var i=0;io)&&(l*=o/u,$*=o/u,u=o),this.faceVX+=l,this.faceVY+=$;var f=.5*(Math.sqrt(o*o+16*o*a-8*o*a)-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 a,f.prototype.getMaxScale=function(){return this.max},f.prototype.getMinScale=function(){return this.min},f.prototype.setMaxScale=function(t){this.max=t},f.prototype.setMinScale=function(t){this.min=t},f.prototype.isMaxScale=function(){return this.getScaleX()==this.max},f.prototype.isMinScale=function(){return this.getScaleX()==this.min},f.prototype.adjustTranslate=function(t,e){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&&(e=this.screenBottom-this.tr[5]*this.maxBottom-this.tr[13]);var i=[1,0,0,0,0,1,0,0,0,0,1,0,t,e,0,1];a.mul(i,this.tr,this.tr)},f.prototype.adjustScale=function(t,e,i){var r=i*this.tr[0];r0&&(i=this.min/this.tr[0]):r>this.max&&this.tr[0]>0&&(i=this.max/this.tr[0]);var o=[1,0,0,0,0,1,0,0,0,0,1,0,t,e,0,1],n=[i,0,0,0,0,i,0,0,0,0,1,0,0,0,0,1],s=[1,0,0,0,0,1,0,0,0,0,1,0,-t,-e,0,1];a.mul(s,this.tr,this.tr),a.mul(n,this.tr,this.tr),a.mul(o,this.tr,this.tr)},f.prototype.setScreenRect=function(t,e,i,r){this.screenLeft=t,this.screenRight=e,this.screenTop=r,this.screenBottom=i},f.prototype.setMaxScreenRect=function(t,e,i,r){this.maxLeft=t,this.maxRight=e,this.maxTop=r,this.maxBottom=i},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:$,L2DPartsParam:u,L2DPhysics:l,L2DMotionManager:h,L2DModelMatrix:_,L2DMatrix44:a,EYE_STATE:y,L2DEyeBlink:s,L2DExpressionParam:n,L2DExpressionMotion:o,L2DBaseModel:r}},function(t,e,i){var r={DEBUG_LOG:!1,DEBUG_MOUSE_LOG:!1,DEBUG_DRAW_HIT_AREA:!1,DEBUG_DRAW_ALPHA_MODEL:!1,VIEW_MAX_SCALE:2,VIEW_MIN_SCALE:.8,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_SLEEPY:2,PRIORITY_NORMAL:3,PRIORITY_FORCE:4,MOTION_GROUP_IDLE:"idle",MOTION_GROUP_SLEEPY:"sleepy",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,e,i){function r(t){n=t}function o(){return n}Object.defineProperty(e,"__esModule",{value:!0}),e.setContext=r,e.getContext=o;var n=void 0},function(t,e,i){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=0;t<16;t++)this.currentMatrix[t]=t%5==0?1:0},r.push=function(){var t=(this.depth,16*(this.depth+1));this.matrixStack.lengthi.left&&e.y>i.top)return e;var o=t.x-e.x,n=t.y-e.y,s=r(o,n);e.x_t.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 e=new A;e=new A,e.r=0,e.g=0,e.b=0,e.a=1,this.CHANNEL_COLORS.push(e),e=new A,e.r=1,e.g=0,e.b=0,e.a=0,this.CHANNEL_COLORS.push(e),e=new A,e.r=0,e.g=1,e.b=0,e.a=0,this.CHANNEL_COLORS.push(e),e=new A,e.r=0,e.g=0,e.b=1,e.a=0,this.CHANNEL_COLORS.push(e);for(var i=0;iG._$T7)throw t._$NP|=e._$4s,new lt("_$gi _$C _$li , _$n0 _$_ version _$li ( SDK : "+G._$T7+" < _$f0 : "+r+" )@_$SS#loadModel()\n");var h=o._$nP();if(r>=G._$s7){var l=o._$9T(),$=o._$9T();if(-30584!=l||-30584!=$)throw t._$NP|=e._$0s,new lt("_$gi _$C _$li , _$0 _$6 _$Ui.")}t._$KS(h);var u=t.getModelContext();u.setDrawParam(t.getDrawParam()),u.init()}catch(t){a._$Rb(t)}},e.prototype._$KS=function(t){this._$MT=t},e.prototype.getModelImpl=function(){return null==this._$MT&&(this._$MT=new p,this._$MT._$zP()),this._$MT},e.prototype.getCanvasWidth=function(){return null==this._$MT?0:this._$MT.getCanvasWidth()},e.prototype.getCanvasHeight=function(){return null==this._$MT?0:this._$MT.getCanvasHeight()},e.prototype.getParamFloat=function(t){return"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),this._$5S.getParamFloat(t)},e.prototype.setParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1-i)+e*i)},e.prototype.addToParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)+e*i)},e.prototype.multParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1+(e-1)*i))},e.prototype.getParamIndex=function(t){return this._$5S.getParamIndex(u.getID(t))},e.prototype.loadParam=function(){this._$5S.loadParam()},e.prototype.saveParam=function(){this._$5S.saveParam()},e.prototype.init=function(){this._$5S.init()},e.prototype.update=function(){this._$5S.update()},e.prototype._$Rs=function(){return a._$li("_$60 _$PT _$Rs()"),-1},e.prototype._$Ds=function(t){a._$li("_$60 _$PT _$SS#_$Ds() \n")},e.prototype._$K2=function(){},e.prototype.draw=function(){},e.prototype.getModelContext=function(){return this._$5S},e.prototype._$s2=function(){return this._$NP},e.prototype._$P7=function(t,e,i,r){var o=-1,n=0,s=this;if(0!=i)if(1==t.length){var a=t[0],_=0!=s.getParamFloat(a),h=e[0],l=s.getPartsOpacity(h),$=i/r;_?(l+=$)>1&&(l=1):(l-=$)<0&&(l=0),s.setPartsOpacity(h,l)}else{for(var u=0;u=0)break;o=u;var h=e[u];n=s.getPartsOpacity(h),(n+=i/r)>1&&(n=1)}}o<0&&(console.log("No _$wi _$q0/ _$U default[%s]",t[0]),o=0,n=1,s.loadParam(),s.setParamFloat(t[o],n),s.saveParam());for(var u=0;u.15&&(f=1-.15/(1-n)),c>f&&(c=f),s.setPartsOpacity(h,c)}}}else for(var u=0;u=this._$5S._$aS.length)return null;var e=this._$5S._$aS[t];return null!=e&&e.getType()==W._$wb&&e instanceof $t?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=_t.frameBuffers.length,e=0;e0){var n=e.gl.getParameter(e.gl.FRAMEBUFFER_BINDING),s=new Array(4);s[0]=0,s[1]=0,s[2]=e.gl.canvas.width,s[3]=e.gl.canvas.height,e.gl.viewport(0,0,_t.clippingMaskBufferSize,_t.clippingMaskBufferSize),this.setupLayoutBounds(i),e.gl.bindFramebuffer(e.gl.FRAMEBUFFER,_t.frameBuffers[this.curFrameNo].framebuffer),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT);for(var r=0;rr?i:r,n=o,s=o,a=0,_=0,h=e.clippedDrawContextList.length,l=0;la&&(a=P),S>_&&(_=S)}}if(n==o)e.allClippedDrawRect.x=0,e.allClippedDrawRect.y=0,e.allClippedDrawRect.width=0,e.allClippedDrawRect.height=0,e.isUsing=!1;else{var L=a-n,M=_-s;e.allClippedDrawRect.x=n,e.allClippedDrawRect.y=s,e.allClippedDrawRect.width=L,e.allClippedDrawRect.height=M,e.isUsing=!0}},i.prototype.setupLayoutBounds=function(t){var e=t/i.CHANNEL_COUNT,r=t%i.CHANNEL_COUNT;e=~~e,r=~~r;for(var o=0,n=0;n=1)return 1;var p=r,f=p*p;return l*(p*f)+$*f+u*p+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 i=w.getUserTimeMSec();if(e._$z2<0){e._$z2=i,e._$bs=i;var r=this.getDurationMSec();e._$Do<0&&(e._$Do=r<=0?-1:e._$z2+r)}var o=this._$V0;o=o*(0==this._$dP?1:ht._$r2((i-e._$bs)/this._$dP))*(0==this._$eo||e._$Do<0?1:ht._$r2((e._$Do-i)/this._$eo)),0<=o&&o<=1||console.log("### assert!! ### "),this.updateParamExe(t,i,o,e),e._$Do>0&&e._$Do0?console.log("\n"):i%8==0&&i>0&&console.log(" "),console.log("%02X ",255&t[i]);console.log("\n")},a._$nr=function(t,e,i){console.log("%s\n",t);for(var r=e.length,o=0;o=0;--r)this._$lL[r]._$oP(t,this);this._$oo(t,i),this._$M2=this._$Yb(),this._$9b=(this._$M2-this._$ks)/i,this._$ks=this._$M2}for(var 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 i=1/e;this.p1.vx=(this.p1.x-this.p1._$s0)*i,this.p1.vy=(this.p1.y-this.p1._$70)*i,this.p1.ax=(this.p1.vx-this.p1._$7L)*i,this.p1.ay=(this.p1.vy-this.p1._$HL)*i,this.p1.fx=this.p1.ax*this.p1._$p,this.p1.fy=this.p1.ay*this.p1._$p,this.p1._$xT();var r,o,n=-Math.atan2(this.p1.y-this.p2.y,this.p1.x-this.p2.x),s=Math.cos(n),a=Math.sin(n),_=9.8*this.p2._$p,h=this._$Db*Lt._$bS,l=_*Math.cos(n-h);r=l*a,o=l*s;var $=-this.p1.fx*a*a,u=-this.p1.fy*a*s,p=-this.p2.vx*this._$L2,f=-this.p2.vy*this._$L2;this.p2.fx=r+$+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*e,this.p2.vy+=this.p2.ay*e,this.p2.x+=this.p2.vx*e,this.p2.y+=this.p2.vy*e;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)*i,this.p2.vy=(this.p2.y-this.p2._$70)*i,this.p2._$xT()},c.prototype._$xT=function(){this._$s0=this.x,this._$70=this.y,this._$7L=this.vx,this._$HL=this.vy},d.prototype._$oP=function(t,e){},y.prototype=new d,y.prototype._$oP=function(t,e){var i=this.scale*t.getParamFloat(this._$wL),r=e.getPhysicsPoint1();switch(this._$tL){default:case f.Src.SRC_TO_X:r.x=r.x+(i-r.x)*this._$V0;break;case f.Src.SRC_TO_Y:r.y=r.y+(i-r.y)*this._$V0;break;case f.Src.SRC_TO_G_ANGLE:var o=e._$qr();o+=(i-o)*this._$V0,e._$pr(o)}},g.prototype._$YS=function(t,e){},T.prototype=new g,T.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",v.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},v.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())},v.prototype._$e=function(){};var xt=function(){};xt._$ni=function(t,e,i,r,o,n,s,a,_){var h=s*n-a*o;if(0==h)return null;var l,$=((t-i)*n-(e-r)*o)/h;return l=0!=o?(t-i-$*s)/o:(e-r-$*a)/n,isNaN(l)&&(l=(t-i-$*s)/o,isNaN(l)&&(l=(e-r-$*a)/n),isNaN(l)&&(console.log("a is NaN @UtVector#_$ni() "),console.log("v1x : "+o),console.log("v1x != 0 ? "+(0!=o)))),null==_?new Array(l,$):(_[0]=l,_[1]=$,_)},P.prototype._$8P=function(){return this.x+.5*this.width},P.prototype._$6P=function(){return this.y+.5*this.height},P.prototype._$EL=function(){return this.x+this.width},P.prototype._$5T=function(){return this.y+this.height},P.prototype._$jL=function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r},P.prototype._$jL=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},P.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},P.prototype.expand=function(t,e){this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e},S._$Z2=function(t,e,i,r){var o=e._$Q2(t,i),n=t._$vs(),s=t._$Tr();if(e._$zr(n,s,o),o<=0)return r[n[0]];if(1==o){var a=r[n[0]],_=r[n[1]],h=s[0];return a+(_-a)*h|0}if(2==o){var a=r[n[0]],_=r[n[1]],l=r[n[2]],$=r[n[3]],h=s[0],u=s[1],p=a+(_-a)*h|0,f=l+($-l)*h|0;return p+(f-p)*u|0}if(3==o){var c=r[n[0]],d=r[n[1]],y=r[n[2]],g=r[n[3]],m=r[n[4]],T=r[n[5]],v=r[n[6]],P=r[n[7]],h=s[0],u=s[1],S=s[2],a=c+(d-c)*h|0,_=y+(g-y)*h|0,l=m+(T-m)*h|0,$=v+(P-v)*h|0,p=a+(_-a)*u|0,f=l+($-l)*u|0;return p+(f-p)*S|0}if(4==o){var L=r[n[0]],M=r[n[1]],E=r[n[2]],A=r[n[3]],x=r[n[4]],w=r[n[5]],I=r[n[6]],O=r[n[7]],D=r[n[8]],R=r[n[9]],b=r[n[10]],F=r[n[11]],C=r[n[12]],N=r[n[13]],B=r[n[14]],U=r[n[15]],h=s[0],u=s[1],S=s[2],G=s[3],c=L+(M-L)*h|0,d=E+(A-E)*h|0,y=x+(w-x)*h|0,g=I+(O-I)*h|0,m=D+(R-D)*h|0,T=b+(F-b)*h|0,v=C+(N-C)*h|0,P=B+(U-B)*h|0,a=c+(d-c)*u|0,_=y+(g-y)*u|0,l=m+(T-m)*u|0,$=v+(P-v)*u|0,p=a+(_-a)*S|0,f=l+($-l)*S|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)},M.prototype.getClipIDList=function(){return this.clipIDList},M.prototype.init=function(t){},M.prototype._$Nr=function(t,e){if(e._$IS[0]=!1,e._$Us=S._$Z2(t,this._$GS,e._$IS,this._$Lb),_t._$Zs);else if(e._$IS[0])return;e._$7s=S._$br(t,this._$GS,e._$IS,this._$mS)},M.prototype._$2b=function(t,e){},M.prototype.getDrawDataID=function(){return this._$gP},M.prototype._$j2=function(t){this._$gP=t},M.prototype.getOpacity=function(t,e){return e._$7s},M.prototype._$zS=function(t,e){return e._$Us},M.prototype._$MS=function(t){for(var e=t.length-1;e>=0;--e){var i=t[e];iM._$R2&&(M._$R2=i)}},M.prototype.getTargetBaseDataID=function(){return this._$dr},M.prototype._$gs=function(t){this._$dr=t},M.prototype._$32=function(){return null!=this._$dr&&this._$dr!=gt._$2o()},M.prototype.preDraw=function(t,e,i){},M.prototype.draw=function(t,e,i){},M.prototype.getType=function(){},M.prototype._$B2=function(t,e,i){},E._$ps=32,E.CLIPPING_PROCESS_NONE=0,E.CLIPPING_PROCESS_OVERWRITE_ALPHA=1,E.CLIPPING_PROCESS_MULTIPLY_ALPHA=2,E.CLIPPING_PROCESS_DRAW=3,E.CLIPPING_PROCESS_CLEAR_ALPHA=4,E.prototype.setChannelFlagAsColor=function(t,e){this.CHANNEL_COLORS[t]=e},E.prototype.getChannelFlagAsColor=function(t){return this.CHANNEL_COLORS[t]},E.prototype._$ZT=function(){},E.prototype._$Uo=function(t,e,i,r,o,n,s){},E.prototype._$Rs=function(){return-1},E.prototype._$Ds=function(t){},E.prototype.setBaseColor=function(t,e,i,r){t<0?t=0:t>1&&(t=1),e<0?e=0:e>1&&(e=1),i<0?i=0:i>1&&(i=1),r<0?r=0:r>1&&(r=1),this._$lT=t,this._$C0=e,this._$tT=i,this._$WL=r},E.prototype._$WP=function(t){this.culling=t},E.prototype.setMatrix=function(t){for(var e=0;e<16;e++)this.matrix4x4[e]=t[e]},E.prototype._$IT=function(){return this.matrix4x4},E.prototype.setPremultipliedAlpha=function(t){this.premultipliedAlpha=t},E.prototype.isPremultipliedAlpha=function(){return this.premultipliedAlpha},E.prototype.setAnisotropy=function(t){this.anisotropy=t},E.prototype.getAnisotropy=function(){return this.anisotropy},E.prototype.getClippingProcess=function(){return this.clippingProcess},E.prototype.setClippingProcess=function(t){this.clippingProcess=t},E.prototype.setClipBufPre_clipContextForMask=function(t){this.clipBufPre_clipContextMask=t},E.prototype.getClipBufPre_clipContextMask=function(){return this.clipBufPre_clipContextMask},E.prototype.setClipBufPre_clipContextForDraw=function(t){this.clipBufPre_clipContextDraw=t},E.prototype.getClipBufPre_clipContextDraw=function(){return this.clipBufPre_clipContextDraw},x._$ur=-2,x._$c2=1,x._$_b=2,x.prototype._$F0=function(t){this._$kP=t._$nP(),this._$dr=t._$nP()},x.prototype.readV2_opacity=function(t){t.getFormatVersion()>=G.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this._$mS=t._$Tb())},x.prototype.init=function(t){},x.prototype._$Nr=function(t,e){},x.prototype.interpolateOpacity=function(t,e,i,r){null==this._$mS?i.setInterpolatedOpacity(1):i.setInterpolatedOpacity(S._$br(t,e,r,this._$mS))},x.prototype._$2b=function(t,e){},x.prototype._$nb=function(t,e,i,r,o,n,s){},x.prototype.getType=function(){},x.prototype._$gs=function(t){this._$dr=t},x.prototype._$a2=function(t){this._$kP=t},x.prototype.getTargetBaseDataID=function(){return this._$dr},x.prototype.getBaseDataID=function(){return this._$kP},x.prototype._$32=function(){return null!=this._$dr&&this._$dr!=gt._$2o()},w._$W2=0,w._$CS=w._$W2,w._$Mo=function(){return!0},w._$XP=function(t){try{for(var e=getTimeMSec();getTimeMSec()-e=t.length)return!1;for(var o=e;o=0;--i){var r=this._$Ob[i].getParamIndex(e);if(r==I._$ds&&(r=t.getParamIndex(this._$Ob[i].getParamID())),t._$Xb(r))return!0}return!1},D.prototype._$Q2=function(t,e){for(var i,r,o=this._$Ob.length,n=t._$v2(),s=0,a=0;aU._$Qb&&console.log("err 23245\n");for(var o=this._$Ob.length,n=1,s=1,a=0,_=0;_=0;--n)i[n]=o[n]}else this.mult_fast(t,e,i,r)},R.prototype.mult_fast=function(t,e,i,r){r?(i[0]=t[0]*e[0]+t[4]*e[1]+t[8]*e[2],i[4]=t[0]*e[4]+t[4]*e[5]+t[8]*e[6],i[8]=t[0]*e[8]+t[4]*e[9]+t[8]*e[10],i[12]=t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12],i[1]=t[1]*e[0]+t[5]*e[1]+t[9]*e[2],i[5]=t[1]*e[4]+t[5]*e[5]+t[9]*e[6],i[9]=t[1]*e[8]+t[5]*e[9]+t[9]*e[10],i[13]=t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13],i[2]=t[2]*e[0]+t[6]*e[1]+t[10]*e[2],i[6]=t[2]*e[4]+t[6]*e[5]+t[10]*e[6],i[10]=t[2]*e[8]+t[6]*e[9]+t[10]*e[10],i[14]=t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14],i[3]=i[7]=i[11]=0,i[15]=1):(i[0]=t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],i[4]=t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],i[8]=t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],i[12]=t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],i[1]=t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],i[5]=t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],i[9]=t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],i[13]=t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],i[2]=t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],i[6]=t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],i[10]=t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],i[14]=t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],i[3]=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],i[7]=t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],i[11]=t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],i[15]=t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15])},R.prototype.translate=function(t,e,i){this.m[12]=this.m[0]*t+this.m[4]*e+this.m[8]*i+this.m[12],this.m[13]=this.m[1]*t+this.m[5]*e+this.m[9]*i+this.m[13],this.m[14]=this.m[2]*t+this.m[6]*e+this.m[10]*i+this.m[14],this.m[15]=this.m[3]*t+this.m[7]*e+this.m[11]*i+this.m[15]},R.prototype.scale=function(t,e,i){this.m[0]*=t,this.m[4]*=e,this.m[8]*=i,this.m[1]*=t,this.m[5]*=e,this.m[9]*=i,this.m[2]*=t,this.m[6]*=e,this.m[10]*=i,this.m[3]*=t,this.m[7]*=e,this.m[11]*=i},R.prototype.rotateX=function(t){var e=Lt.fcos(t),i=Lt._$9(t),r=this.m[4];this.m[4]=r*e+this.m[8]*i,this.m[8]=r*-i+this.m[8]*e,r=this.m[5],this.m[5]=r*e+this.m[9]*i,this.m[9]=r*-i+this.m[9]*e,r=this.m[6],this.m[6]=r*e+this.m[10]*i,this.m[10]=r*-i+this.m[10]*e,r=this.m[7],this.m[7]=r*e+this.m[11]*i,this.m[11]=r*-i+this.m[11]*e},R.prototype.rotateY=function(t){var e=Lt.fcos(t),i=Lt._$9(t),r=this.m[0];this.m[0]=r*e+this.m[8]*-i,this.m[8]=r*i+this.m[8]*e,r=this.m[1],this.m[1]=r*e+this.m[9]*-i,this.m[9]=r*i+this.m[9]*e,r=m[2],this.m[2]=r*e+this.m[10]*-i,this.m[10]=r*i+this.m[10]*e,r=m[3],this.m[3]=r*e+this.m[11]*-i,this.m[11]=r*i+this.m[11]*e},R.prototype.rotateZ=function(t){var e=Lt.fcos(t),i=Lt._$9(t),r=this.m[0];this.m[0]=r*e+this.m[4]*i,this.m[4]=r*-i+this.m[4]*e,r=this.m[1],this.m[1]=r*e+this.m[5]*i,this.m[5]=r*-i+this.m[5]*e,r=this.m[2],this.m[2]=r*e+this.m[6]*i,this.m[6]=r*-i+this.m[6]*e,r=this.m[3],this.m[3]=r*e+this.m[7]*i,this.m[7]=r*-i+this.m[7]*e},b.prototype=new it,b._$tP=new Object,b._$27=function(){b._$tP.clear()},b.getID=function(t){var e=b._$tP[t];return null==e&&(e=new b(t),b._$tP[t]=e),e},b.prototype._$3s=function(){return new b},F._$kS=-1,F._$pS=0,F._$hb=1,F.STATE_IDENTITY=0,F._$gb=1,F._$fo=2,F._$go=4,F.prototype.transform=function(t,e,i){var r,o,n,s,a,_,h=0,l=0;switch(this._$hi){default:return;case F._$go|F._$fo|F._$gb:for(r=this._$7,o=this._$H,n=this._$k,s=this._$f,a=this._$g,_=this._$w;--i>=0;){var $=t[h++],u=t[h++];e[l++]=r*$+o*u+n,e[l++]=s*$+a*u+_}return;case F._$go|F._$fo:for(r=this._$7,o=this._$H,s=this._$f,a=this._$g;--i>=0;){var $=t[h++],u=t[h++];e[l++]=r*$+o*u,e[l++]=s*$+a*u}return;case F._$go|F._$gb:for(o=this._$H,n=this._$k,s=this._$f,_=this._$w;--i>=0;){var $=t[h++];e[l++]=o*t[h++]+n,e[l++]=s*$+_}return;case F._$go:for(o=this._$H,s=this._$f;--i>=0;){var $=t[h++];e[l++]=o*t[h++],e[l++]=s*$}return;case F._$fo|F._$gb:for(r=this._$7,n=this._$k,a=this._$g,_=this._$w;--i>=0;)e[l++]=r*t[h++]+n,e[l++]=a*t[h++]+_;return;case F._$fo:for(r=this._$7,a=this._$g;--i>=0;)e[l++]=r*t[h++],e[l++]=a*t[h++];return;case F._$gb:for(n=this._$k,_=this._$w;--i>=0;)e[l++]=t[h++]+n,e[l++]=t[h++]+_;return;case F.STATE_IDENTITY:return void(t==e&&h==l||w._$jT(t,h,e,l,2*i))}},F.prototype.update=function(){0==this._$H&&0==this._$f?1==this._$7&&1==this._$g?0==this._$k&&0==this._$w?(this._$hi=F.STATE_IDENTITY,this._$Z=F._$pS):(this._$hi=F._$gb,this._$Z=F._$hb):0==this._$k&&0==this._$w?(this._$hi=F._$fo,this._$Z=F._$kS):(this._$hi=F._$fo|F._$gb,this._$Z=F._$kS):0==this._$7&&0==this._$g?0==this._$k&&0==this._$w?(this._$hi=F._$go,this._$Z=F._$kS):(this._$hi=F._$go|F._$gb,this._$Z=F._$kS):0==this._$k&&0==this._$w?(this._$hi=F._$go|F._$fo,this._$Z=F._$kS):(this._$hi=F._$go|F._$fo|F._$gb,this._$Z=F._$kS)},F.prototype._$RT=function(t){this._$IT(t);var e=t[0],i=t[2],r=t[1],o=t[3],n=Math.sqrt(e*e+r*r),s=e*o-i*r;0==n?_t._$so&&console.log("affine._$RT() / rt==0"):(t[0]=n,t[1]=s/n,t[2]=(r*o+e*i)/s,t[3]=Math.atan2(r,e))},F.prototype._$ho=function(t,e,i,r){var o=new Float32Array(6),n=new Float32Array(6);t._$RT(o),e._$RT(n);var s=new Float32Array(6);s[0]=o[0]+(n[0]-o[0])*i,s[1]=o[1]+(n[1]-o[1])*i,s[2]=o[2]+(n[2]-o[2])*i,s[3]=o[3]+(n[3]-o[3])*i,s[4]=o[4]+(n[4]-o[4])*i,s[5]=o[5]+(n[5]-o[5])*i,r._$CT(s)},F.prototype._$CT=function(t){var e=Math.cos(t[3]),i=Math.sin(t[3]);this._$7=t[0]*e,this._$f=t[0]*i,this._$H=t[1]*(t[2]*e-i),this._$g=t[1]*(t[2]*i+e),this._$k=t[4],this._$w=t[5],this.update()},F.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},C.prototype=new s,C._$cs="VISIBLE:",C._$ar="LAYOUT:",C._$Co=0,C._$D2=[],C._$1T=1,C.loadMotion=function(t){var e=new C,i=[0],r=t.length;e._$yT=0;for(var o=0;o=0){var _=new B;O.startsWith(t,s,C._$cs)?(_._$RP=B._$hs,_._$4P=new String(t,s,a-s)):O.startsWith(t,s,C._$ar)?(_._$4P=new String(t,s+7,a-s-7),O.startsWith(t,s+7,"ANCHOR_X")?_._$RP=B._$xs:O.startsWith(t,s+7,"ANCHOR_Y")?_._$RP=B._$us:O.startsWith(t,s+7,"SCALE_X")?_._$RP=B._$qs:O.startsWith(t,s+7,"SCALE_Y")?_._$RP=B._$Ys:O.startsWith(t,s+7,"X")?_._$RP=B._$ws:O.startsWith(t,s+7,"Y")&&(_._$RP=B._$Ns)):(_._$RP=B._$Fr,_._$4P=new String(t,s,a-s)),e.motions.push(_);var h=0;for(C._$D2.clear(),o=a+1;o0){C._$D2.push(l),h++;var $=i[0];if($e._$yT&&(e._$yT=h)}}}else{for(var s=o,a=-1;o=0)for(a==s+4&&"f"==t[s+1]&&"p"==t[s+2]&&"s"==t[s+3]&&(u=!0),o=a+1;o0&&u&&5=l?l-1:s];t.setParamFloat($,u)}else if(B._$ws<=h._$RP&&h._$RP<=B._$Ys);else{var p=t.getParamFloat($),f=h._$I0[s>=l?l-1:s],c=h._$I0[s+1>=l?l-1:s+1],d=f+(c-f)*a,y=p+(d-p)*i;t.setParamFloat($,y)}}s>=this._$yT&&(this._$E?(r._$z2=e,this.loopFadeIn&&(r._$bs=e)):r._$9L=!0)},C.prototype._$r0=function(){return this._$E},C.prototype._$aL=function(t){this._$E=t},C.prototype.isLoopFadeIn=function(){return this.loopFadeIn},C.prototype.setLoopFadeIn=function(t){this.loopFadeIn=t},N.prototype.clear=function(){this.size=0},N.prototype.add=function(t){if(this._$P.length<=this.size){var e=new Float32Array(2*this.size);w._$jT(this._$P,0,e,0,this.size),this._$P=e}this._$P[this.size++]=t},N.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 I;case 68:return new z;case 69:return new v;case 70:return new $t;default:return G._$uT(t),null}else if(t<150)switch(t){case 131:return new st;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 e=this._$aS.length-1;e>=0;--e)if(null!=this._$aS[e]&&this._$aS[e].getDrawDataID()==t)return e;return-1},Y.prototype.getDrawData=function(t){if(t instanceof b){if(null==this._$Bo){this._$Bo=new Object;for(var e=this._$aS.length,i=0;i0&&this.release();for(var t=this._$Ri.getModelImpl(),e=t._$Xr(),r=e.length,o=new Array,n=new Array,s=0;s=0)&&(this._$3S.push(m),this._$db.push(n[s]),o[s]=null,g=!0)}}if(!g)break}var v=t._$E2();if(null!=v){var P=v._$1s();if(null!=P)for(var S=P.length,s=0;s=0;e--)this._$Js[e]=Y._$jr;return this._$QT=!1,Y._$e&&a.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 a._$li("call _$Ri.update() before _$Ri.draw() ");var e=this._$Ws.length;t._$ZT();for(var i=0;i=0;--e)if(this._$pb[e]==t)return e;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 e=this._$3S.length-1;e>=0;--e)if(null!=this._$3S[e]&&this._$3S[e].getBaseDataID()==t)return e;return-1},Y.prototype._$UT=function(t,e){var i=new Float32Array(e);return w._$jT(t,0,i,0,t.length),i},Y.prototype._$02=function(t,e,i,r){if(this._$qo>=this._$pb.length){var o=this._$pb.length,n=new Array(2*o);w._$jT(this._$pb,0,n,0,o),this._$pb=n,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 s=new Array;w._$jT(this._$Js,0,s,0,o),this._$Js=s}return this._$pb[this._$qo]=t,this._$_2[this._$qo]=e,this._$vr[this._$qo]=e,this._$Rr[this._$qo]=i,this._$Or[this._$qo]=r,this._$Js[this._$qo]=Y._$ZS,this._$qo++},Y.prototype._$Zo=function(t,e){this._$3S[t]=e},Y.prototype.setParamFloat=function(t,e){ethis._$Or[t]&&(e=this._$Or[t]),this._$_2[t]=e},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,e){this._$Hr[t].setPartsOpacity(e)},Y.prototype.getPartsOpacity=function(t){return this._$Hr[t].getPartsOpacity()},Y.prototype.getPartsDataIndex=function(t){for(var e=this._$F2.length-1;e>=0;--e)if(null!=this._$F2[e]&&this._$F2[e]._$p2()==t)return e;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,e){for(var i=this._$Ws.length,r=t,o=0;o0;)n+=e;return r},k._$C=function(t){var e=null,i=null;try{e=t instanceof Array?t:new _$Xs(t,8192),i=new _$js;for(var r,o=new Int8Array(1e3);(r=e.read(o))>0;)i.write(o,0,r);return i._$TS()}finally{null!=t&&t.close(),null!=i&&(i.flush(),i.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,e,i){this._$Dr=t,this._$Cb=e,this._$mr=i},V.prototype._$7T=function(t){var e,i=w.getUserTimeMSec(),r=0;switch(this._$_L){case STATE_CLOSING:r=(i-this._$bb)/this._$Dr,r>=1&&(r=1,this._$_L=wt.STATE_CLOSED,this._$bb=i),e=1-r;break;case STATE_CLOSED:r=(i-this._$bb)/this._$Cb,r>=1&&(this._$_L=wt.STATE_OPENING,this._$bb=i),e=0;break;case STATE_OPENING:r=(i-this._$bb)/this._$mr,r>=1&&(r=1,this._$_L=wt.STATE_INTERVAL,this._$12=this._$T2()),e=r;break;case STATE_INTERVAL:this._$12.9?_t.EXPAND_W:0;this.gl.drawElements(_,i,r,o,n,h,this.transform,a)}},X.prototype._$Rs=function(){throw new Error("_$Rs")},X.prototype._$Ds=function(t){throw new Error("_$Ds")},X.prototype._$K2=function(){for(var t=0;t=0;--e){var i=t[e];iW._$R2&&(W._$R2=i)}},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,e){if(e._$IS[0]=!1,e._$Us=S._$Z2(t,this._$GS,e._$IS,this._$Lb),_t._$Zs);else if(e._$IS[0])return;e._$7s=S._$br(t,this._$GS,e._$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,e){return e._$7s},W.prototype._$zS=function(t,e){return e._$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!=gt._$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 e,q.loadModel=function(t){var i=new q;return e._$62(i,t),i},q.loadModel=function(t){var i=new q;return e._$62(i,t),i},q._$to=function(){return new q},q._$er=function(t){var e=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(0==e.exists())throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+e._$PL());for(var i=["../_$_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(e._$3b()),o=0;o=0){var h=new B;O.startsWith(t,a,J._$cs)?(h._$RP=B._$hs,h._$4P=O.createString(t,a,_-a)):O.startsWith(t,a,J._$ar)?(h._$4P=O.createString(t,a+7,_-a-7),O.startsWith(t,a+7,"ANCHOR_X")?h._$RP=B._$xs:O.startsWith(t,a+7,"ANCHOR_Y")?h._$RP=B._$us:O.startsWith(t,a+7,"SCALE_X")?h._$RP=B._$qs:O.startsWith(t,a+7,"SCALE_Y")?h._$RP=B._$Ys:O.startsWith(t,a+7,"X")?h._$RP=B._$ws:O.startsWith(t,a+7,"Y")&&(h._$RP=B._$Ns)):(h._$RP=B._$Fr,h._$4P=O.createString(t,a,_-a)),e.motions.push(h);var l=0,$=[];for(o=_+1;o0){$.push(u),l++;var p=i[0];if(pe._$yT&&(e._$yT=l)}}}else{for(var a=o,_=-1;o=0)for(_==a+4&&"f"==Q(t,a+1)&&"p"==Q(t,a+2)&&"s"==Q(t,a+3)&&(f=!0),o=_+1;o0&&f&&5=l?l-1:s];t.setParamFloat($,u)}else if(B._$ws<=h._$RP&&h._$RP<=B._$Ys);else{var p,f=t.getParamIndex($),c=t.getModelContext(),d=c.getParamMax(f),y=c.getParamMin(f),g=.4*(d-y),m=c.getParamFloat(f),T=h._$I0[s>=l?l-1:s],v=h._$I0[s+1>=l?l-1:s+1];p=Tg||T>v&&T-v>g?T:T+(v-T)*a;var P=m+(p-m)*i;t.setParamFloat($,P)}}s>=this._$yT&&(this._$E?(r._$z2=e,this.loopFadeIn&&(r._$bs=e)):r._$9L=!0),this._$eP=i},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},N.prototype.clear=function(){this.size=0},N.prototype.add=function(t){if(this._$P.length<=this.size){var e=new Float32Array(2*this.size);w._$jT(this._$P,0,e,0,this.size),this._$P=e}this._$P[this.size++]=t},N.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 x,Z._$gT=new Array,Z.prototype._$zP=function(){this._$GS=new D,this._$GS._$zP()},Z.prototype._$F0=function(t){x.prototype._$F0.call(this,t),this._$A=t._$6L(),this._$o=t._$6L(),this._$GS=t._$nP(),this._$Eo=t._$nP(),x.prototype.readV2_opacity.call(this,t)},Z.prototype.init=function(t){var e=new K(this),i=(this._$o+1)*(this._$A+1);return null!=e._$Cr&&(e._$Cr=null),e._$Cr=new Float32Array(2*i),null!=e._$hr&&(e._$hr=null),this._$32()?e._$hr=new Float32Array(2*i):e._$hr=null,e},Z.prototype._$Nr=function(t,e){var i=e;if(this._$GS._$Ur(t)){var r=this._$VT(),o=Z._$gT;o[0]=!1,S._$Vr(t,this._$GS,o,r,this._$Eo,i._$Cr,0,2),e._$Ib(o[0]),this.interpolateOpacity(t,this._$GS,e,o)}},Z.prototype._$2b=function(t,e){var i=e;if(i._$hS(!0),this._$32()){var r=this.getTargetBaseDataID();if(i._$8r==x._$ur&&(i._$8r=t.getBaseDataIndex(r)),i._$8r<0)_t._$so&&a._$li("_$L _$0P _$G :: %s",r),i._$hS(!1);else{var o=t.getBaseData(i._$8r),n=t._$q2(i._$8r);if(null!=o&&n._$yo()){var s=n.getTotalScale();i.setTotalScale_notForClient(s);var _=n.getTotalOpacity();i.setTotalOpacity(_*i.getInterpolatedOpacity()),o._$nb(t,n,i._$Cr,i._$hr,this._$VT(),0,2),i._$hS(!0)}else i._$hS(!1)}}else i.setTotalOpacity(i.getInterpolatedOpacity())},Z.prototype._$nb=function(t,e,i,r,o,n,s){var a=e,_=null!=a._$hr?a._$hr:a._$Cr;Z.transformPoints_sdk2(i,r,o,n,s,_,this._$o,this._$A)},Z.transformPoints_sdk2=function(e,i,r,o,n,s,a,_){for(var h,l,$,u=r*n,p=0,f=0,c=0,d=0,y=0,g=0,m=!1,T=o;T=1){var b=s[2*(0+_*M)],F=s[2*(0+_*M)+1],C=p-2*c+1*y,N=f-2*d+1*g,I=p+3*y,O=f+3*g,D=p-2*c+3*y,R=f-2*d+3*g,B=.5*(S- -2),U=.5*(L-1);B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else{var G=0|P;G==_&&(G=_-1);var B=.5*(S- -2),U=P-G,Y=G/_,k=(G+1)/_,b=s[2*(0+G*M)],F=s[2*(0+G*M)+1],I=s[2*(0+(G+1)*M)],O=s[2*(0+(G+1)*M)+1],C=p-2*c+Y*y,N=f-2*d+Y*g,D=p-2*c+k*y,R=f-2*d+k*g;B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else if(1<=S)if(L<=0){var D=s[2*(a+0*M)],R=s[2*(a+0*M)+1],I=p+3*c,O=f+3*d,C=p+1*c-2*y,N=f+1*d-2*g,b=p+3*c-2*y,F=f+3*d-2*g,B=.5*(S-1),U=.5*(L- -2);B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else if(L>=1){var C=s[2*(a+_*M)],N=s[2*(a+_*M)+1],b=p+3*c+1*y,F=f+3*d+1*g,D=p+1*c+3*y,R=f+1*d+3*g,I=p+3*c+3*y,O=f+3*d+3*g,B=.5*(S-1),U=.5*(L-1);B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else{var G=0|P;G==_&&(G=_-1);var B=.5*(S-1),U=P-G,Y=G/_,k=(G+1)/_,C=s[2*(a+G*M)],N=s[2*(a+G*M)+1],D=s[2*(a+(G+1)*M)],R=s[2*(a+(G+1)*M)+1],b=p+3*c+Y*y,F=f+3*d+Y*g,I=p+3*c+k*y,O=f+3*d+k*g;B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else if(L<=0){var V=0|v;V==a&&(V=a-1);var B=v-V,U=.5*(L- -2),X=V/a,z=(V+1)/a,D=s[2*(V+0*M)],R=s[2*(V+0*M)+1],I=s[2*(V+1+0*M)],O=s[2*(V+1+0*M)+1],C=p+X*c-2*y,N=f+X*d-2*g,b=p+z*c-2*y,F=f+z*d-2*g;B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else if(L>=1){var V=0|v;V==a&&(V=a-1);var B=v-V,U=.5*(L-1),X=V/a,z=(V+1)/a,C=s[2*(V+_*M)],N=s[2*(V+_*M)+1],b=s[2*(V+1+_*M)],F=s[2*(V+1+_*M)+1],D=p+X*c+3*y,R=f+X*d+3*g,I=p+z*c+3*y,O=f+z*d+3*g;B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else t.err.printf("_$li calc : %.4f , %.4f\t\t\t\t\t@@BDBoxGrid\n",S,L);else i[T]=p+S*c+L*y,i[T+1]=f+S*d+L*g}else l=v-(0|v),$=P-(0|P),h=2*((0|v)+(0|P)*(a+1)),l+$<1?(i[T]=s[h]*(1-l-$)+s[h+2]*l+s[h+2*(a+1)]*$,i[T+1]=s[h+1]*(1-l-$)+s[h+3]*l+s[h+2*(a+1)+1]*$):(i[T]=s[h+2*(a+1)+2]*(l-1+$)+s[h+2*(a+1)]*(1-l)+s[h+2]*(1-$),i[T+1]=s[h+2*(a+1)+3]*(l-1+$)+s[h+2*(a+1)+1]*(1-l)+s[h+3]*(1-$))}},Z.prototype.transformPoints_sdk1=function(t,e,i,r,o,n,s){for(var a,_,h,l,$,u,p,f=e,c=this._$o,d=this._$A,y=o*s,g=null!=f._$hr?f._$hr:f._$Cr,m=n;m1&&(a=1),_<0?_=0:_>1&&(_=1),a*=c,_*=d,h=0|a,l=0|_,h>c-1&&(h=c-1),l>d-1&&(l=d-1),u=a-h,p=_-l,$=2*(h+l*(c+1))):(a=i[m]*c,_=i[m+1]*d,u=a-(0|a),p=_-(0|_),$=2*((0|a)+(0|_)*(c+1))),u+p<1?(r[m]=g[$]*(1-u-p)+g[$+2]*u+g[$+2*(c+1)]*p,r[m+1]=g[$+1]*(1-u-p)+g[$+3]*u+g[$+2*(c+1)+1]*p):(r[m]=g[$+2*(c+1)+2]*(u-1+p)+g[$+2*(c+1)]*(1-u)+g[$+2]*(1-p),r[m+1]=g[$+2*(c+1)+3]*(u-1+p)+g[$+2*(c+1)+1]*(1-u)+g[$+3]*(1-p))},Z.prototype._$VT=function(){return(this._$o+1)*(this._$A+1)},Z.prototype.getType=function(){return x._$_b},K.prototype=new at,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 e=new et(this);return e.setPartsOpacity(this.isVisible()?1:0),e},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},et.prototype=new $,et.prototype.getPartsOpacity=function(){return this._$VS},et.prototype.setPartsOpacity=function(t){this._$VS=t},it._$L7=function(){u._$27(),gt._$27(),b._$27(),l._$27()},it.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)},nt.tr=new yt,nt._$50=new yt,nt._$Ti=new Array(0,0),nt._$Pi=new Array(0,0),nt._$B=new Array(0,0),nt.prototype._$lP=function(t,e,i,r){this.viewport=new Array(t,e,i,r)},nt.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())},nt.prototype._$ei=function(){this.context.restore()},nt.prototype.drawElements=function(t,e,i,r,o,n,s,_){try{o!=this._$Qo&&(this._$Qo=o,this.context.globalAlpha=o);for(var h=e.length,l=t.width,$=t.height,u=this.context,p=this._$xP,f=this._$uP,c=this._$6r,d=this._$3r,y=nt.tr,g=nt._$Ti,m=nt._$Pi,T=nt._$B,v=0;v.02?nt.expandClip(t,e,i,r,l,$,u,p,f,c):nt.clipWithTransform(t,null,o,n,s,a,_,h)},nt.expandClip=function(t,e,i,r,o,n,s,a,_,h){var l=s-o,$=a-n,u=_-o,p=h-n,f=l*p-$*u>0?i:-i,c=-$,d=l,y=_-s,g=h-a,m=-g,T=y,v=Math.sqrt(y*y+g*g),P=-p,S=u,L=Math.sqrt(u*u+p*p),M=o-f*c/r,E=n-f*d/r,A=s-f*c/r,x=a-f*d/r,w=s-f*m/v,I=a-f*T/v,O=_-f*m/v,D=h-f*T/v,R=o+f*P/L,b=n+f*S/L,F=_+f*P/L,C=h+f*S/L,N=nt._$50;return null!=e._$P2(N)&&(nt.clipWithTransform(t,N,M,E,A,x,w,I,O,D,F,C,R,b),!0)},nt.clipWithTransform=function(t,e,i,r,o,n,s,_){if(arguments.length<7)return void a._$li("err : @LDGL.clip()");if(!(arguments[1]instanceof yt))return void a._$li("err : a[0] is _$6 LDTransform @LDGL.clip()");var h=nt._$B,l=e,$=arguments;if(t.beginPath(),l){l._$PS($[2],$[3],h),t.moveTo(h[0],h[1]);for(var u=4;u<$.length;u+=2)l._$PS($[u],$[u+1],h),t.lineTo(h[0],h[1])}else{t.moveTo($[2],$[3]);for(var u=4;u<$.length;u+=2)t.lineTo($[u],$[u+1])}t.clip()},nt.createCanvas=function(t,e){var i=document.createElement("canvas");return i.setAttribute("width",t),i.setAttribute("height",e),i||a._$li("err : "+i),i},nt.dumpValues=function(){for(var t="",e=0;e1?1:.5-.5*Math.cos(t*Lt.PI_F)},lt._$fr=-1,lt.prototype.toString=function(){return this._$ib},$t.prototype=new W,$t._$42=0,$t._$Os=30,$t._$ms=0,$t._$ns=1,$t._$_s=2,$t._$gT=new Array,$t.prototype._$_S=function(t){this._$LP=t},$t.prototype.getTextureNo=function(){return this._$LP},$t.prototype._$ZL=function(){return this._$Qi},$t.prototype._$H2=function(){return this._$JP},$t.prototype.getNumPoints=function(){return this._$d0},$t.prototype.getType=function(){return W._$wb},$t.prototype._$B2=function(t,e,i){var r=e,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 n=this._$d0-1;n>=0;--n)o[n*U._$No+4]=i}},$t.prototype._$zP=function(){this._$GS=new D,this._$GS._$zP()},$t.prototype._$F0=function(t){W.prototype._$F0.call(this,t),this._$LP=t._$6L(),this._$d0=t._$6L(),this._$Yo=t._$6L();var e=t._$nP();this._$BP=new Int16Array(3*this._$Yo);for(var i=3*this._$Yo-1;i>=0;--i)this._$BP[i]=e[i];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&$t._$Os)?this._$6s=(this._$JP&$t._$Os)>>1:this._$6s=$t._$ms,0!=(32&this._$JP)&&(this.culling=!1)}}else this._$JP=0},$t.prototype.init=function(t){var e=new ut(this),i=this._$d0*U._$No,r=this._$32();switch(null!=e._$Cr&&(e._$Cr=null),e._$Cr=new Float32Array(i),null!=e._$hr&&(e._$hr=null),e._$hr=r?new Float32Array(i):null,U._$do){default:case U._$Ms:if(U._$Ls)for(var o=this._$d0-1;o>=0;--o){var n=o<<1;this._$Qi[n+1]=1-this._$Qi[n+1]}break;case U._$Qs:for(var o=this._$d0-1;o>=0;--o){var n=o<<1,s=o*U._$No,a=this._$Qi[n],_=this._$Qi[n+1];e._$Cr[s]=a,e._$Cr[s+1]=_,e._$Cr[s+4]=0,r&&(e._$hr[s]=a,e._$hr[s+1]=_,e._$hr[s+4]=0)}}return e},$t.prototype._$Nr=function(t,e){var i=e;if(this!=i._$GT()&&console.log("### assert!! ### "),this._$GS._$Ur(t)&&(W.prototype._$Nr.call(this,t,i),!i._$IS[0])){var r=$t._$gT;r[0]=!1,S._$Vr(t,this._$GS,r,this._$d0,this._$Eo,i._$Cr,U._$i2,U._$No)}},$t.prototype._$2b=function(t,e){try{this!=e._$GT()&&console.log("### assert!! ### ");var i=!1;e._$IS[0]&&(i=!0);var r=e;if(!i&&(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)_t._$so&&a._$li("_$L _$0P _$G :: %s",o);else{var n=t.getBaseData(r._$8r),s=t._$q2(r._$8r);null==n||s._$x2()?r._$AT=!1:(n._$nb(t,s,r._$Cr,r._$hr,this._$d0,U._$i2,U._$No),r._$AT=!0),r.baseOpacity=s.getTotalOpacity()}}}catch(t){throw t}},$t.prototype.draw=function(t,e,i){if(this!=i._$GT()&&console.log("### assert!! ### "),!i._$IS[0]){var r=i,o=this._$LP;o<0&&(o=1);var n=this.getOpacity(e,r)*i._$VS*i.baseOpacity,s=null!=r._$hr?r._$hr:r._$Cr;t.setClipBufPre_clipContextForDraw(i.clipBufPre_clipContext),t._$WP(this.culling),t._$Uo(o,3*this._$Yo,this._$BP,s,this._$Qi,n,this._$6s,r)}},$t.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,i._$sr));if(null==t)return-1;i=new dt,i._$w0=t,this.motions.push(i);var n=i._$sr;return this._$eb&&a._$Ji("MotionQueueManager[size:%2d]->startMotion() / new _$w0 (m%d)\n",r,n),n},ct.prototype.updateParam=function(t){try{for(var e=!1,i=0;iupdateParam() / _$T0 _$w0 (m%d)\n",this.motions.length-1,r._$sr),this.motions.splice(i,1),i--)):(this.motions=this.motions.splice(i,1),i--)}else this.motions.splice(i,1),i--}return e}catch(t){return a._$li(t),!0}},ct.prototype.isFinished=function(t){if(arguments.length>=1){for(var e=0;e.9&&_t.EXPAND_W,this.gl);if(null==this.gl)throw new Error("gl is null");var h=1*this._$C0*n,l=1*this._$tT*n,$=1*this._$WL*n,u=this._$lT*n;if(null!=this.clipBufPre_clipContextMask){_.frontFace(_.CCW),_.useProgram(this.shaderProgram),this._$vS=Tt(_,this._$vS,r),this._$no=vt(_,this._$no,i),_.enableVertexAttribArray(this.a_position_Loc),_.vertexAttribPointer(this.a_position_Loc,2,_.FLOAT,!1,0,0),this._$NT=Tt(_,this._$NT,o),_.activeTexture(_.TEXTURE1),_.bindTexture(_.TEXTURE_2D,this.textures[t]),_.uniform1i(this.s_texture0_Loc,1),_.enableVertexAttribArray(this.a_texCoord_Loc),_.vertexAttribPointer(this.a_texCoord_Loc,2,_.FLOAT,!1,0,0),_.uniformMatrix4fv(this.u_matrix_Loc,!1,this.getClipBufPre_clipContextMask().matrixForMask);var p=this.getClipBufPre_clipContextMask().layoutChannelNo,f=this.getChannelFlagAsColor(p);_.uniform4f(this.u_channelFlag,f.r,f.g,f.b,f.a);var c=this.getClipBufPre_clipContextMask().layoutBounds;_.uniform4f(this.u_baseColor_Loc,2*c.x-1,2*c.y-1,2*c._$EL()-1,2*c._$5T()-1),_.uniform1i(this.u_maskFlag_Loc,!0)}else if(null!=this.getClipBufPre_clipContextDraw()){_.useProgram(this.shaderProgramOff),this._$vS=Tt(_,this._$vS,r),this._$no=vt(_,this._$no,i),_.enableVertexAttribArray(this.a_position_Loc_Off),_.vertexAttribPointer(this.a_position_Loc_Off,2,_.FLOAT,!1,0,0),this._$NT=Tt(_,this._$NT,o),_.activeTexture(_.TEXTURE1),_.bindTexture(_.TEXTURE_2D,this.textures[t]),_.uniform1i(this.s_texture0_Loc_Off,1),_.enableVertexAttribArray(this.a_texCoord_Loc_Off),_.vertexAttribPointer(this.a_texCoord_Loc_Off,2,_.FLOAT,!1,0,0),_.uniformMatrix4fv(this.u_clipMatrix_Loc_Off,!1,this.getClipBufPre_clipContextDraw().matrixForDraw),_.uniformMatrix4fv(this.u_matrix_Loc_Off,!1,this.matrix4x4),_.activeTexture(_.TEXTURE2),_.bindTexture(_.TEXTURE_2D,_t.fTexture[this.glno]),_.uniform1i(this.s_texture1_Loc_Off,2);var p=this.getClipBufPre_clipContextDraw().layoutChannelNo,f=this.getChannelFlagAsColor(p);_.uniform4f(this.u_channelFlag_Loc_Off,f.r,f.g,f.b,f.a),_.uniform4f(this.u_baseColor_Loc_Off,h,l,$,u)}else _.useProgram(this.shaderProgram),this._$vS=Tt(_,this._$vS,r),this._$no=vt(_,this._$no,i),_.enableVertexAttribArray(this.a_position_Loc),_.vertexAttribPointer(this.a_position_Loc,2,_.FLOAT,!1,0,0),this._$NT=Tt(_,this._$NT,o),_.activeTexture(_.TEXTURE1),_.bindTexture(_.TEXTURE_2D,this.textures[t]),_.uniform1i(this.s_texture0_Loc,1),_.enableVertexAttribArray(this.a_texCoord_Loc),_.vertexAttribPointer(this.a_texCoord_Loc,2,_.FLOAT,!1,0,0),_.uniformMatrix4fv(this.u_matrix_Loc,!1,this.matrix4x4),_.uniform4f(this.u_baseColor_Loc,h,l,$,u),_.uniform1i(this.u_maskFlag_Loc,!1);this.culling?this.gl.enable(_.CULL_FACE):this.gl.disable(_.CULL_FACE),this.gl.enable(_.BLEND);var d,y,g,m;if(null!=this.clipBufPre_clipContextMask)d=_.ONE,y=_.ONE_MINUS_SRC_ALPHA,g=_.ONE,m=_.ONE_MINUS_SRC_ALPHA;else switch(s){case $t._$ms:d=_.ONE,y=_.ONE_MINUS_SRC_ALPHA,g=_.ONE,m=_.ONE_MINUS_SRC_ALPHA;break;case $t._$ns:d=_.ONE,y=_.ONE,g=_.ZERO,m=_.ONE;break;case $t._$_s:d=_.DST_COLOR,y=_.ONE_MINUS_SRC_ALPHA,g=_.ZERO,m=_.ONE}_.blendEquationSeparate(_.FUNC_ADD,_.FUNC_ADD),_.blendFuncSeparate(d,y,g,m),this.anisotropyExt&&_.texParameteri(_.TEXTURE_2D,this.anisotropyExt.TEXTURE_MAX_ANISOTROPY_EXT,this.maxAnisotropy);var T=i.length;_.drawElements(_.TRIANGLES,T,_.UNSIGNED_SHORT,0),_.bindTexture(_.TEXTURE_2D,null)}},mt.prototype._$Rs=function(){throw new Error("_$Rs")},mt.prototype._$Ds=function(t){throw new Error("_$Ds")},mt.prototype._$K2=function(){for(var t=0;t=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 n(this._$6L(),!0);case 11:return new P(this._$mP(),this._$mP(),this._$mP(),this._$mP());case 12:return new P(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(),i=new Array(o),s=0;s>7-this._$hL++&1)},Pt.prototype._$zT=function(){0!=this._$hL&&(this._$hL=0)},St.prototype._$wP=function(t,e,i){for(var r=0;rMath.PI;)i-=2*Math.PI;return i},Lt._$9=function(t){return Math.sin(t)},Lt.fcos=function(t){return Math.cos(t)},Mt.prototype._$u2=function(){return this._$IS[0]},Mt.prototype._$yo=function(){return this._$AT&&!this._$IS[0]},Mt.prototype._$GT=function(){return this._$e0},Et._$W2=0,Et.SYSTEM_INFO=null,Et.USER_AGENT=navigator.userAgent,Et.isIPhone=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO._isIPhone},Et.isIOS=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO._isIPhone||Et.SYSTEM_INFO._isIPad},Et.isAndroid=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO._isAndroid},Et.getOSVersion=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO.version},Et.getOS=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO._isIPhone||Et.SYSTEM_INFO._isIPad?"iOS":Et.SYSTEM_INFO._isAndroid?"Android":"_$Q0 OS"},Et.setup=function(){function t(t,e){for(var i=t.substring(e).split(/[ _,;\.]/),r=0,o=0;o<=2&&!isNaN(i[o]);o++){var n=parseInt(i[o]);if(n<0||n>999){a._$li("err : "+n+" @UtHtml5.setup()"),r=0;break}r+=n*Math.pow(1e3,2-o)}return r}var e,i=Et.USER_AGENT,r=Et.SYSTEM_INFO={userAgent:i};if((e=i.indexOf("iPhone OS "))>=0)r.os="iPhone",r._isIPhone=!0,r.version=t(i,e+"iPhone OS ".length);else if((e=i.indexOf("iPad"))>=0){if((e=i.indexOf("CPU OS"))<0)return void a._$li(" err : "+i+" @UtHtml5.setup()");r.os="iPad",r._isIPad=!0,r.version=t(i,e+"CPU OS ".length)}else(e=i.indexOf("Android"))>=0?(r.os="Android",r._isAndroid=!0,r.version=t(i,e+"Android ".length)):(r.os="-",r.version=-1)},window.UtSystem=w,window.UtDebug=a,window.LDTransform=yt,window.LDGL=nt,window.Live2D=_t,window.Live2DModelWebGL=ft,window.Live2DModelJS=q,window.Live2DMotion=J,window.MotionQueueManager=ct,window.PhysicsHair=f,window.AMotion=s,window.PartsDataID=l,window.DrawDataID=b,window.BaseDataID=gt,window.ParamID=u,_t.init();var At=!1}()}).call(e,i(7))},function(t,e){t.exports={import:function(){throw new Error("System.import cannot be used indirectly")}}},function(t,e,i){function r(t){return t&&t.__esModule?t:{default:t}}function o(){this.models=[],this.count=-1,this.reloadFlg=!1,Live2D.init(),n.Live2DFramework.setPlatformManager(new a.default)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=i(0),s=i(9),a=r(s),_=i(10),h=r(_),l=i(1),$=r(l);o.prototype.createModel=function(){var t=new h.default;return this.models.push(t),t},o.prototype.changeModel=function(t,e){this.reloadFlg&&(this.reloadFlg=!1,this.releaseModel(0,t),this.createModel(),this.models[0].load(t,e))},o.prototype.getModel=function(t){return t>=this.models.length?null:this.models[t]},o.prototype.releaseModel=function(t,e){this.models.length<=t||(this.models[t].release(e),delete this.models[t],this.models.splice(t,1))},o.prototype.numModels=function(){return this.models.length},o.prototype.setDrag=function(t,e){for(var i=0;i0){r.expressions={};for(var t=0;t-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1==t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,iPhone:t.indexOf("iPhone")>-1||t.indexOf("Mac")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1==t.indexOf("Safari"),weixin:-1==t.indexOf("MicroMessenger")}}()}},121:function(t,e,i){t.exports={default:i(122),__esModule:!0}},122:function(t,e,i){i(123);var r=i(2).Object;t.exports=function(t,e,i){return r.defineProperty(t,e,i)}},123:function(t,e,i){var r=i(11);r(r.S+r.F*!i(3),"Object",{defineProperty:i(5).f})},14:function(t,e,i){var r=i(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},16:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},18:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2:function(t,e){var i=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},23:function(t,e,i){var r=i(40);t.exports=function(t,e,i){if(r(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,o){return t.call(e,i,r,o)}}return function(){return t.apply(e,arguments)}}},28:function(t,e,i){var r=i(6);t.exports=function(t,e){if(!r(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!r(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!r(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!r(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3:function(t,e,i){t.exports=!i(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},40:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},41:function(t,e,i){var r=i(6),o=i(1).document,n=r(o)&&r(o.createElement);t.exports=function(t){return n?o.createElement(t):{}}},44:function(t,e,i){t.exports=!i(3)&&!i(16)(function(){return 7!=Object.defineProperty(i(41)("div"),"a",{get:function(){return 7}}).a})},5:function(t,e,i){var r=i(14),o=i(44),n=i(28),s=Object.defineProperty;e.f=i(3)?Object.defineProperty:function(t,e,i){if(r(t),e=n(e,!0),r(i),o)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},531:function(t,e,i){"use strict";i(532);var r=i(119);(function(t){return t&&t.__esModule?t:{default:t}})(r).default.versions.mobile&&window.screen.width<800||(loadlive2d("live2d","https://blog-cdn.nos-eastchina1.126.net/live2D/Kesshouban/model.json"),document.querySelector(".waifu").style.display="block"),console.log("\n %c Silence %c https://www.colorfulsweet.site \n","color:#FFFFFB;background:#ffa628;padding:5px 0;border-radius:.5rem 0 0 .5rem;","background: #efefef;padding:5px 0;border-radius:0 .5rem .5rem 0;"),console.log("页面加载消耗了 "+(Math.round(100*performance.now())/100/1e3).toFixed(2)+"s")},532:function(t,e,i){"use strict";var r=i(121),o=function(t){return t&&t.__esModule?t:{default:t}}(r);!function(t){function e(r){if(i[r])return i[r].exports;var o=i[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};e.m=t,e.c=i,e.d=function(t,i,r){e.o(t,i)||(0,o.default)(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,i){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 n(){this.id="",this.type=-1,this.value=null}function s(){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 a(){this.tr=new Float32Array(16),this.identity()}function _(t,e){a.prototype.constructor.call(this),this.width=t,this.height=e}function h(){MotionQueueManager.prototype.constructor.call(this),this.currentPriority=null,this.reservePriority=null,this.super=MotionQueueManager.prototype}function l(){this.physicsList=new Array,this.startTimeMSec=UtSystem.getUserTimeMSec()}function $(){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(){a.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,this.max=Number.MAX_VALUE,this.min=0}function c(){}var d=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,e,i){this.accelX=t,this.accelY=e,this.accelZ=i},r.prototype.setDrag=function(t,e){this.dragX=t,this.dragY=e},r.prototype.getMainMotionManager=function(){return this.mainMotionManager},r.prototype.getExpressionManager=function(){return this.expressionManager},r.prototype.loadModelData=function(t,e){var i=c.getPlatformManager();this.debugMode&&i.log("Load model : "+t);var r=this;i.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 _(r.live2DModel.getCanvasWidth(),r.live2DModel.getCanvasHeight()),r.modelMatrix.setWidth(2),r.modelMatrix.setCenterPosition(0,0),e(r.live2DModel)})},r.prototype.loadTexture=function(t,e,i){d++;var r=c.getPlatformManager();this.debugMode&&r.log("Load Texture : "+e);var o=this;r.loadTexture(this.live2DModel,t,e,function(){d--,0==d&&(o.isTexLoaded=!0),"function"==typeof i&&i()})},r.prototype.loadMotion=function(t,e,i){var r=c.getPlatformManager();this.debugMode&&r.log("Load Motion : "+e);var o=null,n=this;r.loadBytes(e,function(e){o=Live2DMotion.loadMotion(e),null!=t&&(n.motions[t]=o),i(o)})},r.prototype.loadExpression=function(t,e,i){var r=c.getPlatformManager();this.debugMode&&r.log("Load Expression : "+e);var n=this;r.loadBytes(e,function(e){null!=t&&(n.expressions[t]=o.loadJson(e)),"function"==typeof i&&i()})},r.prototype.loadPose=function(t,e){var i=c.getPlatformManager();this.debugMode&&i.log("Load Pose : "+t);var r=this;try{i.loadBytes(t,function(t){r.pose=$.load(t),"function"==typeof e&&e()})}catch(t){console.warn(t)}},r.prototype.loadPhysics=function(t){var e=c.getPlatformManager();this.debugMode&&e.log("Load Physics : "+t);var i=this;try{e.loadBytes(t,function(t){i.physics=l.load(t)})}catch(t){console.warn(t)}},r.prototype.hitTestSimple=function(t,e,i){if(null===this.live2DModel)return!1;var r=this.live2DModel.getDrawDataIndex(t);if(r<0)return!1;for(var o=this.live2DModel.getTransformedPoints(r),n=this.live2DModel.getCanvasWidth(),s=0,a=this.live2DModel.getCanvasHeight(),_=0,h=0;hs&&(s=l),$_&&(_=$)}var u=this.modelMatrix.invertTransformX(e),p=this.modelMatrix.invertTransformY(i);return n<=u&&u<=s&&a<=p&&p<=_},r.prototype.hitTestSimpleCustom=function(t,e,i,r){return null!==this.live2DModel&&i>=t[0]&&i<=e[0]&&r<=t[1]&&r>=e[1]},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 e=new o,i=c.getPlatformManager(),r=i.jsonParseFromBytes(t);if(e.setFadeIn(parseInt(r.fade_in)>0?parseInt(r.fade_in):1e3),e.setFadeOut(parseInt(r.fade_out)>0?parseInt(r.fade_out):1e3),null==r.params)return e;var s=r.params,a=s.length;e.paramList=[];for(var _=0;_=0;--n){var s=this.paramList[n];s.type==o.TYPE_ADD?t.addToParamFloat(s.id,s.value,i):s.type==o.TYPE_MULT?t.multParamFloat(s.id,s.value,i):s.type==o.TYPE_SET&&t.setParamFloat(s.id,s.value,i)}},s.prototype.calcNextBlink=function(){return UtSystem.getUserTimeMSec()+Math.random()*(2*this.blinkIntervalMsec-1)},s.prototype.setInterval=function(t){this.blinkIntervalMsec=t},s.prototype.setEyeMotion=function(t,e,i){this.closingMotionMsec=t,this.closedMotionMsec=e,this.openingMotionMsec=i},s.prototype.updateParam=function(t){var e,i=UtSystem.getUserTimeMSec(),r=0;switch(this.eyeState){case y.STATE_CLOSING:r=(i-this.stateStartTime)/this.closingMotionMsec,r>=1&&(r=1,this.eyeState=y.STATE_CLOSED,this.stateStartTime=i),e=1-r;break;case y.STATE_CLOSED:r=(i-this.stateStartTime)/this.closedMotionMsec,r>=1&&(this.eyeState=y.STATE_OPENING,this.stateStartTime=i),e=0;break;case y.STATE_OPENING:r=(i-this.stateStartTime)/this.openingMotionMsec,r>=1&&(r=1,this.eyeState=y.STATE_INTERVAL,this.nextBlinkTime=this.calcNextBlink()),e=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 e=MotionQueueManager.prototype.updateParam.call(this,t);return this.isFinished()&&(this.currentPriority=0),e},h.prototype.startMotionPrio=function(t,e){return e==this.reservePriority&&(this.reservePriority=0),this.currentPriority=e,this.startMotion(t,!1)},l.load=function(t){for(var e=new l,i=c.getPlatformManager(),r=i.jsonParseFromBytes(t),o=r.physics_hair,n=o.length,s=0;s=0)break;r=n,o=t.getPartsOpacity(s),(o+=i/.5)>1&&(o=1)}}r<0&&(r=0,o=1);for(var n=0;n.15&&(_=1-.15/(1-o)),h>_&&(h=_),t.setPartsOpacity(s,h)}}},$.prototype.copyOpacityOtherParts=function(t,e){for(var i=0;io)&&(l*=o/u,$*=o/u,u=o),this.faceVX+=l,this.faceVY+=$;var f=.5*(Math.sqrt(o*o+16*o*a-8*o*a)-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 a,f.prototype.getMaxScale=function(){return this.max},f.prototype.getMinScale=function(){return this.min},f.prototype.setMaxScale=function(t){this.max=t},f.prototype.setMinScale=function(t){this.min=t},f.prototype.isMaxScale=function(){return this.getScaleX()==this.max},f.prototype.isMinScale=function(){return this.getScaleX()==this.min},f.prototype.adjustTranslate=function(t,e){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&&(e=this.screenBottom-this.tr[5]*this.maxBottom-this.tr[13]);var i=[1,0,0,0,0,1,0,0,0,0,1,0,t,e,0,1];a.mul(i,this.tr,this.tr)},f.prototype.adjustScale=function(t,e,i){var r=i*this.tr[0];r0&&(i=this.min/this.tr[0]):r>this.max&&this.tr[0]>0&&(i=this.max/this.tr[0]);var o=[1,0,0,0,0,1,0,0,0,0,1,0,t,e,0,1],n=[i,0,0,0,0,i,0,0,0,0,1,0,0,0,0,1],s=[1,0,0,0,0,1,0,0,0,0,1,0,-t,-e,0,1];a.mul(s,this.tr,this.tr),a.mul(n,this.tr,this.tr),a.mul(o,this.tr,this.tr)},f.prototype.setScreenRect=function(t,e,i,r){this.screenLeft=t,this.screenRight=e,this.screenTop=r,this.screenBottom=i},f.prototype.setMaxScreenRect=function(t,e,i,r){this.maxLeft=t,this.maxRight=e,this.maxTop=r,this.maxBottom=i},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:$,L2DPartsParam:u,L2DPhysics:l,L2DMotionManager:h,L2DModelMatrix:_,L2DMatrix44:a,EYE_STATE:y,L2DEyeBlink:s,L2DExpressionParam:n,L2DExpressionMotion:o,L2DBaseModel:r}},function(t,e,i){var r={DEBUG_LOG:!1,DEBUG_MOUSE_LOG:!1,DEBUG_DRAW_HIT_AREA:!1,DEBUG_DRAW_ALPHA_MODEL:!1,VIEW_MAX_SCALE:2,VIEW_MIN_SCALE:.8,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_SLEEPY:2,PRIORITY_NORMAL:3,PRIORITY_FORCE:4,MOTION_GROUP_IDLE:"idle",MOTION_GROUP_SLEEPY:"sleepy",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,e,i){function r(t){n=t}function o(){return n}Object.defineProperty(e,"__esModule",{value:!0}),e.setContext=r,e.getContext=o;var n=void 0},function(t,e,i){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=0;t<16;t++)this.currentMatrix[t]=t%5==0?1:0},r.push=function(){var t=(this.depth,16*(this.depth+1));this.matrixStack.lengthi.left&&e.y>i.top)return e;var o=t.x-e.x,n=t.y-e.y,s=r(o,n);e.x_t.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 e=new A;e=new A,e.r=0,e.g=0,e.b=0,e.a=1,this.CHANNEL_COLORS.push(e),e=new A,e.r=1,e.g=0,e.b=0,e.a=0,this.CHANNEL_COLORS.push(e),e=new A,e.r=0,e.g=1,e.b=0,e.a=0,this.CHANNEL_COLORS.push(e),e=new A,e.r=0,e.g=0,e.b=1,e.a=0,this.CHANNEL_COLORS.push(e);for(var i=0;iG._$T7)throw t._$NP|=e._$4s,new lt("_$gi _$C _$li , _$n0 _$_ version _$li ( SDK : "+G._$T7+" < _$f0 : "+r+" )@_$SS#loadModel()\n");var h=o._$nP();if(r>=G._$s7){var l=o._$9T(),$=o._$9T();if(-30584!=l||-30584!=$)throw t._$NP|=e._$0s,new lt("_$gi _$C _$li , _$0 _$6 _$Ui.")}t._$KS(h);var u=t.getModelContext();u.setDrawParam(t.getDrawParam()),u.init()}catch(t){a._$Rb(t)}},e.prototype._$KS=function(t){this._$MT=t},e.prototype.getModelImpl=function(){return null==this._$MT&&(this._$MT=new p,this._$MT._$zP()),this._$MT},e.prototype.getCanvasWidth=function(){return null==this._$MT?0:this._$MT.getCanvasWidth()},e.prototype.getCanvasHeight=function(){return null==this._$MT?0:this._$MT.getCanvasHeight()},e.prototype.getParamFloat=function(t){return"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),this._$5S.getParamFloat(t)},e.prototype.setParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1-i)+e*i)},e.prototype.addToParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)+e*i)},e.prototype.multParamFloat=function(t,e,i){"number"!=typeof t&&(t=this._$5S.getParamIndex(u.getID(t))),arguments.length<3&&(i=1),this._$5S.setParamFloat(t,this._$5S.getParamFloat(t)*(1+(e-1)*i))},e.prototype.getParamIndex=function(t){return this._$5S.getParamIndex(u.getID(t))},e.prototype.loadParam=function(){this._$5S.loadParam()},e.prototype.saveParam=function(){this._$5S.saveParam()},e.prototype.init=function(){this._$5S.init()},e.prototype.update=function(){this._$5S.update()},e.prototype._$Rs=function(){return a._$li("_$60 _$PT _$Rs()"),-1},e.prototype._$Ds=function(t){a._$li("_$60 _$PT _$SS#_$Ds() \n")},e.prototype._$K2=function(){},e.prototype.draw=function(){},e.prototype.getModelContext=function(){return this._$5S},e.prototype._$s2=function(){return this._$NP},e.prototype._$P7=function(t,e,i,r){var o=-1,n=0,s=this;if(0!=i)if(1==t.length){var a=t[0],_=0!=s.getParamFloat(a),h=e[0],l=s.getPartsOpacity(h),$=i/r;_?(l+=$)>1&&(l=1):(l-=$)<0&&(l=0),s.setPartsOpacity(h,l)}else{for(var u=0;u=0)break;o=u;var h=e[u];n=s.getPartsOpacity(h),(n+=i/r)>1&&(n=1)}}o<0&&(console.log("No _$wi _$q0/ _$U default[%s]",t[0]),o=0,n=1,s.loadParam(),s.setParamFloat(t[o],n),s.saveParam());for(var u=0;u.15&&(f=1-.15/(1-n)),c>f&&(c=f),s.setPartsOpacity(h,c)}}}else for(var u=0;u=this._$5S._$aS.length)return null;var e=this._$5S._$aS[t];return null!=e&&e.getType()==W._$wb&&e instanceof $t?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=_t.frameBuffers.length,e=0;e0){var n=e.gl.getParameter(e.gl.FRAMEBUFFER_BINDING),s=new Array(4);s[0]=0,s[1]=0,s[2]=e.gl.canvas.width,s[3]=e.gl.canvas.height,e.gl.viewport(0,0,_t.clippingMaskBufferSize,_t.clippingMaskBufferSize),this.setupLayoutBounds(i),e.gl.bindFramebuffer(e.gl.FRAMEBUFFER,_t.frameBuffers[this.curFrameNo].framebuffer),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT);for(var r=0;rr?i:r,n=o,s=o,a=0,_=0,h=e.clippedDrawContextList.length,l=0;la&&(a=P),S>_&&(_=S)}}if(n==o)e.allClippedDrawRect.x=0,e.allClippedDrawRect.y=0,e.allClippedDrawRect.width=0,e.allClippedDrawRect.height=0,e.isUsing=!1;else{var L=a-n,M=_-s;e.allClippedDrawRect.x=n,e.allClippedDrawRect.y=s,e.allClippedDrawRect.width=L,e.allClippedDrawRect.height=M,e.isUsing=!0}},i.prototype.setupLayoutBounds=function(t){var e=t/i.CHANNEL_COUNT,r=t%i.CHANNEL_COUNT;e=~~e,r=~~r;for(var o=0,n=0;n=1)return 1;var p=r,f=p*p;return l*(p*f)+$*f+u*p+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 i=w.getUserTimeMSec();if(e._$z2<0){e._$z2=i,e._$bs=i;var r=this.getDurationMSec();e._$Do<0&&(e._$Do=r<=0?-1:e._$z2+r)}var o=this._$V0;o=o*(0==this._$dP?1:ht._$r2((i-e._$bs)/this._$dP))*(0==this._$eo||e._$Do<0?1:ht._$r2((e._$Do-i)/this._$eo)),0<=o&&o<=1||console.log("### assert!! ### "),this.updateParamExe(t,i,o,e),e._$Do>0&&e._$Do0?console.log("\n"):i%8==0&&i>0&&console.log(" "),console.log("%02X ",255&t[i]);console.log("\n")},a._$nr=function(t,e,i){console.log("%s\n",t);for(var r=e.length,o=0;o=0;--r)this._$lL[r]._$oP(t,this);this._$oo(t,i),this._$M2=this._$Yb(),this._$9b=(this._$M2-this._$ks)/i,this._$ks=this._$M2}for(var 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 i=1/e;this.p1.vx=(this.p1.x-this.p1._$s0)*i,this.p1.vy=(this.p1.y-this.p1._$70)*i,this.p1.ax=(this.p1.vx-this.p1._$7L)*i,this.p1.ay=(this.p1.vy-this.p1._$HL)*i,this.p1.fx=this.p1.ax*this.p1._$p,this.p1.fy=this.p1.ay*this.p1._$p,this.p1._$xT();var r,o,n=-Math.atan2(this.p1.y-this.p2.y,this.p1.x-this.p2.x),s=Math.cos(n),a=Math.sin(n),_=9.8*this.p2._$p,h=this._$Db*Lt._$bS,l=_*Math.cos(n-h);r=l*a,o=l*s;var $=-this.p1.fx*a*a,u=-this.p1.fy*a*s,p=-this.p2.vx*this._$L2,f=-this.p2.vy*this._$L2;this.p2.fx=r+$+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*e,this.p2.vy+=this.p2.ay*e,this.p2.x+=this.p2.vx*e,this.p2.y+=this.p2.vy*e;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)*i,this.p2.vy=(this.p2.y-this.p2._$70)*i,this.p2._$xT()},c.prototype._$xT=function(){this._$s0=this.x,this._$70=this.y,this._$7L=this.vx,this._$HL=this.vy},d.prototype._$oP=function(t,e){},y.prototype=new d,y.prototype._$oP=function(t,e){var i=this.scale*t.getParamFloat(this._$wL),r=e.getPhysicsPoint1();switch(this._$tL){default:case f.Src.SRC_TO_X:r.x=r.x+(i-r.x)*this._$V0;break;case f.Src.SRC_TO_Y:r.y=r.y+(i-r.y)*this._$V0;break;case f.Src.SRC_TO_G_ANGLE:var o=e._$qr();o+=(i-o)*this._$V0,e._$pr(o)}},g.prototype._$YS=function(t,e){},T.prototype=new g,T.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",v.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},v.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())},v.prototype._$e=function(){};var xt=function(){};xt._$ni=function(t,e,i,r,o,n,s,a,_){var h=s*n-a*o;if(0==h)return null;var l,$=((t-i)*n-(e-r)*o)/h;return l=0!=o?(t-i-$*s)/o:(e-r-$*a)/n,isNaN(l)&&(l=(t-i-$*s)/o,isNaN(l)&&(l=(e-r-$*a)/n),isNaN(l)&&(console.log("a is NaN @UtVector#_$ni() "),console.log("v1x : "+o),console.log("v1x != 0 ? "+(0!=o)))),null==_?new Array(l,$):(_[0]=l,_[1]=$,_)},P.prototype._$8P=function(){return this.x+.5*this.width},P.prototype._$6P=function(){return this.y+.5*this.height},P.prototype._$EL=function(){return this.x+this.width},P.prototype._$5T=function(){return this.y+this.height},P.prototype._$jL=function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r},P.prototype._$jL=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},P.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},P.prototype.expand=function(t,e){this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e},S._$Z2=function(t,e,i,r){var o=e._$Q2(t,i),n=t._$vs(),s=t._$Tr();if(e._$zr(n,s,o),o<=0)return r[n[0]];if(1==o){var a=r[n[0]],_=r[n[1]],h=s[0];return a+(_-a)*h|0}if(2==o){var a=r[n[0]],_=r[n[1]],l=r[n[2]],$=r[n[3]],h=s[0],u=s[1],p=a+(_-a)*h|0,f=l+($-l)*h|0;return p+(f-p)*u|0}if(3==o){var c=r[n[0]],d=r[n[1]],y=r[n[2]],g=r[n[3]],m=r[n[4]],T=r[n[5]],v=r[n[6]],P=r[n[7]],h=s[0],u=s[1],S=s[2],a=c+(d-c)*h|0,_=y+(g-y)*h|0,l=m+(T-m)*h|0,$=v+(P-v)*h|0,p=a+(_-a)*u|0,f=l+($-l)*u|0;return p+(f-p)*S|0}if(4==o){var L=r[n[0]],M=r[n[1]],E=r[n[2]],A=r[n[3]],x=r[n[4]],w=r[n[5]],I=r[n[6]],O=r[n[7]],D=r[n[8]],R=r[n[9]],b=r[n[10]],F=r[n[11]],C=r[n[12]],N=r[n[13]],B=r[n[14]],U=r[n[15]],h=s[0],u=s[1],S=s[2],G=s[3],c=L+(M-L)*h|0,d=E+(A-E)*h|0,y=x+(w-x)*h|0,g=I+(O-I)*h|0,m=D+(R-D)*h|0,T=b+(F-b)*h|0,v=C+(N-C)*h|0,P=B+(U-B)*h|0,a=c+(d-c)*u|0,_=y+(g-y)*u|0,l=m+(T-m)*u|0,$=v+(P-v)*u|0,p=a+(_-a)*S|0,f=l+($-l)*S|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)},M.prototype.getClipIDList=function(){return this.clipIDList},M.prototype.init=function(t){},M.prototype._$Nr=function(t,e){if(e._$IS[0]=!1,e._$Us=S._$Z2(t,this._$GS,e._$IS,this._$Lb),_t._$Zs);else if(e._$IS[0])return;e._$7s=S._$br(t,this._$GS,e._$IS,this._$mS)},M.prototype._$2b=function(t,e){},M.prototype.getDrawDataID=function(){return this._$gP},M.prototype._$j2=function(t){this._$gP=t},M.prototype.getOpacity=function(t,e){return e._$7s},M.prototype._$zS=function(t,e){return e._$Us},M.prototype._$MS=function(t){for(var e=t.length-1;e>=0;--e){var i=t[e];iM._$R2&&(M._$R2=i)}},M.prototype.getTargetBaseDataID=function(){return this._$dr},M.prototype._$gs=function(t){this._$dr=t},M.prototype._$32=function(){return null!=this._$dr&&this._$dr!=gt._$2o()},M.prototype.preDraw=function(t,e,i){},M.prototype.draw=function(t,e,i){},M.prototype.getType=function(){},M.prototype._$B2=function(t,e,i){},E._$ps=32,E.CLIPPING_PROCESS_NONE=0,E.CLIPPING_PROCESS_OVERWRITE_ALPHA=1,E.CLIPPING_PROCESS_MULTIPLY_ALPHA=2,E.CLIPPING_PROCESS_DRAW=3,E.CLIPPING_PROCESS_CLEAR_ALPHA=4,E.prototype.setChannelFlagAsColor=function(t,e){this.CHANNEL_COLORS[t]=e},E.prototype.getChannelFlagAsColor=function(t){return this.CHANNEL_COLORS[t]},E.prototype._$ZT=function(){},E.prototype._$Uo=function(t,e,i,r,o,n,s){},E.prototype._$Rs=function(){return-1},E.prototype._$Ds=function(t){},E.prototype.setBaseColor=function(t,e,i,r){t<0?t=0:t>1&&(t=1),e<0?e=0:e>1&&(e=1),i<0?i=0:i>1&&(i=1),r<0?r=0:r>1&&(r=1),this._$lT=t,this._$C0=e,this._$tT=i,this._$WL=r},E.prototype._$WP=function(t){this.culling=t},E.prototype.setMatrix=function(t){for(var e=0;e<16;e++)this.matrix4x4[e]=t[e]},E.prototype._$IT=function(){return this.matrix4x4},E.prototype.setPremultipliedAlpha=function(t){this.premultipliedAlpha=t},E.prototype.isPremultipliedAlpha=function(){return this.premultipliedAlpha},E.prototype.setAnisotropy=function(t){this.anisotropy=t},E.prototype.getAnisotropy=function(){return this.anisotropy},E.prototype.getClippingProcess=function(){return this.clippingProcess},E.prototype.setClippingProcess=function(t){this.clippingProcess=t},E.prototype.setClipBufPre_clipContextForMask=function(t){this.clipBufPre_clipContextMask=t},E.prototype.getClipBufPre_clipContextMask=function(){return this.clipBufPre_clipContextMask},E.prototype.setClipBufPre_clipContextForDraw=function(t){this.clipBufPre_clipContextDraw=t},E.prototype.getClipBufPre_clipContextDraw=function(){return this.clipBufPre_clipContextDraw},x._$ur=-2,x._$c2=1,x._$_b=2,x.prototype._$F0=function(t){this._$kP=t._$nP(),this._$dr=t._$nP()},x.prototype.readV2_opacity=function(t){t.getFormatVersion()>=G.LIVE2D_FORMAT_VERSION_V2_10_SDK2&&(this._$mS=t._$Tb())},x.prototype.init=function(t){},x.prototype._$Nr=function(t,e){},x.prototype.interpolateOpacity=function(t,e,i,r){null==this._$mS?i.setInterpolatedOpacity(1):i.setInterpolatedOpacity(S._$br(t,e,r,this._$mS))},x.prototype._$2b=function(t,e){},x.prototype._$nb=function(t,e,i,r,o,n,s){},x.prototype.getType=function(){},x.prototype._$gs=function(t){this._$dr=t},x.prototype._$a2=function(t){this._$kP=t},x.prototype.getTargetBaseDataID=function(){return this._$dr},x.prototype.getBaseDataID=function(){return this._$kP},x.prototype._$32=function(){return null!=this._$dr&&this._$dr!=gt._$2o()},w._$W2=0,w._$CS=w._$W2,w._$Mo=function(){return!0},w._$XP=function(t){try{for(var e=getTimeMSec();getTimeMSec()-e=t.length)return!1;for(var o=e;o=0;--i){var r=this._$Ob[i].getParamIndex(e);if(r==I._$ds&&(r=t.getParamIndex(this._$Ob[i].getParamID())),t._$Xb(r))return!0}return!1},D.prototype._$Q2=function(t,e){for(var i,r,o=this._$Ob.length,n=t._$v2(),s=0,a=0;aU._$Qb&&console.log("err 23245\n");for(var o=this._$Ob.length,n=1,s=1,a=0,_=0;_=0;--n)i[n]=o[n]}else this.mult_fast(t,e,i,r)},R.prototype.mult_fast=function(t,e,i,r){r?(i[0]=t[0]*e[0]+t[4]*e[1]+t[8]*e[2],i[4]=t[0]*e[4]+t[4]*e[5]+t[8]*e[6],i[8]=t[0]*e[8]+t[4]*e[9]+t[8]*e[10],i[12]=t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12],i[1]=t[1]*e[0]+t[5]*e[1]+t[9]*e[2],i[5]=t[1]*e[4]+t[5]*e[5]+t[9]*e[6],i[9]=t[1]*e[8]+t[5]*e[9]+t[9]*e[10],i[13]=t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13],i[2]=t[2]*e[0]+t[6]*e[1]+t[10]*e[2],i[6]=t[2]*e[4]+t[6]*e[5]+t[10]*e[6],i[10]=t[2]*e[8]+t[6]*e[9]+t[10]*e[10],i[14]=t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14],i[3]=i[7]=i[11]=0,i[15]=1):(i[0]=t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],i[4]=t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],i[8]=t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],i[12]=t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],i[1]=t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],i[5]=t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],i[9]=t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],i[13]=t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],i[2]=t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],i[6]=t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],i[10]=t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],i[14]=t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],i[3]=t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],i[7]=t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],i[11]=t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],i[15]=t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15])},R.prototype.translate=function(t,e,i){this.m[12]=this.m[0]*t+this.m[4]*e+this.m[8]*i+this.m[12],this.m[13]=this.m[1]*t+this.m[5]*e+this.m[9]*i+this.m[13],this.m[14]=this.m[2]*t+this.m[6]*e+this.m[10]*i+this.m[14],this.m[15]=this.m[3]*t+this.m[7]*e+this.m[11]*i+this.m[15]},R.prototype.scale=function(t,e,i){this.m[0]*=t,this.m[4]*=e,this.m[8]*=i,this.m[1]*=t,this.m[5]*=e,this.m[9]*=i,this.m[2]*=t,this.m[6]*=e,this.m[10]*=i,this.m[3]*=t,this.m[7]*=e,this.m[11]*=i},R.prototype.rotateX=function(t){var e=Lt.fcos(t),i=Lt._$9(t),r=this.m[4];this.m[4]=r*e+this.m[8]*i,this.m[8]=r*-i+this.m[8]*e,r=this.m[5],this.m[5]=r*e+this.m[9]*i,this.m[9]=r*-i+this.m[9]*e,r=this.m[6],this.m[6]=r*e+this.m[10]*i,this.m[10]=r*-i+this.m[10]*e,r=this.m[7],this.m[7]=r*e+this.m[11]*i,this.m[11]=r*-i+this.m[11]*e},R.prototype.rotateY=function(t){var e=Lt.fcos(t),i=Lt._$9(t),r=this.m[0];this.m[0]=r*e+this.m[8]*-i,this.m[8]=r*i+this.m[8]*e,r=this.m[1],this.m[1]=r*e+this.m[9]*-i,this.m[9]=r*i+this.m[9]*e,r=m[2],this.m[2]=r*e+this.m[10]*-i,this.m[10]=r*i+this.m[10]*e,r=m[3],this.m[3]=r*e+this.m[11]*-i,this.m[11]=r*i+this.m[11]*e},R.prototype.rotateZ=function(t){var e=Lt.fcos(t),i=Lt._$9(t),r=this.m[0];this.m[0]=r*e+this.m[4]*i,this.m[4]=r*-i+this.m[4]*e,r=this.m[1],this.m[1]=r*e+this.m[5]*i,this.m[5]=r*-i+this.m[5]*e,r=this.m[2],this.m[2]=r*e+this.m[6]*i,this.m[6]=r*-i+this.m[6]*e,r=this.m[3],this.m[3]=r*e+this.m[7]*i,this.m[7]=r*-i+this.m[7]*e},b.prototype=new it,b._$tP=new Object,b._$27=function(){b._$tP.clear()},b.getID=function(t){var e=b._$tP[t];return null==e&&(e=new b(t),b._$tP[t]=e),e},b.prototype._$3s=function(){return new b},F._$kS=-1,F._$pS=0,F._$hb=1,F.STATE_IDENTITY=0,F._$gb=1,F._$fo=2,F._$go=4,F.prototype.transform=function(t,e,i){var r,o,n,s,a,_,h=0,l=0;switch(this._$hi){default:return;case F._$go|F._$fo|F._$gb:for(r=this._$7,o=this._$H,n=this._$k,s=this._$f,a=this._$g,_=this._$w;--i>=0;){var $=t[h++],u=t[h++];e[l++]=r*$+o*u+n,e[l++]=s*$+a*u+_}return;case F._$go|F._$fo:for(r=this._$7,o=this._$H,s=this._$f,a=this._$g;--i>=0;){var $=t[h++],u=t[h++];e[l++]=r*$+o*u,e[l++]=s*$+a*u}return;case F._$go|F._$gb:for(o=this._$H,n=this._$k,s=this._$f,_=this._$w;--i>=0;){var $=t[h++];e[l++]=o*t[h++]+n,e[l++]=s*$+_}return;case F._$go:for(o=this._$H,s=this._$f;--i>=0;){var $=t[h++];e[l++]=o*t[h++],e[l++]=s*$}return;case F._$fo|F._$gb:for(r=this._$7,n=this._$k,a=this._$g,_=this._$w;--i>=0;)e[l++]=r*t[h++]+n,e[l++]=a*t[h++]+_;return;case F._$fo:for(r=this._$7,a=this._$g;--i>=0;)e[l++]=r*t[h++],e[l++]=a*t[h++];return;case F._$gb:for(n=this._$k,_=this._$w;--i>=0;)e[l++]=t[h++]+n,e[l++]=t[h++]+_;return;case F.STATE_IDENTITY:return void(t==e&&h==l||w._$jT(t,h,e,l,2*i))}},F.prototype.update=function(){0==this._$H&&0==this._$f?1==this._$7&&1==this._$g?0==this._$k&&0==this._$w?(this._$hi=F.STATE_IDENTITY,this._$Z=F._$pS):(this._$hi=F._$gb,this._$Z=F._$hb):0==this._$k&&0==this._$w?(this._$hi=F._$fo,this._$Z=F._$kS):(this._$hi=F._$fo|F._$gb,this._$Z=F._$kS):0==this._$7&&0==this._$g?0==this._$k&&0==this._$w?(this._$hi=F._$go,this._$Z=F._$kS):(this._$hi=F._$go|F._$gb,this._$Z=F._$kS):0==this._$k&&0==this._$w?(this._$hi=F._$go|F._$fo,this._$Z=F._$kS):(this._$hi=F._$go|F._$fo|F._$gb,this._$Z=F._$kS)},F.prototype._$RT=function(t){this._$IT(t);var e=t[0],i=t[2],r=t[1],o=t[3],n=Math.sqrt(e*e+r*r),s=e*o-i*r;0==n?_t._$so&&console.log("affine._$RT() / rt==0"):(t[0]=n,t[1]=s/n,t[2]=(r*o+e*i)/s,t[3]=Math.atan2(r,e))},F.prototype._$ho=function(t,e,i,r){var o=new Float32Array(6),n=new Float32Array(6);t._$RT(o),e._$RT(n);var s=new Float32Array(6);s[0]=o[0]+(n[0]-o[0])*i,s[1]=o[1]+(n[1]-o[1])*i,s[2]=o[2]+(n[2]-o[2])*i,s[3]=o[3]+(n[3]-o[3])*i,s[4]=o[4]+(n[4]-o[4])*i,s[5]=o[5]+(n[5]-o[5])*i,r._$CT(s)},F.prototype._$CT=function(t){var e=Math.cos(t[3]),i=Math.sin(t[3]);this._$7=t[0]*e,this._$f=t[0]*i,this._$H=t[1]*(t[2]*e-i),this._$g=t[1]*(t[2]*i+e),this._$k=t[4],this._$w=t[5],this.update()},F.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},C.prototype=new s,C._$cs="VISIBLE:",C._$ar="LAYOUT:",C._$Co=0,C._$D2=[],C._$1T=1,C.loadMotion=function(t){var e=new C,i=[0],r=t.length;e._$yT=0;for(var o=0;o=0){var _=new B;O.startsWith(t,s,C._$cs)?(_._$RP=B._$hs,_._$4P=new String(t,s,a-s)):O.startsWith(t,s,C._$ar)?(_._$4P=new String(t,s+7,a-s-7),O.startsWith(t,s+7,"ANCHOR_X")?_._$RP=B._$xs:O.startsWith(t,s+7,"ANCHOR_Y")?_._$RP=B._$us:O.startsWith(t,s+7,"SCALE_X")?_._$RP=B._$qs:O.startsWith(t,s+7,"SCALE_Y")?_._$RP=B._$Ys:O.startsWith(t,s+7,"X")?_._$RP=B._$ws:O.startsWith(t,s+7,"Y")&&(_._$RP=B._$Ns)):(_._$RP=B._$Fr,_._$4P=new String(t,s,a-s)),e.motions.push(_);var h=0;for(C._$D2.clear(),o=a+1;o0){C._$D2.push(l),h++;var $=i[0];if($e._$yT&&(e._$yT=h)}}}else{for(var s=o,a=-1;o=0)for(a==s+4&&"f"==t[s+1]&&"p"==t[s+2]&&"s"==t[s+3]&&(u=!0),o=a+1;o0&&u&&5=l?l-1:s];t.setParamFloat($,u)}else if(B._$ws<=h._$RP&&h._$RP<=B._$Ys);else{var p=t.getParamFloat($),f=h._$I0[s>=l?l-1:s],c=h._$I0[s+1>=l?l-1:s+1],d=f+(c-f)*a,y=p+(d-p)*i;t.setParamFloat($,y)}}s>=this._$yT&&(this._$E?(r._$z2=e,this.loopFadeIn&&(r._$bs=e)):r._$9L=!0)},C.prototype._$r0=function(){return this._$E},C.prototype._$aL=function(t){this._$E=t},C.prototype.isLoopFadeIn=function(){return this.loopFadeIn},C.prototype.setLoopFadeIn=function(t){this.loopFadeIn=t},N.prototype.clear=function(){this.size=0},N.prototype.add=function(t){if(this._$P.length<=this.size){var e=new Float32Array(2*this.size);w._$jT(this._$P,0,e,0,this.size),this._$P=e}this._$P[this.size++]=t},N.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 I;case 68:return new z;case 69:return new v;case 70:return new $t;default:return G._$uT(t),null}else if(t<150)switch(t){case 131:return new st;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 e=this._$aS.length-1;e>=0;--e)if(null!=this._$aS[e]&&this._$aS[e].getDrawDataID()==t)return e;return-1},Y.prototype.getDrawData=function(t){if(t instanceof b){if(null==this._$Bo){this._$Bo=new Object;for(var e=this._$aS.length,i=0;i0&&this.release();for(var t=this._$Ri.getModelImpl(),e=t._$Xr(),r=e.length,o=new Array,n=new Array,s=0;s=0)&&(this._$3S.push(m),this._$db.push(n[s]),o[s]=null,g=!0)}}if(!g)break}var v=t._$E2();if(null!=v){var P=v._$1s();if(null!=P)for(var S=P.length,s=0;s=0;e--)this._$Js[e]=Y._$jr;return this._$QT=!1,Y._$e&&a.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 a._$li("call _$Ri.update() before _$Ri.draw() ");var e=this._$Ws.length;t._$ZT();for(var i=0;i=0;--e)if(this._$pb[e]==t)return e;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 e=this._$3S.length-1;e>=0;--e)if(null!=this._$3S[e]&&this._$3S[e].getBaseDataID()==t)return e;return-1},Y.prototype._$UT=function(t,e){var i=new Float32Array(e);return w._$jT(t,0,i,0,t.length),i},Y.prototype._$02=function(t,e,i,r){if(this._$qo>=this._$pb.length){var o=this._$pb.length,n=new Array(2*o);w._$jT(this._$pb,0,n,0,o),this._$pb=n,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 s=new Array;w._$jT(this._$Js,0,s,0,o),this._$Js=s}return this._$pb[this._$qo]=t,this._$_2[this._$qo]=e,this._$vr[this._$qo]=e,this._$Rr[this._$qo]=i,this._$Or[this._$qo]=r,this._$Js[this._$qo]=Y._$ZS,this._$qo++},Y.prototype._$Zo=function(t,e){this._$3S[t]=e},Y.prototype.setParamFloat=function(t,e){ethis._$Or[t]&&(e=this._$Or[t]),this._$_2[t]=e},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,e){this._$Hr[t].setPartsOpacity(e)},Y.prototype.getPartsOpacity=function(t){return this._$Hr[t].getPartsOpacity()},Y.prototype.getPartsDataIndex=function(t){for(var e=this._$F2.length-1;e>=0;--e)if(null!=this._$F2[e]&&this._$F2[e]._$p2()==t)return e;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,e){for(var i=this._$Ws.length,r=t,o=0;o0;)n+=e;return r},k._$C=function(t){var e=null,i=null;try{e=t instanceof Array?t:new _$Xs(t,8192),i=new _$js;for(var r,o=new Int8Array(1e3);(r=e.read(o))>0;)i.write(o,0,r);return i._$TS()}finally{null!=t&&t.close(),null!=i&&(i.flush(),i.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,e,i){this._$Dr=t,this._$Cb=e,this._$mr=i},V.prototype._$7T=function(t){var e,i=w.getUserTimeMSec(),r=0;switch(this._$_L){case STATE_CLOSING:r=(i-this._$bb)/this._$Dr,r>=1&&(r=1,this._$_L=wt.STATE_CLOSED,this._$bb=i),e=1-r;break;case STATE_CLOSED:r=(i-this._$bb)/this._$Cb,r>=1&&(this._$_L=wt.STATE_OPENING,this._$bb=i),e=0;break;case STATE_OPENING:r=(i-this._$bb)/this._$mr,r>=1&&(r=1,this._$_L=wt.STATE_INTERVAL,this._$12=this._$T2()),e=r;break;case STATE_INTERVAL:this._$12.9?_t.EXPAND_W:0;this.gl.drawElements(_,i,r,o,n,h,this.transform,a)}},X.prototype._$Rs=function(){throw new Error("_$Rs")},X.prototype._$Ds=function(t){throw new Error("_$Ds")},X.prototype._$K2=function(){for(var t=0;t=0;--e){var i=t[e];iW._$R2&&(W._$R2=i)}},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,e){if(e._$IS[0]=!1,e._$Us=S._$Z2(t,this._$GS,e._$IS,this._$Lb),_t._$Zs);else if(e._$IS[0])return;e._$7s=S._$br(t,this._$GS,e._$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,e){return e._$7s},W.prototype._$zS=function(t,e){return e._$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!=gt._$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 e,q.loadModel=function(t){var i=new q;return e._$62(i,t),i},q.loadModel=function(t){var i=new q;return e._$62(i,t),i},q._$to=function(){return new q},q._$er=function(t){var e=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(0==e.exists())throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+e._$PL());for(var i=["../_$_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(e._$3b()),o=0;o=0){var h=new B;O.startsWith(t,a,J._$cs)?(h._$RP=B._$hs,h._$4P=O.createString(t,a,_-a)):O.startsWith(t,a,J._$ar)?(h._$4P=O.createString(t,a+7,_-a-7),O.startsWith(t,a+7,"ANCHOR_X")?h._$RP=B._$xs:O.startsWith(t,a+7,"ANCHOR_Y")?h._$RP=B._$us:O.startsWith(t,a+7,"SCALE_X")?h._$RP=B._$qs:O.startsWith(t,a+7,"SCALE_Y")?h._$RP=B._$Ys:O.startsWith(t,a+7,"X")?h._$RP=B._$ws:O.startsWith(t,a+7,"Y")&&(h._$RP=B._$Ns)):(h._$RP=B._$Fr,h._$4P=O.createString(t,a,_-a)),e.motions.push(h);var l=0,$=[];for(o=_+1;o0){$.push(u),l++;var p=i[0];if(pe._$yT&&(e._$yT=l)}}}else{for(var a=o,_=-1;o=0)for(_==a+4&&"f"==Q(t,a+1)&&"p"==Q(t,a+2)&&"s"==Q(t,a+3)&&(f=!0),o=_+1;o0&&f&&5=l?l-1:s];t.setParamFloat($,u)}else if(B._$ws<=h._$RP&&h._$RP<=B._$Ys);else{var p,f=t.getParamIndex($),c=t.getModelContext(),d=c.getParamMax(f),y=c.getParamMin(f),g=.4*(d-y),m=c.getParamFloat(f),T=h._$I0[s>=l?l-1:s],v=h._$I0[s+1>=l?l-1:s+1];p=Tg||T>v&&T-v>g?T:T+(v-T)*a;var P=m+(p-m)*i;t.setParamFloat($,P)}}s>=this._$yT&&(this._$E?(r._$z2=e,this.loopFadeIn&&(r._$bs=e)):r._$9L=!0),this._$eP=i},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},N.prototype.clear=function(){this.size=0},N.prototype.add=function(t){if(this._$P.length<=this.size){var e=new Float32Array(2*this.size);w._$jT(this._$P,0,e,0,this.size),this._$P=e}this._$P[this.size++]=t},N.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 x,Z._$gT=new Array,Z.prototype._$zP=function(){this._$GS=new D,this._$GS._$zP()},Z.prototype._$F0=function(t){x.prototype._$F0.call(this,t),this._$A=t._$6L(),this._$o=t._$6L(),this._$GS=t._$nP(),this._$Eo=t._$nP(),x.prototype.readV2_opacity.call(this,t)},Z.prototype.init=function(t){var e=new K(this),i=(this._$o+1)*(this._$A+1);return null!=e._$Cr&&(e._$Cr=null),e._$Cr=new Float32Array(2*i),null!=e._$hr&&(e._$hr=null),this._$32()?e._$hr=new Float32Array(2*i):e._$hr=null,e},Z.prototype._$Nr=function(t,e){var i=e;if(this._$GS._$Ur(t)){var r=this._$VT(),o=Z._$gT;o[0]=!1,S._$Vr(t,this._$GS,o,r,this._$Eo,i._$Cr,0,2),e._$Ib(o[0]),this.interpolateOpacity(t,this._$GS,e,o)}},Z.prototype._$2b=function(t,e){var i=e;if(i._$hS(!0),this._$32()){var r=this.getTargetBaseDataID();if(i._$8r==x._$ur&&(i._$8r=t.getBaseDataIndex(r)),i._$8r<0)_t._$so&&a._$li("_$L _$0P _$G :: %s",r),i._$hS(!1);else{var o=t.getBaseData(i._$8r),n=t._$q2(i._$8r);if(null!=o&&n._$yo()){var s=n.getTotalScale();i.setTotalScale_notForClient(s);var _=n.getTotalOpacity();i.setTotalOpacity(_*i.getInterpolatedOpacity()),o._$nb(t,n,i._$Cr,i._$hr,this._$VT(),0,2),i._$hS(!0)}else i._$hS(!1)}}else i.setTotalOpacity(i.getInterpolatedOpacity())},Z.prototype._$nb=function(t,e,i,r,o,n,s){var a=e,_=null!=a._$hr?a._$hr:a._$Cr;Z.transformPoints_sdk2(i,r,o,n,s,_,this._$o,this._$A)},Z.transformPoints_sdk2=function(e,i,r,o,n,s,a,_){for(var h,l,$,u=r*n,p=0,f=0,c=0,d=0,y=0,g=0,m=!1,T=o;T=1){var b=s[2*(0+_*M)],F=s[2*(0+_*M)+1],C=p-2*c+1*y,N=f-2*d+1*g,I=p+3*y,O=f+3*g,D=p-2*c+3*y,R=f-2*d+3*g,B=.5*(S- -2),U=.5*(L-1);B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else{var G=0|P;G==_&&(G=_-1);var B=.5*(S- -2),U=P-G,Y=G/_,k=(G+1)/_,b=s[2*(0+G*M)],F=s[2*(0+G*M)+1],I=s[2*(0+(G+1)*M)],O=s[2*(0+(G+1)*M)+1],C=p-2*c+Y*y,N=f-2*d+Y*g,D=p-2*c+k*y,R=f-2*d+k*g;B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else if(1<=S)if(L<=0){var D=s[2*(a+0*M)],R=s[2*(a+0*M)+1],I=p+3*c,O=f+3*d,C=p+1*c-2*y,N=f+1*d-2*g,b=p+3*c-2*y,F=f+3*d-2*g,B=.5*(S-1),U=.5*(L- -2);B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else if(L>=1){var C=s[2*(a+_*M)],N=s[2*(a+_*M)+1],b=p+3*c+1*y,F=f+3*d+1*g,D=p+1*c+3*y,R=f+1*d+3*g,I=p+3*c+3*y,O=f+3*d+3*g,B=.5*(S-1),U=.5*(L-1);B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else{var G=0|P;G==_&&(G=_-1);var B=.5*(S-1),U=P-G,Y=G/_,k=(G+1)/_,C=s[2*(a+G*M)],N=s[2*(a+G*M)+1],D=s[2*(a+(G+1)*M)],R=s[2*(a+(G+1)*M)+1],b=p+3*c+Y*y,F=f+3*d+Y*g,I=p+3*c+k*y,O=f+3*d+k*g;B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else if(L<=0){var V=0|v;V==a&&(V=a-1);var B=v-V,U=.5*(L- -2),X=V/a,z=(V+1)/a,D=s[2*(V+0*M)],R=s[2*(V+0*M)+1],I=s[2*(V+1+0*M)],O=s[2*(V+1+0*M)+1],C=p+X*c-2*y,N=f+X*d-2*g,b=p+z*c-2*y,F=f+z*d-2*g;B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else if(L>=1){var V=0|v;V==a&&(V=a-1);var B=v-V,U=.5*(L-1),X=V/a,z=(V+1)/a,C=s[2*(V+_*M)],N=s[2*(V+_*M)+1],b=s[2*(V+1+_*M)],F=s[2*(V+1+_*M)+1],D=p+X*c+3*y,R=f+X*d+3*g,I=p+z*c+3*y,O=f+z*d+3*g;B+U<=1?(i[T]=C+(b-C)*B+(D-C)*U,i[T+1]=N+(F-N)*B+(R-N)*U):(i[T]=I+(D-I)*(1-B)+(b-I)*(1-U),i[T+1]=O+(R-O)*(1-B)+(F-O)*(1-U))}else t.err.printf("_$li calc : %.4f , %.4f\t\t\t\t\t@@BDBoxGrid\n",S,L);else i[T]=p+S*c+L*y,i[T+1]=f+S*d+L*g}else l=v-(0|v),$=P-(0|P),h=2*((0|v)+(0|P)*(a+1)),l+$<1?(i[T]=s[h]*(1-l-$)+s[h+2]*l+s[h+2*(a+1)]*$,i[T+1]=s[h+1]*(1-l-$)+s[h+3]*l+s[h+2*(a+1)+1]*$):(i[T]=s[h+2*(a+1)+2]*(l-1+$)+s[h+2*(a+1)]*(1-l)+s[h+2]*(1-$),i[T+1]=s[h+2*(a+1)+3]*(l-1+$)+s[h+2*(a+1)+1]*(1-l)+s[h+3]*(1-$))}},Z.prototype.transformPoints_sdk1=function(t,e,i,r,o,n,s){for(var a,_,h,l,$,u,p,f=e,c=this._$o,d=this._$A,y=o*s,g=null!=f._$hr?f._$hr:f._$Cr,m=n;m1&&(a=1),_<0?_=0:_>1&&(_=1),a*=c,_*=d,h=0|a,l=0|_,h>c-1&&(h=c-1),l>d-1&&(l=d-1),u=a-h,p=_-l,$=2*(h+l*(c+1))):(a=i[m]*c,_=i[m+1]*d,u=a-(0|a),p=_-(0|_),$=2*((0|a)+(0|_)*(c+1))),u+p<1?(r[m]=g[$]*(1-u-p)+g[$+2]*u+g[$+2*(c+1)]*p,r[m+1]=g[$+1]*(1-u-p)+g[$+3]*u+g[$+2*(c+1)+1]*p):(r[m]=g[$+2*(c+1)+2]*(u-1+p)+g[$+2*(c+1)]*(1-u)+g[$+2]*(1-p),r[m+1]=g[$+2*(c+1)+3]*(u-1+p)+g[$+2*(c+1)+1]*(1-u)+g[$+3]*(1-p))},Z.prototype._$VT=function(){return(this._$o+1)*(this._$A+1)},Z.prototype.getType=function(){return x._$_b},K.prototype=new at,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 e=new et(this);return e.setPartsOpacity(this.isVisible()?1:0),e},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},et.prototype=new $,et.prototype.getPartsOpacity=function(){return this._$VS},et.prototype.setPartsOpacity=function(t){this._$VS=t},it._$L7=function(){u._$27(),gt._$27(),b._$27(),l._$27()},it.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)},nt.tr=new yt,nt._$50=new yt,nt._$Ti=new Array(0,0),nt._$Pi=new Array(0,0),nt._$B=new Array(0,0),nt.prototype._$lP=function(t,e,i,r){this.viewport=new Array(t,e,i,r)},nt.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())},nt.prototype._$ei=function(){this.context.restore()},nt.prototype.drawElements=function(t,e,i,r,o,n,s,_){try{o!=this._$Qo&&(this._$Qo=o,this.context.globalAlpha=o);for(var h=e.length,l=t.width,$=t.height,u=this.context,p=this._$xP,f=this._$uP,c=this._$6r,d=this._$3r,y=nt.tr,g=nt._$Ti,m=nt._$Pi,T=nt._$B,v=0;v.02?nt.expandClip(t,e,i,r,l,$,u,p,f,c):nt.clipWithTransform(t,null,o,n,s,a,_,h)},nt.expandClip=function(t,e,i,r,o,n,s,a,_,h){var l=s-o,$=a-n,u=_-o,p=h-n,f=l*p-$*u>0?i:-i,c=-$,d=l,y=_-s,g=h-a,m=-g,T=y,v=Math.sqrt(y*y+g*g),P=-p,S=u,L=Math.sqrt(u*u+p*p),M=o-f*c/r,E=n-f*d/r,A=s-f*c/r,x=a-f*d/r,w=s-f*m/v,I=a-f*T/v,O=_-f*m/v,D=h-f*T/v,R=o+f*P/L,b=n+f*S/L,F=_+f*P/L,C=h+f*S/L,N=nt._$50;return null!=e._$P2(N)&&(nt.clipWithTransform(t,N,M,E,A,x,w,I,O,D,F,C,R,b),!0)},nt.clipWithTransform=function(t,e,i,r,o,n,s,_){if(arguments.length<7)return void a._$li("err : @LDGL.clip()");if(!(arguments[1]instanceof yt))return void a._$li("err : a[0] is _$6 LDTransform @LDGL.clip()");var h=nt._$B,l=e,$=arguments;if(t.beginPath(),l){l._$PS($[2],$[3],h),t.moveTo(h[0],h[1]);for(var u=4;u<$.length;u+=2)l._$PS($[u],$[u+1],h),t.lineTo(h[0],h[1])}else{t.moveTo($[2],$[3]);for(var u=4;u<$.length;u+=2)t.lineTo($[u],$[u+1])}t.clip()},nt.createCanvas=function(t,e){var i=document.createElement("canvas");return i.setAttribute("width",t),i.setAttribute("height",e),i||a._$li("err : "+i),i},nt.dumpValues=function(){for(var t="",e=0;e1?1:.5-.5*Math.cos(t*Lt.PI_F)},lt._$fr=-1,lt.prototype.toString=function(){return this._$ib},$t.prototype=new W,$t._$42=0,$t._$Os=30,$t._$ms=0,$t._$ns=1,$t._$_s=2,$t._$gT=new Array,$t.prototype._$_S=function(t){this._$LP=t},$t.prototype.getTextureNo=function(){return this._$LP},$t.prototype._$ZL=function(){return this._$Qi},$t.prototype._$H2=function(){return this._$JP},$t.prototype.getNumPoints=function(){return this._$d0},$t.prototype.getType=function(){return W._$wb},$t.prototype._$B2=function(t,e,i){var r=e,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 n=this._$d0-1;n>=0;--n)o[n*U._$No+4]=i}},$t.prototype._$zP=function(){this._$GS=new D,this._$GS._$zP()},$t.prototype._$F0=function(t){W.prototype._$F0.call(this,t),this._$LP=t._$6L(),this._$d0=t._$6L(),this._$Yo=t._$6L();var e=t._$nP();this._$BP=new Int16Array(3*this._$Yo);for(var i=3*this._$Yo-1;i>=0;--i)this._$BP[i]=e[i];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&$t._$Os)?this._$6s=(this._$JP&$t._$Os)>>1:this._$6s=$t._$ms,0!=(32&this._$JP)&&(this.culling=!1)}}else this._$JP=0},$t.prototype.init=function(t){var e=new ut(this),i=this._$d0*U._$No,r=this._$32();switch(null!=e._$Cr&&(e._$Cr=null),e._$Cr=new Float32Array(i),null!=e._$hr&&(e._$hr=null),e._$hr=r?new Float32Array(i):null,U._$do){default:case U._$Ms:if(U._$Ls)for(var o=this._$d0-1;o>=0;--o){var n=o<<1;this._$Qi[n+1]=1-this._$Qi[n+1]}break;case U._$Qs:for(var o=this._$d0-1;o>=0;--o){var n=o<<1,s=o*U._$No,a=this._$Qi[n],_=this._$Qi[n+1];e._$Cr[s]=a,e._$Cr[s+1]=_,e._$Cr[s+4]=0,r&&(e._$hr[s]=a,e._$hr[s+1]=_,e._$hr[s+4]=0)}}return e},$t.prototype._$Nr=function(t,e){var i=e;if(this!=i._$GT()&&console.log("### assert!! ### "),this._$GS._$Ur(t)&&(W.prototype._$Nr.call(this,t,i),!i._$IS[0])){var r=$t._$gT;r[0]=!1,S._$Vr(t,this._$GS,r,this._$d0,this._$Eo,i._$Cr,U._$i2,U._$No)}},$t.prototype._$2b=function(t,e){try{this!=e._$GT()&&console.log("### assert!! ### ");var i=!1;e._$IS[0]&&(i=!0);var r=e;if(!i&&(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)_t._$so&&a._$li("_$L _$0P _$G :: %s",o);else{var n=t.getBaseData(r._$8r),s=t._$q2(r._$8r);null==n||s._$x2()?r._$AT=!1:(n._$nb(t,s,r._$Cr,r._$hr,this._$d0,U._$i2,U._$No),r._$AT=!0),r.baseOpacity=s.getTotalOpacity()}}}catch(t){throw t}},$t.prototype.draw=function(t,e,i){if(this!=i._$GT()&&console.log("### assert!! ### "),!i._$IS[0]){var r=i,o=this._$LP;o<0&&(o=1);var n=this.getOpacity(e,r)*i._$VS*i.baseOpacity,s=null!=r._$hr?r._$hr:r._$Cr;t.setClipBufPre_clipContextForDraw(i.clipBufPre_clipContext),t._$WP(this.culling),t._$Uo(o,3*this._$Yo,this._$BP,s,this._$Qi,n,this._$6s,r)}},$t.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,i._$sr));if(null==t)return-1;i=new dt,i._$w0=t,this.motions.push(i);var n=i._$sr;return this._$eb&&a._$Ji("MotionQueueManager[size:%2d]->startMotion() / new _$w0 (m%d)\n",r,n),n},ct.prototype.updateParam=function(t){try{for(var e=!1,i=0;iupdateParam() / _$T0 _$w0 (m%d)\n",this.motions.length-1,r._$sr),this.motions.splice(i,1),i--)):(this.motions=this.motions.splice(i,1),i--)}else this.motions.splice(i,1),i--}return e}catch(t){return a._$li(t),!0}},ct.prototype.isFinished=function(t){if(arguments.length>=1){for(var e=0;e.9&&_t.EXPAND_W,this.gl);if(null==this.gl)throw new Error("gl is null");var h=1*this._$C0*n,l=1*this._$tT*n,$=1*this._$WL*n,u=this._$lT*n;if(null!=this.clipBufPre_clipContextMask){_.frontFace(_.CCW),_.useProgram(this.shaderProgram),this._$vS=Tt(_,this._$vS,r),this._$no=vt(_,this._$no,i),_.enableVertexAttribArray(this.a_position_Loc),_.vertexAttribPointer(this.a_position_Loc,2,_.FLOAT,!1,0,0),this._$NT=Tt(_,this._$NT,o),_.activeTexture(_.TEXTURE1),_.bindTexture(_.TEXTURE_2D,this.textures[t]),_.uniform1i(this.s_texture0_Loc,1),_.enableVertexAttribArray(this.a_texCoord_Loc),_.vertexAttribPointer(this.a_texCoord_Loc,2,_.FLOAT,!1,0,0),_.uniformMatrix4fv(this.u_matrix_Loc,!1,this.getClipBufPre_clipContextMask().matrixForMask);var p=this.getClipBufPre_clipContextMask().layoutChannelNo,f=this.getChannelFlagAsColor(p);_.uniform4f(this.u_channelFlag,f.r,f.g,f.b,f.a);var c=this.getClipBufPre_clipContextMask().layoutBounds;_.uniform4f(this.u_baseColor_Loc,2*c.x-1,2*c.y-1,2*c._$EL()-1,2*c._$5T()-1),_.uniform1i(this.u_maskFlag_Loc,!0)}else if(null!=this.getClipBufPre_clipContextDraw()){_.useProgram(this.shaderProgramOff),this._$vS=Tt(_,this._$vS,r),this._$no=vt(_,this._$no,i),_.enableVertexAttribArray(this.a_position_Loc_Off),_.vertexAttribPointer(this.a_position_Loc_Off,2,_.FLOAT,!1,0,0),this._$NT=Tt(_,this._$NT,o),_.activeTexture(_.TEXTURE1),_.bindTexture(_.TEXTURE_2D,this.textures[t]),_.uniform1i(this.s_texture0_Loc_Off,1),_.enableVertexAttribArray(this.a_texCoord_Loc_Off),_.vertexAttribPointer(this.a_texCoord_Loc_Off,2,_.FLOAT,!1,0,0),_.uniformMatrix4fv(this.u_clipMatrix_Loc_Off,!1,this.getClipBufPre_clipContextDraw().matrixForDraw),_.uniformMatrix4fv(this.u_matrix_Loc_Off,!1,this.matrix4x4),_.activeTexture(_.TEXTURE2),_.bindTexture(_.TEXTURE_2D,_t.fTexture[this.glno]),_.uniform1i(this.s_texture1_Loc_Off,2);var p=this.getClipBufPre_clipContextDraw().layoutChannelNo,f=this.getChannelFlagAsColor(p);_.uniform4f(this.u_channelFlag_Loc_Off,f.r,f.g,f.b,f.a),_.uniform4f(this.u_baseColor_Loc_Off,h,l,$,u)}else _.useProgram(this.shaderProgram),this._$vS=Tt(_,this._$vS,r),this._$no=vt(_,this._$no,i),_.enableVertexAttribArray(this.a_position_Loc),_.vertexAttribPointer(this.a_position_Loc,2,_.FLOAT,!1,0,0),this._$NT=Tt(_,this._$NT,o),_.activeTexture(_.TEXTURE1),_.bindTexture(_.TEXTURE_2D,this.textures[t]),_.uniform1i(this.s_texture0_Loc,1),_.enableVertexAttribArray(this.a_texCoord_Loc),_.vertexAttribPointer(this.a_texCoord_Loc,2,_.FLOAT,!1,0,0),_.uniformMatrix4fv(this.u_matrix_Loc,!1,this.matrix4x4),_.uniform4f(this.u_baseColor_Loc,h,l,$,u),_.uniform1i(this.u_maskFlag_Loc,!1);this.culling?this.gl.enable(_.CULL_FACE):this.gl.disable(_.CULL_FACE),this.gl.enable(_.BLEND);var d,y,g,m;if(null!=this.clipBufPre_clipContextMask)d=_.ONE,y=_.ONE_MINUS_SRC_ALPHA,g=_.ONE,m=_.ONE_MINUS_SRC_ALPHA;else switch(s){case $t._$ms:d=_.ONE,y=_.ONE_MINUS_SRC_ALPHA,g=_.ONE,m=_.ONE_MINUS_SRC_ALPHA;break;case $t._$ns:d=_.ONE,y=_.ONE,g=_.ZERO,m=_.ONE;break;case $t._$_s:d=_.DST_COLOR,y=_.ONE_MINUS_SRC_ALPHA,g=_.ZERO,m=_.ONE}_.blendEquationSeparate(_.FUNC_ADD,_.FUNC_ADD),_.blendFuncSeparate(d,y,g,m),this.anisotropyExt&&_.texParameteri(_.TEXTURE_2D,this.anisotropyExt.TEXTURE_MAX_ANISOTROPY_EXT,this.maxAnisotropy);var T=i.length;_.drawElements(_.TRIANGLES,T,_.UNSIGNED_SHORT,0),_.bindTexture(_.TEXTURE_2D,null)}},mt.prototype._$Rs=function(){throw new Error("_$Rs")},mt.prototype._$Ds=function(t){throw new Error("_$Ds")},mt.prototype._$K2=function(){for(var t=0;t=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 n(this._$6L(),!0);case 11:return new P(this._$mP(),this._$mP(),this._$mP(),this._$mP());case 12:return new P(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(),i=new Array(o),s=0;s>7-this._$hL++&1)},Pt.prototype._$zT=function(){0!=this._$hL&&(this._$hL=0)},St.prototype._$wP=function(t,e,i){for(var r=0;rMath.PI;)i-=2*Math.PI;return i},Lt._$9=function(t){return Math.sin(t)},Lt.fcos=function(t){return Math.cos(t)},Mt.prototype._$u2=function(){return this._$IS[0]},Mt.prototype._$yo=function(){return this._$AT&&!this._$IS[0]},Mt.prototype._$GT=function(){return this._$e0},Et._$W2=0,Et.SYSTEM_INFO=null,Et.USER_AGENT=navigator.userAgent,Et.isIPhone=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO._isIPhone},Et.isIOS=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO._isIPhone||Et.SYSTEM_INFO._isIPad},Et.isAndroid=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO._isAndroid},Et.getOSVersion=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO.version},Et.getOS=function(){return Et.SYSTEM_INFO||Et.setup(),Et.SYSTEM_INFO._isIPhone||Et.SYSTEM_INFO._isIPad?"iOS":Et.SYSTEM_INFO._isAndroid?"Android":"_$Q0 OS"},Et.setup=function(){function t(t,e){for(var i=t.substring(e).split(/[ _,;\.]/),r=0,o=0;o<=2&&!isNaN(i[o]);o++){var n=parseInt(i[o]);if(n<0||n>999){a._$li("err : "+n+" @UtHtml5.setup()"),r=0;break}r+=n*Math.pow(1e3,2-o)}return r}var e,i=Et.USER_AGENT,r=Et.SYSTEM_INFO={userAgent:i};if((e=i.indexOf("iPhone OS "))>=0)r.os="iPhone",r._isIPhone=!0,r.version=t(i,e+"iPhone OS ".length);else if((e=i.indexOf("iPad"))>=0){if((e=i.indexOf("CPU OS"))<0)return void a._$li(" err : "+i+" @UtHtml5.setup()");r.os="iPad",r._isIPad=!0,r.version=t(i,e+"CPU OS ".length)}else(e=i.indexOf("Android"))>=0?(r.os="Android",r._isAndroid=!0,r.version=t(i,e+"Android ".length)):(r.os="-",r.version=-1)},window.UtSystem=w,window.UtDebug=a,window.LDTransform=yt,window.LDGL=nt,window.Live2D=_t,window.Live2DModelWebGL=ft,window.Live2DModelJS=q,window.Live2DMotion=J,window.MotionQueueManager=ct,window.PhysicsHair=f,window.AMotion=s,window.PartsDataID=l,window.DrawDataID=b,window.BaseDataID=gt,window.ParamID=u,_t.init();var At=!1}()}).call(e,i(7))},function(t,e){t.exports={import:function(){throw new Error("System.import cannot be used indirectly")}}},function(t,e,i){function r(t){return t&&t.__esModule?t:{default:t}}function o(){this.models=[],this.count=-1,this.reloadFlg=!1,Live2D.init(),n.Live2DFramework.setPlatformManager(new a.default)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=i(0),s=i(9),a=r(s),_=i(10),h=r(_),l=i(1),$=r(l);o.prototype.createModel=function(){var t=new h.default;return this.models.push(t),t},o.prototype.changeModel=function(t,e){this.reloadFlg&&(this.reloadFlg=!1,this.releaseModel(0,t),this.createModel(),this.models[0].load(t,e))},o.prototype.getModel=function(t){return t>=this.models.length?null:this.models[t]},o.prototype.releaseModel=function(t,e){this.models.length<=t||(this.models[t].release(e),delete this.models[t],this.models.splice(t,1))},o.prototype.numModels=function(){return this.models.length},o.prototype.setDrag=function(t,e){for(var i=0;i0){r.expressions={};for(var t=0;t