chbim-plugins 0.0.32 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chbim-plugins.js +14266 -12037
- package/chbim-plugins.umd.cjs +85 -69
- package/package.json +1 -1
package/chbim-plugins.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function($i,si){typeof exports=="object"&&typeof module<"u"?si(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],si):($i=typeof globalThis<"u"?globalThis:$i||self,si($i["chbim-plugins"]={},$i.Vue))})(this,function($i,si){"use strict";var o1=Object.defineProperty;var a1=($i,si,Al)=>si in $i?o1($i,si,{enumerable:!0,configurable:!0,writable:!0,value:Al}):$i[si]=Al;var vf=($i,si,Al)=>(a1($i,typeof si!="symbol"?si+"":si,Al),Al);const Al="",_f=((w,l)=>{const o=w.__vccOpts||w;for(const[p,d]of l)o[p]=d;return o})(Object.assign({name:"MukButton"},{props:{size:{type:String,default:"middle"},type:{type:String,default:"default"}},setup(w){return(l,o)=>(si.openBlock(),si.createElementBlock("button",{class:si.normalizeClass(["muk-btn",[w.size,w.type]])},[si.renderSlot(l.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-0e6d93cd"]]);class zd{constructor(){this.dom={mask:document.querySelector(".js-mask"),slices:[...document.querySelectorAll(".js-mask__slice")],lines:[...document.querySelectorAll(".js-mask-line")],logo:document.querySelector(".js-logo"),titles:[...document.querySelectorAll(".js-transition-title")]},this.tl=null,this.state=!1,this.init()}resetScroll(){window.scrollTo(0,0)}createTimeline(){this.tl=new TimelineMax({paused:!0,onComplete:()=>{this.state=!1}}),this.tl.set(this.dom.titles,{yPercent:0}).set(this.dom.mask,{autoAlpha:1}).staggerFromTo(this.dom.slices,1.5,{xPercent:100},{xPercent:0,ease:Expo.easeInOut},-.075).addCallback(this.resetScroll.bind(this)).addLabel("loaderStart").set(this.dom.titles,{yPercent:-100}).set([this.dom.lines[0],this.dom.logo],{autoAlpha:1}).fromTo(this.dom.logo,1,{yPercent:-100,rotation:10},{yPercent:0,rotation:0,ease:Expo.easeOut}).addLabel("intermediateFrame").staggerFromTo(this.dom.lines,.5,{scaleX:0},{scaleX:1,ease:Expo.easeInOut},.75,"-=1").set(this.dom.lines,{transformOrigin:"right"}).fromTo(this.dom.lines[0],1,{scaleX:1},{scaleX:0,ease:Expo.easeInOut}).fromTo(this.dom.logo,1,{yPercent:0},{yPercent:105,ease:Expo.easeOut},"-=1").staggerFromTo(this.dom.slices,.5,{xPercent:0},{xPercent:100,ease:Expo.easeInOut},.075).set(this.dom.mask,{autoAlpha:0}).addLabel("imagesStart","-=0.85").staggerFromTo(this.dom.titles,1.5,{yPercent:100},{yPercent:0,ease:Expo.easeInOut},.05,"imagesStart").addLabel("loaderEnd")}continuation(){this.init(),this.resetScroll(),this.tl.tweenFromTo("loaderStart","loaderEnd")}show(){this.init(),this.tl.tweenFromTo("loaderStart","intermediateFrame")}hide(){this.resetScroll(),this.tl.tweenFromTo("intermediateFrame","loaderEnd")}init(){document.querySelector(".mask-line.js-mask-line")&&document.querySelector(".mask-line.js-mask-line").removeAttribute("style"),document.querySelector(".mask-line__inner.js-mask-line")&&document.querySelector(".mask-line__inner.js-mask-line").removeAttribute("style"),this.createTimeline()}}const kd={class:"mask js-mask"},Bd=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Nd=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Fd=si.createElementVNode("div",{class:"mask__slice js-mask__slice"},null,-1),Ud={class:"mask__inner"},Gd={class:"logo logo--mask"},Hd={class:"js-logo",style:{color:"#fff"}},Vd=si.createElementVNode("div",{class:"mask-line js-mask-line"},[si.createElementVNode("div",{class:"mask-line__inner js-mask-line"})],-1),Wd={name:"BimCutscenes"},yf=si.defineComponent({...Wd,props:{text:{type:String,default:"CHBIM云平台"}},setup(w,{expose:l}){const o=si.ref(null),p=()=>{o.value===null&&(o.value=new zd)},d=()=>{p(),o.value.continuation()};return si.onMounted(()=>{p()}),l({continuation:d}),(u,m)=>(si.openBlock(),si.createElementBlock("div",kd,[Bd,Nd,Fd,si.createElementVNode("div",Ud,[si.createElementVNode("figure",Gd,[si.createElementVNode("p",Hd,si.toDisplayString(w.text),1)]),Vd])]))}}),c1="";/*!
|
|
2
2
|
* VERSION: 2.0.2
|
|
3
3
|
* DATE: 2018-08-27
|
|
4
4
|
* UPDATES AND DOCS AT: http://greensock.com
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Club GreenSock members, the software agreement that was issued with your membership.
|
|
11
11
|
*
|
|
12
12
|
* @author: Jack Doyle, jack@greensock.com
|
|
13
|
-
**/var on=typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window;(on._gsQueue||(on._gsQueue=[])).push(function(){on._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(T,$,p){var J=function(b){var A,d=[],g=b.length;for(A=0;A!==g;d.push(b[A++]));return d},G=function(b,A,d){var g,M,x=b.cycle;for(g in x)M=x[g],b[g]=typeof M=="function"?M(d,A[d]):M[d%M.length];delete b.cycle},m=function(b,A,d){p.call(this,b,A,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=m.prototype.render},C=1e-10,O=p._internals,E=O.isSelector,U=O.isArray,Y=m.prototype=p.to({},.1,{}),H=[];m.version="2.0.2",Y.constructor=m,Y.kill()._gc=!1,m.killTweensOf=m.killDelayedCallsTo=p.killTweensOf,m.getTweensOf=p.getTweensOf,m.lagSmoothing=p.lagSmoothing,m.ticker=p.ticker,m.render=p.render,Y.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),p.prototype.invalidate.call(this)},Y.updateTo=function(b,A){var d,g=this.ratio,M=this.vars.immediateRender||b.immediateRender;A&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(d in b)this.vars[d]=b[d];if(this._initted||M){if(A)this._initted=!1,M&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&p._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var x=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(x,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||M)for(var F,z=1/(1-g),W=this._firstPT;W;)F=W.s+W.c,W.c*=z,W.s=F-W.c,W=W._next}return this},Y.render=function(b,A,d){this._initted||this._duration===0&&this.vars.repeat&&this.invalidate();var g,M,x,F,z,W,ht,ft,gt,zt=this._dirty?this.totalDuration():this._totalDuration,lt=this._time,Et=this._totalTime,D=this._cycle,Bt=this._duration,Ct=this._rawPrevTime;if(b>=zt-1e-7&&b>=0?(this._totalTime=zt,this._cycle=this._repeat,this._yoyo&&1&this._cycle?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=Bt,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(g=!0,M="onComplete",d=d||this._timeline.autoRemoveChildren),Bt===0&&(this._initted||!this.vars.lazy||d)&&(this._startTime===this._timeline._duration&&(b=0),(0>Ct||0>=b&&b>=-1e-7||Ct===C&&this.data!=="isPause")&&Ct!==b&&(d=!0,Ct>C&&(M="onReverseComplete")),this._rawPrevTime=ft=!A||b||Ct===b?b:C)):1e-7>b?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(Et!==0||Bt===0&&Ct>0)&&(M="onReverseComplete",g=this._reversed),0>b&&(this._active=!1,Bt===0&&(this._initted||!this.vars.lazy||d)&&(Ct>=0&&(d=!0),this._rawPrevTime=ft=!A||b||Ct===b?b:C)),this._initted||(d=!0)):(this._totalTime=this._time=b,this._repeat!==0&&(F=Bt+this._repeatDelay,this._cycle=this._totalTime/F>>0,this._cycle!==0&&this._cycle===this._totalTime/F&&b>=Et&&this._cycle--,this._time=this._totalTime-this._cycle*F,this._yoyo&&1&this._cycle&&(this._time=Bt-this._time,gt=this._yoyoEase||this.vars.yoyoEase,gt&&(this._yoyoEase||(gt!==!0||this._initted?this._yoyoEase=gt=gt===!0?this._ease:gt instanceof Ease?gt:Ease.map[gt]:(gt=this.vars.ease,this._yoyoEase=gt=gt?gt instanceof Ease?gt:typeof gt=="function"?new Ease(gt,this.vars.easeParams):Ease.map[gt]||p.defaultEase:p.defaultEase)),this.ratio=gt?1-gt.getRatio((Bt-this._time)/Bt):0)),this._time>Bt?this._time=Bt:this._time<0&&(this._time=0)),this._easeType&&!gt?(z=this._time/Bt,W=this._easeType,ht=this._easePower,(W===1||W===3&&z>=.5)&&(z=1-z),W===3&&(z*=2),ht===1?z*=z:ht===2?z*=z*z:ht===3?z*=z*z*z:ht===4&&(z*=z*z*z*z),W===1?this.ratio=1-z:W===2?this.ratio=z:this._time/Bt<.5?this.ratio=z/2:this.ratio=1-z/2):gt||(this.ratio=this._ease.getRatio(this._time/Bt))),lt===this._time&&!d&&D===this._cycle)return void(Et!==this._totalTime&&this._onUpdate&&(A||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!d&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=lt,this._totalTime=Et,this._rawPrevTime=Ct,this._cycle=D,O.lazyTweens.push(this),void(this._lazy=[b,A]);!this._time||g||gt?g&&this._ease._calcEnd&&!gt&&(this.ratio=this._ease.getRatio(this._time===0?0:1)):this.ratio=this._ease.getRatio(this._time/Bt)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==lt&&b>=0&&(this._active=!0),Et===0&&(this._initted===2&&b>0&&this._init(),this._startAt&&(b>=0?this._startAt.render(b,!0,d):M||(M="_dummyGS")),this.vars.onStart&&(this._totalTime!==0||Bt===0)&&(A||this._callback("onStart"))),x=this._firstPT;x;)x.f?x.t[x.p](x.c*this.ratio+x.s):x.t[x.p]=x.c*this.ratio+x.s,x=x._next;this._onUpdate&&(0>b&&this._startAt&&this._startTime&&this._startAt.render(b,!0,d),A||(this._totalTime!==Et||M)&&this._callback("onUpdate")),this._cycle!==D&&(A||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),M&&(!this._gc||d)&&(0>b&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(b,!0,d),g&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!A&&this.vars[M]&&this._callback(M),Bt===0&&this._rawPrevTime===C&&ft!==C&&(this._rawPrevTime=0))},m.to=function(b,A,d){return new m(b,A,d)},m.from=function(b,A,d){return d.runBackwards=!0,d.immediateRender=d.immediateRender!=0,new m(b,A,d)},m.fromTo=function(b,A,d,g){return g.startAt=d,g.immediateRender=g.immediateRender!=0&&d.immediateRender!=0,new m(b,A,g)},m.staggerTo=m.allTo=function(b,A,d,g,M,x,F){g=g||0;var z,W,ht,ft,gt=0,zt=[],lt=function(){d.onComplete&&d.onComplete.apply(d.onCompleteScope||this,arguments),M.apply(F||d.callbackScope||this,x||H)},Et=d.cycle,D=d.startAt&&d.startAt.cycle;for(U(b)||(typeof b=="string"&&(b=p.selector(b)||b),E(b)&&(b=J(b))),b=b||[],0>g&&(b=J(b),b.reverse(),g*=-1),z=b.length-1,ht=0;z>=ht;ht++){W={};for(ft in d)W[ft]=d[ft];if(Et&&(G(W,b,ht),W.duration!=null&&(A=W.duration,delete W.duration)),D){D=W.startAt={};for(ft in d.startAt)D[ft]=d.startAt[ft];G(W.startAt,b,ht)}W.delay=gt+(W.delay||0),ht===z&&M&&(W.onComplete=lt),zt[ht]=new m(b[ht],A,W),gt+=g}return zt},m.staggerFrom=m.allFrom=function(b,A,d,g,M,x,F){return d.runBackwards=!0,d.immediateRender=d.immediateRender!=0,m.staggerTo(b,A,d,g,M,x,F)},m.staggerFromTo=m.allFromTo=function(b,A,d,g,M,x,F,z){return g.startAt=d,g.immediateRender=g.immediateRender!=0&&d.immediateRender!=0,m.staggerTo(b,A,g,M,x,F,z)},m.delayedCall=function(b,A,d,g,M){return new m(A,0,{delay:b,onComplete:A,onCompleteParams:d,callbackScope:g,onReverseComplete:A,onReverseCompleteParams:d,immediateRender:!1,useFrames:M,overwrite:0})},m.set=function(b,A){return new m(b,0,A)},m.isTweening=function(b){return p.getTweensOf(b,!0).length>0};var K=function(b,A){for(var d=[],g=0,M=b._first;M;)M instanceof p?d[g++]=M:(A&&(d[g++]=M),d=d.concat(K(M,A)),g=d.length),M=M._next;return d},B=m.getAllTweens=function(b){return K(T._rootTimeline,b).concat(K(T._rootFramesTimeline,b))};m.killAll=function(b,A,d,g){A==null&&(A=!0),d==null&&(d=!0);var M,x,F,z=B(g!=0),W=z.length,ht=A&&d&&g;for(F=0;W>F;F++)x=z[F],(ht||x instanceof $||(M=x.target===x.vars.onComplete)&&d||A&&!M)&&(b?x.totalTime(x._reversed?0:x.totalDuration()):x._enabled(!1,!1))},m.killChildTweensOf=function(b,A){if(b!=null){var d,g,M,x,F,z=O.tweenLookup;if(typeof b=="string"&&(b=p.selector(b)||b),E(b)&&(b=J(b)),U(b))for(x=b.length;--x>-1;)m.killChildTweensOf(b[x],A);else{d=[];for(M in z)for(g=z[M].target.parentNode;g;)g===b&&(d=d.concat(z[M].tweens)),g=g.parentNode;for(F=d.length,x=0;F>x;x++)A&&d[x].totalTime(d[x].totalDuration()),d[x]._enabled(!1,!1)}}};var q=function(b,A,d,g){A=A!==!1,d=d!==!1,g=g!==!1;for(var M,x,F=B(g),z=A&&d&&g,W=F.length;--W>-1;)x=F[W],(z||x instanceof $||(M=x.target===x.vars.onComplete)&&d||A&&!M)&&x.paused(b)};return m.pauseAll=function(b,A,d){q(!0,b,A,d)},m.resumeAll=function(b,A,d){q(!1,b,A,d)},m.globalTimeScale=function(b){var A=T._rootTimeline,d=p.ticker.time;return arguments.length?(b=b||C,A._startTime=d-(d-A._startTime)*A._timeScale/b,A=T._rootFramesTimeline,d=p.ticker.frame,A._startTime=d-(d-A._startTime)*A._timeScale/b,A._timeScale=T._rootTimeline._timeScale=b,b):A._timeScale},Y.progress=function(b,A){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-b:b)+this._cycle*(this._duration+this._repeatDelay),A):this._time/this.duration()},Y.totalProgress=function(b,A){return arguments.length?this.totalTime(this.totalDuration()*b,A):this._totalTime/this.totalDuration()},Y.time=function(b,A){return arguments.length?(this._dirty&&this.totalDuration(),b>this._duration&&(b=this._duration),this._yoyo&&1&this._cycle?b=this._duration-b+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(b+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(b,A)):this._time},Y.duration=function(b){return arguments.length?T.prototype.duration.call(this,b):this._duration},Y.totalDuration=function(b){return arguments.length?this._repeat===-1?this:this.duration((b-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},Y.repeat=function(b){return arguments.length?(this._repeat=b,this._uncache(!0)):this._repeat},Y.repeatDelay=function(b){return arguments.length?(this._repeatDelay=b,this._uncache(!0)):this._repeatDelay},Y.yoyo=function(b){return arguments.length?(this._yoyo=b,this):this._yoyo},m},!0),on._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(T,$,p){var J=function(d){$.call(this,d),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var g,M,x=this.vars;for(M in x)g=x[M],E(g)&&g.join("").indexOf("{self}")!==-1&&(x[M]=this._swapSelfInParams(g));E(x.tweens)&&this.add(x.tweens,0,x.align,x.stagger)},G=1e-10,m=p._internals,C=J._internals={},O=m.isSelector,E=m.isArray,U=m.lazyTweens,Y=m.lazyRender,H=on._gsDefine.globals,K=function(d){var g,M={};for(g in d)M[g]=d[g];return M},B=function(d,g,M){var x,F,z=d.cycle;for(x in z)F=z[x],d[x]=typeof F=="function"?F(M,g[M]):F[M%F.length];delete d.cycle},q=C.pauseCallback=function(){},b=function(d){var g,M=[],x=d.length;for(g=0;g!==x;M.push(d[g++]));return M},A=J.prototype=new $;return J.version="2.0.2",A.constructor=J,A.kill()._gc=A._forcingPlayhead=A._hasPause=!1,A.to=function(d,g,M,x){var F=M.repeat&&H.TweenMax||p;return g?this.add(new F(d,g,M),x):this.set(d,M,x)},A.from=function(d,g,M,x){return this.add((M.repeat&&H.TweenMax||p).from(d,g,M),x)},A.fromTo=function(d,g,M,x,F){var z=x.repeat&&H.TweenMax||p;return g?this.add(z.fromTo(d,g,M,x),F):this.set(d,x,F)},A.staggerTo=function(d,g,M,x,F,z,W,ht){var ft,gt,zt=new J({onComplete:z,onCompleteParams:W,callbackScope:ht,smoothChildTiming:this.smoothChildTiming}),lt=M.cycle;for(typeof d=="string"&&(d=p.selector(d)||d),d=d||[],O(d)&&(d=b(d)),x=x||0,0>x&&(d=b(d),d.reverse(),x*=-1),gt=0;gt<d.length;gt++)ft=K(M),ft.startAt&&(ft.startAt=K(ft.startAt),ft.startAt.cycle&&B(ft.startAt,d,gt)),lt&&(B(ft,d,gt),ft.duration!=null&&(g=ft.duration,delete ft.duration)),zt.to(d[gt],g,ft,gt*x);return this.add(zt,F)},A.staggerFrom=function(d,g,M,x,F,z,W,ht){return M.immediateRender=M.immediateRender!=0,M.runBackwards=!0,this.staggerTo(d,g,M,x,F,z,W,ht)},A.staggerFromTo=function(d,g,M,x,F,z,W,ht,ft){return x.startAt=M,x.immediateRender=x.immediateRender!=0&&M.immediateRender!=0,this.staggerTo(d,g,x,F,z,W,ht,ft)},A.call=function(d,g,M,x){return this.add(p.delayedCall(0,d,g,M),x)},A.set=function(d,g,M){return M=this._parseTimeOrLabel(M,0,!0),g.immediateRender==null&&(g.immediateRender=M===this._time&&!this._paused),this.add(new p(d,0,g),M)},J.exportRoot=function(d,g){d=d||{},d.smoothChildTiming==null&&(d.smoothChildTiming=!0);var M,x,F,z,W=new J(d),ht=W._timeline;for(g==null&&(g=!0),ht._remove(W,!0),W._startTime=0,W._rawPrevTime=W._time=W._totalTime=ht._time,F=ht._first;F;)z=F._next,g&&F instanceof p&&F.target===F.vars.onComplete||(x=F._startTime-F._delay,0>x&&(M=1),W.add(F,x)),F=z;return ht.add(W,0),M&&W.totalDuration(),W},A.add=function(d,g,M,x){var F,z,W,ht,ft,gt;if(typeof g!="number"&&(g=this._parseTimeOrLabel(g,0,!0,d)),!(d instanceof T)){if(d instanceof Array||d&&d.push&&E(d)){for(M=M||"normal",x=x||0,F=g,z=d.length,W=0;z>W;W++)E(ht=d[W])&&(ht=new J({tweens:ht})),this.add(ht,F),typeof ht!="string"&&typeof ht!="function"&&(M==="sequence"?F=ht._startTime+ht.totalDuration()/ht._timeScale:M==="start"&&(ht._startTime-=ht.delay())),F+=x;return this._uncache(!0)}if(typeof d=="string")return this.addLabel(d,g);if(typeof d!="function")throw"Cannot add "+d+" into the timeline; it is not a tween, timeline, function, or string.";d=p.delayedCall(0,d)}if($.prototype.add.call(this,d,g),d._time&&(F=Math.max(0,Math.min(d.totalDuration(),(this.rawTime()-d._startTime)*d._timeScale)),Math.abs(F-d._totalTime)>1e-5&&d.render(F,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(ft=this,gt=ft.rawTime()>d._startTime;ft._timeline;)gt&&ft._timeline.smoothChildTiming?ft.totalTime(ft._totalTime,!0):ft._gc&&ft._enabled(!0,!1),ft=ft._timeline;return this},A.remove=function(d){if(d instanceof T){this._remove(d,!1);var g=d._timeline=d.vars.useFrames?T._rootFramesTimeline:T._rootTimeline;return d._startTime=(d._paused?d._pauseTime:g._time)-(d._reversed?d.totalDuration()-d._totalTime:d._totalTime)/d._timeScale,this}if(d instanceof Array||d&&d.push&&E(d)){for(var M=d.length;--M>-1;)this.remove(d[M]);return this}return typeof d=="string"?this.removeLabel(d):this.kill(null,d)},A._remove=function(d,g){$.prototype._remove.call(this,d,g);var M=this._last;return M?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},A.append=function(d,g){return this.add(d,this._parseTimeOrLabel(null,g,!0,d))},A.insert=A.insertMultiple=function(d,g,M,x){return this.add(d,g||0,M,x)},A.appendMultiple=function(d,g,M,x){return this.add(d,this._parseTimeOrLabel(null,g,!0,d),M,x)},A.addLabel=function(d,g){return this._labels[d]=this._parseTimeOrLabel(g),this},A.addPause=function(d,g,M,x){var F=p.delayedCall(0,q,M,x||this);return F.vars.onComplete=F.vars.onReverseComplete=g,F.data="isPause",this._hasPause=!0,this.add(F,d)},A.removeLabel=function(d){return delete this._labels[d],this},A.getLabelTime=function(d){return this._labels[d]!=null?this._labels[d]:-1},A._parseTimeOrLabel=function(d,g,M,x){var F,z;if(x instanceof T&&x.timeline===this)this.remove(x);else if(x&&(x instanceof Array||x.push&&E(x)))for(z=x.length;--z>-1;)x[z]instanceof T&&x[z].timeline===this&&this.remove(x[z]);if(F=typeof d!="number"||g?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,typeof g=="string")return this._parseTimeOrLabel(g,M&&typeof d=="number"&&this._labels[g]==null?d-F:0,M);if(g=g||0,typeof d!="string"||!isNaN(d)&&this._labels[d]==null)d==null&&(d=F);else{if(z=d.indexOf("="),z===-1)return this._labels[d]==null?M?this._labels[d]=F+g:g:this._labels[d]+g;g=parseInt(d.charAt(z-1)+"1",10)*Number(d.substr(z+1)),d=z>1?this._parseTimeOrLabel(d.substr(0,z-1),0,M):F}return Number(d)+g},A.seek=function(d,g){return this.totalTime(typeof d=="number"?d:this._parseTimeOrLabel(d),g!==!1)},A.stop=function(){return this.paused(!0)},A.gotoAndPlay=function(d,g){return this.play(d,g)},A.gotoAndStop=function(d,g){return this.pause(d,g)},A.render=function(d,g,M){this._gc&&this._enabled(!0,!1);var x,F,z,W,ht,ft,gt,zt=this._time,lt=this._dirty?this.totalDuration():this._totalDuration,Et=this._startTime,D=this._timeScale,Bt=this._paused;if(zt!==this._time&&(d+=this._time-zt),d>=lt-1e-7&&d>=0)this._totalTime=this._time=lt,this._reversed||this._hasPausedChild()||(F=!0,W="onComplete",ht=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=d&&d>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===G)&&this._rawPrevTime!==d&&this._first&&(ht=!0,this._rawPrevTime>G&&(W="onReverseComplete"))),this._rawPrevTime=this._duration||!g||d||this._rawPrevTime===d?d:G,d=lt+1e-4;else if(1e-7>d)if(this._totalTime=this._time=0,(zt!==0||this._duration===0&&this._rawPrevTime!==G&&(this._rawPrevTime>0||0>d&&this._rawPrevTime>=0))&&(W="onReverseComplete",F=this._reversed),0>d)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(ht=F=!0,W="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(ht=!0),this._rawPrevTime=d;else{if(this._rawPrevTime=this._duration||!g||d||this._rawPrevTime===d?d:G,d===0&&F)for(x=this._first;x&&x._startTime===0;)x._duration||(F=!1),x=x._next;d=0,this._initted||(ht=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!g){if(d>=zt)for(x=this._first;x&&x._startTime<=d&&!ft;)x._duration||x.data!=="isPause"||x.ratio||x._startTime===0&&this._rawPrevTime===0||(ft=x),x=x._next;else for(x=this._last;x&&x._startTime>=d&&!ft;)x._duration||x.data==="isPause"&&x._rawPrevTime>0&&(ft=x),x=x._prev;ft&&(this._time=d=ft._startTime,this._totalTime=d+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=d}if(this._time!==zt&&this._first||M||ht||ft){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==zt&&d>0&&(this._active=!0),zt===0&&this.vars.onStart&&(this._time===0&&this._duration||g||this._callback("onStart")),gt=this._time,gt>=zt)for(x=this._first;x&&(z=x._next,gt===this._time&&(!this._paused||Bt));)(x._active||x._startTime<=gt&&!x._paused&&!x._gc)&&(ft===x&&this.pause(),x._reversed?x.render((x._dirty?x.totalDuration():x._totalDuration)-(d-x._startTime)*x._timeScale,g,M):x.render((d-x._startTime)*x._timeScale,g,M)),x=z;else for(x=this._last;x&&(z=x._prev,gt===this._time&&(!this._paused||Bt));){if(x._active||x._startTime<=zt&&!x._paused&&!x._gc){if(ft===x){for(ft=x._prev;ft&&ft.endTime()>this._time;)ft.render(ft._reversed?ft.totalDuration()-(d-ft._startTime)*ft._timeScale:(d-ft._startTime)*ft._timeScale,g,M),ft=ft._prev;ft=null,this.pause()}x._reversed?x.render((x._dirty?x.totalDuration():x._totalDuration)-(d-x._startTime)*x._timeScale,g,M):x.render((d-x._startTime)*x._timeScale,g,M)}x=z}this._onUpdate&&(g||(U.length&&Y(),this._callback("onUpdate"))),W&&(this._gc||(Et===this._startTime||D!==this._timeScale)&&(this._time===0||lt>=this.totalDuration())&&(F&&(U.length&&Y(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!g&&this.vars[W]&&this._callback(W)))}},A._hasPausedChild=function(){for(var d=this._first;d;){if(d._paused||d instanceof J&&d._hasPausedChild())return!0;d=d._next}return!1},A.getChildren=function(d,g,M,x){x=x||-9999999999;for(var F=[],z=this._first,W=0;z;)z._startTime<x||(z instanceof p?g!==!1&&(F[W++]=z):(M!==!1&&(F[W++]=z),d!==!1&&(F=F.concat(z.getChildren(!0,g,M)),W=F.length))),z=z._next;return F},A.getTweensOf=function(d,g){var M,x,F=this._gc,z=[],W=0;for(F&&this._enabled(!0,!0),M=p.getTweensOf(d),x=M.length;--x>-1;)(M[x].timeline===this||g&&this._contains(M[x]))&&(z[W++]=M[x]);return F&&this._enabled(!1,!0),z},A.recent=function(){return this._recent},A._contains=function(d){for(var g=d.timeline;g;){if(g===this)return!0;g=g.timeline}return!1},A.shiftChildren=function(d,g,M){M=M||0;for(var x,F=this._first,z=this._labels;F;)F._startTime>=M&&(F._startTime+=d),F=F._next;if(g)for(x in z)z[x]>=M&&(z[x]+=d);return this._uncache(!0)},A._kill=function(d,g){if(!d&&!g)return this._enabled(!1,!1);for(var M=g?this.getTweensOf(g):this.getChildren(!0,!0,!1),x=M.length,F=!1;--x>-1;)M[x]._kill(d,g)&&(F=!0);return F},A.clear=function(d){var g=this.getChildren(!1,!0,!0),M=g.length;for(this._time=this._totalTime=0;--M>-1;)g[M]._enabled(!1,!1);return d!==!1&&(this._labels={}),this._uncache(!0)},A.invalidate=function(){for(var d=this._first;d;)d.invalidate(),d=d._next;return T.prototype.invalidate.call(this)},A._enabled=function(d,g){if(d===this._gc)for(var M=this._first;M;)M._enabled(d,!0),M=M._next;return $.prototype._enabled.call(this,d,g)},A.totalTime=function(d,g,M){this._forcingPlayhead=!0;var x=T.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,x},A.duration=function(d){return arguments.length?(this.duration()!==0&&d!==0&&this.timeScale(this._duration/d),this):(this._dirty&&this.totalDuration(),this._duration)},A.totalDuration=function(d){if(!arguments.length){if(this._dirty){for(var g,M,x=0,F=this._last,z=999999999999;F;)g=F._prev,F._dirty&&F.totalDuration(),F._startTime>z&&this._sortChildren&&!F._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(F,F._startTime-F._delay),this._calculatingDuration=0):z=F._startTime,F._startTime<0&&!F._paused&&(x-=F._startTime,this._timeline.smoothChildTiming&&(this._startTime+=F._startTime/this._timeScale,this._time-=F._startTime,this._totalTime-=F._startTime,this._rawPrevTime-=F._startTime),this.shiftChildren(-F._startTime,!1,-9999999999),z=0),M=F._startTime+F._totalDuration/F._timeScale,M>x&&(x=M),F=g;this._duration=this._totalDuration=x,this._dirty=!1}return this._totalDuration}return d&&this.totalDuration()?this.timeScale(this._totalDuration/d):this},A.paused=function(d){if(!d)for(var g=this._first,M=this._time;g;)g._startTime===M&&g.data==="isPause"&&(g._rawPrevTime=0),g=g._next;return T.prototype.paused.apply(this,arguments)},A.usesFrames=function(){for(var d=this._timeline;d._timeline;)d=d._timeline;return d===T._rootFramesTimeline},A.rawTime=function(d){return d&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(d)-this._startTime)*this._timeScale},J},!0),on._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(T,$,p){var J=function(H){T.call(this,H),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},G=1e-10,m=$._internals,C=m.lazyTweens,O=m.lazyRender,E=on._gsDefine.globals,U=new p(null,null,1,0),Y=J.prototype=new T;return Y.constructor=J,Y.kill()._gc=!1,J.version="2.0.2",Y.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),T.prototype.invalidate.call(this)},Y.addCallback=function(H,K,B,q){return this.add($.delayedCall(0,H,B,q),K)},Y.removeCallback=function(H,K){if(H)if(K==null)this._kill(null,H);else for(var B=this.getTweensOf(H,!1),q=B.length,b=this._parseTimeOrLabel(K);--q>-1;)B[q]._startTime===b&&B[q]._enabled(!1,!1);return this},Y.removePause=function(H){return this.removeCallback(T._internals.pauseCallback,H)},Y.tweenTo=function(H,K){K=K||{};var B,q,b,A={ease:U,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},d=K.repeat&&E.TweenMax||$;for(q in K)A[q]=K[q];return A.time=this._parseTimeOrLabel(H),B=Math.abs(Number(A.time)-this._time)/this._timeScale||.001,b=new d(this,B,A),A.onStart=function(){b.target.paused(!0),b.vars.time===b.target.time()||B!==b.duration()||b.isFromTo||b.duration(Math.abs(b.vars.time-b.target.time())/b.target._timeScale).render(b.time(),!0,!0),K.onStart&&K.onStart.apply(K.onStartScope||K.callbackScope||b,K.onStartParams||[])},b},Y.tweenFromTo=function(H,K,B){B=B||{},H=this._parseTimeOrLabel(H),B.startAt={onComplete:this.seek,onCompleteParams:[H],callbackScope:this},B.immediateRender=B.immediateRender!==!1;var q=this.tweenTo(K,B);return q.isFromTo=1,q.duration(Math.abs(q.vars.time-H)/this._timeScale||.001)},Y.render=function(H,K,B){this._gc&&this._enabled(!0,!1);var q,b,A,d,g,M,x,F,z=this._time,W=this._dirty?this.totalDuration():this._totalDuration,ht=this._duration,ft=this._totalTime,gt=this._startTime,zt=this._timeScale,lt=this._rawPrevTime,Et=this._paused,D=this._cycle;if(z!==this._time&&(H+=this._time-z),H>=W-1e-7&&H>=0)this._locked||(this._totalTime=W,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(b=!0,d="onComplete",g=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=H&&H>=-1e-7||0>lt||lt===G)&<!==H&&this._first&&(g=!0,lt>G&&(d="onReverseComplete"))),this._rawPrevTime=this._duration||!K||H||this._rawPrevTime===H?H:G,this._yoyo&&1&this._cycle?this._time=H=0:(this._time=ht,H=ht+1e-4);else if(1e-7>H)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(z!==0||ht===0&<!==G&&(lt>0||0>H&<>=0)&&!this._locked)&&(d="onReverseComplete",b=this._reversed),0>H)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(g=b=!0,d="onReverseComplete"):lt>=0&&this._first&&(g=!0),this._rawPrevTime=H;else{if(this._rawPrevTime=ht||!K||H||this._rawPrevTime===H?H:G,H===0&&b)for(q=this._first;q&&q._startTime===0;)q._duration||(b=!1),q=q._next;H=0,this._initted||(g=!0)}else if(ht===0&&0>lt&&(g=!0),this._time=this._rawPrevTime=H,this._locked||(this._totalTime=H,this._repeat!==0&&(M=ht+this._repeatDelay,this._cycle=this._totalTime/M>>0,this._cycle!==0&&this._cycle===this._totalTime/M&&H>=ft&&this._cycle--,this._time=this._totalTime-this._cycle*M,this._yoyo&&1&this._cycle&&(this._time=ht-this._time),this._time>ht?(this._time=ht,H=ht+1e-4):this._time<0?this._time=H=0:H=this._time)),this._hasPause&&!this._forcingPlayhead&&!K){if(H=this._time,H>=z||this._repeat&&D!==this._cycle)for(q=this._first;q&&q._startTime<=H&&!x;)q._duration||q.data!=="isPause"||q.ratio||q._startTime===0&&this._rawPrevTime===0||(x=q),q=q._next;else for(q=this._last;q&&q._startTime>=H&&!x;)q._duration||q.data==="isPause"&&q._rawPrevTime>0&&(x=q),q=q._prev;x&&x._startTime<ht&&(this._time=H=x._startTime,this._totalTime=H+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==D&&!this._locked){var Bt=this._yoyo&&(1&D)!==0,Ct=Bt===(this._yoyo&&(1&this._cycle)!==0),Rt=this._totalTime,ge=this._cycle,ue=this._rawPrevTime,Ft=this._time;if(this._totalTime=D*ht,this._cycle<D?Bt=!Bt:this._totalTime+=ht,this._time=z,this._rawPrevTime=ht===0?lt-1e-4:lt,this._cycle=D,this._locked=!0,z=Bt?0:ht,this.render(z,K,ht===0),K||this._gc||this.vars.onRepeat&&(this._cycle=ge,this._locked=!1,this._callback("onRepeat")),z!==this._time||(Ct&&(this._cycle=D,this._locked=!0,z=Bt?ht+1e-4:-1e-4,this.render(z,!0,!1)),this._locked=!1,this._paused&&!Et))return;this._time=Ft,this._totalTime=Rt,this._cycle=ge,this._rawPrevTime=ue}if(!(this._time!==z&&this._first||B||g||x))return void(ft!==this._totalTime&&this._onUpdate&&(K||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==ft&&H>0&&(this._active=!0),ft===0&&this.vars.onStart&&(this._totalTime===0&&this._totalDuration||K||this._callback("onStart")),F=this._time,F>=z)for(q=this._first;q&&(A=q._next,F===this._time&&(!this._paused||Et));)(q._active||q._startTime<=this._time&&!q._paused&&!q._gc)&&(x===q&&this.pause(),q._reversed?q.render((q._dirty?q.totalDuration():q._totalDuration)-(H-q._startTime)*q._timeScale,K,B):q.render((H-q._startTime)*q._timeScale,K,B)),q=A;else for(q=this._last;q&&(A=q._prev,F===this._time&&(!this._paused||Et));){if(q._active||q._startTime<=z&&!q._paused&&!q._gc){if(x===q){for(x=q._prev;x&&x.endTime()>this._time;)x.render(x._reversed?x.totalDuration()-(H-x._startTime)*x._timeScale:(H-x._startTime)*x._timeScale,K,B),x=x._prev;x=null,this.pause()}q._reversed?q.render((q._dirty?q.totalDuration():q._totalDuration)-(H-q._startTime)*q._timeScale,K,B):q.render((H-q._startTime)*q._timeScale,K,B)}q=A}this._onUpdate&&(K||(C.length&&O(),this._callback("onUpdate"))),d&&(this._locked||this._gc||(gt===this._startTime||zt!==this._timeScale)&&(this._time===0||W>=this.totalDuration())&&(b&&(C.length&&O(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!K&&this.vars[d]&&this._callback(d)))},Y.getActive=function(H,K,B){H==null&&(H=!0),K==null&&(K=!0),B==null&&(B=!1);var q,b,A=[],d=this.getChildren(H,K,B),g=0,M=d.length;for(q=0;M>q;q++)b=d[q],b.isActive()&&(A[g++]=b);return A},Y.getLabelAfter=function(H){H||H!==0&&(H=this._time);var K,B=this.getLabelsArray(),q=B.length;for(K=0;q>K;K++)if(B[K].time>H)return B[K].name;return null},Y.getLabelBefore=function(H){H==null&&(H=this._time);for(var K=this.getLabelsArray(),B=K.length;--B>-1;)if(K[B].time<H)return K[B].name;return null},Y.getLabelsArray=function(){var H,K=[],B=0;for(H in this._labels)K[B++]={time:this._labels[H],name:H};return K.sort(function(q,b){return q.time-b.time}),K},Y.invalidate=function(){return this._locked=!1,T.prototype.invalidate.call(this)},Y.progress=function(H,K){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-H:H)+this._cycle*(this._duration+this._repeatDelay),K):this._time/this.duration()||0},Y.totalProgress=function(H,K){return arguments.length?this.totalTime(this.totalDuration()*H,K):this._totalTime/this.totalDuration()||0},Y.totalDuration=function(H){return arguments.length?this._repeat!==-1&&H?this.timeScale(this.totalDuration()/H):this:(this._dirty&&(T.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},Y.time=function(H,K){return arguments.length?(this._dirty&&this.totalDuration(),H>this._duration&&(H=this._duration),this._yoyo&&1&this._cycle?H=this._duration-H+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(H+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(H,K)):this._time},Y.repeat=function(H){return arguments.length?(this._repeat=H,this._uncache(!0)):this._repeat},Y.repeatDelay=function(H){return arguments.length?(this._repeatDelay=H,this._uncache(!0)):this._repeatDelay},Y.yoyo=function(H){return arguments.length?(this._yoyo=H,this):this._yoyo},Y.currentLabel=function(H){return arguments.length?this.seek(H,!0):this.getLabelBefore(this._time+1e-8)},J},!0),function(){var T=180/Math.PI,$=[],p=[],J=[],G={},m=on._gsDefine.globals,C=function(d,g,M,x){M===x&&(M=x-(x-g)/1e6),d===g&&(g=d+(M-d)/1e6),this.a=d,this.b=g,this.c=M,this.d=x,this.da=x-d,this.ca=M-d,this.ba=g-d},O=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",E=function(d,g,M,x){var F={a:d},z={},W={},ht={c:x},ft=(d+g)/2,gt=(g+M)/2,zt=(M+x)/2,lt=(ft+gt)/2,Et=(gt+zt)/2,D=(Et-lt)/8;return F.b=ft+(d-ft)/4,z.b=lt+D,F.c=z.a=(F.b+z.b)/2,z.c=W.a=(lt+Et)/2,W.b=Et-D,ht.b=zt+(x-zt)/4,W.c=ht.a=(W.b+ht.b)/2,[F,z,W,ht]},U=function(d,g,M,x,F){var z,W,ht,ft,gt,zt,lt,Et,D,Bt,Ct,Rt,ge,ue=d.length-1,Ft=0,Dt=d[0].a;for(z=0;ue>z;z++)gt=d[Ft],W=gt.a,ht=gt.d,ft=d[Ft+1].d,F?(Ct=$[z],Rt=p[z],ge=(Rt+Ct)*g*.25/(x?.5:J[z]||.5),zt=ht-(ht-W)*(x?.5*g:Ct!==0?ge/Ct:0),lt=ht+(ft-ht)*(x?.5*g:Rt!==0?ge/Rt:0),Et=ht-(zt+((lt-zt)*(3*Ct/(Ct+Rt)+.5)/4||0))):(zt=ht-(ht-W)*g*.5,lt=ht+(ft-ht)*g*.5,Et=ht-(zt+lt)/2),zt+=Et,lt+=Et,gt.c=D=zt,z!==0?gt.b=Dt:gt.b=Dt=gt.a+.6*(gt.c-gt.a),gt.da=ht-W,gt.ca=D-W,gt.ba=Dt-W,M?(Bt=E(W,Dt,D,ht),d.splice(Ft,1,Bt[0],Bt[1],Bt[2],Bt[3]),Ft+=4):Ft++,Dt=lt;gt=d[Ft],gt.b=Dt,gt.c=Dt+.4*(gt.d-Dt),gt.da=gt.d-gt.a,gt.ca=gt.c-gt.a,gt.ba=Dt-gt.a,M&&(Bt=E(gt.a,Dt,gt.c,gt.d),d.splice(Ft,1,Bt[0],Bt[1],Bt[2],Bt[3]))},Y=function(d,g,M,x){var F,z,W,ht,ft,gt,zt=[];if(x)for(d=[x].concat(d),z=d.length;--z>-1;)typeof(gt=d[z][g])=="string"&>.charAt(1)==="="&&(d[z][g]=x[g]+Number(gt.charAt(0)+gt.substr(2)));if(F=d.length-2,0>F)return zt[0]=new C(d[0][g],0,0,d[0][g]),zt;for(z=0;F>z;z++)W=d[z][g],ht=d[z+1][g],zt[z]=new C(W,0,0,ht),M&&(ft=d[z+2][g],$[z]=($[z]||0)+(ht-W)*(ht-W),p[z]=(p[z]||0)+(ft-ht)*(ft-ht));return zt[z]=new C(d[z][g],0,0,d[z+1][g]),zt},H=function(d,g,M,x,F,z){var W,ht,ft,gt,zt,lt,Et,D,Bt={},Ct=[],Rt=z||d[0];F=typeof F=="string"?","+F+",":O,g==null&&(g=1);for(ht in d[0])Ct.push(ht);if(d.length>1){for(D=d[d.length-1],Et=!0,W=Ct.length;--W>-1;)if(ht=Ct[W],Math.abs(Rt[ht]-D[ht])>.05){Et=!1;break}Et&&(d=d.concat(),z&&d.unshift(z),d.push(d[1]),z=d[d.length-3])}for($.length=p.length=J.length=0,W=Ct.length;--W>-1;)ht=Ct[W],G[ht]=F.indexOf(","+ht+",")!==-1,Bt[ht]=Y(d,ht,G[ht],z);for(W=$.length;--W>-1;)$[W]=Math.sqrt($[W]),p[W]=Math.sqrt(p[W]);if(!x){for(W=Ct.length;--W>-1;)if(G[ht])for(ft=Bt[Ct[W]],lt=ft.length-1,gt=0;lt>gt;gt++)zt=ft[gt+1].da/p[gt]+ft[gt].da/$[gt]||0,J[gt]=(J[gt]||0)+zt*zt;for(W=J.length;--W>-1;)J[W]=Math.sqrt(J[W])}for(W=Ct.length,gt=M?4:1;--W>-1;)ht=Ct[W],ft=Bt[ht],U(ft,g,M,x,G[ht]),Et&&(ft.splice(0,gt),ft.splice(ft.length-gt,gt));return Bt},K=function(d,g,M){g=g||"soft";var x,F,z,W,ht,ft,gt,zt,lt,Et,D,Bt={},Ct=g==="cubic"?3:2,Rt=g==="soft",ge=[];if(Rt&&M&&(d=[M].concat(d)),d==null||d.length<Ct+1)throw"invalid Bezier data";for(lt in d[0])ge.push(lt);for(ft=ge.length;--ft>-1;){for(lt=ge[ft],Bt[lt]=ht=[],Et=0,zt=d.length,gt=0;zt>gt;gt++)x=M==null?d[gt][lt]:typeof(D=d[gt][lt])=="string"&&D.charAt(1)==="="?M[lt]+Number(D.charAt(0)+D.substr(2)):Number(D),Rt&>>1&&zt-1>gt&&(ht[Et++]=(x+ht[Et-2])/2),ht[Et++]=x;for(zt=Et-Ct+1,Et=0,gt=0;zt>gt;gt+=Ct)x=ht[gt],F=ht[gt+1],z=ht[gt+2],W=Ct===2?0:ht[gt+3],ht[Et++]=D=Ct===3?new C(x,F,z,W):new C(x,(2*F+x)/3,(2*F+z)/3,z);ht.length=Et}return Bt},B=function(d,g,M){for(var x,F,z,W,ht,ft,gt,zt,lt,Et,D,Bt=1/M,Ct=d.length;--Ct>-1;)for(Et=d[Ct],z=Et.a,W=Et.d-z,ht=Et.c-z,ft=Et.b-z,x=F=0,zt=1;M>=zt;zt++)gt=Bt*zt,lt=1-gt,x=F-(F=(gt*gt*W+3*lt*(gt*ht+lt*ft))*gt),D=Ct*M+zt-1,g[D]=(g[D]||0)+x*x},q=function(d,g){g=g>>0||6;var M,x,F,z,W=[],ht=[],ft=0,gt=0,zt=g-1,lt=[],Et=[];for(M in d)B(d[M],W,g);for(F=W.length,x=0;F>x;x++)ft+=Math.sqrt(W[x]),z=x%g,Et[z]=ft,z===zt&&(gt+=ft,z=x/g>>0,lt[z]=Et,ht[z]=gt,ft=0,Et=[]);return{length:gt,lengths:ht,segments:lt}},b=on._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(d,g,M){this._target=d,g instanceof Array&&(g={values:g}),this._func={},this._mod={},this._props=[],this._timeRes=g.timeResolution==null?6:parseInt(g.timeResolution,10);var x,F,z,W,ht,ft=g.values||[],gt={},zt=ft[0],lt=g.autoRotate||M.vars.orientToBezier;this._autoRotate=lt?lt instanceof Array?lt:[["x","y","rotation",lt===!0?0:Number(lt)||0]]:null;for(x in zt)this._props.push(x);for(z=this._props.length;--z>-1;)x=this._props[z],this._overwriteProps.push(x),F=this._func[x]=typeof d[x]=="function",gt[x]=F?d[x.indexOf("set")||typeof d["get"+x.substr(3)]!="function"?x:"get"+x.substr(3)]():parseFloat(d[x]),ht||gt[x]!==ft[0][x]&&(ht=gt);if(this._beziers=g.type!=="cubic"&&g.type!=="quadratic"&&g.type!=="soft"?H(ft,isNaN(g.curviness)?1:g.curviness,!1,g.type==="thruBasic",g.correlate,ht):K(ft,g.type,gt),this._segCount=this._beziers[x].length,this._timeRes){var Et=q(this._beziers,this._timeRes);this._length=Et.length,this._lengths=Et.lengths,this._segments=Et.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(lt=this._autoRotate)for(this._initialRotations=[],lt[0]instanceof Array||(this._autoRotate=lt=[lt]),z=lt.length;--z>-1;){for(W=0;3>W;W++)x=lt[z][W],this._func[x]=typeof d[x]=="function"?d[x.indexOf("set")||typeof d["get"+x.substr(3)]!="function"?x:"get"+x.substr(3)]:!1;x=lt[z][2],this._initialRotations[z]=(this._func[x]?this._func[x].call(this._target):this._target[x])||0,this._overwriteProps.push(x)}return this._startRatio=M.vars.runBackwards?1:0,!0},set:function(d){var g,M,x,F,z,W,ht,ft,gt,zt,lt=this._segCount,Et=this._func,D=this._target,Bt=d!==this._startRatio;if(this._timeRes){if(gt=this._lengths,zt=this._curSeg,d*=this._length,x=this._li,d>this._l2&<-1>x){for(ft=lt-1;ft>x&&(this._l2=gt[++x])<=d;);this._l1=gt[x-1],this._li=x,this._curSeg=zt=this._segments[x],this._s2=zt[this._s1=this._si=0]}else if(d<this._l1&&x>0){for(;x>0&&(this._l1=gt[--x])>=d;);x===0&&d<this._l1?this._l1=0:x++,this._l2=gt[x],this._li=x,this._curSeg=zt=this._segments[x],this._s1=zt[(this._si=zt.length-1)-1]||0,this._s2=zt[this._si]}if(g=x,d-=this._l1,x=this._si,d>this._s2&&x<zt.length-1){for(ft=zt.length-1;ft>x&&(this._s2=zt[++x])<=d;);this._s1=zt[x-1],this._si=x}else if(d<this._s1&&x>0){for(;x>0&&(this._s1=zt[--x])>=d;);x===0&&d<this._s1?this._s1=0:x++,this._s2=zt[x],this._si=x}W=(x+(d-this._s1)/(this._s2-this._s1))*this._prec||0}else g=0>d?0:d>=1?lt-1:lt*d>>0,W=(d-g*(1/lt))*lt;for(M=1-W,x=this._props.length;--x>-1;)F=this._props[x],z=this._beziers[F][g],ht=(W*W*z.da+3*M*(W*z.ca+M*z.ba))*W+z.a,this._mod[F]&&(ht=this._mod[F](ht,D)),Et[F]?D[F](ht):D[F]=ht;if(this._autoRotate){var Ct,Rt,ge,ue,Ft,Dt,kt,Fe=this._autoRotate;for(x=Fe.length;--x>-1;)F=Fe[x][2],Dt=Fe[x][3]||0,kt=Fe[x][4]===!0?1:T,z=this._beziers[Fe[x][0]],Ct=this._beziers[Fe[x][1]],z&&Ct&&(z=z[g],Ct=Ct[g],Rt=z.a+(z.b-z.a)*W,ue=z.b+(z.c-z.b)*W,Rt+=(ue-Rt)*W,ue+=(z.c+(z.d-z.c)*W-ue)*W,ge=Ct.a+(Ct.b-Ct.a)*W,Ft=Ct.b+(Ct.c-Ct.b)*W,ge+=(Ft-ge)*W,Ft+=(Ct.c+(Ct.d-Ct.c)*W-Ft)*W,ht=Bt?Math.atan2(Ft-ge,ue-Rt)*kt+Dt:this._initialRotations[x],this._mod[F]&&(ht=this._mod[F](ht,D)),Et[F]?D[F](ht):D[F]=ht)}}}),A=b.prototype;b.bezierThrough=H,b.cubicToQuadratic=E,b._autoCSS=!0,b.quadraticToCubic=function(d,g,M){return new C(d,(2*g+d)/3,(2*g+M)/3,M)},b._cssRegister=function(){var d=m.CSSPlugin;if(d){var g=d._internals,M=g._parseToProxy,x=g._setPluginRatio,F=g.CSSPropTween;g._registerComplexSpecialProp("bezier",{parser:function(z,W,ht,ft,gt,zt){W instanceof Array&&(W={values:W}),zt=new b;var lt,Et,D,Bt=W.values,Ct=Bt.length-1,Rt=[],ge={};if(0>Ct)return gt;for(lt=0;Ct>=lt;lt++)D=M(z,Bt[lt],ft,gt,zt,Ct!==lt),Rt[lt]=D.end;for(Et in W)ge[Et]=W[Et];return ge.values=Rt,gt=new F(z,"bezier",0,0,D.pt,2),gt.data=D,gt.plugin=zt,gt.setRatio=x,ge.autoRotate===0&&(ge.autoRotate=!0),!ge.autoRotate||ge.autoRotate instanceof Array||(lt=ge.autoRotate===!0?0:Number(ge.autoRotate),ge.autoRotate=D.end.left!=null?[["left","top","rotation",lt,!1]]:D.end.x!=null?[["x","y","rotation",lt,!1]]:!1),ge.autoRotate&&(ft._transform||ft._enableTransforms(!1),D.autoRotate=ft._target._gsTransform,D.proxy.rotation=D.autoRotate.rotation||0,ft._overwriteProps.push("rotation")),zt._onInitTween(D.proxy,ge,ft._tween),gt}})}},A._mod=function(d){for(var g,M=this._overwriteProps,x=M.length;--x>-1;)g=d[M[x]],g&&typeof g=="function"&&(this._mod[M[x]]=g)},A._kill=function(d){var g,M,x=this._props;for(g in this._beziers)if(g in d)for(delete this._beziers[g],delete this._func[g],M=x.length;--M>-1;)x[M]===g&&x.splice(M,1);if(x=this._autoRotate)for(M=x.length;--M>-1;)d[x[M][2]]&&x.splice(M,1);return this._super._kill.call(this,d)}}(),on._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(T,$){var p,J,G,m,C=function(){T.call(this,"css"),this._overwriteProps.length=0,this.setRatio=C.prototype.setRatio},O=on._gsDefine.globals,E={},U=C.prototype=new T("css");U.constructor=C,C.version="2.0.2",C.API=2,C.defaultTransformPerspective=0,C.defaultSkewType="compensated",C.defaultSmoothOrigin=!0,U="px",C.suffixMap={top:U,right:U,bottom:U,left:U,width:U,height:U,fontSize:U,padding:U,margin:U,perspective:U,lineHeight:""};var Y,H,K,B,q,b,A,d,g=/(?:\-|\.|\b)(\d|\.|e\-)+/g,M=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,x=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,F=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,z=/(?:\d|\-|\+|=|#|\.)*/g,W=/opacity *= *([^)]*)/i,ht=/opacity:([^;]*)/i,ft=/alpha\(opacity *=.+?\)/i,gt=/^(rgb|hsl)/,zt=/([A-Z])/g,lt=/-([a-z])/gi,Et=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,D=function(L,Z){return Z.toUpperCase()},Bt=/(?:Left|Right|Width)/i,Ct=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,Rt=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,ge=/,(?=[^\)]*(?:\(|$))/gi,ue=/[\s,\(]/i,Ft=Math.PI/180,Dt=180/Math.PI,kt={},Fe={style:{}},xe=on.document||{createElement:function(){return Fe}},Zt=function(L,Z){return xe.createElementNS?xe.createElementNS(Z||"http://www.w3.org/1999/xhtml",L):xe.createElement(L)},ti=Zt("div"),ki=Zt("img"),Ie=C._internals={_specialProps:E},Ge=(on.navigator||{}).userAgent||"",di=function(){var L=Ge.indexOf("Android"),Z=Zt("a");return K=Ge.indexOf("Safari")!==-1&&Ge.indexOf("Chrome")===-1&&(L===-1||parseFloat(Ge.substr(L+8,2))>3),q=K&&parseFloat(Ge.substr(Ge.indexOf("Version/")+8,2))<6,B=Ge.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Ge)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Ge))&&(b=parseFloat(RegExp.$1)),Z?(Z.style.cssText="top:1px;opacity:.55;",/^0.55/.test(Z.style.opacity)):!1}(),Ri=function(L){return W.test(typeof L=="string"?L:(L.currentStyle?L.currentStyle.filter:L.style.filter)||"")?parseFloat(RegExp.$1)/100:1},hn=function(L){on.console&&console.log(L)},Ji="",R="",Jt=function(L,Z){Z=Z||ti;var ot,rt,I=Z.style;if(I[L]!==void 0)return L;for(L=L.charAt(0).toUpperCase()+L.substr(1),ot=["O","Moz","ms","Ms","Webkit"],rt=5;--rt>-1&&I[ot[rt]+L]===void 0;);return rt>=0?(R=rt===3?"ms":ot[rt],Ji="-"+R.toLowerCase()+"-",R+L):null},jt=(typeof window<"u"?window:xe.defaultView||{getComputedStyle:function(){}}).getComputedStyle,ct=C.getStyle=function(L,Z,ot,rt,I){var Mt;return di||Z!=="opacity"?(!rt&&L.style[Z]?Mt=L.style[Z]:(ot=ot||jt(L))?Mt=ot[Z]||ot.getPropertyValue(Z)||ot.getPropertyValue(Z.replace(zt,"-$1").toLowerCase()):L.currentStyle&&(Mt=L.currentStyle[Z]),I==null||Mt&&Mt!=="none"&&Mt!=="auto"&&Mt!=="auto auto"?Mt:I):Ri(L)},pt=Ie.convertToPixels=function(L,Z,ot,rt,I){if(rt==="px"||!rt&&Z!=="lineHeight")return ot;if(rt==="auto"||!ot)return 0;var Mt,st,Pt,Ht=Bt.test(Z),Ot=L,Tt=ti.style,le=0>ot,oe=ot===1;if(le&&(ot=-ot),oe&&(ot*=100),Z!=="lineHeight"||rt)if(rt==="%"&&Z.indexOf("border")!==-1)Mt=ot/100*(Ht?L.clientWidth:L.clientHeight);else{if(Tt.cssText="border:0 solid red;position:"+ct(L,"position")+";line-height:0;",rt!=="%"&&Ot.appendChild&&rt.charAt(0)!=="v"&&rt!=="rem")Tt[Ht?"borderLeftWidth":"borderTopWidth"]=ot+rt;else{if(Ot=L.parentNode||xe.body,ct(Ot,"display").indexOf("flex")!==-1&&(Tt.position="absolute"),st=Ot._gsCache,Pt=$.ticker.frame,st&&Ht&&st.time===Pt)return st.width*ot/100;Tt[Ht?"width":"height"]=ot+rt}Ot.appendChild(ti),Mt=parseFloat(ti[Ht?"offsetWidth":"offsetHeight"]),Ot.removeChild(ti),Ht&&rt==="%"&&C.cacheWidths!==!1&&(st=Ot._gsCache=Ot._gsCache||{},st.time=Pt,st.width=Mt/ot*100),Mt!==0||I||(Mt=pt(L,Z,ot,rt,!0))}else st=jt(L).lineHeight,L.style.lineHeight=ot,Mt=parseFloat(jt(L).lineHeight),L.style.lineHeight=st;return oe&&(Mt/=100),le?-Mt:Mt},Lt=Ie.calculateOffset=function(L,Z,ot){if(ct(L,"position",ot)!=="absolute")return 0;var rt=Z==="left"?"Left":"Top",I=ct(L,"margin"+rt,ot);return L["offset"+rt]-(pt(L,Z,parseFloat(I),I.replace(z,""))||0)},ie=function(L,Z){var ot,rt,I,Mt={};if(Z=Z||jt(L,null))if(ot=Z.length)for(;--ot>-1;)I=Z[ot],(I.indexOf("-transform")===-1||hs===I)&&(Mt[I.replace(lt,D)]=Z.getPropertyValue(I));else for(ot in Z)(ot.indexOf("Transform")===-1||gn===ot)&&(Mt[ot]=Z[ot]);else if(Z=L.currentStyle||L.style)for(ot in Z)typeof ot=="string"&&Mt[ot]===void 0&&(Mt[ot.replace(lt,D)]=Z[ot]);return di||(Mt.opacity=Ri(L)),rt=zr(L,Z,!1),Mt.rotation=rt.rotation,Mt.skewX=rt.skewX,Mt.scaleX=rt.scaleX,Mt.scaleY=rt.scaleY,Mt.x=rt.x,Mt.y=rt.y,ir&&(Mt.z=rt.z,Mt.rotationX=rt.rotationX,Mt.rotationY=rt.rotationY,Mt.scaleZ=rt.scaleZ),Mt.filters&&delete Mt.filters,Mt},Kt=function(L,Z,ot,rt,I){var Mt,st,Pt,Ht={},Ot=L.style;for(st in ot)st!=="cssText"&&st!=="length"&&isNaN(st)&&(Z[st]!==(Mt=ot[st])||I&&I[st])&&st.indexOf("Origin")===-1&&(typeof Mt=="number"||typeof Mt=="string")&&(Ht[st]=Mt!=="auto"||st!=="left"&&st!=="top"?Mt!==""&&Mt!=="auto"&&Mt!=="none"||typeof Z[st]!="string"||Z[st].replace(F,"")===""?Mt:0:Lt(L,st),Ot[st]!==void 0&&(Pt=new ni(Ot,st,Ot[st],Pt)));if(rt)for(st in rt)st!=="className"&&(Ht[st]=rt[st]);return{difs:Ht,firstMPT:Pt}},w={width:["Left","Right"],height:["Top","Bottom"]},X=["marginLeft","marginRight","marginTop","marginBottom"],nt=function(L,Z,ot){if((L.nodeName+"").toLowerCase()==="svg")return(ot||jt(L))[Z]||0;if(L.getCTM&&Ws(L))return L.getBBox()[Z]||0;var rt=parseFloat(Z==="width"?L.offsetWidth:L.offsetHeight),I=w[Z],Mt=I.length;for(ot=ot||jt(L,null);--Mt>-1;)rt-=parseFloat(ct(L,"padding"+I[Mt],ot,!0))||0,rt-=parseFloat(ct(L,"border"+I[Mt]+"Width",ot,!0))||0;return rt},tt=function(L,Z){if(L==="contain"||L==="auto"||L==="auto auto")return L+" ";(L==null||L==="")&&(L="0 0");var ot,rt=L.split(" "),I=L.indexOf("left")!==-1?"0%":L.indexOf("right")!==-1?"100%":rt[0],Mt=L.indexOf("top")!==-1?"0%":L.indexOf("bottom")!==-1?"100%":rt[1];if(rt.length>3&&!Z){for(rt=L.split(", ").join(",").split(","),L=[],ot=0;ot<rt.length;ot++)L.push(tt(rt[ot]));return L.join(",")}return Mt==null?Mt=I==="center"?"50%":"0":Mt==="center"&&(Mt="50%"),(I==="center"||isNaN(parseFloat(I))&&(I+"").indexOf("=")===-1)&&(I="50%"),L=I+" "+Mt+(rt.length>2?" "+rt[2]:""),Z&&(Z.oxp=I.indexOf("%")!==-1,Z.oyp=Mt.indexOf("%")!==-1,Z.oxr=I.charAt(1)==="=",Z.oyr=Mt.charAt(1)==="=",Z.ox=parseFloat(I.replace(F,"")),Z.oy=parseFloat(Mt.replace(F,"")),Z.v=L),Z||L},vt=function(L,Z){return typeof L=="function"&&(L=L(d,A)),typeof L=="string"&&L.charAt(1)==="="?parseInt(L.charAt(0)+"1",10)*parseFloat(L.substr(2)):parseFloat(L)-parseFloat(Z)||0},Gt=function(L,Z){typeof L=="function"&&(L=L(d,A));var ot=typeof L=="string"&&L.charAt(1)==="=";return typeof L=="string"&&L.charAt(L.length-2)==="v"&&(L=(ot?L.substr(0,2):0)+window["inner"+(L.substr(-2)==="vh"?"Height":"Width")]*(parseFloat(ot?L.substr(2):L)/100)),L==null?Z:ot?parseInt(L.charAt(0)+"1",10)*parseFloat(L.substr(2))+Z:parseFloat(L)||0},Xt=function(L,Z,ot,rt){var I,Mt,st,Pt,Ht,Ot=1e-6;return typeof L=="function"&&(L=L(d,A)),L==null?Pt=Z:typeof L=="number"?Pt=L:(I=360,Mt=L.split("_"),Ht=L.charAt(1)==="=",st=(Ht?parseInt(L.charAt(0)+"1",10)*parseFloat(Mt[0].substr(2)):parseFloat(Mt[0]))*(L.indexOf("rad")===-1?1:Dt)-(Ht?0:Z),Mt.length&&(rt&&(rt[ot]=Z+st),L.indexOf("short")!==-1&&(st%=I,st!==st%(I/2)&&(st=0>st?st+I:st-I)),L.indexOf("_cw")!==-1&&0>st?st=(st+9999999999*I)%I-(st/I|0)*I:L.indexOf("ccw")!==-1&&st>0&&(st=(st-9999999999*I)%I-(st/I|0)*I)),Pt=Z+st),Ot>Pt&&Pt>-Ot&&(Pt=0),Pt},Wt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ne=function(L,Z,ot){return L=0>L?L+1:L>1?L-1:L,255*(1>6*L?Z+(ot-Z)*L*6:.5>L?ot:2>3*L?Z+(ot-Z)*(2/3-L)*6:Z)+.5|0},Re=C.parseColor=function(L,Z){var ot,rt,I,Mt,st,Pt,Ht,Ot,Tt,le,oe;if(L)if(typeof L=="number")ot=[L>>16,L>>8&255,255&L];else{if(L.charAt(L.length-1)===","&&(L=L.substr(0,L.length-1)),Wt[L])ot=Wt[L];else if(L.charAt(0)==="#")L.length===4&&(rt=L.charAt(1),I=L.charAt(2),Mt=L.charAt(3),L="#"+rt+rt+I+I+Mt+Mt),L=parseInt(L.substr(1),16),ot=[L>>16,L>>8&255,255&L];else if(L.substr(0,3)==="hsl")if(ot=oe=L.match(g),Z){if(L.indexOf("=")!==-1)return L.match(M)}else st=Number(ot[0])%360/360,Pt=Number(ot[1])/100,Ht=Number(ot[2])/100,I=.5>=Ht?Ht*(Pt+1):Ht+Pt-Ht*Pt,rt=2*Ht-I,ot.length>3&&(ot[3]=Number(ot[3])),ot[0]=Ne(st+1/3,rt,I),ot[1]=Ne(st,rt,I),ot[2]=Ne(st-1/3,rt,I);else ot=L.match(g)||Wt.transparent;ot[0]=Number(ot[0]),ot[1]=Number(ot[1]),ot[2]=Number(ot[2]),ot.length>3&&(ot[3]=Number(ot[3]))}else ot=Wt.black;return Z&&!oe&&(rt=ot[0]/255,I=ot[1]/255,Mt=ot[2]/255,Ot=Math.max(rt,I,Mt),Tt=Math.min(rt,I,Mt),Ht=(Ot+Tt)/2,Ot===Tt?st=Pt=0:(le=Ot-Tt,Pt=Ht>.5?le/(2-Ot-Tt):le/(Ot+Tt),st=Ot===rt?(I-Mt)/le+(Mt>I?6:0):Ot===I?(Mt-rt)/le+2:(rt-I)/le+4,st*=60),ot[0]=st+.5|0,ot[1]=100*Pt+.5|0,ot[2]=100*Ht+.5|0),ot},de=function(L,Z){var ot,rt,I,Mt=L.match(we)||[],st=0,Pt="";if(!Mt.length)return L;for(ot=0;ot<Mt.length;ot++)rt=Mt[ot],I=L.substr(st,L.indexOf(rt,st)-st),st+=I.length+rt.length,rt=Re(rt,Z),rt.length===3&&rt.push(1),Pt+=I+(Z?"hsla("+rt[0]+","+rt[1]+"%,"+rt[2]+"%,"+rt[3]:"rgba("+rt.join(","))+")";return Pt+L.substr(st)},we="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(U in Wt)we+="|"+U+"\\b";we=new RegExp(we+")","gi"),C.colorStringFilter=function(L){var Z,ot=L[0]+" "+L[1];we.test(ot)&&(Z=ot.indexOf("hsl(")!==-1||ot.indexOf("hsla(")!==-1,L[0]=de(L[0],Z),L[1]=de(L[1],Z)),we.lastIndex=0},$.defaultStringFilter||($.defaultStringFilter=C.colorStringFilter);var yi=function(L,Z,ot,rt){if(L==null)return function(oe){return oe};var I,Mt=Z?(L.match(we)||[""])[0]:"",st=L.split(Mt).join("").match(x)||[],Pt=L.substr(0,L.indexOf(st[0])),Ht=L.charAt(L.length-1)===")"?")":"",Ot=L.indexOf(" ")!==-1?" ":",",Tt=st.length,le=Tt>0?st[0].replace(g,""):"";return Tt?I=Z?function(oe){var te,ve,he,We;if(typeof oe=="number")oe+=le;else if(rt&&ge.test(oe)){for(We=oe.replace(ge,"|").split("|"),he=0;he<We.length;he++)We[he]=I(We[he]);return We.join(",")}if(te=(oe.match(we)||[Mt])[0],ve=oe.split(te).join("").match(x)||[],he=ve.length,Tt>he--)for(;++he<Tt;)ve[he]=ot?ve[(he-1)/2|0]:st[he];return Pt+ve.join(Ot)+Ot+te+Ht+(oe.indexOf("inset")!==-1?" inset":"")}:function(oe){var te,ve,he;if(typeof oe=="number")oe+=le;else if(rt&&ge.test(oe)){for(ve=oe.replace(ge,"|").split("|"),he=0;he<ve.length;he++)ve[he]=I(ve[he]);return ve.join(",")}if(te=oe.match(x)||[],he=te.length,Tt>he--)for(;++he<Tt;)te[he]=ot?te[(he-1)/2|0]:st[he];return Pt+te.join(Ot)+Ht}:function(oe){return oe}},Si=function(L){return L=L.split(","),function(Z,ot,rt,I,Mt,st,Pt){var Ht,Ot=(ot+"").split(" ");for(Pt={},Ht=0;4>Ht;Ht++)Pt[L[Ht]]=Ot[Ht]=Ot[Ht]||Ot[(Ht-1)/2>>0];return I.parse(Z,Pt,Mt,st)}},ni=(Ie._setPluginRatio=function(L){this.plugin.setRatio(L);for(var Z,ot,rt,I,Mt,st=this.data,Pt=st.proxy,Ht=st.firstMPT,Ot=1e-6;Ht;)Z=Pt[Ht.v],Ht.r?Z=Ht.r(Z):Ot>Z&&Z>-Ot&&(Z=0),Ht.t[Ht.p]=Z,Ht=Ht._next;if(st.autoRotate&&(st.autoRotate.rotation=st.mod?st.mod.call(this._tween,Pt.rotation,this.t,this._tween):Pt.rotation),L===1||L===0)for(Ht=st.firstMPT,Mt=L===1?"e":"b";Ht;){if(ot=Ht.t,ot.type){if(ot.type===1){for(I=ot.xs0+ot.s+ot.xs1,rt=1;rt<ot.l;rt++)I+=ot["xn"+rt]+ot["xs"+(rt+1)];ot[Mt]=I}}else ot[Mt]=ot.s+ot.xs0;Ht=Ht._next}},function(L,Z,ot,rt,I){this.t=L,this.p=Z,this.v=ot,this.r=I,rt&&(rt._prev=this,this._next=rt)}),Ei=(Ie._parseToProxy=function(L,Z,ot,rt,I,Mt){var st,Pt,Ht,Ot,Tt,le=rt,oe={},te={},ve=ot._transform,he=kt;for(ot._transform=null,kt=Z,rt=Tt=ot.parse(L,Z,rt,I),kt=he,Mt&&(ot._transform=ve,le&&(le._prev=null,le._prev&&(le._prev._next=null)));rt&&rt!==le;){if(rt.type<=1&&(Pt=rt.p,te[Pt]=rt.s+rt.c,oe[Pt]=rt.s,Mt||(Ot=new ni(rt,"s",Pt,Ot,rt.r),rt.c=0),rt.type===1))for(st=rt.l;--st>0;)Ht="xn"+st,Pt=rt.p+"_"+Ht,te[Pt]=rt.data[Ht],oe[Pt]=rt[Ht],Mt||(Ot=new ni(rt,Ht,Pt,Ot,rt.rxp[Ht]));rt=rt._next}return{proxy:oe,end:te,firstMPT:Ot,pt:Tt}},Ie.CSSPropTween=function(L,Z,ot,rt,I,Mt,st,Pt,Ht,Ot,Tt){this.t=L,this.p=Z,this.s=ot,this.c=rt,this.n=st||Z,L instanceof Ei||m.push(this.n),this.r=Pt&&(typeof Pt=="function"?Pt:Math.round),this.type=Mt||0,Ht&&(this.pr=Ht,p=!0),this.b=Ot===void 0?ot:Ot,this.e=Tt===void 0?ot+rt:Tt,I&&(this._next=I,I._prev=this)}),Tr=function(L,Z,ot,rt,I,Mt){var st=new Ei(L,Z,ot,rt-ot,I,-1,Mt);return st.b=ot,st.e=st.xs0=rt,st},Xn=C.parseComplex=function(L,Z,ot,rt,I,Mt,st,Pt,Ht,Ot){ot=ot||Mt||"",typeof rt=="function"&&(rt=rt(d,A)),st=new Ei(L,Z,0,0,st,Ot?2:1,null,!1,Pt,ot,rt),rt+="",I&&we.test(rt+ot)&&(rt=[ot,rt],C.colorStringFilter(rt),ot=rt[0],rt=rt[1]);var Tt,le,oe,te,ve,he,We,He,ci,Be,ye,ke,ce,mi=ot.split(", ").join(",").split(" "),Pe=rt.split(", ").join(",").split(" "),_e=mi.length,Le=Y!==!1;for((rt.indexOf(",")!==-1||ot.indexOf(",")!==-1)&&((rt+ot).indexOf("rgb")!==-1||(rt+ot).indexOf("hsl")!==-1?(mi=mi.join(" ").replace(ge,", ").split(" "),Pe=Pe.join(" ").replace(ge,", ").split(" ")):(mi=mi.join(" ").split(",").join(", ").split(" "),Pe=Pe.join(" ").split(",").join(", ").split(" ")),_e=mi.length),_e!==Pe.length&&(mi=(Mt||"").split(" "),_e=mi.length),st.plugin=Ht,st.setRatio=Ot,we.lastIndex=0,Tt=0;_e>Tt;Tt++)if(te=mi[Tt],ve=Pe[Tt]+"",He=parseFloat(te),He||He===0)st.appendXtra("",He,vt(ve,He),ve.replace(M,""),Le&&ve.indexOf("px")!==-1?Math.round:!1,!0);else if(I&&we.test(te))ke=ve.indexOf(")")+1,ke=")"+(ke?ve.substr(ke):""),ce=ve.indexOf("hsl")!==-1&&di,Be=ve,te=Re(te,ce),ve=Re(ve,ce),ci=te.length+ve.length>6,ci&&!di&&ve[3]===0?(st["xs"+st.l]+=st.l?" transparent":"transparent",st.e=st.e.split(Pe[Tt]).join("transparent")):(di||(ci=!1),ce?st.appendXtra(Be.substr(0,Be.indexOf("hsl"))+(ci?"hsla(":"hsl("),te[0],vt(ve[0],te[0]),",",!1,!0).appendXtra("",te[1],vt(ve[1],te[1]),"%,",!1).appendXtra("",te[2],vt(ve[2],te[2]),ci?"%,":"%"+ke,!1):st.appendXtra(Be.substr(0,Be.indexOf("rgb"))+(ci?"rgba(":"rgb("),te[0],ve[0]-te[0],",",Math.round,!0).appendXtra("",te[1],ve[1]-te[1],",",Math.round).appendXtra("",te[2],ve[2]-te[2],ci?",":ke,Math.round),ci&&(te=te.length<4?1:te[3],st.appendXtra("",te,(ve.length<4?1:ve[3])-te,ke,!1))),we.lastIndex=0;else if(he=te.match(g)){if(We=ve.match(M),!We||We.length!==he.length)return st;for(oe=0,le=0;le<he.length;le++)ye=he[le],Be=te.indexOf(ye,oe),st.appendXtra(te.substr(oe,Be-oe),Number(ye),vt(We[le],ye),"",Le&&te.substr(Be+ye.length,2)==="px"?Math.round:!1,le===0),oe=Be+ye.length;st["xs"+st.l]+=te.substr(oe)}else st["xs"+st.l]+=st.l||st["xs"+st.l]?" "+ve:ve;if(rt.indexOf("=")!==-1&&st.data){for(ke=st.xs0+st.data.s,Tt=1;Tt<st.l;Tt++)ke+=st["xs"+Tt]+st.data["xn"+Tt];st.e=ke+st["xs"+Tt]}return st.l||(st.type=-1,st.xs0=st.e),st.xfirst||st},nn=9;for(U=Ei.prototype,U.l=U.pr=0;--nn>0;)U["xn"+nn]=0,U["xs"+nn]="";U.xs0="",U._next=U._prev=U.xfirst=U.data=U.plugin=U.setRatio=U.rxp=null,U.appendXtra=function(L,Z,ot,rt,I,Mt){var st=this,Pt=st.l;return st["xs"+Pt]+=Mt&&(Pt||st["xs"+Pt])?" "+L:L||"",ot||Pt===0||st.plugin?(st.l++,st.type=st.setRatio?2:1,st["xs"+st.l]=rt||"",Pt>0?(st.data["xn"+Pt]=Z+ot,st.rxp["xn"+Pt]=I,st["xn"+Pt]=Z,st.plugin||(st.xfirst=new Ei(st,"xn"+Pt,Z,ot,st.xfirst||st,0,st.n,I,st.pr),st.xfirst.xs0=0),st):(st.data={s:Z+ot},st.rxp={},st.s=Z,st.c=ot,st.r=I,st)):(st["xs"+Pt]+=Z+(rt||""),st)};var Kr=function(L,Z){Z=Z||{},this.p=Z.prefix&&Jt(L)||L,E[L]=E[this.p]=this,this.format=Z.formatter||yi(Z.defaultValue,Z.color,Z.collapsible,Z.multi),Z.parser&&(this.parse=Z.parser),this.clrs=Z.color,this.multi=Z.multi,this.keyword=Z.keyword,this.dflt=Z.defaultValue,this.pr=Z.priority||0},Ii=Ie._registerComplexSpecialProp=function(L,Z,ot){typeof Z!="object"&&(Z={parser:ot});var rt,I=L.split(","),Mt=Z.defaultValue;for(ot=ot||[Mt],rt=0;rt<I.length;rt++)Z.prefix=rt===0&&Z.prefix,Z.defaultValue=ot[rt]||Mt,new Kr(I[rt],Z)},fo=Ie._registerPluginProp=function(L){if(!E[L]){var Z=L.charAt(0).toUpperCase()+L.substr(1)+"Plugin";Ii(L,{parser:function(ot,rt,I,Mt,st,Pt,Ht){var Ot=O.com.greensock.plugins[Z];return Ot?(Ot._cssRegister(),E[I].parse(ot,rt,I,Mt,st,Pt,Ht)):(hn("Error: "+Z+" js file not loaded."),st)}})}};U=Kr.prototype,U.parseComplex=function(L,Z,ot,rt,I,Mt){var st,Pt,Ht,Ot,Tt,le,oe=this.keyword;if(this.multi&&(ge.test(ot)||ge.test(Z)?(Pt=Z.replace(ge,"|").split("|"),Ht=ot.replace(ge,"|").split("|")):oe&&(Pt=[Z],Ht=[ot])),Ht){for(Ot=Ht.length>Pt.length?Ht.length:Pt.length,st=0;Ot>st;st++)Z=Pt[st]=Pt[st]||this.dflt,ot=Ht[st]=Ht[st]||this.dflt,oe&&(Tt=Z.indexOf(oe),le=ot.indexOf(oe),Tt!==le&&(le===-1?Pt[st]=Pt[st].split(oe).join(""):Tt===-1&&(Pt[st]+=" "+oe)));Z=Pt.join(", "),ot=Ht.join(", ")}return Xn(L,this.p,Z,ot,this.clrs,this.dflt,rt,this.pr,I,Mt)},U.parse=function(L,Z,ot,rt,I,Mt,st){return this.parseComplex(L.style,this.format(ct(L,this.p,G,!1,this.dflt)),this.format(Z),I,Mt)},C.registerSpecialProp=function(L,Z,ot){Ii(L,{parser:function(rt,I,Mt,st,Pt,Ht,Ot){var Tt=new Ei(rt,Mt,0,0,Pt,2,Mt,!1,ot);return Tt.plugin=Ht,Tt.setRatio=Z(rt,I,st._tween,Mt),Tt},priority:ot})},C.useSVGTransformAttr=!0;var Ir,Ea="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),gn=Jt("transform"),hs=Ji+"transform",Ro=Jt("transformOrigin"),ir=Jt("perspective")!==null,us=Ie.Transform=function(){this.perspective=parseFloat(C.defaultTransformPerspective)||0,this.force3D=C.defaultForce3D!==!1&&ir?C.defaultForce3D||"auto":!1},Vs=on.SVGElement,ba=function(L,Z,ot){var rt,I=xe.createElementNS("http://www.w3.org/2000/svg",L),Mt=/([a-z])([A-Z])/g;for(rt in ot)I.setAttributeNS(null,rt.replace(Mt,"$1-$2").toLowerCase(),ot[rt]);return Z.appendChild(I),I},Or=xe.documentElement||{},tl=function(){var L,Z,ot,rt=b||/Android/i.test(Ge)&&!on.chrome;return xe.createElementNS&&!rt&&(L=ba("svg",Or),Z=ba("rect",L,{width:100,height:50,x:100}),ot=Z.getBoundingClientRect().width,Z.style[Ro]="50% 50%",Z.style[gn]="scaleX(0.5)",rt=ot===Z.getBoundingClientRect().width&&!(B&&ir),Or.removeChild(L)),rt}(),cs=function(L,Z,ot,rt,I,Mt){var st,Pt,Ht,Ot,Tt,le,oe,te,ve,he,We,He,ci,Be,ye=L._gsTransform,ke=ps(L,!0);ye&&(ci=ye.xOrigin,Be=ye.yOrigin),(!rt||(st=rt.split(" ")).length<2)&&(oe=L.getBBox(),oe.x===0&&oe.y===0&&oe.width+oe.height===0&&(oe={x:parseFloat(L.hasAttribute("x")?L.getAttribute("x"):L.hasAttribute("cx")?L.getAttribute("cx"):0)||0,y:parseFloat(L.hasAttribute("y")?L.getAttribute("y"):L.hasAttribute("cy")?L.getAttribute("cy"):0)||0,width:0,height:0}),Z=tt(Z).split(" "),st=[(Z[0].indexOf("%")!==-1?parseFloat(Z[0])/100*oe.width:parseFloat(Z[0]))+oe.x,(Z[1].indexOf("%")!==-1?parseFloat(Z[1])/100*oe.height:parseFloat(Z[1]))+oe.y]),ot.xOrigin=Ot=parseFloat(st[0]),ot.yOrigin=Tt=parseFloat(st[1]),rt&&ke!==fs&&(le=ke[0],oe=ke[1],te=ke[2],ve=ke[3],he=ke[4],We=ke[5],He=le*ve-oe*te,He&&(Pt=Ot*(ve/He)+Tt*(-te/He)+(te*We-ve*he)/He,Ht=Ot*(-oe/He)+Tt*(le/He)-(le*We-oe*he)/He,Ot=ot.xOrigin=st[0]=Pt,Tt=ot.yOrigin=st[1]=Ht)),ye&&(Mt&&(ot.xOffset=ye.xOffset,ot.yOffset=ye.yOffset,ye=ot),I||I!==!1&&C.defaultSmoothOrigin!==!1?(Pt=Ot-ci,Ht=Tt-Be,ye.xOffset+=Pt*ke[0]+Ht*ke[2]-Pt,ye.yOffset+=Pt*ke[1]+Ht*ke[3]-Ht):ye.xOffset=ye.yOffset=0),Mt||L.setAttribute("data-svg-origin",st.join(" "))},js=function(L){var Z,ot=Zt("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),rt=this.parentNode,I=this.nextSibling,Mt=this.style.cssText;if(Or.appendChild(ot),ot.appendChild(this),this.style.display="block",L)try{Z=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=js}catch{}else this._originalGetBBox&&(Z=this._originalGetBBox());return I?rt.insertBefore(this,I):rt.appendChild(this),Or.removeChild(ot),this.style.cssText=Mt,Z},Dr=function(L){try{return L.getBBox()}catch{return js.call(L,!0)}},Ws=function(L){return!(!Vs||!L.getCTM||L.parentNode&&!L.ownerSVGElement||!Dr(L))},fs=[1,0,0,1,0,0],ps=function(L,Z){var ot,rt,I,Mt,st,Pt,Ht=L._gsTransform||new us,Ot=1e5,Tt=L.style;if(gn?rt=ct(L,hs,null,!0):L.currentStyle&&(rt=L.currentStyle.filter.match(Ct),rt=rt&&rt.length===4?[rt[0].substr(4),Number(rt[2].substr(4)),Number(rt[1].substr(4)),rt[3].substr(4),Ht.x||0,Ht.y||0].join(","):""),ot=!rt||rt==="none"||rt==="matrix(1, 0, 0, 1, 0, 0)",!gn||!(Pt=!jt(L)||jt(L).display==="none")&&L.parentNode||(Pt&&(Mt=Tt.display,Tt.display="block"),L.parentNode||(st=1,Or.appendChild(L)),rt=ct(L,hs,null,!0),ot=!rt||rt==="none"||rt==="matrix(1, 0, 0, 1, 0, 0)",Mt?Tt.display=Mt:Pt&&Io(Tt,"display"),st&&Or.removeChild(L)),(Ht.svg||L.getCTM&&Ws(L))&&(ot&&(Tt[gn]+"").indexOf("matrix")!==-1&&(rt=Tt[gn],ot=0),I=L.getAttribute("transform"),ot&&I&&(I=L.transform.baseVal.consolidate().matrix,rt="matrix("+I.a+","+I.b+","+I.c+","+I.d+","+I.e+","+I.f+")",ot=0)),ot)return fs;for(I=(rt||"").match(g)||[],nn=I.length;--nn>-1;)Mt=Number(I[nn]),I[nn]=(st=Mt-(Mt|=0))?(st*Ot+(0>st?-.5:.5)|0)/Ot+Mt:Mt;return Z&&I.length>6?[I[0],I[1],I[4],I[5],I[12],I[13]]:I},zr=Ie.getTransform=function(L,Z,ot,rt){if(L._gsTransform&&ot&&!rt)return L._gsTransform;var I,Mt,st,Pt,Ht,Ot,Tt=ot?L._gsTransform||new us:new us,le=Tt.scaleX<0,oe=2e-5,te=1e5,ve=ir&&(parseFloat(ct(L,Ro,Z,!1,"0 0 0").split(" ")[2])||Tt.zOrigin)||0,he=parseFloat(C.defaultTransformPerspective)||0;if(Tt.svg=!(!L.getCTM||!Ws(L)),Tt.svg&&(cs(L,ct(L,Ro,Z,!1,"50% 50%")+"",Tt,L.getAttribute("data-svg-origin")),Ir=C.useSVGTransformAttr||tl),I=ps(L),I!==fs){if(I.length===16){var We,He,ci,Be,ye,ke=I[0],ce=I[1],mi=I[2],Pe=I[3],_e=I[4],Le=I[5],vn=I[6],zn=I[7],Oi=I[8],Di=I[9],Fi=I[10],Qi=I[12],tn=I[13],sn=I[14],an=I[11],Ui=Math.atan2(vn,Fi);Tt.zOrigin&&(sn=-Tt.zOrigin,Qi=Oi*sn-I[12],tn=Di*sn-I[13],sn=Fi*sn+Tt.zOrigin-I[14]),Tt.rotationX=Ui*Dt,Ui&&(Be=Math.cos(-Ui),ye=Math.sin(-Ui),We=_e*Be+Oi*ye,He=Le*Be+Di*ye,ci=vn*Be+Fi*ye,Oi=_e*-ye+Oi*Be,Di=Le*-ye+Di*Be,Fi=vn*-ye+Fi*Be,an=zn*-ye+an*Be,_e=We,Le=He,vn=ci),Ui=Math.atan2(-mi,Fi),Tt.rotationY=Ui*Dt,Ui&&(Be=Math.cos(-Ui),ye=Math.sin(-Ui),We=ke*Be-Oi*ye,He=ce*Be-Di*ye,ci=mi*Be-Fi*ye,Di=ce*ye+Di*Be,Fi=mi*ye+Fi*Be,an=Pe*ye+an*Be,ke=We,ce=He,mi=ci),Ui=Math.atan2(ce,ke),Tt.rotation=Ui*Dt,Ui&&(Be=Math.cos(Ui),ye=Math.sin(Ui),We=ke*Be+ce*ye,He=_e*Be+Le*ye,ci=Oi*Be+Di*ye,ce=ce*Be-ke*ye,Le=Le*Be-_e*ye,Di=Di*Be-Oi*ye,ke=We,_e=He,Oi=ci),Tt.rotationX&&Math.abs(Tt.rotationX)+Math.abs(Tt.rotation)>359.9&&(Tt.rotationX=Tt.rotation=0,Tt.rotationY=180-Tt.rotationY),Ui=Math.atan2(_e,Le),Tt.scaleX=(Math.sqrt(ke*ke+ce*ce+mi*mi)*te+.5|0)/te,Tt.scaleY=(Math.sqrt(Le*Le+vn*vn)*te+.5|0)/te,Tt.scaleZ=(Math.sqrt(Oi*Oi+Di*Di+Fi*Fi)*te+.5|0)/te,ke/=Tt.scaleX,_e/=Tt.scaleY,ce/=Tt.scaleX,Le/=Tt.scaleY,Math.abs(Ui)>oe?(Tt.skewX=Ui*Dt,_e=0,Tt.skewType!=="simple"&&(Tt.scaleY*=1/Math.cos(Ui))):Tt.skewX=0,Tt.perspective=an?1/(0>an?-an:an):0,Tt.x=Qi,Tt.y=tn,Tt.z=sn,Tt.svg&&(Tt.x-=Tt.xOrigin-(Tt.xOrigin*ke-Tt.yOrigin*_e),Tt.y-=Tt.yOrigin-(Tt.yOrigin*ce-Tt.xOrigin*Le))}else if(!ir||rt||!I.length||Tt.x!==I[4]||Tt.y!==I[5]||!Tt.rotationX&&!Tt.rotationY){var zi=I.length>=6,Vi=zi?I[0]:1,gi=I[1]||0,Br=I[2]||0,Ln=zi?I[3]:1;Tt.x=I[4]||0,Tt.y=I[5]||0,st=Math.sqrt(Vi*Vi+gi*gi),Pt=Math.sqrt(Ln*Ln+Br*Br),Ht=Vi||gi?Math.atan2(gi,Vi)*Dt:Tt.rotation||0,Ot=Br||Ln?Math.atan2(Br,Ln)*Dt+Ht:Tt.skewX||0,Tt.scaleX=st,Tt.scaleY=Pt,Tt.rotation=Ht,Tt.skewX=Ot,ir&&(Tt.rotationX=Tt.rotationY=Tt.z=0,Tt.perspective=he,Tt.scaleZ=1),Tt.svg&&(Tt.x-=Tt.xOrigin-(Tt.xOrigin*Vi+Tt.yOrigin*Br),Tt.y-=Tt.yOrigin-(Tt.xOrigin*gi+Tt.yOrigin*Ln))}Math.abs(Tt.skewX)>90&&Math.abs(Tt.skewX)<270&&(le?(Tt.scaleX*=-1,Tt.skewX+=Tt.rotation<=0?180:-180,Tt.rotation+=Tt.rotation<=0?180:-180):(Tt.scaleY*=-1,Tt.skewX+=Tt.skewX<=0?180:-180)),Tt.zOrigin=ve;for(Mt in Tt)Tt[Mt]<oe&&Tt[Mt]>-oe&&(Tt[Mt]=0)}return ot&&(L._gsTransform=Tt,Tt.svg&&(Ir&&L.style[gn]?$.delayedCall(.001,function(){Io(L.style,gn)}):!Ir&&L.getAttribute("transform")&&$.delayedCall(.001,function(){L.removeAttribute("transform")}))),Tt},Aa=function(L){var Z,ot,rt=this.data,I=-rt.rotation*Ft,Mt=I+rt.skewX*Ft,st=1e5,Pt=(Math.cos(I)*rt.scaleX*st|0)/st,Ht=(Math.sin(I)*rt.scaleX*st|0)/st,Ot=(Math.sin(Mt)*-rt.scaleY*st|0)/st,Tt=(Math.cos(Mt)*rt.scaleY*st|0)/st,le=this.t.style,oe=this.t.currentStyle;if(oe){ot=Ht,Ht=-Ot,Ot=-ot,Z=oe.filter,le.filter="";var te,ve,he=this.t.offsetWidth,We=this.t.offsetHeight,He=oe.position!=="absolute",ci="progid:DXImageTransform.Microsoft.Matrix(M11="+Pt+", M12="+Ht+", M21="+Ot+", M22="+Tt,Be=rt.x+he*rt.xPercent/100,ye=rt.y+We*rt.yPercent/100;if(rt.ox!=null&&(te=(rt.oxp?he*rt.ox*.01:rt.ox)-he/2,ve=(rt.oyp?We*rt.oy*.01:rt.oy)-We/2,Be+=te-(te*Pt+ve*Ht),ye+=ve-(te*Ot+ve*Tt)),He?(te=he/2,ve=We/2,ci+=", Dx="+(te-(te*Pt+ve*Ht)+Be)+", Dy="+(ve-(te*Ot+ve*Tt)+ye)+")"):ci+=", sizingMethod='auto expand')",Z.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?le.filter=Z.replace(Rt,ci):le.filter=ci+" "+Z,(L===0||L===1)&&Pt===1&&Ht===0&&Ot===0&&Tt===1&&(He&&ci.indexOf("Dx=0, Dy=0")===-1||W.test(Z)&&parseFloat(RegExp.$1)!==100||Z.indexOf(Z.indexOf("Alpha"))===-1&&le.removeAttribute("filter")),!He){var ke,ce,mi,Pe=8>b?1:-1;for(te=rt.ieOffsetX||0,ve=rt.ieOffsetY||0,rt.ieOffsetX=Math.round((he-((0>Pt?-Pt:Pt)*he+(0>Ht?-Ht:Ht)*We))/2+Be),rt.ieOffsetY=Math.round((We-((0>Tt?-Tt:Tt)*We+(0>Ot?-Ot:Ot)*he))/2+ye),nn=0;4>nn;nn++)ce=X[nn],ke=oe[ce],ot=ke.indexOf("px")!==-1?parseFloat(ke):pt(this.t,ce,parseFloat(ke),ke.replace(z,""))||0,mi=ot!==rt[ce]?2>nn?-rt.ieOffsetX:-rt.ieOffsetY:2>nn?te-rt.ieOffsetX:ve-rt.ieOffsetY,le[ce]=(rt[ce]=Math.round(ot-mi*(nn===0||nn===2?1:Pe)))+"px"}}},el=Ie.set3DTransformRatio=Ie.setTransformRatio=function(L){var Z,ot,rt,I,Mt,st,Pt,Ht,Ot,Tt,le,oe,te,ve,he,We,He,ci,Be,ye,ke,ce,mi,Pe=this.data,_e=this.t.style,Le=Pe.rotation,vn=Pe.rotationX,zn=Pe.rotationY,Oi=Pe.scaleX,Di=Pe.scaleY,Fi=Pe.scaleZ,Qi=Pe.x,tn=Pe.y,sn=Pe.z,an=Pe.svg,Ui=Pe.perspective,zi=Pe.force3D,Vi=Pe.skewY,gi=Pe.skewX;if(Vi&&(gi+=Vi,Le+=Vi),((L===1||L===0)&&zi==="auto"&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!zi)&&!sn&&!Ui&&!zn&&!vn&&Fi===1||Ir&&an||!ir)return void(Le||gi||an?(Le*=Ft,ce=gi*Ft,mi=1e5,ot=Math.cos(Le)*Oi,Mt=Math.sin(Le)*Oi,rt=Math.sin(Le-ce)*-Di,st=Math.cos(Le-ce)*Di,ce&&Pe.skewType==="simple"&&(Z=Math.tan(ce-Vi*Ft),Z=Math.sqrt(1+Z*Z),rt*=Z,st*=Z,Vi&&(Z=Math.tan(Vi*Ft),Z=Math.sqrt(1+Z*Z),ot*=Z,Mt*=Z)),an&&(Qi+=Pe.xOrigin-(Pe.xOrigin*ot+Pe.yOrigin*rt)+Pe.xOffset,tn+=Pe.yOrigin-(Pe.xOrigin*Mt+Pe.yOrigin*st)+Pe.yOffset,Ir&&(Pe.xPercent||Pe.yPercent)&&(he=this.t.getBBox(),Qi+=.01*Pe.xPercent*he.width,tn+=.01*Pe.yPercent*he.height),he=1e-6,he>Qi&&Qi>-he&&(Qi=0),he>tn&&tn>-he&&(tn=0)),Be=(ot*mi|0)/mi+","+(Mt*mi|0)/mi+","+(rt*mi|0)/mi+","+(st*mi|0)/mi+","+Qi+","+tn+")",an&&Ir?this.t.setAttribute("transform","matrix("+Be):_e[gn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix(":"matrix(")+Be):_e[gn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix(":"matrix(")+Oi+",0,0,"+Di+","+Qi+","+tn+")");if(B&&(he=1e-4,he>Oi&&Oi>-he&&(Oi=Fi=2e-5),he>Di&&Di>-he&&(Di=Fi=2e-5),!Ui||Pe.z||Pe.rotationX||Pe.rotationY||(Ui=0)),Le||gi)Le*=Ft,We=ot=Math.cos(Le),He=Mt=Math.sin(Le),gi&&(Le-=gi*Ft,We=Math.cos(Le),He=Math.sin(Le),Pe.skewType==="simple"&&(Z=Math.tan((gi-Vi)*Ft),Z=Math.sqrt(1+Z*Z),We*=Z,He*=Z,Pe.skewY&&(Z=Math.tan(Vi*Ft),Z=Math.sqrt(1+Z*Z),ot*=Z,Mt*=Z))),rt=-He,st=We;else{if(!(zn||vn||Fi!==1||Ui||an))return void(_e[gn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) translate3d(":"translate3d(")+Qi+"px,"+tn+"px,"+sn+"px)"+(Oi!==1||Di!==1?" scale("+Oi+","+Di+")":""));ot=st=1,rt=Mt=0}Tt=1,I=Pt=Ht=Ot=le=oe=0,te=Ui?-1/Ui:0,ve=Pe.zOrigin,he=1e-6,ye=",",ke="0",Le=zn*Ft,Le&&(We=Math.cos(Le),He=Math.sin(Le),Ht=-He,le=te*-He,I=ot*He,Pt=Mt*He,Tt=We,te*=We,ot*=We,Mt*=We),Le=vn*Ft,Le&&(We=Math.cos(Le),He=Math.sin(Le),Z=rt*We+I*He,ci=st*We+Pt*He,Ot=Tt*He,oe=te*He,I=rt*-He+I*We,Pt=st*-He+Pt*We,Tt*=We,te*=We,rt=Z,st=ci),Fi!==1&&(I*=Fi,Pt*=Fi,Tt*=Fi,te*=Fi),Di!==1&&(rt*=Di,st*=Di,Ot*=Di,oe*=Di),Oi!==1&&(ot*=Oi,Mt*=Oi,Ht*=Oi,le*=Oi),(ve||an)&&(ve&&(Qi+=I*-ve,tn+=Pt*-ve,sn+=Tt*-ve+ve),an&&(Qi+=Pe.xOrigin-(Pe.xOrigin*ot+Pe.yOrigin*rt)+Pe.xOffset,tn+=Pe.yOrigin-(Pe.xOrigin*Mt+Pe.yOrigin*st)+Pe.yOffset),he>Qi&&Qi>-he&&(Qi=ke),he>tn&&tn>-he&&(tn=ke),he>sn&&sn>-he&&(sn=0)),Be=Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix3d(":"matrix3d(",Be+=(he>ot&&ot>-he?ke:ot)+ye+(he>Mt&&Mt>-he?ke:Mt)+ye+(he>Ht&&Ht>-he?ke:Ht),Be+=ye+(he>le&&le>-he?ke:le)+ye+(he>rt&&rt>-he?ke:rt)+ye+(he>st&&st>-he?ke:st),vn||zn||Fi!==1?(Be+=ye+(he>Ot&&Ot>-he?ke:Ot)+ye+(he>oe&&oe>-he?ke:oe)+ye+(he>I&&I>-he?ke:I),Be+=ye+(he>Pt&&Pt>-he?ke:Pt)+ye+(he>Tt&&Tt>-he?ke:Tt)+ye+(he>te&&te>-he?ke:te)+ye):Be+=",0,0,0,0,1,0,",Be+=Qi+ye+tn+ye+sn+ye+(Ui?1+-sn/Ui:1)+")",_e[gn]=Be};U=us.prototype,U.x=U.y=U.z=U.skewX=U.skewY=U.rotation=U.rotationX=U.rotationY=U.zOrigin=U.xPercent=U.yPercent=U.xOffset=U.yOffset=0,U.scaleX=U.scaleY=U.scaleZ=1,Ii("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(L,Z,ot,rt,I,Mt,st){if(rt._lastParsedTransform===st)return I;rt._lastParsedTransform=st;var Pt,Ht=st.scale&&typeof st.scale=="function"?st.scale:0;typeof st[ot]=="function"&&(Pt=st[ot],st[ot]=Z),Ht&&(st.scale=Ht(d,L));var Ot,Tt,le,oe,te,ve,he,We,He,ci=L._gsTransform,Be=L.style,ye=1e-6,ke=Ea.length,ce=st,mi={},Pe="transformOrigin",_e=zr(L,G,!0,ce.parseTransform),Le=ce.transform&&(typeof ce.transform=="function"?ce.transform(d,A):ce.transform);if(_e.skewType=ce.skewType||_e.skewType||C.defaultSkewType,rt._transform=_e,"rotationZ"in ce&&(ce.rotation=ce.rotationZ),Le&&typeof Le=="string"&&gn)Tt=ti.style,Tt[gn]=Le,Tt.display="block",Tt.position="absolute",Le.indexOf("%")!==-1&&(Tt.width=ct(L,"width"),Tt.height=ct(L,"height")),xe.body.appendChild(ti),Ot=zr(ti,null,!1),_e.skewType==="simple"&&(Ot.scaleY*=Math.cos(Ot.skewX*Ft)),_e.svg&&(ve=_e.xOrigin,he=_e.yOrigin,Ot.x-=_e.xOffset,Ot.y-=_e.yOffset,(ce.transformOrigin||ce.svgOrigin)&&(Le={},cs(L,tt(ce.transformOrigin),Le,ce.svgOrigin,ce.smoothOrigin,!0),ve=Le.xOrigin,he=Le.yOrigin,Ot.x-=Le.xOffset-_e.xOffset,Ot.y-=Le.yOffset-_e.yOffset),(ve||he)&&(We=ps(ti,!0),Ot.x-=ve-(ve*We[0]+he*We[2]),Ot.y-=he-(ve*We[1]+he*We[3]))),xe.body.removeChild(ti),Ot.perspective||(Ot.perspective=_e.perspective),ce.xPercent!=null&&(Ot.xPercent=Gt(ce.xPercent,_e.xPercent)),ce.yPercent!=null&&(Ot.yPercent=Gt(ce.yPercent,_e.yPercent));else if(typeof ce=="object"){if(Ot={scaleX:Gt(ce.scaleX!=null?ce.scaleX:ce.scale,_e.scaleX),scaleY:Gt(ce.scaleY!=null?ce.scaleY:ce.scale,_e.scaleY),scaleZ:Gt(ce.scaleZ,_e.scaleZ),x:Gt(ce.x,_e.x),y:Gt(ce.y,_e.y),z:Gt(ce.z,_e.z),xPercent:Gt(ce.xPercent,_e.xPercent),yPercent:Gt(ce.yPercent,_e.yPercent),perspective:Gt(ce.transformPerspective,_e.perspective)},te=ce.directionalRotation,te!=null)if(typeof te=="object")for(Tt in te)ce[Tt]=te[Tt];else ce.rotation=te;typeof ce.x=="string"&&ce.x.indexOf("%")!==-1&&(Ot.x=0,Ot.xPercent=Gt(ce.x,_e.xPercent)),typeof ce.y=="string"&&ce.y.indexOf("%")!==-1&&(Ot.y=0,Ot.yPercent=Gt(ce.y,_e.yPercent)),Ot.rotation=Xt("rotation"in ce?ce.rotation:"shortRotation"in ce?ce.shortRotation+"_short":_e.rotation,_e.rotation,"rotation",mi),ir&&(Ot.rotationX=Xt("rotationX"in ce?ce.rotationX:"shortRotationX"in ce?ce.shortRotationX+"_short":_e.rotationX||0,_e.rotationX,"rotationX",mi),Ot.rotationY=Xt("rotationY"in ce?ce.rotationY:"shortRotationY"in ce?ce.shortRotationY+"_short":_e.rotationY||0,_e.rotationY,"rotationY",mi)),Ot.skewX=Xt(ce.skewX,_e.skewX),Ot.skewY=Xt(ce.skewY,_e.skewY)}for(ir&&ce.force3D!=null&&(_e.force3D=ce.force3D,oe=!0),le=_e.force3D||_e.z||_e.rotationX||_e.rotationY||Ot.z||Ot.rotationX||Ot.rotationY||Ot.perspective,le||ce.scale==null||(Ot.scaleZ=1);--ke>-1;)He=Ea[ke],Le=Ot[He]-_e[He],(Le>ye||-ye>Le||ce[He]!=null||kt[He]!=null)&&(oe=!0,I=new Ei(_e,He,_e[He],Le,I),He in mi&&(I.e=mi[He]),I.xs0=0,I.plugin=Mt,rt._overwriteProps.push(I.n));return Le=ce.transformOrigin,_e.svg&&(Le||ce.svgOrigin)&&(ve=_e.xOffset,he=_e.yOffset,cs(L,tt(Le),Ot,ce.svgOrigin,ce.smoothOrigin),I=Tr(_e,"xOrigin",(ci?_e:Ot).xOrigin,Ot.xOrigin,I,Pe),I=Tr(_e,"yOrigin",(ci?_e:Ot).yOrigin,Ot.yOrigin,I,Pe),(ve!==_e.xOffset||he!==_e.yOffset)&&(I=Tr(_e,"xOffset",ci?ve:_e.xOffset,_e.xOffset,I,Pe),I=Tr(_e,"yOffset",ci?he:_e.yOffset,_e.yOffset,I,Pe)),Le="0px 0px"),(Le||ir&&le&&_e.zOrigin)&&(gn?(oe=!0,He=Ro,Le=(Le||ct(L,He,G,!1,"50% 50%"))+"",I=new Ei(Be,He,0,0,I,-1,Pe),I.b=Be[He],I.plugin=Mt,ir?(Tt=_e.zOrigin,Le=Le.split(" "),_e.zOrigin=(Le.length>2&&(Tt===0||Le[2]!=="0px")?parseFloat(Le[2]):Tt)||0,I.xs0=I.e=Le[0]+" "+(Le[1]||"50%")+" 0px",I=new Ei(_e,"zOrigin",0,0,I,-1,I.n),I.b=Tt,I.xs0=I.e=_e.zOrigin):I.xs0=I.e=Le):tt(Le+"",_e)),oe&&(rt._transformType=_e.svg&&Ir||!le&&this._transformType!==3?2:3),Pt&&(st[ot]=Pt),Ht&&(st.scale=Ht),I},prefix:!0}),Ii("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ii("borderRadius",{defaultValue:"0px",parser:function(L,Z,ot,rt,I,Mt){Z=this.format(Z);var st,Pt,Ht,Ot,Tt,le,oe,te,ve,he,We,He,ci,Be,ye,ke,ce=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],mi=L.style;for(ve=parseFloat(L.offsetWidth),he=parseFloat(L.offsetHeight),st=Z.split(" "),Pt=0;Pt<ce.length;Pt++)this.p.indexOf("border")&&(ce[Pt]=Jt(ce[Pt])),Tt=Ot=ct(L,ce[Pt],G,!1,"0px"),Tt.indexOf(" ")!==-1&&(Ot=Tt.split(" "),Tt=Ot[0],Ot=Ot[1]),le=Ht=st[Pt],oe=parseFloat(Tt),He=Tt.substr((oe+"").length),ci=le.charAt(1)==="=",ci?(te=parseInt(le.charAt(0)+"1",10),le=le.substr(2),te*=parseFloat(le),We=le.substr((te+"").length-(0>te?1:0))||""):(te=parseFloat(le),We=le.substr((te+"").length)),We===""&&(We=J[ot]||He),We!==He&&(Be=pt(L,"borderLeft",oe,He),ye=pt(L,"borderTop",oe,He),We==="%"?(Tt=Be/ve*100+"%",Ot=ye/he*100+"%"):We==="em"?(ke=pt(L,"borderLeft",1,"em"),Tt=Be/ke+"em",Ot=ye/ke+"em"):(Tt=Be+"px",Ot=ye+"px"),ci&&(le=parseFloat(Tt)+te+We,Ht=parseFloat(Ot)+te+We)),I=Xn(mi,ce[Pt],Tt+" "+Ot,le+" "+Ht,!1,"0px",I);return I},prefix:!0,formatter:yi("0px 0px 0px 0px",!1,!0)}),Ii("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(L,Z,ot,rt,I,Mt){return Xn(L.style,ot,this.format(ct(L,ot,G,!1,"0px 0px")),this.format(Z),!1,"0px",I)},prefix:!0,formatter:yi("0px 0px",!1,!0)}),Ii("backgroundPosition",{defaultValue:"0 0",parser:function(L,Z,ot,rt,I,Mt){var st,Pt,Ht,Ot,Tt,le,oe="background-position",te=G||jt(L,null),ve=this.format((te?b?te.getPropertyValue(oe+"-x")+" "+te.getPropertyValue(oe+"-y"):te.getPropertyValue(oe):L.currentStyle.backgroundPositionX+" "+L.currentStyle.backgroundPositionY)||"0 0"),he=this.format(Z);if(ve.indexOf("%")!==-1!=(he.indexOf("%")!==-1)&&he.split(",").length<2&&(le=ct(L,"backgroundImage").replace(Et,""),le&&le!=="none")){for(st=ve.split(" "),Pt=he.split(" "),ki.setAttribute("src",le),Ht=2;--Ht>-1;)ve=st[Ht],Ot=ve.indexOf("%")!==-1,Ot!==(Pt[Ht].indexOf("%")!==-1)&&(Tt=Ht===0?L.offsetWidth-ki.width:L.offsetHeight-ki.height,st[Ht]=Ot?parseFloat(ve)/100*Tt+"px":parseFloat(ve)/Tt*100+"%");ve=st.join(" ")}return this.parseComplex(L.style,ve,he,I,Mt)},formatter:tt}),Ii("backgroundSize",{defaultValue:"0 0",formatter:function(L){return L+="",L.substr(0,2)==="co"?L:tt(L.indexOf(" ")===-1?L+" "+L:L)}}),Ii("perspective",{defaultValue:"0px",prefix:!0}),Ii("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ii("transformStyle",{prefix:!0}),Ii("backfaceVisibility",{prefix:!0}),Ii("userSelect",{prefix:!0}),Ii("margin",{parser:Si("marginTop,marginRight,marginBottom,marginLeft")}),Ii("padding",{parser:Si("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ii("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(L,Z,ot,rt,I,Mt){var st,Pt,Ht;return 9>b?(Pt=L.currentStyle,Ht=8>b?" ":",",st="rect("+Pt.clipTop+Ht+Pt.clipRight+Ht+Pt.clipBottom+Ht+Pt.clipLeft+")",Z=this.format(Z).split(",").join(Ht)):(st=this.format(ct(L,this.p,G,!1,this.dflt)),Z=this.format(Z)),this.parseComplex(L.style,st,Z,I,Mt)}}),Ii("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ii("autoRound,strictUnits",{parser:function(L,Z,ot,rt,I){return I}}),Ii("border",{defaultValue:"0px solid #000",parser:function(L,Z,ot,rt,I,Mt){var st=ct(L,"borderTopWidth",G,!1,"0px"),Pt=this.format(Z).split(" "),Ht=Pt[0].replace(z,"");return Ht!=="px"&&(st=parseFloat(st)/pt(L,"borderTopWidth",1,Ht)+Ht),this.parseComplex(L.style,this.format(st+" "+ct(L,"borderTopStyle",G,!1,"solid")+" "+ct(L,"borderTopColor",G,!1,"#000")),Pt.join(" "),I,Mt)},color:!0,formatter:function(L){var Z=L.split(" ");return Z[0]+" "+(Z[1]||"solid")+" "+(L.match(we)||["#000"])[0]}}),Ii("borderWidth",{parser:Si("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ii("float,cssFloat,styleFloat",{parser:function(L,Z,ot,rt,I,Mt){var st=L.style,Pt="cssFloat"in st?"cssFloat":"styleFloat";return new Ei(st,Pt,0,0,I,-1,ot,!1,0,st[Pt],Z)}});var il=function(L){var Z,ot=this.t,rt=ot.filter||ct(this.data,"filter")||"",I=this.s+this.c*L|0;I===100&&(rt.indexOf("atrix(")===-1&&rt.indexOf("radient(")===-1&&rt.indexOf("oader(")===-1?(ot.removeAttribute("filter"),Z=!ct(this.data,"filter")):(ot.filter=rt.replace(ft,""),Z=!0)),Z||(this.xn1&&(ot.filter=rt=rt||"alpha(opacity="+I+")"),rt.indexOf("pacity")===-1?I===0&&this.xn1||(ot.filter=rt+" alpha(opacity="+I+")"):ot.filter=rt.replace(W,"opacity="+I))};Ii("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(L,Z,ot,rt,I,Mt){var st=parseFloat(ct(L,"opacity",G,!1,"1")),Pt=L.style,Ht=ot==="autoAlpha";return typeof Z=="string"&&Z.charAt(1)==="="&&(Z=(Z.charAt(0)==="-"?-1:1)*parseFloat(Z.substr(2))+st),Ht&&st===1&&ct(L,"visibility",G)==="hidden"&&Z!==0&&(st=0),di?I=new Ei(Pt,"opacity",st,Z-st,I):(I=new Ei(Pt,"opacity",100*st,100*(Z-st),I),I.xn1=Ht?1:0,Pt.zoom=1,I.type=2,I.b="alpha(opacity="+I.s+")",I.e="alpha(opacity="+(I.s+I.c)+")",I.data=L,I.plugin=Mt,I.setRatio=il),Ht&&(I=new Ei(Pt,"visibility",0,0,I,-1,null,!1,0,st!==0?"inherit":"hidden",Z===0?"hidden":"inherit"),I.xs0="inherit",rt._overwriteProps.push(I.n),rt._overwriteProps.push(ot)),I}});var Io=function(L,Z){Z&&(L.removeProperty?((Z.substr(0,2)==="ms"||Z.substr(0,6)==="webkit")&&(Z="-"+Z),L.removeProperty(Z.replace(zt,"-$1").toLowerCase())):L.removeAttribute(Z))},Oo=function(L){if(this.t._gsClassPT=this,L===1||L===0){this.t.setAttribute("class",L===0?this.b:this.e);for(var Z=this.data,ot=this.t.style;Z;)Z.v?ot[Z.p]=Z.v:Io(ot,Z.p),Z=Z._next;L===1&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Ii("className",{parser:function(L,Z,ot,rt,I,Mt,st){var Pt,Ht,Ot,Tt,le,oe=L.getAttribute("class")||"",te=L.style.cssText;if(I=rt._classNamePT=new Ei(L,ot,0,0,I,2),I.setRatio=Oo,I.pr=-11,p=!0,I.b=oe,Ht=ie(L,G),Ot=L._gsClassPT){for(Tt={},le=Ot.data;le;)Tt[le.p]=1,le=le._next;Ot.setRatio(1)}return L._gsClassPT=I,I.e=Z.charAt(1)!=="="?Z:oe.replace(new RegExp("(?:\\s|^)"+Z.substr(2)+"(?![\\w-])"),"")+(Z.charAt(0)==="+"?" "+Z.substr(2):""),L.setAttribute("class",I.e),Pt=Kt(L,Ht,ie(L),st,Tt),L.setAttribute("class",oe),I.data=Pt.firstMPT,L.style.cssText=te,I=I.xfirst=rt.parse(L,Pt.difs,I,Mt)}});var Ca=function(L){if((L===1||L===0)&&this.data._totalTime===this.data._totalDuration&&this.data.data!=="isFromStart"){var Z,ot,rt,I,Mt,st=this.t.style,Pt=E.transform.parse;if(this.e==="all")st.cssText="",I=!0;else for(Z=this.e.split(" ").join("").split(","),rt=Z.length;--rt>-1;)ot=Z[rt],E[ot]&&(E[ot].parse===Pt?I=!0:ot=ot==="transformOrigin"?Ro:E[ot].p),Io(st,ot);I&&(Io(st,gn),Mt=this.t._gsTransform,Mt&&(Mt.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ii("clearProps",{parser:function(L,Z,ot,rt,I){return I=new Ei(L,ot,0,0,I,2),I.setRatio=Ca,I.e=Z,I.pr=-10,I.data=rt._tween,p=!0,I}}),U="bezier,throwProps,physicsProps,physics2D".split(","),nn=U.length;nn--;)fo(U[nn]);U=C.prototype,U._firstPT=U._lastParsedTransform=U._transform=null,U._onInitTween=function(L,Z,ot,rt){if(!L.nodeType)return!1;this._target=A=L,this._tween=ot,this._vars=Z,d=rt,Y=Z.autoRound,p=!1,J=Z.suffixMap||C.suffixMap,G=jt(L,""),m=this._overwriteProps;var I,Mt,st,Pt,Ht,Ot,Tt,le,oe,te=L.style;if(H&&te.zIndex===""&&(I=ct(L,"zIndex",G),(I==="auto"||I==="")&&this._addLazySet(te,"zIndex",0)),typeof Z=="string"&&(Pt=te.cssText,I=ie(L,G),te.cssText=Pt+";"+Z,I=Kt(L,I,ie(L)).difs,!di&&ht.test(Z)&&(I.opacity=parseFloat(RegExp.$1)),Z=I,te.cssText=Pt),Z.className?this._firstPT=Mt=E.className.parse(L,Z.className,"className",this,null,null,Z):this._firstPT=Mt=this.parse(L,Z,null),this._transformType){for(oe=this._transformType===3,gn?K&&(H=!0,te.zIndex===""&&(Tt=ct(L,"zIndex",G),(Tt==="auto"||Tt==="")&&this._addLazySet(te,"zIndex",0)),q&&this._addLazySet(te,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(oe?"visible":"hidden"))):te.zoom=1,st=Mt;st&&st._next;)st=st._next;le=new Ei(L,"transform",0,0,null,2),this._linkCSSP(le,null,st),le.setRatio=gn?el:Aa,le.data=this._transform||zr(L,G,!0),le.tween=ot,le.pr=-1,m.pop()}if(p){for(;Mt;){for(Ot=Mt._next,st=Pt;st&&st.pr>Mt.pr;)st=st._next;(Mt._prev=st?st._prev:Ht)?Mt._prev._next=Mt:Pt=Mt,(Mt._next=st)?st._prev=Mt:Ht=Mt,Mt=Ot}this._firstPT=Pt}return!0},U.parse=function(L,Z,ot,rt){var I,Mt,st,Pt,Ht,Ot,Tt,le,oe,te,ve=L.style;for(I in Z){if(Ot=Z[I],typeof Ot=="function"&&(Ot=Ot(d,A)),Mt=E[I])ot=Mt.parse(L,Ot,I,this,ot,rt,Z);else{if(I.substr(0,2)==="--"){this._tween._propLookup[I]=this._addTween.call(this._tween,L.style,"setProperty",jt(L).getPropertyValue(I)+"",Ot+"",I,!1,I);continue}Ht=ct(L,I,G)+"",oe=typeof Ot=="string",I==="color"||I==="fill"||I==="stroke"||I.indexOf("Color")!==-1||oe&>.test(Ot)?(oe||(Ot=Re(Ot),Ot=(Ot.length>3?"rgba(":"rgb(")+Ot.join(",")+")"),ot=Xn(ve,I,Ht,Ot,!0,"transparent",ot,0,rt)):oe&&ue.test(Ot)?ot=Xn(ve,I,Ht,Ot,!0,null,ot,0,rt):(st=parseFloat(Ht),Tt=st||st===0?Ht.substr((st+"").length):"",(Ht===""||Ht==="auto")&&(I==="width"||I==="height"?(st=nt(L,I,G),Tt="px"):I==="left"||I==="top"?(st=Lt(L,I,G),Tt="px"):(st=I!=="opacity"?0:1,Tt="")),te=oe&&Ot.charAt(1)==="=",te?(Pt=parseInt(Ot.charAt(0)+"1",10),Ot=Ot.substr(2),Pt*=parseFloat(Ot),le=Ot.replace(z,"")):(Pt=parseFloat(Ot),le=oe?Ot.replace(z,""):""),le===""&&(le=I in J?J[I]:Tt),Ot=Pt||Pt===0?(te?Pt+st:Pt)+le:Z[I],Tt!==le&&(le!==""||I==="lineHeight")&&(Pt||Pt===0)&&st&&(st=pt(L,I,st,Tt),le==="%"?(st/=pt(L,I,100,"%")/100,Z.strictUnits!==!0&&(Ht=st+"%")):le==="em"||le==="rem"||le==="vw"||le==="vh"?st/=pt(L,I,1,le):le!=="px"&&(Pt=pt(L,I,Pt,le),le="px"),te&&(Pt||Pt===0)&&(Ot=Pt+st+le)),te&&(Pt+=st),!st&&st!==0||!Pt&&Pt!==0?ve[I]!==void 0&&(Ot||Ot+""!="NaN"&&Ot!=null)?(ot=new Ei(ve,I,Pt||st||0,0,ot,-1,I,!1,0,Ht,Ot),ot.xs0=Ot!=="none"||I!=="display"&&I.indexOf("Style")===-1?Ot:Ht):hn("invalid "+I+" tween value: "+Z[I]):(ot=new Ei(ve,I,st,Pt-st,ot,0,I,Y!==!1&&(le==="px"||I==="zIndex"),0,Ht,Ot),ot.xs0=le))}rt&&ot&&!ot.plugin&&(ot.plugin=rt)}return ot},U.setRatio=function(L){var Z,ot,rt,I=this._firstPT,Mt=1e-6;if(L!==1||this._tween._time!==this._tween._duration&&this._tween._time!==0)if(L||this._tween._time!==this._tween._duration&&this._tween._time!==0||this._tween._rawPrevTime===-1e-6)for(;I;){if(Z=I.c*L+I.s,I.r?Z=I.r(Z):Mt>Z&&Z>-Mt&&(Z=0),I.type)if(I.type===1)if(rt=I.l,rt===2)I.t[I.p]=I.xs0+Z+I.xs1+I.xn1+I.xs2;else if(rt===3)I.t[I.p]=I.xs0+Z+I.xs1+I.xn1+I.xs2+I.xn2+I.xs3;else if(rt===4)I.t[I.p]=I.xs0+Z+I.xs1+I.xn1+I.xs2+I.xn2+I.xs3+I.xn3+I.xs4;else if(rt===5)I.t[I.p]=I.xs0+Z+I.xs1+I.xn1+I.xs2+I.xn2+I.xs3+I.xn3+I.xs4+I.xn4+I.xs5;else{for(ot=I.xs0+Z+I.xs1,rt=1;rt<I.l;rt++)ot+=I["xn"+rt]+I["xs"+(rt+1)];I.t[I.p]=ot}else I.type===-1?I.t[I.p]=I.xs0:I.setRatio&&I.setRatio(L);else I.t[I.p]=Z+I.xs0;I=I._next}else for(;I;)I.type!==2?I.t[I.p]=I.b:I.setRatio(L),I=I._next;else for(;I;){if(I.type!==2)if(I.r&&I.type!==-1)if(Z=I.r(I.s+I.c),I.type){if(I.type===1){for(rt=I.l,ot=I.xs0+Z+I.xs1,rt=1;rt<I.l;rt++)ot+=I["xn"+rt]+I["xs"+(rt+1)];I.t[I.p]=ot}}else I.t[I.p]=Z+I.xs0;else I.t[I.p]=I.e;else I.setRatio(L);I=I._next}},U._enableTransforms=function(L){this._transform=this._transform||zr(this._target,G,!0),this._transformType=this._transform.svg&&Ir||!L&&this._transformType!==3?2:3};var Pa=function(L){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};U._addLazySet=function(L,Z,ot){var rt=this._firstPT=new Ei(L,Z,0,0,this._firstPT,2);rt.e=ot,rt.setRatio=Pa,rt.data=this},U._linkCSSP=function(L,Z,ot,rt){return L&&(Z&&(Z._prev=L),L._next&&(L._next._prev=L._prev),L._prev?L._prev._next=L._next:this._firstPT===L&&(this._firstPT=L._next,rt=!0),ot?ot._next=L:rt||this._firstPT!==null||(this._firstPT=L),L._next=Z,L._prev=ot),L},U._mod=function(L){for(var Z=this._firstPT;Z;)typeof L[Z.p]=="function"&&(Z.r=L[Z.p]),Z=Z._next},U._kill=function(L){var Z,ot,rt,I=L;if(L.autoAlpha||L.alpha){I={};for(ot in L)I[ot]=L[ot];I.opacity=1,I.autoAlpha&&(I.visibility=1)}for(L.className&&(Z=this._classNamePT)&&(rt=Z.xfirst,rt&&rt._prev?this._linkCSSP(rt._prev,Z._next,rt._prev._prev):rt===this._firstPT&&(this._firstPT=Z._next),Z._next&&this._linkCSSP(Z._next,Z._next._next,rt._prev),this._classNamePT=null),Z=this._firstPT;Z;)Z.plugin&&Z.plugin!==ot&&Z.plugin._kill&&(Z.plugin._kill(L),ot=Z.plugin),Z=Z._next;return T.prototype._kill.call(this,I)};var Mr=function(L,Z,ot){var rt,I,Mt,st;if(L.slice)for(I=L.length;--I>-1;)Mr(L[I],Z,ot);else for(rt=L.childNodes,I=rt.length;--I>-1;)Mt=rt[I],st=Mt.type,Mt.style&&(Z.push(ie(Mt)),ot&&ot.push(Mt)),st!==1&&st!==9&&st!==11||!Mt.childNodes.length||Mr(Mt,Z,ot)};return C.cascadeTo=function(L,Z,ot){var rt,I,Mt,st,Pt=$.to(L,Z,ot),Ht=[Pt],Ot=[],Tt=[],le=[],oe=$._internals.reservedProps;for(L=Pt._targets||Pt.target,Mr(L,Ot,le),Pt.render(Z,!0,!0),Mr(L,Tt),Pt.render(0,!0,!0),Pt._enabled(!0),rt=le.length;--rt>-1;)if(I=Kt(le[rt],Ot[rt],Tt[rt]),I.firstMPT){I=I.difs;for(Mt in ot)oe[Mt]&&(I[Mt]=ot[Mt]);st={};for(Mt in I)st[Mt]=Ot[rt][Mt];Ht.push($.fromTo(le[rt],Z,st,I))}return Ht},T.activate([C]),C},!0),function(){var T=on._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(G,m,C){return this._tween=C,!0}}),$=function(G){var m=1>G?Math.pow(10,(G+"").length-2):1;return function(C){return(Math.round(C/G)*G*m|0)/m}},p=function(G,m){for(;G;)G.f||G.blob||(G.m=m||Math.round),G=G._next},J=T.prototype;J._onInitAllProps=function(){var G,m,C,O,E=this._tween,U=E.vars.roundProps,Y={},H=E._propLookup.roundProps;if(typeof U!="object"||U.push)for(typeof U=="string"&&(U=U.split(",")),C=U.length;--C>-1;)Y[U[C]]=Math.round;else for(O in U)Y[O]=$(U[O]);for(O in Y)for(G=E._firstPT;G;)m=G._next,G.pg?G.t._mod(Y):G.n===O&&(G.f===2&&G.t?p(G.t._firstPT,Y[O]):(this._add(G.t,O,G.s,G.c,Y[O]),m&&(m._prev=G._prev),G._prev?G._prev._next=m:E._firstPT===G&&(E._firstPT=m),G._next=G._prev=null,E._propLookup[O]=H)),G=m;return!1},J._add=function(G,m,C,O,E){this._addTween(G,m,C,C+O,m,E||Math.round),this._overwriteProps.push(m)}}(),function(){on._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(T,$,p,J){var G,m;if(typeof T.setAttribute!="function")return!1;for(G in $)m=$[G],typeof m=="function"&&(m=m(J,T)),this._addTween(T,"setAttribute",T.getAttribute(G)+"",m+"",G,!1,G),this._overwriteProps.push(G);return!0}})}(),on._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(T,$,p,J){typeof $!="object"&&($={rotation:$}),this.finals={};var G,m,C,O,E,U,Y=$.useRadians===!0?2*Math.PI:360,H=1e-6;for(G in $)G!=="useRadians"&&(O=$[G],typeof O=="function"&&(O=O(J,T)),U=(O+"").split("_"),m=U[0],C=parseFloat(typeof T[G]!="function"?T[G]:T[G.indexOf("set")||typeof T["get"+G.substr(3)]!="function"?G:"get"+G.substr(3)]()),O=this.finals[G]=typeof m=="string"&&m.charAt(1)==="="?C+parseInt(m.charAt(0)+"1",10)*Number(m.substr(2)):Number(m)||0,E=O-C,U.length&&(m=U.join("_"),m.indexOf("short")!==-1&&(E%=Y,E!==E%(Y/2)&&(E=0>E?E+Y:E-Y)),m.indexOf("_cw")!==-1&&0>E?E=(E+9999999999*Y)%Y-(E/Y|0)*Y:m.indexOf("ccw")!==-1&&E>0&&(E=(E-9999999999*Y)%Y-(E/Y|0)*Y)),(E>H||-H>E)&&(this._addTween(T,G,C,C+E,G),this._overwriteProps.push(G)));return!0},set:function(T){var $;if(T!==1)this._super.setRatio.call(this,T);else for($=this._firstPT;$;)$.f?$.t[$.p](this.finals[$.p]):$.t[$.p]=this.finals[$.p],$=$._next}})._autoCSS=!0,on._gsDefine("easing.Back",["easing.Ease"],function(T){var $,p,J,G,m=on.GreenSockGlobals||on,C=m.com.greensock,O=2*Math.PI,E=Math.PI/2,U=C._class,Y=function(g,M){var x=U("easing."+g,function(){},!0),F=x.prototype=new T;return F.constructor=x,F.getRatio=M,x},H=T.register||function(){},K=function(g,M,x,F,z){var W=U("easing."+g,{easeOut:new M,easeIn:new x,easeInOut:new F},!0);return H(W,g),W},B=function(g,M,x){this.t=g,this.v=M,x&&(this.next=x,x.prev=this,this.c=x.v-M,this.gap=x.t-g)},q=function(g,M){var x=U("easing."+g,function(z){this._p1=z||z===0?z:1.70158,this._p2=1.525*this._p1},!0),F=x.prototype=new T;return F.constructor=x,F.getRatio=M,F.config=function(z){return new x(z)},x},b=K("Back",q("BackOut",function(g){return(g-=1)*g*((this._p1+1)*g+this._p1)+1}),q("BackIn",function(g){return g*g*((this._p1+1)*g-this._p1)}),q("BackInOut",function(g){return(g*=2)<1?.5*g*g*((this._p2+1)*g-this._p2):.5*((g-=2)*g*((this._p2+1)*g+this._p2)+2)})),A=U("easing.SlowMo",function(g,M,x){M=M||M===0?M:.7,g==null?g=.7:g>1&&(g=1),this._p=g!==1?M:0,this._p1=(1-g)/2,this._p2=g,this._p3=this._p1+this._p2,this._calcEnd=x===!0},!0),d=A.prototype=new T;return d.constructor=A,d.getRatio=function(g){var M=g+(.5-g)*this._p;return g<this._p1?this._calcEnd?1-(g=1-g/this._p1)*g:M-(g=1-g/this._p1)*g*g*g*M:g>this._p3?this._calcEnd?g===1?0:1-(g=(g-this._p3)/this._p1)*g:M+(g-M)*(g=(g-this._p3)/this._p1)*g*g*g:this._calcEnd?1:M},A.ease=new A(.7,.7),d.config=A.config=function(g,M,x){return new A(g,M,x)},$=U("easing.SteppedEase",function(g,M){g=g||1,this._p1=1/g,this._p2=g+(M?0:1),this._p3=M?1:0},!0),d=$.prototype=new T,d.constructor=$,d.getRatio=function(g){return 0>g?g=0:g>=1&&(g=.999999999),((this._p2*g|0)+this._p3)*this._p1},d.config=$.config=function(g,M){return new $(g,M)},p=U("easing.ExpoScaleEase",function(g,M,x){this._p1=Math.log(M/g),this._p2=M-g,this._p3=g,this._ease=x},!0),d=p.prototype=new T,d.constructor=p,d.getRatio=function(g){return this._ease&&(g=this._ease.getRatio(g)),(this._p3*Math.exp(this._p1*g)-this._p3)/this._p2},d.config=p.config=function(g,M,x){return new p(g,M,x)},J=U("easing.RoughEase",function(g){g=g||{};for(var M,x,F,z,W,ht,ft=g.taper||"none",gt=[],zt=0,lt=0|(g.points||20),Et=lt,D=g.randomize!==!1,Bt=g.clamp===!0,Ct=g.template instanceof T?g.template:null,Rt=typeof g.strength=="number"?.4*g.strength:.4;--Et>-1;)M=D?Math.random():1/lt*Et,x=Ct?Ct.getRatio(M):M,ft==="none"?F=Rt:ft==="out"?(z=1-M,F=z*z*Rt):ft==="in"?F=M*M*Rt:.5>M?(z=2*M,F=z*z*.5*Rt):(z=2*(1-M),F=z*z*.5*Rt),D?x+=Math.random()*F-.5*F:Et%2?x+=.5*F:x-=.5*F,Bt&&(x>1?x=1:0>x&&(x=0)),gt[zt++]={x:M,y:x};for(gt.sort(function(ge,ue){return ge.x-ue.x}),ht=new B(1,1,null),Et=lt;--Et>-1;)W=gt[Et],ht=new B(W.x,W.y,ht);this._prev=new B(0,0,ht.t!==0?ht:ht.next)},!0),d=J.prototype=new T,d.constructor=J,d.getRatio=function(g){var M=this._prev;if(g>M.t){for(;M.next&&g>=M.t;)M=M.next;M=M.prev}else for(;M.prev&&g<=M.t;)M=M.prev;return this._prev=M,M.v+(g-M.t)/M.gap*M.c},d.config=function(g){return new J(g)},J.ease=new J,K("Bounce",Y("BounceOut",function(g){return 1/2.75>g?7.5625*g*g:2/2.75>g?7.5625*(g-=1.5/2.75)*g+.75:2.5/2.75>g?7.5625*(g-=2.25/2.75)*g+.9375:7.5625*(g-=2.625/2.75)*g+.984375}),Y("BounceIn",function(g){return(g=1-g)<1/2.75?1-7.5625*g*g:2/2.75>g?1-(7.5625*(g-=1.5/2.75)*g+.75):2.5/2.75>g?1-(7.5625*(g-=2.25/2.75)*g+.9375):1-(7.5625*(g-=2.625/2.75)*g+.984375)}),Y("BounceInOut",function(g){var M=.5>g;return g=M?1-2*g:2*g-1,g=1/2.75>g?7.5625*g*g:2/2.75>g?7.5625*(g-=1.5/2.75)*g+.75:2.5/2.75>g?7.5625*(g-=2.25/2.75)*g+.9375:7.5625*(g-=2.625/2.75)*g+.984375,M?.5*(1-g):.5*g+.5})),K("Circ",Y("CircOut",function(g){return Math.sqrt(1-(g-=1)*g)}),Y("CircIn",function(g){return-(Math.sqrt(1-g*g)-1)}),Y("CircInOut",function(g){return(g*=2)<1?-.5*(Math.sqrt(1-g*g)-1):.5*(Math.sqrt(1-(g-=2)*g)+1)})),G=function(g,M,x){var F=U("easing."+g,function(W,ht){this._p1=W>=1?W:1,this._p2=(ht||x)/(1>W?W:1),this._p3=this._p2/O*(Math.asin(1/this._p1)||0),this._p2=O/this._p2},!0),z=F.prototype=new T;return z.constructor=F,z.getRatio=M,z.config=function(W,ht){return new F(W,ht)},F},K("Elastic",G("ElasticOut",function(g){return this._p1*Math.pow(2,-10*g)*Math.sin((g-this._p3)*this._p2)+1},.3),G("ElasticIn",function(g){return-(this._p1*Math.pow(2,10*(g-=1))*Math.sin((g-this._p3)*this._p2))},.3),G("ElasticInOut",function(g){return(g*=2)<1?-.5*(this._p1*Math.pow(2,10*(g-=1))*Math.sin((g-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(g-=1))*Math.sin((g-this._p3)*this._p2)*.5+1},.45)),K("Expo",Y("ExpoOut",function(g){return 1-Math.pow(2,-10*g)}),Y("ExpoIn",function(g){return Math.pow(2,10*(g-1))-.001}),Y("ExpoInOut",function(g){return(g*=2)<1?.5*Math.pow(2,10*(g-1)):.5*(2-Math.pow(2,-10*(g-1)))})),K("Sine",Y("SineOut",function(g){return Math.sin(g*E)}),Y("SineIn",function(g){return-Math.cos(g*E)+1}),Y("SineInOut",function(g){return-.5*(Math.cos(Math.PI*g)-1)})),U("easing.EaseLookup",{find:function(g){return T.map[g]}},!0),H(m.SlowMo,"SlowMo","ease,"),H(J,"RoughEase","ease,"),H($,"SteppedEase","ease,"),b},!0)}),on._gsDefine&&on._gsQueue.pop()(),function(T,$){var p={},J=T.document,G=T.GreenSockGlobals=T.GreenSockGlobals||T,m=G[$];if(m)return typeof module<"u"&&module.exports&&(module.exports=m),m;var C,O,E,U,Y,H=function(w){var X,nt=w.split("."),tt=G;for(X=0;X<nt.length;X++)tt[nt[X]]=tt=tt[nt[X]]||{};return tt},K=H("com.greensock"),B=1e-10,q=function(w){var X,nt=[],tt=w.length;for(X=0;X!==tt;nt.push(w[X++]));return nt},b=function(){},A=function(){var w=Object.prototype.toString,X=w.call([]);return function(nt){return nt!=null&&(nt instanceof Array||typeof nt=="object"&&!!nt.push&&w.call(nt)===X)}}(),d={},g=function(w,X,nt,tt){this.sc=d[w]?d[w].sc:[],d[w]=this,this.gsClass=null,this.func=nt;var vt=[];this.check=function(Gt){for(var Xt,Wt,Ne,Re,de=X.length,we=de;--de>-1;)(Xt=d[X[de]]||new g(X[de],[])).gsClass?(vt[de]=Xt.gsClass,we--):Gt&&Xt.sc.push(this);if(we===0&&nt){if(Wt=("com.greensock."+w).split("."),Ne=Wt.pop(),Re=H(Wt.join("."))[Ne]=this.gsClass=nt.apply(nt,vt),tt)if(G[Ne]=p[Ne]=Re,typeof module<"u"&&module.exports)if(w===$){module.exports=p[$]=Re;for(de in p)Re[de]=p[de]}else p[$]&&(p[$][Ne]=Re);else typeof define=="function"&&define.amd&&define((T.GreenSockAMDPath?T.GreenSockAMDPath+"/":"")+w.split(".").pop(),[],function(){return Re});for(de=0;de<this.sc.length;de++)this.sc[de].check()}},this.check(!0)},M=T._gsDefine=function(w,X,nt,tt){return new g(w,X,nt,tt)},x=K._class=function(w,X,nt){return X=X||function(){},M(w,[],function(){return X},nt),X};M.globals=G;var F=[0,0,1,1],z=x("easing.Ease",function(w,X,nt,tt){this._func=w,this._type=nt||0,this._power=tt||0,this._params=X?F.concat(X):F},!0),W=z.map={},ht=z.register=function(w,X,nt,tt){for(var vt,Gt,Xt,Wt,Ne=X.split(","),Re=Ne.length,de=(nt||"easeIn,easeOut,easeInOut").split(",");--Re>-1;)for(Gt=Ne[Re],vt=tt?x("easing."+Gt,null,!0):K.easing[Gt]||{},Xt=de.length;--Xt>-1;)Wt=de[Xt],W[Gt+"."+Wt]=W[Wt+Gt]=vt[Wt]=w.getRatio?w:w[Wt]||new w};for(E=z.prototype,E._calcEnd=!1,E.getRatio=function(w){if(this._func)return this._params[0]=w,this._func.apply(null,this._params);var X=this._type,nt=this._power,tt=X===1?1-w:X===2?w:.5>w?2*w:2*(1-w);return nt===1?tt*=tt:nt===2?tt*=tt*tt:nt===3?tt*=tt*tt*tt:nt===4&&(tt*=tt*tt*tt*tt),X===1?1-tt:X===2?tt:.5>w?tt/2:1-tt/2},C=["Linear","Quad","Cubic","Quart","Quint,Strong"],O=C.length;--O>-1;)E=C[O]+",Power"+O,ht(new z(null,null,1,O),E,"easeOut",!0),ht(new z(null,null,2,O),E,"easeIn"+(O===0?",easeNone":"")),ht(new z(null,null,3,O),E,"easeInOut");W.linear=K.easing.Linear.easeIn,W.swing=K.easing.Quad.easeInOut;var ft=x("events.EventDispatcher",function(w){this._listeners={},this._eventTarget=w||this});E=ft.prototype,E.addEventListener=function(w,X,nt,tt,vt){vt=vt||0;var Gt,Xt,Wt=this._listeners[w],Ne=0;for(this!==U||Y||U.wake(),Wt==null&&(this._listeners[w]=Wt=[]),Xt=Wt.length;--Xt>-1;)Gt=Wt[Xt],Gt.c===X&&Gt.s===nt?Wt.splice(Xt,1):Ne===0&&Gt.pr<vt&&(Ne=Xt+1);Wt.splice(Ne,0,{c:X,s:nt,up:tt,pr:vt})},E.removeEventListener=function(w,X){var nt,tt=this._listeners[w];if(tt){for(nt=tt.length;--nt>-1;)if(tt[nt].c===X)return void tt.splice(nt,1)}},E.dispatchEvent=function(w){var X,nt,tt,vt=this._listeners[w];if(vt)for(X=vt.length,X>1&&(vt=vt.slice(0)),nt=this._eventTarget;--X>-1;)tt=vt[X],tt&&(tt.up?tt.c.call(tt.s||nt,{type:w,target:nt}):tt.c.call(tt.s||nt))};var gt=T.requestAnimationFrame,zt=T.cancelAnimationFrame,lt=Date.now||function(){return new Date().getTime()},Et=lt();for(C=["ms","moz","webkit","o"],O=C.length;--O>-1&&!gt;)gt=T[C[O]+"RequestAnimationFrame"],zt=T[C[O]+"CancelAnimationFrame"]||T[C[O]+"CancelRequestAnimationFrame"];x("Ticker",function(w,X){var nt,tt,vt,Gt,Xt,Wt=this,Ne=lt(),Re=X!==!1&>?"auto":!1,de=500,we=33,yi="tick",Si=function(ni){var Ei,Tr,Xn=lt()-Et;Xn>de&&(Ne+=Xn-we),Et+=Xn,Wt.time=(Et-Ne)/1e3,Ei=Wt.time-Xt,(!nt||Ei>0||ni===!0)&&(Wt.frame++,Xt+=Ei+(Ei>=Gt?.004:Gt-Ei),Tr=!0),ni!==!0&&(vt=tt(Si)),Tr&&Wt.dispatchEvent(yi)};ft.call(Wt),Wt.time=Wt.frame=0,Wt.tick=function(){Si(!0)},Wt.lagSmoothing=function(ni,Ei){return arguments.length?(de=ni||1/B,void(we=Math.min(Ei,de,0))):1/B>de},Wt.sleep=function(){vt!=null&&(Re&&zt?zt(vt):clearTimeout(vt),tt=b,vt=null,Wt===U&&(Y=!1))},Wt.wake=function(ni){vt!==null?Wt.sleep():ni?Ne+=-Et+(Et=lt()):Wt.frame>10&&(Et=lt()-de+5),tt=nt===0?b:Re&>?gt:function(Ei){return setTimeout(Ei,1e3*(Xt-Wt.time)+1|0)},Wt===U&&(Y=!0),Si(2)},Wt.fps=function(ni){return arguments.length?(nt=ni,Gt=1/(nt||60),Xt=this.time+Gt,void Wt.wake()):nt},Wt.useRAF=function(ni){return arguments.length?(Wt.sleep(),Re=ni,void Wt.fps(nt)):Re},Wt.fps(w),setTimeout(function(){Re==="auto"&&Wt.frame<5&&(J||{}).visibilityState!=="hidden"&&Wt.useRAF(!1)},1500)}),E=K.Ticker.prototype=new K.events.EventDispatcher,E.constructor=K.Ticker;var D=x("core.Animation",function(w,X){if(this.vars=X=X||{},this._duration=this._totalDuration=w||0,this._delay=Number(X.delay)||0,this._timeScale=1,this._active=X.immediateRender===!0,this.data=X.data,this._reversed=X.reversed===!0,R){Y||U.wake();var nt=this.vars.useFrames?Ji:R;nt.add(this,nt._time),this.vars.paused&&this.paused(!0)}});U=D.ticker=new K.Ticker,E=D.prototype,E._dirty=E._gc=E._initted=E._paused=!1,E._totalTime=E._time=0,E._rawPrevTime=-1,E._next=E._last=E._onUpdate=E._timeline=E.timeline=null,E._paused=!1;var Bt=function(){Y&<()-Et>2e3&&((J||{}).visibilityState!=="hidden"||!U.lagSmoothing())&&U.wake();var w=setTimeout(Bt,2e3);w.unref&&w.unref()};Bt(),E.play=function(w,X){return w!=null&&this.seek(w,X),this.reversed(!1).paused(!1)},E.pause=function(w,X){return w!=null&&this.seek(w,X),this.paused(!0)},E.resume=function(w,X){return w!=null&&this.seek(w,X),this.paused(!1)},E.seek=function(w,X){return this.totalTime(Number(w),X!==!1)},E.restart=function(w,X){return this.reversed(!1).paused(!1).totalTime(w?-this._delay:0,X!==!1,!0)},E.reverse=function(w,X){return w!=null&&this.seek(w||this.totalDuration(),X),this.reversed(!0).paused(!1)},E.render=function(w,X,nt){},E.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},E.isActive=function(){var w,X=this._timeline,nt=this._startTime;return!X||!this._gc&&!this._paused&&X.isActive()&&(w=X.rawTime(!0))>=nt&&w<nt+this.totalDuration()/this._timeScale-1e-7},E._enabled=function(w,X){return Y||U.wake(),this._gc=!w,this._active=this.isActive(),X!==!0&&(w&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!w&&this.timeline&&this._timeline._remove(this,!0)),!1},E._kill=function(w,X){return this._enabled(!1,!1)},E.kill=function(w,X){return this._kill(w,X),this},E._uncache=function(w){for(var X=w?this:this.timeline;X;)X._dirty=!0,X=X.timeline;return this},E._swapSelfInParams=function(w){for(var X=w.length,nt=w.concat();--X>-1;)w[X]==="{self}"&&(nt[X]=this);return nt},E._callback=function(w){var X=this.vars,nt=X[w],tt=X[w+"Params"],vt=X[w+"Scope"]||X.callbackScope||this,Gt=tt?tt.length:0;switch(Gt){case 0:nt.call(vt);break;case 1:nt.call(vt,tt[0]);break;case 2:nt.call(vt,tt[0],tt[1]);break;default:nt.apply(vt,tt)}},E.eventCallback=function(w,X,nt,tt){if((w||"").substr(0,2)==="on"){var vt=this.vars;if(arguments.length===1)return vt[w];X==null?delete vt[w]:(vt[w]=X,vt[w+"Params"]=A(nt)&&nt.join("").indexOf("{self}")!==-1?this._swapSelfInParams(nt):nt,vt[w+"Scope"]=tt),w==="onUpdate"&&(this._onUpdate=X)}return this},E.delay=function(w){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+w-this._delay),this._delay=w,this):this._delay},E.duration=function(w){return arguments.length?(this._duration=this._totalDuration=w,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&w!==0&&this.totalTime(this._totalTime*(w/this._duration),!0),this):(this._dirty=!1,this._duration)},E.totalDuration=function(w){return this._dirty=!1,arguments.length?this.duration(w):this._totalDuration},E.time=function(w,X){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(w>this._duration?this._duration:w,X)):this._time},E.totalTime=function(w,X,nt){if(Y||U.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>w&&!nt&&(w+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var tt=this._totalDuration,vt=this._timeline;if(w>tt&&!nt&&(w=tt),this._startTime=(this._paused?this._pauseTime:vt._time)-(this._reversed?tt-w:w)/this._timeScale,vt._dirty||this._uncache(!1),vt._timeline)for(;vt._timeline;)vt._timeline._time!==(vt._startTime+vt._totalTime)/vt._timeScale&&vt.totalTime(vt._totalTime,!0),vt=vt._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==w||this._duration===0)&&(Ft.length&&jt(),this.render(w,X,!1),Ft.length&&jt())}return this},E.progress=E.totalProgress=function(w,X){var nt=this.duration();return arguments.length?this.totalTime(nt*w,X):nt?this._time/nt:this.ratio},E.startTime=function(w){return arguments.length?(w!==this._startTime&&(this._startTime=w,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,w-this._delay)),this):this._startTime},E.endTime=function(w){return this._startTime+(w!=0?this.totalDuration():this.duration())/this._timeScale},E.timeScale=function(w){if(!arguments.length)return this._timeScale;var X,nt;for(w=w||B,this._timeline&&this._timeline.smoothChildTiming&&(X=this._pauseTime,nt=X||X===0?X:this._timeline.totalTime(),this._startTime=nt-(nt-this._startTime)*this._timeScale/w),this._timeScale=w,nt=this.timeline;nt&&nt.timeline;)nt._dirty=!0,nt.totalDuration(),nt=nt.timeline;return this},E.reversed=function(w){return arguments.length?(w!=this._reversed&&(this._reversed=w,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},E.paused=function(w){if(!arguments.length)return this._paused;var X,nt,tt=this._timeline;return w!=this._paused&&tt&&(Y||w||U.wake(),X=tt.rawTime(),nt=X-this._pauseTime,!w&&tt.smoothChildTiming&&(this._startTime+=nt,this._uncache(!1)),this._pauseTime=w?X:null,this._paused=w,this._active=this.isActive(),!w&&nt!==0&&this._initted&&this.duration()&&(X=tt.smoothChildTiming?this._totalTime:(X-this._startTime)/this._timeScale,this.render(X,X===this._totalTime,!0))),this._gc&&!w&&this._enabled(!0,!1),this};var Ct=x("core.SimpleTimeline",function(w){D.call(this,0,w),this.autoRemoveChildren=this.smoothChildTiming=!0});E=Ct.prototype=new D,E.constructor=Ct,E.kill()._gc=!1,E._first=E._last=E._recent=null,E._sortChildren=!1,E.add=E.insert=function(w,X,nt,tt){var vt,Gt;if(w._startTime=Number(X||0)+w._delay,w._paused&&this!==w._timeline&&(w._pauseTime=this.rawTime()-(w._timeline.rawTime()-w._pauseTime)),w.timeline&&w.timeline._remove(w,!0),w.timeline=w._timeline=this,w._gc&&w._enabled(!0,!0),vt=this._last,this._sortChildren)for(Gt=w._startTime;vt&&vt._startTime>Gt;)vt=vt._prev;return vt?(w._next=vt._next,vt._next=w):(w._next=this._first,this._first=w),w._next?w._next._prev=w:this._last=w,w._prev=vt,this._recent=w,this._timeline&&this._uncache(!0),this},E._remove=function(w,X){return w.timeline===this&&(X||w._enabled(!1,!0),w._prev?w._prev._next=w._next:this._first===w&&(this._first=w._next),w._next?w._next._prev=w._prev:this._last===w&&(this._last=w._prev),w._next=w._prev=w.timeline=null,w===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},E.render=function(w,X,nt){var tt,vt=this._first;for(this._totalTime=this._time=this._rawPrevTime=w;vt;)tt=vt._next,(vt._active||w>=vt._startTime&&!vt._paused&&!vt._gc)&&(vt._reversed?vt.render((vt._dirty?vt.totalDuration():vt._totalDuration)-(w-vt._startTime)*vt._timeScale,X,nt):vt.render((w-vt._startTime)*vt._timeScale,X,nt)),vt=tt},E.rawTime=function(){return Y||U.wake(),this._totalTime};var Rt=x("TweenLite",function(w,X,nt){if(D.call(this,X,nt),this.render=Rt.prototype.render,w==null)throw"Cannot tween a null target.";this.target=w=typeof w!="string"?w:Rt.selector(w)||w;var tt,vt,Gt,Xt=w.jquery||w.length&&w!==T&&w[0]&&(w[0]===T||w[0].nodeType&&w[0].style&&!w.nodeType),Wt=this.vars.overwrite;if(this._overwrite=Wt=Wt==null?hn[Rt.defaultOverwrite]:typeof Wt=="number"?Wt>>0:hn[Wt],(Xt||w instanceof Array||w.push&&A(w))&&typeof w[0]!="number")for(this._targets=Gt=q(w),this._propLookup=[],this._siblings=[],tt=0;tt<Gt.length;tt++)vt=Gt[tt],vt?typeof vt!="string"?vt.length&&vt!==T&&vt[0]&&(vt[0]===T||vt[0].nodeType&&vt[0].style&&!vt.nodeType)?(Gt.splice(tt--,1),this._targets=Gt=Gt.concat(q(vt))):(this._siblings[tt]=ct(vt,this,!1),Wt===1&&this._siblings[tt].length>1&&Lt(vt,this,null,1,this._siblings[tt])):(vt=Gt[tt--]=Rt.selector(vt),typeof vt=="string"&&Gt.splice(tt+1,1)):Gt.splice(tt--,1);else this._propLookup={},this._siblings=ct(w,this,!1),Wt===1&&this._siblings.length>1&&Lt(w,this,null,1,this._siblings);(this.vars.immediateRender||X===0&&this._delay===0&&this.vars.immediateRender!==!1)&&(this._time=-B,this.render(Math.min(0,-this._delay)))},!0),ge=function(w){return w&&w.length&&w!==T&&w[0]&&(w[0]===T||w[0].nodeType&&w[0].style&&!w.nodeType)},ue=function(w,X){var nt,tt={};for(nt in w)Ri[nt]||nt in X&&nt!=="transform"&&nt!=="x"&&nt!=="y"&&nt!=="width"&&nt!=="height"&&nt!=="className"&&nt!=="border"||!(!Ie[nt]||Ie[nt]&&Ie[nt]._autoCSS)||(tt[nt]=w[nt],delete w[nt]);w.css=tt};E=Rt.prototype=new D,E.constructor=Rt,E.kill()._gc=!1,E.ratio=0,E._firstPT=E._targets=E._overwrittenProps=E._startAt=null,E._notifyPluginsOfEnabled=E._lazy=!1,Rt.version="2.0.2",Rt.defaultEase=E._ease=new z(null,null,1,1),Rt.defaultOverwrite="auto",Rt.ticker=U,Rt.autoSleep=120,Rt.lagSmoothing=function(w,X){U.lagSmoothing(w,X)},Rt.selector=T.$||T.jQuery||function(w){var X=T.$||T.jQuery;return X?(Rt.selector=X,X(w)):(J||(J=T.document),J?J.querySelectorAll?J.querySelectorAll(w):J.getElementById(w.charAt(0)==="#"?w.substr(1):w):w)};var Ft=[],Dt={},kt=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Fe=/[\+-]=-?[\.\d]/,xe=function(w){for(var X,nt=this._firstPT,tt=1e-6;nt;)X=nt.blob?w===1&&this.end!=null?this.end:w?this.join(""):this.start:nt.c*w+nt.s,nt.m?X=nt.m.call(this._tween,X,this._target||nt.t,this._tween):tt>X&&X>-tt&&!nt.blob&&(X=0),nt.f?nt.fp?nt.t[nt.p](nt.fp,X):nt.t[nt.p](X):nt.t[nt.p]=X,nt=nt._next},Zt=function(w,X,nt,tt){var vt,Gt,Xt,Wt,Ne,Re,de,we=[],yi=0,Si="",ni=0;for(we.start=w,we.end=X,w=we[0]=w+"",X=we[1]=X+"",nt&&(nt(we),w=we[0],X=we[1]),we.length=0,vt=w.match(kt)||[],Gt=X.match(kt)||[],tt&&(tt._next=null,tt.blob=1,we._firstPT=we._applyPT=tt),Ne=Gt.length,Wt=0;Ne>Wt;Wt++)de=Gt[Wt],Re=X.substr(yi,X.indexOf(de,yi)-yi),Si+=Re||!Wt?Re:",",yi+=Re.length,ni?ni=(ni+1)%5:Re.substr(-5)==="rgba("&&(ni=1),de===vt[Wt]||vt.length<=Wt?Si+=de:(Si&&(we.push(Si),Si=""),Xt=parseFloat(vt[Wt]),we.push(Xt),we._firstPT={_next:we._firstPT,t:we,p:we.length-1,s:Xt,c:(de.charAt(1)==="="?parseInt(de.charAt(0)+"1",10)*parseFloat(de.substr(2)):parseFloat(de)-Xt)||0,f:0,m:ni&&4>ni?Math.round:0}),yi+=de.length;return Si+=X.substr(yi),Si&&we.push(Si),we.setRatio=xe,Fe.test(X)&&(we.end=null),we},ti=function(w,X,nt,tt,vt,Gt,Xt,Wt,Ne){typeof tt=="function"&&(tt=tt(Ne||0,w));var Re,de=typeof w[X],we=de!=="function"?"":X.indexOf("set")||typeof w["get"+X.substr(3)]!="function"?X:"get"+X.substr(3),yi=nt!=="get"?nt:we?Xt?w[we](Xt):w[we]():w[X],Si=typeof tt=="string"&&tt.charAt(1)==="=",ni={t:w,p:X,s:yi,f:de==="function",pg:0,n:vt||X,m:Gt?typeof Gt=="function"?Gt:Math.round:0,pr:0,c:Si?parseInt(tt.charAt(0)+"1",10)*parseFloat(tt.substr(2)):parseFloat(tt)-yi||0};return(typeof yi!="number"||typeof tt!="number"&&!Si)&&(Xt||isNaN(yi)||!Si&&isNaN(tt)||typeof yi=="boolean"||typeof tt=="boolean"?(ni.fp=Xt,Re=Zt(yi,Si?parseFloat(ni.s)+ni.c+(ni.s+"").replace(/[0-9\-\.]/g,""):tt,Wt||Rt.defaultStringFilter,ni),ni={t:Re,p:"setRatio",s:0,c:1,f:2,pg:0,n:vt||X,pr:0,m:0}):(ni.s=parseFloat(yi),Si||(ni.c=parseFloat(tt)-ni.s||0))),ni.c?((ni._next=this._firstPT)&&(ni._next._prev=ni),this._firstPT=ni,ni):void 0},ki=Rt._internals={isArray:A,isSelector:ge,lazyTweens:Ft,blobDif:Zt},Ie=Rt._plugins={},Ge=ki.tweenLookup={},di=0,Ri=ki.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},hn={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Ji=D._rootFramesTimeline=new Ct,R=D._rootTimeline=new Ct,Jt=30,jt=ki.lazyRender=function(){var w,X=Ft.length;for(Dt={};--X>-1;)w=Ft[X],w&&w._lazy!==!1&&(w.render(w._lazy[0],w._lazy[1],!0),w._lazy=!1);Ft.length=0};R._startTime=U.time,Ji._startTime=U.frame,R._active=Ji._active=!0,setTimeout(jt,1),D._updateRoot=Rt.render=function(){var w,X,nt;if(Ft.length&&jt(),R.render((U.time-R._startTime)*R._timeScale,!1,!1),Ji.render((U.frame-Ji._startTime)*Ji._timeScale,!1,!1),Ft.length&&jt(),U.frame>=Jt){Jt=U.frame+(parseInt(Rt.autoSleep,10)||120);for(nt in Ge){for(X=Ge[nt].tweens,w=X.length;--w>-1;)X[w]._gc&&X.splice(w,1);X.length===0&&delete Ge[nt]}if(nt=R._first,(!nt||nt._paused)&&Rt.autoSleep&&!Ji._first&&U._listeners.tick.length===1){for(;nt&&nt._paused;)nt=nt._next;nt||U.sleep()}}},U.addEventListener("tick",D._updateRoot);var ct=function(w,X,nt){var tt,vt,Gt=w._gsTweenID;if(Ge[Gt||(w._gsTweenID=Gt="t"+di++)]||(Ge[Gt]={target:w,tweens:[]}),X&&(tt=Ge[Gt].tweens,tt[vt=tt.length]=X,nt))for(;--vt>-1;)tt[vt]===X&&tt.splice(vt,1);return Ge[Gt].tweens},pt=function(w,X,nt,tt){var vt,Gt,Xt=w.vars.onOverwrite;return Xt&&(vt=Xt(w,X,nt,tt)),Xt=Rt.onOverwrite,Xt&&(Gt=Xt(w,X,nt,tt)),vt!==!1&&Gt!==!1},Lt=function(w,X,nt,tt,vt){var Gt,Xt,Wt,Ne;if(tt===1||tt>=4){for(Ne=vt.length,Gt=0;Ne>Gt;Gt++)if((Wt=vt[Gt])!==X)Wt._gc||Wt._kill(null,w,X)&&(Xt=!0);else if(tt===5)break;return Xt}var Re,de=X._startTime+B,we=[],yi=0,Si=X._duration===0;for(Gt=vt.length;--Gt>-1;)(Wt=vt[Gt])===X||Wt._gc||Wt._paused||(Wt._timeline!==X._timeline?(Re=Re||ie(X,0,Si),ie(Wt,Re,Si)===0&&(we[yi++]=Wt)):Wt._startTime<=de&&Wt._startTime+Wt.totalDuration()/Wt._timeScale>de&&((Si||!Wt._initted)&&de-Wt._startTime<=2e-10||(we[yi++]=Wt)));for(Gt=yi;--Gt>-1;)if(Wt=we[Gt],Ne=Wt._firstPT,tt===2&&Wt._kill(nt,w,X)&&(Xt=!0),tt!==2||!Wt._firstPT&&Wt._initted&&Ne){if(tt!==2&&!pt(Wt,X))continue;Wt._enabled(!1,!1)&&(Xt=!0)}return Xt},ie=function(w,X,nt){for(var tt=w._timeline,vt=tt._timeScale,Gt=w._startTime;tt._timeline;){if(Gt+=tt._startTime,vt*=tt._timeScale,tt._paused)return-100;tt=tt._timeline}return Gt/=vt,Gt>X?Gt-X:nt&&Gt===X||!w._initted&&2*B>Gt-X?B:(Gt+=w.totalDuration()/w._timeScale/vt)>X+B?0:Gt-X-B};E._init=function(){var w,X,nt,tt,vt,Gt,Xt=this.vars,Wt=this._overwrittenProps,Ne=this._duration,Re=!!Xt.immediateRender,de=Xt.ease;if(Xt.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),vt={};for(tt in Xt.startAt)vt[tt]=Xt.startAt[tt];if(vt.data="isStart",vt.overwrite=!1,vt.immediateRender=!0,vt.lazy=Re&&Xt.lazy!==!1,vt.startAt=vt.delay=null,vt.onUpdate=Xt.onUpdate,vt.onUpdateParams=Xt.onUpdateParams,vt.onUpdateScope=Xt.onUpdateScope||Xt.callbackScope||this,this._startAt=Rt.to(this.target||{},0,vt),Re){if(this._time>0)this._startAt=null;else if(Ne!==0)return}}else if(Xt.runBackwards&&Ne!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(Re=!1),nt={};for(tt in Xt)Ri[tt]&&tt!=="autoCSS"||(nt[tt]=Xt[tt]);if(nt.overwrite=0,nt.data="isFromStart",nt.lazy=Re&&Xt.lazy!==!1,nt.immediateRender=Re,this._startAt=Rt.to(this.target,0,nt),Re){if(this._time===0)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=de=de?de instanceof z?de:typeof de=="function"?new z(de,Xt.easeParams):W[de]||Rt.defaultEase:Rt.defaultEase,Xt.easeParams instanceof Array&&de.config&&(this._ease=de.config.apply(de,Xt.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(Gt=this._targets.length,w=0;Gt>w;w++)this._initProps(this._targets[w],this._propLookup[w]={},this._siblings[w],Wt?Wt[w]:null,w)&&(X=!0);else X=this._initProps(this.target,this._propLookup,this._siblings,Wt,0);if(X&&Rt._onPluginEvent("_onInitAllProps",this),Wt&&(this._firstPT||typeof this.target!="function"&&this._enabled(!1,!1)),Xt.runBackwards)for(nt=this._firstPT;nt;)nt.s+=nt.c,nt.c=-nt.c,nt=nt._next;this._onUpdate=Xt.onUpdate,this._initted=!0},E._initProps=function(w,X,nt,tt,vt){var Gt,Xt,Wt,Ne,Re,de;if(w==null)return!1;Dt[w._gsTweenID]&&jt(),this.vars.css||w.style&&w!==T&&w.nodeType&&Ie.css&&this.vars.autoCSS!==!1&&ue(this.vars,w);for(Gt in this.vars)if(de=this.vars[Gt],Ri[Gt])de&&(de instanceof Array||de.push&&A(de))&&de.join("").indexOf("{self}")!==-1&&(this.vars[Gt]=de=this._swapSelfInParams(de,this));else if(Ie[Gt]&&(Ne=new Ie[Gt])._onInitTween(w,this.vars[Gt],this,vt)){for(this._firstPT=Re={_next:this._firstPT,t:Ne,p:"setRatio",s:0,c:1,f:1,n:Gt,pg:1,pr:Ne._priority,m:0},Xt=Ne._overwriteProps.length;--Xt>-1;)X[Ne._overwriteProps[Xt]]=this._firstPT;(Ne._priority||Ne._onInitAllProps)&&(Wt=!0),(Ne._onDisable||Ne._onEnable)&&(this._notifyPluginsOfEnabled=!0),Re._next&&(Re._next._prev=Re)}else X[Gt]=ti.call(this,w,Gt,"get",de,Gt,0,null,this.vars.stringFilter,vt);return tt&&this._kill(tt,w)?this._initProps(w,X,nt,tt,vt):this._overwrite>1&&this._firstPT&&nt.length>1&&Lt(w,this,X,this._overwrite,nt)?(this._kill(X,w),this._initProps(w,X,nt,tt,vt)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(Dt[w._gsTweenID]=!0),Wt)},E.render=function(w,X,nt){var tt,vt,Gt,Xt,Wt=this._time,Ne=this._duration,Re=this._rawPrevTime;if(w>=Ne-1e-7&&w>=0)this._totalTime=this._time=Ne,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(tt=!0,vt="onComplete",nt=nt||this._timeline.autoRemoveChildren),Ne===0&&(this._initted||!this.vars.lazy||nt)&&(this._startTime===this._timeline._duration&&(w=0),(0>Re||0>=w&&w>=-1e-7||Re===B&&this.data!=="isPause")&&Re!==w&&(nt=!0,Re>B&&(vt="onReverseComplete")),this._rawPrevTime=Xt=!X||w||Re===w?w:B);else if(1e-7>w)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(Wt!==0||Ne===0&&Re>0)&&(vt="onReverseComplete",tt=this._reversed),0>w&&(this._active=!1,Ne===0&&(this._initted||!this.vars.lazy||nt)&&(Re>=0&&(Re!==B||this.data!=="isPause")&&(nt=!0),this._rawPrevTime=Xt=!X||w||Re===w?w:B)),(!this._initted||this._startAt&&this._startAt.progress())&&(nt=!0);else if(this._totalTime=this._time=w,this._easeType){var de=w/Ne,we=this._easeType,yi=this._easePower;(we===1||we===3&&de>=.5)&&(de=1-de),we===3&&(de*=2),yi===1?de*=de:yi===2?de*=de*de:yi===3?de*=de*de*de:yi===4&&(de*=de*de*de*de),we===1?this.ratio=1-de:we===2?this.ratio=de:.5>w/Ne?this.ratio=de/2:this.ratio=1-de/2}else this.ratio=this._ease.getRatio(w/Ne);if(this._time!==Wt||nt){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!nt&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=Wt,this._rawPrevTime=Re,Ft.push(this),void(this._lazy=[w,X]);this._time&&!tt?this.ratio=this._ease.getRatio(this._time/Ne):tt&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==Wt&&w>=0&&(this._active=!0),Wt===0&&(this._startAt&&(w>=0?this._startAt.render(w,!0,nt):vt||(vt="_dummyGS")),this.vars.onStart&&(this._time!==0||Ne===0)&&(X||this._callback("onStart"))),Gt=this._firstPT;Gt;)Gt.f?Gt.t[Gt.p](Gt.c*this.ratio+Gt.s):Gt.t[Gt.p]=Gt.c*this.ratio+Gt.s,Gt=Gt._next;this._onUpdate&&(0>w&&this._startAt&&w!==-1e-4&&this._startAt.render(w,!0,nt),X||(this._time!==Wt||tt||nt)&&this._callback("onUpdate")),vt&&(!this._gc||nt)&&(0>w&&this._startAt&&!this._onUpdate&&w!==-1e-4&&this._startAt.render(w,!0,nt),tt&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!X&&this.vars[vt]&&this._callback(vt),Ne===0&&this._rawPrevTime===B&&Xt!==B&&(this._rawPrevTime=0))}},E._kill=function(w,X,nt){if(w==="all"&&(w=null),w==null&&(X==null||X===this.target))return this._lazy=!1,this._enabled(!1,!1);X=typeof X!="string"?X||this._targets||this.target:Rt.selector(X)||X;var tt,vt,Gt,Xt,Wt,Ne,Re,de,we,yi=nt&&this._time&&nt._startTime===this._startTime&&this._timeline===nt._timeline,Si=this._firstPT;if((A(X)||ge(X))&&typeof X[0]!="number")for(tt=X.length;--tt>-1;)this._kill(w,X[tt],nt)&&(Ne=!0);else{if(this._targets){for(tt=this._targets.length;--tt>-1;)if(X===this._targets[tt]){Wt=this._propLookup[tt]||{},this._overwrittenProps=this._overwrittenProps||[],vt=this._overwrittenProps[tt]=w?this._overwrittenProps[tt]||{}:"all";break}}else{if(X!==this.target)return!1;Wt=this._propLookup,vt=this._overwrittenProps=w?this._overwrittenProps||{}:"all"}if(Wt){if(Re=w||Wt,de=w!==vt&&vt!=="all"&&w!==Wt&&(typeof w!="object"||!w._tempKill),nt&&(Rt.onOverwrite||this.vars.onOverwrite)){for(Gt in Re)Wt[Gt]&&(we||(we=[]),we.push(Gt));if((we||!w)&&!pt(this,nt,X,we))return!1}for(Gt in Re)(Xt=Wt[Gt])&&(yi&&(Xt.f?Xt.t[Xt.p](Xt.s):Xt.t[Xt.p]=Xt.s,Ne=!0),Xt.pg&&Xt.t._kill(Re)&&(Ne=!0),Xt.pg&&Xt.t._overwriteProps.length!==0||(Xt._prev?Xt._prev._next=Xt._next:Xt===this._firstPT&&(this._firstPT=Xt._next),Xt._next&&(Xt._next._prev=Xt._prev),Xt._next=Xt._prev=null),delete Wt[Gt]),de&&(vt[Gt]=1);!this._firstPT&&this._initted&&Si&&this._enabled(!1,!1)}}return Ne},E.invalidate=function(){return this._notifyPluginsOfEnabled&&Rt._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-B,this.render(Math.min(0,-this._delay))),this},E._enabled=function(w,X){if(Y||U.wake(),w&&this._gc){var nt,tt=this._targets;if(tt)for(nt=tt.length;--nt>-1;)this._siblings[nt]=ct(tt[nt],this,!0);else this._siblings=ct(this.target,this,!0)}return D.prototype._enabled.call(this,w,X),this._notifyPluginsOfEnabled&&this._firstPT?Rt._onPluginEvent(w?"_onEnable":"_onDisable",this):!1},Rt.to=function(w,X,nt){return new Rt(w,X,nt)},Rt.from=function(w,X,nt){return nt.runBackwards=!0,nt.immediateRender=nt.immediateRender!=0,new Rt(w,X,nt)},Rt.fromTo=function(w,X,nt,tt){return tt.startAt=nt,tt.immediateRender=tt.immediateRender!=0&&nt.immediateRender!=0,new Rt(w,X,tt)},Rt.delayedCall=function(w,X,nt,tt,vt){return new Rt(X,0,{delay:w,onComplete:X,onCompleteParams:nt,callbackScope:tt,onReverseComplete:X,onReverseCompleteParams:nt,immediateRender:!1,lazy:!1,useFrames:vt,overwrite:0})},Rt.set=function(w,X){return new Rt(w,0,X)},Rt.getTweensOf=function(w,X){if(w==null)return[];w=typeof w!="string"?w:Rt.selector(w)||w;var nt,tt,vt,Gt;if((A(w)||ge(w))&&typeof w[0]!="number"){for(nt=w.length,tt=[];--nt>-1;)tt=tt.concat(Rt.getTweensOf(w[nt],X));for(nt=tt.length;--nt>-1;)for(Gt=tt[nt],vt=nt;--vt>-1;)Gt===tt[vt]&&tt.splice(nt,1)}else if(w._gsTweenID)for(tt=ct(w).concat(),nt=tt.length;--nt>-1;)(tt[nt]._gc||X&&!tt[nt].isActive())&&tt.splice(nt,1);return tt||[]},Rt.killTweensOf=Rt.killDelayedCallsTo=function(w,X,nt){typeof X=="object"&&(nt=X,X=!1);for(var tt=Rt.getTweensOf(w,X),vt=tt.length;--vt>-1;)tt[vt]._kill(nt,w)};var Kt=x("plugins.TweenPlugin",function(w,X){this._overwriteProps=(w||"").split(","),this._propName=this._overwriteProps[0],this._priority=X||0,this._super=Kt.prototype},!0);if(E=Kt.prototype,Kt.version="1.19.0",Kt.API=2,E._firstPT=null,E._addTween=ti,E.setRatio=xe,E._kill=function(w){var X,nt=this._overwriteProps,tt=this._firstPT;if(w[this._propName]!=null)this._overwriteProps=[];else for(X=nt.length;--X>-1;)w[nt[X]]!=null&&nt.splice(X,1);for(;tt;)w[tt.n]!=null&&(tt._next&&(tt._next._prev=tt._prev),tt._prev?(tt._prev._next=tt._next,tt._prev=null):this._firstPT===tt&&(this._firstPT=tt._next)),tt=tt._next;return!1},E._mod=E._roundProps=function(w){for(var X,nt=this._firstPT;nt;)X=w[this._propName]||nt.n!=null&&w[nt.n.split(this._propName+"_").join("")],X&&typeof X=="function"&&(nt.f===2?nt.t._applyPT.m=X:nt.m=X),nt=nt._next},Rt._onPluginEvent=function(w,X){var nt,tt,vt,Gt,Xt,Wt=X._firstPT;if(w==="_onInitAllProps"){for(;Wt;){for(Xt=Wt._next,tt=vt;tt&&tt.pr>Wt.pr;)tt=tt._next;(Wt._prev=tt?tt._prev:Gt)?Wt._prev._next=Wt:vt=Wt,(Wt._next=tt)?tt._prev=Wt:Gt=Wt,Wt=Xt}Wt=X._firstPT=vt}for(;Wt;)Wt.pg&&typeof Wt.t[w]=="function"&&Wt.t[w]()&&(nt=!0),Wt=Wt._next;return nt},Kt.activate=function(w){for(var X=w.length;--X>-1;)w[X].API===Kt.API&&(Ie[new w[X]()._propName]=w[X]);return!0},M.plugin=function(w){if(!(w&&w.propName&&w.init&&w.API))throw"illegal plugin definition.";var X,nt=w.propName,tt=w.priority||0,vt=w.overwriteProps,Gt={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},Xt=x("plugins."+nt.charAt(0).toUpperCase()+nt.substr(1)+"Plugin",function(){Kt.call(this,nt,tt),this._overwriteProps=vt||[]},w.global===!0),Wt=Xt.prototype=new Kt(nt);Wt.constructor=Xt,Xt.API=w.API;for(X in Gt)typeof w[X]=="function"&&(Wt[Gt[X]]=w[X]);return Xt.version=w.version,Kt.activate([Xt]),Xt},C=T._gsQueue){for(O=0;O<C.length;O++)C[O]();for(E in d)d[E].func||T.console.log("GSAP encountered missing dependency: "+E)}Y=!1}(typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window,"TweenMax");const Qu={class:"modal-background"},tc=["innerHTML"],ec={name:"MapModali"},Vh=oi.defineComponent({...ec,props:{},setup(T,{expose:$}){const p=oi.ref(""),J=oi.ref(""),G=C=>{J.value=C,p.value="five"},m=()=>{p.value=p.value+" out"};return oi.onMounted(()=>{}),$({text:J,show:G,hide:m}),(C,O)=>(oi.openBlock(),oi.createElementBlock("div",{id:"modal-container",class:oi.normalizeClass(p.value),onClick:m},[oi.createElementVNode("div",Qu,[oi.createElementVNode("div",{class:"modal",onClick:O[0]||(O[0]=E=>{E.stopPropagation()})},[oi.createElementVNode("p",{style:{"white-space":"pre-line","line-height":"1",margin:"0",color:"#fff"},innerHTML:J.value},null,8,tc)])])],2))}}),sg="",ic={class:"bim_background_plate"},nc={class:"content"},rc=oi.createElementVNode("canvas",{class:"landscape"},null,-1),oc={class:"content__title"},sc=oi.createElementVNode("div",{class:"overlay"},null,-1),ac={name:"BimBackgroundPlate"},jh=oi.defineComponent({...ac,setup(T){const $=()=>{let G=`
|
|
13
|
+
**/var ln=typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window;(ln._gsQueue||(ln._gsQueue=[])).push(function(){ln._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(w,l,o){var p=function(E){var L,x=[],M=E.length;for(L=0;L!==M;x.push(E[L++]));return x},d=function(E,L,x){var M,R,b=E.cycle;for(M in b)R=b[M],E[M]=typeof R=="function"?R(x,L[x]):R[x%R.length];delete E.cycle},u=function(E,L,x){o.call(this,E,L,x),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=u.prototype.render},m=1e-10,_=o._internals,T=_.isSelector,S=_.isArray,C=u.prototype=o.to({},.1,{}),I=[];u.version="2.0.2",C.constructor=u,C.kill()._gc=!1,u.killTweensOf=u.killDelayedCallsTo=o.killTweensOf,u.getTweensOf=o.getTweensOf,u.lagSmoothing=o.lagSmoothing,u.ticker=o.ticker,u.render=o.render,C.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),o.prototype.invalidate.call(this)},C.updateTo=function(E,L){var x,M=this.ratio,R=this.vars.immediateRender||E.immediateRender;L&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(x in E)this.vars[x]=E[x];if(this._initted||R){if(L)this._initted=!1,R&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&o._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var b=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(b,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||R)for(var F,B=1/(1-M),X=this._firstPT;X;)F=X.s+X.c,X.c*=B,X.s=F-X.c,X=X._next}return this},C.render=function(E,L,x){this._initted||this._duration===0&&this.vars.repeat&&this.invalidate();var M,R,b,F,B,X,$,Q,ft,Ct=this._dirty?this.totalDuration():this._totalDuration,it=this._time,yt=this._totalTime,G=this._cycle,Lt=this._duration,Et=this._rawPrevTime;if(E>=Ct-1e-7&&E>=0?(this._totalTime=Ct,this._cycle=this._repeat,this._yoyo&&1&this._cycle?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=Lt,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(M=!0,R="onComplete",x=x||this._timeline.autoRemoveChildren),Lt===0&&(this._initted||!this.vars.lazy||x)&&(this._startTime===this._timeline._duration&&(E=0),(0>Et||0>=E&&E>=-1e-7||Et===m&&this.data!=="isPause")&&Et!==E&&(x=!0,Et>m&&(R="onReverseComplete")),this._rawPrevTime=Q=!L||E||Et===E?E:m)):1e-7>E?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(yt!==0||Lt===0&&Et>0)&&(R="onReverseComplete",M=this._reversed),0>E&&(this._active=!1,Lt===0&&(this._initted||!this.vars.lazy||x)&&(Et>=0&&(x=!0),this._rawPrevTime=Q=!L||E||Et===E?E:m)),this._initted||(x=!0)):(this._totalTime=this._time=E,this._repeat!==0&&(F=Lt+this._repeatDelay,this._cycle=this._totalTime/F>>0,this._cycle!==0&&this._cycle===this._totalTime/F&&E>=yt&&this._cycle--,this._time=this._totalTime-this._cycle*F,this._yoyo&&1&this._cycle&&(this._time=Lt-this._time,ft=this._yoyoEase||this.vars.yoyoEase,ft&&(this._yoyoEase||(ft!==!0||this._initted?this._yoyoEase=ft=ft===!0?this._ease:ft instanceof Ease?ft:Ease.map[ft]:(ft=this.vars.ease,this._yoyoEase=ft=ft?ft instanceof Ease?ft:typeof ft=="function"?new Ease(ft,this.vars.easeParams):Ease.map[ft]||o.defaultEase:o.defaultEase)),this.ratio=ft?1-ft.getRatio((Lt-this._time)/Lt):0)),this._time>Lt?this._time=Lt:this._time<0&&(this._time=0)),this._easeType&&!ft?(B=this._time/Lt,X=this._easeType,$=this._easePower,(X===1||X===3&&B>=.5)&&(B=1-B),X===3&&(B*=2),$===1?B*=B:$===2?B*=B*B:$===3?B*=B*B*B:$===4&&(B*=B*B*B*B),X===1?this.ratio=1-B:X===2?this.ratio=B:this._time/Lt<.5?this.ratio=B/2:this.ratio=1-B/2):ft||(this.ratio=this._ease.getRatio(this._time/Lt))),it===this._time&&!x&&G===this._cycle)return void(yt!==this._totalTime&&this._onUpdate&&(L||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!x&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=it,this._totalTime=yt,this._rawPrevTime=Et,this._cycle=G,_.lazyTweens.push(this),void(this._lazy=[E,L]);!this._time||M||ft?M&&this._ease._calcEnd&&!ft&&(this.ratio=this._ease.getRatio(this._time===0?0:1)):this.ratio=this._ease.getRatio(this._time/Lt)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==it&&E>=0&&(this._active=!0),yt===0&&(this._initted===2&&E>0&&this._init(),this._startAt&&(E>=0?this._startAt.render(E,!0,x):R||(R="_dummyGS")),this.vars.onStart&&(this._totalTime!==0||Lt===0)&&(L||this._callback("onStart"))),b=this._firstPT;b;)b.f?b.t[b.p](b.c*this.ratio+b.s):b.t[b.p]=b.c*this.ratio+b.s,b=b._next;this._onUpdate&&(0>E&&this._startAt&&this._startTime&&this._startAt.render(E,!0,x),L||(this._totalTime!==yt||R)&&this._callback("onUpdate")),this._cycle!==G&&(L||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),R&&(!this._gc||x)&&(0>E&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(E,!0,x),M&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!L&&this.vars[R]&&this._callback(R),Lt===0&&this._rawPrevTime===m&&Q!==m&&(this._rawPrevTime=0))},u.to=function(E,L,x){return new u(E,L,x)},u.from=function(E,L,x){return x.runBackwards=!0,x.immediateRender=x.immediateRender!=0,new u(E,L,x)},u.fromTo=function(E,L,x,M){return M.startAt=x,M.immediateRender=M.immediateRender!=0&&x.immediateRender!=0,new u(E,L,M)},u.staggerTo=u.allTo=function(E,L,x,M,R,b,F){M=M||0;var B,X,$,Q,ft=0,Ct=[],it=function(){x.onComplete&&x.onComplete.apply(x.onCompleteScope||this,arguments),R.apply(F||x.callbackScope||this,b||I)},yt=x.cycle,G=x.startAt&&x.startAt.cycle;for(S(E)||(typeof E=="string"&&(E=o.selector(E)||E),T(E)&&(E=p(E))),E=E||[],0>M&&(E=p(E),E.reverse(),M*=-1),B=E.length-1,$=0;B>=$;$++){X={};for(Q in x)X[Q]=x[Q];if(yt&&(d(X,E,$),X.duration!=null&&(L=X.duration,delete X.duration)),G){G=X.startAt={};for(Q in x.startAt)G[Q]=x.startAt[Q];d(X.startAt,E,$)}X.delay=ft+(X.delay||0),$===B&&R&&(X.onComplete=it),Ct[$]=new u(E[$],L,X),ft+=M}return Ct},u.staggerFrom=u.allFrom=function(E,L,x,M,R,b,F){return x.runBackwards=!0,x.immediateRender=x.immediateRender!=0,u.staggerTo(E,L,x,M,R,b,F)},u.staggerFromTo=u.allFromTo=function(E,L,x,M,R,b,F,B){return M.startAt=x,M.immediateRender=M.immediateRender!=0&&x.immediateRender!=0,u.staggerTo(E,L,M,R,b,F,B)},u.delayedCall=function(E,L,x,M,R){return new u(L,0,{delay:E,onComplete:L,onCompleteParams:x,callbackScope:M,onReverseComplete:L,onReverseCompleteParams:x,immediateRender:!1,useFrames:R,overwrite:0})},u.set=function(E,L){return new u(E,0,L)},u.isTweening=function(E){return o.getTweensOf(E,!0).length>0};var N=function(E,L){for(var x=[],M=0,R=E._first;R;)R instanceof o?x[M++]=R:(L&&(x[M++]=R),x=x.concat(N(R,L)),M=x.length),R=R._next;return x},z=u.getAllTweens=function(E){return N(w._rootTimeline,E).concat(N(w._rootFramesTimeline,E))};u.killAll=function(E,L,x,M){L==null&&(L=!0),x==null&&(x=!0);var R,b,F,B=z(M!=0),X=B.length,$=L&&x&&M;for(F=0;X>F;F++)b=B[F],($||b instanceof l||(R=b.target===b.vars.onComplete)&&x||L&&!R)&&(E?b.totalTime(b._reversed?0:b.totalDuration()):b._enabled(!1,!1))},u.killChildTweensOf=function(E,L){if(E!=null){var x,M,R,b,F,B=_.tweenLookup;if(typeof E=="string"&&(E=o.selector(E)||E),T(E)&&(E=p(E)),S(E))for(b=E.length;--b>-1;)u.killChildTweensOf(E[b],L);else{x=[];for(R in B)for(M=B[R].target.parentNode;M;)M===E&&(x=x.concat(B[R].tweens)),M=M.parentNode;for(F=x.length,b=0;F>b;b++)L&&x[b].totalTime(x[b].totalDuration()),x[b]._enabled(!1,!1)}}};var U=function(E,L,x,M){L=L!==!1,x=x!==!1,M=M!==!1;for(var R,b,F=z(M),B=L&&x&&M,X=F.length;--X>-1;)b=F[X],(B||b instanceof l||(R=b.target===b.vars.onComplete)&&x||L&&!R)&&b.paused(E)};return u.pauseAll=function(E,L,x){U(!0,E,L,x)},u.resumeAll=function(E,L,x){U(!1,E,L,x)},u.globalTimeScale=function(E){var L=w._rootTimeline,x=o.ticker.time;return arguments.length?(E=E||m,L._startTime=x-(x-L._startTime)*L._timeScale/E,L=w._rootFramesTimeline,x=o.ticker.frame,L._startTime=x-(x-L._startTime)*L._timeScale/E,L._timeScale=w._rootTimeline._timeScale=E,E):L._timeScale},C.progress=function(E,L){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-E:E)+this._cycle*(this._duration+this._repeatDelay),L):this._time/this.duration()},C.totalProgress=function(E,L){return arguments.length?this.totalTime(this.totalDuration()*E,L):this._totalTime/this.totalDuration()},C.time=function(E,L){return arguments.length?(this._dirty&&this.totalDuration(),E>this._duration&&(E=this._duration),this._yoyo&&1&this._cycle?E=this._duration-E+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(E+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(E,L)):this._time},C.duration=function(E){return arguments.length?w.prototype.duration.call(this,E):this._duration},C.totalDuration=function(E){return arguments.length?this._repeat===-1?this:this.duration((E-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},C.repeat=function(E){return arguments.length?(this._repeat=E,this._uncache(!0)):this._repeat},C.repeatDelay=function(E){return arguments.length?(this._repeatDelay=E,this._uncache(!0)):this._repeatDelay},C.yoyo=function(E){return arguments.length?(this._yoyo=E,this):this._yoyo},u},!0),ln._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(w,l,o){var p=function(x){l.call(this,x),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var M,R,b=this.vars;for(R in b)M=b[R],T(M)&&M.join("").indexOf("{self}")!==-1&&(b[R]=this._swapSelfInParams(M));T(b.tweens)&&this.add(b.tweens,0,b.align,b.stagger)},d=1e-10,u=o._internals,m=p._internals={},_=u.isSelector,T=u.isArray,S=u.lazyTweens,C=u.lazyRender,I=ln._gsDefine.globals,N=function(x){var M,R={};for(M in x)R[M]=x[M];return R},z=function(x,M,R){var b,F,B=x.cycle;for(b in B)F=B[b],x[b]=typeof F=="function"?F(R,M[R]):F[R%F.length];delete x.cycle},U=m.pauseCallback=function(){},E=function(x){var M,R=[],b=x.length;for(M=0;M!==b;R.push(x[M++]));return R},L=p.prototype=new l;return p.version="2.0.2",L.constructor=p,L.kill()._gc=L._forcingPlayhead=L._hasPause=!1,L.to=function(x,M,R,b){var F=R.repeat&&I.TweenMax||o;return M?this.add(new F(x,M,R),b):this.set(x,R,b)},L.from=function(x,M,R,b){return this.add((R.repeat&&I.TweenMax||o).from(x,M,R),b)},L.fromTo=function(x,M,R,b,F){var B=b.repeat&&I.TweenMax||o;return M?this.add(B.fromTo(x,M,R,b),F):this.set(x,b,F)},L.staggerTo=function(x,M,R,b,F,B,X,$){var Q,ft,Ct=new p({onComplete:B,onCompleteParams:X,callbackScope:$,smoothChildTiming:this.smoothChildTiming}),it=R.cycle;for(typeof x=="string"&&(x=o.selector(x)||x),x=x||[],_(x)&&(x=E(x)),b=b||0,0>b&&(x=E(x),x.reverse(),b*=-1),ft=0;ft<x.length;ft++)Q=N(R),Q.startAt&&(Q.startAt=N(Q.startAt),Q.startAt.cycle&&z(Q.startAt,x,ft)),it&&(z(Q,x,ft),Q.duration!=null&&(M=Q.duration,delete Q.duration)),Ct.to(x[ft],M,Q,ft*b);return this.add(Ct,F)},L.staggerFrom=function(x,M,R,b,F,B,X,$){return R.immediateRender=R.immediateRender!=0,R.runBackwards=!0,this.staggerTo(x,M,R,b,F,B,X,$)},L.staggerFromTo=function(x,M,R,b,F,B,X,$,Q){return b.startAt=R,b.immediateRender=b.immediateRender!=0&&R.immediateRender!=0,this.staggerTo(x,M,b,F,B,X,$,Q)},L.call=function(x,M,R,b){return this.add(o.delayedCall(0,x,M,R),b)},L.set=function(x,M,R){return R=this._parseTimeOrLabel(R,0,!0),M.immediateRender==null&&(M.immediateRender=R===this._time&&!this._paused),this.add(new o(x,0,M),R)},p.exportRoot=function(x,M){x=x||{},x.smoothChildTiming==null&&(x.smoothChildTiming=!0);var R,b,F,B,X=new p(x),$=X._timeline;for(M==null&&(M=!0),$._remove(X,!0),X._startTime=0,X._rawPrevTime=X._time=X._totalTime=$._time,F=$._first;F;)B=F._next,M&&F instanceof o&&F.target===F.vars.onComplete||(b=F._startTime-F._delay,0>b&&(R=1),X.add(F,b)),F=B;return $.add(X,0),R&&X.totalDuration(),X},L.add=function(x,M,R,b){var F,B,X,$,Q,ft;if(typeof M!="number"&&(M=this._parseTimeOrLabel(M,0,!0,x)),!(x instanceof w)){if(x instanceof Array||x&&x.push&&T(x)){for(R=R||"normal",b=b||0,F=M,B=x.length,X=0;B>X;X++)T($=x[X])&&($=new p({tweens:$})),this.add($,F),typeof $!="string"&&typeof $!="function"&&(R==="sequence"?F=$._startTime+$.totalDuration()/$._timeScale:R==="start"&&($._startTime-=$.delay())),F+=b;return this._uncache(!0)}if(typeof x=="string")return this.addLabel(x,M);if(typeof x!="function")throw"Cannot add "+x+" into the timeline; it is not a tween, timeline, function, or string.";x=o.delayedCall(0,x)}if(l.prototype.add.call(this,x,M),x._time&&(F=Math.max(0,Math.min(x.totalDuration(),(this.rawTime()-x._startTime)*x._timeScale)),Math.abs(F-x._totalTime)>1e-5&&x.render(F,!1,!1)),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(Q=this,ft=Q.rawTime()>x._startTime;Q._timeline;)ft&&Q._timeline.smoothChildTiming?Q.totalTime(Q._totalTime,!0):Q._gc&&Q._enabled(!0,!1),Q=Q._timeline;return this},L.remove=function(x){if(x instanceof w){this._remove(x,!1);var M=x._timeline=x.vars.useFrames?w._rootFramesTimeline:w._rootTimeline;return x._startTime=(x._paused?x._pauseTime:M._time)-(x._reversed?x.totalDuration()-x._totalTime:x._totalTime)/x._timeScale,this}if(x instanceof Array||x&&x.push&&T(x)){for(var R=x.length;--R>-1;)this.remove(x[R]);return this}return typeof x=="string"?this.removeLabel(x):this.kill(null,x)},L._remove=function(x,M){l.prototype._remove.call(this,x,M);var R=this._last;return R?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},L.append=function(x,M){return this.add(x,this._parseTimeOrLabel(null,M,!0,x))},L.insert=L.insertMultiple=function(x,M,R,b){return this.add(x,M||0,R,b)},L.appendMultiple=function(x,M,R,b){return this.add(x,this._parseTimeOrLabel(null,M,!0,x),R,b)},L.addLabel=function(x,M){return this._labels[x]=this._parseTimeOrLabel(M),this},L.addPause=function(x,M,R,b){var F=o.delayedCall(0,U,R,b||this);return F.vars.onComplete=F.vars.onReverseComplete=M,F.data="isPause",this._hasPause=!0,this.add(F,x)},L.removeLabel=function(x){return delete this._labels[x],this},L.getLabelTime=function(x){return this._labels[x]!=null?this._labels[x]:-1},L._parseTimeOrLabel=function(x,M,R,b){var F,B;if(b instanceof w&&b.timeline===this)this.remove(b);else if(b&&(b instanceof Array||b.push&&T(b)))for(B=b.length;--B>-1;)b[B]instanceof w&&b[B].timeline===this&&this.remove(b[B]);if(F=typeof x!="number"||M?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,typeof M=="string")return this._parseTimeOrLabel(M,R&&typeof x=="number"&&this._labels[M]==null?x-F:0,R);if(M=M||0,typeof x!="string"||!isNaN(x)&&this._labels[x]==null)x==null&&(x=F);else{if(B=x.indexOf("="),B===-1)return this._labels[x]==null?R?this._labels[x]=F+M:M:this._labels[x]+M;M=parseInt(x.charAt(B-1)+"1",10)*Number(x.substr(B+1)),x=B>1?this._parseTimeOrLabel(x.substr(0,B-1),0,R):F}return Number(x)+M},L.seek=function(x,M){return this.totalTime(typeof x=="number"?x:this._parseTimeOrLabel(x),M!==!1)},L.stop=function(){return this.paused(!0)},L.gotoAndPlay=function(x,M){return this.play(x,M)},L.gotoAndStop=function(x,M){return this.pause(x,M)},L.render=function(x,M,R){this._gc&&this._enabled(!0,!1);var b,F,B,X,$,Q,ft,Ct=this._time,it=this._dirty?this.totalDuration():this._totalDuration,yt=this._startTime,G=this._timeScale,Lt=this._paused;if(Ct!==this._time&&(x+=this._time-Ct),x>=it-1e-7&&x>=0)this._totalTime=this._time=it,this._reversed||this._hasPausedChild()||(F=!0,X="onComplete",$=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=x&&x>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===d)&&this._rawPrevTime!==x&&this._first&&($=!0,this._rawPrevTime>d&&(X="onReverseComplete"))),this._rawPrevTime=this._duration||!M||x||this._rawPrevTime===x?x:d,x=it+1e-4;else if(1e-7>x)if(this._totalTime=this._time=0,(Ct!==0||this._duration===0&&this._rawPrevTime!==d&&(this._rawPrevTime>0||0>x&&this._rawPrevTime>=0))&&(X="onReverseComplete",F=this._reversed),0>x)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?($=F=!0,X="onReverseComplete"):this._rawPrevTime>=0&&this._first&&($=!0),this._rawPrevTime=x;else{if(this._rawPrevTime=this._duration||!M||x||this._rawPrevTime===x?x:d,x===0&&F)for(b=this._first;b&&b._startTime===0;)b._duration||(F=!1),b=b._next;x=0,this._initted||($=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!M){if(x>=Ct)for(b=this._first;b&&b._startTime<=x&&!Q;)b._duration||b.data!=="isPause"||b.ratio||b._startTime===0&&this._rawPrevTime===0||(Q=b),b=b._next;else for(b=this._last;b&&b._startTime>=x&&!Q;)b._duration||b.data==="isPause"&&b._rawPrevTime>0&&(Q=b),b=b._prev;Q&&(this._time=x=Q._startTime,this._totalTime=x+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=x}if(this._time!==Ct&&this._first||R||$||Q){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==Ct&&x>0&&(this._active=!0),Ct===0&&this.vars.onStart&&(this._time===0&&this._duration||M||this._callback("onStart")),ft=this._time,ft>=Ct)for(b=this._first;b&&(B=b._next,ft===this._time&&(!this._paused||Lt));)(b._active||b._startTime<=ft&&!b._paused&&!b._gc)&&(Q===b&&this.pause(),b._reversed?b.render((b._dirty?b.totalDuration():b._totalDuration)-(x-b._startTime)*b._timeScale,M,R):b.render((x-b._startTime)*b._timeScale,M,R)),b=B;else for(b=this._last;b&&(B=b._prev,ft===this._time&&(!this._paused||Lt));){if(b._active||b._startTime<=Ct&&!b._paused&&!b._gc){if(Q===b){for(Q=b._prev;Q&&Q.endTime()>this._time;)Q.render(Q._reversed?Q.totalDuration()-(x-Q._startTime)*Q._timeScale:(x-Q._startTime)*Q._timeScale,M,R),Q=Q._prev;Q=null,this.pause()}b._reversed?b.render((b._dirty?b.totalDuration():b._totalDuration)-(x-b._startTime)*b._timeScale,M,R):b.render((x-b._startTime)*b._timeScale,M,R)}b=B}this._onUpdate&&(M||(S.length&&C(),this._callback("onUpdate"))),X&&(this._gc||(yt===this._startTime||G!==this._timeScale)&&(this._time===0||it>=this.totalDuration())&&(F&&(S.length&&C(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!M&&this.vars[X]&&this._callback(X)))}},L._hasPausedChild=function(){for(var x=this._first;x;){if(x._paused||x instanceof p&&x._hasPausedChild())return!0;x=x._next}return!1},L.getChildren=function(x,M,R,b){b=b||-9999999999;for(var F=[],B=this._first,X=0;B;)B._startTime<b||(B instanceof o?M!==!1&&(F[X++]=B):(R!==!1&&(F[X++]=B),x!==!1&&(F=F.concat(B.getChildren(!0,M,R)),X=F.length))),B=B._next;return F},L.getTweensOf=function(x,M){var R,b,F=this._gc,B=[],X=0;for(F&&this._enabled(!0,!0),R=o.getTweensOf(x),b=R.length;--b>-1;)(R[b].timeline===this||M&&this._contains(R[b]))&&(B[X++]=R[b]);return F&&this._enabled(!1,!0),B},L.recent=function(){return this._recent},L._contains=function(x){for(var M=x.timeline;M;){if(M===this)return!0;M=M.timeline}return!1},L.shiftChildren=function(x,M,R){R=R||0;for(var b,F=this._first,B=this._labels;F;)F._startTime>=R&&(F._startTime+=x),F=F._next;if(M)for(b in B)B[b]>=R&&(B[b]+=x);return this._uncache(!0)},L._kill=function(x,M){if(!x&&!M)return this._enabled(!1,!1);for(var R=M?this.getTweensOf(M):this.getChildren(!0,!0,!1),b=R.length,F=!1;--b>-1;)R[b]._kill(x,M)&&(F=!0);return F},L.clear=function(x){var M=this.getChildren(!1,!0,!0),R=M.length;for(this._time=this._totalTime=0;--R>-1;)M[R]._enabled(!1,!1);return x!==!1&&(this._labels={}),this._uncache(!0)},L.invalidate=function(){for(var x=this._first;x;)x.invalidate(),x=x._next;return w.prototype.invalidate.call(this)},L._enabled=function(x,M){if(x===this._gc)for(var R=this._first;R;)R._enabled(x,!0),R=R._next;return l.prototype._enabled.call(this,x,M)},L.totalTime=function(x,M,R){this._forcingPlayhead=!0;var b=w.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,b},L.duration=function(x){return arguments.length?(this.duration()!==0&&x!==0&&this.timeScale(this._duration/x),this):(this._dirty&&this.totalDuration(),this._duration)},L.totalDuration=function(x){if(!arguments.length){if(this._dirty){for(var M,R,b=0,F=this._last,B=999999999999;F;)M=F._prev,F._dirty&&F.totalDuration(),F._startTime>B&&this._sortChildren&&!F._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(F,F._startTime-F._delay),this._calculatingDuration=0):B=F._startTime,F._startTime<0&&!F._paused&&(b-=F._startTime,this._timeline.smoothChildTiming&&(this._startTime+=F._startTime/this._timeScale,this._time-=F._startTime,this._totalTime-=F._startTime,this._rawPrevTime-=F._startTime),this.shiftChildren(-F._startTime,!1,-9999999999),B=0),R=F._startTime+F._totalDuration/F._timeScale,R>b&&(b=R),F=M;this._duration=this._totalDuration=b,this._dirty=!1}return this._totalDuration}return x&&this.totalDuration()?this.timeScale(this._totalDuration/x):this},L.paused=function(x){if(!x)for(var M=this._first,R=this._time;M;)M._startTime===R&&M.data==="isPause"&&(M._rawPrevTime=0),M=M._next;return w.prototype.paused.apply(this,arguments)},L.usesFrames=function(){for(var x=this._timeline;x._timeline;)x=x._timeline;return x===w._rootFramesTimeline},L.rawTime=function(x){return x&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(x)-this._startTime)*this._timeScale},p},!0),ln._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(w,l,o){var p=function(I){w.call(this,I),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},d=1e-10,u=l._internals,m=u.lazyTweens,_=u.lazyRender,T=ln._gsDefine.globals,S=new o(null,null,1,0),C=p.prototype=new w;return C.constructor=p,C.kill()._gc=!1,p.version="2.0.2",C.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),w.prototype.invalidate.call(this)},C.addCallback=function(I,N,z,U){return this.add(l.delayedCall(0,I,z,U),N)},C.removeCallback=function(I,N){if(I)if(N==null)this._kill(null,I);else for(var z=this.getTweensOf(I,!1),U=z.length,E=this._parseTimeOrLabel(N);--U>-1;)z[U]._startTime===E&&z[U]._enabled(!1,!1);return this},C.removePause=function(I){return this.removeCallback(w._internals.pauseCallback,I)},C.tweenTo=function(I,N){N=N||{};var z,U,E,L={ease:S,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},x=N.repeat&&T.TweenMax||l;for(U in N)L[U]=N[U];return L.time=this._parseTimeOrLabel(I),z=Math.abs(Number(L.time)-this._time)/this._timeScale||.001,E=new x(this,z,L),L.onStart=function(){E.target.paused(!0),E.vars.time===E.target.time()||z!==E.duration()||E.isFromTo||E.duration(Math.abs(E.vars.time-E.target.time())/E.target._timeScale).render(E.time(),!0,!0),N.onStart&&N.onStart.apply(N.onStartScope||N.callbackScope||E,N.onStartParams||[])},E},C.tweenFromTo=function(I,N,z){z=z||{},I=this._parseTimeOrLabel(I),z.startAt={onComplete:this.seek,onCompleteParams:[I],callbackScope:this},z.immediateRender=z.immediateRender!==!1;var U=this.tweenTo(N,z);return U.isFromTo=1,U.duration(Math.abs(U.vars.time-I)/this._timeScale||.001)},C.render=function(I,N,z){this._gc&&this._enabled(!0,!1);var U,E,L,x,M,R,b,F,B=this._time,X=this._dirty?this.totalDuration():this._totalDuration,$=this._duration,Q=this._totalTime,ft=this._startTime,Ct=this._timeScale,it=this._rawPrevTime,yt=this._paused,G=this._cycle;if(B!==this._time&&(I+=this._time-B),I>=X-1e-7&&I>=0)this._locked||(this._totalTime=X,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(E=!0,x="onComplete",M=!!this._timeline.autoRemoveChildren,this._duration===0&&(0>=I&&I>=-1e-7||0>it||it===d)&&it!==I&&this._first&&(M=!0,it>d&&(x="onReverseComplete"))),this._rawPrevTime=this._duration||!N||I||this._rawPrevTime===I?I:d,this._yoyo&&1&this._cycle?this._time=I=0:(this._time=$,I=$+1e-4);else if(1e-7>I)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(B!==0||$===0&&it!==d&&(it>0||0>I&&it>=0)&&!this._locked)&&(x="onReverseComplete",E=this._reversed),0>I)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(M=E=!0,x="onReverseComplete"):it>=0&&this._first&&(M=!0),this._rawPrevTime=I;else{if(this._rawPrevTime=$||!N||I||this._rawPrevTime===I?I:d,I===0&&E)for(U=this._first;U&&U._startTime===0;)U._duration||(E=!1),U=U._next;I=0,this._initted||(M=!0)}else if($===0&&0>it&&(M=!0),this._time=this._rawPrevTime=I,this._locked||(this._totalTime=I,this._repeat!==0&&(R=$+this._repeatDelay,this._cycle=this._totalTime/R>>0,this._cycle!==0&&this._cycle===this._totalTime/R&&I>=Q&&this._cycle--,this._time=this._totalTime-this._cycle*R,this._yoyo&&1&this._cycle&&(this._time=$-this._time),this._time>$?(this._time=$,I=$+1e-4):this._time<0?this._time=I=0:I=this._time)),this._hasPause&&!this._forcingPlayhead&&!N){if(I=this._time,I>=B||this._repeat&&G!==this._cycle)for(U=this._first;U&&U._startTime<=I&&!b;)U._duration||U.data!=="isPause"||U.ratio||U._startTime===0&&this._rawPrevTime===0||(b=U),U=U._next;else for(U=this._last;U&&U._startTime>=I&&!b;)U._duration||U.data==="isPause"&&U._rawPrevTime>0&&(b=U),U=U._prev;b&&b._startTime<$&&(this._time=I=b._startTime,this._totalTime=I+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==G&&!this._locked){var Lt=this._yoyo&&(1&G)!==0,Et=Lt===(this._yoyo&&(1&this._cycle)!==0),Pt=this._totalTime,ce=this._cycle,re=this._rawPrevTime,Ft=this._time;if(this._totalTime=G*$,this._cycle<G?Lt=!Lt:this._totalTime+=$,this._time=B,this._rawPrevTime=$===0?it-1e-4:it,this._cycle=G,this._locked=!0,B=Lt?0:$,this.render(B,N,$===0),N||this._gc||this.vars.onRepeat&&(this._cycle=ce,this._locked=!1,this._callback("onRepeat")),B!==this._time||(Et&&(this._cycle=G,this._locked=!0,B=Lt?$+1e-4:-1e-4,this.render(B,!0,!1)),this._locked=!1,this._paused&&!yt))return;this._time=Ft,this._totalTime=Pt,this._cycle=ce,this._rawPrevTime=re}if(!(this._time!==B&&this._first||z||M||b))return void(Q!==this._totalTime&&this._onUpdate&&(N||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==Q&&I>0&&(this._active=!0),Q===0&&this.vars.onStart&&(this._totalTime===0&&this._totalDuration||N||this._callback("onStart")),F=this._time,F>=B)for(U=this._first;U&&(L=U._next,F===this._time&&(!this._paused||yt));)(U._active||U._startTime<=this._time&&!U._paused&&!U._gc)&&(b===U&&this.pause(),U._reversed?U.render((U._dirty?U.totalDuration():U._totalDuration)-(I-U._startTime)*U._timeScale,N,z):U.render((I-U._startTime)*U._timeScale,N,z)),U=L;else for(U=this._last;U&&(L=U._prev,F===this._time&&(!this._paused||yt));){if(U._active||U._startTime<=B&&!U._paused&&!U._gc){if(b===U){for(b=U._prev;b&&b.endTime()>this._time;)b.render(b._reversed?b.totalDuration()-(I-b._startTime)*b._timeScale:(I-b._startTime)*b._timeScale,N,z),b=b._prev;b=null,this.pause()}U._reversed?U.render((U._dirty?U.totalDuration():U._totalDuration)-(I-U._startTime)*U._timeScale,N,z):U.render((I-U._startTime)*U._timeScale,N,z)}U=L}this._onUpdate&&(N||(m.length&&_(),this._callback("onUpdate"))),x&&(this._locked||this._gc||(ft===this._startTime||Ct!==this._timeScale)&&(this._time===0||X>=this.totalDuration())&&(E&&(m.length&&_(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!N&&this.vars[x]&&this._callback(x)))},C.getActive=function(I,N,z){I==null&&(I=!0),N==null&&(N=!0),z==null&&(z=!1);var U,E,L=[],x=this.getChildren(I,N,z),M=0,R=x.length;for(U=0;R>U;U++)E=x[U],E.isActive()&&(L[M++]=E);return L},C.getLabelAfter=function(I){I||I!==0&&(I=this._time);var N,z=this.getLabelsArray(),U=z.length;for(N=0;U>N;N++)if(z[N].time>I)return z[N].name;return null},C.getLabelBefore=function(I){I==null&&(I=this._time);for(var N=this.getLabelsArray(),z=N.length;--z>-1;)if(N[z].time<I)return N[z].name;return null},C.getLabelsArray=function(){var I,N=[],z=0;for(I in this._labels)N[z++]={time:this._labels[I],name:I};return N.sort(function(U,E){return U.time-E.time}),N},C.invalidate=function(){return this._locked=!1,w.prototype.invalidate.call(this)},C.progress=function(I,N){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&1&this._cycle?1-I:I)+this._cycle*(this._duration+this._repeatDelay),N):this._time/this.duration()||0},C.totalProgress=function(I,N){return arguments.length?this.totalTime(this.totalDuration()*I,N):this._totalTime/this.totalDuration()||0},C.totalDuration=function(I){return arguments.length?this._repeat!==-1&&I?this.timeScale(this.totalDuration()/I):this:(this._dirty&&(w.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},C.time=function(I,N){return arguments.length?(this._dirty&&this.totalDuration(),I>this._duration&&(I=this._duration),this._yoyo&&1&this._cycle?I=this._duration-I+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(I+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(I,N)):this._time},C.repeat=function(I){return arguments.length?(this._repeat=I,this._uncache(!0)):this._repeat},C.repeatDelay=function(I){return arguments.length?(this._repeatDelay=I,this._uncache(!0)):this._repeatDelay},C.yoyo=function(I){return arguments.length?(this._yoyo=I,this):this._yoyo},C.currentLabel=function(I){return arguments.length?this.seek(I,!0):this.getLabelBefore(this._time+1e-8)},p},!0),function(){var w=180/Math.PI,l=[],o=[],p=[],d={},u=ln._gsDefine.globals,m=function(x,M,R,b){R===b&&(R=b-(b-M)/1e6),x===M&&(M=x+(R-x)/1e6),this.a=x,this.b=M,this.c=R,this.d=b,this.da=b-x,this.ca=R-x,this.ba=M-x},_=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",T=function(x,M,R,b){var F={a:x},B={},X={},$={c:b},Q=(x+M)/2,ft=(M+R)/2,Ct=(R+b)/2,it=(Q+ft)/2,yt=(ft+Ct)/2,G=(yt-it)/8;return F.b=Q+(x-Q)/4,B.b=it+G,F.c=B.a=(F.b+B.b)/2,B.c=X.a=(it+yt)/2,X.b=yt-G,$.b=Ct+(b-Ct)/4,X.c=$.a=(X.b+$.b)/2,[F,B,X,$]},S=function(x,M,R,b,F){var B,X,$,Q,ft,Ct,it,yt,G,Lt,Et,Pt,ce,re=x.length-1,Ft=0,It=x[0].a;for(B=0;re>B;B++)ft=x[Ft],X=ft.a,$=ft.d,Q=x[Ft+1].d,F?(Et=l[B],Pt=o[B],ce=(Pt+Et)*M*.25/(b?.5:p[B]||.5),Ct=$-($-X)*(b?.5*M:Et!==0?ce/Et:0),it=$+(Q-$)*(b?.5*M:Pt!==0?ce/Pt:0),yt=$-(Ct+((it-Ct)*(3*Et/(Et+Pt)+.5)/4||0))):(Ct=$-($-X)*M*.5,it=$+(Q-$)*M*.5,yt=$-(Ct+it)/2),Ct+=yt,it+=yt,ft.c=G=Ct,B!==0?ft.b=It:ft.b=It=ft.a+.6*(ft.c-ft.a),ft.da=$-X,ft.ca=G-X,ft.ba=It-X,R?(Lt=T(X,It,G,$),x.splice(Ft,1,Lt[0],Lt[1],Lt[2],Lt[3]),Ft+=4):Ft++,It=it;ft=x[Ft],ft.b=It,ft.c=It+.4*(ft.d-It),ft.da=ft.d-ft.a,ft.ca=ft.c-ft.a,ft.ba=It-ft.a,R&&(Lt=T(ft.a,It,ft.c,ft.d),x.splice(Ft,1,Lt[0],Lt[1],Lt[2],Lt[3]))},C=function(x,M,R,b){var F,B,X,$,Q,ft,Ct=[];if(b)for(x=[b].concat(x),B=x.length;--B>-1;)typeof(ft=x[B][M])=="string"&&ft.charAt(1)==="="&&(x[B][M]=b[M]+Number(ft.charAt(0)+ft.substr(2)));if(F=x.length-2,0>F)return Ct[0]=new m(x[0][M],0,0,x[0][M]),Ct;for(B=0;F>B;B++)X=x[B][M],$=x[B+1][M],Ct[B]=new m(X,0,0,$),R&&(Q=x[B+2][M],l[B]=(l[B]||0)+($-X)*($-X),o[B]=(o[B]||0)+(Q-$)*(Q-$));return Ct[B]=new m(x[B][M],0,0,x[B+1][M]),Ct},I=function(x,M,R,b,F,B){var X,$,Q,ft,Ct,it,yt,G,Lt={},Et=[],Pt=B||x[0];F=typeof F=="string"?","+F+",":_,M==null&&(M=1);for($ in x[0])Et.push($);if(x.length>1){for(G=x[x.length-1],yt=!0,X=Et.length;--X>-1;)if($=Et[X],Math.abs(Pt[$]-G[$])>.05){yt=!1;break}yt&&(x=x.concat(),B&&x.unshift(B),x.push(x[1]),B=x[x.length-3])}for(l.length=o.length=p.length=0,X=Et.length;--X>-1;)$=Et[X],d[$]=F.indexOf(","+$+",")!==-1,Lt[$]=C(x,$,d[$],B);for(X=l.length;--X>-1;)l[X]=Math.sqrt(l[X]),o[X]=Math.sqrt(o[X]);if(!b){for(X=Et.length;--X>-1;)if(d[$])for(Q=Lt[Et[X]],it=Q.length-1,ft=0;it>ft;ft++)Ct=Q[ft+1].da/o[ft]+Q[ft].da/l[ft]||0,p[ft]=(p[ft]||0)+Ct*Ct;for(X=p.length;--X>-1;)p[X]=Math.sqrt(p[X])}for(X=Et.length,ft=R?4:1;--X>-1;)$=Et[X],Q=Lt[$],S(Q,M,R,b,d[$]),yt&&(Q.splice(0,ft),Q.splice(Q.length-ft,ft));return Lt},N=function(x,M,R){M=M||"soft";var b,F,B,X,$,Q,ft,Ct,it,yt,G,Lt={},Et=M==="cubic"?3:2,Pt=M==="soft",ce=[];if(Pt&&R&&(x=[R].concat(x)),x==null||x.length<Et+1)throw"invalid Bezier data";for(it in x[0])ce.push(it);for(Q=ce.length;--Q>-1;){for(it=ce[Q],Lt[it]=$=[],yt=0,Ct=x.length,ft=0;Ct>ft;ft++)b=R==null?x[ft][it]:typeof(G=x[ft][it])=="string"&&G.charAt(1)==="="?R[it]+Number(G.charAt(0)+G.substr(2)):Number(G),Pt&&ft>1&&Ct-1>ft&&($[yt++]=(b+$[yt-2])/2),$[yt++]=b;for(Ct=yt-Et+1,yt=0,ft=0;Ct>ft;ft+=Et)b=$[ft],F=$[ft+1],B=$[ft+2],X=Et===2?0:$[ft+3],$[yt++]=G=Et===3?new m(b,F,B,X):new m(b,(2*F+b)/3,(2*F+B)/3,B);$.length=yt}return Lt},z=function(x,M,R){for(var b,F,B,X,$,Q,ft,Ct,it,yt,G,Lt=1/R,Et=x.length;--Et>-1;)for(yt=x[Et],B=yt.a,X=yt.d-B,$=yt.c-B,Q=yt.b-B,b=F=0,Ct=1;R>=Ct;Ct++)ft=Lt*Ct,it=1-ft,b=F-(F=(ft*ft*X+3*it*(ft*$+it*Q))*ft),G=Et*R+Ct-1,M[G]=(M[G]||0)+b*b},U=function(x,M){M=M>>0||6;var R,b,F,B,X=[],$=[],Q=0,ft=0,Ct=M-1,it=[],yt=[];for(R in x)z(x[R],X,M);for(F=X.length,b=0;F>b;b++)Q+=Math.sqrt(X[b]),B=b%M,yt[B]=Q,B===Ct&&(ft+=Q,B=b/M>>0,it[B]=yt,$[B]=ft,Q=0,yt=[]);return{length:ft,lengths:$,segments:it}},E=ln._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(x,M,R){this._target=x,M instanceof Array&&(M={values:M}),this._func={},this._mod={},this._props=[],this._timeRes=M.timeResolution==null?6:parseInt(M.timeResolution,10);var b,F,B,X,$,Q=M.values||[],ft={},Ct=Q[0],it=M.autoRotate||R.vars.orientToBezier;this._autoRotate=it?it instanceof Array?it:[["x","y","rotation",it===!0?0:Number(it)||0]]:null;for(b in Ct)this._props.push(b);for(B=this._props.length;--B>-1;)b=this._props[B],this._overwriteProps.push(b),F=this._func[b]=typeof x[b]=="function",ft[b]=F?x[b.indexOf("set")||typeof x["get"+b.substr(3)]!="function"?b:"get"+b.substr(3)]():parseFloat(x[b]),$||ft[b]!==Q[0][b]&&($=ft);if(this._beziers=M.type!=="cubic"&&M.type!=="quadratic"&&M.type!=="soft"?I(Q,isNaN(M.curviness)?1:M.curviness,!1,M.type==="thruBasic",M.correlate,$):N(Q,M.type,ft),this._segCount=this._beziers[b].length,this._timeRes){var yt=U(this._beziers,this._timeRes);this._length=yt.length,this._lengths=yt.lengths,this._segments=yt.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(it=this._autoRotate)for(this._initialRotations=[],it[0]instanceof Array||(this._autoRotate=it=[it]),B=it.length;--B>-1;){for(X=0;3>X;X++)b=it[B][X],this._func[b]=typeof x[b]=="function"?x[b.indexOf("set")||typeof x["get"+b.substr(3)]!="function"?b:"get"+b.substr(3)]:!1;b=it[B][2],this._initialRotations[B]=(this._func[b]?this._func[b].call(this._target):this._target[b])||0,this._overwriteProps.push(b)}return this._startRatio=R.vars.runBackwards?1:0,!0},set:function(x){var M,R,b,F,B,X,$,Q,ft,Ct,it=this._segCount,yt=this._func,G=this._target,Lt=x!==this._startRatio;if(this._timeRes){if(ft=this._lengths,Ct=this._curSeg,x*=this._length,b=this._li,x>this._l2&&it-1>b){for(Q=it-1;Q>b&&(this._l2=ft[++b])<=x;);this._l1=ft[b-1],this._li=b,this._curSeg=Ct=this._segments[b],this._s2=Ct[this._s1=this._si=0]}else if(x<this._l1&&b>0){for(;b>0&&(this._l1=ft[--b])>=x;);b===0&&x<this._l1?this._l1=0:b++,this._l2=ft[b],this._li=b,this._curSeg=Ct=this._segments[b],this._s1=Ct[(this._si=Ct.length-1)-1]||0,this._s2=Ct[this._si]}if(M=b,x-=this._l1,b=this._si,x>this._s2&&b<Ct.length-1){for(Q=Ct.length-1;Q>b&&(this._s2=Ct[++b])<=x;);this._s1=Ct[b-1],this._si=b}else if(x<this._s1&&b>0){for(;b>0&&(this._s1=Ct[--b])>=x;);b===0&&x<this._s1?this._s1=0:b++,this._s2=Ct[b],this._si=b}X=(b+(x-this._s1)/(this._s2-this._s1))*this._prec||0}else M=0>x?0:x>=1?it-1:it*x>>0,X=(x-M*(1/it))*it;for(R=1-X,b=this._props.length;--b>-1;)F=this._props[b],B=this._beziers[F][M],$=(X*X*B.da+3*R*(X*B.ca+R*B.ba))*X+B.a,this._mod[F]&&($=this._mod[F]($,G)),yt[F]?G[F]($):G[F]=$;if(this._autoRotate){var Et,Pt,ce,re,Ft,It,Bt,Be=this._autoRotate;for(b=Be.length;--b>-1;)F=Be[b][2],It=Be[b][3]||0,Bt=Be[b][4]===!0?1:w,B=this._beziers[Be[b][0]],Et=this._beziers[Be[b][1]],B&&Et&&(B=B[M],Et=Et[M],Pt=B.a+(B.b-B.a)*X,re=B.b+(B.c-B.b)*X,Pt+=(re-Pt)*X,re+=(B.c+(B.d-B.c)*X-re)*X,ce=Et.a+(Et.b-Et.a)*X,Ft=Et.b+(Et.c-Et.b)*X,ce+=(Ft-ce)*X,Ft+=(Et.c+(Et.d-Et.c)*X-Ft)*X,$=Lt?Math.atan2(Ft-ce,re-Pt)*Bt+It:this._initialRotations[b],this._mod[F]&&($=this._mod[F]($,G)),yt[F]?G[F]($):G[F]=$)}}}),L=E.prototype;E.bezierThrough=I,E.cubicToQuadratic=T,E._autoCSS=!0,E.quadraticToCubic=function(x,M,R){return new m(x,(2*M+x)/3,(2*M+R)/3,R)},E._cssRegister=function(){var x=u.CSSPlugin;if(x){var M=x._internals,R=M._parseToProxy,b=M._setPluginRatio,F=M.CSSPropTween;M._registerComplexSpecialProp("bezier",{parser:function(B,X,$,Q,ft,Ct){X instanceof Array&&(X={values:X}),Ct=new E;var it,yt,G,Lt=X.values,Et=Lt.length-1,Pt=[],ce={};if(0>Et)return ft;for(it=0;Et>=it;it++)G=R(B,Lt[it],Q,ft,Ct,Et!==it),Pt[it]=G.end;for(yt in X)ce[yt]=X[yt];return ce.values=Pt,ft=new F(B,"bezier",0,0,G.pt,2),ft.data=G,ft.plugin=Ct,ft.setRatio=b,ce.autoRotate===0&&(ce.autoRotate=!0),!ce.autoRotate||ce.autoRotate instanceof Array||(it=ce.autoRotate===!0?0:Number(ce.autoRotate),ce.autoRotate=G.end.left!=null?[["left","top","rotation",it,!1]]:G.end.x!=null?[["x","y","rotation",it,!1]]:!1),ce.autoRotate&&(Q._transform||Q._enableTransforms(!1),G.autoRotate=Q._target._gsTransform,G.proxy.rotation=G.autoRotate.rotation||0,Q._overwriteProps.push("rotation")),Ct._onInitTween(G.proxy,ce,Q._tween),ft}})}},L._mod=function(x){for(var M,R=this._overwriteProps,b=R.length;--b>-1;)M=x[R[b]],M&&typeof M=="function"&&(this._mod[R[b]]=M)},L._kill=function(x){var M,R,b=this._props;for(M in this._beziers)if(M in x)for(delete this._beziers[M],delete this._func[M],R=b.length;--R>-1;)b[R]===M&&b.splice(R,1);if(b=this._autoRotate)for(R=b.length;--R>-1;)x[b[R][2]]&&b.splice(R,1);return this._super._kill.call(this,x)}}(),ln._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(w,l){var o,p,d,u,m=function(){w.call(this,"css"),this._overwriteProps.length=0,this.setRatio=m.prototype.setRatio},_=ln._gsDefine.globals,T={},S=m.prototype=new w("css");S.constructor=m,m.version="2.0.2",m.API=2,m.defaultTransformPerspective=0,m.defaultSkewType="compensated",m.defaultSmoothOrigin=!0,S="px",m.suffixMap={top:S,right:S,bottom:S,left:S,width:S,height:S,fontSize:S,padding:S,margin:S,perspective:S,lineHeight:""};var C,I,N,z,U,E,L,x,M=/(?:\-|\.|\b)(\d|\.|e\-)+/g,R=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,F=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,B=/(?:\d|\-|\+|=|#|\.)*/g,X=/opacity *= *([^)]*)/i,$=/opacity:([^;]*)/i,Q=/alpha\(opacity *=.+?\)/i,ft=/^(rgb|hsl)/,Ct=/([A-Z])/g,it=/-([a-z])/gi,yt=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,G=function(V,tt){return tt.toUpperCase()},Lt=/(?:Left|Right|Width)/i,Et=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,Pt=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,ce=/,(?=[^\)]*(?:\(|$))/gi,re=/[\s,\(]/i,Ft=Math.PI/180,It=180/Math.PI,Bt={},Be={style:{}},me=ln.document||{createElement:function(){return Be}},Yt=function(V,tt){return me.createElementNS?me.createElementNS(tt||"http://www.w3.org/1999/xhtml",V):me.createElement(V)},ti=Yt("div"),Fi=Yt("img"),Oe=m._internals={_specialProps:T},Ge=(ln.navigator||{}).userAgent||"",di=function(){var V=Ge.indexOf("Android"),tt=Yt("a");return N=Ge.indexOf("Safari")!==-1&&Ge.indexOf("Chrome")===-1&&(V===-1||parseFloat(Ge.substr(V+8,2))>3),U=N&&parseFloat(Ge.substr(Ge.indexOf("Version/")+8,2))<6,z=Ge.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Ge)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Ge))&&(E=parseFloat(RegExp.$1)),tt?(tt.style.cssText="top:1px;opacity:.55;",/^0.55/.test(tt.style.opacity)):!1}(),Oi=function(V){return X.test(typeof V=="string"?V:(V.currentStyle?V.currentStyle.filter:V.style.filter)||"")?parseFloat(RegExp.$1)/100:1},mn=function(V){ln.console&&console.log(V)},Qi="",W="",Jt=function(V,tt){tt=tt||ti;var lt,at,j=tt.style;if(j[V]!==void 0)return V;for(V=V.charAt(0).toUpperCase()+V.substr(1),lt=["O","Moz","ms","Ms","Webkit"],at=5;--at>-1&&j[lt[at]+V]===void 0;);return at>=0?(W=at===3?"ms":lt[at],Qi="-"+W.toLowerCase()+"-",W+V):null},Wt=(typeof window<"u"?window:me.defaultView||{getComputedStyle:function(){}}).getComputedStyle,pt=m.getStyle=function(V,tt,lt,at,j){var St;return di||tt!=="opacity"?(!at&&V.style[tt]?St=V.style[tt]:(lt=lt||Wt(V))?St=lt[tt]||lt.getPropertyValue(tt)||lt.getPropertyValue(tt.replace(Ct,"-$1").toLowerCase()):V.currentStyle&&(St=V.currentStyle[tt]),j==null||St&&St!=="none"&&St!=="auto"&&St!=="auto auto"?St:j):Oi(V)},dt=Oe.convertToPixels=function(V,tt,lt,at,j){if(at==="px"||!at&&tt!=="lineHeight")return lt;if(at==="auto"||!lt)return 0;var St,ht,Ot,Ht=Lt.test(tt),kt=V,Mt=ti.style,he=0>lt,oe=lt===1;if(he&&(lt=-lt),oe&&(lt*=100),tt!=="lineHeight"||at)if(at==="%"&&tt.indexOf("border")!==-1)St=lt/100*(Ht?V.clientWidth:V.clientHeight);else{if(Mt.cssText="border:0 solid red;position:"+pt(V,"position")+";line-height:0;",at!=="%"&&kt.appendChild&&at.charAt(0)!=="v"&&at!=="rem")Mt[Ht?"borderLeftWidth":"borderTopWidth"]=lt+at;else{if(kt=V.parentNode||me.body,pt(kt,"display").indexOf("flex")!==-1&&(Mt.position="absolute"),ht=kt._gsCache,Ot=l.ticker.frame,ht&&Ht&&ht.time===Ot)return ht.width*lt/100;Mt[Ht?"width":"height"]=lt+at}kt.appendChild(ti),St=parseFloat(ti[Ht?"offsetWidth":"offsetHeight"]),kt.removeChild(ti),Ht&&at==="%"&&m.cacheWidths!==!1&&(ht=kt._gsCache=kt._gsCache||{},ht.time=Ot,ht.width=St/lt*100),St!==0||j||(St=dt(V,tt,lt,at,!0))}else ht=Wt(V).lineHeight,V.style.lineHeight=lt,St=parseFloat(Wt(V).lineHeight),V.style.lineHeight=ht;return oe&&(St/=100),he?-St:St},Dt=Oe.calculateOffset=function(V,tt,lt){if(pt(V,"position",lt)!=="absolute")return 0;var at=tt==="left"?"Left":"Top",j=pt(V,"margin"+at,lt);return V["offset"+at]-(dt(V,tt,parseFloat(j),j.replace(B,""))||0)},ie=function(V,tt){var lt,at,j,St={};if(tt=tt||Wt(V,null))if(lt=tt.length)for(;--lt>-1;)j=tt[lt],(j.indexOf("-transform")===-1||ea===j)&&(St[j.replace(it,G)]=tt.getPropertyValue(j));else for(lt in tt)(lt.indexOf("Transform")===-1||Mn===lt)&&(St[lt]=tt[lt]);else if(tt=V.currentStyle||V.style)for(lt in tt)typeof lt=="string"&&St[lt]===void 0&&(St[lt.replace(it,G)]=tt[lt]);return di||(St.opacity=Oi(V)),at=us(V,tt,!1),St.rotation=at.rotation,St.skewX=at.skewX,St.scaleX=at.scaleX,St.scaleY=at.scaleY,St.x=at.x,St.y=at.y,vr&&(St.z=at.z,St.rotationX=at.rotationX,St.rotationY=at.rotationY,St.scaleZ=at.scaleZ),St.filters&&delete St.filters,St},Kt=function(V,tt,lt,at,j){var St,ht,Ot,Ht={},kt=V.style;for(ht in lt)ht!=="cssText"&&ht!=="length"&&isNaN(ht)&&(tt[ht]!==(St=lt[ht])||j&&j[ht])&&ht.indexOf("Origin")===-1&&(typeof St=="number"||typeof St=="string")&&(Ht[ht]=St!=="auto"||ht!=="left"&&ht!=="top"?St!==""&&St!=="auto"&&St!=="none"||typeof tt[ht]!="string"||tt[ht].replace(F,"")===""?St:0:Dt(V,ht),kt[ht]!==void 0&&(Ot=new ni(kt,ht,kt[ht],Ot)));if(at)for(ht in at)ht!=="className"&&(Ht[ht]=at[ht]);return{difs:Ht,firstMPT:Ot}},D={width:["Left","Right"],height:["Top","Bottom"]},K=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(V,tt,lt){if((V.nodeName+"").toLowerCase()==="svg")return(lt||Wt(V))[tt]||0;if(V.getCTM&&Ya(V))return V.getBBox()[tt]||0;var at=parseFloat(tt==="width"?V.offsetWidth:V.offsetHeight),j=D[tt],St=j.length;for(lt=lt||Wt(V,null);--St>-1;)at-=parseFloat(pt(V,"padding"+j[St],lt,!0))||0,at-=parseFloat(pt(V,"border"+j[St]+"Width",lt,!0))||0;return at},nt=function(V,tt){if(V==="contain"||V==="auto"||V==="auto auto")return V+" ";(V==null||V==="")&&(V="0 0");var lt,at=V.split(" "),j=V.indexOf("left")!==-1?"0%":V.indexOf("right")!==-1?"100%":at[0],St=V.indexOf("top")!==-1?"0%":V.indexOf("bottom")!==-1?"100%":at[1];if(at.length>3&&!tt){for(at=V.split(", ").join(",").split(","),V=[],lt=0;lt<at.length;lt++)V.push(nt(at[lt]));return V.join(",")}return St==null?St=j==="center"?"50%":"0":St==="center"&&(St="50%"),(j==="center"||isNaN(parseFloat(j))&&(j+"").indexOf("=")===-1)&&(j="50%"),V=j+" "+St+(at.length>2?" "+at[2]:""),tt&&(tt.oxp=j.indexOf("%")!==-1,tt.oyp=St.indexOf("%")!==-1,tt.oxr=j.charAt(1)==="=",tt.oyr=St.charAt(1)==="=",tt.ox=parseFloat(j.replace(F,"")),tt.oy=parseFloat(St.replace(F,"")),tt.v=V),tt||V},vt=function(V,tt){return typeof V=="function"&&(V=V(x,L)),typeof V=="string"&&V.charAt(1)==="="?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2)):parseFloat(V)-parseFloat(tt)||0},Gt=function(V,tt){typeof V=="function"&&(V=V(x,L));var lt=typeof V=="string"&&V.charAt(1)==="=";return typeof V=="string"&&V.charAt(V.length-2)==="v"&&(V=(lt?V.substr(0,2):0)+window["inner"+(V.substr(-2)==="vh"?"Height":"Width")]*(parseFloat(lt?V.substr(2):V)/100)),V==null?tt:lt?parseInt(V.charAt(0)+"1",10)*parseFloat(V.substr(2))+tt:parseFloat(V)||0},Xt=function(V,tt,lt,at){var j,St,ht,Ot,Ht,kt=1e-6;return typeof V=="function"&&(V=V(x,L)),V==null?Ot=tt:typeof V=="number"?Ot=V:(j=360,St=V.split("_"),Ht=V.charAt(1)==="=",ht=(Ht?parseInt(V.charAt(0)+"1",10)*parseFloat(St[0].substr(2)):parseFloat(St[0]))*(V.indexOf("rad")===-1?1:It)-(Ht?0:tt),St.length&&(at&&(at[lt]=tt+ht),V.indexOf("short")!==-1&&(ht%=j,ht!==ht%(j/2)&&(ht=0>ht?ht+j:ht-j)),V.indexOf("_cw")!==-1&&0>ht?ht=(ht+9999999999*j)%j-(ht/j|0)*j:V.indexOf("ccw")!==-1&&ht>0&&(ht=(ht-9999999999*j)%j-(ht/j|0)*j)),Ot=tt+ht),kt>Ot&&Ot>-kt&&(Ot=0),Ot},jt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ne=function(V,tt,lt){return V=0>V?V+1:V>1?V-1:V,255*(1>6*V?tt+(lt-tt)*V*6:.5>V?lt:2>3*V?tt+(lt-tt)*(2/3-V)*6:tt)+.5|0},Re=m.parseColor=function(V,tt){var lt,at,j,St,ht,Ot,Ht,kt,Mt,he,oe;if(V)if(typeof V=="number")lt=[V>>16,V>>8&255,255&V];else{if(V.charAt(V.length-1)===","&&(V=V.substr(0,V.length-1)),jt[V])lt=jt[V];else if(V.charAt(0)==="#")V.length===4&&(at=V.charAt(1),j=V.charAt(2),St=V.charAt(3),V="#"+at+at+j+j+St+St),V=parseInt(V.substr(1),16),lt=[V>>16,V>>8&255,255&V];else if(V.substr(0,3)==="hsl")if(lt=oe=V.match(M),tt){if(V.indexOf("=")!==-1)return V.match(R)}else ht=Number(lt[0])%360/360,Ot=Number(lt[1])/100,Ht=Number(lt[2])/100,j=.5>=Ht?Ht*(Ot+1):Ht+Ot-Ht*Ot,at=2*Ht-j,lt.length>3&&(lt[3]=Number(lt[3])),lt[0]=Ne(ht+1/3,at,j),lt[1]=Ne(ht,at,j),lt[2]=Ne(ht-1/3,at,j);else lt=V.match(M)||jt.transparent;lt[0]=Number(lt[0]),lt[1]=Number(lt[1]),lt[2]=Number(lt[2]),lt.length>3&&(lt[3]=Number(lt[3]))}else lt=jt.black;return tt&&!oe&&(at=lt[0]/255,j=lt[1]/255,St=lt[2]/255,kt=Math.max(at,j,St),Mt=Math.min(at,j,St),Ht=(kt+Mt)/2,kt===Mt?ht=Ot=0:(he=kt-Mt,Ot=Ht>.5?he/(2-kt-Mt):he/(kt+Mt),ht=kt===at?(j-St)/he+(St>j?6:0):kt===j?(St-at)/he+2:(at-j)/he+4,ht*=60),lt[0]=ht+.5|0,lt[1]=100*Ot+.5|0,lt[2]=100*Ht+.5|0),lt},ge=function(V,tt){var lt,at,j,St=V.match(we)||[],ht=0,Ot="";if(!St.length)return V;for(lt=0;lt<St.length;lt++)at=St[lt],j=V.substr(ht,V.indexOf(at,ht)-ht),ht+=j.length+at.length,at=Re(at,tt),at.length===3&&at.push(1),Ot+=j+(tt?"hsla("+at[0]+","+at[1]+"%,"+at[2]+"%,"+at[3]:"rgba("+at.join(","))+")";return Ot+V.substr(ht)},we="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(S in jt)we+="|"+S+"\\b";we=new RegExp(we+")","gi"),m.colorStringFilter=function(V){var tt,lt=V[0]+" "+V[1];we.test(lt)&&(tt=lt.indexOf("hsl(")!==-1||lt.indexOf("hsla(")!==-1,V[0]=ge(V[0],tt),V[1]=ge(V[1],tt)),we.lastIndex=0},l.defaultStringFilter||(l.defaultStringFilter=m.colorStringFilter);var _i=function(V,tt,lt,at){if(V==null)return function(oe){return oe};var j,St=tt?(V.match(we)||[""])[0]:"",ht=V.split(St).join("").match(b)||[],Ot=V.substr(0,V.indexOf(ht[0])),Ht=V.charAt(V.length-1)===")"?")":"",kt=V.indexOf(" ")!==-1?" ":",",Mt=ht.length,he=Mt>0?ht[0].replace(M,""):"";return Mt?j=tt?function(oe){var te,_e,ue,je;if(typeof oe=="number")oe+=he;else if(at&&ce.test(oe)){for(je=oe.replace(ce,"|").split("|"),ue=0;ue<je.length;ue++)je[ue]=j(je[ue]);return je.join(",")}if(te=(oe.match(we)||[St])[0],_e=oe.split(te).join("").match(b)||[],ue=_e.length,Mt>ue--)for(;++ue<Mt;)_e[ue]=lt?_e[(ue-1)/2|0]:ht[ue];return Ot+_e.join(kt)+kt+te+Ht+(oe.indexOf("inset")!==-1?" inset":"")}:function(oe){var te,_e,ue;if(typeof oe=="number")oe+=he;else if(at&&ce.test(oe)){for(_e=oe.replace(ce,"|").split("|"),ue=0;ue<_e.length;ue++)_e[ue]=j(_e[ue]);return _e.join(",")}if(te=oe.match(b)||[],ue=te.length,Mt>ue--)for(;++ue<Mt;)te[ue]=lt?te[(ue-1)/2|0]:ht[ue];return Ot+te.join(kt)+Ht}:function(oe){return oe}},Si=function(V){return V=V.split(","),function(tt,lt,at,j,St,ht,Ot){var Ht,kt=(lt+"").split(" ");for(Ot={},Ht=0;4>Ht;Ht++)Ot[V[Ht]]=kt[Ht]=kt[Ht]||kt[(Ht-1)/2>>0];return j.parse(tt,Ot,St,ht)}},ni=(Oe._setPluginRatio=function(V){this.plugin.setRatio(V);for(var tt,lt,at,j,St,ht=this.data,Ot=ht.proxy,Ht=ht.firstMPT,kt=1e-6;Ht;)tt=Ot[Ht.v],Ht.r?tt=Ht.r(tt):kt>tt&&tt>-kt&&(tt=0),Ht.t[Ht.p]=tt,Ht=Ht._next;if(ht.autoRotate&&(ht.autoRotate.rotation=ht.mod?ht.mod.call(this._tween,Ot.rotation,this.t,this._tween):Ot.rotation),V===1||V===0)for(Ht=ht.firstMPT,St=V===1?"e":"b";Ht;){if(lt=Ht.t,lt.type){if(lt.type===1){for(j=lt.xs0+lt.s+lt.xs1,at=1;at<lt.l;at++)j+=lt["xn"+at]+lt["xs"+(at+1)];lt[St]=j}}else lt[St]=lt.s+lt.xs0;Ht=Ht._next}},function(V,tt,lt,at,j){this.t=V,this.p=tt,this.v=lt,this.r=j,at&&(at._prev=this,this._next=at)}),Ei=(Oe._parseToProxy=function(V,tt,lt,at,j,St){var ht,Ot,Ht,kt,Mt,he=at,oe={},te={},_e=lt._transform,ue=Bt;for(lt._transform=null,Bt=tt,at=Mt=lt.parse(V,tt,at,j),Bt=ue,St&&(lt._transform=_e,he&&(he._prev=null,he._prev&&(he._prev._next=null)));at&&at!==he;){if(at.type<=1&&(Ot=at.p,te[Ot]=at.s+at.c,oe[Ot]=at.s,St||(kt=new ni(at,"s",Ot,kt,at.r),at.c=0),at.type===1))for(ht=at.l;--ht>0;)Ht="xn"+ht,Ot=at.p+"_"+Ht,te[Ot]=at.data[Ht],oe[Ot]=at[Ht],St||(kt=new ni(at,Ht,Ot,kt,at.rxp[Ht]));at=at._next}return{proxy:oe,end:te,firstMPT:kt,pt:Mt}},Oe.CSSPropTween=function(V,tt,lt,at,j,St,ht,Ot,Ht,kt,Mt){this.t=V,this.p=tt,this.s=lt,this.c=at,this.n=ht||tt,V instanceof Ei||u.push(this.n),this.r=Ot&&(typeof Ot=="function"?Ot:Math.round),this.type=St||0,Ht&&(this.pr=Ht,o=!0),this.b=kt===void 0?lt:kt,this.e=Mt===void 0?lt+at:Mt,j&&(this._next=j,j._prev=this)}),qr=function(V,tt,lt,at,j,St){var ht=new Ei(V,tt,lt,at-lt,j,-1,St);return ht.b=lt,ht.e=ht.xs0=at,ht},or=m.parseComplex=function(V,tt,lt,at,j,St,ht,Ot,Ht,kt){lt=lt||St||"",typeof at=="function"&&(at=at(x,L)),ht=new Ei(V,tt,0,0,ht,kt?2:1,null,!1,Ot,lt,at),at+="",j&&we.test(at+lt)&&(at=[lt,at],m.colorStringFilter(at),lt=at[0],at=at[1]);var Mt,he,oe,te,_e,ue,je,He,ci,ke,ye,Fe,fe,mi=lt.split(", ").join(",").split(" "),Pe=at.split(", ").join(",").split(" "),xe=mi.length,Le=C!==!1;for((at.indexOf(",")!==-1||lt.indexOf(",")!==-1)&&((at+lt).indexOf("rgb")!==-1||(at+lt).indexOf("hsl")!==-1?(mi=mi.join(" ").replace(ce,", ").split(" "),Pe=Pe.join(" ").replace(ce,", ").split(" ")):(mi=mi.join(" ").split(",").join(", ").split(" "),Pe=Pe.join(" ").split(",").join(", ").split(" ")),xe=mi.length),xe!==Pe.length&&(mi=(St||"").split(" "),xe=mi.length),ht.plugin=Ht,ht.setRatio=kt,we.lastIndex=0,Mt=0;xe>Mt;Mt++)if(te=mi[Mt],_e=Pe[Mt]+"",He=parseFloat(te),He||He===0)ht.appendXtra("",He,vt(_e,He),_e.replace(R,""),Le&&_e.indexOf("px")!==-1?Math.round:!1,!0);else if(j&&we.test(te))Fe=_e.indexOf(")")+1,Fe=")"+(Fe?_e.substr(Fe):""),fe=_e.indexOf("hsl")!==-1&&di,ke=_e,te=Re(te,fe),_e=Re(_e,fe),ci=te.length+_e.length>6,ci&&!di&&_e[3]===0?(ht["xs"+ht.l]+=ht.l?" transparent":"transparent",ht.e=ht.e.split(Pe[Mt]).join("transparent")):(di||(ci=!1),fe?ht.appendXtra(ke.substr(0,ke.indexOf("hsl"))+(ci?"hsla(":"hsl("),te[0],vt(_e[0],te[0]),",",!1,!0).appendXtra("",te[1],vt(_e[1],te[1]),"%,",!1).appendXtra("",te[2],vt(_e[2],te[2]),ci?"%,":"%"+Fe,!1):ht.appendXtra(ke.substr(0,ke.indexOf("rgb"))+(ci?"rgba(":"rgb("),te[0],_e[0]-te[0],",",Math.round,!0).appendXtra("",te[1],_e[1]-te[1],",",Math.round).appendXtra("",te[2],_e[2]-te[2],ci?",":Fe,Math.round),ci&&(te=te.length<4?1:te[3],ht.appendXtra("",te,(_e.length<4?1:_e[3])-te,Fe,!1))),we.lastIndex=0;else if(ue=te.match(M)){if(je=_e.match(R),!je||je.length!==ue.length)return ht;for(oe=0,he=0;he<ue.length;he++)ye=ue[he],ke=te.indexOf(ye,oe),ht.appendXtra(te.substr(oe,ke-oe),Number(ye),vt(je[he],ye),"",Le&&te.substr(ke+ye.length,2)==="px"?Math.round:!1,he===0),oe=ke+ye.length;ht["xs"+ht.l]+=te.substr(oe)}else ht["xs"+ht.l]+=ht.l||ht["xs"+ht.l]?" "+_e:_e;if(at.indexOf("=")!==-1&&ht.data){for(Fe=ht.xs0+ht.data.s,Mt=1;Mt<ht.l;Mt++)Fe+=ht["xs"+Mt]+ht.data["xn"+Mt];ht.e=Fe+ht["xs"+Mt]}return ht.l||(ht.type=-1,ht.xs0=ht.e),ht.xfirst||ht},on=9;for(S=Ei.prototype,S.l=S.pr=0;--on>0;)S["xn"+on]=0,S["xs"+on]="";S.xs0="",S._next=S._prev=S.xfirst=S.data=S.plugin=S.setRatio=S.rxp=null,S.appendXtra=function(V,tt,lt,at,j,St){var ht=this,Ot=ht.l;return ht["xs"+Ot]+=St&&(Ot||ht["xs"+Ot])?" "+V:V||"",lt||Ot===0||ht.plugin?(ht.l++,ht.type=ht.setRatio?2:1,ht["xs"+ht.l]=at||"",Ot>0?(ht.data["xn"+Ot]=tt+lt,ht.rxp["xn"+Ot]=j,ht["xn"+Ot]=tt,ht.plugin||(ht.xfirst=new Ei(ht,"xn"+Ot,tt,lt,ht.xfirst||ht,0,ht.n,j,ht.pr),ht.xfirst.xs0=0),ht):(ht.data={s:tt+lt},ht.rxp={},ht.s=tt,ht.c=lt,ht.r=j,ht)):(ht["xs"+Ot]+=tt+(at||""),ht)};var As=function(V,tt){tt=tt||{},this.p=tt.prefix&&Jt(V)||V,T[V]=T[this.p]=this,this.format=tt.formatter||_i(tt.defaultValue,tt.color,tt.collapsible,tt.multi),tt.parser&&(this.parse=tt.parser),this.clrs=tt.color,this.multi=tt.multi,this.keyword=tt.keyword,this.dflt=tt.defaultValue,this.pr=tt.priority||0},Ii=Oe._registerComplexSpecialProp=function(V,tt,lt){typeof tt!="object"&&(tt={parser:lt});var at,j=V.split(","),St=tt.defaultValue;for(lt=lt||[St],at=0;at<j.length;at++)tt.prefix=at===0&&tt.prefix,tt.defaultValue=lt[at]||St,new As(j[at],tt)},Xs=Oe._registerPluginProp=function(V){if(!T[V]){var tt=V.charAt(0).toUpperCase()+V.substr(1)+"Plugin";Ii(V,{parser:function(lt,at,j,St,ht,Ot,Ht){var kt=_.com.greensock.plugins[tt];return kt?(kt._cssRegister(),T[j].parse(lt,at,j,St,ht,Ot,Ht)):(mn("Error: "+tt+" js file not loaded."),ht)}})}};S=As.prototype,S.parseComplex=function(V,tt,lt,at,j,St){var ht,Ot,Ht,kt,Mt,he,oe=this.keyword;if(this.multi&&(ce.test(lt)||ce.test(tt)?(Ot=tt.replace(ce,"|").split("|"),Ht=lt.replace(ce,"|").split("|")):oe&&(Ot=[tt],Ht=[lt])),Ht){for(kt=Ht.length>Ot.length?Ht.length:Ot.length,ht=0;kt>ht;ht++)tt=Ot[ht]=Ot[ht]||this.dflt,lt=Ht[ht]=Ht[ht]||this.dflt,oe&&(Mt=tt.indexOf(oe),he=lt.indexOf(oe),Mt!==he&&(he===-1?Ot[ht]=Ot[ht].split(oe).join(""):Mt===-1&&(Ot[ht]+=" "+oe)));tt=Ot.join(", "),lt=Ht.join(", ")}return or(V,this.p,tt,lt,this.clrs,this.dflt,at,this.pr,j,St)},S.parse=function(V,tt,lt,at,j,St,ht){return this.parseComplex(V.style,this.format(pt(V,this.p,d,!1,this.dflt)),this.format(tt),j,St)},m.registerSpecialProp=function(V,tt,lt){Ii(V,{parser:function(at,j,St,ht,Ot,Ht,kt){var Mt=new Ei(at,St,0,0,Ot,2,St,!1,lt);return Mt.plugin=Ht,Mt.setRatio=tt(at,j,ht._tween,St),Mt},priority:lt})},m.useSVGTransformAttr=!0;var as,Fl="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Mn=Jt("transform"),ea=Qi+"transform",mo=Jt("transformOrigin"),vr=Jt("perspective")!==null,ia=Oe.Transform=function(){this.perspective=parseFloat(m.defaultTransformPerspective)||0,this.force3D=m.defaultForce3D!==!1&&vr?m.defaultForce3D||"auto":!1},Xa=ln.SVGElement,Ul=function(V,tt,lt){var at,j=me.createElementNS("http://www.w3.org/2000/svg",V),St=/([a-z])([A-Z])/g;for(at in lt)j.setAttributeNS(null,at.replace(St,"$1-$2").toLowerCase(),lt[at]);return tt.appendChild(j),j},ls=me.documentElement||{},Ch=function(){var V,tt,lt,at=E||/Android/i.test(Ge)&&!ln.chrome;return me.createElementNS&&!at&&(V=Ul("svg",ls),tt=Ul("rect",V,{width:100,height:50,x:100}),lt=tt.getBoundingClientRect().width,tt.style[mo]="50% 50%",tt.style[Mn]="scaleX(0.5)",at=lt===tt.getBoundingClientRect().width&&!(z&&vr),ls.removeChild(V)),at}(),na=function(V,tt,lt,at,j,St){var ht,Ot,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,ke,ye=V._gsTransform,Fe=sa(V,!0);ye&&(ci=ye.xOrigin,ke=ye.yOrigin),(!at||(ht=at.split(" ")).length<2)&&(oe=V.getBBox(),oe.x===0&&oe.y===0&&oe.width+oe.height===0&&(oe={x:parseFloat(V.hasAttribute("x")?V.getAttribute("x"):V.hasAttribute("cx")?V.getAttribute("cx"):0)||0,y:parseFloat(V.hasAttribute("y")?V.getAttribute("y"):V.hasAttribute("cy")?V.getAttribute("cy"):0)||0,width:0,height:0}),tt=nt(tt).split(" "),ht=[(tt[0].indexOf("%")!==-1?parseFloat(tt[0])/100*oe.width:parseFloat(tt[0]))+oe.x,(tt[1].indexOf("%")!==-1?parseFloat(tt[1])/100*oe.height:parseFloat(tt[1]))+oe.y]),lt.xOrigin=kt=parseFloat(ht[0]),lt.yOrigin=Mt=parseFloat(ht[1]),at&&Fe!==ra&&(he=Fe[0],oe=Fe[1],te=Fe[2],_e=Fe[3],ue=Fe[4],je=Fe[5],He=he*_e-oe*te,He&&(Ot=kt*(_e/He)+Mt*(-te/He)+(te*je-_e*ue)/He,Ht=kt*(-oe/He)+Mt*(he/He)-(he*je-oe*ue)/He,kt=lt.xOrigin=ht[0]=Ot,Mt=lt.yOrigin=ht[1]=Ht)),ye&&(St&&(lt.xOffset=ye.xOffset,lt.yOffset=ye.yOffset,ye=lt),j||j!==!1&&m.defaultSmoothOrigin!==!1?(Ot=kt-ci,Ht=Mt-ke,ye.xOffset+=Ot*Fe[0]+Ht*Fe[2]-Ot,ye.yOffset+=Ot*Fe[1]+Ht*Fe[3]-Ht):ye.xOffset=ye.yOffset=0),St||V.setAttribute("data-svg-origin",ht.join(" "))},qa=function(V){var tt,lt=Yt("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),at=this.parentNode,j=this.nextSibling,St=this.style.cssText;if(ls.appendChild(lt),lt.appendChild(this),this.style.display="block",V)try{tt=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=qa}catch{}else this._originalGetBBox&&(tt=this._originalGetBBox());return j?at.insertBefore(this,j):at.appendChild(this),ls.removeChild(lt),this.style.cssText=St,tt},hs=function(V){try{return V.getBBox()}catch{return qa.call(V,!0)}},Ya=function(V){return!(!Xa||!V.getCTM||V.parentNode&&!V.ownerSVGElement||!hs(V))},ra=[1,0,0,1,0,0],sa=function(V,tt){var lt,at,j,St,ht,Ot,Ht=V._gsTransform||new ia,kt=1e5,Mt=V.style;if(Mn?at=pt(V,ea,null,!0):V.currentStyle&&(at=V.currentStyle.filter.match(Et),at=at&&at.length===4?[at[0].substr(4),Number(at[2].substr(4)),Number(at[1].substr(4)),at[3].substr(4),Ht.x||0,Ht.y||0].join(","):""),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",!Mn||!(Ot=!Wt(V)||Wt(V).display==="none")&&V.parentNode||(Ot&&(St=Mt.display,Mt.display="block"),V.parentNode||(ht=1,ls.appendChild(V)),at=pt(V,ea,null,!0),lt=!at||at==="none"||at==="matrix(1, 0, 0, 1, 0, 0)",St?Mt.display=St:Ot&&go(Mt,"display"),ht&&ls.removeChild(V)),(Ht.svg||V.getCTM&&Ya(V))&&(lt&&(Mt[Mn]+"").indexOf("matrix")!==-1&&(at=Mt[Mn],lt=0),j=V.getAttribute("transform"),lt&&j&&(j=V.transform.baseVal.consolidate().matrix,at="matrix("+j.a+","+j.b+","+j.c+","+j.d+","+j.e+","+j.f+")",lt=0)),lt)return ra;for(j=(at||"").match(M)||[],on=j.length;--on>-1;)St=Number(j[on]),j[on]=(ht=St-(St|=0))?(ht*kt+(0>ht?-.5:.5)|0)/kt+St:St;return tt&&j.length>6?[j[0],j[1],j[4],j[5],j[12],j[13]]:j},us=Oe.getTransform=function(V,tt,lt,at){if(V._gsTransform&<&&!at)return V._gsTransform;var j,St,ht,Ot,Ht,kt,Mt=lt?V._gsTransform||new ia:new ia,he=Mt.scaleX<0,oe=2e-5,te=1e5,_e=vr&&(parseFloat(pt(V,mo,tt,!1,"0 0 0").split(" ")[2])||Mt.zOrigin)||0,ue=parseFloat(m.defaultTransformPerspective)||0;if(Mt.svg=!(!V.getCTM||!Ya(V)),Mt.svg&&(na(V,pt(V,mo,tt,!1,"50% 50%")+"",Mt,V.getAttribute("data-svg-origin")),as=m.useSVGTransformAttr||Ch),j=sa(V),j!==ra){if(j.length===16){var je,He,ci,ke,ye,Fe=j[0],fe=j[1],mi=j[2],Pe=j[3],xe=j[4],Le=j[5],Sn=j[6],Xn=j[7],Di=j[8],zi=j[9],Gi=j[10],nn=j[12],rn=j[13],un=j[14],cn=j[11],Ui=Math.atan2(Sn,Gi);Mt.zOrigin&&(un=-Mt.zOrigin,nn=Di*un-j[12],rn=zi*un-j[13],un=Gi*un+Mt.zOrigin-j[14]),Mt.rotationX=Ui*It,Ui&&(ke=Math.cos(-Ui),ye=Math.sin(-Ui),je=xe*ke+Di*ye,He=Le*ke+zi*ye,ci=Sn*ke+Gi*ye,Di=xe*-ye+Di*ke,zi=Le*-ye+zi*ke,Gi=Sn*-ye+Gi*ke,cn=Xn*-ye+cn*ke,xe=je,Le=He,Sn=ci),Ui=Math.atan2(-mi,Gi),Mt.rotationY=Ui*It,Ui&&(ke=Math.cos(-Ui),ye=Math.sin(-Ui),je=Fe*ke-Di*ye,He=fe*ke-zi*ye,ci=mi*ke-Gi*ye,zi=fe*ye+zi*ke,Gi=mi*ye+Gi*ke,cn=Pe*ye+cn*ke,Fe=je,fe=He,mi=ci),Ui=Math.atan2(fe,Fe),Mt.rotation=Ui*It,Ui&&(ke=Math.cos(Ui),ye=Math.sin(Ui),je=Fe*ke+fe*ye,He=xe*ke+Le*ye,ci=Di*ke+zi*ye,fe=fe*ke-Fe*ye,Le=Le*ke-xe*ye,zi=zi*ke-Di*ye,Fe=je,xe=He,Di=ci),Mt.rotationX&&Math.abs(Mt.rotationX)+Math.abs(Mt.rotation)>359.9&&(Mt.rotationX=Mt.rotation=0,Mt.rotationY=180-Mt.rotationY),Ui=Math.atan2(xe,Le),Mt.scaleX=(Math.sqrt(Fe*Fe+fe*fe+mi*mi)*te+.5|0)/te,Mt.scaleY=(Math.sqrt(Le*Le+Sn*Sn)*te+.5|0)/te,Mt.scaleZ=(Math.sqrt(Di*Di+zi*zi+Gi*Gi)*te+.5|0)/te,Fe/=Mt.scaleX,xe/=Mt.scaleY,fe/=Mt.scaleX,Le/=Mt.scaleY,Math.abs(Ui)>oe?(Mt.skewX=Ui*It,xe=0,Mt.skewType!=="simple"&&(Mt.scaleY*=1/Math.cos(Ui))):Mt.skewX=0,Mt.perspective=cn?1/(0>cn?-cn:cn):0,Mt.x=nn,Mt.y=rn,Mt.z=un,Mt.svg&&(Mt.x-=Mt.xOrigin-(Mt.xOrigin*Fe-Mt.yOrigin*xe),Mt.y-=Mt.yOrigin-(Mt.yOrigin*fe-Mt.xOrigin*Le))}else if(!vr||at||!j.length||Mt.x!==j[4]||Mt.y!==j[5]||!Mt.rotationX&&!Mt.rotationY){var ki=j.length>=6,Wi=ki?j[0]:1,gi=j[1]||0,cs=j[2]||0,Fn=ki?j[3]:1;Mt.x=j[4]||0,Mt.y=j[5]||0,ht=Math.sqrt(Wi*Wi+gi*gi),Ot=Math.sqrt(Fn*Fn+cs*cs),Ht=Wi||gi?Math.atan2(gi,Wi)*It:Mt.rotation||0,kt=cs||Fn?Math.atan2(cs,Fn)*It+Ht:Mt.skewX||0,Mt.scaleX=ht,Mt.scaleY=Ot,Mt.rotation=Ht,Mt.skewX=kt,vr&&(Mt.rotationX=Mt.rotationY=Mt.z=0,Mt.perspective=ue,Mt.scaleZ=1),Mt.svg&&(Mt.x-=Mt.xOrigin-(Mt.xOrigin*Wi+Mt.yOrigin*cs),Mt.y-=Mt.yOrigin-(Mt.xOrigin*gi+Mt.yOrigin*Fn))}Math.abs(Mt.skewX)>90&&Math.abs(Mt.skewX)<270&&(he?(Mt.scaleX*=-1,Mt.skewX+=Mt.rotation<=0?180:-180,Mt.rotation+=Mt.rotation<=0?180:-180):(Mt.scaleY*=-1,Mt.skewX+=Mt.skewX<=0?180:-180)),Mt.zOrigin=_e;for(St in Mt)Mt[St]<oe&&Mt[St]>-oe&&(Mt[St]=0)}return lt&&(V._gsTransform=Mt,Mt.svg&&(as&&V.style[Mn]?l.delayedCall(.001,function(){go(V.style,Mn)}):!as&&V.getAttribute("transform")&&l.delayedCall(.001,function(){V.removeAttribute("transform")}))),Mt},Gl=function(V){var tt,lt,at=this.data,j=-at.rotation*Ft,St=j+at.skewX*Ft,ht=1e5,Ot=(Math.cos(j)*at.scaleX*ht|0)/ht,Ht=(Math.sin(j)*at.scaleX*ht|0)/ht,kt=(Math.sin(St)*-at.scaleY*ht|0)/ht,Mt=(Math.cos(St)*at.scaleY*ht|0)/ht,he=this.t.style,oe=this.t.currentStyle;if(oe){lt=Ht,Ht=-kt,kt=-lt,tt=oe.filter,he.filter="";var te,_e,ue=this.t.offsetWidth,je=this.t.offsetHeight,He=oe.position!=="absolute",ci="progid:DXImageTransform.Microsoft.Matrix(M11="+Ot+", M12="+Ht+", M21="+kt+", M22="+Mt,ke=at.x+ue*at.xPercent/100,ye=at.y+je*at.yPercent/100;if(at.ox!=null&&(te=(at.oxp?ue*at.ox*.01:at.ox)-ue/2,_e=(at.oyp?je*at.oy*.01:at.oy)-je/2,ke+=te-(te*Ot+_e*Ht),ye+=_e-(te*kt+_e*Mt)),He?(te=ue/2,_e=je/2,ci+=", Dx="+(te-(te*Ot+_e*Ht)+ke)+", Dy="+(_e-(te*kt+_e*Mt)+ye)+")"):ci+=", sizingMethod='auto expand')",tt.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?he.filter=tt.replace(Pt,ci):he.filter=ci+" "+tt,(V===0||V===1)&&Ot===1&&Ht===0&&kt===0&&Mt===1&&(He&&ci.indexOf("Dx=0, Dy=0")===-1||X.test(tt)&&parseFloat(RegExp.$1)!==100||tt.indexOf(tt.indexOf("Alpha"))===-1&&he.removeAttribute("filter")),!He){var Fe,fe,mi,Pe=8>E?1:-1;for(te=at.ieOffsetX||0,_e=at.ieOffsetY||0,at.ieOffsetX=Math.round((ue-((0>Ot?-Ot:Ot)*ue+(0>Ht?-Ht:Ht)*je))/2+ke),at.ieOffsetY=Math.round((je-((0>Mt?-Mt:Mt)*je+(0>kt?-kt:kt)*ue))/2+ye),on=0;4>on;on++)fe=K[on],Fe=oe[fe],lt=Fe.indexOf("px")!==-1?parseFloat(Fe):dt(this.t,fe,parseFloat(Fe),Fe.replace(B,""))||0,mi=lt!==at[fe]?2>on?-at.ieOffsetX:-at.ieOffsetY:2>on?te-at.ieOffsetX:_e-at.ieOffsetY,he[fe]=(at[fe]=Math.round(lt-mi*(on===0||on===2?1:Pe)))+"px"}}},Ph=Oe.set3DTransformRatio=Oe.setTransformRatio=function(V){var tt,lt,at,j,St,ht,Ot,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,ke,ye,Fe,fe,mi,Pe=this.data,xe=this.t.style,Le=Pe.rotation,Sn=Pe.rotationX,Xn=Pe.rotationY,Di=Pe.scaleX,zi=Pe.scaleY,Gi=Pe.scaleZ,nn=Pe.x,rn=Pe.y,un=Pe.z,cn=Pe.svg,Ui=Pe.perspective,ki=Pe.force3D,Wi=Pe.skewY,gi=Pe.skewX;if(Wi&&(gi+=Wi,Le+=Wi),((V===1||V===0)&&ki==="auto"&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!ki)&&!un&&!Ui&&!Xn&&!Sn&&Gi===1||as&&cn||!vr)return void(Le||gi||cn?(Le*=Ft,fe=gi*Ft,mi=1e5,lt=Math.cos(Le)*Di,St=Math.sin(Le)*Di,at=Math.sin(Le-fe)*-zi,ht=Math.cos(Le-fe)*zi,fe&&Pe.skewType==="simple"&&(tt=Math.tan(fe-Wi*Ft),tt=Math.sqrt(1+tt*tt),at*=tt,ht*=tt,Wi&&(tt=Math.tan(Wi*Ft),tt=Math.sqrt(1+tt*tt),lt*=tt,St*=tt)),cn&&(nn+=Pe.xOrigin-(Pe.xOrigin*lt+Pe.yOrigin*at)+Pe.xOffset,rn+=Pe.yOrigin-(Pe.xOrigin*St+Pe.yOrigin*ht)+Pe.yOffset,as&&(Pe.xPercent||Pe.yPercent)&&(ue=this.t.getBBox(),nn+=.01*Pe.xPercent*ue.width,rn+=.01*Pe.yPercent*ue.height),ue=1e-6,ue>nn&&nn>-ue&&(nn=0),ue>rn&&rn>-ue&&(rn=0)),ke=(lt*mi|0)/mi+","+(St*mi|0)/mi+","+(at*mi|0)/mi+","+(ht*mi|0)/mi+","+nn+","+rn+")",cn&&as?this.t.setAttribute("transform","matrix("+ke):xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix(":"matrix(")+ke):xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix(":"matrix(")+Di+",0,0,"+zi+","+nn+","+rn+")");if(z&&(ue=1e-4,ue>Di&&Di>-ue&&(Di=Gi=2e-5),ue>zi&&zi>-ue&&(zi=Gi=2e-5),!Ui||Pe.z||Pe.rotationX||Pe.rotationY||(Ui=0)),Le||gi)Le*=Ft,je=lt=Math.cos(Le),He=St=Math.sin(Le),gi&&(Le-=gi*Ft,je=Math.cos(Le),He=Math.sin(Le),Pe.skewType==="simple"&&(tt=Math.tan((gi-Wi)*Ft),tt=Math.sqrt(1+tt*tt),je*=tt,He*=tt,Pe.skewY&&(tt=Math.tan(Wi*Ft),tt=Math.sqrt(1+tt*tt),lt*=tt,St*=tt))),at=-He,ht=je;else{if(!(Xn||Sn||Gi!==1||Ui||cn))return void(xe[Mn]=(Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) translate3d(":"translate3d(")+nn+"px,"+rn+"px,"+un+"px)"+(Di!==1||zi!==1?" scale("+Di+","+zi+")":""));lt=ht=1,at=St=0}Mt=1,j=Ot=Ht=kt=he=oe=0,te=Ui?-1/Ui:0,_e=Pe.zOrigin,ue=1e-6,ye=",",Fe="0",Le=Xn*Ft,Le&&(je=Math.cos(Le),He=Math.sin(Le),Ht=-He,he=te*-He,j=lt*He,Ot=St*He,Mt=je,te*=je,lt*=je,St*=je),Le=Sn*Ft,Le&&(je=Math.cos(Le),He=Math.sin(Le),tt=at*je+j*He,ci=ht*je+Ot*He,kt=Mt*He,oe=te*He,j=at*-He+j*je,Ot=ht*-He+Ot*je,Mt*=je,te*=je,at=tt,ht=ci),Gi!==1&&(j*=Gi,Ot*=Gi,Mt*=Gi,te*=Gi),zi!==1&&(at*=zi,ht*=zi,kt*=zi,oe*=zi),Di!==1&&(lt*=Di,St*=Di,Ht*=Di,he*=Di),(_e||cn)&&(_e&&(nn+=j*-_e,rn+=Ot*-_e,un+=Mt*-_e+_e),cn&&(nn+=Pe.xOrigin-(Pe.xOrigin*lt+Pe.yOrigin*at)+Pe.xOffset,rn+=Pe.yOrigin-(Pe.xOrigin*St+Pe.yOrigin*ht)+Pe.yOffset),ue>nn&&nn>-ue&&(nn=Fe),ue>rn&&rn>-ue&&(rn=Fe),ue>un&&un>-ue&&(un=0)),ke=Pe.xPercent||Pe.yPercent?"translate("+Pe.xPercent+"%,"+Pe.yPercent+"%) matrix3d(":"matrix3d(",ke+=(ue>lt&<>-ue?Fe:lt)+ye+(ue>St&&St>-ue?Fe:St)+ye+(ue>Ht&&Ht>-ue?Fe:Ht),ke+=ye+(ue>he&&he>-ue?Fe:he)+ye+(ue>at&&at>-ue?Fe:at)+ye+(ue>ht&&ht>-ue?Fe:ht),Sn||Xn||Gi!==1?(ke+=ye+(ue>kt&&kt>-ue?Fe:kt)+ye+(ue>oe&&oe>-ue?Fe:oe)+ye+(ue>j&&j>-ue?Fe:j),ke+=ye+(ue>Ot&&Ot>-ue?Fe:Ot)+ye+(ue>Mt&&Mt>-ue?Fe:Mt)+ye+(ue>te&&te>-ue?Fe:te)+ye):ke+=",0,0,0,0,1,0,",ke+=nn+ye+rn+ye+un+ye+(Ui?1+-un/Ui:1)+")",xe[Mn]=ke};S=ia.prototype,S.x=S.y=S.z=S.skewX=S.skewY=S.rotation=S.rotationX=S.rotationY=S.zOrigin=S.xPercent=S.yPercent=S.xOffset=S.yOffset=0,S.scaleX=S.scaleY=S.scaleZ=1,Ii("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(V,tt,lt,at,j,St,ht){if(at._lastParsedTransform===ht)return j;at._lastParsedTransform=ht;var Ot,Ht=ht.scale&&typeof ht.scale=="function"?ht.scale:0;typeof ht[lt]=="function"&&(Ot=ht[lt],ht[lt]=tt),Ht&&(ht.scale=Ht(x,V));var kt,Mt,he,oe,te,_e,ue,je,He,ci=V._gsTransform,ke=V.style,ye=1e-6,Fe=Fl.length,fe=ht,mi={},Pe="transformOrigin",xe=us(V,d,!0,fe.parseTransform),Le=fe.transform&&(typeof fe.transform=="function"?fe.transform(x,L):fe.transform);if(xe.skewType=fe.skewType||xe.skewType||m.defaultSkewType,at._transform=xe,"rotationZ"in fe&&(fe.rotation=fe.rotationZ),Le&&typeof Le=="string"&&Mn)Mt=ti.style,Mt[Mn]=Le,Mt.display="block",Mt.position="absolute",Le.indexOf("%")!==-1&&(Mt.width=pt(V,"width"),Mt.height=pt(V,"height")),me.body.appendChild(ti),kt=us(ti,null,!1),xe.skewType==="simple"&&(kt.scaleY*=Math.cos(kt.skewX*Ft)),xe.svg&&(_e=xe.xOrigin,ue=xe.yOrigin,kt.x-=xe.xOffset,kt.y-=xe.yOffset,(fe.transformOrigin||fe.svgOrigin)&&(Le={},na(V,nt(fe.transformOrigin),Le,fe.svgOrigin,fe.smoothOrigin,!0),_e=Le.xOrigin,ue=Le.yOrigin,kt.x-=Le.xOffset-xe.xOffset,kt.y-=Le.yOffset-xe.yOffset),(_e||ue)&&(je=sa(ti,!0),kt.x-=_e-(_e*je[0]+ue*je[2]),kt.y-=ue-(_e*je[1]+ue*je[3]))),me.body.removeChild(ti),kt.perspective||(kt.perspective=xe.perspective),fe.xPercent!=null&&(kt.xPercent=Gt(fe.xPercent,xe.xPercent)),fe.yPercent!=null&&(kt.yPercent=Gt(fe.yPercent,xe.yPercent));else if(typeof fe=="object"){if(kt={scaleX:Gt(fe.scaleX!=null?fe.scaleX:fe.scale,xe.scaleX),scaleY:Gt(fe.scaleY!=null?fe.scaleY:fe.scale,xe.scaleY),scaleZ:Gt(fe.scaleZ,xe.scaleZ),x:Gt(fe.x,xe.x),y:Gt(fe.y,xe.y),z:Gt(fe.z,xe.z),xPercent:Gt(fe.xPercent,xe.xPercent),yPercent:Gt(fe.yPercent,xe.yPercent),perspective:Gt(fe.transformPerspective,xe.perspective)},te=fe.directionalRotation,te!=null)if(typeof te=="object")for(Mt in te)fe[Mt]=te[Mt];else fe.rotation=te;typeof fe.x=="string"&&fe.x.indexOf("%")!==-1&&(kt.x=0,kt.xPercent=Gt(fe.x,xe.xPercent)),typeof fe.y=="string"&&fe.y.indexOf("%")!==-1&&(kt.y=0,kt.yPercent=Gt(fe.y,xe.yPercent)),kt.rotation=Xt("rotation"in fe?fe.rotation:"shortRotation"in fe?fe.shortRotation+"_short":xe.rotation,xe.rotation,"rotation",mi),vr&&(kt.rotationX=Xt("rotationX"in fe?fe.rotationX:"shortRotationX"in fe?fe.shortRotationX+"_short":xe.rotationX||0,xe.rotationX,"rotationX",mi),kt.rotationY=Xt("rotationY"in fe?fe.rotationY:"shortRotationY"in fe?fe.shortRotationY+"_short":xe.rotationY||0,xe.rotationY,"rotationY",mi)),kt.skewX=Xt(fe.skewX,xe.skewX),kt.skewY=Xt(fe.skewY,xe.skewY)}for(vr&&fe.force3D!=null&&(xe.force3D=fe.force3D,oe=!0),he=xe.force3D||xe.z||xe.rotationX||xe.rotationY||kt.z||kt.rotationX||kt.rotationY||kt.perspective,he||fe.scale==null||(kt.scaleZ=1);--Fe>-1;)He=Fl[Fe],Le=kt[He]-xe[He],(Le>ye||-ye>Le||fe[He]!=null||Bt[He]!=null)&&(oe=!0,j=new Ei(xe,He,xe[He],Le,j),He in mi&&(j.e=mi[He]),j.xs0=0,j.plugin=St,at._overwriteProps.push(j.n));return Le=fe.transformOrigin,xe.svg&&(Le||fe.svgOrigin)&&(_e=xe.xOffset,ue=xe.yOffset,na(V,nt(Le),kt,fe.svgOrigin,fe.smoothOrigin),j=qr(xe,"xOrigin",(ci?xe:kt).xOrigin,kt.xOrigin,j,Pe),j=qr(xe,"yOrigin",(ci?xe:kt).yOrigin,kt.yOrigin,j,Pe),(_e!==xe.xOffset||ue!==xe.yOffset)&&(j=qr(xe,"xOffset",ci?_e:xe.xOffset,xe.xOffset,j,Pe),j=qr(xe,"yOffset",ci?ue:xe.yOffset,xe.yOffset,j,Pe)),Le="0px 0px"),(Le||vr&&he&&xe.zOrigin)&&(Mn?(oe=!0,He=mo,Le=(Le||pt(V,He,d,!1,"50% 50%"))+"",j=new Ei(ke,He,0,0,j,-1,Pe),j.b=ke[He],j.plugin=St,vr?(Mt=xe.zOrigin,Le=Le.split(" "),xe.zOrigin=(Le.length>2&&(Mt===0||Le[2]!=="0px")?parseFloat(Le[2]):Mt)||0,j.xs0=j.e=Le[0]+" "+(Le[1]||"50%")+" 0px",j=new Ei(xe,"zOrigin",0,0,j,-1,j.n),j.b=Mt,j.xs0=j.e=xe.zOrigin):j.xs0=j.e=Le):nt(Le+"",xe)),oe&&(at._transformType=xe.svg&&as||!he&&this._transformType!==3?2:3),Ot&&(ht[lt]=Ot),Ht&&(ht.scale=Ht),j},prefix:!0}),Ii("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ii("borderRadius",{defaultValue:"0px",parser:function(V,tt,lt,at,j,St){tt=this.format(tt);var ht,Ot,Ht,kt,Mt,he,oe,te,_e,ue,je,He,ci,ke,ye,Fe,fe=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],mi=V.style;for(_e=parseFloat(V.offsetWidth),ue=parseFloat(V.offsetHeight),ht=tt.split(" "),Ot=0;Ot<fe.length;Ot++)this.p.indexOf("border")&&(fe[Ot]=Jt(fe[Ot])),Mt=kt=pt(V,fe[Ot],d,!1,"0px"),Mt.indexOf(" ")!==-1&&(kt=Mt.split(" "),Mt=kt[0],kt=kt[1]),he=Ht=ht[Ot],oe=parseFloat(Mt),He=Mt.substr((oe+"").length),ci=he.charAt(1)==="=",ci?(te=parseInt(he.charAt(0)+"1",10),he=he.substr(2),te*=parseFloat(he),je=he.substr((te+"").length-(0>te?1:0))||""):(te=parseFloat(he),je=he.substr((te+"").length)),je===""&&(je=p[lt]||He),je!==He&&(ke=dt(V,"borderLeft",oe,He),ye=dt(V,"borderTop",oe,He),je==="%"?(Mt=ke/_e*100+"%",kt=ye/ue*100+"%"):je==="em"?(Fe=dt(V,"borderLeft",1,"em"),Mt=ke/Fe+"em",kt=ye/Fe+"em"):(Mt=ke+"px",kt=ye+"px"),ci&&(he=parseFloat(Mt)+te+je,Ht=parseFloat(kt)+te+je)),j=or(mi,fe[Ot],Mt+" "+kt,he+" "+Ht,!1,"0px",j);return j},prefix:!0,formatter:_i("0px 0px 0px 0px",!1,!0)}),Ii("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(V,tt,lt,at,j,St){return or(V.style,lt,this.format(pt(V,lt,d,!1,"0px 0px")),this.format(tt),!1,"0px",j)},prefix:!0,formatter:_i("0px 0px",!1,!0)}),Ii("backgroundPosition",{defaultValue:"0 0",parser:function(V,tt,lt,at,j,St){var ht,Ot,Ht,kt,Mt,he,oe="background-position",te=d||Wt(V,null),_e=this.format((te?E?te.getPropertyValue(oe+"-x")+" "+te.getPropertyValue(oe+"-y"):te.getPropertyValue(oe):V.currentStyle.backgroundPositionX+" "+V.currentStyle.backgroundPositionY)||"0 0"),ue=this.format(tt);if(_e.indexOf("%")!==-1!=(ue.indexOf("%")!==-1)&&ue.split(",").length<2&&(he=pt(V,"backgroundImage").replace(yt,""),he&&he!=="none")){for(ht=_e.split(" "),Ot=ue.split(" "),Fi.setAttribute("src",he),Ht=2;--Ht>-1;)_e=ht[Ht],kt=_e.indexOf("%")!==-1,kt!==(Ot[Ht].indexOf("%")!==-1)&&(Mt=Ht===0?V.offsetWidth-Fi.width:V.offsetHeight-Fi.height,ht[Ht]=kt?parseFloat(_e)/100*Mt+"px":parseFloat(_e)/Mt*100+"%");_e=ht.join(" ")}return this.parseComplex(V.style,_e,ue,j,St)},formatter:nt}),Ii("backgroundSize",{defaultValue:"0 0",formatter:function(V){return V+="",V.substr(0,2)==="co"?V:nt(V.indexOf(" ")===-1?V+" "+V:V)}}),Ii("perspective",{defaultValue:"0px",prefix:!0}),Ii("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ii("transformStyle",{prefix:!0}),Ii("backfaceVisibility",{prefix:!0}),Ii("userSelect",{prefix:!0}),Ii("margin",{parser:Si("marginTop,marginRight,marginBottom,marginLeft")}),Ii("padding",{parser:Si("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ii("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(V,tt,lt,at,j,St){var ht,Ot,Ht;return 9>E?(Ot=V.currentStyle,Ht=8>E?" ":",",ht="rect("+Ot.clipTop+Ht+Ot.clipRight+Ht+Ot.clipBottom+Ht+Ot.clipLeft+")",tt=this.format(tt).split(",").join(Ht)):(ht=this.format(pt(V,this.p,d,!1,this.dflt)),tt=this.format(tt)),this.parseComplex(V.style,ht,tt,j,St)}}),Ii("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ii("autoRound,strictUnits",{parser:function(V,tt,lt,at,j){return j}}),Ii("border",{defaultValue:"0px solid #000",parser:function(V,tt,lt,at,j,St){var ht=pt(V,"borderTopWidth",d,!1,"0px"),Ot=this.format(tt).split(" "),Ht=Ot[0].replace(B,"");return Ht!=="px"&&(ht=parseFloat(ht)/dt(V,"borderTopWidth",1,Ht)+Ht),this.parseComplex(V.style,this.format(ht+" "+pt(V,"borderTopStyle",d,!1,"solid")+" "+pt(V,"borderTopColor",d,!1,"#000")),Ot.join(" "),j,St)},color:!0,formatter:function(V){var tt=V.split(" ");return tt[0]+" "+(tt[1]||"solid")+" "+(V.match(we)||["#000"])[0]}}),Ii("borderWidth",{parser:Si("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ii("float,cssFloat,styleFloat",{parser:function(V,tt,lt,at,j,St){var ht=V.style,Ot="cssFloat"in ht?"cssFloat":"styleFloat";return new Ei(ht,Ot,0,0,j,-1,lt,!1,0,ht[Ot],tt)}});var Lh=function(V){var tt,lt=this.t,at=lt.filter||pt(this.data,"filter")||"",j=this.s+this.c*V|0;j===100&&(at.indexOf("atrix(")===-1&&at.indexOf("radient(")===-1&&at.indexOf("oader(")===-1?(lt.removeAttribute("filter"),tt=!pt(this.data,"filter")):(lt.filter=at.replace(Q,""),tt=!0)),tt||(this.xn1&&(lt.filter=at=at||"alpha(opacity="+j+")"),at.indexOf("pacity")===-1?j===0&&this.xn1||(lt.filter=at+" alpha(opacity="+j+")"):lt.filter=at.replace(X,"opacity="+j))};Ii("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(V,tt,lt,at,j,St){var ht=parseFloat(pt(V,"opacity",d,!1,"1")),Ot=V.style,Ht=lt==="autoAlpha";return typeof tt=="string"&&tt.charAt(1)==="="&&(tt=(tt.charAt(0)==="-"?-1:1)*parseFloat(tt.substr(2))+ht),Ht&&ht===1&&pt(V,"visibility",d)==="hidden"&&tt!==0&&(ht=0),di?j=new Ei(Ot,"opacity",ht,tt-ht,j):(j=new Ei(Ot,"opacity",100*ht,100*(tt-ht),j),j.xn1=Ht?1:0,Ot.zoom=1,j.type=2,j.b="alpha(opacity="+j.s+")",j.e="alpha(opacity="+(j.s+j.c)+")",j.data=V,j.plugin=St,j.setRatio=Lh),Ht&&(j=new Ei(Ot,"visibility",0,0,j,-1,null,!1,0,ht!==0?"inherit":"hidden",tt===0?"hidden":"inherit"),j.xs0="inherit",at._overwriteProps.push(j.n),at._overwriteProps.push(lt)),j}});var go=function(V,tt){tt&&(V.removeProperty?((tt.substr(0,2)==="ms"||tt.substr(0,6)==="webkit")&&(tt="-"+tt),V.removeProperty(tt.replace(Ct,"-$1").toLowerCase())):V.removeAttribute(tt))},vo=function(V){if(this.t._gsClassPT=this,V===1||V===0){this.t.setAttribute("class",V===0?this.b:this.e);for(var tt=this.data,lt=this.t.style;tt;)tt.v?lt[tt.p]=tt.v:go(lt,tt.p),tt=tt._next;V===1&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Ii("className",{parser:function(V,tt,lt,at,j,St,ht){var Ot,Ht,kt,Mt,he,oe=V.getAttribute("class")||"",te=V.style.cssText;if(j=at._classNamePT=new Ei(V,lt,0,0,j,2),j.setRatio=vo,j.pr=-11,o=!0,j.b=oe,Ht=ie(V,d),kt=V._gsClassPT){for(Mt={},he=kt.data;he;)Mt[he.p]=1,he=he._next;kt.setRatio(1)}return V._gsClassPT=j,j.e=tt.charAt(1)!=="="?tt:oe.replace(new RegExp("(?:\\s|^)"+tt.substr(2)+"(?![\\w-])"),"")+(tt.charAt(0)==="+"?" "+tt.substr(2):""),V.setAttribute("class",j.e),Ot=Kt(V,Ht,ie(V),ht,Mt),V.setAttribute("class",oe),j.data=Ot.firstMPT,V.style.cssText=te,j=j.xfirst=at.parse(V,Ot.difs,j,St)}});var Hl=function(V){if((V===1||V===0)&&this.data._totalTime===this.data._totalDuration&&this.data.data!=="isFromStart"){var tt,lt,at,j,St,ht=this.t.style,Ot=T.transform.parse;if(this.e==="all")ht.cssText="",j=!0;else for(tt=this.e.split(" ").join("").split(","),at=tt.length;--at>-1;)lt=tt[at],T[lt]&&(T[lt].parse===Ot?j=!0:lt=lt==="transformOrigin"?mo:T[lt].p),go(ht,lt);j&&(go(ht,Mn),St=this.t._gsTransform,St&&(St.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ii("clearProps",{parser:function(V,tt,lt,at,j){return j=new Ei(V,lt,0,0,j,2),j.setRatio=Hl,j.e=tt,j.pr=-10,j.data=at._tween,o=!0,j}}),S="bezier,throwProps,physicsProps,physics2D".split(","),on=S.length;on--;)Xs(S[on]);S=m.prototype,S._firstPT=S._lastParsedTransform=S._transform=null,S._onInitTween=function(V,tt,lt,at){if(!V.nodeType)return!1;this._target=L=V,this._tween=lt,this._vars=tt,x=at,C=tt.autoRound,o=!1,p=tt.suffixMap||m.suffixMap,d=Wt(V,""),u=this._overwriteProps;var j,St,ht,Ot,Ht,kt,Mt,he,oe,te=V.style;if(I&&te.zIndex===""&&(j=pt(V,"zIndex",d),(j==="auto"||j==="")&&this._addLazySet(te,"zIndex",0)),typeof tt=="string"&&(Ot=te.cssText,j=ie(V,d),te.cssText=Ot+";"+tt,j=Kt(V,j,ie(V)).difs,!di&&$.test(tt)&&(j.opacity=parseFloat(RegExp.$1)),tt=j,te.cssText=Ot),tt.className?this._firstPT=St=T.className.parse(V,tt.className,"className",this,null,null,tt):this._firstPT=St=this.parse(V,tt,null),this._transformType){for(oe=this._transformType===3,Mn?N&&(I=!0,te.zIndex===""&&(Mt=pt(V,"zIndex",d),(Mt==="auto"||Mt==="")&&this._addLazySet(te,"zIndex",0)),U&&this._addLazySet(te,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(oe?"visible":"hidden"))):te.zoom=1,ht=St;ht&&ht._next;)ht=ht._next;he=new Ei(V,"transform",0,0,null,2),this._linkCSSP(he,null,ht),he.setRatio=Mn?Ph:Gl,he.data=this._transform||us(V,d,!0),he.tween=lt,he.pr=-1,u.pop()}if(o){for(;St;){for(kt=St._next,ht=Ot;ht&&ht.pr>St.pr;)ht=ht._next;(St._prev=ht?ht._prev:Ht)?St._prev._next=St:Ot=St,(St._next=ht)?ht._prev=St:Ht=St,St=kt}this._firstPT=Ot}return!0},S.parse=function(V,tt,lt,at){var j,St,ht,Ot,Ht,kt,Mt,he,oe,te,_e=V.style;for(j in tt){if(kt=tt[j],typeof kt=="function"&&(kt=kt(x,L)),St=T[j])lt=St.parse(V,kt,j,this,lt,at,tt);else{if(j.substr(0,2)==="--"){this._tween._propLookup[j]=this._addTween.call(this._tween,V.style,"setProperty",Wt(V).getPropertyValue(j)+"",kt+"",j,!1,j);continue}Ht=pt(V,j,d)+"",oe=typeof kt=="string",j==="color"||j==="fill"||j==="stroke"||j.indexOf("Color")!==-1||oe&&ft.test(kt)?(oe||(kt=Re(kt),kt=(kt.length>3?"rgba(":"rgb(")+kt.join(",")+")"),lt=or(_e,j,Ht,kt,!0,"transparent",lt,0,at)):oe&&re.test(kt)?lt=or(_e,j,Ht,kt,!0,null,lt,0,at):(ht=parseFloat(Ht),Mt=ht||ht===0?Ht.substr((ht+"").length):"",(Ht===""||Ht==="auto")&&(j==="width"||j==="height"?(ht=ot(V,j,d),Mt="px"):j==="left"||j==="top"?(ht=Dt(V,j,d),Mt="px"):(ht=j!=="opacity"?0:1,Mt="")),te=oe&&kt.charAt(1)==="=",te?(Ot=parseInt(kt.charAt(0)+"1",10),kt=kt.substr(2),Ot*=parseFloat(kt),he=kt.replace(B,"")):(Ot=parseFloat(kt),he=oe?kt.replace(B,""):""),he===""&&(he=j in p?p[j]:Mt),kt=Ot||Ot===0?(te?Ot+ht:Ot)+he:tt[j],Mt!==he&&(he!==""||j==="lineHeight")&&(Ot||Ot===0)&&ht&&(ht=dt(V,j,ht,Mt),he==="%"?(ht/=dt(V,j,100,"%")/100,tt.strictUnits!==!0&&(Ht=ht+"%")):he==="em"||he==="rem"||he==="vw"||he==="vh"?ht/=dt(V,j,1,he):he!=="px"&&(Ot=dt(V,j,Ot,he),he="px"),te&&(Ot||Ot===0)&&(kt=Ot+ht+he)),te&&(Ot+=ht),!ht&&ht!==0||!Ot&&Ot!==0?_e[j]!==void 0&&(kt||kt+""!="NaN"&&kt!=null)?(lt=new Ei(_e,j,Ot||ht||0,0,lt,-1,j,!1,0,Ht,kt),lt.xs0=kt!=="none"||j!=="display"&&j.indexOf("Style")===-1?kt:Ht):mn("invalid "+j+" tween value: "+tt[j]):(lt=new Ei(_e,j,ht,Ot-ht,lt,0,j,C!==!1&&(he==="px"||j==="zIndex"),0,Ht,kt),lt.xs0=he))}at&<&&!lt.plugin&&(lt.plugin=at)}return lt},S.setRatio=function(V){var tt,lt,at,j=this._firstPT,St=1e-6;if(V!==1||this._tween._time!==this._tween._duration&&this._tween._time!==0)if(V||this._tween._time!==this._tween._duration&&this._tween._time!==0||this._tween._rawPrevTime===-1e-6)for(;j;){if(tt=j.c*V+j.s,j.r?tt=j.r(tt):St>tt&&tt>-St&&(tt=0),j.type)if(j.type===1)if(at=j.l,at===2)j.t[j.p]=j.xs0+tt+j.xs1+j.xn1+j.xs2;else if(at===3)j.t[j.p]=j.xs0+tt+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3;else if(at===4)j.t[j.p]=j.xs0+tt+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3+j.xn3+j.xs4;else if(at===5)j.t[j.p]=j.xs0+tt+j.xs1+j.xn1+j.xs2+j.xn2+j.xs3+j.xn3+j.xs4+j.xn4+j.xs5;else{for(lt=j.xs0+tt+j.xs1,at=1;at<j.l;at++)lt+=j["xn"+at]+j["xs"+(at+1)];j.t[j.p]=lt}else j.type===-1?j.t[j.p]=j.xs0:j.setRatio&&j.setRatio(V);else j.t[j.p]=tt+j.xs0;j=j._next}else for(;j;)j.type!==2?j.t[j.p]=j.b:j.setRatio(V),j=j._next;else for(;j;){if(j.type!==2)if(j.r&&j.type!==-1)if(tt=j.r(j.s+j.c),j.type){if(j.type===1){for(at=j.l,lt=j.xs0+tt+j.xs1,at=1;at<j.l;at++)lt+=j["xn"+at]+j["xs"+(at+1)];j.t[j.p]=lt}}else j.t[j.p]=tt+j.xs0;else j.t[j.p]=j.e;else j.setRatio(V);j=j._next}},S._enableTransforms=function(V){this._transform=this._transform||us(this._target,d,!0),this._transformType=this._transform.svg&&as||!V&&this._transformType!==3?2:3};var Vl=function(V){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};S._addLazySet=function(V,tt,lt){var at=this._firstPT=new Ei(V,tt,0,0,this._firstPT,2);at.e=lt,at.setRatio=Vl,at.data=this},S._linkCSSP=function(V,tt,lt,at){return V&&(tt&&(tt._prev=V),V._next&&(V._next._prev=V._prev),V._prev?V._prev._next=V._next:this._firstPT===V&&(this._firstPT=V._next,at=!0),lt?lt._next=V:at||this._firstPT!==null||(this._firstPT=V),V._next=tt,V._prev=lt),V},S._mod=function(V){for(var tt=this._firstPT;tt;)typeof V[tt.p]=="function"&&(tt.r=V[tt.p]),tt=tt._next},S._kill=function(V){var tt,lt,at,j=V;if(V.autoAlpha||V.alpha){j={};for(lt in V)j[lt]=V[lt];j.opacity=1,j.autoAlpha&&(j.visibility=1)}for(V.className&&(tt=this._classNamePT)&&(at=tt.xfirst,at&&at._prev?this._linkCSSP(at._prev,tt._next,at._prev._prev):at===this._firstPT&&(this._firstPT=tt._next),tt._next&&this._linkCSSP(tt._next,tt._next._next,at._prev),this._classNamePT=null),tt=this._firstPT;tt;)tt.plugin&&tt.plugin!==lt&&tt.plugin._kill&&(tt.plugin._kill(V),lt=tt.plugin),tt=tt._next;return w.prototype._kill.call(this,j)};var Yr=function(V,tt,lt){var at,j,St,ht;if(V.slice)for(j=V.length;--j>-1;)Yr(V[j],tt,lt);else for(at=V.childNodes,j=at.length;--j>-1;)St=at[j],ht=St.type,St.style&&(tt.push(ie(St)),lt&<.push(St)),ht!==1&&ht!==9&&ht!==11||!St.childNodes.length||Yr(St,tt,lt)};return m.cascadeTo=function(V,tt,lt){var at,j,St,ht,Ot=l.to(V,tt,lt),Ht=[Ot],kt=[],Mt=[],he=[],oe=l._internals.reservedProps;for(V=Ot._targets||Ot.target,Yr(V,kt,he),Ot.render(tt,!0,!0),Yr(V,Mt),Ot.render(0,!0,!0),Ot._enabled(!0),at=he.length;--at>-1;)if(j=Kt(he[at],kt[at],Mt[at]),j.firstMPT){j=j.difs;for(St in lt)oe[St]&&(j[St]=lt[St]);ht={};for(St in j)ht[St]=kt[at][St];Ht.push(l.fromTo(he[at],tt,ht,j))}return Ht},w.activate([m]),m},!0),function(){var w=ln._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(d,u,m){return this._tween=m,!0}}),l=function(d){var u=1>d?Math.pow(10,(d+"").length-2):1;return function(m){return(Math.round(m/d)*d*u|0)/u}},o=function(d,u){for(;d;)d.f||d.blob||(d.m=u||Math.round),d=d._next},p=w.prototype;p._onInitAllProps=function(){var d,u,m,_,T=this._tween,S=T.vars.roundProps,C={},I=T._propLookup.roundProps;if(typeof S!="object"||S.push)for(typeof S=="string"&&(S=S.split(",")),m=S.length;--m>-1;)C[S[m]]=Math.round;else for(_ in S)C[_]=l(S[_]);for(_ in C)for(d=T._firstPT;d;)u=d._next,d.pg?d.t._mod(C):d.n===_&&(d.f===2&&d.t?o(d.t._firstPT,C[_]):(this._add(d.t,_,d.s,d.c,C[_]),u&&(u._prev=d._prev),d._prev?d._prev._next=u:T._firstPT===d&&(T._firstPT=u),d._next=d._prev=null,T._propLookup[_]=I)),d=u;return!1},p._add=function(d,u,m,_,T){this._addTween(d,u,m,m+_,u,T||Math.round),this._overwriteProps.push(u)}}(),function(){ln._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(w,l,o,p){var d,u;if(typeof w.setAttribute!="function")return!1;for(d in l)u=l[d],typeof u=="function"&&(u=u(p,w)),this._addTween(w,"setAttribute",w.getAttribute(d)+"",u+"",d,!1,d),this._overwriteProps.push(d);return!0}})}(),ln._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(w,l,o,p){typeof l!="object"&&(l={rotation:l}),this.finals={};var d,u,m,_,T,S,C=l.useRadians===!0?2*Math.PI:360,I=1e-6;for(d in l)d!=="useRadians"&&(_=l[d],typeof _=="function"&&(_=_(p,w)),S=(_+"").split("_"),u=S[0],m=parseFloat(typeof w[d]!="function"?w[d]:w[d.indexOf("set")||typeof w["get"+d.substr(3)]!="function"?d:"get"+d.substr(3)]()),_=this.finals[d]=typeof u=="string"&&u.charAt(1)==="="?m+parseInt(u.charAt(0)+"1",10)*Number(u.substr(2)):Number(u)||0,T=_-m,S.length&&(u=S.join("_"),u.indexOf("short")!==-1&&(T%=C,T!==T%(C/2)&&(T=0>T?T+C:T-C)),u.indexOf("_cw")!==-1&&0>T?T=(T+9999999999*C)%C-(T/C|0)*C:u.indexOf("ccw")!==-1&&T>0&&(T=(T-9999999999*C)%C-(T/C|0)*C)),(T>I||-I>T)&&(this._addTween(w,d,m,m+T,d),this._overwriteProps.push(d)));return!0},set:function(w){var l;if(w!==1)this._super.setRatio.call(this,w);else for(l=this._firstPT;l;)l.f?l.t[l.p](this.finals[l.p]):l.t[l.p]=this.finals[l.p],l=l._next}})._autoCSS=!0,ln._gsDefine("easing.Back",["easing.Ease"],function(w){var l,o,p,d,u=ln.GreenSockGlobals||ln,m=u.com.greensock,_=2*Math.PI,T=Math.PI/2,S=m._class,C=function(M,R){var b=S("easing."+M,function(){},!0),F=b.prototype=new w;return F.constructor=b,F.getRatio=R,b},I=w.register||function(){},N=function(M,R,b,F,B){var X=S("easing."+M,{easeOut:new R,easeIn:new b,easeInOut:new F},!0);return I(X,M),X},z=function(M,R,b){this.t=M,this.v=R,b&&(this.next=b,b.prev=this,this.c=b.v-R,this.gap=b.t-M)},U=function(M,R){var b=S("easing."+M,function(B){this._p1=B||B===0?B:1.70158,this._p2=1.525*this._p1},!0),F=b.prototype=new w;return F.constructor=b,F.getRatio=R,F.config=function(B){return new b(B)},b},E=N("Back",U("BackOut",function(M){return(M-=1)*M*((this._p1+1)*M+this._p1)+1}),U("BackIn",function(M){return M*M*((this._p1+1)*M-this._p1)}),U("BackInOut",function(M){return(M*=2)<1?.5*M*M*((this._p2+1)*M-this._p2):.5*((M-=2)*M*((this._p2+1)*M+this._p2)+2)})),L=S("easing.SlowMo",function(M,R,b){R=R||R===0?R:.7,M==null?M=.7:M>1&&(M=1),this._p=M!==1?R:0,this._p1=(1-M)/2,this._p2=M,this._p3=this._p1+this._p2,this._calcEnd=b===!0},!0),x=L.prototype=new w;return x.constructor=L,x.getRatio=function(M){var R=M+(.5-M)*this._p;return M<this._p1?this._calcEnd?1-(M=1-M/this._p1)*M:R-(M=1-M/this._p1)*M*M*M*R:M>this._p3?this._calcEnd?M===1?0:1-(M=(M-this._p3)/this._p1)*M:R+(M-R)*(M=(M-this._p3)/this._p1)*M*M*M:this._calcEnd?1:R},L.ease=new L(.7,.7),x.config=L.config=function(M,R,b){return new L(M,R,b)},l=S("easing.SteppedEase",function(M,R){M=M||1,this._p1=1/M,this._p2=M+(R?0:1),this._p3=R?1:0},!0),x=l.prototype=new w,x.constructor=l,x.getRatio=function(M){return 0>M?M=0:M>=1&&(M=.999999999),((this._p2*M|0)+this._p3)*this._p1},x.config=l.config=function(M,R){return new l(M,R)},o=S("easing.ExpoScaleEase",function(M,R,b){this._p1=Math.log(R/M),this._p2=R-M,this._p3=M,this._ease=b},!0),x=o.prototype=new w,x.constructor=o,x.getRatio=function(M){return this._ease&&(M=this._ease.getRatio(M)),(this._p3*Math.exp(this._p1*M)-this._p3)/this._p2},x.config=o.config=function(M,R,b){return new o(M,R,b)},p=S("easing.RoughEase",function(M){M=M||{};for(var R,b,F,B,X,$,Q=M.taper||"none",ft=[],Ct=0,it=0|(M.points||20),yt=it,G=M.randomize!==!1,Lt=M.clamp===!0,Et=M.template instanceof w?M.template:null,Pt=typeof M.strength=="number"?.4*M.strength:.4;--yt>-1;)R=G?Math.random():1/it*yt,b=Et?Et.getRatio(R):R,Q==="none"?F=Pt:Q==="out"?(B=1-R,F=B*B*Pt):Q==="in"?F=R*R*Pt:.5>R?(B=2*R,F=B*B*.5*Pt):(B=2*(1-R),F=B*B*.5*Pt),G?b+=Math.random()*F-.5*F:yt%2?b+=.5*F:b-=.5*F,Lt&&(b>1?b=1:0>b&&(b=0)),ft[Ct++]={x:R,y:b};for(ft.sort(function(ce,re){return ce.x-re.x}),$=new z(1,1,null),yt=it;--yt>-1;)X=ft[yt],$=new z(X.x,X.y,$);this._prev=new z(0,0,$.t!==0?$:$.next)},!0),x=p.prototype=new w,x.constructor=p,x.getRatio=function(M){var R=this._prev;if(M>R.t){for(;R.next&&M>=R.t;)R=R.next;R=R.prev}else for(;R.prev&&M<=R.t;)R=R.prev;return this._prev=R,R.v+(M-R.t)/R.gap*R.c},x.config=function(M){return new p(M)},p.ease=new p,N("Bounce",C("BounceOut",function(M){return 1/2.75>M?7.5625*M*M:2/2.75>M?7.5625*(M-=1.5/2.75)*M+.75:2.5/2.75>M?7.5625*(M-=2.25/2.75)*M+.9375:7.5625*(M-=2.625/2.75)*M+.984375}),C("BounceIn",function(M){return(M=1-M)<1/2.75?1-7.5625*M*M:2/2.75>M?1-(7.5625*(M-=1.5/2.75)*M+.75):2.5/2.75>M?1-(7.5625*(M-=2.25/2.75)*M+.9375):1-(7.5625*(M-=2.625/2.75)*M+.984375)}),C("BounceInOut",function(M){var R=.5>M;return M=R?1-2*M:2*M-1,M=1/2.75>M?7.5625*M*M:2/2.75>M?7.5625*(M-=1.5/2.75)*M+.75:2.5/2.75>M?7.5625*(M-=2.25/2.75)*M+.9375:7.5625*(M-=2.625/2.75)*M+.984375,R?.5*(1-M):.5*M+.5})),N("Circ",C("CircOut",function(M){return Math.sqrt(1-(M-=1)*M)}),C("CircIn",function(M){return-(Math.sqrt(1-M*M)-1)}),C("CircInOut",function(M){return(M*=2)<1?-.5*(Math.sqrt(1-M*M)-1):.5*(Math.sqrt(1-(M-=2)*M)+1)})),d=function(M,R,b){var F=S("easing."+M,function(X,$){this._p1=X>=1?X:1,this._p2=($||b)/(1>X?X:1),this._p3=this._p2/_*(Math.asin(1/this._p1)||0),this._p2=_/this._p2},!0),B=F.prototype=new w;return B.constructor=F,B.getRatio=R,B.config=function(X,$){return new F(X,$)},F},N("Elastic",d("ElasticOut",function(M){return this._p1*Math.pow(2,-10*M)*Math.sin((M-this._p3)*this._p2)+1},.3),d("ElasticIn",function(M){return-(this._p1*Math.pow(2,10*(M-=1))*Math.sin((M-this._p3)*this._p2))},.3),d("ElasticInOut",function(M){return(M*=2)<1?-.5*(this._p1*Math.pow(2,10*(M-=1))*Math.sin((M-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(M-=1))*Math.sin((M-this._p3)*this._p2)*.5+1},.45)),N("Expo",C("ExpoOut",function(M){return 1-Math.pow(2,-10*M)}),C("ExpoIn",function(M){return Math.pow(2,10*(M-1))-.001}),C("ExpoInOut",function(M){return(M*=2)<1?.5*Math.pow(2,10*(M-1)):.5*(2-Math.pow(2,-10*(M-1)))})),N("Sine",C("SineOut",function(M){return Math.sin(M*T)}),C("SineIn",function(M){return-Math.cos(M*T)+1}),C("SineInOut",function(M){return-.5*(Math.cos(Math.PI*M)-1)})),S("easing.EaseLookup",{find:function(M){return w.map[M]}},!0),I(u.SlowMo,"SlowMo","ease,"),I(p,"RoughEase","ease,"),I(l,"SteppedEase","ease,"),E},!0)}),ln._gsDefine&&ln._gsQueue.pop()(),function(w,l){var o={},p=w.document,d=w.GreenSockGlobals=w.GreenSockGlobals||w,u=d[l];if(u)return typeof module<"u"&&module.exports&&(module.exports=u),u;var m,_,T,S,C,I=function(D){var K,ot=D.split("."),nt=d;for(K=0;K<ot.length;K++)nt[ot[K]]=nt=nt[ot[K]]||{};return nt},N=I("com.greensock"),z=1e-10,U=function(D){var K,ot=[],nt=D.length;for(K=0;K!==nt;ot.push(D[K++]));return ot},E=function(){},L=function(){var D=Object.prototype.toString,K=D.call([]);return function(ot){return ot!=null&&(ot instanceof Array||typeof ot=="object"&&!!ot.push&&D.call(ot)===K)}}(),x={},M=function(D,K,ot,nt){this.sc=x[D]?x[D].sc:[],x[D]=this,this.gsClass=null,this.func=ot;var vt=[];this.check=function(Gt){for(var Xt,jt,Ne,Re,ge=K.length,we=ge;--ge>-1;)(Xt=x[K[ge]]||new M(K[ge],[])).gsClass?(vt[ge]=Xt.gsClass,we--):Gt&&Xt.sc.push(this);if(we===0&&ot){if(jt=("com.greensock."+D).split("."),Ne=jt.pop(),Re=I(jt.join("."))[Ne]=this.gsClass=ot.apply(ot,vt),nt)if(d[Ne]=o[Ne]=Re,typeof module<"u"&&module.exports)if(D===l){module.exports=o[l]=Re;for(ge in o)Re[ge]=o[ge]}else o[l]&&(o[l][Ne]=Re);else typeof define=="function"&&define.amd&&define((w.GreenSockAMDPath?w.GreenSockAMDPath+"/":"")+D.split(".").pop(),[],function(){return Re});for(ge=0;ge<this.sc.length;ge++)this.sc[ge].check()}},this.check(!0)},R=w._gsDefine=function(D,K,ot,nt){return new M(D,K,ot,nt)},b=N._class=function(D,K,ot){return K=K||function(){},R(D,[],function(){return K},ot),K};R.globals=d;var F=[0,0,1,1],B=b("easing.Ease",function(D,K,ot,nt){this._func=D,this._type=ot||0,this._power=nt||0,this._params=K?F.concat(K):F},!0),X=B.map={},$=B.register=function(D,K,ot,nt){for(var vt,Gt,Xt,jt,Ne=K.split(","),Re=Ne.length,ge=(ot||"easeIn,easeOut,easeInOut").split(",");--Re>-1;)for(Gt=Ne[Re],vt=nt?b("easing."+Gt,null,!0):N.easing[Gt]||{},Xt=ge.length;--Xt>-1;)jt=ge[Xt],X[Gt+"."+jt]=X[jt+Gt]=vt[jt]=D.getRatio?D:D[jt]||new D};for(T=B.prototype,T._calcEnd=!1,T.getRatio=function(D){if(this._func)return this._params[0]=D,this._func.apply(null,this._params);var K=this._type,ot=this._power,nt=K===1?1-D:K===2?D:.5>D?2*D:2*(1-D);return ot===1?nt*=nt:ot===2?nt*=nt*nt:ot===3?nt*=nt*nt*nt:ot===4&&(nt*=nt*nt*nt*nt),K===1?1-nt:K===2?nt:.5>D?nt/2:1-nt/2},m=["Linear","Quad","Cubic","Quart","Quint,Strong"],_=m.length;--_>-1;)T=m[_]+",Power"+_,$(new B(null,null,1,_),T,"easeOut",!0),$(new B(null,null,2,_),T,"easeIn"+(_===0?",easeNone":"")),$(new B(null,null,3,_),T,"easeInOut");X.linear=N.easing.Linear.easeIn,X.swing=N.easing.Quad.easeInOut;var Q=b("events.EventDispatcher",function(D){this._listeners={},this._eventTarget=D||this});T=Q.prototype,T.addEventListener=function(D,K,ot,nt,vt){vt=vt||0;var Gt,Xt,jt=this._listeners[D],Ne=0;for(this!==S||C||S.wake(),jt==null&&(this._listeners[D]=jt=[]),Xt=jt.length;--Xt>-1;)Gt=jt[Xt],Gt.c===K&&Gt.s===ot?jt.splice(Xt,1):Ne===0&&Gt.pr<vt&&(Ne=Xt+1);jt.splice(Ne,0,{c:K,s:ot,up:nt,pr:vt})},T.removeEventListener=function(D,K){var ot,nt=this._listeners[D];if(nt){for(ot=nt.length;--ot>-1;)if(nt[ot].c===K)return void nt.splice(ot,1)}},T.dispatchEvent=function(D){var K,ot,nt,vt=this._listeners[D];if(vt)for(K=vt.length,K>1&&(vt=vt.slice(0)),ot=this._eventTarget;--K>-1;)nt=vt[K],nt&&(nt.up?nt.c.call(nt.s||ot,{type:D,target:ot}):nt.c.call(nt.s||ot))};var ft=w.requestAnimationFrame,Ct=w.cancelAnimationFrame,it=Date.now||function(){return new Date().getTime()},yt=it();for(m=["ms","moz","webkit","o"],_=m.length;--_>-1&&!ft;)ft=w[m[_]+"RequestAnimationFrame"],Ct=w[m[_]+"CancelAnimationFrame"]||w[m[_]+"CancelRequestAnimationFrame"];b("Ticker",function(D,K){var ot,nt,vt,Gt,Xt,jt=this,Ne=it(),Re=K!==!1&&ft?"auto":!1,ge=500,we=33,_i="tick",Si=function(ni){var Ei,qr,or=it()-yt;or>ge&&(Ne+=or-we),yt+=or,jt.time=(yt-Ne)/1e3,Ei=jt.time-Xt,(!ot||Ei>0||ni===!0)&&(jt.frame++,Xt+=Ei+(Ei>=Gt?.004:Gt-Ei),qr=!0),ni!==!0&&(vt=nt(Si)),qr&&jt.dispatchEvent(_i)};Q.call(jt),jt.time=jt.frame=0,jt.tick=function(){Si(!0)},jt.lagSmoothing=function(ni,Ei){return arguments.length?(ge=ni||1/z,void(we=Math.min(Ei,ge,0))):1/z>ge},jt.sleep=function(){vt!=null&&(Re&&Ct?Ct(vt):clearTimeout(vt),nt=E,vt=null,jt===S&&(C=!1))},jt.wake=function(ni){vt!==null?jt.sleep():ni?Ne+=-yt+(yt=it()):jt.frame>10&&(yt=it()-ge+5),nt=ot===0?E:Re&&ft?ft:function(Ei){return setTimeout(Ei,1e3*(Xt-jt.time)+1|0)},jt===S&&(C=!0),Si(2)},jt.fps=function(ni){return arguments.length?(ot=ni,Gt=1/(ot||60),Xt=this.time+Gt,void jt.wake()):ot},jt.useRAF=function(ni){return arguments.length?(jt.sleep(),Re=ni,void jt.fps(ot)):Re},jt.fps(D),setTimeout(function(){Re==="auto"&&jt.frame<5&&(p||{}).visibilityState!=="hidden"&&jt.useRAF(!1)},1500)}),T=N.Ticker.prototype=new N.events.EventDispatcher,T.constructor=N.Ticker;var G=b("core.Animation",function(D,K){if(this.vars=K=K||{},this._duration=this._totalDuration=D||0,this._delay=Number(K.delay)||0,this._timeScale=1,this._active=K.immediateRender===!0,this.data=K.data,this._reversed=K.reversed===!0,W){C||S.wake();var ot=this.vars.useFrames?Qi:W;ot.add(this,ot._time),this.vars.paused&&this.paused(!0)}});S=G.ticker=new N.Ticker,T=G.prototype,T._dirty=T._gc=T._initted=T._paused=!1,T._totalTime=T._time=0,T._rawPrevTime=-1,T._next=T._last=T._onUpdate=T._timeline=T.timeline=null,T._paused=!1;var Lt=function(){C&&it()-yt>2e3&&((p||{}).visibilityState!=="hidden"||!S.lagSmoothing())&&S.wake();var D=setTimeout(Lt,2e3);D.unref&&D.unref()};Lt(),T.play=function(D,K){return D!=null&&this.seek(D,K),this.reversed(!1).paused(!1)},T.pause=function(D,K){return D!=null&&this.seek(D,K),this.paused(!0)},T.resume=function(D,K){return D!=null&&this.seek(D,K),this.paused(!1)},T.seek=function(D,K){return this.totalTime(Number(D),K!==!1)},T.restart=function(D,K){return this.reversed(!1).paused(!1).totalTime(D?-this._delay:0,K!==!1,!0)},T.reverse=function(D,K){return D!=null&&this.seek(D||this.totalDuration(),K),this.reversed(!0).paused(!1)},T.render=function(D,K,ot){},T.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},T.isActive=function(){var D,K=this._timeline,ot=this._startTime;return!K||!this._gc&&!this._paused&&K.isActive()&&(D=K.rawTime(!0))>=ot&&D<ot+this.totalDuration()/this._timeScale-1e-7},T._enabled=function(D,K){return C||S.wake(),this._gc=!D,this._active=this.isActive(),K!==!0&&(D&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!D&&this.timeline&&this._timeline._remove(this,!0)),!1},T._kill=function(D,K){return this._enabled(!1,!1)},T.kill=function(D,K){return this._kill(D,K),this},T._uncache=function(D){for(var K=D?this:this.timeline;K;)K._dirty=!0,K=K.timeline;return this},T._swapSelfInParams=function(D){for(var K=D.length,ot=D.concat();--K>-1;)D[K]==="{self}"&&(ot[K]=this);return ot},T._callback=function(D){var K=this.vars,ot=K[D],nt=K[D+"Params"],vt=K[D+"Scope"]||K.callbackScope||this,Gt=nt?nt.length:0;switch(Gt){case 0:ot.call(vt);break;case 1:ot.call(vt,nt[0]);break;case 2:ot.call(vt,nt[0],nt[1]);break;default:ot.apply(vt,nt)}},T.eventCallback=function(D,K,ot,nt){if((D||"").substr(0,2)==="on"){var vt=this.vars;if(arguments.length===1)return vt[D];K==null?delete vt[D]:(vt[D]=K,vt[D+"Params"]=L(ot)&&ot.join("").indexOf("{self}")!==-1?this._swapSelfInParams(ot):ot,vt[D+"Scope"]=nt),D==="onUpdate"&&(this._onUpdate=K)}return this},T.delay=function(D){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+D-this._delay),this._delay=D,this):this._delay},T.duration=function(D){return arguments.length?(this._duration=this._totalDuration=D,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&D!==0&&this.totalTime(this._totalTime*(D/this._duration),!0),this):(this._dirty=!1,this._duration)},T.totalDuration=function(D){return this._dirty=!1,arguments.length?this.duration(D):this._totalDuration},T.time=function(D,K){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(D>this._duration?this._duration:D,K)):this._time},T.totalTime=function(D,K,ot){if(C||S.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>D&&!ot&&(D+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var nt=this._totalDuration,vt=this._timeline;if(D>nt&&!ot&&(D=nt),this._startTime=(this._paused?this._pauseTime:vt._time)-(this._reversed?nt-D:D)/this._timeScale,vt._dirty||this._uncache(!1),vt._timeline)for(;vt._timeline;)vt._timeline._time!==(vt._startTime+vt._totalTime)/vt._timeScale&&vt.totalTime(vt._totalTime,!0),vt=vt._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==D||this._duration===0)&&(Ft.length&&Wt(),this.render(D,K,!1),Ft.length&&Wt())}return this},T.progress=T.totalProgress=function(D,K){var ot=this.duration();return arguments.length?this.totalTime(ot*D,K):ot?this._time/ot:this.ratio},T.startTime=function(D){return arguments.length?(D!==this._startTime&&(this._startTime=D,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,D-this._delay)),this):this._startTime},T.endTime=function(D){return this._startTime+(D!=0?this.totalDuration():this.duration())/this._timeScale},T.timeScale=function(D){if(!arguments.length)return this._timeScale;var K,ot;for(D=D||z,this._timeline&&this._timeline.smoothChildTiming&&(K=this._pauseTime,ot=K||K===0?K:this._timeline.totalTime(),this._startTime=ot-(ot-this._startTime)*this._timeScale/D),this._timeScale=D,ot=this.timeline;ot&&ot.timeline;)ot._dirty=!0,ot.totalDuration(),ot=ot.timeline;return this},T.reversed=function(D){return arguments.length?(D!=this._reversed&&(this._reversed=D,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},T.paused=function(D){if(!arguments.length)return this._paused;var K,ot,nt=this._timeline;return D!=this._paused&&nt&&(C||D||S.wake(),K=nt.rawTime(),ot=K-this._pauseTime,!D&&nt.smoothChildTiming&&(this._startTime+=ot,this._uncache(!1)),this._pauseTime=D?K:null,this._paused=D,this._active=this.isActive(),!D&&ot!==0&&this._initted&&this.duration()&&(K=nt.smoothChildTiming?this._totalTime:(K-this._startTime)/this._timeScale,this.render(K,K===this._totalTime,!0))),this._gc&&!D&&this._enabled(!0,!1),this};var Et=b("core.SimpleTimeline",function(D){G.call(this,0,D),this.autoRemoveChildren=this.smoothChildTiming=!0});T=Et.prototype=new G,T.constructor=Et,T.kill()._gc=!1,T._first=T._last=T._recent=null,T._sortChildren=!1,T.add=T.insert=function(D,K,ot,nt){var vt,Gt;if(D._startTime=Number(K||0)+D._delay,D._paused&&this!==D._timeline&&(D._pauseTime=this.rawTime()-(D._timeline.rawTime()-D._pauseTime)),D.timeline&&D.timeline._remove(D,!0),D.timeline=D._timeline=this,D._gc&&D._enabled(!0,!0),vt=this._last,this._sortChildren)for(Gt=D._startTime;vt&&vt._startTime>Gt;)vt=vt._prev;return vt?(D._next=vt._next,vt._next=D):(D._next=this._first,this._first=D),D._next?D._next._prev=D:this._last=D,D._prev=vt,this._recent=D,this._timeline&&this._uncache(!0),this},T._remove=function(D,K){return D.timeline===this&&(K||D._enabled(!1,!0),D._prev?D._prev._next=D._next:this._first===D&&(this._first=D._next),D._next?D._next._prev=D._prev:this._last===D&&(this._last=D._prev),D._next=D._prev=D.timeline=null,D===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},T.render=function(D,K,ot){var nt,vt=this._first;for(this._totalTime=this._time=this._rawPrevTime=D;vt;)nt=vt._next,(vt._active||D>=vt._startTime&&!vt._paused&&!vt._gc)&&(vt._reversed?vt.render((vt._dirty?vt.totalDuration():vt._totalDuration)-(D-vt._startTime)*vt._timeScale,K,ot):vt.render((D-vt._startTime)*vt._timeScale,K,ot)),vt=nt},T.rawTime=function(){return C||S.wake(),this._totalTime};var Pt=b("TweenLite",function(D,K,ot){if(G.call(this,K,ot),this.render=Pt.prototype.render,D==null)throw"Cannot tween a null target.";this.target=D=typeof D!="string"?D:Pt.selector(D)||D;var nt,vt,Gt,Xt=D.jquery||D.length&&D!==w&&D[0]&&(D[0]===w||D[0].nodeType&&D[0].style&&!D.nodeType),jt=this.vars.overwrite;if(this._overwrite=jt=jt==null?mn[Pt.defaultOverwrite]:typeof jt=="number"?jt>>0:mn[jt],(Xt||D instanceof Array||D.push&&L(D))&&typeof D[0]!="number")for(this._targets=Gt=U(D),this._propLookup=[],this._siblings=[],nt=0;nt<Gt.length;nt++)vt=Gt[nt],vt?typeof vt!="string"?vt.length&&vt!==w&&vt[0]&&(vt[0]===w||vt[0].nodeType&&vt[0].style&&!vt.nodeType)?(Gt.splice(nt--,1),this._targets=Gt=Gt.concat(U(vt))):(this._siblings[nt]=pt(vt,this,!1),jt===1&&this._siblings[nt].length>1&&Dt(vt,this,null,1,this._siblings[nt])):(vt=Gt[nt--]=Pt.selector(vt),typeof vt=="string"&&Gt.splice(nt+1,1)):Gt.splice(nt--,1);else this._propLookup={},this._siblings=pt(D,this,!1),jt===1&&this._siblings.length>1&&Dt(D,this,null,1,this._siblings);(this.vars.immediateRender||K===0&&this._delay===0&&this.vars.immediateRender!==!1)&&(this._time=-z,this.render(Math.min(0,-this._delay)))},!0),ce=function(D){return D&&D.length&&D!==w&&D[0]&&(D[0]===w||D[0].nodeType&&D[0].style&&!D.nodeType)},re=function(D,K){var ot,nt={};for(ot in D)Oi[ot]||ot in K&&ot!=="transform"&&ot!=="x"&&ot!=="y"&&ot!=="width"&&ot!=="height"&&ot!=="className"&&ot!=="border"||!(!Oe[ot]||Oe[ot]&&Oe[ot]._autoCSS)||(nt[ot]=D[ot],delete D[ot]);D.css=nt};T=Pt.prototype=new G,T.constructor=Pt,T.kill()._gc=!1,T.ratio=0,T._firstPT=T._targets=T._overwrittenProps=T._startAt=null,T._notifyPluginsOfEnabled=T._lazy=!1,Pt.version="2.0.2",Pt.defaultEase=T._ease=new B(null,null,1,1),Pt.defaultOverwrite="auto",Pt.ticker=S,Pt.autoSleep=120,Pt.lagSmoothing=function(D,K){S.lagSmoothing(D,K)},Pt.selector=w.$||w.jQuery||function(D){var K=w.$||w.jQuery;return K?(Pt.selector=K,K(D)):(p||(p=w.document),p?p.querySelectorAll?p.querySelectorAll(D):p.getElementById(D.charAt(0)==="#"?D.substr(1):D):D)};var Ft=[],It={},Bt=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Be=/[\+-]=-?[\.\d]/,me=function(D){for(var K,ot=this._firstPT,nt=1e-6;ot;)K=ot.blob?D===1&&this.end!=null?this.end:D?this.join(""):this.start:ot.c*D+ot.s,ot.m?K=ot.m.call(this._tween,K,this._target||ot.t,this._tween):nt>K&&K>-nt&&!ot.blob&&(K=0),ot.f?ot.fp?ot.t[ot.p](ot.fp,K):ot.t[ot.p](K):ot.t[ot.p]=K,ot=ot._next},Yt=function(D,K,ot,nt){var vt,Gt,Xt,jt,Ne,Re,ge,we=[],_i=0,Si="",ni=0;for(we.start=D,we.end=K,D=we[0]=D+"",K=we[1]=K+"",ot&&(ot(we),D=we[0],K=we[1]),we.length=0,vt=D.match(Bt)||[],Gt=K.match(Bt)||[],nt&&(nt._next=null,nt.blob=1,we._firstPT=we._applyPT=nt),Ne=Gt.length,jt=0;Ne>jt;jt++)ge=Gt[jt],Re=K.substr(_i,K.indexOf(ge,_i)-_i),Si+=Re||!jt?Re:",",_i+=Re.length,ni?ni=(ni+1)%5:Re.substr(-5)==="rgba("&&(ni=1),ge===vt[jt]||vt.length<=jt?Si+=ge:(Si&&(we.push(Si),Si=""),Xt=parseFloat(vt[jt]),we.push(Xt),we._firstPT={_next:we._firstPT,t:we,p:we.length-1,s:Xt,c:(ge.charAt(1)==="="?parseInt(ge.charAt(0)+"1",10)*parseFloat(ge.substr(2)):parseFloat(ge)-Xt)||0,f:0,m:ni&&4>ni?Math.round:0}),_i+=ge.length;return Si+=K.substr(_i),Si&&we.push(Si),we.setRatio=me,Be.test(K)&&(we.end=null),we},ti=function(D,K,ot,nt,vt,Gt,Xt,jt,Ne){typeof nt=="function"&&(nt=nt(Ne||0,D));var Re,ge=typeof D[K],we=ge!=="function"?"":K.indexOf("set")||typeof D["get"+K.substr(3)]!="function"?K:"get"+K.substr(3),_i=ot!=="get"?ot:we?Xt?D[we](Xt):D[we]():D[K],Si=typeof nt=="string"&&nt.charAt(1)==="=",ni={t:D,p:K,s:_i,f:ge==="function",pg:0,n:vt||K,m:Gt?typeof Gt=="function"?Gt:Math.round:0,pr:0,c:Si?parseInt(nt.charAt(0)+"1",10)*parseFloat(nt.substr(2)):parseFloat(nt)-_i||0};return(typeof _i!="number"||typeof nt!="number"&&!Si)&&(Xt||isNaN(_i)||!Si&&isNaN(nt)||typeof _i=="boolean"||typeof nt=="boolean"?(ni.fp=Xt,Re=Yt(_i,Si?parseFloat(ni.s)+ni.c+(ni.s+"").replace(/[0-9\-\.]/g,""):nt,jt||Pt.defaultStringFilter,ni),ni={t:Re,p:"setRatio",s:0,c:1,f:2,pg:0,n:vt||K,pr:0,m:0}):(ni.s=parseFloat(_i),Si||(ni.c=parseFloat(nt)-ni.s||0))),ni.c?((ni._next=this._firstPT)&&(ni._next._prev=ni),this._firstPT=ni,ni):void 0},Fi=Pt._internals={isArray:L,isSelector:ce,lazyTweens:Ft,blobDif:Yt},Oe=Pt._plugins={},Ge=Fi.tweenLookup={},di=0,Oi=Fi.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},mn={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Qi=G._rootFramesTimeline=new Et,W=G._rootTimeline=new Et,Jt=30,Wt=Fi.lazyRender=function(){var D,K=Ft.length;for(It={};--K>-1;)D=Ft[K],D&&D._lazy!==!1&&(D.render(D._lazy[0],D._lazy[1],!0),D._lazy=!1);Ft.length=0};W._startTime=S.time,Qi._startTime=S.frame,W._active=Qi._active=!0,setTimeout(Wt,1),G._updateRoot=Pt.render=function(){var D,K,ot;if(Ft.length&&Wt(),W.render((S.time-W._startTime)*W._timeScale,!1,!1),Qi.render((S.frame-Qi._startTime)*Qi._timeScale,!1,!1),Ft.length&&Wt(),S.frame>=Jt){Jt=S.frame+(parseInt(Pt.autoSleep,10)||120);for(ot in Ge){for(K=Ge[ot].tweens,D=K.length;--D>-1;)K[D]._gc&&K.splice(D,1);K.length===0&&delete Ge[ot]}if(ot=W._first,(!ot||ot._paused)&&Pt.autoSleep&&!Qi._first&&S._listeners.tick.length===1){for(;ot&&ot._paused;)ot=ot._next;ot||S.sleep()}}},S.addEventListener("tick",G._updateRoot);var pt=function(D,K,ot){var nt,vt,Gt=D._gsTweenID;if(Ge[Gt||(D._gsTweenID=Gt="t"+di++)]||(Ge[Gt]={target:D,tweens:[]}),K&&(nt=Ge[Gt].tweens,nt[vt=nt.length]=K,ot))for(;--vt>-1;)nt[vt]===K&&nt.splice(vt,1);return Ge[Gt].tweens},dt=function(D,K,ot,nt){var vt,Gt,Xt=D.vars.onOverwrite;return Xt&&(vt=Xt(D,K,ot,nt)),Xt=Pt.onOverwrite,Xt&&(Gt=Xt(D,K,ot,nt)),vt!==!1&&Gt!==!1},Dt=function(D,K,ot,nt,vt){var Gt,Xt,jt,Ne;if(nt===1||nt>=4){for(Ne=vt.length,Gt=0;Ne>Gt;Gt++)if((jt=vt[Gt])!==K)jt._gc||jt._kill(null,D,K)&&(Xt=!0);else if(nt===5)break;return Xt}var Re,ge=K._startTime+z,we=[],_i=0,Si=K._duration===0;for(Gt=vt.length;--Gt>-1;)(jt=vt[Gt])===K||jt._gc||jt._paused||(jt._timeline!==K._timeline?(Re=Re||ie(K,0,Si),ie(jt,Re,Si)===0&&(we[_i++]=jt)):jt._startTime<=ge&&jt._startTime+jt.totalDuration()/jt._timeScale>ge&&((Si||!jt._initted)&&ge-jt._startTime<=2e-10||(we[_i++]=jt)));for(Gt=_i;--Gt>-1;)if(jt=we[Gt],Ne=jt._firstPT,nt===2&&jt._kill(ot,D,K)&&(Xt=!0),nt!==2||!jt._firstPT&&jt._initted&&Ne){if(nt!==2&&!dt(jt,K))continue;jt._enabled(!1,!1)&&(Xt=!0)}return Xt},ie=function(D,K,ot){for(var nt=D._timeline,vt=nt._timeScale,Gt=D._startTime;nt._timeline;){if(Gt+=nt._startTime,vt*=nt._timeScale,nt._paused)return-100;nt=nt._timeline}return Gt/=vt,Gt>K?Gt-K:ot&&Gt===K||!D._initted&&2*z>Gt-K?z:(Gt+=D.totalDuration()/D._timeScale/vt)>K+z?0:Gt-K-z};T._init=function(){var D,K,ot,nt,vt,Gt,Xt=this.vars,jt=this._overwrittenProps,Ne=this._duration,Re=!!Xt.immediateRender,ge=Xt.ease;if(Xt.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),vt={};for(nt in Xt.startAt)vt[nt]=Xt.startAt[nt];if(vt.data="isStart",vt.overwrite=!1,vt.immediateRender=!0,vt.lazy=Re&&Xt.lazy!==!1,vt.startAt=vt.delay=null,vt.onUpdate=Xt.onUpdate,vt.onUpdateParams=Xt.onUpdateParams,vt.onUpdateScope=Xt.onUpdateScope||Xt.callbackScope||this,this._startAt=Pt.to(this.target||{},0,vt),Re){if(this._time>0)this._startAt=null;else if(Ne!==0)return}}else if(Xt.runBackwards&&Ne!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(Re=!1),ot={};for(nt in Xt)Oi[nt]&&nt!=="autoCSS"||(ot[nt]=Xt[nt]);if(ot.overwrite=0,ot.data="isFromStart",ot.lazy=Re&&Xt.lazy!==!1,ot.immediateRender=Re,this._startAt=Pt.to(this.target,0,ot),Re){if(this._time===0)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=ge=ge?ge instanceof B?ge:typeof ge=="function"?new B(ge,Xt.easeParams):X[ge]||Pt.defaultEase:Pt.defaultEase,Xt.easeParams instanceof Array&&ge.config&&(this._ease=ge.config.apply(ge,Xt.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(Gt=this._targets.length,D=0;Gt>D;D++)this._initProps(this._targets[D],this._propLookup[D]={},this._siblings[D],jt?jt[D]:null,D)&&(K=!0);else K=this._initProps(this.target,this._propLookup,this._siblings,jt,0);if(K&&Pt._onPluginEvent("_onInitAllProps",this),jt&&(this._firstPT||typeof this.target!="function"&&this._enabled(!1,!1)),Xt.runBackwards)for(ot=this._firstPT;ot;)ot.s+=ot.c,ot.c=-ot.c,ot=ot._next;this._onUpdate=Xt.onUpdate,this._initted=!0},T._initProps=function(D,K,ot,nt,vt){var Gt,Xt,jt,Ne,Re,ge;if(D==null)return!1;It[D._gsTweenID]&&Wt(),this.vars.css||D.style&&D!==w&&D.nodeType&&Oe.css&&this.vars.autoCSS!==!1&&re(this.vars,D);for(Gt in this.vars)if(ge=this.vars[Gt],Oi[Gt])ge&&(ge instanceof Array||ge.push&&L(ge))&&ge.join("").indexOf("{self}")!==-1&&(this.vars[Gt]=ge=this._swapSelfInParams(ge,this));else if(Oe[Gt]&&(Ne=new Oe[Gt])._onInitTween(D,this.vars[Gt],this,vt)){for(this._firstPT=Re={_next:this._firstPT,t:Ne,p:"setRatio",s:0,c:1,f:1,n:Gt,pg:1,pr:Ne._priority,m:0},Xt=Ne._overwriteProps.length;--Xt>-1;)K[Ne._overwriteProps[Xt]]=this._firstPT;(Ne._priority||Ne._onInitAllProps)&&(jt=!0),(Ne._onDisable||Ne._onEnable)&&(this._notifyPluginsOfEnabled=!0),Re._next&&(Re._next._prev=Re)}else K[Gt]=ti.call(this,D,Gt,"get",ge,Gt,0,null,this.vars.stringFilter,vt);return nt&&this._kill(nt,D)?this._initProps(D,K,ot,nt,vt):this._overwrite>1&&this._firstPT&&ot.length>1&&Dt(D,this,K,this._overwrite,ot)?(this._kill(K,D),this._initProps(D,K,ot,nt,vt)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(It[D._gsTweenID]=!0),jt)},T.render=function(D,K,ot){var nt,vt,Gt,Xt,jt=this._time,Ne=this._duration,Re=this._rawPrevTime;if(D>=Ne-1e-7&&D>=0)this._totalTime=this._time=Ne,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(nt=!0,vt="onComplete",ot=ot||this._timeline.autoRemoveChildren),Ne===0&&(this._initted||!this.vars.lazy||ot)&&(this._startTime===this._timeline._duration&&(D=0),(0>Re||0>=D&&D>=-1e-7||Re===z&&this.data!=="isPause")&&Re!==D&&(ot=!0,Re>z&&(vt="onReverseComplete")),this._rawPrevTime=Xt=!K||D||Re===D?D:z);else if(1e-7>D)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(jt!==0||Ne===0&&Re>0)&&(vt="onReverseComplete",nt=this._reversed),0>D&&(this._active=!1,Ne===0&&(this._initted||!this.vars.lazy||ot)&&(Re>=0&&(Re!==z||this.data!=="isPause")&&(ot=!0),this._rawPrevTime=Xt=!K||D||Re===D?D:z)),(!this._initted||this._startAt&&this._startAt.progress())&&(ot=!0);else if(this._totalTime=this._time=D,this._easeType){var ge=D/Ne,we=this._easeType,_i=this._easePower;(we===1||we===3&&ge>=.5)&&(ge=1-ge),we===3&&(ge*=2),_i===1?ge*=ge:_i===2?ge*=ge*ge:_i===3?ge*=ge*ge*ge:_i===4&&(ge*=ge*ge*ge*ge),we===1?this.ratio=1-ge:we===2?this.ratio=ge:.5>D/Ne?this.ratio=ge/2:this.ratio=1-ge/2}else this.ratio=this._ease.getRatio(D/Ne);if(this._time!==jt||ot){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!ot&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=jt,this._rawPrevTime=Re,Ft.push(this),void(this._lazy=[D,K]);this._time&&!nt?this.ratio=this._ease.getRatio(this._time/Ne):nt&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==jt&&D>=0&&(this._active=!0),jt===0&&(this._startAt&&(D>=0?this._startAt.render(D,!0,ot):vt||(vt="_dummyGS")),this.vars.onStart&&(this._time!==0||Ne===0)&&(K||this._callback("onStart"))),Gt=this._firstPT;Gt;)Gt.f?Gt.t[Gt.p](Gt.c*this.ratio+Gt.s):Gt.t[Gt.p]=Gt.c*this.ratio+Gt.s,Gt=Gt._next;this._onUpdate&&(0>D&&this._startAt&&D!==-1e-4&&this._startAt.render(D,!0,ot),K||(this._time!==jt||nt||ot)&&this._callback("onUpdate")),vt&&(!this._gc||ot)&&(0>D&&this._startAt&&!this._onUpdate&&D!==-1e-4&&this._startAt.render(D,!0,ot),nt&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!K&&this.vars[vt]&&this._callback(vt),Ne===0&&this._rawPrevTime===z&&Xt!==z&&(this._rawPrevTime=0))}},T._kill=function(D,K,ot){if(D==="all"&&(D=null),D==null&&(K==null||K===this.target))return this._lazy=!1,this._enabled(!1,!1);K=typeof K!="string"?K||this._targets||this.target:Pt.selector(K)||K;var nt,vt,Gt,Xt,jt,Ne,Re,ge,we,_i=ot&&this._time&&ot._startTime===this._startTime&&this._timeline===ot._timeline,Si=this._firstPT;if((L(K)||ce(K))&&typeof K[0]!="number")for(nt=K.length;--nt>-1;)this._kill(D,K[nt],ot)&&(Ne=!0);else{if(this._targets){for(nt=this._targets.length;--nt>-1;)if(K===this._targets[nt]){jt=this._propLookup[nt]||{},this._overwrittenProps=this._overwrittenProps||[],vt=this._overwrittenProps[nt]=D?this._overwrittenProps[nt]||{}:"all";break}}else{if(K!==this.target)return!1;jt=this._propLookup,vt=this._overwrittenProps=D?this._overwrittenProps||{}:"all"}if(jt){if(Re=D||jt,ge=D!==vt&&vt!=="all"&&D!==jt&&(typeof D!="object"||!D._tempKill),ot&&(Pt.onOverwrite||this.vars.onOverwrite)){for(Gt in Re)jt[Gt]&&(we||(we=[]),we.push(Gt));if((we||!D)&&!dt(this,ot,K,we))return!1}for(Gt in Re)(Xt=jt[Gt])&&(_i&&(Xt.f?Xt.t[Xt.p](Xt.s):Xt.t[Xt.p]=Xt.s,Ne=!0),Xt.pg&&Xt.t._kill(Re)&&(Ne=!0),Xt.pg&&Xt.t._overwriteProps.length!==0||(Xt._prev?Xt._prev._next=Xt._next:Xt===this._firstPT&&(this._firstPT=Xt._next),Xt._next&&(Xt._next._prev=Xt._prev),Xt._next=Xt._prev=null),delete jt[Gt]),ge&&(vt[Gt]=1);!this._firstPT&&this._initted&&Si&&this._enabled(!1,!1)}}return Ne},T.invalidate=function(){return this._notifyPluginsOfEnabled&&Pt._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],G.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-z,this.render(Math.min(0,-this._delay))),this},T._enabled=function(D,K){if(C||S.wake(),D&&this._gc){var ot,nt=this._targets;if(nt)for(ot=nt.length;--ot>-1;)this._siblings[ot]=pt(nt[ot],this,!0);else this._siblings=pt(this.target,this,!0)}return G.prototype._enabled.call(this,D,K),this._notifyPluginsOfEnabled&&this._firstPT?Pt._onPluginEvent(D?"_onEnable":"_onDisable",this):!1},Pt.to=function(D,K,ot){return new Pt(D,K,ot)},Pt.from=function(D,K,ot){return ot.runBackwards=!0,ot.immediateRender=ot.immediateRender!=0,new Pt(D,K,ot)},Pt.fromTo=function(D,K,ot,nt){return nt.startAt=ot,nt.immediateRender=nt.immediateRender!=0&&ot.immediateRender!=0,new Pt(D,K,nt)},Pt.delayedCall=function(D,K,ot,nt,vt){return new Pt(K,0,{delay:D,onComplete:K,onCompleteParams:ot,callbackScope:nt,onReverseComplete:K,onReverseCompleteParams:ot,immediateRender:!1,lazy:!1,useFrames:vt,overwrite:0})},Pt.set=function(D,K){return new Pt(D,0,K)},Pt.getTweensOf=function(D,K){if(D==null)return[];D=typeof D!="string"?D:Pt.selector(D)||D;var ot,nt,vt,Gt;if((L(D)||ce(D))&&typeof D[0]!="number"){for(ot=D.length,nt=[];--ot>-1;)nt=nt.concat(Pt.getTweensOf(D[ot],K));for(ot=nt.length;--ot>-1;)for(Gt=nt[ot],vt=ot;--vt>-1;)Gt===nt[vt]&&nt.splice(ot,1)}else if(D._gsTweenID)for(nt=pt(D).concat(),ot=nt.length;--ot>-1;)(nt[ot]._gc||K&&!nt[ot].isActive())&&nt.splice(ot,1);return nt||[]},Pt.killTweensOf=Pt.killDelayedCallsTo=function(D,K,ot){typeof K=="object"&&(ot=K,K=!1);for(var nt=Pt.getTweensOf(D,K),vt=nt.length;--vt>-1;)nt[vt]._kill(ot,D)};var Kt=b("plugins.TweenPlugin",function(D,K){this._overwriteProps=(D||"").split(","),this._propName=this._overwriteProps[0],this._priority=K||0,this._super=Kt.prototype},!0);if(T=Kt.prototype,Kt.version="1.19.0",Kt.API=2,T._firstPT=null,T._addTween=ti,T.setRatio=me,T._kill=function(D){var K,ot=this._overwriteProps,nt=this._firstPT;if(D[this._propName]!=null)this._overwriteProps=[];else for(K=ot.length;--K>-1;)D[ot[K]]!=null&&ot.splice(K,1);for(;nt;)D[nt.n]!=null&&(nt._next&&(nt._next._prev=nt._prev),nt._prev?(nt._prev._next=nt._next,nt._prev=null):this._firstPT===nt&&(this._firstPT=nt._next)),nt=nt._next;return!1},T._mod=T._roundProps=function(D){for(var K,ot=this._firstPT;ot;)K=D[this._propName]||ot.n!=null&&D[ot.n.split(this._propName+"_").join("")],K&&typeof K=="function"&&(ot.f===2?ot.t._applyPT.m=K:ot.m=K),ot=ot._next},Pt._onPluginEvent=function(D,K){var ot,nt,vt,Gt,Xt,jt=K._firstPT;if(D==="_onInitAllProps"){for(;jt;){for(Xt=jt._next,nt=vt;nt&&nt.pr>jt.pr;)nt=nt._next;(jt._prev=nt?nt._prev:Gt)?jt._prev._next=jt:vt=jt,(jt._next=nt)?nt._prev=jt:Gt=jt,jt=Xt}jt=K._firstPT=vt}for(;jt;)jt.pg&&typeof jt.t[D]=="function"&&jt.t[D]()&&(ot=!0),jt=jt._next;return ot},Kt.activate=function(D){for(var K=D.length;--K>-1;)D[K].API===Kt.API&&(Oe[new D[K]()._propName]=D[K]);return!0},R.plugin=function(D){if(!(D&&D.propName&&D.init&&D.API))throw"illegal plugin definition.";var K,ot=D.propName,nt=D.priority||0,vt=D.overwriteProps,Gt={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},Xt=b("plugins."+ot.charAt(0).toUpperCase()+ot.substr(1)+"Plugin",function(){Kt.call(this,ot,nt),this._overwriteProps=vt||[]},D.global===!0),jt=Xt.prototype=new Kt(ot);jt.constructor=Xt,Xt.API=D.API;for(K in Gt)typeof D[K]=="function"&&(jt[Gt[K]]=D[K]);return Xt.version=D.version,Kt.activate([Xt]),Xt},m=w._gsQueue){for(_=0;_<m.length;_++)m[_]();for(T in x)x[T].func||w.console.log("GSAP encountered missing dependency: "+T)}C=!1}(typeof module<"u"&&module.exports&&typeof global<"u"?global:globalThis||window,"TweenMax");const jd={class:"modal-background"},Xd=["innerHTML"],qd={name:"MapModali"},xf=si.defineComponent({...qd,props:{},setup(w,{expose:l}){const o=si.ref(""),p=si.ref(""),d=m=>{p.value=m,o.value="five"},u=()=>{o.value=o.value+" out"};return si.onMounted(()=>{}),l({text:p,show:d,hide:u}),(m,_)=>(si.openBlock(),si.createElementBlock("div",{id:"modal-container",class:si.normalizeClass(o.value),onClick:u},[si.createElementVNode("div",jd,[si.createElementVNode("div",{class:"modal",onClick:_[0]||(_[0]=T=>{T.stopPropagation()})},[si.createElementVNode("p",{style:{"white-space":"pre-line","line-height":"1",margin:"0",color:"#fff"},innerHTML:p.value},null,8,Xd)])])],2))}}),f1="",Yd={class:"bim_background_plate"},Zd={class:"content"},Jd=si.createElementVNode("canvas",{class:"landscape"},null,-1),$d={class:"content__title"},Kd=si.createElementVNode("div",{class:"overlay"},null,-1),Qd={name:"BimBackgroundPlate"},wf=si.defineComponent({...Qd,setup(w){const l=()=>{let d=`
|
|
14
14
|
vec3 mod289(vec3 x)
|
|
15
15
|
{
|
|
16
16
|
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
fogDepth = -mvPosition.z;
|
|
226
226
|
|
|
227
227
|
}
|
|
228
|
-
`,
|
|
228
|
+
`,u=`
|
|
229
229
|
uniform float time;
|
|
230
230
|
uniform vec3 color;
|
|
231
231
|
uniform sampler2D pallete;
|
|
@@ -248,30 +248,30 @@
|
|
|
248
248
|
float fogFactor = smoothstep( fogNear, fogFar, fogDepth );
|
|
249
249
|
gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
|
|
250
250
|
#endif
|
|
251
|
-
}`;var C=document.querySelector(".landscape"),O=window.innerWidth,E=window.innerHeight,U,Y,H,K,B={x:0,y:0,xDamped:0,yDamped:0},q=typeof window.orientation<"u";b();function b(){A(),d(),g(),z(),q?window.addEventListener("touchmove",F,{passive:!1}):window.addEventListener("mousemove",F),window.addEventListener("resize",x),x()}function A(){U=new THREE.Scene;var ft=new THREE.Color(3355443);U.background=ft,U.fog=new THREE.Fog(ft,0,400),M(),H=new THREE.PerspectiveCamera(60,O/E,.1,1e4),H.position.y=8,H.position.z=4;let gt=new THREE.AmbientLight(16777215,1);U.add(gt),Y=new THREE.WebGLRenderer({canvas:C,antialias:!0}),Y.setPixelRatio=devicePixelRatio,Y.setSize(O,E)}function d(){var ft=new THREE.PlaneBufferGeometry(100,400,400,400),gt={time:{type:"f",value:0},scroll:{type:"f",value:0},distortCenter:{type:"f",value:.1},roadWidth:{type:"f",value:.5},pallete:{type:"t",value:null},speed:{type:"f",value:3},maxHeight:{type:"f",value:10},color:new THREE.Color(1,1,1)},zt=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.merge([THREE.ShaderLib.basic.uniforms,gt]),vertexShader:G,fragmentShader:m,wireframe:!1,fog:!0});K=new THREE.Mesh(ft,zt),K.position.z=-180,K.rotation.x=-Math.PI/2,U.add(K)}function g(){new THREE.TextureLoader().load("",function(ft){K.material.uniforms.pallete.value=ft,K.material.needsUpdate=!0})}function M(){M=new THREE.Sky,M.scale.setScalar(45e4),M.material.uniforms.turbidity.value=13,M.material.uniforms.rayleigh.value=1.2,M.material.uniforms.luminance.value=1,M.material.uniforms.mieCoefficient.value=.1,M.material.uniforms.mieDirectionalG.value=.58,U.add(M);let ft=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));ft.visible=!1,U.add(ft);var gt=Math.PI*-.002,zt=2*Math.PI*-.25;ft.position.x=4e5*Math.cos(zt),ft.position.y=4e5*Math.sin(zt)*Math.sin(gt),ft.position.z=4e5*Math.sin(zt)*Math.cos(gt),M.material.uniforms.sunPosition.value.copy(ft.position)}function x(){O=window.innerWidth,E=window.innerHeight,H.aspect=O/E,H.updateProjectionMatrix(),Y.setSize(O,E)}function F(ft){ft.preventDefault();var gt,zt;ft.type=="mousemove"?(gt=ft.clientX,zt=ft.clientY):(gt=ft.changedTouches[0].clientX,zt=ft.changedTouches[0].clientY),B.x=gt,B.y=zt}function z(){requestAnimationFrame(z),B.xDamped=ht(B.xDamped,B.x,.1),B.yDamped=ht(B.yDamped,B.y,.1);var ft=performance.now()*.001;K.material.uniforms.time.value=ft,K.material.uniforms.scroll.value=ft+W(B.yDamped,0,E,0,4),K.material.uniforms.distortCenter.value=Math.sin(ft)*.1,K.material.uniforms.roadWidth.value=W(B.xDamped,0,O,1,4.5),H.position.y=W(B.yDamped,0,E,4,11),Y.render(U,H)}function W(ft,gt,zt,lt,Et){return lt+(Et-lt)*((ft-gt)/(zt-gt))}function ht(ft,gt,zt){return(1-zt)*ft+zt*gt}},p=()=>{const G=document.querySelector(".overlay"),m=document.querySelector(".content__title");charming(m);const C=Array.from(m.querySelectorAll("span"));TweenMax.to(G,2,{ease:Quad.easeOut,opacity:0}),TweenMax.set(C,{opacity:0}),TweenMax.staggerTo(C,1.5,{ease:Expo.easeOut,startAt:{rotationX:-100,z:-1e3},opacity:1,rotationX:0,z:0},.1)},J=()=>{$(),p()};return oi.onMounted(()=>{J()}),(G,m)=>(oi.openBlock(),oi.createElementBlock("div",ic,[oi.createElementVNode("div",nc,[rc,oi.createElementVNode("h2",oc,[oi.renderSlot(G.$slots,"default")])]),sc]))}}),ag="";(function(T,$){typeof Ki=="object"&&typeof module<"u"?$(Ki):typeof define=="function"&&define.amd?define(["exports"],$):$(T.THREE={})})(window,function(T){function $(){}function p(t,e){this.x=t||0,this.y=e||0}function J(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function G(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._w=n!==void 0?n:1}function m(t,e,i){this.x=t||0,this.y=e||0,this.z=i||0}function C(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function O(t,e,i,n,o,s,l,h,c,f){Object.defineProperty(this,"id",{value:ts++}),this.uuid=pi.generateUUID(),this.name="",this.image=t!==void 0?t:O.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:O.DEFAULT_MAPPING,this.wrapS=i!==void 0?i:1001,this.wrapT=n!==void 0?n:1001,this.magFilter=o!==void 0?o:1006,this.minFilter=s!==void 0?s:1008,this.anisotropy=c!==void 0?c:1,this.format=l!==void 0?l:1023,this.type=h!==void 0?h:1009,this.offset=new p(0,0),this.repeat=new p(1,1),this.center=new p(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new C,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=f!==void 0?f:3e3,this.version=0,this.onUpdate=null}function E(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==void 0?n:1}function U(t,e,i){this.width=t,this.height=e,this.scissor=new E(0,0,t,e),this.scissorTest=!1,this.viewport=new E(0,0,t,e),i=i||{},i.minFilter===void 0&&(i.minFilter=1006),this.texture=new O(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!0,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!0,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null}function Y(t,e,i){U.call(this,t,e,i),this.activeMipMapLevel=this.activeCubeFace=0}function H(t,e,i,n,o,s,l,h,c,f,v,y){O.call(this,null,s,l,h,c,f,n,o,v,y),this.image={data:t,width:e,height:i},this.magFilter=c!==void 0?c:1003,this.minFilter=f!==void 0?f:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function K(t,e){this.min=t!==void 0?t:new m(1/0,1/0,1/0),this.max=e!==void 0?e:new m(-1/0,-1/0,-1/0)}function B(t,e){this.center=t!==void 0?t:new m,this.radius=e!==void 0?e:0}function q(t,e){this.normal=t!==void 0?t:new m(1,0,0),this.constant=e!==void 0?e:0}function b(t,e,i,n,o,s){this.planes=[t!==void 0?t:new q,e!==void 0?e:new q,i!==void 0?i:new q,n!==void 0?n:new q,o!==void 0?o:new q,s!==void 0?s:new q]}function A(t,e,i){return e===void 0&&i===void 0?this.set(t):this.setRGB(t,e,i)}function d(){function t(o,s){i!==!1&&(n(o,s),e.requestAnimationFrame(t))}var e=null,i=!1,n=null;return{start:function(){i!==!0&&n!==null&&(e.requestAnimationFrame(t),i=!0)},stop:function(){i=!1},setAnimationLoop:function(o){n=o},setContext:function(o){e=o}}}function g(t){function e(n,o){var s=n.array,l=n.dynamic?35048:35044,h=t.createBuffer();return t.bindBuffer(o,h),t.bufferData(o,s,l),n.onUploadCallback(),o=5126,s instanceof Float32Array?o=5126:s instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):s instanceof Uint16Array?o=5123:s instanceof Int16Array?o=5122:s instanceof Uint32Array?o=5125:s instanceof Int32Array?o=5124:s instanceof Int8Array?o=5120:s instanceof Uint8Array&&(o=5121),{buffer:h,type:o,bytesPerElement:s.BYTES_PER_ELEMENT,version:n.version}}var i=new WeakMap;return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),i.get(n)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var o=i.get(n);o&&(t.deleteBuffer(o.buffer),i.delete(n))},update:function(n,o){n.isInterleavedBufferAttribute&&(n=n.data);var s=i.get(n);if(s===void 0)i.set(n,e(n,o));else if(s.version<n.version){var l=n,h=l.array,c=l.updateRange;t.bindBuffer(o,s.buffer),l.dynamic===!1?t.bufferData(o,h,35044):c.count===-1?t.bufferSubData(o,0,h):c.count===0?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(t.bufferSubData(o,c.offset*h.BYTES_PER_ELEMENT,h.subarray(c.offset,c.offset+c.count)),c.count=-1),s.version=n.version}}}}function M(t,e,i,n,o,s){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new m,this.vertexNormals=Array.isArray(n)?n:[],this.color=o&&o.isColor?o:new A,this.vertexColors=Array.isArray(o)?o:[],this.materialIndex=s!==void 0?s:0}function x(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._order=n||x.DefaultOrder}function F(){this.mask=1}function z(){Object.defineProperty(this,"id",{value:fh++}),this.uuid=pi.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=z.DefaultUp.clone();var t=new m,e=new x,i=new G,n=new m(1,1,1);e.onChange(function(){i.setFromEuler(e,!1)}),i.onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new J},normalMatrix:{value:new C}}),this.matrix=new J,this.matrixWorld=new J,this.matrixAutoUpdate=z.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new F,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function W(){Object.defineProperty(this,"id",{value:ph+=2}),this.uuid=pi.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function ht(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i===!0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function ft(t,e,i){ht.call(this,new Int8Array(t),e,i)}function gt(t,e,i){ht.call(this,new Uint8Array(t),e,i)}function zt(t,e,i){ht.call(this,new Uint8ClampedArray(t),e,i)}function lt(t,e,i){ht.call(this,new Int16Array(t),e,i)}function Et(t,e,i){ht.call(this,new Uint16Array(t),e,i)}function D(t,e,i){ht.call(this,new Int32Array(t),e,i)}function Bt(t,e,i){ht.call(this,new Uint32Array(t),e,i)}function Ct(t,e,i){ht.call(this,new Float32Array(t),e,i)}function Rt(t,e,i){ht.call(this,new Float64Array(t),e,i)}function ge(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function ue(t){if(t.length===0)return-1/0;for(var e=t[0],i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}function Ft(){Object.defineProperty(this,"id",{value:dh+=2}),this.uuid=pi.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function Dt(t,e,i,n,o,s){W.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:o,depthSegments:s},this.fromBufferGeometry(new kt(t,e,i,n,o,s)),this.mergeVertices()}function kt(t,e,i,n,o,s){function l(N,j,et,_t,mt,bt,xt,Vt,V,it,It){var ee=bt/V,$t=xt/it,qt=bt/2,Te=xt/2,pe=Vt/2;xt=V+1;var Oe=it+1,be=bt=0,se,je,Ke=new m;for(je=0;je<Oe;je++){var fi=je*$t-Te;for(se=0;se<xt;se++)Ke[N]=(se*ee-qt)*_t,Ke[j]=fi*mt,Ke[et]=pe,f.push(Ke.x,Ke.y,Ke.z),Ke[N]=0,Ke[j]=0,Ke[et]=0<Vt?1:-1,v.push(Ke.x,Ke.y,Ke.z),y.push(se/V),y.push(1-je/it),bt+=1}for(je=0;je<it;je++)for(se=0;se<V;se++)N=S+se+xt*(je+1),j=S+(se+1)+xt*(je+1),et=S+(se+1)+xt*je,c.push(S+se+xt*je,N,et),c.push(N,j,et),be+=6;h.addGroup(P,be,It),P+=be,S+=bt}Ft.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:o,depthSegments:s};var h=this;t=t||1,e=e||1,i=i||1,n=Math.floor(n)||1,o=Math.floor(o)||1,s=Math.floor(s)||1;var c=[],f=[],v=[],y=[],S=0,P=0;l("z","y","x",-1,-1,i,e,t,s,o,0),l("z","y","x",1,-1,i,e,-t,s,o,1),l("x","z","y",1,1,t,i,e,n,s,2),l("x","z","y",1,-1,t,i,-e,n,s,3),l("x","y","z",1,-1,t,e,i,n,o,4),l("x","y","z",-1,-1,t,e,-i,n,o,5),this.setIndex(c),this.addAttribute("position",new Ct(f,3)),this.addAttribute("normal",new Ct(v,3)),this.addAttribute("uv",new Ct(y,2))}function Fe(t,e,i,n){W.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},this.fromBufferGeometry(new xe(t,e,i,n)),this.mergeVertices()}function xe(t,e,i,n){Ft.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},t=t||1,e=e||1;var o=t/2,s=e/2;i=Math.floor(i)||1,n=Math.floor(n)||1;var l=i+1,h=n+1,c=t/i,f=e/n,v=[],y=[],S=[],P=[];for(t=0;t<h;t++){var N=t*f-s;for(e=0;e<l;e++)y.push(e*c-o,-N,0),S.push(0,0,1),P.push(e/i),P.push(1-t/n)}for(t=0;t<n;t++)for(e=0;e<i;e++)o=e+l*(t+1),s=e+1+l*(t+1),h=e+1+l*t,v.push(e+l*t,o,h),v.push(o,s,h);this.setIndex(v),this.addAttribute("position",new Ct(y,3)),this.addAttribute("normal",new Ct(S,3)),this.addAttribute("uv",new Ct(P,2))}function Zt(){Object.defineProperty(this,"id",{value:Vl++}),this.uuid=pi.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function ti(t){Zt.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=`void main() {
|
|
251
|
+
}`;var m=document.querySelector(".landscape"),_=window.innerWidth,T=window.innerHeight,S,C,I,N,z={x:0,y:0,xDamped:0,yDamped:0},U=typeof window.orientation<"u";E();function E(){L(),x(),M(),B(),U?window.addEventListener("touchmove",F,{passive:!1}):window.addEventListener("mousemove",F),window.addEventListener("resize",b),b()}function L(){S=new THREE.Scene;var Q=new THREE.Color(3355443);S.background=Q,S.fog=new THREE.Fog(Q,0,400),R(),I=new THREE.PerspectiveCamera(60,_/T,.1,1e4),I.position.y=8,I.position.z=4;let ft=new THREE.AmbientLight(16777215,1);S.add(ft),C=new THREE.WebGLRenderer({canvas:m,antialias:!0}),C.setPixelRatio=devicePixelRatio,C.setSize(_,T)}function x(){var Q=new THREE.PlaneBufferGeometry(100,400,400,400),ft={time:{type:"f",value:0},scroll:{type:"f",value:0},distortCenter:{type:"f",value:.1},roadWidth:{type:"f",value:.5},pallete:{type:"t",value:null},speed:{type:"f",value:3},maxHeight:{type:"f",value:10},color:new THREE.Color(1,1,1)},Ct=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.merge([THREE.ShaderLib.basic.uniforms,ft]),vertexShader:d,fragmentShader:u,wireframe:!1,fog:!0});N=new THREE.Mesh(Q,Ct),N.position.z=-180,N.rotation.x=-Math.PI/2,S.add(N)}function M(){new THREE.TextureLoader().load("",function(Q){N.material.uniforms.pallete.value=Q,N.material.needsUpdate=!0})}function R(){R=new THREE.Sky,R.scale.setScalar(45e4),R.material.uniforms.turbidity.value=13,R.material.uniforms.rayleigh.value=1.2,R.material.uniforms.luminance.value=1,R.material.uniforms.mieCoefficient.value=.1,R.material.uniforms.mieDirectionalG.value=.58,S.add(R);let Q=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));Q.visible=!1,S.add(Q);var ft=Math.PI*-.002,Ct=2*Math.PI*-.25;Q.position.x=4e5*Math.cos(Ct),Q.position.y=4e5*Math.sin(Ct)*Math.sin(ft),Q.position.z=4e5*Math.sin(Ct)*Math.cos(ft),R.material.uniforms.sunPosition.value.copy(Q.position)}function b(){_=window.innerWidth,T=window.innerHeight,I.aspect=_/T,I.updateProjectionMatrix(),C.setSize(_,T)}function F(Q){Q.preventDefault();var ft,Ct;Q.type=="mousemove"?(ft=Q.clientX,Ct=Q.clientY):(ft=Q.changedTouches[0].clientX,Ct=Q.changedTouches[0].clientY),z.x=ft,z.y=Ct}function B(){requestAnimationFrame(B),z.xDamped=$(z.xDamped,z.x,.1),z.yDamped=$(z.yDamped,z.y,.1);var Q=performance.now()*.001;N.material.uniforms.time.value=Q,N.material.uniforms.scroll.value=Q+X(z.yDamped,0,T,0,4),N.material.uniforms.distortCenter.value=Math.sin(Q)*.1,N.material.uniforms.roadWidth.value=X(z.xDamped,0,_,1,4.5),I.position.y=X(z.yDamped,0,T,4,11),C.render(S,I)}function X(Q,ft,Ct,it,yt){return it+(yt-it)*((Q-ft)/(Ct-ft))}function $(Q,ft,Ct){return(1-Ct)*Q+Ct*ft}},o=()=>{const d=document.querySelector(".overlay"),u=document.querySelector(".content__title");charming(u);const m=Array.from(u.querySelectorAll("span"));TweenMax.to(d,2,{ease:Quad.easeOut,opacity:0}),TweenMax.set(m,{opacity:0}),TweenMax.staggerTo(m,1.5,{ease:Expo.easeOut,startAt:{rotationX:-100,z:-1e3},opacity:1,rotationX:0,z:0},.1)},p=()=>{l(),o()};return si.onMounted(()=>{p()}),(d,u)=>(si.openBlock(),si.createElementBlock("div",Yd,[si.createElementVNode("div",Zd,[Jd,si.createElementVNode("h2",$d,[si.renderSlot(d.$slots,"default")])]),Kd]))}}),p1="";(function(w,l){typeof $i=="object"&&typeof module<"u"?l($i):typeof define=="function"&&define.amd?define(["exports"],l):l(w.THREE={})})(window,function(w){function l(){}function o(t,e){this.x=t||0,this.y=e||0}function p(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function d(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._w=n!==void 0?n:1}function u(t,e,i){this.x=t||0,this.y=e||0,this.z=i||0}function m(){this.elements=[1,0,0,0,1,0,0,0,1],0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function _(t,e,i,n,s,a,c,f,v,y){Object.defineProperty(this,"id",{value:No++}),this.uuid=pi.generateUUID(),this.name="",this.image=t!==void 0?t:_.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:_.DEFAULT_MAPPING,this.wrapS=i!==void 0?i:1001,this.wrapT=n!==void 0?n:1001,this.magFilter=s!==void 0?s:1006,this.minFilter=a!==void 0?a:1008,this.anisotropy=v!==void 0?v:1,this.format=c!==void 0?c:1023,this.type=f!==void 0?f:1009,this.offset=new o(0,0),this.repeat=new o(1,1),this.center=new o(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new m,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=y!==void 0?y:3e3,this.version=0,this.onUpdate=null}function T(t,e,i,n){this.x=t||0,this.y=e||0,this.z=i||0,this.w=n!==void 0?n:1}function S(t,e,i){this.width=t,this.height=e,this.scissor=new T(0,0,t,e),this.scissorTest=!1,this.viewport=new T(0,0,t,e),i=i||{},i.minFilter===void 0&&(i.minFilter=1006),this.texture=new _(void 0,void 0,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.generateMipmaps=i.generateMipmaps!==void 0?i.generateMipmaps:!0,this.depthBuffer=i.depthBuffer!==void 0?i.depthBuffer:!0,this.stencilBuffer=i.stencilBuffer!==void 0?i.stencilBuffer:!0,this.depthTexture=i.depthTexture!==void 0?i.depthTexture:null}function C(t,e,i){S.call(this,t,e,i),this.activeMipMapLevel=this.activeCubeFace=0}function I(t,e,i,n,s,a,c,f,v,y,A,P){_.call(this,null,a,c,f,v,y,n,s,A,P),this.image={data:t,width:e,height:i},this.magFilter=v!==void 0?v:1003,this.minFilter=y!==void 0?y:1003,this.flipY=this.generateMipmaps=!1,this.unpackAlignment=1}function N(t,e){this.min=t!==void 0?t:new u(1/0,1/0,1/0),this.max=e!==void 0?e:new u(-1/0,-1/0,-1/0)}function z(t,e){this.center=t!==void 0?t:new u,this.radius=e!==void 0?e:0}function U(t,e){this.normal=t!==void 0?t:new u(1,0,0),this.constant=e!==void 0?e:0}function E(t,e,i,n,s,a){this.planes=[t!==void 0?t:new U,e!==void 0?e:new U,i!==void 0?i:new U,n!==void 0?n:new U,s!==void 0?s:new U,a!==void 0?a:new U]}function L(t,e,i){return e===void 0&&i===void 0?this.set(t):this.setRGB(t,e,i)}function x(){function t(s,a){i!==!1&&(n(s,a),e.requestAnimationFrame(t))}var e=null,i=!1,n=null;return{start:function(){i!==!0&&n!==null&&(e.requestAnimationFrame(t),i=!0)},stop:function(){i=!1},setAnimationLoop:function(s){n=s},setContext:function(s){e=s}}}function M(t){function e(n,s){var a=n.array,c=n.dynamic?35048:35044,f=t.createBuffer();return t.bindBuffer(s,f),t.bufferData(s,a,c),n.onUploadCallback(),s=5126,a instanceof Float32Array?s=5126:a instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):a instanceof Uint16Array?s=5123:a instanceof Int16Array?s=5122:a instanceof Uint32Array?s=5125:a instanceof Int32Array?s=5124:a instanceof Int8Array?s=5120:a instanceof Uint8Array&&(s=5121),{buffer:f,type:s,bytesPerElement:a.BYTES_PER_ELEMENT,version:n.version}}var i=new WeakMap;return{get:function(n){return n.isInterleavedBufferAttribute&&(n=n.data),i.get(n)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var s=i.get(n);s&&(t.deleteBuffer(s.buffer),i.delete(n))},update:function(n,s){n.isInterleavedBufferAttribute&&(n=n.data);var a=i.get(n);if(a===void 0)i.set(n,e(n,s));else if(a.version<n.version){var c=n,f=c.array,v=c.updateRange;t.bindBuffer(s,a.buffer),c.dynamic===!1?t.bufferData(s,f,35044):v.count===-1?t.bufferSubData(s,0,f):v.count===0?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(t.bufferSubData(s,v.offset*f.BYTES_PER_ELEMENT,f.subarray(v.offset,v.offset+v.count)),v.count=-1),a.version=n.version}}}}function R(t,e,i,n,s,a){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new u,this.vertexNormals=Array.isArray(n)?n:[],this.color=s&&s.isColor?s:new L,this.vertexColors=Array.isArray(s)?s:[],this.materialIndex=a!==void 0?a:0}function b(t,e,i,n){this._x=t||0,this._y=e||0,this._z=i||0,this._order=n||b.DefaultOrder}function F(){this.mask=1}function B(){Object.defineProperty(this,"id",{value:Hc++}),this.uuid=pi.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=B.DefaultUp.clone();var t=new u,e=new b,i=new d,n=new u(1,1,1);e.onChange(function(){i.setFromEuler(e,!1)}),i.onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new p},normalMatrix:{value:new m}}),this.matrix=new p,this.matrixWorld=new p,this.matrixAutoUpdate=B.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new F,this.visible=!0,this.receiveShadow=this.castShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function X(){Object.defineProperty(this,"id",{value:Vc+=2}),this.uuid=pi.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.lineDistancesNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function $(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=i===!0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function Q(t,e,i){$.call(this,new Int8Array(t),e,i)}function ft(t,e,i){$.call(this,new Uint8Array(t),e,i)}function Ct(t,e,i){$.call(this,new Uint8ClampedArray(t),e,i)}function it(t,e,i){$.call(this,new Int16Array(t),e,i)}function yt(t,e,i){$.call(this,new Uint16Array(t),e,i)}function G(t,e,i){$.call(this,new Int32Array(t),e,i)}function Lt(t,e,i){$.call(this,new Uint32Array(t),e,i)}function Et(t,e,i){$.call(this,new Float32Array(t),e,i)}function Pt(t,e,i){$.call(this,new Float64Array(t),e,i)}function ce(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingSphere=this.boundingBox=null,this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function re(t){if(t.length===0)return-1/0;for(var e=t[0],i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}function Ft(){Object.defineProperty(this,"id",{value:Wc+=2}),this.uuid=pi.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.drawRange={start:0,count:1/0},this.userData={}}function It(t,e,i,n,s,a){X.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:a},this.fromBufferGeometry(new Bt(t,e,i,n,s,a)),this.mergeVertices()}function Bt(t,e,i,n,s,a){function c(q,J,rt,xt,gt,At,wt,Vt,Z,st,zt){var ee=At/Z,$t=wt/st,qt=At/2,Te=wt/2,de=Vt/2;wt=Z+1;var Ie=st+1,be=At=0,ae,We,Ke=new u;for(We=0;We<Ie;We++){var fi=We*$t-Te;for(ae=0;ae<wt;ae++)Ke[q]=(ae*ee-qt)*xt,Ke[J]=fi*gt,Ke[rt]=de,y.push(Ke.x,Ke.y,Ke.z),Ke[q]=0,Ke[J]=0,Ke[rt]=0<Vt?1:-1,A.push(Ke.x,Ke.y,Ke.z),P.push(ae/Z),P.push(1-We/st),At+=1}for(We=0;We<st;We++)for(ae=0;ae<Z;ae++)q=k+ae+wt*(We+1),J=k+(ae+1)+wt*(We+1),rt=k+(ae+1)+wt*We,v.push(k+ae+wt*We,q,rt),v.push(q,J,rt),be+=6;f.addGroup(H,be,zt),H+=be,k+=At}Ft.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:s,depthSegments:a};var f=this;t=t||1,e=e||1,i=i||1,n=Math.floor(n)||1,s=Math.floor(s)||1,a=Math.floor(a)||1;var v=[],y=[],A=[],P=[],k=0,H=0;c("z","y","x",-1,-1,i,e,t,a,s,0),c("z","y","x",1,-1,i,e,-t,a,s,1),c("x","z","y",1,1,t,i,e,n,a,2),c("x","z","y",1,-1,t,i,-e,n,a,3),c("x","y","z",1,-1,t,e,i,n,s,4),c("x","y","z",-1,-1,t,e,-i,n,s,5),this.setIndex(v),this.addAttribute("position",new Et(y,3)),this.addAttribute("normal",new Et(A,3)),this.addAttribute("uv",new Et(P,2))}function Be(t,e,i,n){X.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},this.fromBufferGeometry(new me(t,e,i,n)),this.mergeVertices()}function me(t,e,i,n){Ft.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n},t=t||1,e=e||1;var s=t/2,a=e/2;i=Math.floor(i)||1,n=Math.floor(n)||1;var c=i+1,f=n+1,v=t/i,y=e/n,A=[],P=[],k=[],H=[];for(t=0;t<f;t++){var q=t*y-a;for(e=0;e<c;e++)P.push(e*v-s,-q,0),k.push(0,0,1),H.push(e/i),H.push(1-t/n)}for(t=0;t<n;t++)for(e=0;e<i;e++)s=e+c*(t+1),a=e+1+c*(t+1),f=e+1+c*t,A.push(e+c*t,s,f),A.push(s,a,f);this.setIndex(A),this.addAttribute("position",new Et(P,3)),this.addAttribute("normal",new Et(k,3)),this.addAttribute("uv",new Et(H,2))}function Yt(){Object.defineProperty(this,"id",{value:Ru++}),this.uuid=pi.generateUUID(),this.name="",this.type="Material",this.lights=this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=0,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null,this.depthFunc=3,this.depthWrite=this.depthTest=!0,this.clippingPlanes=null,this.clipShadows=this.clipIntersection=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetUnits=this.polygonOffsetFactor=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function ti(t){Yt.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=`void main() {
|
|
252
252
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
253
253
|
}`,this.fragmentShader=`void main() {
|
|
254
254
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
255
|
-
}`,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,t!==void 0&&(t.attributes!==void 0&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function ki(t,e){this.origin=t!==void 0?t:new m,this.direction=e!==void 0?e:new m}function Ie(t,e,i){this.a=t!==void 0?t:new m,this.b=e!==void 0?e:new m,this.c=i!==void 0?i:new m}function Ge(t){Zt.call(this),this.type="MeshBasicMaterial",this.color=new A(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.lights=this.morphTargets=this.skinning=!1,this.setValues(t)}function di(t,e){z.call(this),this.type="Mesh",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Ge({color:16777215*Math.random()}),this.drawMode=0,this.updateMorphTargets()}function Ri(t,e,i,n){function o(f,v){e.buffers.color.setClear(f.r,f.g,f.b,v,n)}var s=new A(0),l=0,h,c;return{getClearColor:function(){return s},setClearColor:function(f,v){s.set(f),l=v!==void 0?v:1,o(s,l)},getClearAlpha:function(){return l},setClearAlpha:function(f){l=f,o(s,l)},render:function(f,v,y,S){v=v.background,v===null?o(s,l):v&&v.isColor&&(o(v,1),S=!0),(t.autoClear||S)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.isWebGLRenderTargetCube)?(c===void 0&&(c=new di(new kt(1,1,1),new ti({type:"BackgroundCubeMaterial",uniforms:Cn.clone(Wr.cube.uniforms),vertexShader:Wr.cube.vertexShader,fragmentShader:Wr.cube.fragmentShader,side:1,depthTest:!0,depthWrite:!1,fog:!1})),c.geometry.removeAttribute("normal"),c.geometry.removeAttribute("uv"),c.onBeforeRender=function(P,N,j){this.matrixWorld.copyPosition(j.matrixWorld)},i.update(c)),c.material.uniforms.tCube.value=v.isWebGLRenderTargetCube?v.texture:v,c.material.uniforms.tFlip.value=v.isWebGLRenderTargetCube?1:-1,f.push(c,c.geometry,c.material,0,null)):v&&v.isTexture&&(h===void 0&&(h=new di(new xe(2,2),new ti({type:"BackgroundMaterial",uniforms:Cn.clone(Wr.background.uniforms),vertexShader:Wr.background.vertexShader,fragmentShader:Wr.background.fragmentShader,side:0,depthTest:!0,depthWrite:!1,fog:!1})),h.geometry.removeAttribute("normal"),i.update(h)),h.material.uniforms.t2D.value=v,v.matrixAutoUpdate===!0&&v.updateMatrix(),h.material.uniforms.uvTransform.value.copy(v.matrix),f.push(h,h.geometry,h.material,0,null))}}}function hn(t,e,i,n){var o;this.setMode=function(s){o=s},this.render=function(s,l){t.drawArrays(o,s,l),i.update(l,o)},this.renderInstances=function(s,l,h){if(n.isWebGL2)var c=t;else if(c=e.get("ANGLE_instanced_arrays"),c===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}c[n.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](o,l,h,s.maxInstancedCount),i.update(h,o,s.maxInstancedCount)}}function Ji(t,e,i){function n(_t){if(_t==="highp"){if(0<t.getShaderPrecisionFormat(35633,36338).precision&&0<t.getShaderPrecisionFormat(35632,36338).precision)return"highp";_t="mediump"}return _t==="mediump"&&0<t.getShaderPrecisionFormat(35633,36337).precision&&0<t.getShaderPrecisionFormat(35632,36337).precision?"mediump":"lowp"}var o,s=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext,l=i.precision!==void 0?i.precision:"highp",h=n(l);h!==l&&(console.warn("THREE.WebGLRenderer:",l,"not supported, using",h,"instead."),l=h),i=i.logarithmicDepthBuffer===!0,h=t.getParameter(34930);var c=t.getParameter(35660),f=t.getParameter(3379),v=t.getParameter(34076),y=t.getParameter(34921),S=t.getParameter(36347),P=t.getParameter(36348),N=t.getParameter(36349),j=0<c,et=s||!!e.get("OES_texture_float");return{isWebGL2:s,getMaxAnisotropy:function(){if(o!==void 0)return o;var _t=e.get("EXT_texture_filter_anisotropic");return o=_t!==null?t.getParameter(_t.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:n,precision:l,logarithmicDepthBuffer:i,maxTextures:h,maxVertexTextures:c,maxTextureSize:f,maxCubemapSize:v,maxAttributes:y,maxVertexUniforms:S,maxVaryings:P,maxFragmentUniforms:N,vertexTextures:j,floatFragmentTextures:et,floatVertexTextures:j&&et}}function R(){function t(){f.value!==n&&(f.value=n,f.needsUpdate=0<o),i.numPlanes=o,i.numIntersection=0}function e(v,y,S,P){var N=v!==null?v.length:0,j=null;if(N!==0){if(j=f.value,P!==!0||j===null)for(P=S+4*N,y=y.matrixWorldInverse,c.getNormalMatrix(y),(j===null||j.length<P)&&(j=new Float32Array(P)),P=0;P!==N;++P,S+=4)h.copy(v[P]).applyMatrix4(y,c),h.normal.toArray(j,S),j[S+3]=h.constant;f.value=j,f.needsUpdate=!0}return i.numPlanes=N,j}var i=this,n=null,o=0,s=!1,l=!1,h=new q,c=new C,f={value:null,needsUpdate:!1};this.uniform=f,this.numIntersection=this.numPlanes=0,this.init=function(v,y,S){var P=v.length!==0||y||o!==0||s;return s=y,n=e(v,S,0),o=v.length,P},this.beginShadows=function(){l=!0,e(null)},this.endShadows=function(){l=!1,t()},this.setState=function(v,y,S,P,N,j){if(!s||v===null||v.length===0||l&&!S)l?e(null):t();else{S=l?0:o;var et=4*S,_t=N.clippingState||null;for(f.value=_t,_t=e(v,P,et,j),v=0;v!==et;++v)_t[v]=n[v];N.clippingState=_t,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=S}}}function Jt(t){var e={};return{get:function(i){if(e[i]!==void 0)return e[i];switch(i){case"WEBGL_depth_texture":var n=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=t.getExtension(i)}return n===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),e[i]=n}}}function jt(t,e,i){function n(l){var h=l.target;l=o[h.id],l.index!==null&&e.remove(l.index);for(var c in l.attributes)e.remove(l.attributes[c]);h.removeEventListener("dispose",n),delete o[h.id],(c=s[l.id])&&(e.remove(c),delete s[l.id]),i.memory.geometries--}var o={},s={};return{get:function(l,h){var c=o[h.id];return c||(h.addEventListener("dispose",n),h.isBufferGeometry?c=h:h.isGeometry&&(h._bufferGeometry===void 0&&(h._bufferGeometry=new Ft().setFromObject(l)),c=h._bufferGeometry),o[h.id]=c,i.memory.geometries++,c)},update:function(l){var h=l.index,c=l.attributes;h!==null&&e.update(h,34963);for(var f in c)e.update(c[f],34962);l=l.morphAttributes;for(f in l){h=l[f],c=0;for(var v=h.length;c<v;c++)e.update(h[c],34962)}},getWireframeAttribute:function(l){var h=s[l.id];if(h)return h;h=[];var c=l.index,f=l.attributes;if(c!==null){c=c.array,f=0;for(var v=c.length;f<v;f+=3){var y=c[f+0],S=c[f+1],P=c[f+2];h.push(y,S,S,P,P,y)}}else for(c=f.position.array,f=0,v=c.length/3-1;f<v;f+=3)y=f+0,S=f+1,P=f+2,h.push(y,S,S,P,P,y);return h=new(65535<ue(h)?Bt:Et)(h,1),e.update(h,34963),s[l.id]=h}}}function ct(t,e,i,n){var o,s,l;this.setMode=function(h){o=h},this.setIndex=function(h){s=h.type,l=h.bytesPerElement},this.render=function(h,c){t.drawElements(o,c,s,h*l),i.update(c,o)},this.renderInstances=function(h,c,f){if(n.isWebGL2)var v=t;else if(v=e.get("ANGLE_instanced_arrays"),v===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}v[n.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](o,f,s,c*l,h.maxInstancedCount),i.update(f,o,h.maxInstancedCount)}}function pt(t){var e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(i,n,o){switch(o=o||1,e.calls++,n){case 4:e.triangles+=i/3*o;break;case 5:case 6:e.triangles+=o*(i-2);break;case 1:e.lines+=i/2*o;break;case 3:e.lines+=o*(i-1);break;case 2:e.lines+=o*i;break;case 0:e.points+=o*i;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function Lt(t,e){return Math.abs(e[1])-Math.abs(t[1])}function ie(t){var e={},i=new Float32Array(8);return{update:function(n,o,s,l){var h=n.morphTargetInfluences,c=h.length;if(n=e[o.id],n===void 0){n=[];for(var f=0;f<c;f++)n[f]=[f,0];e[o.id]=n}var v=s.morphTargets&&o.morphAttributes.position;for(s=s.morphNormals&&o.morphAttributes.normal,f=0;f<c;f++){var y=n[f];y[1]!==0&&(v&&o.removeAttribute("morphTarget"+f),s&&o.removeAttribute("morphNormal"+f))}for(f=0;f<c;f++)y=n[f],y[0]=f,y[1]=h[f];for(n.sort(Lt),f=0;8>f;f++){if((y=n[f])&&(h=y[0],c=y[1])){v&&o.addAttribute("morphTarget"+f,v[h]),s&&o.addAttribute("morphNormal"+f,s[h]),i[f]=c;continue}i[f]=0}l.getUniforms().setValue(t,"morphTargetInfluences",i)}}}function Kt(t,e){var i={};return{update:function(n){var o=e.render.frame,s=n.geometry,l=t.get(n,s);return i[l.id]!==o&&(s.isGeometry&&l.updateFromObject(n),t.update(l),i[l.id]=o),l},dispose:function(){i={}}}}function w(t,e,i,n,o,s,l,h,c,f){t=t!==void 0?t:[],O.call(this,t,e!==void 0?e:301,i,n,o,s,l,h,c,f),this.flipY=!1}function X(t,e,i,n){O.call(this,null),this.image={data:t,width:e,height:i,depth:n},this.minFilter=this.magFilter=1003,this.flipY=this.generateMipmaps=!1}function nt(t,e,i){var n=t[0];if(0>=n||0<n)return t;var o=e*i,s=Va[o];if(s===void 0&&(s=new Float32Array(o),Va[o]=s),e!==0)for(n.toArray(s,0),n=1,o=0;n!==e;++n)o+=i,t[n].toArray(s,o);return s}function tt(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function vt(t,e){for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}function Gt(t,e){var i=Bs[e];i===void 0&&(i=new Int32Array(e),Bs[e]=i);for(var n=0;n!==e;++n)i[n]=t.allocTextureUnit();return i}function Xt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1f(this.addr,e),i[0]=e)}function Wt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1i(this.addr,e),i[0]=e)}function Ne(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),i[0]=e.x,i[1]=e.y):tt(i,e)||(t.uniform2fv(this.addr,e),vt(i,e))}function Re(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),i[0]=e.x,i[1]=e.y,i[2]=e.z):e.r!==void 0?(i[0]!==e.r||i[1]!==e.g||i[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),i[0]=e.r,i[1]=e.g,i[2]=e.b):tt(i,e)||(t.uniform3fv(this.addr,e),vt(i,e))}function de(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z||i[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),i[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=e.w):tt(i,e)||(t.uniform4fv(this.addr,e),vt(i,e))}function we(t,e){var i=this.cache,n=e.elements;n===void 0?tt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),vt(i,e)):tt(i,n)||(gl.set(n),t.uniformMatrix2fv(this.addr,!1,gl),vt(i,n))}function yi(t,e){var i=this.cache,n=e.elements;n===void 0?tt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),vt(i,e)):tt(i,n)||(Wl.set(n),t.uniformMatrix3fv(this.addr,!1,Wl),vt(i,n))}function Si(t,e){var i=this.cache,n=e.elements;n===void 0?tt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),vt(i,e)):tt(i,n)||(ga.set(n),t.uniformMatrix4fv(this.addr,!1,ga),vt(i,n))}function ni(t,e,i){var n=this.cache,o=i.allocTextureUnit();n[0]!==o&&(t.uniform1i(this.addr,o),n[0]=o),i.setTexture2D(e||ml,o)}function Ei(t,e,i){var n=this.cache,o=i.allocTextureUnit();n[0]!==o&&(t.uniform1i(this.addr,o),n[0]=o),i.setTexture3D(e||mh,o)}function Tr(t,e,i){var n=this.cache,o=i.allocTextureUnit();n[0]!==o&&(t.uniform1i(this.addr,o),n[0]=o),i.setTextureCube(e||jl,o)}function Xn(t,e){var i=this.cache;tt(i,e)||(t.uniform2iv(this.addr,e),vt(i,e))}function nn(t,e){var i=this.cache;tt(i,e)||(t.uniform3iv(this.addr,e),vt(i,e))}function Kr(t,e){var i=this.cache;tt(i,e)||(t.uniform4iv(this.addr,e),vt(i,e))}function Ii(t){switch(t){case 5126:return Xt;case 35664:return Ne;case 35665:return Re;case 35666:return de;case 35674:return we;case 35675:return yi;case 35676:return Si;case 35678:case 36198:return ni;case 35679:return Ei;case 35680:return Tr;case 5124:case 35670:return Wt;case 35667:case 35671:return Xn;case 35668:case 35672:return nn;case 35669:case 35673:return Kr}}function fo(t,e){var i=this.cache;tt(i,e)||(t.uniform1fv(this.addr,e),vt(i,e))}function Ir(t,e){var i=this.cache;tt(i,e)||(t.uniform1iv(this.addr,e),vt(i,e))}function Ea(t,e){var i=this.cache;e=nt(e,this.size,2),tt(i,e)||(t.uniform2fv(this.addr,e),this.updateCache(e))}function gn(t,e){var i=this.cache;e=nt(e,this.size,3),tt(i,e)||(t.uniform3fv(this.addr,e),this.updateCache(e))}function hs(t,e){var i=this.cache;e=nt(e,this.size,4),tt(i,e)||(t.uniform4fv(this.addr,e),this.updateCache(e))}function Ro(t,e){var i=this.cache;e=nt(e,this.size,4),tt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),this.updateCache(e))}function ir(t,e){var i=this.cache;e=nt(e,this.size,9),tt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),this.updateCache(e))}function us(t,e){var i=this.cache;e=nt(e,this.size,16),tt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),this.updateCache(e))}function Vs(t,e,i){var n=this.cache,o=e.length,s=Gt(i,o);for(tt(n,s)===!1&&(t.uniform1iv(this.addr,s),vt(n,s)),t=0;t!==o;++t)i.setTexture2D(e[t]||ml,s[t])}function ba(t,e,i){var n=this.cache,o=e.length,s=Gt(i,o);for(tt(n,s)===!1&&(t.uniform1iv(this.addr,s),vt(n,s)),t=0;t!==o;++t)i.setTextureCube(e[t]||jl,s[t])}function Or(t){switch(t){case 5126:return fo;case 35664:return Ea;case 35665:return gn;case 35666:return hs;case 35674:return Ro;case 35675:return ir;case 35676:return us;case 35678:return Vs;case 35680:return ba;case 5124:case 35670:return Ir;case 35667:case 35671:return Xn;case 35668:case 35672:return nn;case 35669:case 35673:return Kr}}function tl(t,e,i){this.id=t,this.addr=i,this.cache=[],this.setValue=Ii(e.type)}function cs(t,e,i){this.id=t,this.addr=i,this.cache=[],this.size=e.size,this.setValue=Or(e.type)}function js(t){this.id=t,this.seq=[],this.map={}}function Dr(t,e,i){this.seq=[],this.map={},this.renderer=i,i=t.getProgramParameter(e,35718);for(var n=0;n<i;++n){var o=t.getActiveUniform(e,n),s=t.getUniformLocation(e,o.name),l=this,h=o.name,c=h.length;for(vl.lastIndex=0;;){var f=vl.exec(h),v=vl.lastIndex,y=f[1],S=f[3];if(f[2]==="]"&&(y|=0),S===void 0||S==="["&&v+2===c){h=l,o=S===void 0?new tl(y,o,s):new cs(y,o,s),h.seq.push(o),h.map[o.id]=o;break}else S=l.map[y],S===void 0&&(S=new js(y),y=l,l=S,y.seq.push(l),y.map[l.id]=l),l=S}}}function Ws(t){t=t.split(`
|
|
255
|
+
}`,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,t!==void 0&&(t.attributes!==void 0&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function Fi(t,e){this.origin=t!==void 0?t:new u,this.direction=e!==void 0?e:new u}function Oe(t,e,i){this.a=t!==void 0?t:new u,this.b=e!==void 0?e:new u,this.c=i!==void 0?i:new u}function Ge(t){Yt.call(this),this.type="MeshBasicMaterial",this.color=new L(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.lights=this.morphTargets=this.skinning=!1,this.setValues(t)}function di(t,e){B.call(this),this.type="Mesh",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Ge({color:16777215*Math.random()}),this.drawMode=0,this.updateMorphTargets()}function Oi(t,e,i,n){function s(y,A){e.buffers.color.setClear(y.r,y.g,y.b,A,n)}var a=new L(0),c=0,f,v;return{getClearColor:function(){return a},setClearColor:function(y,A){a.set(y),c=A!==void 0?A:1,s(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(y){c=y,s(a,c)},render:function(y,A,P,k){A=A.background,A===null?s(a,c):A&&A.isColor&&(s(A,1),k=!0),(t.autoClear||k)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),A&&(A.isCubeTexture||A.isWebGLRenderTargetCube)?(v===void 0&&(v=new di(new Bt(1,1,1),new ti({type:"BackgroundCubeMaterial",uniforms:Bn.clone(xs.cube.uniforms),vertexShader:xs.cube.vertexShader,fragmentShader:xs.cube.fragmentShader,side:1,depthTest:!0,depthWrite:!1,fog:!1})),v.geometry.removeAttribute("normal"),v.geometry.removeAttribute("uv"),v.onBeforeRender=function(H,q,J){this.matrixWorld.copyPosition(J.matrixWorld)},i.update(v)),v.material.uniforms.tCube.value=A.isWebGLRenderTargetCube?A.texture:A,v.material.uniforms.tFlip.value=A.isWebGLRenderTargetCube?1:-1,y.push(v,v.geometry,v.material,0,null)):A&&A.isTexture&&(f===void 0&&(f=new di(new me(2,2),new ti({type:"BackgroundMaterial",uniforms:Bn.clone(xs.background.uniforms),vertexShader:xs.background.vertexShader,fragmentShader:xs.background.fragmentShader,side:0,depthTest:!0,depthWrite:!1,fog:!1})),f.geometry.removeAttribute("normal"),i.update(f)),f.material.uniforms.t2D.value=A,A.matrixAutoUpdate===!0&&A.updateMatrix(),f.material.uniforms.uvTransform.value.copy(A.matrix),y.push(f,f.geometry,f.material,0,null))}}}function mn(t,e,i,n){var s;this.setMode=function(a){s=a},this.render=function(a,c){t.drawArrays(s,a,c),i.update(c,s)},this.renderInstances=function(a,c,f){if(n.isWebGL2)var v=t;else if(v=e.get("ANGLE_instanced_arrays"),v===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}v[n.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](s,c,f,a.maxInstancedCount),i.update(f,s,a.maxInstancedCount)}}function Qi(t,e,i){function n(xt){if(xt==="highp"){if(0<t.getShaderPrecisionFormat(35633,36338).precision&&0<t.getShaderPrecisionFormat(35632,36338).precision)return"highp";xt="mediump"}return xt==="mediump"&&0<t.getShaderPrecisionFormat(35633,36337).precision&&0<t.getShaderPrecisionFormat(35632,36337).precision?"mediump":"lowp"}var s,a=typeof WebGL2RenderingContext<"u"&&t instanceof WebGL2RenderingContext,c=i.precision!==void 0?i.precision:"highp",f=n(c);f!==c&&(console.warn("THREE.WebGLRenderer:",c,"not supported, using",f,"instead."),c=f),i=i.logarithmicDepthBuffer===!0,f=t.getParameter(34930);var v=t.getParameter(35660),y=t.getParameter(3379),A=t.getParameter(34076),P=t.getParameter(34921),k=t.getParameter(36347),H=t.getParameter(36348),q=t.getParameter(36349),J=0<v,rt=a||!!e.get("OES_texture_float");return{isWebGL2:a,getMaxAnisotropy:function(){if(s!==void 0)return s;var xt=e.get("EXT_texture_filter_anisotropic");return s=xt!==null?t.getParameter(xt.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:n,precision:c,logarithmicDepthBuffer:i,maxTextures:f,maxVertexTextures:v,maxTextureSize:y,maxCubemapSize:A,maxAttributes:P,maxVertexUniforms:k,maxVaryings:H,maxFragmentUniforms:q,vertexTextures:J,floatFragmentTextures:rt,floatVertexTextures:J&&rt}}function W(){function t(){y.value!==n&&(y.value=n,y.needsUpdate=0<s),i.numPlanes=s,i.numIntersection=0}function e(A,P,k,H){var q=A!==null?A.length:0,J=null;if(q!==0){if(J=y.value,H!==!0||J===null)for(H=k+4*q,P=P.matrixWorldInverse,v.getNormalMatrix(P),(J===null||J.length<H)&&(J=new Float32Array(H)),H=0;H!==q;++H,k+=4)f.copy(A[H]).applyMatrix4(P,v),f.normal.toArray(J,k),J[k+3]=f.constant;y.value=J,y.needsUpdate=!0}return i.numPlanes=q,J}var i=this,n=null,s=0,a=!1,c=!1,f=new U,v=new m,y={value:null,needsUpdate:!1};this.uniform=y,this.numIntersection=this.numPlanes=0,this.init=function(A,P,k){var H=A.length!==0||P||s!==0||a;return a=P,n=e(A,k,0),s=A.length,H},this.beginShadows=function(){c=!0,e(null)},this.endShadows=function(){c=!1,t()},this.setState=function(A,P,k,H,q,J){if(!a||A===null||A.length===0||c&&!k)c?e(null):t();else{k=c?0:s;var rt=4*k,xt=q.clippingState||null;for(y.value=xt,xt=e(A,H,rt,J),A=0;A!==rt;++A)xt[A]=n[A];q.clippingState=xt,this.numIntersection=P?this.numPlanes:0,this.numPlanes+=k}}}function Jt(t){var e={};return{get:function(i){if(e[i]!==void 0)return e[i];switch(i){case"WEBGL_depth_texture":var n=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=t.getExtension(i)}return n===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),e[i]=n}}}function Wt(t,e,i){function n(c){var f=c.target;c=s[f.id],c.index!==null&&e.remove(c.index);for(var v in c.attributes)e.remove(c.attributes[v]);f.removeEventListener("dispose",n),delete s[f.id],(v=a[c.id])&&(e.remove(v),delete a[c.id]),i.memory.geometries--}var s={},a={};return{get:function(c,f){var v=s[f.id];return v||(f.addEventListener("dispose",n),f.isBufferGeometry?v=f:f.isGeometry&&(f._bufferGeometry===void 0&&(f._bufferGeometry=new Ft().setFromObject(c)),v=f._bufferGeometry),s[f.id]=v,i.memory.geometries++,v)},update:function(c){var f=c.index,v=c.attributes;f!==null&&e.update(f,34963);for(var y in v)e.update(v[y],34962);c=c.morphAttributes;for(y in c){f=c[y],v=0;for(var A=f.length;v<A;v++)e.update(f[v],34962)}},getWireframeAttribute:function(c){var f=a[c.id];if(f)return f;f=[];var v=c.index,y=c.attributes;if(v!==null){v=v.array,y=0;for(var A=v.length;y<A;y+=3){var P=v[y+0],k=v[y+1],H=v[y+2];f.push(P,k,k,H,H,P)}}else for(v=y.position.array,y=0,A=v.length/3-1;y<A;y+=3)P=y+0,k=y+1,H=y+2,f.push(P,k,k,H,H,P);return f=new(65535<re(f)?Lt:yt)(f,1),e.update(f,34963),a[c.id]=f}}}function pt(t,e,i,n){var s,a,c;this.setMode=function(f){s=f},this.setIndex=function(f){a=f.type,c=f.bytesPerElement},this.render=function(f,v){t.drawElements(s,v,a,f*c),i.update(v,s)},this.renderInstances=function(f,v,y){if(n.isWebGL2)var A=t;else if(A=e.get("ANGLE_instanced_arrays"),A===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}A[n.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](s,y,a,v*c,f.maxInstancedCount),i.update(y,s,f.maxInstancedCount)}}function dt(t){var e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(i,n,s){switch(s=s||1,e.calls++,n){case 4:e.triangles+=i/3*s;break;case 5:case 6:e.triangles+=s*(i-2);break;case 1:e.lines+=i/2*s;break;case 3:e.lines+=s*(i-1);break;case 2:e.lines+=s*i;break;case 0:e.points+=s*i;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function Dt(t,e){return Math.abs(e[1])-Math.abs(t[1])}function ie(t){var e={},i=new Float32Array(8);return{update:function(n,s,a,c){var f=n.morphTargetInfluences,v=f.length;if(n=e[s.id],n===void 0){n=[];for(var y=0;y<v;y++)n[y]=[y,0];e[s.id]=n}var A=a.morphTargets&&s.morphAttributes.position;for(a=a.morphNormals&&s.morphAttributes.normal,y=0;y<v;y++){var P=n[y];P[1]!==0&&(A&&s.removeAttribute("morphTarget"+y),a&&s.removeAttribute("morphNormal"+y))}for(y=0;y<v;y++)P=n[y],P[0]=y,P[1]=f[y];for(n.sort(Dt),y=0;8>y;y++){if((P=n[y])&&(f=P[0],v=P[1])){A&&s.addAttribute("morphTarget"+y,A[f]),a&&s.addAttribute("morphNormal"+y,a[f]),i[y]=v;continue}i[y]=0}c.getUniforms().setValue(t,"morphTargetInfluences",i)}}}function Kt(t,e){var i={};return{update:function(n){var s=e.render.frame,a=n.geometry,c=t.get(n,a);return i[c.id]!==s&&(a.isGeometry&&c.updateFromObject(n),t.update(c),i[c.id]=s),c},dispose:function(){i={}}}}function D(t,e,i,n,s,a,c,f,v,y){t=t!==void 0?t:[],_.call(this,t,e!==void 0?e:301,i,n,s,a,c,f,v,y),this.flipY=!1}function K(t,e,i,n){_.call(this,null),this.image={data:t,width:e,height:i,depth:n},this.minFilter=this.magFilter=1003,this.flipY=this.generateMipmaps=!1}function ot(t,e,i){var n=t[0];if(0>=n||0<n)return t;var s=e*i,a=nh[s];if(a===void 0&&(a=new Float32Array(s),nh[s]=a),e!==0)for(n.toArray(a,0),n=1,s=0;n!==e;++n)s+=i,t[n].toArray(a,s);return a}function nt(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function vt(t,e){for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}function Gt(t,e){var i=Ca[e];i===void 0&&(i=new Int32Array(e),Ca[e]=i);for(var n=0;n!==e;++n)i[n]=t.allocTextureUnit();return i}function Xt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1f(this.addr,e),i[0]=e)}function jt(t,e){var i=this.cache;i[0]!==e&&(t.uniform1i(this.addr,e),i[0]=e)}function Ne(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),i[0]=e.x,i[1]=e.y):nt(i,e)||(t.uniform2fv(this.addr,e),vt(i,e))}function Re(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),i[0]=e.x,i[1]=e.y,i[2]=e.z):e.r!==void 0?(i[0]!==e.r||i[1]!==e.g||i[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),i[0]=e.r,i[1]=e.g,i[2]=e.b):nt(i,e)||(t.uniform3fv(this.addr,e),vt(i,e))}function ge(t,e){var i=this.cache;e.x!==void 0?(i[0]!==e.x||i[1]!==e.y||i[2]!==e.z||i[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),i[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=e.w):nt(i,e)||(t.uniform4fv(this.addr,e),vt(i,e))}function we(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Wh.set(n),t.uniformMatrix2fv(this.addr,!1,Wh),vt(i,n))}function _i(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(Iu.set(n),t.uniformMatrix3fv(this.addr,!1,Iu),vt(i,n))}function Si(t,e){var i=this.cache,n=e.elements;n===void 0?nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),vt(i,e)):nt(i,n)||(yl.set(n),t.uniformMatrix4fv(this.addr,!1,yl),vt(i,n))}function ni(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture2D(e||Vh,s)}function Ei(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTexture3D(e||jc,s)}function qr(t,e,i){var n=this.cache,s=i.allocTextureUnit();n[0]!==s&&(t.uniform1i(this.addr,s),n[0]=s),i.setTextureCube(e||Ou,s)}function or(t,e){var i=this.cache;nt(i,e)||(t.uniform2iv(this.addr,e),vt(i,e))}function on(t,e){var i=this.cache;nt(i,e)||(t.uniform3iv(this.addr,e),vt(i,e))}function As(t,e){var i=this.cache;nt(i,e)||(t.uniform4iv(this.addr,e),vt(i,e))}function Ii(t){switch(t){case 5126:return Xt;case 35664:return Ne;case 35665:return Re;case 35666:return ge;case 35674:return we;case 35675:return _i;case 35676:return Si;case 35678:case 36198:return ni;case 35679:return Ei;case 35680:return qr;case 5124:case 35670:return jt;case 35667:case 35671:return or;case 35668:case 35672:return on;case 35669:case 35673:return As}}function Xs(t,e){var i=this.cache;nt(i,e)||(t.uniform1fv(this.addr,e),vt(i,e))}function as(t,e){var i=this.cache;nt(i,e)||(t.uniform1iv(this.addr,e),vt(i,e))}function Fl(t,e){var i=this.cache;e=ot(e,this.size,2),nt(i,e)||(t.uniform2fv(this.addr,e),this.updateCache(e))}function Mn(t,e){var i=this.cache;e=ot(e,this.size,3),nt(i,e)||(t.uniform3fv(this.addr,e),this.updateCache(e))}function ea(t,e){var i=this.cache;e=ot(e,this.size,4),nt(i,e)||(t.uniform4fv(this.addr,e),this.updateCache(e))}function mo(t,e){var i=this.cache;e=ot(e,this.size,4),nt(i,e)||(t.uniformMatrix2fv(this.addr,!1,e),this.updateCache(e))}function vr(t,e){var i=this.cache;e=ot(e,this.size,9),nt(i,e)||(t.uniformMatrix3fv(this.addr,!1,e),this.updateCache(e))}function ia(t,e){var i=this.cache;e=ot(e,this.size,16),nt(i,e)||(t.uniformMatrix4fv(this.addr,!1,e),this.updateCache(e))}function Xa(t,e,i){var n=this.cache,s=e.length,a=Gt(i,s);for(nt(n,a)===!1&&(t.uniform1iv(this.addr,a),vt(n,a)),t=0;t!==s;++t)i.setTexture2D(e[t]||Vh,a[t])}function Ul(t,e,i){var n=this.cache,s=e.length,a=Gt(i,s);for(nt(n,a)===!1&&(t.uniform1iv(this.addr,a),vt(n,a)),t=0;t!==s;++t)i.setTextureCube(e[t]||Ou,a[t])}function ls(t){switch(t){case 5126:return Xs;case 35664:return Fl;case 35665:return Mn;case 35666:return ea;case 35674:return mo;case 35675:return vr;case 35676:return ia;case 35678:return Xa;case 35680:return Ul;case 5124:case 35670:return as;case 35667:case 35671:return or;case 35668:case 35672:return on;case 35669:case 35673:return As}}function Ch(t,e,i){this.id=t,this.addr=i,this.cache=[],this.setValue=Ii(e.type)}function na(t,e,i){this.id=t,this.addr=i,this.cache=[],this.size=e.size,this.setValue=ls(e.type)}function qa(t){this.id=t,this.seq=[],this.map={}}function hs(t,e,i){this.seq=[],this.map={},this.renderer=i,i=t.getProgramParameter(e,35718);for(var n=0;n<i;++n){var s=t.getActiveUniform(e,n),a=t.getUniformLocation(e,s.name),c=this,f=s.name,v=f.length;for(jh.lastIndex=0;;){var y=jh.exec(f),A=jh.lastIndex,P=y[1],k=y[3];if(y[2]==="]"&&(P|=0),k===void 0||k==="["&&A+2===v){f=c,s=k===void 0?new Ch(P,s,a):new na(P,s,a),f.seq.push(s),f.map[s.id]=s;break}else k=c.map[P],k===void 0&&(k=new qa(P),P=c,c=k,P.seq.push(c),P.map[c.id]=c),c=k}}}function Ya(t){t=t.split(`
|
|
256
256
|
`);for(var e=0;e<t.length;e++)t[e]=e+1+": "+t[e];return t.join(`
|
|
257
|
-
`)}function
|
|
258
|
-
`)}function
|
|
259
|
-
`)}function
|
|
260
|
-
`),0<
|
|
261
|
-
`),e=[
|
|
257
|
+
`)}function ra(t,e,i){var n=t.createShader(e);return t.shaderSource(n,i),t.compileShader(n),t.getShaderParameter(n,35713)===!1&&console.error("THREE.WebGLShader: Shader couldn't compile."),t.getShaderInfoLog(n)!==""&&console.warn("THREE.WebGLShader: gl.getShaderInfoLog()",e===35633?"vertex":"fragment",t.getShaderInfoLog(n),Ya(i)),n}function sa(t){switch(t){case 3e3:return["Linear","( value )"];case 3001:return["sRGB","( value )"];case 3002:return["RGBE","( value )"];case 3004:return["RGBM","( value, 7.0 )"];case 3005:return["RGBM","( value, 16.0 )"];case 3006:return["RGBD","( value, 256.0 )"];case 3007:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw Error("unsupported encoding: "+t)}}function us(t,e){return e=sa(e),"vec4 "+t+"( vec4 value ) { return "+e[0]+"ToLinear"+e[1]+"; }"}function Gl(t,e){return e=sa(e),"vec4 "+t+"( vec4 value ) { return LinearTo"+e[0]+e[1]+"; }"}function Ph(t,e){switch(e){case 1:e="Linear";break;case 2:e="Reinhard";break;case 3:e="Uncharted2";break;case 4:e="OptimizedCineon";break;default:throw Error("unsupported toneMapping: "+e)}return"vec3 "+t+"( vec3 color ) { return "+e+"ToneMapping( color ); }"}function Lh(t,e,i){return t=t||{},[t.derivatives||e.envMapCubeUV||e.bumpMap||e.normalMap&&!e.objectSpaceNormalMap||e.flatShading?"#extension GL_OES_standard_derivatives : enable":"",(t.fragDepth||e.logarithmicDepthBuffer)&&i.get("EXT_frag_depth")?"#extension GL_EXT_frag_depth : enable":"",t.drawBuffers&&i.get("WEBGL_draw_buffers")?"#extension GL_EXT_draw_buffers : require":"",(t.shaderTextureLOD||e.envMap)&&i.get("EXT_shader_texture_lod")?"#extension GL_EXT_shader_texture_lod : enable":""].filter(vo).join(`
|
|
258
|
+
`)}function go(t){var e=[],i;for(i in t){var n=t[i];n!==!1&&e.push("#define "+i+" "+n)}return e.join(`
|
|
259
|
+
`)}function vo(t){return t!==""}function Hl(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights)}function Vl(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}function Yr(t){return t.replace(/^[ \t]*#include +<([\w\d./]+)>/gm,function(e,i){if(e=bi[i],e===void 0)throw Error("Can not resolve #include <"+i+">");return Yr(e)})}function V(t){return t.replace(/#pragma unroll_loop[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}/g,function(e,i,n,s){for(e="",i=parseInt(i);i<parseInt(n);i++)e+=s.replace(/\[ i \]/g,"[ "+i+" ]");return e})}function tt(t,e,i,n,s,a,c){var f=t.context,v=n.defines,y=s.vertexShader,A=s.fragmentShader,P="SHADOWMAP_TYPE_BASIC";a.shadowMapType===1?P="SHADOWMAP_TYPE_PCF":a.shadowMapType===2&&(P="SHADOWMAP_TYPE_PCF_SOFT");var k="ENVMAP_TYPE_CUBE",H="ENVMAP_MODE_REFLECTION",q="ENVMAP_BLENDING_MULTIPLY";if(a.envMap){switch(n.envMap.mapping){case 301:case 302:k="ENVMAP_TYPE_CUBE";break;case 306:case 307:k="ENVMAP_TYPE_CUBE_UV";break;case 303:case 304:k="ENVMAP_TYPE_EQUIREC";break;case 305:k="ENVMAP_TYPE_SPHERE"}switch(n.envMap.mapping){case 302:case 304:H="ENVMAP_MODE_REFRACTION"}switch(n.combine){case 0:q="ENVMAP_BLENDING_MULTIPLY";break;case 1:q="ENVMAP_BLENDING_MIX";break;case 2:q="ENVMAP_BLENDING_ADD"}}var J=0<t.gammaFactor?t.gammaFactor:1,rt=c.isWebGL2?"":Lh(n.extensions,a,e),xt=go(v),gt=f.createProgram();n.isRawShaderMaterial?(v=[xt].filter(vo).join(`
|
|
260
|
+
`),0<v.length&&(v+=`
|
|
261
|
+
`),e=[rt,xt].filter(vo).join(`
|
|
262
262
|
`),0<e.length&&(e+=`
|
|
263
|
-
`)):(
|
|
264
|
-
`].filter(
|
|
265
|
-
`),e=[
|
|
266
|
-
`].filter(
|
|
267
|
-
`)),
|
|
263
|
+
`)):(v=["precision "+a.precision+" float;","precision "+a.precision+" int;","#define SHADER_NAME "+s.name,xt,a.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+J,"#define MAX_BONES "+a.maxBones,a.useFog&&a.fog?"#define USE_FOG":"",a.useFog&&a.fogExp?"#define FOG_EXP2":"",a.map?"#define USE_MAP":"",a.envMap?"#define USE_ENVMAP":"",a.envMap?"#define "+H:"",a.lightMap?"#define USE_LIGHTMAP":"",a.aoMap?"#define USE_AOMAP":"",a.emissiveMap?"#define USE_EMISSIVEMAP":"",a.bumpMap?"#define USE_BUMPMAP":"",a.normalMap?"#define USE_NORMALMAP":"",a.normalMap&&a.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",a.displacementMap&&a.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",a.specularMap?"#define USE_SPECULARMAP":"",a.roughnessMap?"#define USE_ROUGHNESSMAP":"",a.metalnessMap?"#define USE_METALNESSMAP":"",a.alphaMap?"#define USE_ALPHAMAP":"",a.vertexColors?"#define USE_COLOR":"",a.flatShading?"#define FLAT_SHADED":"",a.skinning?"#define USE_SKINNING":"",a.useVertexTexture?"#define BONE_TEXTURE":"",a.morphTargets?"#define USE_MORPHTARGETS":"",a.morphNormals&&a.flatShading===!1?"#define USE_MORPHNORMALS":"",a.doubleSided?"#define DOUBLE_SIDED":"",a.flipSided?"#define FLIP_SIDED":"",a.shadowMapEnabled?"#define USE_SHADOWMAP":"",a.shadowMapEnabled?"#define "+P:"",a.sizeAttenuation?"#define USE_SIZEATTENUATION":"",a.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",a.logarithmicDepthBuffer&&(c.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_COLOR"," attribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",`
|
|
264
|
+
`].filter(vo).join(`
|
|
265
|
+
`),e=[rt,"precision "+a.precision+" float;","precision "+a.precision+" int;","#define SHADER_NAME "+s.name,xt,a.alphaTest?"#define ALPHATEST "+a.alphaTest+(a.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+J,a.useFog&&a.fog?"#define USE_FOG":"",a.useFog&&a.fogExp?"#define FOG_EXP2":"",a.map?"#define USE_MAP":"",a.envMap?"#define USE_ENVMAP":"",a.envMap?"#define "+k:"",a.envMap?"#define "+H:"",a.envMap?"#define "+q:"",a.lightMap?"#define USE_LIGHTMAP":"",a.aoMap?"#define USE_AOMAP":"",a.emissiveMap?"#define USE_EMISSIVEMAP":"",a.bumpMap?"#define USE_BUMPMAP":"",a.normalMap?"#define USE_NORMALMAP":"",a.normalMap&&a.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",a.specularMap?"#define USE_SPECULARMAP":"",a.roughnessMap?"#define USE_ROUGHNESSMAP":"",a.metalnessMap?"#define USE_METALNESSMAP":"",a.alphaMap?"#define USE_ALPHAMAP":"",a.vertexColors?"#define USE_COLOR":"",a.gradientMap?"#define USE_GRADIENTMAP":"",a.flatShading?"#define FLAT_SHADED":"",a.doubleSided?"#define DOUBLE_SIDED":"",a.flipSided?"#define FLIP_SIDED":"",a.shadowMapEnabled?"#define USE_SHADOWMAP":"",a.shadowMapEnabled?"#define "+P:"",a.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",a.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",a.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",a.logarithmicDepthBuffer&&(c.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"",a.envMap&&(c.isWebGL2||e.get("EXT_shader_texture_lod"))?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",a.toneMapping!==0?"#define TONE_MAPPING":"",a.toneMapping!==0?bi.tonemapping_pars_fragment:"",a.toneMapping!==0?Ph("toneMapping",a.toneMapping):"",a.dithering?"#define DITHERING":"",a.outputEncoding||a.mapEncoding||a.matcapEncoding||a.envMapEncoding||a.emissiveMapEncoding?bi.encodings_pars_fragment:"",a.mapEncoding?us("mapTexelToLinear",a.mapEncoding):"",a.matcapEncoding?us("matcapTexelToLinear",a.matcapEncoding):"",a.envMapEncoding?us("envMapTexelToLinear",a.envMapEncoding):"",a.emissiveMapEncoding?us("emissiveMapTexelToLinear",a.emissiveMapEncoding):"",a.outputEncoding?Gl("linearToOutputTexel",a.outputEncoding):"",a.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",`
|
|
266
|
+
`].filter(vo).join(`
|
|
267
|
+
`)),y=Yr(y),y=Hl(y,a),y=Vl(y,a),A=Yr(A),A=Hl(A,a),A=Vl(A,a),y=V(y),A=V(A),c.isWebGL2&&!n.isRawShaderMaterial&&(c=!1,P=/^\s*#version\s+300\s+es\s*\n/,n.isShaderMaterial&&y.match(P)!==null&&A.match(P)!==null&&(c=!0,y=y.replace(P,""),A=A.replace(P,"")),v=`#version 300 es
|
|
268
268
|
|
|
269
269
|
#define attribute in
|
|
270
270
|
#define varying out
|
|
271
271
|
#define texture2D texture
|
|
272
|
-
`+
|
|
272
|
+
`+v,e=[`#version 300 es
|
|
273
273
|
|
|
274
|
-
#define varying in`,
|
|
274
|
+
#define varying in`,c?"":"out highp vec4 pc_fragColor;",c?"":"#define gl_FragColor pc_fragColor",`#define gl_FragDepthEXT gl_FragDepth
|
|
275
275
|
#define texture2D texture
|
|
276
276
|
#define textureCube texture
|
|
277
277
|
#define texture2DProj textureProj
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
#define texture2DProjGradEXT textureProjGrad
|
|
283
283
|
#define textureCubeGradEXT textureGrad`].join(`
|
|
284
284
|
`)+`
|
|
285
|
-
`+e),v=e+v,f=fs(h,35633,c+f),v=fs(h,35632,v),h.attachShader(mt,f),h.attachShader(mt,v),n.index0AttributeName!==void 0?h.bindAttribLocation(mt,0,n.index0AttributeName):s.morphTargets===!0&&h.bindAttribLocation(mt,0,"position"),h.linkProgram(mt),s=h.getProgramInfoLog(mt).trim(),l=h.getShaderInfoLog(f).trim(),y=h.getShaderInfoLog(v).trim(),P=S=!0,h.getProgramParameter(mt,35714)===!1?(S=!1,console.error("THREE.WebGLProgram: shader error: ",h.getError(),"35715",h.getProgramParameter(mt,35715),"gl.getProgramInfoLog",s,l,y)):s!==""?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",s):(l===""||y==="")&&(P=!1),P&&(this.diagnostics={runnable:S,material:n,programLog:s,vertexShader:{log:l,prefix:c},fragmentShader:{log:y,prefix:e}}),h.deleteShader(f),h.deleteShader(v);var bt;this.getUniforms=function(){return bt===void 0&&(bt=new Dr(h,mt,t)),bt};var xt;return this.getAttributes=function(){if(xt===void 0){for(var Vt={},V=h.getProgramParameter(mt,35721),it=0;it<V;it++){var It=h.getActiveAttrib(mt,it).name;Vt[It]=h.getAttribLocation(mt,It)}xt=Vt}return xt},this.destroy=function(){h.deleteProgram(mt),this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn("THREE.WebGLProgram: .uniforms is now .getUniforms()."),this.getUniforms()}},attributes:{get:function(){return console.warn("THREE.WebGLProgram: .attributes is now .getAttributes()."),this.getAttributes()}}}),this.name=o.name,this.id=ao++,this.code=i,this.usedTimes=1,this.program=mt,this.vertexShader=f,this.fragmentShader=v,this}function ot(t,e,i){function n(h,c){if(h)h.isTexture?f=h.encoding:h.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),f=h.texture.encoding);else var f=3e3;return f===3e3&&c&&(f=3007),f}var o=[],s={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},l="precision supportsVertexTextures map mapEncoding matcapEncoding envMap envMapMode envMapEncoding lightMap aoMap emissiveMap emissiveMapEncoding bumpMap normalMap objectSpaceNormalMap displacementMap specularMap roughnessMap metalnessMap gradientMap alphaMap combine vertexColors fog useFog fogExp flatShading sizeAttenuation logarithmicDepthBuffer skinning maxBones useVertexTexture morphTargets morphNormals maxMorphTargets maxMorphNormals premultipliedAlpha numDirLights numPointLights numSpotLights numHemiLights numRectAreaLights shadowMapEnabled shadowMapType toneMapping physicallyCorrectLights alphaTest doubleSided flipSided numClippingPlanes numClipIntersection depthPacking dithering".split(" ");this.getParameters=function(h,c,f,v,y,S,P){var N=s[h.type];if(P.isSkinnedMesh){var j=P.skeleton.bones;if(i.floatVertexTextures)j=1024;else{var et=Math.min(Math.floor((i.maxVertexUniforms-20)/4),j.length);et<j.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+j.length+" bones. This GPU supports "+et+"."),j=0):j=et}}else j=0;et=i.precision,h.precision!==null&&(et=i.getMaxPrecision(h.precision),et!==h.precision&&console.warn("THREE.WebGLProgram.getParameters:",h.precision,"not supported, using",et,"instead."));var _t=t.getRenderTarget();return{shaderID:N,precision:et,supportsVertexTextures:i.vertexTextures,outputEncoding:n(_t?_t.texture:null,t.gammaOutput),map:!!h.map,mapEncoding:n(h.map,t.gammaInput),matcap:!!h.matcap,matcapEncoding:n(h.matcap,t.gammaInput),envMap:!!h.envMap,envMapMode:h.envMap&&h.envMap.mapping,envMapEncoding:n(h.envMap,t.gammaInput),envMapCubeUV:!!h.envMap&&(h.envMap.mapping===306||h.envMap.mapping===307),lightMap:!!h.lightMap,aoMap:!!h.aoMap,emissiveMap:!!h.emissiveMap,emissiveMapEncoding:n(h.emissiveMap,t.gammaInput),bumpMap:!!h.bumpMap,normalMap:!!h.normalMap,objectSpaceNormalMap:h.normalMapType===1,displacementMap:!!h.displacementMap,roughnessMap:!!h.roughnessMap,metalnessMap:!!h.metalnessMap,specularMap:!!h.specularMap,alphaMap:!!h.alphaMap,gradientMap:!!h.gradientMap,combine:h.combine,vertexColors:h.vertexColors,fog:!!v,useFog:h.fog,fogExp:v&&v.isFogExp2,flatShading:h.flatShading,sizeAttenuation:h.sizeAttenuation,logarithmicDepthBuffer:i.logarithmicDepthBuffer,skinning:h.skinning&&0<j,maxBones:j,useVertexTexture:i.floatVertexTextures,morphTargets:h.morphTargets,morphNormals:h.morphNormals,maxMorphTargets:t.maxMorphTargets,maxMorphNormals:t.maxMorphNormals,numDirLights:c.directional.length,numPointLights:c.point.length,numSpotLights:c.spot.length,numRectAreaLights:c.rectArea.length,numHemiLights:c.hemi.length,numClippingPlanes:y,numClipIntersection:S,dithering:h.dithering,shadowMapEnabled:t.shadowMap.enabled&&P.receiveShadow&&0<f.length,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:h.premultipliedAlpha,alphaTest:h.alphaTest,doubleSided:h.side===2,flipSided:h.side===1,depthPacking:h.depthPacking!==void 0?h.depthPacking:!1}},this.getProgramCode=function(h,c){var f=[];if(c.shaderID?f.push(c.shaderID):(f.push(h.fragmentShader),f.push(h.vertexShader)),h.defines!==void 0)for(var v in h.defines)f.push(v),f.push(h.defines[v]);for(v=0;v<l.length;v++)f.push(c[l[v]]);return f.push(h.onBeforeCompile.toString()),f.push(t.gammaOutput),f.push(t.gammaFactor),f.join()},this.acquireProgram=function(h,c,f,v){for(var y,S=0,P=o.length;S<P;S++){var N=o[S];if(N.code===v){y=N,++y.usedTimes;break}}return y===void 0&&(y=new Z(t,e,v,h,c,f,i),o.push(y)),y},this.releaseProgram=function(h){if(--h.usedTimes===0){var c=o.indexOf(h);o[c]=o[o.length-1],o.pop(),h.destroy()}},this.programs=o}function rt(){var t=new WeakMap;return{get:function(e){var i=t.get(e);return i===void 0&&(i={},t.set(e,i)),i},remove:function(e){t.delete(e)},update:function(e,i,n){t.get(e)[i]=n},dispose:function(){t=new WeakMap}}}function I(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program&&e.program&&t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function Mt(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function st(){var t=[],e=0,i=[],n=[];return{opaque:i,transparent:n,init:function(){e=0,i.length=0,n.length=0},push:function(o,s,l,h,c){var f=t[e];f===void 0?(f={id:o.id,object:o,geometry:s,material:l,program:l.program,renderOrder:o.renderOrder,z:h,group:c},t[e]=f):(f.id=o.id,f.object=o,f.geometry=s,f.material=l,f.program=l.program,f.renderOrder=o.renderOrder,f.z=h,f.group=c),(l.transparent===!0?n:i).push(f),e++},sort:function(){1<i.length&&i.sort(I),1<n.length&&n.sort(Mt)}}}function Pt(){var t={};return{get:function(e,i){return e=e.id+","+i.id,i=t[e],i===void 0&&(i=new st,t[e]=i),i},dispose:function(){t={}}}}function Ht(){var t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];switch(e.type){case"DirectionalLight":var i={direction:new m,color:new A,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new p};break;case"SpotLight":i={position:new m,direction:new m,color:new A,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new p};break;case"PointLight":i={position:new m,color:new A,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new p,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":i={direction:new m,skyColor:new A,groundColor:new A};break;case"RectAreaLight":i={color:new A,position:new m,halfWidth:new m,halfHeight:new m}}return t[e.id]=i}}}function Ot(){var t=new Ht,e={id:yl++,hash:{stateID:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,shadowsLength:-1},ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},i=new m,n=new J,o=new J;return{setup:function(s,l,h){var c=0,f=0,v=0,y=0,S=0,P=0,N=0,j=0;h=h.matrixWorldInverse;for(var et=0,_t=s.length;et<_t;et++){var mt=s[et],bt=mt.color,xt=mt.intensity,Vt=mt.distance,V=mt.shadow&&mt.shadow.map?mt.shadow.map.texture:null;if(mt.isAmbientLight)c+=bt.r*xt,f+=bt.g*xt,v+=bt.b*xt;else if(mt.isDirectionalLight){var it=t.get(mt);it.color.copy(mt.color).multiplyScalar(mt.intensity),it.direction.setFromMatrixPosition(mt.matrixWorld),i.setFromMatrixPosition(mt.target.matrixWorld),it.direction.sub(i),it.direction.transformDirection(h),(it.shadow=mt.castShadow)&&(bt=mt.shadow,it.shadowBias=bt.bias,it.shadowRadius=bt.radius,it.shadowMapSize=bt.mapSize),e.directionalShadowMap[y]=V,e.directionalShadowMatrix[y]=mt.shadow.matrix,e.directional[y]=it,y++}else mt.isSpotLight?(it=t.get(mt),it.position.setFromMatrixPosition(mt.matrixWorld),it.position.applyMatrix4(h),it.color.copy(bt).multiplyScalar(xt),it.distance=Vt,it.direction.setFromMatrixPosition(mt.matrixWorld),i.setFromMatrixPosition(mt.target.matrixWorld),it.direction.sub(i),it.direction.transformDirection(h),it.coneCos=Math.cos(mt.angle),it.penumbraCos=Math.cos(mt.angle*(1-mt.penumbra)),it.decay=mt.decay,(it.shadow=mt.castShadow)&&(bt=mt.shadow,it.shadowBias=bt.bias,it.shadowRadius=bt.radius,it.shadowMapSize=bt.mapSize),e.spotShadowMap[P]=V,e.spotShadowMatrix[P]=mt.shadow.matrix,e.spot[P]=it,P++):mt.isRectAreaLight?(it=t.get(mt),it.color.copy(bt).multiplyScalar(xt),it.position.setFromMatrixPosition(mt.matrixWorld),it.position.applyMatrix4(h),o.identity(),n.copy(mt.matrixWorld),n.premultiply(h),o.extractRotation(n),it.halfWidth.set(.5*mt.width,0,0),it.halfHeight.set(0,.5*mt.height,0),it.halfWidth.applyMatrix4(o),it.halfHeight.applyMatrix4(o),e.rectArea[N]=it,N++):mt.isPointLight?(it=t.get(mt),it.position.setFromMatrixPosition(mt.matrixWorld),it.position.applyMatrix4(h),it.color.copy(mt.color).multiplyScalar(mt.intensity),it.distance=mt.distance,it.decay=mt.decay,(it.shadow=mt.castShadow)&&(bt=mt.shadow,it.shadowBias=bt.bias,it.shadowRadius=bt.radius,it.shadowMapSize=bt.mapSize,it.shadowCameraNear=bt.camera.near,it.shadowCameraFar=bt.camera.far),e.pointShadowMap[S]=V,e.pointShadowMatrix[S]=mt.shadow.matrix,e.point[S]=it,S++):mt.isHemisphereLight&&(it=t.get(mt),it.direction.setFromMatrixPosition(mt.matrixWorld),it.direction.transformDirection(h),it.direction.normalize(),it.skyColor.copy(mt.color).multiplyScalar(xt),it.groundColor.copy(mt.groundColor).multiplyScalar(xt),e.hemi[j]=it,j++)}e.ambient[0]=c,e.ambient[1]=f,e.ambient[2]=v,e.directional.length=y,e.spot.length=P,e.rectArea.length=N,e.point.length=S,e.hemi.length=j,e.hash.stateID=e.id,e.hash.directionalLength=y,e.hash.pointLength=S,e.hash.spotLength=P,e.hash.rectAreaLength=N,e.hash.hemiLength=j,e.hash.shadowsLength=l.length},state:e}}function Tt(){var t=new Ot,e=[],i=[];return{init:function(){e.length=0,i.length=0},state:{lightsArray:e,shadowsArray:i,lights:t},setupLights:function(n){t.setup(e,i,n)},pushLight:function(n){e.push(n)},pushShadow:function(n){i.push(n)}}}function le(){var t={};return{get:function(e,i){if(t[e.id]===void 0){var n=new Tt;t[e.id]={},t[e.id][i.id]=n}else t[e.id][i.id]===void 0?(n=new Tt,t[e.id][i.id]=n):n=t[e.id][i.id];return n},dispose:function(){t={}}}}function oe(t){Zt.call(this),this.type="MeshDepthMaterial",this.depthPacking=3200,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.lights=this.fog=!1,this.setValues(t)}function te(t){Zt.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new m,this.nearDistance=1,this.farDistance=1e3,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.lights=this.fog=!1,this.setValues(t)}function ve(t,e,i){function n(V,it,It,ee,$t,qt){var Te=V.geometry,pe=y,Oe=V.customDepthMaterial;return It&&(pe=S,Oe=V.customDistanceMaterial),Oe?pe=Oe:(Oe=!1,it.morphTargets&&(Te&&Te.isBufferGeometry?Oe=Te.morphAttributes&&Te.morphAttributes.position&&0<Te.morphAttributes.position.length:Te&&Te.isGeometry&&(Oe=Te.morphTargets&&0<Te.morphTargets.length)),V.isSkinnedMesh&&it.skinning===!1&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",V),V=V.isSkinnedMesh&&it.skinning,Te=0,Oe&&(Te|=1),V&&(Te|=2),pe=pe[Te]),t.localClippingEnabled&&it.clipShadows===!0&&it.clippingPlanes.length!==0&&(Te=pe.uuid,Oe=it.uuid,V=P[Te],V===void 0&&(V={},P[Te]=V),Te=V[Oe],Te===void 0&&(Te=pe.clone(),V[Oe]=Te),pe=Te),pe.visible=it.visible,pe.wireframe=it.wireframe,pe.side=it.shadowSide!=null?it.shadowSide:N[it.side],pe.clipShadows=it.clipShadows,pe.clippingPlanes=it.clippingPlanes,pe.clipIntersection=it.clipIntersection,pe.wireframeLinewidth=it.wireframeLinewidth,pe.linewidth=it.linewidth,It&&pe.isMeshDistanceMaterial&&(pe.referencePosition.copy(ee),pe.nearDistance=$t,pe.farDistance=qt),pe}function o(V,it,It,ee){if(V.visible!==!1){if(V.layers.test(it.layers)&&(V.isMesh||V.isLine||V.isPoints)&&V.castShadow&&(!V.frustumCulled||s.intersectsObject(V))){V.modelViewMatrix.multiplyMatrices(It.matrixWorldInverse,V.matrixWorld);var $t=e.update(V),qt=V.material;if(Array.isArray(qt))for(var Te=$t.groups,pe=0,Oe=Te.length;pe<Oe;pe++){var be=Te[pe],se=qt[be.materialIndex];se&&se.visible&&(se=n(V,se,ee,v,It.near,It.far),t.renderBufferDirect(It,null,$t,se,V,be))}else qt.visible&&(se=n(V,qt,ee,v,It.near,It.far),t.renderBufferDirect(It,null,$t,se,V,null))}for(V=V.children,$t=0,qt=V.length;$t<qt;$t++)o(V[$t],it,It,ee)}}var s=new b,l=new J,h=new p,c=new p(i,i),f=new m,v=new m,y=Array(4),S=Array(4),P={},N={0:1,1:0,2:2},j=[new m(1,0,0),new m(-1,0,0),new m(0,0,1),new m(0,0,-1),new m(0,1,0),new m(0,-1,0)],et=[new m(0,1,0),new m(0,1,0),new m(0,1,0),new m(0,1,0),new m(0,0,1),new m(0,0,-1)],_t=[new E,new E,new E,new E,new E,new E];for(i=0;i!==4;++i){var mt=(i&1)!==0,bt=(i&2)!==0,xt=new oe({depthPacking:3201,morphTargets:mt,skinning:bt});y[i]=xt,mt=new te({morphTargets:mt,skinning:bt}),S[i]=mt}var Vt=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(V,it,It){if(Vt.enabled!==!1&&(Vt.autoUpdate!==!1||Vt.needsUpdate!==!1)&&V.length!==0){var ee=t.state;ee.disable(3042),ee.buffers.color.setClear(1,1,1,1),ee.buffers.depth.setTest(!0),ee.setScissorTest(!1);for(var $t,qt=0,Te=V.length;qt<Te;qt++){var pe=V[qt];$t=pe.shadow;var Oe=pe&&pe.isPointLight;if($t===void 0)console.warn("THREE.WebGLShadowMap:",pe,"has no shadow.");else{var be=$t.camera;if(h.copy($t.mapSize),h.min(c),Oe){var se=h.x,je=h.y;_t[0].set(2*se,je,se,je),_t[1].set(0,je,se,je),_t[2].set(3*se,je,se,je),_t[3].set(se,je,se,je),_t[4].set(3*se,0,se,je),_t[5].set(se,0,se,je),h.x*=4,h.y*=2}for($t.map===null&&($t.map=new U(h.x,h.y,{minFilter:1003,magFilter:1003,format:1023}),$t.map.texture.name=pe.name+".shadowMap",be.updateProjectionMatrix()),$t.isSpotLightShadow&&$t.update(pe),se=$t.map,je=$t.matrix,v.setFromMatrixPosition(pe.matrixWorld),be.position.copy(v),Oe?($t=6,je.makeTranslation(-v.x,-v.y,-v.z)):($t=1,f.setFromMatrixPosition(pe.target.matrixWorld),be.lookAt(f),be.updateMatrixWorld(),je.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),je.multiply(be.projectionMatrix),je.multiply(be.matrixWorldInverse)),t.setRenderTarget(se),t.clear(),pe=0;pe<$t;pe++)Oe&&(f.copy(be.position),f.add(j[pe]),be.up.copy(et[pe]),be.lookAt(f),be.updateMatrixWorld(),ee.viewport(_t[pe])),l.multiplyMatrices(be.projectionMatrix,be.matrixWorldInverse),s.setFromMatrix(l),o(it,It,be,Oe)}}Vt.needsUpdate=!1}}}function he(t,e,i,n){function o(Ut,Ye,ei){var Hi=new Uint8Array(4),Ce=t.createTexture();for(t.bindTexture(Ut,Ce),t.texParameteri(Ut,10241,9728),t.texParameteri(Ut,10240,9728),Ut=0;Ut<ei;Ut++)t.texImage2D(Ye+Ut,0,6408,1,1,0,6408,5121,Hi);return Ce}function s(Ut,Ye){_t[Ut]=1,mt[Ut]===0&&(t.enableVertexAttribArray(Ut),mt[Ut]=1),bt[Ut]!==Ye&&((n.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[n.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](Ut,Ye),bt[Ut]=Ye)}function l(Ut){xt[Ut]!==!0&&(t.enable(Ut),xt[Ut]=!0)}function h(Ut){xt[Ut]!==!1&&(t.disable(Ut),xt[Ut]=!1)}function c(Ut,Ye,ei,Hi,Ce,Xe,ri,Ci){if(Ut===0)it&&(h(3042),it=!1);else if(it||(l(3042),it=!0),Ut!==5){if(Ut!==It||Ci!==be){if((ee!==100||Te!==100)&&(t.blendEquation(32774),Te=ee=100),Ci)switch(Ut){case 1:t.blendFuncSeparate(1,771,1,771);break;case 2:t.blendFunc(1,1);break;case 3:t.blendFuncSeparate(0,0,769,771);break;case 4:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",Ut)}else switch(Ut){case 1:t.blendFuncSeparate(770,771,1,771);break;case 2:t.blendFunc(770,1);break;case 3:t.blendFunc(0,769);break;case 4:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",Ut)}Oe=pe=qt=$t=null,It=Ut,be=Ci}}else Ce=Ce||Ye,Xe=Xe||ei,ri=ri||Hi,(Ye!==ee||Ce!==Te)&&(t.blendEquationSeparate(i.convert(Ye),i.convert(Ce)),ee=Ye,Te=Ce),(ei!==$t||Hi!==qt||Xe!==pe||ri!==Oe)&&(t.blendFuncSeparate(i.convert(ei),i.convert(Hi),i.convert(Xe),i.convert(ri)),$t=ei,qt=Hi,pe=Xe,Oe=ri),It=Ut,be=null}function f(Ut){se!==Ut&&(Ut?t.frontFace(2304):t.frontFace(2305),se=Ut)}function v(Ut){Ut!==0?(l(2884),Ut!==je&&(Ut===1?t.cullFace(1029):Ut===2?t.cullFace(1028):t.cullFace(1032))):h(2884),je=Ut}function y(Ut,Ye,ei){Ut?(l(32823),(fi!==Ye||xn!==ei)&&(t.polygonOffset(Ye,ei),fi=Ye,xn=ei)):h(32823)}function S(Ut){Ut===void 0&&(Ut=33984+pn-1),Gi!==Ut&&(t.activeTexture(Ut),Gi=Ut)}var P=new function(){var Ut=!1,Ye=new E,ei=null,Hi=new E(0,0,0,0);return{setMask:function(Ce){ei===Ce||Ut||(t.colorMask(Ce,Ce,Ce,Ce),ei=Ce)},setLocked:function(Ce){Ut=Ce},setClear:function(Ce,Xe,ri,Ci,Ai){Ai===!0&&(Ce*=Ci,Xe*=Ci,ri*=Ci),Ye.set(Ce,Xe,ri,Ci),Hi.equals(Ye)===!1&&(t.clearColor(Ce,Xe,ri,Ci),Hi.copy(Ye))},reset:function(){Ut=!1,ei=null,Hi.set(-1,0,0,0)}}},N=new function(){var Ut=!1,Ye=null,ei=null,Hi=null;return{setTest:function(Ce){Ce?l(2929):h(2929)},setMask:function(Ce){Ye===Ce||Ut||(t.depthMask(Ce),Ye=Ce)},setFunc:function(Ce){if(ei!==Ce){if(Ce)switch(Ce){case 0:t.depthFunc(512);break;case 1:t.depthFunc(519);break;case 2:t.depthFunc(513);break;case 3:t.depthFunc(515);break;case 4:t.depthFunc(514);break;case 5:t.depthFunc(518);break;case 6:t.depthFunc(516);break;case 7:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);ei=Ce}},setLocked:function(Ce){Ut=Ce},setClear:function(Ce){Hi!==Ce&&(t.clearDepth(Ce),Hi=Ce)},reset:function(){Ut=!1,Hi=ei=Ye=null}}},j=new function(){var Ut=!1,Ye=null,ei=null,Hi=null,Ce=null,Xe=null,ri=null,Ci=null,Ai=null;return{setTest:function(ne){ne?l(2960):h(2960)},setMask:function(ne){Ye===ne||Ut||(t.stencilMask(ne),Ye=ne)},setFunc:function(ne,ii,Ze){(ei!==ne||Hi!==ii||Ce!==Ze)&&(t.stencilFunc(ne,ii,Ze),ei=ne,Hi=ii,Ce=Ze)},setOp:function(ne,ii,Ze){(Xe!==ne||ri!==ii||Ci!==Ze)&&(t.stencilOp(ne,ii,Ze),Xe=ne,ri=ii,Ci=Ze)},setLocked:function(ne){Ut=ne},setClear:function(ne){Ai!==ne&&(t.clearStencil(ne),Ai=ne)},reset:function(){Ut=!1,Ai=Ci=ri=Xe=Ce=Hi=ei=Ye=null}}},et=t.getParameter(34921),_t=new Uint8Array(et),mt=new Uint8Array(et),bt=new Uint8Array(et),xt={},Vt=null,V=null,it=null,It=null,ee=null,$t=null,qt=null,Te=null,pe=null,Oe=null,be=!1,se=null,je=null,Ke=null,fi=null,xn=null,pn=t.getParameter(35661),Wi=!1;et=0,et=t.getParameter(7938),et.indexOf("WebGL")!==-1?(et=parseFloat(/^WebGL ([0-9])/.exec(et)[1]),Wi=1<=et):et.indexOf("OpenGL ES")!==-1&&(et=parseFloat(/^OpenGL ES ([0-9])/.exec(et)[1]),Wi=2<=et);var Gi=null,en={},wn=new E,Ae=new E,Qe={};return Qe[3553]=o(3553,3553,1),Qe[34067]=o(34067,34069,6),P.setClear(0,0,0,1),N.setClear(1),j.setClear(0),l(2929),N.setFunc(3),f(!1),v(1),l(2884),c(0),{buffers:{color:P,depth:N,stencil:j},initAttributes:function(){for(var Ut=0,Ye=_t.length;Ut<Ye;Ut++)_t[Ut]=0},enableAttribute:function(Ut){s(Ut,0)},enableAttributeAndDivisor:s,disableUnusedAttributes:function(){for(var Ut=0,Ye=mt.length;Ut!==Ye;++Ut)mt[Ut]!==_t[Ut]&&(t.disableVertexAttribArray(Ut),mt[Ut]=0)},enable:l,disable:h,getCompressedTextureFormats:function(){if(Vt===null&&(Vt=[],e.get("WEBGL_compressed_texture_pvrtc")||e.get("WEBGL_compressed_texture_s3tc")||e.get("WEBGL_compressed_texture_etc1")||e.get("WEBGL_compressed_texture_astc")))for(var Ut=t.getParameter(34467),Ye=0;Ye<Ut.length;Ye++)Vt.push(Ut[Ye]);return Vt},useProgram:function(Ut){return V!==Ut?(t.useProgram(Ut),V=Ut,!0):!1},setBlending:c,setMaterial:function(Ut,Ye){Ut.side===2?h(2884):l(2884);var ei=Ut.side===1;Ye&&(ei=!ei),f(ei),Ut.blending===1&&Ut.transparent===!1?c(0):c(Ut.blending,Ut.blendEquation,Ut.blendSrc,Ut.blendDst,Ut.blendEquationAlpha,Ut.blendSrcAlpha,Ut.blendDstAlpha,Ut.premultipliedAlpha),N.setFunc(Ut.depthFunc),N.setTest(Ut.depthTest),N.setMask(Ut.depthWrite),P.setMask(Ut.colorWrite),y(Ut.polygonOffset,Ut.polygonOffsetFactor,Ut.polygonOffsetUnits)},setFlipSided:f,setCullFace:v,setLineWidth:function(Ut){Ut!==Ke&&(Wi&&t.lineWidth(Ut),Ke=Ut)},setPolygonOffset:y,setScissorTest:function(Ut){Ut?l(3089):h(3089)},activeTexture:S,bindTexture:function(Ut,Ye){Gi===null&&S();var ei=en[Gi];ei===void 0&&(ei={type:void 0,texture:void 0},en[Gi]=ei),(ei.type!==Ut||ei.texture!==Ye)&&(t.bindTexture(Ut,Ye||Qe[Ut]),ei.type=Ut,ei.texture=Ye)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},scissor:function(Ut){wn.equals(Ut)===!1&&(t.scissor(Ut.x,Ut.y,Ut.z,Ut.w),wn.copy(Ut))},viewport:function(Ut){Ae.equals(Ut)===!1&&(t.viewport(Ut.x,Ut.y,Ut.z,Ut.w),Ae.copy(Ut))},reset:function(){for(var Ut=0;Ut<mt.length;Ut++)mt[Ut]===1&&(t.disableVertexAttribArray(Ut),mt[Ut]=0);xt={},Gi=Vt=null,en={},je=se=It=V=null,P.reset(),N.reset(),j.reset()}}}function We(t,e,i,n,o,s,l){function h(V,it){if(V.width>it||V.height>it){if("data"in V){console.warn("THREE.WebGLRenderer: image in DataTexture is too big ("+V.width+"x"+V.height+").");return}it/=Math.max(V.width,V.height);var It=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return It.width=Math.floor(V.width*it),It.height=Math.floor(V.height*it),It.getContext("2d").drawImage(V,0,0,V.width,V.height,0,0,It.width,It.height),console.warn("THREE.WebGLRenderer: image is too big ("+V.width+"x"+V.height+"). Resized to "+It.width+"x"+It.height),It}return V}function c(V){return pi.isPowerOfTwo(V.width)&&pi.isPowerOfTwo(V.height)}function f(V,it){return V.generateMipmaps&&it&&V.minFilter!==1003&&V.minFilter!==1006}function v(V,it,It,ee){t.generateMipmap(V),n.get(it).__maxMipLevel=Math.log(Math.max(It,ee))*Math.LOG2E}function y(V,it){if(!o.isWebGL2)return V;if(V===6403){if(it===5126)return 33326;if(it===5131)return 33325;if(it===5121)return 33321}if(V===6407){if(it===5126)return 34837;if(it===5131)return 34843;if(it===5121)return 32849}if(V===6408){if(it===5126)return 34836;if(it===5131)return 34842;if(it===5121)return 32856}return V}function S(V){return V===1003||V===1004||V===1005?9728:9729}function P(V){V=V.target,V.removeEventListener("dispose",P);t:{var it=n.get(V);if(V.image&&it.__image__webglTextureCube)t.deleteTexture(it.__image__webglTextureCube);else{if(it.__webglInit===void 0)break t;t.deleteTexture(it.__webglTexture)}n.remove(V)}V.isVideoTexture&&delete xt[V.id],l.memory.textures--}function N(V){V=V.target,V.removeEventListener("dispose",N);var it=n.get(V),It=n.get(V.texture);if(V){if(It.__webglTexture!==void 0&&t.deleteTexture(It.__webglTexture),V.depthTexture&&V.depthTexture.dispose(),V.isWebGLRenderTargetCube)for(It=0;6>It;It++)t.deleteFramebuffer(it.__webglFramebuffer[It]),it.__webglDepthbuffer&&t.deleteRenderbuffer(it.__webglDepthbuffer[It]);else t.deleteFramebuffer(it.__webglFramebuffer),it.__webglDepthbuffer&&t.deleteRenderbuffer(it.__webglDepthbuffer);n.remove(V.texture),n.remove(V)}l.memory.textures--}function j(V,it){var It=n.get(V);if(V.isVideoTexture){var ee=V.id,$t=l.render.frame;xt[ee]!==$t&&(xt[ee]=$t,V.update())}if(0<V.version&&It.__version!==V.version)if(ee=V.image,ee===void 0)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else if(ee.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{_t(It,V,it);return}i.activeTexture(33984+it),i.bindTexture(3553,It.__webglTexture)}function et(V,it,It){It?(t.texParameteri(V,10242,s.convert(it.wrapS)),t.texParameteri(V,10243,s.convert(it.wrapT)),t.texParameteri(V,10240,s.convert(it.magFilter)),t.texParameteri(V,10241,s.convert(it.minFilter))):(t.texParameteri(V,10242,33071),t.texParameteri(V,10243,33071),it.wrapS===1001&&it.wrapT===1001||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(V,10240,S(it.magFilter)),t.texParameteri(V,10241,S(it.minFilter)),it.minFilter!==1003&&it.minFilter!==1006&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!(It=e.get("EXT_texture_filter_anisotropic"))||it.type===1015&&e.get("OES_texture_float_linear")===null||it.type===1016&&(o.isWebGL2||e.get("OES_texture_half_float_linear"))===null||!(1<it.anisotropy||n.get(it).__currentAnisotropy)||(t.texParameterf(V,It.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(it.anisotropy,o.getMaxAnisotropy())),n.get(it).__currentAnisotropy=it.anisotropy)}function _t(V,it,It){var ee=it.isDataTexture3D?32879:3553;V.__webglInit===void 0&&(V.__webglInit=!0,it.addEventListener("dispose",P),V.__webglTexture=t.createTexture(),l.memory.textures++),i.activeTexture(33984+It),i.bindTexture(ee,V.__webglTexture),t.pixelStorei(37440,it.flipY),t.pixelStorei(37441,it.premultiplyAlpha),t.pixelStorei(3317,it.unpackAlignment),It=h(it.image,o.maxTextureSize);var $t=o.isWebGL2?!1:it.wrapS!==1001||it.wrapT!==1001||it.minFilter!==1003&&it.minFilter!==1006;$t&&c(It)===!1&&(It instanceof HTMLImageElement||It instanceof HTMLCanvasElement||It instanceof ImageBitmap)&&(Vt===void 0&&(Vt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Vt.width=pi.floorPowerOfTwo(It.width),Vt.height=pi.floorPowerOfTwo(It.height),Vt.getContext("2d").drawImage(It,0,0,Vt.width,Vt.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+It.width+"x"+It.height+"). Resized to "+Vt.width+"x"+Vt.height),It=Vt),$t=c(It);var qt=s.convert(it.format),Te=s.convert(it.type),pe=y(qt,Te);et(ee,it,$t);var Oe=it.mipmaps;if(it.isDepthTexture){if(pe=6402,it.type===1015){if(!o.isWebGL2)throw Error("Float Depth Texture only supported in WebGL2.0");pe=36012}else o.isWebGL2&&(pe=33189);it.format===1026&&pe===6402&&it.type!==1012&&it.type!==1014&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),it.type=1012,Te=s.convert(it.type)),it.format===1027&&(pe=34041,it.type!==1020&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),it.type=1020,Te=s.convert(it.type))),i.texImage2D(3553,0,pe,It.width,It.height,0,qt,Te,null)}else if(it.isDataTexture)if(0<Oe.length&&$t){for(var be=0,se=Oe.length;be<se;be++)ee=Oe[be],i.texImage2D(3553,be,pe,ee.width,ee.height,0,qt,Te,ee.data);it.generateMipmaps=!1,V.__maxMipLevel=Oe.length-1}else i.texImage2D(3553,0,pe,It.width,It.height,0,qt,Te,It.data),V.__maxMipLevel=0;else if(it.isCompressedTexture){for(be=0,se=Oe.length;be<se;be++)ee=Oe[be],it.format!==1023&&it.format!==1022?-1<i.getCompressedTextureFormats().indexOf(qt)?i.compressedTexImage2D(3553,be,pe,ee.width,ee.height,0,ee.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):i.texImage2D(3553,be,pe,ee.width,ee.height,0,qt,Te,ee.data);V.__maxMipLevel=Oe.length-1}else if(it.isDataTexture3D)i.texImage3D(32879,0,pe,It.width,It.height,It.depth,0,qt,Te,It.data),V.__maxMipLevel=0;else if(0<Oe.length&&$t){for(be=0,se=Oe.length;be<se;be++)ee=Oe[be],i.texImage2D(3553,be,pe,qt,Te,ee);it.generateMipmaps=!1,V.__maxMipLevel=Oe.length-1}else i.texImage2D(3553,0,pe,qt,Te,It),V.__maxMipLevel=0;f(it,$t)&&v(3553,it,It.width,It.height),V.__version=it.version,it.onUpdate&&it.onUpdate(it)}function mt(V,it,It,ee){var $t=s.convert(it.texture.format),qt=s.convert(it.texture.type),Te=y($t,qt);i.texImage2D(ee,0,Te,it.width,it.height,0,$t,qt,null),t.bindFramebuffer(36160,V),t.framebufferTexture2D(36160,It,ee,n.get(it.texture).__webglTexture,0),t.bindFramebuffer(36160,null)}function bt(V,it){t.bindRenderbuffer(36161,V),it.depthBuffer&&!it.stencilBuffer?(t.renderbufferStorage(36161,33189,it.width,it.height),t.framebufferRenderbuffer(36160,36096,36161,V)):it.depthBuffer&&it.stencilBuffer?(t.renderbufferStorage(36161,34041,it.width,it.height),t.framebufferRenderbuffer(36160,33306,36161,V)):t.renderbufferStorage(36161,32854,it.width,it.height),t.bindRenderbuffer(36161,null)}var xt={},Vt;this.setTexture2D=j,this.setTexture3D=function(V,it){var It=n.get(V);0<V.version&&It.__version!==V.version?_t(It,V,it):(i.activeTexture(33984+it),i.bindTexture(32879,It.__webglTexture))},this.setTextureCube=function(V,it){var It=n.get(V);if(V.image.length===6)if(0<V.version&&It.__version!==V.version){It.__image__webglTextureCube||(V.addEventListener("dispose",P),It.__image__webglTextureCube=t.createTexture(),l.memory.textures++),i.activeTexture(33984+it),i.bindTexture(34067,It.__image__webglTextureCube),t.pixelStorei(37440,V.flipY),it=V&&V.isCompressedTexture;for(var ee=V.image[0]&&V.image[0].isDataTexture,$t=[],qt=0;6>qt;qt++)$t[qt]=it||ee?ee?V.image[qt].image:V.image[qt]:h(V.image[qt],o.maxCubemapSize);var Te=$t[0],pe=c(Te),Oe=s.convert(V.format),be=s.convert(V.type),se=y(Oe,be);for(et(34067,V,pe),qt=0;6>qt;qt++)if(it)for(var je,Ke=$t[qt].mipmaps,fi=0,xn=Ke.length;fi<xn;fi++)je=Ke[fi],V.format!==1023&&V.format!==1022?-1<i.getCompressedTextureFormats().indexOf(Oe)?i.compressedTexImage2D(34069+qt,fi,se,je.width,je.height,0,je.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):i.texImage2D(34069+qt,fi,se,je.width,je.height,0,Oe,be,je.data);else ee?i.texImage2D(34069+qt,0,se,$t[qt].width,$t[qt].height,0,Oe,be,$t[qt].data):i.texImage2D(34069+qt,0,se,Oe,be,$t[qt]);It.__maxMipLevel=it?Ke.length-1:0,f(V,pe)&&v(34067,V,Te.width,Te.height),It.__version=V.version,V.onUpdate&&V.onUpdate(V)}else i.activeTexture(33984+it),i.bindTexture(34067,It.__image__webglTextureCube)},this.setTextureCubeDynamic=function(V,it){i.activeTexture(33984+it),i.bindTexture(34067,n.get(V).__webglTexture)},this.setupRenderTarget=function(V){var it=n.get(V),It=n.get(V.texture);V.addEventListener("dispose",N),It.__webglTexture=t.createTexture(),l.memory.textures++;var ee=V.isWebGLRenderTargetCube===!0,$t=c(V);if(ee){it.__webglFramebuffer=[];for(var qt=0;6>qt;qt++)it.__webglFramebuffer[qt]=t.createFramebuffer()}else it.__webglFramebuffer=t.createFramebuffer();if(ee){for(i.bindTexture(34067,It.__webglTexture),et(34067,V.texture,$t),qt=0;6>qt;qt++)mt(it.__webglFramebuffer[qt],V,36064,34069+qt);f(V.texture,$t)&&v(34067,V.texture,V.width,V.height),i.bindTexture(34067,null)}else i.bindTexture(3553,It.__webglTexture),et(3553,V.texture,$t),mt(it.__webglFramebuffer,V,36064,3553),f(V.texture,$t)&&v(3553,V.texture,V.width,V.height),i.bindTexture(3553,null);if(V.depthBuffer){if(it=n.get(V),It=V.isWebGLRenderTargetCube===!0,V.depthTexture){if(It)throw Error("target.depthTexture not supported in Cube render targets");if(V&&V.isWebGLRenderTargetCube)throw Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(36160,it.__webglFramebuffer),!V.depthTexture||!V.depthTexture.isDepthTexture)throw Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");if(n.get(V.depthTexture).__webglTexture&&V.depthTexture.image.width===V.width&&V.depthTexture.image.height===V.height||(V.depthTexture.image.width=V.width,V.depthTexture.image.height=V.height,V.depthTexture.needsUpdate=!0),j(V.depthTexture,0),it=n.get(V.depthTexture).__webglTexture,V.depthTexture.format===1026)t.framebufferTexture2D(36160,36096,3553,it,0);else if(V.depthTexture.format===1027)t.framebufferTexture2D(36160,33306,3553,it,0);else throw Error("Unknown depthTexture format")}else if(It)for(it.__webglDepthbuffer=[],It=0;6>It;It++)t.bindFramebuffer(36160,it.__webglFramebuffer[It]),it.__webglDepthbuffer[It]=t.createRenderbuffer(),bt(it.__webglDepthbuffer[It],V);else t.bindFramebuffer(36160,it.__webglFramebuffer),it.__webglDepthbuffer=t.createRenderbuffer(),bt(it.__webglDepthbuffer,V);t.bindFramebuffer(36160,null)}},this.updateRenderTargetMipmap=function(V){var it=V.texture,It=c(V);if(f(it,It)){It=V.isWebGLRenderTargetCube?34067:3553;var ee=n.get(it).__webglTexture;i.bindTexture(It,ee),v(It,it,V.width,V.height),i.bindTexture(It,null)}}}function He(t,e,i){return{convert:function(n){if(n===1e3)return 10497;if(n===1001)return 33071;if(n===1002)return 33648;if(n===1003)return 9728;if(n===1004)return 9984;if(n===1005)return 9986;if(n===1006)return 9729;if(n===1007)return 9985;if(n===1008)return 9987;if(n===1009)return 5121;if(n===1017)return 32819;if(n===1018)return 32820;if(n===1019)return 33635;if(n===1010)return 5120;if(n===1011)return 5122;if(n===1012)return 5123;if(n===1013)return 5124;if(n===1014)return 5125;if(n===1015)return 5126;if(n===1016){if(i.isWebGL2)return 5131;var o=e.get("OES_texture_half_float");if(o!==null)return o.HALF_FLOAT_OES}if(n===1021)return 6406;if(n===1022)return 6407;if(n===1023)return 6408;if(n===1024)return 6409;if(n===1025)return 6410;if(n===1026)return 6402;if(n===1027)return 34041;if(n===1028)return 6403;if(n===100)return 32774;if(n===101)return 32778;if(n===102)return 32779;if(n===200)return 0;if(n===201)return 1;if(n===202)return 768;if(n===203)return 769;if(n===204)return 770;if(n===205)return 771;if(n===206)return 772;if(n===207)return 773;if(n===208)return 774;if(n===209)return 775;if(n===210)return 776;if((n===33776||n===33777||n===33778||n===33779)&&(o=e.get("WEBGL_compressed_texture_s3tc"),o!==null)){if(n===33776)return o.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return o.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((n===35840||n===35841||n===35842||n===35843)&&(o=e.get("WEBGL_compressed_texture_pvrtc"),o!==null)){if(n===35840)return o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===36196&&(o=e.get("WEBGL_compressed_texture_etc1"),o!==null))return o.COMPRESSED_RGB_ETC1_WEBGL;if((n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)&&(o=e.get("WEBGL_compressed_texture_astc"),o!==null))return n;if(n===103||n===104){if(i.isWebGL2){if(n===103)return 32775;if(n===104)return 32776}if(o=e.get("EXT_blend_minmax"),o!==null){if(n===103)return o.MIN_EXT;if(n===104)return o.MAX_EXT}}if(n===1020){if(i.isWebGL2)return 34042;if(o=e.get("WEBGL_depth_texture"),o!==null)return o.UNSIGNED_INT_24_8_WEBGL}return 0}}}function ci(){z.call(this),this.type="Group"}function Be(){z.call(this),this.type="Camera",this.matrixWorldInverse=new J,this.projectionMatrix=new J,this.projectionMatrixInverse=new J}function ye(t,e,i,n){Be.call(this),this.type="PerspectiveCamera",this.fov=t!==void 0?t:50,this.zoom=1,this.near=i!==void 0?i:.1,this.far=n!==void 0?n:2e3,this.focus=10,this.aspect=e!==void 0?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function ke(t){ye.call(this),this.cameras=t||[]}function ce(t,e,i){Ao.setFromMatrixPosition(e.matrixWorld),sr.setFromMatrixPosition(i.matrixWorld);var n=Ao.distanceTo(sr),o=e.projectionMatrix.elements,s=i.projectionMatrix.elements,l=o[14]/(o[10]-1);i=o[14]/(o[10]+1);var h=(o[9]+1)/o[5],c=(o[9]-1)/o[5],f=(o[8]-1)/o[0],v=(s[8]+1)/s[0];o=l*f,s=l*v,v=n/(-f+v),f=v*-f,e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(f),t.translateZ(v),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.getInverse(t.matrixWorld),e=l+v,l=i+v,t.projectionMatrix.makePerspective(o-f,s+(n-f),h*i/l*e,c*i/l*e,e,l)}function mi(t){function e(){return o!==null&&o.isPresenting===!0}function i(){if(e()){var V=o.getEyeParameters("left"),it=V.renderWidth*v;V=V.renderHeight*v,bt=t.getPixelRatio(),mt=t.getSize(),t.setDrawingBufferSize(2*it,V,1),Vt.start()}else n.enabled&&t.setDrawingBufferSize(mt.width,mt.height,bt),Vt.stop()}var n=this,o=null,s=null,l=null,h=[],c=new J,f=new J,v=1,y="stage";typeof window<"u"&&"VRFrameData"in window&&(s=new window.VRFrameData,window.addEventListener("vrdisplaypresentchange",i,!1));var S=new J,P=new G,N=new m,j=new ye;j.bounds=new E(0,0,.5,1),j.layers.enable(1);var et=new ye;et.bounds=new E(.5,0,.5,1),et.layers.enable(2);var _t=new ke([j,et]);_t.layers.enable(1),_t.layers.enable(2);var mt,bt,xt=[];this.enabled=!1,this.getController=function(V){var it=h[V];return it===void 0&&(it=new ci,it.matrixAutoUpdate=!1,it.visible=!1,h[V]=it),it},this.getDevice=function(){return o},this.setDevice=function(V){V!==void 0&&(o=V),Vt.setContext(V)},this.setFramebufferScaleFactor=function(V){v=V},this.setFrameOfReferenceType=function(V){y=V},this.setPoseTarget=function(V){V!==void 0&&(l=V)},this.getCamera=function(V){var it=y==="stage"?1.6:0;if(o===null)return V.position.set(0,it,0),V;if(o.depthNear=V.near,o.depthFar=V.far,o.getFrameData(s),y==="stage"){var It=o.stageParameters;It?c.fromArray(It.sittingToStandingTransform):c.makeTranslation(0,it,0)}if(it=s.pose,It=l!==null?l:V,It.matrix.copy(c),It.matrix.decompose(It.position,It.quaternion,It.scale),it.orientation!==null&&(P.fromArray(it.orientation),It.quaternion.multiply(P)),it.position!==null&&(P.setFromRotationMatrix(c),N.fromArray(it.position),N.applyQuaternion(P),It.position.add(N)),It.updateMatrixWorld(),o.isPresenting===!1)return V;j.near=V.near,et.near=V.near,j.far=V.far,et.far=V.far,j.matrixWorldInverse.fromArray(s.leftViewMatrix),et.matrixWorldInverse.fromArray(s.rightViewMatrix),f.getInverse(c),y==="stage"&&(j.matrixWorldInverse.multiply(f),et.matrixWorldInverse.multiply(f)),V=It.parent,V!==null&&(S.getInverse(V.matrixWorld),j.matrixWorldInverse.multiply(S),et.matrixWorldInverse.multiply(S)),j.matrixWorld.getInverse(j.matrixWorldInverse),et.matrixWorld.getInverse(et.matrixWorldInverse),j.projectionMatrix.fromArray(s.leftProjectionMatrix),et.projectionMatrix.fromArray(s.rightProjectionMatrix),ce(_t,j,et),V=o.getLayers(),V.length&&(V=V[0],V.leftBounds!==null&&V.leftBounds.length===4&&j.bounds.fromArray(V.leftBounds),V.rightBounds!==null&&V.rightBounds.length===4&&et.bounds.fromArray(V.rightBounds));t:for(V=0;V<h.length;V++){it=h[V];e:{It=V;for(var ee=navigator.getGamepads&&navigator.getGamepads(),$t=0,qt=0,Te=ee.length;$t<Te;$t++){var pe=ee[$t];if(pe&&(pe.id==="Daydream Controller"||pe.id==="Gear VR Controller"||pe.id==="Oculus Go Controller"||pe.id==="OpenVR Gamepad"||pe.id.startsWith("Oculus Touch")||pe.id.startsWith("Spatial Controller"))){if(qt===It){It=pe;break e}qt++}}It=void 0}if(It!==void 0&&It.pose!==void 0){if(It.pose===null)break t;ee=It.pose,ee.hasPosition===!1&&it.position.set(.2,-.6,-.05),ee.position!==null&&it.position.fromArray(ee.position),ee.orientation!==null&&it.quaternion.fromArray(ee.orientation),it.matrix.compose(it.position,it.quaternion,it.scale),it.matrix.premultiply(c),it.matrix.decompose(it.position,it.quaternion,it.scale),it.matrixWorldNeedsUpdate=!0,it.visible=!0,ee=It.id==="Daydream Controller"?0:1,xt[V]!==It.buttons[ee].pressed&&(xt[V]=It.buttons[ee].pressed,xt[V]===!0?it.dispatchEvent({type:"selectstart"}):(it.dispatchEvent({type:"selectend"}),it.dispatchEvent({type:"select"})))}else it.visible=!1}return _t},this.getStandingMatrix=function(){return c},this.isPresenting=e;var Vt=new d;this.setAnimationLoop=function(V){Vt.setAnimationLoop(V)},this.submitFrame=function(){e()&&o.submitFrame()},this.dispose=function(){typeof window<"u"&&window.removeEventListener("vrdisplaypresentchange",i)}}function Pe(t){function e(){return h!==null&&f!==null}function i(bt){var xt=S[P.indexOf(bt.inputSource)];xt&&xt.dispatchEvent({type:bt.type})}function n(){t.setFramebuffer(null),mt.stop()}function o(bt,xt){xt===null?bt.matrixWorld.copy(bt.matrix):bt.matrixWorld.multiplyMatrices(xt.matrixWorld,bt.matrix),bt.matrixWorldInverse.getInverse(bt.matrixWorld)}var s=t.context,l=null,h=null,c=1,f=null,v="stage",y=null,S=[],P=[],N=new ye;N.layers.enable(1),N.viewport=new E;var j=new ye;j.layers.enable(2),j.viewport=new E;var et=new ke([N,j]);et.layers.enable(1),et.layers.enable(2),this.enabled=!1,this.getController=function(bt){var xt=S[bt];return xt===void 0&&(xt=new ci,xt.matrixAutoUpdate=!1,xt.visible=!1,S[bt]=xt),xt},this.getDevice=function(){return l},this.setDevice=function(bt){bt!==void 0&&(l=bt),bt instanceof XRDevice&&s.setCompatibleXRDevice(bt)},this.setFramebufferScaleFactor=function(bt){c=bt},this.setFrameOfReferenceType=function(bt){v=bt},this.setSession=function(bt){h=bt,h!==null&&(h.addEventListener("select",i),h.addEventListener("selectstart",i),h.addEventListener("selectend",i),h.addEventListener("end",n),h.baseLayer=new XRWebGLLayer(h,s,{framebufferScaleFactor:c}),h.requestFrameOfReference(v).then(function(xt){f=xt,t.setFramebuffer(h.baseLayer.framebuffer),mt.setContext(h),mt.start()}),P=h.getInputSources(),h.addEventListener("inputsourceschange",function(){P=h.getInputSources(),console.log(P);for(var xt=0;xt<S.length;xt++)S[xt].userData.inputSource=P[xt]}))},this.getCamera=function(bt){if(e()){var xt=bt.parent,Vt=et.cameras;o(et,xt);for(var V=0;V<Vt.length;V++)o(Vt[V],xt);for(bt.matrixWorld.copy(et.matrixWorld),bt=bt.children,V=0,xt=bt.length;V<xt;V++)bt[V].updateMatrixWorld(!0);return ce(et,N,j),et}return bt},this.isPresenting=e;var _t=null,mt=new d;mt.setAnimationLoop(function(bt,xt){if(y=xt.getDevicePose(f),y!==null)for(var Vt=h.baseLayer,V=xt.views,it=0;it<V.length;it++){var It=V[it],ee=Vt.getViewport(It),$t=y.getViewMatrix(It),qt=et.cameras[it];qt.matrix.fromArray($t).getInverse(qt.matrix),qt.projectionMatrix.fromArray(It.projectionMatrix),qt.viewport.set(ee.x,ee.y,ee.width,ee.height),it===0&&et.matrix.copy(qt.matrix)}for(it=0;it<S.length;it++){if(Vt=S[it],(V=P[it])&&(V=xt.getInputPose(V,f),V!==null)){"targetRay"in V?Vt.matrix.elements=V.targetRay.transformMatrix:"pointerMatrix"in V&&(Vt.matrix.elements=V.pointerMatrix),Vt.matrix.decompose(Vt.position,Vt.rotation,Vt.scale),Vt.visible=!0;continue}Vt.visible=!1}_t&&_t(bt)}),this.setAnimationLoop=function(bt){_t=bt},this.dispose=function(){},this.getStandingMatrix=function(){return console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed."),new THREE.Matrix4},this.submitFrame=function(){}}function _e(t){var e;function i(){ii=new Jt(ne),Ze=new Ji(ne,ii,t),Ze.isWebGL2||(ii.get("WEBGL_depth_texture"),ii.get("OES_texture_float"),ii.get("OES_texture_half_float"),ii.get("OES_texture_half_float_linear"),ii.get("OES_standard_derivatives"),ii.get("OES_element_index_uint"),ii.get("ANGLE_instanced_arrays")),ii.get("OES_texture_float_linear"),En=new He(ne,ii,Ze),li=new he(ne,ii,En,Ze),li.scissor(Wi.copy(Ye).multiplyScalar(Qe)),li.viewport(pn.copy(Ut).multiplyScalar(Qe)),dn=new pt,Tn=new rt,lo=new We(ne,ii,li,Tn,Ze,En,dn),ks=new g(ne),xl=new jt(ne,ks,dn),Us=new Kt(xl,dn),wl=new ie(ne),is=new ot(qt,ii,Ze),xa=new Pt,ns=new le,Po=new Ri(qt,li,Us,V),Tl=new hn(ne,ii,dn,Ze),jn=new ct(ne,ii,dn,Ze),dn.programs=is.programs,qt.context=ne,qt.capabilities=Ze,qt.extensions=ii,qt.properties=Tn,qt.renderLists=xa,qt.state=li,qt.info=dn}function n(ut){ut.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),Te=!0}function o(){console.log("THREE.WebGLRenderer: Context Restored."),Te=!1,i()}function s(ut){ut=ut.target,ut.removeEventListener("dispose",s),l(ut),Tn.remove(ut)}function l(ut){var wt=Tn.get(ut).program;ut.program=void 0,wt!==void 0&&is.releaseProgram(wt)}function h(ut,wt){ut.render(function(dt){qt.renderBufferImmediate(dt,wt)})}function c(ut,wt,dt){if(ut.visible!==!1){if(ut.layers.test(wt.layers)){if(ut.isLight)$t.pushLight(ut),ut.castShadow&&$t.pushShadow(ut);else if(ut.isSprite){if(!ut.frustumCulled||Hi.intersectsSprite(ut)){dt&&Ai.setFromMatrixPosition(ut.matrixWorld).applyMatrix4(Ci);var Me=Us.update(ut),De=ut.material;ee.push(ut,Me,De,Ai.z,null)}}else if(ut.isImmediateRenderObject)dt&&Ai.setFromMatrixPosition(ut.matrixWorld).applyMatrix4(Ci),ee.push(ut,null,ut.material,Ai.z,null);else if((ut.isMesh||ut.isLine||ut.isPoints)&&(ut.isSkinnedMesh&&ut.skeleton.update(),!ut.frustumCulled||Hi.intersectsObject(ut)))if(dt&&Ai.setFromMatrixPosition(ut.matrixWorld).applyMatrix4(Ci),Me=Us.update(ut),De=ut.material,Array.isArray(De))for(var Ve=Me.groups,Se=0,$e=Ve.length;Se<$e;Se++){var Li=Ve[Se],Zi=De[Li.materialIndex];Zi&&Zi.visible&&ee.push(ut,Me,Zi,Ai.z,Li)}else De.visible&&ee.push(ut,Me,De,Ai.z,null)}for(ut=ut.children,Se=0,$e=ut.length;Se<$e;Se++)c(ut[Se],wt,dt)}}function f(ut,wt,dt,Me){for(var De=0,Ve=ut.length;De<Ve;De++){var Se=ut[De],$e=Se.object,Li=Se.geometry,Zi=Me===void 0?Se.material:Me;if(Se=Se.group,dt.isArrayCamera){xn=dt;for(var me=dt.cameras,ar=0,Pn=me.length;ar<Pn;ar++){var rn=me[ar];if($e.layers.test(rn.layers)){if("viewport"in rn)li.viewport(pn.copy(rn.viewport));else{var tr=rn.bounds;li.viewport(pn.set(tr.x*wn,tr.y*Ae,tr.z*wn,tr.w*Ae).multiplyScalar(Qe))}$t.setupLights(rn),v($e,wt,rn,Li,Zi,Se)}}}else xn=null,v($e,wt,dt,Li,Zi,Se)}}function v(ut,wt,dt,Me,De,Ve){if(ut.onBeforeRender(qt,wt,dt,Me,De,Ve),$t=ns.get(wt,xn||dt),ut.modelViewMatrix.multiplyMatrices(dt.matrixWorldInverse,ut.matrixWorld),ut.normalMatrix.getNormalMatrix(ut.modelViewMatrix),ut.isImmediateRenderObject){li.setMaterial(De);var Se=S(dt,wt.fog,De,ut);je=e=null,Ke=!1,h(ut,Se)}else qt.renderBufferDirect(dt,wt.fog,Me,De,ut,Ve);ut.onAfterRender(qt,wt,dt,Me,De,Ve),$t=ns.get(wt,xn||dt)}function y(ut,wt,dt){var Me=Tn.get(ut),De=$t.state.lights,Ve=Me.lightsHash,Se=De.state.hash;dt=is.getParameters(ut,De.state,$t.state.shadowsArray,wt,Ce.numPlanes,Ce.numIntersection,dt);var $e=is.getProgramCode(ut,dt),Li=Me.program,Zi=!0;if(Li===void 0)ut.addEventListener("dispose",s);else if(Li.code!==$e)l(ut);else{if(Ve.stateID!==Se.stateID||Ve.directionalLength!==Se.directionalLength||Ve.pointLength!==Se.pointLength||Ve.spotLength!==Se.spotLength||Ve.rectAreaLength!==Se.rectAreaLength||Ve.hemiLength!==Se.hemiLength||Ve.shadowsLength!==Se.shadowsLength)Ve.stateID=Se.stateID,Ve.directionalLength=Se.directionalLength,Ve.pointLength=Se.pointLength,Ve.spotLength=Se.spotLength,Ve.rectAreaLength=Se.rectAreaLength,Ve.hemiLength=Se.hemiLength,Ve.shadowsLength=Se.shadowsLength;else if(dt.shaderID!==void 0)return;Zi=!1}if(Zi&&(dt.shaderID?($e=Wr[dt.shaderID],Me.shader={name:ut.type,uniforms:Cn.clone($e.uniforms),vertexShader:$e.vertexShader,fragmentShader:$e.fragmentShader}):Me.shader={name:ut.type,uniforms:ut.uniforms,vertexShader:ut.vertexShader,fragmentShader:ut.fragmentShader},ut.onBeforeCompile(Me.shader,qt),$e=is.getProgramCode(ut,dt),Li=is.acquireProgram(ut,Me.shader,dt,$e),Me.program=Li,ut.program=Li),dt=Li.getAttributes(),ut.morphTargets)for($e=ut.numSupportedMorphTargets=0;$e<qt.maxMorphTargets;$e++)0<=dt["morphTarget"+$e]&&ut.numSupportedMorphTargets++;if(ut.morphNormals)for($e=ut.numSupportedMorphNormals=0;$e<qt.maxMorphNormals;$e++)0<=dt["morphNormal"+$e]&&ut.numSupportedMorphNormals++;dt=Me.shader.uniforms,(!ut.isShaderMaterial&&!ut.isRawShaderMaterial||ut.clipping===!0)&&(Me.numClippingPlanes=Ce.numPlanes,Me.numIntersection=Ce.numIntersection,dt.clippingPlanes=Ce.uniform),Me.fog=wt,Ve===void 0&&(Me.lightsHash=Ve={}),Ve.stateID=Se.stateID,Ve.directionalLength=Se.directionalLength,Ve.pointLength=Se.pointLength,Ve.spotLength=Se.spotLength,Ve.rectAreaLength=Se.rectAreaLength,Ve.hemiLength=Se.hemiLength,Ve.shadowsLength=Se.shadowsLength,ut.lights&&(dt.ambientLightColor.value=De.state.ambient,dt.directionalLights.value=De.state.directional,dt.spotLights.value=De.state.spot,dt.rectAreaLights.value=De.state.rectArea,dt.pointLights.value=De.state.point,dt.hemisphereLights.value=De.state.hemi,dt.directionalShadowMap.value=De.state.directionalShadowMap,dt.directionalShadowMatrix.value=De.state.directionalShadowMatrix,dt.spotShadowMap.value=De.state.spotShadowMap,dt.spotShadowMatrix.value=De.state.spotShadowMatrix,dt.pointShadowMap.value=De.state.pointShadowMap,dt.pointShadowMatrix.value=De.state.pointShadowMatrix),ut=Me.program.getUniforms(),ut=Dr.seqWithValue(ut.seq,dt),Me.uniformsList=ut}function S(ut,wt,dt,Me){en=0;var De=Tn.get(dt),Ve=De.lightsHash,Se=$t.state.lights.state.hash;Xe&&(ri||ut!==fi)&&Ce.setState(dt.clippingPlanes,dt.clipIntersection,dt.clipShadows,ut,De,ut===fi&&dt.id===se),dt.needsUpdate===!1&&(De.program===void 0||dt.fog&&De.fog!==wt?dt.needsUpdate=!0:(!dt.lights||Ve.stateID===Se.stateID&&Ve.directionalLength===Se.directionalLength&&Ve.pointLength===Se.pointLength&&Ve.spotLength===Se.spotLength&&Ve.rectAreaLength===Se.rectAreaLength&&Ve.hemiLength===Se.hemiLength&&Ve.shadowsLength===Se.shadowsLength)&&(De.numClippingPlanes===void 0||De.numClippingPlanes===Ce.numPlanes&&De.numIntersection===Ce.numIntersection)||(dt.needsUpdate=!0)),dt.needsUpdate&&(y(dt,wt,Me),dt.needsUpdate=!1);var $e=!1,Li=!1,Zi=!1;Ve=De.program,Se=Ve.getUniforms();var me=De.shader.uniforms;if(li.useProgram(Ve.program)&&(Zi=Li=$e=!0),dt.id!==se&&(se=dt.id,Li=!0),($e||fi!==ut)&&(Se.setValue(ne,"projectionMatrix",ut.projectionMatrix),Ze.logarithmicDepthBuffer&&Se.setValue(ne,"logDepthBufFC",2/(Math.log(ut.far+1)/Math.LN2)),fi!==ut&&(fi=ut,Zi=Li=!0),(dt.isShaderMaterial||dt.isMeshPhongMaterial||dt.isMeshStandardMaterial||dt.envMap)&&($e=Se.map.cameraPosition,$e!==void 0&&$e.setValue(ne,Ai.setFromMatrixPosition(ut.matrixWorld))),(dt.isMeshPhongMaterial||dt.isMeshLambertMaterial||dt.isMeshBasicMaterial||dt.isMeshStandardMaterial||dt.isShaderMaterial||dt.skinning)&&Se.setValue(ne,"viewMatrix",ut.matrixWorldInverse)),dt.skinning&&(Se.setOptional(ne,Me,"bindMatrix"),Se.setOptional(ne,Me,"bindMatrixInverse"),ut=Me.skeleton))if($e=ut.bones,Ze.floatVertexTextures){if(ut.boneTexture===void 0){$e=Math.sqrt(4*$e.length),$e=pi.ceilPowerOfTwo($e),$e=Math.max($e,4);var ar=new Float32Array($e*$e*4);ar.set(ut.boneMatrices);var Pn=new H(ar,$e,$e,1023,1015);Pn.needsUpdate=!0,ut.boneMatrices=ar,ut.boneTexture=Pn,ut.boneTextureSize=$e}Se.setValue(ne,"boneTexture",ut.boneTexture),Se.setValue(ne,"boneTextureSize",ut.boneTextureSize)}else Se.setOptional(ne,ut,"boneMatrices");return Li&&(Se.setValue(ne,"toneMappingExposure",qt.toneMappingExposure),Se.setValue(ne,"toneMappingWhitePoint",qt.toneMappingWhitePoint),dt.lights&&(Li=Zi,me.ambientLightColor.needsUpdate=Li,me.directionalLights.needsUpdate=Li,me.pointLights.needsUpdate=Li,me.spotLights.needsUpdate=Li,me.rectAreaLights.needsUpdate=Li,me.hemisphereLights.needsUpdate=Li),wt&&dt.fog&&(me.fogColor.value=wt.color,wt.isFog?(me.fogNear.value=wt.near,me.fogFar.value=wt.far):wt.isFogExp2&&(me.fogDensity.value=wt.density)),dt.isMeshBasicMaterial?P(me,dt):dt.isMeshLambertMaterial?(P(me,dt),dt.emissiveMap&&(me.emissiveMap.value=dt.emissiveMap)):dt.isMeshPhongMaterial?(P(me,dt),dt.isMeshToonMaterial?(N(me,dt),dt.gradientMap&&(me.gradientMap.value=dt.gradientMap)):N(me,dt)):dt.isMeshStandardMaterial?(P(me,dt),dt.isMeshPhysicalMaterial?(j(me,dt),me.reflectivity.value=dt.reflectivity,me.clearCoat.value=dt.clearCoat,me.clearCoatRoughness.value=dt.clearCoatRoughness):j(me,dt)):dt.isMeshMatcapMaterial?(P(me,dt),dt.matcap&&(me.matcap.value=dt.matcap),dt.bumpMap&&(me.bumpMap.value=dt.bumpMap,me.bumpScale.value=dt.bumpScale,dt.side===1&&(me.bumpScale.value*=-1)),dt.normalMap&&(me.normalMap.value=dt.normalMap,me.normalScale.value.copy(dt.normalScale),dt.side===1&&me.normalScale.value.negate()),dt.displacementMap&&(me.displacementMap.value=dt.displacementMap,me.displacementScale.value=dt.displacementScale,me.displacementBias.value=dt.displacementBias)):dt.isMeshDepthMaterial?(P(me,dt),dt.displacementMap&&(me.displacementMap.value=dt.displacementMap,me.displacementScale.value=dt.displacementScale,me.displacementBias.value=dt.displacementBias)):dt.isMeshDistanceMaterial?(P(me,dt),dt.displacementMap&&(me.displacementMap.value=dt.displacementMap,me.displacementScale.value=dt.displacementScale,me.displacementBias.value=dt.displacementBias),me.referencePosition.value.copy(dt.referencePosition),me.nearDistance.value=dt.nearDistance,me.farDistance.value=dt.farDistance):dt.isMeshNormalMaterial?(P(me,dt),dt.bumpMap&&(me.bumpMap.value=dt.bumpMap,me.bumpScale.value=dt.bumpScale,dt.side===1&&(me.bumpScale.value*=-1)),dt.normalMap&&(me.normalMap.value=dt.normalMap,me.normalScale.value.copy(dt.normalScale),dt.side===1&&me.normalScale.value.negate()),dt.displacementMap&&(me.displacementMap.value=dt.displacementMap,me.displacementScale.value=dt.displacementScale,me.displacementBias.value=dt.displacementBias)):dt.isLineBasicMaterial?(me.diffuse.value=dt.color,me.opacity.value=dt.opacity,dt.isLineDashedMaterial&&(me.dashSize.value=dt.dashSize,me.totalSize.value=dt.dashSize+dt.gapSize,me.scale.value=dt.scale)):dt.isPointsMaterial?(me.diffuse.value=dt.color,me.opacity.value=dt.opacity,me.size.value=dt.size*Qe,me.scale.value=.5*Ae,me.map.value=dt.map,dt.map!==null&&(dt.map.matrixAutoUpdate===!0&&dt.map.updateMatrix(),me.uvTransform.value.copy(dt.map.matrix))):dt.isSpriteMaterial?(me.diffuse.value=dt.color,me.opacity.value=dt.opacity,me.rotation.value=dt.rotation,me.map.value=dt.map,dt.map!==null&&(dt.map.matrixAutoUpdate===!0&&dt.map.updateMatrix(),me.uvTransform.value.copy(dt.map.matrix))):dt.isShadowMaterial&&(me.color.value=dt.color,me.opacity.value=dt.opacity),me.ltc_1!==void 0&&(me.ltc_1.value=qe.LTC_1),me.ltc_2!==void 0&&(me.ltc_2.value=qe.LTC_2),Dr.upload(ne,De.uniformsList,me,qt)),dt.isShaderMaterial&&dt.uniformsNeedUpdate===!0&&(Dr.upload(ne,De.uniformsList,me,qt),dt.uniformsNeedUpdate=!1),dt.isSpriteMaterial&&Se.setValue(ne,"center",Me.center),Se.setValue(ne,"modelViewMatrix",Me.modelViewMatrix),Se.setValue(ne,"normalMatrix",Me.normalMatrix),Se.setValue(ne,"modelMatrix",Me.matrixWorld),Ve}function P(ut,wt){if(ut.opacity.value=wt.opacity,wt.color&&(ut.diffuse.value=wt.color),wt.emissive&&ut.emissive.value.copy(wt.emissive).multiplyScalar(wt.emissiveIntensity),wt.map&&(ut.map.value=wt.map),wt.alphaMap&&(ut.alphaMap.value=wt.alphaMap),wt.specularMap&&(ut.specularMap.value=wt.specularMap),wt.envMap&&(ut.envMap.value=wt.envMap,ut.flipEnvMap.value=wt.envMap&&wt.envMap.isCubeTexture?-1:1,ut.reflectivity.value=wt.reflectivity,ut.refractionRatio.value=wt.refractionRatio,ut.maxMipLevel.value=Tn.get(wt.envMap).__maxMipLevel),wt.lightMap&&(ut.lightMap.value=wt.lightMap,ut.lightMapIntensity.value=wt.lightMapIntensity),wt.aoMap&&(ut.aoMap.value=wt.aoMap,ut.aoMapIntensity.value=wt.aoMapIntensity),wt.map)var dt=wt.map;else wt.specularMap?dt=wt.specularMap:wt.displacementMap?dt=wt.displacementMap:wt.normalMap?dt=wt.normalMap:wt.bumpMap?dt=wt.bumpMap:wt.roughnessMap?dt=wt.roughnessMap:wt.metalnessMap?dt=wt.metalnessMap:wt.alphaMap?dt=wt.alphaMap:wt.emissiveMap&&(dt=wt.emissiveMap);dt!==void 0&&(dt.isWebGLRenderTarget&&(dt=dt.texture),dt.matrixAutoUpdate===!0&&dt.updateMatrix(),ut.uvTransform.value.copy(dt.matrix))}function N(ut,wt){ut.specular.value=wt.specular,ut.shininess.value=Math.max(wt.shininess,1e-4),wt.emissiveMap&&(ut.emissiveMap.value=wt.emissiveMap),wt.bumpMap&&(ut.bumpMap.value=wt.bumpMap,ut.bumpScale.value=wt.bumpScale,wt.side===1&&(ut.bumpScale.value*=-1)),wt.normalMap&&(ut.normalMap.value=wt.normalMap,ut.normalScale.value.copy(wt.normalScale),wt.side===1&&ut.normalScale.value.negate()),wt.displacementMap&&(ut.displacementMap.value=wt.displacementMap,ut.displacementScale.value=wt.displacementScale,ut.displacementBias.value=wt.displacementBias)}function j(ut,wt){ut.roughness.value=wt.roughness,ut.metalness.value=wt.metalness,wt.roughnessMap&&(ut.roughnessMap.value=wt.roughnessMap),wt.metalnessMap&&(ut.metalnessMap.value=wt.metalnessMap),wt.emissiveMap&&(ut.emissiveMap.value=wt.emissiveMap),wt.bumpMap&&(ut.bumpMap.value=wt.bumpMap,ut.bumpScale.value=wt.bumpScale,wt.side===1&&(ut.bumpScale.value*=-1)),wt.normalMap&&(ut.normalMap.value=wt.normalMap,ut.normalScale.value.copy(wt.normalScale),wt.side===1&&ut.normalScale.value.negate()),wt.displacementMap&&(ut.displacementMap.value=wt.displacementMap,ut.displacementScale.value=wt.displacementScale,ut.displacementBias.value=wt.displacementBias),wt.envMap&&(ut.envMapIntensity.value=wt.envMapIntensity)}console.log("THREE.WebGLRenderer","98"),t=t||{};var et=t.canvas!==void 0?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),_t=t.context!==void 0?t.context:null,mt=t.alpha!==void 0?t.alpha:!1,bt=t.depth!==void 0?t.depth:!0,xt=t.stencil!==void 0?t.stencil:!0,Vt=t.antialias!==void 0?t.antialias:!1,V=t.premultipliedAlpha!==void 0?t.premultipliedAlpha:!0,it=t.preserveDrawingBuffer!==void 0?t.preserveDrawingBuffer:!1,It=t.powerPreference!==void 0?t.powerPreference:"default",ee=null,$t=null;this.domElement=et,this.context=null,this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.physicallyCorrectLights=this.gammaOutput=this.gammaInput=!1,this.toneMappingWhitePoint=this.toneMappingExposure=this.toneMapping=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var qt=this,Te=!1,pe=null,Oe=null,be=null,se=-1,je=e=null,Ke=!1,fi=null,xn=null,pn=new E,Wi=new E,Gi=null,en=0,wn=et.width,Ae=et.height,Qe=1,Ut=new E(0,0,wn,Ae),Ye=new E(0,0,wn,Ae),ei=!1,Hi=new b,Ce=new R,Xe=!1,ri=!1,Ci=new J,Ai=new m;try{mt={alpha:mt,depth:bt,stencil:xt,antialias:Vt,premultipliedAlpha:V,preserveDrawingBuffer:it,powerPreference:It},et.addEventListener("webglcontextlost",n,!1),et.addEventListener("webglcontextrestored",o,!1);var ne=_t||et.getContext("webgl",mt)||et.getContext("experimental-webgl",mt);if(ne===null)throw et.getContext("webgl")!==null?Error("Error creating WebGL context with your selected attributes."):Error("Error creating WebGL context.");ne.getShaderPrecisionFormat===void 0&&(ne.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(ut){console.error("THREE.WebGLRenderer: "+ut.message)}var ii,Ze,li,dn,Tn,lo,ks,xl,Us,is,xa,ns,Po,wl,Tl,jn,En;i();var Yr=null;typeof navigator<"u"&&(Yr="xr"in navigator?new Pe(qt):new mi(qt)),this.vr=Yr;var Zl=new ve(qt,Us,Ze.maxTextureSize);this.shadowMap=Zl,this.getContext=function(){return ne},this.getContextAttributes=function(){return ne.getContextAttributes()},this.forceContextLoss=function(){var ut=ii.get("WEBGL_lose_context");ut&&ut.loseContext()},this.forceContextRestore=function(){var ut=ii.get("WEBGL_lose_context");ut&&ut.restoreContext()},this.getPixelRatio=function(){return Qe},this.setPixelRatio=function(ut){ut!==void 0&&(Qe=ut,this.setSize(wn,Ae,!1))},this.getSize=function(){return{width:wn,height:Ae}},this.setSize=function(ut,wt,dt){Yr.isPresenting()?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(wn=ut,Ae=wt,et.width=ut*Qe,et.height=wt*Qe,dt!==!1&&(et.style.width=ut+"px",et.style.height=wt+"px"),this.setViewport(0,0,ut,wt))},this.getDrawingBufferSize=function(){return{width:wn*Qe,height:Ae*Qe}},this.setDrawingBufferSize=function(ut,wt,dt){wn=ut,Ae=wt,Qe=dt,et.width=ut*dt,et.height=wt*dt,this.setViewport(0,0,ut,wt)},this.getCurrentViewport=function(){return pn},this.setViewport=function(ut,wt,dt,Me){Ut.set(ut,Ae-wt-Me,dt,Me),li.viewport(pn.copy(Ut).multiplyScalar(Qe))},this.setScissor=function(ut,wt,dt,Me){Ye.set(ut,Ae-wt-Me,dt,Me),li.scissor(Wi.copy(Ye).multiplyScalar(Qe))},this.setScissorTest=function(ut){li.setScissorTest(ei=ut)},this.getClearColor=function(){return Po.getClearColor()},this.setClearColor=function(){Po.setClearColor.apply(Po,arguments)},this.getClearAlpha=function(){return Po.getClearAlpha()},this.setClearAlpha=function(){Po.setClearAlpha.apply(Po,arguments)},this.clear=function(ut,wt,dt){var Me=0;(ut===void 0||ut)&&(Me|=16384),(wt===void 0||wt)&&(Me|=256),(dt===void 0||dt)&&(Me|=1024),ne.clear(Me)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){et.removeEventListener("webglcontextlost",n,!1),et.removeEventListener("webglcontextrestored",o,!1),xa.dispose(),ns.dispose(),Tn.dispose(),Us.dispose(),Yr.dispose(),ho.stop()},this.renderBufferImmediate=function(ut,wt){li.initAttributes();var dt=Tn.get(ut);ut.hasPositions&&!dt.position&&(dt.position=ne.createBuffer()),ut.hasNormals&&!dt.normal&&(dt.normal=ne.createBuffer()),ut.hasUvs&&!dt.uv&&(dt.uv=ne.createBuffer()),ut.hasColors&&!dt.color&&(dt.color=ne.createBuffer()),wt=wt.getAttributes(),ut.hasPositions&&(ne.bindBuffer(34962,dt.position),ne.bufferData(34962,ut.positionArray,35048),li.enableAttribute(wt.position),ne.vertexAttribPointer(wt.position,3,5126,!1,0,0)),ut.hasNormals&&(ne.bindBuffer(34962,dt.normal),ne.bufferData(34962,ut.normalArray,35048),li.enableAttribute(wt.normal),ne.vertexAttribPointer(wt.normal,3,5126,!1,0,0)),ut.hasUvs&&(ne.bindBuffer(34962,dt.uv),ne.bufferData(34962,ut.uvArray,35048),li.enableAttribute(wt.uv),ne.vertexAttribPointer(wt.uv,2,5126,!1,0,0)),ut.hasColors&&(ne.bindBuffer(34962,dt.color),ne.bufferData(34962,ut.colorArray,35048),li.enableAttribute(wt.color),ne.vertexAttribPointer(wt.color,3,5126,!1,0,0)),li.disableUnusedAttributes(),ne.drawArrays(4,0,ut.count),ut.count=0},this.renderBufferDirect=function(ut,wt,dt,Me,De,Ve){var Se=De.isMesh&&0>De.normalMatrix.determinant();li.setMaterial(Me,Se);var $e=S(ut,wt,Me,De),Li=!1;(e!==dt.id||je!==$e.id||Ke!==(Me.wireframe===!0))&&(e=dt.id,je=$e.id,Ke=Me.wireframe===!0,Li=!0),De.morphTargetInfluences&&(wl.update(De,dt,Me,$e),Li=!0),Se=dt.index;var Zi=dt.attributes.position;if(wt=1,Me.wireframe===!0&&(Se=xl.getWireframeAttribute(dt),wt=2),ut=Tl,Se!==null){var me=ks.get(Se);ut=jn,ut.setIndex(me)}if(Li){if(dt&&dt.isInstancedBufferGeometry&!Ze.isWebGL2&&ii.get("ANGLE_instanced_arrays")===null)console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");else{li.initAttributes(),Li=dt.attributes,$e=$e.getAttributes();var ar=Me.defaultAttributeValues;for(Wn in $e){var Pn=$e[Wn];if(0<=Pn){var rn=Li[Wn];if(rn!==void 0){var tr=rn.normalized,Ml=rn.itemSize,Zr=ks.get(rn);if(Zr!==void 0){var Sl=Zr.buffer,Za=Zr.type;if(Zr=Zr.bytesPerElement,rn.isInterleavedBufferAttribute){var Gs=rn.data,Jl=Gs.stride;rn=rn.offset,Gs&&Gs.isInstancedInterleavedBuffer?(li.enableAttributeAndDivisor(Pn,Gs.meshPerAttribute),dt.maxInstancedCount===void 0&&(dt.maxInstancedCount=Gs.meshPerAttribute*Gs.count)):li.enableAttribute(Pn),ne.bindBuffer(34962,Sl),ne.vertexAttribPointer(Pn,Ml,Za,tr,Jl*Zr,rn*Zr)}else rn.isInstancedBufferAttribute?(li.enableAttributeAndDivisor(Pn,rn.meshPerAttribute),dt.maxInstancedCount===void 0&&(dt.maxInstancedCount=rn.meshPerAttribute*rn.count)):li.enableAttribute(Pn),ne.bindBuffer(34962,Sl),ne.vertexAttribPointer(Pn,Ml,Za,tr,0,0)}}else if(ar!==void 0&&(tr=ar[Wn],tr!==void 0))switch(tr.length){case 2:ne.vertexAttrib2fv(Pn,tr);break;case 3:ne.vertexAttrib3fv(Pn,tr);break;case 4:ne.vertexAttrib4fv(Pn,tr);break;default:ne.vertexAttrib1fv(Pn,tr)}}}li.disableUnusedAttributes()}Se!==null&&ne.bindBuffer(34963,me.buffer)}me=1/0,Se!==null?me=Se.count:Zi!==void 0&&(me=Zi.count),Se=dt.drawRange.start*wt,Zi=Ve!==null?Ve.start*wt:0;var Wn=Math.max(Se,Zi);if(Ve=Math.max(0,Math.min(me,Se+dt.drawRange.count*wt,Zi+(Ve!==null?Ve.count*wt:1/0))-1-Wn+1),Ve!==0){if(De.isMesh)if(Me.wireframe===!0)li.setLineWidth(Me.wireframeLinewidth*(Oe===null?Qe:1)),ut.setMode(1);else switch(De.drawMode){case 0:ut.setMode(4);break;case 1:ut.setMode(5);break;case 2:ut.setMode(6)}else De.isLine?(Me=Me.linewidth,Me===void 0&&(Me=1),li.setLineWidth(Me*(Oe===null?Qe:1)),De.isLineSegments?ut.setMode(1):De.isLineLoop?ut.setMode(2):ut.setMode(3)):De.isPoints?ut.setMode(0):De.isSprite&&ut.setMode(4);dt&&dt.isInstancedBufferGeometry?0<dt.maxInstancedCount&&ut.renderInstances(dt,Wn,Ve):ut.render(Wn,Ve)}},this.compile=function(ut,wt){$t=ns.get(ut,wt),$t.init(),ut.traverse(function(dt){dt.isLight&&($t.pushLight(dt),dt.castShadow&&$t.pushShadow(dt))}),$t.setupLights(wt),ut.traverse(function(dt){if(dt.material)if(Array.isArray(dt.material))for(var Me=0;Me<dt.material.length;Me++)y(dt.material[Me],ut.fog,dt);else y(dt.material,ut.fog,dt)})};var Fs=null,ho=new d;ho.setAnimationLoop(function(ut){Yr.isPresenting()||Fs&&Fs(ut)}),typeof window<"u"&&ho.setContext(window),this.setAnimationLoop=function(ut){Fs=ut,Yr.setAnimationLoop(ut),ho.start()},this.render=function(ut,wt,dt,Me){if(!wt||!wt.isCamera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else if(!Te){je=e=null,Ke=!1,se=-1,fi=null,ut.autoUpdate===!0&&ut.updateMatrixWorld(),wt.parent===null&&wt.updateMatrixWorld(),Yr.enabled&&(wt=Yr.getCamera(wt)),$t=ns.get(ut,wt),$t.init(),ut.onBeforeRender(qt,ut,wt,dt),Ci.multiplyMatrices(wt.projectionMatrix,wt.matrixWorldInverse),Hi.setFromMatrix(Ci),ri=this.localClippingEnabled,Xe=Ce.init(this.clippingPlanes,ri,wt),ee=xa.get(ut,wt),ee.init(),c(ut,wt,qt.sortObjects),qt.sortObjects===!0&&ee.sort(),Xe&&Ce.beginShadows(),Zl.render($t.state.shadowsArray,ut,wt),$t.setupLights(wt),Xe&&Ce.endShadows(),this.info.autoReset&&this.info.reset(),dt===void 0&&(dt=null),this.setRenderTarget(dt),Po.render(ee,ut,wt,Me),Me=ee.opaque;var De=ee.transparent;if(ut.overrideMaterial){var Ve=ut.overrideMaterial;Me.length&&f(Me,ut,wt,Ve),De.length&&f(De,ut,wt,Ve)}else Me.length&&f(Me,ut,wt),De.length&&f(De,ut,wt);dt&&lo.updateRenderTargetMipmap(dt),li.buffers.depth.setTest(!0),li.buffers.depth.setMask(!0),li.buffers.color.setMask(!0),li.setPolygonOffset(!1),ut.onAfterRender(qt,ut,wt),Yr.enabled&&Yr.submitFrame(),$t=ee=null}},this.allocTextureUnit=function(){var ut=en;return ut>=Ze.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+ut+" texture units while this GPU supports only "+Ze.maxTextures),en+=1,ut},this.setTexture2D=function(){var ut=!1;return function(wt,dt){wt&&wt.isWebGLRenderTarget&&(ut||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),ut=!0),wt=wt.texture),lo.setTexture2D(wt,dt)}}(),this.setTexture3D=function(){return function(ut,wt){lo.setTexture3D(ut,wt)}}(),this.setTexture=function(){var ut=!1;return function(wt,dt){ut||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),ut=!0),lo.setTexture2D(wt,dt)}}(),this.setTextureCube=function(){var ut=!1;return function(wt,dt){wt&&wt.isWebGLRenderTargetCube&&(ut||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),ut=!0),wt=wt.texture),wt&&wt.isCubeTexture||Array.isArray(wt.image)&&wt.image.length===6?lo.setTextureCube(wt,dt):lo.setTextureCubeDynamic(wt,dt)}}(),this.setFramebuffer=function(ut){pe=ut},this.getRenderTarget=function(){return Oe},this.setRenderTarget=function(ut){(Oe=ut)&&Tn.get(ut).__webglFramebuffer===void 0&&lo.setupRenderTarget(ut);var wt=pe,dt=!1;ut?(wt=Tn.get(ut).__webglFramebuffer,ut.isWebGLRenderTargetCube&&(wt=wt[ut.activeCubeFace],dt=!0),pn.copy(ut.viewport),Wi.copy(ut.scissor),Gi=ut.scissorTest):(pn.copy(Ut).multiplyScalar(Qe),Wi.copy(Ye).multiplyScalar(Qe),Gi=ei),be!==wt&&(ne.bindFramebuffer(36160,wt),be=wt),li.viewport(pn),li.scissor(Wi),li.setScissorTest(Gi),dt&&(dt=Tn.get(ut.texture),ne.framebufferTexture2D(36160,36064,34069+ut.activeCubeFace,dt.__webglTexture,ut.activeMipMapLevel))},this.readRenderTargetPixels=function(ut,wt,dt,Me,De,Ve){if(ut&&ut.isWebGLRenderTarget){var Se=Tn.get(ut).__webglFramebuffer;if(Se){var $e=!1;Se!==be&&(ne.bindFramebuffer(36160,Se),$e=!0);try{var Li=ut.texture,Zi=Li.format,me=Li.type;Zi!==1023&&En.convert(Zi)!==ne.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):me===1009||En.convert(me)===ne.getParameter(35738)||me===1015&&(Ze.isWebGL2||ii.get("OES_texture_float")||ii.get("WEBGL_color_buffer_float"))||me===1016&&(Ze.isWebGL2?ii.get("EXT_color_buffer_float"):ii.get("EXT_color_buffer_half_float"))?ne.checkFramebufferStatus(36160)===36053?0<=wt&&wt<=ut.width-Me&&0<=dt&&dt<=ut.height-De&&ne.readPixels(wt,dt,Me,De,En.convert(Zi),En.convert(me),Ve):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{$e&&ne.bindFramebuffer(36160,be)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(ut,wt,dt){var Me=wt.image.width,De=wt.image.height,Ve=En.convert(wt.format);this.setTexture2D(wt,0),ne.copyTexImage2D(3553,dt||0,Ve,ut.x,ut.y,Me,De,0)},this.copyTextureToTexture=function(ut,wt,dt,Me){var De=wt.image.width,Ve=wt.image.height,Se=En.convert(dt.format),$e=En.convert(dt.type);this.setTexture2D(dt,0),wt.isDataTexture?ne.texSubImage2D(3553,Me||0,ut.x,ut.y,De,Ve,Se,$e,wt.image.data):ne.texSubImage2D(3553,Me||0,ut.x,ut.y,Se,$e,wt.image)}}function Le(t,e){this.name="",this.color=new A(t),this.density=e!==void 0?e:25e-5}function vn(t,e,i){this.name="",this.color=new A(t),this.near=e!==void 0?e:1,this.far=i!==void 0?i:1e3}function zn(){z.call(this),this.type="Scene",this.overrideMaterial=this.fog=this.background=null,this.autoUpdate=!0}function Oi(t,e){this.array=t,this.stride=e,this.count=t!==void 0?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function Di(t,e,i,n){this.data=t,this.itemSize=e,this.offset=i,this.normalized=n===!0}function Fi(t){Zt.call(this),this.type="SpriteMaterial",this.color=new A(16777215),this.map=null,this.rotation=0,this.sizeAttenuation=!0,this.lights=!1,this.transparent=!0,this.setValues(t)}function Qi(t){if(z.call(this),this.type="Sprite",Ns===void 0){Ns=new Ft;var e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);e=new Oi(e,5),Ns.setIndex([0,1,2,0,2,3]),Ns.addAttribute("position",new Di(e,3,0,!1)),Ns.addAttribute("uv",new Di(e,2,3,!1))}this.geometry=Ns,this.material=t!==void 0?t:new Fi,this.center=new p(.5,.5)}function tn(){z.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function sn(t,e){if(t=t||[],this.bones=t.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),e===void 0)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new J)}function an(){z.call(this),this.type="Bone"}function Ui(t,e){di.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new J,this.bindMatrixInverse=new J,t=this.initBones(),t=new sn(t),this.bind(t,this.matrixWorld),this.normalizeSkinWeights()}function zi(t){Zt.call(this),this.type="LineBasicMaterial",this.color=new A(16777215),this.linewidth=1,this.linejoin=this.linecap="round",this.lights=!1,this.setValues(t)}function Vi(t,e,i){i===1&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),z.call(this),this.type="Line",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new zi({color:16777215*Math.random()})}function gi(t,e){Vi.call(this,t,e),this.type="LineSegments"}function Br(t,e){Vi.call(this,t,e),this.type="LineLoop"}function Ln(t){Zt.call(this),this.type="PointsMaterial",this.color=new A(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.lights=this.morphTargets=!1,this.setValues(t)}function ds(t,e){z.call(this),this.type="Points",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Ln({color:16777215*Math.random()})}function nl(t,e,i,n,o,s,l,h,c){O.call(this,t,e,i,n,o,s,l,h,c),this.generateMipmaps=!1}function po(t,e,i,n,o,s,l,h,c,f,v,y){O.call(this,null,s,l,h,c,f,n,o,v,y),this.image={width:e,height:i},this.mipmaps=t,this.generateMipmaps=this.flipY=!1}function Xs(t,e,i,n,o,s,l,h,c){O.call(this,t,e,i,n,o,s,l,h,c),this.needsUpdate=!0}function qs(t,e,i,n,o,s,l,h,c,f){if(f=f!==void 0?f:1026,f!==1026&&f!==1027)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&f===1026&&(i=1012),i===void 0&&f===1027&&(i=1020),O.call(this,null,n,o,s,l,h,f,i,c),this.image={width:t,height:e},this.magFilter=l!==void 0?l:1003,this.minFilter=h!==void 0?h:1003,this.generateMipmaps=this.flipY=!1}function ms(t){Ft.call(this),this.type="WireframeGeometry";var e=[],i,n,o,s=[0,0],l={},h=["a","b","c"];if(t&&t.isGeometry){var c=t.faces,f=0;for(n=c.length;f<n;f++){var v=c[f];for(i=0;3>i;i++){var y=v[h[i]],S=v[h[(i+1)%3]];s[0]=Math.min(y,S),s[1]=Math.max(y,S),y=s[0]+","+s[1],l[y]===void 0&&(l[y]={index1:s[0],index2:s[1]})}}for(y in l)f=l[y],h=t.vertices[f.index1],e.push(h.x,h.y,h.z),h=t.vertices[f.index2],e.push(h.x,h.y,h.z)}else if(t&&t.isBufferGeometry)if(h=new m,t.index!==null){c=t.attributes.position,v=t.index;var P=t.groups;for(P.length===0&&(P=[{start:0,count:v.count,materialIndex:0}]),t=0,o=P.length;t<o;++t)for(f=P[t],i=f.start,n=f.count,f=i,n=i+n;f<n;f+=3)for(i=0;3>i;i++)y=v.getX(f+i),S=v.getX(f+(i+1)%3),s[0]=Math.min(y,S),s[1]=Math.max(y,S),y=s[0]+","+s[1],l[y]===void 0&&(l[y]={index1:s[0],index2:s[1]});for(y in l)f=l[y],h.fromBufferAttribute(c,f.index1),e.push(h.x,h.y,h.z),h.fromBufferAttribute(c,f.index2),e.push(h.x,h.y,h.z)}else for(c=t.attributes.position,f=0,n=c.count/3;f<n;f++)for(i=0;3>i;i++)l=3*f+i,h.fromBufferAttribute(c,l),e.push(h.x,h.y,h.z),l=3*f+(i+1)%3,h.fromBufferAttribute(c,l),e.push(h.x,h.y,h.z);this.addAttribute("position",new Ct(e,3))}function Ys(t,e,i){W.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:i},this.fromBufferGeometry(new gs(t,e,i)),this.mergeVertices()}function gs(t,e,i){Ft.call(this),this.type="ParametricBufferGeometry",this.parameters={func:t,slices:e,stacks:i};var n=[],o=[],s=[],l=[],h=new m,c=new m,f=new m,v=new m,y=new m,S,P;3>t.length&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var N=e+1;for(S=0;S<=i;S++){var j=S/i;for(P=0;P<=e;P++){var et=P/e;t(et,j,c),o.push(c.x,c.y,c.z),0<=et-1e-5?(t(et-1e-5,j,f),v.subVectors(c,f)):(t(et+1e-5,j,f),v.subVectors(f,c)),0<=j-1e-5?(t(et,j-1e-5,f),y.subVectors(c,f)):(t(et,j+1e-5,f),y.subVectors(f,c)),h.crossVectors(v,y).normalize(),s.push(h.x,h.y,h.z),l.push(et,j)}}for(S=0;S<i;S++)for(P=0;P<e;P++)t=S*N+P+1,h=(S+1)*N+P+1,c=(S+1)*N+P,n.push(S*N+P,t,c),n.push(t,h,c);this.setIndex(n),this.addAttribute("position",new Ct(o,3)),this.addAttribute("normal",new Ct(s,3)),this.addAttribute("uv",new Ct(l,2))}function ji(t,e,i,n){W.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n},this.fromBufferGeometry(new xi(t,e,i,n)),this.mergeVertices()}function xi(t,e,i,n){function o(f){h.push(f.x,f.y,f.z)}function s(f,v){f*=3,v.x=t[f+0],v.y=t[f+1],v.z=t[f+2]}function l(f,v,y,S){0>S&&f.x===1&&(c[v]=f.x-1),y.x===0&&y.z===0&&(c[v]=S/2/Math.PI+.5)}Ft.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n},i=i||1,n=n||0;var h=[],c=[];(function(f){for(var v=new m,y=new m,S=new m,P=0;P<e.length;P+=3){s(e[P+0],v),s(e[P+1],y),s(e[P+2],S);var N,j,et=v,_t=y,mt=S,bt=Math.pow(2,f),xt=[];for(j=0;j<=bt;j++){xt[j]=[];var Vt=et.clone().lerp(mt,j/bt),V=_t.clone().lerp(mt,j/bt),it=bt-j;for(N=0;N<=it;N++)xt[j][N]=N===0&&j===bt?Vt:Vt.clone().lerp(V,N/it)}for(j=0;j<bt;j++)for(N=0;N<2*(bt-j)-1;N++)et=Math.floor(N/2),N%2===0?(o(xt[j][et+1]),o(xt[j+1][et]),o(xt[j][et])):(o(xt[j][et+1]),o(xt[j+1][et+1]),o(xt[j+1][et]))}})(n),function(f){for(var v=new m,y=0;y<h.length;y+=3)v.x=h[y+0],v.y=h[y+1],v.z=h[y+2],v.normalize().multiplyScalar(f),h[y+0]=v.x,h[y+1]=v.y,h[y+2]=v.z}(i),function(){for(var f=new m,v=0;v<h.length;v+=3)f.x=h[v+0],f.y=h[v+1],f.z=h[v+2],c.push(Math.atan2(f.z,-f.x)/2/Math.PI+.5,1-(Math.atan2(-f.y,Math.sqrt(f.x*f.x+f.z*f.z))/Math.PI+.5));f=new m,v=new m;for(var y=new m,S=new m,P=new p,N=new p,j=new p,et=0,_t=0;et<h.length;et+=9,_t+=6){f.set(h[et+0],h[et+1],h[et+2]),v.set(h[et+3],h[et+4],h[et+5]),y.set(h[et+6],h[et+7],h[et+8]),P.set(c[_t+0],c[_t+1]),N.set(c[_t+2],c[_t+3]),j.set(c[_t+4],c[_t+5]),S.copy(f).add(v).add(y).divideScalar(3);var mt=Math.atan2(S.z,-S.x);l(P,_t+0,f,mt),l(N,_t+2,v,mt),l(j,_t+4,y,mt)}for(f=0;f<c.length;f+=6)v=c[f+0],y=c[f+2],S=c[f+4],P=Math.min(v,y,S),.9<Math.max(v,y,S)&&.1>P&&(.2>v&&(c[f+0]+=1),.2>y&&(c[f+2]+=1),.2>S&&(c[f+4]+=1))}(),this.addAttribute("position",new Ct(h,3)),this.addAttribute("normal",new Ct(h.slice(),3)),this.addAttribute("uv",new Ct(c,2)),n===0?this.computeVertexNormals():this.normalizeNormals()}function Zs(t,e){W.call(this),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new vs(t,e)),this.mergeVertices()}function vs(t,e){xi.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],t,e),this.type="TetrahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Js(t,e){W.call(this),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new Do(t,e)),this.mergeVertices()}function Do(t,e){xi.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],t,e),this.type="OctahedronBufferGeometry",this.parameters={radius:t,detail:e}}function $s(t,e){W.call(this),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new ys(t,e)),this.mergeVertices()}function ys(t,e){var i=(1+Math.sqrt(5))/2;xi.call(this,[-1,i,0,1,i,0,-1,-i,0,1,-i,0,0,-1,i,0,1,i,0,-1,-i,0,1,-i,i,0,-1,i,0,1,-i,0,-1,-i,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],t,e),this.type="IcosahedronBufferGeometry",this.parameters={radius:t,detail:e}}function _s(t,e){W.call(this),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new xs(t,e)),this.mergeVertices()}function xs(t,e){var i=(1+Math.sqrt(5))/2,n=1/i;xi.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-n,-i,0,-n,i,0,n,-i,0,n,i,-n,-i,0,-n,i,0,n,-i,0,n,i,0,-i,0,-n,i,0,-n,-i,0,n,i,0,n],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],t,e),this.type="DodecahedronBufferGeometry",this.parameters={radius:t,detail:e}}function un(t,e,i,n,o,s){W.call(this),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:o},s!==void 0&&console.warn("THREE.TubeGeometry: taper has been removed."),t=new mo(t,e,i,n,o),this.tangents=t.tangents,this.normals=t.normals,this.binormals=t.binormals,this.fromBufferGeometry(t),this.mergeVertices()}function mo(t,e,i,n,o){function s(_t){v=t.getPointAt(_t/e,v);var mt=l.normals[_t];for(_t=l.binormals[_t],S=0;S<=n;S++){var bt=S/n*Math.PI*2,xt=Math.sin(bt);bt=-Math.cos(bt),c.x=bt*mt.x+xt*_t.x,c.y=bt*mt.y+xt*_t.y,c.z=bt*mt.z+xt*_t.z,c.normalize(),N.push(c.x,c.y,c.z),h.x=v.x+i*c.x,h.y=v.y+i*c.y,h.z=v.z+i*c.z,P.push(h.x,h.y,h.z)}}Ft.call(this),this.type="TubeBufferGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:o},e=e||64,i=i||1,n=n||8,o=o||!1;var l=t.computeFrenetFrames(e,o);this.tangents=l.tangents,this.normals=l.normals,this.binormals=l.binormals;var h=new m,c=new m,f=new p,v=new m,y,S,P=[],N=[],j=[],et=[];for(y=0;y<e;y++)s(y);for(s(o===!1?e:0),y=0;y<=e;y++)for(S=0;S<=n;S++)f.x=y/e,f.y=S/n,j.push(f.x,f.y);(function(){for(S=1;S<=e;S++)for(y=1;y<=n;y++){var _t=(n+1)*S+(y-1),mt=(n+1)*S+y,bt=(n+1)*(S-1)+y;et.push((n+1)*(S-1)+(y-1),_t,bt),et.push(_t,mt,bt)}})(),this.setIndex(et),this.addAttribute("position",new Ct(P,3)),this.addAttribute("normal",new Ct(N,3)),this.addAttribute("uv",new Ct(j,2))}function Sr(t,e,i,n,o,s,l){W.call(this),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:o,q:s},l!==void 0&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new zo(t,e,i,n,o,s)),this.mergeVertices()}function zo(t,e,i,n,o,s){function l(V,it,It,ee,$t){var qt=Math.sin(V);it=It/it*V,It=Math.cos(it),$t.x=ee*(2+It)*.5*Math.cos(V),$t.y=ee*(2+It)*qt*.5,$t.z=ee*Math.sin(it)*.5}Ft.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:o,q:s},t=t||1,e=e||.4,i=Math.floor(i)||64,n=Math.floor(n)||8,o=o||2,s=s||3;var h=[],c=[],f=[],v=[],y,S=new m,P=new m,N=new m,j=new m,et=new m,_t=new m,mt=new m;for(y=0;y<=i;++y){var bt=y/i*o*Math.PI*2;for(l(bt,o,s,t,N),l(bt+.01,o,s,t,j),_t.subVectors(j,N),mt.addVectors(j,N),et.crossVectors(_t,mt),mt.crossVectors(et,_t),et.normalize(),mt.normalize(),bt=0;bt<=n;++bt){var xt=bt/n*Math.PI*2,Vt=-e*Math.cos(xt);xt=e*Math.sin(xt),S.x=N.x+(Vt*mt.x+xt*et.x),S.y=N.y+(Vt*mt.y+xt*et.y),S.z=N.z+(Vt*mt.z+xt*et.z),c.push(S.x,S.y,S.z),P.subVectors(S,N).normalize(),f.push(P.x,P.y,P.z),v.push(y/i),v.push(bt/n)}}for(bt=1;bt<=i;bt++)for(y=1;y<=n;y++)t=(n+1)*bt+(y-1),e=(n+1)*bt+y,o=(n+1)*(bt-1)+y,h.push((n+1)*(bt-1)+(y-1),t,o),h.push(t,e,o);this.setIndex(h),this.addAttribute("position",new Ct(c,3)),this.addAttribute("normal",new Ct(f,3)),this.addAttribute("uv",new Ct(v,2))}function Bo(t,e,i,n,o){W.call(this),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:o},this.fromBufferGeometry(new Rn(t,e,i,n,o)),this.mergeVertices()}function Rn(t,e,i,n,o){Ft.call(this),this.type="TorusBufferGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:o},t=t||1,e=e||.4,i=Math.floor(i)||8,n=Math.floor(n)||6,o=o||2*Math.PI;var s=[],l=[],h=[],c=[],f=new m,v=new m,y=new m,S,P;for(S=0;S<=i;S++)for(P=0;P<=n;P++){var N=P/n*o,j=S/i*Math.PI*2;v.x=(t+e*Math.cos(j))*Math.cos(N),v.y=(t+e*Math.cos(j))*Math.sin(N),v.z=e*Math.sin(j),l.push(v.x,v.y,v.z),f.x=t*Math.cos(N),f.y=t*Math.sin(N),y.subVectors(v,f).normalize(),h.push(y.x,y.y,y.z),c.push(P/n),c.push(S/i)}for(S=1;S<=i;S++)for(P=1;P<=n;P++)t=(n+1)*(S-1)+P-1,e=(n+1)*(S-1)+P,o=(n+1)*S+P,s.push((n+1)*S+P-1,t,o),s.push(t,e,o);this.setIndex(s),this.addAttribute("position",new Ct(l,3)),this.addAttribute("normal",new Ct(h,3)),this.addAttribute("uv",new Ct(c,2))}function rl(t,e,i,n,o){for(var s,l=0,h=e,c=i-n;h<i;h+=n)l+=(t[c]-t[h])*(t[h+1]+t[c+1]),c=h;if(o===0<l)for(o=e;o<i;o+=n)s=Ia(o,t[o],t[o+1],s);else for(o=i-n;o>=e;o-=n)s=Ia(o,t[o],t[o+1],s);return s&&No(s,s.next)&&(Xi(s),s=s.next),s}function ws(t,e){if(!t)return t;e||(e=t);do{var i=!1;if(t.steiner||!No(t,t.next)&&Yi(t.prev,t,t.next)!==0)t=t.next;else{if(Xi(t),t=e=t.prev,t===t.next)break;i=!0}}while(i||t!==e);return e}function Ts(t,e,i,n,o,s,l){if(t){if(!l&&s){var h=t,c=h;do c.z===null&&(c.z=La(c.x,c.y,n,o,s)),c.prevZ=c.prev,c=c.nextZ=c.next;while(c!==h);c.prevZ.nextZ=null,c.prevZ=null,h=c;var f,v,y,S,P=1;do{c=h;var N=h=null;for(v=0;c;){v++;var j=c;for(f=y=0;f<P&&(y++,j=j.nextZ,j);f++);for(S=P;0<y||0<S&&j;)y!==0&&(S===0||!j||c.z<=j.z)?(f=c,c=c.nextZ,y--):(f=j,j=j.nextZ,S--),N?N.nextZ=f:h=f,f.prevZ=N,N=f;c=j}N.nextZ=null,P*=2}while(1<v)}for(h=t;t.prev!==t.next;){if(c=t.prev,j=t.next,s)t:{N=t,S=n;var et=o,_t=s;if(v=N.prev,y=N,P=N.next,0<=Yi(v,y,P))N=!1;else{var mt=v.x>y.x?v.x>P.x?v.x:P.x:y.x>P.x?y.x:P.x,bt=v.y>y.y?v.y>P.y?v.y:P.y:y.y>P.y?y.y:P.y;for(f=La(v.x<y.x?v.x<P.x?v.x:P.x:y.x<P.x?y.x:P.x,v.y<y.y?v.y<P.y?v.y:P.y:y.y<P.y?y.y:P.y,S,et,_t),S=La(mt,bt,S,et,_t),et=N.nextZ;et&&et.z<=S;){if(et!==N.prev&&et!==N.next&&Ra(v.x,v.y,y.x,y.y,P.x,P.y,et.x,et.y)&&0<=Yi(et.prev,et,et.next)){N=!1;break t}et=et.nextZ}for(et=N.prevZ;et&&et.z>=f;){if(et!==N.prev&&et!==N.next&&Ra(v.x,v.y,y.x,y.y,P.x,P.y,et.x,et.y)&&0<=Yi(et.prev,et,et.next)){N=!1;break t}et=et.prevZ}N=!0}}else t:if(N=t,v=N.prev,y=N,P=N.next,0<=Yi(v,y,P))N=!1;else{for(f=N.next.next;f!==N.prev;){if(Ra(v.x,v.y,y.x,y.y,P.x,P.y,f.x,f.y)&&0<=Yi(f.prev,f,f.next)){N=!1;break t}f=f.next}N=!0}if(N)e.push(c.i/i),e.push(t.i/i),e.push(j.i/i),Xi(t),h=t=j.next;else if(t=j,t===h){if(!l)Ts(ws(t),e,i,n,o,s,1);else if(l===1){l=e,h=i,c=t;do j=c.prev,N=c.next.next,!No(j,N)&&ol(j,c,c.next,N)&&cr(j,N)&&cr(N,j)&&(l.push(j.i/h),l.push(c.i/h),l.push(N.i/h),Xi(c),Xi(c.next),c=t=N),c=c.next;while(c!==t);t=c,Ts(t,e,i,n,o,s,2)}else if(l===2)t:{l=t;do{for(h=l.next.next;h!==l.prev;){if(c=l.i!==h.i){if(c=l,j=h,N=c.next.i!==j.i&&c.prev.i!==j.i){e:{N=c;do{if(N.i!==c.i&&N.next.i!==c.i&&N.i!==j.i&&N.next.i!==j.i&&ol(N,N.next,c,j)){N=!0;break e}N=N.next}while(N!==c);N=!1}N=!N}if(N=N&&cr(c,j)&&cr(j,c)){N=c,v=!1,y=(c.x+j.x)/2,j=(c.y+j.y)/2;do N.y>j!=N.next.y>j&&N.next.y!==N.y&&y<(N.next.x-N.x)*(j-N.y)/(N.next.y-N.y)+N.x&&(v=!v),N=N.next;while(N!==c);N=v}c=N}if(c){t=Ks(l,h),l=ws(l,l.next),t=ws(t,t.next),Ts(l,e,i,n,o,s),Ts(t,e,i,n,o,s);break t}h=h.next}l=l.next}while(l!==t)}break}}}}function Il(t,e){return t.x-e.x}function Ol(t,e){var i=e,n=t.x,o=t.y,s=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var l=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(l<=n&&l>s){if(s=l,l===n){if(o===i.y)return i;if(o===i.next.y)return i.next}var h=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!h)return null;if(n===s)return h.prev;e=h,l=h.x;var c=h.y,f=1/0;for(i=h.next;i!==e;){if(n>=i.x&&i.x>=l&&n!==i.x&&Ra(o<c?n:s,o,l,c,o<c?s:n,o,i.x,i.y)){var v=Math.abs(o-i.y)/(n-i.x);(v<f||v===f&&i.x>h.x)&&cr(i,t)&&(h=i,f=v)}i=i.next}return h}function La(t,e,i,n,o){return t=32767*(t-i)*o,e=32767*(e-n)*o,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,(t|t<<1)&1431655765|((e|e<<1)&1431655765)<<1}function nr(t){var e=t,i=t;do e.x<i.x&&(i=e),e=e.next;while(e!==t);return i}function Ra(t,e,i,n,o,s,l,h){return 0<=(o-l)*(e-h)-(t-l)*(s-h)&&0<=(t-l)*(n-h)-(i-l)*(e-h)&&0<=(i-l)*(s-h)-(o-l)*(n-h)}function Yi(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function No(t,e){return t.x===e.x&&t.y===e.y}function ol(t,e,i,n){return No(t,e)&&No(i,n)||No(t,n)&&No(i,e)?!0:0<Yi(t,e,i)!=0<Yi(t,e,n)&&0<Yi(i,n,t)!=0<Yi(i,n,e)}function cr(t,e){return 0>Yi(t.prev,t,t.next)?0<=Yi(t,e,t.next)&&0<=Yi(t,t.prev,e):0>Yi(t,e,t.prev)||0>Yi(t,t.next,e)}function Ks(t,e){var i=new Nr(t.i,t.x,t.y),n=new Nr(e.i,e.x,e.y),o=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=o,o.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function Ia(t,e,i,n){return t=new Nr(t,e,i),n?(t.next=n.next,t.prev=n,n.next.prev=t,n.next=t):(t.prev=t,t.next=t),t}function Xi(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Nr(t,e,i){this.i=t,this.x=e,this.y=i,this.nextZ=this.prevZ=this.z=this.next=this.prev=null,this.steiner=!1}function Oa(t){var e=t.length;2<e&&t[e-1].equals(t[0])&&t.pop()}function Dl(t,e){for(var i=0;i<e.length;i++)t.push(e[i].x),t.push(e[i].y)}function Qr(t,e){W.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},this.fromBufferGeometry(new kr(t,e)),this.mergeVertices()}function kr(t,e){function i(c){function f(Xe,ri,Ci){return ri||console.error("THREE.ExtrudeGeometry: vec does not exist"),ri.clone().multiplyScalar(Ci).add(Xe)}function v(Xe,ri,Ci){var Ai=Xe.x-ri.x,ne=Xe.y-ri.y,ii=Ci.x-Xe.x,Ze=Ci.y-Xe.y,li=Ai*Ai+ne*ne;if(Math.abs(Ai*Ze-ne*ii)>Number.EPSILON){var dn=Math.sqrt(li),Tn=Math.sqrt(ii*ii+Ze*Ze);if(li=ri.x-ne/dn,ri=ri.y+Ai/dn,Ze=((Ci.x-Ze/Tn-li)*Ze-(Ci.y+ii/Tn-ri)*ii)/(Ai*Ze-ne*ii),ii=li+Ai*Ze-Xe.x,Ai=ri+ne*Ze-Xe.y,ne=ii*ii+Ai*Ai,2>=ne)return new p(ii,Ai);ne=Math.sqrt(ne/2)}else Xe=!1,Ai>Number.EPSILON?ii>Number.EPSILON&&(Xe=!0):Ai<-Number.EPSILON?ii<-Number.EPSILON&&(Xe=!0):Math.sign(ne)===Math.sign(Ze)&&(Xe=!0),Xe?(ii=-ne,ne=Math.sqrt(li)):(ii=Ai,Ai=ne,ne=Math.sqrt(li/2));return new p(ii/ne,Ai/ne)}function y(Xe,ri){for(Ae=Xe.length;0<=--Ae;){var Ci=Ae,Ai=Ae-1;0>Ai&&(Ai=Xe.length-1);var ne,ii=mt+2*it;for(ne=0;ne<ii;ne++){var Ze=Gi*ne,li=Gi*(ne+1),dn=ri+Ai+Ze,Tn=ri+Ai+li;li=ri+Ci+li,N(ri+Ci+Ze),N(dn),N(li),N(dn),N(Tn),N(li),Ze=o.length/3,Ze=ee.generateSideWallUV(n,o,Ze-6,Ze-3,Ze-2,Ze-1),j(Ze[0]),j(Ze[1]),j(Ze[3]),j(Ze[1]),j(Ze[2]),j(Ze[3])}}}function S(Xe,ri,Ci){et.push(Xe),et.push(ri),et.push(Ci)}function P(Xe,ri,Ci){N(Xe),N(ri),N(Ci),Xe=o.length/3,Xe=ee.generateTopUV(n,o,Xe-3,Xe-2,Xe-1),j(Xe[0]),j(Xe[1]),j(Xe[2])}function N(Xe){o.push(et[3*Xe]),o.push(et[3*Xe+1]),o.push(et[3*Xe+2])}function j(Xe){s.push(Xe.x),s.push(Xe.y)}var et=[],_t=e.curveSegments!==void 0?e.curveSegments:12,mt=e.steps!==void 0?e.steps:1,bt=e.depth!==void 0?e.depth:100,xt=e.bevelEnabled!==void 0?e.bevelEnabled:!0,Vt=e.bevelThickness!==void 0?e.bevelThickness:6,V=e.bevelSize!==void 0?e.bevelSize:Vt-2,it=e.bevelSegments!==void 0?e.bevelSegments:3,It=e.extrudePath,ee=e.UVGenerator!==void 0?e.UVGenerator:va;e.amount!==void 0&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),bt=e.amount);var $t=!1;if(It){var qt=It.getSpacedPoints(mt);$t=!0,xt=!1;var Te=It.computeFrenetFrames(mt,!1),pe=new m,Oe=new m,be=new m}xt||(V=Vt=it=0);var se;_t=c.extractPoints(_t),c=_t.shape;var je=_t.holes;if(!Xr.isClockWise(c)){c=c.reverse();var Ke=0;for(se=je.length;Ke<se;Ke++){var fi=je[Ke];Xr.isClockWise(fi)&&(je[Ke]=fi.reverse())}}var xn=Xr.triangulateShape(c,je),pn=c;for(Ke=0,se=je.length;Ke<se;Ke++)fi=je[Ke],c=c.concat(fi);var Wi,Gi=c.length,en,wn=xn.length;_t=[];var Ae=0,Qe=pn.length,Ut=Qe-1;for(Wi=Ae+1;Ae<Qe;Ae++,Ut++,Wi++)Ut===Qe&&(Ut=0),Wi===Qe&&(Wi=0),_t[Ae]=v(pn[Ae],pn[Ut],pn[Wi]);It=[];var Ye=_t.concat();for(Ke=0,se=je.length;Ke<se;Ke++){fi=je[Ke];var ei=[];for(Ae=0,Qe=fi.length,Ut=Qe-1,Wi=Ae+1;Ae<Qe;Ae++,Ut++,Wi++)Ut===Qe&&(Ut=0),Wi===Qe&&(Wi=0),ei[Ae]=v(fi[Ae],fi[Ut],fi[Wi]);It.push(ei),Ye=Ye.concat(ei)}for(Ut=0;Ut<it;Ut++){Qe=Ut/it;var Hi=Vt*Math.cos(Qe*Math.PI/2);for(Wi=V*Math.sin(Qe*Math.PI/2),Ae=0,Qe=pn.length;Ae<Qe;Ae++){var Ce=f(pn[Ae],_t[Ae],Wi);S(Ce.x,Ce.y,-Hi)}for(Ke=0,se=je.length;Ke<se;Ke++)for(fi=je[Ke],ei=It[Ke],Ae=0,Qe=fi.length;Ae<Qe;Ae++)Ce=f(fi[Ae],ei[Ae],Wi),S(Ce.x,Ce.y,-Hi)}for(Wi=V,Ae=0;Ae<Gi;Ae++)Ce=xt?f(c[Ae],Ye[Ae],Wi):c[Ae],$t?(Oe.copy(Te.normals[0]).multiplyScalar(Ce.x),pe.copy(Te.binormals[0]).multiplyScalar(Ce.y),be.copy(qt[0]).add(Oe).add(pe),S(be.x,be.y,be.z)):S(Ce.x,Ce.y,0);for(Qe=1;Qe<=mt;Qe++)for(Ae=0;Ae<Gi;Ae++)Ce=xt?f(c[Ae],Ye[Ae],Wi):c[Ae],$t?(Oe.copy(Te.normals[Qe]).multiplyScalar(Ce.x),pe.copy(Te.binormals[Qe]).multiplyScalar(Ce.y),be.copy(qt[Qe]).add(Oe).add(pe),S(be.x,be.y,be.z)):S(Ce.x,Ce.y,bt/mt*Qe);for(Ut=it-1;0<=Ut;Ut--){for(Qe=Ut/it,Hi=Vt*Math.cos(Qe*Math.PI/2),Wi=V*Math.sin(Qe*Math.PI/2),Ae=0,Qe=pn.length;Ae<Qe;Ae++)Ce=f(pn[Ae],_t[Ae],Wi),S(Ce.x,Ce.y,bt+Hi);for(Ke=0,se=je.length;Ke<se;Ke++)for(fi=je[Ke],ei=It[Ke],Ae=0,Qe=fi.length;Ae<Qe;Ae++)Ce=f(fi[Ae],ei[Ae],Wi),$t?S(Ce.x,Ce.y+qt[mt-1].y,qt[mt-1].x+Hi):S(Ce.x,Ce.y,bt+Hi)}(function(){var Xe=o.length/3;if(xt){var ri=0*Gi;for(Ae=0;Ae<wn;Ae++)en=xn[Ae],P(en[2]+ri,en[1]+ri,en[0]+ri);for(ri=Gi*(mt+2*it),Ae=0;Ae<wn;Ae++)en=xn[Ae],P(en[0]+ri,en[1]+ri,en[2]+ri)}else{for(Ae=0;Ae<wn;Ae++)en=xn[Ae],P(en[2],en[1],en[0]);for(Ae=0;Ae<wn;Ae++)en=xn[Ae],P(en[0]+Gi*mt,en[1]+Gi*mt,en[2]+Gi*mt)}n.addGroup(Xe,o.length/3-Xe,0)})(),function(){var Xe=o.length/3,ri=0;for(y(pn,ri),ri+=pn.length,Ke=0,se=je.length;Ke<se;Ke++)fi=je[Ke],y(fi,ri),ri+=fi.length;n.addGroup(Xe,o.length/3-Xe,1)}()}Ft.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];for(var n=this,o=[],s=[],l=0,h=t.length;l<h;l++)i(t[l]);this.addAttribute("position",new Ct(o,3)),this.addAttribute("uv",new Ct(s,2)),this.computeVertexNormals()}function zl(t,e,i){if(i.shapes=[],Array.isArray(t))for(var n=0,o=t.length;n<o;n++)i.shapes.push(t[n].uuid);else i.shapes.push(t.uuid);return e.extrudePath!==void 0&&(i.options.extrudePath=e.extrudePath.toJSON()),i}function Qs(t,e){W.call(this),this.type="TextGeometry",this.parameters={text:t,parameters:e},this.fromBufferGeometry(new ko(t,e)),this.mergeVertices()}function ko(t,e){e=e||{};var i=e.font;if(!i||!i.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new W;t=i.generateShapes(t,e.size),e.depth=e.height!==void 0?e.height:50,e.bevelThickness===void 0&&(e.bevelThickness=10),e.bevelSize===void 0&&(e.bevelSize=8),e.bevelEnabled===void 0&&(e.bevelEnabled=!1),kr.call(this,t,e),this.type="TextBufferGeometry"}function go(t,e,i,n,o,s,l){W.call(this),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:o,thetaStart:s,thetaLength:l},this.fromBufferGeometry(new fr(t,e,i,n,o,s,l)),this.mergeVertices()}function fr(t,e,i,n,o,s,l){Ft.call(this),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:o,thetaStart:s,thetaLength:l},t=t||1,e=Math.max(3,Math.floor(e)||8),i=Math.max(2,Math.floor(i)||6),n=n!==void 0?n:0,o=o!==void 0?o:2*Math.PI,s=s!==void 0?s:0,l=l!==void 0?l:Math.PI;var h=s+l,c,f,v=0,y=[],S=new m,P=new m,N=[],j=[],et=[],_t=[];for(f=0;f<=i;f++){var mt=[],bt=f/i;for(c=0;c<=e;c++){var xt=c/e;S.x=-t*Math.cos(n+xt*o)*Math.sin(s+bt*l),S.y=t*Math.cos(s+bt*l),S.z=t*Math.sin(n+xt*o)*Math.sin(s+bt*l),j.push(S.x,S.y,S.z),P.set(S.x,S.y,S.z).normalize(),et.push(P.x,P.y,P.z),_t.push(xt,1-bt),mt.push(v++)}y.push(mt)}for(f=0;f<i;f++)for(c=0;c<e;c++)t=y[f][c+1],n=y[f][c],o=y[f+1][c],l=y[f+1][c+1],(f!==0||0<s)&&N.push(t,n,l),(f!==i-1||h<Math.PI)&&N.push(n,o,l);this.setIndex(N),this.addAttribute("position",new Ct(j,3)),this.addAttribute("normal",new Ct(et,3)),this.addAttribute("uv",new Ct(_t,2))}function ta(t,e,i,n,o,s){W.call(this),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:o,thetaLength:s},this.fromBufferGeometry(new Uo(t,e,i,n,o,s)),this.mergeVertices()}function Uo(t,e,i,n,o,s){Ft.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:o,thetaLength:s},t=t||.5,e=e||1,o=o!==void 0?o:0,s=s!==void 0?s:2*Math.PI,i=i!==void 0?Math.max(3,i):8,n=n!==void 0?Math.max(1,n):1;var l=[],h=[],c=[],f=[],v=t,y=(e-t)/n,S=new m,P=new p,N,j;for(N=0;N<=n;N++){for(j=0;j<=i;j++)t=o+j/i*s,S.x=v*Math.cos(t),S.y=v*Math.sin(t),h.push(S.x,S.y,S.z),c.push(0,0,1),P.x=(S.x/e+1)/2,P.y=(S.y/e+1)/2,f.push(P.x,P.y);v+=y}for(N=0;N<n;N++)for(e=N*(i+1),j=0;j<i;j++)t=j+e,o=t+i+1,s=t+i+2,v=t+1,l.push(t,o,v),l.push(o,s,v);this.setIndex(l),this.addAttribute("position",new Ct(h,3)),this.addAttribute("normal",new Ct(c,3)),this.addAttribute("uv",new Ct(f,2))}function Ms(t,e,i,n){W.call(this),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},this.fromBufferGeometry(new vo(t,e,i,n)),this.mergeVertices()}function vo(t,e,i,n){Ft.call(this),this.type="LatheBufferGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},e=Math.floor(e)||12,i=i||0,n=n||2*Math.PI,n=pi.clamp(n,0,2*Math.PI);var o=[],s=[],l=[],h=1/e,c=new m,f=new p,v;for(v=0;v<=e;v++){var y=i+v*h*n,S=Math.sin(y),P=Math.cos(y);for(y=0;y<=t.length-1;y++)c.x=t[y].x*S,c.y=t[y].y,c.z=t[y].x*P,s.push(c.x,c.y,c.z),f.x=v/e,f.y=y/(t.length-1),l.push(f.x,f.y)}for(v=0;v<e;v++)for(y=0;y<t.length-1;y++)i=y+v*t.length,h=i+t.length,c=i+t.length+1,f=i+1,o.push(i,h,f),o.push(h,c,f);if(this.setIndex(o),this.addAttribute("position",new Ct(s,3)),this.addAttribute("uv",new Ct(l,2)),this.computeVertexNormals(),n===2*Math.PI)for(n=this.attributes.normal.array,o=new m,s=new m,l=new m,i=e*t.length*3,y=v=0;v<t.length;v++,y+=3)o.x=n[y+0],o.y=n[y+1],o.z=n[y+2],s.x=n[i+y+0],s.y=n[i+y+1],s.z=n[i+y+2],l.addVectors(o,s).normalize(),n[y+0]=n[i+y+0]=l.x,n[y+1]=n[i+y+1]=l.y,n[y+2]=n[i+y+2]=l.z}function to(t,e){W.call(this),this.type="ShapeGeometry",typeof e=="object"&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),e=e.curveSegments),this.parameters={shapes:t,curveSegments:e},this.fromBufferGeometry(new yo(t,e)),this.mergeVertices()}function yo(t,e){function i(v){var y,S=o.length/3;v=v.extractPoints(e);var P=v.shape,N=v.holes;if(Xr.isClockWise(P)===!1)for(P=P.reverse(),v=0,y=N.length;v<y;v++){var j=N[v];Xr.isClockWise(j)===!0&&(N[v]=j.reverse())}var et=Xr.triangulateShape(P,N);for(v=0,y=N.length;v<y;v++)j=N[v],P=P.concat(j);for(v=0,y=P.length;v<y;v++)j=P[v],o.push(j.x,j.y,0),s.push(0,0,1),l.push(j.x,j.y);for(v=0,y=et.length;v<y;v++)P=et[v],n.push(P[0]+S,P[1]+S,P[2]+S),c+=3}Ft.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:t,curveSegments:e},e=e||12;var n=[],o=[],s=[],l=[],h=0,c=0;if(Array.isArray(t)===!1)i(t);else for(var f=0;f<t.length;f++)i(t[f]),this.addGroup(h,c,f),h+=c,c=0;this.setIndex(n),this.addAttribute("position",new Ct(o,3)),this.addAttribute("normal",new Ct(s,3)),this.addAttribute("uv",new Ct(l,2))}function Bl(t,e){if(e.shapes=[],Array.isArray(t))for(var i=0,n=t.length;i<n;i++)e.shapes.push(t[i].uuid);else e.shapes.push(t.uuid);return e}function _o(t,e){Ft.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:e};var i=[];e=Math.cos(pi.DEG2RAD*(e!==void 0?e:1));var n=[0,0],o={},s=["a","b","c"];if(t.isBufferGeometry){var l=new W;l.fromBufferGeometry(t)}else l=t.clone();l.mergeVertices(),l.computeFaceNormals(),t=l.vertices,l=l.faces;for(var h=0,c=l.length;h<c;h++)for(var f=l[h],v=0;3>v;v++){var y=f[s[v]],S=f[s[(v+1)%3]];n[0]=Math.min(y,S),n[1]=Math.max(y,S),y=n[0]+","+n[1],o[y]===void 0?o[y]={index1:n[0],index2:n[1],face1:h,face2:void 0}:o[y].face2=h}for(y in o)n=o[y],(n.face2===void 0||l[n.face1].normal.dot(l[n.face2].normal)<=e)&&(s=t[n.index1],i.push(s.x,s.y,s.z),s=t[n.index2],i.push(s.x,s.y,s.z));this.addAttribute("position",new Ct(i,3))}function eo(t,e,i,n,o,s,l,h){W.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:o,openEnded:s,thetaStart:l,thetaLength:h},this.fromBufferGeometry(new io(t,e,i,n,o,s,l,h)),this.mergeVertices()}function io(t,e,i,n,o,s,l,h){function c(mt){var bt,xt=new p,Vt=new m,V=0,it=mt===!0?t:e,It=mt===!0?1:-1,ee=N;for(bt=1;bt<=n;bt++)y.push(0,et*It,0),S.push(0,It,0),P.push(.5,.5),N++;var $t=N;for(bt=0;bt<=n;bt++){var qt=bt/n*h+l,Te=Math.cos(qt);qt=Math.sin(qt),Vt.x=it*qt,Vt.y=et*It,Vt.z=it*Te,y.push(Vt.x,Vt.y,Vt.z),S.push(0,It,0),xt.x=.5*Te+.5,xt.y=.5*qt*It+.5,P.push(xt.x,xt.y),N++}for(bt=0;bt<n;bt++)xt=ee+bt,Vt=$t+bt,mt===!0?v.push(Vt,Vt+1,xt):v.push(Vt+1,Vt,xt),V+=3;f.addGroup(_t,V,mt===!0?1:2),_t+=V}Ft.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:o,openEnded:s,thetaStart:l,thetaLength:h};var f=this;t=t!==void 0?t:1,e=e!==void 0?e:1,i=i||1,n=Math.floor(n)||8,o=Math.floor(o)||1,s=s!==void 0?s:!1,l=l!==void 0?l:0,h=h!==void 0?h:2*Math.PI;var v=[],y=[],S=[],P=[],N=0,j=[],et=i/2,_t=0;(function(){var mt,bt,xt=new m,Vt=new m,V=0,it=(e-t)/i;for(bt=0;bt<=o;bt++){var It=[],ee=bt/o,$t=ee*(e-t)+t;for(mt=0;mt<=n;mt++){var qt=mt/n,Te=qt*h+l,pe=Math.sin(Te);Te=Math.cos(Te),Vt.x=$t*pe,Vt.y=-ee*i+et,Vt.z=$t*Te,y.push(Vt.x,Vt.y,Vt.z),xt.set(pe,it,Te).normalize(),S.push(xt.x,xt.y,xt.z),P.push(qt,1-ee),It.push(N++)}j.push(It)}for(mt=0;mt<n;mt++)for(bt=0;bt<o;bt++)xt=j[bt+1][mt],Vt=j[bt+1][mt+1],it=j[bt][mt+1],v.push(j[bt][mt],xt,it),v.push(xt,Vt,it),V+=6;f.addGroup(_t,V,0),_t+=V})(),s===!1&&(0<t&&c(!0),0<e&&c(!1)),this.setIndex(v),this.addAttribute("position",new Ct(y,3)),this.addAttribute("normal",new Ct(S,3)),this.addAttribute("uv",new Ct(P,2))}function Ss(t,e,i,n,o,s,l){eo.call(this,0,t,e,i,n,o,s,l),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:o,thetaStart:s,thetaLength:l}}function In(t,e,i,n,o,s,l){io.call(this,0,t,e,i,n,o,s,l),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:o,thetaStart:s,thetaLength:l}}function Fo(t,e,i,n){W.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},this.fromBufferGeometry(new Ur(t,e,i,n)),this.mergeVertices()}function Ur(t,e,i,n){Ft.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},t=t||1,e=e!==void 0?Math.max(3,e):8,i=i!==void 0?i:0,n=n!==void 0?n:2*Math.PI;var o=[],s=[],l=[],h=[],c,f=new m,v=new p;s.push(0,0,0),l.push(0,0,1),h.push(.5,.5);var y=0;for(c=3;y<=e;y++,c+=3){var S=i+y/e*n;f.x=t*Math.cos(S),f.y=t*Math.sin(S),s.push(f.x,f.y,f.z),l.push(0,0,1),v.x=(s[c]/t+1)/2,v.y=(s[c+1]/t+1)/2,h.push(v.x,v.y)}for(c=1;c<=e;c++)o.push(c,c+1,0);this.setIndex(o),this.addAttribute("position",new Ct(s,3)),this.addAttribute("normal",new Ct(l,3)),this.addAttribute("uv",new Ct(h,2))}function xo(t){Zt.call(this),this.type="ShadowMaterial",this.color=new A(0),this.transparent=!0,this.setValues(t)}function Go(t){ti.call(this,t),this.type="RawShaderMaterial"}function Fr(t){Zt.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new A(16777215),this.metalness=this.roughness=.5,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new A(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new p(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Ho(t){Fr.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoatRoughness=this.clearCoat=0,this.setValues(t)}function Er(t){Zt.call(this),this.type="MeshPhongMaterial",this.color=new A(16777215),this.specular=new A(1118481),this.shininess=30,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new A(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new p(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Vo(t){Er.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function jo(t){Zt.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new p(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.lights=this.fog=!1,this.setValues(t)}function pr(t){Zt.call(this),this.type="MeshLambertMaterial",this.color=new A(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new A(0),this.emissiveIntensity=1,this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Wo(t){if(Zt.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new A(16777215),this.bumpMap=this.map=this.matcap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new p(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.lights=this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t),this.matcap===null){t=document.createElement("canvas"),t.width=1,t.height=1;var e=t.getContext("2d");e.fillStyle="#fff",e.fillRect(0,0,1,1),this.matcap=new THREE.CanvasTexture(t)}}function Xo(t){zi.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}function Fn(t,e,i,n){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=n!==void 0?n:new e.constructor(i),this.sampleValues=e,this.valueSize=i}function ea(t,e,i,n){Fn.call(this,t,e,i,n),this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function dr(t,e,i,n){Fn.call(this,t,e,i,n)}function qo(t,e,i,n){Fn.call(this,t,e,i,n)}function On(t,e,i,n){if(t===void 0)throw Error("THREE.KeyframeTrack: track name is undefined");if(e===void 0||e.length===0)throw Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=Nn.convertArray(e,this.TimeBufferType),this.values=Nn.convertArray(i,this.ValueBufferType),this.setInterpolation(n||this.DefaultInterpolation)}function Da(t,e,i){On.call(this,t,e,i)}function za(t,e,i,n){On.call(this,t,e,i,n)}function br(t,e,i,n){On.call(this,t,e,i,n)}function qn(t,e,i,n){Fn.call(this,t,e,i,n)}function Es(t,e,i,n){On.call(this,t,e,i,n)}function Ba(t,e,i,n){On.call(this,t,e,i,n)}function bs(t,e,i,n){On.call(this,t,e,i,n)}function rr(t,e,i){this.name=t,this.tracks=i,this.duration=e!==void 0?e:-1,this.uuid=pi.generateUUID(),0>this.duration&&this.resetDuration()}function uh(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return br;case"vector":case"vector2":case"vector3":case"vector4":return bs;case"color":return za;case"quaternion":return Es;case"bool":case"boolean":return Da;case"string":return Ba}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}function ch(t){if(t.type===void 0)throw Error("THREE.KeyframeTrack: track type undefined, can not parse");var e=uh(t.type);if(t.times===void 0){var i=[],n=[];Nn.flattenJSON(t.keys,i,n,"value"),t.times=i,t.values=n}return e.parse!==void 0?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}function wo(t,e,i){var n=this,o=!1,s=0,l=0,h=void 0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=i,this.itemStart=function(c){l++,o===!1&&n.onStart!==void 0&&n.onStart(c,s,l),o=!0},this.itemEnd=function(c){s++,n.onProgress!==void 0&&n.onProgress(c,s,l),s===l&&(o=!1,n.onLoad!==void 0)&&n.onLoad()},this.itemError=function(c){n.onError!==void 0&&n.onError(c)},this.resolveURL=function(c){return h?h(c):c},this.setURLModifier=function(c){return h=c,this}}function At(t){this.manager=t!==void 0?t:Vn}function Qt(t){this.manager=t!==void 0?t:Vn}function Yt(t){this.manager=t!==void 0?t:Vn,this._parser=null}function Ue(t){this.manager=t!==void 0?t:Vn,this._parser=null}function ai(t){this.manager=t!==void 0?t:Vn}function Bi(t){this.manager=t!==void 0?t:Vn}function ln(t){this.manager=t!==void 0?t:Vn}function Ee(){this.type="Curve",this.arcLengthDivisions=200}function Gn(t,e,i,n,o,s,l,h){Ee.call(this),this.type="EllipseCurve",this.aX=t||0,this.aY=e||0,this.xRadius=i||1,this.yRadius=n||1,this.aStartAngle=o||0,this.aEndAngle=s||2*Math.PI,this.aClockwise=l||!1,this.aRotation=h||0}function As(t,e,i,n,o,s){Gn.call(this,t,e,i,i,n,o,s),this.type="ArcCurve"}function Yn(){var t=0,e=0,i=0,n=0;return{initCatmullRom:function(o,s,l,h,c){o=c*(l-o),h=c*(h-s),t=s,e=o,i=-3*s+3*l-2*o-h,n=2*s-2*l+o+h},initNonuniformCatmullRom:function(o,s,l,h,c,f,v){o=((s-o)/c-(l-o)/(c+f)+(l-s)/f)*f,h=((l-s)/f-(h-s)/(f+v)+(h-l)/v)*f,t=s,e=o,i=-3*s+3*l-2*o-h,n=2*s-2*l+o+h},calc:function(o){var s=o*o;return t+e*o+i*s+n*s*o}}}function Sn(t,e,i,n){Ee.call(this),this.type="CatmullRomCurve3",this.points=t||[],this.closed=e||!1,this.curveType=i||"centripetal",this.tension=n||.5}function Nl(t,e,i,n,o){e=.5*(n-e),o=.5*(o-i);var s=t*t;return(2*i-2*n+e+o)*t*s+(-3*i+3*n-2*e-o)*s+e*t+i}function Gr(t,e,i,n){var o=1-t;return o*o*e+2*(1-t)*t*i+t*t*n}function To(t,e,i,n,o){var s=1-t,l=1-t;return s*s*s*e+3*l*l*t*i+3*(1-t)*t*t*n+t*t*t*o}function Zn(t,e,i,n){Ee.call(this),this.type="CubicBezierCurve",this.v0=t||new p,this.v1=e||new p,this.v2=i||new p,this.v3=n||new p}function Ti(t,e,i,n){Ee.call(this),this.type="CubicBezierCurve3",this.v0=t||new m,this.v1=e||new m,this.v2=i||new m,this.v3=n||new m}function Jn(t,e){Ee.call(this),this.type="LineCurve",this.v1=t||new p,this.v2=e||new p}function mr(t,e){Ee.call(this),this.type="LineCurve3",this.v1=t||new m,this.v2=e||new m}function $n(t,e,i){Ee.call(this),this.type="QuadraticBezierCurve",this.v0=t||new p,this.v1=e||new p,this.v2=i||new p}function Hr(t,e,i){Ee.call(this),this.type="QuadraticBezierCurve3",this.v0=t||new m,this.v1=e||new m,this.v2=i||new m}function Ar(t){Ee.call(this),this.type="SplineCurve",this.points=t||[]}function no(){Ee.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function Kn(t){no.call(this),this.type="Path",this.currentPoint=new p,t&&this.setFromPoints(t)}function Hn(t){Kn.call(this,t),this.uuid=pi.generateUUID(),this.type="Shape",this.holes=[]}function $i(t,e){z.call(this),this.type="Light",this.color=new A(t),this.intensity=e!==void 0?e:1,this.receiveShadow=void 0}function ia(t,e,i){$i.call(this,t,i),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(z.DefaultUp),this.updateMatrix(),this.groundColor=new A(e)}function Vr(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new p(512,512),this.map=null,this.matrix=new J}function na(){Vr.call(this,new ye(50,1,.5,500))}function ra(t,e,i,n,o,s){$i.call(this,t,e),this.type="SpotLight",this.position.copy(z.DefaultUp),this.updateMatrix(),this.target=new z,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(l){this.intensity=l/Math.PI}}),this.distance=i!==void 0?i:0,this.angle=n!==void 0?n:Math.PI/3,this.penumbra=o!==void 0?o:0,this.decay=s!==void 0?s:1,this.shadow=new na}function Yo(t,e,i,n){$i.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(o){this.intensity=o/(4*Math.PI)}}),this.distance=i!==void 0?i:0,this.decay=n!==void 0?n:1,this.shadow=new Vr(new ye(90,1,.5,500))}function Cs(t,e,i,n,o,s){Be.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t!==void 0?t:-1,this.right=e!==void 0?e:1,this.top=i!==void 0?i:1,this.bottom=n!==void 0?n:-1,this.near=o!==void 0?o:.1,this.far=s!==void 0?s:2e3,this.updateProjectionMatrix()}function Mo(){Vr.call(this,new Cs(-5,5,5,-5,.5,500))}function jr(t,e){$i.call(this,t,e),this.type="DirectionalLight",this.position.copy(z.DefaultUp),this.updateMatrix(),this.target=new z,this.shadow=new Mo}function Zo(t,e){$i.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function Na(t,e,i,n){$i.call(this,t,e),this.type="RectAreaLight",this.width=i!==void 0?i:10,this.height=n!==void 0?n:10}function ka(t){this.manager=t!==void 0?t:Vn,this.textures={}}function sl(t){this.manager=t!==void 0?t:Vn}function ro(){}function Jo(t){typeof t=="boolean"&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=t!==void 0?t:Vn,this.withCredentials=!1}function oa(t){this.manager=t!==void 0?t:Vn,this.resourcePath=""}function al(t){typeof createImageBitmap>"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.manager=t!==void 0?t:Vn,this.options=void 0}function Ua(){this.type="ShapePath",this.color=new A,this.subPaths=[],this.currentPath=null}function ll(t){this.type="Font",this.data=t}function kl(t){this.manager=t!==void 0?t:Vn}function cn(t){this.manager=t!==void 0?t:Vn}function Dn(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new ye,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new ye,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function sa(t,e,i,n){z.call(this),this.type="CubeCamera";var o=new ye(90,1,t,e);o.up.set(0,-1,0),o.lookAt(new m(1,0,0)),this.add(o);var s=new ye(90,1,t,e);s.up.set(0,-1,0),s.lookAt(new m(-1,0,0)),this.add(s);var l=new ye(90,1,t,e);l.up.set(0,0,1),l.lookAt(new m(0,1,0)),this.add(l);var h=new ye(90,1,t,e);h.up.set(0,0,-1),h.lookAt(new m(0,-1,0)),this.add(h);var c=new ye(90,1,t,e);c.up.set(0,-1,0),c.lookAt(new m(0,0,1)),this.add(c);var f=new ye(90,1,t,e);f.up.set(0,-1,0),f.lookAt(new m(0,0,-1)),this.add(f),n=n||{format:1022,magFilter:1006,minFilter:1006},this.renderTarget=new Y(i,i,n),this.renderTarget.texture.name="CubeCamera",this.update=function(v,y){this.parent===null&&this.updateMatrixWorld();var S=this.renderTarget,P=S.texture.generateMipmaps;S.texture.generateMipmaps=!1,S.activeCubeFace=0,v.render(y,o,S),S.activeCubeFace=1,v.render(y,s,S),S.activeCubeFace=2,v.render(y,l,S),S.activeCubeFace=3,v.render(y,h,S),S.activeCubeFace=4,v.render(y,c,S),S.texture.generateMipmaps=P,S.activeCubeFace=5,v.render(y,f,S),v.setRenderTarget(null)},this.clear=function(v,y,S,P){for(var N=this.renderTarget,j=0;6>j;j++)N.activeCubeFace=j,v.setRenderTarget(N),v.clear(y,S,P);v.setRenderTarget(null)}}function hl(t){this.autoStart=t!==void 0?t:!0,this.elapsedTime=this.oldTime=this.startTime=0,this.running=!1}function Fa(){z.call(this),this.type="AudioListener",this.context=_l.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0}function Ps(t){z.call(this),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.offset=this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function aa(t){Ps.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function $o(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e!==void 0?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function la(t,e,i){switch(this.binding=t,this.valueSize=i,t=Float64Array,e){case"quaternion":e=this._slerp;break;case"string":case"bool":t=Array,e=this._select;break;default:e=this._lerp}this.buffer=new t(4*i),this._mixBufferRegion=e,this.referenceCount=this.useCount=this.cumulativeWeight=0}function Ko(t,e,i){i=i||yn.parseTrackName(e),this._targetGroup=t,this._bindings=t.subscribe_(e,i)}function yn(t,e,i){this.path=e,this.parsedPath=i||yn.parseTrackName(e),this.node=yn.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function Ls(){this.uuid=pi.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;for(var e=0,i=arguments.length;e!==i;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var n=this;this.stats={objects:{get total(){return n._objects.length},get inUse(){return this.total-n.nCachedObjects_}},get bindingsPerObject(){return n._bindings.length}}}function ha(t,e,i){this._mixer=t,this._clip=e,this._localRoot=i||null,t=e.tracks,e=t.length,i=Array(e);for(var n={endingStart:2400,endingEnd:2400},o=0;o!==e;++o){var s=t[o].createInterpolant(null);i[o]=s,s.settings=n}this._interpolantSettings=n,this._interpolants=i,this._propertyBindings=Array(e),this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this._effectiveWeight=this.weight=this._effectiveTimeScale=this.timeScale=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function So(t){this._root=t,this._initMemoryManager(),this.time=this._accuIndex=0,this.timeScale=1}function Ga(t,e){typeof t=="string"&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=e),this.value=t}function ul(){Ft.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function cl(t,e,i){Oi.call(this,t,e),this.meshPerAttribute=i||1}function fl(t,e,i,n){typeof i=="number"&&(n=i,i=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),ht.call(this,t,e,i),this.meshPerAttribute=n||1}function Ul(t,e,i,n){this.ray=new ki(t,e),this.near=i||0,this.far=n||1/0,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function ua(t,e){return t.distance-e.distance}function Qo(t,e,i,n){if(t.visible!==!1&&(t.raycast(e,i),n===!0)){t=t.children,n=0;for(var o=t.length;n<o;n++)Qo(t[n],e,i,!0)}}function pl(t,e,i){return this.radius=t!==void 0?t:1,this.phi=e!==void 0?e:0,this.theta=i!==void 0?i:0,this}function Q(t,e,i){return this.radius=t!==void 0?t:1,this.theta=e!==void 0?e:0,this.y=i!==void 0?i:0,this}function Eo(t,e){this.min=t!==void 0?t:new p(1/0,1/0),this.max=e!==void 0?e:new p(-1/0,-1/0)}function Rs(t,e){this.start=t!==void 0?t:new m,this.end=e!==void 0?e:new m}function Bn(t){z.call(this),this.material=t,this.render=function(){}}function _i(t,e,i,n){this.object=t,this.size=e!==void 0?e:1,t=i!==void 0?i:16711680,n=n!==void 0?n:1,e=0,(i=this.object.geometry)&&i.isGeometry?e=3*i.faces.length:i&&i.isBufferGeometry&&(e=i.attributes.normal.count),i=new Ft,e=new Ct(6*e,3),i.addAttribute("position",e),gi.call(this,i,new zi({color:t,linewidth:n})),this.matrixAutoUpdate=!1,this.update()}function Is(t,e){z.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new Ft,e=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(var i=0,n=1;32>i;i++,n++){var o=i/32*Math.PI*2,s=n/32*Math.PI*2;e.push(Math.cos(o),Math.sin(o),1,Math.cos(s),Math.sin(s),1)}t.addAttribute("position",new Ct(e,3)),e=new zi({fog:!1}),this.cone=new gi(t,e),this.add(this.cone),this.update()}function Fl(t){var e=[];t&&t.isBone&&e.push(t);for(var i=0;i<t.children.length;i++)e.push.apply(e,Fl(t.children[i]));return e}function Os(t){for(var e=Fl(t),i=new Ft,n=[],o=[],s=new A(0,0,1),l=new A(0,1,0),h=0;h<e.length;h++){var c=e[h];c.parent&&c.parent.isBone&&(n.push(0,0,0),n.push(0,0,0),o.push(s.r,s.g,s.b),o.push(l.r,l.g,l.b))}i.addAttribute("position",new Ct(n,3)),i.addAttribute("color",new Ct(o,3)),n=new zi({vertexColors:2,depthTest:!1,depthWrite:!1,transparent:!0}),gi.call(this,i,n),this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}function gr(t,e,i){this.light=t,this.light.updateMatrixWorld(),this.color=i,t=new fr(e,4,2),e=new Ge({wireframe:!0,fog:!1}),di.call(this,t,e),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}function Ds(t,e){z.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new zi({fog:!1}),e=new Ft,e.addAttribute("position",new ht(new Float32Array(15),3)),this.line=new Vi(e,t),this.add(this.line),this.update()}function zs(t,e,i){z.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,t=new Do(e),t.rotateY(.5*Math.PI),this.material=new Ge({wireframe:!0,fog:!1}),this.color===void 0&&(this.material.vertexColors=2),e=t.getAttribute("position"),e=new Float32Array(3*e.count),t.addAttribute("color",new ht(e,3)),this.add(new di(t,this.material)),this.update()}function ca(t,e,i,n){t=t||10,e=e||10,i=new A(i!==void 0?i:4473924),n=new A(n!==void 0?n:8947848);var o=e/2,s=t/e,l=t/2;t=[];for(var h=[],c=0,f=0,v=-l;c<=e;c++,v+=s){t.push(-l,0,v,l,0,v),t.push(v,0,-l,v,0,l);var y=c===o?i:n;y.toArray(h,f),f+=3,y.toArray(h,f),f+=3,y.toArray(h,f),f+=3,y.toArray(h,f),f+=3}e=new Ft,e.addAttribute("position",new Ct(t,3)),e.addAttribute("color",new Ct(h,3)),i=new zi({vertexColors:2}),gi.call(this,e,i)}function Ha(t,e,i,n,o,s){t=t||10,e=e||16,i=i||8,n=n||64,o=new A(o!==void 0?o:4473924),s=new A(s!==void 0?s:8947848);var l=[],h=[],c;for(c=0;c<=e;c++){var f=c/e*2*Math.PI,v=Math.sin(f)*t;f=Math.cos(f)*t,l.push(0,0,0),l.push(v,0,f);var y=c&1?o:s;h.push(y.r,y.g,y.b),h.push(y.r,y.g,y.b)}for(c=0;c<=i;c++){y=c&1?o:s;var S=t-t/i*c;for(e=0;e<n;e++)f=e/n*2*Math.PI,v=Math.sin(f)*S,f=Math.cos(f)*S,l.push(v,0,f),h.push(y.r,y.g,y.b),f=(e+1)/n*2*Math.PI,v=Math.sin(f)*S,f=Math.cos(f)*S,l.push(v,0,f),h.push(y.r,y.g,y.b)}t=new Ft,t.addAttribute("position",new Ct(l,3)),t.addAttribute("color",new Ct(h,3)),l=new zi({vertexColors:2}),gi.call(this,t,l)}function fa(t,e,i,n){this.object=t,this.size=e!==void 0?e:1,t=i!==void 0?i:16776960,n=n!==void 0?n:1,e=0,(i=this.object.geometry)&&i.isGeometry?e=i.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead."),i=new Ft,e=new Ct(6*e,3),i.addAttribute("position",e),gi.call(this,i,new zi({color:t,linewidth:n})),this.matrixAutoUpdate=!1,this.update()}function Qn(t,e,i){z.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,e===void 0&&(e=1),t=new Ft,t.addAttribute("position",new Ct([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3)),e=new zi({fog:!1}),this.lightPlane=new Vi(t,e),this.add(this.lightPlane),t=new Ft,t.addAttribute("position",new Ct([0,0,0,0,0,1],3)),this.targetLine=new Vi(t,e),this.add(this.targetLine),this.update()}function pa(t){function e(P,N,j){i(P,j),i(N,j)}function i(P,N){s.push(0,0,0),l.push(N.r,N.g,N.b),h[P]===void 0&&(h[P]=[]),h[P].push(s.length/3-1)}var n=new Ft,o=new zi({color:16777215,vertexColors:1}),s=[],l=[],h={},c=new A(16755200),f=new A(16711680),v=new A(43775),y=new A(16777215),S=new A(3355443);e("n1","n2",c),e("n2","n4",c),e("n4","n3",c),e("n3","n1",c),e("f1","f2",c),e("f2","f4",c),e("f4","f3",c),e("f3","f1",c),e("n1","f1",c),e("n2","f2",c),e("n3","f3",c),e("n4","f4",c),e("p","n1",f),e("p","n2",f),e("p","n3",f),e("p","n4",f),e("u1","u2",v),e("u2","u3",v),e("u3","u1",v),e("c","t",y),e("p","c",S),e("cn1","cn2",S),e("cn3","cn4",S),e("cf1","cf2",S),e("cf3","cf4",S),n.addAttribute("position",new Ct(s,3)),n.addAttribute("color",new Ct(l,3)),gi.call(this,n,o),this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=h,this.update()}function oo(t,e){this.object=t,e===void 0&&(e=16776960),t=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new Float32Array(24),n=new Ft;n.setIndex(new ht(t,1)),n.addAttribute("position",new ht(i,3)),gi.call(this,n,new zi({color:e})),this.matrixAutoUpdate=!1,this.update()}function da(t,e){this.type="Box3Helper",this.box=t,t=e!==void 0?e:16776960,e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new Ft;i.setIndex(new ht(e,1)),i.addAttribute("position",new Ct([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),gi.call(this,i,new zi({color:t})),this.geometry.computeBoundingSphere()}function ma(t,e,i){this.type="PlaneHelper",this.plane=t,this.size=e===void 0?1:e,t=i!==void 0?i:16776960,e=new Ft,e.addAttribute("position",new Ct([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3)),e.computeBoundingSphere(),Vi.call(this,e,new zi({color:t})),e=new Ft,e.addAttribute("position",new Ct([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),e.computeBoundingSphere(),this.add(new di(e,new Ge({color:t,opacity:.2,transparent:!0,depthWrite:!1})))}function so(t,e,i,n,o,s){z.call(this),t===void 0&&(t=new THREE.Vector3(0,0,1)),e===void 0&&(e=new THREE.Vector3(0,0,0)),i===void 0&&(i=1),n===void 0&&(n=16776960),o===void 0&&(o=.2*i),s===void 0&&(s=.2*o),Ya===void 0&&(Ya=new Ft,Ya.addAttribute("position",new Ct([0,0,0,0,1,0],3)),_a=new io(0,.5,1,5,1),_a.translate(0,-.5,0)),this.position.copy(e),this.line=new Vi(Ya,new zi({color:n})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new di(_a,new Ge({color:n})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(i,o,s)}function or(t){t=t||1;var e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t];t=new Ft,t.addAttribute("position",new Ct(e,3)),t.addAttribute("color",new Ct([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),e=new zi({vertexColors:2}),gi.call(this,t,e)}function Gl(t){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),Sn.call(this,t),this.type="catmullrom",this.closed=!0}function Hl(t){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),Sn.call(this,t),this.type="catmullrom"}function dl(t){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),Sn.call(this,t),this.type="catmullrom"}Number.EPSILON===void 0&&(Number.EPSILON=Math.pow(2,-52)),Number.isInteger===void 0&&(Number.isInteger=function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}),Math.sign===void 0&&(Math.sign=function(t){return 0>t?-1:0<t?1:+t}),!("name"in Function.prototype)&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),Object.assign===void 0&&function(){Object.assign=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!=null)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}}(),Object.assign($.prototype,{addEventListener:function(t,e){this._listeners===void 0&&(this._listeners={});var i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(e)===-1&&i[t].push(e)},hasEventListener:function(t,e){if(this._listeners===void 0)return!1;var i=this._listeners;return i[t]!==void 0&&i[t].indexOf(e)!==-1},removeEventListener:function(t,e){this._listeners!==void 0&&(t=this._listeners[t],t!==void 0&&(e=t.indexOf(e),e!==-1&&t.splice(e,1)))},dispatchEvent:function(t){if(this._listeners!==void 0){var e=this._listeners[t.type];if(e!==void 0){t.target=this,e=e.slice(0);for(var i=0,n=e.length;i<n;i++)e[i].call(this,t)}}}});var pi={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){for(var t=[],e=0;256>e;e++)t[e]=(16>e?"0":"")+e.toString(16);return function(){var i=4294967295*Math.random()|0,n=4294967295*Math.random()|0,o=4294967295*Math.random()|0,s=4294967295*Math.random()|0;return(t[i&255]+t[i>>8&255]+t[i>>16&255]+t[i>>24&255]+"-"+t[n&255]+t[n>>8&255]+"-"+t[n>>16&15|64]+t[n>>24&255]+"-"+t[o&63|128]+t[o>>8&255]+"-"+t[o>>16&255]+t[o>>24&255]+t[s&255]+t[s>>8&255]+t[s>>16&255]+t[s>>24&255]).toUpperCase()}}(),clamp:function(t,e,i){return Math.max(e,Math.min(i,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,i,n,o){return n+(t-e)*(o-n)/(i-e)},lerp:function(t,e,i){return(1-i)*t+i*e},smoothstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e),t*t*(3-2*t))},smootherstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e),t*t*t*(t*(6*t-15)+10))},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*pi.DEG2RAD},radToDeg:function(t){return t*pi.RAD2DEG},isPowerOfTwo:function(t){return(t&t-1)===0&&t!==0},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}};Object.defineProperties(p.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(p.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,i=this.y;return t=t.elements,this.x=t[0]*e+t[3]*i+t[6],this.y=t[1]*e+t[4]*i+t[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(){var t=new p,e=new p;return function(i,n){return t.set(i,i),e.set(n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return 0>t&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x;return t=this.y-t.y,e*e+t*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var i=Math.cos(e);e=Math.sin(e);var n=this.x-t.x,o=this.y-t.y;return this.x=n*i-o*e+t.x,this.y=n*e+o*i+t.y,this}}),Object.assign(J.prototype,{isMatrix4:!0,set:function(t,e,i,n,o,s,l,h,c,f,v,y,S,P,N,j){var et=this.elements;return et[0]=t,et[4]=e,et[8]=i,et[12]=n,et[1]=o,et[5]=s,et[9]=l,et[13]=h,et[2]=c,et[6]=f,et[10]=v,et[14]=y,et[3]=S,et[7]=P,et[11]=N,et[15]=j,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return new J().fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},copyPosition:function(t){var e=this.elements;return t=t.elements,e[12]=t[12],e[13]=t[13],e[14]=t[14],this},extractBasis:function(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this},extractRotation:function(){var t=new m;return function(e){var i=this.elements,n=e.elements,o=1/t.setFromMatrixColumn(e,0).length(),s=1/t.setFromMatrixColumn(e,1).length();return e=1/t.setFromMatrixColumn(e,2).length(),i[0]=n[0]*o,i[1]=n[1]*o,i[2]=n[2]*o,i[3]=0,i[4]=n[4]*s,i[5]=n[5]*s,i[6]=n[6]*s,i[7]=0,i[8]=n[8]*e,i[9]=n[9]*e,i[10]=n[10]*e,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,this}}(),makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,i=t.x,n=t.y,o=t.z,s=Math.cos(i);i=Math.sin(i);var l=Math.cos(n);n=Math.sin(n);var h=Math.cos(o);if(o=Math.sin(o),t.order==="XYZ"){t=s*h;var c=s*o,f=i*h,v=i*o;e[0]=l*h,e[4]=-l*o,e[8]=n,e[1]=c+f*n,e[5]=t-v*n,e[9]=-i*l,e[2]=v-t*n,e[6]=f+c*n,e[10]=s*l}else t.order==="YXZ"?(t=l*h,c=l*o,f=n*h,v=n*o,e[0]=t+v*i,e[4]=f*i-c,e[8]=s*n,e[1]=s*o,e[5]=s*h,e[9]=-i,e[2]=c*i-f,e[6]=v+t*i,e[10]=s*l):t.order==="ZXY"?(t=l*h,c=l*o,f=n*h,v=n*o,e[0]=t-v*i,e[4]=-s*o,e[8]=f+c*i,e[1]=c+f*i,e[5]=s*h,e[9]=v-t*i,e[2]=-s*n,e[6]=i,e[10]=s*l):t.order==="ZYX"?(t=s*h,c=s*o,f=i*h,v=i*o,e[0]=l*h,e[4]=f*n-c,e[8]=t*n+v,e[1]=l*o,e[5]=v*n+t,e[9]=c*n-f,e[2]=-n,e[6]=i*l,e[10]=s*l):t.order==="YZX"?(t=s*l,c=s*n,f=i*l,v=i*n,e[0]=l*h,e[4]=v-t*o,e[8]=f*o+c,e[1]=o,e[5]=s*h,e[9]=-i*h,e[2]=-n*h,e[6]=c*o+f,e[10]=t-v*o):t.order==="XZY"&&(t=s*l,c=s*n,f=i*l,v=i*n,e[0]=l*h,e[4]=-o,e[8]=n*h,e[1]=t*o+v,e[5]=s*h,e[9]=c*o-f,e[2]=f*o-c,e[6]=i*h,e[10]=v*o+t);return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(){var t=new m(0,0,0),e=new m(1,1,1);return function(i){return this.compose(t,i,e)}}(),lookAt:function(){var t=new m,e=new m,i=new m;return function(n,o,s){var l=this.elements;return i.subVectors(n,o),i.lengthSq()===0&&(i.z=1),i.normalize(),t.crossVectors(s,i),t.lengthSq()===0&&(Math.abs(s.z)===1?i.x+=1e-4:i.z+=1e-4,i.normalize(),t.crossVectors(s,i)),t.normalize(),e.crossVectors(i,t),l[0]=t.x,l[4]=e.x,l[8]=i.x,l[1]=t.y,l[5]=e.y,l[9]=i.y,l[2]=t.z,l[6]=e.z,l[10]=i.z,this}}(),multiply:function(t,e){return e!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.elements,n=e.elements;e=this.elements,t=i[0];var o=i[4],s=i[8],l=i[12],h=i[1],c=i[5],f=i[9],v=i[13],y=i[2],S=i[6],P=i[10],N=i[14],j=i[3],et=i[7],_t=i[11];i=i[15];var mt=n[0],bt=n[4],xt=n[8],Vt=n[12],V=n[1],it=n[5],It=n[9],ee=n[13],$t=n[2],qt=n[6],Te=n[10],pe=n[14],Oe=n[3],be=n[7],se=n[11];return n=n[15],e[0]=t*mt+o*V+s*$t+l*Oe,e[4]=t*bt+o*it+s*qt+l*be,e[8]=t*xt+o*It+s*Te+l*se,e[12]=t*Vt+o*ee+s*pe+l*n,e[1]=h*mt+c*V+f*$t+v*Oe,e[5]=h*bt+c*it+f*qt+v*be,e[9]=h*xt+c*It+f*Te+v*se,e[13]=h*Vt+c*ee+f*pe+v*n,e[2]=y*mt+S*V+P*$t+N*Oe,e[6]=y*bt+S*it+P*qt+N*be,e[10]=y*xt+S*It+P*Te+N*se,e[14]=y*Vt+S*ee+P*pe+N*n,e[3]=j*mt+et*V+_t*$t+i*Oe,e[7]=j*bt+et*it+_t*qt+i*be,e[11]=j*xt+et*It+_t*Te+i*se,e[15]=j*Vt+et*ee+_t*pe+i*n,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t=new m;return function(e){for(var i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.applyMatrix4(this),e.setXYZ(i,t.x,t.y,t.z);return e}}(),determinant:function(){var t=this.elements,e=t[0],i=t[4],n=t[8],o=t[12],s=t[1],l=t[5],h=t[9],c=t[13],f=t[2],v=t[6],y=t[10],S=t[14];return t[3]*(+o*h*v-n*c*v-o*l*y+i*c*y+n*l*S-i*h*S)+t[7]*(+e*h*S-e*c*y+o*s*y-n*s*S+n*c*f-o*h*f)+t[11]*(+e*c*v-e*l*S-o*s*v+i*s*S+o*l*f-i*c*f)+t[15]*(-n*l*f-e*h*v+e*l*y+n*s*v-i*s*y+i*h*f)},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},setPosition:function(t){var e=this.elements;return e[12]=t.x,e[13]=t.y,e[14]=t.z,this},getInverse:function(t,e){var i=this.elements,n=t.elements;t=n[0];var o=n[1],s=n[2],l=n[3],h=n[4],c=n[5],f=n[6],v=n[7],y=n[8],S=n[9],P=n[10],N=n[11],j=n[12],et=n[13],_t=n[14];n=n[15];var mt=S*_t*v-et*P*v+et*f*N-c*_t*N-S*f*n+c*P*n,bt=j*P*v-y*_t*v-j*f*N+h*_t*N+y*f*n-h*P*n,xt=y*et*v-j*S*v+j*c*N-h*et*N-y*c*n+h*S*n,Vt=j*S*f-y*et*f-j*c*P+h*et*P+y*c*_t-h*S*_t,V=t*mt+o*bt+s*xt+l*Vt;if(V===0){if(e===!0)throw Error("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/V,i[0]=mt*e,i[1]=(et*P*l-S*_t*l-et*s*N+o*_t*N+S*s*n-o*P*n)*e,i[2]=(c*_t*l-et*f*l+et*s*v-o*_t*v-c*s*n+o*f*n)*e,i[3]=(S*f*l-c*P*l-S*s*v+o*P*v+c*s*N-o*f*N)*e,i[4]=bt*e,i[5]=(y*_t*l-j*P*l+j*s*N-t*_t*N-y*s*n+t*P*n)*e,i[6]=(j*f*l-h*_t*l-j*s*v+t*_t*v+h*s*n-t*f*n)*e,i[7]=(h*P*l-y*f*l+y*s*v-t*P*v-h*s*N+t*f*N)*e,i[8]=xt*e,i[9]=(j*S*l-y*et*l-j*o*N+t*et*N+y*o*n-t*S*n)*e,i[10]=(h*et*l-j*c*l+j*o*v-t*et*v-h*o*n+t*c*n)*e,i[11]=(y*c*l-h*S*l-y*o*v+t*S*v+h*o*N-t*c*N)*e,i[12]=Vt*e,i[13]=(y*et*s-j*S*s+j*o*P-t*et*P-y*o*_t+t*S*_t)*e,i[14]=(j*c*s-h*et*s-j*o*f+t*et*f+h*o*_t-t*c*_t)*e,i[15]=(h*S*s-y*c*s+y*o*f-t*S*f-h*o*P+t*c*P)*e,this},scale:function(t){var e=this.elements,i=t.x,n=t.y;return t=t.z,e[0]*=i,e[4]*=n,e[8]*=t,e[1]*=i,e[5]*=n,e[9]*=t,e[2]*=i,e[6]*=n,e[10]*=t,e[3]*=i,e[7]*=n,e[11]*=t,this},getMaxScaleOnAxis:function(){var t=this.elements;return Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1]+t[2]*t[2],t[4]*t[4]+t[5]*t[5]+t[6]*t[6],t[8]*t[8]+t[9]*t[9]+t[10]*t[10]))},makeTranslation:function(t,e,i){return this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var i=Math.cos(e);e=Math.sin(e);var n=1-i,o=t.x,s=t.y;t=t.z;var l=n*o,h=n*s;return this.set(l*o+i,l*s-e*t,l*t+e*s,0,l*s+e*t,h*s+i,h*t-e*o,0,l*t-e*s,h*t+e*o,n*t*t+i,0,0,0,0,1),this},makeScale:function(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this},makeShear:function(t,e,i){return this.set(1,e,i,0,t,1,i,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,i){var n=this.elements,o=e._x,s=e._y,l=e._z,h=e._w,c=o+o,f=s+s,v=l+l;e=o*c;var y=o*f;o*=v;var S=s*f;s*=v,l*=v,c*=h,f*=h,h*=v,v=i.x;var P=i.y;return i=i.z,n[0]=(1-(S+l))*v,n[1]=(y+h)*v,n[2]=(o-f)*v,n[3]=0,n[4]=(y-h)*P,n[5]=(1-(e+l))*P,n[6]=(s+c)*P,n[7]=0,n[8]=(o+f)*i,n[9]=(s-c)*i,n[10]=(1-(e+S))*i,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this},decompose:function(){var t=new m,e=new J;return function(i,n,o){var s=this.elements,l=t.set(s[0],s[1],s[2]).length(),h=t.set(s[4],s[5],s[6]).length(),c=t.set(s[8],s[9],s[10]).length();0>this.determinant()&&(l=-l),i.x=s[12],i.y=s[13],i.z=s[14],e.copy(this),i=1/l,s=1/h;var f=1/c;return e.elements[0]*=i,e.elements[1]*=i,e.elements[2]*=i,e.elements[4]*=s,e.elements[5]*=s,e.elements[6]*=s,e.elements[8]*=f,e.elements[9]*=f,e.elements[10]*=f,n.setFromRotationMatrix(e),o.x=l,o.y=h,o.z=c,this}}(),makePerspective:function(t,e,i,n,o,s){s===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var l=this.elements;return l[0]=2*o/(e-t),l[4]=0,l[8]=(e+t)/(e-t),l[12]=0,l[1]=0,l[5]=2*o/(i-n),l[9]=(i+n)/(i-n),l[13]=0,l[2]=0,l[6]=0,l[10]=-(s+o)/(s-o),l[14]=-2*s*o/(s-o),l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this},makeOrthographic:function(t,e,i,n,o,s){var l=this.elements,h=1/(e-t),c=1/(i-n),f=1/(s-o);return l[0]=2*h,l[4]=0,l[8]=0,l[12]=-((e+t)*h),l[1]=0,l[5]=2*c,l[9]=0,l[13]=-((i+n)*c),l[2]=0,l[6]=0,l[10]=-2*f,l[14]=-((s+o)*f),l[3]=0,l[7]=0,l[11]=0,l[15]=1,this},equals:function(t){var e=this.elements;t=t.elements;for(var i=0;16>i;i++)if(e[i]!==t[i])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var i=0;16>i;i++)this.elements[i]=t[i+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}),Object.assign(G,{slerp:function(t,e,i,n){return i.copy(t).slerp(e,n)},slerpFlat:function(t,e,i,n,o,s,l){var h=i[n+0],c=i[n+1],f=i[n+2];i=i[n+3],n=o[s+0];var v=o[s+1],y=o[s+2];if(o=o[s+3],i!==o||h!==n||c!==v||f!==y){s=1-l;var S=h*n+c*v+f*y+i*o,P=0<=S?1:-1,N=1-S*S;N>Number.EPSILON&&(N=Math.sqrt(N),S=Math.atan2(N,S*P),s=Math.sin(s*S)/N,l=Math.sin(l*S)/N),P*=l,h=h*s+n*P,c=c*s+v*P,f=f*s+y*P,i=i*s+o*P,s===1-l&&(l=1/Math.sqrt(h*h+c*c+f*f+i*i),h*=l,c*=l,f*=l,i*=l)}t[e]=h,t[e+1]=c,t[e+2]=f,t[e+3]=i}}),Object.defineProperties(G.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback()}}}),Object.assign(G.prototype,{isQuaternion:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!t||!t.isEuler)throw Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var i=t._x,n=t._y,o=t._z;t=t.order;var s=Math.cos,l=Math.sin,h=s(i/2),c=s(n/2);return s=s(o/2),i=l(i/2),n=l(n/2),o=l(o/2),t==="XYZ"?(this._x=i*c*s+h*n*o,this._y=h*n*s-i*c*o,this._z=h*c*o+i*n*s,this._w=h*c*s-i*n*o):t==="YXZ"?(this._x=i*c*s+h*n*o,this._y=h*n*s-i*c*o,this._z=h*c*o-i*n*s,this._w=h*c*s+i*n*o):t==="ZXY"?(this._x=i*c*s-h*n*o,this._y=h*n*s+i*c*o,this._z=h*c*o+i*n*s,this._w=h*c*s-i*n*o):t==="ZYX"?(this._x=i*c*s-h*n*o,this._y=h*n*s+i*c*o,this._z=h*c*o-i*n*s,this._w=h*c*s+i*n*o):t==="YZX"?(this._x=i*c*s+h*n*o,this._y=h*n*s+i*c*o,this._z=h*c*o-i*n*s,this._w=h*c*s-i*n*o):t==="XZY"&&(this._x=i*c*s-h*n*o,this._y=h*n*s-i*c*o,this._z=h*c*o+i*n*s,this._w=h*c*s+i*n*o),e!==!1&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){e/=2;var i=Math.sin(e);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(e),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e=t.elements,i=e[0];t=e[4];var n=e[8],o=e[1],s=e[5],l=e[9],h=e[2],c=e[6];e=e[10];var f=i+s+e;return 0<f?(i=.5/Math.sqrt(f+1),this._w=.25/i,this._x=(c-l)*i,this._y=(n-h)*i,this._z=(o-t)*i):i>s&&i>e?(i=2*Math.sqrt(1+i-s-e),this._w=(c-l)/i,this._x=.25*i,this._y=(t+o)/i,this._z=(n+h)/i):s>e?(i=2*Math.sqrt(1+s-i-e),this._w=(n-h)/i,this._x=(t+o)/i,this._y=.25*i,this._z=(l+c)/i):(i=2*Math.sqrt(1+e-i-s),this._w=(o-t)/i,this._x=(n+h)/i,this._y=(l+c)/i,this._z=.25*i),this.onChangeCallback(),this},setFromUnitVectors:function(){var t=new m,e;return function(i,n){return t===void 0&&(t=new m),e=i.dot(n)+1,1e-6>e?(e=0,Math.abs(i.x)>Math.abs(i.z)?t.set(-i.y,i.x,0):t.set(0,-i.z,i.y)):t.crossVectors(i,n),this._x=t.x,this._y=t.y,this._z=t.z,this._w=e,this.normalize()}}(),angleTo:function(t){return 2*Math.acos(Math.abs(pi.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var i=this.angleTo(t);return i===0?this:(this.slerp(t,Math.min(1,e/i)),this)},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return t===0?(this._z=this._y=this._x=0,this._w=1):(t=1/t,this._x*=t,this._y*=t,this._z*=t,this._w*=t),this.onChangeCallback(),this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var i=t._x,n=t._y,o=t._z;t=t._w;var s=e._x,l=e._y,h=e._z;return e=e._w,this._x=i*e+t*s+n*h-o*l,this._y=n*e+t*l+o*s-i*h,this._z=o*e+t*h+i*l-n*s,this._w=t*e-i*s-n*l-o*h,this.onChangeCallback(),this},slerp:function(t,e){if(e===0)return this;if(e===1)return this.copy(t);var i=this._x,n=this._y,o=this._z,s=this._w,l=s*t._w+i*t._x+n*t._y+o*t._z;if(0>l?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,l=-l):this.copy(t),1<=l)return this._w=s,this._x=i,this._y=n,this._z=o,this;if(t=1-l*l,t<=Number.EPSILON)return l=1-e,this._w=l*s+e*this._w,this._x=l*i+e*this._x,this._y=l*n+e*this._y,this._z=l*o+e*this._z,this.normalize();t=Math.sqrt(t);var h=Math.atan2(t,l);return l=Math.sin((1-e)*h)/t,e=Math.sin(e*h)/t,this._w=s*l+this._w*e,this._x=i*l+this._x*e,this._y=n*l+this._y*e,this._z=o*l+this._z*e,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return e===void 0&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(m.prototype,{isVector3:!0,set:function(t,e,i){return this.x=t,this.y=e,this.z=i,this},setScalar:function(t){return this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t=new G;return function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t=new G;return function(e,i){return this.applyQuaternion(t.setFromAxisAngle(e,i))}}(),applyMatrix3:function(t){var e=this.x,i=this.y,n=this.z;return t=t.elements,this.x=t[0]*e+t[3]*i+t[6]*n,this.y=t[1]*e+t[4]*i+t[7]*n,this.z=t[2]*e+t[5]*i+t[8]*n,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z;t=t.elements;var o=1/(t[3]*e+t[7]*i+t[11]*n+t[15]);return this.x=(t[0]*e+t[4]*i+t[8]*n+t[12])*o,this.y=(t[1]*e+t[5]*i+t[9]*n+t[13])*o,this.z=(t[2]*e+t[6]*i+t[10]*n+t[14])*o,this},applyQuaternion:function(t){var e=this.x,i=this.y,n=this.z,o=t.x,s=t.y,l=t.z;t=t.w;var h=t*e+s*n-l*i,c=t*i+l*e-o*n,f=t*n+o*i-s*e;return e=-o*e-s*i-l*n,this.x=h*t+e*-o+c*-l-f*-s,this.y=c*t+e*-s+f*-o-h*-l,this.z=f*t+e*-l+h*-s-c*-o,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(){var t=new J;return function(e){return this.applyMatrix4(t.getInverse(e.projectionMatrix)).applyMatrix4(e.matrixWorld)}}(),transformDirection:function(t){var e=this.x,i=this.y,n=this.z;return t=t.elements,this.x=t[0]*e+t[4]*i+t[8]*n,this.y=t[1]*e+t[5]*i+t[9]*n,this.z=t[2]*e+t[6]*i+t[10]*n,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t=new m,e=new m;return function(i,n){return t.set(i,i,i),e.set(n,n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},cross:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var i=t.x,n=t.y;t=t.z;var o=e.x,s=e.y;return e=e.z,this.x=n*e-t*s,this.y=t*o-i*e,this.z=i*s-n*o,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t=new m;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new m;return function(e){return this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){return t=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq()),Math.acos(pi.clamp(t,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,i=this.y-t.y;return t=this.z-t.z,e*e+i*i+t*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,i){var n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){return t=t.elements,this.x=t[12],this.y=t[13],this.z=t[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length();return t=this.setFromMatrixColumn(t,2).length(),this.x=e,this.y=i,this.z=t,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}}),Object.assign(C.prototype,{isMatrix3:!0,set:function(t,e,i,n,o,s,l,h,c){var f=this.elements;return f[0]=t,f[1]=n,f[2]=l,f[3]=e,f[4]=o,f[5]=h,f[6]=i,f[7]=s,f[8]=c,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return new this.constructor().fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},setFromMatrix4:function(t){return t=t.elements,this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this},applyToBufferAttribute:function(){var t=new m;return function(e){for(var i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.applyMatrix3(this),e.setXYZ(i,t.x,t.y,t.z);return e}}(),multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.elements,n=e.elements;e=this.elements,t=i[0];var o=i[3],s=i[6],l=i[1],h=i[4],c=i[7],f=i[2],v=i[5];i=i[8];var y=n[0],S=n[3],P=n[6],N=n[1],j=n[4],et=n[7],_t=n[2],mt=n[5];return n=n[8],e[0]=t*y+o*N+s*_t,e[3]=t*S+o*j+s*mt,e[6]=t*P+o*et+s*n,e[1]=l*y+h*N+c*_t,e[4]=l*S+h*j+c*mt,e[7]=l*P+h*et+c*n,e[2]=f*y+v*N+i*_t,e[5]=f*S+v*j+i*mt,e[8]=f*P+v*et+i*n,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],o=t[3],s=t[4],l=t[5],h=t[6],c=t[7];return t=t[8],e*s*t-e*l*c-i*o*t+i*l*h+n*o*c-n*s*h},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var i=t.elements;t=this.elements;var n=i[0],o=i[1],s=i[2],l=i[3],h=i[4],c=i[5],f=i[6],v=i[7];i=i[8];var y=i*h-c*v,S=c*f-i*l,P=v*l-h*f,N=n*y+o*S+s*P;if(N===0){if(e===!0)throw Error("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/N,t[0]=y*e,t[1]=(s*v-i*o)*e,t[2]=(c*o-s*h)*e,t[3]=S*e,t[4]=(i*n-s*f)*e,t[5]=(s*l-c*n)*e,t[6]=P*e,t[7]=(o*f-v*n)*e,t[8]=(h*n-o*l)*e,this},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,i,n,o,s,l){var h=Math.cos(o);o=Math.sin(o),this.set(i*h,i*o,-i*(h*s+o*l)+s+t,-n*o,n*h,-n*(-o*s+h*l)+l+e,0,0,1)},scale:function(t,e){var i=this.elements;return i[0]*=t,i[3]*=t,i[6]*=t,i[1]*=e,i[4]*=e,i[7]*=e,this},rotate:function(t){var e=Math.cos(t);t=Math.sin(t);var i=this.elements,n=i[0],o=i[3],s=i[6],l=i[1],h=i[4],c=i[7];return i[0]=e*n+t*l,i[3]=e*o+t*h,i[6]=e*s+t*c,i[1]=-t*n+e*l,i[4]=-t*o+e*h,i[7]=-t*s+e*c,this},translate:function(t,e){var i=this.elements;return i[0]+=t*i[2],i[3]+=t*i[5],i[6]+=t*i[8],i[1]+=e*i[2],i[4]+=e*i[5],i[7]+=e*i[8],this},equals:function(t){var e=this.elements;t=t.elements;for(var i=0;9>i;i++)if(e[i]!==t[i])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var i=0;9>i;i++)this.elements[i]=t[i+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}});var bo={getDataURL:function(t){if(typeof HTMLCanvasElement>"u")return t.src;if(t instanceof HTMLCanvasElement)var e=t;else{e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),e.width=t.width,e.height=t.height;var i=e.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height)}return 2048<e.width||2048<e.height?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},ts=0;O.DEFAULT_IMAGE=void 0,O.DEFAULT_MAPPING=300,O.prototype=Object.assign(Object.create($.prototype),{constructor:O,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];var i={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(this.image!==void 0){var n=this.image;if(n.uuid===void 0&&(n.uuid=pi.generateUUID()),!e&&t.images[n.uuid]===void 0){if(Array.isArray(n))for(var o=[],s=0,l=n.length;s<l;s++)o.push(bo.getDataURL(n[s]));else o=bo.getDataURL(n);t.images[n.uuid]={uuid:n.uuid,url:o}}i.image=n.uuid}return e||(t.textures[this.uuid]=i),i},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping!==300)return t;if(t.applyMatrix3(this.matrix),0>t.x||1<t.x)switch(this.wrapS){case 1e3:t.x-=Math.floor(t.x);break;case 1001:t.x=0>t.x?0:1;break;case 1002:t.x=Math.abs(Math.floor(t.x)%2)===1?Math.ceil(t.x)-t.x:t.x-Math.floor(t.x)}if(0>t.y||1<t.y)switch(this.wrapT){case 1e3:t.y-=Math.floor(t.y);break;case 1001:t.y=0>t.y?0:1;break;case 1002:t.y=Math.abs(Math.floor(t.y)%2)===1?Math.ceil(t.y)-t.y:t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}}),Object.defineProperty(O.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(E.prototype,{isVector4:!0,set:function(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this},setScalar:function(t){return this.w=this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z,o=this.w;return t=t.elements,this.x=t[0]*e+t[4]*i+t[8]*n+t[12]*o,this.y=t[1]*e+t[5]*i+t[9]*n+t[13]*o,this.z=t[2]*e+t[6]*i+t[10]*n+t[14]*o,this.w=t[3]*e+t[7]*i+t[11]*n+t[15]*o,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return 1e-4>e?(this.x=1,this.z=this.y=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){t=t.elements;var e=t[0],i=t[4],n=t[8],o=t[1],s=t[5],l=t[9],h=t[2],c=t[6],f=t[10];return .01>Math.abs(i-o)&&.01>Math.abs(n-h)&&.01>Math.abs(l-c)?.1>Math.abs(i+o)&&.1>Math.abs(n+h)&&.1>Math.abs(l+c)&&.1>Math.abs(e+s+f-3)?(this.set(1,0,0,0),this):(t=Math.PI,e=(e+1)/2,s=(s+1)/2,f=(f+1)/2,i=(i+o)/4,n=(n+h)/4,l=(l+c)/4,e>s&&e>f?.01>e?(c=0,i=h=.707106781):(c=Math.sqrt(e),h=i/c,i=n/c):s>f?.01>s?(c=.707106781,h=0,i=.707106781):(h=Math.sqrt(s),c=i/h,i=l/h):.01>f?(h=c=.707106781,i=0):(i=Math.sqrt(f),c=n/i,h=l/i),this.set(c,h,i,t),this):(t=Math.sqrt((c-l)*(c-l)+(n-h)*(n-h)+(o-i)*(o-i)),.001>Math.abs(t)&&(t=1),this.x=(c-l)/t,this.y=(n-h)/t,this.z=(o-i)/t,this.w=Math.acos((e+s+f-1)/2),this)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(i,n){return t===void 0&&(t=new E,e=new E),t.set(i,i,i,i),e.set(n,n,n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this.w=0>this.w?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}}),U.prototype=Object.assign(Object.create($.prototype),{constructor:U,isWebGLRenderTarget:!0,setSize:function(t,e){(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Y.prototype=Object.create(U.prototype),Y.prototype.constructor=Y,Y.prototype.isWebGLRenderTargetCube=!0,H.prototype=Object.create(O.prototype),H.prototype.constructor=H,H.prototype.isDataTexture=!0,Object.assign(K.prototype,{isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,i=1/0,n=1/0,o=-1/0,s=-1/0,l=-1/0,h=0,c=t.length;h<c;h+=3){var f=t[h],v=t[h+1],y=t[h+2];f<e&&(e=f),v<i&&(i=v),y<n&&(n=y),f>o&&(o=f),v>s&&(s=v),y>l&&(l=y)}return this.min.set(e,i,n),this.max.set(o,s,l),this},setFromBufferAttribute:function(t){for(var e=1/0,i=1/0,n=1/0,o=-1/0,s=-1/0,l=-1/0,h=0,c=t.count;h<c;h++){var f=t.getX(h),v=t.getY(h),y=t.getZ(h);f<e&&(e=f),v<i&&(i=v),y<n&&(n=y),f>o&&(o=f),v>s&&(s=v),y>l&&(l=y)}return this.min.set(e,i,n),this.max.set(o,s,l),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new m;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),setFromObject:function(t){return this.makeEmpty(),this.expandByObject(t)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new m),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new m),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},expandByObject:function(){function t(s){var l=s.geometry;if(l!==void 0){if(l.isGeometry)for(l=l.vertices,i=0,n=l.length;i<n;i++)o.copy(l[i]),o.applyMatrix4(s.matrixWorld),e.expandByPoint(o);else if(l.isBufferGeometry&&(l=l.attributes.position,l!==void 0))for(i=0,n=l.count;i<n;i++)o.fromBufferAttribute(l,i).applyMatrix4(s.matrixWorld),e.expandByPoint(o)}}var e,i,n,o=new m;return function(s){return e=this,s.updateMatrixWorld(!0),s.traverse(t),this}}(),containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new m),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:function(){var t=new m;return function(e){return this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){if(0<t.normal.x)var e=t.normal.x*this.min.x,i=t.normal.x*this.max.x;else e=t.normal.x*this.max.x,i=t.normal.x*this.min.x;return 0<t.normal.y?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),0<t.normal.z?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant},intersectsTriangle:function(){function t(y){var S,P=0;for(S=y.length-3;P<=S;P+=3){h.fromArray(y,P);var N=f.x*Math.abs(h.x)+f.y*Math.abs(h.y)+f.z*Math.abs(h.z),j=e.dot(h),et=i.dot(h),_t=n.dot(h);if(Math.max(-Math.max(j,et,_t),Math.min(j,et,_t))>N)return!1}return!0}var e=new m,i=new m,n=new m,o=new m,s=new m,l=new m,h=new m,c=new m,f=new m,v=new m;return function(y){return this.isEmpty()||(this.getCenter(c),f.subVectors(this.max,c),e.subVectors(y.a,c),i.subVectors(y.b,c),n.subVectors(y.c,c),o.subVectors(i,e),s.subVectors(n,i),l.subVectors(e,n),y=[0,-o.z,o.y,0,-s.z,s.y,0,-l.z,l.y,o.z,0,-o.x,s.z,0,-s.x,l.z,0,-l.x,-o.y,o.x,0,-s.y,s.x,0,-l.y,l.x,0],!t(y))||(y=[1,0,0,0,1,0,0,0,1],!t(y))?!1:(v.crossVectors(o,s),y=[v.x,v.y,v.z],t(y))}}(),clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new m),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new m;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new m;return function(e){return e===void 0&&(console.warn("THREE.Box3: .getBoundingSphere() target is now required"),e=new B),this.getCenter(e.center),e.radius=.5*this.getSize(t).length(),e}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(){var t=[new m,new m,new m,new m,new m,new m,new m,new m];return function(e){return this.isEmpty()?this:(t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(t),this)}}(),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(B.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t=new K;return function(e,i){var n=this.center;i!==void 0?n.copy(i):t.setFromPoints(e).getCenter(n);for(var o=i=0,s=e.length;o<s;o++)i=Math.max(i,n.distanceToSquared(e[o]));return this.radius=Math.sqrt(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return 0>=this.radius},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius},clampPoint:function(t,e){var i=this.center.distanceToSquared(t);return e===void 0&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new m),e.copy(t),i>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return t===void 0&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new K),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius*=t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}}),Object.assign(q.prototype,{set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(){var t=new m,e=new m;return function(i,n,o){return n=t.subVectors(o,n).cross(e.subVectors(i,n)).normalize(),this.setFromNormalAndCoplanarPoint(n,i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return e===void 0&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new m),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(){var t=new m;return function(e,i){i===void 0&&(console.warn("THREE.Plane: .intersectLine() target is now required"),i=new m);var n=e.delta(t),o=this.normal.dot(n);if(o===0){if(this.distanceToPoint(e.start)===0)return i.copy(e.start)}else if(o=-(e.start.dot(this.normal)+this.constant)/o,!(0>o||1<o))return i.copy(n).multiplyScalar(o).add(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start);return t=this.distanceToPoint(t.end),0>e&&0<t||0>t&&0<e},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return t===void 0&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new m),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new m,e=new C;return function(i,n){return n=n||e.getNormalMatrix(i),i=this.coplanarPoint(t).applyMatrix4(i),n=this.normal.applyMatrix3(n).normalize(),this.constant=-i.dot(n),this}}(),translate:function(t){return this.constant-=t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}}),Object.assign(b.prototype,{set:function(t,e,i,n,o,s){var l=this.planes;return l[0].copy(t),l[1].copy(e),l[2].copy(i),l[3].copy(n),l[4].copy(o),l[5].copy(s),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){for(var e=this.planes,i=0;6>i;i++)e[i].copy(t.planes[i]);return this},setFromMatrix:function(t){var e=this.planes,i=t.elements;t=i[0];var n=i[1],o=i[2],s=i[3],l=i[4],h=i[5],c=i[6],f=i[7],v=i[8],y=i[9],S=i[10],P=i[11],N=i[12],j=i[13],et=i[14];return i=i[15],e[0].setComponents(s-t,f-l,P-v,i-N).normalize(),e[1].setComponents(s+t,f+l,P+v,i+N).normalize(),e[2].setComponents(s+n,f+h,P+y,i+j).normalize(),e[3].setComponents(s-n,f-h,P-y,i-j).normalize(),e[4].setComponents(s-o,f-c,P-S,i-et).normalize(),e[5].setComponents(s+o,f+c,P+S,i+et).normalize(),this},intersectsObject:function(){var t=new B;return function(e){var i=e.geometry;return i.boundingSphere===null&&i.computeBoundingSphere(),t.copy(i.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new B;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){var e=this.planes,i=t.center;t=-t.radius;for(var n=0;6>n;n++)if(e[n].distanceToPoint(i)<t)return!1;return!0},intersectsBox:function(){var t=new m;return function(e){for(var i=this.planes,n=0;6>n;n++){var o=i[n];if(t.x=0<o.normal.x?e.max.x:e.min.x,t.y=0<o.normal.y?e.max.y:e.min.y,t.z=0<o.normal.z?e.max.z:e.min.z,0>o.distanceToPoint(t))return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,i=0;6>i;i++)if(0>e[i].distanceToPoint(t))return!1;return!0}});var bi={alphamap_fragment:`#ifdef USE_ALPHAMAP
|
|
285
|
+
`+e),A=e+A,y=ra(f,35633,v+y),A=ra(f,35632,A),f.attachShader(gt,y),f.attachShader(gt,A),n.index0AttributeName!==void 0?f.bindAttribLocation(gt,0,n.index0AttributeName):a.morphTargets===!0&&f.bindAttribLocation(gt,0,"position"),f.linkProgram(gt),a=f.getProgramInfoLog(gt).trim(),c=f.getShaderInfoLog(y).trim(),P=f.getShaderInfoLog(A).trim(),H=k=!0,f.getProgramParameter(gt,35714)===!1?(k=!1,console.error("THREE.WebGLProgram: shader error: ",f.getError(),"35715",f.getProgramParameter(gt,35715),"gl.getProgramInfoLog",a,c,P)):a!==""?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",a):(c===""||P==="")&&(H=!1),H&&(this.diagnostics={runnable:k,material:n,programLog:a,vertexShader:{log:c,prefix:v},fragmentShader:{log:P,prefix:e}}),f.deleteShader(y),f.deleteShader(A);var At;this.getUniforms=function(){return At===void 0&&(At=new hs(f,gt,t)),At};var wt;return this.getAttributes=function(){if(wt===void 0){for(var Vt={},Z=f.getProgramParameter(gt,35721),st=0;st<Z;st++){var zt=f.getActiveAttrib(gt,st).name;Vt[zt]=f.getAttribLocation(gt,zt)}wt=Vt}return wt},this.destroy=function(){f.deleteProgram(gt),this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn("THREE.WebGLProgram: .uniforms is now .getUniforms()."),this.getUniforms()}},attributes:{get:function(){return console.warn("THREE.WebGLProgram: .attributes is now .getAttributes()."),this.getAttributes()}}}),this.name=s.name,this.id=ks++,this.code=i,this.usedTimes=1,this.program=gt,this.vertexShader=y,this.fragmentShader=A,this}function lt(t,e,i){function n(f,v){if(f)f.isTexture?y=f.encoding:f.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),y=f.texture.encoding);else var y=3e3;return y===3e3&&v&&(y=3007),y}var s=[],a={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},c="precision supportsVertexTextures map mapEncoding matcapEncoding envMap envMapMode envMapEncoding lightMap aoMap emissiveMap emissiveMapEncoding bumpMap normalMap objectSpaceNormalMap displacementMap specularMap roughnessMap metalnessMap gradientMap alphaMap combine vertexColors fog useFog fogExp flatShading sizeAttenuation logarithmicDepthBuffer skinning maxBones useVertexTexture morphTargets morphNormals maxMorphTargets maxMorphNormals premultipliedAlpha numDirLights numPointLights numSpotLights numHemiLights numRectAreaLights shadowMapEnabled shadowMapType toneMapping physicallyCorrectLights alphaTest doubleSided flipSided numClippingPlanes numClipIntersection depthPacking dithering".split(" ");this.getParameters=function(f,v,y,A,P,k,H){var q=a[f.type];if(H.isSkinnedMesh){var J=H.skeleton.bones;if(i.floatVertexTextures)J=1024;else{var rt=Math.min(Math.floor((i.maxVertexUniforms-20)/4),J.length);rt<J.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+J.length+" bones. This GPU supports "+rt+"."),J=0):J=rt}}else J=0;rt=i.precision,f.precision!==null&&(rt=i.getMaxPrecision(f.precision),rt!==f.precision&&console.warn("THREE.WebGLProgram.getParameters:",f.precision,"not supported, using",rt,"instead."));var xt=t.getRenderTarget();return{shaderID:q,precision:rt,supportsVertexTextures:i.vertexTextures,outputEncoding:n(xt?xt.texture:null,t.gammaOutput),map:!!f.map,mapEncoding:n(f.map,t.gammaInput),matcap:!!f.matcap,matcapEncoding:n(f.matcap,t.gammaInput),envMap:!!f.envMap,envMapMode:f.envMap&&f.envMap.mapping,envMapEncoding:n(f.envMap,t.gammaInput),envMapCubeUV:!!f.envMap&&(f.envMap.mapping===306||f.envMap.mapping===307),lightMap:!!f.lightMap,aoMap:!!f.aoMap,emissiveMap:!!f.emissiveMap,emissiveMapEncoding:n(f.emissiveMap,t.gammaInput),bumpMap:!!f.bumpMap,normalMap:!!f.normalMap,objectSpaceNormalMap:f.normalMapType===1,displacementMap:!!f.displacementMap,roughnessMap:!!f.roughnessMap,metalnessMap:!!f.metalnessMap,specularMap:!!f.specularMap,alphaMap:!!f.alphaMap,gradientMap:!!f.gradientMap,combine:f.combine,vertexColors:f.vertexColors,fog:!!A,useFog:f.fog,fogExp:A&&A.isFogExp2,flatShading:f.flatShading,sizeAttenuation:f.sizeAttenuation,logarithmicDepthBuffer:i.logarithmicDepthBuffer,skinning:f.skinning&&0<J,maxBones:J,useVertexTexture:i.floatVertexTextures,morphTargets:f.morphTargets,morphNormals:f.morphNormals,maxMorphTargets:t.maxMorphTargets,maxMorphNormals:t.maxMorphNormals,numDirLights:v.directional.length,numPointLights:v.point.length,numSpotLights:v.spot.length,numRectAreaLights:v.rectArea.length,numHemiLights:v.hemi.length,numClippingPlanes:P,numClipIntersection:k,dithering:f.dithering,shadowMapEnabled:t.shadowMap.enabled&&H.receiveShadow&&0<y.length,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:f.premultipliedAlpha,alphaTest:f.alphaTest,doubleSided:f.side===2,flipSided:f.side===1,depthPacking:f.depthPacking!==void 0?f.depthPacking:!1}},this.getProgramCode=function(f,v){var y=[];if(v.shaderID?y.push(v.shaderID):(y.push(f.fragmentShader),y.push(f.vertexShader)),f.defines!==void 0)for(var A in f.defines)y.push(A),y.push(f.defines[A]);for(A=0;A<c.length;A++)y.push(v[c[A]]);return y.push(f.onBeforeCompile.toString()),y.push(t.gammaOutput),y.push(t.gammaFactor),y.join()},this.acquireProgram=function(f,v,y,A){for(var P,k=0,H=s.length;k<H;k++){var q=s[k];if(q.code===A){P=q,++P.usedTimes;break}}return P===void 0&&(P=new tt(t,e,A,f,v,y,i),s.push(P)),P},this.releaseProgram=function(f){if(--f.usedTimes===0){var v=s.indexOf(f);s[v]=s[s.length-1],s.pop(),f.destroy()}},this.programs=s}function at(){var t=new WeakMap;return{get:function(e){var i=t.get(e);return i===void 0&&(i={},t.set(e,i)),i},remove:function(e){t.delete(e)},update:function(e,i,n){t.get(e)[i]=n},dispose:function(){t=new WeakMap}}}function j(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program&&e.program&&t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function St(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function ht(){var t=[],e=0,i=[],n=[];return{opaque:i,transparent:n,init:function(){e=0,i.length=0,n.length=0},push:function(s,a,c,f,v){var y=t[e];y===void 0?(y={id:s.id,object:s,geometry:a,material:c,program:c.program,renderOrder:s.renderOrder,z:f,group:v},t[e]=y):(y.id=s.id,y.object=s,y.geometry=a,y.material=c,y.program=c.program,y.renderOrder=s.renderOrder,y.z=f,y.group=v),(c.transparent===!0?n:i).push(y),e++},sort:function(){1<i.length&&i.sort(j),1<n.length&&n.sort(St)}}}function Ot(){var t={};return{get:function(e,i){return e=e.id+","+i.id,i=t[e],i===void 0&&(i=new ht,t[e]=i),i},dispose:function(){t={}}}}function Ht(){var t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];switch(e.type){case"DirectionalLight":var i={direction:new u,color:new L,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o};break;case"SpotLight":i={position:new u,direction:new u,color:new L,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o};break;case"PointLight":i={position:new u,color:new L,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new o,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":i={direction:new u,skyColor:new L,groundColor:new L};break;case"RectAreaLight":i={color:new L,position:new u,halfWidth:new u,halfHeight:new u}}return t[e.id]=i}}}function kt(){var t=new Ht,e={id:Xh++,hash:{stateID:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,shadowsLength:-1},ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},i=new u,n=new p,s=new p;return{setup:function(a,c,f){var v=0,y=0,A=0,P=0,k=0,H=0,q=0,J=0;f=f.matrixWorldInverse;for(var rt=0,xt=a.length;rt<xt;rt++){var gt=a[rt],At=gt.color,wt=gt.intensity,Vt=gt.distance,Z=gt.shadow&>.shadow.map?gt.shadow.map.texture:null;if(gt.isAmbientLight)v+=At.r*wt,y+=At.g*wt,A+=At.b*wt;else if(gt.isDirectionalLight){var st=t.get(gt);st.color.copy(gt.color).multiplyScalar(gt.intensity),st.direction.setFromMatrixPosition(gt.matrixWorld),i.setFromMatrixPosition(gt.target.matrixWorld),st.direction.sub(i),st.direction.transformDirection(f),(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize),e.directionalShadowMap[P]=Z,e.directionalShadowMatrix[P]=gt.shadow.matrix,e.directional[P]=st,P++}else gt.isSpotLight?(st=t.get(gt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(f),st.color.copy(At).multiplyScalar(wt),st.distance=Vt,st.direction.setFromMatrixPosition(gt.matrixWorld),i.setFromMatrixPosition(gt.target.matrixWorld),st.direction.sub(i),st.direction.transformDirection(f),st.coneCos=Math.cos(gt.angle),st.penumbraCos=Math.cos(gt.angle*(1-gt.penumbra)),st.decay=gt.decay,(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize),e.spotShadowMap[H]=Z,e.spotShadowMatrix[H]=gt.shadow.matrix,e.spot[H]=st,H++):gt.isRectAreaLight?(st=t.get(gt),st.color.copy(At).multiplyScalar(wt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(f),s.identity(),n.copy(gt.matrixWorld),n.premultiply(f),s.extractRotation(n),st.halfWidth.set(.5*gt.width,0,0),st.halfHeight.set(0,.5*gt.height,0),st.halfWidth.applyMatrix4(s),st.halfHeight.applyMatrix4(s),e.rectArea[q]=st,q++):gt.isPointLight?(st=t.get(gt),st.position.setFromMatrixPosition(gt.matrixWorld),st.position.applyMatrix4(f),st.color.copy(gt.color).multiplyScalar(gt.intensity),st.distance=gt.distance,st.decay=gt.decay,(st.shadow=gt.castShadow)&&(At=gt.shadow,st.shadowBias=At.bias,st.shadowRadius=At.radius,st.shadowMapSize=At.mapSize,st.shadowCameraNear=At.camera.near,st.shadowCameraFar=At.camera.far),e.pointShadowMap[k]=Z,e.pointShadowMatrix[k]=gt.shadow.matrix,e.point[k]=st,k++):gt.isHemisphereLight&&(st=t.get(gt),st.direction.setFromMatrixPosition(gt.matrixWorld),st.direction.transformDirection(f),st.direction.normalize(),st.skyColor.copy(gt.color).multiplyScalar(wt),st.groundColor.copy(gt.groundColor).multiplyScalar(wt),e.hemi[J]=st,J++)}e.ambient[0]=v,e.ambient[1]=y,e.ambient[2]=A,e.directional.length=P,e.spot.length=H,e.rectArea.length=q,e.point.length=k,e.hemi.length=J,e.hash.stateID=e.id,e.hash.directionalLength=P,e.hash.pointLength=k,e.hash.spotLength=H,e.hash.rectAreaLength=q,e.hash.hemiLength=J,e.hash.shadowsLength=c.length},state:e}}function Mt(){var t=new kt,e=[],i=[];return{init:function(){e.length=0,i.length=0},state:{lightsArray:e,shadowsArray:i,lights:t},setupLights:function(n){t.setup(e,i,n)},pushLight:function(n){e.push(n)},pushShadow:function(n){i.push(n)}}}function he(){var t={};return{get:function(e,i){if(t[e.id]===void 0){var n=new Mt;t[e.id]={},t[e.id][i.id]=n}else t[e.id][i.id]===void 0?(n=new Mt,t[e.id][i.id]=n):n=t[e.id][i.id];return n},dispose:function(){t={}}}}function oe(t){Yt.call(this),this.type="MeshDepthMaterial",this.depthPacking=3200,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.lights=this.fog=!1,this.setValues(t)}function te(t){Yt.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new u,this.nearDistance=1,this.farDistance=1e3,this.morphTargets=this.skinning=!1,this.displacementMap=this.alphaMap=this.map=null,this.displacementScale=1,this.displacementBias=0,this.lights=this.fog=!1,this.setValues(t)}function _e(t,e,i){function n(Z,st,zt,ee,$t,qt){var Te=Z.geometry,de=P,Ie=Z.customDepthMaterial;return zt&&(de=k,Ie=Z.customDistanceMaterial),Ie?de=Ie:(Ie=!1,st.morphTargets&&(Te&&Te.isBufferGeometry?Ie=Te.morphAttributes&&Te.morphAttributes.position&&0<Te.morphAttributes.position.length:Te&&Te.isGeometry&&(Ie=Te.morphTargets&&0<Te.morphTargets.length)),Z.isSkinnedMesh&&st.skinning===!1&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",Z),Z=Z.isSkinnedMesh&&st.skinning,Te=0,Ie&&(Te|=1),Z&&(Te|=2),de=de[Te]),t.localClippingEnabled&&st.clipShadows===!0&&st.clippingPlanes.length!==0&&(Te=de.uuid,Ie=st.uuid,Z=H[Te],Z===void 0&&(Z={},H[Te]=Z),Te=Z[Ie],Te===void 0&&(Te=de.clone(),Z[Ie]=Te),de=Te),de.visible=st.visible,de.wireframe=st.wireframe,de.side=st.shadowSide!=null?st.shadowSide:q[st.side],de.clipShadows=st.clipShadows,de.clippingPlanes=st.clippingPlanes,de.clipIntersection=st.clipIntersection,de.wireframeLinewidth=st.wireframeLinewidth,de.linewidth=st.linewidth,zt&&de.isMeshDistanceMaterial&&(de.referencePosition.copy(ee),de.nearDistance=$t,de.farDistance=qt),de}function s(Z,st,zt,ee){if(Z.visible!==!1){if(Z.layers.test(st.layers)&&(Z.isMesh||Z.isLine||Z.isPoints)&&Z.castShadow&&(!Z.frustumCulled||a.intersectsObject(Z))){Z.modelViewMatrix.multiplyMatrices(zt.matrixWorldInverse,Z.matrixWorld);var $t=e.update(Z),qt=Z.material;if(Array.isArray(qt))for(var Te=$t.groups,de=0,Ie=Te.length;de<Ie;de++){var be=Te[de],ae=qt[be.materialIndex];ae&&ae.visible&&(ae=n(Z,ae,ee,A,zt.near,zt.far),t.renderBufferDirect(zt,null,$t,ae,Z,be))}else qt.visible&&(ae=n(Z,qt,ee,A,zt.near,zt.far),t.renderBufferDirect(zt,null,$t,ae,Z,null))}for(Z=Z.children,$t=0,qt=Z.length;$t<qt;$t++)s(Z[$t],st,zt,ee)}}var a=new E,c=new p,f=new o,v=new o(i,i),y=new u,A=new u,P=Array(4),k=Array(4),H={},q={0:1,1:0,2:2},J=[new u(1,0,0),new u(-1,0,0),new u(0,0,1),new u(0,0,-1),new u(0,1,0),new u(0,-1,0)],rt=[new u(0,1,0),new u(0,1,0),new u(0,1,0),new u(0,1,0),new u(0,0,1),new u(0,0,-1)],xt=[new T,new T,new T,new T,new T,new T];for(i=0;i!==4;++i){var gt=(i&1)!==0,At=(i&2)!==0,wt=new oe({depthPacking:3201,morphTargets:gt,skinning:At});P[i]=wt,gt=new te({morphTargets:gt,skinning:At}),k[i]=gt}var Vt=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(Z,st,zt){if(Vt.enabled!==!1&&(Vt.autoUpdate!==!1||Vt.needsUpdate!==!1)&&Z.length!==0){var ee=t.state;ee.disable(3042),ee.buffers.color.setClear(1,1,1,1),ee.buffers.depth.setTest(!0),ee.setScissorTest(!1);for(var $t,qt=0,Te=Z.length;qt<Te;qt++){var de=Z[qt];$t=de.shadow;var Ie=de&&de.isPointLight;if($t===void 0)console.warn("THREE.WebGLShadowMap:",de,"has no shadow.");else{var be=$t.camera;if(f.copy($t.mapSize),f.min(v),Ie){var ae=f.x,We=f.y;xt[0].set(2*ae,We,ae,We),xt[1].set(0,We,ae,We),xt[2].set(3*ae,We,ae,We),xt[3].set(ae,We,ae,We),xt[4].set(3*ae,0,ae,We),xt[5].set(ae,0,ae,We),f.x*=4,f.y*=2}for($t.map===null&&($t.map=new S(f.x,f.y,{minFilter:1003,magFilter:1003,format:1023}),$t.map.texture.name=de.name+".shadowMap",be.updateProjectionMatrix()),$t.isSpotLightShadow&&$t.update(de),ae=$t.map,We=$t.matrix,A.setFromMatrixPosition(de.matrixWorld),be.position.copy(A),Ie?($t=6,We.makeTranslation(-A.x,-A.y,-A.z)):($t=1,y.setFromMatrixPosition(de.target.matrixWorld),be.lookAt(y),be.updateMatrixWorld(),We.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),We.multiply(be.projectionMatrix),We.multiply(be.matrixWorldInverse)),t.setRenderTarget(ae),t.clear(),de=0;de<$t;de++)Ie&&(y.copy(be.position),y.add(J[de]),be.up.copy(rt[de]),be.lookAt(y),be.updateMatrixWorld(),ee.viewport(xt[de])),c.multiplyMatrices(be.projectionMatrix,be.matrixWorldInverse),a.setFromMatrix(c),s(st,zt,be,Ie)}}Vt.needsUpdate=!1}}}function ue(t,e,i,n){function s(Ut,Ye,ei){var Vi=new Uint8Array(4),Ce=t.createTexture();for(t.bindTexture(Ut,Ce),t.texParameteri(Ut,10241,9728),t.texParameteri(Ut,10240,9728),Ut=0;Ut<ei;Ut++)t.texImage2D(Ye+Ut,0,6408,1,1,0,6408,5121,Vi);return Ce}function a(Ut,Ye){xt[Ut]=1,gt[Ut]===0&&(t.enableVertexAttribArray(Ut),gt[Ut]=1),At[Ut]!==Ye&&((n.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[n.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](Ut,Ye),At[Ut]=Ye)}function c(Ut){wt[Ut]!==!0&&(t.enable(Ut),wt[Ut]=!0)}function f(Ut){wt[Ut]!==!1&&(t.disable(Ut),wt[Ut]=!1)}function v(Ut,Ye,ei,Vi,Ce,Xe,ri,Ci){if(Ut===0)st&&(f(3042),st=!1);else if(st||(c(3042),st=!0),Ut!==5){if(Ut!==zt||Ci!==be){if((ee!==100||Te!==100)&&(t.blendEquation(32774),Te=ee=100),Ci)switch(Ut){case 1:t.blendFuncSeparate(1,771,1,771);break;case 2:t.blendFunc(1,1);break;case 3:t.blendFuncSeparate(0,0,769,771);break;case 4:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",Ut)}else switch(Ut){case 1:t.blendFuncSeparate(770,771,1,771);break;case 2:t.blendFunc(770,1);break;case 3:t.blendFunc(0,769);break;case 4:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",Ut)}Ie=de=qt=$t=null,zt=Ut,be=Ci}}else Ce=Ce||Ye,Xe=Xe||ei,ri=ri||Vi,(Ye!==ee||Ce!==Te)&&(t.blendEquationSeparate(i.convert(Ye),i.convert(Ce)),ee=Ye,Te=Ce),(ei!==$t||Vi!==qt||Xe!==de||ri!==Ie)&&(t.blendFuncSeparate(i.convert(ei),i.convert(Vi),i.convert(Xe),i.convert(ri)),$t=ei,qt=Vi,de=Xe,Ie=ri),zt=Ut,be=null}function y(Ut){ae!==Ut&&(Ut?t.frontFace(2304):t.frontFace(2305),ae=Ut)}function A(Ut){Ut!==0?(c(2884),Ut!==We&&(Ut===1?t.cullFace(1029):Ut===2?t.cullFace(1028):t.cullFace(1032))):f(2884),We=Ut}function P(Ut,Ye,ei){Ut?(c(32823),(fi!==Ye||An!==ei)&&(t.polygonOffset(Ye,ei),fi=Ye,An=ei)):f(32823)}function k(Ut){Ut===void 0&&(Ut=33984+yn-1),Hi!==Ut&&(t.activeTexture(Ut),Hi=Ut)}var H=new function(){var Ut=!1,Ye=new T,ei=null,Vi=new T(0,0,0,0);return{setMask:function(Ce){ei===Ce||Ut||(t.colorMask(Ce,Ce,Ce,Ce),ei=Ce)},setLocked:function(Ce){Ut=Ce},setClear:function(Ce,Xe,ri,Ci,Ai){Ai===!0&&(Ce*=Ci,Xe*=Ci,ri*=Ci),Ye.set(Ce,Xe,ri,Ci),Vi.equals(Ye)===!1&&(t.clearColor(Ce,Xe,ri,Ci),Vi.copy(Ye))},reset:function(){Ut=!1,ei=null,Vi.set(-1,0,0,0)}}},q=new function(){var Ut=!1,Ye=null,ei=null,Vi=null;return{setTest:function(Ce){Ce?c(2929):f(2929)},setMask:function(Ce){Ye===Ce||Ut||(t.depthMask(Ce),Ye=Ce)},setFunc:function(Ce){if(ei!==Ce){if(Ce)switch(Ce){case 0:t.depthFunc(512);break;case 1:t.depthFunc(519);break;case 2:t.depthFunc(513);break;case 3:t.depthFunc(515);break;case 4:t.depthFunc(514);break;case 5:t.depthFunc(518);break;case 6:t.depthFunc(516);break;case 7:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);ei=Ce}},setLocked:function(Ce){Ut=Ce},setClear:function(Ce){Vi!==Ce&&(t.clearDepth(Ce),Vi=Ce)},reset:function(){Ut=!1,Vi=ei=Ye=null}}},J=new function(){var Ut=!1,Ye=null,ei=null,Vi=null,Ce=null,Xe=null,ri=null,Ci=null,Ai=null;return{setTest:function(ne){ne?c(2960):f(2960)},setMask:function(ne){Ye===ne||Ut||(t.stencilMask(ne),Ye=ne)},setFunc:function(ne,ii,Ze){(ei!==ne||Vi!==ii||Ce!==Ze)&&(t.stencilFunc(ne,ii,Ze),ei=ne,Vi=ii,Ce=Ze)},setOp:function(ne,ii,Ze){(Xe!==ne||ri!==ii||Ci!==Ze)&&(t.stencilOp(ne,ii,Ze),Xe=ne,ri=ii,Ci=Ze)},setLocked:function(ne){Ut=ne},setClear:function(ne){Ai!==ne&&(t.clearStencil(ne),Ai=ne)},reset:function(){Ut=!1,Ai=Ci=ri=Xe=Ce=Vi=ei=Ye=null}}},rt=t.getParameter(34921),xt=new Uint8Array(rt),gt=new Uint8Array(rt),At=new Uint8Array(rt),wt={},Vt=null,Z=null,st=null,zt=null,ee=null,$t=null,qt=null,Te=null,de=null,Ie=null,be=!1,ae=null,We=null,Ke=null,fi=null,An=null,yn=t.getParameter(35661),Xi=!1;rt=0,rt=t.getParameter(7938),rt.indexOf("WebGL")!==-1?(rt=parseFloat(/^WebGL ([0-9])/.exec(rt)[1]),Xi=1<=rt):rt.indexOf("OpenGL ES")!==-1&&(rt=parseFloat(/^OpenGL ES ([0-9])/.exec(rt)[1]),Xi=2<=rt);var Hi=null,sn={},Cn=new T,Ae=new T,Qe={};return Qe[3553]=s(3553,3553,1),Qe[34067]=s(34067,34069,6),H.setClear(0,0,0,1),q.setClear(1),J.setClear(0),c(2929),q.setFunc(3),y(!1),A(1),c(2884),v(0),{buffers:{color:H,depth:q,stencil:J},initAttributes:function(){for(var Ut=0,Ye=xt.length;Ut<Ye;Ut++)xt[Ut]=0},enableAttribute:function(Ut){a(Ut,0)},enableAttributeAndDivisor:a,disableUnusedAttributes:function(){for(var Ut=0,Ye=gt.length;Ut!==Ye;++Ut)gt[Ut]!==xt[Ut]&&(t.disableVertexAttribArray(Ut),gt[Ut]=0)},enable:c,disable:f,getCompressedTextureFormats:function(){if(Vt===null&&(Vt=[],e.get("WEBGL_compressed_texture_pvrtc")||e.get("WEBGL_compressed_texture_s3tc")||e.get("WEBGL_compressed_texture_etc1")||e.get("WEBGL_compressed_texture_astc")))for(var Ut=t.getParameter(34467),Ye=0;Ye<Ut.length;Ye++)Vt.push(Ut[Ye]);return Vt},useProgram:function(Ut){return Z!==Ut?(t.useProgram(Ut),Z=Ut,!0):!1},setBlending:v,setMaterial:function(Ut,Ye){Ut.side===2?f(2884):c(2884);var ei=Ut.side===1;Ye&&(ei=!ei),y(ei),Ut.blending===1&&Ut.transparent===!1?v(0):v(Ut.blending,Ut.blendEquation,Ut.blendSrc,Ut.blendDst,Ut.blendEquationAlpha,Ut.blendSrcAlpha,Ut.blendDstAlpha,Ut.premultipliedAlpha),q.setFunc(Ut.depthFunc),q.setTest(Ut.depthTest),q.setMask(Ut.depthWrite),H.setMask(Ut.colorWrite),P(Ut.polygonOffset,Ut.polygonOffsetFactor,Ut.polygonOffsetUnits)},setFlipSided:y,setCullFace:A,setLineWidth:function(Ut){Ut!==Ke&&(Xi&&t.lineWidth(Ut),Ke=Ut)},setPolygonOffset:P,setScissorTest:function(Ut){Ut?c(3089):f(3089)},activeTexture:k,bindTexture:function(Ut,Ye){Hi===null&&k();var ei=sn[Hi];ei===void 0&&(ei={type:void 0,texture:void 0},sn[Hi]=ei),(ei.type!==Ut||ei.texture!==Ye)&&(t.bindTexture(Ut,Ye||Qe[Ut]),ei.type=Ut,ei.texture=Ye)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(Ut){console.error("THREE.WebGLState:",Ut)}},scissor:function(Ut){Cn.equals(Ut)===!1&&(t.scissor(Ut.x,Ut.y,Ut.z,Ut.w),Cn.copy(Ut))},viewport:function(Ut){Ae.equals(Ut)===!1&&(t.viewport(Ut.x,Ut.y,Ut.z,Ut.w),Ae.copy(Ut))},reset:function(){for(var Ut=0;Ut<gt.length;Ut++)gt[Ut]===1&&(t.disableVertexAttribArray(Ut),gt[Ut]=0);wt={},Hi=Vt=null,sn={},We=ae=zt=Z=null,H.reset(),q.reset(),J.reset()}}}function je(t,e,i,n,s,a,c){function f(Z,st){if(Z.width>st||Z.height>st){if("data"in Z){console.warn("THREE.WebGLRenderer: image in DataTexture is too big ("+Z.width+"x"+Z.height+").");return}st/=Math.max(Z.width,Z.height);var zt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return zt.width=Math.floor(Z.width*st),zt.height=Math.floor(Z.height*st),zt.getContext("2d").drawImage(Z,0,0,Z.width,Z.height,0,0,zt.width,zt.height),console.warn("THREE.WebGLRenderer: image is too big ("+Z.width+"x"+Z.height+"). Resized to "+zt.width+"x"+zt.height),zt}return Z}function v(Z){return pi.isPowerOfTwo(Z.width)&&pi.isPowerOfTwo(Z.height)}function y(Z,st){return Z.generateMipmaps&&st&&Z.minFilter!==1003&&Z.minFilter!==1006}function A(Z,st,zt,ee){t.generateMipmap(Z),n.get(st).__maxMipLevel=Math.log(Math.max(zt,ee))*Math.LOG2E}function P(Z,st){if(!s.isWebGL2)return Z;if(Z===6403){if(st===5126)return 33326;if(st===5131)return 33325;if(st===5121)return 33321}if(Z===6407){if(st===5126)return 34837;if(st===5131)return 34843;if(st===5121)return 32849}if(Z===6408){if(st===5126)return 34836;if(st===5131)return 34842;if(st===5121)return 32856}return Z}function k(Z){return Z===1003||Z===1004||Z===1005?9728:9729}function H(Z){Z=Z.target,Z.removeEventListener("dispose",H);t:{var st=n.get(Z);if(Z.image&&st.__image__webglTextureCube)t.deleteTexture(st.__image__webglTextureCube);else{if(st.__webglInit===void 0)break t;t.deleteTexture(st.__webglTexture)}n.remove(Z)}Z.isVideoTexture&&delete wt[Z.id],c.memory.textures--}function q(Z){Z=Z.target,Z.removeEventListener("dispose",q);var st=n.get(Z),zt=n.get(Z.texture);if(Z){if(zt.__webglTexture!==void 0&&t.deleteTexture(zt.__webglTexture),Z.depthTexture&&Z.depthTexture.dispose(),Z.isWebGLRenderTargetCube)for(zt=0;6>zt;zt++)t.deleteFramebuffer(st.__webglFramebuffer[zt]),st.__webglDepthbuffer&&t.deleteRenderbuffer(st.__webglDepthbuffer[zt]);else t.deleteFramebuffer(st.__webglFramebuffer),st.__webglDepthbuffer&&t.deleteRenderbuffer(st.__webglDepthbuffer);n.remove(Z.texture),n.remove(Z)}c.memory.textures--}function J(Z,st){var zt=n.get(Z);if(Z.isVideoTexture){var ee=Z.id,$t=c.render.frame;wt[ee]!==$t&&(wt[ee]=$t,Z.update())}if(0<Z.version&&zt.__version!==Z.version)if(ee=Z.image,ee===void 0)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else if(ee.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{xt(zt,Z,st);return}i.activeTexture(33984+st),i.bindTexture(3553,zt.__webglTexture)}function rt(Z,st,zt){zt?(t.texParameteri(Z,10242,a.convert(st.wrapS)),t.texParameteri(Z,10243,a.convert(st.wrapT)),t.texParameteri(Z,10240,a.convert(st.magFilter)),t.texParameteri(Z,10241,a.convert(st.minFilter))):(t.texParameteri(Z,10242,33071),t.texParameteri(Z,10243,33071),st.wrapS===1001&&st.wrapT===1001||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(Z,10240,k(st.magFilter)),t.texParameteri(Z,10241,k(st.minFilter)),st.minFilter!==1003&&st.minFilter!==1006&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!(zt=e.get("EXT_texture_filter_anisotropic"))||st.type===1015&&e.get("OES_texture_float_linear")===null||st.type===1016&&(s.isWebGL2||e.get("OES_texture_half_float_linear"))===null||!(1<st.anisotropy||n.get(st).__currentAnisotropy)||(t.texParameterf(Z,zt.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(st.anisotropy,s.getMaxAnisotropy())),n.get(st).__currentAnisotropy=st.anisotropy)}function xt(Z,st,zt){var ee=st.isDataTexture3D?32879:3553;Z.__webglInit===void 0&&(Z.__webglInit=!0,st.addEventListener("dispose",H),Z.__webglTexture=t.createTexture(),c.memory.textures++),i.activeTexture(33984+zt),i.bindTexture(ee,Z.__webglTexture),t.pixelStorei(37440,st.flipY),t.pixelStorei(37441,st.premultiplyAlpha),t.pixelStorei(3317,st.unpackAlignment),zt=f(st.image,s.maxTextureSize);var $t=s.isWebGL2?!1:st.wrapS!==1001||st.wrapT!==1001||st.minFilter!==1003&&st.minFilter!==1006;$t&&v(zt)===!1&&(zt instanceof HTMLImageElement||zt instanceof HTMLCanvasElement||zt instanceof ImageBitmap)&&(Vt===void 0&&(Vt=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Vt.width=pi.floorPowerOfTwo(zt.width),Vt.height=pi.floorPowerOfTwo(zt.height),Vt.getContext("2d").drawImage(zt,0,0,Vt.width,Vt.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+zt.width+"x"+zt.height+"). Resized to "+Vt.width+"x"+Vt.height),zt=Vt),$t=v(zt);var qt=a.convert(st.format),Te=a.convert(st.type),de=P(qt,Te);rt(ee,st,$t);var Ie=st.mipmaps;if(st.isDepthTexture){if(de=6402,st.type===1015){if(!s.isWebGL2)throw Error("Float Depth Texture only supported in WebGL2.0");de=36012}else s.isWebGL2&&(de=33189);st.format===1026&&de===6402&&st.type!==1012&&st.type!==1014&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),st.type=1012,Te=a.convert(st.type)),st.format===1027&&(de=34041,st.type!==1020&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),st.type=1020,Te=a.convert(st.type))),i.texImage2D(3553,0,de,zt.width,zt.height,0,qt,Te,null)}else if(st.isDataTexture)if(0<Ie.length&&$t){for(var be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],i.texImage2D(3553,be,de,ee.width,ee.height,0,qt,Te,ee.data);st.generateMipmaps=!1,Z.__maxMipLevel=Ie.length-1}else i.texImage2D(3553,0,de,zt.width,zt.height,0,qt,Te,zt.data),Z.__maxMipLevel=0;else if(st.isCompressedTexture){for(be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],st.format!==1023&&st.format!==1022?-1<i.getCompressedTextureFormats().indexOf(qt)?i.compressedTexImage2D(3553,be,de,ee.width,ee.height,0,ee.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):i.texImage2D(3553,be,de,ee.width,ee.height,0,qt,Te,ee.data);Z.__maxMipLevel=Ie.length-1}else if(st.isDataTexture3D)i.texImage3D(32879,0,de,zt.width,zt.height,zt.depth,0,qt,Te,zt.data),Z.__maxMipLevel=0;else if(0<Ie.length&&$t){for(be=0,ae=Ie.length;be<ae;be++)ee=Ie[be],i.texImage2D(3553,be,de,qt,Te,ee);st.generateMipmaps=!1,Z.__maxMipLevel=Ie.length-1}else i.texImage2D(3553,0,de,qt,Te,zt),Z.__maxMipLevel=0;y(st,$t)&&A(3553,st,zt.width,zt.height),Z.__version=st.version,st.onUpdate&&st.onUpdate(st)}function gt(Z,st,zt,ee){var $t=a.convert(st.texture.format),qt=a.convert(st.texture.type),Te=P($t,qt);i.texImage2D(ee,0,Te,st.width,st.height,0,$t,qt,null),t.bindFramebuffer(36160,Z),t.framebufferTexture2D(36160,zt,ee,n.get(st.texture).__webglTexture,0),t.bindFramebuffer(36160,null)}function At(Z,st){t.bindRenderbuffer(36161,Z),st.depthBuffer&&!st.stencilBuffer?(t.renderbufferStorage(36161,33189,st.width,st.height),t.framebufferRenderbuffer(36160,36096,36161,Z)):st.depthBuffer&&st.stencilBuffer?(t.renderbufferStorage(36161,34041,st.width,st.height),t.framebufferRenderbuffer(36160,33306,36161,Z)):t.renderbufferStorage(36161,32854,st.width,st.height),t.bindRenderbuffer(36161,null)}var wt={},Vt;this.setTexture2D=J,this.setTexture3D=function(Z,st){var zt=n.get(Z);0<Z.version&&zt.__version!==Z.version?xt(zt,Z,st):(i.activeTexture(33984+st),i.bindTexture(32879,zt.__webglTexture))},this.setTextureCube=function(Z,st){var zt=n.get(Z);if(Z.image.length===6)if(0<Z.version&&zt.__version!==Z.version){zt.__image__webglTextureCube||(Z.addEventListener("dispose",H),zt.__image__webglTextureCube=t.createTexture(),c.memory.textures++),i.activeTexture(33984+st),i.bindTexture(34067,zt.__image__webglTextureCube),t.pixelStorei(37440,Z.flipY),st=Z&&Z.isCompressedTexture;for(var ee=Z.image[0]&&Z.image[0].isDataTexture,$t=[],qt=0;6>qt;qt++)$t[qt]=st||ee?ee?Z.image[qt].image:Z.image[qt]:f(Z.image[qt],s.maxCubemapSize);var Te=$t[0],de=v(Te),Ie=a.convert(Z.format),be=a.convert(Z.type),ae=P(Ie,be);for(rt(34067,Z,de),qt=0;6>qt;qt++)if(st)for(var We,Ke=$t[qt].mipmaps,fi=0,An=Ke.length;fi<An;fi++)We=Ke[fi],Z.format!==1023&&Z.format!==1022?-1<i.getCompressedTextureFormats().indexOf(Ie)?i.compressedTexImage2D(34069+qt,fi,ae,We.width,We.height,0,We.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):i.texImage2D(34069+qt,fi,ae,We.width,We.height,0,Ie,be,We.data);else ee?i.texImage2D(34069+qt,0,ae,$t[qt].width,$t[qt].height,0,Ie,be,$t[qt].data):i.texImage2D(34069+qt,0,ae,Ie,be,$t[qt]);zt.__maxMipLevel=st?Ke.length-1:0,y(Z,de)&&A(34067,Z,Te.width,Te.height),zt.__version=Z.version,Z.onUpdate&&Z.onUpdate(Z)}else i.activeTexture(33984+st),i.bindTexture(34067,zt.__image__webglTextureCube)},this.setTextureCubeDynamic=function(Z,st){i.activeTexture(33984+st),i.bindTexture(34067,n.get(Z).__webglTexture)},this.setupRenderTarget=function(Z){var st=n.get(Z),zt=n.get(Z.texture);Z.addEventListener("dispose",q),zt.__webglTexture=t.createTexture(),c.memory.textures++;var ee=Z.isWebGLRenderTargetCube===!0,$t=v(Z);if(ee){st.__webglFramebuffer=[];for(var qt=0;6>qt;qt++)st.__webglFramebuffer[qt]=t.createFramebuffer()}else st.__webglFramebuffer=t.createFramebuffer();if(ee){for(i.bindTexture(34067,zt.__webglTexture),rt(34067,Z.texture,$t),qt=0;6>qt;qt++)gt(st.__webglFramebuffer[qt],Z,36064,34069+qt);y(Z.texture,$t)&&A(34067,Z.texture,Z.width,Z.height),i.bindTexture(34067,null)}else i.bindTexture(3553,zt.__webglTexture),rt(3553,Z.texture,$t),gt(st.__webglFramebuffer,Z,36064,3553),y(Z.texture,$t)&&A(3553,Z.texture,Z.width,Z.height),i.bindTexture(3553,null);if(Z.depthBuffer){if(st=n.get(Z),zt=Z.isWebGLRenderTargetCube===!0,Z.depthTexture){if(zt)throw Error("target.depthTexture not supported in Cube render targets");if(Z&&Z.isWebGLRenderTargetCube)throw Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(36160,st.__webglFramebuffer),!Z.depthTexture||!Z.depthTexture.isDepthTexture)throw Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");if(n.get(Z.depthTexture).__webglTexture&&Z.depthTexture.image.width===Z.width&&Z.depthTexture.image.height===Z.height||(Z.depthTexture.image.width=Z.width,Z.depthTexture.image.height=Z.height,Z.depthTexture.needsUpdate=!0),J(Z.depthTexture,0),st=n.get(Z.depthTexture).__webglTexture,Z.depthTexture.format===1026)t.framebufferTexture2D(36160,36096,3553,st,0);else if(Z.depthTexture.format===1027)t.framebufferTexture2D(36160,33306,3553,st,0);else throw Error("Unknown depthTexture format")}else if(zt)for(st.__webglDepthbuffer=[],zt=0;6>zt;zt++)t.bindFramebuffer(36160,st.__webglFramebuffer[zt]),st.__webglDepthbuffer[zt]=t.createRenderbuffer(),At(st.__webglDepthbuffer[zt],Z);else t.bindFramebuffer(36160,st.__webglFramebuffer),st.__webglDepthbuffer=t.createRenderbuffer(),At(st.__webglDepthbuffer,Z);t.bindFramebuffer(36160,null)}},this.updateRenderTargetMipmap=function(Z){var st=Z.texture,zt=v(Z);if(y(st,zt)){zt=Z.isWebGLRenderTargetCube?34067:3553;var ee=n.get(st).__webglTexture;i.bindTexture(zt,ee),A(zt,st,Z.width,Z.height),i.bindTexture(zt,null)}}}function He(t,e,i){return{convert:function(n){if(n===1e3)return 10497;if(n===1001)return 33071;if(n===1002)return 33648;if(n===1003)return 9728;if(n===1004)return 9984;if(n===1005)return 9986;if(n===1006)return 9729;if(n===1007)return 9985;if(n===1008)return 9987;if(n===1009)return 5121;if(n===1017)return 32819;if(n===1018)return 32820;if(n===1019)return 33635;if(n===1010)return 5120;if(n===1011)return 5122;if(n===1012)return 5123;if(n===1013)return 5124;if(n===1014)return 5125;if(n===1015)return 5126;if(n===1016){if(i.isWebGL2)return 5131;var s=e.get("OES_texture_half_float");if(s!==null)return s.HALF_FLOAT_OES}if(n===1021)return 6406;if(n===1022)return 6407;if(n===1023)return 6408;if(n===1024)return 6409;if(n===1025)return 6410;if(n===1026)return 6402;if(n===1027)return 34041;if(n===1028)return 6403;if(n===100)return 32774;if(n===101)return 32778;if(n===102)return 32779;if(n===200)return 0;if(n===201)return 1;if(n===202)return 768;if(n===203)return 769;if(n===204)return 770;if(n===205)return 771;if(n===206)return 772;if(n===207)return 773;if(n===208)return 774;if(n===209)return 775;if(n===210)return 776;if((n===33776||n===33777||n===33778||n===33779)&&(s=e.get("WEBGL_compressed_texture_s3tc"),s!==null)){if(n===33776)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((n===35840||n===35841||n===35842||n===35843)&&(s=e.get("WEBGL_compressed_texture_pvrtc"),s!==null)){if(n===35840)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===36196&&(s=e.get("WEBGL_compressed_texture_etc1"),s!==null))return s.COMPRESSED_RGB_ETC1_WEBGL;if((n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)&&(s=e.get("WEBGL_compressed_texture_astc"),s!==null))return n;if(n===103||n===104){if(i.isWebGL2){if(n===103)return 32775;if(n===104)return 32776}if(s=e.get("EXT_blend_minmax"),s!==null){if(n===103)return s.MIN_EXT;if(n===104)return s.MAX_EXT}}if(n===1020){if(i.isWebGL2)return 34042;if(s=e.get("WEBGL_depth_texture"),s!==null)return s.UNSIGNED_INT_24_8_WEBGL}return 0}}}function ci(){B.call(this),this.type="Group"}function ke(){B.call(this),this.type="Camera",this.matrixWorldInverse=new p,this.projectionMatrix=new p,this.projectionMatrixInverse=new p}function ye(t,e,i,n){ke.call(this),this.type="PerspectiveCamera",this.fov=t!==void 0?t:50,this.zoom=1,this.near=i!==void 0?i:.1,this.far=n!==void 0?n:2e3,this.focus=10,this.aspect=e!==void 0?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function Fe(t){ye.call(this),this.cameras=t||[]}function fe(t,e,i){oo.setFromMatrixPosition(e.matrixWorld),wr.setFromMatrixPosition(i.matrixWorld);var n=oo.distanceTo(wr),s=e.projectionMatrix.elements,a=i.projectionMatrix.elements,c=s[14]/(s[10]-1);i=s[14]/(s[10]+1);var f=(s[9]+1)/s[5],v=(s[9]-1)/s[5],y=(s[8]-1)/s[0],A=(a[8]+1)/a[0];s=c*y,a=c*A,A=n/(-y+A),y=A*-y,e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(y),t.translateZ(A),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.getInverse(t.matrixWorld),e=c+A,c=i+A,t.projectionMatrix.makePerspective(s-y,a+(n-y),f*i/c*e,v*i/c*e,e,c)}function mi(t){function e(){return s!==null&&s.isPresenting===!0}function i(){if(e()){var Z=s.getEyeParameters("left"),st=Z.renderWidth*A;Z=Z.renderHeight*A,At=t.getPixelRatio(),gt=t.getSize(),t.setDrawingBufferSize(2*st,Z,1),Vt.start()}else n.enabled&&t.setDrawingBufferSize(gt.width,gt.height,At),Vt.stop()}var n=this,s=null,a=null,c=null,f=[],v=new p,y=new p,A=1,P="stage";typeof window<"u"&&"VRFrameData"in window&&(a=new window.VRFrameData,window.addEventListener("vrdisplaypresentchange",i,!1));var k=new p,H=new d,q=new u,J=new ye;J.bounds=new T(0,0,.5,1),J.layers.enable(1);var rt=new ye;rt.bounds=new T(.5,0,.5,1),rt.layers.enable(2);var xt=new Fe([J,rt]);xt.layers.enable(1),xt.layers.enable(2);var gt,At,wt=[];this.enabled=!1,this.getController=function(Z){var st=f[Z];return st===void 0&&(st=new ci,st.matrixAutoUpdate=!1,st.visible=!1,f[Z]=st),st},this.getDevice=function(){return s},this.setDevice=function(Z){Z!==void 0&&(s=Z),Vt.setContext(Z)},this.setFramebufferScaleFactor=function(Z){A=Z},this.setFrameOfReferenceType=function(Z){P=Z},this.setPoseTarget=function(Z){Z!==void 0&&(c=Z)},this.getCamera=function(Z){var st=P==="stage"?1.6:0;if(s===null)return Z.position.set(0,st,0),Z;if(s.depthNear=Z.near,s.depthFar=Z.far,s.getFrameData(a),P==="stage"){var zt=s.stageParameters;zt?v.fromArray(zt.sittingToStandingTransform):v.makeTranslation(0,st,0)}if(st=a.pose,zt=c!==null?c:Z,zt.matrix.copy(v),zt.matrix.decompose(zt.position,zt.quaternion,zt.scale),st.orientation!==null&&(H.fromArray(st.orientation),zt.quaternion.multiply(H)),st.position!==null&&(H.setFromRotationMatrix(v),q.fromArray(st.position),q.applyQuaternion(H),zt.position.add(q)),zt.updateMatrixWorld(),s.isPresenting===!1)return Z;J.near=Z.near,rt.near=Z.near,J.far=Z.far,rt.far=Z.far,J.matrixWorldInverse.fromArray(a.leftViewMatrix),rt.matrixWorldInverse.fromArray(a.rightViewMatrix),y.getInverse(v),P==="stage"&&(J.matrixWorldInverse.multiply(y),rt.matrixWorldInverse.multiply(y)),Z=zt.parent,Z!==null&&(k.getInverse(Z.matrixWorld),J.matrixWorldInverse.multiply(k),rt.matrixWorldInverse.multiply(k)),J.matrixWorld.getInverse(J.matrixWorldInverse),rt.matrixWorld.getInverse(rt.matrixWorldInverse),J.projectionMatrix.fromArray(a.leftProjectionMatrix),rt.projectionMatrix.fromArray(a.rightProjectionMatrix),fe(xt,J,rt),Z=s.getLayers(),Z.length&&(Z=Z[0],Z.leftBounds!==null&&Z.leftBounds.length===4&&J.bounds.fromArray(Z.leftBounds),Z.rightBounds!==null&&Z.rightBounds.length===4&&rt.bounds.fromArray(Z.rightBounds));t:for(Z=0;Z<f.length;Z++){st=f[Z];e:{zt=Z;for(var ee=navigator.getGamepads&&navigator.getGamepads(),$t=0,qt=0,Te=ee.length;$t<Te;$t++){var de=ee[$t];if(de&&(de.id==="Daydream Controller"||de.id==="Gear VR Controller"||de.id==="Oculus Go Controller"||de.id==="OpenVR Gamepad"||de.id.startsWith("Oculus Touch")||de.id.startsWith("Spatial Controller"))){if(qt===zt){zt=de;break e}qt++}}zt=void 0}if(zt!==void 0&&zt.pose!==void 0){if(zt.pose===null)break t;ee=zt.pose,ee.hasPosition===!1&&st.position.set(.2,-.6,-.05),ee.position!==null&&st.position.fromArray(ee.position),ee.orientation!==null&&st.quaternion.fromArray(ee.orientation),st.matrix.compose(st.position,st.quaternion,st.scale),st.matrix.premultiply(v),st.matrix.decompose(st.position,st.quaternion,st.scale),st.matrixWorldNeedsUpdate=!0,st.visible=!0,ee=zt.id==="Daydream Controller"?0:1,wt[Z]!==zt.buttons[ee].pressed&&(wt[Z]=zt.buttons[ee].pressed,wt[Z]===!0?st.dispatchEvent({type:"selectstart"}):(st.dispatchEvent({type:"selectend"}),st.dispatchEvent({type:"select"})))}else st.visible=!1}return xt},this.getStandingMatrix=function(){return v},this.isPresenting=e;var Vt=new x;this.setAnimationLoop=function(Z){Vt.setAnimationLoop(Z)},this.submitFrame=function(){e()&&s.submitFrame()},this.dispose=function(){typeof window<"u"&&window.removeEventListener("vrdisplaypresentchange",i)}}function Pe(t){function e(){return f!==null&&y!==null}function i(At){var wt=k[H.indexOf(At.inputSource)];wt&&wt.dispatchEvent({type:At.type})}function n(){t.setFramebuffer(null),gt.stop()}function s(At,wt){wt===null?At.matrixWorld.copy(At.matrix):At.matrixWorld.multiplyMatrices(wt.matrixWorld,At.matrix),At.matrixWorldInverse.getInverse(At.matrixWorld)}var a=t.context,c=null,f=null,v=1,y=null,A="stage",P=null,k=[],H=[],q=new ye;q.layers.enable(1),q.viewport=new T;var J=new ye;J.layers.enable(2),J.viewport=new T;var rt=new Fe([q,J]);rt.layers.enable(1),rt.layers.enable(2),this.enabled=!1,this.getController=function(At){var wt=k[At];return wt===void 0&&(wt=new ci,wt.matrixAutoUpdate=!1,wt.visible=!1,k[At]=wt),wt},this.getDevice=function(){return c},this.setDevice=function(At){At!==void 0&&(c=At),At instanceof XRDevice&&a.setCompatibleXRDevice(At)},this.setFramebufferScaleFactor=function(At){v=At},this.setFrameOfReferenceType=function(At){A=At},this.setSession=function(At){f=At,f!==null&&(f.addEventListener("select",i),f.addEventListener("selectstart",i),f.addEventListener("selectend",i),f.addEventListener("end",n),f.baseLayer=new XRWebGLLayer(f,a,{framebufferScaleFactor:v}),f.requestFrameOfReference(A).then(function(wt){y=wt,t.setFramebuffer(f.baseLayer.framebuffer),gt.setContext(f),gt.start()}),H=f.getInputSources(),f.addEventListener("inputsourceschange",function(){H=f.getInputSources(),console.log(H);for(var wt=0;wt<k.length;wt++)k[wt].userData.inputSource=H[wt]}))},this.getCamera=function(At){if(e()){var wt=At.parent,Vt=rt.cameras;s(rt,wt);for(var Z=0;Z<Vt.length;Z++)s(Vt[Z],wt);for(At.matrixWorld.copy(rt.matrixWorld),At=At.children,Z=0,wt=At.length;Z<wt;Z++)At[Z].updateMatrixWorld(!0);return fe(rt,q,J),rt}return At},this.isPresenting=e;var xt=null,gt=new x;gt.setAnimationLoop(function(At,wt){if(P=wt.getDevicePose(y),P!==null)for(var Vt=f.baseLayer,Z=wt.views,st=0;st<Z.length;st++){var zt=Z[st],ee=Vt.getViewport(zt),$t=P.getViewMatrix(zt),qt=rt.cameras[st];qt.matrix.fromArray($t).getInverse(qt.matrix),qt.projectionMatrix.fromArray(zt.projectionMatrix),qt.viewport.set(ee.x,ee.y,ee.width,ee.height),st===0&&rt.matrix.copy(qt.matrix)}for(st=0;st<k.length;st++){if(Vt=k[st],(Z=H[st])&&(Z=wt.getInputPose(Z,y),Z!==null)){"targetRay"in Z?Vt.matrix.elements=Z.targetRay.transformMatrix:"pointerMatrix"in Z&&(Vt.matrix.elements=Z.pointerMatrix),Vt.matrix.decompose(Vt.position,Vt.rotation,Vt.scale),Vt.visible=!0;continue}Vt.visible=!1}xt&&xt(At)}),this.setAnimationLoop=function(At){xt=At},this.dispose=function(){},this.getStandingMatrix=function(){return console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed."),new THREE.Matrix4},this.submitFrame=function(){}}function xe(t){var e;function i(){ii=new Jt(ne),Ze=new Qi(ne,ii,t),Ze.isWebGL2||(ii.get("WEBGL_depth_texture"),ii.get("OES_texture_float"),ii.get("OES_texture_half_float"),ii.get("OES_texture_half_float_linear"),ii.get("OES_standard_derivatives"),ii.get("OES_element_index_uint"),ii.get("ANGLE_instanced_arrays")),ii.get("OES_texture_float_linear"),In=new He(ne,ii,Ze),li=new ue(ne,ii,In,Ze),li.scissor(Xi.copy(Ye).multiplyScalar(Qe)),li.viewport(yn.copy(Ut).multiplyScalar(Qe)),xn=new dt,Pn=new at,Bs=new je(ne,ii,li,Pn,Ze,In,xn),La=new M(ne),Yh=new Wt(ne,La,xn),Ra=new Kt(Yh,xn),Zh=new ie(ne),Uo=new lt(qt,ii,Ze),Ml=new Ot,Go=new he,lo=new Oi(qt,li,Ra,Z),Jh=new mn(ne,ii,xn,Ze),er=new pt(ne,ii,xn,Ze),xn.programs=Uo.programs,qt.context=ne,qt.capabilities=Ze,qt.extensions=ii,qt.properties=Pn,qt.renderLists=Ml,qt.state=li,qt.info=xn}function n(ct){ct.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),Te=!0}function s(){console.log("THREE.WebGLRenderer: Context Restored."),Te=!1,i()}function a(ct){ct=ct.target,ct.removeEventListener("dispose",a),c(ct),Pn.remove(ct)}function c(ct){var Tt=Pn.get(ct).program;ct.program=void 0,Tt!==void 0&&Uo.releaseProgram(Tt)}function f(ct,Tt){ct.render(function(mt){qt.renderBufferImmediate(mt,Tt)})}function v(ct,Tt,mt){if(ct.visible!==!1){if(ct.layers.test(Tt.layers)){if(ct.isLight)$t.pushLight(ct),ct.castShadow&&$t.pushShadow(ct);else if(ct.isSprite){if(!ct.frustumCulled||Vi.intersectsSprite(ct)){mt&&Ai.setFromMatrixPosition(ct.matrixWorld).applyMatrix4(Ci);var Me=Ra.update(ct),De=ct.material;ee.push(ct,Me,De,Ai.z,null)}}else if(ct.isImmediateRenderObject)mt&&Ai.setFromMatrixPosition(ct.matrixWorld).applyMatrix4(Ci),ee.push(ct,null,ct.material,Ai.z,null);else if((ct.isMesh||ct.isLine||ct.isPoints)&&(ct.isSkinnedMesh&&ct.skeleton.update(),!ct.frustumCulled||Vi.intersectsObject(ct)))if(mt&&Ai.setFromMatrixPosition(ct.matrixWorld).applyMatrix4(Ci),Me=Ra.update(ct),De=ct.material,Array.isArray(De))for(var Ve=Me.groups,Se=0,$e=Ve.length;Se<$e;Se++){var Li=Ve[Se],Ji=De[Li.materialIndex];Ji&&Ji.visible&&ee.push(ct,Me,Ji,Ai.z,Li)}else De.visible&&ee.push(ct,Me,De,Ai.z,null)}for(ct=ct.children,Se=0,$e=ct.length;Se<$e;Se++)v(ct[Se],Tt,mt)}}function y(ct,Tt,mt,Me){for(var De=0,Ve=ct.length;De<Ve;De++){var Se=ct[De],$e=Se.object,Li=Se.geometry,Ji=Me===void 0?Se.material:Me;if(Se=Se.group,mt.isArrayCamera){An=mt;for(var ve=mt.cameras,Tr=0,Nn=ve.length;Tr<Nn;Tr++){var an=ve[Tr];if($e.layers.test(an.layers)){if("viewport"in an)li.viewport(yn.copy(an.viewport));else{var dr=an.bounds;li.viewport(yn.set(dr.x*Cn,dr.y*Ae,dr.z*Cn,dr.w*Ae).multiplyScalar(Qe))}$t.setupLights(an),A($e,Tt,an,Li,Ji,Se)}}}else An=null,A($e,Tt,mt,Li,Ji,Se)}}function A(ct,Tt,mt,Me,De,Ve){if(ct.onBeforeRender(qt,Tt,mt,Me,De,Ve),$t=Go.get(Tt,An||mt),ct.modelViewMatrix.multiplyMatrices(mt.matrixWorldInverse,ct.matrixWorld),ct.normalMatrix.getNormalMatrix(ct.modelViewMatrix),ct.isImmediateRenderObject){li.setMaterial(De);var Se=k(mt,Tt.fog,De,ct);We=e=null,Ke=!1,f(ct,Se)}else qt.renderBufferDirect(mt,Tt.fog,Me,De,ct,Ve);ct.onAfterRender(qt,Tt,mt,Me,De,Ve),$t=Go.get(Tt,An||mt)}function P(ct,Tt,mt){var Me=Pn.get(ct),De=$t.state.lights,Ve=Me.lightsHash,Se=De.state.hash;mt=Uo.getParameters(ct,De.state,$t.state.shadowsArray,Tt,Ce.numPlanes,Ce.numIntersection,mt);var $e=Uo.getProgramCode(ct,mt),Li=Me.program,Ji=!0;if(Li===void 0)ct.addEventListener("dispose",a);else if(Li.code!==$e)c(ct);else{if(Ve.stateID!==Se.stateID||Ve.directionalLength!==Se.directionalLength||Ve.pointLength!==Se.pointLength||Ve.spotLength!==Se.spotLength||Ve.rectAreaLength!==Se.rectAreaLength||Ve.hemiLength!==Se.hemiLength||Ve.shadowsLength!==Se.shadowsLength)Ve.stateID=Se.stateID,Ve.directionalLength=Se.directionalLength,Ve.pointLength=Se.pointLength,Ve.spotLength=Se.spotLength,Ve.rectAreaLength=Se.rectAreaLength,Ve.hemiLength=Se.hemiLength,Ve.shadowsLength=Se.shadowsLength;else if(mt.shaderID!==void 0)return;Ji=!1}if(Ji&&(mt.shaderID?($e=xs[mt.shaderID],Me.shader={name:ct.type,uniforms:Bn.clone($e.uniforms),vertexShader:$e.vertexShader,fragmentShader:$e.fragmentShader}):Me.shader={name:ct.type,uniforms:ct.uniforms,vertexShader:ct.vertexShader,fragmentShader:ct.fragmentShader},ct.onBeforeCompile(Me.shader,qt),$e=Uo.getProgramCode(ct,mt),Li=Uo.acquireProgram(ct,Me.shader,mt,$e),Me.program=Li,ct.program=Li),mt=Li.getAttributes(),ct.morphTargets)for($e=ct.numSupportedMorphTargets=0;$e<qt.maxMorphTargets;$e++)0<=mt["morphTarget"+$e]&&ct.numSupportedMorphTargets++;if(ct.morphNormals)for($e=ct.numSupportedMorphNormals=0;$e<qt.maxMorphNormals;$e++)0<=mt["morphNormal"+$e]&&ct.numSupportedMorphNormals++;mt=Me.shader.uniforms,(!ct.isShaderMaterial&&!ct.isRawShaderMaterial||ct.clipping===!0)&&(Me.numClippingPlanes=Ce.numPlanes,Me.numIntersection=Ce.numIntersection,mt.clippingPlanes=Ce.uniform),Me.fog=Tt,Ve===void 0&&(Me.lightsHash=Ve={}),Ve.stateID=Se.stateID,Ve.directionalLength=Se.directionalLength,Ve.pointLength=Se.pointLength,Ve.spotLength=Se.spotLength,Ve.rectAreaLength=Se.rectAreaLength,Ve.hemiLength=Se.hemiLength,Ve.shadowsLength=Se.shadowsLength,ct.lights&&(mt.ambientLightColor.value=De.state.ambient,mt.directionalLights.value=De.state.directional,mt.spotLights.value=De.state.spot,mt.rectAreaLights.value=De.state.rectArea,mt.pointLights.value=De.state.point,mt.hemisphereLights.value=De.state.hemi,mt.directionalShadowMap.value=De.state.directionalShadowMap,mt.directionalShadowMatrix.value=De.state.directionalShadowMatrix,mt.spotShadowMap.value=De.state.spotShadowMap,mt.spotShadowMatrix.value=De.state.spotShadowMatrix,mt.pointShadowMap.value=De.state.pointShadowMap,mt.pointShadowMatrix.value=De.state.pointShadowMatrix),ct=Me.program.getUniforms(),ct=hs.seqWithValue(ct.seq,mt),Me.uniformsList=ct}function k(ct,Tt,mt,Me){sn=0;var De=Pn.get(mt),Ve=De.lightsHash,Se=$t.state.lights.state.hash;Xe&&(ri||ct!==fi)&&Ce.setState(mt.clippingPlanes,mt.clipIntersection,mt.clipShadows,ct,De,ct===fi&&mt.id===ae),mt.needsUpdate===!1&&(De.program===void 0||mt.fog&&De.fog!==Tt?mt.needsUpdate=!0:(!mt.lights||Ve.stateID===Se.stateID&&Ve.directionalLength===Se.directionalLength&&Ve.pointLength===Se.pointLength&&Ve.spotLength===Se.spotLength&&Ve.rectAreaLength===Se.rectAreaLength&&Ve.hemiLength===Se.hemiLength&&Ve.shadowsLength===Se.shadowsLength)&&(De.numClippingPlanes===void 0||De.numClippingPlanes===Ce.numPlanes&&De.numIntersection===Ce.numIntersection)||(mt.needsUpdate=!0)),mt.needsUpdate&&(P(mt,Tt,Me),mt.needsUpdate=!1);var $e=!1,Li=!1,Ji=!1;Ve=De.program,Se=Ve.getUniforms();var ve=De.shader.uniforms;if(li.useProgram(Ve.program)&&(Ji=Li=$e=!0),mt.id!==ae&&(ae=mt.id,Li=!0),($e||fi!==ct)&&(Se.setValue(ne,"projectionMatrix",ct.projectionMatrix),Ze.logarithmicDepthBuffer&&Se.setValue(ne,"logDepthBufFC",2/(Math.log(ct.far+1)/Math.LN2)),fi!==ct&&(fi=ct,Ji=Li=!0),(mt.isShaderMaterial||mt.isMeshPhongMaterial||mt.isMeshStandardMaterial||mt.envMap)&&($e=Se.map.cameraPosition,$e!==void 0&&$e.setValue(ne,Ai.setFromMatrixPosition(ct.matrixWorld))),(mt.isMeshPhongMaterial||mt.isMeshLambertMaterial||mt.isMeshBasicMaterial||mt.isMeshStandardMaterial||mt.isShaderMaterial||mt.skinning)&&Se.setValue(ne,"viewMatrix",ct.matrixWorldInverse)),mt.skinning&&(Se.setOptional(ne,Me,"bindMatrix"),Se.setOptional(ne,Me,"bindMatrixInverse"),ct=Me.skeleton))if($e=ct.bones,Ze.floatVertexTextures){if(ct.boneTexture===void 0){$e=Math.sqrt(4*$e.length),$e=pi.ceilPowerOfTwo($e),$e=Math.max($e,4);var Tr=new Float32Array($e*$e*4);Tr.set(ct.boneMatrices);var Nn=new I(Tr,$e,$e,1023,1015);Nn.needsUpdate=!0,ct.boneMatrices=Tr,ct.boneTexture=Nn,ct.boneTextureSize=$e}Se.setValue(ne,"boneTexture",ct.boneTexture),Se.setValue(ne,"boneTextureSize",ct.boneTextureSize)}else Se.setOptional(ne,ct,"boneMatrices");return Li&&(Se.setValue(ne,"toneMappingExposure",qt.toneMappingExposure),Se.setValue(ne,"toneMappingWhitePoint",qt.toneMappingWhitePoint),mt.lights&&(Li=Ji,ve.ambientLightColor.needsUpdate=Li,ve.directionalLights.needsUpdate=Li,ve.pointLights.needsUpdate=Li,ve.spotLights.needsUpdate=Li,ve.rectAreaLights.needsUpdate=Li,ve.hemisphereLights.needsUpdate=Li),Tt&&mt.fog&&(ve.fogColor.value=Tt.color,Tt.isFog?(ve.fogNear.value=Tt.near,ve.fogFar.value=Tt.far):Tt.isFogExp2&&(ve.fogDensity.value=Tt.density)),mt.isMeshBasicMaterial?H(ve,mt):mt.isMeshLambertMaterial?(H(ve,mt),mt.emissiveMap&&(ve.emissiveMap.value=mt.emissiveMap)):mt.isMeshPhongMaterial?(H(ve,mt),mt.isMeshToonMaterial?(q(ve,mt),mt.gradientMap&&(ve.gradientMap.value=mt.gradientMap)):q(ve,mt)):mt.isMeshStandardMaterial?(H(ve,mt),mt.isMeshPhysicalMaterial?(J(ve,mt),ve.reflectivity.value=mt.reflectivity,ve.clearCoat.value=mt.clearCoat,ve.clearCoatRoughness.value=mt.clearCoatRoughness):J(ve,mt)):mt.isMeshMatcapMaterial?(H(ve,mt),mt.matcap&&(ve.matcap.value=mt.matcap),mt.bumpMap&&(ve.bumpMap.value=mt.bumpMap,ve.bumpScale.value=mt.bumpScale,mt.side===1&&(ve.bumpScale.value*=-1)),mt.normalMap&&(ve.normalMap.value=mt.normalMap,ve.normalScale.value.copy(mt.normalScale),mt.side===1&&ve.normalScale.value.negate()),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isMeshDepthMaterial?(H(ve,mt),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isMeshDistanceMaterial?(H(ve,mt),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias),ve.referencePosition.value.copy(mt.referencePosition),ve.nearDistance.value=mt.nearDistance,ve.farDistance.value=mt.farDistance):mt.isMeshNormalMaterial?(H(ve,mt),mt.bumpMap&&(ve.bumpMap.value=mt.bumpMap,ve.bumpScale.value=mt.bumpScale,mt.side===1&&(ve.bumpScale.value*=-1)),mt.normalMap&&(ve.normalMap.value=mt.normalMap,ve.normalScale.value.copy(mt.normalScale),mt.side===1&&ve.normalScale.value.negate()),mt.displacementMap&&(ve.displacementMap.value=mt.displacementMap,ve.displacementScale.value=mt.displacementScale,ve.displacementBias.value=mt.displacementBias)):mt.isLineBasicMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,mt.isLineDashedMaterial&&(ve.dashSize.value=mt.dashSize,ve.totalSize.value=mt.dashSize+mt.gapSize,ve.scale.value=mt.scale)):mt.isPointsMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,ve.size.value=mt.size*Qe,ve.scale.value=.5*Ae,ve.map.value=mt.map,mt.map!==null&&(mt.map.matrixAutoUpdate===!0&&mt.map.updateMatrix(),ve.uvTransform.value.copy(mt.map.matrix))):mt.isSpriteMaterial?(ve.diffuse.value=mt.color,ve.opacity.value=mt.opacity,ve.rotation.value=mt.rotation,ve.map.value=mt.map,mt.map!==null&&(mt.map.matrixAutoUpdate===!0&&mt.map.updateMatrix(),ve.uvTransform.value.copy(mt.map.matrix))):mt.isShadowMaterial&&(ve.color.value=mt.color,ve.opacity.value=mt.opacity),ve.ltc_1!==void 0&&(ve.ltc_1.value=qe.LTC_1),ve.ltc_2!==void 0&&(ve.ltc_2.value=qe.LTC_2),hs.upload(ne,De.uniformsList,ve,qt)),mt.isShaderMaterial&&mt.uniformsNeedUpdate===!0&&(hs.upload(ne,De.uniformsList,ve,qt),mt.uniformsNeedUpdate=!1),mt.isSpriteMaterial&&Se.setValue(ne,"center",Me.center),Se.setValue(ne,"modelViewMatrix",Me.modelViewMatrix),Se.setValue(ne,"normalMatrix",Me.normalMatrix),Se.setValue(ne,"modelMatrix",Me.matrixWorld),Ve}function H(ct,Tt){if(ct.opacity.value=Tt.opacity,Tt.color&&(ct.diffuse.value=Tt.color),Tt.emissive&&ct.emissive.value.copy(Tt.emissive).multiplyScalar(Tt.emissiveIntensity),Tt.map&&(ct.map.value=Tt.map),Tt.alphaMap&&(ct.alphaMap.value=Tt.alphaMap),Tt.specularMap&&(ct.specularMap.value=Tt.specularMap),Tt.envMap&&(ct.envMap.value=Tt.envMap,ct.flipEnvMap.value=Tt.envMap&&Tt.envMap.isCubeTexture?-1:1,ct.reflectivity.value=Tt.reflectivity,ct.refractionRatio.value=Tt.refractionRatio,ct.maxMipLevel.value=Pn.get(Tt.envMap).__maxMipLevel),Tt.lightMap&&(ct.lightMap.value=Tt.lightMap,ct.lightMapIntensity.value=Tt.lightMapIntensity),Tt.aoMap&&(ct.aoMap.value=Tt.aoMap,ct.aoMapIntensity.value=Tt.aoMapIntensity),Tt.map)var mt=Tt.map;else Tt.specularMap?mt=Tt.specularMap:Tt.displacementMap?mt=Tt.displacementMap:Tt.normalMap?mt=Tt.normalMap:Tt.bumpMap?mt=Tt.bumpMap:Tt.roughnessMap?mt=Tt.roughnessMap:Tt.metalnessMap?mt=Tt.metalnessMap:Tt.alphaMap?mt=Tt.alphaMap:Tt.emissiveMap&&(mt=Tt.emissiveMap);mt!==void 0&&(mt.isWebGLRenderTarget&&(mt=mt.texture),mt.matrixAutoUpdate===!0&&mt.updateMatrix(),ct.uvTransform.value.copy(mt.matrix))}function q(ct,Tt){ct.specular.value=Tt.specular,ct.shininess.value=Math.max(Tt.shininess,1e-4),Tt.emissiveMap&&(ct.emissiveMap.value=Tt.emissiveMap),Tt.bumpMap&&(ct.bumpMap.value=Tt.bumpMap,ct.bumpScale.value=Tt.bumpScale,Tt.side===1&&(ct.bumpScale.value*=-1)),Tt.normalMap&&(ct.normalMap.value=Tt.normalMap,ct.normalScale.value.copy(Tt.normalScale),Tt.side===1&&ct.normalScale.value.negate()),Tt.displacementMap&&(ct.displacementMap.value=Tt.displacementMap,ct.displacementScale.value=Tt.displacementScale,ct.displacementBias.value=Tt.displacementBias)}function J(ct,Tt){ct.roughness.value=Tt.roughness,ct.metalness.value=Tt.metalness,Tt.roughnessMap&&(ct.roughnessMap.value=Tt.roughnessMap),Tt.metalnessMap&&(ct.metalnessMap.value=Tt.metalnessMap),Tt.emissiveMap&&(ct.emissiveMap.value=Tt.emissiveMap),Tt.bumpMap&&(ct.bumpMap.value=Tt.bumpMap,ct.bumpScale.value=Tt.bumpScale,Tt.side===1&&(ct.bumpScale.value*=-1)),Tt.normalMap&&(ct.normalMap.value=Tt.normalMap,ct.normalScale.value.copy(Tt.normalScale),Tt.side===1&&ct.normalScale.value.negate()),Tt.displacementMap&&(ct.displacementMap.value=Tt.displacementMap,ct.displacementScale.value=Tt.displacementScale,ct.displacementBias.value=Tt.displacementBias),Tt.envMap&&(ct.envMapIntensity.value=Tt.envMapIntensity)}console.log("THREE.WebGLRenderer","98"),t=t||{};var rt=t.canvas!==void 0?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),xt=t.context!==void 0?t.context:null,gt=t.alpha!==void 0?t.alpha:!1,At=t.depth!==void 0?t.depth:!0,wt=t.stencil!==void 0?t.stencil:!0,Vt=t.antialias!==void 0?t.antialias:!1,Z=t.premultipliedAlpha!==void 0?t.premultipliedAlpha:!0,st=t.preserveDrawingBuffer!==void 0?t.preserveDrawingBuffer:!1,zt=t.powerPreference!==void 0?t.powerPreference:"default",ee=null,$t=null;this.domElement=rt,this.context=null,this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.physicallyCorrectLights=this.gammaOutput=this.gammaInput=!1,this.toneMappingWhitePoint=this.toneMappingExposure=this.toneMapping=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var qt=this,Te=!1,de=null,Ie=null,be=null,ae=-1,We=e=null,Ke=!1,fi=null,An=null,yn=new T,Xi=new T,Hi=null,sn=0,Cn=rt.width,Ae=rt.height,Qe=1,Ut=new T(0,0,Cn,Ae),Ye=new T(0,0,Cn,Ae),ei=!1,Vi=new E,Ce=new W,Xe=!1,ri=!1,Ci=new p,Ai=new u;try{gt={alpha:gt,depth:At,stencil:wt,antialias:Vt,premultipliedAlpha:Z,preserveDrawingBuffer:st,powerPreference:zt},rt.addEventListener("webglcontextlost",n,!1),rt.addEventListener("webglcontextrestored",s,!1);var ne=xt||rt.getContext("webgl",gt)||rt.getContext("experimental-webgl",gt);if(ne===null)throw rt.getContext("webgl")!==null?Error("Error creating WebGL context with your selected attributes."):Error("Error creating WebGL context.");ne.getShaderPrecisionFormat===void 0&&(ne.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(ct){console.error("THREE.WebGLRenderer: "+ct.message)}var ii,Ze,li,xn,Pn,Bs,La,Yh,Ra,Uo,Ml,Go,lo,Zh,Jh,er,In;i();var Ms=null;typeof navigator<"u"&&(Ms="xr"in navigator?new Pe(qt):new mi(qt)),this.vr=Ms;var Bu=new _e(qt,Ra,Ze.maxTextureSize);this.shadowMap=Bu,this.getContext=function(){return ne},this.getContextAttributes=function(){return ne.getContextAttributes()},this.forceContextLoss=function(){var ct=ii.get("WEBGL_lose_context");ct&&ct.loseContext()},this.forceContextRestore=function(){var ct=ii.get("WEBGL_lose_context");ct&&ct.restoreContext()},this.getPixelRatio=function(){return Qe},this.setPixelRatio=function(ct){ct!==void 0&&(Qe=ct,this.setSize(Cn,Ae,!1))},this.getSize=function(){return{width:Cn,height:Ae}},this.setSize=function(ct,Tt,mt){Ms.isPresenting()?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(Cn=ct,Ae=Tt,rt.width=ct*Qe,rt.height=Tt*Qe,mt!==!1&&(rt.style.width=ct+"px",rt.style.height=Tt+"px"),this.setViewport(0,0,ct,Tt))},this.getDrawingBufferSize=function(){return{width:Cn*Qe,height:Ae*Qe}},this.setDrawingBufferSize=function(ct,Tt,mt){Cn=ct,Ae=Tt,Qe=mt,rt.width=ct*mt,rt.height=Tt*mt,this.setViewport(0,0,ct,Tt)},this.getCurrentViewport=function(){return yn},this.setViewport=function(ct,Tt,mt,Me){Ut.set(ct,Ae-Tt-Me,mt,Me),li.viewport(yn.copy(Ut).multiplyScalar(Qe))},this.setScissor=function(ct,Tt,mt,Me){Ye.set(ct,Ae-Tt-Me,mt,Me),li.scissor(Xi.copy(Ye).multiplyScalar(Qe))},this.setScissorTest=function(ct){li.setScissorTest(ei=ct)},this.getClearColor=function(){return lo.getClearColor()},this.setClearColor=function(){lo.setClearColor.apply(lo,arguments)},this.getClearAlpha=function(){return lo.getClearAlpha()},this.setClearAlpha=function(){lo.setClearAlpha.apply(lo,arguments)},this.clear=function(ct,Tt,mt){var Me=0;(ct===void 0||ct)&&(Me|=16384),(Tt===void 0||Tt)&&(Me|=256),(mt===void 0||mt)&&(Me|=1024),ne.clear(Me)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){rt.removeEventListener("webglcontextlost",n,!1),rt.removeEventListener("webglcontextrestored",s,!1),Ml.dispose(),Go.dispose(),Pn.dispose(),Ra.dispose(),Ms.dispose(),Ns.stop()},this.renderBufferImmediate=function(ct,Tt){li.initAttributes();var mt=Pn.get(ct);ct.hasPositions&&!mt.position&&(mt.position=ne.createBuffer()),ct.hasNormals&&!mt.normal&&(mt.normal=ne.createBuffer()),ct.hasUvs&&!mt.uv&&(mt.uv=ne.createBuffer()),ct.hasColors&&!mt.color&&(mt.color=ne.createBuffer()),Tt=Tt.getAttributes(),ct.hasPositions&&(ne.bindBuffer(34962,mt.position),ne.bufferData(34962,ct.positionArray,35048),li.enableAttribute(Tt.position),ne.vertexAttribPointer(Tt.position,3,5126,!1,0,0)),ct.hasNormals&&(ne.bindBuffer(34962,mt.normal),ne.bufferData(34962,ct.normalArray,35048),li.enableAttribute(Tt.normal),ne.vertexAttribPointer(Tt.normal,3,5126,!1,0,0)),ct.hasUvs&&(ne.bindBuffer(34962,mt.uv),ne.bufferData(34962,ct.uvArray,35048),li.enableAttribute(Tt.uv),ne.vertexAttribPointer(Tt.uv,2,5126,!1,0,0)),ct.hasColors&&(ne.bindBuffer(34962,mt.color),ne.bufferData(34962,ct.colorArray,35048),li.enableAttribute(Tt.color),ne.vertexAttribPointer(Tt.color,3,5126,!1,0,0)),li.disableUnusedAttributes(),ne.drawArrays(4,0,ct.count),ct.count=0},this.renderBufferDirect=function(ct,Tt,mt,Me,De,Ve){var Se=De.isMesh&&0>De.normalMatrix.determinant();li.setMaterial(Me,Se);var $e=k(ct,Tt,Me,De),Li=!1;(e!==mt.id||We!==$e.id||Ke!==(Me.wireframe===!0))&&(e=mt.id,We=$e.id,Ke=Me.wireframe===!0,Li=!0),De.morphTargetInfluences&&(Zh.update(De,mt,Me,$e),Li=!0),Se=mt.index;var Ji=mt.attributes.position;if(Tt=1,Me.wireframe===!0&&(Se=Yh.getWireframeAttribute(mt),Tt=2),ct=Jh,Se!==null){var ve=La.get(Se);ct=er,ct.setIndex(ve)}if(Li){if(mt&&mt.isInstancedBufferGeometry&!Ze.isWebGL2&&ii.get("ANGLE_instanced_arrays")===null)console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");else{li.initAttributes(),Li=mt.attributes,$e=$e.getAttributes();var Tr=Me.defaultAttributeValues;for(ir in $e){var Nn=$e[ir];if(0<=Nn){var an=Li[ir];if(an!==void 0){var dr=an.normalized,$h=an.itemSize,Ss=La.get(an);if(Ss!==void 0){var Kh=Ss.buffer,hh=Ss.type;if(Ss=Ss.bytesPerElement,an.isInterleavedBufferAttribute){var Ia=an.data,Nu=Ia.stride;an=an.offset,Ia&&Ia.isInstancedInterleavedBuffer?(li.enableAttributeAndDivisor(Nn,Ia.meshPerAttribute),mt.maxInstancedCount===void 0&&(mt.maxInstancedCount=Ia.meshPerAttribute*Ia.count)):li.enableAttribute(Nn),ne.bindBuffer(34962,Kh),ne.vertexAttribPointer(Nn,$h,hh,dr,Nu*Ss,an*Ss)}else an.isInstancedBufferAttribute?(li.enableAttributeAndDivisor(Nn,an.meshPerAttribute),mt.maxInstancedCount===void 0&&(mt.maxInstancedCount=an.meshPerAttribute*an.count)):li.enableAttribute(Nn),ne.bindBuffer(34962,Kh),ne.vertexAttribPointer(Nn,$h,hh,dr,0,0)}}else if(Tr!==void 0&&(dr=Tr[ir],dr!==void 0))switch(dr.length){case 2:ne.vertexAttrib2fv(Nn,dr);break;case 3:ne.vertexAttrib3fv(Nn,dr);break;case 4:ne.vertexAttrib4fv(Nn,dr);break;default:ne.vertexAttrib1fv(Nn,dr)}}}li.disableUnusedAttributes()}Se!==null&&ne.bindBuffer(34963,ve.buffer)}ve=1/0,Se!==null?ve=Se.count:Ji!==void 0&&(ve=Ji.count),Se=mt.drawRange.start*Tt,Ji=Ve!==null?Ve.start*Tt:0;var ir=Math.max(Se,Ji);if(Ve=Math.max(0,Math.min(ve,Se+mt.drawRange.count*Tt,Ji+(Ve!==null?Ve.count*Tt:1/0))-1-ir+1),Ve!==0){if(De.isMesh)if(Me.wireframe===!0)li.setLineWidth(Me.wireframeLinewidth*(Ie===null?Qe:1)),ct.setMode(1);else switch(De.drawMode){case 0:ct.setMode(4);break;case 1:ct.setMode(5);break;case 2:ct.setMode(6)}else De.isLine?(Me=Me.linewidth,Me===void 0&&(Me=1),li.setLineWidth(Me*(Ie===null?Qe:1)),De.isLineSegments?ct.setMode(1):De.isLineLoop?ct.setMode(2):ct.setMode(3)):De.isPoints?ct.setMode(0):De.isSprite&&ct.setMode(4);mt&&mt.isInstancedBufferGeometry?0<mt.maxInstancedCount&&ct.renderInstances(mt,ir,Ve):ct.render(ir,Ve)}},this.compile=function(ct,Tt){$t=Go.get(ct,Tt),$t.init(),ct.traverse(function(mt){mt.isLight&&($t.pushLight(mt),mt.castShadow&&$t.pushShadow(mt))}),$t.setupLights(Tt),ct.traverse(function(mt){if(mt.material)if(Array.isArray(mt.material))for(var Me=0;Me<mt.material.length;Me++)P(mt.material[Me],ct.fog,mt);else P(mt.material,ct.fog,mt)})};var Oa=null,Ns=new x;Ns.setAnimationLoop(function(ct){Ms.isPresenting()||Oa&&Oa(ct)}),typeof window<"u"&&Ns.setContext(window),this.setAnimationLoop=function(ct){Oa=ct,Ms.setAnimationLoop(ct),Ns.start()},this.render=function(ct,Tt,mt,Me){if(!Tt||!Tt.isCamera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else if(!Te){We=e=null,Ke=!1,ae=-1,fi=null,ct.autoUpdate===!0&&ct.updateMatrixWorld(),Tt.parent===null&&Tt.updateMatrixWorld(),Ms.enabled&&(Tt=Ms.getCamera(Tt)),$t=Go.get(ct,Tt),$t.init(),ct.onBeforeRender(qt,ct,Tt,mt),Ci.multiplyMatrices(Tt.projectionMatrix,Tt.matrixWorldInverse),Vi.setFromMatrix(Ci),ri=this.localClippingEnabled,Xe=Ce.init(this.clippingPlanes,ri,Tt),ee=Ml.get(ct,Tt),ee.init(),v(ct,Tt,qt.sortObjects),qt.sortObjects===!0&&ee.sort(),Xe&&Ce.beginShadows(),Bu.render($t.state.shadowsArray,ct,Tt),$t.setupLights(Tt),Xe&&Ce.endShadows(),this.info.autoReset&&this.info.reset(),mt===void 0&&(mt=null),this.setRenderTarget(mt),lo.render(ee,ct,Tt,Me),Me=ee.opaque;var De=ee.transparent;if(ct.overrideMaterial){var Ve=ct.overrideMaterial;Me.length&&y(Me,ct,Tt,Ve),De.length&&y(De,ct,Tt,Ve)}else Me.length&&y(Me,ct,Tt),De.length&&y(De,ct,Tt);mt&&Bs.updateRenderTargetMipmap(mt),li.buffers.depth.setTest(!0),li.buffers.depth.setMask(!0),li.buffers.color.setMask(!0),li.setPolygonOffset(!1),ct.onAfterRender(qt,ct,Tt),Ms.enabled&&Ms.submitFrame(),$t=ee=null}},this.allocTextureUnit=function(){var ct=sn;return ct>=Ze.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+ct+" texture units while this GPU supports only "+Ze.maxTextures),sn+=1,ct},this.setTexture2D=function(){var ct=!1;return function(Tt,mt){Tt&&Tt.isWebGLRenderTarget&&(ct||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),ct=!0),Tt=Tt.texture),Bs.setTexture2D(Tt,mt)}}(),this.setTexture3D=function(){return function(ct,Tt){Bs.setTexture3D(ct,Tt)}}(),this.setTexture=function(){var ct=!1;return function(Tt,mt){ct||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),ct=!0),Bs.setTexture2D(Tt,mt)}}(),this.setTextureCube=function(){var ct=!1;return function(Tt,mt){Tt&&Tt.isWebGLRenderTargetCube&&(ct||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),ct=!0),Tt=Tt.texture),Tt&&Tt.isCubeTexture||Array.isArray(Tt.image)&&Tt.image.length===6?Bs.setTextureCube(Tt,mt):Bs.setTextureCubeDynamic(Tt,mt)}}(),this.setFramebuffer=function(ct){de=ct},this.getRenderTarget=function(){return Ie},this.setRenderTarget=function(ct){(Ie=ct)&&Pn.get(ct).__webglFramebuffer===void 0&&Bs.setupRenderTarget(ct);var Tt=de,mt=!1;ct?(Tt=Pn.get(ct).__webglFramebuffer,ct.isWebGLRenderTargetCube&&(Tt=Tt[ct.activeCubeFace],mt=!0),yn.copy(ct.viewport),Xi.copy(ct.scissor),Hi=ct.scissorTest):(yn.copy(Ut).multiplyScalar(Qe),Xi.copy(Ye).multiplyScalar(Qe),Hi=ei),be!==Tt&&(ne.bindFramebuffer(36160,Tt),be=Tt),li.viewport(yn),li.scissor(Xi),li.setScissorTest(Hi),mt&&(mt=Pn.get(ct.texture),ne.framebufferTexture2D(36160,36064,34069+ct.activeCubeFace,mt.__webglTexture,ct.activeMipMapLevel))},this.readRenderTargetPixels=function(ct,Tt,mt,Me,De,Ve){if(ct&&ct.isWebGLRenderTarget){var Se=Pn.get(ct).__webglFramebuffer;if(Se){var $e=!1;Se!==be&&(ne.bindFramebuffer(36160,Se),$e=!0);try{var Li=ct.texture,Ji=Li.format,ve=Li.type;Ji!==1023&&In.convert(Ji)!==ne.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):ve===1009||In.convert(ve)===ne.getParameter(35738)||ve===1015&&(Ze.isWebGL2||ii.get("OES_texture_float")||ii.get("WEBGL_color_buffer_float"))||ve===1016&&(Ze.isWebGL2?ii.get("EXT_color_buffer_float"):ii.get("EXT_color_buffer_half_float"))?ne.checkFramebufferStatus(36160)===36053?0<=Tt&&Tt<=ct.width-Me&&0<=mt&&mt<=ct.height-De&&ne.readPixels(Tt,mt,Me,De,In.convert(Ji),In.convert(ve),Ve):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{$e&&ne.bindFramebuffer(36160,be)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(ct,Tt,mt){var Me=Tt.image.width,De=Tt.image.height,Ve=In.convert(Tt.format);this.setTexture2D(Tt,0),ne.copyTexImage2D(3553,mt||0,Ve,ct.x,ct.y,Me,De,0)},this.copyTextureToTexture=function(ct,Tt,mt,Me){var De=Tt.image.width,Ve=Tt.image.height,Se=In.convert(mt.format),$e=In.convert(mt.type);this.setTexture2D(mt,0),Tt.isDataTexture?ne.texSubImage2D(3553,Me||0,ct.x,ct.y,De,Ve,Se,$e,Tt.image.data):ne.texSubImage2D(3553,Me||0,ct.x,ct.y,Se,$e,Tt.image)}}function Le(t,e){this.name="",this.color=new L(t),this.density=e!==void 0?e:25e-5}function Sn(t,e,i){this.name="",this.color=new L(t),this.near=e!==void 0?e:1,this.far=i!==void 0?i:1e3}function Xn(){B.call(this),this.type="Scene",this.overrideMaterial=this.fog=this.background=null,this.autoUpdate=!0}function Di(t,e){this.array=t,this.stride=e,this.count=t!==void 0?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function zi(t,e,i,n){this.data=t,this.itemSize=e,this.offset=i,this.normalized=n===!0}function Gi(t){Yt.call(this),this.type="SpriteMaterial",this.color=new L(16777215),this.map=null,this.rotation=0,this.sizeAttenuation=!0,this.lights=!1,this.transparent=!0,this.setValues(t)}function nn(t){if(B.call(this),this.type="Sprite",Pa===void 0){Pa=new Ft;var e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);e=new Di(e,5),Pa.setIndex([0,1,2,0,2,3]),Pa.addAttribute("position",new zi(e,3,0,!1)),Pa.addAttribute("uv",new zi(e,2,3,!1))}this.geometry=Pa,this.material=t!==void 0?t:new Gi,this.center=new o(.5,.5)}function rn(){B.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function un(t,e){if(t=t||[],this.bones=t.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),e===void 0)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new p)}function cn(){B.call(this),this.type="Bone"}function Ui(t,e){di.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new p,this.bindMatrixInverse=new p,t=this.initBones(),t=new un(t),this.bind(t,this.matrixWorld),this.normalizeSkinWeights()}function ki(t){Yt.call(this),this.type="LineBasicMaterial",this.color=new L(16777215),this.linewidth=1,this.linejoin=this.linecap="round",this.lights=!1,this.setValues(t)}function Wi(t,e,i){i===1&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),B.call(this),this.type="Line",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new ki({color:16777215*Math.random()})}function gi(t,e){Wi.call(this,t,e),this.type="LineSegments"}function cs(t,e){Wi.call(this,t,e),this.type="LineLoop"}function Fn(t){Yt.call(this),this.type="PointsMaterial",this.color=new L(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.lights=this.morphTargets=!1,this.setValues(t)}function oa(t,e){B.call(this),this.type="Points",this.geometry=t!==void 0?t:new Ft,this.material=e!==void 0?e:new Fn({color:16777215*Math.random()})}function Rh(t,e,i,n,s,a,c,f,v){_.call(this,t,e,i,n,s,a,c,f,v),this.generateMipmaps=!1}function qs(t,e,i,n,s,a,c,f,v,y,A,P){_.call(this,null,a,c,f,v,y,n,s,A,P),this.image={width:e,height:i},this.mipmaps=t,this.generateMipmaps=this.flipY=!1}function Za(t,e,i,n,s,a,c,f,v){_.call(this,t,e,i,n,s,a,c,f,v),this.needsUpdate=!0}function Ja(t,e,i,n,s,a,c,f,v,y){if(y=y!==void 0?y:1026,y!==1026&&y!==1027)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&y===1026&&(i=1012),i===void 0&&y===1027&&(i=1020),_.call(this,null,n,s,a,c,f,y,i,v),this.image={width:t,height:e},this.magFilter=c!==void 0?c:1003,this.minFilter=f!==void 0?f:1003,this.generateMipmaps=this.flipY=!1}function aa(t){Ft.call(this),this.type="WireframeGeometry";var e=[],i,n,s,a=[0,0],c={},f=["a","b","c"];if(t&&t.isGeometry){var v=t.faces,y=0;for(n=v.length;y<n;y++){var A=v[y];for(i=0;3>i;i++){var P=A[f[i]],k=A[f[(i+1)%3]];a[0]=Math.min(P,k),a[1]=Math.max(P,k),P=a[0]+","+a[1],c[P]===void 0&&(c[P]={index1:a[0],index2:a[1]})}}for(P in c)y=c[P],f=t.vertices[y.index1],e.push(f.x,f.y,f.z),f=t.vertices[y.index2],e.push(f.x,f.y,f.z)}else if(t&&t.isBufferGeometry)if(f=new u,t.index!==null){v=t.attributes.position,A=t.index;var H=t.groups;for(H.length===0&&(H=[{start:0,count:A.count,materialIndex:0}]),t=0,s=H.length;t<s;++t)for(y=H[t],i=y.start,n=y.count,y=i,n=i+n;y<n;y+=3)for(i=0;3>i;i++)P=A.getX(y+i),k=A.getX(y+(i+1)%3),a[0]=Math.min(P,k),a[1]=Math.max(P,k),P=a[0]+","+a[1],c[P]===void 0&&(c[P]={index1:a[0],index2:a[1]});for(P in c)y=c[P],f.fromBufferAttribute(v,y.index1),e.push(f.x,f.y,f.z),f.fromBufferAttribute(v,y.index2),e.push(f.x,f.y,f.z)}else for(v=t.attributes.position,y=0,n=v.count/3;y<n;y++)for(i=0;3>i;i++)c=3*y+i,f.fromBufferAttribute(v,c),e.push(f.x,f.y,f.z),c=3*y+(i+1)%3,f.fromBufferAttribute(v,c),e.push(f.x,f.y,f.z);this.addAttribute("position",new Et(e,3))}function $a(t,e,i){X.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:i},this.fromBufferGeometry(new la(t,e,i)),this.mergeVertices()}function la(t,e,i){Ft.call(this),this.type="ParametricBufferGeometry",this.parameters={func:t,slices:e,stacks:i};var n=[],s=[],a=[],c=[],f=new u,v=new u,y=new u,A=new u,P=new u,k,H;3>t.length&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var q=e+1;for(k=0;k<=i;k++){var J=k/i;for(H=0;H<=e;H++){var rt=H/e;t(rt,J,v),s.push(v.x,v.y,v.z),0<=rt-1e-5?(t(rt-1e-5,J,y),A.subVectors(v,y)):(t(rt+1e-5,J,y),A.subVectors(y,v)),0<=J-1e-5?(t(rt,J-1e-5,y),P.subVectors(v,y)):(t(rt,J+1e-5,y),P.subVectors(y,v)),f.crossVectors(A,P).normalize(),a.push(f.x,f.y,f.z),c.push(rt,J)}}for(k=0;k<i;k++)for(H=0;H<e;H++)t=k*q+H+1,f=(k+1)*q+H+1,v=(k+1)*q+H,n.push(k*q+H,t,v),n.push(t,f,v);this.setIndex(n),this.addAttribute("position",new Et(s,3)),this.addAttribute("normal",new Et(a,3)),this.addAttribute("uv",new Et(c,2))}function ji(t,e,i,n){X.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n},this.fromBufferGeometry(new xi(t,e,i,n)),this.mergeVertices()}function xi(t,e,i,n){function s(y){f.push(y.x,y.y,y.z)}function a(y,A){y*=3,A.x=t[y+0],A.y=t[y+1],A.z=t[y+2]}function c(y,A,P,k){0>k&&y.x===1&&(v[A]=y.x-1),P.x===0&&P.z===0&&(v[A]=k/2/Math.PI+.5)}Ft.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n},i=i||1,n=n||0;var f=[],v=[];(function(y){for(var A=new u,P=new u,k=new u,H=0;H<e.length;H+=3){a(e[H+0],A),a(e[H+1],P),a(e[H+2],k);var q,J,rt=A,xt=P,gt=k,At=Math.pow(2,y),wt=[];for(J=0;J<=At;J++){wt[J]=[];var Vt=rt.clone().lerp(gt,J/At),Z=xt.clone().lerp(gt,J/At),st=At-J;for(q=0;q<=st;q++)wt[J][q]=q===0&&J===At?Vt:Vt.clone().lerp(Z,q/st)}for(J=0;J<At;J++)for(q=0;q<2*(At-J)-1;q++)rt=Math.floor(q/2),q%2===0?(s(wt[J][rt+1]),s(wt[J+1][rt]),s(wt[J][rt])):(s(wt[J][rt+1]),s(wt[J+1][rt+1]),s(wt[J+1][rt]))}})(n),function(y){for(var A=new u,P=0;P<f.length;P+=3)A.x=f[P+0],A.y=f[P+1],A.z=f[P+2],A.normalize().multiplyScalar(y),f[P+0]=A.x,f[P+1]=A.y,f[P+2]=A.z}(i),function(){for(var y=new u,A=0;A<f.length;A+=3)y.x=f[A+0],y.y=f[A+1],y.z=f[A+2],v.push(Math.atan2(y.z,-y.x)/2/Math.PI+.5,1-(Math.atan2(-y.y,Math.sqrt(y.x*y.x+y.z*y.z))/Math.PI+.5));y=new u,A=new u;for(var P=new u,k=new u,H=new o,q=new o,J=new o,rt=0,xt=0;rt<f.length;rt+=9,xt+=6){y.set(f[rt+0],f[rt+1],f[rt+2]),A.set(f[rt+3],f[rt+4],f[rt+5]),P.set(f[rt+6],f[rt+7],f[rt+8]),H.set(v[xt+0],v[xt+1]),q.set(v[xt+2],v[xt+3]),J.set(v[xt+4],v[xt+5]),k.copy(y).add(A).add(P).divideScalar(3);var gt=Math.atan2(k.z,-k.x);c(H,xt+0,y,gt),c(q,xt+2,A,gt),c(J,xt+4,P,gt)}for(y=0;y<v.length;y+=6)A=v[y+0],P=v[y+2],k=v[y+4],H=Math.min(A,P,k),.9<Math.max(A,P,k)&&.1>H&&(.2>A&&(v[y+0]+=1),.2>P&&(v[y+2]+=1),.2>k&&(v[y+4]+=1))}(),this.addAttribute("position",new Et(f,3)),this.addAttribute("normal",new Et(f.slice(),3)),this.addAttribute("uv",new Et(v,2)),n===0?this.computeVertexNormals():this.normalizeNormals()}function Ka(t,e){X.call(this),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new ha(t,e)),this.mergeVertices()}function ha(t,e){xi.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],t,e),this.type="TetrahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Qa(t,e){X.call(this),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new _o(t,e)),this.mergeVertices()}function _o(t,e){xi.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],t,e),this.type="OctahedronBufferGeometry",this.parameters={radius:t,detail:e}}function tl(t,e){X.call(this),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new ua(t,e)),this.mergeVertices()}function ua(t,e){var i=(1+Math.sqrt(5))/2;xi.call(this,[-1,i,0,1,i,0,-1,-i,0,1,-i,0,0,-1,i,0,1,i,0,-1,-i,0,1,-i,i,0,-1,i,0,1,-i,0,-1,-i,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],t,e),this.type="IcosahedronBufferGeometry",this.parameters={radius:t,detail:e}}function ca(t,e){X.call(this),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new fa(t,e)),this.mergeVertices()}function fa(t,e){var i=(1+Math.sqrt(5))/2,n=1/i;xi.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-n,-i,0,-n,i,0,n,-i,0,n,i,-n,-i,0,-n,i,0,n,-i,0,n,i,0,-i,0,-n,i,0,-n,-i,0,n,i,0,n],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],t,e),this.type="DodecahedronBufferGeometry",this.parameters={radius:t,detail:e}}function gn(t,e,i,n,s,a){X.call(this),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:s},a!==void 0&&console.warn("THREE.TubeGeometry: taper has been removed."),t=new Ys(t,e,i,n,s),this.tangents=t.tangents,this.normals=t.normals,this.binormals=t.binormals,this.fromBufferGeometry(t),this.mergeVertices()}function Ys(t,e,i,n,s){function a(xt){A=t.getPointAt(xt/e,A);var gt=c.normals[xt];for(xt=c.binormals[xt],k=0;k<=n;k++){var At=k/n*Math.PI*2,wt=Math.sin(At);At=-Math.cos(At),v.x=At*gt.x+wt*xt.x,v.y=At*gt.y+wt*xt.y,v.z=At*gt.z+wt*xt.z,v.normalize(),q.push(v.x,v.y,v.z),f.x=A.x+i*v.x,f.y=A.y+i*v.y,f.z=A.z+i*v.z,H.push(f.x,f.y,f.z)}}Ft.call(this),this.type="TubeBufferGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:s},e=e||64,i=i||1,n=n||8,s=s||!1;var c=t.computeFrenetFrames(e,s);this.tangents=c.tangents,this.normals=c.normals,this.binormals=c.binormals;var f=new u,v=new u,y=new o,A=new u,P,k,H=[],q=[],J=[],rt=[];for(P=0;P<e;P++)a(P);for(a(s===!1?e:0),P=0;P<=e;P++)for(k=0;k<=n;k++)y.x=P/e,y.y=k/n,J.push(y.x,y.y);(function(){for(k=1;k<=e;k++)for(P=1;P<=n;P++){var xt=(n+1)*k+(P-1),gt=(n+1)*k+P,At=(n+1)*(k-1)+P;rt.push((n+1)*(k-1)+(P-1),xt,At),rt.push(xt,gt,At)}})(),this.setIndex(rt),this.addAttribute("position",new Et(H,3)),this.addAttribute("normal",new Et(q,3)),this.addAttribute("uv",new Et(J,2))}function Zr(t,e,i,n,s,a,c){X.call(this),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:s,q:a},c!==void 0&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new yo(t,e,i,n,s,a)),this.mergeVertices()}function yo(t,e,i,n,s,a){function c(Z,st,zt,ee,$t){var qt=Math.sin(Z);st=zt/st*Z,zt=Math.cos(st),$t.x=ee*(2+zt)*.5*Math.cos(Z),$t.y=ee*(2+zt)*qt*.5,$t.z=ee*Math.sin(st)*.5}Ft.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:s,q:a},t=t||1,e=e||.4,i=Math.floor(i)||64,n=Math.floor(n)||8,s=s||2,a=a||3;var f=[],v=[],y=[],A=[],P,k=new u,H=new u,q=new u,J=new u,rt=new u,xt=new u,gt=new u;for(P=0;P<=i;++P){var At=P/i*s*Math.PI*2;for(c(At,s,a,t,q),c(At+.01,s,a,t,J),xt.subVectors(J,q),gt.addVectors(J,q),rt.crossVectors(xt,gt),gt.crossVectors(rt,xt),rt.normalize(),gt.normalize(),At=0;At<=n;++At){var wt=At/n*Math.PI*2,Vt=-e*Math.cos(wt);wt=e*Math.sin(wt),k.x=q.x+(Vt*gt.x+wt*rt.x),k.y=q.y+(Vt*gt.y+wt*rt.y),k.z=q.z+(Vt*gt.z+wt*rt.z),v.push(k.x,k.y,k.z),H.subVectors(k,q).normalize(),y.push(H.x,H.y,H.z),A.push(P/i),A.push(At/n)}}for(At=1;At<=i;At++)for(P=1;P<=n;P++)t=(n+1)*At+(P-1),e=(n+1)*At+P,s=(n+1)*(At-1)+P,f.push((n+1)*(At-1)+(P-1),t,s),f.push(t,e,s);this.setIndex(f),this.addAttribute("position",new Et(v,3)),this.addAttribute("normal",new Et(y,3)),this.addAttribute("uv",new Et(A,2))}function xo(t,e,i,n,s){X.call(this),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:s},this.fromBufferGeometry(new Un(t,e,i,n,s)),this.mergeVertices()}function Un(t,e,i,n,s){Ft.call(this),this.type="TorusBufferGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:s},t=t||1,e=e||.4,i=Math.floor(i)||8,n=Math.floor(n)||6,s=s||2*Math.PI;var a=[],c=[],f=[],v=[],y=new u,A=new u,P=new u,k,H;for(k=0;k<=i;k++)for(H=0;H<=n;H++){var q=H/n*s,J=k/i*Math.PI*2;A.x=(t+e*Math.cos(J))*Math.cos(q),A.y=(t+e*Math.cos(J))*Math.sin(q),A.z=e*Math.sin(J),c.push(A.x,A.y,A.z),y.x=t*Math.cos(q),y.y=t*Math.sin(q),P.subVectors(A,y).normalize(),f.push(P.x,P.y,P.z),v.push(H/n),v.push(k/i)}for(k=1;k<=i;k++)for(H=1;H<=n;H++)t=(n+1)*(k-1)+H-1,e=(n+1)*(k-1)+H,s=(n+1)*k+H,a.push((n+1)*k+H-1,t,s),a.push(t,e,s);this.setIndex(a),this.addAttribute("position",new Et(c,3)),this.addAttribute("normal",new Et(f,3)),this.addAttribute("uv",new Et(v,2))}function Oh(t,e,i,n,s){for(var a,c=0,f=e,v=i-n;f<i;f+=n)c+=(t[v]-t[f])*(t[f+1]+t[v+1]),v=f;if(s===0<c)for(s=e;s<i;s+=n)a=Xl(s,t[s],t[s+1],a);else for(s=i-n;s>=e;s-=n)a=Xl(s,t[s],t[s+1],a);return a&&wo(a,a.next)&&(qi(a),a=a.next),a}function pa(t,e){if(!t)return t;e||(e=t);do{var i=!1;if(t.steiner||!wo(t,t.next)&&Zi(t.prev,t,t.next)!==0)t=t.next;else{if(qi(t),t=e=t.prev,t===t.next)break;i=!0}}while(i||t!==e);return e}function da(t,e,i,n,s,a,c){if(t){if(!c&&a){var f=t,v=f;do v.z===null&&(v.z=Wl(v.x,v.y,n,s,a)),v.prevZ=v.prev,v=v.nextZ=v.next;while(v!==f);v.prevZ.nextZ=null,v.prevZ=null,f=v;var y,A,P,k,H=1;do{v=f;var q=f=null;for(A=0;v;){A++;var J=v;for(y=P=0;y<H&&(P++,J=J.nextZ,J);y++);for(k=H;0<P||0<k&&J;)P!==0&&(k===0||!J||v.z<=J.z)?(y=v,v=v.nextZ,P--):(y=J,J=J.nextZ,k--),q?q.nextZ=y:f=y,y.prevZ=q,q=y;v=J}q.nextZ=null,H*=2}while(1<A)}for(f=t;t.prev!==t.next;){if(v=t.prev,J=t.next,a)t:{q=t,k=n;var rt=s,xt=a;if(A=q.prev,P=q,H=q.next,0<=Zi(A,P,H))q=!1;else{var gt=A.x>P.x?A.x>H.x?A.x:H.x:P.x>H.x?P.x:H.x,At=A.y>P.y?A.y>H.y?A.y:H.y:P.y>H.y?P.y:H.y;for(y=Wl(A.x<P.x?A.x<H.x?A.x:H.x:P.x<H.x?P.x:H.x,A.y<P.y?A.y<H.y?A.y:H.y:P.y<H.y?P.y:H.y,k,rt,xt),k=Wl(gt,At,k,rt,xt),rt=q.nextZ;rt&&rt.z<=k;){if(rt!==q.prev&&rt!==q.next&&jl(A.x,A.y,P.x,P.y,H.x,H.y,rt.x,rt.y)&&0<=Zi(rt.prev,rt,rt.next)){q=!1;break t}rt=rt.nextZ}for(rt=q.prevZ;rt&&rt.z>=y;){if(rt!==q.prev&&rt!==q.next&&jl(A.x,A.y,P.x,P.y,H.x,H.y,rt.x,rt.y)&&0<=Zi(rt.prev,rt,rt.next)){q=!1;break t}rt=rt.prevZ}q=!0}}else t:if(q=t,A=q.prev,P=q,H=q.next,0<=Zi(A,P,H))q=!1;else{for(y=q.next.next;y!==q.prev;){if(jl(A.x,A.y,P.x,P.y,H.x,H.y,y.x,y.y)&&0<=Zi(y.prev,y,y.next)){q=!1;break t}y=y.next}q=!0}if(q)e.push(v.i/i),e.push(t.i/i),e.push(J.i/i),qi(t),f=t=J.next;else if(t=J,t===f){if(!c)da(pa(t),e,i,n,s,a,1);else if(c===1){c=e,f=i,v=t;do J=v.prev,q=v.next.next,!wo(J,q)&&Ih(J,v,v.next,q)&&Rr(J,q)&&Rr(q,J)&&(c.push(J.i/f),c.push(v.i/f),c.push(q.i/f),qi(v),qi(v.next),v=t=q),v=v.next;while(v!==t);t=v,da(t,e,i,n,s,a,2)}else if(c===2)t:{c=t;do{for(f=c.next.next;f!==c.prev;){if(v=c.i!==f.i){if(v=c,J=f,q=v.next.i!==J.i&&v.prev.i!==J.i){e:{q=v;do{if(q.i!==v.i&&q.next.i!==v.i&&q.i!==J.i&&q.next.i!==J.i&&Ih(q,q.next,v,J)){q=!0;break e}q=q.next}while(q!==v);q=!1}q=!q}if(q=q&&Rr(v,J)&&Rr(J,v)){q=v,A=!1,P=(v.x+J.x)/2,J=(v.y+J.y)/2;do q.y>J!=q.next.y>J&&q.next.y!==q.y&&P<(q.next.x-q.x)*(J-q.y)/(q.next.y-q.y)+q.x&&(A=!A),q=q.next;while(q!==v);q=A}v=q}if(v){t=el(c,f),c=pa(c,c.next),t=pa(t,t.next),da(c,e,i,n,s,a),da(t,e,i,n,s,a);break t}f=f.next}c=c.next}while(c!==t)}break}}}}function xu(t,e){return t.x-e.x}function wu(t,e){var i=e,n=t.x,s=t.y,a=-1/0;do{if(s<=i.y&&s>=i.next.y&&i.next.y!==i.y){var c=i.x+(s-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(c<=n&&c>a){if(a=c,c===n){if(s===i.y)return i;if(s===i.next.y)return i.next}var f=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!f)return null;if(n===a)return f.prev;e=f,c=f.x;var v=f.y,y=1/0;for(i=f.next;i!==e;){if(n>=i.x&&i.x>=c&&n!==i.x&&jl(s<v?n:a,s,c,v,s<v?a:n,s,i.x,i.y)){var A=Math.abs(s-i.y)/(n-i.x);(A<y||A===y&&i.x>f.x)&&Rr(i,t)&&(f=i,y=A)}i=i.next}return f}function Wl(t,e,i,n,s){return t=32767*(t-i)*s,e=32767*(e-n)*s,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,(t|t<<1)&1431655765|((e|e<<1)&1431655765)<<1}function _r(t){var e=t,i=t;do e.x<i.x&&(i=e),e=e.next;while(e!==t);return i}function jl(t,e,i,n,s,a,c,f){return 0<=(s-c)*(e-f)-(t-c)*(a-f)&&0<=(t-c)*(n-f)-(i-c)*(e-f)&&0<=(i-c)*(a-f)-(s-c)*(n-f)}function Zi(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function wo(t,e){return t.x===e.x&&t.y===e.y}function Ih(t,e,i,n){return wo(t,e)&&wo(i,n)||wo(t,n)&&wo(i,e)?!0:0<Zi(t,e,i)!=0<Zi(t,e,n)&&0<Zi(i,n,t)!=0<Zi(i,n,e)}function Rr(t,e){return 0>Zi(t.prev,t,t.next)?0<=Zi(t,e,t.next)&&0<=Zi(t,t.prev,e):0>Zi(t,e,t.prev)||0>Zi(t,t.next,e)}function el(t,e){var i=new fs(t.i,t.x,t.y),n=new fs(e.i,e.x,e.y),s=t.next,a=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,n.next=i,i.prev=n,a.next=n,n.prev=a,n}function Xl(t,e,i,n){return t=new fs(t,e,i),n?(t.next=n.next,t.prev=n,n.next.prev=t,n.next=t):(t.prev=t,t.next=t),t}function qi(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function fs(t,e,i){this.i=t,this.x=e,this.y=i,this.nextZ=this.prevZ=this.z=this.next=this.prev=null,this.steiner=!1}function ql(t){var e=t.length;2<e&&t[e-1].equals(t[0])&&t.pop()}function Tu(t,e){for(var i=0;i<e.length;i++)t.push(e[i].x),t.push(e[i].y)}function Cs(t,e){X.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},this.fromBufferGeometry(new ps(t,e)),this.mergeVertices()}function ps(t,e){function i(v){function y(Xe,ri,Ci){return ri||console.error("THREE.ExtrudeGeometry: vec does not exist"),ri.clone().multiplyScalar(Ci).add(Xe)}function A(Xe,ri,Ci){var Ai=Xe.x-ri.x,ne=Xe.y-ri.y,ii=Ci.x-Xe.x,Ze=Ci.y-Xe.y,li=Ai*Ai+ne*ne;if(Math.abs(Ai*Ze-ne*ii)>Number.EPSILON){var xn=Math.sqrt(li),Pn=Math.sqrt(ii*ii+Ze*Ze);if(li=ri.x-ne/xn,ri=ri.y+Ai/xn,Ze=((Ci.x-Ze/Pn-li)*Ze-(Ci.y+ii/Pn-ri)*ii)/(Ai*Ze-ne*ii),ii=li+Ai*Ze-Xe.x,Ai=ri+ne*Ze-Xe.y,ne=ii*ii+Ai*Ai,2>=ne)return new o(ii,Ai);ne=Math.sqrt(ne/2)}else Xe=!1,Ai>Number.EPSILON?ii>Number.EPSILON&&(Xe=!0):Ai<-Number.EPSILON?ii<-Number.EPSILON&&(Xe=!0):Math.sign(ne)===Math.sign(Ze)&&(Xe=!0),Xe?(ii=-ne,ne=Math.sqrt(li)):(ii=Ai,Ai=ne,ne=Math.sqrt(li/2));return new o(ii/ne,Ai/ne)}function P(Xe,ri){for(Ae=Xe.length;0<=--Ae;){var Ci=Ae,Ai=Ae-1;0>Ai&&(Ai=Xe.length-1);var ne,ii=gt+2*st;for(ne=0;ne<ii;ne++){var Ze=Hi*ne,li=Hi*(ne+1),xn=ri+Ai+Ze,Pn=ri+Ai+li;li=ri+Ci+li,q(ri+Ci+Ze),q(xn),q(li),q(xn),q(Pn),q(li),Ze=s.length/3,Ze=ee.generateSideWallUV(n,s,Ze-6,Ze-3,Ze-2,Ze-1),J(Ze[0]),J(Ze[1]),J(Ze[3]),J(Ze[1]),J(Ze[2]),J(Ze[3])}}}function k(Xe,ri,Ci){rt.push(Xe),rt.push(ri),rt.push(Ci)}function H(Xe,ri,Ci){q(Xe),q(ri),q(Ci),Xe=s.length/3,Xe=ee.generateTopUV(n,s,Xe-3,Xe-2,Xe-1),J(Xe[0]),J(Xe[1]),J(Xe[2])}function q(Xe){s.push(rt[3*Xe]),s.push(rt[3*Xe+1]),s.push(rt[3*Xe+2])}function J(Xe){a.push(Xe.x),a.push(Xe.y)}var rt=[],xt=e.curveSegments!==void 0?e.curveSegments:12,gt=e.steps!==void 0?e.steps:1,At=e.depth!==void 0?e.depth:100,wt=e.bevelEnabled!==void 0?e.bevelEnabled:!0,Vt=e.bevelThickness!==void 0?e.bevelThickness:6,Z=e.bevelSize!==void 0?e.bevelSize:Vt-2,st=e.bevelSegments!==void 0?e.bevelSegments:3,zt=e.extrudePath,ee=e.UVGenerator!==void 0?e.UVGenerator:xl;e.amount!==void 0&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),At=e.amount);var $t=!1;if(zt){var qt=zt.getSpacedPoints(gt);$t=!0,wt=!1;var Te=zt.computeFrenetFrames(gt,!1),de=new u,Ie=new u,be=new u}wt||(Z=Vt=st=0);var ae;xt=v.extractPoints(xt),v=xt.shape;var We=xt.holes;if(!ws.isClockWise(v)){v=v.reverse();var Ke=0;for(ae=We.length;Ke<ae;Ke++){var fi=We[Ke];ws.isClockWise(fi)&&(We[Ke]=fi.reverse())}}var An=ws.triangulateShape(v,We),yn=v;for(Ke=0,ae=We.length;Ke<ae;Ke++)fi=We[Ke],v=v.concat(fi);var Xi,Hi=v.length,sn,Cn=An.length;xt=[];var Ae=0,Qe=yn.length,Ut=Qe-1;for(Xi=Ae+1;Ae<Qe;Ae++,Ut++,Xi++)Ut===Qe&&(Ut=0),Xi===Qe&&(Xi=0),xt[Ae]=A(yn[Ae],yn[Ut],yn[Xi]);zt=[];var Ye=xt.concat();for(Ke=0,ae=We.length;Ke<ae;Ke++){fi=We[Ke];var ei=[];for(Ae=0,Qe=fi.length,Ut=Qe-1,Xi=Ae+1;Ae<Qe;Ae++,Ut++,Xi++)Ut===Qe&&(Ut=0),Xi===Qe&&(Xi=0),ei[Ae]=A(fi[Ae],fi[Ut],fi[Xi]);zt.push(ei),Ye=Ye.concat(ei)}for(Ut=0;Ut<st;Ut++){Qe=Ut/st;var Vi=Vt*Math.cos(Qe*Math.PI/2);for(Xi=Z*Math.sin(Qe*Math.PI/2),Ae=0,Qe=yn.length;Ae<Qe;Ae++){var Ce=y(yn[Ae],xt[Ae],Xi);k(Ce.x,Ce.y,-Vi)}for(Ke=0,ae=We.length;Ke<ae;Ke++)for(fi=We[Ke],ei=zt[Ke],Ae=0,Qe=fi.length;Ae<Qe;Ae++)Ce=y(fi[Ae],ei[Ae],Xi),k(Ce.x,Ce.y,-Vi)}for(Xi=Z,Ae=0;Ae<Hi;Ae++)Ce=wt?y(v[Ae],Ye[Ae],Xi):v[Ae],$t?(Ie.copy(Te.normals[0]).multiplyScalar(Ce.x),de.copy(Te.binormals[0]).multiplyScalar(Ce.y),be.copy(qt[0]).add(Ie).add(de),k(be.x,be.y,be.z)):k(Ce.x,Ce.y,0);for(Qe=1;Qe<=gt;Qe++)for(Ae=0;Ae<Hi;Ae++)Ce=wt?y(v[Ae],Ye[Ae],Xi):v[Ae],$t?(Ie.copy(Te.normals[Qe]).multiplyScalar(Ce.x),de.copy(Te.binormals[Qe]).multiplyScalar(Ce.y),be.copy(qt[Qe]).add(Ie).add(de),k(be.x,be.y,be.z)):k(Ce.x,Ce.y,At/gt*Qe);for(Ut=st-1;0<=Ut;Ut--){for(Qe=Ut/st,Vi=Vt*Math.cos(Qe*Math.PI/2),Xi=Z*Math.sin(Qe*Math.PI/2),Ae=0,Qe=yn.length;Ae<Qe;Ae++)Ce=y(yn[Ae],xt[Ae],Xi),k(Ce.x,Ce.y,At+Vi);for(Ke=0,ae=We.length;Ke<ae;Ke++)for(fi=We[Ke],ei=zt[Ke],Ae=0,Qe=fi.length;Ae<Qe;Ae++)Ce=y(fi[Ae],ei[Ae],Xi),$t?k(Ce.x,Ce.y+qt[gt-1].y,qt[gt-1].x+Vi):k(Ce.x,Ce.y,At+Vi)}(function(){var Xe=s.length/3;if(wt){var ri=0*Hi;for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[2]+ri,sn[1]+ri,sn[0]+ri);for(ri=Hi*(gt+2*st),Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[0]+ri,sn[1]+ri,sn[2]+ri)}else{for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[2],sn[1],sn[0]);for(Ae=0;Ae<Cn;Ae++)sn=An[Ae],H(sn[0]+Hi*gt,sn[1]+Hi*gt,sn[2]+Hi*gt)}n.addGroup(Xe,s.length/3-Xe,0)})(),function(){var Xe=s.length/3,ri=0;for(P(yn,ri),ri+=yn.length,Ke=0,ae=We.length;Ke<ae;Ke++)fi=We[Ke],P(fi,ri),ri+=fi.length;n.addGroup(Xe,s.length/3-Xe,1)}()}Ft.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];for(var n=this,s=[],a=[],c=0,f=t.length;c<f;c++)i(t[c]);this.addAttribute("position",new Et(s,3)),this.addAttribute("uv",new Et(a,2)),this.computeVertexNormals()}function Mu(t,e,i){if(i.shapes=[],Array.isArray(t))for(var n=0,s=t.length;n<s;n++)i.shapes.push(t[n].uuid);else i.shapes.push(t.uuid);return e.extrudePath!==void 0&&(i.options.extrudePath=e.extrudePath.toJSON()),i}function il(t,e){X.call(this),this.type="TextGeometry",this.parameters={text:t,parameters:e},this.fromBufferGeometry(new To(t,e)),this.mergeVertices()}function To(t,e){e=e||{};var i=e.font;if(!i||!i.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new X;t=i.generateShapes(t,e.size),e.depth=e.height!==void 0?e.height:50,e.bevelThickness===void 0&&(e.bevelThickness=10),e.bevelSize===void 0&&(e.bevelSize=8),e.bevelEnabled===void 0&&(e.bevelEnabled=!1),ps.call(this,t,e),this.type="TextBufferGeometry"}function Zs(t,e,i,n,s,a,c){X.call(this),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:s,thetaStart:a,thetaLength:c},this.fromBufferGeometry(new Or(t,e,i,n,s,a,c)),this.mergeVertices()}function Or(t,e,i,n,s,a,c){Ft.call(this),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:s,thetaStart:a,thetaLength:c},t=t||1,e=Math.max(3,Math.floor(e)||8),i=Math.max(2,Math.floor(i)||6),n=n!==void 0?n:0,s=s!==void 0?s:2*Math.PI,a=a!==void 0?a:0,c=c!==void 0?c:Math.PI;var f=a+c,v,y,A=0,P=[],k=new u,H=new u,q=[],J=[],rt=[],xt=[];for(y=0;y<=i;y++){var gt=[],At=y/i;for(v=0;v<=e;v++){var wt=v/e;k.x=-t*Math.cos(n+wt*s)*Math.sin(a+At*c),k.y=t*Math.cos(a+At*c),k.z=t*Math.sin(n+wt*s)*Math.sin(a+At*c),J.push(k.x,k.y,k.z),H.set(k.x,k.y,k.z).normalize(),rt.push(H.x,H.y,H.z),xt.push(wt,1-At),gt.push(A++)}P.push(gt)}for(y=0;y<i;y++)for(v=0;v<e;v++)t=P[y][v+1],n=P[y][v],s=P[y+1][v],c=P[y+1][v+1],(y!==0||0<a)&&q.push(t,n,c),(y!==i-1||f<Math.PI)&&q.push(n,s,c);this.setIndex(q),this.addAttribute("position",new Et(J,3)),this.addAttribute("normal",new Et(rt,3)),this.addAttribute("uv",new Et(xt,2))}function nl(t,e,i,n,s,a){X.call(this),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:s,thetaLength:a},this.fromBufferGeometry(new Mo(t,e,i,n,s,a)),this.mergeVertices()}function Mo(t,e,i,n,s,a){Ft.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:s,thetaLength:a},t=t||.5,e=e||1,s=s!==void 0?s:0,a=a!==void 0?a:2*Math.PI,i=i!==void 0?Math.max(3,i):8,n=n!==void 0?Math.max(1,n):1;var c=[],f=[],v=[],y=[],A=t,P=(e-t)/n,k=new u,H=new o,q,J;for(q=0;q<=n;q++){for(J=0;J<=i;J++)t=s+J/i*a,k.x=A*Math.cos(t),k.y=A*Math.sin(t),f.push(k.x,k.y,k.z),v.push(0,0,1),H.x=(k.x/e+1)/2,H.y=(k.y/e+1)/2,y.push(H.x,H.y);A+=P}for(q=0;q<n;q++)for(e=q*(i+1),J=0;J<i;J++)t=J+e,s=t+i+1,a=t+i+2,A=t+1,c.push(t,s,A),c.push(s,a,A);this.setIndex(c),this.addAttribute("position",new Et(f,3)),this.addAttribute("normal",new Et(v,3)),this.addAttribute("uv",new Et(y,2))}function ma(t,e,i,n){X.call(this),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},this.fromBufferGeometry(new Js(t,e,i,n)),this.mergeVertices()}function Js(t,e,i,n){Ft.call(this),this.type="LatheBufferGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},e=Math.floor(e)||12,i=i||0,n=n||2*Math.PI,n=pi.clamp(n,0,2*Math.PI);var s=[],a=[],c=[],f=1/e,v=new u,y=new o,A;for(A=0;A<=e;A++){var P=i+A*f*n,k=Math.sin(P),H=Math.cos(P);for(P=0;P<=t.length-1;P++)v.x=t[P].x*k,v.y=t[P].y,v.z=t[P].x*H,a.push(v.x,v.y,v.z),y.x=A/e,y.y=P/(t.length-1),c.push(y.x,y.y)}for(A=0;A<e;A++)for(P=0;P<t.length-1;P++)i=P+A*t.length,f=i+t.length,v=i+t.length+1,y=i+1,s.push(i,f,y),s.push(f,v,y);if(this.setIndex(s),this.addAttribute("position",new Et(a,3)),this.addAttribute("uv",new Et(c,2)),this.computeVertexNormals(),n===2*Math.PI)for(n=this.attributes.normal.array,s=new u,a=new u,c=new u,i=e*t.length*3,P=A=0;A<t.length;A++,P+=3)s.x=n[P+0],s.y=n[P+1],s.z=n[P+2],a.x=n[i+P+0],a.y=n[i+P+1],a.z=n[i+P+2],c.addVectors(s,a).normalize(),n[P+0]=n[i+P+0]=c.x,n[P+1]=n[i+P+1]=c.y,n[P+2]=n[i+P+2]=c.z}function Ps(t,e){X.call(this),this.type="ShapeGeometry",typeof e=="object"&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),e=e.curveSegments),this.parameters={shapes:t,curveSegments:e},this.fromBufferGeometry(new $s(t,e)),this.mergeVertices()}function $s(t,e){function i(A){var P,k=s.length/3;A=A.extractPoints(e);var H=A.shape,q=A.holes;if(ws.isClockWise(H)===!1)for(H=H.reverse(),A=0,P=q.length;A<P;A++){var J=q[A];ws.isClockWise(J)===!0&&(q[A]=J.reverse())}var rt=ws.triangulateShape(H,q);for(A=0,P=q.length;A<P;A++)J=q[A],H=H.concat(J);for(A=0,P=H.length;A<P;A++)J=H[A],s.push(J.x,J.y,0),a.push(0,0,1),c.push(J.x,J.y);for(A=0,P=rt.length;A<P;A++)H=rt[A],n.push(H[0]+k,H[1]+k,H[2]+k),v+=3}Ft.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:t,curveSegments:e},e=e||12;var n=[],s=[],a=[],c=[],f=0,v=0;if(Array.isArray(t)===!1)i(t);else for(var y=0;y<t.length;y++)i(t[y]),this.addGroup(f,v,y),f+=v,v=0;this.setIndex(n),this.addAttribute("position",new Et(s,3)),this.addAttribute("normal",new Et(a,3)),this.addAttribute("uv",new Et(c,2))}function Su(t,e){if(e.shapes=[],Array.isArray(t))for(var i=0,n=t.length;i<n;i++)e.shapes.push(t[i].uuid);else e.shapes.push(t.uuid);return e}function Ks(t,e){Ft.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:e};var i=[];e=Math.cos(pi.DEG2RAD*(e!==void 0?e:1));var n=[0,0],s={},a=["a","b","c"];if(t.isBufferGeometry){var c=new X;c.fromBufferGeometry(t)}else c=t.clone();c.mergeVertices(),c.computeFaceNormals(),t=c.vertices,c=c.faces;for(var f=0,v=c.length;f<v;f++)for(var y=c[f],A=0;3>A;A++){var P=y[a[A]],k=y[a[(A+1)%3]];n[0]=Math.min(P,k),n[1]=Math.max(P,k),P=n[0]+","+n[1],s[P]===void 0?s[P]={index1:n[0],index2:n[1],face1:f,face2:void 0}:s[P].face2=f}for(P in s)n=s[P],(n.face2===void 0||c[n.face1].normal.dot(c[n.face2].normal)<=e)&&(a=t[n.index1],i.push(a.x,a.y,a.z),a=t[n.index2],i.push(a.x,a.y,a.z));this.addAttribute("position",new Et(i,3))}function Ls(t,e,i,n,s,a,c,f){X.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:s,openEnded:a,thetaStart:c,thetaLength:f},this.fromBufferGeometry(new Rs(t,e,i,n,s,a,c,f)),this.mergeVertices()}function Rs(t,e,i,n,s,a,c,f){function v(gt){var At,wt=new o,Vt=new u,Z=0,st=gt===!0?t:e,zt=gt===!0?1:-1,ee=q;for(At=1;At<=n;At++)P.push(0,rt*zt,0),k.push(0,zt,0),H.push(.5,.5),q++;var $t=q;for(At=0;At<=n;At++){var qt=At/n*f+c,Te=Math.cos(qt);qt=Math.sin(qt),Vt.x=st*qt,Vt.y=rt*zt,Vt.z=st*Te,P.push(Vt.x,Vt.y,Vt.z),k.push(0,zt,0),wt.x=.5*Te+.5,wt.y=.5*qt*zt+.5,H.push(wt.x,wt.y),q++}for(At=0;At<n;At++)wt=ee+At,Vt=$t+At,gt===!0?A.push(Vt,Vt+1,wt):A.push(Vt+1,Vt,wt),Z+=3;y.addGroup(xt,Z,gt===!0?1:2),xt+=Z}Ft.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:s,openEnded:a,thetaStart:c,thetaLength:f};var y=this;t=t!==void 0?t:1,e=e!==void 0?e:1,i=i||1,n=Math.floor(n)||8,s=Math.floor(s)||1,a=a!==void 0?a:!1,c=c!==void 0?c:0,f=f!==void 0?f:2*Math.PI;var A=[],P=[],k=[],H=[],q=0,J=[],rt=i/2,xt=0;(function(){var gt,At,wt=new u,Vt=new u,Z=0,st=(e-t)/i;for(At=0;At<=s;At++){var zt=[],ee=At/s,$t=ee*(e-t)+t;for(gt=0;gt<=n;gt++){var qt=gt/n,Te=qt*f+c,de=Math.sin(Te);Te=Math.cos(Te),Vt.x=$t*de,Vt.y=-ee*i+rt,Vt.z=$t*Te,P.push(Vt.x,Vt.y,Vt.z),wt.set(de,st,Te).normalize(),k.push(wt.x,wt.y,wt.z),H.push(qt,1-ee),zt.push(q++)}J.push(zt)}for(gt=0;gt<n;gt++)for(At=0;At<s;At++)wt=J[At+1][gt],Vt=J[At+1][gt+1],st=J[At][gt+1],A.push(J[At][gt],wt,st),A.push(wt,Vt,st),Z+=6;y.addGroup(xt,Z,0),xt+=Z})(),a===!1&&(0<t&&v(!0),0<e&&v(!1)),this.setIndex(A),this.addAttribute("position",new Et(P,3)),this.addAttribute("normal",new Et(k,3)),this.addAttribute("uv",new Et(H,2))}function ga(t,e,i,n,s,a,c){Ls.call(this,0,t,e,i,n,s,a,c),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:s,thetaStart:a,thetaLength:c}}function Gn(t,e,i,n,s,a,c){Rs.call(this,0,t,e,i,n,s,a,c),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:s,thetaStart:a,thetaLength:c}}function So(t,e,i,n){X.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},this.fromBufferGeometry(new ds(t,e,i,n)),this.mergeVertices()}function ds(t,e,i,n){Ft.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},t=t||1,e=e!==void 0?Math.max(3,e):8,i=i!==void 0?i:0,n=n!==void 0?n:2*Math.PI;var s=[],a=[],c=[],f=[],v,y=new u,A=new o;a.push(0,0,0),c.push(0,0,1),f.push(.5,.5);var P=0;for(v=3;P<=e;P++,v+=3){var k=i+P/e*n;y.x=t*Math.cos(k),y.y=t*Math.sin(k),a.push(y.x,y.y,y.z),c.push(0,0,1),A.x=(a[v]/t+1)/2,A.y=(a[v+1]/t+1)/2,f.push(A.x,A.y)}for(v=1;v<=e;v++)s.push(v,v+1,0);this.setIndex(s),this.addAttribute("position",new Et(a,3)),this.addAttribute("normal",new Et(c,3)),this.addAttribute("uv",new Et(f,2))}function Qs(t){Yt.call(this),this.type="ShadowMaterial",this.color=new L(0),this.transparent=!0,this.setValues(t)}function Eo(t){ti.call(this,t),this.type="RawShaderMaterial"}function ms(t){Yt.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new L(16777215),this.metalness=this.roughness=.5,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new L(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function bo(t){ms.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoatRoughness=this.clearCoat=0,this.setValues(t)}function Jr(t){Yt.call(this),this.type="MeshPhongMaterial",this.color=new L(16777215),this.specular=new L(1118481),this.shininess=30,this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new L(0),this.emissiveIntensity=1,this.bumpMap=this.emissiveMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.envMap=this.alphaMap=this.specularMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Ao(t){Jr.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function Co(t){Yt.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.morphNormals=this.morphTargets=this.skinning=this.lights=this.fog=!1,this.setValues(t)}function Ir(t){Yt.call(this),this.type="MeshLambertMaterial",this.color=new L(16777215),this.lightMap=this.map=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new L(0),this.emissiveIntensity=1,this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinejoin=this.wireframeLinecap="round",this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t)}function Po(t){if(Yt.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new L(16777215),this.bumpMap=this.map=this.matcap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new o(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.lights=this.morphNormals=this.morphTargets=this.skinning=!1,this.setValues(t),this.matcap===null){t=document.createElement("canvas"),t.width=1,t.height=1;var e=t.getContext("2d");e.fillStyle="#fff",e.fillRect(0,0,1,1),this.matcap=new THREE.CanvasTexture(t)}}function Lo(t){ki.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}function $n(t,e,i,n){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=n!==void 0?n:new e.constructor(i),this.sampleValues=e,this.valueSize=i}function rl(t,e,i,n){$n.call(this,t,e,i,n),this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function Dr(t,e,i,n){$n.call(this,t,e,i,n)}function Ro(t,e,i,n){$n.call(this,t,e,i,n)}function Hn(t,e,i,n){if(t===void 0)throw Error("THREE.KeyframeTrack: track name is undefined");if(e===void 0||e.length===0)throw Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=Yn.convertArray(e,this.TimeBufferType),this.values=Yn.convertArray(i,this.ValueBufferType),this.setInterpolation(n||this.DefaultInterpolation)}function Yl(t,e,i){Hn.call(this,t,e,i)}function Zl(t,e,i,n){Hn.call(this,t,e,i,n)}function $r(t,e,i,n){Hn.call(this,t,e,i,n)}function ar(t,e,i,n){$n.call(this,t,e,i,n)}function va(t,e,i,n){Hn.call(this,t,e,i,n)}function Jl(t,e,i,n){Hn.call(this,t,e,i,n)}function _a(t,e,i,n){Hn.call(this,t,e,i,n)}function yr(t,e,i){this.name=t,this.tracks=i,this.duration=e!==void 0?e:-1,this.uuid=pi.generateUUID(),0>this.duration&&this.resetDuration()}function Uc(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return $r;case"vector":case"vector2":case"vector3":case"vector4":return _a;case"color":return Zl;case"quaternion":return va;case"bool":case"boolean":return Yl;case"string":return Jl}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}function Gc(t){if(t.type===void 0)throw Error("THREE.KeyframeTrack: track type undefined, can not parse");var e=Uc(t.type);if(t.times===void 0){var i=[],n=[];Yn.flattenJSON(t.keys,i,n,"value"),t.times=i,t.values=n}return e.parse!==void 0?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}function to(t,e,i){var n=this,s=!1,a=0,c=0,f=void 0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=i,this.itemStart=function(v){c++,s===!1&&n.onStart!==void 0&&n.onStart(v,a,c),s=!0},this.itemEnd=function(v){a++,n.onProgress!==void 0&&n.onProgress(v,a,c),a===c&&(s=!1,n.onLoad!==void 0)&&n.onLoad()},this.itemError=function(v){n.onError!==void 0&&n.onError(v)},this.resolveURL=function(v){return f?f(v):v},this.setURLModifier=function(v){return f=v,this}}function Rt(t){this.manager=t!==void 0?t:tr}function Qt(t){this.manager=t!==void 0?t:tr}function Zt(t){this.manager=t!==void 0?t:tr,this._parser=null}function Ue(t){this.manager=t!==void 0?t:tr,this._parser=null}function ai(t){this.manager=t!==void 0?t:tr}function Bi(t){this.manager=t!==void 0?t:tr}function fn(t){this.manager=t!==void 0?t:tr}function Ee(){this.type="Curve",this.arcLengthDivisions=200}function Kn(t,e,i,n,s,a,c,f){Ee.call(this),this.type="EllipseCurve",this.aX=t||0,this.aY=e||0,this.xRadius=i||1,this.yRadius=n||1,this.aStartAngle=s||0,this.aEndAngle=a||2*Math.PI,this.aClockwise=c||!1,this.aRotation=f||0}function ya(t,e,i,n,s,a){Kn.call(this,t,e,i,i,n,s,a),this.type="ArcCurve"}function lr(){var t=0,e=0,i=0,n=0;return{initCatmullRom:function(s,a,c,f,v){s=v*(c-s),f=v*(f-a),t=a,e=s,i=-3*a+3*c-2*s-f,n=2*a-2*c+s+f},initNonuniformCatmullRom:function(s,a,c,f,v,y,A){s=((a-s)/v-(c-s)/(v+y)+(c-a)/y)*y,f=((c-a)/y-(f-a)/(y+A)+(f-c)/A)*y,t=a,e=s,i=-3*a+3*c-2*s-f,n=2*a-2*c+s+f},calc:function(s){var a=s*s;return t+e*s+i*a+n*a*s}}}function On(t,e,i,n){Ee.call(this),this.type="CatmullRomCurve3",this.points=t||[],this.closed=e||!1,this.curveType=i||"centripetal",this.tension=n||.5}function Eu(t,e,i,n,s){e=.5*(n-e),s=.5*(s-i);var a=t*t;return(2*i-2*n+e+s)*t*a+(-3*i+3*n-2*e-s)*a+e*t+i}function gs(t,e,i,n){var s=1-t;return s*s*e+2*(1-t)*t*i+t*t*n}function eo(t,e,i,n,s){var a=1-t,c=1-t;return a*a*a*e+3*c*c*t*i+3*(1-t)*t*t*n+t*t*t*s}function hr(t,e,i,n){Ee.call(this),this.type="CubicBezierCurve",this.v0=t||new o,this.v1=e||new o,this.v2=i||new o,this.v3=n||new o}function Ti(t,e,i,n){Ee.call(this),this.type="CubicBezierCurve3",this.v0=t||new u,this.v1=e||new u,this.v2=i||new u,this.v3=n||new u}function ur(t,e){Ee.call(this),this.type="LineCurve",this.v1=t||new o,this.v2=e||new o}function zr(t,e){Ee.call(this),this.type="LineCurve3",this.v1=t||new u,this.v2=e||new u}function cr(t,e,i){Ee.call(this),this.type="QuadraticBezierCurve",this.v0=t||new o,this.v1=e||new o,this.v2=i||new o}function vs(t,e,i){Ee.call(this),this.type="QuadraticBezierCurve3",this.v0=t||new u,this.v1=e||new u,this.v2=i||new u}function Kr(t){Ee.call(this),this.type="SplineCurve",this.points=t||[]}function Os(){Ee.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function fr(t){Os.call(this),this.type="Path",this.currentPoint=new o,t&&this.setFromPoints(t)}function Qn(t){fr.call(this,t),this.uuid=pi.generateUUID(),this.type="Shape",this.holes=[]}function tn(t,e){B.call(this),this.type="Light",this.color=new L(t),this.intensity=e!==void 0?e:1,this.receiveShadow=void 0}function sl(t,e,i){tn.call(this,t,i),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(B.DefaultUp),this.updateMatrix(),this.groundColor=new L(e)}function _s(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new o(512,512),this.map=null,this.matrix=new p}function ol(){_s.call(this,new ye(50,1,.5,500))}function al(t,e,i,n,s,a){tn.call(this,t,e),this.type="SpotLight",this.position.copy(B.DefaultUp),this.updateMatrix(),this.target=new B,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(c){this.intensity=c/Math.PI}}),this.distance=i!==void 0?i:0,this.angle=n!==void 0?n:Math.PI/3,this.penumbra=s!==void 0?s:0,this.decay=a!==void 0?a:1,this.shadow=new ol}function Oo(t,e,i,n){tn.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(s){this.intensity=s/(4*Math.PI)}}),this.distance=i!==void 0?i:0,this.decay=n!==void 0?n:1,this.shadow=new _s(new ye(90,1,.5,500))}function xa(t,e,i,n,s,a){ke.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t!==void 0?t:-1,this.right=e!==void 0?e:1,this.top=i!==void 0?i:1,this.bottom=n!==void 0?n:-1,this.near=s!==void 0?s:.1,this.far=a!==void 0?a:2e3,this.updateProjectionMatrix()}function io(){_s.call(this,new xa(-5,5,5,-5,.5,500))}function ys(t,e){tn.call(this,t,e),this.type="DirectionalLight",this.position.copy(B.DefaultUp),this.updateMatrix(),this.target=new B,this.shadow=new io}function Io(t,e){tn.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function $l(t,e,i,n){tn.call(this,t,e),this.type="RectAreaLight",this.width=i!==void 0?i:10,this.height=n!==void 0?n:10}function Kl(t){this.manager=t!==void 0?t:tr,this.textures={}}function Dh(t){this.manager=t!==void 0?t:tr}function Is(){}function Do(t){typeof t=="boolean"&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=t!==void 0?t:tr,this.withCredentials=!1}function ll(t){this.manager=t!==void 0?t:tr,this.resourcePath=""}function zh(t){typeof createImageBitmap>"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.manager=t!==void 0?t:tr,this.options=void 0}function Ql(){this.type="ShapePath",this.color=new L,this.subPaths=[],this.currentPath=null}function kh(t){this.type="Font",this.data=t}function bu(t){this.manager=t!==void 0?t:tr}function vn(t){this.manager=t!==void 0?t:tr}function Vn(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new ye,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new ye,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function hl(t,e,i,n){B.call(this),this.type="CubeCamera";var s=new ye(90,1,t,e);s.up.set(0,-1,0),s.lookAt(new u(1,0,0)),this.add(s);var a=new ye(90,1,t,e);a.up.set(0,-1,0),a.lookAt(new u(-1,0,0)),this.add(a);var c=new ye(90,1,t,e);c.up.set(0,0,1),c.lookAt(new u(0,1,0)),this.add(c);var f=new ye(90,1,t,e);f.up.set(0,0,-1),f.lookAt(new u(0,-1,0)),this.add(f);var v=new ye(90,1,t,e);v.up.set(0,-1,0),v.lookAt(new u(0,0,1)),this.add(v);var y=new ye(90,1,t,e);y.up.set(0,-1,0),y.lookAt(new u(0,0,-1)),this.add(y),n=n||{format:1022,magFilter:1006,minFilter:1006},this.renderTarget=new C(i,i,n),this.renderTarget.texture.name="CubeCamera",this.update=function(A,P){this.parent===null&&this.updateMatrixWorld();var k=this.renderTarget,H=k.texture.generateMipmaps;k.texture.generateMipmaps=!1,k.activeCubeFace=0,A.render(P,s,k),k.activeCubeFace=1,A.render(P,a,k),k.activeCubeFace=2,A.render(P,c,k),k.activeCubeFace=3,A.render(P,f,k),k.activeCubeFace=4,A.render(P,v,k),k.texture.generateMipmaps=H,k.activeCubeFace=5,A.render(P,y,k),A.setRenderTarget(null)},this.clear=function(A,P,k,H){for(var q=this.renderTarget,J=0;6>J;J++)q.activeCubeFace=J,A.setRenderTarget(q),A.clear(P,k,H);A.setRenderTarget(null)}}function Bh(t){this.autoStart=t!==void 0?t:!0,this.elapsedTime=this.oldTime=this.startTime=0,this.running=!1}function th(){B.call(this),this.type="AudioListener",this.context=qh.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0}function wa(t){B.call(this),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.offset=this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function ul(t){wa.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function zo(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e!==void 0?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function cl(t,e,i){switch(this.binding=t,this.valueSize=i,t=Float64Array,e){case"quaternion":e=this._slerp;break;case"string":case"bool":t=Array,e=this._select;break;default:e=this._lerp}this.buffer=new t(4*i),this._mixBufferRegion=e,this.referenceCount=this.useCount=this.cumulativeWeight=0}function ko(t,e,i){i=i||En.parseTrackName(e),this._targetGroup=t,this._bindings=t.subscribe_(e,i)}function En(t,e,i){this.path=e,this.parsedPath=i||En.parseTrackName(e),this.node=En.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function Ta(){this.uuid=pi.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;for(var e=0,i=arguments.length;e!==i;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var n=this;this.stats={objects:{get total(){return n._objects.length},get inUse(){return this.total-n.nCachedObjects_}},get bindingsPerObject(){return n._bindings.length}}}function fl(t,e,i){this._mixer=t,this._clip=e,this._localRoot=i||null,t=e.tracks,e=t.length,i=Array(e);for(var n={endingStart:2400,endingEnd:2400},s=0;s!==e;++s){var a=t[s].createInterpolant(null);i[s]=a,a.settings=n}this._interpolantSettings=n,this._interpolants=i,this._propertyBindings=Array(e),this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this._effectiveWeight=this.weight=this._effectiveTimeScale=this.timeScale=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function no(t){this._root=t,this._initMemoryManager(),this.time=this._accuIndex=0,this.timeScale=1}function eh(t,e){typeof t=="string"&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=e),this.value=t}function Nh(){Ft.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function Fh(t,e,i){Di.call(this,t,e),this.meshPerAttribute=i||1}function Uh(t,e,i,n){typeof i=="number"&&(n=i,i=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),$.call(this,t,e,i),this.meshPerAttribute=n||1}function Au(t,e,i,n){this.ray=new Fi(t,e),this.near=i||0,this.far=n||1/0,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function pl(t,e){return t.distance-e.distance}function Bo(t,e,i,n){if(t.visible!==!1&&(t.raycast(e,i),n===!0)){t=t.children,n=0;for(var s=t.length;n<s;n++)Bo(t[n],e,i,!0)}}function Gh(t,e,i){return this.radius=t!==void 0?t:1,this.phi=e!==void 0?e:0,this.theta=i!==void 0?i:0,this}function et(t,e,i){return this.radius=t!==void 0?t:1,this.theta=e!==void 0?e:0,this.y=i!==void 0?i:0,this}function ro(t,e){this.min=t!==void 0?t:new o(1/0,1/0),this.max=e!==void 0?e:new o(-1/0,-1/0)}function Ma(t,e){this.start=t!==void 0?t:new u,this.end=e!==void 0?e:new u}function qn(t){B.call(this),this.material=t,this.render=function(){}}function yi(t,e,i,n){this.object=t,this.size=e!==void 0?e:1,t=i!==void 0?i:16711680,n=n!==void 0?n:1,e=0,(i=this.object.geometry)&&i.isGeometry?e=3*i.faces.length:i&&i.isBufferGeometry&&(e=i.attributes.normal.count),i=new Ft,e=new Et(6*e,3),i.addAttribute("position",e),gi.call(this,i,new ki({color:t,linewidth:n})),this.matrixAutoUpdate=!1,this.update()}function Sa(t,e){B.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new Ft,e=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(var i=0,n=1;32>i;i++,n++){var s=i/32*Math.PI*2,a=n/32*Math.PI*2;e.push(Math.cos(s),Math.sin(s),1,Math.cos(a),Math.sin(a),1)}t.addAttribute("position",new Et(e,3)),e=new ki({fog:!1}),this.cone=new gi(t,e),this.add(this.cone),this.update()}function Cu(t){var e=[];t&&t.isBone&&e.push(t);for(var i=0;i<t.children.length;i++)e.push.apply(e,Cu(t.children[i]));return e}function Ea(t){for(var e=Cu(t),i=new Ft,n=[],s=[],a=new L(0,0,1),c=new L(0,1,0),f=0;f<e.length;f++){var v=e[f];v.parent&&v.parent.isBone&&(n.push(0,0,0),n.push(0,0,0),s.push(a.r,a.g,a.b),s.push(c.r,c.g,c.b))}i.addAttribute("position",new Et(n,3)),i.addAttribute("color",new Et(s,3)),n=new ki({vertexColors:2,depthTest:!1,depthWrite:!1,transparent:!0}),gi.call(this,i,n),this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}function kr(t,e,i){this.light=t,this.light.updateMatrixWorld(),this.color=i,t=new Or(e,4,2),e=new Ge({wireframe:!0,fog:!1}),di.call(this,t,e),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}function ba(t,e){B.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e,t=new ki({fog:!1}),e=new Ft,e.addAttribute("position",new $(new Float32Array(15),3)),this.line=new Wi(e,t),this.add(this.line),this.update()}function Aa(t,e,i){B.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,t=new _o(e),t.rotateY(.5*Math.PI),this.material=new Ge({wireframe:!0,fog:!1}),this.color===void 0&&(this.material.vertexColors=2),e=t.getAttribute("position"),e=new Float32Array(3*e.count),t.addAttribute("color",new $(e,3)),this.add(new di(t,this.material)),this.update()}function dl(t,e,i,n){t=t||10,e=e||10,i=new L(i!==void 0?i:4473924),n=new L(n!==void 0?n:8947848);var s=e/2,a=t/e,c=t/2;t=[];for(var f=[],v=0,y=0,A=-c;v<=e;v++,A+=a){t.push(-c,0,A,c,0,A),t.push(A,0,-c,A,0,c);var P=v===s?i:n;P.toArray(f,y),y+=3,P.toArray(f,y),y+=3,P.toArray(f,y),y+=3,P.toArray(f,y),y+=3}e=new Ft,e.addAttribute("position",new Et(t,3)),e.addAttribute("color",new Et(f,3)),i=new ki({vertexColors:2}),gi.call(this,e,i)}function ih(t,e,i,n,s,a){t=t||10,e=e||16,i=i||8,n=n||64,s=new L(s!==void 0?s:4473924),a=new L(a!==void 0?a:8947848);var c=[],f=[],v;for(v=0;v<=e;v++){var y=v/e*2*Math.PI,A=Math.sin(y)*t;y=Math.cos(y)*t,c.push(0,0,0),c.push(A,0,y);var P=v&1?s:a;f.push(P.r,P.g,P.b),f.push(P.r,P.g,P.b)}for(v=0;v<=i;v++){P=v&1?s:a;var k=t-t/i*v;for(e=0;e<n;e++)y=e/n*2*Math.PI,A=Math.sin(y)*k,y=Math.cos(y)*k,c.push(A,0,y),f.push(P.r,P.g,P.b),y=(e+1)/n*2*Math.PI,A=Math.sin(y)*k,y=Math.cos(y)*k,c.push(A,0,y),f.push(P.r,P.g,P.b)}t=new Ft,t.addAttribute("position",new Et(c,3)),t.addAttribute("color",new Et(f,3)),c=new ki({vertexColors:2}),gi.call(this,t,c)}function ml(t,e,i,n){this.object=t,this.size=e!==void 0?e:1,t=i!==void 0?i:16776960,n=n!==void 0?n:1,e=0,(i=this.object.geometry)&&i.isGeometry?e=i.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead."),i=new Ft,e=new Et(6*e,3),i.addAttribute("position",e),gi.call(this,i,new ki({color:t,linewidth:n})),this.matrixAutoUpdate=!1,this.update()}function pr(t,e,i){B.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,e===void 0&&(e=1),t=new Ft,t.addAttribute("position",new Et([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3)),e=new ki({fog:!1}),this.lightPlane=new Wi(t,e),this.add(this.lightPlane),t=new Ft,t.addAttribute("position",new Et([0,0,0,0,0,1],3)),this.targetLine=new Wi(t,e),this.add(this.targetLine),this.update()}function gl(t){function e(H,q,J){i(H,J),i(q,J)}function i(H,q){a.push(0,0,0),c.push(q.r,q.g,q.b),f[H]===void 0&&(f[H]=[]),f[H].push(a.length/3-1)}var n=new Ft,s=new ki({color:16777215,vertexColors:1}),a=[],c=[],f={},v=new L(16755200),y=new L(16711680),A=new L(43775),P=new L(16777215),k=new L(3355443);e("n1","n2",v),e("n2","n4",v),e("n4","n3",v),e("n3","n1",v),e("f1","f2",v),e("f2","f4",v),e("f4","f3",v),e("f3","f1",v),e("n1","f1",v),e("n2","f2",v),e("n3","f3",v),e("n4","f4",v),e("p","n1",y),e("p","n2",y),e("p","n3",y),e("p","n4",y),e("u1","u2",A),e("u2","u3",A),e("u3","u1",A),e("c","t",P),e("p","c",k),e("cn1","cn2",k),e("cn3","cn4",k),e("cf1","cf2",k),e("cf3","cf4",k),n.addAttribute("position",new Et(a,3)),n.addAttribute("color",new Et(c,3)),gi.call(this,n,s),this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=f,this.update()}function Ds(t,e){this.object=t,e===void 0&&(e=16776960),t=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new Float32Array(24),n=new Ft;n.setIndex(new $(t,1)),n.addAttribute("position",new $(i,3)),gi.call(this,n,new ki({color:e})),this.matrixAutoUpdate=!1,this.update()}function vl(t,e){this.type="Box3Helper",this.box=t,t=e!==void 0?e:16776960,e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var i=new Ft;i.setIndex(new $(e,1)),i.addAttribute("position",new Et([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),gi.call(this,i,new ki({color:t})),this.geometry.computeBoundingSphere()}function _l(t,e,i){this.type="PlaneHelper",this.plane=t,this.size=e===void 0?1:e,t=i!==void 0?i:16776960,e=new Ft,e.addAttribute("position",new Et([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3)),e.computeBoundingSphere(),Wi.call(this,e,new ki({color:t})),e=new Ft,e.addAttribute("position",new Et([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),e.computeBoundingSphere(),this.add(new di(e,new Ge({color:t,opacity:.2,transparent:!0,depthWrite:!1})))}function zs(t,e,i,n,s,a){B.call(this),t===void 0&&(t=new THREE.Vector3(0,0,1)),e===void 0&&(e=new THREE.Vector3(0,0,0)),i===void 0&&(i=1),n===void 0&&(n=16776960),s===void 0&&(s=.2*i),a===void 0&&(a=.2*s),lh===void 0&&(lh=new Ft,lh.addAttribute("position",new Et([0,0,0,0,1,0],3)),Tl=new Rs(0,.5,1,5,1),Tl.translate(0,-.5,0)),this.position.copy(e),this.line=new Wi(lh,new ki({color:n})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new di(Tl,new Ge({color:n})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(i,s,a)}function xr(t){t=t||1;var e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t];t=new Ft,t.addAttribute("position",new Et(e,3)),t.addAttribute("color",new Et([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),e=new ki({vertexColors:2}),gi.call(this,t,e)}function Pu(t){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom",this.closed=!0}function Lu(t){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom"}function Hh(t){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),On.call(this,t),this.type="catmullrom"}Number.EPSILON===void 0&&(Number.EPSILON=Math.pow(2,-52)),Number.isInteger===void 0&&(Number.isInteger=function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}),Math.sign===void 0&&(Math.sign=function(t){return 0>t?-1:0<t?1:+t}),!("name"in Function.prototype)&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),Object.assign===void 0&&function(){Object.assign=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!=null)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}}(),Object.assign(l.prototype,{addEventListener:function(t,e){this._listeners===void 0&&(this._listeners={});var i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(e)===-1&&i[t].push(e)},hasEventListener:function(t,e){if(this._listeners===void 0)return!1;var i=this._listeners;return i[t]!==void 0&&i[t].indexOf(e)!==-1},removeEventListener:function(t,e){this._listeners!==void 0&&(t=this._listeners[t],t!==void 0&&(e=t.indexOf(e),e!==-1&&t.splice(e,1)))},dispatchEvent:function(t){if(this._listeners!==void 0){var e=this._listeners[t.type];if(e!==void 0){t.target=this,e=e.slice(0);for(var i=0,n=e.length;i<n;i++)e[i].call(this,t)}}}});var pi={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){for(var t=[],e=0;256>e;e++)t[e]=(16>e?"0":"")+e.toString(16);return function(){var i=4294967295*Math.random()|0,n=4294967295*Math.random()|0,s=4294967295*Math.random()|0,a=4294967295*Math.random()|0;return(t[i&255]+t[i>>8&255]+t[i>>16&255]+t[i>>24&255]+"-"+t[n&255]+t[n>>8&255]+"-"+t[n>>16&15|64]+t[n>>24&255]+"-"+t[s&63|128]+t[s>>8&255]+"-"+t[s>>16&255]+t[s>>24&255]+t[a&255]+t[a>>8&255]+t[a>>16&255]+t[a>>24&255]).toUpperCase()}}(),clamp:function(t,e,i){return Math.max(e,Math.min(i,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,i,n,s){return n+(t-e)*(s-n)/(i-e)},lerp:function(t,e,i){return(1-i)*t+i*e},smoothstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e),t*t*(3-2*t))},smootherstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e),t*t*t*(t*(6*t-15)+10))},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*pi.DEG2RAD},radToDeg:function(t){return t*pi.RAD2DEG},isPowerOfTwo:function(t){return(t&t-1)===0&&t!==0},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}};Object.defineProperties(o.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(o.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,i=this.y;return t=t.elements,this.x=t[0]*e+t[3]*i+t[6],this.y=t[1]*e+t[4]*i+t[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(){var t=new o,e=new o;return function(i,n){return t.set(i,i),e.set(n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return 0>t&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x;return t=this.y-t.y,e*e+t*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var i=Math.cos(e);e=Math.sin(e);var n=this.x-t.x,s=this.y-t.y;return this.x=n*i-s*e+t.x,this.y=n*e+s*i+t.y,this}}),Object.assign(p.prototype,{isMatrix4:!0,set:function(t,e,i,n,s,a,c,f,v,y,A,P,k,H,q,J){var rt=this.elements;return rt[0]=t,rt[4]=e,rt[8]=i,rt[12]=n,rt[1]=s,rt[5]=a,rt[9]=c,rt[13]=f,rt[2]=v,rt[6]=y,rt[10]=A,rt[14]=P,rt[3]=k,rt[7]=H,rt[11]=q,rt[15]=J,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return new p().fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],this},copyPosition:function(t){var e=this.elements;return t=t.elements,e[12]=t[12],e[13]=t[13],e[14]=t[14],this},extractBasis:function(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this},extractRotation:function(){var t=new u;return function(e){var i=this.elements,n=e.elements,s=1/t.setFromMatrixColumn(e,0).length(),a=1/t.setFromMatrixColumn(e,1).length();return e=1/t.setFromMatrixColumn(e,2).length(),i[0]=n[0]*s,i[1]=n[1]*s,i[2]=n[2]*s,i[3]=0,i[4]=n[4]*a,i[5]=n[5]*a,i[6]=n[6]*a,i[7]=0,i[8]=n[8]*e,i[9]=n[9]*e,i[10]=n[10]*e,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,this}}(),makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,i=t.x,n=t.y,s=t.z,a=Math.cos(i);i=Math.sin(i);var c=Math.cos(n);n=Math.sin(n);var f=Math.cos(s);if(s=Math.sin(s),t.order==="XYZ"){t=a*f;var v=a*s,y=i*f,A=i*s;e[0]=c*f,e[4]=-c*s,e[8]=n,e[1]=v+y*n,e[5]=t-A*n,e[9]=-i*c,e[2]=A-t*n,e[6]=y+v*n,e[10]=a*c}else t.order==="YXZ"?(t=c*f,v=c*s,y=n*f,A=n*s,e[0]=t+A*i,e[4]=y*i-v,e[8]=a*n,e[1]=a*s,e[5]=a*f,e[9]=-i,e[2]=v*i-y,e[6]=A+t*i,e[10]=a*c):t.order==="ZXY"?(t=c*f,v=c*s,y=n*f,A=n*s,e[0]=t-A*i,e[4]=-a*s,e[8]=y+v*i,e[1]=v+y*i,e[5]=a*f,e[9]=A-t*i,e[2]=-a*n,e[6]=i,e[10]=a*c):t.order==="ZYX"?(t=a*f,v=a*s,y=i*f,A=i*s,e[0]=c*f,e[4]=y*n-v,e[8]=t*n+A,e[1]=c*s,e[5]=A*n+t,e[9]=v*n-y,e[2]=-n,e[6]=i*c,e[10]=a*c):t.order==="YZX"?(t=a*c,v=a*n,y=i*c,A=i*n,e[0]=c*f,e[4]=A-t*s,e[8]=y*s+v,e[1]=s,e[5]=a*f,e[9]=-i*f,e[2]=-n*f,e[6]=v*s+y,e[10]=t-A*s):t.order==="XZY"&&(t=a*c,v=a*n,y=i*c,A=i*n,e[0]=c*f,e[4]=-s,e[8]=n*f,e[1]=t*s+A,e[5]=a*f,e[9]=v*s-y,e[2]=y*s-v,e[6]=i*f,e[10]=A*s+t);return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(){var t=new u(0,0,0),e=new u(1,1,1);return function(i){return this.compose(t,i,e)}}(),lookAt:function(){var t=new u,e=new u,i=new u;return function(n,s,a){var c=this.elements;return i.subVectors(n,s),i.lengthSq()===0&&(i.z=1),i.normalize(),t.crossVectors(a,i),t.lengthSq()===0&&(Math.abs(a.z)===1?i.x+=1e-4:i.z+=1e-4,i.normalize(),t.crossVectors(a,i)),t.normalize(),e.crossVectors(i,t),c[0]=t.x,c[4]=e.x,c[8]=i.x,c[1]=t.y,c[5]=e.y,c[9]=i.y,c[2]=t.z,c[6]=e.z,c[10]=i.z,this}}(),multiply:function(t,e){return e!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.elements,n=e.elements;e=this.elements,t=i[0];var s=i[4],a=i[8],c=i[12],f=i[1],v=i[5],y=i[9],A=i[13],P=i[2],k=i[6],H=i[10],q=i[14],J=i[3],rt=i[7],xt=i[11];i=i[15];var gt=n[0],At=n[4],wt=n[8],Vt=n[12],Z=n[1],st=n[5],zt=n[9],ee=n[13],$t=n[2],qt=n[6],Te=n[10],de=n[14],Ie=n[3],be=n[7],ae=n[11];return n=n[15],e[0]=t*gt+s*Z+a*$t+c*Ie,e[4]=t*At+s*st+a*qt+c*be,e[8]=t*wt+s*zt+a*Te+c*ae,e[12]=t*Vt+s*ee+a*de+c*n,e[1]=f*gt+v*Z+y*$t+A*Ie,e[5]=f*At+v*st+y*qt+A*be,e[9]=f*wt+v*zt+y*Te+A*ae,e[13]=f*Vt+v*ee+y*de+A*n,e[2]=P*gt+k*Z+H*$t+q*Ie,e[6]=P*At+k*st+H*qt+q*be,e[10]=P*wt+k*zt+H*Te+q*ae,e[14]=P*Vt+k*ee+H*de+q*n,e[3]=J*gt+rt*Z+xt*$t+i*Ie,e[7]=J*At+rt*st+xt*qt+i*be,e[11]=J*wt+rt*zt+xt*Te+i*ae,e[15]=J*Vt+rt*ee+xt*de+i*n,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t=new u;return function(e){for(var i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.applyMatrix4(this),e.setXYZ(i,t.x,t.y,t.z);return e}}(),determinant:function(){var t=this.elements,e=t[0],i=t[4],n=t[8],s=t[12],a=t[1],c=t[5],f=t[9],v=t[13],y=t[2],A=t[6],P=t[10],k=t[14];return t[3]*(+s*f*A-n*v*A-s*c*P+i*v*P+n*c*k-i*f*k)+t[7]*(+e*f*k-e*v*P+s*a*P-n*a*k+n*v*y-s*f*y)+t[11]*(+e*v*A-e*c*k-s*a*A+i*a*k+s*c*y-i*v*y)+t[15]*(-n*c*y-e*f*A+e*c*P+n*a*A-i*a*P+i*f*y)},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},setPosition:function(t){var e=this.elements;return e[12]=t.x,e[13]=t.y,e[14]=t.z,this},getInverse:function(t,e){var i=this.elements,n=t.elements;t=n[0];var s=n[1],a=n[2],c=n[3],f=n[4],v=n[5],y=n[6],A=n[7],P=n[8],k=n[9],H=n[10],q=n[11],J=n[12],rt=n[13],xt=n[14];n=n[15];var gt=k*xt*A-rt*H*A+rt*y*q-v*xt*q-k*y*n+v*H*n,At=J*H*A-P*xt*A-J*y*q+f*xt*q+P*y*n-f*H*n,wt=P*rt*A-J*k*A+J*v*q-f*rt*q-P*v*n+f*k*n,Vt=J*k*y-P*rt*y-J*v*H+f*rt*H+P*v*xt-f*k*xt,Z=t*gt+s*At+a*wt+c*Vt;if(Z===0){if(e===!0)throw Error("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/Z,i[0]=gt*e,i[1]=(rt*H*c-k*xt*c-rt*a*q+s*xt*q+k*a*n-s*H*n)*e,i[2]=(v*xt*c-rt*y*c+rt*a*A-s*xt*A-v*a*n+s*y*n)*e,i[3]=(k*y*c-v*H*c-k*a*A+s*H*A+v*a*q-s*y*q)*e,i[4]=At*e,i[5]=(P*xt*c-J*H*c+J*a*q-t*xt*q-P*a*n+t*H*n)*e,i[6]=(J*y*c-f*xt*c-J*a*A+t*xt*A+f*a*n-t*y*n)*e,i[7]=(f*H*c-P*y*c+P*a*A-t*H*A-f*a*q+t*y*q)*e,i[8]=wt*e,i[9]=(J*k*c-P*rt*c-J*s*q+t*rt*q+P*s*n-t*k*n)*e,i[10]=(f*rt*c-J*v*c+J*s*A-t*rt*A-f*s*n+t*v*n)*e,i[11]=(P*v*c-f*k*c-P*s*A+t*k*A+f*s*q-t*v*q)*e,i[12]=Vt*e,i[13]=(P*rt*a-J*k*a+J*s*H-t*rt*H-P*s*xt+t*k*xt)*e,i[14]=(J*v*a-f*rt*a-J*s*y+t*rt*y+f*s*xt-t*v*xt)*e,i[15]=(f*k*a-P*v*a+P*s*y-t*k*y-f*s*H+t*v*H)*e,this},scale:function(t){var e=this.elements,i=t.x,n=t.y;return t=t.z,e[0]*=i,e[4]*=n,e[8]*=t,e[1]*=i,e[5]*=n,e[9]*=t,e[2]*=i,e[6]*=n,e[10]*=t,e[3]*=i,e[7]*=n,e[11]*=t,this},getMaxScaleOnAxis:function(){var t=this.elements;return Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1]+t[2]*t[2],t[4]*t[4]+t[5]*t[5]+t[6]*t[6],t[8]*t[8]+t[9]*t[9]+t[10]*t[10]))},makeTranslation:function(t,e,i){return this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t);return t=Math.sin(t),this.set(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var i=Math.cos(e);e=Math.sin(e);var n=1-i,s=t.x,a=t.y;t=t.z;var c=n*s,f=n*a;return this.set(c*s+i,c*a-e*t,c*t+e*a,0,c*a+e*t,f*a+i,f*t-e*s,0,c*t-e*a,f*t+e*s,n*t*t+i,0,0,0,0,1),this},makeScale:function(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this},makeShear:function(t,e,i){return this.set(1,e,i,0,t,1,i,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,i){var n=this.elements,s=e._x,a=e._y,c=e._z,f=e._w,v=s+s,y=a+a,A=c+c;e=s*v;var P=s*y;s*=A;var k=a*y;a*=A,c*=A,v*=f,y*=f,f*=A,A=i.x;var H=i.y;return i=i.z,n[0]=(1-(k+c))*A,n[1]=(P+f)*A,n[2]=(s-y)*A,n[3]=0,n[4]=(P-f)*H,n[5]=(1-(e+c))*H,n[6]=(a+v)*H,n[7]=0,n[8]=(s+y)*i,n[9]=(a-v)*i,n[10]=(1-(e+k))*i,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this},decompose:function(){var t=new u,e=new p;return function(i,n,s){var a=this.elements,c=t.set(a[0],a[1],a[2]).length(),f=t.set(a[4],a[5],a[6]).length(),v=t.set(a[8],a[9],a[10]).length();0>this.determinant()&&(c=-c),i.x=a[12],i.y=a[13],i.z=a[14],e.copy(this),i=1/c,a=1/f;var y=1/v;return e.elements[0]*=i,e.elements[1]*=i,e.elements[2]*=i,e.elements[4]*=a,e.elements[5]*=a,e.elements[6]*=a,e.elements[8]*=y,e.elements[9]*=y,e.elements[10]*=y,n.setFromRotationMatrix(e),s.x=c,s.y=f,s.z=v,this}}(),makePerspective:function(t,e,i,n,s,a){a===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var c=this.elements;return c[0]=2*s/(e-t),c[4]=0,c[8]=(e+t)/(e-t),c[12]=0,c[1]=0,c[5]=2*s/(i-n),c[9]=(i+n)/(i-n),c[13]=0,c[2]=0,c[6]=0,c[10]=-(a+s)/(a-s),c[14]=-2*a*s/(a-s),c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this},makeOrthographic:function(t,e,i,n,s,a){var c=this.elements,f=1/(e-t),v=1/(i-n),y=1/(a-s);return c[0]=2*f,c[4]=0,c[8]=0,c[12]=-((e+t)*f),c[1]=0,c[5]=2*v,c[9]=0,c[13]=-((i+n)*v),c[2]=0,c[6]=0,c[10]=-2*y,c[14]=-((a+s)*y),c[3]=0,c[7]=0,c[11]=0,c[15]=1,this},equals:function(t){var e=this.elements;t=t.elements;for(var i=0;16>i;i++)if(e[i]!==t[i])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var i=0;16>i;i++)this.elements[i]=t[i+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}),Object.assign(d,{slerp:function(t,e,i,n){return i.copy(t).slerp(e,n)},slerpFlat:function(t,e,i,n,s,a,c){var f=i[n+0],v=i[n+1],y=i[n+2];i=i[n+3],n=s[a+0];var A=s[a+1],P=s[a+2];if(s=s[a+3],i!==s||f!==n||v!==A||y!==P){a=1-c;var k=f*n+v*A+y*P+i*s,H=0<=k?1:-1,q=1-k*k;q>Number.EPSILON&&(q=Math.sqrt(q),k=Math.atan2(q,k*H),a=Math.sin(a*k)/q,c=Math.sin(c*k)/q),H*=c,f=f*a+n*H,v=v*a+A*H,y=y*a+P*H,i=i*a+s*H,a===1-c&&(c=1/Math.sqrt(f*f+v*v+y*y+i*i),f*=c,v*=c,y*=c,i*=c)}t[e]=f,t[e+1]=v,t[e+2]=y,t[e+3]=i}}),Object.defineProperties(d.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback()}}}),Object.assign(d.prototype,{isQuaternion:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!t||!t.isEuler)throw Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var i=t._x,n=t._y,s=t._z;t=t.order;var a=Math.cos,c=Math.sin,f=a(i/2),v=a(n/2);return a=a(s/2),i=c(i/2),n=c(n/2),s=c(s/2),t==="XYZ"?(this._x=i*v*a+f*n*s,this._y=f*n*a-i*v*s,this._z=f*v*s+i*n*a,this._w=f*v*a-i*n*s):t==="YXZ"?(this._x=i*v*a+f*n*s,this._y=f*n*a-i*v*s,this._z=f*v*s-i*n*a,this._w=f*v*a+i*n*s):t==="ZXY"?(this._x=i*v*a-f*n*s,this._y=f*n*a+i*v*s,this._z=f*v*s+i*n*a,this._w=f*v*a-i*n*s):t==="ZYX"?(this._x=i*v*a-f*n*s,this._y=f*n*a+i*v*s,this._z=f*v*s-i*n*a,this._w=f*v*a+i*n*s):t==="YZX"?(this._x=i*v*a+f*n*s,this._y=f*n*a+i*v*s,this._z=f*v*s-i*n*a,this._w=f*v*a-i*n*s):t==="XZY"&&(this._x=i*v*a-f*n*s,this._y=f*n*a-i*v*s,this._z=f*v*s+i*n*a,this._w=f*v*a+i*n*s),e!==!1&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){e/=2;var i=Math.sin(e);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(e),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e=t.elements,i=e[0];t=e[4];var n=e[8],s=e[1],a=e[5],c=e[9],f=e[2],v=e[6];e=e[10];var y=i+a+e;return 0<y?(i=.5/Math.sqrt(y+1),this._w=.25/i,this._x=(v-c)*i,this._y=(n-f)*i,this._z=(s-t)*i):i>a&&i>e?(i=2*Math.sqrt(1+i-a-e),this._w=(v-c)/i,this._x=.25*i,this._y=(t+s)/i,this._z=(n+f)/i):a>e?(i=2*Math.sqrt(1+a-i-e),this._w=(n-f)/i,this._x=(t+s)/i,this._y=.25*i,this._z=(c+v)/i):(i=2*Math.sqrt(1+e-i-a),this._w=(s-t)/i,this._x=(n+f)/i,this._y=(c+v)/i,this._z=.25*i),this.onChangeCallback(),this},setFromUnitVectors:function(){var t=new u,e;return function(i,n){return t===void 0&&(t=new u),e=i.dot(n)+1,1e-6>e?(e=0,Math.abs(i.x)>Math.abs(i.z)?t.set(-i.y,i.x,0):t.set(0,-i.z,i.y)):t.crossVectors(i,n),this._x=t.x,this._y=t.y,this._z=t.z,this._w=e,this.normalize()}}(),angleTo:function(t){return 2*Math.acos(Math.abs(pi.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var i=this.angleTo(t);return i===0?this:(this.slerp(t,Math.min(1,e/i)),this)},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return t===0?(this._z=this._y=this._x=0,this._w=1):(t=1/t,this._x*=t,this._y*=t,this._z*=t,this._w*=t),this.onChangeCallback(),this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var i=t._x,n=t._y,s=t._z;t=t._w;var a=e._x,c=e._y,f=e._z;return e=e._w,this._x=i*e+t*a+n*f-s*c,this._y=n*e+t*c+s*a-i*f,this._z=s*e+t*f+i*c-n*a,this._w=t*e-i*a-n*c-s*f,this.onChangeCallback(),this},slerp:function(t,e){if(e===0)return this;if(e===1)return this.copy(t);var i=this._x,n=this._y,s=this._z,a=this._w,c=a*t._w+i*t._x+n*t._y+s*t._z;if(0>c?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,c=-c):this.copy(t),1<=c)return this._w=a,this._x=i,this._y=n,this._z=s,this;if(t=1-c*c,t<=Number.EPSILON)return c=1-e,this._w=c*a+e*this._w,this._x=c*i+e*this._x,this._y=c*n+e*this._y,this._z=c*s+e*this._z,this.normalize();t=Math.sqrt(t);var f=Math.atan2(t,c);return c=Math.sin((1-e)*f)/t,e=Math.sin(e*f)/t,this._w=a*c+this._w*e,this._x=i*c+this._x*e,this._y=n*c+this._y*e,this._z=s*c+this._z*e,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return e===void 0&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(u.prototype,{isVector3:!0,set:function(t,e,i){return this.x=t,this.y=e,this.z=i,this},setScalar:function(t){return this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t=new d;return function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t=new d;return function(e,i){return this.applyQuaternion(t.setFromAxisAngle(e,i))}}(),applyMatrix3:function(t){var e=this.x,i=this.y,n=this.z;return t=t.elements,this.x=t[0]*e+t[3]*i+t[6]*n,this.y=t[1]*e+t[4]*i+t[7]*n,this.z=t[2]*e+t[5]*i+t[8]*n,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z;t=t.elements;var s=1/(t[3]*e+t[7]*i+t[11]*n+t[15]);return this.x=(t[0]*e+t[4]*i+t[8]*n+t[12])*s,this.y=(t[1]*e+t[5]*i+t[9]*n+t[13])*s,this.z=(t[2]*e+t[6]*i+t[10]*n+t[14])*s,this},applyQuaternion:function(t){var e=this.x,i=this.y,n=this.z,s=t.x,a=t.y,c=t.z;t=t.w;var f=t*e+a*n-c*i,v=t*i+c*e-s*n,y=t*n+s*i-a*e;return e=-s*e-a*i-c*n,this.x=f*t+e*-s+v*-c-y*-a,this.y=v*t+e*-a+y*-s-f*-c,this.z=y*t+e*-c+f*-a-v*-s,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(){var t=new p;return function(e){return this.applyMatrix4(t.getInverse(e.projectionMatrix)).applyMatrix4(e.matrixWorld)}}(),transformDirection:function(t){var e=this.x,i=this.y,n=this.z;return t=t.elements,this.x=t[0]*e+t[4]*i+t[8]*n,this.y=t[1]*e+t[5]*i+t[9]*n,this.z=t[2]*e+t[6]*i+t[10]*n,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t=new u,e=new u;return function(i,n){return t.set(i,i,i),e.set(n,n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},cross:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var i=t.x,n=t.y;t=t.z;var s=e.x,a=e.y;return e=e.z,this.x=n*e-t*a,this.y=t*s-i*e,this.z=i*a-n*s,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t=new u;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new u;return function(e){return this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){return t=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq()),Math.acos(pi.clamp(t,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,i=this.y-t.y;return t=this.z-t.z,e*e+i*i+t*t},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,i){var n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){return t=t.elements,this.x=t[12],this.y=t[13],this.z=t[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length();return t=this.setFromMatrixColumn(t,2).length(),this.x=e,this.y=i,this.z=t,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}}),Object.assign(m.prototype,{isMatrix3:!0,set:function(t,e,i,n,s,a,c,f,v){var y=this.elements;return y[0]=t,y[1]=n,y[2]=c,y[3]=e,y[4]=s,y[5]=f,y[6]=i,y[7]=a,y[8]=v,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return new this.constructor().fromArray(this.elements)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},setFromMatrix4:function(t){return t=t.elements,this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this},applyToBufferAttribute:function(){var t=new u;return function(e){for(var i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.applyMatrix3(this),e.setXYZ(i,t.x,t.y,t.z);return e}}(),multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.elements,n=e.elements;e=this.elements,t=i[0];var s=i[3],a=i[6],c=i[1],f=i[4],v=i[7],y=i[2],A=i[5];i=i[8];var P=n[0],k=n[3],H=n[6],q=n[1],J=n[4],rt=n[7],xt=n[2],gt=n[5];return n=n[8],e[0]=t*P+s*q+a*xt,e[3]=t*k+s*J+a*gt,e[6]=t*H+s*rt+a*n,e[1]=c*P+f*q+v*xt,e[4]=c*k+f*J+v*gt,e[7]=c*H+f*rt+v*n,e[2]=y*P+A*q+i*xt,e[5]=y*k+A*J+i*gt,e[8]=y*H+A*rt+i*n,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],s=t[3],a=t[4],c=t[5],f=t[6],v=t[7];return t=t[8],e*a*t-e*c*v-i*s*t+i*c*f+n*s*v-n*a*f},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var i=t.elements;t=this.elements;var n=i[0],s=i[1],a=i[2],c=i[3],f=i[4],v=i[5],y=i[6],A=i[7];i=i[8];var P=i*f-v*A,k=v*y-i*c,H=A*c-f*y,q=n*P+s*k+a*H;if(q===0){if(e===!0)throw Error("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0");return console.warn("THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0"),this.identity()}return e=1/q,t[0]=P*e,t[1]=(a*A-i*s)*e,t[2]=(v*s-a*f)*e,t[3]=k*e,t[4]=(i*n-a*y)*e,t[5]=(a*c-v*n)*e,t[6]=H*e,t[7]=(s*y-A*n)*e,t[8]=(f*n-s*c)*e,this},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,i,n,s,a,c){var f=Math.cos(s);s=Math.sin(s),this.set(i*f,i*s,-i*(f*a+s*c)+a+t,-n*s,n*f,-n*(-s*a+f*c)+c+e,0,0,1)},scale:function(t,e){var i=this.elements;return i[0]*=t,i[3]*=t,i[6]*=t,i[1]*=e,i[4]*=e,i[7]*=e,this},rotate:function(t){var e=Math.cos(t);t=Math.sin(t);var i=this.elements,n=i[0],s=i[3],a=i[6],c=i[1],f=i[4],v=i[7];return i[0]=e*n+t*c,i[3]=e*s+t*f,i[6]=e*a+t*v,i[1]=-t*n+e*c,i[4]=-t*s+e*f,i[7]=-t*a+e*v,this},translate:function(t,e){var i=this.elements;return i[0]+=t*i[2],i[3]+=t*i[5],i[6]+=t*i[8],i[1]+=e*i[2],i[4]+=e*i[5],i[7]+=e*i[8],this},equals:function(t){var e=this.elements;t=t.elements;for(var i=0;9>i;i++)if(e[i]!==t[i])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var i=0;9>i;i++)this.elements[i]=t[i+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}});var so={getDataURL:function(t){if(typeof HTMLCanvasElement>"u")return t.src;if(t instanceof HTMLCanvasElement)var e=t;else{e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),e.width=t.width,e.height=t.height;var i=e.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height)}return 2048<e.width||2048<e.height?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},No=0;_.DEFAULT_IMAGE=void 0,_.DEFAULT_MAPPING=300,_.prototype=Object.assign(Object.create(l.prototype),{constructor:_,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];var i={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(this.image!==void 0){var n=this.image;if(n.uuid===void 0&&(n.uuid=pi.generateUUID()),!e&&t.images[n.uuid]===void 0){if(Array.isArray(n))for(var s=[],a=0,c=n.length;a<c;a++)s.push(so.getDataURL(n[a]));else s=so.getDataURL(n);t.images[n.uuid]={uuid:n.uuid,url:s}}i.image=n.uuid}return e||(t.textures[this.uuid]=i),i},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping!==300)return t;if(t.applyMatrix3(this.matrix),0>t.x||1<t.x)switch(this.wrapS){case 1e3:t.x-=Math.floor(t.x);break;case 1001:t.x=0>t.x?0:1;break;case 1002:t.x=Math.abs(Math.floor(t.x)%2)===1?Math.ceil(t.x)-t.x:t.x-Math.floor(t.x)}if(0>t.y||1<t.y)switch(this.wrapT){case 1e3:t.y-=Math.floor(t.y);break;case 1001:t.y=0>t.y?0:1;break;case 1002:t.y=Math.abs(Math.floor(t.y)%2)===1?Math.ceil(t.y)-t.y:t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}}),Object.defineProperty(_.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(T.prototype,{isVector4:!0,set:function(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this},setScalar:function(t){return this.w=this.z=this.y=this.x=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,i=this.y,n=this.z,s=this.w;return t=t.elements,this.x=t[0]*e+t[4]*i+t[8]*n+t[12]*s,this.y=t[1]*e+t[5]*i+t[9]*n+t[13]*s,this.z=t[2]*e+t[6]*i+t[10]*n+t[14]*s,this.w=t[3]*e+t[7]*i+t[11]*n+t[15]*s,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return 1e-4>e?(this.x=1,this.z=this.y=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){t=t.elements;var e=t[0],i=t[4],n=t[8],s=t[1],a=t[5],c=t[9],f=t[2],v=t[6],y=t[10];return .01>Math.abs(i-s)&&.01>Math.abs(n-f)&&.01>Math.abs(c-v)?.1>Math.abs(i+s)&&.1>Math.abs(n+f)&&.1>Math.abs(c+v)&&.1>Math.abs(e+a+y-3)?(this.set(1,0,0,0),this):(t=Math.PI,e=(e+1)/2,a=(a+1)/2,y=(y+1)/2,i=(i+s)/4,n=(n+f)/4,c=(c+v)/4,e>a&&e>y?.01>e?(v=0,i=f=.707106781):(v=Math.sqrt(e),f=i/v,i=n/v):a>y?.01>a?(v=.707106781,f=0,i=.707106781):(f=Math.sqrt(a),v=i/f,i=c/f):.01>y?(f=v=.707106781,i=0):(i=Math.sqrt(y),v=n/i,f=c/i),this.set(v,f,i,t),this):(t=Math.sqrt((v-c)*(v-c)+(n-f)*(n-f)+(s-i)*(s-i)),.001>Math.abs(t)&&(t=1),this.x=(v-c)/t,this.y=(n-f)/t,this.z=(s-i)/t,this.w=Math.acos((e+a+y-1)/2),this)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(i,n){return t===void 0&&(t=new T,e=new T),t.set(i,i,i,i),e.set(n,n,n,n),this.clamp(t,e)}}(),clampLength:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x),this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y),this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z),this.w=0>this.w?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,i){return this.subVectors(e,t).multiplyScalar(i).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,i){return i!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}}),S.prototype=Object.assign(Object.create(l.prototype),{constructor:S,isWebGLRenderTarget:!0,setSize:function(t,e){(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),C.prototype=Object.create(S.prototype),C.prototype.constructor=C,C.prototype.isWebGLRenderTargetCube=!0,I.prototype=Object.create(_.prototype),I.prototype.constructor=I,I.prototype.isDataTexture=!0,Object.assign(N.prototype,{isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,i=1/0,n=1/0,s=-1/0,a=-1/0,c=-1/0,f=0,v=t.length;f<v;f+=3){var y=t[f],A=t[f+1],P=t[f+2];y<e&&(e=y),A<i&&(i=A),P<n&&(n=P),y>s&&(s=y),A>a&&(a=A),P>c&&(c=P)}return this.min.set(e,i,n),this.max.set(s,a,c),this},setFromBufferAttribute:function(t){for(var e=1/0,i=1/0,n=1/0,s=-1/0,a=-1/0,c=-1/0,f=0,v=t.count;f<v;f++){var y=t.getX(f),A=t.getY(f),P=t.getZ(f);y<e&&(e=y),A<i&&(i=A),P<n&&(n=P),y>s&&(s=y),A>a&&(a=A),P>c&&(c=P)}return this.min.set(e,i,n),this.max.set(s,a,c),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new u;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),setFromObject:function(t){return this.makeEmpty(),this.expandByObject(t)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new u),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new u),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},expandByObject:function(){function t(a){var c=a.geometry;if(c!==void 0){if(c.isGeometry)for(c=c.vertices,i=0,n=c.length;i<n;i++)s.copy(c[i]),s.applyMatrix4(a.matrixWorld),e.expandByPoint(s);else if(c.isBufferGeometry&&(c=c.attributes.position,c!==void 0))for(i=0,n=c.count;i<n;i++)s.fromBufferAttribute(c,i).applyMatrix4(a.matrixWorld),e.expandByPoint(s)}}var e,i,n,s=new u;return function(a){return e=this,a.updateMatrixWorld(!0),a.traverse(t),this}}(),containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new u),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:function(){var t=new u;return function(e){return this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){if(0<t.normal.x)var e=t.normal.x*this.min.x,i=t.normal.x*this.max.x;else e=t.normal.x*this.max.x,i=t.normal.x*this.min.x;return 0<t.normal.y?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),0<t.normal.z?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant},intersectsTriangle:function(){function t(P){var k,H=0;for(k=P.length-3;H<=k;H+=3){f.fromArray(P,H);var q=y.x*Math.abs(f.x)+y.y*Math.abs(f.y)+y.z*Math.abs(f.z),J=e.dot(f),rt=i.dot(f),xt=n.dot(f);if(Math.max(-Math.max(J,rt,xt),Math.min(J,rt,xt))>q)return!1}return!0}var e=new u,i=new u,n=new u,s=new u,a=new u,c=new u,f=new u,v=new u,y=new u,A=new u;return function(P){return this.isEmpty()||(this.getCenter(v),y.subVectors(this.max,v),e.subVectors(P.a,v),i.subVectors(P.b,v),n.subVectors(P.c,v),s.subVectors(i,e),a.subVectors(n,i),c.subVectors(e,n),P=[0,-s.z,s.y,0,-a.z,a.y,0,-c.z,c.y,s.z,0,-s.x,a.z,0,-a.x,c.z,0,-c.x,-s.y,s.x,0,-a.y,a.x,0,-c.y,c.x,0],!t(P))||(P=[1,0,0,0,1,0,0,0,1],!t(P))?!1:(A.crossVectors(s,a),P=[A.x,A.y,A.z],t(P))}}(),clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new u),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new u;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new u;return function(e){return e===void 0&&(console.warn("THREE.Box3: .getBoundingSphere() target is now required"),e=new z),this.getCenter(e.center),e.radius=.5*this.getSize(t).length(),e}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(){var t=[new u,new u,new u,new u,new u,new u,new u,new u];return function(e){return this.isEmpty()?this:(t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(t),this)}}(),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(z.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t=new N;return function(e,i){var n=this.center;i!==void 0?n.copy(i):t.setFromPoints(e).getCenter(n);for(var s=i=0,a=e.length;s<a;s++)i=Math.max(i,n.distanceToSquared(e[s]));return this.radius=Math.sqrt(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return 0>=this.radius},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius},clampPoint:function(t,e){var i=this.center.distanceToSquared(t);return e===void 0&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new u),e.copy(t),i>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return t===void 0&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new N),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius*=t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}}),Object.assign(U.prototype,{set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(){var t=new u,e=new u;return function(i,n,s){return n=t.subVectors(s,n).cross(e.subVectors(i,n)).normalize(),this.setFromNormalAndCoplanarPoint(n,i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return e===void 0&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new u),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(){var t=new u;return function(e,i){i===void 0&&(console.warn("THREE.Plane: .intersectLine() target is now required"),i=new u);var n=e.delta(t),s=this.normal.dot(n);if(s===0){if(this.distanceToPoint(e.start)===0)return i.copy(e.start)}else if(s=-(e.start.dot(this.normal)+this.constant)/s,!(0>s||1<s))return i.copy(n).multiplyScalar(s).add(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start);return t=this.distanceToPoint(t.end),0>e&&0<t||0>t&&0<e},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return t===void 0&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new u),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new u,e=new m;return function(i,n){return n=n||e.getNormalMatrix(i),i=this.coplanarPoint(t).applyMatrix4(i),n=this.normal.applyMatrix3(n).normalize(),this.constant=-i.dot(n),this}}(),translate:function(t){return this.constant-=t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}}),Object.assign(E.prototype,{set:function(t,e,i,n,s,a){var c=this.planes;return c[0].copy(t),c[1].copy(e),c[2].copy(i),c[3].copy(n),c[4].copy(s),c[5].copy(a),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){for(var e=this.planes,i=0;6>i;i++)e[i].copy(t.planes[i]);return this},setFromMatrix:function(t){var e=this.planes,i=t.elements;t=i[0];var n=i[1],s=i[2],a=i[3],c=i[4],f=i[5],v=i[6],y=i[7],A=i[8],P=i[9],k=i[10],H=i[11],q=i[12],J=i[13],rt=i[14];return i=i[15],e[0].setComponents(a-t,y-c,H-A,i-q).normalize(),e[1].setComponents(a+t,y+c,H+A,i+q).normalize(),e[2].setComponents(a+n,y+f,H+P,i+J).normalize(),e[3].setComponents(a-n,y-f,H-P,i-J).normalize(),e[4].setComponents(a-s,y-v,H-k,i-rt).normalize(),e[5].setComponents(a+s,y+v,H+k,i+rt).normalize(),this},intersectsObject:function(){var t=new z;return function(e){var i=e.geometry;return i.boundingSphere===null&&i.computeBoundingSphere(),t.copy(i.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new z;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){var e=this.planes,i=t.center;t=-t.radius;for(var n=0;6>n;n++)if(e[n].distanceToPoint(i)<t)return!1;return!0},intersectsBox:function(){var t=new u;return function(e){for(var i=this.planes,n=0;6>n;n++){var s=i[n];if(t.x=0<s.normal.x?e.max.x:e.min.x,t.y=0<s.normal.y?e.max.y:e.min.y,t.z=0<s.normal.z?e.max.z:e.min.z,0>s.distanceToPoint(t))return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,i=0;6>i;i++)if(0>e[i].distanceToPoint(t))return!1;return!0}});var bi={alphamap_fragment:`#ifdef USE_ALPHAMAP
|
|
286
286
|
diffuseColor.a *= texture2D( alphaMap, vUv ).g;
|
|
287
287
|
#endif
|
|
288
288
|
`,alphamap_pars_fragment:`#ifdef USE_ALPHAMAP
|
|
@@ -2567,20 +2567,20 @@ void main() {
|
|
|
2567
2567
|
#include <clipping_planes_vertex>
|
|
2568
2568
|
#include <fog_vertex>
|
|
2569
2569
|
}
|
|
2570
|
-
`},Cn={merge:function(t){for(var e={},i=0;i<t.length;i++){var n=this.clone(t[i]),o;for(o in n)e[o]=n[o]}return e},clone:function(t){var e={},i;for(i in t){e[i]={};for(var n in t[i]){var o=t[i][n];o&&(o.isColor||o.isMatrix3||o.isMatrix4||o.isVector2||o.isVector3||o.isVector4||o.isTexture)?e[i][n]=o.clone():Array.isArray(o)?e[i][n]=o.slice():e[i][n]=o}}return e}},Cr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object.assign(A.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):typeof t=="number"?this.setHex(t):typeof t=="string"&&this.setStyle(t),this},setScalar:function(t){return this.b=this.g=this.r=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,this},setRGB:function(t,e,i){return this.r=t,this.g=e,this.b=i,this},setHSL:function(){function t(e,i,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(i-e)*n:.5>n?i:n<2/3?e+6*(i-e)*(2/3-n):e}return function(e,i,n){return e=pi.euclideanModulo(e,1),i=pi.clamp(i,0,1),n=pi.clamp(n,0,1),i===0?this.r=this.g=this.b=n:(i=.5>=n?n*(1+i):n+i-n*i,n=2*n-i,this.r=t(n,i,e+1/3),this.g=t(n,i,e),this.b=t(n,i,e-1/3)),this}}(),setStyle:function(t){function e(l){l!==void 0&&1>parseFloat(l)&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var i;if(i=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var n=i[2];switch(i[1]){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,e(i[5]),this;if(i=/^(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n)){n=parseFloat(i[1])/360;var o=parseInt(i[2],10)/100,s=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(n,o,s)}}}else if(i=/^#([A-Fa-f0-9]+)$/.exec(t)){if(i=i[1],n=i.length,n===3)return this.r=parseInt(i.charAt(0)+i.charAt(0),16)/255,this.g=parseInt(i.charAt(1)+i.charAt(1),16)/255,this.b=parseInt(i.charAt(2)+i.charAt(2),16)/255,this;if(n===6)return this.r=parseInt(i.charAt(0)+i.charAt(1),16)/255,this.g=parseInt(i.charAt(2)+i.charAt(3),16)/255,this.b=parseInt(i.charAt(4)+i.charAt(5),16)/255,this}return t&&0<t.length&&(i=Cr[t],i!==void 0?this.setHex(i):console.warn("THREE.Color: Unknown color "+t)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return e===void 0&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){return e===void 0&&(e=2),e=0<e?1/e:1,this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(){function t(e){return .04045>e?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),copyLinearToSRGB:function(){function t(e){return .0031308>e?12.92*e:1.055*Math.pow(e,.41666)-.055}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){t===void 0&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});var e=this.r,i=this.g,n=this.b,o=Math.max(e,i,n),s=Math.min(e,i,n),l,h=(s+o)/2;if(s===o)s=l=0;else{var c=o-s;switch(s=.5>=h?c/(o+s):c/(2-o-s),o){case e:l=(i-n)/c+(i<n?6:0);break;case i:l=(n-e)/c+2;break;case n:l=(e-i)/c+4}l/=6}return t.h=l,t.s=s,t.l=h,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(){var t={};return function(e,i,n){return this.getHSL(t),t.h+=e,t.s+=i,t.l+=n,this.setHSL(t.h,t.s,t.l),this}}(),add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:function(){var t={h:0,s:0,l:0},e={h:0,s:0,l:0};return function(i,n){this.getHSL(t),i.getHSL(e),i=pi.lerp(t.h,e.h,n);var o=pi.lerp(t.s,e.s,n);return n=pi.lerp(t.l,e.l,n),this.setHSL(i,o,n),this}}(),equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return e===void 0&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}});var qe={common:{diffuse:{value:new A(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new C},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new p(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new A(16777215)}},lights:{ambientLightColor:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new A(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new C}},sprite:{diffuse:{value:new A(15658734)},opacity:{value:1},center:{value:new p(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new C}}},Wr={basic:{uniforms:Cn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.fog]),vertexShader:bi.meshbasic_vert,fragmentShader:bi.meshbasic_frag},lambert:{uniforms:Cn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.fog,qe.lights,{emissive:{value:new A(0)}}]),vertexShader:bi.meshlambert_vert,fragmentShader:bi.meshlambert_frag},phong:{uniforms:Cn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.gradientmap,qe.fog,qe.lights,{emissive:{value:new A(0)},specular:{value:new A(1118481)},shininess:{value:30}}]),vertexShader:bi.meshphong_vert,fragmentShader:bi.meshphong_frag},standard:{uniforms:Cn.merge([qe.common,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.roughnessmap,qe.metalnessmap,qe.fog,qe.lights,{emissive:{value:new A(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:bi.meshphysical_vert,fragmentShader:bi.meshphysical_frag},matcap:{uniforms:Cn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,{matcap:{value:null}}]),vertexShader:bi.meshmatcap_vert,fragmentShader:bi.meshmatcap_frag},points:{uniforms:Cn.merge([qe.points,qe.fog]),vertexShader:bi.points_vert,fragmentShader:bi.points_frag},dashed:{uniforms:Cn.merge([qe.common,qe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:bi.linedashed_vert,fragmentShader:bi.linedashed_frag},depth:{uniforms:Cn.merge([qe.common,qe.displacementmap]),vertexShader:bi.depth_vert,fragmentShader:bi.depth_frag},normal:{uniforms:Cn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,{opacity:{value:1}}]),vertexShader:bi.normal_vert,fragmentShader:bi.normal_frag},sprite:{uniforms:Cn.merge([qe.sprite,qe.fog]),vertexShader:bi.sprite_vert,fragmentShader:bi.sprite_frag},background:{uniforms:{uvTransform:{value:new C},t2D:{value:null}},vertexShader:bi.background_vert,fragmentShader:bi.background_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:bi.cube_vert,fragmentShader:bi.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:bi.equirect_vert,fragmentShader:bi.equirect_frag},distanceRGBA:{uniforms:Cn.merge([qe.common,qe.displacementmap,{referencePosition:{value:new m},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:bi.distanceRGBA_vert,fragmentShader:bi.distanceRGBA_frag},shadow:{uniforms:Cn.merge([qe.lights,qe.fog,{color:{value:new A(0)},opacity:{value:1}}]),vertexShader:bi.shadow_vert,fragmentShader:bi.shadow_frag}};Wr.physical={uniforms:Cn.merge([Wr.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:bi.meshphysical_vert,fragmentShader:bi.meshphysical_frag},Object.assign(M.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,i=t.vertexNormals.length;e<i;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,i=t.vertexColors.length;e<i;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}}),x.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" "),x.DefaultOrder="XYZ",Object.defineProperties(x.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback()}}}),Object.assign(x.prototype,{isEuler:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._order=n||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,i){var n=pi.clamp,o=t.elements;t=o[0];var s=o[4],l=o[8],h=o[1],c=o[5],f=o[9],v=o[2],y=o[6];return o=o[10],e=e||this._order,e==="XYZ"?(this._y=Math.asin(n(l,-1,1)),.99999>Math.abs(l)?(this._x=Math.atan2(-f,o),this._z=Math.atan2(-s,t)):(this._x=Math.atan2(y,c),this._z=0)):e==="YXZ"?(this._x=Math.asin(-n(f,-1,1)),.99999>Math.abs(f)?(this._y=Math.atan2(l,o),this._z=Math.atan2(h,c)):(this._y=Math.atan2(-v,t),this._z=0)):e==="ZXY"?(this._x=Math.asin(n(y,-1,1)),.99999>Math.abs(y)?(this._y=Math.atan2(-v,o),this._z=Math.atan2(-s,c)):(this._y=0,this._z=Math.atan2(h,t))):e==="ZYX"?(this._y=Math.asin(-n(v,-1,1)),.99999>Math.abs(v)?(this._x=Math.atan2(y,o),this._z=Math.atan2(h,t)):(this._x=0,this._z=Math.atan2(-s,c))):e==="YZX"?(this._z=Math.asin(n(h,-1,1)),.99999>Math.abs(h)?(this._x=Math.atan2(-f,c),this._y=Math.atan2(-v,t)):(this._x=0,this._y=Math.atan2(l,o))):e==="XZY"?(this._z=Math.asin(-n(s,-1,1)),.99999>Math.abs(s)?(this._x=Math.atan2(y,c),this._y=Math.atan2(l,t)):(this._x=Math.atan2(-f,o),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,i!==!1&&this.onChangeCallback(),this},setFromQuaternion:function(){var t=new J;return function(e,i,n){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,i,n)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new G;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new m(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(F.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask=this.mask|1<<t|0},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},test:function(t){return(this.mask&t.mask)!==0}});var fh=0;z.DefaultUp=new m(0,1,0),z.DefaultMatrixAutoUpdate=!0,z.prototype=Object.assign(Object.create($.prototype),{constructor:z,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(){var t=new G;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.multiply(t),this}}(),rotateOnWorldAxis:function(){var t=new G;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new m(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new m(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new m(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new m;return function(e,i){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(i)),this}}(),translateX:function(){var t=new m(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new m(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new m(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new J;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new G,e=new J,i=new m,n=new m;return function(o,s,l){o.isVector3?i.copy(o):i.set(o,s,l),o=this.parent,this.updateWorldMatrix(!0,!1),n.setFromMatrixPosition(this.matrixWorld),this.isCamera?e.lookAt(n,i,this.up):e.lookAt(i,n,this.up),this.quaternion.setFromRotationMatrix(e),o&&(e.extractRotation(o.matrixWorld),t.setFromRotationMatrix(e),this.quaternion.premultiply(t.inverse()))}}(),add:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.parent!==null&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}return e=this.children.indexOf(t),e!==-1&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(e,1)),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var i=0,n=this.children.length;i<n;i++){var o=this.children[i].getObjectByProperty(t,e);if(o!==void 0)return o}},getWorldPosition:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new m),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var t=new m,e=new m;return function(i){return i===void 0&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),i=new G),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,i,e),i}}(),getWorldScale:function(){var t=new m,e=new G;return function(i){return i===void 0&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),i=new m),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,i),i}}(),getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new m),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverse(t)},traverseVisible:function(t){if(this.visible!==!1){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0)for(t=this.children,e=0,i=t.length;e<i;e++)t[e].updateWorldMatrix(!1,!0)},toJSON:function(t){function e(v,y){return v[y.uuid]===void 0&&(v[y.uuid]=y.toJSON(t)),y.uuid}function i(v){var y=[],S;for(S in v){var P=v[S];delete P.metadata,y.push(P)}return y}var n=t===void 0||typeof t=="string",o={};n&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},o.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var s={};if(s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.castShadow===!0&&(s.castShadow=!0),this.receiveShadow===!0&&(s.receiveShadow=!0),this.visible===!1&&(s.visible=!1),this.frustumCulled===!1&&(s.frustumCulled=!1),this.renderOrder!==0&&(s.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isMesh||this.isLine||this.isPoints){s.geometry=e(t.geometries,this.geometry);var l=this.geometry.parameters;if(l!==void 0&&l.shapes!==void 0)if(l=l.shapes,Array.isArray(l))for(var h=0,c=l.length;h<c;h++)e(t.shapes,l[h]);else e(t.shapes,l)}if(this.material!==void 0)if(Array.isArray(this.material)){for(l=[],h=0,c=this.material.length;h<c;h++)l.push(e(t.materials,this.material[h]));s.material=l}else s.material=e(t.materials,this.material);if(0<this.children.length)for(s.children=[],h=0;h<this.children.length;h++)s.children.push(this.children[h].toJSON(t).object);if(n){n=i(t.geometries),h=i(t.materials),c=i(t.textures);var f=i(t.images);l=i(t.shapes),0<n.length&&(o.geometries=n),0<h.length&&(o.materials=h),0<c.length&&(o.textures=c),0<f.length&&(o.images=f),0<l.length&&(o.shapes=l)}return o.object=s,o},clone:function(t){return new this.constructor().copy(this,t)},copy:function(t,e){if(e===void 0&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(e=0;e<t.children.length;e++)this.add(t.children[e].clone());return this}});var ph=0;W.prototype=Object.assign(Object.create($.prototype),{constructor:W,isGeometry:!0,applyMatrix:function(t){for(var e=new C().getNormalMatrix(t),i=0,n=this.vertices.length;i<n;i++)this.vertices[i].applyMatrix4(t);for(i=0,n=this.faces.length;i<n;i++){t=this.faces[i],t.normal.applyMatrix3(e).normalize();for(var o=0,s=t.vertexNormals.length;o<s;o++)t.vertexNormals[o].applyMatrix3(e).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.normalsNeedUpdate=this.verticesNeedUpdate=!0,this},rotateX:function(){var t=new J;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new J;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new J;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new J;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new J;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new z;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),fromBufferGeometry:function(t){function e(N,j,et,_t){var mt=h===void 0?[]:[i.colors[N].clone(),i.colors[j].clone(),i.colors[et].clone()],bt=l===void 0?[]:[new m().fromArray(l,3*N),new m().fromArray(l,3*j),new m().fromArray(l,3*et)];_t=new M(N,j,et,bt,mt,_t),i.faces.push(_t),c!==void 0&&i.faceVertexUvs[0].push([new p().fromArray(c,2*N),new p().fromArray(c,2*j),new p().fromArray(c,2*et)]),f!==void 0&&i.faceVertexUvs[1].push([new p().fromArray(f,2*N),new p().fromArray(f,2*j),new p().fromArray(f,2*et)])}var i=this,n=t.index!==null?t.index.array:void 0,o=t.attributes,s=o.position.array,l=o.normal!==void 0?o.normal.array:void 0,h=o.color!==void 0?o.color.array:void 0,c=o.uv!==void 0?o.uv.array:void 0,f=o.uv2!==void 0?o.uv2.array:void 0;f!==void 0&&(this.faceVertexUvs[1]=[]);for(var v=o=0;o<s.length;o+=3,v+=2)i.vertices.push(new m().fromArray(s,o)),h!==void 0&&i.colors.push(new A().fromArray(h,o));var y=t.groups;if(0<y.length)for(o=0;o<y.length;o++){s=y[o];var S=s.start,P=s.count;for(v=S,S+=P;v<S;v+=3)n!==void 0?e(n[v],n[v+1],n[v+2],s.materialIndex):e(v,v+1,v+2,s.materialIndex)}else if(n!==void 0)for(o=0;o<n.length;o+=3)e(n[o],n[o+1],n[o+2]);else for(o=0;o<s.length/3;o+=3)e(o,o+1,o+2);return this.computeFaceNormals(),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){var t=new m;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius;e=e===0?1:1/e;var i=new J;return i.set(e,0,0,-e*t.x,0,e,0,-e*t.y,0,0,e,-e*t.z,0,0,0,1),this.applyMatrix(i),this},computeFaceNormals:function(){for(var t=new m,e=new m,i=0,n=this.faces.length;i<n;i++){var o=this.faces[i],s=this.vertices[o.a],l=this.vertices[o.b];t.subVectors(this.vertices[o.c],l),e.subVectors(s,l),t.cross(e),t.normalize(),o.normal.copy(t)}},computeVertexNormals:function(t){t===void 0&&(t=!0);var e,i=Array(this.vertices.length),n=0;for(e=this.vertices.length;n<e;n++)i[n]=new m;if(t){var o=new m,s=new m;for(t=0,n=this.faces.length;t<n;t++){e=this.faces[t];var l=this.vertices[e.a],h=this.vertices[e.b],c=this.vertices[e.c];o.subVectors(c,h),s.subVectors(l,h),o.cross(s),i[e.a].add(o),i[e.b].add(o),i[e.c].add(o)}}else for(this.computeFaceNormals(),t=0,n=this.faces.length;t<n;t++)e=this.faces[t],i[e.a].add(e.normal),i[e.b].add(e.normal),i[e.c].add(e.normal);for(n=0,e=this.vertices.length;n<e;n++)i[n].normalize();for(t=0,n=this.faces.length;t<n;t++)e=this.faces[t],l=e.vertexNormals,l.length===3?(l[0].copy(i[e.a]),l[1].copy(i[e.b]),l[2].copy(i[e.c])):(l[0]=i[e.a].clone(),l[1]=i[e.b].clone(),l[2]=i[e.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t;this.computeFaceNormals();var e=0;for(t=this.faces.length;e<t;e++){var i=this.faces[e],n=i.vertexNormals;n.length===3?(n[0].copy(i.normal),n[1].copy(i.normal),n[2].copy(i.normal)):(n[0]=i.normal.clone(),n[1]=i.normal.clone(),n[2]=i.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,i=0;for(e=this.faces.length;i<e;i++){var n=this.faces[i];n.__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]);var o=0;for(t=n.vertexNormals.length;o<t;o++)n.__originalVertexNormals[o]?n.__originalVertexNormals[o].copy(n.vertexNormals[o]):n.__originalVertexNormals[o]=n.vertexNormals[o].clone()}var s=new W;for(s.faces=this.faces,o=0,t=this.morphTargets.length;o<t;o++){if(!this.morphNormals[o]){this.morphNormals[o]={},this.morphNormals[o].faceNormals=[],this.morphNormals[o].vertexNormals=[],n=this.morphNormals[o].faceNormals;var l=this.morphNormals[o].vertexNormals;for(i=0,e=this.faces.length;i<e;i++){var h=new m,c={a:new m,b:new m,c:new m};n.push(h),l.push(c)}}for(l=this.morphNormals[o],s.vertices=this.morphTargets[o].vertices,s.computeFaceNormals(),s.computeVertexNormals(),i=0,e=this.faces.length;i<e;i++)n=this.faces[i],h=l.faceNormals[i],c=l.vertexNormals[i],h.copy(n.normal),c.a.copy(n.vertexNormals[0]),c.b.copy(n.vertexNormals[1]),c.c.copy(n.vertexNormals[2])}for(i=0,e=this.faces.length;i<e;i++)n=this.faces[i],n.normal=n.__originalFaceNormal,n.vertexNormals=n.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new K),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new B),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,i){if(t&&t.isGeometry){var n,o=this.vertices.length,s=this.vertices,l=t.vertices,h=this.faces,c=t.faces,f=this.faceVertexUvs[0],v=t.faceVertexUvs[0],y=this.colors,S=t.colors;i===void 0&&(i=0),e!==void 0&&(n=new C().getNormalMatrix(e)),t=0;for(var P=l.length;t<P;t++){var N=l[t].clone();e!==void 0&&N.applyMatrix4(e),s.push(N)}for(t=0,P=S.length;t<P;t++)y.push(S[t].clone());for(t=0,P=c.length;t<P;t++){l=c[t];var j=l.vertexNormals;for(S=l.vertexColors,y=new M(l.a+o,l.b+o,l.c+o),y.normal.copy(l.normal),n!==void 0&&y.normal.applyMatrix3(n).normalize(),e=0,s=j.length;e<s;e++)N=j[e].clone(),n!==void 0&&N.applyMatrix3(n).normalize(),y.vertexNormals.push(N);for(y.color.copy(l.color),e=0,s=S.length;e<s;e++)N=S[e],y.vertexColors.push(N.clone());y.materialIndex=l.materialIndex+i,h.push(y)}for(t=0,P=v.length;t<P;t++)if(i=v[t],n=[],i!==void 0){for(e=0,s=i.length;e<s;e++)n.push(i[e].clone());f.push(n)}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t)},mergeMesh:function(t){t&&t.isMesh?(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t)},mergeVertices:function(){var t={},e=[],i=[],n=Math.pow(10,4),o,s=0;for(o=this.vertices.length;s<o;s++){var l=this.vertices[s];l=Math.round(l.x*n)+"_"+Math.round(l.y*n)+"_"+Math.round(l.z*n),t[l]===void 0?(t[l]=s,e.push(this.vertices[s]),i[s]=e.length-1):i[s]=i[t[l]]}for(t=[],s=0,o=this.faces.length;s<o;s++)for(n=this.faces[s],n.a=i[n.a],n.b=i[n.b],n.c=i[n.c],n=[n.a,n.b,n.c],l=0;3>l;l++)if(n[l]===n[(l+1)%3]){t.push(s);break}for(s=t.length-1;0<=s;s--)for(n=t[s],this.faces.splice(n,1),i=0,o=this.faceVertexUvs.length;i<o;i++)this.faceVertexUvs[i].splice(n,1);return s=this.vertices.length-e.length,this.vertices=e,s},setFromPoints:function(t){this.vertices=[];for(var e=0,i=t.length;e<i;e++){var n=t[e];this.vertices.push(new m(n.x,n.y,n.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,i=0;i<e;i++)t[i]._id=i;t.sort(function(c,f){return c.materialIndex-f.materialIndex});var n=this.faceVertexUvs[0],o=this.faceVertexUvs[1],s,l;for(n&&n.length===e&&(s=[]),o&&o.length===e&&(l=[]),i=0;i<e;i++){var h=t[i]._id;s&&s.push(n[h]),l&&l.push(o[h])}s&&(this.faceVertexUvs[0]=s),l&&(this.faceVertexUvs[1]=l)},toJSON:function(){function t(Vt,V,it){return it?Vt|1<<V:Vt&~(1<<V)}function e(Vt){var V=Vt.x.toString()+Vt.y.toString()+Vt.z.toString();return f[V]!==void 0||(f[V]=c.length/3,c.push(Vt.x,Vt.y,Vt.z)),f[V]}function i(Vt){var V=Vt.r.toString()+Vt.g.toString()+Vt.b.toString();return y[V]!==void 0||(y[V]=v.length,v.push(Vt.getHex())),y[V]}function n(Vt){var V=Vt.x.toString()+Vt.y.toString();return P[V]!==void 0||(P[V]=S.length/2,S.push(Vt.x,Vt.y)),P[V]}var o={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(o.uuid=this.uuid,o.type=this.type,this.name!==""&&(o.name=this.name),this.parameters!==void 0){var s=this.parameters,l;for(l in s)s[l]!==void 0&&(o[l]=s[l]);return o}for(s=[],l=0;l<this.vertices.length;l++){var h=this.vertices[l];s.push(h.x,h.y,h.z)}h=[];var c=[],f={},v=[],y={},S=[],P={};for(l=0;l<this.faces.length;l++){var N=this.faces[l],j=this.faceVertexUvs[0][l]!==void 0,et=0<N.normal.length(),_t=0<N.vertexNormals.length,mt=N.color.r!==1||N.color.g!==1||N.color.b!==1,bt=0<N.vertexColors.length,xt=0;xt=t(xt,0,0),xt=t(xt,1,!0),xt=t(xt,2,!1),xt=t(xt,3,j),xt=t(xt,4,et),xt=t(xt,5,_t),xt=t(xt,6,mt),xt=t(xt,7,bt),h.push(xt),h.push(N.a,N.b,N.c),h.push(N.materialIndex),j&&(j=this.faceVertexUvs[0][l],h.push(n(j[0]),n(j[1]),n(j[2]))),et&&h.push(e(N.normal)),_t&&(et=N.vertexNormals,h.push(e(et[0]),e(et[1]),e(et[2]))),mt&&h.push(i(N.color)),bt&&(N=N.vertexColors,h.push(i(N[0]),i(N[1]),i(N[2])))}return o.data={},o.data.vertices=s,o.data.normals=c,0<v.length&&(o.data.colors=v),0<S.length&&(o.data.uvs=[S]),o.data.faces=h,o},clone:function(){return new W().copy(this)},copy:function(t){var e,i,n;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var o=t.vertices,s=0;for(e=o.length;s<e;s++)this.vertices.push(o[s].clone());for(o=t.colors,s=0,e=o.length;s<e;s++)this.colors.push(o[s].clone());for(o=t.faces,s=0,e=o.length;s<e;s++)this.faces.push(o[s].clone());for(s=0,e=t.faceVertexUvs.length;s<e;s++){var l=t.faceVertexUvs[s];for(this.faceVertexUvs[s]===void 0&&(this.faceVertexUvs[s]=[]),o=0,i=l.length;o<i;o++){var h=l[o],c=[],f=0;for(n=h.length;f<n;f++)c.push(h[f].clone());this.faceVertexUvs[s].push(c)}}for(f=t.morphTargets,s=0,e=f.length;s<e;s++){if(n={},n.name=f[s].name,f[s].vertices!==void 0)for(n.vertices=[],o=0,i=f[s].vertices.length;o<i;o++)n.vertices.push(f[s].vertices[o].clone());if(f[s].normals!==void 0)for(n.normals=[],o=0,i=f[s].normals.length;o<i;o++)n.normals.push(f[s].normals[o].clone());this.morphTargets.push(n)}for(f=t.morphNormals,s=0,e=f.length;s<e;s++){if(n={},f[s].vertexNormals!==void 0)for(n.vertexNormals=[],o=0,i=f[s].vertexNormals.length;o<i;o++)l=f[s].vertexNormals[o],h={},h.a=l.a.clone(),h.b=l.b.clone(),h.c=l.c.clone(),n.vertexNormals.push(h);if(f[s].faceNormals!==void 0)for(n.faceNormals=[],o=0,i=f[s].faceNormals.length;o<i;o++)n.faceNormals.push(f[s].faceNormals[o].clone());this.morphNormals.push(n)}for(o=t.skinWeights,s=0,e=o.length;s<e;s++)this.skinWeights.push(o[s].clone());for(o=t.skinIndices,s=0,e=o.length;s<e;s++)this.skinIndices.push(o[s].clone());for(o=t.lineDistances,s=0,e=o.length;s<e;s++)this.lineDistances.push(o[s]);return s=t.boundingBox,s!==null&&(this.boundingBox=s.clone()),s=t.boundingSphere,s!==null&&(this.boundingSphere=s.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(ht.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(ht.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.itemSize:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var n=0,o=this.itemSize;n<o;n++)this.array[t+n]=e.array[i+n];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,i=0,n=0,o=t.length;n<o;n++){var s=t[n];s===void 0&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",n),s=new A),e[i++]=s.r,e[i++]=s.g,e[i++]=s.b}return this},copyVector2sArray:function(t){for(var e=this.array,i=0,n=0,o=t.length;n<o;n++){var s=t[n];s===void 0&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",n),s=new p),e[i++]=s.x,e[i++]=s.y}return this},copyVector3sArray:function(t){for(var e=this.array,i=0,n=0,o=t.length;n<o;n++){var s=t[n];s===void 0&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",n),s=new m),e[i++]=s.x,e[i++]=s.y,e[i++]=s.z}return this},copyVector4sArray:function(t){for(var e=this.array,i=0,n=0,o=t.length;n<o;n++){var s=t[n];s===void 0&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",n),s=new E),e[i++]=s.x,e[i++]=s.y,e[i++]=s.z,e[i++]=s.w}return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this},setXYZW:function(t,e,i,n,o){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=o,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),ft.prototype=Object.create(ht.prototype),ft.prototype.constructor=ft,gt.prototype=Object.create(ht.prototype),gt.prototype.constructor=gt,zt.prototype=Object.create(ht.prototype),zt.prototype.constructor=zt,lt.prototype=Object.create(ht.prototype),lt.prototype.constructor=lt,Et.prototype=Object.create(ht.prototype),Et.prototype.constructor=Et,D.prototype=Object.create(ht.prototype),D.prototype.constructor=D,Bt.prototype=Object.create(ht.prototype),Bt.prototype.constructor=Bt,Ct.prototype=Object.create(ht.prototype),Ct.prototype.constructor=Ct,Rt.prototype=Object.create(ht.prototype),Rt.prototype.constructor=Rt,Object.assign(ge.prototype,{computeGroups:function(t){var e=[],i=void 0;t=t.faces;for(var n=0;n<t.length;n++){var o=t[n];if(o.materialIndex!==i){i=o.materialIndex,s!==void 0&&(s.count=3*n-s.start,e.push(s));var s={start:3*n,materialIndex:i}}}s!==void 0&&(s.count=3*n-s.start,e.push(s)),this.groups=e},fromGeometry:function(t){var e=t.faces,i=t.vertices,n=t.faceVertexUvs,o=n[0]&&0<n[0].length,s=n[1]&&0<n[1].length,l=t.morphTargets,h=l.length;if(0<h){for(var c=[],f=0;f<h;f++)c[f]={name:l[f].name,data:[]};this.morphTargets.position=c}var v=t.morphNormals,y=v.length;if(0<y){var S=[];for(f=0;f<y;f++)S[f]={name:v[f].name,data:[]};this.morphTargets.normal=S}var P=t.skinIndices,N=t.skinWeights,j=P.length===i.length,et=N.length===i.length;for(0<i.length&&e.length===0&&console.error("THREE.DirectGeometry: Faceless geometries are not supported."),f=0;f<e.length;f++){var _t=e[f];this.vertices.push(i[_t.a],i[_t.b],i[_t.c]);var mt=_t.vertexNormals;for(mt.length===3?this.normals.push(mt[0],mt[1],mt[2]):(mt=_t.normal,this.normals.push(mt,mt,mt)),mt=_t.vertexColors,mt.length===3?this.colors.push(mt[0],mt[1],mt[2]):(mt=_t.color,this.colors.push(mt,mt,mt)),o===!0&&(mt=n[0][f],mt!==void 0?this.uvs.push(mt[0],mt[1],mt[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",f),this.uvs.push(new p,new p,new p))),s===!0&&(mt=n[1][f],mt!==void 0?this.uvs2.push(mt[0],mt[1],mt[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",f),this.uvs2.push(new p,new p,new p))),mt=0;mt<h;mt++){var bt=l[mt].vertices;c[mt].data.push(bt[_t.a],bt[_t.b],bt[_t.c])}for(mt=0;mt<y;mt++)bt=v[mt].vertexNormals[f],S[mt].data.push(bt.a,bt.b,bt.c);j&&this.skinIndices.push(P[_t.a],P[_t.b],P[_t.c]),et&&this.skinWeights.push(N[_t.a],N[_t.b],N[_t.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this}});var dh=1;Ft.prototype=Object.assign(Object.create($.prototype),{constructor:Ft,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(65535<ue(t)?Bt:Et)(t,1):this.index=t},addAttribute:function(t,e,i){return e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?t==="index"?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):(this.attributes[t]=e,this):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(t,new ht(e,i)))},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,i){this.groups.push({start:t,count:e,materialIndex:i!==void 0?i:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;return e!==void 0&&(t.applyToBufferAttribute(e),e.needsUpdate=!0),e=this.attributes.normal,e!==void 0&&(new C().getNormalMatrix(t).applyToBufferAttribute(e),e.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(){var t=new J;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new J;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new J;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new J;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new J;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new z;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new m;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){t=new Ct(3*e.vertices.length,3);var i=new Ct(3*e.colors.length,3);this.addAttribute("position",t.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length&&(t=new Ct(e.lineDistances.length,1),this.addAttribute("lineDistance",t.copyArray(e.lineDistances))),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],i=0,n=t.length;i<n;i++){var o=t[i];e.push(o.x,o.y,o.z||0)}return this.addAttribute("position",new Ct(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var i=e.__directGeometry;if(e.elementsNeedUpdate===!0&&(i=void 0,e.elementsNeedUpdate=!1),i===void 0)return this.fromGeometry(e);i.verticesNeedUpdate=e.verticesNeedUpdate,i.normalsNeedUpdate=e.normalsNeedUpdate,i.colorsNeedUpdate=e.colorsNeedUpdate,i.uvsNeedUpdate=e.uvsNeedUpdate,i.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=i}return e.verticesNeedUpdate===!0&&(i=this.attributes.position,i!==void 0&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),e.normalsNeedUpdate===!0&&(i=this.attributes.normal,i!==void 0&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),e.colorsNeedUpdate===!0&&(i=this.attributes.color,i!==void 0&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,i!==void 0&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,i!==void 0&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=new ge().fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);this.addAttribute("position",new ht(e,3).copyVector3sArray(t.vertices)),0<t.normals.length&&(e=new Float32Array(3*t.normals.length),this.addAttribute("normal",new ht(e,3).copyVector3sArray(t.normals))),0<t.colors.length&&(e=new Float32Array(3*t.colors.length),this.addAttribute("color",new ht(e,3).copyColorsArray(t.colors))),0<t.uvs.length&&(e=new Float32Array(2*t.uvs.length),this.addAttribute("uv",new ht(e,2).copyVector2sArray(t.uvs))),0<t.uvs2.length&&(e=new Float32Array(2*t.uvs2.length),this.addAttribute("uv2",new ht(e,2).copyVector2sArray(t.uvs2))),this.groups=t.groups;for(var i in t.morphTargets){e=[];for(var n=t.morphTargets[i],o=0,s=n.length;o<s;o++){var l=n[o],h=new Ct(3*l.data.length,3);h.name=l.name,e.push(h.copyVector3sArray(l.data))}this.morphAttributes[i]=e}return 0<t.skinIndices.length&&(i=new Ct(4*t.skinIndices.length,4),this.addAttribute("skinIndex",i.copyVector4sArray(t.skinIndices))),0<t.skinWeights.length&&(i=new Ct(4*t.skinWeights.length,4),this.addAttribute("skinWeight",i.copyVector4sArray(t.skinWeights))),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new K);var t=this.attributes.position;t!==void 0?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new K,e=new m;return function(){this.boundingSphere===null&&(this.boundingSphere=new B);var i=this.attributes.position;if(i){var n=this.boundingSphere.center;t.setFromBufferAttribute(i),t.getCenter(n);for(var o=0,s=0,l=i.count;s<l;s++)e.x=i.getX(s),e.y=i.getY(s),e.z=i.getZ(s),o=Math.max(o,n.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(o),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes;if(e.position){var i=e.position.array;if(e.normal===void 0)this.addAttribute("normal",new ht(new Float32Array(i.length),3));else for(var n=e.normal.array,o=0,s=n.length;o<s;o++)n[o]=0;n=e.normal.array;var l=new m,h=new m,c=new m,f=new m,v=new m;if(t){var y=t.array;for(o=0,s=t.count;o<s;o+=3){t=3*y[o+0];var S=3*y[o+1],P=3*y[o+2];l.fromArray(i,t),h.fromArray(i,S),c.fromArray(i,P),f.subVectors(c,h),v.subVectors(l,h),f.cross(v),n[t]+=f.x,n[t+1]+=f.y,n[t+2]+=f.z,n[S]+=f.x,n[S+1]+=f.y,n[S+2]+=f.z,n[P]+=f.x,n[P+1]+=f.y,n[P+2]+=f.z}}else for(o=0,s=i.length;o<s;o+=9)l.fromArray(i,o),h.fromArray(i,o+3),c.fromArray(i,o+6),f.subVectors(c,h),v.subVectors(l,h),f.cross(v),n[o]=f.x,n[o+1]=f.y,n[o+2]=f.z,n[o+3]=f.x,n[o+4]=f.y,n[o+5]=f.z,n[o+6]=f.x,n[o+7]=f.y,n[o+8]=f.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t&&t.isBufferGeometry){e===void 0&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var i=this.attributes,n;for(n in i)if(t.attributes[n]!==void 0){var o=i[n].array,s=t.attributes[n],l=s.array,h=0;for(s=s.itemSize*e;h<l.length;h++,s++)o[s]=l[h]}return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t)},normalizeNormals:function(){var t=new m;return function(){for(var e=this.attributes.normal,i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.normalize(),e.setXYZ(i,t.x,t.y,t.z)}}(),toNonIndexed:function(){if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var t=new Ft,e=this.index.array,i=this.attributes,n;for(n in i){var o=i[n],s=o.array,l=o.itemSize,h=new s.constructor(e.length*l),c=0;o=0;for(var f=e.length;o<f;o++)for(var v=e[o]*l,y=0;y<l;y++)h[c++]=s[v++];t.addAttribute(n,new ht(h,l))}for(e=this.groups,o=0,f=e.length;o<f;o++)i=e[o],t.addGroup(i.start,i.count,i.materialIndex);return t},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),0<Object.keys(this.userData).length&&(t.userData=this.userData),this.parameters!==void 0){var e=this.parameters;for(o in e)e[o]!==void 0&&(t[o]=e[o]);return t}t.data={attributes:{}};var i=this.index;i!==null&&(e=Array.prototype.slice.call(i.array),t.data.index={type:i.array.constructor.name,array:e}),i=this.attributes;for(o in i){var n=i[o];e=Array.prototype.slice.call(n.array),t.data.attributes[o]={itemSize:n.itemSize,type:n.array.constructor.name,array:e,normalized:n.normalized}}var o=this.groups;return 0<o.length&&(t.data.groups=JSON.parse(JSON.stringify(o))),o=this.boundingSphere,o!==null&&(t.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),t},clone:function(){return new Ft().copy(this)},copy:function(t){var e;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var i=t.index;i!==null&&this.setIndex(i.clone()),i=t.attributes;for(l in i)this.addAttribute(l,i[l].clone());var n=t.morphAttributes;for(l in n){var o=[],s=n[l];for(i=0,e=s.length;i<e;i++)o.push(s[i].clone());this.morphAttributes[l]=o}var l=t.groups;for(i=0,e=l.length;i<e;i++)n=l[i],this.addGroup(n.start,n.count,n.materialIndex);return l=t.boundingBox,l!==null&&(this.boundingBox=l.clone()),l=t.boundingSphere,l!==null&&(this.boundingSphere=l.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Dt.prototype=Object.create(W.prototype),Dt.prototype.constructor=Dt,kt.prototype=Object.create(Ft.prototype),kt.prototype.constructor=kt,Fe.prototype=Object.create(W.prototype),Fe.prototype.constructor=Fe,xe.prototype=Object.create(Ft.prototype),xe.prototype.constructor=xe;var Vl=0;Zt.prototype=Object.assign(Object.create($.prototype),{constructor:Zt,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(t!==void 0)for(var e in t){var i=t[e];if(i===void 0)console.warn("THREE.Material: '"+e+"' parameter is undefined.");else if(e==="shading")console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=i===1;else{var n=this[e];n===void 0?console.warn("THREE."+this.type+": '"+e+"' is not a property of this material."):n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i}}},toJSON:function(t){function e(o){var s=[],l;for(l in o){var h=o[l];delete h.metadata,s.push(h)}return s}var i=t===void 0||typeof t=="string";i&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};return n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearCoat!==void 0&&(n.clearCoat=this.clearCoat),this.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,this.combine!==void 0&&(n.combine=this.combine),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.flatShading===!0&&(n.flatShading=this.flatShading),this.side!==0&&(n.side=this.side),this.vertexColors!==0&&(n.vertexColors=this.vertexColors),1>this.opacity&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),0<this.alphaTest&&(n.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(n.wireframe=this.wireframe),1<this.wireframeLinewidth&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(n.morphTargets=!0),this.skinning===!0&&(n.skinning=!0),this.visible===!1&&(n.visible=!1),JSON.stringify(this.userData)!=="{}"&&(n.userData=this.userData),i&&(i=e(t.textures),t=e(t.images),0<i.length&&(n.textures=i),0<t.length&&(n.images=t)),n},clone:function(){return new this.constructor().copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.userData=JSON.parse(JSON.stringify(t.userData)),this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,i=null;if(e!==null){var n=e.length;i=Array(n);for(var o=0;o!==n;++o)i[o]=e[o].clone()}return this.clippingPlanes=i,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),ti.prototype=Object.create(Zt.prototype),ti.prototype.constructor=ti,ti.prototype.isShaderMaterial=!0,ti.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Cn.clone(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},ti.prototype.toJSON=function(t){var e=Zt.prototype.toJSON.call(this,t);e.uniforms={};for(var i in this.uniforms){var n=this.uniforms[i].value;e.uniforms[i]=n.isTexture?{type:"t",value:n.toJSON(t).uuid}:n.isColor?{type:"c",value:n.getHex()}:n.isVector2?{type:"v2",value:n.toArray()}:n.isVector3?{type:"v3",value:n.toArray()}:n.isVector4?{type:"v4",value:n.toArray()}:n.isMatrix4?{type:"m4",value:n.toArray()}:{value:n}}return 0<Object.keys(this.defines).length&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},Object.assign(ki.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .at() target is now required"),e=new m),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new m;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new m),e.subVectors(t,this.origin),t=e.dot(this.direction),0>t?e.copy(this.origin):e.copy(this.direction).multiplyScalar(t).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new m;return function(e){var i=t.subVectors(e,this.origin).dot(this.direction);return 0>i?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(i).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new m,e=new m,i=new m;return function(n,o,s,l){t.copy(n).add(o).multiplyScalar(.5),e.copy(o).sub(n).normalize(),i.copy(this.origin).sub(t);var h=.5*n.distanceTo(o),c=-this.direction.dot(e),f=i.dot(this.direction),v=-i.dot(e),y=i.lengthSq(),S=Math.abs(1-c*c);if(0<S){n=c*v-f,o=c*f-v;var P=h*S;0<=n?o>=-P?o<=P?(h=1/S,n*=h,o*=h,c=n*(n+c*o+2*f)+o*(c*n+o+2*v)+y):(o=h,n=Math.max(0,-(c*o+f)),c=-n*n+o*(o+2*v)+y):(o=-h,n=Math.max(0,-(c*o+f)),c=-n*n+o*(o+2*v)+y):o<=-P?(n=Math.max(0,-(-c*h+f)),o=0<n?-h:Math.min(Math.max(-h,-v),h),c=-n*n+o*(o+2*v)+y):o<=P?(n=0,o=Math.min(Math.max(-h,-v),h),c=o*(o+2*v)+y):(n=Math.max(0,-(c*h+f)),o=0<n?h:Math.min(Math.max(-h,-v),h),c=-n*n+o*(o+2*v)+y)}else o=0<c?-h:h,n=Math.max(0,-(c*o+f)),c=-n*n+o*(o+2*v)+y;return s&&s.copy(this.direction).multiplyScalar(n).add(this.origin),l&&l.copy(e).multiplyScalar(o).add(t),c}}(),intersectSphere:function(){var t=new m;return function(e,i){t.subVectors(e.center,this.origin);var n=t.dot(this.direction),o=t.dot(t)-n*n;return e=e.radius*e.radius,o>e?null:(e=Math.sqrt(e-o),o=n-e,n+=e,0>o&&0>n?null:0>o?this.at(n,i):this.at(o,i))}}(),intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);return e===0?t.distanceToPoint(this.origin)===0?0:null:(t=-(this.origin.dot(t.normal)+t.constant)/e,0<=t?t:null)},intersectPlane:function(t,e){return t=this.distanceToPlane(t),t===null?null:this.at(t,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return e===0||0>t.normal.dot(this.direction)*e},intersectBox:function(t,e){var i=1/this.direction.x,n=1/this.direction.y,o=1/this.direction.z,s=this.origin;if(0<=i){var l=(t.min.x-s.x)*i;i*=t.max.x-s.x}else l=(t.max.x-s.x)*i,i*=t.min.x-s.x;if(0<=n){var h=(t.min.y-s.y)*n;n*=t.max.y-s.y}else h=(t.max.y-s.y)*n,n*=t.min.y-s.y;return l>n||h>i||((h>l||l!==l)&&(l=h),(n<i||i!==i)&&(i=n),0<=o?(h=(t.min.z-s.z)*o,t=(t.max.z-s.z)*o):(h=(t.max.z-s.z)*o,t=(t.min.z-s.z)*o),l>t||h>i)?null:((h>l||l!==l)&&(l=h),(t<i||i!==i)&&(i=t),0>i?null:this.at(0<=l?l:i,e))},intersectsBox:function(){var t=new m;return function(e){return this.intersectBox(e,t)!==null}}(),intersectTriangle:function(){var t=new m,e=new m,i=new m,n=new m;return function(o,s,l,h,c){if(e.subVectors(s,o),i.subVectors(l,o),n.crossVectors(e,i),s=this.direction.dot(n),0<s){if(h)return null;h=1}else if(0>s)h=-1,s=-s;else return null;return t.subVectors(this.origin,o),o=h*this.direction.dot(i.crossVectors(t,i)),0>o||(l=h*this.direction.dot(e.cross(t)),0>l||o+l>s)?null:(o=-h*t.dot(n),0>o?null:this.at(o/s,c))}}(),applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}),Object.assign(Ie,{getNormal:function(){var t=new m;return function(e,i,n,o){return o===void 0&&(console.warn("THREE.Triangle: .getNormal() target is now required"),o=new m),o.subVectors(n,i),t.subVectors(e,i),o.cross(t),e=o.lengthSq(),0<e?o.multiplyScalar(1/Math.sqrt(e)):o.set(0,0,0)}}(),getBarycoord:function(){var t=new m,e=new m,i=new m;return function(n,o,s,l,h){t.subVectors(l,o),e.subVectors(s,o),i.subVectors(n,o),n=t.dot(t),o=t.dot(e),s=t.dot(i);var c=e.dot(e);l=e.dot(i);var f=n*c-o*o;return h===void 0&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),h=new m),f===0?h.set(-2,-1,-1):(f=1/f,c=(c*s-o*l)*f,n=(n*l-o*s)*f,h.set(1-c-n,n,c))}}(),containsPoint:function(){var t=new m;return function(e,i,n,o){return Ie.getBarycoord(e,i,n,o,t),0<=t.x&&0<=t.y&&1>=t.x+t.y}}(),getUV:function(){var t=new m;return function(e,i,n,o,s,l,h,c){return this.getBarycoord(e,i,n,o,t),c.set(0,0),c.addScaledVector(s,t.x),c.addScaledVector(l,t.y),c.addScaledVector(h,t.z),c}}()}),Object.assign(Ie.prototype,{set:function(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this},setFromPointsAndIndices:function(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){var t=new m,e=new m;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),getMidpoint:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new m),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return Ie.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new m),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return Ie.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return Ie.containsPoint(t,this.a,this.b,this.c)},getUV:function(t,e,i,n,o){return Ie.getUV(t,this.a,this.b,this.c,e,i,n,o)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(){var t=new m,e=new m,i=new m,n=new m,o=new m,s=new m;return function(l,h){h===void 0&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),h=new m);var c=this.a,f=this.b,v=this.c;t.subVectors(f,c),e.subVectors(v,c),n.subVectors(l,c);var y=t.dot(n),S=e.dot(n);if(0>=y&&0>=S)return h.copy(c);o.subVectors(l,f);var P=t.dot(o),N=e.dot(o);if(0<=P&&N<=P)return h.copy(f);var j=y*N-P*S;if(0>=j&&0<=y&&0>=P)return f=y/(y-P),h.copy(c).addScaledVector(t,f);s.subVectors(l,v),l=t.dot(s);var et=e.dot(s);return 0<=et&&l<=et?h.copy(v):(y=l*S-y*et,0>=y&&0<=S&&0>=et?(j=S/(S-et),h.copy(c).addScaledVector(e,j)):(S=P*et-l*N,0>=S&&0<=N-P&&0<=l-et?(i.subVectors(v,f),j=(N-P)/(N-P+(l-et)),h.copy(f).addScaledVector(i,j)):(v=1/(S+y+j),f=y*v,j*=v,h.copy(c).addScaledVector(t,f).addScaledVector(e,j))))}}(),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),Ge.prototype=Object.create(Zt.prototype),Ge.prototype.constructor=Ge,Ge.prototype.isMeshBasicMaterial=!0,Ge.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this},di.prototype=Object.assign(Object.create(z.prototype),{constructor:di,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return z.prototype.copy.call(this,t),this.drawMode=t.drawMode,t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry;if(t.isBufferGeometry){t=t.morphAttributes;var e=Object.keys(t);if(0<e.length){var i=t[e[0]];if(i!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++){var n=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}else if(i=t.morphTargets,i!==void 0&&0<i.length)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++)n=i[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t},raycast:function(){function t(et,_t,mt,bt,xt,Vt,V,it){return(_t.side===1?bt.intersectTriangle(V,Vt,xt,!0,it):bt.intersectTriangle(xt,Vt,V,_t.side!==2,it))===null?null:(j.copy(it),j.applyMatrix4(et.matrixWorld),_t=mt.ray.origin.distanceTo(j),_t<mt.near||_t>mt.far?null:{distance:_t,point:j.clone(),object:et})}function e(et,_t,mt,bt,xt,Vt,V,it,It){return s.fromBufferAttribute(xt,V),l.fromBufferAttribute(xt,it),h.fromBufferAttribute(xt,It),(et=t(et,_t,mt,bt,s,l,h,N))&&(Vt&&(y.fromBufferAttribute(Vt,V),S.fromBufferAttribute(Vt,it),P.fromBufferAttribute(Vt,It),et.uv=Ie.getUV(N,s,l,h,y,S,P,new p)),Vt=new M(V,it,It),Ie.getNormal(s,l,h,Vt.normal),et.face=Vt),et}var i=new J,n=new ki,o=new B,s=new m,l=new m,h=new m,c=new m,f=new m,v=new m,y=new p,S=new p,P=new p,N=new m,j=new m;return function(et,_t){var mt=this.geometry,bt=this.material,xt=this.matrixWorld;if(bt!==void 0&&(mt.boundingSphere===null&&mt.computeBoundingSphere(),o.copy(mt.boundingSphere),o.applyMatrix4(xt),et.ray.intersectsSphere(o)!==!1&&(i.getInverse(xt),n.copy(et.ray).applyMatrix4(i),mt.boundingBox===null||n.intersectsBox(mt.boundingBox)!==!1))){if(mt.isBufferGeometry){var Vt=mt.index,V=mt.attributes.position,it=mt.attributes.uv,It=mt.groups;mt=mt.drawRange;var ee;if(Vt!==null)if(Array.isArray(bt)){var $t=0;for(ee=It.length;$t<ee;$t++){var qt=It[$t],Te=bt[qt.materialIndex];xt=Math.max(qt.start,mt.start);var pe=Math.min(qt.start+qt.count,mt.start+mt.count);for(qt=xt;qt<pe;qt+=3){xt=Vt.getX(qt);var Oe=Vt.getX(qt+1),be=Vt.getX(qt+2);(xt=e(this,Te,et,n,V,it,xt,Oe,be))&&(xt.faceIndex=Math.floor(qt/3),_t.push(xt))}}}else for(xt=Math.max(0,mt.start),pe=Math.min(Vt.count,mt.start+mt.count),$t=xt,ee=pe;$t<ee;$t+=3)xt=Vt.getX($t),Oe=Vt.getX($t+1),be=Vt.getX($t+2),(xt=e(this,bt,et,n,V,it,xt,Oe,be))&&(xt.faceIndex=Math.floor($t/3),_t.push(xt));else if(V!==void 0)if(Array.isArray(bt))for($t=0,ee=It.length;$t<ee;$t++)for(qt=It[$t],Te=bt[qt.materialIndex],xt=Math.max(qt.start,mt.start),pe=Math.min(qt.start+qt.count,mt.start+mt.count),qt=xt;qt<pe;qt+=3)xt=qt,Oe=qt+1,be=qt+2,(xt=e(this,Te,et,n,V,it,xt,Oe,be))&&(xt.faceIndex=Math.floor(qt/3),_t.push(xt));else for(xt=Math.max(0,mt.start),pe=Math.min(V.count,mt.start+mt.count),$t=xt,ee=pe;$t<ee;$t+=3)xt=$t,Oe=$t+1,be=$t+2,(xt=e(this,bt,et,n,V,it,xt,Oe,be))&&(xt.faceIndex=Math.floor($t/3),_t.push(xt))}else if(mt.isGeometry){for(V=Array.isArray(bt),it=mt.vertices,It=mt.faces,xt=mt.faceVertexUvs[0],0<xt.length&&(Vt=xt),qt=0,pe=It.length;qt<pe;qt++)if(Oe=It[qt],xt=V?bt[Oe.materialIndex]:bt,xt!==void 0){if($t=it[Oe.a],ee=it[Oe.b],Te=it[Oe.c],xt.morphTargets===!0){be=mt.morphTargets;var se=this.morphTargetInfluences;s.set(0,0,0),l.set(0,0,0),h.set(0,0,0);for(var je=0,Ke=be.length;je<Ke;je++){var fi=se[je];if(fi!==0){var xn=be[je].vertices;s.addScaledVector(c.subVectors(xn[Oe.a],$t),fi),l.addScaledVector(f.subVectors(xn[Oe.b],ee),fi),h.addScaledVector(v.subVectors(xn[Oe.c],Te),fi)}}s.add($t),l.add(ee),h.add(Te),$t=s,ee=l,Te=h}(xt=t(this,xt,et,n,$t,ee,Te,N))&&(Vt&&Vt[qt]&&(be=Vt[qt],y.copy(be[0]),S.copy(be[1]),P.copy(be[2]),xt.uv=Ie.getUV(N,$t,ee,Te,y,S,P,new p)),xt.face=Oe,xt.faceIndex=qt,_t.push(xt))}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),w.prototype=Object.create(O.prototype),w.prototype.constructor=w,w.prototype.isCubeTexture=!0,Object.defineProperty(w.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),X.prototype=Object.create(O.prototype),X.prototype.constructor=X,X.prototype.isDataTexture3D=!0;var ml=new O,mh=new X,jl=new w,Va=[],Bs=[],ga=new Float32Array(16),Wl=new Float32Array(9),gl=new Float32Array(4);cs.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),vt(e,t)},js.prototype.setValue=function(t,e,i){for(var n=this.seq,o=0,s=n.length;o!==s;++o){var l=n[o];l.setValue(t,e[l.id],i)}};var vl=/([\w\d_]+)(\])?(\[|\.)?/g;Dr.prototype.setValue=function(t,e,i){e=this.map[e],e!==void 0&&e.setValue(t,i,this.renderer)},Dr.prototype.setOptional=function(t,e,i){e=e[i],e!==void 0&&this.setValue(t,i,e)},Dr.upload=function(t,e,i,n){for(var o=0,s=e.length;o!==s;++o){var l=e[o],h=i[l.id];h.needsUpdate!==!1&&l.setValue(t,h.value,n)}},Dr.seqWithValue=function(t,e){for(var i=[],n=0,o=t.length;n!==o;++n){var s=t[n];s.id in e&&i.push(s)}return i};var ao=0,yl=0;oe.prototype=Object.create(Zt.prototype),oe.prototype.constructor=oe,oe.prototype.isMeshDepthMaterial=!0,oe.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},te.prototype=Object.create(Zt.prototype),te.prototype.constructor=te,te.prototype.isMeshDistanceMaterial=!0,te.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this},ci.prototype=Object.assign(Object.create(z.prototype),{constructor:ci,isGroup:!0}),Be.prototype=Object.assign(Object.create(z.prototype),{constructor:Be,isCamera:!0,copy:function(t,e){return z.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),t=new m),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){z.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return new this.constructor().copy(this)}}),ye.prototype=Object.assign(Object.create(Be.prototype),{constructor:ye,isPerspectiveCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){t=.5*this.getFilmHeight()/t,this.fov=2*pi.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*pi.DEG2RAD*this.fov);return .5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*pi.RAD2DEG*Math.atan(Math.tan(.5*pi.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,i,n,o,s){this.aspect=t/e,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=this.near,e=t*Math.tan(.5*pi.DEG2RAD*this.fov)/this.zoom,i=2*e,n=this.aspect*i,o=-.5*n,s=this.view;if(this.view!==null&&this.view.enabled){var l=s.fullWidth,h=s.fullHeight;o+=s.offsetX*n/l,e-=s.offsetY*i/h,n*=s.width/l,i*=s.height/h}s=this.filmOffset,s!==0&&(o+=t*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(o,o+n,e,e-i,t,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=z.prototype.toJSON.call(this,t),t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),ke.prototype=Object.assign(Object.create(ye.prototype),{constructor:ke,isArrayCamera:!0});var Ao=new m,sr=new m;Le.prototype.isFogExp2=!0,Le.prototype.clone=function(){return new Le(this.color,this.density)},Le.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},vn.prototype.isFog=!0,vn.prototype.clone=function(){return new vn(this.color,this.near,this.far)},vn.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},zn.prototype=Object.assign(Object.create(z.prototype),{constructor:zn,copy:function(t,e){return z.prototype.copy.call(this,t,e),t.background!==null&&(this.background=t.background.clone()),t.fog!==null&&(this.fog=t.fog.clone()),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=z.prototype.toJSON.call(this,t);return this.background!==null&&(e.object.background=this.background.toJSON(t)),this.fog!==null&&(e.object.fog=this.fog.toJSON()),e}}),Object.defineProperty(Oi.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(Oi.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.stride:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.stride,i*=e.stride;for(var n=0,o=this.stride;n<o;n++)this.array[t+n]=e.array[i+n];return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},clone:function(){return new this.constructor().copy(this)},onUpload:function(t){return this.onUploadCallback=t,this}}),Object.defineProperties(Di.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(Di.prototype,{isInterleavedBufferAttribute:!0,setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this},setXYZW:function(t,e,i,n,o){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this.data.array[t+3]=o,this}}),Fi.prototype=Object.create(Zt.prototype),Fi.prototype.constructor=Fi,Fi.prototype.isSpriteMaterial=!0,Fi.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this};var Ns;Qi.prototype=Object.assign(Object.create(z.prototype),{constructor:Qi,isSprite:!0,raycast:function(){function t(P,N,j,et,_t,mt){o.subVectors(P,j).addScalar(.5).multiply(et),_t!==void 0?(s.x=mt*o.x-_t*o.y,s.y=_t*o.x+mt*o.y):s.copy(o),P.copy(N),P.x+=s.x,P.y+=s.y,P.applyMatrix4(l)}var e=new m,i=new m,n=new m,o=new p,s=new p,l=new J,h=new m,c=new m,f=new m,v=new p,y=new p,S=new p;return function(P,N){i.setFromMatrixScale(this.matrixWorld),l.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),n.setFromMatrixPosition(this.modelViewMatrix);var j=this.material.rotation;if(j!==0)var et=Math.cos(j),_t=Math.sin(j);j=this.center,t(h.set(-.5,-.5,0),n,j,i,_t,et),t(c.set(.5,-.5,0),n,j,i,_t,et),t(f.set(.5,.5,0),n,j,i,_t,et),v.set(0,0),y.set(1,0),S.set(1,1);var mt=P.ray.intersectTriangle(h,c,f,!1,e);mt===null&&(t(c.set(-.5,.5,0),n,j,i,_t,et),y.set(0,1),mt=P.ray.intersectTriangle(h,f,c,!1,e),mt===null)||(_t=P.ray.origin.distanceTo(e),_t<P.near||_t>P.far||N.push({distance:_t,point:e.clone(),uv:Ie.getUV(e,h,c,f,v,y,S,new p),face:null,object:this}))}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return z.prototype.copy.call(this,t),t.center!==void 0&&this.center.copy(t.center),this}}),tn.prototype=Object.assign(Object.create(z.prototype),{constructor:tn,copy:function(t){z.prototype.copy.call(this,t,!1),t=t.levels;for(var e=0,i=t.length;e<i;e++){var n=t[e];this.addLevel(n.object.clone(),n.distance)}return this},addLevel:function(t,e){e===void 0&&(e=0),e=Math.abs(e);for(var i=this.levels,n=0;n<i.length&&!(e<i[n].distance);n++);i.splice(n,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,i=1,n=e.length;i<n&&!(t<e[i].distance);i++);return e[i-1].object},raycast:function(){var t=new m;return function(e,i){t.setFromMatrixPosition(this.matrixWorld);var n=e.ray.origin.distanceTo(t);this.getObjectForDistance(n).raycast(e,i)}}(),update:function(){var t=new m,e=new m;return function(i){var n=this.levels;if(1<n.length){t.setFromMatrixPosition(i.matrixWorld),e.setFromMatrixPosition(this.matrixWorld),i=t.distanceTo(e),n[0].object.visible=!0;for(var o=1,s=n.length;o<s&&i>=n[o].distance;o++)n[o-1].object.visible=!1,n[o].object.visible=!0;for(;o<s;o++)n[o].object.visible=!1}}}(),toJSON:function(t){t=z.prototype.toJSON.call(this,t),t.object.levels=[];for(var e=this.levels,i=0,n=e.length;i<n;i++){var o=e[i];t.object.levels.push({object:o.object.uuid,distance:o.distance})}return t}}),Object.assign(sn.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var i=new J;this.bones[t]&&i.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(i)}},pose:function(){var t,e,i=0;for(e=this.bones.length;i<e;i++)(t=this.bones[i])&&t.matrixWorld.getInverse(this.boneInverses[i]);for(i=0,e=this.bones.length;i<e;i++)(t=this.bones[i])&&(t.parent&&t.parent.isBone?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:function(){var t=new J,e=new J;return function(){for(var i=this.bones,n=this.boneInverses,o=this.boneMatrices,s=this.boneTexture,l=0,h=i.length;l<h;l++)t.multiplyMatrices(i[l]?i[l].matrixWorld:e,n[l]),t.toArray(o,16*l);s!==void 0&&(s.needsUpdate=!0)}}(),clone:function(){return new sn(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,i=this.bones.length;e<i;e++){var n=this.bones[e];if(n.name===t)return n}}}),an.prototype=Object.assign(Object.create(z.prototype),{constructor:an,isBone:!0}),Ui.prototype=Object.assign(Object.create(di.prototype),{constructor:Ui,isSkinnedMesh:!0,initBones:function(){var t=[],e;if(this.geometry&&this.geometry.bones!==void 0){var i=0;for(e=this.geometry.bones.length;i<e;i++){var n=this.geometry.bones[i],o=new an;t.push(o),o.name=n.name,o.position.fromArray(n.pos),o.quaternion.fromArray(n.rotq),n.scl!==void 0&&o.scale.fromArray(n.scl)}for(i=0,e=this.geometry.bones.length;i<e;i++)n=this.geometry.bones[i],n.parent!==-1&&n.parent!==null&&t[n.parent]!==void 0?t[n.parent].add(t[i]):this.add(t[i])}return this.updateMatrixWorld(!0),t},bind:function(t,e){this.skeleton=t,e===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var t;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++){var e=this.geometry.skinWeights[t],i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){e=new E;var n=this.geometry.attributes.skinWeight;for(t=0;t<n.count;t++)e.x=n.getX(t),e.y=n.getY(t),e.z=n.getZ(t),e.w=n.getW(t),i=1/e.manhattanLength(),i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),n.setXYZW(t,e.x,e.y,e.z,e.w)}},updateMatrixWorld:function(t){di.prototype.updateMatrixWorld.call(this,t),this.bindMode==="attached"?this.bindMatrixInverse.getInverse(this.matrixWorld):this.bindMode==="detached"?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),zi.prototype=Object.create(Zt.prototype),zi.prototype.constructor=zi,zi.prototype.isLineBasicMaterial=!0,zi.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},Vi.prototype=Object.assign(Object.create(z.prototype),{constructor:Vi,isLine:!0,computeLineDistances:function(){var t=new m,e=new m;return function(){var i=this.geometry;if(i.isBufferGeometry)if(i.index===null){for(var n=i.attributes.position,o=[0],s=1,l=n.count;s<l;s++)t.fromBufferAttribute(n,s-1),e.fromBufferAttribute(n,s),o[s]=o[s-1],o[s]+=t.distanceTo(e);i.addAttribute("lineDistance",new Ct(o,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(i.isGeometry)for(n=i.vertices,o=i.lineDistances,o[0]=0,s=1,l=n.length;s<l;s++)o[s]=o[s-1],o[s]+=n[s-1].distanceTo(n[s]);return this}}(),raycast:function(){var t=new J,e=new ki,i=new B;return function(n,o){var s=n.linePrecision,l=this.geometry,h=this.matrixWorld;if(l.boundingSphere===null&&l.computeBoundingSphere(),i.copy(l.boundingSphere),i.applyMatrix4(h),i.radius+=s,n.ray.intersectsSphere(i)!==!1){t.getInverse(h),e.copy(n.ray).applyMatrix4(t),s/=(this.scale.x+this.scale.y+this.scale.z)/3,s*=s;var c=new m,f=new m;h=new m;var v=new m,y=this&&this.isLineSegments?2:1;if(l.isBufferGeometry){var S=l.index,P=l.attributes.position.array;if(S!==null){S=S.array,l=0;for(var N=S.length-1;l<N;l+=y){var j=S[l+1];c.fromArray(P,3*S[l]),f.fromArray(P,3*j),j=e.distanceSqToSegment(c,f,v,h),j>s||(v.applyMatrix4(this.matrixWorld),j=n.ray.origin.distanceTo(v),j<n.near||j>n.far||o.push({distance:j,point:h.clone().applyMatrix4(this.matrixWorld),index:l,face:null,faceIndex:null,object:this}))}}else for(l=0,N=P.length/3-1;l<N;l+=y)c.fromArray(P,3*l),f.fromArray(P,3*l+3),j=e.distanceSqToSegment(c,f,v,h),j>s||(v.applyMatrix4(this.matrixWorld),j=n.ray.origin.distanceTo(v),j<n.near||j>n.far||o.push({distance:j,point:h.clone().applyMatrix4(this.matrixWorld),index:l,face:null,faceIndex:null,object:this}))}else if(l.isGeometry)for(c=l.vertices,f=c.length,l=0;l<f-1;l+=y)j=e.distanceSqToSegment(c[l],c[l+1],v,h),j>s||(v.applyMatrix4(this.matrixWorld),j=n.ray.origin.distanceTo(v),j<n.near||j>n.far||o.push({distance:j,point:h.clone().applyMatrix4(this.matrixWorld),index:l,face:null,faceIndex:null,object:this}))}}}(),copy:function(t){return z.prototype.copy.call(this,t),this.geometry.copy(t.geometry),this.material.copy(t.material),this},clone:function(){return new this.constructor().copy(this)}}),gi.prototype=Object.assign(Object.create(Vi.prototype),{constructor:gi,isLineSegments:!0,computeLineDistances:function(){var t=new m,e=new m;return function(){var i=this.geometry;if(i.isBufferGeometry)if(i.index===null){for(var n=i.attributes.position,o=[],s=0,l=n.count;s<l;s+=2)t.fromBufferAttribute(n,s),e.fromBufferAttribute(n,s+1),o[s]=s===0?0:o[s-1],o[s+1]=o[s]+t.distanceTo(e);i.addAttribute("lineDistance",new Ct(o,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(i.isGeometry)for(n=i.vertices,o=i.lineDistances,s=0,l=n.length;s<l;s+=2)t.copy(n[s]),e.copy(n[s+1]),o[s]=s===0?0:o[s-1],o[s+1]=o[s]+t.distanceTo(e);return this}}()}),Br.prototype=Object.assign(Object.create(Vi.prototype),{constructor:Br,isLineLoop:!0}),Ln.prototype=Object.create(Zt.prototype),Ln.prototype.constructor=Ln,Ln.prototype.isPointsMaterial=!0,Ln.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this},ds.prototype=Object.assign(Object.create(z.prototype),{constructor:ds,isPoints:!0,raycast:function(){var t=new J,e=new ki,i=new B;return function(n,o){function s(et,_t){var mt=e.distanceSqToPoint(et);mt<v&&(e.closestPointToPoint(et,y),y.applyMatrix4(c),et=n.ray.origin.distanceTo(y),et<n.near||et>n.far||o.push({distance:et,distanceToRay:Math.sqrt(mt),point:y.clone(),index:_t,face:null,object:l}))}var l=this,h=this.geometry,c=this.matrixWorld,f=n.params.Points.threshold;if(h.boundingSphere===null&&h.computeBoundingSphere(),i.copy(h.boundingSphere),i.applyMatrix4(c),i.radius+=f,n.ray.intersectsSphere(i)!==!1){t.getInverse(c),e.copy(n.ray).applyMatrix4(t),f/=(this.scale.x+this.scale.y+this.scale.z)/3;var v=f*f;f=new m;var y=new m;if(h.isBufferGeometry){var S=h.index;if(h=h.attributes.position.array,S!==null){var P=S.array;S=0;for(var N=P.length;S<N;S++){var j=P[S];f.fromArray(h,3*j),s(f,j)}}else for(S=0,P=h.length/3;S<P;S++)f.fromArray(h,3*S),s(f,S)}else for(f=h.vertices,S=0,P=f.length;S<P;S++)s(f[S],S)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),nl.prototype=Object.assign(Object.create(O.prototype),{constructor:nl,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),po.prototype=Object.create(O.prototype),po.prototype.constructor=po,po.prototype.isCompressedTexture=!0,Xs.prototype=Object.create(O.prototype),Xs.prototype.constructor=Xs,Xs.prototype.isCanvasTexture=!0,qs.prototype=Object.create(O.prototype),qs.prototype.constructor=qs,qs.prototype.isDepthTexture=!0,ms.prototype=Object.create(Ft.prototype),ms.prototype.constructor=ms,Ys.prototype=Object.create(W.prototype),Ys.prototype.constructor=Ys,gs.prototype=Object.create(Ft.prototype),gs.prototype.constructor=gs,ji.prototype=Object.create(W.prototype),ji.prototype.constructor=ji,xi.prototype=Object.create(Ft.prototype),xi.prototype.constructor=xi,Zs.prototype=Object.create(W.prototype),Zs.prototype.constructor=Zs,vs.prototype=Object.create(xi.prototype),vs.prototype.constructor=vs,Js.prototype=Object.create(W.prototype),Js.prototype.constructor=Js,Do.prototype=Object.create(xi.prototype),Do.prototype.constructor=Do,$s.prototype=Object.create(W.prototype),$s.prototype.constructor=$s,ys.prototype=Object.create(xi.prototype),ys.prototype.constructor=ys,_s.prototype=Object.create(W.prototype),_s.prototype.constructor=_s,xs.prototype=Object.create(xi.prototype),xs.prototype.constructor=xs,un.prototype=Object.create(W.prototype),un.prototype.constructor=un,mo.prototype=Object.create(Ft.prototype),mo.prototype.constructor=mo,Sr.prototype=Object.create(W.prototype),Sr.prototype.constructor=Sr,zo.prototype=Object.create(Ft.prototype),zo.prototype.constructor=zo,Bo.prototype=Object.create(W.prototype),Bo.prototype.constructor=Bo,Rn.prototype=Object.create(Ft.prototype),Rn.prototype.constructor=Rn;var Xl={triangulate:function(t,e,i){i=i||2;var n=e&&e.length,o=n?e[0]*i:t.length,s=rl(t,0,o,i,!0),l=[];if(!s)return l;var h;if(n){var c=i;n=[];var f,v=0;for(f=e.length;v<f;v++){var y=e[v]*c,S=v<f-1?e[v+1]*c:t.length;y=rl(t,y,S,c,!1),y===y.next&&(y.steiner=!0),n.push(nr(y))}for(n.sort(Il),v=0;v<n.length;v++)e=n[v],c=s,(c=Ol(e,c))&&(e=Ks(c,e),ws(e,e.next)),s=ws(s,s.next)}if(t.length>80*i){var P=h=t[0],N=n=t[1];for(c=i;c<o;c+=i)v=t[c],e=t[c+1],v<P&&(P=v),e<N&&(N=e),v>h&&(h=v),e>n&&(n=e);h=Math.max(h-P,n-N),h=h!==0?1/h:0}return Ts(s,l,i,P,N,h),l}},Xr={area:function(t){for(var e=t.length,i=0,n=e-1,o=0;o<e;n=o++)i+=t[n].x*t[o].y-t[o].x*t[n].y;return .5*i},isClockWise:function(t){return 0>Xr.area(t)},triangulateShape:function(t,e){var i=[],n=[],o=[];Oa(t),Dl(i,t);var s=t.length;for(e.forEach(Oa),t=0;t<e.length;t++)n.push(s),s+=e[t].length,Dl(i,e[t]);for(e=Xl.triangulate(i,n),t=0;t<e.length;t+=3)o.push(e.slice(t,t+3));return o}};Qr.prototype=Object.create(W.prototype),Qr.prototype.constructor=Qr,Qr.prototype.toJSON=function(){var t=W.prototype.toJSON.call(this);return zl(this.parameters.shapes,this.parameters.options,t)},kr.prototype=Object.create(Ft.prototype),kr.prototype.constructor=kr,kr.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return zl(this.parameters.shapes,this.parameters.options,t)};var va={generateTopUV:function(t,e,i,n,o){t=e[3*n],n=e[3*n+1];var s=e[3*o];return o=e[3*o+1],[new p(e[3*i],e[3*i+1]),new p(t,n),new p(s,o)]},generateSideWallUV:function(t,e,i,n,o,s){t=e[3*i];var l=e[3*i+1];i=e[3*i+2];var h=e[3*n],c=e[3*n+1];n=e[3*n+2];var f=e[3*o],v=e[3*o+1];o=e[3*o+2];var y=e[3*s],S=e[3*s+1];return e=e[3*s+2],.01>Math.abs(l-c)?[new p(t,1-i),new p(h,1-n),new p(f,1-o),new p(y,1-e)]:[new p(l,1-i),new p(c,1-n),new p(v,1-o),new p(S,1-e)]}};Qs.prototype=Object.create(W.prototype),Qs.prototype.constructor=Qs,ko.prototype=Object.create(kr.prototype),ko.prototype.constructor=ko,go.prototype=Object.create(W.prototype),go.prototype.constructor=go,fr.prototype=Object.create(Ft.prototype),fr.prototype.constructor=fr,ta.prototype=Object.create(W.prototype),ta.prototype.constructor=ta,Uo.prototype=Object.create(Ft.prototype),Uo.prototype.constructor=Uo,Ms.prototype=Object.create(W.prototype),Ms.prototype.constructor=Ms,vo.prototype=Object.create(Ft.prototype),vo.prototype.constructor=vo,to.prototype=Object.create(W.prototype),to.prototype.constructor=to,to.prototype.toJSON=function(){var t=W.prototype.toJSON.call(this);return Bl(this.parameters.shapes,t)},yo.prototype=Object.create(Ft.prototype),yo.prototype.constructor=yo,yo.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Bl(this.parameters.shapes,t)},_o.prototype=Object.create(Ft.prototype),_o.prototype.constructor=_o,eo.prototype=Object.create(W.prototype),eo.prototype.constructor=eo,io.prototype=Object.create(Ft.prototype),io.prototype.constructor=io,Ss.prototype=Object.create(eo.prototype),Ss.prototype.constructor=Ss,In.prototype=Object.create(io.prototype),In.prototype.constructor=In,Fo.prototype=Object.create(W.prototype),Fo.prototype.constructor=Fo,Ur.prototype=Object.create(Ft.prototype),Ur.prototype.constructor=Ur;var fn=Object.freeze({WireframeGeometry:ms,ParametricGeometry:Ys,ParametricBufferGeometry:gs,TetrahedronGeometry:Zs,TetrahedronBufferGeometry:vs,OctahedronGeometry:Js,OctahedronBufferGeometry:Do,IcosahedronGeometry:$s,IcosahedronBufferGeometry:ys,DodecahedronGeometry:_s,DodecahedronBufferGeometry:xs,PolyhedronGeometry:ji,PolyhedronBufferGeometry:xi,TubeGeometry:un,TubeBufferGeometry:mo,TorusKnotGeometry:Sr,TorusKnotBufferGeometry:zo,TorusGeometry:Bo,TorusBufferGeometry:Rn,TextGeometry:Qs,TextBufferGeometry:ko,SphereGeometry:go,SphereBufferGeometry:fr,RingGeometry:ta,RingBufferGeometry:Uo,PlaneGeometry:Fe,PlaneBufferGeometry:xe,LatheGeometry:Ms,LatheBufferGeometry:vo,ShapeGeometry:to,ShapeBufferGeometry:yo,ExtrudeGeometry:Qr,ExtrudeBufferGeometry:kr,EdgesGeometry:_o,ConeGeometry:Ss,ConeBufferGeometry:In,CylinderGeometry:eo,CylinderBufferGeometry:io,CircleGeometry:Fo,CircleBufferGeometry:Ur,BoxGeometry:Dt,BoxBufferGeometry:kt});xo.prototype=Object.create(Zt.prototype),xo.prototype.constructor=xo,xo.prototype.isShadowMaterial=!0,xo.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.color.copy(t.color),this},Go.prototype=Object.create(ti.prototype),Go.prototype.constructor=Go,Go.prototype.isRawShaderMaterial=!0,Fr.prototype=Object.create(Zt.prototype),Fr.prototype.constructor=Fr,Fr.prototype.isMeshStandardMaterial=!0,Fr.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ho.prototype=Object.create(Fr.prototype),Ho.prototype.constructor=Ho,Ho.prototype.isMeshPhysicalMaterial=!0,Ho.prototype.copy=function(t){return Fr.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},Er.prototype=Object.create(Zt.prototype),Er.prototype.constructor=Er,Er.prototype.isMeshPhongMaterial=!0,Er.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Vo.prototype=Object.create(Er.prototype),Vo.prototype.constructor=Vo,Vo.prototype.isMeshToonMaterial=!0,Vo.prototype.copy=function(t){return Er.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},jo.prototype=Object.create(Zt.prototype),jo.prototype.constructor=jo,jo.prototype.isMeshNormalMaterial=!0,jo.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},pr.prototype=Object.create(Zt.prototype),pr.prototype.constructor=pr,pr.prototype.isMeshLambertMaterial=!0,pr.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Wo.prototype=Object.create(Zt.prototype),Wo.prototype.constructor=Wo,Wo.prototype.isMeshMatcapMaterial=!0,Wo.prototype.copy=function(t){return Zt.prototype.copy.call(this,t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Xo.prototype=Object.create(zi.prototype),Xo.prototype.constructor=Xo,Xo.prototype.isLineDashedMaterial=!0,Xo.prototype.copy=function(t){return zi.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var ql=Object.freeze({ShadowMaterial:xo,SpriteMaterial:Fi,RawShaderMaterial:Go,ShaderMaterial:ti,PointsMaterial:Ln,MeshPhysicalMaterial:Ho,MeshStandardMaterial:Fr,MeshPhongMaterial:Er,MeshToonMaterial:Vo,MeshNormalMaterial:jo,MeshLambertMaterial:pr,MeshDepthMaterial:oe,MeshDistanceMaterial:te,MeshBasicMaterial:Ge,MeshMatcapMaterial:Wo,LineDashedMaterial:Xo,LineBasicMaterial:zi,Material:Zt}),Nn={arraySlice:function(t,e,i){return Nn.isTypedArray(t)?new t.constructor(t.subarray(e,i!==void 0?i:t.length)):t.slice(e,i)},convertArray:function(t,e,i){return!t||!i&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){for(var e=t.length,i=Array(e),n=0;n!==e;++n)i[n]=n;return i.sort(function(o,s){return t[o]-t[s]}),i},sortedArray:function(t,e,i){for(var n=t.length,o=new t.constructor(n),s=0,l=0;l!==n;++s)for(var h=i[s]*e,c=0;c!==e;++c)o[l++]=t[h+c];return o},flattenJSON:function(t,e,i,n){for(var o=1,s=t[0];s!==void 0&&s[n]===void 0;)s=t[o++];if(s!==void 0){var l=s[n];if(l!==void 0)if(Array.isArray(l))do l=s[n],l!==void 0&&(e.push(s.time),i.push.apply(i,l)),s=t[o++];while(s!==void 0);else if(l.toArray!==void 0)do l=s[n],l!==void 0&&(e.push(s.time),l.toArray(i,i.length)),s=t[o++];while(s!==void 0);else do l=s[n],l!==void 0&&(e.push(s.time),i.push(l)),s=t[o++];while(s!==void 0)}}};Object.assign(Fn.prototype,{evaluate:function(t){var e=this.parameterPositions,i=this._cachedIndex,n=e[i],o=e[i-1];t:{e:{i:{n:if(!(t<n)){for(var s=i+2;;){if(n===void 0){if(t<o)break n;return this._cachedIndex=i=e.length,this.afterEnd_(i-1,t,o)}if(i===s)break;if(o=n,n=e[++i],t<n)break e}n=e.length;break i}if(t>=o)break t;for(s=e[1],t<s&&(i=2,o=s),s=i-2;;){if(o===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(i===s)break;if(n=o,o=e[--i-1],t>=o)break e}n=i,i=0}for(;i<n;)o=i+n>>>1,t<e[o]?n=o:i=o+1;if(n=e[i],o=e[i-1],o===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(n===void 0)return this._cachedIndex=i=e.length,this.afterEnd_(i-1,o,t)}this._cachedIndex=i,this.intervalChanged_(i,o,n)}return this.interpolate_(i,o,t,n)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){var e=this.resultBuffer,i=this.sampleValues,n=this.valueSize;t*=n;for(var o=0;o!==n;++o)e[o]=i[t+o];return e},interpolate_:function(){throw Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(Fn.prototype,{beforeStart_:Fn.prototype.copySampleValue_,afterEnd_:Fn.prototype.copySampleValue_}),ea.prototype=Object.assign(Object.create(Fn.prototype),{constructor:ea,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(t,e,i){var n=this.parameterPositions,o=t-2,s=t+1,l=n[o],h=n[s];if(l===void 0)switch(this.getSettings_().endingStart){case 2401:o=t,l=2*e-i;break;case 2402:o=n.length-2,l=e+n[o]-n[o+1];break;default:o=t,l=i}if(h===void 0)switch(this.getSettings_().endingEnd){case 2401:s=t,h=2*i-e;break;case 2402:s=1,h=i+n[1]-n[0];break;default:s=t-1,h=e}t=.5*(i-e),n=this.valueSize,this._weightPrev=t/(e-l),this._weightNext=t/(h-i),this._offsetPrev=o*n,this._offsetNext=s*n},interpolate_:function(t,e,i,n){var o=this.resultBuffer,s=this.sampleValues,l=this.valueSize;t*=l;var h=t-l,c=this._offsetPrev,f=this._offsetNext,v=this._weightPrev,y=this._weightNext,S=(i-e)/(n-e);for(i=S*S,n=i*S,e=-v*n+2*v*i-v*S,v=(1+v)*n+(-1.5-2*v)*i+(-.5+v)*S+1,S=(-1-y)*n+(1.5+y)*i+.5*S,y=y*n-y*i,i=0;i!==l;++i)o[i]=e*s[c+i]+v*s[h+i]+S*s[t+i]+y*s[f+i];return o}}),dr.prototype=Object.assign(Object.create(Fn.prototype),{constructor:dr,interpolate_:function(t,e,i,n){var o=this.resultBuffer,s=this.sampleValues,l=this.valueSize;t*=l;var h=t-l;for(e=(i-e)/(n-e),i=1-e,n=0;n!==l;++n)o[n]=s[h+n]*i+s[t+n]*e;return o}}),qo.prototype=Object.assign(Object.create(Fn.prototype),{constructor:qo,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(On,{toJSON:function(t){var e=t.constructor;if(e.toJSON!==void 0)e=e.toJSON(t);else{e={name:t.name,times:Nn.convertArray(t.times,Array),values:Nn.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e}}),Object.assign(On.prototype,{constructor:On,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(t){return new qo(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new dr(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new ea(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){switch(t){case 2300:var e=this.InterpolantFactoryMethodDiscrete;break;case 2301:e=this.InterpolantFactoryMethodLinear;break;case 2302:e=this.InterpolantFactoryMethodSmooth}if(e===void 0){if(e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,this.createInterpolant===void 0)if(t!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(e);return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(t!==0)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]+=t;return this},scale:function(t){if(t!==1)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]*=t;return this},trim:function(t,e){for(var i=this.times,n=i.length,o=0,s=n-1;o!==n&&i[o]<t;)++o;for(;s!==-1&&i[s]>e;)--s;return++s,(o!==0||s!==n)&&(o>=s&&(s=Math.max(s,1),o=s-1),t=this.getValueSize(),this.times=Nn.arraySlice(i,o,s),this.values=Nn.arraySlice(this.values,o*t,s*t)),this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);var i=this.times;e=this.values;var n=i.length;n===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var o=null,s=0;s!==n;s++){var l=i[s];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,s,l),t=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,s,l,o),t=!1;break}o=l}if(e!==void 0&&Nn.isTypedArray(e)){for(s=0,i=e.length;s!==i;++s)if(n=e[s],isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,s,n),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,i=this.getValueSize(),n=this.getInterpolation()===2302,o=1,s=t.length-1,l=1;l<s;++l){var h=!1,c=t[l];if(c!==t[l+1]&&(l!==1||c!==c[0]))if(n)h=!0;else{var f=l*i,v=f-i,y=f+i;for(c=0;c!==i;++c){var S=e[f+c];if(S!==e[v+c]||S!==e[y+c]){h=!0;break}}}if(h){if(l!==o)for(t[o]=t[l],h=l*i,f=o*i,c=0;c!==i;++c)e[f+c]=e[h+c];++o}}if(0<s){for(t[o]=t[s],h=s*i,f=o*i,c=0;c!==i;++c)e[f+c]=e[h+c];++o}return o!==t.length&&(this.times=Nn.arraySlice(t,0,o),this.values=Nn.arraySlice(e,0,o*i)),this}}),Da.prototype=Object.assign(Object.create(On.prototype),{constructor:Da,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),za.prototype=Object.assign(Object.create(On.prototype),{constructor:za,ValueTypeName:"color"}),br.prototype=Object.assign(Object.create(On.prototype),{constructor:br,ValueTypeName:"number"}),qn.prototype=Object.assign(Object.create(Fn.prototype),{constructor:qn,interpolate_:function(t,e,i,n){var o=this.resultBuffer,s=this.sampleValues,l=this.valueSize;for(t*=l,e=(i-e)/(n-e),i=t+l;t!==i;t+=4)G.slerpFlat(o,0,s,t-l,s,t,e);return o}}),Es.prototype=Object.assign(Object.create(On.prototype),{constructor:Es,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(t){return new qn(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Ba.prototype=Object.assign(Object.create(On.prototype),{constructor:Ba,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),bs.prototype=Object.assign(Object.create(On.prototype),{constructor:bs,ValueTypeName:"vector"}),Object.assign(rr,{parse:function(t){for(var e=[],i=t.tracks,n=1/(t.fps||1),o=0,s=i.length;o!==s;++o)e.push(ch(i[o]).scale(n));return new rr(t.name,t.duration,e)},toJSON:function(t){var e=[],i=t.tracks;t={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid};for(var n=0,o=i.length;n!==o;++n)e.push(On.toJSON(i[n]));return t},CreateFromMorphTargetSequence:function(t,e,i,n){for(var o=e.length,s=[],l=0;l<o;l++){var h=[],c=[];h.push((l+o-1)%o,l,(l+1)%o),c.push(0,1,0);var f=Nn.getKeyframeOrder(h);h=Nn.sortedArray(h,1,f),c=Nn.sortedArray(c,1,f),n||h[0]!==0||(h.push(o),c.push(c[0])),s.push(new br(".morphTargetInfluences["+e[l].name+"]",h,c).scale(1/i))}return new rr(t,-1,s)},findByName:function(t,e){var i=t;for(Array.isArray(t)||(i=t.geometry&&t.geometry.animations||t.animations),t=0;t<i.length;t++)if(i[t].name===e)return i[t];return null},CreateClipsFromMorphTargetSequences:function(t,e,i){for(var n={},o=/^([\w-]*?)([\d]+)$/,s=0,l=t.length;s<l;s++){var h=t[s],c=h.name.match(o);if(c&&1<c.length){var f=c[1];(c=n[f])||(n[f]=c=[]),c.push(h)}}t=[];for(f in n)t.push(rr.CreateFromMorphTargetSequence(f,n[f],e,i));return t},parseAnimation:function(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;var i=function(j,et,_t,mt,bt){if(_t.length!==0){var xt=[],Vt=[];Nn.flattenJSON(_t,xt,Vt,mt),xt.length!==0&&bt.push(new j(et,xt,Vt))}},n=[],o=t.name||"default",s=t.length||-1,l=t.fps||30;t=t.hierarchy||[];for(var h=0;h<t.length;h++){var c=t[h].keys;if(c&&c.length!==0)if(c[0].morphTargets){s={};for(var f=0;f<c.length;f++)if(c[f].morphTargets)for(var v=0;v<c[f].morphTargets.length;v++)s[c[f].morphTargets[v]]=-1;for(var y in s){var S=[],P=[];for(v=0;v!==c[f].morphTargets.length;++v){var N=c[f];S.push(N.time),P.push(N.morphTarget===y?1:0)}n.push(new br(".morphTargetInfluence["+y+"]",S,P))}s=s.length*(l||1)}else f=".bones["+e[h].name+"]",i(bs,f+".position",c,"pos",n),i(Es,f+".quaternion",c,"rot",n),i(bs,f+".scale",c,"scl",n)}return n.length===0?null:new rr(o,s,n)}}),Object.assign(rr.prototype,{resetDuration:function(){for(var t=0,e=0,i=this.tracks.length;e!==i;++e){var n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){for(var t=!0,e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}});var qr={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}},Vn=new wo,vr={};Object.assign(At.prototype,{load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var o=this,s=qr.get(t);if(s!==void 0)return o.manager.itemStart(t),setTimeout(function(){e&&e(s),o.manager.itemEnd(t)},0),s;if(vr[t]!==void 0)vr[t].push({onLoad:e,onProgress:i,onError:n});else{var l=t.match(/^data:(.*?)(;base64)?,(.*)$/);if(l){i=l[1];var h=!!l[2];l=l[3],l=decodeURIComponent(l),h&&(l=atob(l));try{var c=(this.responseType||"").toLowerCase();switch(c){case"arraybuffer":case"blob":var f=new Uint8Array(l.length);for(h=0;h<l.length;h++)f[h]=l.charCodeAt(h);var v=c==="blob"?new Blob([f.buffer],{type:i}):f.buffer;break;case"document":v=new DOMParser().parseFromString(l,i);break;case"json":v=JSON.parse(l);break;default:v=l}setTimeout(function(){e&&e(v),o.manager.itemEnd(t)},0)}catch(S){setTimeout(function(){n&&n(S),o.manager.itemError(t),o.manager.itemEnd(t)},0)}}else{vr[t]=[],vr[t].push({onLoad:e,onProgress:i,onError:n});var y=new XMLHttpRequest;y.open("GET",t,!0),y.addEventListener("load",function(S){var P=this.response;qr.add(t,P);var N=vr[t];if(delete vr[t],this.status===200||this.status===0){this.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received.");for(var j=0,et=N.length;j<et;j++){var _t=N[j];_t.onLoad&&_t.onLoad(P)}}else{for(j=0,et=N.length;j<et;j++)_t=N[j],_t.onError&&_t.onError(S);o.manager.itemError(t)}o.manager.itemEnd(t)},!1),y.addEventListener("progress",function(S){for(var P=vr[t],N=0,j=P.length;N<j;N++){var et=P[N];et.onProgress&&et.onProgress(S)}},!1),y.addEventListener("error",function(S){var P=vr[t];delete vr[t];for(var N=0,j=P.length;N<j;N++){var et=P[N];et.onError&&et.onError(S)}o.manager.itemError(t),o.manager.itemEnd(t)},!1),y.addEventListener("abort",function(S){var P=vr[t];delete vr[t];for(var N=0,j=P.length;N<j;N++){var et=P[N];et.onError&&et.onError(S)}o.manager.itemError(t),o.manager.itemEnd(t)},!1),this.responseType!==void 0&&(y.responseType=this.responseType),this.withCredentials!==void 0&&(y.withCredentials=this.withCredentials),y.overrideMimeType&&y.overrideMimeType(this.mimeType!==void 0?this.mimeType:"text/plain");for(h in this.requestHeader)y.setRequestHeader(h,this.requestHeader[h]);y.send(null)}return o.manager.itemStart(t),y}},setPath:function(t){return this.path=t,this},setResponseType:function(t){return this.responseType=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setMimeType:function(t){return this.mimeType=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}}),Object.assign(Qt.prototype,{load:function(t,e,i,n){var o=this,s=new At(o.manager);s.setPath(o.path),s.load(t,function(l){e(o.parse(JSON.parse(l)))},i,n)},parse:function(t,e){for(var i=[],n=0;n<t.length;n++){var o=rr.parse(t[n]);i.push(o)}e(i)},setPath:function(t){return this.path=t,this}}),Object.assign(Yt.prototype,{load:function(t,e,i,n){function o(S){c.load(t[S],function(P){P=s._parser(P,!0),l[S]={width:P.width,height:P.height,format:P.format,mipmaps:P.mipmaps},f+=1,f===6&&(P.mipmapCount===1&&(h.minFilter=1006),h.format=P.format,h.needsUpdate=!0,e&&e(h))},i,n)}var s=this,l=[],h=new po;h.image=l;var c=new At(this.manager);if(c.setPath(this.path),c.setResponseType("arraybuffer"),Array.isArray(t))for(var f=0,v=0,y=t.length;v<y;++v)o(v);else c.load(t,function(S){if(S=s._parser(S,!0),S.isCubemap)for(var P=S.mipmaps.length/S.mipmapCount,N=0;N<P;N++){l[N]={mipmaps:[]};for(var j=0;j<S.mipmapCount;j++)l[N].mipmaps.push(S.mipmaps[N*S.mipmapCount+j]),l[N].format=S.format,l[N].width=S.width,l[N].height=S.height}else h.image.width=S.width,h.image.height=S.height,h.mipmaps=S.mipmaps;S.mipmapCount===1&&(h.minFilter=1006),h.format=S.format,h.needsUpdate=!0,e&&e(h)},i,n);return h},setPath:function(t){return this.path=t,this}}),Object.assign(Ue.prototype,{load:function(t,e,i,n){var o=this,s=new H,l=new At(this.manager);return l.setResponseType("arraybuffer"),l.setPath(this.path),l.load(t,function(h){(h=o._parser(h))&&(h.image!==void 0?s.image=h.image:h.data!==void 0&&(s.image.width=h.width,s.image.height=h.height,s.image.data=h.data),s.wrapS=h.wrapS!==void 0?h.wrapS:1001,s.wrapT=h.wrapT!==void 0?h.wrapT:1001,s.magFilter=h.magFilter!==void 0?h.magFilter:1006,s.minFilter=h.minFilter!==void 0?h.minFilter:1008,s.anisotropy=h.anisotropy!==void 0?h.anisotropy:1,h.format!==void 0&&(s.format=h.format),h.type!==void 0&&(s.type=h.type),h.mipmaps!==void 0&&(s.mipmaps=h.mipmaps),h.mipmapCount===1&&(s.minFilter=1006),s.needsUpdate=!0,e&&e(s,h))},i,n),s},setPath:function(t){return this.path=t,this}}),Object.assign(ai.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function o(){c.removeEventListener("load",o,!1),c.removeEventListener("error",s,!1),qr.add(t,this),e&&e(this),l.manager.itemEnd(t)}function s(f){c.removeEventListener("load",o,!1),c.removeEventListener("error",s,!1),n&&n(f),l.manager.itemError(t),l.manager.itemEnd(t)}t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var l=this,h=qr.get(t);if(h!==void 0)return l.manager.itemStart(t),setTimeout(function(){e&&e(h),l.manager.itemEnd(t)},0),h;var c=document.createElementNS("http://www.w3.org/1999/xhtml","img");return c.addEventListener("load",o,!1),c.addEventListener("error",s,!1),t.substr(0,5)!=="data:"&&this.crossOrigin!==void 0&&(c.crossOrigin=this.crossOrigin),l.manager.itemStart(t),c.src=t,c},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Bi.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function o(c){l.load(t[c],function(f){s.images[c]=f,h++,h===6&&(s.needsUpdate=!0,e&&e(s))},void 0,n)}var s=new w,l=new ai(this.manager);l.setCrossOrigin(this.crossOrigin),l.setPath(this.path);var h=0;for(i=0;i<t.length;++i)o(i);return s},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(ln.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var o=new O,s=new ai(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(t,function(l){o.image=l,l=0<t.search(/\.jpe?g$/i)||t.search(/^data:image\/jpeg/)===0,o.format=l?1022:1023,o.needsUpdate=!0,e!==void 0&&e(o)},i,n),o},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ee.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){return t=this.getUtoTmapping(t),this.getPoint(t,e)},getPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e},getSpacedPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(t===void 0&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e=[],i=this.getPoint(0),n,o=0;for(e.push(0),n=1;n<=t;n++){var s=this.getPoint(n/t);o+=s.distanceTo(i),e.push(o),i=s}return this.cacheArcLengths=e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var i=this.getLengths(),n=i.length;e=e||t*i[n-1];for(var o=0,s=n-1,l;o<=s;)if(t=Math.floor(o+(s-o)/2),l=i[t]-e,0>l)o=t+1;else if(0<l)s=t-1;else{s=t;break}return t=s,i[t]===e?t/(n-1):(o=i[t],(t+(e-o)/(i[t+1]-o))/(n-1))},getTangent:function(t){var e=t-1e-4;return t+=1e-4,0>e&&(e=0),1<t&&(t=1),e=this.getPoint(e),this.getPoint(t).clone().sub(e).normalize()},getTangentAt:function(t){return t=this.getUtoTmapping(t),this.getTangent(t)},computeFrenetFrames:function(t,e){var i=new m,n=[],o=[],s=[],l=new m,h=new J,c;for(c=0;c<=t;c++){var f=c/t;n[c]=this.getTangentAt(f),n[c].normalize()}o[0]=new m,s[0]=new m,c=Number.MAX_VALUE,f=Math.abs(n[0].x);var v=Math.abs(n[0].y),y=Math.abs(n[0].z);for(f<=c&&(c=f,i.set(1,0,0)),v<=c&&(c=v,i.set(0,1,0)),y<=c&&i.set(0,0,1),l.crossVectors(n[0],i).normalize(),o[0].crossVectors(n[0],l),s[0].crossVectors(n[0],o[0]),c=1;c<=t;c++)o[c]=o[c-1].clone(),s[c]=s[c-1].clone(),l.crossVectors(n[c-1],n[c]),l.length()>Number.EPSILON&&(l.normalize(),i=Math.acos(pi.clamp(n[c-1].dot(n[c]),-1,1)),o[c].applyMatrix4(h.makeRotationAxis(l,i))),s[c].crossVectors(n[c],o[c]);if(e===!0)for(i=Math.acos(pi.clamp(o[0].dot(o[t]),-1,1)),i/=t,0<n[0].dot(l.crossVectors(o[0],o[t]))&&(i=-i),c=1;c<=t;c++)o[c].applyMatrix4(h.makeRotationAxis(n[c],i*c)),s[c].crossVectors(n[c],o[c]);return{tangents:n,normals:o,binormals:s}},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){var t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Gn.prototype=Object.create(Ee.prototype),Gn.prototype.constructor=Gn,Gn.prototype.isEllipseCurve=!0,Gn.prototype.getPoint=function(t,e){e=e||new p;for(var i=2*Math.PI,n=this.aEndAngle-this.aStartAngle,o=Math.abs(n)<Number.EPSILON;0>n;)n+=i;for(;n>i;)n-=i;n<Number.EPSILON&&(n=o?0:i),this.aClockwise!==!0||o||(n=n===i?-i:n-i),i=this.aStartAngle+t*n,t=this.aX+this.xRadius*Math.cos(i);var s=this.aY+this.yRadius*Math.sin(i);return this.aRotation!==0&&(i=Math.cos(this.aRotation),n=Math.sin(this.aRotation),o=t-this.aX,s-=this.aY,t=o*i-s*n+this.aX,s=o*n+s*i+this.aY),e.set(t,s)},Gn.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Gn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},Gn.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},As.prototype=Object.create(Gn.prototype),As.prototype.constructor=As,As.prototype.isArcCurve=!0;var _n=new m,ya=new Yn,ja=new Yn,yr=new Yn;Sn.prototype=Object.create(Ee.prototype),Sn.prototype.constructor=Sn,Sn.prototype.isCatmullRomCurve3=!0,Sn.prototype.getPoint=function(t,e){e=e||new m;var i=this.points,n=i.length;t*=n-(this.closed?0:1);var o=Math.floor(t);if(t-=o,this.closed?o+=0<o?0:(Math.floor(Math.abs(o)/n)+1)*n:t===0&&o===n-1&&(o=n-2,t=1),this.closed||0<o)var s=i[(o-1)%n];else _n.subVectors(i[0],i[1]).add(i[0]),s=_n;var l=i[o%n],h=i[(o+1)%n];if(this.closed||o+2<n?i=i[(o+2)%n]:(_n.subVectors(i[n-1],i[n-2]).add(i[n-1]),i=_n),this.curveType==="centripetal"||this.curveType==="chordal"){var c=this.curveType==="chordal"?.5:.25;n=Math.pow(s.distanceToSquared(l),c),o=Math.pow(l.distanceToSquared(h),c),c=Math.pow(h.distanceToSquared(i),c),1e-4>o&&(o=1),1e-4>n&&(n=o),1e-4>c&&(c=o),ya.initNonuniformCatmullRom(s.x,l.x,h.x,i.x,n,o,c),ja.initNonuniformCatmullRom(s.y,l.y,h.y,i.y,n,o,c),yr.initNonuniformCatmullRom(s.z,l.z,h.z,i.z,n,o,c)}else this.curveType==="catmullrom"&&(ya.initCatmullRom(s.x,l.x,h.x,i.x,this.tension),ja.initCatmullRom(s.y,l.y,h.y,i.y,this.tension),yr.initCatmullRom(s.z,l.z,h.z,i.z,this.tension));return e.set(ya.calc(t),ja.calc(t),yr.calc(t)),e},Sn.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Sn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},Sn.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new m().fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Zn.prototype=Object.create(Ee.prototype),Zn.prototype.constructor=Zn,Zn.prototype.isCubicBezierCurve=!0,Zn.prototype.getPoint=function(t,e){e=e||new p;var i=this.v0,n=this.v1,o=this.v2,s=this.v3;return e.set(To(t,i.x,n.x,o.x,s.x),To(t,i.y,n.y,o.y,s.y)),e},Zn.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Zn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Zn.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Ti.prototype=Object.create(Ee.prototype),Ti.prototype.constructor=Ti,Ti.prototype.isCubicBezierCurve3=!0,Ti.prototype.getPoint=function(t,e){e=e||new m;var i=this.v0,n=this.v1,o=this.v2,s=this.v3;return e.set(To(t,i.x,n.x,o.x,s.x),To(t,i.y,n.y,o.y,s.y),To(t,i.z,n.z,o.z,s.z)),e},Ti.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Ti.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Ti.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Jn.prototype=Object.create(Ee.prototype),Jn.prototype.constructor=Jn,Jn.prototype.isLineCurve=!0,Jn.prototype.getPoint=function(t,e){return e=e||new p,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},Jn.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},Jn.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},Jn.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Jn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Jn.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},mr.prototype=Object.create(Ee.prototype),mr.prototype.constructor=mr,mr.prototype.isLineCurve3=!0,mr.prototype.getPoint=function(t,e){return e=e||new m,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},mr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},mr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},mr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},mr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},$n.prototype=Object.create(Ee.prototype),$n.prototype.constructor=$n,$n.prototype.isQuadraticBezierCurve=!0,$n.prototype.getPoint=function(t,e){e=e||new p;var i=this.v0,n=this.v1,o=this.v2;return e.set(Gr(t,i.x,n.x,o.x),Gr(t,i.y,n.y,o.y)),e},$n.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},$n.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},$n.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Hr.prototype=Object.create(Ee.prototype),Hr.prototype.constructor=Hr,Hr.prototype.isQuadraticBezierCurve3=!0,Hr.prototype.getPoint=function(t,e){e=e||new m;var i=this.v0,n=this.v1,o=this.v2;return e.set(Gr(t,i.x,n.x,o.x),Gr(t,i.y,n.y,o.y),Gr(t,i.z,n.z,o.z)),e},Hr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Hr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Hr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Ar.prototype=Object.create(Ee.prototype),Ar.prototype.constructor=Ar,Ar.prototype.isSplineCurve=!0,Ar.prototype.getPoint=function(t,e){e=e||new p;var i=this.points,n=(i.length-1)*t;t=Math.floor(n),n-=t;var o=i[t===0?t:t-1],s=i[t],l=i[t>i.length-2?i.length-1:t+1];return i=i[t>i.length-3?i.length-1:t+2],e.set(Nl(n,o.x,s.x,l.x,i.x),Nl(n,o.y,s.y,l.y,i.y)),e},Ar.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this},Ar.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t},Ar.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new p().fromArray(n))}return this};var Wa=Object.freeze({ArcCurve:As,CatmullRomCurve3:Sn,CubicBezierCurve:Zn,CubicBezierCurve3:Ti,EllipseCurve:Gn,LineCurve:Jn,LineCurve3:mr,QuadraticBezierCurve:$n,QuadraticBezierCurve3:Hr,SplineCurve:Ar});no.prototype=Object.assign(Object.create(Ee.prototype),{constructor:no,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new Jn(e,t))},getPoint:function(t){var e=t*this.getLength(),i=this.getCurveLengths();for(t=0;t<i.length;){if(i[t]>=e)return e=i[t]-e,t=this.curves[t],i=t.getLength(),t.getPointAt(i===0?0:1-e/i);t++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=0,n=this.curves.length;i<n;i++)e+=this.curves[i].getLength(),t.push(e);return this.cacheLengths=t},getSpacedPoints:function(t){t===void 0&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e=[],i,n=0,o=this.curves;n<o.length;n++){var s=o[n];s=s.getPoints(s&&s.isEllipseCurve?2*t:s&&(s.isLineCurve||s.isLineCurve3)?1:s&&s.isSplineCurve?t*s.points.length:t);for(var l=0;l<s.length;l++){var h=s[l];i&&i.equals(h)||(e.push(h),i=h)}}return this.autoClose&&1<e.length&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e},copy:function(t){Ee.prototype.copy.call(this,t),this.curves=[];for(var e=0,i=t.curves.length;e<i;e++)this.curves.push(t.curves[e].clone());return this.autoClose=t.autoClose,this},toJSON:function(){var t=Ee.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,i=this.curves.length;e<i;e++)t.curves.push(this.curves[e].toJSON());return t},fromJSON:function(t){Ee.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,i=t.curves.length;e<i;e++){var n=t.curves[e];this.curves.push(new Wa[n.type]().fromJSON(n))}return this}}),Kn.prototype=Object.assign(Object.create(no.prototype),{constructor:Kn,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,i=t.length;e<i;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.currentPoint.set(t,e)},lineTo:function(t,e){var i=new Jn(this.currentPoint.clone(),new p(t,e));this.curves.push(i),this.currentPoint.set(t,e)},quadraticCurveTo:function(t,e,i,n){t=new $n(this.currentPoint.clone(),new p(t,e),new p(i,n)),this.curves.push(t),this.currentPoint.set(i,n)},bezierCurveTo:function(t,e,i,n,o,s){t=new Zn(this.currentPoint.clone(),new p(t,e),new p(i,n),new p(o,s)),this.curves.push(t),this.currentPoint.set(o,s)},splineThru:function(t){var e=[this.currentPoint.clone()].concat(t);e=new Ar(e),this.curves.push(e),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,i,n,o,s){this.absarc(t+this.currentPoint.x,e+this.currentPoint.y,i,n,o,s)},absarc:function(t,e,i,n,o,s){this.absellipse(t,e,i,i,n,o,s)},ellipse:function(t,e,i,n,o,s,l,h){this.absellipse(t+this.currentPoint.x,e+this.currentPoint.y,i,n,o,s,l,h)},absellipse:function(t,e,i,n,o,s,l,h){t=new Gn(t,e,i,n,o,s,l,h),0<this.curves.length&&(e=t.getPoint(0),e.equals(this.currentPoint)||this.lineTo(e.x,e.y)),this.curves.push(t),t=t.getPoint(1),this.currentPoint.copy(t)},copy:function(t){return no.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=no.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return no.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),Hn.prototype=Object.assign(Object.create(Kn.prototype),{constructor:Hn,getPointsHoles:function(t){for(var e=[],i=0,n=this.holes.length;i<n;i++)e[i]=this.holes[i].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){Kn.prototype.copy.call(this,t),this.holes=[];for(var e=0,i=t.holes.length;e<i;e++)this.holes.push(t.holes[e].clone());return this},toJSON:function(){var t=Kn.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,i=this.holes.length;e<i;e++)t.holes.push(this.holes[e].toJSON());return t},fromJSON:function(t){Kn.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,i=t.holes.length;e<i;e++){var n=t.holes[e];this.holes.push(new Kn().fromJSON(n))}return this}}),$i.prototype=Object.assign(Object.create(z.prototype),{constructor:$i,isLight:!0,copy:function(t){return z.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){return t=z.prototype.toJSON.call(this,t),t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}),ia.prototype=Object.assign(Object.create($i.prototype),{constructor:ia,isHemisphereLight:!0,copy:function(t){return $i.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(Vr.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return new this.constructor().copy(this)},toJSON:function(){var t={};return this.bias!==0&&(t.bias=this.bias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),na.prototype=Object.assign(Object.create(Vr.prototype),{constructor:na,isSpotLightShadow:!0,update:function(t){var e=this.camera,i=2*pi.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height;t=t.distance||e.far,(i!==e.fov||n!==e.aspect||t!==e.far)&&(e.fov=i,e.aspect=n,e.far=t,e.updateProjectionMatrix())}}),ra.prototype=Object.assign(Object.create($i.prototype),{constructor:ra,isSpotLight:!0,copy:function(t){return $i.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Yo.prototype=Object.assign(Object.create($i.prototype),{constructor:Yo,isPointLight:!0,copy:function(t){return $i.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),Cs.prototype=Object.assign(Object.create(Be.prototype),{constructor:Cs,isOrthographicCamera:!0,copy:function(t,e){return Be.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this},setViewOffset:function(t,e,i,n,o,s){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,o=i-t;if(i+=t,t=n+e,e=n-e,this.view!==null&&this.view.enabled){i=this.zoom/(this.view.width/this.view.fullWidth),e=this.zoom/(this.view.height/this.view.fullHeight);var s=(this.right-this.left)/this.view.width;n=(this.top-this.bottom)/this.view.height,o+=this.view.offsetX/i*s,i=o+this.view.width/i*s,t-=this.view.offsetY/e*n,e=t-this.view.height/e*n}this.projectionMatrix.makeOrthographic(o,i,t,e,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=z.prototype.toJSON.call(this,t),t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}),Mo.prototype=Object.assign(Object.create(Vr.prototype),{constructor:Mo}),jr.prototype=Object.assign(Object.create($i.prototype),{constructor:jr,isDirectionalLight:!0,copy:function(t){return $i.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Zo.prototype=Object.assign(Object.create($i.prototype),{constructor:Zo,isAmbientLight:!0}),Na.prototype=Object.assign(Object.create($i.prototype),{constructor:Na,isRectAreaLight:!0,copy:function(t){return $i.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){return t=$i.prototype.toJSON.call(this,t),t.object.width=this.width,t.object.height=this.height,t}}),Object.assign(ka.prototype,{load:function(t,e,i,n){var o=this,s=new At(o.manager);s.setPath(o.path),s.load(t,function(l){e(o.parse(JSON.parse(l)))},i,n)},parse:function(t){function e(l){return i[l]===void 0&&console.warn("THREE.MaterialLoader: Undefined texture",l),i[l]}var i=this.textures,n=new ql[t.type];if(t.uuid!==void 0&&(n.uuid=t.uuid),t.name!==void 0&&(n.name=t.name),t.color!==void 0&&n.color.setHex(t.color),t.roughness!==void 0&&(n.roughness=t.roughness),t.metalness!==void 0&&(n.metalness=t.metalness),t.emissive!==void 0&&n.emissive.setHex(t.emissive),t.specular!==void 0&&n.specular.setHex(t.specular),t.shininess!==void 0&&(n.shininess=t.shininess),t.clearCoat!==void 0&&(n.clearCoat=t.clearCoat),t.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=t.clearCoatRoughness),t.vertexColors!==void 0&&(n.vertexColors=t.vertexColors),t.fog!==void 0&&(n.fog=t.fog),t.flatShading!==void 0&&(n.flatShading=t.flatShading),t.blending!==void 0&&(n.blending=t.blending),t.combine!==void 0&&(n.combine=t.combine),t.side!==void 0&&(n.side=t.side),t.opacity!==void 0&&(n.opacity=t.opacity),t.transparent!==void 0&&(n.transparent=t.transparent),t.alphaTest!==void 0&&(n.alphaTest=t.alphaTest),t.depthTest!==void 0&&(n.depthTest=t.depthTest),t.depthWrite!==void 0&&(n.depthWrite=t.depthWrite),t.colorWrite!==void 0&&(n.colorWrite=t.colorWrite),t.wireframe!==void 0&&(n.wireframe=t.wireframe),t.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=t.wireframeLinewidth),t.wireframeLinecap!==void 0&&(n.wireframeLinecap=t.wireframeLinecap),t.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=t.wireframeLinejoin),t.rotation!==void 0&&(n.rotation=t.rotation),t.linewidth!==1&&(n.linewidth=t.linewidth),t.dashSize!==void 0&&(n.dashSize=t.dashSize),t.gapSize!==void 0&&(n.gapSize=t.gapSize),t.scale!==void 0&&(n.scale=t.scale),t.polygonOffset!==void 0&&(n.polygonOffset=t.polygonOffset),t.polygonOffsetFactor!==void 0&&(n.polygonOffsetFactor=t.polygonOffsetFactor),t.polygonOffsetUnits!==void 0&&(n.polygonOffsetUnits=t.polygonOffsetUnits),t.skinning!==void 0&&(n.skinning=t.skinning),t.morphTargets!==void 0&&(n.morphTargets=t.morphTargets),t.dithering!==void 0&&(n.dithering=t.dithering),t.visible!==void 0&&(n.visible=t.visible),t.userData!==void 0&&(n.userData=t.userData),t.uniforms!==void 0)for(var o in t.uniforms){var s=t.uniforms[o];switch(n.uniforms[o]={},s.type){case"t":n.uniforms[o].value=e(s.value);break;case"c":n.uniforms[o].value=new A().setHex(s.value);break;case"v2":n.uniforms[o].value=new p().fromArray(s.value);break;case"v3":n.uniforms[o].value=new m().fromArray(s.value);break;case"v4":n.uniforms[o].value=new E().fromArray(s.value);break;case"m4":n.uniforms[o].value=new J().fromArray(s.value);break;default:n.uniforms[o].value=s.value}}return t.defines!==void 0&&(n.defines=t.defines),t.vertexShader!==void 0&&(n.vertexShader=t.vertexShader),t.fragmentShader!==void 0&&(n.fragmentShader=t.fragmentShader),t.shading!==void 0&&(n.flatShading=t.shading===1),t.size!==void 0&&(n.size=t.size),t.sizeAttenuation!==void 0&&(n.sizeAttenuation=t.sizeAttenuation),t.map!==void 0&&(n.map=e(t.map)),t.alphaMap!==void 0&&(n.alphaMap=e(t.alphaMap),n.transparent=!0),t.bumpMap!==void 0&&(n.bumpMap=e(t.bumpMap)),t.bumpScale!==void 0&&(n.bumpScale=t.bumpScale),t.normalMap!==void 0&&(n.normalMap=e(t.normalMap)),t.normalMapType!==void 0&&(n.normalMapType=t.normalMapType),t.normalScale!==void 0&&(o=t.normalScale,Array.isArray(o)===!1&&(o=[o,o]),n.normalScale=new p().fromArray(o)),t.displacementMap!==void 0&&(n.displacementMap=e(t.displacementMap)),t.displacementScale!==void 0&&(n.displacementScale=t.displacementScale),t.displacementBias!==void 0&&(n.displacementBias=t.displacementBias),t.roughnessMap!==void 0&&(n.roughnessMap=e(t.roughnessMap)),t.metalnessMap!==void 0&&(n.metalnessMap=e(t.metalnessMap)),t.emissiveMap!==void 0&&(n.emissiveMap=e(t.emissiveMap)),t.emissiveIntensity!==void 0&&(n.emissiveIntensity=t.emissiveIntensity),t.specularMap!==void 0&&(n.specularMap=e(t.specularMap)),t.envMap!==void 0&&(n.envMap=e(t.envMap)),t.envMapIntensity!==void 0&&(n.envMapIntensity=t.envMapIntensity),t.reflectivity!==void 0&&(n.reflectivity=t.reflectivity),t.lightMap!==void 0&&(n.lightMap=e(t.lightMap)),t.lightMapIntensity!==void 0&&(n.lightMapIntensity=t.lightMapIntensity),t.aoMap!==void 0&&(n.aoMap=e(t.aoMap)),t.aoMapIntensity!==void 0&&(n.aoMapIntensity=t.aoMapIntensity),t.gradientMap!==void 0&&(n.gradientMap=e(t.gradientMap)),n},setPath:function(t){return this.path=t,this},setTextures:function(t){return this.textures=t,this}});var es={decodeText:function(t){if(typeof TextDecoder<"u")return new TextDecoder().decode(t);for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]);return decodeURIComponent(escape(e))},extractUrlBase:function(t){var e=t.lastIndexOf("/");return e===-1?"./":t.substr(0,e+1)}};Object.assign(sl.prototype,{load:function(t,e,i,n){var o=this,s=new At(o.manager);s.setPath(o.path),s.load(t,function(l){e(o.parse(JSON.parse(l)))},i,n)},parse:function(t){var e=new Ft,i=t.data.index;i!==void 0&&(i=new Co[i.type](i.array),e.setIndex(new ht(i,1)));var n=t.data.attributes;for(s in n){var o=n[s];i=new Co[o.type](o.array),e.addAttribute(s,new ht(i,o.itemSize,o.normalized))}var s=t.data.groups||t.data.drawcalls||t.data.offsets;if(s!==void 0)for(i=0,n=s.length;i!==n;++i)o=s[i],e.addGroup(o.start,o.count,o.materialIndex);return t=t.data.boundingSphere,t!==void 0&&(s=new m,t.center!==void 0&&s.fromArray(t.center),e.boundingSphere=new B(s,t.radius)),e},setPath:function(t){return this.path=t,this}});var Co={Int8Array,Uint8Array,Uint8ClampedArray:typeof Uint8ClampedArray<"u"?Uint8ClampedArray:Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};ro.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,i=0,n=e.length;i<n;i+=2){var o=e[i+1];if(e[i].test(t))return o}return null}},Object.assign(ro.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,i){for(var n=[],o=0;o<t.length;++o)n[o]=this.createMaterial(t[o],e,i);return n},createMaterial:function(){var t={NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5},e=new A,i=new ln,n=new ka;return function(o,s,l){function h(S,P,N,j,et){S=s+S;var _t=ro.Handlers.get(S);return _t!==null?S=_t.load(S):(i.setCrossOrigin(l),S=i.load(S)),P!==void 0&&(S.repeat.fromArray(P),P[0]!==1&&(S.wrapS=1e3),P[1]!==1&&(S.wrapT=1e3)),N!==void 0&&S.offset.fromArray(N),j!==void 0&&(j[0]==="repeat"&&(S.wrapS=1e3),j[0]==="mirror"&&(S.wrapS=1002),j[1]==="repeat"&&(S.wrapT=1e3),j[1]==="mirror"&&(S.wrapT=1002)),et!==void 0&&(S.anisotropy=et),P=pi.generateUUID(),c[P]=S,P}var c={},f={uuid:pi.generateUUID(),type:"MeshLambertMaterial"},v;for(v in o){var y=o[v];switch(v){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":f.name=y;break;case"blending":f.blending=t[y];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",v,"is no longer supported.");break;case"colorDiffuse":f.color=e.fromArray(y).getHex();break;case"colorSpecular":f.specular=e.fromArray(y).getHex();break;case"colorEmissive":f.emissive=e.fromArray(y).getHex();break;case"specularCoef":f.shininess=y;break;case"shading":y.toLowerCase()==="basic"&&(f.type="MeshBasicMaterial"),y.toLowerCase()==="phong"&&(f.type="MeshPhongMaterial"),y.toLowerCase()==="standard"&&(f.type="MeshStandardMaterial");break;case"mapDiffuse":f.map=h(y,o.mapDiffuseRepeat,o.mapDiffuseOffset,o.mapDiffuseWrap,o.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":f.emissiveMap=h(y,o.mapEmissiveRepeat,o.mapEmissiveOffset,o.mapEmissiveWrap,o.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":f.lightMap=h(y,o.mapLightRepeat,o.mapLightOffset,o.mapLightWrap,o.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":f.aoMap=h(y,o.mapAORepeat,o.mapAOOffset,o.mapAOWrap,o.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":f.bumpMap=h(y,o.mapBumpRepeat,o.mapBumpOffset,o.mapBumpWrap,o.mapBumpAnisotropy);break;case"mapBumpScale":f.bumpScale=y;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":f.normalMap=h(y,o.mapNormalRepeat,o.mapNormalOffset,o.mapNormalWrap,o.mapNormalAnisotropy);break;case"mapNormalFactor":f.normalScale=y;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":f.specularMap=h(y,o.mapSpecularRepeat,o.mapSpecularOffset,o.mapSpecularWrap,o.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":f.metalnessMap=h(y,o.mapMetalnessRepeat,o.mapMetalnessOffset,o.mapMetalnessWrap,o.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":f.roughnessMap=h(y,o.mapRoughnessRepeat,o.mapRoughnessOffset,o.mapRoughnessWrap,o.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":f.alphaMap=h(y,o.mapAlphaRepeat,o.mapAlphaOffset,o.mapAlphaWrap,o.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":f.side=1;break;case"doubleSided":f.side=2;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity"),f.opacity=y;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":f[v]=y;break;case"vertexColors":y===!0&&(f.vertexColors=2),y==="face"&&(f.vertexColors=1);break;default:console.error("THREE.Loader.createMaterial: Unsupported",v,y)}}return f.type==="MeshBasicMaterial"&&delete f.emissive,f.type!=="MeshPhongMaterial"&&delete f.specular,1>f.opacity&&(f.transparent=!0),n.setTextures(c),n.parse(f)}}()}),Object.assign(Jo.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var o=this,s=this.path===void 0?es.extractUrlBase(t):this.path,l=new At(this.manager);l.setPath(this.path),l.setWithCredentials(this.withCredentials),l.load(t,function(h){h=JSON.parse(h);var c=h.metadata;if(c!==void 0&&(c=c.type,c!==void 0&&c.toLowerCase()==="object")){console.error("THREE.JSONLoader: "+t+" should be loaded with THREE.ObjectLoader instead.");return}h=o.parse(h,s),e(h.geometry,h.materials)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(){return function(t,e){t.data!==void 0&&(t=t.data),t.scale=t.scale!==void 0?1/t.scale:1;var i=new W,n=t,o,s,l,h=n.faces,c=n.vertices,f=n.normals,v=n.colors,y=n.scale,S=0;if(n.uvs!==void 0){for(o=0;o<n.uvs.length;o++)n.uvs[o].length&&S++;for(o=0;o<S;o++)i.faceVertexUvs[o]=[]}var P=0;for(l=c.length;P<l;)o=new m,o.x=c[P++]*y,o.y=c[P++]*y,o.z=c[P++]*y,i.vertices.push(o);for(P=0,l=h.length;P<l;){c=h[P++];var N=c&1,j=c&2;o=c&8;var et=c&16,_t=c&32;if(y=c&64,c&=128,N){N=new M,N.a=h[P],N.b=h[P+1],N.c=h[P+3];var mt=new M;if(mt.a=h[P+1],mt.b=h[P+2],mt.c=h[P+3],P+=4,j&&(j=h[P++],N.materialIndex=j,mt.materialIndex=j),j=i.faces.length,o)for(o=0;o<S;o++){var bt=n.uvs[o];for(i.faceVertexUvs[o][j]=[],i.faceVertexUvs[o][j+1]=[],s=0;4>s;s++){var xt=h[P++],Vt=bt[2*xt];xt=bt[2*xt+1],Vt=new p(Vt,xt),s!==2&&i.faceVertexUvs[o][j].push(Vt),s!==0&&i.faceVertexUvs[o][j+1].push(Vt)}}if(et&&(et=3*h[P++],N.normal.set(f[et++],f[et++],f[et]),mt.normal.copy(N.normal)),_t)for(o=0;4>o;o++)et=3*h[P++],_t=new m(f[et++],f[et++],f[et]),o!==2&&N.vertexNormals.push(_t),o!==0&&mt.vertexNormals.push(_t);if(y&&(y=h[P++],y=v[y],N.color.setHex(y),mt.color.setHex(y)),c)for(o=0;4>o;o++)y=h[P++],y=v[y],o!==2&&N.vertexColors.push(new A(y)),o!==0&&mt.vertexColors.push(new A(y));i.faces.push(N),i.faces.push(mt)}else{if(N=new M,N.a=h[P++],N.b=h[P++],N.c=h[P++],j&&(j=h[P++],N.materialIndex=j),j=i.faces.length,o)for(o=0;o<S;o++)for(bt=n.uvs[o],i.faceVertexUvs[o][j]=[],s=0;3>s;s++)xt=h[P++],Vt=bt[2*xt],xt=bt[2*xt+1],Vt=new p(Vt,xt),i.faceVertexUvs[o][j].push(Vt);if(et&&(et=3*h[P++],N.normal.set(f[et++],f[et++],f[et])),_t)for(o=0;3>o;o++)et=3*h[P++],_t=new m(f[et++],f[et++],f[et]),N.vertexNormals.push(_t);if(y&&(y=h[P++],N.color.setHex(v[y])),c)for(o=0;3>o;o++)y=h[P++],N.vertexColors.push(new A(v[y]));i.faces.push(N)}}if(n=t,P=n.influencesPerVertex!==void 0?n.influencesPerVertex:2,n.skinWeights)for(l=0,h=n.skinWeights.length;l<h;l+=P)i.skinWeights.push(new E(n.skinWeights[l],1<P?n.skinWeights[l+1]:0,2<P?n.skinWeights[l+2]:0,3<P?n.skinWeights[l+3]:0));if(n.skinIndices)for(l=0,h=n.skinIndices.length;l<h;l+=P)i.skinIndices.push(new E(n.skinIndices[l],1<P?n.skinIndices[l+1]:0,2<P?n.skinIndices[l+2]:0,3<P?n.skinIndices[l+3]:0));if(i.bones=n.bones,i.bones&&0<i.bones.length&&(i.skinWeights.length!==i.skinIndices.length||i.skinIndices.length!==i.vertices.length)&&console.warn("When skinning, number of vertices ("+i.vertices.length+"), skinIndices ("+i.skinIndices.length+"), and skinWeights ("+i.skinWeights.length+") should match."),l=t,h=l.scale,l.morphTargets!==void 0)for(n=0,P=l.morphTargets.length;n<P;n++)for(i.morphTargets[n]={},i.morphTargets[n].name=l.morphTargets[n].name,i.morphTargets[n].vertices=[],f=i.morphTargets[n].vertices,v=l.morphTargets[n].vertices,S=0,c=v.length;S<c;S+=3)y=new m,y.x=v[S]*h,y.y=v[S+1]*h,y.z=v[S+2]*h,f.push(y);if(l.morphColors!==void 0&&0<l.morphColors.length)for(console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.'),h=i.faces,l=l.morphColors[0].colors,n=0,P=h.length;n<P;n++)h[n].color.fromArray(l,3*n);for(l=t,n=[],P=[],l.animation!==void 0&&P.push(l.animation),l.animations!==void 0&&(l.animations.length?P=P.concat(l.animations):P.push(l.animations)),l=0;l<P.length;l++)(h=rr.parseAnimation(P[l],i.bones))&&n.push(h);return i.morphTargets&&(P=rr.CreateClipsFromMorphTargetSequences(i.morphTargets,10),n=n.concat(P)),0<n.length&&(i.animations=n),i.computeFaceNormals(),i.computeBoundingSphere(),t.materials===void 0||t.materials.length===0?{geometry:i}:(t=ro.prototype.initMaterials(t.materials,this.resourcePath||e,this.crossOrigin),{geometry:i,materials:t})}}()}),Object.assign(oa.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var o=this,s=this.path===void 0?es.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||s,s=new At(o.manager),s.setPath(this.path),s.load(t,function(l){var h=null;try{h=JSON.parse(l)}catch(c){n!==void 0&&n(c),console.error("THREE:ObjectLoader: Can't parse "+t+".",c.message);return}l=h.metadata,l===void 0||l.type===void 0||l.type.toLowerCase()==="geometry"?console.error("THREE.ObjectLoader: Can't load "+t+". Use THREE.JSONLoader instead."):o.parse(h,e)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(t,e){var i=this.parseShape(t.shapes);i=this.parseGeometries(t.geometries,i);var n=this.parseImages(t.images,function(){e!==void 0&&e(o)});n=this.parseTextures(t.textures,n),n=this.parseMaterials(t.materials,n);var o=this.parseObject(t.object,i,n);return t.animations&&(o.animations=this.parseAnimations(t.animations)),t.images!==void 0&&t.images.length!==0||e===void 0||e(o),o},parseShape:function(t){var e={};if(t!==void 0)for(var i=0,n=t.length;i<n;i++){var o=new Hn().fromJSON(t[i]);e[o.uuid]=o}return e},parseGeometries:function(t,e){var i={};if(t!==void 0)for(var n=new Jo,o=new sl,s=0,l=t.length;s<l;s++){var h=t[s];switch(h.type){case"PlaneGeometry":case"PlaneBufferGeometry":var c=new fn[h.type](h.width,h.height,h.widthSegments,h.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":c=new fn[h.type](h.width,h.height,h.depth,h.widthSegments,h.heightSegments,h.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":c=new fn[h.type](h.radius,h.segments,h.thetaStart,h.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":c=new fn[h.type](h.radiusTop,h.radiusBottom,h.height,h.radialSegments,h.heightSegments,h.openEnded,h.thetaStart,h.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":c=new fn[h.type](h.radius,h.height,h.radialSegments,h.heightSegments,h.openEnded,h.thetaStart,h.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":c=new fn[h.type](h.radius,h.widthSegments,h.heightSegments,h.phiStart,h.phiLength,h.thetaStart,h.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":c=new fn[h.type](h.radius,h.detail);break;case"RingGeometry":case"RingBufferGeometry":c=new fn[h.type](h.innerRadius,h.outerRadius,h.thetaSegments,h.phiSegments,h.thetaStart,h.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":c=new fn[h.type](h.radius,h.tube,h.radialSegments,h.tubularSegments,h.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":c=new fn[h.type](h.radius,h.tube,h.tubularSegments,h.radialSegments,h.p,h.q);break;case"LatheGeometry":case"LatheBufferGeometry":c=new fn[h.type](h.points,h.segments,h.phiStart,h.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":c=new fn[h.type](h.vertices,h.indices,h.radius,h.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":c=[];for(var f=0,v=h.shapes.length;f<v;f++){var y=e[h.shapes[f]];c.push(y)}c=new fn[h.type](c,h.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(c=[],f=0,v=h.shapes.length;f<v;f++)y=e[h.shapes[f]],c.push(y);f=h.options.extrudePath,f!==void 0&&(h.options.extrudePath=new Wa[f.type]().fromJSON(f)),c=new fn[h.type](c,h.options);break;case"BufferGeometry":c=o.parse(h);break;case"Geometry":c=n.parse(h,this.resourcePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+h.type+'"');continue}c.uuid=h.uuid,h.name!==void 0&&(c.name=h.name),c.isBufferGeometry===!0&&h.userData!==void 0&&(c.userData=h.userData),i[h.uuid]=c}return i},parseMaterials:function(t,e){var i={},n={};if(t!==void 0){var o=new ka;o.setTextures(e),e=0;for(var s=t.length;e<s;e++){var l=t[e];if(l.type==="MultiMaterial"){for(var h=[],c=0;c<l.materials.length;c++){var f=l.materials[c];i[f.uuid]===void 0&&(i[f.uuid]=o.parse(f)),h.push(i[f.uuid])}n[l.uuid]=h}else n[l.uuid]=o.parse(l),i[l.uuid]=n[l.uuid]}}return n},parseAnimations:function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],o=rr.parse(n);n.uuid!==void 0&&(o.uuid=n.uuid),e.push(o)}return e},parseImages:function(t,e){function i(S){return n.manager.itemStart(S),s.load(S,function(){n.manager.itemEnd(S)},void 0,function(){n.manager.itemError(S),n.manager.itemEnd(S)})}var n=this,o={};if(t!==void 0&&0<t.length){e=new wo(e);var s=new ai(e);s.setCrossOrigin(this.crossOrigin),e=0;for(var l=t.length;e<l;e++){var h=t[e],c=h.url;if(Array.isArray(c)){o[h.uuid]=[];for(var f=0,v=c.length;f<v;f++){var y=c[f];y=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(y)?y:n.resourcePath+y,o[h.uuid].push(i(y))}}else y=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(h.url)?h.url:n.resourcePath+h.url,o[h.uuid]=i(y)}}return o},parseTextures:function(t,e){function i(c,f){return typeof c=="number"?c:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",c),f[c])}var n={};if(t!==void 0)for(var o=0,s=t.length;o<s;o++){var l=t[o];l.image===void 0&&console.warn('THREE.ObjectLoader: No "image" specified for',l.uuid),e[l.image]===void 0&&console.warn("THREE.ObjectLoader: Undefined image",l.image);var h=Array.isArray(e[l.image])?new w(e[l.image]):new O(e[l.image]);h.needsUpdate=!0,h.uuid=l.uuid,l.name!==void 0&&(h.name=l.name),l.mapping!==void 0&&(h.mapping=i(l.mapping,Yl)),l.offset!==void 0&&h.offset.fromArray(l.offset),l.repeat!==void 0&&h.repeat.fromArray(l.repeat),l.center!==void 0&&h.center.fromArray(l.center),l.rotation!==void 0&&(h.rotation=l.rotation),l.wrap!==void 0&&(h.wrapS=i(l.wrap[0],kn),h.wrapT=i(l.wrap[1],kn)),l.format!==void 0&&(h.format=l.format),l.minFilter!==void 0&&(h.minFilter=i(l.minFilter,Xa)),l.magFilter!==void 0&&(h.magFilter=i(l.magFilter,Xa)),l.anisotropy!==void 0&&(h.anisotropy=l.anisotropy),l.flipY!==void 0&&(h.flipY=l.flipY),n[l.uuid]=h}return n},parseObject:function(t,e,i){function n(f){return e[f]===void 0&&console.warn("THREE.ObjectLoader: Undefined geometry",f),e[f]}function o(f){if(f!==void 0){if(Array.isArray(f)){for(var v=[],y=0,S=f.length;y<S;y++){var P=f[y];i[P]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",P),v.push(i[P])}return v}return i[f]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",f),i[f]}}switch(t.type){case"Scene":var s=new zn;t.background!==void 0&&Number.isInteger(t.background)&&(s.background=new A(t.background)),t.fog!==void 0&&(t.fog.type==="Fog"?s.fog=new vn(t.fog.color,t.fog.near,t.fog.far):t.fog.type==="FogExp2"&&(s.fog=new Le(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":s=new ye(t.fov,t.aspect,t.near,t.far),t.focus!==void 0&&(s.focus=t.focus),t.zoom!==void 0&&(s.zoom=t.zoom),t.filmGauge!==void 0&&(s.filmGauge=t.filmGauge),t.filmOffset!==void 0&&(s.filmOffset=t.filmOffset),t.view!==void 0&&(s.view=Object.assign({},t.view));break;case"OrthographicCamera":s=new Cs(t.left,t.right,t.top,t.bottom,t.near,t.far),t.zoom!==void 0&&(s.zoom=t.zoom),t.view!==void 0&&(s.view=Object.assign({},t.view));break;case"AmbientLight":s=new Zo(t.color,t.intensity);break;case"DirectionalLight":s=new jr(t.color,t.intensity);break;case"PointLight":s=new Yo(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":s=new Na(t.color,t.intensity,t.width,t.height);break;case"SpotLight":s=new ra(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":s=new ia(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":s=n(t.geometry);var l=o(t.material);s=s.bones&&0<s.bones.length?new Ui(s,l):new di(s,l);break;case"LOD":s=new tn;break;case"Line":s=new Vi(n(t.geometry),o(t.material),t.mode);break;case"LineLoop":s=new Br(n(t.geometry),o(t.material));break;case"LineSegments":s=new gi(n(t.geometry),o(t.material));break;case"PointCloud":case"Points":s=new ds(n(t.geometry),o(t.material));break;case"Sprite":s=new Qi(o(t.material));break;case"Group":s=new ci;break;default:s=new z}if(s.uuid=t.uuid,t.name!==void 0&&(s.name=t.name),t.matrix!==void 0?(s.matrix.fromArray(t.matrix),t.matrixAutoUpdate!==void 0&&(s.matrixAutoUpdate=t.matrixAutoUpdate),s.matrixAutoUpdate&&s.matrix.decompose(s.position,s.quaternion,s.scale)):(t.position!==void 0&&s.position.fromArray(t.position),t.rotation!==void 0&&s.rotation.fromArray(t.rotation),t.quaternion!==void 0&&s.quaternion.fromArray(t.quaternion),t.scale!==void 0&&s.scale.fromArray(t.scale)),t.castShadow!==void 0&&(s.castShadow=t.castShadow),t.receiveShadow!==void 0&&(s.receiveShadow=t.receiveShadow),t.shadow&&(t.shadow.bias!==void 0&&(s.shadow.bias=t.shadow.bias),t.shadow.radius!==void 0&&(s.shadow.radius=t.shadow.radius),t.shadow.mapSize!==void 0&&s.shadow.mapSize.fromArray(t.shadow.mapSize),t.shadow.camera!==void 0&&(s.shadow.camera=this.parseObject(t.shadow.camera))),t.visible!==void 0&&(s.visible=t.visible),t.frustumCulled!==void 0&&(s.frustumCulled=t.frustumCulled),t.renderOrder!==void 0&&(s.renderOrder=t.renderOrder),t.userData!==void 0&&(s.userData=t.userData),t.layers!==void 0&&(s.layers.mask=t.layers),t.children!==void 0){l=t.children;for(var h=0;h<l.length;h++)s.add(this.parseObject(l[h],e,i))}if(t.type==="LOD")for(t=t.levels,l=0;l<t.length;l++){h=t[l];var c=s.getObjectByProperty("uuid",h.object);c!==void 0&&s.addLevel(c,h.distance)}return s}});var Yl={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},kn={RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},Xa={NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008};al.prototype={constructor:al,setOptions:function(t){return this.options=t,this},load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var o=this,s=qr.get(t);if(s!==void 0)return o.manager.itemStart(t),setTimeout(function(){e&&e(s),o.manager.itemEnd(t)},0),s;fetch(t).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,o.options)}).then(function(l){qr.add(t,l),e&&e(l),o.manager.itemEnd(t)}).catch(function(l){n&&n(l),o.manager.itemError(t),o.manager.itemEnd(t)})},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(Ua.prototype,{moveTo:function(t,e){this.currentPath=new Kn,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,i,n){this.currentPath.quadraticCurveTo(t,e,i,n)},bezierCurveTo:function(t,e,i,n,o,s){this.currentPath.bezierCurveTo(t,e,i,n,o,s)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function i(et){for(var _t=[],mt=0,bt=et.length;mt<bt;mt++){var xt=et[mt],Vt=new Hn;Vt.curves=xt.curves,_t.push(Vt)}return _t}function n(et,_t){for(var mt=_t.length,bt=!1,xt=mt-1,Vt=0;Vt<mt;xt=Vt++){var V=_t[xt],it=_t[Vt],It=it.x-V.x,ee=it.y-V.y;if(Math.abs(ee)>Number.EPSILON){if(0>ee&&(V=_t[Vt],It=-It,it=_t[xt],ee=-ee),!(et.y<V.y||et.y>it.y))if(et.y===V.y){if(et.x===V.x)return!0}else{if(xt=ee*(et.x-V.x)-It*(et.y-V.y),xt===0)return!0;0>xt||(bt=!bt)}}else if(et.y===V.y&&(it.x<=et.x&&et.x<=V.x||V.x<=et.x&&et.x<=it.x))return!0}return bt}var o=Xr.isClockWise,s=this.subPaths;if(s.length===0)return[];if(e===!0)return i(s);if(e=[],s.length===1){var l=s[0],h=new Hn;return h.curves=l.curves,e.push(h),e}var c=!o(s[0].getPoints());c=t?!c:c,h=[];var f=[],v=[],y=0;f[y]=void 0,v[y]=[];for(var S=0,P=s.length;S<P;S++){l=s[S];var N=l.getPoints(),j=o(N);(j=t?!j:j)?(!c&&f[y]&&y++,f[y]={s:new Hn,p:N},f[y].s.curves=l.curves,c&&y++,v[y]=[]):v[y].push({h:l,p:N[0]})}if(!f[0])return i(s);if(1<f.length){for(S=!1,t=[],o=0,s=f.length;o<s;o++)h[o]=[];for(o=0,s=f.length;o<s;o++)for(l=v[o],j=0;j<l.length;j++){for(c=l[j],y=!0,N=0;N<f.length;N++)n(c.p,f[N].p)&&(o!==N&&t.push({froms:o,tos:N,hole:j}),y?(y=!1,h[N].push(c)):S=!0);y&&h[o].push(c)}0<t.length&&(S||(v=h))}for(S=0,o=f.length;S<o;S++)for(h=f[S].s,e.push(h),t=v[S],s=0,l=t.length;s<l;s++)h.holes.push(t[s].h);return e}}),Object.assign(ll.prototype,{isFont:!0,generateShapes:function(t,e){e===void 0&&(e=100);var i=[],n=e;e=this.data;var o=Array.from?Array.from(t):String(t).split("");n/=e.resolution;var s=(e.boundingBox.yMax-e.boundingBox.yMin+e.underlineThickness)*n;t=[];for(var l=0,h=0,c=0;c<o.length;c++){var f=o[c];if(f===`
|
|
2571
|
-
`)l=0,h-=s;else{var v=n,y=l,S=h;if(f=e.glyphs[f]||e.glyphs["?"]){var P=new Ua;if(f.o)for(var N=f._cachedOutline||(f._cachedOutline=f.o.split(" ")),j=0,et=N.length;j<et;)switch(N[j++]){case"m":var _t=N[j++]*v+y,mt=N[j++]*v+S;P.moveTo(_t,mt);break;case"l":_t=N[j++]*v+y,mt=N[j++]*v+S,P.lineTo(_t,mt);break;case"q":var bt=N[j++]*v+y,xt=N[j++]*v+S,Vt=N[j++]*v+y,V=N[j++]*v+S;P.quadraticCurveTo(Vt,V,bt,xt);break;case"b":bt=N[j++]*v+y,xt=N[j++]*v+S,Vt=N[j++]*v+y,V=N[j++]*v+S,_t=N[j++]*v+y,mt=N[j++]*v+S,P.bezierCurveTo(Vt,V,_t,mt,bt,xt)}v={offsetX:f.ha*v,path:P}}else v=void 0;l+=v.offsetX,t.push(v.path)}}for(e=0,o=t.length;e<o;e++)Array.prototype.push.apply(i,t[e].toShapes());return i}}),Object.assign(kl.prototype,{load:function(t,e,i,n){var o=this,s=new At(this.manager);s.setPath(this.path),s.load(t,function(l){try{var h=JSON.parse(l)}catch{console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),h=JSON.parse(l.substring(65,l.length-2))}l=o.parse(h),e&&e(l)},i,n)},parse:function(t){return new ll(t)},setPath:function(t){return this.path=t,this}});var qa,_l={getContext:function(){return qa===void 0&&(qa=new(window.AudioContext||window.webkitAudioContext)),qa},setContext:function(t){qa=t}};Object.assign(cn.prototype,{load:function(t,e,i,n){var o=new At(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.load(t,function(s){s=s.slice(0),_l.getContext().decodeAudioData(s,function(l){e(l)})},i,n)},setPath:function(t){return this.path=t,this}}),Object.assign(Dn.prototype,{update:function(){var t,e,i,n,o,s,l,h,c=new J,f=new J;return function(v){if(t!==this||e!==v.focus||i!==v.fov||n!==v.aspect*this.aspect||o!==v.near||s!==v.far||l!==v.zoom||h!==this.eyeSep){t=this,e=v.focus,i=v.fov,n=v.aspect*this.aspect,o=v.near,s=v.far,l=v.zoom;var y=v.projectionMatrix.clone();h=this.eyeSep/2;var S=h*o/e,P=o*Math.tan(pi.DEG2RAD*i*.5)/l;f.elements[12]=-h,c.elements[12]=h;var N=-P*n+S,j=P*n+S;y.elements[0]=2*o/(j-N),y.elements[8]=(j+N)/(j-N),this.cameraL.projectionMatrix.copy(y),N=-P*n-S,j=P*n-S,y.elements[0]=2*o/(j-N),y.elements[8]=(j+N)/(j-N),this.cameraR.projectionMatrix.copy(y)}this.cameraL.matrixWorld.copy(v.matrixWorld).multiply(f),this.cameraR.matrixWorld.copy(v.matrixWorld).multiply(c)}}()}),sa.prototype=Object.create(z.prototype),sa.prototype.constructor=sa,Object.assign(hl.prototype,{start:function(){this.oldTime=this.startTime=(typeof performance>"u"?Date:performance).now(),this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.autoStart=this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=(typeof performance>"u"?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}),Fa.prototype=Object.assign(Object.create(z.prototype),{constructor:Fa,getInput:function(){return this.gain},removeFilter:function(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(t){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this},updateMatrixWorld:function(){var t=new m,e=new G,i=new m,n=new m,o=new hl;return function(s){z.prototype.updateMatrixWorld.call(this,s),s=this.context.listener;var l=this.up;if(this.timeDelta=o.getDelta(),this.matrixWorld.decompose(t,e,i),n.set(0,0,-1).applyQuaternion(e),s.positionX){var h=this.context.currentTime+this.timeDelta;s.positionX.linearRampToValueAtTime(t.x,h),s.positionY.linearRampToValueAtTime(t.y,h),s.positionZ.linearRampToValueAtTime(t.z,h),s.forwardX.linearRampToValueAtTime(n.x,h),s.forwardY.linearRampToValueAtTime(n.y,h),s.forwardZ.linearRampToValueAtTime(n.z,h),s.upX.linearRampToValueAtTime(l.x,h),s.upY.linearRampToValueAtTime(l.y,h),s.upZ.linearRampToValueAtTime(l.z,h)}else s.setPosition(t.x,t.y,t.z),s.setOrientation(n.x,n.y,n.z,l.x,l.y,l.z)}}()}),Ps.prototype=Object.assign(Object.create(z.prototype),{constructor:Ps,getOutput:function(){return this.gain},setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setMediaElementSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this},setBuffer:function(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(this.isPlaying===!0)console.warn("THREE.Audio: Audio is already playing.");else if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else{var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),t.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.connect()}},pause:function(){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.isPlaying===!0&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this},stop:function(){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t||(t=[]),this.isPlaying===!0?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.playbackRate=t,this.isPlaying===!0&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return this.hasPlaybackControl===!1?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(t){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.loop=t,this.isPlaying===!0&&(this.source.loop=this.loop),this},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),aa.prototype=Object.assign(Object.create(Ps.prototype),{constructor:aa,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){return this.panner.refDistance=t,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){return this.panner.rolloffFactor=t,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){return this.panner.distanceModel=t,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){return this.panner.maxDistance=t,this},setDirectionalCone:function(t,e,i){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=i,this},updateMatrixWorld:function(){var t=new m,e=new G,i=new m,n=new m;return function(o){if(z.prototype.updateMatrixWorld.call(this,o),o=this.panner,this.matrixWorld.decompose(t,e,i),n.set(0,0,1).applyQuaternion(e),o.positionX){var s=this.context.currentTime+this.listener.timeDelta;o.positionX.linearRampToValueAtTime(t.x,s),o.positionY.linearRampToValueAtTime(t.y,s),o.positionZ.linearRampToValueAtTime(t.z,s),o.orientationX.linearRampToValueAtTime(n.x,s),o.orientationY.linearRampToValueAtTime(n.y,s),o.orientationZ.linearRampToValueAtTime(n.z,s)}else o.setPosition(t.x,t.y,t.z),o.setOrientation(n.x,n.y,n.z)}}()}),Object.assign($o.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),i=0;i<e.length;i++)t+=e[i];return t/e.length}}),Object.assign(la.prototype,{accumulate:function(t,e){var i=this.buffer,n=this.valueSize;t=t*n+n;var o=this.cumulativeWeight;if(o===0){for(o=0;o!==n;++o)i[t+o]=i[o];o=e}else o+=e,this._mixBufferRegion(i,t,0,e/o,n);this.cumulativeWeight=o},apply:function(t){var e=this.valueSize,i=this.buffer;t=t*e+e;var n=this.cumulativeWeight,o=this.binding;this.cumulativeWeight=0,1>n&&this._mixBufferRegion(i,t,3*e,1-n,e),n=e;for(var s=e+e;n!==s;++n)if(i[n]!==i[n+e]){o.setValue(i,t);break}},saveOriginalState:function(){var t=this.buffer,e=this.valueSize,i=3*e;this.binding.getValue(t,i);for(var n=e;n!==i;++n)t[n]=t[i+n%e];this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_select:function(t,e,i,n,o){if(.5<=n)for(n=0;n!==o;++n)t[e+n]=t[i+n]},_slerp:function(t,e,i,n){G.slerpFlat(t,e,t,e,t,i,n)},_lerp:function(t,e,i,n,o){for(var s=1-n,l=0;l!==o;++l){var h=e+l;t[h]=t[h]*s+t[i+l]*n}}}),Object.assign(Ko.prototype,{getValue:function(t,e){this.bind();var i=this._bindings[this._targetGroup.nCachedObjects_];i!==void 0&&i.getValue(t,e)},setValue:function(t,e){for(var i=this._bindings,n=this._targetGroup.nCachedObjects_,o=i.length;n!==o;++n)i[n].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].unbind()}}),Object.assign(yn,{Composite:Ko,create:function(t,e,i){return t&&t.isAnimationObjectGroup?new yn.Composite(t,e,i):new yn(t,e,i)},sanitizeNodeName:function(){var t=/[\[\]\.:\/]/g;return function(e){return e.replace(/\s/g,"_").replace(t,"")}}(),parseTrackName:function(){var t="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",e=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]");t=/(WCOD+)?/.source.replace("WCOD",t);var i=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),n=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),o=new RegExp("^"+e+t+i+n+"$"),s=["material","materials","bones"];return function(l){var h=o.exec(l);if(!h)throw Error("PropertyBinding: Cannot parse trackName: "+l);h={nodeName:h[2],objectName:h[3],objectIndex:h[4],propertyName:h[5],propertyIndex:h[6]};var c=h.nodeName&&h.nodeName.lastIndexOf(".");if(c!==void 0&&c!==-1){var f=h.nodeName.substring(c+1);s.indexOf(f)!==-1&&(h.nodeName=h.nodeName.substring(0,c),h.objectName=f)}if(h.propertyName===null||h.propertyName.length===0)throw Error("PropertyBinding: can not parse propertyName from trackName: "+l);return h}}(),findNode:function(t,e){if(!e||e===""||e==="root"||e==="."||e===-1||e===t.name||e===t.uuid)return t;if(t.skeleton){var i=t.skeleton.getBoneByName(e);if(i!==void 0)return i}if(t.children){var n=function(o){for(var s=0;s<o.length;s++){var l=o[s];if(l.name===e||l.uuid===e||(l=n(l.children)))return l}return null};if(t=n(t.children))return t}return null}}),Object.assign(yn.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var i=this.resolvedProperty,n=0,o=i.length;n!==o;++n)t[e++]=i[n]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var i=this.resolvedProperty,n=0,o=i.length;n!==o;++n)i[n]=t[e++]},function(t,e){for(var i=this.resolvedProperty,n=0,o=i.length;n!==o;++n)i[n]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var i=this.resolvedProperty,n=0,o=i.length;n!==o;++n)i[n]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,i=e.objectName,n=e.propertyName,o=e.propertyIndex;if(t||(this.node=t=yn.findNode(this.rootNode,e.nodeName)||this.rootNode),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(i){var s=e.objectIndex;switch(i){case"materials":if(!t.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}t=t.material.materials;break;case"bones":if(!t.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}for(t=t.skeleton.bones,i=0;i<t.length;i++)if(t[i].name===s){s=i;break}break;default:if(t[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}t=t[i]}if(s!==void 0){if(t[s]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);return}t=t[s]}}if(s=t[n],s===void 0)console.error("THREE.PropertyBinding: Trying to update property for track: "+e.nodeName+"."+n+" but it wasn't found.",t);else{if(e=this.Versioning.None,this.targetObject=t,t.needsUpdate!==void 0?e=this.Versioning.NeedsUpdate:t.matrixWorldNeedsUpdate!==void 0&&(e=this.Versioning.MatrixWorldNeedsUpdate),i=this.BindingType.Direct,o!==void 0){if(n==="morphTargetInfluences"){if(!t.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(t.geometry.isBufferGeometry){if(!t.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}for(i=0;i<this.node.geometry.morphAttributes.position.length;i++)if(t.geometry.morphAttributes.position[i].name===o){o=i;break}}else{if(!t.geometry.morphTargets){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);return}for(i=0;i<this.node.geometry.morphTargets.length;i++)if(t.geometry.morphTargets[i].name===o){o=i;break}}}i=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=o}else s.fromArray!==void 0&&s.toArray!==void 0?(i=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(i=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=n;this.getValue=this.GetterByBindingType[i],this.setValue=this.SetterByBindingTypeAndVersioning[i][e]}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(yn.prototype,{_getValue_unbound:yn.prototype.getValue,_setValue_unbound:yn.prototype.setValue}),Object.assign(Ls.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,o=this._paths,s=this._parsedPaths,l=this._bindings,h=l.length,c=void 0,f=0,v=arguments.length;f!==v;++f){var y=arguments[f],S=y.uuid,P=n[S];if(P===void 0){P=e++,n[S]=P,t.push(y),S=0;for(var N=h;S!==N;++S)l[S].push(new yn(y,o[S],s[S]))}else if(P<i){c=t[P];var j=--i;for(N=t[j],n[N.uuid]=P,t[P]=N,n[S]=j,t[j]=y,S=0,N=h;S!==N;++S){var et=l[S],_t=et[P];et[P]=et[j],_t===void 0&&(_t=new yn(y,o[S],s[S])),et[j]=_t}}else t[P]!==c&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=i},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,i=this._indicesByUUID,n=this._bindings,o=n.length,s=0,l=arguments.length;s!==l;++s){var h=arguments[s],c=h.uuid,f=i[c];if(f!==void 0&&f>=e){var v=e++,y=t[v];for(i[y.uuid]=f,t[f]=y,i[c]=v,t[v]=h,h=0,c=o;h!==c;++h){y=n[h];var S=y[f];y[f]=y[v],y[v]=S}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,o=this._bindings,s=o.length,l=0,h=arguments.length;l!==h;++l){var c=arguments[l].uuid,f=n[c];if(f!==void 0)if(delete n[c],f<i){c=--i;var v=t[c],y=--e,S=t[y];for(n[v.uuid]=f,t[f]=v,n[S.uuid]=c,t[c]=S,t.pop(),v=0,S=s;v!==S;++v){var P=o[v],N=P[y];P[f]=P[c],P[c]=N,P.pop()}}else for(y=--e,S=t[y],n[S.uuid]=f,t[f]=S,t.pop(),v=0,S=s;v!==S;++v)P=o[v],P[f]=P[y],P.pop()}this.nCachedObjects_=i},subscribe_:function(t,e){var i=this._bindingsIndicesByPath,n=i[t],o=this._bindings;if(n!==void 0)return o[n];var s=this._paths,l=this._parsedPaths,h=this._objects,c=this.nCachedObjects_,f=Array(h.length);for(n=o.length,i[t]=n,s.push(t),l.push(e),o.push(f),i=c,n=h.length;i!==n;++i)f[i]=new yn(h[i],t,e);return f},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,i=e[t];if(i!==void 0){var n=this._paths,o=this._parsedPaths,s=this._bindings,l=s.length-1,h=s[l];e[t[l]]=i,s[i]=h,s.pop(),o[i]=o[l],o.pop(),n[i]=n[l],n.pop()}}}),Object.assign(ha.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,i){if(t.fadeOut(e),this.fadeIn(e),i){i=this._clip.duration;var n=t._clip.duration,o=i/n;t.warp(1,n/i,e),this.warp(o,1,e)}return this},crossFadeTo:function(t,e,i){return t.crossFadeFrom(this,e,i)},stopFading:function(){var t=this._weightInterpolant;return t!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,i){var n=this._mixer,o=n.time,s=this._timeScaleInterpolant,l=this.timeScale;return s===null&&(this._timeScaleInterpolant=s=n._lendControlInterpolant()),n=s.parameterPositions,s=s.sampleValues,n[0]=o,n[1]=o+i,s[0]=t/l,s[1]=e/l,this},stopWarping:function(){var t=this._timeScaleInterpolant;return t!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,i,n){if(this.enabled){var o=this._startTime;if(o!==null){if(e=(t-o)*i,0>e||i===0)return;this._startTime=null,e*=i}if(e*=this._updateTimeScale(t),i=this._updateTime(e),t=this._updateWeight(t),0<t){e=this._interpolants,o=this._propertyBindings;for(var s=0,l=e.length;s!==l;++s)e[s].evaluate(i),o[s].accumulate(n,t)}}else this._updateWeight(t)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var i=this._weightInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopFading(),n===0&&(this.enabled=!1))}}return this._effectiveWeight=e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var i=this._timeScaleInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopWarping(),e===0?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e},_updateTime:function(t){var e=this.time+t,i=this._clip.duration,n=this.loop,o=this._loopCount,s=n===2202;if(t===0)return o===-1?e:s&&(o&1)===1?i-e:e;if(n===2200)t:{if(o===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1)),e>=i)e=i;else if(0>e)e=0;else break t;this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:0>t?-1:1})}else{if(o===-1&&(0<=t?(o=0,this._setEndings(!0,this.repetitions===0,s)):this._setEndings(this.repetitions===0,!0,s)),e>=i||0>e){n=Math.floor(e/i),e-=i*n,o+=Math.abs(n);var l=this.repetitions-o;0>=l?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=0<t?i:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<t?1:-1})):(l===1?(t=0>t,this._setEndings(t,!t,s)):this._setEndings(!1,!1,s),this._loopCount=o,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n}))}if(s&&(o&1)===1)return this.time=e,i-e}return this.time=e},_setEndings:function(t,e,i){var n=this._interpolantSettings;i?(n.endingStart=2401,n.endingEnd=2401):(n.endingStart=t?this.zeroSlopeAtStart?2401:2400:2402,n.endingEnd=e?this.zeroSlopeAtEnd?2401:2400:2402)},_scheduleFading:function(t,e,i){var n=this._mixer,o=n.time,s=this._weightInterpolant;return s===null&&(this._weightInterpolant=s=n._lendControlInterpolant()),n=s.parameterPositions,s=s.sampleValues,n[0]=o,s[0]=e,n[1]=o+t,s[1]=i,this}}),So.prototype=Object.assign(Object.create($.prototype),{constructor:So,_bindAction:function(t,e){var i=t._localRoot||this._root,n=t._clip.tracks,o=n.length,s=t._propertyBindings;t=t._interpolants;var l=i.uuid,h=this._bindingsByRootAndName,c=h[l];for(c===void 0&&(c={},h[l]=c),h=0;h!==o;++h){var f=n[h],v=f.name,y=c[v];if(y===void 0){if(y=s[h],y!==void 0){y._cacheIndex===null&&(++y.referenceCount,this._addInactiveBinding(y,l,v));continue}y=new la(yn.create(i,v,e&&e._propertyBindings[h].binding.parsedPath),f.ValueTypeName,f.getValueSize()),++y.referenceCount,this._addInactiveBinding(y,l,v)}s[h]=y,t[h].resultBuffer=y.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(t._cacheIndex===null){var e=(t._localRoot||this._root).uuid,i=t._clip.uuid,n=this._actionsByClip[i];this._bindAction(t,n&&n.knownActions[0]),this._addInactiveAction(t,i,e)}for(e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var o=e[i];o.useCount++===0&&(this._lendBinding(o),o.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var o=e[i];--o.useCount===0&&(o.restoreOriginalState(),this._takeBackBinding(o))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){return t=t._cacheIndex,t!==null&&t<this._nActiveActions},_addInactiveAction:function(t,e,i){var n=this._actions,o=this._actionsByClip,s=o[e];s===void 0?(s={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,o[e]=s):(e=s.knownActions,t._byClipCacheIndex=e.length,e.push(t)),t._cacheIndex=n.length,n.push(t),s.actionByRoot[i]=t},_removeInactiveAction:function(t){var e=this._actions,i=e[e.length-1],n=t._cacheIndex;i._cacheIndex=n,e[n]=i,e.pop(),t._cacheIndex=null,e=t._clip.uuid,i=this._actionsByClip,n=i[e];var o=n.knownActions,s=o[o.length-1],l=t._byClipCacheIndex;s._byClipCacheIndex=l,o[l]=s,o.pop(),t._byClipCacheIndex=null,delete n.actionByRoot[(t._localRoot||this._root).uuid],o.length===0&&delete i[e],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){t=t._propertyBindings;for(var e=0,i=t.length;e!==i;++e){var n=t[e];--n.referenceCount===0&&this._removeInactiveBinding(n)}},_lendAction:function(t){var e=this._actions,i=t._cacheIndex,n=this._nActiveActions++,o=e[n];t._cacheIndex=n,e[n]=t,o._cacheIndex=i,e[i]=o},_takeBackAction:function(t){var e=this._actions,i=t._cacheIndex,n=--this._nActiveActions,o=e[n];t._cacheIndex=n,e[n]=t,o._cacheIndex=i,e[i]=o},_addInactiveBinding:function(t,e,i){var n=this._bindingsByRootAndName,o=n[e],s=this._bindings;o===void 0&&(o={},n[e]=o),o[i]=t,t._cacheIndex=s.length,s.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,i=t.binding,n=i.rootNode.uuid;i=i.path;var o=this._bindingsByRootAndName,s=o[n],l=e[e.length-1];t=t._cacheIndex,l._cacheIndex=t,e[t]=l,e.pop(),delete s[i];t:{for(var h in s)break t;delete o[n]}},_lendBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=this._nActiveBindings++,o=e[n];t._cacheIndex=n,e[n]=t,o._cacheIndex=i,e[i]=o},_takeBackBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=--this._nActiveBindings,o=e[n];t._cacheIndex=n,e[n]=t,o._cacheIndex=i,e[i]=o},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,i=t[e];return i===void 0&&(i=new dr(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),i.__cacheIndex=e,t[e]=i),i},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,i=t.__cacheIndex,n=--this._nActiveControlInterpolants,o=e[n];t.__cacheIndex=n,e[n]=t,o.__cacheIndex=i,e[i]=o},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var i=e||this._root,n=i.uuid;i=typeof t=="string"?rr.findByName(i,t):t,t=i!==null?i.uuid:t;var o=this._actionsByClip[t],s=null;if(o!==void 0){if(s=o.actionByRoot[n],s!==void 0)return s;s=o.knownActions[0],i===null&&(i=s._clip)}return i===null?null:(e=new ha(this,i,e),this._bindAction(e,s),this._addInactiveAction(e,t,n),e)},existingAction:function(t,e){var i=e||this._root;return e=i.uuid,i=typeof t=="string"?rr.findByName(i,t):t,t=this._actionsByClip[i?i.uuid:t],t!==void 0&&t.actionByRoot[e]||null},stopAllAction:function(){for(var t=this._actions,e=this._nActiveActions,i=this._bindings,n=this._nActiveBindings,o=this._nActiveBindings=this._nActiveActions=0;o!==e;++o)t[o].reset();for(o=0;o!==n;++o)i[o].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,i=this._nActiveActions,n=this.time+=t,o=Math.sign(t),s=this._accuIndex^=1,l=0;l!==i;++l)e[l]._update(n,t,o,s);for(t=this._bindings,e=this._nActiveBindings,l=0;l!==e;++l)t[l].apply(s);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions;t=t.uuid;var i=this._actionsByClip,n=i[t];if(n!==void 0){n=n.knownActions;for(var o=0,s=n.length;o!==s;++o){var l=n[o];this._deactivateAction(l);var h=l._cacheIndex,c=e[e.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,c._cacheIndex=h,e[h]=c,e.pop(),this._removeInactiveBindingsForAction(l)}delete i[t]}},uncacheRoot:function(t){t=t.uuid;var e=this._actionsByClip;for(n in e){var i=e[n].actionByRoot[t];i!==void 0&&(this._deactivateAction(i),this._removeInactiveAction(i))}var n=this._bindingsByRootAndName[t];if(n!==void 0)for(var o in n)t=n[o],t.restoreOriginalState(),this._removeInactiveBinding(t)},uncacheAction:function(t,e){t=this.existingAction(t,e),t!==null&&(this._deactivateAction(t),this._removeInactiveAction(t))}}),Ga.prototype.clone=function(){return new Ga(this.value.clone===void 0?this.value:this.value.clone())},ul.prototype=Object.assign(Object.create(Ft.prototype),{constructor:ul,isInstancedBufferGeometry:!0,copy:function(t){return Ft.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return new this.constructor().copy(this)}}),cl.prototype=Object.assign(Object.create(Oi.prototype),{constructor:cl,isInstancedInterleavedBuffer:!0,copy:function(t){return Oi.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),fl.prototype=Object.assign(Object.create(ht.prototype),{constructor:fl,isInstancedBufferAttribute:!0,copy:function(t){return ht.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(Ul.prototype,{linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(t,e,i){return i=i||[],Qo(t,this,i,e),i.sort(ua),i},intersectObjects:function(t,e,i){if(i=i||[],Array.isArray(t)===!1)return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),i;for(var n=0,o=t.length;n<o;n++)Qo(t[n],this,i,e);return i.sort(ua),i}}),Object.assign(pl.prototype,{set:function(t,e,i){return this.radius=t,this.phi=e,this.theta=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+e*e+i*i),this.radius===0?this.phi=this.theta=0:(this.theta=Math.atan2(t,i),this.phi=Math.acos(pi.clamp(e/this.radius,-1,1))),this}}),Object.assign(Q.prototype,{set:function(t,e,i){return this.radius=t,this.theta=e,this.y=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+i*i),this.theta=Math.atan2(t,i),this.y=e,this}}),Object.assign(Eo.prototype,{set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new p;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new p),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new p),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new p),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new p),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new p;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(Rs.prototype,{set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},getCenter:function(t){return t===void 0&&(console.warn("THREE.Line3: .getCenter() target is now required"),t=new m),t.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return t===void 0&&(console.warn("THREE.Line3: .delta() target is now required"),t=new m),t.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){return e===void 0&&(console.warn("THREE.Line3: .at() target is now required"),e=new m),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new m,e=new m;return function(i,n){return t.subVectors(i,this.start),e.subVectors(this.end,this.start),i=e.dot(e),i=e.dot(t)/i,n&&(i=pi.clamp(i,0,1)),i}}(),closestPointToPoint:function(t,e,i){return t=this.closestPointToPointParameter(t,e),i===void 0&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),i=new m),this.delta(i).multiplyScalar(t).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}}),Bn.prototype=Object.create(z.prototype),Bn.prototype.constructor=Bn,Bn.prototype.isImmediateRenderObject=!0,_i.prototype=Object.create(gi.prototype),_i.prototype.constructor=_i,_i.prototype.update=function(){var t=new m,e=new m,i=new C;return function(){var n=["a","b","c"];this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var o=this.object.matrixWorld,s=this.geometry.attributes.position,l=this.object.geometry;if(l&&l.isGeometry)for(var h=l.vertices,c=l.faces,f=l=0,v=c.length;f<v;f++)for(var y=c[f],S=0,P=y.vertexNormals.length;S<P;S++){var N=y.vertexNormals[S];t.copy(h[y[n[S]]]).applyMatrix4(o),e.copy(N).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),s.setXYZ(l,t.x,t.y,t.z),l+=1,s.setXYZ(l,e.x,e.y,e.z),l+=1}else if(l&&l.isBufferGeometry)for(n=l.attributes.position,h=l.attributes.normal,S=l=0,P=n.count;S<P;S++)t.set(n.getX(S),n.getY(S),n.getZ(S)).applyMatrix4(o),e.set(h.getX(S),h.getY(S),h.getZ(S)),e.applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),s.setXYZ(l,t.x,t.y,t.z),l+=1,s.setXYZ(l,e.x,e.y,e.z),l+=1;s.needsUpdate=!0}}(),Is.prototype=Object.create(z.prototype),Is.prototype.constructor=Is,Is.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},Is.prototype.update=function(){var t=new m,e=new m;return function(){this.light.updateMatrixWorld();var i=this.light.distance?this.light.distance:1e3,n=i*Math.tan(this.light.angle);this.cone.scale.set(n,n,i),t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(e.sub(t)),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),Os.prototype=Object.create(gi.prototype),Os.prototype.constructor=Os,Os.prototype.updateMatrixWorld=function(){var t=new m,e=new J,i=new J;return function(n){var o=this.bones,s=this.geometry,l=s.getAttribute("position");i.getInverse(this.root.matrixWorld);for(var h=0,c=0;h<o.length;h++){var f=o[h];f.parent&&f.parent.isBone&&(e.multiplyMatrices(i,f.matrixWorld),t.setFromMatrixPosition(e),l.setXYZ(c,t.x,t.y,t.z),e.multiplyMatrices(i,f.parent.matrixWorld),t.setFromMatrixPosition(e),l.setXYZ(c+1,t.x,t.y,t.z),c+=2)}s.getAttribute("position").needsUpdate=!0,z.prototype.updateMatrixWorld.call(this,n)}}(),gr.prototype=Object.create(di.prototype),gr.prototype.constructor=gr,gr.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},gr.prototype.update=function(){this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)},Ds.prototype=Object.create(z.prototype),Ds.prototype.constructor=Ds,Ds.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},Ds.prototype.update=function(){var t=.5*this.light.width,e=.5*this.light.height,i=this.line.geometry.attributes.position,n=i.array;n[0]=t,n[1]=-e,n[2]=0,n[3]=t,n[4]=e,n[5]=0,n[6]=-t,n[7]=e,n[8]=0,n[9]=-t,n[10]=-e,n[11]=0,n[12]=t,n[13]=-e,n[14]=0,i.needsUpdate=!0,this.color!==void 0?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},zs.prototype=Object.create(z.prototype),zs.prototype.constructor=zs,zs.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},zs.prototype.update=function(){var t=new m,e=new A,i=new A;return function(){var n=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{var o=n.geometry.getAttribute("color");e.copy(this.light.color),i.copy(this.light.groundColor);for(var s=0,l=o.count;s<l;s++){var h=s<l/2?e:i;o.setXYZ(s,h.r,h.g,h.b)}o.needsUpdate=!0}n.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),ca.prototype=Object.create(gi.prototype),ca.prototype.constructor=ca,Ha.prototype=Object.create(gi.prototype),Ha.prototype.constructor=Ha,fa.prototype=Object.create(gi.prototype),fa.prototype.constructor=fa,fa.prototype.update=function(){var t=new m,e=new m,i=new C;return function(){this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var n=this.object.matrixWorld,o=this.geometry.attributes.position,s=this.object.geometry,l=s.vertices;s=s.faces;for(var h=0,c=0,f=s.length;c<f;c++){var v=s[c],y=v.normal;t.copy(l[v.a]).add(l[v.b]).add(l[v.c]).divideScalar(3).applyMatrix4(n),e.copy(y).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),o.setXYZ(h,t.x,t.y,t.z),h+=1,o.setXYZ(h,e.x,e.y,e.z),h+=1}o.needsUpdate=!0}}(),Qn.prototype=Object.create(z.prototype),Qn.prototype.constructor=Qn,Qn.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},Qn.prototype.update=function(){var t=new m,e=new m,i=new m;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),i.subVectors(e,t),this.lightPlane.lookAt(i),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(i),this.targetLine.scale.z=i.length()}}(),pa.prototype=Object.create(gi.prototype),pa.prototype.constructor=pa,pa.prototype.update=function(){function t(s,l,h,c){if(n.set(l,h,c).unproject(o),s=i[s],s!==void 0)for(l=e.getAttribute("position"),h=0,c=s.length;h<c;h++)l.setXYZ(s[h],n.x,n.y,n.z)}var e,i,n=new m,o=new Be;return function(){e=this.geometry,i=this.pointMap,o.projectionMatrix.copy(this.camera.projectionMatrix),t("c",0,0,-1),t("t",0,0,1),t("n1",-1,-1,-1),t("n2",1,-1,-1),t("n3",-1,1,-1),t("n4",1,1,-1),t("f1",-1,-1,1),t("f2",1,-1,1),t("f3",-1,1,1),t("f4",1,1,1),t("u1",.7,1.1,-1),t("u2",-.7,1.1,-1),t("u3",0,2,-1),t("cf1",-1,0,1),t("cf2",1,0,1),t("cf3",0,-1,1),t("cf4",0,1,1),t("cn1",-1,0,-1),t("cn2",1,0,-1),t("cn3",0,-1,-1),t("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),oo.prototype=Object.create(gi.prototype),oo.prototype.constructor=oo,oo.prototype.update=function(){var t=new K;return function(e){if(e!==void 0&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),this.object!==void 0&&t.setFromObject(this.object),!t.isEmpty()){e=t.min;var i=t.max,n=this.geometry.attributes.position,o=n.array;o[0]=i.x,o[1]=i.y,o[2]=i.z,o[3]=e.x,o[4]=i.y,o[5]=i.z,o[6]=e.x,o[7]=e.y,o[8]=i.z,o[9]=i.x,o[10]=e.y,o[11]=i.z,o[12]=i.x,o[13]=i.y,o[14]=e.z,o[15]=e.x,o[16]=i.y,o[17]=e.z,o[18]=e.x,o[19]=e.y,o[20]=e.z,o[21]=i.x,o[22]=e.y,o[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),oo.prototype.setFromObject=function(t){return this.object=t,this.update(),this},oo.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.object=t.object,this},oo.prototype.clone=function(){return new this.constructor().copy(this)},da.prototype=Object.create(gi.prototype),da.prototype.constructor=da,da.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),z.prototype.updateMatrixWorld.call(this,t))},ma.prototype=Object.create(Vi.prototype),ma.prototype.constructor=ma,ma.prototype.updateMatrixWorld=function(t){var e=-this.plane.constant;1e-8>Math.abs(e)&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=0>e?1:0,this.lookAt(this.plane.normal),z.prototype.updateMatrixWorld.call(this,t)};var Ya,_a;so.prototype=Object.create(z.prototype),so.prototype.constructor=so,so.prototype.setDirection=function(){var t=new m,e;return function(i){.99999<i.y?this.quaternion.set(0,0,0,1):-.99999>i.y?this.quaternion.set(1,0,0,0):(t.set(i.z,0,-i.x).normalize(),e=Math.acos(i.y),this.quaternion.setFromAxisAngle(t,e))}}(),so.prototype.setLength=function(t,e,i){e===void 0&&(e=.2*t),i===void 0&&(i=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(i,e,i),this.cone.position.y=t,this.cone.updateMatrix()},so.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},so.prototype.copy=function(t){return z.prototype.copy.call(this,t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this},so.prototype.clone=function(){return new this.constructor().copy(this)},or.prototype=Object.create(gi.prototype),or.prototype.constructor=or,Ee.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Ee.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(no.prototype,{createPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getPoints(t),this.createGeometry(t)},createSpacedPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getSpacedPoints(t),this.createGeometry(t)},createGeometry:function(t){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var e=new W,i=0,n=t.length;i<n;i++){var o=t[i];e.vertices.push(new m(o.x,o.y,o.z||0))}return e}}),Object.assign(Kn.prototype,{fromPoints:function(t){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)}}),Gl.prototype=Object.create(Sn.prototype),Hl.prototype=Object.create(Sn.prototype),dl.prototype=Object.create(Sn.prototype),Object.assign(dl.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),ca.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Os.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(ro.prototype,{extractUrlBase:function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),es.extractUrlBase(t)}}),Object.assign(Jo.prototype,{setTexturePath:function(t){return console.warn("THREE.JSONLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(oa.prototype,{setTexturePath:function(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(Eo.prototype,{center:function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},size:function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)}}),Object.assign(K.prototype,{center:function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionSphere:function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},size:function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)}}),Rs.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},Object.assign(pi,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),pi.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),pi.ceilPowerOfTwo(t)}}),Object.assign(C.prototype,{flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},multiplyVector3:function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(J.prototype,{extractPosition:function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},getPosition:function(){var t;return function(){return t===void 0&&(t=new m),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),t.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector4:function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},crossVector:function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(t,e,i,n,o,s){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,n,i,o,s)}}),q.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},G.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Object.assign(ki.prototype,{isIntersectionBox:function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionPlane:function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},isIntersectionSphere:function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(Ie.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},midpoint:function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},normal:function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},plane:function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)}}),Object.assign(Ie,{barycoordFromPoint:function(t,e,i,n,o){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Ie.getBarycoord(t,e,i,n,o)},normal:function(t,e,i,n){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Ie.getNormal(t,e,i,n)}}),Object.assign(Hn.prototype,{extractAllPoints:function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},extrude:function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Qr(this,t)},makeGeometry:function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new to(this,t)}}),Object.assign(p.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(m.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},applyProjection:function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},fromAttribute:function(t,e,i){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(E.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(W.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")}}),Object.assign(z.prototype,{getChildByName:function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")}}),Object.defineProperties(z.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.defineProperties(tn.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(sn.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Object.defineProperty(Ee.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),ye.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),e!==void 0&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties($i.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(ht.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")}}),Object.assign(Ft.prototype,{addIndex:function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},addDrawCall:function(t,e,i){i!==void 0&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")}}),Object.defineProperties(Ft.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.assign(kr.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(Ga.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Zt.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new A}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===1}}}),Object.defineProperties(Er.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(ti.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Object.assign(_e.prototype,{clearTarget:function(t,e,i,n){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,i,n)},animate:function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")}}),Object.defineProperties(_e.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(ve.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(U.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Object.defineProperties(mi.prototype,{standing:{set:function(){console.warn("THREE.WebVRManager: .standing has been removed.")}},userHeight:{set:function(){console.warn("THREE.WebVRManager: .userHeight has been removed.")}}}),Ps.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var e=this;return new cn().load(t,function(i){e.setBuffer(i)}),this},$o.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},sa.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},bo.crossOrigin=void 0,bo.loadTexture=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var o=new ln;return o.setCrossOrigin(this.crossOrigin),t=o.load(t,i,void 0,n),e&&(t.mapping=e),t},bo.loadTextureCube=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var o=new Bi;return o.setCrossOrigin(this.crossOrigin),t=o.load(t,i,void 0,n),e&&(t.mapping=e),t},bo.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},bo.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")},T.WebGLRenderTargetCube=Y,T.WebGLRenderTarget=U,T.WebGLRenderer=_e,T.ShaderLib=Wr,T.UniformsLib=qe,T.UniformsUtils=Cn,T.ShaderChunk=bi,T.FogExp2=Le,T.Fog=vn,T.Scene=zn,T.Sprite=Qi,T.LOD=tn,T.SkinnedMesh=Ui,T.Skeleton=sn,T.Bone=an,T.Mesh=di,T.LineSegments=gi,T.LineLoop=Br,T.Line=Vi,T.Points=ds,T.Group=ci,T.VideoTexture=nl,T.DataTexture=H,T.DataTexture3D=X,T.CompressedTexture=po,T.CubeTexture=w,T.CanvasTexture=Xs,T.DepthTexture=qs,T.Texture=O,T.AnimationLoader=Qt,T.CompressedTextureLoader=Yt,T.DataTextureLoader=Ue,T.CubeTextureLoader=Bi,T.TextureLoader=ln,T.ObjectLoader=oa,T.MaterialLoader=ka,T.BufferGeometryLoader=sl,T.DefaultLoadingManager=Vn,T.LoadingManager=wo,T.JSONLoader=Jo,T.ImageLoader=ai,T.ImageBitmapLoader=al,T.FontLoader=kl,T.FileLoader=At,T.Loader=ro,T.LoaderUtils=es,T.Cache=qr,T.AudioLoader=cn,T.SpotLightShadow=na,T.SpotLight=ra,T.PointLight=Yo,T.RectAreaLight=Na,T.HemisphereLight=ia,T.DirectionalLightShadow=Mo,T.DirectionalLight=jr,T.AmbientLight=Zo,T.LightShadow=Vr,T.Light=$i,T.StereoCamera=Dn,T.PerspectiveCamera=ye,T.OrthographicCamera=Cs,T.CubeCamera=sa,T.ArrayCamera=ke,T.Camera=Be,T.AudioListener=Fa,T.PositionalAudio=aa,T.AudioContext=_l,T.AudioAnalyser=$o,T.Audio=Ps,T.VectorKeyframeTrack=bs,T.StringKeyframeTrack=Ba,T.QuaternionKeyframeTrack=Es,T.NumberKeyframeTrack=br,T.ColorKeyframeTrack=za,T.BooleanKeyframeTrack=Da,T.PropertyMixer=la,T.PropertyBinding=yn,T.KeyframeTrack=On,T.AnimationUtils=Nn,T.AnimationObjectGroup=Ls,T.AnimationMixer=So,T.AnimationClip=rr,T.Uniform=Ga,T.InstancedBufferGeometry=ul,T.BufferGeometry=Ft,T.Geometry=W,T.InterleavedBufferAttribute=Di,T.InstancedInterleavedBuffer=cl,T.InterleavedBuffer=Oi,T.InstancedBufferAttribute=fl,T.Face3=M,T.Object3D=z,T.Raycaster=Ul,T.Layers=F,T.EventDispatcher=$,T.Clock=hl,T.QuaternionLinearInterpolant=qn,T.LinearInterpolant=dr,T.DiscreteInterpolant=qo,T.CubicInterpolant=ea,T.Interpolant=Fn,T.Triangle=Ie,T.Math=pi,T.Spherical=pl,T.Cylindrical=Q,T.Plane=q,T.Frustum=b,T.Sphere=B,T.Ray=ki,T.Matrix4=J,T.Matrix3=C,T.Box3=K,T.Box2=Eo,T.Line3=Rs,T.Euler=x,T.Vector4=E,T.Vector3=m,T.Vector2=p,T.Quaternion=G,T.Color=A,T.ImmediateRenderObject=Bn,T.VertexNormalsHelper=_i,T.SpotLightHelper=Is,T.SkeletonHelper=Os,T.PointLightHelper=gr,T.RectAreaLightHelper=Ds,T.HemisphereLightHelper=zs,T.GridHelper=ca,T.PolarGridHelper=Ha,T.FaceNormalsHelper=fa,T.DirectionalLightHelper=Qn,T.CameraHelper=pa,T.BoxHelper=oo,T.Box3Helper=da,T.PlaneHelper=ma,T.ArrowHelper=so,T.AxesHelper=or,T.Shape=Hn,T.Path=Kn,T.ShapePath=Ua,T.Font=ll,T.CurvePath=no,T.Curve=Ee,T.ImageUtils=bo,T.ShapeUtils=Xr,T.WebGLUtils=He,T.WireframeGeometry=ms,T.ParametricGeometry=Ys,T.ParametricBufferGeometry=gs,T.TetrahedronGeometry=Zs,T.TetrahedronBufferGeometry=vs,T.OctahedronGeometry=Js,T.OctahedronBufferGeometry=Do,T.IcosahedronGeometry=$s,T.IcosahedronBufferGeometry=ys,T.DodecahedronGeometry=_s,T.DodecahedronBufferGeometry=xs,T.PolyhedronGeometry=ji,T.PolyhedronBufferGeometry=xi,T.TubeGeometry=un,T.TubeBufferGeometry=mo,T.TorusKnotGeometry=Sr,T.TorusKnotBufferGeometry=zo,T.TorusGeometry=Bo,T.TorusBufferGeometry=Rn,T.TextGeometry=Qs,T.TextBufferGeometry=ko,T.SphereGeometry=go,T.SphereBufferGeometry=fr,T.RingGeometry=ta,T.RingBufferGeometry=Uo,T.PlaneGeometry=Fe,T.PlaneBufferGeometry=xe,T.LatheGeometry=Ms,T.LatheBufferGeometry=vo,T.ShapeGeometry=to,T.ShapeBufferGeometry=yo,T.ExtrudeGeometry=Qr,T.ExtrudeBufferGeometry=kr,T.EdgesGeometry=_o,T.ConeGeometry=Ss,T.ConeBufferGeometry=In,T.CylinderGeometry=eo,T.CylinderBufferGeometry=io,T.CircleGeometry=Fo,T.CircleBufferGeometry=Ur,T.BoxGeometry=Dt,T.BoxBufferGeometry=kt,T.ShadowMaterial=xo,T.SpriteMaterial=Fi,T.RawShaderMaterial=Go,T.ShaderMaterial=ti,T.PointsMaterial=Ln,T.MeshPhysicalMaterial=Ho,T.MeshStandardMaterial=Fr,T.MeshPhongMaterial=Er,T.MeshToonMaterial=Vo,T.MeshNormalMaterial=jo,T.MeshLambertMaterial=pr,T.MeshDepthMaterial=oe,T.MeshDistanceMaterial=te,T.MeshBasicMaterial=Ge,T.MeshMatcapMaterial=Wo,T.LineDashedMaterial=Xo,T.LineBasicMaterial=zi,T.Material=Zt,T.Float64BufferAttribute=Rt,T.Float32BufferAttribute=Ct,T.Uint32BufferAttribute=Bt,T.Int32BufferAttribute=D,T.Uint16BufferAttribute=Et,T.Int16BufferAttribute=lt,T.Uint8ClampedBufferAttribute=zt,T.Uint8BufferAttribute=gt,T.Int8BufferAttribute=ft,T.BufferAttribute=ht,T.ArcCurve=As,T.CatmullRomCurve3=Sn,T.CubicBezierCurve=Zn,T.CubicBezierCurve3=Ti,T.EllipseCurve=Gn,T.LineCurve=Jn,T.LineCurve3=mr,T.QuadraticBezierCurve=$n,T.QuadraticBezierCurve3=Hr,T.SplineCurve=Ar,T.REVISION="98",T.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2},T.CullFaceNone=0,T.CullFaceBack=1,T.CullFaceFront=2,T.CullFaceFrontBack=3,T.FrontFaceDirectionCW=0,T.FrontFaceDirectionCCW=1,T.BasicShadowMap=0,T.PCFShadowMap=1,T.PCFSoftShadowMap=2,T.FrontSide=0,T.BackSide=1,T.DoubleSide=2,T.FlatShading=1,T.SmoothShading=2,T.NoColors=0,T.FaceColors=1,T.VertexColors=2,T.NoBlending=0,T.NormalBlending=1,T.AdditiveBlending=2,T.SubtractiveBlending=3,T.MultiplyBlending=4,T.CustomBlending=5,T.AddEquation=100,T.SubtractEquation=101,T.ReverseSubtractEquation=102,T.MinEquation=103,T.MaxEquation=104,T.ZeroFactor=200,T.OneFactor=201,T.SrcColorFactor=202,T.OneMinusSrcColorFactor=203,T.SrcAlphaFactor=204,T.OneMinusSrcAlphaFactor=205,T.DstAlphaFactor=206,T.OneMinusDstAlphaFactor=207,T.DstColorFactor=208,T.OneMinusDstColorFactor=209,T.SrcAlphaSaturateFactor=210,T.NeverDepth=0,T.AlwaysDepth=1,T.LessDepth=2,T.LessEqualDepth=3,T.EqualDepth=4,T.GreaterEqualDepth=5,T.GreaterDepth=6,T.NotEqualDepth=7,T.MultiplyOperation=0,T.MixOperation=1,T.AddOperation=2,T.NoToneMapping=0,T.LinearToneMapping=1,T.ReinhardToneMapping=2,T.Uncharted2ToneMapping=3,T.CineonToneMapping=4,T.UVMapping=300,T.CubeReflectionMapping=301,T.CubeRefractionMapping=302,T.EquirectangularReflectionMapping=303,T.EquirectangularRefractionMapping=304,T.SphericalReflectionMapping=305,T.CubeUVReflectionMapping=306,T.CubeUVRefractionMapping=307,T.RepeatWrapping=1e3,T.ClampToEdgeWrapping=1001,T.MirroredRepeatWrapping=1002,T.NearestFilter=1003,T.NearestMipMapNearestFilter=1004,T.NearestMipMapLinearFilter=1005,T.LinearFilter=1006,T.LinearMipMapNearestFilter=1007,T.LinearMipMapLinearFilter=1008,T.UnsignedByteType=1009,T.ByteType=1010,T.ShortType=1011,T.UnsignedShortType=1012,T.IntType=1013,T.UnsignedIntType=1014,T.FloatType=1015,T.HalfFloatType=1016,T.UnsignedShort4444Type=1017,T.UnsignedShort5551Type=1018,T.UnsignedShort565Type=1019,T.UnsignedInt248Type=1020,T.AlphaFormat=1021,T.RGBFormat=1022,T.RGBAFormat=1023,T.LuminanceFormat=1024,T.LuminanceAlphaFormat=1025,T.RGBEFormat=1023,T.DepthFormat=1026,T.DepthStencilFormat=1027,T.RedFormat=1028,T.RGB_S3TC_DXT1_Format=33776,T.RGBA_S3TC_DXT1_Format=33777,T.RGBA_S3TC_DXT3_Format=33778,T.RGBA_S3TC_DXT5_Format=33779,T.RGB_PVRTC_4BPPV1_Format=35840,T.RGB_PVRTC_2BPPV1_Format=35841,T.RGBA_PVRTC_4BPPV1_Format=35842,T.RGBA_PVRTC_2BPPV1_Format=35843,T.RGB_ETC1_Format=36196,T.RGBA_ASTC_4x4_Format=37808,T.RGBA_ASTC_5x4_Format=37809,T.RGBA_ASTC_5x5_Format=37810,T.RGBA_ASTC_6x5_Format=37811,T.RGBA_ASTC_6x6_Format=37812,T.RGBA_ASTC_8x5_Format=37813,T.RGBA_ASTC_8x6_Format=37814,T.RGBA_ASTC_8x8_Format=37815,T.RGBA_ASTC_10x5_Format=37816,T.RGBA_ASTC_10x6_Format=37817,T.RGBA_ASTC_10x8_Format=37818,T.RGBA_ASTC_10x10_Format=37819,T.RGBA_ASTC_12x10_Format=37820,T.RGBA_ASTC_12x12_Format=37821,T.LoopOnce=2200,T.LoopRepeat=2201,T.LoopPingPong=2202,T.InterpolateDiscrete=2300,T.InterpolateLinear=2301,T.InterpolateSmooth=2302,T.ZeroCurvatureEnding=2400,T.ZeroSlopeEnding=2401,T.WrapAroundEnding=2402,T.TrianglesDrawMode=0,T.TriangleStripDrawMode=1,T.TriangleFanDrawMode=2,T.LinearEncoding=3e3,T.sRGBEncoding=3001,T.GammaEncoding=3007,T.RGBEEncoding=3002,T.LogLuvEncoding=3003,T.RGBM7Encoding=3004,T.RGBM16Encoding=3005,T.RGBDEncoding=3006,T.BasicDepthPacking=3200,T.RGBADepthPacking=3201,T.TangentSpaceNormalMap=0,T.ObjectSpaceNormalMap=1,T.CubeGeometry=Dt,T.Face4=function(t,e,i,n,o,s,l){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new M(t,e,i,o,s,l)},T.LineStrip=0,T.LinePieces=1,T.MeshFaceMaterial=function(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t},T.MultiMaterial=function(t){return t===void 0&&(t=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t},T.PointCloud=function(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new ds(t,e)},T.Particle=function(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new Qi(t)},T.ParticleSystem=function(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new ds(t,e)},T.PointCloudMaterial=function(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Ln(t)},T.ParticleBasicMaterial=function(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Ln(t)},T.ParticleSystemMaterial=function(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Ln(t)},T.Vertex=function(t,e,i){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new m(t,e,i)},T.DynamicBufferAttribute=function(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new ht(t,e).setDynamic(!0)},T.Int8Attribute=function(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new ft(t,e)},T.Uint8Attribute=function(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new gt(t,e)},T.Uint8ClampedAttribute=function(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new zt(t,e)},T.Int16Attribute=function(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new lt(t,e)},T.Uint16Attribute=function(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new Et(t,e)},T.Int32Attribute=function(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new D(t,e)},T.Uint32Attribute=function(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Bt(t,e)},T.Float32Attribute=function(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Ct(t,e)},T.Float64Attribute=function(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Rt(t,e)},T.ClosedSplineCurve3=Gl,T.SplineCurve3=Hl,T.Spline=dl,T.AxisHelper=function(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new or(t)},T.BoundingBoxHelper=function(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new oo(t,e)},T.EdgesHelper=function(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new gi(new _o(t.geometry),new zi({color:e!==void 0?e:16777215}))},T.WireframeHelper=function(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new gi(new ms(t.geometry),new zi({color:e!==void 0?e:16777215}))},T.XHRLoader=function(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new At(t)},T.BinaryTextureLoader=function(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Ue(t)},T.GeometryUtils={merge:function(t,e,i){if(console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),e.isMesh){e.matrixAutoUpdate&&e.updateMatrix();var n=e.matrix;e=e.geometry}t.merge(e,n,i)},center:function(t){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),t.center()}},T.Projector=function(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.projectVector=function(t,e){console.warn("THREE.Projector: .projectVector() is now vector.project()."),t.project(e)},this.unprojectVector=function(t,e){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),t.unproject(e)},this.pickingRay=function(){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}},T.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")},T.SceneUtils={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")}},T.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")},Object.defineProperty(T,"__esModule",{value:!0})}),THREE.Sky=function(){var T=THREE.Sky.SkyShader,$=new THREE.ShaderMaterial({fragmentShader:T.fragmentShader,vertexShader:T.vertexShader,uniforms:THREE.UniformsUtils.clone(T.uniforms),side:THREE.BackSide});THREE.Mesh.call(this,new THREE.BoxBufferGeometry(1,1,1),$)},THREE.Sky.prototype=Object.create(THREE.Mesh.prototype),THREE.Sky.SkyShader={uniforms:{luminance:{value:1},turbidity:{value:2},rayleigh:{value:1},mieCoefficient:{value:.005},mieDirectionalG:{value:.8},sunPosition:{value:new THREE.Vector3}},vertexShader:["uniform vec3 sunPosition;","uniform float rayleigh;","uniform float turbidity;","uniform float mieCoefficient;","varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float e = 2.71828182845904523536028747135266249775724709369995957;","const float pi = 3.141592653589793238462643383279502884197169;","const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );","const vec3 totalRayleigh = vec3( 5.804542996261093E-6, 1.3562911419845635E-5, 3.0265902468824876E-5 );","const float v = 4.0;","const vec3 K = vec3( 0.686, 0.678, 0.666 );","const vec3 MieConst = vec3( 1.8399918514433978E14, 2.7798023919660528E14, 4.0790479543861094E14 );","const float cutoffAngle = 1.6110731556870734;","const float steepness = 1.5;","const float EE = 1000.0;","float sunIntensity( float zenithAngleCos ) {"," zenithAngleCos = clamp( zenithAngleCos, -1.0, 1.0 );"," return EE * max( 0.0, 1.0 - pow( e, -( ( cutoffAngle - acos( zenithAngleCos ) ) / steepness ) ) );","}","vec3 totalMie( float T ) {"," float c = ( 0.2 * T ) * 10E-18;"," return 0.434 * c * MieConst;","}","void main() {"," vec4 worldPosition = modelMatrix * vec4( position, 1.0 );"," vWorldPosition = worldPosition.xyz;"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );"," gl_Position.z = gl_Position.w;"," vSunDirection = normalize( sunPosition );"," vSunE = sunIntensity( dot( vSunDirection, up ) );"," vSunfade = 1.0 - clamp( 1.0 - exp( ( sunPosition.y / 450000.0 ) ), 0.0, 1.0 );"," float rayleighCoefficient = rayleigh - ( 1.0 * ( 1.0 - vSunfade ) );"," vBetaR = totalRayleigh * rayleighCoefficient;"," vBetaM = totalMie( turbidity ) * mieCoefficient;","}"].join(`
|
|
2570
|
+
`},Bn={merge:function(t){for(var e={},i=0;i<t.length;i++){var n=this.clone(t[i]),s;for(s in n)e[s]=n[s]}return e},clone:function(t){var e={},i;for(i in t){e[i]={};for(var n in t[i]){var s=t[i][n];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture)?e[i][n]=s.clone():Array.isArray(s)?e[i][n]=s.slice():e[i][n]=s}}return e}},Qr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object.assign(L.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):typeof t=="number"?this.setHex(t):typeof t=="string"&&this.setStyle(t),this},setScalar:function(t){return this.b=this.g=this.r=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,this},setRGB:function(t,e,i){return this.r=t,this.g=e,this.b=i,this},setHSL:function(){function t(e,i,n){return 0>n&&(n+=1),1<n&&--n,n<1/6?e+6*(i-e)*n:.5>n?i:n<2/3?e+6*(i-e)*(2/3-n):e}return function(e,i,n){return e=pi.euclideanModulo(e,1),i=pi.clamp(i,0,1),n=pi.clamp(n,0,1),i===0?this.r=this.g=this.b=n:(i=.5>=n?n*(1+i):n+i-n*i,n=2*n-i,this.r=t(n,i,e+1/3),this.g=t(n,i,e),this.b=t(n,i,e-1/3)),this}}(),setStyle:function(t){function e(c){c!==void 0&&1>parseFloat(c)&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var i;if(i=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var n=i[2];switch(i[1]){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,e(i[5]),this;if(i=/^(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(n)){n=parseFloat(i[1])/360;var s=parseInt(i[2],10)/100,a=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(n,s,a)}}}else if(i=/^#([A-Fa-f0-9]+)$/.exec(t)){if(i=i[1],n=i.length,n===3)return this.r=parseInt(i.charAt(0)+i.charAt(0),16)/255,this.g=parseInt(i.charAt(1)+i.charAt(1),16)/255,this.b=parseInt(i.charAt(2)+i.charAt(2),16)/255,this;if(n===6)return this.r=parseInt(i.charAt(0)+i.charAt(1),16)/255,this.g=parseInt(i.charAt(2)+i.charAt(3),16)/255,this.b=parseInt(i.charAt(4)+i.charAt(5),16)/255,this}return t&&0<t.length&&(i=Qr[t],i!==void 0?this.setHex(i):console.warn("THREE.Color: Unknown color "+t)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return e===void 0&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){return e===void 0&&(e=2),e=0<e?1/e:1,this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(){function t(e){return .04045>e?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),copyLinearToSRGB:function(){function t(e){return .0031308>e?12.92*e:1.055*Math.pow(e,.41666)-.055}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){t===void 0&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});var e=this.r,i=this.g,n=this.b,s=Math.max(e,i,n),a=Math.min(e,i,n),c,f=(a+s)/2;if(a===s)a=c=0;else{var v=s-a;switch(a=.5>=f?v/(s+a):v/(2-s-a),s){case e:c=(i-n)/v+(i<n?6:0);break;case i:c=(n-e)/v+2;break;case n:c=(e-i)/v+4}c/=6}return t.h=c,t.s=a,t.l=f,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(){var t={};return function(e,i,n){return this.getHSL(t),t.h+=e,t.s+=i,t.l+=n,this.setHSL(t.h,t.s,t.l),this}}(),add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:function(){var t={h:0,s:0,l:0},e={h:0,s:0,l:0};return function(i,n){this.getHSL(t),i.getHSL(e),i=pi.lerp(t.h,e.h,n);var s=pi.lerp(t.s,e.s,n);return n=pi.lerp(t.l,e.l,n),this.setHSL(i,s,n),this}}(),equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return e===void 0&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}});var qe={common:{diffuse:{value:new L(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new m},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new o(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new L(16777215)}},lights:{ambientLightColor:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{},shadow:{},shadowBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}}},points:{diffuse:{value:new L(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new m}},sprite:{diffuse:{value:new L(15658734)},opacity:{value:1},center:{value:new o(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new m}}},xs={basic:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.fog]),vertexShader:bi.meshbasic_vert,fragmentShader:bi.meshbasic_frag},lambert:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.fog,qe.lights,{emissive:{value:new L(0)}}]),vertexShader:bi.meshlambert_vert,fragmentShader:bi.meshlambert_frag},phong:{uniforms:Bn.merge([qe.common,qe.specularmap,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.gradientmap,qe.fog,qe.lights,{emissive:{value:new L(0)},specular:{value:new L(1118481)},shininess:{value:30}}]),vertexShader:bi.meshphong_vert,fragmentShader:bi.meshphong_frag},standard:{uniforms:Bn.merge([qe.common,qe.envmap,qe.aomap,qe.lightmap,qe.emissivemap,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.roughnessmap,qe.metalnessmap,qe.fog,qe.lights,{emissive:{value:new L(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:bi.meshphysical_vert,fragmentShader:bi.meshphysical_frag},matcap:{uniforms:Bn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,qe.fog,{matcap:{value:null}}]),vertexShader:bi.meshmatcap_vert,fragmentShader:bi.meshmatcap_frag},points:{uniforms:Bn.merge([qe.points,qe.fog]),vertexShader:bi.points_vert,fragmentShader:bi.points_frag},dashed:{uniforms:Bn.merge([qe.common,qe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:bi.linedashed_vert,fragmentShader:bi.linedashed_frag},depth:{uniforms:Bn.merge([qe.common,qe.displacementmap]),vertexShader:bi.depth_vert,fragmentShader:bi.depth_frag},normal:{uniforms:Bn.merge([qe.common,qe.bumpmap,qe.normalmap,qe.displacementmap,{opacity:{value:1}}]),vertexShader:bi.normal_vert,fragmentShader:bi.normal_frag},sprite:{uniforms:Bn.merge([qe.sprite,qe.fog]),vertexShader:bi.sprite_vert,fragmentShader:bi.sprite_frag},background:{uniforms:{uvTransform:{value:new m},t2D:{value:null}},vertexShader:bi.background_vert,fragmentShader:bi.background_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:bi.cube_vert,fragmentShader:bi.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:bi.equirect_vert,fragmentShader:bi.equirect_frag},distanceRGBA:{uniforms:Bn.merge([qe.common,qe.displacementmap,{referencePosition:{value:new u},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:bi.distanceRGBA_vert,fragmentShader:bi.distanceRGBA_frag},shadow:{uniforms:Bn.merge([qe.lights,qe.fog,{color:{value:new L(0)},opacity:{value:1}}]),vertexShader:bi.shadow_vert,fragmentShader:bi.shadow_frag}};xs.physical={uniforms:Bn.merge([xs.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:bi.meshphysical_vert,fragmentShader:bi.meshphysical_frag},Object.assign(R.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,i=t.vertexNormals.length;e<i;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,i=t.vertexColors.length;e<i;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}}),b.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" "),b.DefaultOrder="XYZ",Object.defineProperties(b.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback()}}}),Object.assign(b.prototype,{isEuler:!0,set:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._order=n||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,i){var n=pi.clamp,s=t.elements;t=s[0];var a=s[4],c=s[8],f=s[1],v=s[5],y=s[9],A=s[2],P=s[6];return s=s[10],e=e||this._order,e==="XYZ"?(this._y=Math.asin(n(c,-1,1)),.99999>Math.abs(c)?(this._x=Math.atan2(-y,s),this._z=Math.atan2(-a,t)):(this._x=Math.atan2(P,v),this._z=0)):e==="YXZ"?(this._x=Math.asin(-n(y,-1,1)),.99999>Math.abs(y)?(this._y=Math.atan2(c,s),this._z=Math.atan2(f,v)):(this._y=Math.atan2(-A,t),this._z=0)):e==="ZXY"?(this._x=Math.asin(n(P,-1,1)),.99999>Math.abs(P)?(this._y=Math.atan2(-A,s),this._z=Math.atan2(-a,v)):(this._y=0,this._z=Math.atan2(f,t))):e==="ZYX"?(this._y=Math.asin(-n(A,-1,1)),.99999>Math.abs(A)?(this._x=Math.atan2(P,s),this._z=Math.atan2(f,t)):(this._x=0,this._z=Math.atan2(-a,v))):e==="YZX"?(this._z=Math.asin(n(f,-1,1)),.99999>Math.abs(f)?(this._x=Math.atan2(-y,v),this._y=Math.atan2(-A,t)):(this._x=0,this._y=Math.atan2(c,s))):e==="XZY"?(this._z=Math.asin(-n(a,-1,1)),.99999>Math.abs(a)?(this._x=Math.atan2(P,v),this._y=Math.atan2(c,t)):(this._x=Math.atan2(-y,s),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,i!==!1&&this.onChangeCallback(),this},setFromQuaternion:function(){var t=new p;return function(e,i,n){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,i,n)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new d;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new u(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(F.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask=this.mask|1<<t|0},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},test:function(t){return(this.mask&t.mask)!==0}});var Hc=0;B.DefaultUp=new u(0,1,0),B.DefaultMatrixAutoUpdate=!0,B.prototype=Object.assign(Object.create(l.prototype),{constructor:B,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(){var t=new d;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.multiply(t),this}}(),rotateOnWorldAxis:function(){var t=new d;return function(e,i){return t.setFromAxisAngle(e,i),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new u(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new u(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new u(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new u;return function(e,i){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(i)),this}}(),translateX:function(){var t=new u(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new u(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new u(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new p;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new d,e=new p,i=new u,n=new u;return function(s,a,c){s.isVector3?i.copy(s):i.set(s,a,c),s=this.parent,this.updateWorldMatrix(!0,!1),n.setFromMatrixPosition(this.matrixWorld),this.isCamera?e.lookAt(n,i,this.up):e.lookAt(i,n,this.up),this.quaternion.setFromRotationMatrix(e),s&&(e.extractRotation(s.matrixWorld),t.setFromRotationMatrix(e),this.quaternion.premultiply(t.inverse()))}}(),add:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.parent!==null&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(1<arguments.length){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}return e=this.children.indexOf(t),e!==-1&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(e,1)),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var i=0,n=this.children.length;i<n;i++){var s=this.children[i].getObjectByProperty(t,e);if(s!==void 0)return s}},getWorldPosition:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new u),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var t=new u,e=new u;return function(i){return i===void 0&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),i=new d),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,i,e),i}}(),getWorldScale:function(){var t=new u,e=new d;return function(i){return i===void 0&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),i=new u),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,i),i}}(),getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverse(t)},traverseVisible:function(t){if(this.visible!==!1){t(this);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,i=0,n=e.length;i<n;i++)e[i].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0)for(t=this.children,e=0,i=t.length;e<i;e++)t[e].updateWorldMatrix(!1,!0)},toJSON:function(t){function e(A,P){return A[P.uuid]===void 0&&(A[P.uuid]=P.toJSON(t)),P.uuid}function i(A){var P=[],k;for(k in A){var H=A[k];delete H.metadata,P.push(H)}return P}var n=t===void 0||typeof t=="string",s={};n&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},s.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var a={};if(a.uuid=this.uuid,a.type=this.type,this.name!==""&&(a.name=this.name),this.castShadow===!0&&(a.castShadow=!0),this.receiveShadow===!0&&(a.receiveShadow=!0),this.visible===!1&&(a.visible=!1),this.frustumCulled===!1&&(a.frustumCulled=!1),this.renderOrder!==0&&(a.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(a.userData=this.userData),a.layers=this.layers.mask,a.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(a.matrixAutoUpdate=!1),this.isMesh||this.isLine||this.isPoints){a.geometry=e(t.geometries,this.geometry);var c=this.geometry.parameters;if(c!==void 0&&c.shapes!==void 0)if(c=c.shapes,Array.isArray(c))for(var f=0,v=c.length;f<v;f++)e(t.shapes,c[f]);else e(t.shapes,c)}if(this.material!==void 0)if(Array.isArray(this.material)){for(c=[],f=0,v=this.material.length;f<v;f++)c.push(e(t.materials,this.material[f]));a.material=c}else a.material=e(t.materials,this.material);if(0<this.children.length)for(a.children=[],f=0;f<this.children.length;f++)a.children.push(this.children[f].toJSON(t).object);if(n){n=i(t.geometries),f=i(t.materials),v=i(t.textures);var y=i(t.images);c=i(t.shapes),0<n.length&&(s.geometries=n),0<f.length&&(s.materials=f),0<v.length&&(s.textures=v),0<y.length&&(s.images=y),0<c.length&&(s.shapes=c)}return s.object=a,s},clone:function(t){return new this.constructor().copy(this,t)},copy:function(t,e){if(e===void 0&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(e=0;e<t.children.length;e++)this.add(t.children[e].clone());return this}});var Vc=0;X.prototype=Object.assign(Object.create(l.prototype),{constructor:X,isGeometry:!0,applyMatrix:function(t){for(var e=new m().getNormalMatrix(t),i=0,n=this.vertices.length;i<n;i++)this.vertices[i].applyMatrix4(t);for(i=0,n=this.faces.length;i<n;i++){t=this.faces[i],t.normal.applyMatrix3(e).normalize();for(var s=0,a=t.vertexNormals.length;s<a;s++)t.vertexNormals[s].applyMatrix3(e).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.normalsNeedUpdate=this.verticesNeedUpdate=!0,this},rotateX:function(){var t=new p;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new p;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new p;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new p;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new p;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new B;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),fromBufferGeometry:function(t){function e(q,J,rt,xt){var gt=f===void 0?[]:[i.colors[q].clone(),i.colors[J].clone(),i.colors[rt].clone()],At=c===void 0?[]:[new u().fromArray(c,3*q),new u().fromArray(c,3*J),new u().fromArray(c,3*rt)];xt=new R(q,J,rt,At,gt,xt),i.faces.push(xt),v!==void 0&&i.faceVertexUvs[0].push([new o().fromArray(v,2*q),new o().fromArray(v,2*J),new o().fromArray(v,2*rt)]),y!==void 0&&i.faceVertexUvs[1].push([new o().fromArray(y,2*q),new o().fromArray(y,2*J),new o().fromArray(y,2*rt)])}var i=this,n=t.index!==null?t.index.array:void 0,s=t.attributes,a=s.position.array,c=s.normal!==void 0?s.normal.array:void 0,f=s.color!==void 0?s.color.array:void 0,v=s.uv!==void 0?s.uv.array:void 0,y=s.uv2!==void 0?s.uv2.array:void 0;y!==void 0&&(this.faceVertexUvs[1]=[]);for(var A=s=0;s<a.length;s+=3,A+=2)i.vertices.push(new u().fromArray(a,s)),f!==void 0&&i.colors.push(new L().fromArray(f,s));var P=t.groups;if(0<P.length)for(s=0;s<P.length;s++){a=P[s];var k=a.start,H=a.count;for(A=k,k+=H;A<k;A+=3)n!==void 0?e(n[A],n[A+1],n[A+2],a.materialIndex):e(A,A+1,A+2,a.materialIndex)}else if(n!==void 0)for(s=0;s<n.length;s+=3)e(n[s],n[s+1],n[s+2]);else for(s=0;s<a.length/3;s+=3)e(s,s+1,s+2);return this.computeFaceNormals(),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius;e=e===0?1:1/e;var i=new p;return i.set(e,0,0,-e*t.x,0,e,0,-e*t.y,0,0,e,-e*t.z,0,0,0,1),this.applyMatrix(i),this},computeFaceNormals:function(){for(var t=new u,e=new u,i=0,n=this.faces.length;i<n;i++){var s=this.faces[i],a=this.vertices[s.a],c=this.vertices[s.b];t.subVectors(this.vertices[s.c],c),e.subVectors(a,c),t.cross(e),t.normalize(),s.normal.copy(t)}},computeVertexNormals:function(t){t===void 0&&(t=!0);var e,i=Array(this.vertices.length),n=0;for(e=this.vertices.length;n<e;n++)i[n]=new u;if(t){var s=new u,a=new u;for(t=0,n=this.faces.length;t<n;t++){e=this.faces[t];var c=this.vertices[e.a],f=this.vertices[e.b],v=this.vertices[e.c];s.subVectors(v,f),a.subVectors(c,f),s.cross(a),i[e.a].add(s),i[e.b].add(s),i[e.c].add(s)}}else for(this.computeFaceNormals(),t=0,n=this.faces.length;t<n;t++)e=this.faces[t],i[e.a].add(e.normal),i[e.b].add(e.normal),i[e.c].add(e.normal);for(n=0,e=this.vertices.length;n<e;n++)i[n].normalize();for(t=0,n=this.faces.length;t<n;t++)e=this.faces[t],c=e.vertexNormals,c.length===3?(c[0].copy(i[e.a]),c[1].copy(i[e.b]),c[2].copy(i[e.c])):(c[0]=i[e.a].clone(),c[1]=i[e.b].clone(),c[2]=i[e.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t;this.computeFaceNormals();var e=0;for(t=this.faces.length;e<t;e++){var i=this.faces[e],n=i.vertexNormals;n.length===3?(n[0].copy(i.normal),n[1].copy(i.normal),n[2].copy(i.normal)):(n[0]=i.normal.clone(),n[1]=i.normal.clone(),n[2]=i.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,i=0;for(e=this.faces.length;i<e;i++){var n=this.faces[i];n.__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]);var s=0;for(t=n.vertexNormals.length;s<t;s++)n.__originalVertexNormals[s]?n.__originalVertexNormals[s].copy(n.vertexNormals[s]):n.__originalVertexNormals[s]=n.vertexNormals[s].clone()}var a=new X;for(a.faces=this.faces,s=0,t=this.morphTargets.length;s<t;s++){if(!this.morphNormals[s]){this.morphNormals[s]={},this.morphNormals[s].faceNormals=[],this.morphNormals[s].vertexNormals=[],n=this.morphNormals[s].faceNormals;var c=this.morphNormals[s].vertexNormals;for(i=0,e=this.faces.length;i<e;i++){var f=new u,v={a:new u,b:new u,c:new u};n.push(f),c.push(v)}}for(c=this.morphNormals[s],a.vertices=this.morphTargets[s].vertices,a.computeFaceNormals(),a.computeVertexNormals(),i=0,e=this.faces.length;i<e;i++)n=this.faces[i],f=c.faceNormals[i],v=c.vertexNormals[i],f.copy(n.normal),v.a.copy(n.vertexNormals[0]),v.b.copy(n.vertexNormals[1]),v.c.copy(n.vertexNormals[2])}for(i=0,e=this.faces.length;i<e;i++)n=this.faces[i],n.normal=n.__originalFaceNormal,n.vertexNormals=n.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new N),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new z),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,i){if(t&&t.isGeometry){var n,s=this.vertices.length,a=this.vertices,c=t.vertices,f=this.faces,v=t.faces,y=this.faceVertexUvs[0],A=t.faceVertexUvs[0],P=this.colors,k=t.colors;i===void 0&&(i=0),e!==void 0&&(n=new m().getNormalMatrix(e)),t=0;for(var H=c.length;t<H;t++){var q=c[t].clone();e!==void 0&&q.applyMatrix4(e),a.push(q)}for(t=0,H=k.length;t<H;t++)P.push(k[t].clone());for(t=0,H=v.length;t<H;t++){c=v[t];var J=c.vertexNormals;for(k=c.vertexColors,P=new R(c.a+s,c.b+s,c.c+s),P.normal.copy(c.normal),n!==void 0&&P.normal.applyMatrix3(n).normalize(),e=0,a=J.length;e<a;e++)q=J[e].clone(),n!==void 0&&q.applyMatrix3(n).normalize(),P.vertexNormals.push(q);for(P.color.copy(c.color),e=0,a=k.length;e<a;e++)q=k[e],P.vertexColors.push(q.clone());P.materialIndex=c.materialIndex+i,f.push(P)}for(t=0,H=A.length;t<H;t++)if(i=A[t],n=[],i!==void 0){for(e=0,a=i.length;e<a;e++)n.push(i[e].clone());y.push(n)}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t)},mergeMesh:function(t){t&&t.isMesh?(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t)},mergeVertices:function(){var t={},e=[],i=[],n=Math.pow(10,4),s,a=0;for(s=this.vertices.length;a<s;a++){var c=this.vertices[a];c=Math.round(c.x*n)+"_"+Math.round(c.y*n)+"_"+Math.round(c.z*n),t[c]===void 0?(t[c]=a,e.push(this.vertices[a]),i[a]=e.length-1):i[a]=i[t[c]]}for(t=[],a=0,s=this.faces.length;a<s;a++)for(n=this.faces[a],n.a=i[n.a],n.b=i[n.b],n.c=i[n.c],n=[n.a,n.b,n.c],c=0;3>c;c++)if(n[c]===n[(c+1)%3]){t.push(a);break}for(a=t.length-1;0<=a;a--)for(n=t[a],this.faces.splice(n,1),i=0,s=this.faceVertexUvs.length;i<s;i++)this.faceVertexUvs[i].splice(n,1);return a=this.vertices.length-e.length,this.vertices=e,a},setFromPoints:function(t){this.vertices=[];for(var e=0,i=t.length;e<i;e++){var n=t[e];this.vertices.push(new u(n.x,n.y,n.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,i=0;i<e;i++)t[i]._id=i;t.sort(function(v,y){return v.materialIndex-y.materialIndex});var n=this.faceVertexUvs[0],s=this.faceVertexUvs[1],a,c;for(n&&n.length===e&&(a=[]),s&&s.length===e&&(c=[]),i=0;i<e;i++){var f=t[i]._id;a&&a.push(n[f]),c&&c.push(s[f])}a&&(this.faceVertexUvs[0]=a),c&&(this.faceVertexUvs[1]=c)},toJSON:function(){function t(Vt,Z,st){return st?Vt|1<<Z:Vt&~(1<<Z)}function e(Vt){var Z=Vt.x.toString()+Vt.y.toString()+Vt.z.toString();return y[Z]!==void 0||(y[Z]=v.length/3,v.push(Vt.x,Vt.y,Vt.z)),y[Z]}function i(Vt){var Z=Vt.r.toString()+Vt.g.toString()+Vt.b.toString();return P[Z]!==void 0||(P[Z]=A.length,A.push(Vt.getHex())),P[Z]}function n(Vt){var Z=Vt.x.toString()+Vt.y.toString();return H[Z]!==void 0||(H[Z]=k.length/2,k.push(Vt.x,Vt.y)),H[Z]}var s={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.parameters!==void 0){var a=this.parameters,c;for(c in a)a[c]!==void 0&&(s[c]=a[c]);return s}for(a=[],c=0;c<this.vertices.length;c++){var f=this.vertices[c];a.push(f.x,f.y,f.z)}f=[];var v=[],y={},A=[],P={},k=[],H={};for(c=0;c<this.faces.length;c++){var q=this.faces[c],J=this.faceVertexUvs[0][c]!==void 0,rt=0<q.normal.length(),xt=0<q.vertexNormals.length,gt=q.color.r!==1||q.color.g!==1||q.color.b!==1,At=0<q.vertexColors.length,wt=0;wt=t(wt,0,0),wt=t(wt,1,!0),wt=t(wt,2,!1),wt=t(wt,3,J),wt=t(wt,4,rt),wt=t(wt,5,xt),wt=t(wt,6,gt),wt=t(wt,7,At),f.push(wt),f.push(q.a,q.b,q.c),f.push(q.materialIndex),J&&(J=this.faceVertexUvs[0][c],f.push(n(J[0]),n(J[1]),n(J[2]))),rt&&f.push(e(q.normal)),xt&&(rt=q.vertexNormals,f.push(e(rt[0]),e(rt[1]),e(rt[2]))),gt&&f.push(i(q.color)),At&&(q=q.vertexColors,f.push(i(q[0]),i(q[1]),i(q[2])))}return s.data={},s.data.vertices=a,s.data.normals=v,0<A.length&&(s.data.colors=A),0<k.length&&(s.data.uvs=[k]),s.data.faces=f,s},clone:function(){return new X().copy(this)},copy:function(t){var e,i,n;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var s=t.vertices,a=0;for(e=s.length;a<e;a++)this.vertices.push(s[a].clone());for(s=t.colors,a=0,e=s.length;a<e;a++)this.colors.push(s[a].clone());for(s=t.faces,a=0,e=s.length;a<e;a++)this.faces.push(s[a].clone());for(a=0,e=t.faceVertexUvs.length;a<e;a++){var c=t.faceVertexUvs[a];for(this.faceVertexUvs[a]===void 0&&(this.faceVertexUvs[a]=[]),s=0,i=c.length;s<i;s++){var f=c[s],v=[],y=0;for(n=f.length;y<n;y++)v.push(f[y].clone());this.faceVertexUvs[a].push(v)}}for(y=t.morphTargets,a=0,e=y.length;a<e;a++){if(n={},n.name=y[a].name,y[a].vertices!==void 0)for(n.vertices=[],s=0,i=y[a].vertices.length;s<i;s++)n.vertices.push(y[a].vertices[s].clone());if(y[a].normals!==void 0)for(n.normals=[],s=0,i=y[a].normals.length;s<i;s++)n.normals.push(y[a].normals[s].clone());this.morphTargets.push(n)}for(y=t.morphNormals,a=0,e=y.length;a<e;a++){if(n={},y[a].vertexNormals!==void 0)for(n.vertexNormals=[],s=0,i=y[a].vertexNormals.length;s<i;s++)c=y[a].vertexNormals[s],f={},f.a=c.a.clone(),f.b=c.b.clone(),f.c=c.c.clone(),n.vertexNormals.push(f);if(y[a].faceNormals!==void 0)for(n.faceNormals=[],s=0,i=y[a].faceNormals.length;s<i;s++)n.faceNormals.push(y[a].faceNormals[s].clone());this.morphNormals.push(n)}for(s=t.skinWeights,a=0,e=s.length;a<e;a++)this.skinWeights.push(s[a].clone());for(s=t.skinIndices,a=0,e=s.length;a<e;a++)this.skinIndices.push(s[a].clone());for(s=t.lineDistances,a=0,e=s.length;a<e;a++)this.lineDistances.push(s[a]);return a=t.boundingBox,a!==null&&(this.boundingBox=a.clone()),a=t.boundingSphere,a!==null&&(this.boundingSphere=a.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty($.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign($.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.itemSize:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var n=0,s=this.itemSize;n<s;n++)this.array[t+n]=e.array[i+n];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var a=t[n];a===void 0&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",n),a=new L),e[i++]=a.r,e[i++]=a.g,e[i++]=a.b}return this},copyVector2sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var a=t[n];a===void 0&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",n),a=new o),e[i++]=a.x,e[i++]=a.y}return this},copyVector3sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var a=t[n];a===void 0&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",n),a=new u),e[i++]=a.x,e[i++]=a.y,e[i++]=a.z}return this},copyVector4sArray:function(t){for(var e=this.array,i=0,n=0,s=t.length;n<s;n++){var a=t[n];a===void 0&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",n),a=new T),e[i++]=a.x,e[i++]=a.y,e[i++]=a.z,e[i++]=a.w}return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=s,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),Q.prototype=Object.create($.prototype),Q.prototype.constructor=Q,ft.prototype=Object.create($.prototype),ft.prototype.constructor=ft,Ct.prototype=Object.create($.prototype),Ct.prototype.constructor=Ct,it.prototype=Object.create($.prototype),it.prototype.constructor=it,yt.prototype=Object.create($.prototype),yt.prototype.constructor=yt,G.prototype=Object.create($.prototype),G.prototype.constructor=G,Lt.prototype=Object.create($.prototype),Lt.prototype.constructor=Lt,Et.prototype=Object.create($.prototype),Et.prototype.constructor=Et,Pt.prototype=Object.create($.prototype),Pt.prototype.constructor=Pt,Object.assign(ce.prototype,{computeGroups:function(t){var e=[],i=void 0;t=t.faces;for(var n=0;n<t.length;n++){var s=t[n];if(s.materialIndex!==i){i=s.materialIndex,a!==void 0&&(a.count=3*n-a.start,e.push(a));var a={start:3*n,materialIndex:i}}}a!==void 0&&(a.count=3*n-a.start,e.push(a)),this.groups=e},fromGeometry:function(t){var e=t.faces,i=t.vertices,n=t.faceVertexUvs,s=n[0]&&0<n[0].length,a=n[1]&&0<n[1].length,c=t.morphTargets,f=c.length;if(0<f){for(var v=[],y=0;y<f;y++)v[y]={name:c[y].name,data:[]};this.morphTargets.position=v}var A=t.morphNormals,P=A.length;if(0<P){var k=[];for(y=0;y<P;y++)k[y]={name:A[y].name,data:[]};this.morphTargets.normal=k}var H=t.skinIndices,q=t.skinWeights,J=H.length===i.length,rt=q.length===i.length;for(0<i.length&&e.length===0&&console.error("THREE.DirectGeometry: Faceless geometries are not supported."),y=0;y<e.length;y++){var xt=e[y];this.vertices.push(i[xt.a],i[xt.b],i[xt.c]);var gt=xt.vertexNormals;for(gt.length===3?this.normals.push(gt[0],gt[1],gt[2]):(gt=xt.normal,this.normals.push(gt,gt,gt)),gt=xt.vertexColors,gt.length===3?this.colors.push(gt[0],gt[1],gt[2]):(gt=xt.color,this.colors.push(gt,gt,gt)),s===!0&&(gt=n[0][y],gt!==void 0?this.uvs.push(gt[0],gt[1],gt[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",y),this.uvs.push(new o,new o,new o))),a===!0&&(gt=n[1][y],gt!==void 0?this.uvs2.push(gt[0],gt[1],gt[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",y),this.uvs2.push(new o,new o,new o))),gt=0;gt<f;gt++){var At=c[gt].vertices;v[gt].data.push(At[xt.a],At[xt.b],At[xt.c])}for(gt=0;gt<P;gt++)At=A[gt].vertexNormals[y],k[gt].data.push(At.a,At.b,At.c);J&&this.skinIndices.push(H[xt.a],H[xt.b],H[xt.c]),rt&&this.skinWeights.push(q[xt.a],q[xt.b],q[xt.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this}});var Wc=1;Ft.prototype=Object.assign(Object.create(l.prototype),{constructor:Ft,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(65535<re(t)?Lt:yt)(t,1):this.index=t},addAttribute:function(t,e,i){return e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?t==="index"?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):(this.attributes[t]=e,this):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(t,new $(e,i)))},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,i){this.groups.push({start:t,count:e,materialIndex:i!==void 0?i:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;return e!==void 0&&(t.applyToBufferAttribute(e),e.needsUpdate=!0),e=this.attributes.normal,e!==void 0&&(new m().getNormalMatrix(t).applyToBufferAttribute(e),e.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(){var t=new p;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new p;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new p;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new p;return function(e,i,n){return t.makeTranslation(e,i,n),this.applyMatrix(t),this}}(),scale:function(){var t=new p;return function(e,i,n){return t.makeScale(e,i,n),this.applyMatrix(t),this}}(),lookAt:function(){var t=new B;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new u;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){t=new Et(3*e.vertices.length,3);var i=new Et(3*e.colors.length,3);this.addAttribute("position",t.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length&&(t=new Et(e.lineDistances.length,1),this.addAttribute("lineDistance",t.copyArray(e.lineDistances))),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],i=0,n=t.length;i<n;i++){var s=t[i];e.push(s.x,s.y,s.z||0)}return this.addAttribute("position",new Et(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var i=e.__directGeometry;if(e.elementsNeedUpdate===!0&&(i=void 0,e.elementsNeedUpdate=!1),i===void 0)return this.fromGeometry(e);i.verticesNeedUpdate=e.verticesNeedUpdate,i.normalsNeedUpdate=e.normalsNeedUpdate,i.colorsNeedUpdate=e.colorsNeedUpdate,i.uvsNeedUpdate=e.uvsNeedUpdate,i.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=i}return e.verticesNeedUpdate===!0&&(i=this.attributes.position,i!==void 0&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),e.normalsNeedUpdate===!0&&(i=this.attributes.normal,i!==void 0&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),e.colorsNeedUpdate===!0&&(i=this.attributes.color,i!==void 0&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,i!==void 0&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,i!==void 0&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=new ce().fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);this.addAttribute("position",new $(e,3).copyVector3sArray(t.vertices)),0<t.normals.length&&(e=new Float32Array(3*t.normals.length),this.addAttribute("normal",new $(e,3).copyVector3sArray(t.normals))),0<t.colors.length&&(e=new Float32Array(3*t.colors.length),this.addAttribute("color",new $(e,3).copyColorsArray(t.colors))),0<t.uvs.length&&(e=new Float32Array(2*t.uvs.length),this.addAttribute("uv",new $(e,2).copyVector2sArray(t.uvs))),0<t.uvs2.length&&(e=new Float32Array(2*t.uvs2.length),this.addAttribute("uv2",new $(e,2).copyVector2sArray(t.uvs2))),this.groups=t.groups;for(var i in t.morphTargets){e=[];for(var n=t.morphTargets[i],s=0,a=n.length;s<a;s++){var c=n[s],f=new Et(3*c.data.length,3);f.name=c.name,e.push(f.copyVector3sArray(c.data))}this.morphAttributes[i]=e}return 0<t.skinIndices.length&&(i=new Et(4*t.skinIndices.length,4),this.addAttribute("skinIndex",i.copyVector4sArray(t.skinIndices))),0<t.skinWeights.length&&(i=new Et(4*t.skinWeights.length,4),this.addAttribute("skinWeight",i.copyVector4sArray(t.skinWeights))),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new N);var t=this.attributes.position;t!==void 0?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new N,e=new u;return function(){this.boundingSphere===null&&(this.boundingSphere=new z);var i=this.attributes.position;if(i){var n=this.boundingSphere.center;t.setFromBufferAttribute(i),t.getCenter(n);for(var s=0,a=0,c=i.count;a<c;a++)e.x=i.getX(a),e.y=i.getY(a),e.z=i.getZ(a),s=Math.max(s,n.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes;if(e.position){var i=e.position.array;if(e.normal===void 0)this.addAttribute("normal",new $(new Float32Array(i.length),3));else for(var n=e.normal.array,s=0,a=n.length;s<a;s++)n[s]=0;n=e.normal.array;var c=new u,f=new u,v=new u,y=new u,A=new u;if(t){var P=t.array;for(s=0,a=t.count;s<a;s+=3){t=3*P[s+0];var k=3*P[s+1],H=3*P[s+2];c.fromArray(i,t),f.fromArray(i,k),v.fromArray(i,H),y.subVectors(v,f),A.subVectors(c,f),y.cross(A),n[t]+=y.x,n[t+1]+=y.y,n[t+2]+=y.z,n[k]+=y.x,n[k+1]+=y.y,n[k+2]+=y.z,n[H]+=y.x,n[H+1]+=y.y,n[H+2]+=y.z}}else for(s=0,a=i.length;s<a;s+=9)c.fromArray(i,s),f.fromArray(i,s+3),v.fromArray(i,s+6),y.subVectors(v,f),A.subVectors(c,f),y.cross(A),n[s]=y.x,n[s+1]=y.y,n[s+2]=y.z,n[s+3]=y.x,n[s+4]=y.y,n[s+5]=y.z,n[s+6]=y.x,n[s+7]=y.y,n[s+8]=y.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t&&t.isBufferGeometry){e===void 0&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var i=this.attributes,n;for(n in i)if(t.attributes[n]!==void 0){var s=i[n].array,a=t.attributes[n],c=a.array,f=0;for(a=a.itemSize*e;f<c.length;f++,a++)s[a]=c[f]}return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t)},normalizeNormals:function(){var t=new u;return function(){for(var e=this.attributes.normal,i=0,n=e.count;i<n;i++)t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.normalize(),e.setXYZ(i,t.x,t.y,t.z)}}(),toNonIndexed:function(){if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var t=new Ft,e=this.index.array,i=this.attributes,n;for(n in i){var s=i[n],a=s.array,c=s.itemSize,f=new a.constructor(e.length*c),v=0;s=0;for(var y=e.length;s<y;s++)for(var A=e[s]*c,P=0;P<c;P++)f[v++]=a[A++];t.addAttribute(n,new $(f,c))}for(e=this.groups,s=0,y=e.length;s<y;s++)i=e[s],t.addGroup(i.start,i.count,i.materialIndex);return t},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),0<Object.keys(this.userData).length&&(t.userData=this.userData),this.parameters!==void 0){var e=this.parameters;for(s in e)e[s]!==void 0&&(t[s]=e[s]);return t}t.data={attributes:{}};var i=this.index;i!==null&&(e=Array.prototype.slice.call(i.array),t.data.index={type:i.array.constructor.name,array:e}),i=this.attributes;for(s in i){var n=i[s];e=Array.prototype.slice.call(n.array),t.data.attributes[s]={itemSize:n.itemSize,type:n.array.constructor.name,array:e,normalized:n.normalized}}var s=this.groups;return 0<s.length&&(t.data.groups=JSON.parse(JSON.stringify(s))),s=this.boundingSphere,s!==null&&(t.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),t},clone:function(){return new Ft().copy(this)},copy:function(t){var e;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingSphere=this.boundingBox=null,this.name=t.name;var i=t.index;i!==null&&this.setIndex(i.clone()),i=t.attributes;for(c in i)this.addAttribute(c,i[c].clone());var n=t.morphAttributes;for(c in n){var s=[],a=n[c];for(i=0,e=a.length;i<e;i++)s.push(a[i].clone());this.morphAttributes[c]=s}var c=t.groups;for(i=0,e=c.length;i<e;i++)n=c[i],this.addGroup(n.start,n.count,n.materialIndex);return c=t.boundingBox,c!==null&&(this.boundingBox=c.clone()),c=t.boundingSphere,c!==null&&(this.boundingSphere=c.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),It.prototype=Object.create(X.prototype),It.prototype.constructor=It,Bt.prototype=Object.create(Ft.prototype),Bt.prototype.constructor=Bt,Be.prototype=Object.create(X.prototype),Be.prototype.constructor=Be,me.prototype=Object.create(Ft.prototype),me.prototype.constructor=me;var Ru=0;Yt.prototype=Object.assign(Object.create(l.prototype),{constructor:Yt,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(t!==void 0)for(var e in t){var i=t[e];if(i===void 0)console.warn("THREE.Material: '"+e+"' parameter is undefined.");else if(e==="shading")console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=i===1;else{var n=this[e];n===void 0?console.warn("THREE."+this.type+": '"+e+"' is not a property of this material."):n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i}}},toJSON:function(t){function e(s){var a=[],c;for(c in s){var f=s[c];delete f.metadata,a.push(f)}return a}var i=t===void 0||typeof t=="string";i&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};return n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearCoat!==void 0&&(n.clearCoat=this.clearCoat),this.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,this.combine!==void 0&&(n.combine=this.combine),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.flatShading===!0&&(n.flatShading=this.flatShading),this.side!==0&&(n.side=this.side),this.vertexColors!==0&&(n.vertexColors=this.vertexColors),1>this.opacity&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),0<this.alphaTest&&(n.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(n.wireframe=this.wireframe),1<this.wireframeLinewidth&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(n.morphTargets=!0),this.skinning===!0&&(n.skinning=!0),this.visible===!1&&(n.visible=!1),JSON.stringify(this.userData)!=="{}"&&(n.userData=this.userData),i&&(i=e(t.textures),t=e(t.images),0<i.length&&(n.textures=i),0<t.length&&(n.images=t)),n},clone:function(){return new this.constructor().copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.userData=JSON.parse(JSON.stringify(t.userData)),this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,i=null;if(e!==null){var n=e.length;i=Array(n);for(var s=0;s!==n;++s)i[s]=e[s].clone()}return this.clippingPlanes=i,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),ti.prototype=Object.create(Yt.prototype),ti.prototype.constructor=ti,ti.prototype.isShaderMaterial=!0,ti.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Bn.clone(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},ti.prototype.toJSON=function(t){var e=Yt.prototype.toJSON.call(this,t);e.uniforms={};for(var i in this.uniforms){var n=this.uniforms[i].value;e.uniforms[i]=n.isTexture?{type:"t",value:n.toJSON(t).uuid}:n.isColor?{type:"c",value:n.getHex()}:n.isVector2?{type:"v2",value:n.toArray()}:n.isVector3?{type:"v3",value:n.toArray()}:n.isVector4?{type:"v4",value:n.toArray()}:n.isMatrix4?{type:"m4",value:n.toArray()}:{value:n}}return 0<Object.keys(this.defines).length&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},Object.assign(Fi.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .at() target is now required"),e=new u),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new u;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new u),e.subVectors(t,this.origin),t=e.dot(this.direction),0>t?e.copy(this.origin):e.copy(this.direction).multiplyScalar(t).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new u;return function(e){var i=t.subVectors(e,this.origin).dot(this.direction);return 0>i?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(i).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new u,e=new u,i=new u;return function(n,s,a,c){t.copy(n).add(s).multiplyScalar(.5),e.copy(s).sub(n).normalize(),i.copy(this.origin).sub(t);var f=.5*n.distanceTo(s),v=-this.direction.dot(e),y=i.dot(this.direction),A=-i.dot(e),P=i.lengthSq(),k=Math.abs(1-v*v);if(0<k){n=v*A-y,s=v*y-A;var H=f*k;0<=n?s>=-H?s<=H?(f=1/k,n*=f,s*=f,v=n*(n+v*s+2*y)+s*(v*n+s+2*A)+P):(s=f,n=Math.max(0,-(v*s+y)),v=-n*n+s*(s+2*A)+P):(s=-f,n=Math.max(0,-(v*s+y)),v=-n*n+s*(s+2*A)+P):s<=-H?(n=Math.max(0,-(-v*f+y)),s=0<n?-f:Math.min(Math.max(-f,-A),f),v=-n*n+s*(s+2*A)+P):s<=H?(n=0,s=Math.min(Math.max(-f,-A),f),v=s*(s+2*A)+P):(n=Math.max(0,-(v*f+y)),s=0<n?f:Math.min(Math.max(-f,-A),f),v=-n*n+s*(s+2*A)+P)}else s=0<v?-f:f,n=Math.max(0,-(v*s+y)),v=-n*n+s*(s+2*A)+P;return a&&a.copy(this.direction).multiplyScalar(n).add(this.origin),c&&c.copy(e).multiplyScalar(s).add(t),v}}(),intersectSphere:function(){var t=new u;return function(e,i){t.subVectors(e.center,this.origin);var n=t.dot(this.direction),s=t.dot(t)-n*n;return e=e.radius*e.radius,s>e?null:(e=Math.sqrt(e-s),s=n-e,n+=e,0>s&&0>n?null:0>s?this.at(n,i):this.at(s,i))}}(),intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);return e===0?t.distanceToPoint(this.origin)===0?0:null:(t=-(this.origin.dot(t.normal)+t.constant)/e,0<=t?t:null)},intersectPlane:function(t,e){return t=this.distanceToPlane(t),t===null?null:this.at(t,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return e===0||0>t.normal.dot(this.direction)*e},intersectBox:function(t,e){var i=1/this.direction.x,n=1/this.direction.y,s=1/this.direction.z,a=this.origin;if(0<=i){var c=(t.min.x-a.x)*i;i*=t.max.x-a.x}else c=(t.max.x-a.x)*i,i*=t.min.x-a.x;if(0<=n){var f=(t.min.y-a.y)*n;n*=t.max.y-a.y}else f=(t.max.y-a.y)*n,n*=t.min.y-a.y;return c>n||f>i||((f>c||c!==c)&&(c=f),(n<i||i!==i)&&(i=n),0<=s?(f=(t.min.z-a.z)*s,t=(t.max.z-a.z)*s):(f=(t.max.z-a.z)*s,t=(t.min.z-a.z)*s),c>t||f>i)?null:((f>c||c!==c)&&(c=f),(t<i||i!==i)&&(i=t),0>i?null:this.at(0<=c?c:i,e))},intersectsBox:function(){var t=new u;return function(e){return this.intersectBox(e,t)!==null}}(),intersectTriangle:function(){var t=new u,e=new u,i=new u,n=new u;return function(s,a,c,f,v){if(e.subVectors(a,s),i.subVectors(c,s),n.crossVectors(e,i),a=this.direction.dot(n),0<a){if(f)return null;f=1}else if(0>a)f=-1,a=-a;else return null;return t.subVectors(this.origin,s),s=f*this.direction.dot(i.crossVectors(t,i)),0>s||(c=f*this.direction.dot(e.cross(t)),0>c||s+c>a)?null:(s=-f*t.dot(n),0>s?null:this.at(s/a,v))}}(),applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}),Object.assign(Oe,{getNormal:function(){var t=new u;return function(e,i,n,s){return s===void 0&&(console.warn("THREE.Triangle: .getNormal() target is now required"),s=new u),s.subVectors(n,i),t.subVectors(e,i),s.cross(t),e=s.lengthSq(),0<e?s.multiplyScalar(1/Math.sqrt(e)):s.set(0,0,0)}}(),getBarycoord:function(){var t=new u,e=new u,i=new u;return function(n,s,a,c,f){t.subVectors(c,s),e.subVectors(a,s),i.subVectors(n,s),n=t.dot(t),s=t.dot(e),a=t.dot(i);var v=e.dot(e);c=e.dot(i);var y=n*v-s*s;return f===void 0&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),f=new u),y===0?f.set(-2,-1,-1):(y=1/y,v=(v*a-s*c)*y,n=(n*c-s*a)*y,f.set(1-v-n,n,v))}}(),containsPoint:function(){var t=new u;return function(e,i,n,s){return Oe.getBarycoord(e,i,n,s,t),0<=t.x&&0<=t.y&&1>=t.x+t.y}}(),getUV:function(){var t=new u;return function(e,i,n,s,a,c,f,v){return this.getBarycoord(e,i,n,s,t),v.set(0,0),v.addScaledVector(a,t.x),v.addScaledVector(c,t.y),v.addScaledVector(f,t.z),v}}()}),Object.assign(Oe.prototype,{set:function(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this},setFromPointsAndIndices:function(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){var t=new u,e=new u;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),getMidpoint:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new u),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return Oe.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new u),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return Oe.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return Oe.containsPoint(t,this.a,this.b,this.c)},getUV:function(t,e,i,n,s){return Oe.getUV(t,this.a,this.b,this.c,e,i,n,s)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(){var t=new u,e=new u,i=new u,n=new u,s=new u,a=new u;return function(c,f){f===void 0&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),f=new u);var v=this.a,y=this.b,A=this.c;t.subVectors(y,v),e.subVectors(A,v),n.subVectors(c,v);var P=t.dot(n),k=e.dot(n);if(0>=P&&0>=k)return f.copy(v);s.subVectors(c,y);var H=t.dot(s),q=e.dot(s);if(0<=H&&q<=H)return f.copy(y);var J=P*q-H*k;if(0>=J&&0<=P&&0>=H)return y=P/(P-H),f.copy(v).addScaledVector(t,y);a.subVectors(c,A),c=t.dot(a);var rt=e.dot(a);return 0<=rt&&c<=rt?f.copy(A):(P=c*k-P*rt,0>=P&&0<=k&&0>=rt?(J=k/(k-rt),f.copy(v).addScaledVector(e,J)):(k=H*rt-c*q,0>=k&&0<=q-H&&0<=c-rt?(i.subVectors(A,y),J=(q-H)/(q-H+(c-rt)),f.copy(y).addScaledVector(i,J)):(A=1/(k+P+J),y=P*A,J*=A,f.copy(v).addScaledVector(t,y).addScaledVector(e,J))))}}(),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),Ge.prototype=Object.create(Yt.prototype),Ge.prototype.constructor=Ge,Ge.prototype.isMeshBasicMaterial=!0,Ge.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this},di.prototype=Object.assign(Object.create(B.prototype),{constructor:di,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return B.prototype.copy.call(this,t),this.drawMode=t.drawMode,t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry;if(t.isBufferGeometry){t=t.morphAttributes;var e=Object.keys(t);if(0<e.length){var i=t[e[0]];if(i!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++){var n=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}else if(i=t.morphTargets,i!==void 0&&0<i.length)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=i.length;t<e;t++)n=i[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t},raycast:function(){function t(rt,xt,gt,At,wt,Vt,Z,st){return(xt.side===1?At.intersectTriangle(Z,Vt,wt,!0,st):At.intersectTriangle(wt,Vt,Z,xt.side!==2,st))===null?null:(J.copy(st),J.applyMatrix4(rt.matrixWorld),xt=gt.ray.origin.distanceTo(J),xt<gt.near||xt>gt.far?null:{distance:xt,point:J.clone(),object:rt})}function e(rt,xt,gt,At,wt,Vt,Z,st,zt){return a.fromBufferAttribute(wt,Z),c.fromBufferAttribute(wt,st),f.fromBufferAttribute(wt,zt),(rt=t(rt,xt,gt,At,a,c,f,q))&&(Vt&&(P.fromBufferAttribute(Vt,Z),k.fromBufferAttribute(Vt,st),H.fromBufferAttribute(Vt,zt),rt.uv=Oe.getUV(q,a,c,f,P,k,H,new o)),Vt=new R(Z,st,zt),Oe.getNormal(a,c,f,Vt.normal),rt.face=Vt),rt}var i=new p,n=new Fi,s=new z,a=new u,c=new u,f=new u,v=new u,y=new u,A=new u,P=new o,k=new o,H=new o,q=new u,J=new u;return function(rt,xt){var gt=this.geometry,At=this.material,wt=this.matrixWorld;if(At!==void 0&&(gt.boundingSphere===null&>.computeBoundingSphere(),s.copy(gt.boundingSphere),s.applyMatrix4(wt),rt.ray.intersectsSphere(s)!==!1&&(i.getInverse(wt),n.copy(rt.ray).applyMatrix4(i),gt.boundingBox===null||n.intersectsBox(gt.boundingBox)!==!1))){if(gt.isBufferGeometry){var Vt=gt.index,Z=gt.attributes.position,st=gt.attributes.uv,zt=gt.groups;gt=gt.drawRange;var ee;if(Vt!==null)if(Array.isArray(At)){var $t=0;for(ee=zt.length;$t<ee;$t++){var qt=zt[$t],Te=At[qt.materialIndex];wt=Math.max(qt.start,gt.start);var de=Math.min(qt.start+qt.count,gt.start+gt.count);for(qt=wt;qt<de;qt+=3){wt=Vt.getX(qt);var Ie=Vt.getX(qt+1),be=Vt.getX(qt+2);(wt=e(this,Te,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor(qt/3),xt.push(wt))}}}else for(wt=Math.max(0,gt.start),de=Math.min(Vt.count,gt.start+gt.count),$t=wt,ee=de;$t<ee;$t+=3)wt=Vt.getX($t),Ie=Vt.getX($t+1),be=Vt.getX($t+2),(wt=e(this,At,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt));else if(Z!==void 0)if(Array.isArray(At))for($t=0,ee=zt.length;$t<ee;$t++)for(qt=zt[$t],Te=At[qt.materialIndex],wt=Math.max(qt.start,gt.start),de=Math.min(qt.start+qt.count,gt.start+gt.count),qt=wt;qt<de;qt+=3)wt=qt,Ie=qt+1,be=qt+2,(wt=e(this,Te,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor(qt/3),xt.push(wt));else for(wt=Math.max(0,gt.start),de=Math.min(Z.count,gt.start+gt.count),$t=wt,ee=de;$t<ee;$t+=3)wt=$t,Ie=$t+1,be=$t+2,(wt=e(this,At,rt,n,Z,st,wt,Ie,be))&&(wt.faceIndex=Math.floor($t/3),xt.push(wt))}else if(gt.isGeometry){for(Z=Array.isArray(At),st=gt.vertices,zt=gt.faces,wt=gt.faceVertexUvs[0],0<wt.length&&(Vt=wt),qt=0,de=zt.length;qt<de;qt++)if(Ie=zt[qt],wt=Z?At[Ie.materialIndex]:At,wt!==void 0){if($t=st[Ie.a],ee=st[Ie.b],Te=st[Ie.c],wt.morphTargets===!0){be=gt.morphTargets;var ae=this.morphTargetInfluences;a.set(0,0,0),c.set(0,0,0),f.set(0,0,0);for(var We=0,Ke=be.length;We<Ke;We++){var fi=ae[We];if(fi!==0){var An=be[We].vertices;a.addScaledVector(v.subVectors(An[Ie.a],$t),fi),c.addScaledVector(y.subVectors(An[Ie.b],ee),fi),f.addScaledVector(A.subVectors(An[Ie.c],Te),fi)}}a.add($t),c.add(ee),f.add(Te),$t=a,ee=c,Te=f}(wt=t(this,wt,rt,n,$t,ee,Te,q))&&(Vt&&Vt[qt]&&(be=Vt[qt],P.copy(be[0]),k.copy(be[1]),H.copy(be[2]),wt.uv=Oe.getUV(q,$t,ee,Te,P,k,H,new o)),wt.face=Ie,wt.faceIndex=qt,xt.push(wt))}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),D.prototype=Object.create(_.prototype),D.prototype.constructor=D,D.prototype.isCubeTexture=!0,Object.defineProperty(D.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),K.prototype=Object.create(_.prototype),K.prototype.constructor=K,K.prototype.isDataTexture3D=!0;var Vh=new _,jc=new K,Ou=new D,nh=[],Ca=[],yl=new Float32Array(16),Iu=new Float32Array(9),Wh=new Float32Array(4);na.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),vt(e,t)},qa.prototype.setValue=function(t,e,i){for(var n=this.seq,s=0,a=n.length;s!==a;++s){var c=n[s];c.setValue(t,e[c.id],i)}};var jh=/([\w\d_]+)(\])?(\[|\.)?/g;hs.prototype.setValue=function(t,e,i){e=this.map[e],e!==void 0&&e.setValue(t,i,this.renderer)},hs.prototype.setOptional=function(t,e,i){e=e[i],e!==void 0&&this.setValue(t,i,e)},hs.upload=function(t,e,i,n){for(var s=0,a=e.length;s!==a;++s){var c=e[s],f=i[c.id];f.needsUpdate!==!1&&c.setValue(t,f.value,n)}},hs.seqWithValue=function(t,e){for(var i=[],n=0,s=t.length;n!==s;++n){var a=t[n];a.id in e&&i.push(a)}return i};var ks=0,Xh=0;oe.prototype=Object.create(Yt.prototype),oe.prototype.constructor=oe,oe.prototype.isMeshDepthMaterial=!0,oe.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},te.prototype=Object.create(Yt.prototype),te.prototype.constructor=te,te.prototype.isMeshDistanceMaterial=!0,te.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this},ci.prototype=Object.assign(Object.create(B.prototype),{constructor:ci,isGroup:!0}),ke.prototype=Object.assign(Object.create(B.prototype),{constructor:ke,isCamera:!0,copy:function(t,e){return B.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),t=new u),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){B.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return new this.constructor().copy(this)}}),ye.prototype=Object.assign(Object.create(ke.prototype),{constructor:ye,isPerspectiveCamera:!0,copy:function(t,e){return ke.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){t=.5*this.getFilmHeight()/t,this.fov=2*pi.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*pi.DEG2RAD*this.fov);return .5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*pi.RAD2DEG*Math.atan(Math.tan(.5*pi.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,i,n,s,a){this.aspect=t/e,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=this.near,e=t*Math.tan(.5*pi.DEG2RAD*this.fov)/this.zoom,i=2*e,n=this.aspect*i,s=-.5*n,a=this.view;if(this.view!==null&&this.view.enabled){var c=a.fullWidth,f=a.fullHeight;s+=a.offsetX*n/c,e-=a.offsetY*i/f,n*=a.width/c,i*=a.height/f}a=this.filmOffset,a!==0&&(s+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+n,e,e-i,t,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=B.prototype.toJSON.call(this,t),t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),Fe.prototype=Object.assign(Object.create(ye.prototype),{constructor:Fe,isArrayCamera:!0});var oo=new u,wr=new u;Le.prototype.isFogExp2=!0,Le.prototype.clone=function(){return new Le(this.color,this.density)},Le.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},Sn.prototype.isFog=!0,Sn.prototype.clone=function(){return new Sn(this.color,this.near,this.far)},Sn.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},Xn.prototype=Object.assign(Object.create(B.prototype),{constructor:Xn,copy:function(t,e){return B.prototype.copy.call(this,t,e),t.background!==null&&(this.background=t.background.clone()),t.fog!==null&&(this.fog=t.fog.clone()),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=B.prototype.toJSON.call(this,t);return this.background!==null&&(e.object.background=this.background.toJSON(t)),this.fog!==null&&(e.object.fog=this.fog.toJSON()),e}}),Object.defineProperty(Di.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(Di.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=t!==void 0?t.length/this.stride:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,i){t*=this.stride,i*=e.stride;for(var n=0,s=this.stride;n<s;n++)this.array[t+n]=e.array[i+n];return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},clone:function(){return new this.constructor().copy(this)},onUpload:function(t){return this.onUploadCallback=t,this}}),Object.defineProperties(zi.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(zi.prototype,{isInterleavedBufferAttribute:!0,setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this},setXYZW:function(t,e,i,n,s){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this.data.array[t+3]=s,this}}),Gi.prototype=Object.create(Yt.prototype),Gi.prototype.constructor=Gi,Gi.prototype.isSpriteMaterial=!0,Gi.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this};var Pa;nn.prototype=Object.assign(Object.create(B.prototype),{constructor:nn,isSprite:!0,raycast:function(){function t(H,q,J,rt,xt,gt){s.subVectors(H,J).addScalar(.5).multiply(rt),xt!==void 0?(a.x=gt*s.x-xt*s.y,a.y=xt*s.x+gt*s.y):a.copy(s),H.copy(q),H.x+=a.x,H.y+=a.y,H.applyMatrix4(c)}var e=new u,i=new u,n=new u,s=new o,a=new o,c=new p,f=new u,v=new u,y=new u,A=new o,P=new o,k=new o;return function(H,q){i.setFromMatrixScale(this.matrixWorld),c.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),n.setFromMatrixPosition(this.modelViewMatrix);var J=this.material.rotation;if(J!==0)var rt=Math.cos(J),xt=Math.sin(J);J=this.center,t(f.set(-.5,-.5,0),n,J,i,xt,rt),t(v.set(.5,-.5,0),n,J,i,xt,rt),t(y.set(.5,.5,0),n,J,i,xt,rt),A.set(0,0),P.set(1,0),k.set(1,1);var gt=H.ray.intersectTriangle(f,v,y,!1,e);gt===null&&(t(v.set(-.5,.5,0),n,J,i,xt,rt),P.set(0,1),gt=H.ray.intersectTriangle(f,y,v,!1,e),gt===null)||(xt=H.ray.origin.distanceTo(e),xt<H.near||xt>H.far||q.push({distance:xt,point:e.clone(),uv:Oe.getUV(e,f,v,y,A,P,k,new o),face:null,object:this}))}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return B.prototype.copy.call(this,t),t.center!==void 0&&this.center.copy(t.center),this}}),rn.prototype=Object.assign(Object.create(B.prototype),{constructor:rn,copy:function(t){B.prototype.copy.call(this,t,!1),t=t.levels;for(var e=0,i=t.length;e<i;e++){var n=t[e];this.addLevel(n.object.clone(),n.distance)}return this},addLevel:function(t,e){e===void 0&&(e=0),e=Math.abs(e);for(var i=this.levels,n=0;n<i.length&&!(e<i[n].distance);n++);i.splice(n,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,i=1,n=e.length;i<n&&!(t<e[i].distance);i++);return e[i-1].object},raycast:function(){var t=new u;return function(e,i){t.setFromMatrixPosition(this.matrixWorld);var n=e.ray.origin.distanceTo(t);this.getObjectForDistance(n).raycast(e,i)}}(),update:function(){var t=new u,e=new u;return function(i){var n=this.levels;if(1<n.length){t.setFromMatrixPosition(i.matrixWorld),e.setFromMatrixPosition(this.matrixWorld),i=t.distanceTo(e),n[0].object.visible=!0;for(var s=1,a=n.length;s<a&&i>=n[s].distance;s++)n[s-1].object.visible=!1,n[s].object.visible=!0;for(;s<a;s++)n[s].object.visible=!1}}}(),toJSON:function(t){t=B.prototype.toJSON.call(this,t),t.object.levels=[];for(var e=this.levels,i=0,n=e.length;i<n;i++){var s=e[i];t.object.levels.push({object:s.object.uuid,distance:s.distance})}return t}}),Object.assign(un.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var i=new p;this.bones[t]&&i.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(i)}},pose:function(){var t,e,i=0;for(e=this.bones.length;i<e;i++)(t=this.bones[i])&&t.matrixWorld.getInverse(this.boneInverses[i]);for(i=0,e=this.bones.length;i<e;i++)(t=this.bones[i])&&(t.parent&&t.parent.isBone?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:function(){var t=new p,e=new p;return function(){for(var i=this.bones,n=this.boneInverses,s=this.boneMatrices,a=this.boneTexture,c=0,f=i.length;c<f;c++)t.multiplyMatrices(i[c]?i[c].matrixWorld:e,n[c]),t.toArray(s,16*c);a!==void 0&&(a.needsUpdate=!0)}}(),clone:function(){return new un(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,i=this.bones.length;e<i;e++){var n=this.bones[e];if(n.name===t)return n}}}),cn.prototype=Object.assign(Object.create(B.prototype),{constructor:cn,isBone:!0}),Ui.prototype=Object.assign(Object.create(di.prototype),{constructor:Ui,isSkinnedMesh:!0,initBones:function(){var t=[],e;if(this.geometry&&this.geometry.bones!==void 0){var i=0;for(e=this.geometry.bones.length;i<e;i++){var n=this.geometry.bones[i],s=new cn;t.push(s),s.name=n.name,s.position.fromArray(n.pos),s.quaternion.fromArray(n.rotq),n.scl!==void 0&&s.scale.fromArray(n.scl)}for(i=0,e=this.geometry.bones.length;i<e;i++)n=this.geometry.bones[i],n.parent!==-1&&n.parent!==null&&t[n.parent]!==void 0?t[n.parent].add(t[i]):this.add(t[i])}return this.updateMatrixWorld(!0),t},bind:function(t,e){this.skeleton=t,e===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var t;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++){var e=this.geometry.skinWeights[t],i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){e=new T;var n=this.geometry.attributes.skinWeight;for(t=0;t<n.count;t++)e.x=n.getX(t),e.y=n.getY(t),e.z=n.getZ(t),e.w=n.getW(t),i=1/e.manhattanLength(),i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),n.setXYZW(t,e.x,e.y,e.z,e.w)}},updateMatrixWorld:function(t){di.prototype.updateMatrixWorld.call(this,t),this.bindMode==="attached"?this.bindMatrixInverse.getInverse(this.matrixWorld):this.bindMode==="detached"?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),ki.prototype=Object.create(Yt.prototype),ki.prototype.constructor=ki,ki.prototype.isLineBasicMaterial=!0,ki.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},Wi.prototype=Object.assign(Object.create(B.prototype),{constructor:Wi,isLine:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry)if(i.index===null){for(var n=i.attributes.position,s=[0],a=1,c=n.count;a<c;a++)t.fromBufferAttribute(n,a-1),e.fromBufferAttribute(n,a),s[a]=s[a-1],s[a]+=t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,s[0]=0,a=1,c=n.length;a<c;a++)s[a]=s[a-1],s[a]+=n[a-1].distanceTo(n[a]);return this}}(),raycast:function(){var t=new p,e=new Fi,i=new z;return function(n,s){var a=n.linePrecision,c=this.geometry,f=this.matrixWorld;if(c.boundingSphere===null&&c.computeBoundingSphere(),i.copy(c.boundingSphere),i.applyMatrix4(f),i.radius+=a,n.ray.intersectsSphere(i)!==!1){t.getInverse(f),e.copy(n.ray).applyMatrix4(t),a/=(this.scale.x+this.scale.y+this.scale.z)/3,a*=a;var v=new u,y=new u;f=new u;var A=new u,P=this&&this.isLineSegments?2:1;if(c.isBufferGeometry){var k=c.index,H=c.attributes.position.array;if(k!==null){k=k.array,c=0;for(var q=k.length-1;c<q;c+=P){var J=k[c+1];v.fromArray(H,3*k[c]),y.fromArray(H,3*J),J=e.distanceSqToSegment(v,y,A,f),J>a||(A.applyMatrix4(this.matrixWorld),J=n.ray.origin.distanceTo(A),J<n.near||J>n.far||s.push({distance:J,point:f.clone().applyMatrix4(this.matrixWorld),index:c,face:null,faceIndex:null,object:this}))}}else for(c=0,q=H.length/3-1;c<q;c+=P)v.fromArray(H,3*c),y.fromArray(H,3*c+3),J=e.distanceSqToSegment(v,y,A,f),J>a||(A.applyMatrix4(this.matrixWorld),J=n.ray.origin.distanceTo(A),J<n.near||J>n.far||s.push({distance:J,point:f.clone().applyMatrix4(this.matrixWorld),index:c,face:null,faceIndex:null,object:this}))}else if(c.isGeometry)for(v=c.vertices,y=v.length,c=0;c<y-1;c+=P)J=e.distanceSqToSegment(v[c],v[c+1],A,f),J>a||(A.applyMatrix4(this.matrixWorld),J=n.ray.origin.distanceTo(A),J<n.near||J>n.far||s.push({distance:J,point:f.clone().applyMatrix4(this.matrixWorld),index:c,face:null,faceIndex:null,object:this}))}}}(),copy:function(t){return B.prototype.copy.call(this,t),this.geometry.copy(t.geometry),this.material.copy(t.material),this},clone:function(){return new this.constructor().copy(this)}}),gi.prototype=Object.assign(Object.create(Wi.prototype),{constructor:gi,isLineSegments:!0,computeLineDistances:function(){var t=new u,e=new u;return function(){var i=this.geometry;if(i.isBufferGeometry)if(i.index===null){for(var n=i.attributes.position,s=[],a=0,c=n.count;a<c;a+=2)t.fromBufferAttribute(n,a),e.fromBufferAttribute(n,a+1),s[a]=a===0?0:s[a-1],s[a+1]=s[a]+t.distanceTo(e);i.addAttribute("lineDistance",new Et(s,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(i.isGeometry)for(n=i.vertices,s=i.lineDistances,a=0,c=n.length;a<c;a+=2)t.copy(n[a]),e.copy(n[a+1]),s[a]=a===0?0:s[a-1],s[a+1]=s[a]+t.distanceTo(e);return this}}()}),cs.prototype=Object.assign(Object.create(Wi.prototype),{constructor:cs,isLineLoop:!0}),Fn.prototype=Object.create(Yt.prototype),Fn.prototype.constructor=Fn,Fn.prototype.isPointsMaterial=!0,Fn.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this},oa.prototype=Object.assign(Object.create(B.prototype),{constructor:oa,isPoints:!0,raycast:function(){var t=new p,e=new Fi,i=new z;return function(n,s){function a(rt,xt){var gt=e.distanceSqToPoint(rt);gt<A&&(e.closestPointToPoint(rt,P),P.applyMatrix4(v),rt=n.ray.origin.distanceTo(P),rt<n.near||rt>n.far||s.push({distance:rt,distanceToRay:Math.sqrt(gt),point:P.clone(),index:xt,face:null,object:c}))}var c=this,f=this.geometry,v=this.matrixWorld,y=n.params.Points.threshold;if(f.boundingSphere===null&&f.computeBoundingSphere(),i.copy(f.boundingSphere),i.applyMatrix4(v),i.radius+=y,n.ray.intersectsSphere(i)!==!1){t.getInverse(v),e.copy(n.ray).applyMatrix4(t),y/=(this.scale.x+this.scale.y+this.scale.z)/3;var A=y*y;y=new u;var P=new u;if(f.isBufferGeometry){var k=f.index;if(f=f.attributes.position.array,k!==null){var H=k.array;k=0;for(var q=H.length;k<q;k++){var J=H[k];y.fromArray(f,3*J),a(y,J)}}else for(k=0,H=f.length/3;k<H;k++)y.fromArray(f,3*k),a(y,k)}else for(y=f.vertices,k=0,H=y.length;k<H;k++)a(y[k],k)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Rh.prototype=Object.assign(Object.create(_.prototype),{constructor:Rh,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),qs.prototype=Object.create(_.prototype),qs.prototype.constructor=qs,qs.prototype.isCompressedTexture=!0,Za.prototype=Object.create(_.prototype),Za.prototype.constructor=Za,Za.prototype.isCanvasTexture=!0,Ja.prototype=Object.create(_.prototype),Ja.prototype.constructor=Ja,Ja.prototype.isDepthTexture=!0,aa.prototype=Object.create(Ft.prototype),aa.prototype.constructor=aa,$a.prototype=Object.create(X.prototype),$a.prototype.constructor=$a,la.prototype=Object.create(Ft.prototype),la.prototype.constructor=la,ji.prototype=Object.create(X.prototype),ji.prototype.constructor=ji,xi.prototype=Object.create(Ft.prototype),xi.prototype.constructor=xi,Ka.prototype=Object.create(X.prototype),Ka.prototype.constructor=Ka,ha.prototype=Object.create(xi.prototype),ha.prototype.constructor=ha,Qa.prototype=Object.create(X.prototype),Qa.prototype.constructor=Qa,_o.prototype=Object.create(xi.prototype),_o.prototype.constructor=_o,tl.prototype=Object.create(X.prototype),tl.prototype.constructor=tl,ua.prototype=Object.create(xi.prototype),ua.prototype.constructor=ua,ca.prototype=Object.create(X.prototype),ca.prototype.constructor=ca,fa.prototype=Object.create(xi.prototype),fa.prototype.constructor=fa,gn.prototype=Object.create(X.prototype),gn.prototype.constructor=gn,Ys.prototype=Object.create(Ft.prototype),Ys.prototype.constructor=Ys,Zr.prototype=Object.create(X.prototype),Zr.prototype.constructor=Zr,yo.prototype=Object.create(Ft.prototype),yo.prototype.constructor=yo,xo.prototype=Object.create(X.prototype),xo.prototype.constructor=xo,Un.prototype=Object.create(Ft.prototype),Un.prototype.constructor=Un;var Du={triangulate:function(t,e,i){i=i||2;var n=e&&e.length,s=n?e[0]*i:t.length,a=Oh(t,0,s,i,!0),c=[];if(!a)return c;var f;if(n){var v=i;n=[];var y,A=0;for(y=e.length;A<y;A++){var P=e[A]*v,k=A<y-1?e[A+1]*v:t.length;P=Oh(t,P,k,v,!1),P===P.next&&(P.steiner=!0),n.push(_r(P))}for(n.sort(xu),A=0;A<n.length;A++)e=n[A],v=a,(v=wu(e,v))&&(e=el(v,e),pa(e,e.next)),a=pa(a,a.next)}if(t.length>80*i){var H=f=t[0],q=n=t[1];for(v=i;v<s;v+=i)A=t[v],e=t[v+1],A<H&&(H=A),e<q&&(q=e),A>f&&(f=A),e>n&&(n=e);f=Math.max(f-H,n-q),f=f!==0?1/f:0}return da(a,c,i,H,q,f),c}},ws={area:function(t){for(var e=t.length,i=0,n=e-1,s=0;s<e;n=s++)i+=t[n].x*t[s].y-t[s].x*t[n].y;return .5*i},isClockWise:function(t){return 0>ws.area(t)},triangulateShape:function(t,e){var i=[],n=[],s=[];ql(t),Tu(i,t);var a=t.length;for(e.forEach(ql),t=0;t<e.length;t++)n.push(a),a+=e[t].length,Tu(i,e[t]);for(e=Du.triangulate(i,n),t=0;t<e.length;t+=3)s.push(e.slice(t,t+3));return s}};Cs.prototype=Object.create(X.prototype),Cs.prototype.constructor=Cs,Cs.prototype.toJSON=function(){var t=X.prototype.toJSON.call(this);return Mu(this.parameters.shapes,this.parameters.options,t)},ps.prototype=Object.create(Ft.prototype),ps.prototype.constructor=ps,ps.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Mu(this.parameters.shapes,this.parameters.options,t)};var xl={generateTopUV:function(t,e,i,n,s){t=e[3*n],n=e[3*n+1];var a=e[3*s];return s=e[3*s+1],[new o(e[3*i],e[3*i+1]),new o(t,n),new o(a,s)]},generateSideWallUV:function(t,e,i,n,s,a){t=e[3*i];var c=e[3*i+1];i=e[3*i+2];var f=e[3*n],v=e[3*n+1];n=e[3*n+2];var y=e[3*s],A=e[3*s+1];s=e[3*s+2];var P=e[3*a],k=e[3*a+1];return e=e[3*a+2],.01>Math.abs(c-v)?[new o(t,1-i),new o(f,1-n),new o(y,1-s),new o(P,1-e)]:[new o(c,1-i),new o(v,1-n),new o(A,1-s),new o(k,1-e)]}};il.prototype=Object.create(X.prototype),il.prototype.constructor=il,To.prototype=Object.create(ps.prototype),To.prototype.constructor=To,Zs.prototype=Object.create(X.prototype),Zs.prototype.constructor=Zs,Or.prototype=Object.create(Ft.prototype),Or.prototype.constructor=Or,nl.prototype=Object.create(X.prototype),nl.prototype.constructor=nl,Mo.prototype=Object.create(Ft.prototype),Mo.prototype.constructor=Mo,ma.prototype=Object.create(X.prototype),ma.prototype.constructor=ma,Js.prototype=Object.create(Ft.prototype),Js.prototype.constructor=Js,Ps.prototype=Object.create(X.prototype),Ps.prototype.constructor=Ps,Ps.prototype.toJSON=function(){var t=X.prototype.toJSON.call(this);return Su(this.parameters.shapes,t)},$s.prototype=Object.create(Ft.prototype),$s.prototype.constructor=$s,$s.prototype.toJSON=function(){var t=Ft.prototype.toJSON.call(this);return Su(this.parameters.shapes,t)},Ks.prototype=Object.create(Ft.prototype),Ks.prototype.constructor=Ks,Ls.prototype=Object.create(X.prototype),Ls.prototype.constructor=Ls,Rs.prototype=Object.create(Ft.prototype),Rs.prototype.constructor=Rs,ga.prototype=Object.create(Ls.prototype),ga.prototype.constructor=ga,Gn.prototype=Object.create(Rs.prototype),Gn.prototype.constructor=Gn,So.prototype=Object.create(X.prototype),So.prototype.constructor=So,ds.prototype=Object.create(Ft.prototype),ds.prototype.constructor=ds;var _n=Object.freeze({WireframeGeometry:aa,ParametricGeometry:$a,ParametricBufferGeometry:la,TetrahedronGeometry:Ka,TetrahedronBufferGeometry:ha,OctahedronGeometry:Qa,OctahedronBufferGeometry:_o,IcosahedronGeometry:tl,IcosahedronBufferGeometry:ua,DodecahedronGeometry:ca,DodecahedronBufferGeometry:fa,PolyhedronGeometry:ji,PolyhedronBufferGeometry:xi,TubeGeometry:gn,TubeBufferGeometry:Ys,TorusKnotGeometry:Zr,TorusKnotBufferGeometry:yo,TorusGeometry:xo,TorusBufferGeometry:Un,TextGeometry:il,TextBufferGeometry:To,SphereGeometry:Zs,SphereBufferGeometry:Or,RingGeometry:nl,RingBufferGeometry:Mo,PlaneGeometry:Be,PlaneBufferGeometry:me,LatheGeometry:ma,LatheBufferGeometry:Js,ShapeGeometry:Ps,ShapeBufferGeometry:$s,ExtrudeGeometry:Cs,ExtrudeBufferGeometry:ps,EdgesGeometry:Ks,ConeGeometry:ga,ConeBufferGeometry:Gn,CylinderGeometry:Ls,CylinderBufferGeometry:Rs,CircleGeometry:So,CircleBufferGeometry:ds,BoxGeometry:It,BoxBufferGeometry:Bt});Qs.prototype=Object.create(Yt.prototype),Qs.prototype.constructor=Qs,Qs.prototype.isShadowMaterial=!0,Qs.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this},Eo.prototype=Object.create(ti.prototype),Eo.prototype.constructor=Eo,Eo.prototype.isRawShaderMaterial=!0,ms.prototype=Object.create(Yt.prototype),ms.prototype.constructor=ms,ms.prototype.isMeshStandardMaterial=!0,ms.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},bo.prototype=Object.create(ms.prototype),bo.prototype.constructor=bo,bo.prototype.isMeshPhysicalMaterial=!0,bo.prototype.copy=function(t){return ms.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},Jr.prototype=Object.create(Yt.prototype),Jr.prototype.constructor=Jr,Jr.prototype.isMeshPhongMaterial=!0,Jr.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ao.prototype=Object.create(Jr.prototype),Ao.prototype.constructor=Ao,Ao.prototype.isMeshToonMaterial=!0,Ao.prototype.copy=function(t){return Jr.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},Co.prototype=Object.create(Yt.prototype),Co.prototype.constructor=Co,Co.prototype.isMeshNormalMaterial=!0,Co.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ir.prototype=Object.create(Yt.prototype),Ir.prototype.constructor=Ir,Ir.prototype.isMeshLambertMaterial=!0,Ir.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Po.prototype=Object.create(Yt.prototype),Po.prototype.constructor=Po,Po.prototype.isMeshMatcapMaterial=!0,Po.prototype.copy=function(t){return Yt.prototype.copy.call(this,t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Lo.prototype=Object.create(ki.prototype),Lo.prototype.constructor=Lo,Lo.prototype.isLineDashedMaterial=!0,Lo.prototype.copy=function(t){return ki.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var zu=Object.freeze({ShadowMaterial:Qs,SpriteMaterial:Gi,RawShaderMaterial:Eo,ShaderMaterial:ti,PointsMaterial:Fn,MeshPhysicalMaterial:bo,MeshStandardMaterial:ms,MeshPhongMaterial:Jr,MeshToonMaterial:Ao,MeshNormalMaterial:Co,MeshLambertMaterial:Ir,MeshDepthMaterial:oe,MeshDistanceMaterial:te,MeshBasicMaterial:Ge,MeshMatcapMaterial:Po,LineDashedMaterial:Lo,LineBasicMaterial:ki,Material:Yt}),Yn={arraySlice:function(t,e,i){return Yn.isTypedArray(t)?new t.constructor(t.subarray(e,i!==void 0?i:t.length)):t.slice(e,i)},convertArray:function(t,e,i){return!t||!i&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){for(var e=t.length,i=Array(e),n=0;n!==e;++n)i[n]=n;return i.sort(function(s,a){return t[s]-t[a]}),i},sortedArray:function(t,e,i){for(var n=t.length,s=new t.constructor(n),a=0,c=0;c!==n;++a)for(var f=i[a]*e,v=0;v!==e;++v)s[c++]=t[f+v];return s},flattenJSON:function(t,e,i,n){for(var s=1,a=t[0];a!==void 0&&a[n]===void 0;)a=t[s++];if(a!==void 0){var c=a[n];if(c!==void 0)if(Array.isArray(c))do c=a[n],c!==void 0&&(e.push(a.time),i.push.apply(i,c)),a=t[s++];while(a!==void 0);else if(c.toArray!==void 0)do c=a[n],c!==void 0&&(e.push(a.time),c.toArray(i,i.length)),a=t[s++];while(a!==void 0);else do c=a[n],c!==void 0&&(e.push(a.time),i.push(c)),a=t[s++];while(a!==void 0)}}};Object.assign($n.prototype,{evaluate:function(t){var e=this.parameterPositions,i=this._cachedIndex,n=e[i],s=e[i-1];t:{e:{i:{n:if(!(t<n)){for(var a=i+2;;){if(n===void 0){if(t<s)break n;return this._cachedIndex=i=e.length,this.afterEnd_(i-1,t,s)}if(i===a)break;if(s=n,n=e[++i],t<n)break e}n=e.length;break i}if(t>=s)break t;for(a=e[1],t<a&&(i=2,s=a),a=i-2;;){if(s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(i===a)break;if(n=s,s=e[--i-1],t>=s)break e}n=i,i=0}for(;i<n;)s=i+n>>>1,t<e[s]?n=s:i=s+1;if(n=e[i],s=e[i-1],s===void 0)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(n===void 0)return this._cachedIndex=i=e.length,this.afterEnd_(i-1,s,t)}this._cachedIndex=i,this.intervalChanged_(i,s,n)}return this.interpolate_(i,s,t,n)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){var e=this.resultBuffer,i=this.sampleValues,n=this.valueSize;t*=n;for(var s=0;s!==n;++s)e[s]=i[t+s];return e},interpolate_:function(){throw Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign($n.prototype,{beforeStart_:$n.prototype.copySampleValue_,afterEnd_:$n.prototype.copySampleValue_}),rl.prototype=Object.assign(Object.create($n.prototype),{constructor:rl,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(t,e,i){var n=this.parameterPositions,s=t-2,a=t+1,c=n[s],f=n[a];if(c===void 0)switch(this.getSettings_().endingStart){case 2401:s=t,c=2*e-i;break;case 2402:s=n.length-2,c=e+n[s]-n[s+1];break;default:s=t,c=i}if(f===void 0)switch(this.getSettings_().endingEnd){case 2401:a=t,f=2*i-e;break;case 2402:a=1,f=i+n[1]-n[0];break;default:a=t-1,f=e}t=.5*(i-e),n=this.valueSize,this._weightPrev=t/(e-c),this._weightNext=t/(f-i),this._offsetPrev=s*n,this._offsetNext=a*n},interpolate_:function(t,e,i,n){var s=this.resultBuffer,a=this.sampleValues,c=this.valueSize;t*=c;var f=t-c,v=this._offsetPrev,y=this._offsetNext,A=this._weightPrev,P=this._weightNext,k=(i-e)/(n-e);for(i=k*k,n=i*k,e=-A*n+2*A*i-A*k,A=(1+A)*n+(-1.5-2*A)*i+(-.5+A)*k+1,k=(-1-P)*n+(1.5+P)*i+.5*k,P=P*n-P*i,i=0;i!==c;++i)s[i]=e*a[v+i]+A*a[f+i]+k*a[t+i]+P*a[y+i];return s}}),Dr.prototype=Object.assign(Object.create($n.prototype),{constructor:Dr,interpolate_:function(t,e,i,n){var s=this.resultBuffer,a=this.sampleValues,c=this.valueSize;t*=c;var f=t-c;for(e=(i-e)/(n-e),i=1-e,n=0;n!==c;++n)s[n]=a[f+n]*i+a[t+n]*e;return s}}),Ro.prototype=Object.assign(Object.create($n.prototype),{constructor:Ro,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Hn,{toJSON:function(t){var e=t.constructor;if(e.toJSON!==void 0)e=e.toJSON(t);else{e={name:t.name,times:Yn.convertArray(t.times,Array),values:Yn.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e}}),Object.assign(Hn.prototype,{constructor:Hn,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(t){return new Ro(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new Dr(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new rl(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){switch(t){case 2300:var e=this.InterpolantFactoryMethodDiscrete;break;case 2301:e=this.InterpolantFactoryMethodLinear;break;case 2302:e=this.InterpolantFactoryMethodSmooth}if(e===void 0){if(e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name,this.createInterpolant===void 0)if(t!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(e);return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(t!==0)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]+=t;return this},scale:function(t){if(t!==1)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]*=t;return this},trim:function(t,e){for(var i=this.times,n=i.length,s=0,a=n-1;s!==n&&i[s]<t;)++s;for(;a!==-1&&i[a]>e;)--a;return++a,(s!==0||a!==n)&&(s>=a&&(a=Math.max(a,1),s=a-1),t=this.getValueSize(),this.times=Yn.arraySlice(i,s,a),this.values=Yn.arraySlice(this.values,s*t,a*t)),this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);var i=this.times;e=this.values;var n=i.length;n===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var s=null,a=0;a!==n;a++){var c=i[a];if(typeof c=="number"&&isNaN(c)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,c),t=!1;break}if(s!==null&&s>c){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,c,s),t=!1;break}s=c}if(e!==void 0&&Yn.isTypedArray(e)){for(a=0,i=e.length;a!==i;++a)if(n=e[a],isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,n),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,i=this.getValueSize(),n=this.getInterpolation()===2302,s=1,a=t.length-1,c=1;c<a;++c){var f=!1,v=t[c];if(v!==t[c+1]&&(c!==1||v!==v[0]))if(n)f=!0;else{var y=c*i,A=y-i,P=y+i;for(v=0;v!==i;++v){var k=e[y+v];if(k!==e[A+v]||k!==e[P+v]){f=!0;break}}}if(f){if(c!==s)for(t[s]=t[c],f=c*i,y=s*i,v=0;v!==i;++v)e[y+v]=e[f+v];++s}}if(0<a){for(t[s]=t[a],f=a*i,y=s*i,v=0;v!==i;++v)e[y+v]=e[f+v];++s}return s!==t.length&&(this.times=Yn.arraySlice(t,0,s),this.values=Yn.arraySlice(e,0,s*i)),this}}),Yl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Yl,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Zl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Zl,ValueTypeName:"color"}),$r.prototype=Object.assign(Object.create(Hn.prototype),{constructor:$r,ValueTypeName:"number"}),ar.prototype=Object.assign(Object.create($n.prototype),{constructor:ar,interpolate_:function(t,e,i,n){var s=this.resultBuffer,a=this.sampleValues,c=this.valueSize;for(t*=c,e=(i-e)/(n-e),i=t+c;t!==i;t+=4)d.slerpFlat(s,0,a,t-c,a,t,e);return s}}),va.prototype=Object.assign(Object.create(Hn.prototype),{constructor:va,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(t){return new ar(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Jl.prototype=Object.assign(Object.create(Hn.prototype),{constructor:Jl,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),_a.prototype=Object.assign(Object.create(Hn.prototype),{constructor:_a,ValueTypeName:"vector"}),Object.assign(yr,{parse:function(t){for(var e=[],i=t.tracks,n=1/(t.fps||1),s=0,a=i.length;s!==a;++s)e.push(Gc(i[s]).scale(n));return new yr(t.name,t.duration,e)},toJSON:function(t){var e=[],i=t.tracks;t={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid};for(var n=0,s=i.length;n!==s;++n)e.push(Hn.toJSON(i[n]));return t},CreateFromMorphTargetSequence:function(t,e,i,n){for(var s=e.length,a=[],c=0;c<s;c++){var f=[],v=[];f.push((c+s-1)%s,c,(c+1)%s),v.push(0,1,0);var y=Yn.getKeyframeOrder(f);f=Yn.sortedArray(f,1,y),v=Yn.sortedArray(v,1,y),n||f[0]!==0||(f.push(s),v.push(v[0])),a.push(new $r(".morphTargetInfluences["+e[c].name+"]",f,v).scale(1/i))}return new yr(t,-1,a)},findByName:function(t,e){var i=t;for(Array.isArray(t)||(i=t.geometry&&t.geometry.animations||t.animations),t=0;t<i.length;t++)if(i[t].name===e)return i[t];return null},CreateClipsFromMorphTargetSequences:function(t,e,i){for(var n={},s=/^([\w-]*?)([\d]+)$/,a=0,c=t.length;a<c;a++){var f=t[a],v=f.name.match(s);if(v&&1<v.length){var y=v[1];(v=n[y])||(n[y]=v=[]),v.push(f)}}t=[];for(y in n)t.push(yr.CreateFromMorphTargetSequence(y,n[y],e,i));return t},parseAnimation:function(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;var i=function(J,rt,xt,gt,At){if(xt.length!==0){var wt=[],Vt=[];Yn.flattenJSON(xt,wt,Vt,gt),wt.length!==0&&At.push(new J(rt,wt,Vt))}},n=[],s=t.name||"default",a=t.length||-1,c=t.fps||30;t=t.hierarchy||[];for(var f=0;f<t.length;f++){var v=t[f].keys;if(v&&v.length!==0)if(v[0].morphTargets){a={};for(var y=0;y<v.length;y++)if(v[y].morphTargets)for(var A=0;A<v[y].morphTargets.length;A++)a[v[y].morphTargets[A]]=-1;for(var P in a){var k=[],H=[];for(A=0;A!==v[y].morphTargets.length;++A){var q=v[y];k.push(q.time),H.push(q.morphTarget===P?1:0)}n.push(new $r(".morphTargetInfluence["+P+"]",k,H))}a=a.length*(c||1)}else y=".bones["+e[f].name+"]",i(_a,y+".position",v,"pos",n),i(va,y+".quaternion",v,"rot",n),i(_a,y+".scale",v,"scl",n)}return n.length===0?null:new yr(s,a,n)}}),Object.assign(yr.prototype,{resetDuration:function(){for(var t=0,e=0,i=this.tracks.length;e!==i;++e){var n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){for(var t=!0,e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}});var Ts={enabled:!1,files:{},add:function(t,e){this.enabled!==!1&&(this.files[t]=e)},get:function(t){if(this.enabled!==!1)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}},tr=new to,Br={};Object.assign(Rt.prototype,{load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,a=Ts.get(t);if(a!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(a),s.manager.itemEnd(t)},0),a;if(Br[t]!==void 0)Br[t].push({onLoad:e,onProgress:i,onError:n});else{var c=t.match(/^data:(.*?)(;base64)?,(.*)$/);if(c){i=c[1];var f=!!c[2];c=c[3],c=decodeURIComponent(c),f&&(c=atob(c));try{var v=(this.responseType||"").toLowerCase();switch(v){case"arraybuffer":case"blob":var y=new Uint8Array(c.length);for(f=0;f<c.length;f++)y[f]=c.charCodeAt(f);var A=v==="blob"?new Blob([y.buffer],{type:i}):y.buffer;break;case"document":A=new DOMParser().parseFromString(c,i);break;case"json":A=JSON.parse(c);break;default:A=c}setTimeout(function(){e&&e(A),s.manager.itemEnd(t)},0)}catch(k){setTimeout(function(){n&&n(k),s.manager.itemError(t),s.manager.itemEnd(t)},0)}}else{Br[t]=[],Br[t].push({onLoad:e,onProgress:i,onError:n});var P=new XMLHttpRequest;P.open("GET",t,!0),P.addEventListener("load",function(k){var H=this.response;Ts.add(t,H);var q=Br[t];if(delete Br[t],this.status===200||this.status===0){this.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received.");for(var J=0,rt=q.length;J<rt;J++){var xt=q[J];xt.onLoad&&xt.onLoad(H)}}else{for(J=0,rt=q.length;J<rt;J++)xt=q[J],xt.onError&&xt.onError(k);s.manager.itemError(t)}s.manager.itemEnd(t)},!1),P.addEventListener("progress",function(k){for(var H=Br[t],q=0,J=H.length;q<J;q++){var rt=H[q];rt.onProgress&&rt.onProgress(k)}},!1),P.addEventListener("error",function(k){var H=Br[t];delete Br[t];for(var q=0,J=H.length;q<J;q++){var rt=H[q];rt.onError&&rt.onError(k)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),P.addEventListener("abort",function(k){var H=Br[t];delete Br[t];for(var q=0,J=H.length;q<J;q++){var rt=H[q];rt.onError&&rt.onError(k)}s.manager.itemError(t),s.manager.itemEnd(t)},!1),this.responseType!==void 0&&(P.responseType=this.responseType),this.withCredentials!==void 0&&(P.withCredentials=this.withCredentials),P.overrideMimeType&&P.overrideMimeType(this.mimeType!==void 0?this.mimeType:"text/plain");for(f in this.requestHeader)P.setRequestHeader(f,this.requestHeader[f]);P.send(null)}return s.manager.itemStart(t),P}},setPath:function(t){return this.path=t,this},setResponseType:function(t){return this.responseType=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setMimeType:function(t){return this.mimeType=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}}),Object.assign(Qt.prototype,{load:function(t,e,i,n){var s=this,a=new Rt(s.manager);a.setPath(s.path),a.load(t,function(c){e(s.parse(JSON.parse(c)))},i,n)},parse:function(t,e){for(var i=[],n=0;n<t.length;n++){var s=yr.parse(t[n]);i.push(s)}e(i)},setPath:function(t){return this.path=t,this}}),Object.assign(Zt.prototype,{load:function(t,e,i,n){function s(k){v.load(t[k],function(H){H=a._parser(H,!0),c[k]={width:H.width,height:H.height,format:H.format,mipmaps:H.mipmaps},y+=1,y===6&&(H.mipmapCount===1&&(f.minFilter=1006),f.format=H.format,f.needsUpdate=!0,e&&e(f))},i,n)}var a=this,c=[],f=new qs;f.image=c;var v=new Rt(this.manager);if(v.setPath(this.path),v.setResponseType("arraybuffer"),Array.isArray(t))for(var y=0,A=0,P=t.length;A<P;++A)s(A);else v.load(t,function(k){if(k=a._parser(k,!0),k.isCubemap)for(var H=k.mipmaps.length/k.mipmapCount,q=0;q<H;q++){c[q]={mipmaps:[]};for(var J=0;J<k.mipmapCount;J++)c[q].mipmaps.push(k.mipmaps[q*k.mipmapCount+J]),c[q].format=k.format,c[q].width=k.width,c[q].height=k.height}else f.image.width=k.width,f.image.height=k.height,f.mipmaps=k.mipmaps;k.mipmapCount===1&&(f.minFilter=1006),f.format=k.format,f.needsUpdate=!0,e&&e(f)},i,n);return f},setPath:function(t){return this.path=t,this}}),Object.assign(Ue.prototype,{load:function(t,e,i,n){var s=this,a=new I,c=new Rt(this.manager);return c.setResponseType("arraybuffer"),c.setPath(this.path),c.load(t,function(f){(f=s._parser(f))&&(f.image!==void 0?a.image=f.image:f.data!==void 0&&(a.image.width=f.width,a.image.height=f.height,a.image.data=f.data),a.wrapS=f.wrapS!==void 0?f.wrapS:1001,a.wrapT=f.wrapT!==void 0?f.wrapT:1001,a.magFilter=f.magFilter!==void 0?f.magFilter:1006,a.minFilter=f.minFilter!==void 0?f.minFilter:1008,a.anisotropy=f.anisotropy!==void 0?f.anisotropy:1,f.format!==void 0&&(a.format=f.format),f.type!==void 0&&(a.type=f.type),f.mipmaps!==void 0&&(a.mipmaps=f.mipmaps),f.mipmapCount===1&&(a.minFilter=1006),a.needsUpdate=!0,e&&e(a,f))},i,n),a},setPath:function(t){return this.path=t,this}}),Object.assign(ai.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(){v.removeEventListener("load",s,!1),v.removeEventListener("error",a,!1),Ts.add(t,this),e&&e(this),c.manager.itemEnd(t)}function a(y){v.removeEventListener("load",s,!1),v.removeEventListener("error",a,!1),n&&n(y),c.manager.itemError(t),c.manager.itemEnd(t)}t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var c=this,f=Ts.get(t);if(f!==void 0)return c.manager.itemStart(t),setTimeout(function(){e&&e(f),c.manager.itemEnd(t)},0),f;var v=document.createElementNS("http://www.w3.org/1999/xhtml","img");return v.addEventListener("load",s,!1),v.addEventListener("error",a,!1),t.substr(0,5)!=="data:"&&this.crossOrigin!==void 0&&(v.crossOrigin=this.crossOrigin),c.manager.itemStart(t),v.src=t,v},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Bi.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){function s(v){c.load(t[v],function(y){a.images[v]=y,f++,f===6&&(a.needsUpdate=!0,e&&e(a))},void 0,n)}var a=new D,c=new ai(this.manager);c.setCrossOrigin(this.crossOrigin),c.setPath(this.path);var f=0;for(i=0;i<t.length;++i)s(i);return a},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(fn.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=new _,a=new ai(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(t,function(c){s.image=c,c=0<t.search(/\.jpe?g$/i)||t.search(/^data:image\/jpeg/)===0,s.format=c?1022:1023,s.needsUpdate=!0,e!==void 0&&e(s)},i,n),s},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ee.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){return t=this.getUtoTmapping(t),this.getPoint(t,e)},getPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e},getSpacedPoints:function(t){t===void 0&&(t=5);for(var e=[],i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(t===void 0&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e=[],i=this.getPoint(0),n,s=0;for(e.push(0),n=1;n<=t;n++){var a=this.getPoint(n/t);s+=a.distanceTo(i),e.push(s),i=a}return this.cacheArcLengths=e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var i=this.getLengths(),n=i.length;e=e||t*i[n-1];for(var s=0,a=n-1,c;s<=a;)if(t=Math.floor(s+(a-s)/2),c=i[t]-e,0>c)s=t+1;else if(0<c)a=t-1;else{a=t;break}return t=a,i[t]===e?t/(n-1):(s=i[t],(t+(e-s)/(i[t+1]-s))/(n-1))},getTangent:function(t){var e=t-1e-4;return t+=1e-4,0>e&&(e=0),1<t&&(t=1),e=this.getPoint(e),this.getPoint(t).clone().sub(e).normalize()},getTangentAt:function(t){return t=this.getUtoTmapping(t),this.getTangent(t)},computeFrenetFrames:function(t,e){var i=new u,n=[],s=[],a=[],c=new u,f=new p,v;for(v=0;v<=t;v++){var y=v/t;n[v]=this.getTangentAt(y),n[v].normalize()}s[0]=new u,a[0]=new u,v=Number.MAX_VALUE,y=Math.abs(n[0].x);var A=Math.abs(n[0].y),P=Math.abs(n[0].z);for(y<=v&&(v=y,i.set(1,0,0)),A<=v&&(v=A,i.set(0,1,0)),P<=v&&i.set(0,0,1),c.crossVectors(n[0],i).normalize(),s[0].crossVectors(n[0],c),a[0].crossVectors(n[0],s[0]),v=1;v<=t;v++)s[v]=s[v-1].clone(),a[v]=a[v-1].clone(),c.crossVectors(n[v-1],n[v]),c.length()>Number.EPSILON&&(c.normalize(),i=Math.acos(pi.clamp(n[v-1].dot(n[v]),-1,1)),s[v].applyMatrix4(f.makeRotationAxis(c,i))),a[v].crossVectors(n[v],s[v]);if(e===!0)for(i=Math.acos(pi.clamp(s[0].dot(s[t]),-1,1)),i/=t,0<n[0].dot(c.crossVectors(s[0],s[t]))&&(i=-i),v=1;v<=t;v++)s[v].applyMatrix4(f.makeRotationAxis(n[v],i*v)),a[v].crossVectors(n[v],s[v]);return{tangents:n,normals:s,binormals:a}},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){var t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Kn.prototype=Object.create(Ee.prototype),Kn.prototype.constructor=Kn,Kn.prototype.isEllipseCurve=!0,Kn.prototype.getPoint=function(t,e){e=e||new o;for(var i=2*Math.PI,n=this.aEndAngle-this.aStartAngle,s=Math.abs(n)<Number.EPSILON;0>n;)n+=i;for(;n>i;)n-=i;n<Number.EPSILON&&(n=s?0:i),this.aClockwise!==!0||s||(n=n===i?-i:n-i),i=this.aStartAngle+t*n,t=this.aX+this.xRadius*Math.cos(i);var a=this.aY+this.yRadius*Math.sin(i);return this.aRotation!==0&&(i=Math.cos(this.aRotation),n=Math.sin(this.aRotation),s=t-this.aX,a-=this.aY,t=s*i-a*n+this.aX,a=s*n+a*i+this.aY),e.set(t,a)},Kn.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Kn.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},Kn.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},ya.prototype=Object.create(Kn.prototype),ya.prototype.constructor=ya,ya.prototype.isArcCurve=!0;var bn=new u,wl=new lr,rh=new lr,Nr=new lr;On.prototype=Object.create(Ee.prototype),On.prototype.constructor=On,On.prototype.isCatmullRomCurve3=!0,On.prototype.getPoint=function(t,e){e=e||new u;var i=this.points,n=i.length;t*=n-(this.closed?0:1);var s=Math.floor(t);if(t-=s,this.closed?s+=0<s?0:(Math.floor(Math.abs(s)/n)+1)*n:t===0&&s===n-1&&(s=n-2,t=1),this.closed||0<s)var a=i[(s-1)%n];else bn.subVectors(i[0],i[1]).add(i[0]),a=bn;var c=i[s%n],f=i[(s+1)%n];if(this.closed||s+2<n?i=i[(s+2)%n]:(bn.subVectors(i[n-1],i[n-2]).add(i[n-1]),i=bn),this.curveType==="centripetal"||this.curveType==="chordal"){var v=this.curveType==="chordal"?.5:.25;n=Math.pow(a.distanceToSquared(c),v),s=Math.pow(c.distanceToSquared(f),v),v=Math.pow(f.distanceToSquared(i),v),1e-4>s&&(s=1),1e-4>n&&(n=s),1e-4>v&&(v=s),wl.initNonuniformCatmullRom(a.x,c.x,f.x,i.x,n,s,v),rh.initNonuniformCatmullRom(a.y,c.y,f.y,i.y,n,s,v),Nr.initNonuniformCatmullRom(a.z,c.z,f.z,i.z,n,s,v)}else this.curveType==="catmullrom"&&(wl.initCatmullRom(a.x,c.x,f.x,i.x,this.tension),rh.initCatmullRom(a.y,c.y,f.y,i.y,this.tension),Nr.initCatmullRom(a.z,c.z,f.z,i.z,this.tension));return e.set(wl.calc(t),rh.calc(t),Nr.calc(t)),e},On.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},On.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},On.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new u().fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},hr.prototype=Object.create(Ee.prototype),hr.prototype.constructor=hr,hr.prototype.isCubicBezierCurve=!0,hr.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2,a=this.v3;return e.set(eo(t,i.x,n.x,s.x,a.x),eo(t,i.y,n.y,s.y,a.y)),e},hr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},hr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},hr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Ti.prototype=Object.create(Ee.prototype),Ti.prototype.constructor=Ti,Ti.prototype.isCubicBezierCurve3=!0,Ti.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2,a=this.v3;return e.set(eo(t,i.x,n.x,s.x,a.x),eo(t,i.y,n.y,s.y,a.y),eo(t,i.z,n.z,s.z,a.z)),e},Ti.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Ti.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Ti.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},ur.prototype=Object.create(Ee.prototype),ur.prototype.constructor=ur,ur.prototype.isLineCurve=!0,ur.prototype.getPoint=function(t,e){return e=e||new o,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},ur.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},ur.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},ur.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},ur.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},ur.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},zr.prototype=Object.create(Ee.prototype),zr.prototype.constructor=zr,zr.prototype.isLineCurve3=!0,zr.prototype.getPoint=function(t,e){return e=e||new u,t===1?e.copy(this.v2):(e.copy(this.v2).sub(this.v1),e.multiplyScalar(t).add(this.v1)),e},zr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},zr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},zr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},zr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},cr.prototype=Object.create(Ee.prototype),cr.prototype.constructor=cr,cr.prototype.isQuadraticBezierCurve=!0,cr.prototype.getPoint=function(t,e){e=e||new o;var i=this.v0,n=this.v1,s=this.v2;return e.set(gs(t,i.x,n.x,s.x),gs(t,i.y,n.y,s.y)),e},cr.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},cr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},cr.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},vs.prototype=Object.create(Ee.prototype),vs.prototype.constructor=vs,vs.prototype.isQuadraticBezierCurve3=!0,vs.prototype.getPoint=function(t,e){e=e||new u;var i=this.v0,n=this.v1,s=this.v2;return e.set(gs(t,i.x,n.x,s.x),gs(t,i.y,n.y,s.y),gs(t,i.z,n.z,s.z)),e},vs.prototype.copy=function(t){return Ee.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},vs.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},vs.prototype.fromJSON=function(t){return Ee.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Kr.prototype=Object.create(Ee.prototype),Kr.prototype.constructor=Kr,Kr.prototype.isSplineCurve=!0,Kr.prototype.getPoint=function(t,e){e=e||new o;var i=this.points,n=(i.length-1)*t;t=Math.floor(n),n-=t;var s=i[t===0?t:t-1],a=i[t],c=i[t>i.length-2?i.length-1:t+1];return i=i[t>i.length-3?i.length-1:t+2],e.set(Eu(n,s.x,a.x,c.x,i.x),Eu(n,s.y,a.y,c.y,i.y)),e},Kr.prototype.copy=function(t){Ee.prototype.copy.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++)this.points.push(t.points[e].clone());return this},Kr.prototype.toJSON=function(){var t=Ee.prototype.toJSON.call(this);t.points=[];for(var e=0,i=this.points.length;e<i;e++)t.points.push(this.points[e].toArray());return t},Kr.prototype.fromJSON=function(t){Ee.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,i=t.points.length;e<i;e++){var n=t.points[e];this.points.push(new o().fromArray(n))}return this};var sh=Object.freeze({ArcCurve:ya,CatmullRomCurve3:On,CubicBezierCurve:hr,CubicBezierCurve3:Ti,EllipseCurve:Kn,LineCurve:ur,LineCurve3:zr,QuadraticBezierCurve:cr,QuadraticBezierCurve3:vs,SplineCurve:Kr});Os.prototype=Object.assign(Object.create(Ee.prototype),{constructor:Os,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new ur(e,t))},getPoint:function(t){var e=t*this.getLength(),i=this.getCurveLengths();for(t=0;t<i.length;){if(i[t]>=e)return e=i[t]-e,t=this.curves[t],i=t.getLength(),t.getPointAt(i===0?0:1-e/i);t++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=0,n=this.curves.length;i<n;i++)e+=this.curves[i].getLength(),t.push(e);return this.cacheLengths=t},getSpacedPoints:function(t){t===void 0&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e=[],i,n=0,s=this.curves;n<s.length;n++){var a=s[n];a=a.getPoints(a&&a.isEllipseCurve?2*t:a&&(a.isLineCurve||a.isLineCurve3)?1:a&&a.isSplineCurve?t*a.points.length:t);for(var c=0;c<a.length;c++){var f=a[c];i&&i.equals(f)||(e.push(f),i=f)}}return this.autoClose&&1<e.length&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e},copy:function(t){Ee.prototype.copy.call(this,t),this.curves=[];for(var e=0,i=t.curves.length;e<i;e++)this.curves.push(t.curves[e].clone());return this.autoClose=t.autoClose,this},toJSON:function(){var t=Ee.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,i=this.curves.length;e<i;e++)t.curves.push(this.curves[e].toJSON());return t},fromJSON:function(t){Ee.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,i=t.curves.length;e<i;e++){var n=t.curves[e];this.curves.push(new sh[n.type]().fromJSON(n))}return this}}),fr.prototype=Object.assign(Object.create(Os.prototype),{constructor:fr,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,i=t.length;e<i;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.currentPoint.set(t,e)},lineTo:function(t,e){var i=new ur(this.currentPoint.clone(),new o(t,e));this.curves.push(i),this.currentPoint.set(t,e)},quadraticCurveTo:function(t,e,i,n){t=new cr(this.currentPoint.clone(),new o(t,e),new o(i,n)),this.curves.push(t),this.currentPoint.set(i,n)},bezierCurveTo:function(t,e,i,n,s,a){t=new hr(this.currentPoint.clone(),new o(t,e),new o(i,n),new o(s,a)),this.curves.push(t),this.currentPoint.set(s,a)},splineThru:function(t){var e=[this.currentPoint.clone()].concat(t);e=new Kr(e),this.curves.push(e),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,i,n,s,a){this.absarc(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,a)},absarc:function(t,e,i,n,s,a){this.absellipse(t,e,i,i,n,s,a)},ellipse:function(t,e,i,n,s,a,c,f){this.absellipse(t+this.currentPoint.x,e+this.currentPoint.y,i,n,s,a,c,f)},absellipse:function(t,e,i,n,s,a,c,f){t=new Kn(t,e,i,n,s,a,c,f),0<this.curves.length&&(e=t.getPoint(0),e.equals(this.currentPoint)||this.lineTo(e.x,e.y)),this.curves.push(t),t=t.getPoint(1),this.currentPoint.copy(t)},copy:function(t){return Os.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=Os.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return Os.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),Qn.prototype=Object.assign(Object.create(fr.prototype),{constructor:Qn,getPointsHoles:function(t){for(var e=[],i=0,n=this.holes.length;i<n;i++)e[i]=this.holes[i].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){fr.prototype.copy.call(this,t),this.holes=[];for(var e=0,i=t.holes.length;e<i;e++)this.holes.push(t.holes[e].clone());return this},toJSON:function(){var t=fr.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,i=this.holes.length;e<i;e++)t.holes.push(this.holes[e].toJSON());return t},fromJSON:function(t){fr.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,i=t.holes.length;e<i;e++){var n=t.holes[e];this.holes.push(new fr().fromJSON(n))}return this}}),tn.prototype=Object.assign(Object.create(B.prototype),{constructor:tn,isLight:!0,copy:function(t){return B.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){return t=B.prototype.toJSON.call(this,t),t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}),sl.prototype=Object.assign(Object.create(tn.prototype),{constructor:sl,isHemisphereLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(_s.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return new this.constructor().copy(this)},toJSON:function(){var t={};return this.bias!==0&&(t.bias=this.bias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),ol.prototype=Object.assign(Object.create(_s.prototype),{constructor:ol,isSpotLightShadow:!0,update:function(t){var e=this.camera,i=2*pi.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height;t=t.distance||e.far,(i!==e.fov||n!==e.aspect||t!==e.far)&&(e.fov=i,e.aspect=n,e.far=t,e.updateProjectionMatrix())}}),al.prototype=Object.assign(Object.create(tn.prototype),{constructor:al,isSpotLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Oo.prototype=Object.assign(Object.create(tn.prototype),{constructor:Oo,isPointLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),xa.prototype=Object.assign(Object.create(ke.prototype),{constructor:xa,isOrthographicCamera:!0,copy:function(t,e){return ke.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this},setViewOffset:function(t,e,i,n,s,a){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=s,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,s=i-t;if(i+=t,t=n+e,e=n-e,this.view!==null&&this.view.enabled){i=this.zoom/(this.view.width/this.view.fullWidth),e=this.zoom/(this.view.height/this.view.fullHeight);var a=(this.right-this.left)/this.view.width;n=(this.top-this.bottom)/this.view.height,s+=this.view.offsetX/i*a,i=s+this.view.width/i*a,t-=this.view.offsetY/e*n,e=t-this.view.height/e*n}this.projectionMatrix.makeOrthographic(s,i,t,e,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){return t=B.prototype.toJSON.call(this,t),t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}),io.prototype=Object.assign(Object.create(_s.prototype),{constructor:io}),ys.prototype=Object.assign(Object.create(tn.prototype),{constructor:ys,isDirectionalLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Io.prototype=Object.assign(Object.create(tn.prototype),{constructor:Io,isAmbientLight:!0}),$l.prototype=Object.assign(Object.create(tn.prototype),{constructor:$l,isRectAreaLight:!0,copy:function(t){return tn.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){return t=tn.prototype.toJSON.call(this,t),t.object.width=this.width,t.object.height=this.height,t}}),Object.assign(Kl.prototype,{load:function(t,e,i,n){var s=this,a=new Rt(s.manager);a.setPath(s.path),a.load(t,function(c){e(s.parse(JSON.parse(c)))},i,n)},parse:function(t){function e(c){return i[c]===void 0&&console.warn("THREE.MaterialLoader: Undefined texture",c),i[c]}var i=this.textures,n=new zu[t.type];if(t.uuid!==void 0&&(n.uuid=t.uuid),t.name!==void 0&&(n.name=t.name),t.color!==void 0&&n.color.setHex(t.color),t.roughness!==void 0&&(n.roughness=t.roughness),t.metalness!==void 0&&(n.metalness=t.metalness),t.emissive!==void 0&&n.emissive.setHex(t.emissive),t.specular!==void 0&&n.specular.setHex(t.specular),t.shininess!==void 0&&(n.shininess=t.shininess),t.clearCoat!==void 0&&(n.clearCoat=t.clearCoat),t.clearCoatRoughness!==void 0&&(n.clearCoatRoughness=t.clearCoatRoughness),t.vertexColors!==void 0&&(n.vertexColors=t.vertexColors),t.fog!==void 0&&(n.fog=t.fog),t.flatShading!==void 0&&(n.flatShading=t.flatShading),t.blending!==void 0&&(n.blending=t.blending),t.combine!==void 0&&(n.combine=t.combine),t.side!==void 0&&(n.side=t.side),t.opacity!==void 0&&(n.opacity=t.opacity),t.transparent!==void 0&&(n.transparent=t.transparent),t.alphaTest!==void 0&&(n.alphaTest=t.alphaTest),t.depthTest!==void 0&&(n.depthTest=t.depthTest),t.depthWrite!==void 0&&(n.depthWrite=t.depthWrite),t.colorWrite!==void 0&&(n.colorWrite=t.colorWrite),t.wireframe!==void 0&&(n.wireframe=t.wireframe),t.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=t.wireframeLinewidth),t.wireframeLinecap!==void 0&&(n.wireframeLinecap=t.wireframeLinecap),t.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=t.wireframeLinejoin),t.rotation!==void 0&&(n.rotation=t.rotation),t.linewidth!==1&&(n.linewidth=t.linewidth),t.dashSize!==void 0&&(n.dashSize=t.dashSize),t.gapSize!==void 0&&(n.gapSize=t.gapSize),t.scale!==void 0&&(n.scale=t.scale),t.polygonOffset!==void 0&&(n.polygonOffset=t.polygonOffset),t.polygonOffsetFactor!==void 0&&(n.polygonOffsetFactor=t.polygonOffsetFactor),t.polygonOffsetUnits!==void 0&&(n.polygonOffsetUnits=t.polygonOffsetUnits),t.skinning!==void 0&&(n.skinning=t.skinning),t.morphTargets!==void 0&&(n.morphTargets=t.morphTargets),t.dithering!==void 0&&(n.dithering=t.dithering),t.visible!==void 0&&(n.visible=t.visible),t.userData!==void 0&&(n.userData=t.userData),t.uniforms!==void 0)for(var s in t.uniforms){var a=t.uniforms[s];switch(n.uniforms[s]={},a.type){case"t":n.uniforms[s].value=e(a.value);break;case"c":n.uniforms[s].value=new L().setHex(a.value);break;case"v2":n.uniforms[s].value=new o().fromArray(a.value);break;case"v3":n.uniforms[s].value=new u().fromArray(a.value);break;case"v4":n.uniforms[s].value=new T().fromArray(a.value);break;case"m4":n.uniforms[s].value=new p().fromArray(a.value);break;default:n.uniforms[s].value=a.value}}return t.defines!==void 0&&(n.defines=t.defines),t.vertexShader!==void 0&&(n.vertexShader=t.vertexShader),t.fragmentShader!==void 0&&(n.fragmentShader=t.fragmentShader),t.shading!==void 0&&(n.flatShading=t.shading===1),t.size!==void 0&&(n.size=t.size),t.sizeAttenuation!==void 0&&(n.sizeAttenuation=t.sizeAttenuation),t.map!==void 0&&(n.map=e(t.map)),t.alphaMap!==void 0&&(n.alphaMap=e(t.alphaMap),n.transparent=!0),t.bumpMap!==void 0&&(n.bumpMap=e(t.bumpMap)),t.bumpScale!==void 0&&(n.bumpScale=t.bumpScale),t.normalMap!==void 0&&(n.normalMap=e(t.normalMap)),t.normalMapType!==void 0&&(n.normalMapType=t.normalMapType),t.normalScale!==void 0&&(s=t.normalScale,Array.isArray(s)===!1&&(s=[s,s]),n.normalScale=new o().fromArray(s)),t.displacementMap!==void 0&&(n.displacementMap=e(t.displacementMap)),t.displacementScale!==void 0&&(n.displacementScale=t.displacementScale),t.displacementBias!==void 0&&(n.displacementBias=t.displacementBias),t.roughnessMap!==void 0&&(n.roughnessMap=e(t.roughnessMap)),t.metalnessMap!==void 0&&(n.metalnessMap=e(t.metalnessMap)),t.emissiveMap!==void 0&&(n.emissiveMap=e(t.emissiveMap)),t.emissiveIntensity!==void 0&&(n.emissiveIntensity=t.emissiveIntensity),t.specularMap!==void 0&&(n.specularMap=e(t.specularMap)),t.envMap!==void 0&&(n.envMap=e(t.envMap)),t.envMapIntensity!==void 0&&(n.envMapIntensity=t.envMapIntensity),t.reflectivity!==void 0&&(n.reflectivity=t.reflectivity),t.lightMap!==void 0&&(n.lightMap=e(t.lightMap)),t.lightMapIntensity!==void 0&&(n.lightMapIntensity=t.lightMapIntensity),t.aoMap!==void 0&&(n.aoMap=e(t.aoMap)),t.aoMapIntensity!==void 0&&(n.aoMapIntensity=t.aoMapIntensity),t.gradientMap!==void 0&&(n.gradientMap=e(t.gradientMap)),n},setPath:function(t){return this.path=t,this},setTextures:function(t){return this.textures=t,this}});var Fo={decodeText:function(t){if(typeof TextDecoder<"u")return new TextDecoder().decode(t);for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]);return decodeURIComponent(escape(e))},extractUrlBase:function(t){var e=t.lastIndexOf("/");return e===-1?"./":t.substr(0,e+1)}};Object.assign(Dh.prototype,{load:function(t,e,i,n){var s=this,a=new Rt(s.manager);a.setPath(s.path),a.load(t,function(c){e(s.parse(JSON.parse(c)))},i,n)},parse:function(t){var e=new Ft,i=t.data.index;i!==void 0&&(i=new ao[i.type](i.array),e.setIndex(new $(i,1)));var n=t.data.attributes;for(a in n){var s=n[a];i=new ao[s.type](s.array),e.addAttribute(a,new $(i,s.itemSize,s.normalized))}var a=t.data.groups||t.data.drawcalls||t.data.offsets;if(a!==void 0)for(i=0,n=a.length;i!==n;++i)s=a[i],e.addGroup(s.start,s.count,s.materialIndex);return t=t.data.boundingSphere,t!==void 0&&(a=new u,t.center!==void 0&&a.fromArray(t.center),e.boundingSphere=new z(a,t.radius)),e},setPath:function(t){return this.path=t,this}});var ao={Int8Array,Uint8Array,Uint8ClampedArray:typeof Uint8ClampedArray<"u"?Uint8ClampedArray:Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};Is.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,i=0,n=e.length;i<n;i+=2){var s=e[i+1];if(e[i].test(t))return s}return null}},Object.assign(Is.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,i){for(var n=[],s=0;s<t.length;++s)n[s]=this.createMaterial(t[s],e,i);return n},createMaterial:function(){var t={NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5},e=new L,i=new fn,n=new Kl;return function(s,a,c){function f(k,H,q,J,rt){k=a+k;var xt=Is.Handlers.get(k);return xt!==null?k=xt.load(k):(i.setCrossOrigin(c),k=i.load(k)),H!==void 0&&(k.repeat.fromArray(H),H[0]!==1&&(k.wrapS=1e3),H[1]!==1&&(k.wrapT=1e3)),q!==void 0&&k.offset.fromArray(q),J!==void 0&&(J[0]==="repeat"&&(k.wrapS=1e3),J[0]==="mirror"&&(k.wrapS=1002),J[1]==="repeat"&&(k.wrapT=1e3),J[1]==="mirror"&&(k.wrapT=1002)),rt!==void 0&&(k.anisotropy=rt),H=pi.generateUUID(),v[H]=k,H}var v={},y={uuid:pi.generateUUID(),type:"MeshLambertMaterial"},A;for(A in s){var P=s[A];switch(A){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":y.name=P;break;case"blending":y.blending=t[P];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",A,"is no longer supported.");break;case"colorDiffuse":y.color=e.fromArray(P).getHex();break;case"colorSpecular":y.specular=e.fromArray(P).getHex();break;case"colorEmissive":y.emissive=e.fromArray(P).getHex();break;case"specularCoef":y.shininess=P;break;case"shading":P.toLowerCase()==="basic"&&(y.type="MeshBasicMaterial"),P.toLowerCase()==="phong"&&(y.type="MeshPhongMaterial"),P.toLowerCase()==="standard"&&(y.type="MeshStandardMaterial");break;case"mapDiffuse":y.map=f(P,s.mapDiffuseRepeat,s.mapDiffuseOffset,s.mapDiffuseWrap,s.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":y.emissiveMap=f(P,s.mapEmissiveRepeat,s.mapEmissiveOffset,s.mapEmissiveWrap,s.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":y.lightMap=f(P,s.mapLightRepeat,s.mapLightOffset,s.mapLightWrap,s.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":y.aoMap=f(P,s.mapAORepeat,s.mapAOOffset,s.mapAOWrap,s.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":y.bumpMap=f(P,s.mapBumpRepeat,s.mapBumpOffset,s.mapBumpWrap,s.mapBumpAnisotropy);break;case"mapBumpScale":y.bumpScale=P;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":y.normalMap=f(P,s.mapNormalRepeat,s.mapNormalOffset,s.mapNormalWrap,s.mapNormalAnisotropy);break;case"mapNormalFactor":y.normalScale=P;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":y.specularMap=f(P,s.mapSpecularRepeat,s.mapSpecularOffset,s.mapSpecularWrap,s.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":y.metalnessMap=f(P,s.mapMetalnessRepeat,s.mapMetalnessOffset,s.mapMetalnessWrap,s.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":y.roughnessMap=f(P,s.mapRoughnessRepeat,s.mapRoughnessOffset,s.mapRoughnessWrap,s.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":y.alphaMap=f(P,s.mapAlphaRepeat,s.mapAlphaOffset,s.mapAlphaWrap,s.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":y.side=1;break;case"doubleSided":y.side=2;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity"),y.opacity=P;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":y[A]=P;break;case"vertexColors":P===!0&&(y.vertexColors=2),P==="face"&&(y.vertexColors=1);break;default:console.error("THREE.Loader.createMaterial: Unsupported",A,P)}}return y.type==="MeshBasicMaterial"&&delete y.emissive,y.type!=="MeshPhongMaterial"&&delete y.specular,1>y.opacity&&(y.transparent=!0),n.setTextures(v),n.parse(y)}}()}),Object.assign(Do.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,a=this.path===void 0?Fo.extractUrlBase(t):this.path,c=new Rt(this.manager);c.setPath(this.path),c.setWithCredentials(this.withCredentials),c.load(t,function(f){f=JSON.parse(f);var v=f.metadata;if(v!==void 0&&(v=v.type,v!==void 0&&v.toLowerCase()==="object")){console.error("THREE.JSONLoader: "+t+" should be loaded with THREE.ObjectLoader instead.");return}f=s.parse(f,a),e(f.geometry,f.materials)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(){return function(t,e){t.data!==void 0&&(t=t.data),t.scale=t.scale!==void 0?1/t.scale:1;var i=new X,n=t,s,a,c,f=n.faces,v=n.vertices,y=n.normals,A=n.colors,P=n.scale,k=0;if(n.uvs!==void 0){for(s=0;s<n.uvs.length;s++)n.uvs[s].length&&k++;for(s=0;s<k;s++)i.faceVertexUvs[s]=[]}var H=0;for(c=v.length;H<c;)s=new u,s.x=v[H++]*P,s.y=v[H++]*P,s.z=v[H++]*P,i.vertices.push(s);for(H=0,c=f.length;H<c;){v=f[H++];var q=v&1,J=v&2;s=v&8;var rt=v&16,xt=v&32;if(P=v&64,v&=128,q){q=new R,q.a=f[H],q.b=f[H+1],q.c=f[H+3];var gt=new R;if(gt.a=f[H+1],gt.b=f[H+2],gt.c=f[H+3],H+=4,J&&(J=f[H++],q.materialIndex=J,gt.materialIndex=J),J=i.faces.length,s)for(s=0;s<k;s++){var At=n.uvs[s];for(i.faceVertexUvs[s][J]=[],i.faceVertexUvs[s][J+1]=[],a=0;4>a;a++){var wt=f[H++],Vt=At[2*wt];wt=At[2*wt+1],Vt=new o(Vt,wt),a!==2&&i.faceVertexUvs[s][J].push(Vt),a!==0&&i.faceVertexUvs[s][J+1].push(Vt)}}if(rt&&(rt=3*f[H++],q.normal.set(y[rt++],y[rt++],y[rt]),gt.normal.copy(q.normal)),xt)for(s=0;4>s;s++)rt=3*f[H++],xt=new u(y[rt++],y[rt++],y[rt]),s!==2&&q.vertexNormals.push(xt),s!==0&>.vertexNormals.push(xt);if(P&&(P=f[H++],P=A[P],q.color.setHex(P),gt.color.setHex(P)),v)for(s=0;4>s;s++)P=f[H++],P=A[P],s!==2&&q.vertexColors.push(new L(P)),s!==0&>.vertexColors.push(new L(P));i.faces.push(q),i.faces.push(gt)}else{if(q=new R,q.a=f[H++],q.b=f[H++],q.c=f[H++],J&&(J=f[H++],q.materialIndex=J),J=i.faces.length,s)for(s=0;s<k;s++)for(At=n.uvs[s],i.faceVertexUvs[s][J]=[],a=0;3>a;a++)wt=f[H++],Vt=At[2*wt],wt=At[2*wt+1],Vt=new o(Vt,wt),i.faceVertexUvs[s][J].push(Vt);if(rt&&(rt=3*f[H++],q.normal.set(y[rt++],y[rt++],y[rt])),xt)for(s=0;3>s;s++)rt=3*f[H++],xt=new u(y[rt++],y[rt++],y[rt]),q.vertexNormals.push(xt);if(P&&(P=f[H++],q.color.setHex(A[P])),v)for(s=0;3>s;s++)P=f[H++],q.vertexColors.push(new L(A[P]));i.faces.push(q)}}if(n=t,H=n.influencesPerVertex!==void 0?n.influencesPerVertex:2,n.skinWeights)for(c=0,f=n.skinWeights.length;c<f;c+=H)i.skinWeights.push(new T(n.skinWeights[c],1<H?n.skinWeights[c+1]:0,2<H?n.skinWeights[c+2]:0,3<H?n.skinWeights[c+3]:0));if(n.skinIndices)for(c=0,f=n.skinIndices.length;c<f;c+=H)i.skinIndices.push(new T(n.skinIndices[c],1<H?n.skinIndices[c+1]:0,2<H?n.skinIndices[c+2]:0,3<H?n.skinIndices[c+3]:0));if(i.bones=n.bones,i.bones&&0<i.bones.length&&(i.skinWeights.length!==i.skinIndices.length||i.skinIndices.length!==i.vertices.length)&&console.warn("When skinning, number of vertices ("+i.vertices.length+"), skinIndices ("+i.skinIndices.length+"), and skinWeights ("+i.skinWeights.length+") should match."),c=t,f=c.scale,c.morphTargets!==void 0)for(n=0,H=c.morphTargets.length;n<H;n++)for(i.morphTargets[n]={},i.morphTargets[n].name=c.morphTargets[n].name,i.morphTargets[n].vertices=[],y=i.morphTargets[n].vertices,A=c.morphTargets[n].vertices,k=0,v=A.length;k<v;k+=3)P=new u,P.x=A[k]*f,P.y=A[k+1]*f,P.z=A[k+2]*f,y.push(P);if(c.morphColors!==void 0&&0<c.morphColors.length)for(console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.'),f=i.faces,c=c.morphColors[0].colors,n=0,H=f.length;n<H;n++)f[n].color.fromArray(c,3*n);for(c=t,n=[],H=[],c.animation!==void 0&&H.push(c.animation),c.animations!==void 0&&(c.animations.length?H=H.concat(c.animations):H.push(c.animations)),c=0;c<H.length;c++)(f=yr.parseAnimation(H[c],i.bones))&&n.push(f);return i.morphTargets&&(H=yr.CreateClipsFromMorphTargetSequences(i.morphTargets,10),n=n.concat(H)),0<n.length&&(i.animations=n),i.computeFaceNormals(),i.computeBoundingSphere(),t.materials===void 0||t.materials.length===0?{geometry:i}:(t=Is.prototype.initMaterials(t.materials,this.resourcePath||e,this.crossOrigin),{geometry:i,materials:t})}}()}),Object.assign(ll.prototype,{crossOrigin:"anonymous",load:function(t,e,i,n){var s=this,a=this.path===void 0?Fo.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||a,a=new Rt(s.manager),a.setPath(this.path),a.load(t,function(c){var f=null;try{f=JSON.parse(c)}catch(v){n!==void 0&&n(v),console.error("THREE:ObjectLoader: Can't parse "+t+".",v.message);return}c=f.metadata,c===void 0||c.type===void 0||c.type.toLowerCase()==="geometry"?console.error("THREE.ObjectLoader: Can't load "+t+". Use THREE.JSONLoader instead."):s.parse(f,e)},i,n)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(t,e){var i=this.parseShape(t.shapes);i=this.parseGeometries(t.geometries,i);var n=this.parseImages(t.images,function(){e!==void 0&&e(s)});n=this.parseTextures(t.textures,n),n=this.parseMaterials(t.materials,n);var s=this.parseObject(t.object,i,n);return t.animations&&(s.animations=this.parseAnimations(t.animations)),t.images!==void 0&&t.images.length!==0||e===void 0||e(s),s},parseShape:function(t){var e={};if(t!==void 0)for(var i=0,n=t.length;i<n;i++){var s=new Qn().fromJSON(t[i]);e[s.uuid]=s}return e},parseGeometries:function(t,e){var i={};if(t!==void 0)for(var n=new Do,s=new Dh,a=0,c=t.length;a<c;a++){var f=t[a];switch(f.type){case"PlaneGeometry":case"PlaneBufferGeometry":var v=new _n[f.type](f.width,f.height,f.widthSegments,f.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":v=new _n[f.type](f.width,f.height,f.depth,f.widthSegments,f.heightSegments,f.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":v=new _n[f.type](f.radius,f.segments,f.thetaStart,f.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":v=new _n[f.type](f.radiusTop,f.radiusBottom,f.height,f.radialSegments,f.heightSegments,f.openEnded,f.thetaStart,f.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":v=new _n[f.type](f.radius,f.height,f.radialSegments,f.heightSegments,f.openEnded,f.thetaStart,f.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":v=new _n[f.type](f.radius,f.widthSegments,f.heightSegments,f.phiStart,f.phiLength,f.thetaStart,f.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":v=new _n[f.type](f.radius,f.detail);break;case"RingGeometry":case"RingBufferGeometry":v=new _n[f.type](f.innerRadius,f.outerRadius,f.thetaSegments,f.phiSegments,f.thetaStart,f.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":v=new _n[f.type](f.radius,f.tube,f.radialSegments,f.tubularSegments,f.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":v=new _n[f.type](f.radius,f.tube,f.tubularSegments,f.radialSegments,f.p,f.q);break;case"LatheGeometry":case"LatheBufferGeometry":v=new _n[f.type](f.points,f.segments,f.phiStart,f.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":v=new _n[f.type](f.vertices,f.indices,f.radius,f.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":v=[];for(var y=0,A=f.shapes.length;y<A;y++){var P=e[f.shapes[y]];v.push(P)}v=new _n[f.type](v,f.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(v=[],y=0,A=f.shapes.length;y<A;y++)P=e[f.shapes[y]],v.push(P);y=f.options.extrudePath,y!==void 0&&(f.options.extrudePath=new sh[y.type]().fromJSON(y)),v=new _n[f.type](v,f.options);break;case"BufferGeometry":v=s.parse(f);break;case"Geometry":v=n.parse(f,this.resourcePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+f.type+'"');continue}v.uuid=f.uuid,f.name!==void 0&&(v.name=f.name),v.isBufferGeometry===!0&&f.userData!==void 0&&(v.userData=f.userData),i[f.uuid]=v}return i},parseMaterials:function(t,e){var i={},n={};if(t!==void 0){var s=new Kl;s.setTextures(e),e=0;for(var a=t.length;e<a;e++){var c=t[e];if(c.type==="MultiMaterial"){for(var f=[],v=0;v<c.materials.length;v++){var y=c.materials[v];i[y.uuid]===void 0&&(i[y.uuid]=s.parse(y)),f.push(i[y.uuid])}n[c.uuid]=f}else n[c.uuid]=s.parse(c),i[c.uuid]=n[c.uuid]}}return n},parseAnimations:function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i],s=yr.parse(n);n.uuid!==void 0&&(s.uuid=n.uuid),e.push(s)}return e},parseImages:function(t,e){function i(k){return n.manager.itemStart(k),a.load(k,function(){n.manager.itemEnd(k)},void 0,function(){n.manager.itemError(k),n.manager.itemEnd(k)})}var n=this,s={};if(t!==void 0&&0<t.length){e=new to(e);var a=new ai(e);a.setCrossOrigin(this.crossOrigin),e=0;for(var c=t.length;e<c;e++){var f=t[e],v=f.url;if(Array.isArray(v)){s[f.uuid]=[];for(var y=0,A=v.length;y<A;y++){var P=v[y];P=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(P)?P:n.resourcePath+P,s[f.uuid].push(i(P))}}else P=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(f.url)?f.url:n.resourcePath+f.url,s[f.uuid]=i(P)}}return s},parseTextures:function(t,e){function i(v,y){return typeof v=="number"?v:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",v),y[v])}var n={};if(t!==void 0)for(var s=0,a=t.length;s<a;s++){var c=t[s];c.image===void 0&&console.warn('THREE.ObjectLoader: No "image" specified for',c.uuid),e[c.image]===void 0&&console.warn("THREE.ObjectLoader: Undefined image",c.image);var f=Array.isArray(e[c.image])?new D(e[c.image]):new _(e[c.image]);f.needsUpdate=!0,f.uuid=c.uuid,c.name!==void 0&&(f.name=c.name),c.mapping!==void 0&&(f.mapping=i(c.mapping,ku)),c.offset!==void 0&&f.offset.fromArray(c.offset),c.repeat!==void 0&&f.repeat.fromArray(c.repeat),c.center!==void 0&&f.center.fromArray(c.center),c.rotation!==void 0&&(f.rotation=c.rotation),c.wrap!==void 0&&(f.wrapS=i(c.wrap[0],Zn),f.wrapT=i(c.wrap[1],Zn)),c.format!==void 0&&(f.format=c.format),c.minFilter!==void 0&&(f.minFilter=i(c.minFilter,oh)),c.magFilter!==void 0&&(f.magFilter=i(c.magFilter,oh)),c.anisotropy!==void 0&&(f.anisotropy=c.anisotropy),c.flipY!==void 0&&(f.flipY=c.flipY),n[c.uuid]=f}return n},parseObject:function(t,e,i){function n(y){return e[y]===void 0&&console.warn("THREE.ObjectLoader: Undefined geometry",y),e[y]}function s(y){if(y!==void 0){if(Array.isArray(y)){for(var A=[],P=0,k=y.length;P<k;P++){var H=y[P];i[H]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",H),A.push(i[H])}return A}return i[y]===void 0&&console.warn("THREE.ObjectLoader: Undefined material",y),i[y]}}switch(t.type){case"Scene":var a=new Xn;t.background!==void 0&&Number.isInteger(t.background)&&(a.background=new L(t.background)),t.fog!==void 0&&(t.fog.type==="Fog"?a.fog=new Sn(t.fog.color,t.fog.near,t.fog.far):t.fog.type==="FogExp2"&&(a.fog=new Le(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":a=new ye(t.fov,t.aspect,t.near,t.far),t.focus!==void 0&&(a.focus=t.focus),t.zoom!==void 0&&(a.zoom=t.zoom),t.filmGauge!==void 0&&(a.filmGauge=t.filmGauge),t.filmOffset!==void 0&&(a.filmOffset=t.filmOffset),t.view!==void 0&&(a.view=Object.assign({},t.view));break;case"OrthographicCamera":a=new xa(t.left,t.right,t.top,t.bottom,t.near,t.far),t.zoom!==void 0&&(a.zoom=t.zoom),t.view!==void 0&&(a.view=Object.assign({},t.view));break;case"AmbientLight":a=new Io(t.color,t.intensity);break;case"DirectionalLight":a=new ys(t.color,t.intensity);break;case"PointLight":a=new Oo(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":a=new $l(t.color,t.intensity,t.width,t.height);break;case"SpotLight":a=new al(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":a=new sl(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":a=n(t.geometry);var c=s(t.material);a=a.bones&&0<a.bones.length?new Ui(a,c):new di(a,c);break;case"LOD":a=new rn;break;case"Line":a=new Wi(n(t.geometry),s(t.material),t.mode);break;case"LineLoop":a=new cs(n(t.geometry),s(t.material));break;case"LineSegments":a=new gi(n(t.geometry),s(t.material));break;case"PointCloud":case"Points":a=new oa(n(t.geometry),s(t.material));break;case"Sprite":a=new nn(s(t.material));break;case"Group":a=new ci;break;default:a=new B}if(a.uuid=t.uuid,t.name!==void 0&&(a.name=t.name),t.matrix!==void 0?(a.matrix.fromArray(t.matrix),t.matrixAutoUpdate!==void 0&&(a.matrixAutoUpdate=t.matrixAutoUpdate),a.matrixAutoUpdate&&a.matrix.decompose(a.position,a.quaternion,a.scale)):(t.position!==void 0&&a.position.fromArray(t.position),t.rotation!==void 0&&a.rotation.fromArray(t.rotation),t.quaternion!==void 0&&a.quaternion.fromArray(t.quaternion),t.scale!==void 0&&a.scale.fromArray(t.scale)),t.castShadow!==void 0&&(a.castShadow=t.castShadow),t.receiveShadow!==void 0&&(a.receiveShadow=t.receiveShadow),t.shadow&&(t.shadow.bias!==void 0&&(a.shadow.bias=t.shadow.bias),t.shadow.radius!==void 0&&(a.shadow.radius=t.shadow.radius),t.shadow.mapSize!==void 0&&a.shadow.mapSize.fromArray(t.shadow.mapSize),t.shadow.camera!==void 0&&(a.shadow.camera=this.parseObject(t.shadow.camera))),t.visible!==void 0&&(a.visible=t.visible),t.frustumCulled!==void 0&&(a.frustumCulled=t.frustumCulled),t.renderOrder!==void 0&&(a.renderOrder=t.renderOrder),t.userData!==void 0&&(a.userData=t.userData),t.layers!==void 0&&(a.layers.mask=t.layers),t.children!==void 0){c=t.children;for(var f=0;f<c.length;f++)a.add(this.parseObject(c[f],e,i))}if(t.type==="LOD")for(t=t.levels,c=0;c<t.length;c++){f=t[c];var v=a.getObjectByProperty("uuid",f.object);v!==void 0&&a.addLevel(v,f.distance)}return a}});var ku={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},Zn={RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},oh={NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008};zh.prototype={constructor:zh,setOptions:function(t){return this.options=t,this},load:function(t,e,i,n){t===void 0&&(t=""),this.path!==void 0&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,a=Ts.get(t);if(a!==void 0)return s.manager.itemStart(t),setTimeout(function(){e&&e(a),s.manager.itemEnd(t)},0),a;fetch(t).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,s.options)}).then(function(c){Ts.add(t,c),e&&e(c),s.manager.itemEnd(t)}).catch(function(c){n&&n(c),s.manager.itemError(t),s.manager.itemEnd(t)})},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(Ql.prototype,{moveTo:function(t,e){this.currentPath=new fr,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,i,n){this.currentPath.quadraticCurveTo(t,e,i,n)},bezierCurveTo:function(t,e,i,n,s,a){this.currentPath.bezierCurveTo(t,e,i,n,s,a)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function i(rt){for(var xt=[],gt=0,At=rt.length;gt<At;gt++){var wt=rt[gt],Vt=new Qn;Vt.curves=wt.curves,xt.push(Vt)}return xt}function n(rt,xt){for(var gt=xt.length,At=!1,wt=gt-1,Vt=0;Vt<gt;wt=Vt++){var Z=xt[wt],st=xt[Vt],zt=st.x-Z.x,ee=st.y-Z.y;if(Math.abs(ee)>Number.EPSILON){if(0>ee&&(Z=xt[Vt],zt=-zt,st=xt[wt],ee=-ee),!(rt.y<Z.y||rt.y>st.y))if(rt.y===Z.y){if(rt.x===Z.x)return!0}else{if(wt=ee*(rt.x-Z.x)-zt*(rt.y-Z.y),wt===0)return!0;0>wt||(At=!At)}}else if(rt.y===Z.y&&(st.x<=rt.x&&rt.x<=Z.x||Z.x<=rt.x&&rt.x<=st.x))return!0}return At}var s=ws.isClockWise,a=this.subPaths;if(a.length===0)return[];if(e===!0)return i(a);if(e=[],a.length===1){var c=a[0],f=new Qn;return f.curves=c.curves,e.push(f),e}var v=!s(a[0].getPoints());v=t?!v:v,f=[];var y=[],A=[],P=0;y[P]=void 0,A[P]=[];for(var k=0,H=a.length;k<H;k++){c=a[k];var q=c.getPoints(),J=s(q);(J=t?!J:J)?(!v&&y[P]&&P++,y[P]={s:new Qn,p:q},y[P].s.curves=c.curves,v&&P++,A[P]=[]):A[P].push({h:c,p:q[0]})}if(!y[0])return i(a);if(1<y.length){for(k=!1,t=[],s=0,a=y.length;s<a;s++)f[s]=[];for(s=0,a=y.length;s<a;s++)for(c=A[s],J=0;J<c.length;J++){for(v=c[J],P=!0,q=0;q<y.length;q++)n(v.p,y[q].p)&&(s!==q&&t.push({froms:s,tos:q,hole:J}),P?(P=!1,f[q].push(v)):k=!0);P&&f[s].push(v)}0<t.length&&(k||(A=f))}for(k=0,s=y.length;k<s;k++)for(f=y[k].s,e.push(f),t=A[k],a=0,c=t.length;a<c;a++)f.holes.push(t[a].h);return e}}),Object.assign(kh.prototype,{isFont:!0,generateShapes:function(t,e){e===void 0&&(e=100);var i=[],n=e;e=this.data;var s=Array.from?Array.from(t):String(t).split("");n/=e.resolution;var a=(e.boundingBox.yMax-e.boundingBox.yMin+e.underlineThickness)*n;t=[];for(var c=0,f=0,v=0;v<s.length;v++){var y=s[v];if(y===`
|
|
2571
|
+
`)c=0,f-=a;else{var A=n,P=c,k=f;if(y=e.glyphs[y]||e.glyphs["?"]){var H=new Ql;if(y.o)for(var q=y._cachedOutline||(y._cachedOutline=y.o.split(" ")),J=0,rt=q.length;J<rt;)switch(q[J++]){case"m":var xt=q[J++]*A+P,gt=q[J++]*A+k;H.moveTo(xt,gt);break;case"l":xt=q[J++]*A+P,gt=q[J++]*A+k,H.lineTo(xt,gt);break;case"q":var At=q[J++]*A+P,wt=q[J++]*A+k,Vt=q[J++]*A+P,Z=q[J++]*A+k;H.quadraticCurveTo(Vt,Z,At,wt);break;case"b":At=q[J++]*A+P,wt=q[J++]*A+k,Vt=q[J++]*A+P,Z=q[J++]*A+k,xt=q[J++]*A+P,gt=q[J++]*A+k,H.bezierCurveTo(Vt,Z,xt,gt,At,wt)}A={offsetX:y.ha*A,path:H}}else A=void 0;c+=A.offsetX,t.push(A.path)}}for(e=0,s=t.length;e<s;e++)Array.prototype.push.apply(i,t[e].toShapes());return i}}),Object.assign(bu.prototype,{load:function(t,e,i,n){var s=this,a=new Rt(this.manager);a.setPath(this.path),a.load(t,function(c){try{var f=JSON.parse(c)}catch{console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),f=JSON.parse(c.substring(65,c.length-2))}c=s.parse(f),e&&e(c)},i,n)},parse:function(t){return new kh(t)},setPath:function(t){return this.path=t,this}});var ah,qh={getContext:function(){return ah===void 0&&(ah=new(window.AudioContext||window.webkitAudioContext)),ah},setContext:function(t){ah=t}};Object.assign(vn.prototype,{load:function(t,e,i,n){var s=new Rt(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.load(t,function(a){a=a.slice(0),qh.getContext().decodeAudioData(a,function(c){e(c)})},i,n)},setPath:function(t){return this.path=t,this}}),Object.assign(Vn.prototype,{update:function(){var t,e,i,n,s,a,c,f,v=new p,y=new p;return function(A){if(t!==this||e!==A.focus||i!==A.fov||n!==A.aspect*this.aspect||s!==A.near||a!==A.far||c!==A.zoom||f!==this.eyeSep){t=this,e=A.focus,i=A.fov,n=A.aspect*this.aspect,s=A.near,a=A.far,c=A.zoom;var P=A.projectionMatrix.clone();f=this.eyeSep/2;var k=f*s/e,H=s*Math.tan(pi.DEG2RAD*i*.5)/c;y.elements[12]=-f,v.elements[12]=f;var q=-H*n+k,J=H*n+k;P.elements[0]=2*s/(J-q),P.elements[8]=(J+q)/(J-q),this.cameraL.projectionMatrix.copy(P),q=-H*n-k,J=H*n-k,P.elements[0]=2*s/(J-q),P.elements[8]=(J+q)/(J-q),this.cameraR.projectionMatrix.copy(P)}this.cameraL.matrixWorld.copy(A.matrixWorld).multiply(y),this.cameraR.matrixWorld.copy(A.matrixWorld).multiply(v)}}()}),hl.prototype=Object.create(B.prototype),hl.prototype.constructor=hl,Object.assign(Bh.prototype,{start:function(){this.oldTime=this.startTime=(typeof performance>"u"?Date:performance).now(),this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.autoStart=this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=(typeof performance>"u"?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}),th.prototype=Object.assign(Object.create(B.prototype),{constructor:th,getInput:function(){return this.gain},removeFilter:function(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(t){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this},updateMatrixWorld:function(){var t=new u,e=new d,i=new u,n=new u,s=new Bh;return function(a){B.prototype.updateMatrixWorld.call(this,a),a=this.context.listener;var c=this.up;if(this.timeDelta=s.getDelta(),this.matrixWorld.decompose(t,e,i),n.set(0,0,-1).applyQuaternion(e),a.positionX){var f=this.context.currentTime+this.timeDelta;a.positionX.linearRampToValueAtTime(t.x,f),a.positionY.linearRampToValueAtTime(t.y,f),a.positionZ.linearRampToValueAtTime(t.z,f),a.forwardX.linearRampToValueAtTime(n.x,f),a.forwardY.linearRampToValueAtTime(n.y,f),a.forwardZ.linearRampToValueAtTime(n.z,f),a.upX.linearRampToValueAtTime(c.x,f),a.upY.linearRampToValueAtTime(c.y,f),a.upZ.linearRampToValueAtTime(c.z,f)}else a.setPosition(t.x,t.y,t.z),a.setOrientation(n.x,n.y,n.z,c.x,c.y,c.z)}}()}),wa.prototype=Object.assign(Object.create(B.prototype),{constructor:wa,getOutput:function(){return this.gain},setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setMediaElementSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this},setBuffer:function(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(this.isPlaying===!0)console.warn("THREE.Audio: Audio is already playing.");else if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else{var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),t.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.connect()}},pause:function(){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.isPlaying===!0&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this},stop:function(){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t||(t=[]),this.isPlaying===!0?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.playbackRate=t,this.isPlaying===!0&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return this.hasPlaybackControl===!1?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(t){if(this.hasPlaybackControl===!1)console.warn("THREE.Audio: this Audio has no playback control.");else return this.loop=t,this.isPlaying===!0&&(this.source.loop=this.loop),this},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),ul.prototype=Object.assign(Object.create(wa.prototype),{constructor:ul,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){return this.panner.refDistance=t,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){return this.panner.rolloffFactor=t,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){return this.panner.distanceModel=t,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){return this.panner.maxDistance=t,this},setDirectionalCone:function(t,e,i){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=i,this},updateMatrixWorld:function(){var t=new u,e=new d,i=new u,n=new u;return function(s){if(B.prototype.updateMatrixWorld.call(this,s),s=this.panner,this.matrixWorld.decompose(t,e,i),n.set(0,0,1).applyQuaternion(e),s.positionX){var a=this.context.currentTime+this.listener.timeDelta;s.positionX.linearRampToValueAtTime(t.x,a),s.positionY.linearRampToValueAtTime(t.y,a),s.positionZ.linearRampToValueAtTime(t.z,a),s.orientationX.linearRampToValueAtTime(n.x,a),s.orientationY.linearRampToValueAtTime(n.y,a),s.orientationZ.linearRampToValueAtTime(n.z,a)}else s.setPosition(t.x,t.y,t.z),s.setOrientation(n.x,n.y,n.z)}}()}),Object.assign(zo.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),i=0;i<e.length;i++)t+=e[i];return t/e.length}}),Object.assign(cl.prototype,{accumulate:function(t,e){var i=this.buffer,n=this.valueSize;t=t*n+n;var s=this.cumulativeWeight;if(s===0){for(s=0;s!==n;++s)i[t+s]=i[s];s=e}else s+=e,this._mixBufferRegion(i,t,0,e/s,n);this.cumulativeWeight=s},apply:function(t){var e=this.valueSize,i=this.buffer;t=t*e+e;var n=this.cumulativeWeight,s=this.binding;this.cumulativeWeight=0,1>n&&this._mixBufferRegion(i,t,3*e,1-n,e),n=e;for(var a=e+e;n!==a;++n)if(i[n]!==i[n+e]){s.setValue(i,t);break}},saveOriginalState:function(){var t=this.buffer,e=this.valueSize,i=3*e;this.binding.getValue(t,i);for(var n=e;n!==i;++n)t[n]=t[i+n%e];this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_select:function(t,e,i,n,s){if(.5<=n)for(n=0;n!==s;++n)t[e+n]=t[i+n]},_slerp:function(t,e,i,n){d.slerpFlat(t,e,t,e,t,i,n)},_lerp:function(t,e,i,n,s){for(var a=1-n,c=0;c!==s;++c){var f=e+c;t[f]=t[f]*a+t[i+c]*n}}}),Object.assign(ko.prototype,{getValue:function(t,e){this.bind();var i=this._bindings[this._targetGroup.nCachedObjects_];i!==void 0&&i.getValue(t,e)},setValue:function(t,e){for(var i=this._bindings,n=this._targetGroup.nCachedObjects_,s=i.length;n!==s;++n)i[n].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].unbind()}}),Object.assign(En,{Composite:ko,create:function(t,e,i){return t&&t.isAnimationObjectGroup?new En.Composite(t,e,i):new En(t,e,i)},sanitizeNodeName:function(){var t=/[\[\]\.:\/]/g;return function(e){return e.replace(/\s/g,"_").replace(t,"")}}(),parseTrackName:function(){var t="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",e=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]");t=/(WCOD+)?/.source.replace("WCOD",t);var i=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),n=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),s=new RegExp("^"+e+t+i+n+"$"),a=["material","materials","bones"];return function(c){var f=s.exec(c);if(!f)throw Error("PropertyBinding: Cannot parse trackName: "+c);f={nodeName:f[2],objectName:f[3],objectIndex:f[4],propertyName:f[5],propertyIndex:f[6]};var v=f.nodeName&&f.nodeName.lastIndexOf(".");if(v!==void 0&&v!==-1){var y=f.nodeName.substring(v+1);a.indexOf(y)!==-1&&(f.nodeName=f.nodeName.substring(0,v),f.objectName=y)}if(f.propertyName===null||f.propertyName.length===0)throw Error("PropertyBinding: can not parse propertyName from trackName: "+c);return f}}(),findNode:function(t,e){if(!e||e===""||e==="root"||e==="."||e===-1||e===t.name||e===t.uuid)return t;if(t.skeleton){var i=t.skeleton.getBoneByName(e);if(i!==void 0)return i}if(t.children){var n=function(s){for(var a=0;a<s.length;a++){var c=s[a];if(c.name===e||c.uuid===e||(c=n(c.children)))return c}return null};if(t=n(t.children))return t}return null}}),Object.assign(En.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)t[e++]=i[n]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++]},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var i=this.resolvedProperty,n=0,s=i.length;n!==s;++n)i[n]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,i=e.objectName,n=e.propertyName,s=e.propertyIndex;if(t||(this.node=t=En.findNode(this.rootNode,e.nodeName)||this.rootNode),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(i){var a=e.objectIndex;switch(i){case"materials":if(!t.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}t=t.material.materials;break;case"bones":if(!t.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}for(t=t.skeleton.bones,i=0;i<t.length;i++)if(t[i].name===a){a=i;break}break;default:if(t[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}t=t[i]}if(a!==void 0){if(t[a]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);return}t=t[a]}}if(a=t[n],a===void 0)console.error("THREE.PropertyBinding: Trying to update property for track: "+e.nodeName+"."+n+" but it wasn't found.",t);else{if(e=this.Versioning.None,this.targetObject=t,t.needsUpdate!==void 0?e=this.Versioning.NeedsUpdate:t.matrixWorldNeedsUpdate!==void 0&&(e=this.Versioning.MatrixWorldNeedsUpdate),i=this.BindingType.Direct,s!==void 0){if(n==="morphTargetInfluences"){if(!t.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(t.geometry.isBufferGeometry){if(!t.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}for(i=0;i<this.node.geometry.morphAttributes.position.length;i++)if(t.geometry.morphAttributes.position[i].name===s){s=i;break}}else{if(!t.geometry.morphTargets){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);return}for(i=0;i<this.node.geometry.morphTargets.length;i++)if(t.geometry.morphTargets[i].name===s){s=i;break}}}i=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=s}else a.fromArray!==void 0&&a.toArray!==void 0?(i=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(i=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=n;this.getValue=this.GetterByBindingType[i],this.setValue=this.SetterByBindingTypeAndVersioning[i][e]}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(En.prototype,{_getValue_unbound:En.prototype.getValue,_setValue_unbound:En.prototype.setValue}),Object.assign(Ta.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._paths,a=this._parsedPaths,c=this._bindings,f=c.length,v=void 0,y=0,A=arguments.length;y!==A;++y){var P=arguments[y],k=P.uuid,H=n[k];if(H===void 0){H=e++,n[k]=H,t.push(P),k=0;for(var q=f;k!==q;++k)c[k].push(new En(P,s[k],a[k]))}else if(H<i){v=t[H];var J=--i;for(q=t[J],n[q.uuid]=H,t[H]=q,n[k]=J,t[J]=P,k=0,q=f;k!==q;++k){var rt=c[k],xt=rt[H];rt[H]=rt[J],xt===void 0&&(xt=new En(P,s[k],a[k])),rt[J]=xt}}else t[H]!==v&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=i},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,i=this._indicesByUUID,n=this._bindings,s=n.length,a=0,c=arguments.length;a!==c;++a){var f=arguments[a],v=f.uuid,y=i[v];if(y!==void 0&&y>=e){var A=e++,P=t[A];for(i[P.uuid]=y,t[y]=P,i[v]=A,t[A]=f,f=0,v=s;f!==v;++f){P=n[f];var k=P[y];P[y]=P[A],P[A]=k}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,s=this._bindings,a=s.length,c=0,f=arguments.length;c!==f;++c){var v=arguments[c].uuid,y=n[v];if(y!==void 0)if(delete n[v],y<i){v=--i;var A=t[v],P=--e,k=t[P];for(n[A.uuid]=y,t[y]=A,n[k.uuid]=v,t[v]=k,t.pop(),A=0,k=a;A!==k;++A){var H=s[A],q=H[P];H[y]=H[v],H[v]=q,H.pop()}}else for(P=--e,k=t[P],n[k.uuid]=y,t[y]=k,t.pop(),A=0,k=a;A!==k;++A)H=s[A],H[y]=H[P],H.pop()}this.nCachedObjects_=i},subscribe_:function(t,e){var i=this._bindingsIndicesByPath,n=i[t],s=this._bindings;if(n!==void 0)return s[n];var a=this._paths,c=this._parsedPaths,f=this._objects,v=this.nCachedObjects_,y=Array(f.length);for(n=s.length,i[t]=n,a.push(t),c.push(e),s.push(y),i=v,n=f.length;i!==n;++i)y[i]=new En(f[i],t,e);return y},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,i=e[t];if(i!==void 0){var n=this._paths,s=this._parsedPaths,a=this._bindings,c=a.length-1,f=a[c];e[t[c]]=i,a[i]=f,a.pop(),s[i]=s[c],s.pop(),n[i]=n[c],n.pop()}}}),Object.assign(fl.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,i){if(t.fadeOut(e),this.fadeIn(e),i){i=this._clip.duration;var n=t._clip.duration,s=i/n;t.warp(1,n/i,e),this.warp(s,1,e)}return this},crossFadeTo:function(t,e,i){return t.crossFadeFrom(this,e,i)},stopFading:function(){var t=this._weightInterpolant;return t!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,i){var n=this._mixer,s=n.time,a=this._timeScaleInterpolant,c=this.timeScale;return a===null&&(this._timeScaleInterpolant=a=n._lendControlInterpolant()),n=a.parameterPositions,a=a.sampleValues,n[0]=s,n[1]=s+i,a[0]=t/c,a[1]=e/c,this},stopWarping:function(){var t=this._timeScaleInterpolant;return t!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,i,n){if(this.enabled){var s=this._startTime;if(s!==null){if(e=(t-s)*i,0>e||i===0)return;this._startTime=null,e*=i}if(e*=this._updateTimeScale(t),i=this._updateTime(e),t=this._updateWeight(t),0<t){e=this._interpolants,s=this._propertyBindings;for(var a=0,c=e.length;a!==c;++a)e[a].evaluate(i),s[a].accumulate(n,t)}}else this._updateWeight(t)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var i=this._weightInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopFading(),n===0&&(this.enabled=!1))}}return this._effectiveWeight=e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var i=this._timeScaleInterpolant;if(i!==null){var n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopWarping(),e===0?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e},_updateTime:function(t){var e=this.time+t,i=this._clip.duration,n=this.loop,s=this._loopCount,a=n===2202;if(t===0)return s===-1?e:a&&(s&1)===1?i-e:e;if(n===2200)t:{if(s===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1)),e>=i)e=i;else if(0>e)e=0;else break t;this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:0>t?-1:1})}else{if(s===-1&&(0<=t?(s=0,this._setEndings(!0,this.repetitions===0,a)):this._setEndings(this.repetitions===0,!0,a)),e>=i||0>e){n=Math.floor(e/i),e-=i*n,s+=Math.abs(n);var c=this.repetitions-s;0>=c?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=0<t?i:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<t?1:-1})):(c===1?(t=0>t,this._setEndings(t,!t,a)):this._setEndings(!1,!1,a),this._loopCount=s,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n}))}if(a&&(s&1)===1)return this.time=e,i-e}return this.time=e},_setEndings:function(t,e,i){var n=this._interpolantSettings;i?(n.endingStart=2401,n.endingEnd=2401):(n.endingStart=t?this.zeroSlopeAtStart?2401:2400:2402,n.endingEnd=e?this.zeroSlopeAtEnd?2401:2400:2402)},_scheduleFading:function(t,e,i){var n=this._mixer,s=n.time,a=this._weightInterpolant;return a===null&&(this._weightInterpolant=a=n._lendControlInterpolant()),n=a.parameterPositions,a=a.sampleValues,n[0]=s,a[0]=e,n[1]=s+t,a[1]=i,this}}),no.prototype=Object.assign(Object.create(l.prototype),{constructor:no,_bindAction:function(t,e){var i=t._localRoot||this._root,n=t._clip.tracks,s=n.length,a=t._propertyBindings;t=t._interpolants;var c=i.uuid,f=this._bindingsByRootAndName,v=f[c];for(v===void 0&&(v={},f[c]=v),f=0;f!==s;++f){var y=n[f],A=y.name,P=v[A];if(P===void 0){if(P=a[f],P!==void 0){P._cacheIndex===null&&(++P.referenceCount,this._addInactiveBinding(P,c,A));continue}P=new cl(En.create(i,A,e&&e._propertyBindings[f].binding.parsedPath),y.ValueTypeName,y.getValueSize()),++P.referenceCount,this._addInactiveBinding(P,c,A)}a[f]=P,t[f].resultBuffer=P.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(t._cacheIndex===null){var e=(t._localRoot||this._root).uuid,i=t._clip.uuid,n=this._actionsByClip[i];this._bindAction(t,n&&n.knownActions[0]),this._addInactiveAction(t,i,e)}for(e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];s.useCount++===0&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,i=0,n=e.length;i!==n;++i){var s=e[i];--s.useCount===0&&(s.restoreOriginalState(),this._takeBackBinding(s))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){return t=t._cacheIndex,t!==null&&t<this._nActiveActions},_addInactiveAction:function(t,e,i){var n=this._actions,s=this._actionsByClip,a=s[e];a===void 0?(a={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,s[e]=a):(e=a.knownActions,t._byClipCacheIndex=e.length,e.push(t)),t._cacheIndex=n.length,n.push(t),a.actionByRoot[i]=t},_removeInactiveAction:function(t){var e=this._actions,i=e[e.length-1],n=t._cacheIndex;i._cacheIndex=n,e[n]=i,e.pop(),t._cacheIndex=null,e=t._clip.uuid,i=this._actionsByClip,n=i[e];var s=n.knownActions,a=s[s.length-1],c=t._byClipCacheIndex;a._byClipCacheIndex=c,s[c]=a,s.pop(),t._byClipCacheIndex=null,delete n.actionByRoot[(t._localRoot||this._root).uuid],s.length===0&&delete i[e],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){t=t._propertyBindings;for(var e=0,i=t.length;e!==i;++e){var n=t[e];--n.referenceCount===0&&this._removeInactiveBinding(n)}},_lendAction:function(t){var e=this._actions,i=t._cacheIndex,n=this._nActiveActions++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackAction:function(t){var e=this._actions,i=t._cacheIndex,n=--this._nActiveActions,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_addInactiveBinding:function(t,e,i){var n=this._bindingsByRootAndName,s=n[e],a=this._bindings;s===void 0&&(s={},n[e]=s),s[i]=t,t._cacheIndex=a.length,a.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,i=t.binding,n=i.rootNode.uuid;i=i.path;var s=this._bindingsByRootAndName,a=s[n],c=e[e.length-1];t=t._cacheIndex,c._cacheIndex=t,e[t]=c,e.pop(),delete a[i];t:{for(var f in a)break t;delete s[n]}},_lendBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=this._nActiveBindings++,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_takeBackBinding:function(t){var e=this._bindings,i=t._cacheIndex,n=--this._nActiveBindings,s=e[n];t._cacheIndex=n,e[n]=t,s._cacheIndex=i,e[i]=s},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,i=t[e];return i===void 0&&(i=new Dr(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),i.__cacheIndex=e,t[e]=i),i},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,i=t.__cacheIndex,n=--this._nActiveControlInterpolants,s=e[n];t.__cacheIndex=n,e[n]=t,s.__cacheIndex=i,e[i]=s},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var i=e||this._root,n=i.uuid;i=typeof t=="string"?yr.findByName(i,t):t,t=i!==null?i.uuid:t;var s=this._actionsByClip[t],a=null;if(s!==void 0){if(a=s.actionByRoot[n],a!==void 0)return a;a=s.knownActions[0],i===null&&(i=a._clip)}return i===null?null:(e=new fl(this,i,e),this._bindAction(e,a),this._addInactiveAction(e,t,n),e)},existingAction:function(t,e){var i=e||this._root;return e=i.uuid,i=typeof t=="string"?yr.findByName(i,t):t,t=this._actionsByClip[i?i.uuid:t],t!==void 0&&t.actionByRoot[e]||null},stopAllAction:function(){for(var t=this._actions,e=this._nActiveActions,i=this._bindings,n=this._nActiveBindings,s=this._nActiveBindings=this._nActiveActions=0;s!==e;++s)t[s].reset();for(s=0;s!==n;++s)i[s].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,i=this._nActiveActions,n=this.time+=t,s=Math.sign(t),a=this._accuIndex^=1,c=0;c!==i;++c)e[c]._update(n,t,s,a);for(t=this._bindings,e=this._nActiveBindings,c=0;c!==e;++c)t[c].apply(a);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions;t=t.uuid;var i=this._actionsByClip,n=i[t];if(n!==void 0){n=n.knownActions;for(var s=0,a=n.length;s!==a;++s){var c=n[s];this._deactivateAction(c);var f=c._cacheIndex,v=e[e.length-1];c._cacheIndex=null,c._byClipCacheIndex=null,v._cacheIndex=f,e[f]=v,e.pop(),this._removeInactiveBindingsForAction(c)}delete i[t]}},uncacheRoot:function(t){t=t.uuid;var e=this._actionsByClip;for(n in e){var i=e[n].actionByRoot[t];i!==void 0&&(this._deactivateAction(i),this._removeInactiveAction(i))}var n=this._bindingsByRootAndName[t];if(n!==void 0)for(var s in n)t=n[s],t.restoreOriginalState(),this._removeInactiveBinding(t)},uncacheAction:function(t,e){t=this.existingAction(t,e),t!==null&&(this._deactivateAction(t),this._removeInactiveAction(t))}}),eh.prototype.clone=function(){return new eh(this.value.clone===void 0?this.value:this.value.clone())},Nh.prototype=Object.assign(Object.create(Ft.prototype),{constructor:Nh,isInstancedBufferGeometry:!0,copy:function(t){return Ft.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return new this.constructor().copy(this)}}),Fh.prototype=Object.assign(Object.create(Di.prototype),{constructor:Fh,isInstancedInterleavedBuffer:!0,copy:function(t){return Di.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Uh.prototype=Object.assign(Object.create($.prototype),{constructor:Uh,isInstancedBufferAttribute:!0,copy:function(t){return $.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(Au.prototype,{linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(t,e,i){return i=i||[],Bo(t,this,i,e),i.sort(pl),i},intersectObjects:function(t,e,i){if(i=i||[],Array.isArray(t)===!1)return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),i;for(var n=0,s=t.length;n<s;n++)Bo(t[n],this,i,e);return i.sort(pl),i}}),Object.assign(Gh.prototype,{set:function(t,e,i){return this.radius=t,this.phi=e,this.theta=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+e*e+i*i),this.radius===0?this.phi=this.theta=0:(this.theta=Math.atan2(t,i),this.phi=Math.acos(pi.clamp(e/this.radius,-1,1))),this}}),Object.assign(et.prototype,{set:function(t,e,i){return this.radius=t,this.theta=e,this.y=i,this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,i){return this.radius=Math.sqrt(t*t+i*i),this.theta=Math.atan2(t,i),this.y=e,this}}),Object.assign(ro.prototype,{set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new o;return function(e,i){return i=t.copy(i).multiplyScalar(.5),this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new o),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new o),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new o),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new o),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new o;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(Ma.prototype,{set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},getCenter:function(t){return t===void 0&&(console.warn("THREE.Line3: .getCenter() target is now required"),t=new u),t.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return t===void 0&&(console.warn("THREE.Line3: .delta() target is now required"),t=new u),t.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){return e===void 0&&(console.warn("THREE.Line3: .at() target is now required"),e=new u),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new u,e=new u;return function(i,n){return t.subVectors(i,this.start),e.subVectors(this.end,this.start),i=e.dot(e),i=e.dot(t)/i,n&&(i=pi.clamp(i,0,1)),i}}(),closestPointToPoint:function(t,e,i){return t=this.closestPointToPointParameter(t,e),i===void 0&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),i=new u),this.delta(i).multiplyScalar(t).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}}),qn.prototype=Object.create(B.prototype),qn.prototype.constructor=qn,qn.prototype.isImmediateRenderObject=!0,yi.prototype=Object.create(gi.prototype),yi.prototype.constructor=yi,yi.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){var n=["a","b","c"];this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var s=this.object.matrixWorld,a=this.geometry.attributes.position,c=this.object.geometry;if(c&&c.isGeometry)for(var f=c.vertices,v=c.faces,y=c=0,A=v.length;y<A;y++)for(var P=v[y],k=0,H=P.vertexNormals.length;k<H;k++){var q=P.vertexNormals[k];t.copy(f[P[n[k]]]).applyMatrix4(s),e.copy(q).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),a.setXYZ(c,t.x,t.y,t.z),c+=1,a.setXYZ(c,e.x,e.y,e.z),c+=1}else if(c&&c.isBufferGeometry)for(n=c.attributes.position,f=c.attributes.normal,k=c=0,H=n.count;k<H;k++)t.set(n.getX(k),n.getY(k),n.getZ(k)).applyMatrix4(s),e.set(f.getX(k),f.getY(k),f.getZ(k)),e.applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),a.setXYZ(c,t.x,t.y,t.z),c+=1,a.setXYZ(c,e.x,e.y,e.z),c+=1;a.needsUpdate=!0}}(),Sa.prototype=Object.create(B.prototype),Sa.prototype.constructor=Sa,Sa.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},Sa.prototype.update=function(){var t=new u,e=new u;return function(){this.light.updateMatrixWorld();var i=this.light.distance?this.light.distance:1e3,n=i*Math.tan(this.light.angle);this.cone.scale.set(n,n,i),t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(e.sub(t)),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),Ea.prototype=Object.create(gi.prototype),Ea.prototype.constructor=Ea,Ea.prototype.updateMatrixWorld=function(){var t=new u,e=new p,i=new p;return function(n){var s=this.bones,a=this.geometry,c=a.getAttribute("position");i.getInverse(this.root.matrixWorld);for(var f=0,v=0;f<s.length;f++){var y=s[f];y.parent&&y.parent.isBone&&(e.multiplyMatrices(i,y.matrixWorld),t.setFromMatrixPosition(e),c.setXYZ(v,t.x,t.y,t.z),e.multiplyMatrices(i,y.parent.matrixWorld),t.setFromMatrixPosition(e),c.setXYZ(v+1,t.x,t.y,t.z),v+=2)}a.getAttribute("position").needsUpdate=!0,B.prototype.updateMatrixWorld.call(this,n)}}(),kr.prototype=Object.create(di.prototype),kr.prototype.constructor=kr,kr.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},kr.prototype.update=function(){this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)},ba.prototype=Object.create(B.prototype),ba.prototype.constructor=ba,ba.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},ba.prototype.update=function(){var t=.5*this.light.width,e=.5*this.light.height,i=this.line.geometry.attributes.position,n=i.array;n[0]=t,n[1]=-e,n[2]=0,n[3]=t,n[4]=e,n[5]=0,n[6]=-t,n[7]=e,n[8]=0,n[9]=-t,n[10]=-e,n[11]=0,n[12]=t,n[13]=-e,n[14]=0,i.needsUpdate=!0,this.color!==void 0?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},Aa.prototype=Object.create(B.prototype),Aa.prototype.constructor=Aa,Aa.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},Aa.prototype.update=function(){var t=new u,e=new L,i=new L;return function(){var n=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{var s=n.geometry.getAttribute("color");e.copy(this.light.color),i.copy(this.light.groundColor);for(var a=0,c=s.count;a<c;a++){var f=a<c/2?e:i;s.setXYZ(a,f.r,f.g,f.b)}s.needsUpdate=!0}n.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),dl.prototype=Object.create(gi.prototype),dl.prototype.constructor=dl,ih.prototype=Object.create(gi.prototype),ih.prototype.constructor=ih,ml.prototype=Object.create(gi.prototype),ml.prototype.constructor=ml,ml.prototype.update=function(){var t=new u,e=new u,i=new m;return function(){this.object.updateMatrixWorld(!0),i.getNormalMatrix(this.object.matrixWorld);var n=this.object.matrixWorld,s=this.geometry.attributes.position,a=this.object.geometry,c=a.vertices;a=a.faces;for(var f=0,v=0,y=a.length;v<y;v++){var A=a[v],P=A.normal;t.copy(c[A.a]).add(c[A.b]).add(c[A.c]).divideScalar(3).applyMatrix4(n),e.copy(P).applyMatrix3(i).normalize().multiplyScalar(this.size).add(t),s.setXYZ(f,t.x,t.y,t.z),f+=1,s.setXYZ(f,e.x,e.y,e.z),f+=1}s.needsUpdate=!0}}(),pr.prototype=Object.create(B.prototype),pr.prototype.constructor=pr,pr.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},pr.prototype.update=function(){var t=new u,e=new u,i=new u;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),i.subVectors(e,t),this.lightPlane.lookAt(i),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(i),this.targetLine.scale.z=i.length()}}(),gl.prototype=Object.create(gi.prototype),gl.prototype.constructor=gl,gl.prototype.update=function(){function t(a,c,f,v){if(n.set(c,f,v).unproject(s),a=i[a],a!==void 0)for(c=e.getAttribute("position"),f=0,v=a.length;f<v;f++)c.setXYZ(a[f],n.x,n.y,n.z)}var e,i,n=new u,s=new ke;return function(){e=this.geometry,i=this.pointMap,s.projectionMatrix.copy(this.camera.projectionMatrix),t("c",0,0,-1),t("t",0,0,1),t("n1",-1,-1,-1),t("n2",1,-1,-1),t("n3",-1,1,-1),t("n4",1,1,-1),t("f1",-1,-1,1),t("f2",1,-1,1),t("f3",-1,1,1),t("f4",1,1,1),t("u1",.7,1.1,-1),t("u2",-.7,1.1,-1),t("u3",0,2,-1),t("cf1",-1,0,1),t("cf2",1,0,1),t("cf3",0,-1,1),t("cf4",0,1,1),t("cn1",-1,0,-1),t("cn2",1,0,-1),t("cn3",0,-1,-1),t("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),Ds.prototype=Object.create(gi.prototype),Ds.prototype.constructor=Ds,Ds.prototype.update=function(){var t=new N;return function(e){if(e!==void 0&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),this.object!==void 0&&t.setFromObject(this.object),!t.isEmpty()){e=t.min;var i=t.max,n=this.geometry.attributes.position,s=n.array;s[0]=i.x,s[1]=i.y,s[2]=i.z,s[3]=e.x,s[4]=i.y,s[5]=i.z,s[6]=e.x,s[7]=e.y,s[8]=i.z,s[9]=i.x,s[10]=e.y,s[11]=i.z,s[12]=i.x,s[13]=i.y,s[14]=e.z,s[15]=e.x,s[16]=i.y,s[17]=e.z,s[18]=e.x,s[19]=e.y,s[20]=e.z,s[21]=i.x,s[22]=e.y,s[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),Ds.prototype.setFromObject=function(t){return this.object=t,this.update(),this},Ds.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.object=t.object,this},Ds.prototype.clone=function(){return new this.constructor().copy(this)},vl.prototype=Object.create(gi.prototype),vl.prototype.constructor=vl,vl.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),B.prototype.updateMatrixWorld.call(this,t))},_l.prototype=Object.create(Wi.prototype),_l.prototype.constructor=_l,_l.prototype.updateMatrixWorld=function(t){var e=-this.plane.constant;1e-8>Math.abs(e)&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=0>e?1:0,this.lookAt(this.plane.normal),B.prototype.updateMatrixWorld.call(this,t)};var lh,Tl;zs.prototype=Object.create(B.prototype),zs.prototype.constructor=zs,zs.prototype.setDirection=function(){var t=new u,e;return function(i){.99999<i.y?this.quaternion.set(0,0,0,1):-.99999>i.y?this.quaternion.set(1,0,0,0):(t.set(i.z,0,-i.x).normalize(),e=Math.acos(i.y),this.quaternion.setFromAxisAngle(t,e))}}(),zs.prototype.setLength=function(t,e,i){e===void 0&&(e=.2*t),i===void 0&&(i=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(i,e,i),this.cone.position.y=t,this.cone.updateMatrix()},zs.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},zs.prototype.copy=function(t){return B.prototype.copy.call(this,t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this},zs.prototype.clone=function(){return new this.constructor().copy(this)},xr.prototype=Object.create(gi.prototype),xr.prototype.constructor=xr,Ee.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Ee.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(Os.prototype,{createPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getPoints(t),this.createGeometry(t)},createSpacedPointsGeometry:function(t){return console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."),t=this.getSpacedPoints(t),this.createGeometry(t)},createGeometry:function(t){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var e=new X,i=0,n=t.length;i<n;i++){var s=t[i];e.vertices.push(new u(s.x,s.y,s.z||0))}return e}}),Object.assign(fr.prototype,{fromPoints:function(t){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)}}),Pu.prototype=Object.create(On.prototype),Lu.prototype=Object.create(On.prototype),Hh.prototype=Object.create(On.prototype),Object.assign(Hh.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),dl.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Ea.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(Is.prototype,{extractUrlBase:function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Fo.extractUrlBase(t)}}),Object.assign(Do.prototype,{setTexturePath:function(t){return console.warn("THREE.JSONLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(ll.prototype,{setTexturePath:function(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(ro.prototype,{center:function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},size:function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)}}),Object.assign(N.prototype,{center:function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionSphere:function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},size:function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)}}),Ma.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},Object.assign(pi,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),pi.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),pi.ceilPowerOfTwo(t)}}),Object.assign(m.prototype,{flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},multiplyVector3:function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(p.prototype,{extractPosition:function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},getPosition:function(){var t;return function(){return t===void 0&&(t=new u),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),t.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector4:function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},crossVector:function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(t,e,i,n,s,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,n,i,s,a)}}),U.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},d.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Object.assign(Fi.prototype,{isIntersectionBox:function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionPlane:function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},isIntersectionSphere:function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(Oe.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},midpoint:function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},normal:function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},plane:function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)}}),Object.assign(Oe,{barycoordFromPoint:function(t,e,i,n,s){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Oe.getBarycoord(t,e,i,n,s)},normal:function(t,e,i,n){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Oe.getNormal(t,e,i,n)}}),Object.assign(Qn.prototype,{extractAllPoints:function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},extrude:function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Cs(this,t)},makeGeometry:function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Ps(this,t)}}),Object.assign(o.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(u.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},applyProjection:function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},fromAttribute:function(t,e,i){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(T.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(X.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")}}),Object.assign(B.prototype,{getChildByName:function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")}}),Object.defineProperties(B.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.defineProperties(rn.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(un.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Object.defineProperty(Ee.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),ye.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),e!==void 0&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(tn.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties($.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")}}),Object.assign(Ft.prototype,{addIndex:function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},addDrawCall:function(t,e,i){i!==void 0&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")}}),Object.defineProperties(Ft.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.assign(ps.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(eh.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Yt.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new L}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===1}}}),Object.defineProperties(Jr.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(ti.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Object.assign(xe.prototype,{clearTarget:function(t,e,i,n){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,i,n)},animate:function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")}}),Object.defineProperties(xe.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(_e.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(S.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Object.defineProperties(mi.prototype,{standing:{set:function(){console.warn("THREE.WebVRManager: .standing has been removed.")}},userHeight:{set:function(){console.warn("THREE.WebVRManager: .userHeight has been removed.")}}}),wa.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var e=this;return new vn().load(t,function(i){e.setBuffer(i)}),this},zo.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},hl.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},so.crossOrigin=void 0,so.loadTexture=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var s=new fn;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},so.loadTextureCube=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var s=new Bi;return s.setCrossOrigin(this.crossOrigin),t=s.load(t,i,void 0,n),e&&(t.mapping=e),t},so.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},so.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")},w.WebGLRenderTargetCube=C,w.WebGLRenderTarget=S,w.WebGLRenderer=xe,w.ShaderLib=xs,w.UniformsLib=qe,w.UniformsUtils=Bn,w.ShaderChunk=bi,w.FogExp2=Le,w.Fog=Sn,w.Scene=Xn,w.Sprite=nn,w.LOD=rn,w.SkinnedMesh=Ui,w.Skeleton=un,w.Bone=cn,w.Mesh=di,w.LineSegments=gi,w.LineLoop=cs,w.Line=Wi,w.Points=oa,w.Group=ci,w.VideoTexture=Rh,w.DataTexture=I,w.DataTexture3D=K,w.CompressedTexture=qs,w.CubeTexture=D,w.CanvasTexture=Za,w.DepthTexture=Ja,w.Texture=_,w.AnimationLoader=Qt,w.CompressedTextureLoader=Zt,w.DataTextureLoader=Ue,w.CubeTextureLoader=Bi,w.TextureLoader=fn,w.ObjectLoader=ll,w.MaterialLoader=Kl,w.BufferGeometryLoader=Dh,w.DefaultLoadingManager=tr,w.LoadingManager=to,w.JSONLoader=Do,w.ImageLoader=ai,w.ImageBitmapLoader=zh,w.FontLoader=bu,w.FileLoader=Rt,w.Loader=Is,w.LoaderUtils=Fo,w.Cache=Ts,w.AudioLoader=vn,w.SpotLightShadow=ol,w.SpotLight=al,w.PointLight=Oo,w.RectAreaLight=$l,w.HemisphereLight=sl,w.DirectionalLightShadow=io,w.DirectionalLight=ys,w.AmbientLight=Io,w.LightShadow=_s,w.Light=tn,w.StereoCamera=Vn,w.PerspectiveCamera=ye,w.OrthographicCamera=xa,w.CubeCamera=hl,w.ArrayCamera=Fe,w.Camera=ke,w.AudioListener=th,w.PositionalAudio=ul,w.AudioContext=qh,w.AudioAnalyser=zo,w.Audio=wa,w.VectorKeyframeTrack=_a,w.StringKeyframeTrack=Jl,w.QuaternionKeyframeTrack=va,w.NumberKeyframeTrack=$r,w.ColorKeyframeTrack=Zl,w.BooleanKeyframeTrack=Yl,w.PropertyMixer=cl,w.PropertyBinding=En,w.KeyframeTrack=Hn,w.AnimationUtils=Yn,w.AnimationObjectGroup=Ta,w.AnimationMixer=no,w.AnimationClip=yr,w.Uniform=eh,w.InstancedBufferGeometry=Nh,w.BufferGeometry=Ft,w.Geometry=X,w.InterleavedBufferAttribute=zi,w.InstancedInterleavedBuffer=Fh,w.InterleavedBuffer=Di,w.InstancedBufferAttribute=Uh,w.Face3=R,w.Object3D=B,w.Raycaster=Au,w.Layers=F,w.EventDispatcher=l,w.Clock=Bh,w.QuaternionLinearInterpolant=ar,w.LinearInterpolant=Dr,w.DiscreteInterpolant=Ro,w.CubicInterpolant=rl,w.Interpolant=$n,w.Triangle=Oe,w.Math=pi,w.Spherical=Gh,w.Cylindrical=et,w.Plane=U,w.Frustum=E,w.Sphere=z,w.Ray=Fi,w.Matrix4=p,w.Matrix3=m,w.Box3=N,w.Box2=ro,w.Line3=Ma,w.Euler=b,w.Vector4=T,w.Vector3=u,w.Vector2=o,w.Quaternion=d,w.Color=L,w.ImmediateRenderObject=qn,w.VertexNormalsHelper=yi,w.SpotLightHelper=Sa,w.SkeletonHelper=Ea,w.PointLightHelper=kr,w.RectAreaLightHelper=ba,w.HemisphereLightHelper=Aa,w.GridHelper=dl,w.PolarGridHelper=ih,w.FaceNormalsHelper=ml,w.DirectionalLightHelper=pr,w.CameraHelper=gl,w.BoxHelper=Ds,w.Box3Helper=vl,w.PlaneHelper=_l,w.ArrowHelper=zs,w.AxesHelper=xr,w.Shape=Qn,w.Path=fr,w.ShapePath=Ql,w.Font=kh,w.CurvePath=Os,w.Curve=Ee,w.ImageUtils=so,w.ShapeUtils=ws,w.WebGLUtils=He,w.WireframeGeometry=aa,w.ParametricGeometry=$a,w.ParametricBufferGeometry=la,w.TetrahedronGeometry=Ka,w.TetrahedronBufferGeometry=ha,w.OctahedronGeometry=Qa,w.OctahedronBufferGeometry=_o,w.IcosahedronGeometry=tl,w.IcosahedronBufferGeometry=ua,w.DodecahedronGeometry=ca,w.DodecahedronBufferGeometry=fa,w.PolyhedronGeometry=ji,w.PolyhedronBufferGeometry=xi,w.TubeGeometry=gn,w.TubeBufferGeometry=Ys,w.TorusKnotGeometry=Zr,w.TorusKnotBufferGeometry=yo,w.TorusGeometry=xo,w.TorusBufferGeometry=Un,w.TextGeometry=il,w.TextBufferGeometry=To,w.SphereGeometry=Zs,w.SphereBufferGeometry=Or,w.RingGeometry=nl,w.RingBufferGeometry=Mo,w.PlaneGeometry=Be,w.PlaneBufferGeometry=me,w.LatheGeometry=ma,w.LatheBufferGeometry=Js,w.ShapeGeometry=Ps,w.ShapeBufferGeometry=$s,w.ExtrudeGeometry=Cs,w.ExtrudeBufferGeometry=ps,w.EdgesGeometry=Ks,w.ConeGeometry=ga,w.ConeBufferGeometry=Gn,w.CylinderGeometry=Ls,w.CylinderBufferGeometry=Rs,w.CircleGeometry=So,w.CircleBufferGeometry=ds,w.BoxGeometry=It,w.BoxBufferGeometry=Bt,w.ShadowMaterial=Qs,w.SpriteMaterial=Gi,w.RawShaderMaterial=Eo,w.ShaderMaterial=ti,w.PointsMaterial=Fn,w.MeshPhysicalMaterial=bo,w.MeshStandardMaterial=ms,w.MeshPhongMaterial=Jr,w.MeshToonMaterial=Ao,w.MeshNormalMaterial=Co,w.MeshLambertMaterial=Ir,w.MeshDepthMaterial=oe,w.MeshDistanceMaterial=te,w.MeshBasicMaterial=Ge,w.MeshMatcapMaterial=Po,w.LineDashedMaterial=Lo,w.LineBasicMaterial=ki,w.Material=Yt,w.Float64BufferAttribute=Pt,w.Float32BufferAttribute=Et,w.Uint32BufferAttribute=Lt,w.Int32BufferAttribute=G,w.Uint16BufferAttribute=yt,w.Int16BufferAttribute=it,w.Uint8ClampedBufferAttribute=Ct,w.Uint8BufferAttribute=ft,w.Int8BufferAttribute=Q,w.BufferAttribute=$,w.ArcCurve=ya,w.CatmullRomCurve3=On,w.CubicBezierCurve=hr,w.CubicBezierCurve3=Ti,w.EllipseCurve=Kn,w.LineCurve=ur,w.LineCurve3=zr,w.QuadraticBezierCurve=cr,w.QuadraticBezierCurve3=vs,w.SplineCurve=Kr,w.REVISION="98",w.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2},w.CullFaceNone=0,w.CullFaceBack=1,w.CullFaceFront=2,w.CullFaceFrontBack=3,w.FrontFaceDirectionCW=0,w.FrontFaceDirectionCCW=1,w.BasicShadowMap=0,w.PCFShadowMap=1,w.PCFSoftShadowMap=2,w.FrontSide=0,w.BackSide=1,w.DoubleSide=2,w.FlatShading=1,w.SmoothShading=2,w.NoColors=0,w.FaceColors=1,w.VertexColors=2,w.NoBlending=0,w.NormalBlending=1,w.AdditiveBlending=2,w.SubtractiveBlending=3,w.MultiplyBlending=4,w.CustomBlending=5,w.AddEquation=100,w.SubtractEquation=101,w.ReverseSubtractEquation=102,w.MinEquation=103,w.MaxEquation=104,w.ZeroFactor=200,w.OneFactor=201,w.SrcColorFactor=202,w.OneMinusSrcColorFactor=203,w.SrcAlphaFactor=204,w.OneMinusSrcAlphaFactor=205,w.DstAlphaFactor=206,w.OneMinusDstAlphaFactor=207,w.DstColorFactor=208,w.OneMinusDstColorFactor=209,w.SrcAlphaSaturateFactor=210,w.NeverDepth=0,w.AlwaysDepth=1,w.LessDepth=2,w.LessEqualDepth=3,w.EqualDepth=4,w.GreaterEqualDepth=5,w.GreaterDepth=6,w.NotEqualDepth=7,w.MultiplyOperation=0,w.MixOperation=1,w.AddOperation=2,w.NoToneMapping=0,w.LinearToneMapping=1,w.ReinhardToneMapping=2,w.Uncharted2ToneMapping=3,w.CineonToneMapping=4,w.UVMapping=300,w.CubeReflectionMapping=301,w.CubeRefractionMapping=302,w.EquirectangularReflectionMapping=303,w.EquirectangularRefractionMapping=304,w.SphericalReflectionMapping=305,w.CubeUVReflectionMapping=306,w.CubeUVRefractionMapping=307,w.RepeatWrapping=1e3,w.ClampToEdgeWrapping=1001,w.MirroredRepeatWrapping=1002,w.NearestFilter=1003,w.NearestMipMapNearestFilter=1004,w.NearestMipMapLinearFilter=1005,w.LinearFilter=1006,w.LinearMipMapNearestFilter=1007,w.LinearMipMapLinearFilter=1008,w.UnsignedByteType=1009,w.ByteType=1010,w.ShortType=1011,w.UnsignedShortType=1012,w.IntType=1013,w.UnsignedIntType=1014,w.FloatType=1015,w.HalfFloatType=1016,w.UnsignedShort4444Type=1017,w.UnsignedShort5551Type=1018,w.UnsignedShort565Type=1019,w.UnsignedInt248Type=1020,w.AlphaFormat=1021,w.RGBFormat=1022,w.RGBAFormat=1023,w.LuminanceFormat=1024,w.LuminanceAlphaFormat=1025,w.RGBEFormat=1023,w.DepthFormat=1026,w.DepthStencilFormat=1027,w.RedFormat=1028,w.RGB_S3TC_DXT1_Format=33776,w.RGBA_S3TC_DXT1_Format=33777,w.RGBA_S3TC_DXT3_Format=33778,w.RGBA_S3TC_DXT5_Format=33779,w.RGB_PVRTC_4BPPV1_Format=35840,w.RGB_PVRTC_2BPPV1_Format=35841,w.RGBA_PVRTC_4BPPV1_Format=35842,w.RGBA_PVRTC_2BPPV1_Format=35843,w.RGB_ETC1_Format=36196,w.RGBA_ASTC_4x4_Format=37808,w.RGBA_ASTC_5x4_Format=37809,w.RGBA_ASTC_5x5_Format=37810,w.RGBA_ASTC_6x5_Format=37811,w.RGBA_ASTC_6x6_Format=37812,w.RGBA_ASTC_8x5_Format=37813,w.RGBA_ASTC_8x6_Format=37814,w.RGBA_ASTC_8x8_Format=37815,w.RGBA_ASTC_10x5_Format=37816,w.RGBA_ASTC_10x6_Format=37817,w.RGBA_ASTC_10x8_Format=37818,w.RGBA_ASTC_10x10_Format=37819,w.RGBA_ASTC_12x10_Format=37820,w.RGBA_ASTC_12x12_Format=37821,w.LoopOnce=2200,w.LoopRepeat=2201,w.LoopPingPong=2202,w.InterpolateDiscrete=2300,w.InterpolateLinear=2301,w.InterpolateSmooth=2302,w.ZeroCurvatureEnding=2400,w.ZeroSlopeEnding=2401,w.WrapAroundEnding=2402,w.TrianglesDrawMode=0,w.TriangleStripDrawMode=1,w.TriangleFanDrawMode=2,w.LinearEncoding=3e3,w.sRGBEncoding=3001,w.GammaEncoding=3007,w.RGBEEncoding=3002,w.LogLuvEncoding=3003,w.RGBM7Encoding=3004,w.RGBM16Encoding=3005,w.RGBDEncoding=3006,w.BasicDepthPacking=3200,w.RGBADepthPacking=3201,w.TangentSpaceNormalMap=0,w.ObjectSpaceNormalMap=1,w.CubeGeometry=It,w.Face4=function(t,e,i,n,s,a,c){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new R(t,e,i,s,a,c)},w.LineStrip=0,w.LinePieces=1,w.MeshFaceMaterial=function(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t},w.MultiMaterial=function(t){return t===void 0&&(t=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t},w.PointCloud=function(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new oa(t,e)},w.Particle=function(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new nn(t)},w.ParticleSystem=function(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new oa(t,e)},w.PointCloudMaterial=function(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},w.ParticleBasicMaterial=function(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},w.ParticleSystemMaterial=function(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Fn(t)},w.Vertex=function(t,e,i){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new u(t,e,i)},w.DynamicBufferAttribute=function(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new $(t,e).setDynamic(!0)},w.Int8Attribute=function(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new Q(t,e)},w.Uint8Attribute=function(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new ft(t,e)},w.Uint8ClampedAttribute=function(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new Ct(t,e)},w.Int16Attribute=function(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new it(t,e)},w.Uint16Attribute=function(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new yt(t,e)},w.Int32Attribute=function(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new G(t,e)},w.Uint32Attribute=function(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Lt(t,e)},w.Float32Attribute=function(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Et(t,e)},w.Float64Attribute=function(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Pt(t,e)},w.ClosedSplineCurve3=Pu,w.SplineCurve3=Lu,w.Spline=Hh,w.AxisHelper=function(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new xr(t)},w.BoundingBoxHelper=function(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new Ds(t,e)},w.EdgesHelper=function(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new gi(new Ks(t.geometry),new ki({color:e!==void 0?e:16777215}))},w.WireframeHelper=function(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new gi(new aa(t.geometry),new ki({color:e!==void 0?e:16777215}))},w.XHRLoader=function(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new Rt(t)},w.BinaryTextureLoader=function(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Ue(t)},w.GeometryUtils={merge:function(t,e,i){if(console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),e.isMesh){e.matrixAutoUpdate&&e.updateMatrix();var n=e.matrix;e=e.geometry}t.merge(e,n,i)},center:function(t){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),t.center()}},w.Projector=function(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.projectVector=function(t,e){console.warn("THREE.Projector: .projectVector() is now vector.project()."),t.project(e)},this.unprojectVector=function(t,e){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),t.unproject(e)},this.pickingRay=function(){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}},w.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")},w.SceneUtils={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")}},w.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")},Object.defineProperty(w,"__esModule",{value:!0})}),THREE.Sky=function(){var w=THREE.Sky.SkyShader,l=new THREE.ShaderMaterial({fragmentShader:w.fragmentShader,vertexShader:w.vertexShader,uniforms:THREE.UniformsUtils.clone(w.uniforms),side:THREE.BackSide});THREE.Mesh.call(this,new THREE.BoxBufferGeometry(1,1,1),l)},THREE.Sky.prototype=Object.create(THREE.Mesh.prototype),THREE.Sky.SkyShader={uniforms:{luminance:{value:1},turbidity:{value:2},rayleigh:{value:1},mieCoefficient:{value:.005},mieDirectionalG:{value:.8},sunPosition:{value:new THREE.Vector3}},vertexShader:["uniform vec3 sunPosition;","uniform float rayleigh;","uniform float turbidity;","uniform float mieCoefficient;","varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float e = 2.71828182845904523536028747135266249775724709369995957;","const float pi = 3.141592653589793238462643383279502884197169;","const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );","const vec3 totalRayleigh = vec3( 5.804542996261093E-6, 1.3562911419845635E-5, 3.0265902468824876E-5 );","const float v = 4.0;","const vec3 K = vec3( 0.686, 0.678, 0.666 );","const vec3 MieConst = vec3( 1.8399918514433978E14, 2.7798023919660528E14, 4.0790479543861094E14 );","const float cutoffAngle = 1.6110731556870734;","const float steepness = 1.5;","const float EE = 1000.0;","float sunIntensity( float zenithAngleCos ) {"," zenithAngleCos = clamp( zenithAngleCos, -1.0, 1.0 );"," return EE * max( 0.0, 1.0 - pow( e, -( ( cutoffAngle - acos( zenithAngleCos ) ) / steepness ) ) );","}","vec3 totalMie( float T ) {"," float c = ( 0.2 * T ) * 10E-18;"," return 0.434 * c * MieConst;","}","void main() {"," vec4 worldPosition = modelMatrix * vec4( position, 1.0 );"," vWorldPosition = worldPosition.xyz;"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );"," gl_Position.z = gl_Position.w;"," vSunDirection = normalize( sunPosition );"," vSunE = sunIntensity( dot( vSunDirection, up ) );"," vSunfade = 1.0 - clamp( 1.0 - exp( ( sunPosition.y / 450000.0 ) ), 0.0, 1.0 );"," float rayleighCoefficient = rayleigh - ( 1.0 * ( 1.0 - vSunfade ) );"," vBetaR = totalRayleigh * rayleighCoefficient;"," vBetaM = totalMie( turbidity ) * mieCoefficient;","}"].join(`
|
|
2572
2572
|
`),fragmentShader:["varying vec3 vWorldPosition;","varying vec3 vSunDirection;","varying float vSunfade;","varying vec3 vBetaR;","varying vec3 vBetaM;","varying float vSunE;","uniform float luminance;","uniform float mieDirectionalG;","const vec3 cameraPos = vec3( 0.0, 1.0, 0.0 );","const float pi = 3.141592653589793238462643383279502884197169;","const float n = 1.0003;","const float N = 2.545E25;","const float rayleighZenithLength = 8.4E3;","const float mieZenithLength = 1.25E3;","const vec3 up = vec3( 0.0, 1.0, 0.0 );","const float sunAngularDiameterCos = 0.999956676946448443553574619906976478926848692873900859324;","const float THREE_OVER_SIXTEENPI = 0.05968310365946075;","const float ONE_OVER_FOURPI = 0.07957747154594767;","float rayleighPhase( float cosTheta ) {"," return THREE_OVER_SIXTEENPI * ( 1.0 + pow( cosTheta, 2.0 ) );","}","float hgPhase( float cosTheta, float g ) {"," float g2 = pow( g, 2.0 );"," float inverse = 1.0 / pow( 1.0 - 2.0 * g * cosTheta + g2, 1.5 );"," return ONE_OVER_FOURPI * ( ( 1.0 - g2 ) * inverse );","}","const float A = 0.15;","const float B = 0.50;","const float C = 0.10;","const float D = 0.20;","const float E = 0.02;","const float F = 0.30;","const float whiteScale = 1.0748724675633854;","vec3 Uncharted2Tonemap( vec3 x ) {"," return ( ( x * ( A * x + C * B ) + D * E ) / ( x * ( A * x + B ) + D * F ) ) - E / F;","}","void main() {"," float zenithAngle = acos( max( 0.0, dot( up, normalize( vWorldPosition - cameraPos ) ) ) );"," float inverse = 1.0 / ( cos( zenithAngle ) + 0.15 * pow( 93.885 - ( ( zenithAngle * 180.0 ) / pi ), -1.253 ) );"," float sR = rayleighZenithLength * inverse;"," float sM = mieZenithLength * inverse;"," vec3 Fex = exp( -( vBetaR * sR + vBetaM * sM ) );"," float cosTheta = dot( normalize( vWorldPosition - cameraPos ), vSunDirection );"," float rPhase = rayleighPhase( cosTheta * 0.5 + 0.5 );"," vec3 betaRTheta = vBetaR * rPhase;"," float mPhase = hgPhase( cosTheta, mieDirectionalG );"," vec3 betaMTheta = vBetaM * mPhase;"," vec3 Lin = pow( vSunE * ( ( betaRTheta + betaMTheta ) / ( vBetaR + vBetaM ) ) * ( 1.0 - Fex ), vec3( 1.5 ) );"," Lin *= mix( vec3( 1.0 ), pow( vSunE * ( ( betaRTheta + betaMTheta ) / ( vBetaR + vBetaM ) ) * Fex, vec3( 1.0 / 2.0 ) ), clamp( pow( 1.0 - dot( up, vSunDirection ), 5.0 ), 0.0, 1.0 ) );"," vec3 direction = normalize( vWorldPosition - cameraPos );"," float theta = acos( direction.y ); // elevation --> y-axis, [-pi/2, pi/2]"," float phi = atan( direction.z, direction.x ); // azimuth --> x-axis [-pi/2, pi/2]"," vec2 uv = vec2( phi, theta ) / vec2( 2.0 * pi, pi ) + vec2( 0.5, 0.0 );"," vec3 L0 = vec3( 0.1 ) * Fex;"," float sundisk = smoothstep( sunAngularDiameterCos, sunAngularDiameterCos + 0.00002, cosTheta );"," L0 += ( vSunE * 19000.0 * Fex ) * sundisk;"," vec3 texColor = ( Lin + L0 ) * 0.04 + vec3( 0.0, 0.0003, 0.00075 );"," vec3 curr = Uncharted2Tonemap( ( log2( 2.0 / pow( luminance, 4.0 ) ) ) * texColor );"," vec3 color = curr * whiteScale;"," vec3 retColor = pow( color, vec3( 1.0 / ( 1.2 + ( 1.2 * vSunfade ) ) ) );"," gl_FragColor = vec4( retColor, 1.0 );","}"].join(`
|
|
2573
|
-
`)},function(
|
|
2574
|
-
<div class="title">${
|
|
2575
|
-
</div >`;break;case"2":
|
|
2576
|
-
<div class="title">${
|
|
2573
|
+
`)},function(w){typeof module>"u"?window.charming=w:module.exports=w}(function(w,l){l=l||{};var o=l.tagName||"span",p=l.classPrefix!=null?l.classPrefix:"char",d=1,u=function(m){for(var _=m.parentNode,T=m.nodeValue,S=T.length,C=-1;++C<S;){var I=document.createElement(o);p&&(I.className=p+d,d++),I.appendChild(document.createTextNode(T[C])),_.insertBefore(I,m)}_.removeChild(m)};return function m(_){for(var T=[].slice.call(_.childNodes),S=T.length,C=-1;++C<S;)m(T[C]);_.nodeType===Node.TEXT_NODE&&u(_)}(w),w});class tm{constructor(l,o=[]){mars3d?(this.map=l,this.tilesetLayer,this.modelArr=o,this.bimObliquePhotographyId=[],this.editDate={id:null}):console.error("未引入指定插件")}pushModel(l){this.modelArr.push(l)}add(l,o){const p=new Map([["click",mars3d.EventType.click]]);return new Promise((d,u)=>{let m,_,T,S,C,I,N,z,U;if(typeof l!="object"){let L=this.query(l);L||u("缺少树结构");let{id:x,bimModelExcavationDetails:M,bimModel:R}=L;m=x,_=R.modelType,T=R.tender,S=R.releasedDistance,C=R.modelName,I=R.isDynamicReleased,N={bimModelExcavationDetails:M},z=L.url,U=R.modelColor}else m=l.modelId,_=l.modelType,T=l.tender,S=l.releasedDistance,C=l.modelTitle,I=l.permission,N=l.customize,z=l.url,U=l.color;let E=this.map.getLayer(l,"modelId");if(E)return d(E),!1;if(z.indexOf("tileset.json")<0)return console.error("链接不完整",C),d({tite:"【模型】"+C+"数据地址有误",type:"error",id:m,url:z}),!1;new Cesium.Resource({url:z}).fetchJson().then(x=>{let M=null,R={enabled:!0,precise:!1},b=[];U&&(M={color:{conditions:[["true",U]]}}),window.bimClip&&window.bimClip.activeObj[m]&&(Object.keys(window.bimClip.activeObj[m]).forEach(F=>{let{item:B}=window.bimClip.activeObj[m][F],{bimModelExcavationDetails:X}=B,{excavationDetails:$}=X;b.push({positions:JSON.parse($).excavationDetails,id:Number(F)})}),b.length>0&&(R.area=b)),this.tilesetLayer=new mars3d.layer.TilesetLayer({modelId:m,modelType:_,tender:T,releasedDistance:S,modelTitle:C,permission:I,customize:N,url:encodeURI(z),flat:{precise:!1},skipLevelOfDetail:!0,loadSiblings:!0,cullRequestsWhileMoving:!0,cullRequestsWhileMovingMultiplier:10,preferLeaves:!0,progressiveResolutionHeightFraction:.5,dynamicScreenSpaceError:!0,preloadWhenHidden:!1,style:M,clip:R,cacheBytes:1073741824*2,maximumCacheOverflowBytes:2147483648*2}),this.tilesetLayer.bindPopup(F=>{if(F.graphic){const B=F.graphic.attr;let X=null,$=null;return JSON.stringify(B)!=="{}"?(B.name&&(X=B.name.lastIndexOf("@")),X&&X>-1&&($=B.name.slice(0,X)),B.name?` <span>${$||B.name}</span> `:` <span>${C}</span> `):` <span>${C}</span> `}else return` <span>${C}</span> `}),this.tilesetLayer.readyPromise.then(F=>{console.log("加载完成",this.tilesetLayer,F),d(F);let{modelId:B}=F.options;F.clip.options.area.forEach(X=>{window.bimClip.activeObj[B][X.id].id==null&&(window.bimClip.activeObj[B][X.id].id=X.id)})}).catch(F=>{d()}),this.tilesetLayer.on("click",F=>{F.layer.style==null&&map.bimMapEdit=="0"&&F.layer.openHighlight({color:"rgba(255,0,0,1)"},!0)}),o&&Object.keys(o).forEach(F=>{this.tilesetLayer.on(p.get(F),B=>{o[F](B)})}),_==0&&this.bimObliquePhotographyId.push(m),this.map.addLayer(this.tilesetLayer)}).catch(x=>{console.error("数据加载失败",C),d({tite:"【模型】"+C+"数据加载失败",type:"error",id:m,url:z})})})}remove(l){this.map.getLayer(l,"modelId")&&(this.map.getLayer(l,"modelId").closeHighlight(),this.map.removeLayer(this.map.getLayer(l,"modelId")))}selected(l,o=!0){return new Promise((p,d)=>{let u=this.map.getLayer(l,"modelId");u?(o&&u.flyTo(),u.style==null&&map.bimMapEdit=="0"&&u.openHighlight({color:"rgba(255,0,0,1)"},!0),p(u)):this.add(l).then(m=>{m&&(o&&m.flyTo(),m.style==null&&map.bimMapEdit=="0"&&m.openHighlight({color:"rgba(255,0,0,1)"},!0),p(m))})})}initial(){this.modelArr=[],this.bimObliquePhotographyId=[],this.tilesetLayer=null}query(l){return this.modelArr.length==0?!1:this.modelArr.find(o=>o.id==l)}postEditDate(l){this.editDate={id:l}}editColor(l,o,p="true"){let d=this.map.getLayer(l,"modelId");if(this.postEditDate(l),o)d.style={color:{conditions:[[p,o]]}};else{let u=this.query(l).modelColor;u?d.style={color:{conditions:[[p,u]]}}:d.style=null}}editOpacity(l,o){this.map.getLayer(l,"modelId").opacity=o}addClip(l){return new Promise((o,p)=>{window.bimClip?o(bimClip.clipModelAdd(l)):p("挖洞工具未初始化")})}removeClip(l){window.bimClip?window.bimClip.clipModelremoveClip(l):console.log("挖洞工具未初始化")}}const iu=w=>Object.prototype.toString.call(w)==="[object Object]";function nu(){const w=Array.from(arguments);if(w.length<2)return w[0];let l=w[0];return w.shift(),w.forEach(o=>{if(iu(o)){iu(l)||(l={});for(let p in o)l[p]&&iu(o[p])?l[p]=nu(l[p],o[p]):l[p]=o[p]}else o instanceof Array&&(l instanceof Array||(l=[]),o.forEach((p,d)=>{iu(p)?l[d]=nu(l[d]):l[d]=p}))}),l}let ph={};const Tf=(w,l,o)=>{ph={};let{vectorStyle:p,difference:d}=w;if(p){let{divType:u}=p,m="";if(u){let{theme_color:_,title:T,font_color:S,content:C,scaleByDistance:I,scaleByDistance_far:N,scaleByDistance_farValue:z,scaleByDistance_near:U,scaleByDistance_nearValue:E,distanceDisplayCondition:L,distanceDisplayCondition_far:x,distanceDisplayCondition_near:M,clampToGround:R,divStyle:b}=p,{theme_color2:F,theme_color3:B}=b;switch(u){case"1":m=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${_};--theme-font-color1:${S};">
|
|
2574
|
+
<div class="title">${T}</div>
|
|
2575
|
+
</div >`;break;case"2":m=`<div class="entity-div-style entity-div-style2" style="--theme-color1:${_};--theme-font-color1:${S};">
|
|
2576
|
+
<div class="title">${T}</div>
|
|
2577
2577
|
<div class="mars3d-divUpLabel-line"></div>
|
|
2578
|
-
</div >`;break;case"3":
|
|
2578
|
+
</div >`;break;case"3":m=`<div class="entity-div-style entity-div-style3" style="--theme-color1:${_};--theme-font-color1:${S};--theme-color2:${F};--theme-color3:${B}">
|
|
2579
2579
|
<div class="image"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div>
|
|
2580
|
-
<div class="infotop"><div class="title">${
|
|
2581
|
-
</div >`;break;case"4":
|
|
2582
|
-
<div class="title">${
|
|
2583
|
-
</div >`;break;case"5":
|
|
2580
|
+
<div class="infotop"><div class="title">${T}</div><div class="content overflow-auto scrollbar h-full">${C}</div></div>
|
|
2581
|
+
</div >`;break;case"4":m=`<div class="entity-div-style entity-div-style4" style="--theme-color1:${_};--theme-font-color1:${S};">
|
|
2582
|
+
<div class="title">${T}</div>
|
|
2583
|
+
</div >`;break;case"5":m=`<div class="entity-div-style entity-div-style5 marsTiltPanel marsTiltPanel-theme-green" style="--theme-color1:${_};--theme-font-color1:${S};--theme-color2:${F};">
|
|
2584
2584
|
<div class="marsTiltPanel-wrap">
|
|
2585
2585
|
<div class="area">
|
|
2586
2586
|
<div class="arrow-lt"></div>
|
|
@@ -2590,61 +2590,61 @@ void main() {
|
|
|
2590
2590
|
<div class="b-l"></div>
|
|
2591
2591
|
<div class="arrow-rb"></div>
|
|
2592
2592
|
<div class="label-wrap">
|
|
2593
|
-
<div class="title">${
|
|
2594
|
-
<div class="content">${
|
|
2593
|
+
<div class="title">${T}</div>
|
|
2594
|
+
<div class="content">${C}</div>
|
|
2595
2595
|
</div>
|
|
2596
2596
|
</div>
|
|
2597
2597
|
<div class="b-t-l"></div>
|
|
2598
2598
|
<div class="b-b-r"></div>
|
|
2599
2599
|
</div>
|
|
2600
2600
|
<div class="arrow"></div>
|
|
2601
|
-
</div >`;break;case"6":
|
|
2602
|
-
<div class="title">${
|
|
2603
|
-
</div >`;break;case"7":
|
|
2604
|
-
<div class="title">${
|
|
2601
|
+
</div >`;break;case"6":m=`<div class="entity-div-style entity-div-style6" style="--theme-color1:${_};--theme-font-color1:${S};--theme-color2:${F};">
|
|
2602
|
+
<div class="title">${T}</div>
|
|
2603
|
+
</div >`;break;case"7":m=`<div class="entity-div-style entity-div-style7" style="--theme-color1:${_};--theme-font-color1:${S};">
|
|
2604
|
+
<div class="title">${T}</div>
|
|
2605
2605
|
<div class="pile-number">
|
|
2606
2606
|
<div class="circular"></div>
|
|
2607
2607
|
<div class="pole"></div>
|
|
2608
2608
|
</div>
|
|
2609
|
-
</div >`;break}
|
|
2609
|
+
</div >`;break}ph={html:m,scaleByDistance:I,scaleByDistance_far:N,scaleByDistance_farValue:z,scaleByDistance_near:U,scaleByDistance_nearValue:E,distanceDisplayCondition:L,distanceDisplayCondition_far:x,distanceDisplayCondition_near:M,clampToGround:R}}else w.difference&&w.difference.length>0&&w.difference.forEach(_=>{nu(ph,{[_]:p[_]})}),l&&l.difference&&l.difference.length>0&&l.difference.forEach(_=>{nu(ph,{label:{[_]:l.labelStyle[_]}})})}return ph};var Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ju(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}var ru={exports:{}};/**
|
|
2610
2610
|
* @license
|
|
2611
2611
|
* Lodash <https://lodash.com/>
|
|
2612
2612
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
2613
2613
|
* Released under MIT license <https://lodash.com/license>
|
|
2614
2614
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
2615
2615
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
2616
|
-
*/Ll.exports,function(T,$){(function(){var p,J="4.17.21",G=200,m="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",C="Expected a function",O="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",U=500,Y="__lodash_placeholder__",H=1,K=2,B=4,q=1,b=2,A=1,d=2,g=4,M=8,x=16,F=32,z=64,W=128,ht=256,ft=512,gt=30,zt="...",lt=800,Et=16,D=1,Bt=2,Ct=3,Rt=1/0,ge=9007199254740991,ue=17976931348623157e292,Ft=0/0,Dt=4294967295,kt=Dt-1,Fe=Dt>>>1,xe=[["ary",W],["bind",A],["bindKey",d],["curry",M],["curryRight",x],["flip",ft],["partial",F],["partialRight",z],["rearg",ht]],Zt="[object Arguments]",ti="[object Array]",ki="[object AsyncFunction]",Ie="[object Boolean]",Ge="[object Date]",di="[object DOMException]",Ri="[object Error]",hn="[object Function]",Ji="[object GeneratorFunction]",R="[object Map]",Jt="[object Number]",jt="[object Null]",ct="[object Object]",pt="[object Promise]",Lt="[object Proxy]",ie="[object RegExp]",Kt="[object Set]",w="[object String]",X="[object Symbol]",nt="[object Undefined]",tt="[object WeakMap]",vt="[object WeakSet]",Gt="[object ArrayBuffer]",Xt="[object DataView]",Wt="[object Float32Array]",Ne="[object Float64Array]",Re="[object Int8Array]",de="[object Int16Array]",we="[object Int32Array]",yi="[object Uint8Array]",Si="[object Uint8ClampedArray]",ni="[object Uint16Array]",Ei="[object Uint32Array]",Tr=/\b__p \+= '';/g,Xn=/\b(__p \+=) '' \+/g,nn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kr=/&(?:amp|lt|gt|quot|#39);/g,Ii=/[&<>"']/g,fo=RegExp(Kr.source),Ir=RegExp(Ii.source),Ea=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,hs=/<%=([\s\S]+?)%>/g,Ro=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,us=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vs=/[\\^$.*+?()[\]{}|]/g,ba=RegExp(Vs.source),Or=/^\s+/,tl=/\s/,cs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,js=/\{\n\/\* \[wrapped with (.+)\] \*/,Dr=/,? & /,Ws=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fs=/[()=,{}\[\]\/\s]/,ps=/\\(\\)?/g,zr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Aa=/\w*$/,el=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,Io=/^\[object .+?Constructor\]$/,Oo=/^0o[0-7]+$/i,Ca=/^(?:0|[1-9]\d*)$/,Pa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mr=/($^)/,L=/['\n\r\u2028\u2029\\]/g,Z="\\ud800-\\udfff",ot="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",I="\\u20d0-\\u20ff",Mt=ot+rt+I,st="\\u2700-\\u27bf",Pt="a-z\\xdf-\\xf6\\xf8-\\xff",Ht="\\xac\\xb1\\xd7\\xf7",Ot="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tt="\\u2000-\\u206f",le=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oe="A-Z\\xc0-\\xd6\\xd8-\\xde",te="\\ufe0e\\ufe0f",ve=Ht+Ot+Tt+le,he="['’]",We="["+Z+"]",He="["+ve+"]",ci="["+Mt+"]",Be="\\d+",ye="["+st+"]",ke="["+Pt+"]",ce="[^"+Z+ve+Be+st+Pt+oe+"]",mi="\\ud83c[\\udffb-\\udfff]",Pe="(?:"+ci+"|"+mi+")",_e="[^"+Z+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",vn="[\\ud800-\\udbff][\\udc00-\\udfff]",zn="["+oe+"]",Oi="\\u200d",Di="(?:"+ke+"|"+ce+")",Fi="(?:"+zn+"|"+ce+")",Qi="(?:"+he+"(?:d|ll|m|re|s|t|ve))?",tn="(?:"+he+"(?:D|LL|M|RE|S|T|VE))?",sn=Pe+"?",an="["+te+"]?",Ui="(?:"+Oi+"(?:"+[_e,Le,vn].join("|")+")"+an+sn+")*",zi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gi=an+sn+Ui,Br="(?:"+[ye,Le,vn].join("|")+")"+gi,Ln="(?:"+[_e+ci+"?",ci,Le,vn,We].join("|")+")",ds=RegExp(he,"g"),nl=RegExp(ci,"g"),po=RegExp(mi+"(?="+mi+")|"+Ln+gi,"g"),Xs=RegExp([zn+"?"+ke+"+"+Qi+"(?="+[He,zn,"$"].join("|")+")",Fi+"+"+tn+"(?="+[He,zn+Di,"$"].join("|")+")",zn+"?"+Di+"+"+Qi,zn+"+"+tn,Vi,zi,Be,Br].join("|"),"g"),qs=RegExp("["+Oi+Z+Mt+te+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ys=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gs=-1,ji={};ji[Wt]=ji[Ne]=ji[Re]=ji[de]=ji[we]=ji[yi]=ji[Si]=ji[ni]=ji[Ei]=!0,ji[Zt]=ji[ti]=ji[Gt]=ji[Ie]=ji[Xt]=ji[Ge]=ji[Ri]=ji[hn]=ji[R]=ji[Jt]=ji[ct]=ji[ie]=ji[Kt]=ji[w]=ji[tt]=!1;var xi={};xi[Zt]=xi[ti]=xi[Gt]=xi[Xt]=xi[Ie]=xi[Ge]=xi[Wt]=xi[Ne]=xi[Re]=xi[de]=xi[we]=xi[R]=xi[Jt]=xi[ct]=xi[ie]=xi[Kt]=xi[w]=xi[X]=xi[yi]=xi[Si]=xi[ni]=xi[Ei]=!0,xi[Ri]=xi[hn]=xi[tt]=!1;var Zs={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},vs={"&":"&","<":"<",">":">",'"':""","'":"'"},Js={"&":"&","<":"<",">":">",""":'"',"'":"'"},Do={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$s=parseFloat,ys=parseInt,_s=typeof ur=="object"&&ur&&ur.Object===Object&&ur,xs=typeof self=="object"&&self&&self.Object===Object&&self,un=_s||xs||Function("return this")(),mo=$&&!$.nodeType&&$,Sr=mo&&!0&&T&&!T.nodeType&&T,zo=Sr&&Sr.exports===mo,Bo=zo&&_s.process,Rn=function(){try{var At=Sr&&Sr.require&&Sr.require("util").types;return At||Bo&&Bo.binding&&Bo.binding("util")}catch{}}(),rl=Rn&&Rn.isArrayBuffer,ws=Rn&&Rn.isDate,Ts=Rn&&Rn.isMap,Il=Rn&&Rn.isRegExp,Ol=Rn&&Rn.isSet,La=Rn&&Rn.isTypedArray;function nr(At,Qt,Yt){switch(Yt.length){case 0:return At.call(Qt);case 1:return At.call(Qt,Yt[0]);case 2:return At.call(Qt,Yt[0],Yt[1]);case 3:return At.call(Qt,Yt[0],Yt[1],Yt[2])}return At.apply(Qt,Yt)}function Ra(At,Qt,Yt,Ue){for(var ai=-1,Bi=At==null?0:At.length;++ai<Bi;){var ln=At[ai];Qt(Ue,ln,Yt(ln),At)}return Ue}function Yi(At,Qt){for(var Yt=-1,Ue=At==null?0:At.length;++Yt<Ue&&Qt(At[Yt],Yt,At)!==!1;);return At}function No(At,Qt){for(var Yt=At==null?0:At.length;Yt--&&Qt(At[Yt],Yt,At)!==!1;);return At}function ol(At,Qt){for(var Yt=-1,Ue=At==null?0:At.length;++Yt<Ue;)if(!Qt(At[Yt],Yt,At))return!1;return!0}function cr(At,Qt){for(var Yt=-1,Ue=At==null?0:At.length,ai=0,Bi=[];++Yt<Ue;){var ln=At[Yt];Qt(ln,Yt,At)&&(Bi[ai++]=ln)}return Bi}function Ks(At,Qt){var Yt=At==null?0:At.length;return!!Yt&&fr(At,Qt,0)>-1}function Ia(At,Qt,Yt){for(var Ue=-1,ai=At==null?0:At.length;++Ue<ai;)if(Yt(Qt,At[Ue]))return!0;return!1}function Xi(At,Qt){for(var Yt=-1,Ue=At==null?0:At.length,ai=Array(Ue);++Yt<Ue;)ai[Yt]=Qt(At[Yt],Yt,At);return ai}function Nr(At,Qt){for(var Yt=-1,Ue=Qt.length,ai=At.length;++Yt<Ue;)At[ai+Yt]=Qt[Yt];return At}function Oa(At,Qt,Yt,Ue){var ai=-1,Bi=At==null?0:At.length;for(Ue&&Bi&&(Yt=At[++ai]);++ai<Bi;)Yt=Qt(Yt,At[ai],ai,At);return Yt}function Dl(At,Qt,Yt,Ue){var ai=At==null?0:At.length;for(Ue&&ai&&(Yt=At[--ai]);ai--;)Yt=Qt(Yt,At[ai],ai,At);return Yt}function Qr(At,Qt){for(var Yt=-1,Ue=At==null?0:At.length;++Yt<Ue;)if(Qt(At[Yt],Yt,At))return!0;return!1}var kr=vo("length");function zl(At){return At.split("")}function Qs(At){return At.match(Ws)||[]}function ko(At,Qt,Yt){var Ue;return Yt(At,function(ai,Bi,ln){if(Qt(ai,Bi,ln))return Ue=Bi,!1}),Ue}function go(At,Qt,Yt,Ue){for(var ai=At.length,Bi=Yt+(Ue?1:-1);Ue?Bi--:++Bi<ai;)if(Qt(At[Bi],Bi,At))return Bi;return-1}function fr(At,Qt,Yt){return Qt===Qt?Da(At,Qt,Yt):go(At,Uo,Yt)}function ta(At,Qt,Yt,Ue){for(var ai=Yt-1,Bi=At.length;++ai<Bi;)if(Ue(At[ai],Qt))return ai;return-1}function Uo(At){return At!==At}function Ms(At,Qt){var Yt=At==null?0:At.length;return Yt?_o(At,Qt)/Yt:Ft}function vo(At){return function(Qt){return Qt==null?p:Qt[At]}}function to(At){return function(Qt){return At==null?p:At[Qt]}}function yo(At,Qt,Yt,Ue,ai){return ai(At,function(Bi,ln,Ee){Yt=Ue?(Ue=!1,Bi):Qt(Yt,Bi,ln,Ee)}),Yt}function Bl(At,Qt){var Yt=At.length;for(At.sort(Qt);Yt--;)At[Yt]=At[Yt].value;return At}function _o(At,Qt){for(var Yt,Ue=-1,ai=At.length;++Ue<ai;){var Bi=Qt(At[Ue]);Bi!==p&&(Yt=Yt===p?Bi:Yt+Bi)}return Yt}function eo(At,Qt){for(var Yt=-1,Ue=Array(At);++Yt<At;)Ue[Yt]=Qt(Yt);return Ue}function io(At,Qt){return Xi(Qt,function(Yt){return[Yt,At[Yt]]})}function Ss(At){return At&&At.slice(0,Es(At)+1).replace(Or,"")}function In(At){return function(Qt){return At(Qt)}}function Fo(At,Qt){return Xi(Qt,function(Yt){return At[Yt]})}function Ur(At,Qt){return At.has(Qt)}function xo(At,Qt){for(var Yt=-1,Ue=At.length;++Yt<Ue&&fr(Qt,At[Yt],0)>-1;);return Yt}function Go(At,Qt){for(var Yt=At.length;Yt--&&fr(Qt,At[Yt],0)>-1;);return Yt}function Fr(At,Qt){for(var Yt=At.length,Ue=0;Yt--;)At[Yt]===Qt&&++Ue;return Ue}var Ho=to(Zs),Er=to(vs);function Vo(At){return"\\"+Do[At]}function jo(At,Qt){return At==null?p:At[Qt]}function pr(At){return qs.test(At)}function Wo(At){return ms.test(At)}function Xo(At){for(var Qt,Yt=[];!(Qt=At.next()).done;)Yt.push(Qt.value);return Yt}function Fn(At){var Qt=-1,Yt=Array(At.size);return At.forEach(function(Ue,ai){Yt[++Qt]=[ai,Ue]}),Yt}function ea(At,Qt){return function(Yt){return At(Qt(Yt))}}function dr(At,Qt){for(var Yt=-1,Ue=At.length,ai=0,Bi=[];++Yt<Ue;){var ln=At[Yt];(ln===Qt||ln===Y)&&(At[Yt]=Y,Bi[ai++]=Yt)}return Bi}function qo(At){var Qt=-1,Yt=Array(At.size);return At.forEach(function(Ue){Yt[++Qt]=Ue}),Yt}function On(At){var Qt=-1,Yt=Array(At.size);return At.forEach(function(Ue){Yt[++Qt]=[Ue,Ue]}),Yt}function Da(At,Qt,Yt){for(var Ue=Yt-1,ai=At.length;++Ue<ai;)if(At[Ue]===Qt)return Ue;return-1}function za(At,Qt,Yt){for(var Ue=Yt+1;Ue--;)if(At[Ue]===Qt)return Ue;return Ue}function br(At){return pr(At)?bs(At):kr(At)}function qn(At){return pr(At)?rr(At):zl(At)}function Es(At){for(var Qt=At.length;Qt--&&tl.test(At.charAt(Qt)););return Qt}var Ba=to(Js);function bs(At){for(var Qt=po.lastIndex=0;po.test(At);)++Qt;return Qt}function rr(At){return At.match(po)||[]}function uh(At){return At.match(Xs)||[]}var ch=function At(Qt){Qt=Qt==null?un:wo.defaults(un.Object(),Qt,wo.pick(un,Ys));var Yt=Qt.Array,Ue=Qt.Date,ai=Qt.Error,Bi=Qt.Function,ln=Qt.Math,Ee=Qt.Object,Gn=Qt.RegExp,As=Qt.String,Yn=Qt.TypeError,Sn=Yt.prototype,Nl=Bi.prototype,Gr=Ee.prototype,To=Qt["__core-js_shared__"],Zn=Nl.toString,Ti=Gr.hasOwnProperty,Jn=0,mr=function(){var r=/[^.]+$/.exec(To&&To.keys&&To.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),$n=Gr.toString,Hr=Zn.call(Ee),Ar=un._,no=Gn("^"+Zn.call(Ti).replace(Vs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kn=zo?Qt.Buffer:p,Hn=Qt.Symbol,$i=Qt.Uint8Array,ia=Kn?Kn.allocUnsafe:p,Vr=ea(Ee.getPrototypeOf,Ee),na=Ee.create,ra=Gr.propertyIsEnumerable,Yo=Sn.splice,Cs=Hn?Hn.isConcatSpreadable:p,Mo=Hn?Hn.iterator:p,jr=Hn?Hn.toStringTag:p,Zo=function(){try{var r=wa(Ee,"defineProperty");return r({},"",{}),r}catch{}}(),Na=Qt.clearTimeout!==un.clearTimeout&&Qt.clearTimeout,ka=Ue&&Ue.now!==un.Date.now&&Ue.now,sl=Qt.setTimeout!==un.setTimeout&&Qt.setTimeout,ro=ln.ceil,Jo=ln.floor,oa=Ee.getOwnPropertySymbols,al=Kn?Kn.isBuffer:p,Ua=Qt.isFinite,ll=Sn.join,kl=ea(Ee.keys,Ee),cn=ln.max,Dn=ln.min,sa=Ue.now,hl=Qt.parseInt,Fa=ln.random,Ps=Sn.reverse,aa=wa(Qt,"DataView"),$o=wa(Qt,"Map"),la=wa(Qt,"Promise"),Ko=wa(Qt,"Set"),yn=wa(Qt,"WeakMap"),Ls=wa(Ee,"create"),ha=yn&&new yn,So={},Ga=Ta(aa),ul=Ta($o),cl=Ta(la),fl=Ta(Ko),Ul=Ta(yn),ua=Hn?Hn.prototype:p,Qo=ua?ua.valueOf:p,pl=ua?ua.toString:p;function Q(r){if(Mn(r)&&!vi(r)&&!(r instanceof _i)){if(r instanceof Bn)return r;if(Ti.call(r,"__wrapped__"))return lu(r)}return new Bn(r)}var Eo=function(){function r(){}return function(a){if(!mn(a))return{};if(na)return na(a);r.prototype=a;var u=new r;return r.prototype=p,u}}();function Rs(){}function Bn(r,a){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=p}Q.templateSettings={escape:Ea,evaluate:gn,interpolate:hs,variable:"",imports:{_:Q}},Q.prototype=Rs.prototype,Q.prototype.constructor=Q,Bn.prototype=Eo(Rs.prototype),Bn.prototype.constructor=Bn;function _i(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dt,this.__views__=[]}function Is(){var r=new _i(this.__wrapped__);return r.__actions__=jn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=jn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=jn(this.__views__),r}function Fl(){if(this.__filtered__){var r=new _i(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Os(){var r=this.__wrapped__.value(),a=this.__dir__,u=vi(r),_=a<0,k=u?r.length:0,at=bc(0,k,this.__views__),yt=at.start,St=at.end,Nt=St-yt,re=_?St:yt-1,ae=this.__iteratees__,fe=ae.length,ze=0,Je=Dn(Nt,this.__takeCount__);if(!u||!_&&k==Nt&&Je==Nt)return ri(r,this.__actions__);var hi=[];t:for(;Nt--&&ze<Je;){re+=a;for(var Mi=-1,ui=r[re];++Mi<fe;){var Pi=ae[Mi],Ni=Pi.iteratee,Lr=Pi.type,hr=Ni(ui);if(Lr==Bt)ui=hr;else if(!hr){if(Lr==D)continue t;break t}}hi[ze++]=ui}return hi}_i.prototype=Eo(Rs.prototype),_i.prototype.constructor=_i;function gr(r){var a=-1,u=r==null?0:r.length;for(this.clear();++a<u;){var _=r[a];this.set(_[0],_[1])}}function Ds(){this.__data__=Ls?Ls(null):{},this.size=0}function zs(r){var a=this.has(r)&&delete this.__data__[r];return this.size-=a?1:0,a}function ca(r){var a=this.__data__;if(Ls){var u=a[r];return u===E?p:u}return Ti.call(a,r)?a[r]:p}function Ha(r){var a=this.__data__;return Ls?a[r]!==p:Ti.call(a,r)}function fa(r,a){var u=this.__data__;return this.size+=this.has(r)?0:1,u[r]=Ls&&a===p?E:a,this}gr.prototype.clear=Ds,gr.prototype.delete=zs,gr.prototype.get=ca,gr.prototype.has=Ha,gr.prototype.set=fa;function Qn(r){var a=-1,u=r==null?0:r.length;for(this.clear();++a<u;){var _=r[a];this.set(_[0],_[1])}}function pa(){this.__data__=[],this.size=0}function oo(r){var a=this.__data__,u=ga(a,r);if(u<0)return!1;var _=a.length-1;return u==_?a.pop():Yo.call(a,u,1),--this.size,!0}function da(r){var a=this.__data__,u=ga(a,r);return u<0?p:a[u][1]}function ma(r){return ga(this.__data__,r)>-1}function so(r,a){var u=this.__data__,_=ga(u,r);return _<0?(++this.size,u.push([r,a])):u[_][1]=a,this}Qn.prototype.clear=pa,Qn.prototype.delete=oo,Qn.prototype.get=da,Qn.prototype.has=ma,Qn.prototype.set=so;function or(r){var a=-1,u=r==null?0:r.length;for(this.clear();++a<u;){var _=r[a];this.set(_[0],_[1])}}function Gl(){this.size=0,this.__data__={hash:new gr,map:new($o||Qn),string:new gr}}function Hl(r){var a=Kl(this,r).delete(r);return this.size-=a?1:0,a}function dl(r){return Kl(this,r).get(r)}function pi(r){return Kl(this,r).has(r)}function bo(r,a){var u=Kl(this,r),_=u.size;return u.set(r,a),this.size+=u.size==_?0:1,this}or.prototype.clear=Gl,or.prototype.delete=Hl,or.prototype.get=dl,or.prototype.has=pi,or.prototype.set=bo;function ts(r){var a=-1,u=r==null?0:r.length;for(this.__data__=new or;++a<u;)this.add(r[a])}function bi(r){return this.__data__.set(r,E),this}function Cn(r){return this.__data__.has(r)}ts.prototype.add=ts.prototype.push=bi,ts.prototype.has=Cn;function Cr(r){var a=this.__data__=new Qn(r);this.size=a.size}function qe(){this.__data__=new Qn,this.size=0}function Wr(r){var a=this.__data__,u=a.delete(r);return this.size=a.size,u}function fh(r){return this.__data__.get(r)}function ph(r){return this.__data__.has(r)}function dh(r,a){var u=this.__data__;if(u instanceof Qn){var _=u.__data__;if(!$o||_.length<G-1)return _.push([r,a]),this.size=++u.size,this;u=this.__data__=new or(_)}return u.set(r,a),this.size=u.size,this}Cr.prototype.clear=qe,Cr.prototype.delete=Wr,Cr.prototype.get=fh,Cr.prototype.has=ph,Cr.prototype.set=dh;function Vl(r,a){var u=vi(r),_=!u&&Ma(r),k=!u&&!_&&Hs(r),at=!u&&!_&&!k&&$a(r),yt=u||_||k||at,St=yt?eo(r.length,As):[],Nt=St.length;for(var re in r)(a||Ti.call(r,re))&&!(yt&&(re=="length"||k&&(re=="offset"||re=="parent")||at&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||os(re,Nt)))&&St.push(re);return St}function ml(r){var a=r.length;return a?r[pe(0,a-1)]:p}function mh(r,a){return Ql(jn(r),Ao(a,0,r.length))}function jl(r){return Ql(jn(r))}function Va(r,a,u){(u!==p&&!uo(r[a],u)||u===p&&!(a in r))&&ao(r,a,u)}function Bs(r,a,u){var _=r[a];(!(Ti.call(r,a)&&uo(_,u))||u===p&&!(a in r))&&ao(r,a,u)}function ga(r,a){for(var u=r.length;u--;)if(uo(r[u][0],a))return u;return-1}function Wl(r,a,u,_){return fn(r,function(k,at,yt){a(_,k,u(k),yt)}),_}function gl(r,a){return r&&En(a,Un(a),r)}function vl(r,a){return r&&En(a,xr(a),r)}function ao(r,a,u){a=="__proto__"&&Zo?Zo(r,a,{configurable:!0,enumerable:!0,value:u,writable:!0}):r[a]=u}function yl(r,a){for(var u=-1,_=a.length,k=Yt(_),at=r==null;++u<_;)k[u]=at?p:Rh(r,a[u]);return k}function Ao(r,a,u){return r===r&&(u!==p&&(r=r<=u?r:u),a!==p&&(r=r>=a?r:a)),r}function sr(r,a,u,_,k,at){var yt,St=a&H,Nt=a&K,re=a&B;if(u&&(yt=k?u(r,_,k,at):u(r)),yt!==p)return yt;if(!mn(r))return r;var ae=vi(r);if(ae){if(yt=Cc(r),!St)return jn(r,yt)}else{var fe=er(r),ze=fe==hn||fe==Ji;if(Hs(r))return lo(r,St);if(fe==ct||fe==Zt||ze&&!k){if(yt=Nt||ze?{}:Qh(r),!St)return Nt?Zl(r,vl(yt,r)):Yr(r,gl(yt,r))}else{if(!xi[fe])return k?r:{};yt=Pc(r,fe,St)}}at||(at=new Cr);var Je=at.get(r);if(Je)return Je;at.set(r,yt),Cu(r)?r.forEach(function(ui){yt.add(sr(ui,a,u,ui,r,at))}):bu(r)&&r.forEach(function(ui,Pi){yt.set(Pi,sr(ui,a,u,Pi,r,at))});var hi=re?Nt?vh:gh:Nt?xr:Un,Mi=ae?p:hi(r);return Yi(Mi||r,function(ui,Pi){Mi&&(Pi=ui,ui=r[Pi]),Bs(yt,Pi,sr(ui,a,u,Pi,r,at))}),yt}function Ns(r){var a=Un(r);return function(u){return Xl(u,r,a)}}function Xl(r,a,u){var _=u.length;if(r==null)return!_;for(r=Ee(r);_--;){var k=u[_],at=a[k],yt=r[k];if(yt===p&&!(k in r)||!at(yt))return!1}return!0}function Xr(r,a,u){if(typeof r!="function")throw new Yn(C);return bl(function(){r.apply(p,u)},a)}function va(r,a,u,_){var k=-1,at=Ks,yt=!0,St=r.length,Nt=[],re=a.length;if(!St)return Nt;u&&(a=Xi(a,In(u))),_?(at=Ia,yt=!1):a.length>=G&&(at=Ur,yt=!1,a=new ts(a));t:for(;++k<St;){var ae=r[k],fe=u==null?ae:u(ae);if(ae=_||ae!==0?ae:0,yt&&fe===fe){for(var ze=re;ze--;)if(a[ze]===fe)continue t;Nt.push(ae)}else at(a,fe,_)||Nt.push(ae)}return Nt}var fn=ut(yr),ql=ut(Wa,!0);function Nn(r,a){var u=!0;return fn(r,function(_,k,at){return u=!!a(_,k,at),u}),u}function qr(r,a,u){for(var _=-1,k=r.length;++_<k;){var at=r[_],yt=a(at);if(yt!=null&&(St===p?yt===yt&&!Pr(yt):u(yt,St)))var St=yt,Nt=at}return Nt}function Vn(r,a,u,_){var k=r.length;for(u=wi(u),u<0&&(u=-u>k?0:k+u),_=_===p||_>k?k:wi(_),_<0&&(_+=k),_=u>_?0:Lu(_);u<_;)r[u++]=a;return r}function vr(r,a){var u=[];return fn(r,function(_,k,at){a(_,k,at)&&u.push(_)}),u}function _n(r,a,u,_,k){var at=-1,yt=r.length;for(u||(u=Rc),k||(k=[]);++at<yt;){var St=r[at];a>0&&u(St)?a>1?_n(St,a-1,u,_,k):Nr(k,St):_||(k[k.length]=St)}return k}var ya=wt(),ja=wt(!0);function yr(r,a){return r&&ya(r,a,Un)}function Wa(r,a){return r&&ja(r,a,Un)}function es(r,a){return cr(a,function(u){return ss(r[u])})}function Co(r,a){a=Ze(a,r);for(var u=0,_=a.length;r!=null&&u<_;)r=r[Lo(a[u++])];return u&&u==_?r:p}function Yl(r,a,u){var _=a(r);return vi(r)?_:Nr(_,u(r))}function kn(r){return r==null?r===p?nt:jt:jr&&jr in Ee(r)?Ec(r):kc(r)}function Xa(r,a){return r>a}function qa(r,a){return r!=null&&Ti.call(r,a)}function _l(r,a){return r!=null&&a in Ee(r)}function Ya(r,a,u){return r>=Dn(a,u)&&r<cn(a,u)}function _a(r,a,u){for(var _=u?Ia:Ks,k=r[0].length,at=r.length,yt=at,St=Yt(at),Nt=1/0,re=[];yt--;){var ae=r[yt];yt&&a&&(ae=Xi(ae,In(a))),Nt=Dn(ae.length,Nt),St[yt]=!u&&(a||k>=120&&ae.length>=120)?new ts(yt&&ae):p}ae=r[0];var fe=-1,ze=St[0];t:for(;++fe<k&&re.length<Nt;){var Je=ae[fe],hi=a?a(Je):Je;if(Je=u||Je!==0?Je:0,!(ze?Ur(ze,hi):_(re,hi,u))){for(yt=at;--yt;){var Mi=St[yt];if(!(Mi?Ur(Mi,hi):_(r[yt],hi,u)))continue t}ze&&ze.push(hi),re.push(Je)}}return re}function t(r,a,u,_){return yr(r,function(k,at,yt){a(_,u(k),at,yt)}),_}function e(r,a,u){a=Ze(a,r),r=nu(r,a);var _=r==null?r:r[Lo(Jr(a))];return _==null?p:nr(_,r,u)}function i(r){return Mn(r)&&kn(r)==Zt}function n(r){return Mn(r)&&kn(r)==Gt}function o(r){return Mn(r)&&kn(r)==Ge}function s(r,a,u,_,k){return r===a?!0:r==null||a==null||!Mn(r)&&!Mn(a)?r!==r&&a!==a:l(r,a,u,_,s,k)}function l(r,a,u,_,k,at){var yt=vi(r),St=vi(a),Nt=yt?ti:er(r),re=St?ti:er(a);Nt=Nt==Zt?ct:Nt,re=re==Zt?ct:re;var ae=Nt==ct,fe=re==ct,ze=Nt==re;if(ze&&Hs(r)){if(!Hs(a))return!1;yt=!0,ae=!1}if(ze&&!ae)return at||(at=new Cr),yt||$a(r)?Jh(r,a,u,_,k,at):Mc(r,a,Nt,u,_,k,at);if(!(u&q)){var Je=ae&&Ti.call(r,"__wrapped__"),hi=fe&&Ti.call(a,"__wrapped__");if(Je||hi){var Mi=Je?r.value():r,ui=hi?a.value():a;return at||(at=new Cr),k(Mi,ui,u,_,at)}}return ze?(at||(at=new Cr),Sc(r,a,u,_,k,at)):!1}function h(r){return Mn(r)&&er(r)==R}function c(r,a,u,_){var k=u.length,at=k,yt=!_;if(r==null)return!at;for(r=Ee(r);k--;){var St=u[k];if(yt&&St[2]?St[1]!==r[St[0]]:!(St[0]in r))return!1}for(;++k<at;){St=u[k];var Nt=St[0],re=r[Nt],ae=St[1];if(yt&&St[2]){if(re===p&&!(Nt in r))return!1}else{var fe=new Cr;if(_)var ze=_(re,ae,Nt,r,a,fe);if(!(ze===p?s(ae,re,q|b,_,fe):ze))return!1}}return!0}function f(r){if(!mn(r)||Oc(r))return!1;var a=ss(r)?no:Io;return a.test(Ta(r))}function v(r){return Mn(r)&&kn(r)==ie}function y(r){return Mn(r)&&er(r)==Kt}function S(r){return Mn(r)&&oh(r.length)&&!!ji[kn(r)]}function P(r){return typeof r=="function"?r:r==null?wr:typeof r=="object"?vi(r)?bt(r[0],r[1]):mt(r):Gu(r)}function N(r){if(!El(r))return kl(r);var a=[];for(var u in Ee(r))Ti.call(r,u)&&u!="constructor"&&a.push(u);return a}function j(r){if(!mn(r))return Nc(r);var a=El(r),u=[];for(var _ in r)_=="constructor"&&(a||!Ti.call(r,_))||u.push(_);return u}function et(r,a){return r<a}function _t(r,a){var u=-1,_=_r(r)?Yt(r.length):[];return fn(r,function(k,at,yt){_[++u]=a(k,at,yt)}),_}function mt(r){var a=_h(r);return a.length==1&&a[0][2]?eu(a[0][0],a[0][1]):function(u){return u===r||c(u,r,a)}}function bt(r,a){return wh(r)&&tu(a)?eu(Lo(r),a):function(u){var _=Rh(u,r);return _===p&&_===a?Ih(u,r):s(a,_,q|b)}}function xt(r,a,u,_,k){r!==a&&ya(a,function(at,yt){if(k||(k=new Cr),mn(at))Vt(r,a,yt,u,xt,_,k);else{var St=_?_(Mh(r,yt),at,yt+"",r,a,k):p;St===p&&(St=at),Va(r,yt,St)}},xr)}function Vt(r,a,u,_,k,at,yt){var St=Mh(r,u),Nt=Mh(a,u),re=yt.get(Nt);if(re){Va(r,u,re);return}var ae=at?at(St,Nt,u+"",r,a,yt):p,fe=ae===p;if(fe){var ze=vi(Nt),Je=!ze&&Hs(Nt),hi=!ze&&!Je&&$a(Nt);ae=Nt,ze||Je||hi?vi(St)?ae=St:bn(St)?ae=jn(St):Je?(fe=!1,ae=lo(Nt,!0)):hi?(fe=!1,ae=xa(Nt,!0)):ae=[]:Al(Nt)||Ma(Nt)?(ae=St,Ma(St)?ae=Ru(St):(!mn(St)||ss(St))&&(ae=Qh(Nt))):fe=!1}fe&&(yt.set(Nt,ae),k(ae,Nt,_,at,yt),yt.delete(Nt)),Va(r,u,ae)}function V(r,a){var u=r.length;if(u)return a+=a<0?u:0,os(a,u)?r[a]:p}function it(r,a,u){a.length?a=Xi(a,function(at){return vi(at)?function(yt){return Co(yt,at.length===1?at[0]:at)}:at}):a=[wr];var _=-1;a=Xi(a,In(si()));var k=_t(r,function(at,yt,St){var Nt=Xi(a,function(re){return re(at)});return{criteria:Nt,index:++_,value:at}});return Bl(k,function(at,yt){return Po(at,yt,u)})}function It(r,a){return ee(r,a,function(u,_){return Ih(r,_)})}function ee(r,a,u){for(var _=-1,k=a.length,at={};++_<k;){var yt=a[_],St=Co(r,yt);u(St,yt)&&fi(at,Ze(yt,r),St)}return at}function $t(r){return function(a){return Co(a,r)}}function qt(r,a,u,_){var k=_?ta:fr,at=-1,yt=a.length,St=r;for(r===a&&(a=jn(a)),u&&(St=Xi(r,In(u)));++at<yt;)for(var Nt=0,re=a[at],ae=u?u(re):re;(Nt=k(St,ae,Nt,_))>-1;)St!==r&&Yo.call(St,Nt,1),Yo.call(r,Nt,1);return r}function Te(r,a){for(var u=r?a.length:0,_=u-1;u--;){var k=a[u];if(u==_||k!==at){var at=k;os(k)?Yo.call(r,k,1):Hi(r,k)}}return r}function pe(r,a){return r+Jo(Fa()*(a-r+1))}function Oe(r,a,u,_){for(var k=-1,at=cn(ro((a-r)/(u||1)),0),yt=Yt(at);at--;)yt[_?at:++k]=r,r+=u;return yt}function be(r,a){var u="";if(!r||a<1||a>ge)return u;do a%2&&(u+=r),a=Jo(a/2),a&&(r+=r);while(a);return u}function se(r,a){return Sh(iu(r,a,wr),r+"")}function je(r){return ml(Ka(r))}function Ke(r,a){var u=Ka(r);return Ql(u,Ao(a,0,u.length))}function fi(r,a,u,_){if(!mn(r))return r;a=Ze(a,r);for(var k=-1,at=a.length,yt=at-1,St=r;St!=null&&++k<at;){var Nt=Lo(a[k]),re=u;if(Nt==="__proto__"||Nt==="constructor"||Nt==="prototype")return r;if(k!=yt){var ae=St[Nt];re=_?_(ae,Nt,St):p,re===p&&(re=mn(ae)?ae:os(a[k+1])?[]:{})}Bs(St,Nt,re),St=St[Nt]}return r}var xn=ha?function(r,a){return ha.set(r,a),r}:wr,pn=Zo?function(r,a){return Zo(r,"toString",{configurable:!0,enumerable:!1,value:Dh(a),writable:!0})}:wr;function Wi(r){return Ql(Ka(r))}function Gi(r,a,u){var _=-1,k=r.length;a<0&&(a=-a>k?0:k+a),u=u>k?k:u,u<0&&(u+=k),k=a>u?0:u-a>>>0,a>>>=0;for(var at=Yt(k);++_<k;)at[_]=r[_+a];return at}function en(r,a){var u;return fn(r,function(_,k,at){return u=a(_,k,at),!u}),!!u}function wn(r,a,u){var _=0,k=r==null?_:r.length;if(typeof a=="number"&&a===a&&k<=Fe){for(;_<k;){var at=_+k>>>1,yt=r[at];yt!==null&&!Pr(yt)&&(u?yt<=a:yt<a)?_=at+1:k=at}return k}return Ae(r,a,wr,u)}function Ae(r,a,u,_){var k=0,at=r==null?0:r.length;if(at===0)return 0;a=u(a);for(var yt=a!==a,St=a===null,Nt=Pr(a),re=a===p;k<at;){var ae=Jo((k+at)/2),fe=u(r[ae]),ze=fe!==p,Je=fe===null,hi=fe===fe,Mi=Pr(fe);if(yt)var ui=_||hi;else re?ui=hi&&(_||ze):St?ui=hi&&ze&&(_||!Je):Nt?ui=hi&&ze&&!Je&&(_||!Mi):Je||Mi?ui=!1:ui=_?fe<=a:fe<a;ui?k=ae+1:at=ae}return Dn(at,kt)}function Qe(r,a){for(var u=-1,_=r.length,k=0,at=[];++u<_;){var yt=r[u],St=a?a(yt):yt;if(!u||!uo(St,Nt)){var Nt=St;at[k++]=yt===0?0:yt}}return at}function Ut(r){return typeof r=="number"?r:Pr(r)?Ft:+r}function Ye(r){if(typeof r=="string")return r;if(vi(r))return Xi(r,Ye)+"";if(Pr(r))return pl?pl.call(r):"";var a=r+"";return a=="0"&&1/r==-Rt?"-0":a}function ei(r,a,u){var _=-1,k=Ks,at=r.length,yt=!0,St=[],Nt=St;if(u)yt=!1,k=Ia;else if(at>=G){var re=a?null:Gs(r);if(re)return qo(re);yt=!1,k=Ur,Nt=new ts}else Nt=a?[]:St;t:for(;++_<at;){var ae=r[_],fe=a?a(ae):ae;if(ae=u||ae!==0?ae:0,yt&&fe===fe){for(var ze=Nt.length;ze--;)if(Nt[ze]===fe)continue t;a&&Nt.push(fe),St.push(ae)}else k(Nt,fe,u)||(Nt!==St&&Nt.push(fe),St.push(ae))}return St}function Hi(r,a){return a=Ze(a,r),r=nu(r,a),r==null||delete r[Lo(Jr(a))]}function Ce(r,a,u,_){return fi(r,a,u(Co(r,a)),_)}function Xe(r,a,u,_){for(var k=r.length,at=_?k:-1;(_?at--:++at<k)&&a(r[at],at,r););return u?Gi(r,_?0:at,_?at+1:k):Gi(r,_?at+1:0,_?k:at)}function ri(r,a){var u=r;return u instanceof _i&&(u=u.value()),Oa(a,function(_,k){return k.func.apply(k.thisArg,Nr([_],k.args))},u)}function Ci(r,a,u){var _=r.length;if(_<2)return _?ei(r[0]):[];for(var k=-1,at=Yt(_);++k<_;)for(var yt=r[k],St=-1;++St<_;)St!=k&&(at[k]=va(at[k]||yt,r[St],a,u));return ei(_n(at,1),a,u)}function Ai(r,a,u){for(var _=-1,k=r.length,at=a.length,yt={};++_<k;){var St=_<at?a[_]:p;u(yt,r[_],St)}return yt}function ne(r){return bn(r)?r:[]}function ii(r){return typeof r=="function"?r:wr}function Ze(r,a){return vi(r)?r:wh(r,a)?[r]:au(qi(r))}var li=se;function dn(r,a,u){var _=r.length;return u=u===p?_:u,!a&&u>=_?r:Gi(r,a,u)}var Tn=Na||function(r){return un.clearTimeout(r)};function lo(r,a){if(a)return r.slice();var u=r.length,_=ia?ia(u):new r.constructor(u);return r.copy(_),_}function ks(r){var a=new r.constructor(r.byteLength);return new $i(a).set(new $i(r)),a}function xl(r,a){var u=a?ks(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.byteLength)}function Us(r){var a=new r.constructor(r.source,Aa.exec(r));return a.lastIndex=r.lastIndex,a}function is(r){return Qo?Ee(Qo.call(r)):{}}function xa(r,a){var u=a?ks(r.buffer):r.buffer;return new r.constructor(u,r.byteOffset,r.length)}function ns(r,a){if(r!==a){var u=r!==p,_=r===null,k=r===r,at=Pr(r),yt=a!==p,St=a===null,Nt=a===a,re=Pr(a);if(!St&&!re&&!at&&r>a||at&&yt&&Nt&&!St&&!re||_&&yt&&Nt||!u&&Nt||!k)return 1;if(!_&&!at&&!re&&r<a||re&&u&&k&&!_&&!at||St&&u&&k||!yt&&k||!Nt)return-1}return 0}function Po(r,a,u){for(var _=-1,k=r.criteria,at=a.criteria,yt=k.length,St=u.length;++_<yt;){var Nt=ns(k[_],at[_]);if(Nt){if(_>=St)return Nt;var re=u[_];return Nt*(re=="desc"?-1:1)}}return r.index-a.index}function wl(r,a,u,_){for(var k=-1,at=r.length,yt=u.length,St=-1,Nt=a.length,re=cn(at-yt,0),ae=Yt(Nt+re),fe=!_;++St<Nt;)ae[St]=a[St];for(;++k<yt;)(fe||k<at)&&(ae[u[k]]=r[k]);for(;re--;)ae[St++]=r[k++];return ae}function Tl(r,a,u,_){for(var k=-1,at=r.length,yt=-1,St=u.length,Nt=-1,re=a.length,ae=cn(at-St,0),fe=Yt(ae+re),ze=!_;++k<ae;)fe[k]=r[k];for(var Je=k;++Nt<re;)fe[Je+Nt]=a[Nt];for(;++yt<St;)(ze||k<at)&&(fe[Je+u[yt]]=r[k++]);return fe}function jn(r,a){var u=-1,_=r.length;for(a||(a=Yt(_));++u<_;)a[u]=r[u];return a}function En(r,a,u,_){var k=!u;u||(u={});for(var at=-1,yt=a.length;++at<yt;){var St=a[at],Nt=_?_(u[St],r[St],St,u,r):p;Nt===p&&(Nt=r[St]),k?ao(u,St,Nt):Bs(u,St,Nt)}return u}function Yr(r,a){return En(r,xh(r),a)}function Zl(r,a){return En(r,$h(r),a)}function Fs(r,a){return function(u,_){var k=vi(u)?Ra:Wl,at=a?a():{};return k(u,r,si(_,2),at)}}function ho(r){return se(function(a,u){var _=-1,k=u.length,at=k>1?u[k-1]:p,yt=k>2?u[2]:p;for(at=r.length>3&&typeof at=="function"?(k--,at):p,yt&&lr(u[0],u[1],yt)&&(at=k<3?p:at,k=1),a=Ee(a);++_<k;){var St=u[_];St&&r(a,St,_,at)}return a})}function ut(r,a){return function(u,_){if(u==null)return u;if(!_r(u))return r(u,_);for(var k=u.length,at=a?k:-1,yt=Ee(u);(a?at--:++at<k)&&_(yt[at],at,yt)!==!1;);return u}}function wt(r){return function(a,u,_){for(var k=-1,at=Ee(a),yt=_(a),St=yt.length;St--;){var Nt=yt[r?St:++k];if(u(at[Nt],Nt,at)===!1)break}return a}}function dt(r,a,u){var _=a&A,k=Ve(r);function at(){var yt=this&&this!==un&&this instanceof at?k:r;return yt.apply(_?u:this,arguments)}return at}function Me(r){return function(a){a=qi(a);var u=pr(a)?qn(a):p,_=u?u[0]:a.charAt(0),k=u?dn(u,1).join(""):a.slice(1);return _[r]()+k}}function De(r){return function(a){return Oa(Uu(ku(a).replace(ds,"")),r,"")}}function Ve(r){return function(){var a=arguments;switch(a.length){case 0:return new r;case 1:return new r(a[0]);case 2:return new r(a[0],a[1]);case 3:return new r(a[0],a[1],a[2]);case 4:return new r(a[0],a[1],a[2],a[3]);case 5:return new r(a[0],a[1],a[2],a[3],a[4]);case 6:return new r(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new r(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var u=Eo(r.prototype),_=r.apply(u,a);return mn(_)?_:u}}function Se(r,a,u){var _=Ve(r);function k(){for(var at=arguments.length,yt=Yt(at),St=at,Nt=Ja(k);St--;)yt[St]=arguments[St];var re=at<3&&yt[0]!==Nt&&yt[at-1]!==Nt?[]:dr(yt,Nt);if(at-=re.length,at<u)return Sl(r,a,Zi,k.placeholder,p,yt,re,p,p,u-at);var ae=this&&this!==un&&this instanceof k?_:r;return nr(ae,this,yt)}return k}function $e(r){return function(a,u,_){var k=Ee(a);if(!_r(a)){var at=si(u,3);a=Un(a),u=function(St){return at(k[St],St,k)}}var yt=r(a,u,_);return yt>-1?k[at?a[yt]:yt]:p}}function Li(r){return rs(function(a){var u=a.length,_=u,k=Bn.prototype.thru;for(r&&a.reverse();_--;){var at=a[_];if(typeof at!="function")throw new Yn(C);if(k&&!yt&&$l(at)=="wrapper")var yt=new Bn([],!0)}for(_=yt?_:u;++_<u;){at=a[_];var St=$l(at),Nt=St=="wrapper"?yh(at):p;Nt&&Th(Nt[0])&&Nt[1]==(W|M|F|ht)&&!Nt[4].length&&Nt[9]==1?yt=yt[$l(Nt[0])].apply(yt,Nt[3]):yt=at.length==1&&Th(at)?yt[St]():yt.thru(at)}return function(){var re=arguments,ae=re[0];if(yt&&re.length==1&&vi(ae))return yt.plant(ae).value();for(var fe=0,ze=u?a[fe].apply(this,re):ae;++fe<u;)ze=a[fe].call(this,ze);return ze}})}function Zi(r,a,u,_,k,at,yt,St,Nt,re){var ae=a&W,fe=a&A,ze=a&d,Je=a&(M|x),hi=a&ft,Mi=ze?p:Ve(r);function ui(){for(var Pi=arguments.length,Ni=Yt(Pi),Lr=Pi;Lr--;)Ni[Lr]=arguments[Lr];if(Je)var hr=Ja(ui),Rr=Fr(Ni,hr);if(_&&(Ni=wl(Ni,_,k,Je)),at&&(Ni=Tl(Ni,at,yt,Je)),Pi-=Rr,Je&&Pi<re){var An=dr(Ni,hr);return Sl(r,a,Zi,ui.placeholder,u,Ni,An,St,Nt,re-Pi)}var co=fe?u:this,ls=ze?co[r]:r;return Pi=Ni.length,St?Ni=Uc(Ni,St):hi&&Pi>1&&Ni.reverse(),ae&&Nt<Pi&&(Ni.length=Nt),this&&this!==un&&this instanceof ui&&(ls=Mi||Ve(ls)),ls.apply(co,Ni)}return ui}function me(r,a){return function(u,_){return t(u,r,a(_),{})}}function ar(r,a){return function(u,_){var k;if(u===p&&_===p)return a;if(u!==p&&(k=u),_!==p){if(k===p)return _;typeof u=="string"||typeof _=="string"?(u=Ye(u),_=Ye(_)):(u=Ut(u),_=Ut(_)),k=r(u,_)}return k}}function Pn(r){return rs(function(a){return a=Xi(a,In(si())),se(function(u){var _=this;return r(a,function(k){return nr(k,_,u)})})})}function rn(r,a){a=a===p?" ":Ye(a);var u=a.length;if(u<2)return u?be(a,r):a;var _=be(a,ro(r/br(a)));return pr(a)?dn(qn(_),0,r).join(""):_.slice(0,r)}function tr(r,a,u,_){var k=a&A,at=Ve(r);function yt(){for(var St=-1,Nt=arguments.length,re=-1,ae=_.length,fe=Yt(ae+Nt),ze=this&&this!==un&&this instanceof yt?at:r;++re<ae;)fe[re]=_[re];for(;Nt--;)fe[re++]=arguments[++St];return nr(ze,k?u:this,fe)}return yt}function Ml(r){return function(a,u,_){return _&&typeof _!="number"&&lr(a,u,_)&&(u=_=p),a=as(a),u===p?(u=a,a=0):u=as(u),_=_===p?a<u?1:-1:as(_),Oe(a,u,_,r)}}function Zr(r){return function(a,u){return typeof a=="string"&&typeof u=="string"||(a=$r(a),u=$r(u)),r(a,u)}}function Sl(r,a,u,_,k,at,yt,St,Nt,re){var ae=a&M,fe=ae?yt:p,ze=ae?p:yt,Je=ae?at:p,hi=ae?p:at;a|=ae?F:z,a&=~(ae?z:F),a&g||(a&=~(A|d));var Mi=[r,a,k,Je,fe,hi,ze,St,Nt,re],ui=u.apply(p,Mi);return Th(r)&&ru(ui,Mi),ui.placeholder=_,ou(ui,r,a)}function Za(r){var a=ln[r];return function(u,_){if(u=$r(u),_=_==null?0:Dn(wi(_),292),_&&Ua(u)){var k=(qi(u)+"e").split("e"),at=a(k[0]+"e"+(+k[1]+_));return k=(qi(at)+"e").split("e"),+(k[0]+"e"+(+k[1]-_))}return a(u)}}var Gs=Ko&&1/qo(new Ko([,-0]))[1]==Rt?function(r){return new Ko(r)}:Nh;function Jl(r){return function(a){var u=er(a);return u==R?Fn(a):u==Kt?On(a):io(a,r(a))}}function Wn(r,a,u,_,k,at,yt,St){var Nt=a&d;if(!Nt&&typeof r!="function")throw new Yn(C);var re=_?_.length:0;if(re||(a&=~(F|z),_=k=p),yt=yt===p?yt:cn(wi(yt),0),St=St===p?St:wi(St),re-=k?k.length:0,a&z){var ae=_,fe=k;_=k=p}var ze=Nt?p:yh(r),Je=[r,a,u,_,k,ae,fe,at,yt,St];if(ze&&Bc(Je,ze),r=Je[0],a=Je[1],u=Je[2],_=Je[3],k=Je[4],St=Je[9]=Je[9]===p?Nt?0:r.length:cn(Je[9]-re,0),!St&&a&(M|x)&&(a&=~(M|x)),!a||a==A)var hi=dt(r,a,u);else a==M||a==x?hi=Se(r,a,St):(a==F||a==(A|F))&&!k.length?hi=tr(r,a,u,_):hi=Zi.apply(p,Je);var Mi=ze?xn:ru;return ou(Mi(hi,Je),r,a)}function Yh(r,a,u,_){return r===p||uo(r,Gr[u])&&!Ti.call(_,u)?a:r}function Zh(r,a,u,_,k,at){return mn(r)&&mn(a)&&(at.set(a,r),xt(r,a,p,Zh,at),at.delete(a)),r}function Tc(r){return Al(r)?p:r}function Jh(r,a,u,_,k,at){var yt=u&q,St=r.length,Nt=a.length;if(St!=Nt&&!(yt&&Nt>St))return!1;var re=at.get(r),ae=at.get(a);if(re&&ae)return re==a&&ae==r;var fe=-1,ze=!0,Je=u&b?new ts:p;for(at.set(r,a),at.set(a,r);++fe<St;){var hi=r[fe],Mi=a[fe];if(_)var ui=yt?_(Mi,hi,fe,a,r,at):_(hi,Mi,fe,r,a,at);if(ui!==p){if(ui)continue;ze=!1;break}if(Je){if(!Qr(a,function(Pi,Ni){if(!Ur(Je,Ni)&&(hi===Pi||k(hi,Pi,u,_,at)))return Je.push(Ni)})){ze=!1;break}}else if(!(hi===Mi||k(hi,Mi,u,_,at))){ze=!1;break}}return at.delete(r),at.delete(a),ze}function Mc(r,a,u,_,k,at,yt){switch(u){case Xt:if(r.byteLength!=a.byteLength||r.byteOffset!=a.byteOffset)return!1;r=r.buffer,a=a.buffer;case Gt:return!(r.byteLength!=a.byteLength||!at(new $i(r),new $i(a)));case Ie:case Ge:case Jt:return uo(+r,+a);case Ri:return r.name==a.name&&r.message==a.message;case ie:case w:return r==a+"";case R:var St=Fn;case Kt:var Nt=_&q;if(St||(St=qo),r.size!=a.size&&!Nt)return!1;var re=yt.get(r);if(re)return re==a;_|=b,yt.set(r,a);var ae=Jh(St(r),St(a),_,k,at,yt);return yt.delete(r),ae;case X:if(Qo)return Qo.call(r)==Qo.call(a)}return!1}function Sc(r,a,u,_,k,at){var yt=u&q,St=gh(r),Nt=St.length,re=gh(a),ae=re.length;if(Nt!=ae&&!yt)return!1;for(var fe=Nt;fe--;){var ze=St[fe];if(!(yt?ze in a:Ti.call(a,ze)))return!1}var Je=at.get(r),hi=at.get(a);if(Je&&hi)return Je==a&&hi==r;var Mi=!0;at.set(r,a),at.set(a,r);for(var ui=yt;++fe<Nt;){ze=St[fe];var Pi=r[ze],Ni=a[ze];if(_)var Lr=yt?_(Ni,Pi,ze,a,r,at):_(Pi,Ni,ze,r,a,at);if(!(Lr===p?Pi===Ni||k(Pi,Ni,u,_,at):Lr)){Mi=!1;break}ui||(ui=ze=="constructor")}if(Mi&&!ui){var hr=r.constructor,Rr=a.constructor;hr!=Rr&&"constructor"in r&&"constructor"in a&&!(typeof hr=="function"&&hr instanceof hr&&typeof Rr=="function"&&Rr instanceof Rr)&&(Mi=!1)}return at.delete(r),at.delete(a),Mi}function rs(r){return Sh(iu(r,p,cu),r+"")}function gh(r){return Yl(r,Un,xh)}function vh(r){return Yl(r,xr,$h)}var yh=ha?function(r){return ha.get(r)}:Nh;function $l(r){for(var a=r.name+"",u=So[a],_=Ti.call(So,a)?u.length:0;_--;){var k=u[_],at=k.func;if(at==null||at==r)return k.name}return a}function Ja(r){var a=Ti.call(Q,"placeholder")?Q:r;return a.placeholder}function si(){var r=Q.iteratee||zh;return r=r===zh?P:r,arguments.length?r(arguments[0],arguments[1]):r}function Kl(r,a){var u=r.__data__;return Ic(a)?u[typeof a=="string"?"string":"hash"]:u.map}function _h(r){for(var a=Un(r),u=a.length;u--;){var _=a[u],k=r[_];a[u]=[_,k,tu(k)]}return a}function wa(r,a){var u=jo(r,a);return f(u)?u:p}function Ec(r){var a=Ti.call(r,jr),u=r[jr];try{r[jr]=p;var _=!0}catch{}var k=$n.call(r);return _&&(a?r[jr]=u:delete r[jr]),k}var xh=oa?function(r){return r==null?[]:(r=Ee(r),cr(oa(r),function(a){return ra.call(r,a)}))}:kh,$h=oa?function(r){for(var a=[];r;)Nr(a,xh(r)),r=Vr(r);return a}:kh,er=kn;(aa&&er(new aa(new ArrayBuffer(1)))!=Xt||$o&&er(new $o)!=R||la&&er(la.resolve())!=pt||Ko&&er(new Ko)!=Kt||yn&&er(new yn)!=tt)&&(er=function(r){var a=kn(r),u=a==ct?r.constructor:p,_=u?Ta(u):"";if(_)switch(_){case Ga:return Xt;case ul:return R;case cl:return pt;case fl:return Kt;case Ul:return tt}return a});function bc(r,a,u){for(var _=-1,k=u.length;++_<k;){var at=u[_],yt=at.size;switch(at.type){case"drop":r+=yt;break;case"dropRight":a-=yt;break;case"take":a=Dn(a,r+yt);break;case"takeRight":r=cn(r,a-yt);break}}return{start:r,end:a}}function Ac(r){var a=r.match(js);return a?a[1].split(Dr):[]}function Kh(r,a,u){a=Ze(a,r);for(var _=-1,k=a.length,at=!1;++_<k;){var yt=Lo(a[_]);if(!(at=r!=null&&u(r,yt)))break;r=r[yt]}return at||++_!=k?at:(k=r==null?0:r.length,!!k&&oh(k)&&os(yt,k)&&(vi(r)||Ma(r)))}function Cc(r){var a=r.length,u=new r.constructor(a);return a&&typeof r[0]=="string"&&Ti.call(r,"index")&&(u.index=r.index,u.input=r.input),u}function Qh(r){return typeof r.constructor=="function"&&!El(r)?Eo(Vr(r)):{}}function Pc(r,a,u){var _=r.constructor;switch(a){case Gt:return ks(r);case Ie:case Ge:return new _(+r);case Xt:return xl(r,u);case Wt:case Ne:case Re:case de:case we:case yi:case Si:case ni:case Ei:return xa(r,u);case R:return new _;case Jt:case w:return new _(r);case ie:return Us(r);case Kt:return new _;case X:return is(r)}}function Lc(r,a){var u=a.length;if(!u)return r;var _=u-1;return a[_]=(u>1?"& ":"")+a[_],a=a.join(u>2?", ":" "),r.replace(cs,`{
|
|
2617
|
-
/* [wrapped with `+
|
|
2618
|
-
`)}function Rc(r){return vi(r)||Ma(r)||!!(Cs&&r&&r[Cs])}function os(r,a){var u=typeof r;return a=a??ge,!!a&&(u=="number"||u!="symbol"&&Ca.test(r))&&r>-1&&r%1==0&&r<a}function lr(r,a,u){if(!mn(u))return!1;var _=typeof a;return(_=="number"?_r(u)&&os(a,u.length):_=="string"&&a in u)?uo(u[a],r):!1}function wh(r,a){if(vi(r))return!1;var u=typeof r;return u=="number"||u=="symbol"||u=="boolean"||r==null||Pr(r)?!0:ir.test(r)||!Ro.test(r)||a!=null&&r in Ee(a)}function Ic(r){var a=typeof r;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?r!=="__proto__":r===null}function Th(r){var a=$l(r),u=Q[a];if(typeof u!="function"||!(a in _i.prototype))return!1;if(r===u)return!0;var _=yh(u);return!!_&&r===_[0]}function Oc(r){return!!mr&&mr in r}var Dc=To?ss:Uh;function El(r){var a=r&&r.constructor,u=typeof a=="function"&&a.prototype||Gr;return r===u}function tu(r){return r===r&&!mn(r)}function eu(r,a){return function(u){return u==null?!1:u[r]===a&&(a!==p||r in Ee(u))}}function zc(r){var a=nh(r,function(_){return u.size===U&&u.clear(),_}),u=a.cache;return a}function Bc(r,a){var u=r[1],_=a[1],k=u|_,at=k<(A|d|W),yt=_==W&&u==M||_==W&&u==ht&&r[7].length<=a[8]||_==(W|ht)&&a[7].length<=a[8]&&u==M;if(!(at||yt))return r;_&A&&(r[2]=a[2],k|=u&A?0:g);var St=a[3];if(St){var Nt=r[3];r[3]=Nt?wl(Nt,St,a[4]):St,r[4]=Nt?dr(r[3],Y):a[4]}return St=a[5],St&&(Nt=r[5],r[5]=Nt?Tl(Nt,St,a[6]):St,r[6]=Nt?dr(r[5],Y):a[6]),St=a[7],St&&(r[7]=St),_&W&&(r[8]=r[8]==null?a[8]:Dn(r[8],a[8])),r[9]==null&&(r[9]=a[9]),r[0]=a[0],r[1]=k,r}function Nc(r){var a=[];if(r!=null)for(var u in Ee(r))a.push(u);return a}function kc(r){return $n.call(r)}function iu(r,a,u){return a=cn(a===p?r.length-1:a,0),function(){for(var _=arguments,k=-1,at=cn(_.length-a,0),yt=Yt(at);++k<at;)yt[k]=_[a+k];k=-1;for(var St=Yt(a+1);++k<a;)St[k]=_[k];return St[a]=u(yt),nr(r,this,St)}}function nu(r,a){return a.length<2?r:Co(r,Gi(a,0,-1))}function Uc(r,a){for(var u=r.length,_=Dn(a.length,u),k=jn(r);_--;){var at=a[_];r[_]=os(at,u)?k[at]:p}return r}function Mh(r,a){if(!(a==="constructor"&&typeof r[a]=="function")&&a!="__proto__")return r[a]}var ru=su(xn),bl=sl||function(r,a){return un.setTimeout(r,a)},Sh=su(pn);function ou(r,a,u){var _=a+"";return Sh(r,Lc(_,Fc(Ac(_),u)))}function su(r){var a=0,u=0;return function(){var _=sa(),k=Et-(_-u);if(u=_,k>0){if(++a>=lt)return arguments[0]}else a=0;return r.apply(p,arguments)}}function Ql(r,a){var u=-1,_=r.length,k=_-1;for(a=a===p?_:a;++u<a;){var at=pe(u,k),yt=r[at];r[at]=r[u],r[u]=yt}return r.length=a,r}var au=zc(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(us,function(u,_,k,at){a.push(k?at.replace(ps,"$1"):_||u)}),a});function Lo(r){if(typeof r=="string"||Pr(r))return r;var a=r+"";return a=="0"&&1/r==-Rt?"-0":a}function Ta(r){if(r!=null){try{return Zn.call(r)}catch{}try{return r+""}catch{}}return""}function Fc(r,a){return Yi(xe,function(u){var _="_."+u[0];a&u[1]&&!Ks(r,_)&&r.push(_)}),r.sort()}function lu(r){if(r instanceof _i)return r.clone();var a=new Bn(r.__wrapped__,r.__chain__);return a.__actions__=jn(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}function Gc(r,a,u){(u?lr(r,a,u):a===p)?a=1:a=cn(wi(a),0);var _=r==null?0:r.length;if(!_||a<1)return[];for(var k=0,at=0,yt=Yt(ro(_/a));k<_;)yt[at++]=Gi(r,k,k+=a);return yt}function Hc(r){for(var a=-1,u=r==null?0:r.length,_=0,k=[];++a<u;){var at=r[a];at&&(k[_++]=at)}return k}function Vc(){var r=arguments.length;if(!r)return[];for(var a=Yt(r-1),u=arguments[0],_=r;_--;)a[_-1]=arguments[_];return Nr(vi(u)?jn(u):[u],_n(a,1))}var jc=se(function(r,a){return bn(r)?va(r,_n(a,1,bn,!0)):[]}),Wc=se(function(r,a){var u=Jr(a);return bn(u)&&(u=p),bn(r)?va(r,_n(a,1,bn,!0),si(u,2)):[]}),Xc=se(function(r,a){var u=Jr(a);return bn(u)&&(u=p),bn(r)?va(r,_n(a,1,bn,!0),p,u):[]});function qc(r,a,u){var _=r==null?0:r.length;return _?(a=u||a===p?1:wi(a),Gi(r,a<0?0:a,_)):[]}function Yc(r,a,u){var _=r==null?0:r.length;return _?(a=u||a===p?1:wi(a),a=_-a,Gi(r,0,a<0?0:a)):[]}function Zc(r,a){return r&&r.length?Xe(r,si(a,3),!0,!0):[]}function Jc(r,a){return r&&r.length?Xe(r,si(a,3),!0):[]}function $c(r,a,u,_){var k=r==null?0:r.length;return k?(u&&typeof u!="number"&&lr(r,a,u)&&(u=0,_=k),Vn(r,a,u,_)):[]}function hu(r,a,u){var _=r==null?0:r.length;if(!_)return-1;var k=u==null?0:wi(u);return k<0&&(k=cn(_+k,0)),go(r,si(a,3),k)}function uu(r,a,u){var _=r==null?0:r.length;if(!_)return-1;var k=_-1;return u!==p&&(k=wi(u),k=u<0?cn(_+k,0):Dn(k,_-1)),go(r,si(a,3),k,!0)}function cu(r){var a=r==null?0:r.length;return a?_n(r,1):[]}function Kc(r){var a=r==null?0:r.length;return a?_n(r,Rt):[]}function Qc(r,a){var u=r==null?0:r.length;return u?(a=a===p?1:wi(a),_n(r,a)):[]}function tf(r){for(var a=-1,u=r==null?0:r.length,_={};++a<u;){var k=r[a];_[k[0]]=k[1]}return _}function fu(r){return r&&r.length?r[0]:p}function ef(r,a,u){var _=r==null?0:r.length;if(!_)return-1;var k=u==null?0:wi(u);return k<0&&(k=cn(_+k,0)),fr(r,a,k)}function nf(r){var a=r==null?0:r.length;return a?Gi(r,0,-1):[]}var rf=se(function(r){var a=Xi(r,ne);return a.length&&a[0]===r[0]?_a(a):[]}),of=se(function(r){var a=Jr(r),u=Xi(r,ne);return a===Jr(u)?a=p:u.pop(),u.length&&u[0]===r[0]?_a(u,si(a,2)):[]}),sf=se(function(r){var a=Jr(r),u=Xi(r,ne);return a=typeof a=="function"?a:p,a&&u.pop(),u.length&&u[0]===r[0]?_a(u,p,a):[]});function af(r,a){return r==null?"":ll.call(r,a)}function Jr(r){var a=r==null?0:r.length;return a?r[a-1]:p}function lf(r,a,u){var _=r==null?0:r.length;if(!_)return-1;var k=_;return u!==p&&(k=wi(u),k=k<0?cn(_+k,0):Dn(k,_-1)),a===a?za(r,a,k):go(r,Uo,k,!0)}function hf(r,a){return r&&r.length?V(r,wi(a)):p}var uf=se(pu);function pu(r,a){return r&&r.length&&a&&a.length?qt(r,a):r}function cf(r,a,u){return r&&r.length&&a&&a.length?qt(r,a,si(u,2)):r}function ff(r,a,u){return r&&r.length&&a&&a.length?qt(r,a,p,u):r}var pf=rs(function(r,a){var u=r==null?0:r.length,_=yl(r,a);return Te(r,Xi(a,function(k){return os(k,u)?+k:k}).sort(ns)),_});function df(r,a){var u=[];if(!(r&&r.length))return u;var _=-1,k=[],at=r.length;for(a=si(a,3);++_<at;){var yt=r[_];a(yt,_,r)&&(u.push(yt),k.push(_))}return Te(r,k),u}function Eh(r){return r==null?r:Ps.call(r)}function mf(r,a,u){var _=r==null?0:r.length;return _?(u&&typeof u!="number"&&lr(r,a,u)?(a=0,u=_):(a=a==null?0:wi(a),u=u===p?_:wi(u)),Gi(r,a,u)):[]}function gf(r,a){return wn(r,a)}function vf(r,a,u){return Ae(r,a,si(u,2))}function yf(r,a){var u=r==null?0:r.length;if(u){var _=wn(r,a);if(_<u&&uo(r[_],a))return _}return-1}function _f(r,a){return wn(r,a,!0)}function xf(r,a,u){return Ae(r,a,si(u,2),!0)}function wf(r,a){var u=r==null?0:r.length;if(u){var _=wn(r,a,!0)-1;if(uo(r[_],a))return _}return-1}function Tf(r){return r&&r.length?Qe(r):[]}function Mf(r,a){return r&&r.length?Qe(r,si(a,2)):[]}function Sf(r){var a=r==null?0:r.length;return a?Gi(r,1,a):[]}function Ef(r,a,u){return r&&r.length?(a=u||a===p?1:wi(a),Gi(r,0,a<0?0:a)):[]}function bf(r,a,u){var _=r==null?0:r.length;return _?(a=u||a===p?1:wi(a),a=_-a,Gi(r,a<0?0:a,_)):[]}function Af(r,a){return r&&r.length?Xe(r,si(a,3),!1,!0):[]}function Cf(r,a){return r&&r.length?Xe(r,si(a,3)):[]}var Pf=se(function(r){return ei(_n(r,1,bn,!0))}),Lf=se(function(r){var a=Jr(r);return bn(a)&&(a=p),ei(_n(r,1,bn,!0),si(a,2))}),Rf=se(function(r){var a=Jr(r);return a=typeof a=="function"?a:p,ei(_n(r,1,bn,!0),p,a)});function If(r){return r&&r.length?ei(r):[]}function Of(r,a){return r&&r.length?ei(r,si(a,2)):[]}function Df(r,a){return a=typeof a=="function"?a:p,r&&r.length?ei(r,p,a):[]}function bh(r){if(!(r&&r.length))return[];var a=0;return r=cr(r,function(u){if(bn(u))return a=cn(u.length,a),!0}),eo(a,function(u){return Xi(r,vo(u))})}function du(r,a){if(!(r&&r.length))return[];var u=bh(r);return a==null?u:Xi(u,function(_){return nr(a,p,_)})}var zf=se(function(r,a){return bn(r)?va(r,a):[]}),Bf=se(function(r){return Ci(cr(r,bn))}),Nf=se(function(r){var a=Jr(r);return bn(a)&&(a=p),Ci(cr(r,bn),si(a,2))}),kf=se(function(r){var a=Jr(r);return a=typeof a=="function"?a:p,Ci(cr(r,bn),p,a)}),Uf=se(bh);function Ff(r,a){return Ai(r||[],a||[],Bs)}function Gf(r,a){return Ai(r||[],a||[],fi)}var Hf=se(function(r){var a=r.length,u=a>1?r[a-1]:p;return u=typeof u=="function"?(r.pop(),u):p,du(r,u)});function mu(r){var a=Q(r);return a.__chain__=!0,a}function Vf(r,a){return a(r),r}function th(r,a){return a(r)}var jf=rs(function(r){var a=r.length,u=a?r[0]:0,_=this.__wrapped__,k=function(at){return yl(at,r)};return a>1||this.__actions__.length||!(_ instanceof _i)||!os(u)?this.thru(k):(_=_.slice(u,+u+(a?1:0)),_.__actions__.push({func:th,args:[k],thisArg:p}),new Bn(_,this.__chain__).thru(function(at){return a&&!at.length&&at.push(p),at}))});function Wf(){return mu(this)}function Xf(){return new Bn(this.value(),this.__chain__)}function qf(){this.__values__===p&&(this.__values__=Pu(this.value()));var r=this.__index__>=this.__values__.length,a=r?p:this.__values__[this.__index__++];return{done:r,value:a}}function Yf(){return this}function Zf(r){for(var a,u=this;u instanceof Rs;){var _=lu(u);_.__index__=0,_.__values__=p,a?k.__wrapped__=_:a=_;var k=_;u=u.__wrapped__}return k.__wrapped__=r,a}function Jf(){var r=this.__wrapped__;if(r instanceof _i){var a=r;return this.__actions__.length&&(a=new _i(this)),a=a.reverse(),a.__actions__.push({func:th,args:[Eh],thisArg:p}),new Bn(a,this.__chain__)}return this.thru(Eh)}function $f(){return ri(this.__wrapped__,this.__actions__)}var Kf=Fs(function(r,a,u){Ti.call(r,u)?++r[u]:ao(r,u,1)});function Qf(r,a,u){var _=vi(r)?ol:Nn;return u&&lr(r,a,u)&&(a=p),_(r,si(a,3))}function tp(r,a){var u=vi(r)?cr:vr;return u(r,si(a,3))}var ep=$e(hu),ip=$e(uu);function np(r,a){return _n(eh(r,a),1)}function rp(r,a){return _n(eh(r,a),Rt)}function op(r,a,u){return u=u===p?1:wi(u),_n(eh(r,a),u)}function gu(r,a){var u=vi(r)?Yi:fn;return u(r,si(a,3))}function vu(r,a){var u=vi(r)?No:ql;return u(r,si(a,3))}var sp=Fs(function(r,a,u){Ti.call(r,u)?r[u].push(a):ao(r,u,[a])});function ap(r,a,u,_){r=_r(r)?r:Ka(r),u=u&&!_?wi(u):0;var k=r.length;return u<0&&(u=cn(k+u,0)),sh(r)?u<=k&&r.indexOf(a,u)>-1:!!k&&fr(r,a,u)>-1}var lp=se(function(r,a,u){var _=-1,k=typeof a=="function",at=_r(r)?Yt(r.length):[];return fn(r,function(yt){at[++_]=k?nr(a,yt,u):e(yt,a,u)}),at}),hp=Fs(function(r,a,u){ao(r,u,a)});function eh(r,a){var u=vi(r)?Xi:_t;return u(r,si(a,3))}function up(r,a,u,_){return r==null?[]:(vi(a)||(a=a==null?[]:[a]),u=_?p:u,vi(u)||(u=u==null?[]:[u]),it(r,a,u))}var cp=Fs(function(r,a,u){r[u?0:1].push(a)},function(){return[[],[]]});function fp(r,a,u){var _=vi(r)?Oa:yo,k=arguments.length<3;return _(r,si(a,4),u,k,fn)}function pp(r,a,u){var _=vi(r)?Dl:yo,k=arguments.length<3;return _(r,si(a,4),u,k,ql)}function dp(r,a){var u=vi(r)?cr:vr;return u(r,rh(si(a,3)))}function mp(r){var a=vi(r)?ml:je;return a(r)}function gp(r,a,u){(u?lr(r,a,u):a===p)?a=1:a=wi(a);var _=vi(r)?mh:Ke;return _(r,a)}function vp(r){var a=vi(r)?jl:Wi;return a(r)}function yp(r){if(r==null)return 0;if(_r(r))return sh(r)?br(r):r.length;var a=er(r);return a==R||a==Kt?r.size:N(r).length}function _p(r,a,u){var _=vi(r)?Qr:en;return u&&lr(r,a,u)&&(a=p),_(r,si(a,3))}var xp=se(function(r,a){if(r==null)return[];var u=a.length;return u>1&&lr(r,a[0],a[1])?a=[]:u>2&&lr(a[0],a[1],a[2])&&(a=[a[0]]),it(r,_n(a,1),[])}),ih=ka||function(){return un.Date.now()};function wp(r,a){if(typeof a!="function")throw new Yn(C);return r=wi(r),function(){if(--r<1)return a.apply(this,arguments)}}function yu(r,a,u){return a=u?p:a,a=r&&a==null?r.length:a,Wn(r,W,p,p,p,p,a)}function _u(r,a){var u;if(typeof a!="function")throw new Yn(C);return r=wi(r),function(){return--r>0&&(u=a.apply(this,arguments)),r<=1&&(a=p),u}}var Ah=se(function(r,a,u){var _=A;if(u.length){var k=dr(u,Ja(Ah));_|=F}return Wn(r,_,a,u,k)}),xu=se(function(r,a,u){var _=A|d;if(u.length){var k=dr(u,Ja(xu));_|=F}return Wn(a,_,r,u,k)});function wu(r,a,u){a=u?p:a;var _=Wn(r,M,p,p,p,p,p,a);return _.placeholder=wu.placeholder,_}function Tu(r,a,u){a=u?p:a;var _=Wn(r,x,p,p,p,p,p,a);return _.placeholder=Tu.placeholder,_}function Mu(r,a,u){var _,k,at,yt,St,Nt,re=0,ae=!1,fe=!1,ze=!0;if(typeof r!="function")throw new Yn(C);a=$r(a)||0,mn(u)&&(ae=!!u.leading,fe="maxWait"in u,at=fe?cn($r(u.maxWait)||0,a):at,ze="trailing"in u?!!u.trailing:ze);function Je(An){var co=_,ls=k;return _=k=p,re=An,yt=r.apply(ls,co),yt}function hi(An){return re=An,St=bl(Pi,a),ae?Je(An):yt}function Mi(An){var co=An-Nt,ls=An-re,Hu=a-co;return fe?Dn(Hu,at-ls):Hu}function ui(An){var co=An-Nt,ls=An-re;return Nt===p||co>=a||co<0||fe&&ls>=at}function Pi(){var An=ih();if(ui(An))return Ni(An);St=bl(Pi,Mi(An))}function Ni(An){return St=p,ze&&_?Je(An):(_=k=p,yt)}function Lr(){St!==p&&Tn(St),re=0,_=Nt=k=St=p}function hr(){return St===p?yt:Ni(ih())}function Rr(){var An=ih(),co=ui(An);if(_=arguments,k=this,Nt=An,co){if(St===p)return hi(Nt);if(fe)return Tn(St),St=bl(Pi,a),Je(Nt)}return St===p&&(St=bl(Pi,a)),yt}return Rr.cancel=Lr,Rr.flush=hr,Rr}var Tp=se(function(r,a){return Xr(r,1,a)}),Mp=se(function(r,a,u){return Xr(r,$r(a)||0,u)});function Sp(r){return Wn(r,ft)}function nh(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new Yn(C);var u=function(){var _=arguments,k=a?a.apply(this,_):_[0],at=u.cache;if(at.has(k))return at.get(k);var yt=r.apply(this,_);return u.cache=at.set(k,yt)||at,yt};return u.cache=new(nh.Cache||or),u}nh.Cache=or;function rh(r){if(typeof r!="function")throw new Yn(C);return function(){var a=arguments;switch(a.length){case 0:return!r.call(this);case 1:return!r.call(this,a[0]);case 2:return!r.call(this,a[0],a[1]);case 3:return!r.call(this,a[0],a[1],a[2])}return!r.apply(this,a)}}function Ep(r){return _u(2,r)}var bp=li(function(r,a){a=a.length==1&&vi(a[0])?Xi(a[0],In(si())):Xi(_n(a,1),In(si()));var u=a.length;return se(function(_){for(var k=-1,at=Dn(_.length,u);++k<at;)_[k]=a[k].call(this,_[k]);return nr(r,this,_)})}),Ch=se(function(r,a){var u=dr(a,Ja(Ch));return Wn(r,F,p,a,u)}),Su=se(function(r,a){var u=dr(a,Ja(Su));return Wn(r,z,p,a,u)}),Ap=rs(function(r,a){return Wn(r,ht,p,p,p,a)});function Cp(r,a){if(typeof r!="function")throw new Yn(C);return a=a===p?a:wi(a),se(r,a)}function Pp(r,a){if(typeof r!="function")throw new Yn(C);return a=a==null?0:cn(wi(a),0),se(function(u){var _=u[a],k=dn(u,0,a);return _&&Nr(k,_),nr(r,this,k)})}function Lp(r,a,u){var _=!0,k=!0;if(typeof r!="function")throw new Yn(C);return mn(u)&&(_="leading"in u?!!u.leading:_,k="trailing"in u?!!u.trailing:k),Mu(r,a,{leading:_,maxWait:a,trailing:k})}function Rp(r){return yu(r,1)}function Ip(r,a){return Ch(ii(a),r)}function Op(){if(!arguments.length)return[];var r=arguments[0];return vi(r)?r:[r]}function Dp(r){return sr(r,B)}function zp(r,a){return a=typeof a=="function"?a:p,sr(r,B,a)}function Bp(r){return sr(r,H|B)}function Np(r,a){return a=typeof a=="function"?a:p,sr(r,H|B,a)}function kp(r,a){return a==null||Xl(r,a,Un(a))}function uo(r,a){return r===a||r!==r&&a!==a}var Up=Zr(Xa),Fp=Zr(function(r,a){return r>=a}),Ma=i(function(){return arguments}())?i:function(r){return Mn(r)&&Ti.call(r,"callee")&&!ra.call(r,"callee")},vi=Yt.isArray,Gp=rl?In(rl):n;function _r(r){return r!=null&&oh(r.length)&&!ss(r)}function bn(r){return Mn(r)&&_r(r)}function Hp(r){return r===!0||r===!1||Mn(r)&&kn(r)==Ie}var Hs=al||Uh,Vp=ws?In(ws):o;function jp(r){return Mn(r)&&r.nodeType===1&&!Al(r)}function Wp(r){if(r==null)return!0;if(_r(r)&&(vi(r)||typeof r=="string"||typeof r.splice=="function"||Hs(r)||$a(r)||Ma(r)))return!r.length;var a=er(r);if(a==R||a==Kt)return!r.size;if(El(r))return!N(r).length;for(var u in r)if(Ti.call(r,u))return!1;return!0}function Xp(r,a){return s(r,a)}function qp(r,a,u){u=typeof u=="function"?u:p;var _=u?u(r,a):p;return _===p?s(r,a,p,u):!!_}function Ph(r){if(!Mn(r))return!1;var a=kn(r);return a==Ri||a==di||typeof r.message=="string"&&typeof r.name=="string"&&!Al(r)}function Yp(r){return typeof r=="number"&&Ua(r)}function ss(r){if(!mn(r))return!1;var a=kn(r);return a==hn||a==Ji||a==ki||a==Lt}function Eu(r){return typeof r=="number"&&r==wi(r)}function oh(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ge}function mn(r){var a=typeof r;return r!=null&&(a=="object"||a=="function")}function Mn(r){return r!=null&&typeof r=="object"}var bu=Ts?In(Ts):h;function Zp(r,a){return r===a||c(r,a,_h(a))}function Jp(r,a,u){return u=typeof u=="function"?u:p,c(r,a,_h(a),u)}function $p(r){return Au(r)&&r!=+r}function Kp(r){if(Dc(r))throw new ai(m);return f(r)}function Qp(r){return r===null}function td(r){return r==null}function Au(r){return typeof r=="number"||Mn(r)&&kn(r)==Jt}function Al(r){if(!Mn(r)||kn(r)!=ct)return!1;var a=Vr(r);if(a===null)return!0;var u=Ti.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&Zn.call(u)==Hr}var Lh=Il?In(Il):v;function ed(r){return Eu(r)&&r>=-ge&&r<=ge}var Cu=Ol?In(Ol):y;function sh(r){return typeof r=="string"||!vi(r)&&Mn(r)&&kn(r)==w}function Pr(r){return typeof r=="symbol"||Mn(r)&&kn(r)==X}var $a=La?In(La):S;function id(r){return r===p}function nd(r){return Mn(r)&&er(r)==tt}function rd(r){return Mn(r)&&kn(r)==vt}var od=Zr(et),sd=Zr(function(r,a){return r<=a});function Pu(r){if(!r)return[];if(_r(r))return sh(r)?qn(r):jn(r);if(Mo&&r[Mo])return Xo(r[Mo]());var a=er(r),u=a==R?Fn:a==Kt?qo:Ka;return u(r)}function as(r){if(!r)return r===0?r:0;if(r=$r(r),r===Rt||r===-Rt){var a=r<0?-1:1;return a*ue}return r===r?r:0}function wi(r){var a=as(r),u=a%1;return a===a?u?a-u:a:0}function Lu(r){return r?Ao(wi(r),0,Dt):0}function $r(r){if(typeof r=="number")return r;if(Pr(r))return Ft;if(mn(r)){var a=typeof r.valueOf=="function"?r.valueOf():r;r=mn(a)?a+"":a}if(typeof r!="string")return r===0?r:+r;r=Ss(r);var u=il.test(r);return u||Oo.test(r)?ys(r.slice(2),u?2:8):el.test(r)?Ft:+r}function Ru(r){return En(r,xr(r))}function ad(r){return r?Ao(wi(r),-ge,ge):r===0?r:0}function qi(r){return r==null?"":Ye(r)}var ld=ho(function(r,a){if(El(a)||_r(a)){En(a,Un(a),r);return}for(var u in a)Ti.call(a,u)&&Bs(r,u,a[u])}),Iu=ho(function(r,a){En(a,xr(a),r)}),ah=ho(function(r,a,u,_){En(a,xr(a),r,_)}),hd=ho(function(r,a,u,_){En(a,Un(a),r,_)}),ud=rs(yl);function cd(r,a){var u=Eo(r);return a==null?u:gl(u,a)}var fd=se(function(r,a){r=Ee(r);var u=-1,_=a.length,k=_>2?a[2]:p;for(k&&lr(a[0],a[1],k)&&(_=1);++u<_;)for(var at=a[u],yt=xr(at),St=-1,Nt=yt.length;++St<Nt;){var re=yt[St],ae=r[re];(ae===p||uo(ae,Gr[re])&&!Ti.call(r,re))&&(r[re]=at[re])}return r}),pd=se(function(r){return r.push(p,Zh),nr(Ou,p,r)});function dd(r,a){return ko(r,si(a,3),yr)}function md(r,a){return ko(r,si(a,3),Wa)}function gd(r,a){return r==null?r:ya(r,si(a,3),xr)}function vd(r,a){return r==null?r:ja(r,si(a,3),xr)}function yd(r,a){return r&&yr(r,si(a,3))}function _d(r,a){return r&&Wa(r,si(a,3))}function xd(r){return r==null?[]:es(r,Un(r))}function wd(r){return r==null?[]:es(r,xr(r))}function Rh(r,a,u){var _=r==null?p:Co(r,a);return _===p?u:_}function Td(r,a){return r!=null&&Kh(r,a,qa)}function Ih(r,a){return r!=null&&Kh(r,a,_l)}var Md=me(function(r,a,u){a!=null&&typeof a.toString!="function"&&(a=$n.call(a)),r[a]=u},Dh(wr)),Sd=me(function(r,a,u){a!=null&&typeof a.toString!="function"&&(a=$n.call(a)),Ti.call(r,a)?r[a].push(u):r[a]=[u]},si),Ed=se(e);function Un(r){return _r(r)?Vl(r):N(r)}function xr(r){return _r(r)?Vl(r,!0):j(r)}function bd(r,a){var u={};return a=si(a,3),yr(r,function(_,k,at){ao(u,a(_,k,at),_)}),u}function Ad(r,a){var u={};return a=si(a,3),yr(r,function(_,k,at){ao(u,k,a(_,k,at))}),u}var Cd=ho(function(r,a,u){xt(r,a,u)}),Ou=ho(function(r,a,u,_){xt(r,a,u,_)}),Pd=rs(function(r,a){var u={};if(r==null)return u;var _=!1;a=Xi(a,function(at){return at=Ze(at,r),_||(_=at.length>1),at}),En(r,vh(r),u),_&&(u=sr(u,H|K|B,Tc));for(var k=a.length;k--;)Hi(u,a[k]);return u});function Ld(r,a){return Du(r,rh(si(a)))}var Rd=rs(function(r,a){return r==null?{}:It(r,a)});function Du(r,a){if(r==null)return{};var u=Xi(vh(r),function(_){return[_]});return a=si(a),ee(r,u,function(_,k){return a(_,k[0])})}function Id(r,a,u){a=Ze(a,r);var _=-1,k=a.length;for(k||(k=1,r=p);++_<k;){var at=r==null?p:r[Lo(a[_])];at===p&&(_=k,at=u),r=ss(at)?at.call(r):at}return r}function Od(r,a,u){return r==null?r:fi(r,a,u)}function Dd(r,a,u,_){return _=typeof _=="function"?_:p,r==null?r:fi(r,a,u,_)}var zu=Jl(Un),Bu=Jl(xr);function zd(r,a,u){var _=vi(r),k=_||Hs(r)||$a(r);if(a=si(a,4),u==null){var at=r&&r.constructor;k?u=_?new at:[]:mn(r)?u=ss(at)?Eo(Vr(r)):{}:u={}}return(k?Yi:yr)(r,function(yt,St,Nt){return a(u,yt,St,Nt)}),u}function Bd(r,a){return r==null?!0:Hi(r,a)}function Nd(r,a,u){return r==null?r:Ce(r,a,ii(u))}function kd(r,a,u,_){return _=typeof _=="function"?_:p,r==null?r:Ce(r,a,ii(u),_)}function Ka(r){return r==null?[]:Fo(r,Un(r))}function Ud(r){return r==null?[]:Fo(r,xr(r))}function Fd(r,a,u){return u===p&&(u=a,a=p),u!==p&&(u=$r(u),u=u===u?u:0),a!==p&&(a=$r(a),a=a===a?a:0),Ao($r(r),a,u)}function Gd(r,a,u){return a=as(a),u===p?(u=a,a=0):u=as(u),r=$r(r),Ya(r,a,u)}function Hd(r,a,u){if(u&&typeof u!="boolean"&&lr(r,a,u)&&(a=u=p),u===p&&(typeof a=="boolean"?(u=a,a=p):typeof r=="boolean"&&(u=r,r=p)),r===p&&a===p?(r=0,a=1):(r=as(r),a===p?(a=r,r=0):a=as(a)),r>a){var _=r;r=a,a=_}if(u||r%1||a%1){var k=Fa();return Dn(r+k*(a-r+$s("1e-"+((k+"").length-1))),a)}return pe(r,a)}var Vd=De(function(r,a,u){return a=a.toLowerCase(),r+(u?Nu(a):a)});function Nu(r){return Oh(qi(r).toLowerCase())}function ku(r){return r=qi(r),r&&r.replace(Pa,Ho).replace(nl,"")}function jd(r,a,u){r=qi(r),a=Ye(a);var _=r.length;u=u===p?_:Ao(wi(u),0,_);var k=u;return u-=a.length,u>=0&&r.slice(u,k)==a}function Wd(r){return r=qi(r),r&&Ir.test(r)?r.replace(Ii,Er):r}function Xd(r){return r=qi(r),r&&ba.test(r)?r.replace(Vs,"\\$&"):r}var qd=De(function(r,a,u){return r+(u?"-":"")+a.toLowerCase()}),Yd=De(function(r,a,u){return r+(u?" ":"")+a.toLowerCase()}),Zd=Me("toLowerCase");function Jd(r,a,u){r=qi(r),a=wi(a);var _=a?br(r):0;if(!a||_>=a)return r;var k=(a-_)/2;return rn(Jo(k),u)+r+rn(ro(k),u)}function $d(r,a,u){r=qi(r),a=wi(a);var _=a?br(r):0;return a&&_<a?r+rn(a-_,u):r}function Kd(r,a,u){r=qi(r),a=wi(a);var _=a?br(r):0;return a&&_<a?rn(a-_,u)+r:r}function Qd(r,a,u){return u||a==null?a=0:a&&(a=+a),hl(qi(r).replace(Or,""),a||0)}function tm(r,a,u){return(u?lr(r,a,u):a===p)?a=1:a=wi(a),be(qi(r),a)}function em(){var r=arguments,a=qi(r[0]);return r.length<3?a:a.replace(r[1],r[2])}var im=De(function(r,a,u){return r+(u?"_":"")+a.toLowerCase()});function nm(r,a,u){return u&&typeof u!="number"&&lr(r,a,u)&&(a=u=p),u=u===p?Dt:u>>>0,u?(r=qi(r),r&&(typeof a=="string"||a!=null&&!Lh(a))&&(a=Ye(a),!a&&pr(r))?dn(qn(r),0,u):r.split(a,u)):[]}var rm=De(function(r,a,u){return r+(u?" ":"")+Oh(a)});function om(r,a,u){return r=qi(r),u=u==null?0:Ao(wi(u),0,r.length),a=Ye(a),r.slice(u,u+a.length)==a}function sm(r,a,u){var _=Q.templateSettings;u&&lr(r,a,u)&&(a=p),r=qi(r),a=ah({},a,_,Yh);var k=ah({},a.imports,_.imports,Yh),at=Un(k),yt=Fo(k,at),St,Nt,re=0,ae=a.interpolate||Mr,fe="__p += '",ze=Gn((a.escape||Mr).source+"|"+ae.source+"|"+(ae===hs?zr:Mr).source+"|"+(a.evaluate||Mr).source+"|$","g"),Je="//# sourceURL="+(Ti.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gs+"]")+`
|
|
2619
|
-
`;r.replace(ze,function(ui,Pi,Ni,
|
|
2616
|
+
*/ru.exports,function(w,l){(function(){var o,p="4.17.21",d=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",_="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",S=500,C="__lodash_placeholder__",I=1,N=2,z=4,U=1,E=2,L=1,x=2,M=4,R=8,b=16,F=32,B=64,X=128,$=256,Q=512,ft=30,Ct="...",it=800,yt=16,G=1,Lt=2,Et=3,Pt=1/0,ce=9007199254740991,re=17976931348623157e292,Ft=0/0,It=4294967295,Bt=It-1,Be=It>>>1,me=[["ary",X],["bind",L],["bindKey",x],["curry",R],["curryRight",b],["flip",Q],["partial",F],["partialRight",B],["rearg",$]],Yt="[object Arguments]",ti="[object Array]",Fi="[object AsyncFunction]",Oe="[object Boolean]",Ge="[object Date]",di="[object DOMException]",Oi="[object Error]",mn="[object Function]",Qi="[object GeneratorFunction]",W="[object Map]",Jt="[object Number]",Wt="[object Null]",pt="[object Object]",dt="[object Promise]",Dt="[object Proxy]",ie="[object RegExp]",Kt="[object Set]",D="[object String]",K="[object Symbol]",ot="[object Undefined]",nt="[object WeakMap]",vt="[object WeakSet]",Gt="[object ArrayBuffer]",Xt="[object DataView]",jt="[object Float32Array]",Ne="[object Float64Array]",Re="[object Int8Array]",ge="[object Int16Array]",we="[object Int32Array]",_i="[object Uint8Array]",Si="[object Uint8ClampedArray]",ni="[object Uint16Array]",Ei="[object Uint32Array]",qr=/\b__p \+= '';/g,or=/\b(__p \+=) '' \+/g,on=/(__e\(.*?\)|\b__t\)) \+\n'';/g,As=/&(?:amp|lt|gt|quot|#39);/g,Ii=/[&<>"']/g,Xs=RegExp(As.source),as=RegExp(Ii.source),Fl=/<%-([\s\S]+?)%>/g,Mn=/<%([\s\S]+?)%>/g,ea=/<%=([\s\S]+?)%>/g,mo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vr=/^\w*$/,ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xa=/[\\^$.*+?()[\]{}|]/g,Ul=RegExp(Xa.source),ls=/^\s+/,Ch=/\s/,na=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qa=/\{\n\/\* \[wrapped with (.+)\] \*/,hs=/,? & /,Ya=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ra=/[()=,{}\[\]\/\s]/,sa=/\\(\\)?/g,us=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gl=/\w*$/,Ph=/^[-+]0x[0-9a-f]+$/i,Lh=/^0b[01]+$/i,go=/^\[object .+?Constructor\]$/,vo=/^0o[0-7]+$/i,Hl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yr=/($^)/,V=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",lt="\\u0300-\\u036f",at="\\ufe20-\\ufe2f",j="\\u20d0-\\u20ff",St=lt+at+j,ht="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",Ht="\\xac\\xb1\\xd7\\xf7",kt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mt="\\u2000-\\u206f",he=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oe="A-Z\\xc0-\\xd6\\xd8-\\xde",te="\\ufe0e\\ufe0f",_e=Ht+kt+Mt+he,ue="['’]",je="["+tt+"]",He="["+_e+"]",ci="["+St+"]",ke="\\d+",ye="["+ht+"]",Fe="["+Ot+"]",fe="[^"+tt+_e+ke+ht+Ot+oe+"]",mi="\\ud83c[\\udffb-\\udfff]",Pe="(?:"+ci+"|"+mi+")",xe="[^"+tt+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Sn="[\\ud800-\\udbff][\\udc00-\\udfff]",Xn="["+oe+"]",Di="\\u200d",zi="(?:"+Fe+"|"+fe+")",Gi="(?:"+Xn+"|"+fe+")",nn="(?:"+ue+"(?:d|ll|m|re|s|t|ve))?",rn="(?:"+ue+"(?:D|LL|M|RE|S|T|VE))?",un=Pe+"?",cn="["+te+"]?",Ui="(?:"+Di+"(?:"+[xe,Le,Sn].join("|")+")"+cn+un+")*",ki="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gi=cn+un+Ui,cs="(?:"+[ye,Le,Sn].join("|")+")"+gi,Fn="(?:"+[xe+ci+"?",ci,Le,Sn,je].join("|")+")",oa=RegExp(ue,"g"),Rh=RegExp(ci,"g"),qs=RegExp(mi+"(?="+mi+")|"+Fn+gi,"g"),Za=RegExp([Xn+"?"+Fe+"+"+nn+"(?="+[He,Xn,"$"].join("|")+")",Gi+"+"+rn+"(?="+[He,Xn+zi,"$"].join("|")+")",Xn+"?"+zi+"+"+nn,Xn+"+"+rn,Wi,ki,ke,cs].join("|"),"g"),Ja=RegExp("["+Di+tt+St+te+"]"),aa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$a=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],la=-1,ji={};ji[jt]=ji[Ne]=ji[Re]=ji[ge]=ji[we]=ji[_i]=ji[Si]=ji[ni]=ji[Ei]=!0,ji[Yt]=ji[ti]=ji[Gt]=ji[Oe]=ji[Xt]=ji[Ge]=ji[Oi]=ji[mn]=ji[W]=ji[Jt]=ji[pt]=ji[ie]=ji[Kt]=ji[D]=ji[nt]=!1;var xi={};xi[Yt]=xi[ti]=xi[Gt]=xi[Xt]=xi[Oe]=xi[Ge]=xi[jt]=xi[Ne]=xi[Re]=xi[ge]=xi[we]=xi[W]=xi[Jt]=xi[pt]=xi[ie]=xi[Kt]=xi[D]=xi[K]=xi[_i]=xi[Si]=xi[ni]=xi[Ei]=!0,xi[Oi]=xi[mn]=xi[nt]=!1;var Ka={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ha={"&":"&","<":"<",">":">",'"':""","'":"'"},Qa={"&":"&","<":"<",">":">",""":'"',"'":"'"},_o={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tl=parseFloat,ua=parseInt,ca=typeof Er=="object"&&Er&&Er.Object===Object&&Er,fa=typeof self=="object"&&self&&self.Object===Object&&self,gn=ca||fa||Function("return this")(),Ys=l&&!l.nodeType&&l,Zr=Ys&&!0&&w&&!w.nodeType&&w,yo=Zr&&Zr.exports===Ys,xo=yo&&ca.process,Un=function(){try{var Rt=Zr&&Zr.require&&Zr.require("util").types;return Rt||xo&&xo.binding&&xo.binding("util")}catch{}}(),Oh=Un&&Un.isArrayBuffer,pa=Un&&Un.isDate,da=Un&&Un.isMap,xu=Un&&Un.isRegExp,wu=Un&&Un.isSet,Wl=Un&&Un.isTypedArray;function _r(Rt,Qt,Zt){switch(Zt.length){case 0:return Rt.call(Qt);case 1:return Rt.call(Qt,Zt[0]);case 2:return Rt.call(Qt,Zt[0],Zt[1]);case 3:return Rt.call(Qt,Zt[0],Zt[1],Zt[2])}return Rt.apply(Qt,Zt)}function jl(Rt,Qt,Zt,Ue){for(var ai=-1,Bi=Rt==null?0:Rt.length;++ai<Bi;){var fn=Rt[ai];Qt(Ue,fn,Zt(fn),Rt)}return Ue}function Zi(Rt,Qt){for(var Zt=-1,Ue=Rt==null?0:Rt.length;++Zt<Ue&&Qt(Rt[Zt],Zt,Rt)!==!1;);return Rt}function wo(Rt,Qt){for(var Zt=Rt==null?0:Rt.length;Zt--&&Qt(Rt[Zt],Zt,Rt)!==!1;);return Rt}function Ih(Rt,Qt){for(var Zt=-1,Ue=Rt==null?0:Rt.length;++Zt<Ue;)if(!Qt(Rt[Zt],Zt,Rt))return!1;return!0}function Rr(Rt,Qt){for(var Zt=-1,Ue=Rt==null?0:Rt.length,ai=0,Bi=[];++Zt<Ue;){var fn=Rt[Zt];Qt(fn,Zt,Rt)&&(Bi[ai++]=fn)}return Bi}function el(Rt,Qt){var Zt=Rt==null?0:Rt.length;return!!Zt&&Or(Rt,Qt,0)>-1}function Xl(Rt,Qt,Zt){for(var Ue=-1,ai=Rt==null?0:Rt.length;++Ue<ai;)if(Zt(Qt,Rt[Ue]))return!0;return!1}function qi(Rt,Qt){for(var Zt=-1,Ue=Rt==null?0:Rt.length,ai=Array(Ue);++Zt<Ue;)ai[Zt]=Qt(Rt[Zt],Zt,Rt);return ai}function fs(Rt,Qt){for(var Zt=-1,Ue=Qt.length,ai=Rt.length;++Zt<Ue;)Rt[ai+Zt]=Qt[Zt];return Rt}function ql(Rt,Qt,Zt,Ue){var ai=-1,Bi=Rt==null?0:Rt.length;for(Ue&&Bi&&(Zt=Rt[++ai]);++ai<Bi;)Zt=Qt(Zt,Rt[ai],ai,Rt);return Zt}function Tu(Rt,Qt,Zt,Ue){var ai=Rt==null?0:Rt.length;for(Ue&&ai&&(Zt=Rt[--ai]);ai--;)Zt=Qt(Zt,Rt[ai],ai,Rt);return Zt}function Cs(Rt,Qt){for(var Zt=-1,Ue=Rt==null?0:Rt.length;++Zt<Ue;)if(Qt(Rt[Zt],Zt,Rt))return!0;return!1}var ps=Js("length");function Mu(Rt){return Rt.split("")}function il(Rt){return Rt.match(Ya)||[]}function To(Rt,Qt,Zt){var Ue;return Zt(Rt,function(ai,Bi,fn){if(Qt(ai,Bi,fn))return Ue=Bi,!1}),Ue}function Zs(Rt,Qt,Zt,Ue){for(var ai=Rt.length,Bi=Zt+(Ue?1:-1);Ue?Bi--:++Bi<ai;)if(Qt(Rt[Bi],Bi,Rt))return Bi;return-1}function Or(Rt,Qt,Zt){return Qt===Qt?Yl(Rt,Qt,Zt):Zs(Rt,Mo,Zt)}function nl(Rt,Qt,Zt,Ue){for(var ai=Zt-1,Bi=Rt.length;++ai<Bi;)if(Ue(Rt[ai],Qt))return ai;return-1}function Mo(Rt){return Rt!==Rt}function ma(Rt,Qt){var Zt=Rt==null?0:Rt.length;return Zt?Ks(Rt,Qt)/Zt:Ft}function Js(Rt){return function(Qt){return Qt==null?o:Qt[Rt]}}function Ps(Rt){return function(Qt){return Rt==null?o:Rt[Qt]}}function $s(Rt,Qt,Zt,Ue,ai){return ai(Rt,function(Bi,fn,Ee){Zt=Ue?(Ue=!1,Bi):Qt(Zt,Bi,fn,Ee)}),Zt}function Su(Rt,Qt){var Zt=Rt.length;for(Rt.sort(Qt);Zt--;)Rt[Zt]=Rt[Zt].value;return Rt}function Ks(Rt,Qt){for(var Zt,Ue=-1,ai=Rt.length;++Ue<ai;){var Bi=Qt(Rt[Ue]);Bi!==o&&(Zt=Zt===o?Bi:Zt+Bi)}return Zt}function Ls(Rt,Qt){for(var Zt=-1,Ue=Array(Rt);++Zt<Rt;)Ue[Zt]=Qt(Zt);return Ue}function Rs(Rt,Qt){return qi(Qt,function(Zt){return[Zt,Rt[Zt]]})}function ga(Rt){return Rt&&Rt.slice(0,va(Rt)+1).replace(ls,"")}function Gn(Rt){return function(Qt){return Rt(Qt)}}function So(Rt,Qt){return qi(Qt,function(Zt){return Rt[Zt]})}function ds(Rt,Qt){return Rt.has(Qt)}function Qs(Rt,Qt){for(var Zt=-1,Ue=Rt.length;++Zt<Ue&&Or(Qt,Rt[Zt],0)>-1;);return Zt}function Eo(Rt,Qt){for(var Zt=Rt.length;Zt--&&Or(Qt,Rt[Zt],0)>-1;);return Zt}function ms(Rt,Qt){for(var Zt=Rt.length,Ue=0;Zt--;)Rt[Zt]===Qt&&++Ue;return Ue}var bo=Ps(Ka),Jr=Ps(ha);function Ao(Rt){return"\\"+_o[Rt]}function Co(Rt,Qt){return Rt==null?o:Rt[Qt]}function Ir(Rt){return Ja.test(Rt)}function Po(Rt){return aa.test(Rt)}function Lo(Rt){for(var Qt,Zt=[];!(Qt=Rt.next()).done;)Zt.push(Qt.value);return Zt}function $n(Rt){var Qt=-1,Zt=Array(Rt.size);return Rt.forEach(function(Ue,ai){Zt[++Qt]=[ai,Ue]}),Zt}function rl(Rt,Qt){return function(Zt){return Rt(Qt(Zt))}}function Dr(Rt,Qt){for(var Zt=-1,Ue=Rt.length,ai=0,Bi=[];++Zt<Ue;){var fn=Rt[Zt];(fn===Qt||fn===C)&&(Rt[Zt]=C,Bi[ai++]=Zt)}return Bi}function Ro(Rt){var Qt=-1,Zt=Array(Rt.size);return Rt.forEach(function(Ue){Zt[++Qt]=Ue}),Zt}function Hn(Rt){var Qt=-1,Zt=Array(Rt.size);return Rt.forEach(function(Ue){Zt[++Qt]=[Ue,Ue]}),Zt}function Yl(Rt,Qt,Zt){for(var Ue=Zt-1,ai=Rt.length;++Ue<ai;)if(Rt[Ue]===Qt)return Ue;return-1}function Zl(Rt,Qt,Zt){for(var Ue=Zt+1;Ue--;)if(Rt[Ue]===Qt)return Ue;return Ue}function $r(Rt){return Ir(Rt)?_a(Rt):ps(Rt)}function ar(Rt){return Ir(Rt)?yr(Rt):Mu(Rt)}function va(Rt){for(var Qt=Rt.length;Qt--&&Ch.test(Rt.charAt(Qt)););return Qt}var Jl=Ps(Qa);function _a(Rt){for(var Qt=qs.lastIndex=0;qs.test(Rt);)++Qt;return Qt}function yr(Rt){return Rt.match(qs)||[]}function Uc(Rt){return Rt.match(Za)||[]}var Gc=function Rt(Qt){Qt=Qt==null?gn:to.defaults(gn.Object(),Qt,to.pick(gn,$a));var Zt=Qt.Array,Ue=Qt.Date,ai=Qt.Error,Bi=Qt.Function,fn=Qt.Math,Ee=Qt.Object,Kn=Qt.RegExp,ya=Qt.String,lr=Qt.TypeError,On=Zt.prototype,Eu=Bi.prototype,gs=Ee.prototype,eo=Qt["__core-js_shared__"],hr=Eu.toString,Ti=gs.hasOwnProperty,ur=0,zr=function(){var r=/[^.]+$/.exec(eo&&eo.keys&&eo.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),cr=gs.toString,vs=hr.call(Ee),Kr=gn._,Os=Kn("^"+hr.call(Ti).replace(Xa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fr=yo?Qt.Buffer:o,Qn=Qt.Symbol,tn=Qt.Uint8Array,sl=fr?fr.allocUnsafe:o,_s=rl(Ee.getPrototypeOf,Ee),ol=Ee.create,al=gs.propertyIsEnumerable,Oo=On.splice,xa=Qn?Qn.isConcatSpreadable:o,io=Qn?Qn.iterator:o,ys=Qn?Qn.toStringTag:o,Io=function(){try{var r=Sl(Ee,"defineProperty");return r({},"",{}),r}catch{}}(),$l=Qt.clearTimeout!==gn.clearTimeout&&Qt.clearTimeout,Kl=Ue&&Ue.now!==gn.Date.now&&Ue.now,Dh=Qt.setTimeout!==gn.setTimeout&&Qt.setTimeout,Is=fn.ceil,Do=fn.floor,ll=Ee.getOwnPropertySymbols,zh=fr?fr.isBuffer:o,Ql=Qt.isFinite,kh=On.join,bu=rl(Ee.keys,Ee),vn=fn.max,Vn=fn.min,hl=Ue.now,Bh=Qt.parseInt,th=fn.random,wa=On.reverse,ul=Sl(Qt,"DataView"),zo=Sl(Qt,"Map"),cl=Sl(Qt,"Promise"),ko=Sl(Qt,"Set"),En=Sl(Qt,"WeakMap"),Ta=Sl(Ee,"create"),fl=En&&new En,no={},eh=El(ul),Nh=El(zo),Fh=El(cl),Uh=El(ko),Au=El(En),pl=Qn?Qn.prototype:o,Bo=pl?pl.valueOf:o,Gh=pl?pl.toString:o;function et(r){if(Ln(r)&&!vi(r)&&!(r instanceof yi)){if(r instanceof qn)return r;if(Ti.call(r,"__wrapped__"))return td(r)}return new qn(r)}var ro=function(){function r(){}return function(h){if(!wn(h))return{};if(ol)return ol(h);r.prototype=h;var g=new r;return r.prototype=o,g}}();function Ma(){}function qn(r,h){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=o}et.templateSettings={escape:Fl,evaluate:Mn,interpolate:ea,variable:"",imports:{_:et}},et.prototype=Ma.prototype,et.prototype.constructor=et,qn.prototype=ro(Ma.prototype),qn.prototype.constructor=qn;function yi(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function Sa(){var r=new yi(this.__wrapped__);return r.__actions__=er(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=er(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=er(this.__views__),r}function Cu(){if(this.__filtered__){var r=new yi(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Ea(){var r=this.__wrapped__.value(),h=this.__dir__,g=vi(r),O=h<0,Y=g?r.length:0,ut=Ig(0,Y,this.__views__),_t=ut.start,bt=ut.end,Nt=bt-_t,se=O?bt:_t-1,le=this.__iteratees__,pe=le.length,ze=0,Je=Vn(Nt,this.__takeCount__);if(!g||!O&&Y==Nt&&Je==Nt)return ri(r,this.__actions__);var hi=[];t:for(;Nt--&&ze<Je;){se+=h;for(var Mi=-1,ui=r[se];++Mi<pe;){var Pi=le[Mi],Ni=Pi.iteratee,es=Pi.type,Sr=Ni(ui);if(es==Lt)ui=Sr;else if(!Sr){if(es==G)continue t;break t}}hi[ze++]=ui}return hi}yi.prototype=ro(Ma.prototype),yi.prototype.constructor=yi;function kr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function ba(){this.__data__=Ta?Ta(null):{},this.size=0}function Aa(r){var h=this.has(r)&&delete this.__data__[r];return this.size-=h?1:0,h}function dl(r){var h=this.__data__;if(Ta){var g=h[r];return g===T?o:g}return Ti.call(h,r)?h[r]:o}function ih(r){var h=this.__data__;return Ta?h[r]!==o:Ti.call(h,r)}function ml(r,h){var g=this.__data__;return this.size+=this.has(r)?0:1,g[r]=Ta&&h===o?T:h,this}kr.prototype.clear=ba,kr.prototype.delete=Aa,kr.prototype.get=dl,kr.prototype.has=ih,kr.prototype.set=ml;function pr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function gl(){this.__data__=[],this.size=0}function Ds(r){var h=this.__data__,g=yl(h,r);if(g<0)return!1;var O=h.length-1;return g==O?h.pop():Oo.call(h,g,1),--this.size,!0}function vl(r){var h=this.__data__,g=yl(h,r);return g<0?o:h[g][1]}function _l(r){return yl(this.__data__,r)>-1}function zs(r,h){var g=this.__data__,O=yl(g,r);return O<0?(++this.size,g.push([r,h])):g[O][1]=h,this}pr.prototype.clear=gl,pr.prototype.delete=Ds,pr.prototype.get=vl,pr.prototype.has=_l,pr.prototype.set=zs;function xr(r){var h=-1,g=r==null?0:r.length;for(this.clear();++h<g;){var O=r[h];this.set(O[0],O[1])}}function Pu(){this.size=0,this.__data__={hash:new kr,map:new(zo||pr),string:new kr}}function Lu(r){var h=Uu(this,r).delete(r);return this.size-=h?1:0,h}function Hh(r){return Uu(this,r).get(r)}function pi(r){return Uu(this,r).has(r)}function so(r,h){var g=Uu(this,r),O=g.size;return g.set(r,h),this.size+=g.size==O?0:1,this}xr.prototype.clear=Pu,xr.prototype.delete=Lu,xr.prototype.get=Hh,xr.prototype.has=pi,xr.prototype.set=so;function No(r){var h=-1,g=r==null?0:r.length;for(this.__data__=new xr;++h<g;)this.add(r[h])}function bi(r){return this.__data__.set(r,T),this}function Bn(r){return this.__data__.has(r)}No.prototype.add=No.prototype.push=bi,No.prototype.has=Bn;function Qr(r){var h=this.__data__=new pr(r);this.size=h.size}function qe(){this.__data__=new pr,this.size=0}function xs(r){var h=this.__data__,g=h.delete(r);return this.size=h.size,g}function Hc(r){return this.__data__.get(r)}function Vc(r){return this.__data__.has(r)}function Wc(r,h){var g=this.__data__;if(g instanceof pr){var O=g.__data__;if(!zo||O.length<d-1)return O.push([r,h]),this.size=++g.size,this;g=this.__data__=new xr(O)}return g.set(r,h),this.size=g.size,this}Qr.prototype.clear=qe,Qr.prototype.delete=xs,Qr.prototype.get=Hc,Qr.prototype.has=Vc,Qr.prototype.set=Wc;function Ru(r,h){var g=vi(r),O=!g&&bl(r),Y=!g&&!O&&Da(r),ut=!g&&!O&&!Y&&ch(r),_t=g||O||Y||ut,bt=_t?Ls(r.length,ya):[],Nt=bt.length;for(var se in r)(h||Ti.call(r,se))&&!(_t&&(se=="length"||Y&&(se=="offset"||se=="parent")||ut&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||Vo(se,Nt)))&&bt.push(se);return bt}function Vh(r){var h=r.length;return h?r[de(0,h-1)]:o}function jc(r,h){return Gu(er(r),oo(h,0,r.length))}function Ou(r){return Gu(er(r))}function nh(r,h,g){(g!==o&&!Fs(r[h],g)||g===o&&!(h in r))&&ks(r,h,g)}function Ca(r,h,g){var O=r[h];(!(Ti.call(r,h)&&Fs(O,g))||g===o&&!(h in r))&&ks(r,h,g)}function yl(r,h){for(var g=r.length;g--;)if(Fs(r[g][0],h))return g;return-1}function Iu(r,h,g,O){return _n(r,function(Y,ut,_t){h(O,Y,g(Y),_t)}),O}function Wh(r,h){return r&&In(h,Jn(h),r)}function jh(r,h){return r&&In(h,Ur(h),r)}function ks(r,h,g){h=="__proto__"&&Io?Io(r,h,{configurable:!0,enumerable:!0,value:g,writable:!0}):r[h]=g}function Xh(r,h){for(var g=-1,O=h.length,Y=Zt(O),ut=r==null;++g<O;)Y[g]=ut?o:lf(r,h[g]);return Y}function oo(r,h,g){return r===r&&(g!==o&&(r=r<=g?r:g),h!==o&&(r=r>=h?r:h)),r}function wr(r,h,g,O,Y,ut){var _t,bt=h&I,Nt=h&N,se=h&z;if(g&&(_t=Y?g(r,O,Y,ut):g(r)),_t!==o)return _t;if(!wn(r))return r;var le=vi(r);if(le){if(_t=zg(r),!bt)return er(r,_t)}else{var pe=mr(r),ze=pe==mn||pe==Qi;if(Da(r))return Bs(r,bt);if(pe==pt||pe==Yt||ze&&!Y){if(_t=Nt||ze?{}:jp(r),!bt)return Nt?Bu(r,jh(_t,r)):Ms(r,Wh(_t,r))}else{if(!xi[pe])return Y?r:{};_t=kg(r,pe,bt)}}ut||(ut=new Qr);var Je=ut.get(r);if(Je)return Je;ut.set(r,_t),xd(r)?r.forEach(function(ui){_t.add(wr(ui,h,g,ui,r,ut))}):_d(r)&&r.forEach(function(ui,Pi){_t.set(Pi,wr(ui,h,g,Pi,r,ut))});var hi=se?Nt?qc:Xc:Nt?Ur:Jn,Mi=le?o:hi(r);return Zi(Mi||r,function(ui,Pi){Mi&&(Pi=ui,ui=r[Pi]),Ca(_t,Pi,wr(ui,h,g,Pi,r,ut))}),_t}function Pa(r){var h=Jn(r);return function(g){return Du(g,r,h)}}function Du(r,h,g){var O=g.length;if(r==null)return!O;for(r=Ee(r);O--;){var Y=g[O],ut=h[Y],_t=r[Y];if(_t===o&&!(Y in r)||!ut(_t))return!1}return!0}function ws(r,h,g){if(typeof r!="function")throw new lr(m);return tu(function(){r.apply(o,g)},h)}function xl(r,h,g,O){var Y=-1,ut=el,_t=!0,bt=r.length,Nt=[],se=h.length;if(!bt)return Nt;g&&(h=qi(h,Gn(g))),O?(ut=Xl,_t=!1):h.length>=d&&(ut=ds,_t=!1,h=new No(h));t:for(;++Y<bt;){var le=r[Y],pe=g==null?le:g(le);if(le=O||le!==0?le:0,_t&&pe===pe){for(var ze=se;ze--;)if(h[ze]===pe)continue t;Nt.push(le)}else ut(h,pe,O)||Nt.push(le)}return Nt}var _n=ct(Nr),zu=ct(sh,!0);function Yn(r,h){var g=!0;return _n(r,function(O,Y,ut){return g=!!h(O,Y,ut),g}),g}function Ts(r,h,g){for(var O=-1,Y=r.length;++O<Y;){var ut=r[O],_t=h(ut);if(_t!=null&&(bt===o?_t===_t&&!ts(_t):g(_t,bt)))var bt=_t,Nt=ut}return Nt}function tr(r,h,g,O){var Y=r.length;for(g=wi(g),g<0&&(g=-g>Y?0:Y+g),O=O===o||O>Y?Y:wi(O),O<0&&(O+=Y),O=g>O?0:Td(O);g<O;)r[g++]=h;return r}function Br(r,h){var g=[];return _n(r,function(O,Y,ut){h(O,Y,ut)&&g.push(O)}),g}function bn(r,h,g,O,Y){var ut=-1,_t=r.length;for(g||(g=Ng),Y||(Y=[]);++ut<_t;){var bt=r[ut];h>0&&g(bt)?h>1?bn(bt,h-1,g,O,Y):fs(Y,bt):O||(Y[Y.length]=bt)}return Y}var wl=Tt(),rh=Tt(!0);function Nr(r,h){return r&&wl(r,h,Jn)}function sh(r,h){return r&&rh(r,h,Jn)}function Fo(r,h){return Rr(h,function(g){return Wo(r[g])})}function ao(r,h){h=Ze(h,r);for(var g=0,O=h.length;r!=null&&g<O;)r=r[ho(h[g++])];return g&&g==O?r:o}function ku(r,h,g){var O=h(r);return vi(r)?O:fs(O,g(r))}function Zn(r){return r==null?r===o?ot:Wt:ys&&ys in Ee(r)?Og(r):jg(r)}function oh(r,h){return r>h}function ah(r,h){return r!=null&&Ti.call(r,h)}function qh(r,h){return r!=null&&h in Ee(r)}function lh(r,h,g){return r>=Vn(h,g)&&r<vn(h,g)}function Tl(r,h,g){for(var O=g?Xl:el,Y=r[0].length,ut=r.length,_t=ut,bt=Zt(ut),Nt=1/0,se=[];_t--;){var le=r[_t];_t&&h&&(le=qi(le,Gn(h))),Nt=Vn(le.length,Nt),bt[_t]=!g&&(h||Y>=120&&le.length>=120)?new No(_t&&le):o}le=r[0];var pe=-1,ze=bt[0];t:for(;++pe<Y&&se.length<Nt;){var Je=le[pe],hi=h?h(Je):Je;if(Je=g||Je!==0?Je:0,!(ze?ds(ze,hi):O(se,hi,g))){for(_t=ut;--_t;){var Mi=bt[_t];if(!(Mi?ds(Mi,hi):O(r[_t],hi,g)))continue t}ze&&ze.push(hi),se.push(Je)}}return se}function t(r,h,g,O){return Nr(r,function(Y,ut,_t){h(O,g(Y),ut,_t)}),O}function e(r,h,g){h=Ze(h,r),r=Zp(r,h);var O=r==null?r:r[ho(Es(h))];return O==null?o:_r(O,r,g)}function i(r){return Ln(r)&&Zn(r)==Yt}function n(r){return Ln(r)&&Zn(r)==Gt}function s(r){return Ln(r)&&Zn(r)==Ge}function a(r,h,g,O,Y){return r===h?!0:r==null||h==null||!Ln(r)&&!Ln(h)?r!==r&&h!==h:c(r,h,g,O,a,Y)}function c(r,h,g,O,Y,ut){var _t=vi(r),bt=vi(h),Nt=_t?ti:mr(r),se=bt?ti:mr(h);Nt=Nt==Yt?pt:Nt,se=se==Yt?pt:se;var le=Nt==pt,pe=se==pt,ze=Nt==se;if(ze&&Da(r)){if(!Da(h))return!1;_t=!0,le=!1}if(ze&&!le)return ut||(ut=new Qr),_t||ch(r)?Hp(r,h,g,O,Y,ut):Lg(r,h,Nt,g,O,Y,ut);if(!(g&U)){var Je=le&&Ti.call(r,"__wrapped__"),hi=pe&&Ti.call(h,"__wrapped__");if(Je||hi){var Mi=Je?r.value():r,ui=hi?h.value():h;return ut||(ut=new Qr),Y(Mi,ui,g,O,ut)}}return ze?(ut||(ut=new Qr),Rg(r,h,g,O,Y,ut)):!1}function f(r){return Ln(r)&&mr(r)==W}function v(r,h,g,O){var Y=g.length,ut=Y,_t=!O;if(r==null)return!ut;for(r=Ee(r);Y--;){var bt=g[Y];if(_t&&bt[2]?bt[1]!==r[bt[0]]:!(bt[0]in r))return!1}for(;++Y<ut;){bt=g[Y];var Nt=bt[0],se=r[Nt],le=bt[1];if(_t&&bt[2]){if(se===o&&!(Nt in r))return!1}else{var pe=new Qr;if(O)var ze=O(se,le,Nt,r,h,pe);if(!(ze===o?a(le,se,U|E,O,pe):ze))return!1}}return!0}function y(r){if(!wn(r)||Ug(r))return!1;var h=Wo(r)?Os:go;return h.test(El(r))}function A(r){return Ln(r)&&Zn(r)==ie}function P(r){return Ln(r)&&mr(r)==Kt}function k(r){return Ln(r)&&qu(r.length)&&!!ji[Zn(r)]}function H(r){return typeof r=="function"?r:r==null?Gr:typeof r=="object"?vi(r)?At(r[0],r[1]):gt(r):Id(r)}function q(r){if(!Qh(r))return bu(r);var h=[];for(var g in Ee(r))Ti.call(r,g)&&g!="constructor"&&h.push(g);return h}function J(r){if(!wn(r))return Wg(r);var h=Qh(r),g=[];for(var O in r)O=="constructor"&&(h||!Ti.call(r,O))||g.push(O);return g}function rt(r,h){return r<h}function xt(r,h){var g=-1,O=Fr(r)?Zt(r.length):[];return _n(r,function(Y,ut,_t){O[++g]=h(Y,ut,_t)}),O}function gt(r){var h=Zc(r);return h.length==1&&h[0][2]?qp(h[0][0],h[0][1]):function(g){return g===r||v(g,r,h)}}function At(r,h){return $c(r)&&Xp(h)?qp(ho(r),h):function(g){var O=lf(g,r);return O===o&&O===h?hf(g,r):a(h,O,U|E)}}function wt(r,h,g,O,Y){r!==h&&wl(h,function(ut,_t){if(Y||(Y=new Qr),wn(ut))Vt(r,h,_t,g,wt,O,Y);else{var bt=O?O(Qc(r,_t),ut,_t+"",r,h,Y):o;bt===o&&(bt=ut),nh(r,_t,bt)}},Ur)}function Vt(r,h,g,O,Y,ut,_t){var bt=Qc(r,g),Nt=Qc(h,g),se=_t.get(Nt);if(se){nh(r,g,se);return}var le=ut?ut(bt,Nt,g+"",r,h,_t):o,pe=le===o;if(pe){var ze=vi(Nt),Je=!ze&&Da(Nt),hi=!ze&&!Je&&ch(Nt);le=Nt,ze||Je||hi?vi(bt)?le=bt:Dn(bt)?le=er(bt):Je?(pe=!1,le=Bs(Nt,!0)):hi?(pe=!1,le=Ml(Nt,!0)):le=[]:eu(Nt)||bl(Nt)?(le=bt,bl(bt)?le=Md(bt):(!wn(bt)||Wo(bt))&&(le=jp(Nt))):pe=!1}pe&&(_t.set(Nt,le),Y(le,Nt,O,ut,_t),_t.delete(Nt)),nh(r,g,le)}function Z(r,h){var g=r.length;if(g)return h+=h<0?g:0,Vo(h,g)?r[h]:o}function st(r,h,g){h.length?h=qi(h,function(ut){return vi(ut)?function(_t){return ao(_t,ut.length===1?ut[0]:ut)}:ut}):h=[Gr];var O=-1;h=qi(h,Gn(oi()));var Y=xt(r,function(ut,_t,bt){var Nt=qi(h,function(se){return se(ut)});return{criteria:Nt,index:++O,value:ut}});return Su(Y,function(ut,_t){return lo(ut,_t,g)})}function zt(r,h){return ee(r,h,function(g,O){return hf(r,O)})}function ee(r,h,g){for(var O=-1,Y=h.length,ut={};++O<Y;){var _t=h[O],bt=ao(r,_t);g(bt,_t)&&fi(ut,Ze(_t,r),bt)}return ut}function $t(r){return function(h){return ao(h,r)}}function qt(r,h,g,O){var Y=O?nl:Or,ut=-1,_t=h.length,bt=r;for(r===h&&(h=er(h)),g&&(bt=qi(r,Gn(g)));++ut<_t;)for(var Nt=0,se=h[ut],le=g?g(se):se;(Nt=Y(bt,le,Nt,O))>-1;)bt!==r&&Oo.call(bt,Nt,1),Oo.call(r,Nt,1);return r}function Te(r,h){for(var g=r?h.length:0,O=g-1;g--;){var Y=h[g];if(g==O||Y!==ut){var ut=Y;Vo(Y)?Oo.call(r,Y,1):Vi(r,Y)}}return r}function de(r,h){return r+Do(th()*(h-r+1))}function Ie(r,h,g,O){for(var Y=-1,ut=vn(Is((h-r)/(g||1)),0),_t=Zt(ut);ut--;)_t[O?ut:++Y]=r,r+=g;return _t}function be(r,h){var g="";if(!r||h<1||h>ce)return g;do h%2&&(g+=r),h=Do(h/2),h&&(r+=r);while(h);return g}function ae(r,h){return tf(Yp(r,h,Gr),r+"")}function We(r){return Vh(fh(r))}function Ke(r,h){var g=fh(r);return Gu(g,oo(h,0,g.length))}function fi(r,h,g,O){if(!wn(r))return r;h=Ze(h,r);for(var Y=-1,ut=h.length,_t=ut-1,bt=r;bt!=null&&++Y<ut;){var Nt=ho(h[Y]),se=g;if(Nt==="__proto__"||Nt==="constructor"||Nt==="prototype")return r;if(Y!=_t){var le=bt[Nt];se=O?O(le,Nt,bt):o,se===o&&(se=wn(le)?le:Vo(h[Y+1])?[]:{})}Ca(bt,Nt,se),bt=bt[Nt]}return r}var An=fl?function(r,h){return fl.set(r,h),r}:Gr,yn=Io?function(r,h){return Io(r,"toString",{configurable:!0,enumerable:!1,value:cf(h),writable:!0})}:Gr;function Xi(r){return Gu(fh(r))}function Hi(r,h,g){var O=-1,Y=r.length;h<0&&(h=-h>Y?0:Y+h),g=g>Y?Y:g,g<0&&(g+=Y),Y=h>g?0:g-h>>>0,h>>>=0;for(var ut=Zt(Y);++O<Y;)ut[O]=r[O+h];return ut}function sn(r,h){var g;return _n(r,function(O,Y,ut){return g=h(O,Y,ut),!g}),!!g}function Cn(r,h,g){var O=0,Y=r==null?O:r.length;if(typeof h=="number"&&h===h&&Y<=Be){for(;O<Y;){var ut=O+Y>>>1,_t=r[ut];_t!==null&&!ts(_t)&&(g?_t<=h:_t<h)?O=ut+1:Y=ut}return Y}return Ae(r,h,Gr,g)}function Ae(r,h,g,O){var Y=0,ut=r==null?0:r.length;if(ut===0)return 0;h=g(h);for(var _t=h!==h,bt=h===null,Nt=ts(h),se=h===o;Y<ut;){var le=Do((Y+ut)/2),pe=g(r[le]),ze=pe!==o,Je=pe===null,hi=pe===pe,Mi=ts(pe);if(_t)var ui=O||hi;else se?ui=hi&&(O||ze):bt?ui=hi&&ze&&(O||!Je):Nt?ui=hi&&ze&&!Je&&(O||!Mi):Je||Mi?ui=!1:ui=O?pe<=h:pe<h;ui?Y=le+1:ut=le}return Vn(ut,Bt)}function Qe(r,h){for(var g=-1,O=r.length,Y=0,ut=[];++g<O;){var _t=r[g],bt=h?h(_t):_t;if(!g||!Fs(bt,Nt)){var Nt=bt;ut[Y++]=_t===0?0:_t}}return ut}function Ut(r){return typeof r=="number"?r:ts(r)?Ft:+r}function Ye(r){if(typeof r=="string")return r;if(vi(r))return qi(r,Ye)+"";if(ts(r))return Gh?Gh.call(r):"";var h=r+"";return h=="0"&&1/r==-Pt?"-0":h}function ei(r,h,g){var O=-1,Y=el,ut=r.length,_t=!0,bt=[],Nt=bt;if(g)_t=!1,Y=Xl;else if(ut>=d){var se=h?null:Ia(r);if(se)return Ro(se);_t=!1,Y=ds,Nt=new No}else Nt=h?[]:bt;t:for(;++O<ut;){var le=r[O],pe=h?h(le):le;if(le=g||le!==0?le:0,_t&&pe===pe){for(var ze=Nt.length;ze--;)if(Nt[ze]===pe)continue t;h&&Nt.push(pe),bt.push(le)}else Y(Nt,pe,g)||(Nt!==bt&&Nt.push(pe),bt.push(le))}return bt}function Vi(r,h){return h=Ze(h,r),r=Zp(r,h),r==null||delete r[ho(Es(h))]}function Ce(r,h,g,O){return fi(r,h,g(ao(r,h)),O)}function Xe(r,h,g,O){for(var Y=r.length,ut=O?Y:-1;(O?ut--:++ut<Y)&&h(r[ut],ut,r););return g?Hi(r,O?0:ut,O?ut+1:Y):Hi(r,O?ut+1:0,O?Y:ut)}function ri(r,h){var g=r;return g instanceof yi&&(g=g.value()),ql(h,function(O,Y){return Y.func.apply(Y.thisArg,fs([O],Y.args))},g)}function Ci(r,h,g){var O=r.length;if(O<2)return O?ei(r[0]):[];for(var Y=-1,ut=Zt(O);++Y<O;)for(var _t=r[Y],bt=-1;++bt<O;)bt!=Y&&(ut[Y]=xl(ut[Y]||_t,r[bt],h,g));return ei(bn(ut,1),h,g)}function Ai(r,h,g){for(var O=-1,Y=r.length,ut=h.length,_t={};++O<Y;){var bt=O<ut?h[O]:o;g(_t,r[O],bt)}return _t}function ne(r){return Dn(r)?r:[]}function ii(r){return typeof r=="function"?r:Gr}function Ze(r,h){return vi(r)?r:$c(r,h)?[r]:Qp(Yi(r))}var li=ae;function xn(r,h,g){var O=r.length;return g=g===o?O:g,!h&&g>=O?r:Hi(r,h,g)}var Pn=$l||function(r){return gn.clearTimeout(r)};function Bs(r,h){if(h)return r.slice();var g=r.length,O=sl?sl(g):new r.constructor(g);return r.copy(O),O}function La(r){var h=new r.constructor(r.byteLength);return new tn(h).set(new tn(r)),h}function Yh(r,h){var g=h?La(r.buffer):r.buffer;return new r.constructor(g,r.byteOffset,r.byteLength)}function Ra(r){var h=new r.constructor(r.source,Gl.exec(r));return h.lastIndex=r.lastIndex,h}function Uo(r){return Bo?Ee(Bo.call(r)):{}}function Ml(r,h){var g=h?La(r.buffer):r.buffer;return new r.constructor(g,r.byteOffset,r.length)}function Go(r,h){if(r!==h){var g=r!==o,O=r===null,Y=r===r,ut=ts(r),_t=h!==o,bt=h===null,Nt=h===h,se=ts(h);if(!bt&&!se&&!ut&&r>h||ut&&_t&&Nt&&!bt&&!se||O&&_t&&Nt||!g&&Nt||!Y)return 1;if(!O&&!ut&&!se&&r<h||se&&g&&Y&&!O&&!ut||bt&&g&&Y||!_t&&Y||!Nt)return-1}return 0}function lo(r,h,g){for(var O=-1,Y=r.criteria,ut=h.criteria,_t=Y.length,bt=g.length;++O<_t;){var Nt=Go(Y[O],ut[O]);if(Nt){if(O>=bt)return Nt;var se=g[O];return Nt*(se=="desc"?-1:1)}}return r.index-h.index}function Zh(r,h,g,O){for(var Y=-1,ut=r.length,_t=g.length,bt=-1,Nt=h.length,se=vn(ut-_t,0),le=Zt(Nt+se),pe=!O;++bt<Nt;)le[bt]=h[bt];for(;++Y<_t;)(pe||Y<ut)&&(le[g[Y]]=r[Y]);for(;se--;)le[bt++]=r[Y++];return le}function Jh(r,h,g,O){for(var Y=-1,ut=r.length,_t=-1,bt=g.length,Nt=-1,se=h.length,le=vn(ut-bt,0),pe=Zt(le+se),ze=!O;++Y<le;)pe[Y]=r[Y];for(var Je=Y;++Nt<se;)pe[Je+Nt]=h[Nt];for(;++_t<bt;)(ze||Y<ut)&&(pe[Je+g[_t]]=r[Y++]);return pe}function er(r,h){var g=-1,O=r.length;for(h||(h=Zt(O));++g<O;)h[g]=r[g];return h}function In(r,h,g,O){var Y=!g;g||(g={});for(var ut=-1,_t=h.length;++ut<_t;){var bt=h[ut],Nt=O?O(g[bt],r[bt],bt,g,r):o;Nt===o&&(Nt=r[bt]),Y?ks(g,bt,Nt):Ca(g,bt,Nt)}return g}function Ms(r,h){return In(r,Jc(r),h)}function Bu(r,h){return In(r,Vp(r),h)}function Oa(r,h){return function(g,O){var Y=vi(g)?jl:Iu,ut=h?h():{};return Y(g,r,oi(O,2),ut)}}function Ns(r){return ae(function(h,g){var O=-1,Y=g.length,ut=Y>1?g[Y-1]:o,_t=Y>2?g[2]:o;for(ut=r.length>3&&typeof ut=="function"?(Y--,ut):o,_t&&Mr(g[0],g[1],_t)&&(ut=Y<3?o:ut,Y=1),h=Ee(h);++O<Y;){var bt=g[O];bt&&r(h,bt,O,ut)}return h})}function ct(r,h){return function(g,O){if(g==null)return g;if(!Fr(g))return r(g,O);for(var Y=g.length,ut=h?Y:-1,_t=Ee(g);(h?ut--:++ut<Y)&&O(_t[ut],ut,_t)!==!1;);return g}}function Tt(r){return function(h,g,O){for(var Y=-1,ut=Ee(h),_t=O(h),bt=_t.length;bt--;){var Nt=_t[r?bt:++Y];if(g(ut[Nt],Nt,ut)===!1)break}return h}}function mt(r,h,g){var O=h&L,Y=Ve(r);function ut(){var _t=this&&this!==gn&&this instanceof ut?Y:r;return _t.apply(O?g:this,arguments)}return ut}function Me(r){return function(h){h=Yi(h);var g=Ir(h)?ar(h):o,O=g?g[0]:h.charAt(0),Y=g?xn(g,1).join(""):h.slice(1);return O[r]()+Y}}function De(r){return function(h){return ql(Rd(Ld(h).replace(oa,"")),r,"")}}function Ve(r){return function(){var h=arguments;switch(h.length){case 0:return new r;case 1:return new r(h[0]);case 2:return new r(h[0],h[1]);case 3:return new r(h[0],h[1],h[2]);case 4:return new r(h[0],h[1],h[2],h[3]);case 5:return new r(h[0],h[1],h[2],h[3],h[4]);case 6:return new r(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new r(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var g=ro(r.prototype),O=r.apply(g,h);return wn(O)?O:g}}function Se(r,h,g){var O=Ve(r);function Y(){for(var ut=arguments.length,_t=Zt(ut),bt=ut,Nt=uh(Y);bt--;)_t[bt]=arguments[bt];var se=ut<3&&_t[0]!==Nt&&_t[ut-1]!==Nt?[]:Dr(_t,Nt);if(ut-=se.length,ut<g)return Kh(r,h,Ji,Y.placeholder,o,_t,se,o,o,g-ut);var le=this&&this!==gn&&this instanceof Y?O:r;return _r(le,this,_t)}return Y}function $e(r){return function(h,g,O){var Y=Ee(h);if(!Fr(h)){var ut=oi(g,3);h=Jn(h),g=function(bt){return ut(Y[bt],bt,Y)}}var _t=r(h,g,O);return _t>-1?Y[ut?h[_t]:_t]:o}}function Li(r){return Ho(function(h){var g=h.length,O=g,Y=qn.prototype.thru;for(r&&h.reverse();O--;){var ut=h[O];if(typeof ut!="function")throw new lr(m);if(Y&&!_t&&Fu(ut)=="wrapper")var _t=new qn([],!0)}for(O=_t?O:g;++O<g;){ut=h[O];var bt=Fu(ut),Nt=bt=="wrapper"?Yc(ut):o;Nt&&Kc(Nt[0])&&Nt[1]==(X|R|F|$)&&!Nt[4].length&&Nt[9]==1?_t=_t[Fu(Nt[0])].apply(_t,Nt[3]):_t=ut.length==1&&Kc(ut)?_t[bt]():_t.thru(ut)}return function(){var se=arguments,le=se[0];if(_t&&se.length==1&&vi(le))return _t.plant(le).value();for(var pe=0,ze=g?h[pe].apply(this,se):le;++pe<g;)ze=h[pe].call(this,ze);return ze}})}function Ji(r,h,g,O,Y,ut,_t,bt,Nt,se){var le=h&X,pe=h&L,ze=h&x,Je=h&(R|b),hi=h&Q,Mi=ze?o:Ve(r);function ui(){for(var Pi=arguments.length,Ni=Zt(Pi),es=Pi;es--;)Ni[es]=arguments[es];if(Je)var Sr=uh(ui),is=ms(Ni,Sr);if(O&&(Ni=Zh(Ni,O,Y,Je)),ut&&(Ni=Jh(Ni,ut,_t,Je)),Pi-=is,Je&&Pi<se){var zn=Dr(Ni,Sr);return Kh(r,h,Ji,ui.placeholder,g,Ni,zn,bt,Nt,se-Pi)}var Us=pe?g:this,Xo=ze?Us[r]:r;return Pi=Ni.length,bt?Ni=Xg(Ni,bt):hi&&Pi>1&&Ni.reverse(),le&&Nt<Pi&&(Ni.length=Nt),this&&this!==gn&&this instanceof ui&&(Xo=Mi||Ve(Xo)),Xo.apply(Us,Ni)}return ui}function ve(r,h){return function(g,O){return t(g,r,h(O),{})}}function Tr(r,h){return function(g,O){var Y;if(g===o&&O===o)return h;if(g!==o&&(Y=g),O!==o){if(Y===o)return O;typeof g=="string"||typeof O=="string"?(g=Ye(g),O=Ye(O)):(g=Ut(g),O=Ut(O)),Y=r(g,O)}return Y}}function Nn(r){return Ho(function(h){return h=qi(h,Gn(oi())),ae(function(g){var O=this;return r(h,function(Y){return _r(Y,O,g)})})})}function an(r,h){h=h===o?" ":Ye(h);var g=h.length;if(g<2)return g?be(h,r):h;var O=be(h,Is(r/$r(h)));return Ir(h)?xn(ar(O),0,r).join(""):O.slice(0,r)}function dr(r,h,g,O){var Y=h&L,ut=Ve(r);function _t(){for(var bt=-1,Nt=arguments.length,se=-1,le=O.length,pe=Zt(le+Nt),ze=this&&this!==gn&&this instanceof _t?ut:r;++se<le;)pe[se]=O[se];for(;Nt--;)pe[se++]=arguments[++bt];return _r(ze,Y?g:this,pe)}return _t}function $h(r){return function(h,g,O){return O&&typeof O!="number"&&Mr(h,g,O)&&(g=O=o),h=jo(h),g===o?(g=h,h=0):g=jo(g),O=O===o?h<g?1:-1:jo(O),Ie(h,g,O,r)}}function Ss(r){return function(h,g){return typeof h=="string"&&typeof g=="string"||(h=bs(h),g=bs(g)),r(h,g)}}function Kh(r,h,g,O,Y,ut,_t,bt,Nt,se){var le=h&R,pe=le?_t:o,ze=le?o:_t,Je=le?ut:o,hi=le?o:ut;h|=le?F:B,h&=~(le?B:F),h&M||(h&=~(L|x));var Mi=[r,h,Y,Je,pe,hi,ze,bt,Nt,se],ui=g.apply(o,Mi);return Kc(r)&&Jp(ui,Mi),ui.placeholder=O,$p(ui,r,h)}function hh(r){var h=fn[r];return function(g,O){if(g=bs(g),O=O==null?0:Vn(wi(O),292),O&&Ql(g)){var Y=(Yi(g)+"e").split("e"),ut=h(Y[0]+"e"+(+Y[1]+O));return Y=(Yi(ut)+"e").split("e"),+(Y[0]+"e"+(+Y[1]-O))}return h(g)}}var Ia=ko&&1/Ro(new ko([,-0]))[1]==Pt?function(r){return new ko(r)}:df;function Nu(r){return function(h){var g=mr(h);return g==W?$n(h):g==Kt?Hn(h):Rs(h,r(h))}}function ir(r,h,g,O,Y,ut,_t,bt){var Nt=h&x;if(!Nt&&typeof r!="function")throw new lr(m);var se=O?O.length:0;if(se||(h&=~(F|B),O=Y=o),_t=_t===o?_t:vn(wi(_t),0),bt=bt===o?bt:wi(bt),se-=Y?Y.length:0,h&B){var le=O,pe=Y;O=Y=o}var ze=Nt?o:Yc(r),Je=[r,h,g,O,Y,le,pe,ut,_t,bt];if(ze&&Vg(Je,ze),r=Je[0],h=Je[1],g=Je[2],O=Je[3],Y=Je[4],bt=Je[9]=Je[9]===o?Nt?0:r.length:vn(Je[9]-se,0),!bt&&h&(R|b)&&(h&=~(R|b)),!h||h==L)var hi=mt(r,h,g);else h==R||h==b?hi=Se(r,h,bt):(h==F||h==(L|F))&&!Y.length?hi=dr(r,h,g,O):hi=Ji.apply(o,Je);var Mi=ze?An:Jp;return $p(Mi(hi,Je),r,h)}function Up(r,h,g,O){return r===o||Fs(r,gs[g])&&!Ti.call(O,g)?h:r}function Gp(r,h,g,O,Y,ut){return wn(r)&&wn(h)&&(ut.set(h,r),wt(r,h,o,Gp,ut),ut.delete(h)),r}function Pg(r){return eu(r)?o:r}function Hp(r,h,g,O,Y,ut){var _t=g&U,bt=r.length,Nt=h.length;if(bt!=Nt&&!(_t&&Nt>bt))return!1;var se=ut.get(r),le=ut.get(h);if(se&&le)return se==h&&le==r;var pe=-1,ze=!0,Je=g&E?new No:o;for(ut.set(r,h),ut.set(h,r);++pe<bt;){var hi=r[pe],Mi=h[pe];if(O)var ui=_t?O(Mi,hi,pe,h,r,ut):O(hi,Mi,pe,r,h,ut);if(ui!==o){if(ui)continue;ze=!1;break}if(Je){if(!Cs(h,function(Pi,Ni){if(!ds(Je,Ni)&&(hi===Pi||Y(hi,Pi,g,O,ut)))return Je.push(Ni)})){ze=!1;break}}else if(!(hi===Mi||Y(hi,Mi,g,O,ut))){ze=!1;break}}return ut.delete(r),ut.delete(h),ze}function Lg(r,h,g,O,Y,ut,_t){switch(g){case Xt:if(r.byteLength!=h.byteLength||r.byteOffset!=h.byteOffset)return!1;r=r.buffer,h=h.buffer;case Gt:return!(r.byteLength!=h.byteLength||!ut(new tn(r),new tn(h)));case Oe:case Ge:case Jt:return Fs(+r,+h);case Oi:return r.name==h.name&&r.message==h.message;case ie:case D:return r==h+"";case W:var bt=$n;case Kt:var Nt=O&U;if(bt||(bt=Ro),r.size!=h.size&&!Nt)return!1;var se=_t.get(r);if(se)return se==h;O|=E,_t.set(r,h);var le=Hp(bt(r),bt(h),O,Y,ut,_t);return _t.delete(r),le;case K:if(Bo)return Bo.call(r)==Bo.call(h)}return!1}function Rg(r,h,g,O,Y,ut){var _t=g&U,bt=Xc(r),Nt=bt.length,se=Xc(h),le=se.length;if(Nt!=le&&!_t)return!1;for(var pe=Nt;pe--;){var ze=bt[pe];if(!(_t?ze in h:Ti.call(h,ze)))return!1}var Je=ut.get(r),hi=ut.get(h);if(Je&&hi)return Je==h&&hi==r;var Mi=!0;ut.set(r,h),ut.set(h,r);for(var ui=_t;++pe<Nt;){ze=bt[pe];var Pi=r[ze],Ni=h[ze];if(O)var es=_t?O(Ni,Pi,ze,h,r,ut):O(Pi,Ni,ze,r,h,ut);if(!(es===o?Pi===Ni||Y(Pi,Ni,g,O,ut):es)){Mi=!1;break}ui||(ui=ze=="constructor")}if(Mi&&!ui){var Sr=r.constructor,is=h.constructor;Sr!=is&&"constructor"in r&&"constructor"in h&&!(typeof Sr=="function"&&Sr instanceof Sr&&typeof is=="function"&&is instanceof is)&&(Mi=!1)}return ut.delete(r),ut.delete(h),Mi}function Ho(r){return tf(Yp(r,o,nd),r+"")}function Xc(r){return ku(r,Jn,Jc)}function qc(r){return ku(r,Ur,Vp)}var Yc=fl?function(r){return fl.get(r)}:df;function Fu(r){for(var h=r.name+"",g=no[h],O=Ti.call(no,h)?g.length:0;O--;){var Y=g[O],ut=Y.func;if(ut==null||ut==r)return Y.name}return h}function uh(r){var h=Ti.call(et,"placeholder")?et:r;return h.placeholder}function oi(){var r=et.iteratee||ff;return r=r===ff?H:r,arguments.length?r(arguments[0],arguments[1]):r}function Uu(r,h){var g=r.__data__;return Fg(h)?g[typeof h=="string"?"string":"hash"]:g.map}function Zc(r){for(var h=Jn(r),g=h.length;g--;){var O=h[g],Y=r[O];h[g]=[O,Y,Xp(Y)]}return h}function Sl(r,h){var g=Co(r,h);return y(g)?g:o}function Og(r){var h=Ti.call(r,ys),g=r[ys];try{r[ys]=o;var O=!0}catch{}var Y=cr.call(r);return O&&(h?r[ys]=g:delete r[ys]),Y}var Jc=ll?function(r){return r==null?[]:(r=Ee(r),Rr(ll(r),function(h){return al.call(r,h)}))}:mf,Vp=ll?function(r){for(var h=[];r;)fs(h,Jc(r)),r=_s(r);return h}:mf,mr=Zn;(ul&&mr(new ul(new ArrayBuffer(1)))!=Xt||zo&&mr(new zo)!=W||cl&&mr(cl.resolve())!=dt||ko&&mr(new ko)!=Kt||En&&mr(new En)!=nt)&&(mr=function(r){var h=Zn(r),g=h==pt?r.constructor:o,O=g?El(g):"";if(O)switch(O){case eh:return Xt;case Nh:return W;case Fh:return dt;case Uh:return Kt;case Au:return nt}return h});function Ig(r,h,g){for(var O=-1,Y=g.length;++O<Y;){var ut=g[O],_t=ut.size;switch(ut.type){case"drop":r+=_t;break;case"dropRight":h-=_t;break;case"take":h=Vn(h,r+_t);break;case"takeRight":r=vn(r,h-_t);break}}return{start:r,end:h}}function Dg(r){var h=r.match(qa);return h?h[1].split(hs):[]}function Wp(r,h,g){h=Ze(h,r);for(var O=-1,Y=h.length,ut=!1;++O<Y;){var _t=ho(h[O]);if(!(ut=r!=null&&g(r,_t)))break;r=r[_t]}return ut||++O!=Y?ut:(Y=r==null?0:r.length,!!Y&&qu(Y)&&Vo(_t,Y)&&(vi(r)||bl(r)))}function zg(r){var h=r.length,g=new r.constructor(h);return h&&typeof r[0]=="string"&&Ti.call(r,"index")&&(g.index=r.index,g.input=r.input),g}function jp(r){return typeof r.constructor=="function"&&!Qh(r)?ro(_s(r)):{}}function kg(r,h,g){var O=r.constructor;switch(h){case Gt:return La(r);case Oe:case Ge:return new O(+r);case Xt:return Yh(r,g);case jt:case Ne:case Re:case ge:case we:case _i:case Si:case ni:case Ei:return Ml(r,g);case W:return new O;case Jt:case D:return new O(r);case ie:return Ra(r);case Kt:return new O;case K:return Uo(r)}}function Bg(r,h){var g=h.length;if(!g)return r;var O=g-1;return h[O]=(g>1?"& ":"")+h[O],h=h.join(g>2?", ":" "),r.replace(na,`{
|
|
2617
|
+
/* [wrapped with `+h+`] */
|
|
2618
|
+
`)}function Ng(r){return vi(r)||bl(r)||!!(xa&&r&&r[xa])}function Vo(r,h){var g=typeof r;return h=h??ce,!!h&&(g=="number"||g!="symbol"&&Hl.test(r))&&r>-1&&r%1==0&&r<h}function Mr(r,h,g){if(!wn(g))return!1;var O=typeof h;return(O=="number"?Fr(g)&&Vo(h,g.length):O=="string"&&h in g)?Fs(g[h],r):!1}function $c(r,h){if(vi(r))return!1;var g=typeof r;return g=="number"||g=="symbol"||g=="boolean"||r==null||ts(r)?!0:vr.test(r)||!mo.test(r)||h!=null&&r in Ee(h)}function Fg(r){var h=typeof r;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?r!=="__proto__":r===null}function Kc(r){var h=Fu(r),g=et[h];if(typeof g!="function"||!(h in yi.prototype))return!1;if(r===g)return!0;var O=Yc(g);return!!O&&r===O[0]}function Ug(r){return!!zr&&zr in r}var Gg=eo?Wo:gf;function Qh(r){var h=r&&r.constructor,g=typeof h=="function"&&h.prototype||gs;return r===g}function Xp(r){return r===r&&!wn(r)}function qp(r,h){return function(g){return g==null?!1:g[r]===h&&(h!==o||r in Ee(g))}}function Hg(r){var h=ju(r,function(O){return g.size===S&&g.clear(),O}),g=h.cache;return h}function Vg(r,h){var g=r[1],O=h[1],Y=g|O,ut=Y<(L|x|X),_t=O==X&&g==R||O==X&&g==$&&r[7].length<=h[8]||O==(X|$)&&h[7].length<=h[8]&&g==R;if(!(ut||_t))return r;O&L&&(r[2]=h[2],Y|=g&L?0:M);var bt=h[3];if(bt){var Nt=r[3];r[3]=Nt?Zh(Nt,bt,h[4]):bt,r[4]=Nt?Dr(r[3],C):h[4]}return bt=h[5],bt&&(Nt=r[5],r[5]=Nt?Jh(Nt,bt,h[6]):bt,r[6]=Nt?Dr(r[5],C):h[6]),bt=h[7],bt&&(r[7]=bt),O&X&&(r[8]=r[8]==null?h[8]:Vn(r[8],h[8])),r[9]==null&&(r[9]=h[9]),r[0]=h[0],r[1]=Y,r}function Wg(r){var h=[];if(r!=null)for(var g in Ee(r))h.push(g);return h}function jg(r){return cr.call(r)}function Yp(r,h,g){return h=vn(h===o?r.length-1:h,0),function(){for(var O=arguments,Y=-1,ut=vn(O.length-h,0),_t=Zt(ut);++Y<ut;)_t[Y]=O[h+Y];Y=-1;for(var bt=Zt(h+1);++Y<h;)bt[Y]=O[Y];return bt[h]=g(_t),_r(r,this,bt)}}function Zp(r,h){return h.length<2?r:ao(r,Hi(h,0,-1))}function Xg(r,h){for(var g=r.length,O=Vn(h.length,g),Y=er(r);O--;){var ut=h[O];r[O]=Vo(ut,g)?Y[ut]:o}return r}function Qc(r,h){if(!(h==="constructor"&&typeof r[h]=="function")&&h!="__proto__")return r[h]}var Jp=Kp(An),tu=Dh||function(r,h){return gn.setTimeout(r,h)},tf=Kp(yn);function $p(r,h,g){var O=h+"";return tf(r,Bg(O,qg(Dg(O),g)))}function Kp(r){var h=0,g=0;return function(){var O=hl(),Y=yt-(O-g);if(g=O,Y>0){if(++h>=it)return arguments[0]}else h=0;return r.apply(o,arguments)}}function Gu(r,h){var g=-1,O=r.length,Y=O-1;for(h=h===o?O:h;++g<h;){var ut=de(g,Y),_t=r[ut];r[ut]=r[g],r[g]=_t}return r.length=h,r}var Qp=Hg(function(r){var h=[];return r.charCodeAt(0)===46&&h.push(""),r.replace(ia,function(g,O,Y,ut){h.push(Y?ut.replace(sa,"$1"):O||g)}),h});function ho(r){if(typeof r=="string"||ts(r))return r;var h=r+"";return h=="0"&&1/r==-Pt?"-0":h}function El(r){if(r!=null){try{return hr.call(r)}catch{}try{return r+""}catch{}}return""}function qg(r,h){return Zi(me,function(g){var O="_."+g[0];h&g[1]&&!el(r,O)&&r.push(O)}),r.sort()}function td(r){if(r instanceof yi)return r.clone();var h=new qn(r.__wrapped__,r.__chain__);return h.__actions__=er(r.__actions__),h.__index__=r.__index__,h.__values__=r.__values__,h}function Yg(r,h,g){(g?Mr(r,h,g):h===o)?h=1:h=vn(wi(h),0);var O=r==null?0:r.length;if(!O||h<1)return[];for(var Y=0,ut=0,_t=Zt(Is(O/h));Y<O;)_t[ut++]=Hi(r,Y,Y+=h);return _t}function Zg(r){for(var h=-1,g=r==null?0:r.length,O=0,Y=[];++h<g;){var ut=r[h];ut&&(Y[O++]=ut)}return Y}function Jg(){var r=arguments.length;if(!r)return[];for(var h=Zt(r-1),g=arguments[0],O=r;O--;)h[O-1]=arguments[O];return fs(vi(g)?er(g):[g],bn(h,1))}var $g=ae(function(r,h){return Dn(r)?xl(r,bn(h,1,Dn,!0)):[]}),Kg=ae(function(r,h){var g=Es(h);return Dn(g)&&(g=o),Dn(r)?xl(r,bn(h,1,Dn,!0),oi(g,2)):[]}),Qg=ae(function(r,h){var g=Es(h);return Dn(g)&&(g=o),Dn(r)?xl(r,bn(h,1,Dn,!0),o,g):[]});function t0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),Hi(r,h<0?0:h,O)):[]}function e0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),h=O-h,Hi(r,0,h<0?0:h)):[]}function i0(r,h){return r&&r.length?Xe(r,oi(h,3),!0,!0):[]}function n0(r,h){return r&&r.length?Xe(r,oi(h,3),!0):[]}function r0(r,h,g,O){var Y=r==null?0:r.length;return Y?(g&&typeof g!="number"&&Mr(r,h,g)&&(g=0,O=Y),tr(r,h,g,O)):[]}function ed(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=g==null?0:wi(g);return Y<0&&(Y=vn(O+Y,0)),Zs(r,oi(h,3),Y)}function id(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=O-1;return g!==o&&(Y=wi(g),Y=g<0?vn(O+Y,0):Vn(Y,O-1)),Zs(r,oi(h,3),Y,!0)}function nd(r){var h=r==null?0:r.length;return h?bn(r,1):[]}function s0(r){var h=r==null?0:r.length;return h?bn(r,Pt):[]}function o0(r,h){var g=r==null?0:r.length;return g?(h=h===o?1:wi(h),bn(r,h)):[]}function a0(r){for(var h=-1,g=r==null?0:r.length,O={};++h<g;){var Y=r[h];O[Y[0]]=Y[1]}return O}function rd(r){return r&&r.length?r[0]:o}function l0(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=g==null?0:wi(g);return Y<0&&(Y=vn(O+Y,0)),Or(r,h,Y)}function h0(r){var h=r==null?0:r.length;return h?Hi(r,0,-1):[]}var u0=ae(function(r){var h=qi(r,ne);return h.length&&h[0]===r[0]?Tl(h):[]}),c0=ae(function(r){var h=Es(r),g=qi(r,ne);return h===Es(g)?h=o:g.pop(),g.length&&g[0]===r[0]?Tl(g,oi(h,2)):[]}),f0=ae(function(r){var h=Es(r),g=qi(r,ne);return h=typeof h=="function"?h:o,h&&g.pop(),g.length&&g[0]===r[0]?Tl(g,o,h):[]});function p0(r,h){return r==null?"":kh.call(r,h)}function Es(r){var h=r==null?0:r.length;return h?r[h-1]:o}function d0(r,h,g){var O=r==null?0:r.length;if(!O)return-1;var Y=O;return g!==o&&(Y=wi(g),Y=Y<0?vn(O+Y,0):Vn(Y,O-1)),h===h?Zl(r,h,Y):Zs(r,Mo,Y,!0)}function m0(r,h){return r&&r.length?Z(r,wi(h)):o}var g0=ae(sd);function sd(r,h){return r&&r.length&&h&&h.length?qt(r,h):r}function v0(r,h,g){return r&&r.length&&h&&h.length?qt(r,h,oi(g,2)):r}function _0(r,h,g){return r&&r.length&&h&&h.length?qt(r,h,o,g):r}var y0=Ho(function(r,h){var g=r==null?0:r.length,O=Xh(r,h);return Te(r,qi(h,function(Y){return Vo(Y,g)?+Y:Y}).sort(Go)),O});function x0(r,h){var g=[];if(!(r&&r.length))return g;var O=-1,Y=[],ut=r.length;for(h=oi(h,3);++O<ut;){var _t=r[O];h(_t,O,r)&&(g.push(_t),Y.push(O))}return Te(r,Y),g}function ef(r){return r==null?r:wa.call(r)}function w0(r,h,g){var O=r==null?0:r.length;return O?(g&&typeof g!="number"&&Mr(r,h,g)?(h=0,g=O):(h=h==null?0:wi(h),g=g===o?O:wi(g)),Hi(r,h,g)):[]}function T0(r,h){return Cn(r,h)}function M0(r,h,g){return Ae(r,h,oi(g,2))}function S0(r,h){var g=r==null?0:r.length;if(g){var O=Cn(r,h);if(O<g&&Fs(r[O],h))return O}return-1}function E0(r,h){return Cn(r,h,!0)}function b0(r,h,g){return Ae(r,h,oi(g,2),!0)}function A0(r,h){var g=r==null?0:r.length;if(g){var O=Cn(r,h,!0)-1;if(Fs(r[O],h))return O}return-1}function C0(r){return r&&r.length?Qe(r):[]}function P0(r,h){return r&&r.length?Qe(r,oi(h,2)):[]}function L0(r){var h=r==null?0:r.length;return h?Hi(r,1,h):[]}function R0(r,h,g){return r&&r.length?(h=g||h===o?1:wi(h),Hi(r,0,h<0?0:h)):[]}function O0(r,h,g){var O=r==null?0:r.length;return O?(h=g||h===o?1:wi(h),h=O-h,Hi(r,h<0?0:h,O)):[]}function I0(r,h){return r&&r.length?Xe(r,oi(h,3),!1,!0):[]}function D0(r,h){return r&&r.length?Xe(r,oi(h,3)):[]}var z0=ae(function(r){return ei(bn(r,1,Dn,!0))}),k0=ae(function(r){var h=Es(r);return Dn(h)&&(h=o),ei(bn(r,1,Dn,!0),oi(h,2))}),B0=ae(function(r){var h=Es(r);return h=typeof h=="function"?h:o,ei(bn(r,1,Dn,!0),o,h)});function N0(r){return r&&r.length?ei(r):[]}function F0(r,h){return r&&r.length?ei(r,oi(h,2)):[]}function U0(r,h){return h=typeof h=="function"?h:o,r&&r.length?ei(r,o,h):[]}function nf(r){if(!(r&&r.length))return[];var h=0;return r=Rr(r,function(g){if(Dn(g))return h=vn(g.length,h),!0}),Ls(h,function(g){return qi(r,Js(g))})}function od(r,h){if(!(r&&r.length))return[];var g=nf(r);return h==null?g:qi(g,function(O){return _r(h,o,O)})}var G0=ae(function(r,h){return Dn(r)?xl(r,h):[]}),H0=ae(function(r){return Ci(Rr(r,Dn))}),V0=ae(function(r){var h=Es(r);return Dn(h)&&(h=o),Ci(Rr(r,Dn),oi(h,2))}),W0=ae(function(r){var h=Es(r);return h=typeof h=="function"?h:o,Ci(Rr(r,Dn),o,h)}),j0=ae(nf);function X0(r,h){return Ai(r||[],h||[],Ca)}function q0(r,h){return Ai(r||[],h||[],fi)}var Y0=ae(function(r){var h=r.length,g=h>1?r[h-1]:o;return g=typeof g=="function"?(r.pop(),g):o,od(r,g)});function ad(r){var h=et(r);return h.__chain__=!0,h}function Z0(r,h){return h(r),r}function Hu(r,h){return h(r)}var J0=Ho(function(r){var h=r.length,g=h?r[0]:0,O=this.__wrapped__,Y=function(ut){return Xh(ut,r)};return h>1||this.__actions__.length||!(O instanceof yi)||!Vo(g)?this.thru(Y):(O=O.slice(g,+g+(h?1:0)),O.__actions__.push({func:Hu,args:[Y],thisArg:o}),new qn(O,this.__chain__).thru(function(ut){return h&&!ut.length&&ut.push(o),ut}))});function $0(){return ad(this)}function K0(){return new qn(this.value(),this.__chain__)}function Q0(){this.__values__===o&&(this.__values__=wd(this.value()));var r=this.__index__>=this.__values__.length,h=r?o:this.__values__[this.__index__++];return{done:r,value:h}}function tv(){return this}function ev(r){for(var h,g=this;g instanceof Ma;){var O=td(g);O.__index__=0,O.__values__=o,h?Y.__wrapped__=O:h=O;var Y=O;g=g.__wrapped__}return Y.__wrapped__=r,h}function iv(){var r=this.__wrapped__;if(r instanceof yi){var h=r;return this.__actions__.length&&(h=new yi(this)),h=h.reverse(),h.__actions__.push({func:Hu,args:[ef],thisArg:o}),new qn(h,this.__chain__)}return this.thru(ef)}function nv(){return ri(this.__wrapped__,this.__actions__)}var rv=Oa(function(r,h,g){Ti.call(r,g)?++r[g]:ks(r,g,1)});function sv(r,h,g){var O=vi(r)?Ih:Yn;return g&&Mr(r,h,g)&&(h=o),O(r,oi(h,3))}function ov(r,h){var g=vi(r)?Rr:Br;return g(r,oi(h,3))}var av=$e(ed),lv=$e(id);function hv(r,h){return bn(Vu(r,h),1)}function uv(r,h){return bn(Vu(r,h),Pt)}function cv(r,h,g){return g=g===o?1:wi(g),bn(Vu(r,h),g)}function ld(r,h){var g=vi(r)?Zi:_n;return g(r,oi(h,3))}function hd(r,h){var g=vi(r)?wo:zu;return g(r,oi(h,3))}var fv=Oa(function(r,h,g){Ti.call(r,g)?r[g].push(h):ks(r,g,[h])});function pv(r,h,g,O){r=Fr(r)?r:fh(r),g=g&&!O?wi(g):0;var Y=r.length;return g<0&&(g=vn(Y+g,0)),Yu(r)?g<=Y&&r.indexOf(h,g)>-1:!!Y&&Or(r,h,g)>-1}var dv=ae(function(r,h,g){var O=-1,Y=typeof h=="function",ut=Fr(r)?Zt(r.length):[];return _n(r,function(_t){ut[++O]=Y?_r(h,_t,g):e(_t,h,g)}),ut}),mv=Oa(function(r,h,g){ks(r,g,h)});function Vu(r,h){var g=vi(r)?qi:xt;return g(r,oi(h,3))}function gv(r,h,g,O){return r==null?[]:(vi(h)||(h=h==null?[]:[h]),g=O?o:g,vi(g)||(g=g==null?[]:[g]),st(r,h,g))}var vv=Oa(function(r,h,g){r[g?0:1].push(h)},function(){return[[],[]]});function _v(r,h,g){var O=vi(r)?ql:$s,Y=arguments.length<3;return O(r,oi(h,4),g,Y,_n)}function yv(r,h,g){var O=vi(r)?Tu:$s,Y=arguments.length<3;return O(r,oi(h,4),g,Y,zu)}function xv(r,h){var g=vi(r)?Rr:Br;return g(r,Xu(oi(h,3)))}function wv(r){var h=vi(r)?Vh:We;return h(r)}function Tv(r,h,g){(g?Mr(r,h,g):h===o)?h=1:h=wi(h);var O=vi(r)?jc:Ke;return O(r,h)}function Mv(r){var h=vi(r)?Ou:Xi;return h(r)}function Sv(r){if(r==null)return 0;if(Fr(r))return Yu(r)?$r(r):r.length;var h=mr(r);return h==W||h==Kt?r.size:q(r).length}function Ev(r,h,g){var O=vi(r)?Cs:sn;return g&&Mr(r,h,g)&&(h=o),O(r,oi(h,3))}var bv=ae(function(r,h){if(r==null)return[];var g=h.length;return g>1&&Mr(r,h[0],h[1])?h=[]:g>2&&Mr(h[0],h[1],h[2])&&(h=[h[0]]),st(r,bn(h,1),[])}),Wu=Kl||function(){return gn.Date.now()};function Av(r,h){if(typeof h!="function")throw new lr(m);return r=wi(r),function(){if(--r<1)return h.apply(this,arguments)}}function ud(r,h,g){return h=g?o:h,h=r&&h==null?r.length:h,ir(r,X,o,o,o,o,h)}function cd(r,h){var g;if(typeof h!="function")throw new lr(m);return r=wi(r),function(){return--r>0&&(g=h.apply(this,arguments)),r<=1&&(h=o),g}}var rf=ae(function(r,h,g){var O=L;if(g.length){var Y=Dr(g,uh(rf));O|=F}return ir(r,O,h,g,Y)}),fd=ae(function(r,h,g){var O=L|x;if(g.length){var Y=Dr(g,uh(fd));O|=F}return ir(h,O,r,g,Y)});function pd(r,h,g){h=g?o:h;var O=ir(r,R,o,o,o,o,o,h);return O.placeholder=pd.placeholder,O}function dd(r,h,g){h=g?o:h;var O=ir(r,b,o,o,o,o,o,h);return O.placeholder=dd.placeholder,O}function md(r,h,g){var O,Y,ut,_t,bt,Nt,se=0,le=!1,pe=!1,ze=!0;if(typeof r!="function")throw new lr(m);h=bs(h)||0,wn(g)&&(le=!!g.leading,pe="maxWait"in g,ut=pe?vn(bs(g.maxWait)||0,h):ut,ze="trailing"in g?!!g.trailing:ze);function Je(zn){var Us=O,Xo=Y;return O=Y=o,se=zn,_t=r.apply(Xo,Us),_t}function hi(zn){return se=zn,bt=tu(Pi,h),le?Je(zn):_t}function Mi(zn){var Us=zn-Nt,Xo=zn-se,Dd=h-Us;return pe?Vn(Dd,ut-Xo):Dd}function ui(zn){var Us=zn-Nt,Xo=zn-se;return Nt===o||Us>=h||Us<0||pe&&Xo>=ut}function Pi(){var zn=Wu();if(ui(zn))return Ni(zn);bt=tu(Pi,Mi(zn))}function Ni(zn){return bt=o,ze&&O?Je(zn):(O=Y=o,_t)}function es(){bt!==o&&Pn(bt),se=0,O=Nt=Y=bt=o}function Sr(){return bt===o?_t:Ni(Wu())}function is(){var zn=Wu(),Us=ui(zn);if(O=arguments,Y=this,Nt=zn,Us){if(bt===o)return hi(Nt);if(pe)return Pn(bt),bt=tu(Pi,h),Je(Nt)}return bt===o&&(bt=tu(Pi,h)),_t}return is.cancel=es,is.flush=Sr,is}var Cv=ae(function(r,h){return ws(r,1,h)}),Pv=ae(function(r,h,g){return ws(r,bs(h)||0,g)});function Lv(r){return ir(r,Q)}function ju(r,h){if(typeof r!="function"||h!=null&&typeof h!="function")throw new lr(m);var g=function(){var O=arguments,Y=h?h.apply(this,O):O[0],ut=g.cache;if(ut.has(Y))return ut.get(Y);var _t=r.apply(this,O);return g.cache=ut.set(Y,_t)||ut,_t};return g.cache=new(ju.Cache||xr),g}ju.Cache=xr;function Xu(r){if(typeof r!="function")throw new lr(m);return function(){var h=arguments;switch(h.length){case 0:return!r.call(this);case 1:return!r.call(this,h[0]);case 2:return!r.call(this,h[0],h[1]);case 3:return!r.call(this,h[0],h[1],h[2])}return!r.apply(this,h)}}function Rv(r){return cd(2,r)}var Ov=li(function(r,h){h=h.length==1&&vi(h[0])?qi(h[0],Gn(oi())):qi(bn(h,1),Gn(oi()));var g=h.length;return ae(function(O){for(var Y=-1,ut=Vn(O.length,g);++Y<ut;)O[Y]=h[Y].call(this,O[Y]);return _r(r,this,O)})}),sf=ae(function(r,h){var g=Dr(h,uh(sf));return ir(r,F,o,h,g)}),gd=ae(function(r,h){var g=Dr(h,uh(gd));return ir(r,B,o,h,g)}),Iv=Ho(function(r,h){return ir(r,$,o,o,o,h)});function Dv(r,h){if(typeof r!="function")throw new lr(m);return h=h===o?h:wi(h),ae(r,h)}function zv(r,h){if(typeof r!="function")throw new lr(m);return h=h==null?0:vn(wi(h),0),ae(function(g){var O=g[h],Y=xn(g,0,h);return O&&fs(Y,O),_r(r,this,Y)})}function kv(r,h,g){var O=!0,Y=!0;if(typeof r!="function")throw new lr(m);return wn(g)&&(O="leading"in g?!!g.leading:O,Y="trailing"in g?!!g.trailing:Y),md(r,h,{leading:O,maxWait:h,trailing:Y})}function Bv(r){return ud(r,1)}function Nv(r,h){return sf(ii(h),r)}function Fv(){if(!arguments.length)return[];var r=arguments[0];return vi(r)?r:[r]}function Uv(r){return wr(r,z)}function Gv(r,h){return h=typeof h=="function"?h:o,wr(r,z,h)}function Hv(r){return wr(r,I|z)}function Vv(r,h){return h=typeof h=="function"?h:o,wr(r,I|z,h)}function Wv(r,h){return h==null||Du(r,h,Jn(h))}function Fs(r,h){return r===h||r!==r&&h!==h}var jv=Ss(oh),Xv=Ss(function(r,h){return r>=h}),bl=i(function(){return arguments}())?i:function(r){return Ln(r)&&Ti.call(r,"callee")&&!al.call(r,"callee")},vi=Zt.isArray,qv=Oh?Gn(Oh):n;function Fr(r){return r!=null&&qu(r.length)&&!Wo(r)}function Dn(r){return Ln(r)&&Fr(r)}function Yv(r){return r===!0||r===!1||Ln(r)&&Zn(r)==Oe}var Da=zh||gf,Zv=pa?Gn(pa):s;function Jv(r){return Ln(r)&&r.nodeType===1&&!eu(r)}function $v(r){if(r==null)return!0;if(Fr(r)&&(vi(r)||typeof r=="string"||typeof r.splice=="function"||Da(r)||ch(r)||bl(r)))return!r.length;var h=mr(r);if(h==W||h==Kt)return!r.size;if(Qh(r))return!q(r).length;for(var g in r)if(Ti.call(r,g))return!1;return!0}function Kv(r,h){return a(r,h)}function Qv(r,h,g){g=typeof g=="function"?g:o;var O=g?g(r,h):o;return O===o?a(r,h,o,g):!!O}function of(r){if(!Ln(r))return!1;var h=Zn(r);return h==Oi||h==di||typeof r.message=="string"&&typeof r.name=="string"&&!eu(r)}function t_(r){return typeof r=="number"&&Ql(r)}function Wo(r){if(!wn(r))return!1;var h=Zn(r);return h==mn||h==Qi||h==Fi||h==Dt}function vd(r){return typeof r=="number"&&r==wi(r)}function qu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ce}function wn(r){var h=typeof r;return r!=null&&(h=="object"||h=="function")}function Ln(r){return r!=null&&typeof r=="object"}var _d=da?Gn(da):f;function e_(r,h){return r===h||v(r,h,Zc(h))}function i_(r,h,g){return g=typeof g=="function"?g:o,v(r,h,Zc(h),g)}function n_(r){return yd(r)&&r!=+r}function r_(r){if(Gg(r))throw new ai(u);return y(r)}function s_(r){return r===null}function o_(r){return r==null}function yd(r){return typeof r=="number"||Ln(r)&&Zn(r)==Jt}function eu(r){if(!Ln(r)||Zn(r)!=pt)return!1;var h=_s(r);if(h===null)return!0;var g=Ti.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&hr.call(g)==vs}var af=xu?Gn(xu):A;function a_(r){return vd(r)&&r>=-ce&&r<=ce}var xd=wu?Gn(wu):P;function Yu(r){return typeof r=="string"||!vi(r)&&Ln(r)&&Zn(r)==D}function ts(r){return typeof r=="symbol"||Ln(r)&&Zn(r)==K}var ch=Wl?Gn(Wl):k;function l_(r){return r===o}function h_(r){return Ln(r)&&mr(r)==nt}function u_(r){return Ln(r)&&Zn(r)==vt}var c_=Ss(rt),f_=Ss(function(r,h){return r<=h});function wd(r){if(!r)return[];if(Fr(r))return Yu(r)?ar(r):er(r);if(io&&r[io])return Lo(r[io]());var h=mr(r),g=h==W?$n:h==Kt?Ro:fh;return g(r)}function jo(r){if(!r)return r===0?r:0;if(r=bs(r),r===Pt||r===-Pt){var h=r<0?-1:1;return h*re}return r===r?r:0}function wi(r){var h=jo(r),g=h%1;return h===h?g?h-g:h:0}function Td(r){return r?oo(wi(r),0,It):0}function bs(r){if(typeof r=="number")return r;if(ts(r))return Ft;if(wn(r)){var h=typeof r.valueOf=="function"?r.valueOf():r;r=wn(h)?h+"":h}if(typeof r!="string")return r===0?r:+r;r=ga(r);var g=Lh.test(r);return g||vo.test(r)?ua(r.slice(2),g?2:8):Ph.test(r)?Ft:+r}function Md(r){return In(r,Ur(r))}function p_(r){return r?oo(wi(r),-ce,ce):r===0?r:0}function Yi(r){return r==null?"":Ye(r)}var d_=Ns(function(r,h){if(Qh(h)||Fr(h)){In(h,Jn(h),r);return}for(var g in h)Ti.call(h,g)&&Ca(r,g,h[g])}),Sd=Ns(function(r,h){In(h,Ur(h),r)}),Zu=Ns(function(r,h,g,O){In(h,Ur(h),r,O)}),m_=Ns(function(r,h,g,O){In(h,Jn(h),r,O)}),g_=Ho(Xh);function v_(r,h){var g=ro(r);return h==null?g:Wh(g,h)}var __=ae(function(r,h){r=Ee(r);var g=-1,O=h.length,Y=O>2?h[2]:o;for(Y&&Mr(h[0],h[1],Y)&&(O=1);++g<O;)for(var ut=h[g],_t=Ur(ut),bt=-1,Nt=_t.length;++bt<Nt;){var se=_t[bt],le=r[se];(le===o||Fs(le,gs[se])&&!Ti.call(r,se))&&(r[se]=ut[se])}return r}),y_=ae(function(r){return r.push(o,Gp),_r(Ed,o,r)});function x_(r,h){return To(r,oi(h,3),Nr)}function w_(r,h){return To(r,oi(h,3),sh)}function T_(r,h){return r==null?r:wl(r,oi(h,3),Ur)}function M_(r,h){return r==null?r:rh(r,oi(h,3),Ur)}function S_(r,h){return r&&Nr(r,oi(h,3))}function E_(r,h){return r&&sh(r,oi(h,3))}function b_(r){return r==null?[]:Fo(r,Jn(r))}function A_(r){return r==null?[]:Fo(r,Ur(r))}function lf(r,h,g){var O=r==null?o:ao(r,h);return O===o?g:O}function C_(r,h){return r!=null&&Wp(r,h,ah)}function hf(r,h){return r!=null&&Wp(r,h,qh)}var P_=ve(function(r,h,g){h!=null&&typeof h.toString!="function"&&(h=cr.call(h)),r[h]=g},cf(Gr)),L_=ve(function(r,h,g){h!=null&&typeof h.toString!="function"&&(h=cr.call(h)),Ti.call(r,h)?r[h].push(g):r[h]=[g]},oi),R_=ae(e);function Jn(r){return Fr(r)?Ru(r):q(r)}function Ur(r){return Fr(r)?Ru(r,!0):J(r)}function O_(r,h){var g={};return h=oi(h,3),Nr(r,function(O,Y,ut){ks(g,h(O,Y,ut),O)}),g}function I_(r,h){var g={};return h=oi(h,3),Nr(r,function(O,Y,ut){ks(g,Y,h(O,Y,ut))}),g}var D_=Ns(function(r,h,g){wt(r,h,g)}),Ed=Ns(function(r,h,g,O){wt(r,h,g,O)}),z_=Ho(function(r,h){var g={};if(r==null)return g;var O=!1;h=qi(h,function(ut){return ut=Ze(ut,r),O||(O=ut.length>1),ut}),In(r,qc(r),g),O&&(g=wr(g,I|N|z,Pg));for(var Y=h.length;Y--;)Vi(g,h[Y]);return g});function k_(r,h){return bd(r,Xu(oi(h)))}var B_=Ho(function(r,h){return r==null?{}:zt(r,h)});function bd(r,h){if(r==null)return{};var g=qi(qc(r),function(O){return[O]});return h=oi(h),ee(r,g,function(O,Y){return h(O,Y[0])})}function N_(r,h,g){h=Ze(h,r);var O=-1,Y=h.length;for(Y||(Y=1,r=o);++O<Y;){var ut=r==null?o:r[ho(h[O])];ut===o&&(O=Y,ut=g),r=Wo(ut)?ut.call(r):ut}return r}function F_(r,h,g){return r==null?r:fi(r,h,g)}function U_(r,h,g,O){return O=typeof O=="function"?O:o,r==null?r:fi(r,h,g,O)}var Ad=Nu(Jn),Cd=Nu(Ur);function G_(r,h,g){var O=vi(r),Y=O||Da(r)||ch(r);if(h=oi(h,4),g==null){var ut=r&&r.constructor;Y?g=O?new ut:[]:wn(r)?g=Wo(ut)?ro(_s(r)):{}:g={}}return(Y?Zi:Nr)(r,function(_t,bt,Nt){return h(g,_t,bt,Nt)}),g}function H_(r,h){return r==null?!0:Vi(r,h)}function V_(r,h,g){return r==null?r:Ce(r,h,ii(g))}function W_(r,h,g,O){return O=typeof O=="function"?O:o,r==null?r:Ce(r,h,ii(g),O)}function fh(r){return r==null?[]:So(r,Jn(r))}function j_(r){return r==null?[]:So(r,Ur(r))}function X_(r,h,g){return g===o&&(g=h,h=o),g!==o&&(g=bs(g),g=g===g?g:0),h!==o&&(h=bs(h),h=h===h?h:0),oo(bs(r),h,g)}function q_(r,h,g){return h=jo(h),g===o?(g=h,h=0):g=jo(g),r=bs(r),lh(r,h,g)}function Y_(r,h,g){if(g&&typeof g!="boolean"&&Mr(r,h,g)&&(h=g=o),g===o&&(typeof h=="boolean"?(g=h,h=o):typeof r=="boolean"&&(g=r,r=o)),r===o&&h===o?(r=0,h=1):(r=jo(r),h===o?(h=r,r=0):h=jo(h)),r>h){var O=r;r=h,h=O}if(g||r%1||h%1){var Y=th();return Vn(r+Y*(h-r+tl("1e-"+((Y+"").length-1))),h)}return de(r,h)}var Z_=De(function(r,h,g){return h=h.toLowerCase(),r+(g?Pd(h):h)});function Pd(r){return uf(Yi(r).toLowerCase())}function Ld(r){return r=Yi(r),r&&r.replace(Vl,bo).replace(Rh,"")}function J_(r,h,g){r=Yi(r),h=Ye(h);var O=r.length;g=g===o?O:oo(wi(g),0,O);var Y=g;return g-=h.length,g>=0&&r.slice(g,Y)==h}function $_(r){return r=Yi(r),r&&as.test(r)?r.replace(Ii,Jr):r}function K_(r){return r=Yi(r),r&&Ul.test(r)?r.replace(Xa,"\\$&"):r}var Q_=De(function(r,h,g){return r+(g?"-":"")+h.toLowerCase()}),ty=De(function(r,h,g){return r+(g?" ":"")+h.toLowerCase()}),ey=Me("toLowerCase");function iy(r,h,g){r=Yi(r),h=wi(h);var O=h?$r(r):0;if(!h||O>=h)return r;var Y=(h-O)/2;return an(Do(Y),g)+r+an(Is(Y),g)}function ny(r,h,g){r=Yi(r),h=wi(h);var O=h?$r(r):0;return h&&O<h?r+an(h-O,g):r}function ry(r,h,g){r=Yi(r),h=wi(h);var O=h?$r(r):0;return h&&O<h?an(h-O,g)+r:r}function sy(r,h,g){return g||h==null?h=0:h&&(h=+h),Bh(Yi(r).replace(ls,""),h||0)}function oy(r,h,g){return(g?Mr(r,h,g):h===o)?h=1:h=wi(h),be(Yi(r),h)}function ay(){var r=arguments,h=Yi(r[0]);return r.length<3?h:h.replace(r[1],r[2])}var ly=De(function(r,h,g){return r+(g?"_":"")+h.toLowerCase()});function hy(r,h,g){return g&&typeof g!="number"&&Mr(r,h,g)&&(h=g=o),g=g===o?It:g>>>0,g?(r=Yi(r),r&&(typeof h=="string"||h!=null&&!af(h))&&(h=Ye(h),!h&&Ir(r))?xn(ar(r),0,g):r.split(h,g)):[]}var uy=De(function(r,h,g){return r+(g?" ":"")+uf(h)});function cy(r,h,g){return r=Yi(r),g=g==null?0:oo(wi(g),0,r.length),h=Ye(h),r.slice(g,g+h.length)==h}function fy(r,h,g){var O=et.templateSettings;g&&Mr(r,h,g)&&(h=o),r=Yi(r),h=Zu({},h,O,Up);var Y=Zu({},h.imports,O.imports,Up),ut=Jn(Y),_t=So(Y,ut),bt,Nt,se=0,le=h.interpolate||Yr,pe="__p += '",ze=Kn((h.escape||Yr).source+"|"+le.source+"|"+(le===ea?us:Yr).source+"|"+(h.evaluate||Yr).source+"|$","g"),Je="//# sourceURL="+(Ti.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++la+"]")+`
|
|
2619
|
+
`;r.replace(ze,function(ui,Pi,Ni,es,Sr,is){return Ni||(Ni=es),pe+=r.slice(se,is).replace(V,Ao),Pi&&(bt=!0,pe+=`' +
|
|
2620
2620
|
__e(`+Pi+`) +
|
|
2621
|
-
'`),
|
|
2622
|
-
`+
|
|
2623
|
-
__p += '`),Ni&&(
|
|
2621
|
+
'`),Sr&&(Nt=!0,pe+=`';
|
|
2622
|
+
`+Sr+`;
|
|
2623
|
+
__p += '`),Ni&&(pe+=`' +
|
|
2624
2624
|
((__t = (`+Ni+`)) == null ? '' : __t) +
|
|
2625
|
-
'`),
|
|
2626
|
-
`;var hi=Ti.call(
|
|
2627
|
-
`+
|
|
2625
|
+
'`),se=is+ui.length,ui}),pe+=`';
|
|
2626
|
+
`;var hi=Ti.call(h,"variable")&&h.variable;if(!hi)pe=`with (obj) {
|
|
2627
|
+
`+pe+`
|
|
2628
2628
|
}
|
|
2629
|
-
`;else if(
|
|
2629
|
+
`;else if(ra.test(hi))throw new ai(_);pe=(Nt?pe.replace(qr,""):pe).replace(or,"$1").replace(on,"$1;"),pe="function("+(hi||"obj")+`) {
|
|
2630
2630
|
`+(hi?"":`obj || (obj = {});
|
|
2631
|
-
`)+"var __t, __p = ''"+(
|
|
2631
|
+
`)+"var __t, __p = ''"+(bt?", __e = _.escape":"")+(Nt?`, __j = Array.prototype.join;
|
|
2632
2632
|
function print() { __p += __j.call(arguments, '') }
|
|
2633
2633
|
`:`;
|
|
2634
|
-
`)+
|
|
2635
|
-
}`;var Mi=Fu(function(){return Bi(at,Je+"return "+fe).apply(p,yt)});if(Mi.source=fe,Ph(Mi))throw Mi;return Mi}function am(r){return qi(r).toLowerCase()}function lm(r){return qi(r).toUpperCase()}function hm(r,a,u){if(r=qi(r),r&&(u||a===p))return Ss(r);if(!r||!(a=Ye(a)))return r;var _=qn(r),k=qn(a),at=xo(_,k),yt=Go(_,k)+1;return dn(_,at,yt).join("")}function um(r,a,u){if(r=qi(r),r&&(u||a===p))return r.slice(0,Es(r)+1);if(!r||!(a=Ye(a)))return r;var _=qn(r),k=Go(_,qn(a))+1;return dn(_,0,k).join("")}function cm(r,a,u){if(r=qi(r),r&&(u||a===p))return r.replace(Or,"");if(!r||!(a=Ye(a)))return r;var _=qn(r),k=xo(_,qn(a));return dn(_,k).join("")}function fm(r,a){var u=gt,_=zt;if(mn(a)){var k="separator"in a?a.separator:k;u="length"in a?wi(a.length):u,_="omission"in a?Ye(a.omission):_}r=qi(r);var at=r.length;if(pr(r)){var yt=qn(r);at=yt.length}if(u>=at)return r;var St=u-br(_);if(St<1)return _;var Nt=yt?dn(yt,0,St).join(""):r.slice(0,St);if(k===p)return Nt+_;if(yt&&(St+=Nt.length-St),Lh(k)){if(r.slice(St).search(k)){var re,ae=Nt;for(k.global||(k=Gn(k.source,qi(Aa.exec(k))+"g")),k.lastIndex=0;re=k.exec(ae);)var fe=re.index;Nt=Nt.slice(0,fe===p?St:fe)}}else if(r.indexOf(Ye(k),St)!=St){var ze=Nt.lastIndexOf(k);ze>-1&&(Nt=Nt.slice(0,ze))}return Nt+_}function pm(r){return r=qi(r),r&&fo.test(r)?r.replace(Kr,Ba):r}var dm=De(function(r,a,u){return r+(u?" ":"")+a.toUpperCase()}),Oh=Me("toUpperCase");function Uu(r,a,u){return r=qi(r),a=u?p:a,a===p?Wo(r)?uh(r):Qs(r):r.match(a)||[]}var Fu=se(function(r,a){try{return nr(r,p,a)}catch(u){return Ph(u)?u:new ai(u)}}),mm=rs(function(r,a){return Yi(a,function(u){u=Lo(u),ao(r,u,Ah(r[u],r))}),r});function gm(r){var a=r==null?0:r.length,u=si();return r=a?Xi(r,function(_){if(typeof _[1]!="function")throw new Yn(C);return[u(_[0]),_[1]]}):[],se(function(_){for(var k=-1;++k<a;){var at=r[k];if(nr(at[0],this,_))return nr(at[1],this,_)}})}function vm(r){return Ns(sr(r,H))}function Dh(r){return function(){return r}}function ym(r,a){return r==null||r!==r?a:r}var _m=Li(),xm=Li(!0);function wr(r){return r}function zh(r){return P(typeof r=="function"?r:sr(r,H))}function wm(r){return mt(sr(r,H))}function Tm(r,a){return bt(r,sr(a,H))}var Mm=se(function(r,a){return function(u){return e(u,r,a)}}),Sm=se(function(r,a){return function(u){return e(r,u,a)}});function Bh(r,a,u){var _=Un(a),k=es(a,_);u==null&&!(mn(a)&&(k.length||!_.length))&&(u=a,a=r,r=this,k=es(a,Un(a)));var at=!(mn(u)&&"chain"in u)||!!u.chain,yt=ss(r);return Yi(k,function(St){var Nt=a[St];r[St]=Nt,yt&&(r.prototype[St]=function(){var re=this.__chain__;if(at||re){var ae=r(this.__wrapped__),fe=ae.__actions__=jn(this.__actions__);return fe.push({func:Nt,args:arguments,thisArg:r}),ae.__chain__=re,ae}return Nt.apply(r,Nr([this.value()],arguments))})}),r}function Em(){return un._===this&&(un._=Ar),this}function Nh(){}function bm(r){return r=wi(r),se(function(a){return V(a,r)})}var Am=Pn(Xi),Cm=Pn(ol),Pm=Pn(Qr);function Gu(r){return wh(r)?vo(Lo(r)):$t(r)}function Lm(r){return function(a){return r==null?p:Co(r,a)}}var Rm=Ml(),Im=Ml(!0);function kh(){return[]}function Uh(){return!1}function Om(){return{}}function Dm(){return""}function zm(){return!0}function Bm(r,a){if(r=wi(r),r<1||r>ge)return[];var u=Dt,_=Dn(r,Dt);a=si(a),r-=Dt;for(var k=eo(_,a);++u<r;)a(u);return k}function Nm(r){return vi(r)?Xi(r,Lo):Pr(r)?[r]:jn(au(qi(r)))}function km(r){var a=++Jn;return qi(r)+a}var Um=ar(function(r,a){return r+a},0),Fm=Za("ceil"),Gm=ar(function(r,a){return r/a},1),Hm=Za("floor");function Vm(r){return r&&r.length?qr(r,wr,Xa):p}function jm(r,a){return r&&r.length?qr(r,si(a,2),Xa):p}function Wm(r){return Ms(r,wr)}function Xm(r,a){return Ms(r,si(a,2))}function qm(r){return r&&r.length?qr(r,wr,et):p}function Ym(r,a){return r&&r.length?qr(r,si(a,2),et):p}var Zm=ar(function(r,a){return r*a},1),Jm=Za("round"),$m=ar(function(r,a){return r-a},0);function Km(r){return r&&r.length?_o(r,wr):0}function Qm(r,a){return r&&r.length?_o(r,si(a,2)):0}return Q.after=wp,Q.ary=yu,Q.assign=ld,Q.assignIn=Iu,Q.assignInWith=ah,Q.assignWith=hd,Q.at=ud,Q.before=_u,Q.bind=Ah,Q.bindAll=mm,Q.bindKey=xu,Q.castArray=Op,Q.chain=mu,Q.chunk=Gc,Q.compact=Hc,Q.concat=Vc,Q.cond=gm,Q.conforms=vm,Q.constant=Dh,Q.countBy=Kf,Q.create=cd,Q.curry=wu,Q.curryRight=Tu,Q.debounce=Mu,Q.defaults=fd,Q.defaultsDeep=pd,Q.defer=Tp,Q.delay=Mp,Q.difference=jc,Q.differenceBy=Wc,Q.differenceWith=Xc,Q.drop=qc,Q.dropRight=Yc,Q.dropRightWhile=Zc,Q.dropWhile=Jc,Q.fill=$c,Q.filter=tp,Q.flatMap=np,Q.flatMapDeep=rp,Q.flatMapDepth=op,Q.flatten=cu,Q.flattenDeep=Kc,Q.flattenDepth=Qc,Q.flip=Sp,Q.flow=_m,Q.flowRight=xm,Q.fromPairs=tf,Q.functions=xd,Q.functionsIn=wd,Q.groupBy=sp,Q.initial=nf,Q.intersection=rf,Q.intersectionBy=of,Q.intersectionWith=sf,Q.invert=Md,Q.invertBy=Sd,Q.invokeMap=lp,Q.iteratee=zh,Q.keyBy=hp,Q.keys=Un,Q.keysIn=xr,Q.map=eh,Q.mapKeys=bd,Q.mapValues=Ad,Q.matches=wm,Q.matchesProperty=Tm,Q.memoize=nh,Q.merge=Cd,Q.mergeWith=Ou,Q.method=Mm,Q.methodOf=Sm,Q.mixin=Bh,Q.negate=rh,Q.nthArg=bm,Q.omit=Pd,Q.omitBy=Ld,Q.once=Ep,Q.orderBy=up,Q.over=Am,Q.overArgs=bp,Q.overEvery=Cm,Q.overSome=Pm,Q.partial=Ch,Q.partialRight=Su,Q.partition=cp,Q.pick=Rd,Q.pickBy=Du,Q.property=Gu,Q.propertyOf=Lm,Q.pull=uf,Q.pullAll=pu,Q.pullAllBy=cf,Q.pullAllWith=ff,Q.pullAt=pf,Q.range=Rm,Q.rangeRight=Im,Q.rearg=Ap,Q.reject=dp,Q.remove=df,Q.rest=Cp,Q.reverse=Eh,Q.sampleSize=gp,Q.set=Od,Q.setWith=Dd,Q.shuffle=vp,Q.slice=mf,Q.sortBy=xp,Q.sortedUniq=Tf,Q.sortedUniqBy=Mf,Q.split=nm,Q.spread=Pp,Q.tail=Sf,Q.take=Ef,Q.takeRight=bf,Q.takeRightWhile=Af,Q.takeWhile=Cf,Q.tap=Vf,Q.throttle=Lp,Q.thru=th,Q.toArray=Pu,Q.toPairs=zu,Q.toPairsIn=Bu,Q.toPath=Nm,Q.toPlainObject=Ru,Q.transform=zd,Q.unary=Rp,Q.union=Pf,Q.unionBy=Lf,Q.unionWith=Rf,Q.uniq=If,Q.uniqBy=Of,Q.uniqWith=Df,Q.unset=Bd,Q.unzip=bh,Q.unzipWith=du,Q.update=Nd,Q.updateWith=kd,Q.values=Ka,Q.valuesIn=Ud,Q.without=zf,Q.words=Uu,Q.wrap=Ip,Q.xor=Bf,Q.xorBy=Nf,Q.xorWith=kf,Q.zip=Uf,Q.zipObject=Ff,Q.zipObjectDeep=Gf,Q.zipWith=Hf,Q.entries=zu,Q.entriesIn=Bu,Q.extend=Iu,Q.extendWith=ah,Bh(Q,Q),Q.add=Um,Q.attempt=Fu,Q.camelCase=Vd,Q.capitalize=Nu,Q.ceil=Fm,Q.clamp=Fd,Q.clone=Dp,Q.cloneDeep=Bp,Q.cloneDeepWith=Np,Q.cloneWith=zp,Q.conformsTo=kp,Q.deburr=ku,Q.defaultTo=ym,Q.divide=Gm,Q.endsWith=jd,Q.eq=uo,Q.escape=Wd,Q.escapeRegExp=Xd,Q.every=Qf,Q.find=ep,Q.findIndex=hu,Q.findKey=dd,Q.findLast=ip,Q.findLastIndex=uu,Q.findLastKey=md,Q.floor=Hm,Q.forEach=gu,Q.forEachRight=vu,Q.forIn=gd,Q.forInRight=vd,Q.forOwn=yd,Q.forOwnRight=_d,Q.get=Rh,Q.gt=Up,Q.gte=Fp,Q.has=Td,Q.hasIn=Ih,Q.head=fu,Q.identity=wr,Q.includes=ap,Q.indexOf=ef,Q.inRange=Gd,Q.invoke=Ed,Q.isArguments=Ma,Q.isArray=vi,Q.isArrayBuffer=Gp,Q.isArrayLike=_r,Q.isArrayLikeObject=bn,Q.isBoolean=Hp,Q.isBuffer=Hs,Q.isDate=Vp,Q.isElement=jp,Q.isEmpty=Wp,Q.isEqual=Xp,Q.isEqualWith=qp,Q.isError=Ph,Q.isFinite=Yp,Q.isFunction=ss,Q.isInteger=Eu,Q.isLength=oh,Q.isMap=bu,Q.isMatch=Zp,Q.isMatchWith=Jp,Q.isNaN=$p,Q.isNative=Kp,Q.isNil=td,Q.isNull=Qp,Q.isNumber=Au,Q.isObject=mn,Q.isObjectLike=Mn,Q.isPlainObject=Al,Q.isRegExp=Lh,Q.isSafeInteger=ed,Q.isSet=Cu,Q.isString=sh,Q.isSymbol=Pr,Q.isTypedArray=$a,Q.isUndefined=id,Q.isWeakMap=nd,Q.isWeakSet=rd,Q.join=af,Q.kebabCase=qd,Q.last=Jr,Q.lastIndexOf=lf,Q.lowerCase=Yd,Q.lowerFirst=Zd,Q.lt=od,Q.lte=sd,Q.max=Vm,Q.maxBy=jm,Q.mean=Wm,Q.meanBy=Xm,Q.min=qm,Q.minBy=Ym,Q.stubArray=kh,Q.stubFalse=Uh,Q.stubObject=Om,Q.stubString=Dm,Q.stubTrue=zm,Q.multiply=Zm,Q.nth=hf,Q.noConflict=Em,Q.noop=Nh,Q.now=ih,Q.pad=Jd,Q.padEnd=$d,Q.padStart=Kd,Q.parseInt=Qd,Q.random=Hd,Q.reduce=fp,Q.reduceRight=pp,Q.repeat=tm,Q.replace=em,Q.result=Id,Q.round=Jm,Q.runInContext=At,Q.sample=mp,Q.size=yp,Q.snakeCase=im,Q.some=_p,Q.sortedIndex=gf,Q.sortedIndexBy=vf,Q.sortedIndexOf=yf,Q.sortedLastIndex=_f,Q.sortedLastIndexBy=xf,Q.sortedLastIndexOf=wf,Q.startCase=rm,Q.startsWith=om,Q.subtract=$m,Q.sum=Km,Q.sumBy=Qm,Q.template=sm,Q.times=Bm,Q.toFinite=as,Q.toInteger=wi,Q.toLength=Lu,Q.toLower=am,Q.toNumber=$r,Q.toSafeInteger=ad,Q.toString=qi,Q.toUpper=lm,Q.trim=hm,Q.trimEnd=um,Q.trimStart=cm,Q.truncate=fm,Q.unescape=pm,Q.uniqueId=km,Q.upperCase=dm,Q.upperFirst=Oh,Q.each=gu,Q.eachRight=vu,Q.first=fu,Bh(Q,function(){var r={};return yr(Q,function(a,u){Ti.call(Q.prototype,u)||(r[u]=a)}),r}(),{chain:!1}),Q.VERSION=J,Yi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){Q[r].placeholder=Q}),Yi(["drop","take"],function(r,a){_i.prototype[r]=function(u){u=u===p?1:cn(wi(u),0);var _=this.__filtered__&&!a?new _i(this):this.clone();return _.__filtered__?_.__takeCount__=Dn(u,_.__takeCount__):_.__views__.push({size:Dn(u,Dt),type:r+(_.__dir__<0?"Right":"")}),_},_i.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}}),Yi(["filter","map","takeWhile"],function(r,a){var u=a+1,_=u==D||u==Ct;_i.prototype[r]=function(k){var at=this.clone();return at.__iteratees__.push({iteratee:si(k,3),type:u}),at.__filtered__=at.__filtered__||_,at}}),Yi(["head","last"],function(r,a){var u="take"+(a?"Right":"");_i.prototype[r]=function(){return this[u](1).value()[0]}}),Yi(["initial","tail"],function(r,a){var u="drop"+(a?"":"Right");_i.prototype[r]=function(){return this.__filtered__?new _i(this):this[u](1)}}),_i.prototype.compact=function(){return this.filter(wr)},_i.prototype.find=function(r){return this.filter(r).head()},_i.prototype.findLast=function(r){return this.reverse().find(r)},_i.prototype.invokeMap=se(function(r,a){return typeof r=="function"?new _i(this):this.map(function(u){return e(u,r,a)})}),_i.prototype.reject=function(r){return this.filter(rh(si(r)))},_i.prototype.slice=function(r,a){r=wi(r);var u=this;return u.__filtered__&&(r>0||a<0)?new _i(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),a!==p&&(a=wi(a),u=a<0?u.dropRight(-a):u.take(a-r)),u)},_i.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},_i.prototype.toArray=function(){return this.take(Dt)},yr(_i.prototype,function(r,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),_=/^(?:head|last)$/.test(a),k=Q[_?"take"+(a=="last"?"Right":""):a],at=_||/^find/.test(a);k&&(Q.prototype[a]=function(){var yt=this.__wrapped__,St=_?[1]:arguments,Nt=yt instanceof _i,re=St[0],ae=Nt||vi(yt),fe=function(Pi){var Ni=k.apply(Q,Nr([Pi],St));return _&&ze?Ni[0]:Ni};ae&&u&&typeof re=="function"&&re.length!=1&&(Nt=ae=!1);var ze=this.__chain__,Je=!!this.__actions__.length,hi=at&&!ze,Mi=Nt&&!Je;if(!at&&ae){yt=Mi?yt:new _i(this);var ui=r.apply(yt,St);return ui.__actions__.push({func:th,args:[fe],thisArg:p}),new Bn(ui,ze)}return hi&&Mi?r.apply(this,St):(ui=this.thru(fe),hi?_?ui.value()[0]:ui.value():ui)})}),Yi(["pop","push","shift","sort","splice","unshift"],function(r){var a=Sn[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",_=/^(?:pop|shift)$/.test(r);Q.prototype[r]=function(){var k=arguments;if(_&&!this.__chain__){var at=this.value();return a.apply(vi(at)?at:[],k)}return this[u](function(yt){return a.apply(vi(yt)?yt:[],k)})}}),yr(_i.prototype,function(r,a){var u=Q[a];if(u){var _=u.name+"";Ti.call(So,_)||(So[_]=[]),So[_].push({name:a,func:u})}}),So[Zi(p,d).name]=[{name:"wrapper",func:p}],_i.prototype.clone=Is,_i.prototype.reverse=Fl,_i.prototype.value=Os,Q.prototype.at=jf,Q.prototype.chain=Wf,Q.prototype.commit=Xf,Q.prototype.next=qf,Q.prototype.plant=Zf,Q.prototype.reverse=Jf,Q.prototype.toJSON=Q.prototype.valueOf=Q.prototype.value=$f,Q.prototype.first=Q.prototype.head,Mo&&(Q.prototype[Mo]=Yf),Q},wo=ch();Sr?((Sr.exports=wo)._=wo,mo._=wo):un._=wo}).call(ur)}(Ll,Ll.exports);var hc=Ll.exports;const hh=lh(hc);class uc{constructor($,p=[],J=!1){Fh(this,"simplifyFunc",$=>{try{$=turf.simplify($,{tolerance:5e-4,highQuality:!1,mutate:!0})}catch{}return $});mars3d?(this.map=$,this.vectorArr=p,this.geoJsonType=new Map([["Point"],["LineString"],["Polygon"],["MultiPoint"],["MultiLineString"],["MultiPolygon"]]),this.avoidanceArr=[],this.editDate={id:""},this.isDynamicMasking=J):console.error("未引入指定插件")}remove($){this.map.removeLayer(this.map.getLayer($,"vectorId")),window.dynamicMasking.remove($)}add($,p){return new Promise((J,G)=>{let m;if(typeof $!="object"){let H=this.map.getLayer($,"vectorId");if(H)return J(H);m=this.query($)}else{let H=this.map.getLayer($.id,"vectorId");if(H)return J(H);m=$}let{value:C,url:O,id:E,title:U}=m;new Cesium.Resource({url:O}).fetchJson().then(H=>{let{id:K,title:B,shpInfo:q}=m,{attributes:b,geometryType:A,geometryCount:d,pointCount:g}=q,{width:M,materialType:x,materialOptions:F,clampToGround:z,distanceDisplayCondition:W,distanceDisplayCondition_near:ht,distanceDisplayCondition_far:ft,zIndex:gt,label:zt,fill:lt,diffHeight:Et,outline:D,outlineStyle:Bt,color:Ct,pixelSize:Rt,outlineColor:ge,outlineWidth:ue}=JSON.parse(b),Ft;switch(console.log("geometryType",A),this.isDynamicMasking?(zt.color=Cesium.Color.fromCssColorString(zt.color).withAlpha(0),zt.outlineColor=Cesium.Color.fromCssColorString(zt.outlineColor).withAlpha(.001),zt.backgroundColor=Cesium.Color.fromCssColorString(zt.backgroundColor).withAlpha(.001),zt.background=!1,zt.outline=!1,zt.show=!1):(zt.color=Cesium.Color.fromCssColorString(zt.color),zt.outlineColor=Cesium.Color.fromCssColorString(zt.outlineColor),zt.backgroundColor=Cesium.Color.fromCssColorString(zt.backgroundColor)),A){case"LineString":case"MultiLineString":zt.backgroundPadding=5,Ft=new mars3d.layer.GeoJsonLayer({data:H,vectorId:K,format:g>1e4?this.simplifyFunc:null,symbol:{type:"polylineC",styleOptions:{width:M,clampToGround:z,distanceDisplayCondition:W,distanceDisplayCondition_far:ft,distanceDisplayCondition_near:ht,materialType:x,materialOptions:F,label:zt}},popup:` ${B} `,hasZIndex:!0,zIndex:gt});break;case"Polygon":case"MultiPolygon":x=="PolyGrass"&&(F={evenColor:new Cesium.Color(.25,.4,.1,1),oddColor:new Cesium.Color(.1,.1,.1,1),frequency:1.5}),Ft=new mars3d.layer.GeoJsonLayer({data:H,vectorId:K,format:g>1e4?this.simplifyFunc:null,symbol:{type:"polygon",styleOptions:{fill:lt,diffHeight:Et,clampToGround:z,materialType:x,materialOptions:F,distanceDisplayCondition:W,distanceDisplayCondition_far:ft,distanceDisplayCondition_near:ht,outlineStyle:Bt,outline:D,label:zt}},popup:` ${B} `});break;case"Point":case"MultiPoint":Ft=new mars3d.layer.GeoJsonLayer({data:H,vectorId:K,format:g>1e4?this.simplifyFunc:null,symbol:{type:"pointP",styleOptions:{color:Ct,pixelSize:Rt,outline:D,outlineColor:ge,outlineWidth:ue,visibleDepth:!1,label:zt}}});break}window.map.addLayer(Ft),Ft.bindPopup(kt=>{console.log("event",kt)});let Dt=hh.debounce(kt=>{console.log("测试shp矢量加载完成"),window.dynamicMasking.add(kt,JSON.parse(b))},500);Ft.readyPromise.then(kt=>{Dt(kt),J(kt)}).catch(kt=>{console.error("测试shp矢量加载失败",kt),J({tite:"【矢量】"+modelTitle+"加载失败",type:"error",id:modelId,url:O})})}).catch(H=>{console.error("数据有误",H),J({tite:"【矢量】"+modelTitle+"数据有误",type:"error",id:modelId,url:O})})})}updateData($){this.vectorArr=$}processingKML($){let p,J=2e3,G=!0,{kmlInfo:m}=$,{fill:C,areaColor:O,areaSideColor:E,transparency:U,isAreaSideColor:Y,minDistinct:H,textDistinct:K,textSize:B,textColor:q,fontStyle:b,outLine:A,sideColor:d,backGround:g,backGroundColor:M,clampToGround:x}=m;console.log("minDistinct",H);let F={fill:C,color:O,opacity:U||.5,outline:Y,outlineColor:E,outlineWidth:2,clampToGround:x,distanceDisplayCondition:!0,distanceDisplayCondition_far:K||1e6,distanceDisplayCondition_near:H||0,classificationType:p,opacity:String(U)},z={text:"{name}",horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffsetY:-10,font_size:26,color:q||"#ffffff",font_family:b||"黑体",outline:A||!0,outlineColor:d||"#000000",outlineWidth:4,scaleByDistance:!0,distanceDisplayCondition:!0,distanceDisplayCondition_far:K||1e6,distanceDisplayCondition_near:H||0,background:g||!1,backgroundColor:M||"",visibleDepth:G,clampToGround:x||!1,disableDepthTestDistance:J};return{...F,label:z}}selected($){this.map.getLayer($,"vectorId").flyTo()}query($){return this.vectorArr.length==0?!1:this.vectorArr.find(p=>p.id==$)}editVector($,p,J){let G=this.map.getLayer($,"vectorId"),m=Wh(p,J);console.log("编辑数据",m),G&&(G.eachGraphic(C=>{C.label.show===!1&&(delete C.label.outline,delete C.label.background,delete C.label.outlineColor,delete C.label.backgroundColor),C.setStyle({...m})}),dynamicMasking.modify($,m))}nationalBoundaries(){let $="/gis/nationalBoundaries.json",p=new mars3d.layer.GeoJsonLayer({name:"国界",url:$,format:J=>{try{J=turf.simplify(J,{tolerance:1e-5,highQuality:!1,mutate:!0})}catch(G){console.error(G)}return J},symbol:{type:"polylineC",styleOptions:{width:2,materialType:"Color",materialOptions:{color:"#CD9B1D"},distanceDisplayCondition:!0,distanceDisplayCondition_near:1e3,distanceDisplayCondition_far:2e7,clampToGround:!0,classificationType:Cesium.ClassificationType.TERRAIN}}});map.addLayer(p)}switchDynamicMasking($){this.isDynamicMasking=$}}class cc{constructor($,p=[]){mars3d?(this.map=$,this.terrainProviderArr=p,this.terrainProviderId="",this.events={},this.map.on(mars3d.EventType.terrainLoadError,J=>{console.error("地形服务加载失败",J),this.hide()}),this.map.viewer.scene.globe.tileLoadProgressEvent.addEventListener(J=>{this.map.viewer.scene.globe.tilesLoaded&&this.emit("load",J)})):console.error("未引入指定插件")}add($){let{url:p,id:J}=$;if(this.terrainProviderId==J&&this.map.terrainProvider._layers)return!1;this.map.terrainProvider=mars3d.LayerUtil.createTerrainProvider({imageXyzId:J,type:"xyz",url:p,requestVertexNormals:!0,requestMetadata:!0}),this.terrainProviderId=J}show(){this.map.hasTerrain=!0}hide(){this.map.hasTerrain=!1}on($,p){$=="load"?this.events[$]?this.events[$].push(p):this.events[$]=[p]:console.log("未开放自定义")}emit($,...p){this.events[$]!=null&&this.events[$].forEach(J=>J(...p))}off($,p){this.events[$]=this.events[$].filter(J=>J!==p)}once($,p){const J=()=>{p(),this.off($,J)};this.on($,J)}addClip($){return new Promise((p,J)=>{window.bimClip?p(bimClip.clipGisAdd($)):J("挖洞工具未初始化")})}}class fc{constructor($,p=[]){mars3d?(this.map=$,this.elevationImageArr=p,this.elevationImageLayer,this.form={brightnessVal:1.3,msaaSamples:4,surfaceOpacity:1,layerOpacity:1,layerBrightness:2,layerContrast:1,layerHue:0,layerSaturation:1,layerGamma:1}):console.error("未引入指定插件")}pushVector($){this.elevationImageArr.push($)}add($,p){let J;if(typeof $!="object"?J=$:J=$.imageXyzId,this.map.getLayer(J,"imageXyzId"))return!1;const{layerOpacity:G,layerBrightness:m,layerContrast:C,layerHue:O,layerSaturation:E,layerGamma:U,surfaceOpacity:Y}=this.exposureEnvironmentSettings();return new Promise((H,K)=>{let B,q,b,A,d;if(typeof $!="object"){let g=this.query($);g||K("缺少树结构");let{gisInfo:M}=g;B=M.id,b=M.order,q=g.url,A=M.minLevel,d=M.maxLevel}else B=$.imageXyzId,q=$.url,b=$.zIndex,A=$.minimumLevel,d=$.maximumLevel;this.elevationImageLayer=new mars3d.layer.XyzLayer({imageXyzId:B,type:"xyz",url:q,hasZIndex:!0,zIndex:b.toString(),brightness:m,opacity:G,saturation:E,contrast:C,hue:O,gamma:U,alpha:Y,show:!0,minimumLevel:A||0,maximumLevel:d||15}),this.elevationImageLayer.on(mars3d.EventType.load,g=>{H(g)}),this.map.addLayer(this.elevationImageLayer),p&&Object.keys(p).forEach(g=>{this.elevationImageLayer.on(fnType.get(g),M=>{p[g](M)})})})}remove($){console.log($),this.map.removeLayer(this.map.getLayer($,"imageXyzId"))}query($){return this.elevationImageArr.length==0?!1:this.elevationImageArr.find(p=>p.id==$)}initial(){this.elevationImageArr=[],this.elevationImageLayer=null}exposureEnvironmentSettings(){return localStorage.getItem("environmentSettings")?JSON.parse(localStorage.getItem("environmentSettings")):(localStorage.setItem("environmentSettings",JSON.stringify(this.form)),JSON.parse(JSON.stringify(this.form)))}}class pc{constructor($,p,...J){Fh(this,"manualFreed",hh.debounce(()=>{let{lng:$,lat:p,alt:J,pitch:G}=this.map.getCameraView(),m;this.modelArray.forEach(C=>{m=C.releasedDistance?C.releasedDistance:1e4,this.disTance([$,p,J],[C.center._lng,C.center._lat,C.center._alt],this.calculateDistance(G,m))?this.map.getLayer(C.id,"modelId")&&this.emit("leave",C):this.map.getLayer(C.id,"modelId")||this.emit("enter",C)})},200));mars3d?($&&$!=null&&(this.modelArray=$),this.showModelArray=[],p&&p!=null&&(this.map=p),this.Cesium=mars3d.Cesium,this.events={}):console.error("未引入指定插件")}on($,p){$=="enter"||$=="leave"?this.events[$]?this.events[$].push(p):this.events[$]=[p]:console.log("未开放自定义")}emit($,...p){this.events[$]!=null&&this.events[$].forEach(J=>J(...p))}off($,p){this.events[$]=this.events[$].filter(J=>J!==p)}once($,p){const J=()=>{p(),this.off($,J)};this.on($,J)}say($){return this[$]}add($,p){this[$].push(p)}remove($,p){this[$]=this[$].filter(function(J){return J!==p})}initial(){this.modelArray=[],this.events={}}updateCustomExcavationDetails($,p,J,G=[],m={}){let C,O,E;switch(C=this.modelArray.find(U=>U.modelId==$).customize.bimModelExcavationDetails,E=C.find((U,Y)=>{if(U.id==p)return O=Y,U}),J){case"delete":C.splice(O,1);break;case"update":E.excavationDetails=G;break;case"add":C.push(m);break;case"edit":E.excavationDetails=m.excavationDetails,E.kId=m.kId;break}return C}resourceRelease(){this.map.viewer.camera.moveEnd.addEventListener(()=>{this.freed()})}freed(){let{alt:$}=this.map.getCameraView();$<2e4&&(this.freed=hh.throttle(()=>{let{lng:p,lat:J,alt:G,pitch:m}=this.map.getCameraView();this.modelArray&&this.modelArray.forEach(C=>{let O=C.bimModel.releasedDistance?C.bimModel.releasedDistance:1e4;C.center&&this.disTance([p,J,G],[C.center._lng,C.center._lat,C.center._alt],this.calculateDistance(m,O))?this.map.getLayer(C.id,"modelId")&&this.emit("leave",C):this.showModelArray.indexOf(C.id)>=0&&!this.map.getLayer(C.id,"modelId")&&this.emit("enter",C)})},2e3),this.freed())}findPnodeId($,p,J="id"){let G;if($){for(var m=0;m<$.length;m++){let C=$[m];if(C[J]==p)return G=C,G;if(C.children&&C.children.length>0&&(G=this.findPnodeId(C.children,p,J),G))return G}return G}}disTance($,p,J){let G,m,C;return G=Cesium.Cartesian3.fromDegrees(...$),m=Cesium.Cartesian3.fromDegrees(...p),C=Cesium.Cartesian3.distance(G,m),C>J}calculateDistance($,p){let J=($+180)%360-180;J=Math.max(-90,Math.min(J,90));let G=(p-p/5)*(Math.abs(J)/90)+p/5;return Math.round(G)}}class dc{constructor($,p=[],J){mars3d?(this.map=$,this.entityArr=p,this.entityLayer=$.getLayer("bimEntity","entityId"),this.entityItem=null,this.events={}):console.error("未引入指定插件")}on($,p){$=="change"?this.events[$]?this.events[$].push(p):this.events[$]=[p]:console.log("未开放自定义")}emit($,...p){this.events[$]!=null&&this.events[$].forEach(J=>J(...p))}off($,p){this.events[$]=this.events[$].filter(J=>J!==p)}once($,p){const J=()=>{p(),this.off($,J)};this.on($,J)}add($,p){return new Promise((J,G)=>{var m;if(this.entityLayer){let C,O,E;if(typeof $!="object"?(C=this.entityLayer.getGraphicByAttr($,"entityId"),O=this.query($),E=JSON.parse(O.bimPlanPainting.graphic),E.attr=E.attr||{},E.attr.entityId=E.attr.entityId||$):(C=this.entityLayer.getGraphicByAttr($.id,"entityId"),E=JSON.parse(JSON.stringify($)),E.attr=E.attr||{},E.attr.entityId=E.attr.entityId||p,E.attr==null?E.attr={entityId:$}:((m=E.attr)==null?void 0:m.entityId)==null&&p&&(E.attr.entityId=p)),C)return J();console.log(E),this.entityLayer.addGraphic(E),J(E)}else J(),console.error("未初始化标绘实例图层")})}query($){return this.entityArr.length==0?!1:this.entityArr.find(p=>p.id==$)}queryEntity($){if(bimEntity.entityLayer)return bimEntity.entityLayer.getGraphicByAttr($,"entityId")}selected($){let p=this.entityLayer.getGraphicByAttr($,"entityId");p._point&&p._point._alt>0?p.flyTo({radius:p._point._alt+500}):p.flyTo()}remove($){this.entityLayer.getGraphicByAttr($,"entityId")&&(this.entityLayer.getGraphicByAttr($,"entityId").remove(),this.entityItem&&this.entityItem.options.attr.entityId==$&&(this.entityItem=null))}removeEntityItem(){this.entityItem=null}updateData($){this.entityArr=$}startDrawGraphic($){let{type:p,style:J}=$;if(p=="div"){let{title:G,divType:m,theme_color:C,font_color:O,scaleByDistance:E,scaleByDistance_far:U,scaleByDistance_farValue:Y,scaleByDistance_near:H,scaleByDistance_nearValue:K,distanceDisplayCondition:B,distanceDisplayCondition_far:q,distanceDisplayCondition_near:b,clampToGround:A}=J,d={type:"div",style:{pointerEvents:!0,scaleByDistance:E,scaleByDistance_far:U,scaleByDistance_farValue:Y,scaleByDistance_near:H,scaleByDistance_nearValue:K,distanceDisplayCondition:B,distanceDisplayCondition_far:q,distanceDisplayCondition_near:b,clampToGround:A,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM}};switch(m){case"1":d.style.html=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${C};--theme-font-color1:${O};">
|
|
2636
|
-
<div class="title">${
|
|
2637
|
-
</div>`,
|
|
2638
|
-
<div class="title">${
|
|
2639
|
-
</div>`;break;case"2":
|
|
2640
|
-
<div class="title">${
|
|
2634
|
+
`)+pe+`return __p
|
|
2635
|
+
}`;var Mi=Od(function(){return Bi(ut,Je+"return "+pe).apply(o,_t)});if(Mi.source=pe,of(Mi))throw Mi;return Mi}function py(r){return Yi(r).toLowerCase()}function dy(r){return Yi(r).toUpperCase()}function my(r,h,g){if(r=Yi(r),r&&(g||h===o))return ga(r);if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=ar(h),ut=Qs(O,Y),_t=Eo(O,Y)+1;return xn(O,ut,_t).join("")}function gy(r,h,g){if(r=Yi(r),r&&(g||h===o))return r.slice(0,va(r)+1);if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=Eo(O,ar(h))+1;return xn(O,0,Y).join("")}function vy(r,h,g){if(r=Yi(r),r&&(g||h===o))return r.replace(ls,"");if(!r||!(h=Ye(h)))return r;var O=ar(r),Y=Qs(O,ar(h));return xn(O,Y).join("")}function _y(r,h){var g=ft,O=Ct;if(wn(h)){var Y="separator"in h?h.separator:Y;g="length"in h?wi(h.length):g,O="omission"in h?Ye(h.omission):O}r=Yi(r);var ut=r.length;if(Ir(r)){var _t=ar(r);ut=_t.length}if(g>=ut)return r;var bt=g-$r(O);if(bt<1)return O;var Nt=_t?xn(_t,0,bt).join(""):r.slice(0,bt);if(Y===o)return Nt+O;if(_t&&(bt+=Nt.length-bt),af(Y)){if(r.slice(bt).search(Y)){var se,le=Nt;for(Y.global||(Y=Kn(Y.source,Yi(Gl.exec(Y))+"g")),Y.lastIndex=0;se=Y.exec(le);)var pe=se.index;Nt=Nt.slice(0,pe===o?bt:pe)}}else if(r.indexOf(Ye(Y),bt)!=bt){var ze=Nt.lastIndexOf(Y);ze>-1&&(Nt=Nt.slice(0,ze))}return Nt+O}function yy(r){return r=Yi(r),r&&Xs.test(r)?r.replace(As,Jl):r}var xy=De(function(r,h,g){return r+(g?" ":"")+h.toUpperCase()}),uf=Me("toUpperCase");function Rd(r,h,g){return r=Yi(r),h=g?o:h,h===o?Po(r)?Uc(r):il(r):r.match(h)||[]}var Od=ae(function(r,h){try{return _r(r,o,h)}catch(g){return of(g)?g:new ai(g)}}),wy=Ho(function(r,h){return Zi(h,function(g){g=ho(g),ks(r,g,rf(r[g],r))}),r});function Ty(r){var h=r==null?0:r.length,g=oi();return r=h?qi(r,function(O){if(typeof O[1]!="function")throw new lr(m);return[g(O[0]),O[1]]}):[],ae(function(O){for(var Y=-1;++Y<h;){var ut=r[Y];if(_r(ut[0],this,O))return _r(ut[1],this,O)}})}function My(r){return Pa(wr(r,I))}function cf(r){return function(){return r}}function Sy(r,h){return r==null||r!==r?h:r}var Ey=Li(),by=Li(!0);function Gr(r){return r}function ff(r){return H(typeof r=="function"?r:wr(r,I))}function Ay(r){return gt(wr(r,I))}function Cy(r,h){return At(r,wr(h,I))}var Py=ae(function(r,h){return function(g){return e(g,r,h)}}),Ly=ae(function(r,h){return function(g){return e(r,g,h)}});function pf(r,h,g){var O=Jn(h),Y=Fo(h,O);g==null&&!(wn(h)&&(Y.length||!O.length))&&(g=h,h=r,r=this,Y=Fo(h,Jn(h)));var ut=!(wn(g)&&"chain"in g)||!!g.chain,_t=Wo(r);return Zi(Y,function(bt){var Nt=h[bt];r[bt]=Nt,_t&&(r.prototype[bt]=function(){var se=this.__chain__;if(ut||se){var le=r(this.__wrapped__),pe=le.__actions__=er(this.__actions__);return pe.push({func:Nt,args:arguments,thisArg:r}),le.__chain__=se,le}return Nt.apply(r,fs([this.value()],arguments))})}),r}function Ry(){return gn._===this&&(gn._=Kr),this}function df(){}function Oy(r){return r=wi(r),ae(function(h){return Z(h,r)})}var Iy=Nn(qi),Dy=Nn(Ih),zy=Nn(Cs);function Id(r){return $c(r)?Js(ho(r)):$t(r)}function ky(r){return function(h){return r==null?o:ao(r,h)}}var By=$h(),Ny=$h(!0);function mf(){return[]}function gf(){return!1}function Fy(){return{}}function Uy(){return""}function Gy(){return!0}function Hy(r,h){if(r=wi(r),r<1||r>ce)return[];var g=It,O=Vn(r,It);h=oi(h),r-=It;for(var Y=Ls(O,h);++g<r;)h(g);return Y}function Vy(r){return vi(r)?qi(r,ho):ts(r)?[r]:er(Qp(Yi(r)))}function Wy(r){var h=++ur;return Yi(r)+h}var jy=Tr(function(r,h){return r+h},0),Xy=hh("ceil"),qy=Tr(function(r,h){return r/h},1),Yy=hh("floor");function Zy(r){return r&&r.length?Ts(r,Gr,oh):o}function Jy(r,h){return r&&r.length?Ts(r,oi(h,2),oh):o}function $y(r){return ma(r,Gr)}function Ky(r,h){return ma(r,oi(h,2))}function Qy(r){return r&&r.length?Ts(r,Gr,rt):o}function t1(r,h){return r&&r.length?Ts(r,oi(h,2),rt):o}var e1=Tr(function(r,h){return r*h},1),i1=hh("round"),n1=Tr(function(r,h){return r-h},0);function r1(r){return r&&r.length?Ks(r,Gr):0}function s1(r,h){return r&&r.length?Ks(r,oi(h,2)):0}return et.after=Av,et.ary=ud,et.assign=d_,et.assignIn=Sd,et.assignInWith=Zu,et.assignWith=m_,et.at=g_,et.before=cd,et.bind=rf,et.bindAll=wy,et.bindKey=fd,et.castArray=Fv,et.chain=ad,et.chunk=Yg,et.compact=Zg,et.concat=Jg,et.cond=Ty,et.conforms=My,et.constant=cf,et.countBy=rv,et.create=v_,et.curry=pd,et.curryRight=dd,et.debounce=md,et.defaults=__,et.defaultsDeep=y_,et.defer=Cv,et.delay=Pv,et.difference=$g,et.differenceBy=Kg,et.differenceWith=Qg,et.drop=t0,et.dropRight=e0,et.dropRightWhile=i0,et.dropWhile=n0,et.fill=r0,et.filter=ov,et.flatMap=hv,et.flatMapDeep=uv,et.flatMapDepth=cv,et.flatten=nd,et.flattenDeep=s0,et.flattenDepth=o0,et.flip=Lv,et.flow=Ey,et.flowRight=by,et.fromPairs=a0,et.functions=b_,et.functionsIn=A_,et.groupBy=fv,et.initial=h0,et.intersection=u0,et.intersectionBy=c0,et.intersectionWith=f0,et.invert=P_,et.invertBy=L_,et.invokeMap=dv,et.iteratee=ff,et.keyBy=mv,et.keys=Jn,et.keysIn=Ur,et.map=Vu,et.mapKeys=O_,et.mapValues=I_,et.matches=Ay,et.matchesProperty=Cy,et.memoize=ju,et.merge=D_,et.mergeWith=Ed,et.method=Py,et.methodOf=Ly,et.mixin=pf,et.negate=Xu,et.nthArg=Oy,et.omit=z_,et.omitBy=k_,et.once=Rv,et.orderBy=gv,et.over=Iy,et.overArgs=Ov,et.overEvery=Dy,et.overSome=zy,et.partial=sf,et.partialRight=gd,et.partition=vv,et.pick=B_,et.pickBy=bd,et.property=Id,et.propertyOf=ky,et.pull=g0,et.pullAll=sd,et.pullAllBy=v0,et.pullAllWith=_0,et.pullAt=y0,et.range=By,et.rangeRight=Ny,et.rearg=Iv,et.reject=xv,et.remove=x0,et.rest=Dv,et.reverse=ef,et.sampleSize=Tv,et.set=F_,et.setWith=U_,et.shuffle=Mv,et.slice=w0,et.sortBy=bv,et.sortedUniq=C0,et.sortedUniqBy=P0,et.split=hy,et.spread=zv,et.tail=L0,et.take=R0,et.takeRight=O0,et.takeRightWhile=I0,et.takeWhile=D0,et.tap=Z0,et.throttle=kv,et.thru=Hu,et.toArray=wd,et.toPairs=Ad,et.toPairsIn=Cd,et.toPath=Vy,et.toPlainObject=Md,et.transform=G_,et.unary=Bv,et.union=z0,et.unionBy=k0,et.unionWith=B0,et.uniq=N0,et.uniqBy=F0,et.uniqWith=U0,et.unset=H_,et.unzip=nf,et.unzipWith=od,et.update=V_,et.updateWith=W_,et.values=fh,et.valuesIn=j_,et.without=G0,et.words=Rd,et.wrap=Nv,et.xor=H0,et.xorBy=V0,et.xorWith=W0,et.zip=j0,et.zipObject=X0,et.zipObjectDeep=q0,et.zipWith=Y0,et.entries=Ad,et.entriesIn=Cd,et.extend=Sd,et.extendWith=Zu,pf(et,et),et.add=jy,et.attempt=Od,et.camelCase=Z_,et.capitalize=Pd,et.ceil=Xy,et.clamp=X_,et.clone=Uv,et.cloneDeep=Hv,et.cloneDeepWith=Vv,et.cloneWith=Gv,et.conformsTo=Wv,et.deburr=Ld,et.defaultTo=Sy,et.divide=qy,et.endsWith=J_,et.eq=Fs,et.escape=$_,et.escapeRegExp=K_,et.every=sv,et.find=av,et.findIndex=ed,et.findKey=x_,et.findLast=lv,et.findLastIndex=id,et.findLastKey=w_,et.floor=Yy,et.forEach=ld,et.forEachRight=hd,et.forIn=T_,et.forInRight=M_,et.forOwn=S_,et.forOwnRight=E_,et.get=lf,et.gt=jv,et.gte=Xv,et.has=C_,et.hasIn=hf,et.head=rd,et.identity=Gr,et.includes=pv,et.indexOf=l0,et.inRange=q_,et.invoke=R_,et.isArguments=bl,et.isArray=vi,et.isArrayBuffer=qv,et.isArrayLike=Fr,et.isArrayLikeObject=Dn,et.isBoolean=Yv,et.isBuffer=Da,et.isDate=Zv,et.isElement=Jv,et.isEmpty=$v,et.isEqual=Kv,et.isEqualWith=Qv,et.isError=of,et.isFinite=t_,et.isFunction=Wo,et.isInteger=vd,et.isLength=qu,et.isMap=_d,et.isMatch=e_,et.isMatchWith=i_,et.isNaN=n_,et.isNative=r_,et.isNil=o_,et.isNull=s_,et.isNumber=yd,et.isObject=wn,et.isObjectLike=Ln,et.isPlainObject=eu,et.isRegExp=af,et.isSafeInteger=a_,et.isSet=xd,et.isString=Yu,et.isSymbol=ts,et.isTypedArray=ch,et.isUndefined=l_,et.isWeakMap=h_,et.isWeakSet=u_,et.join=p0,et.kebabCase=Q_,et.last=Es,et.lastIndexOf=d0,et.lowerCase=ty,et.lowerFirst=ey,et.lt=c_,et.lte=f_,et.max=Zy,et.maxBy=Jy,et.mean=$y,et.meanBy=Ky,et.min=Qy,et.minBy=t1,et.stubArray=mf,et.stubFalse=gf,et.stubObject=Fy,et.stubString=Uy,et.stubTrue=Gy,et.multiply=e1,et.nth=m0,et.noConflict=Ry,et.noop=df,et.now=Wu,et.pad=iy,et.padEnd=ny,et.padStart=ry,et.parseInt=sy,et.random=Y_,et.reduce=_v,et.reduceRight=yv,et.repeat=oy,et.replace=ay,et.result=N_,et.round=i1,et.runInContext=Rt,et.sample=wv,et.size=Sv,et.snakeCase=ly,et.some=Ev,et.sortedIndex=T0,et.sortedIndexBy=M0,et.sortedIndexOf=S0,et.sortedLastIndex=E0,et.sortedLastIndexBy=b0,et.sortedLastIndexOf=A0,et.startCase=uy,et.startsWith=cy,et.subtract=n1,et.sum=r1,et.sumBy=s1,et.template=fy,et.times=Hy,et.toFinite=jo,et.toInteger=wi,et.toLength=Td,et.toLower=py,et.toNumber=bs,et.toSafeInteger=p_,et.toString=Yi,et.toUpper=dy,et.trim=my,et.trimEnd=gy,et.trimStart=vy,et.truncate=_y,et.unescape=yy,et.uniqueId=Wy,et.upperCase=xy,et.upperFirst=uf,et.each=ld,et.eachRight=hd,et.first=rd,pf(et,function(){var r={};return Nr(et,function(h,g){Ti.call(et.prototype,g)||(r[g]=h)}),r}(),{chain:!1}),et.VERSION=p,Zi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){et[r].placeholder=et}),Zi(["drop","take"],function(r,h){yi.prototype[r]=function(g){g=g===o?1:vn(wi(g),0);var O=this.__filtered__&&!h?new yi(this):this.clone();return O.__filtered__?O.__takeCount__=Vn(g,O.__takeCount__):O.__views__.push({size:Vn(g,It),type:r+(O.__dir__<0?"Right":"")}),O},yi.prototype[r+"Right"]=function(g){return this.reverse()[r](g).reverse()}}),Zi(["filter","map","takeWhile"],function(r,h){var g=h+1,O=g==G||g==Et;yi.prototype[r]=function(Y){var ut=this.clone();return ut.__iteratees__.push({iteratee:oi(Y,3),type:g}),ut.__filtered__=ut.__filtered__||O,ut}}),Zi(["head","last"],function(r,h){var g="take"+(h?"Right":"");yi.prototype[r]=function(){return this[g](1).value()[0]}}),Zi(["initial","tail"],function(r,h){var g="drop"+(h?"":"Right");yi.prototype[r]=function(){return this.__filtered__?new yi(this):this[g](1)}}),yi.prototype.compact=function(){return this.filter(Gr)},yi.prototype.find=function(r){return this.filter(r).head()},yi.prototype.findLast=function(r){return this.reverse().find(r)},yi.prototype.invokeMap=ae(function(r,h){return typeof r=="function"?new yi(this):this.map(function(g){return e(g,r,h)})}),yi.prototype.reject=function(r){return this.filter(Xu(oi(r)))},yi.prototype.slice=function(r,h){r=wi(r);var g=this;return g.__filtered__&&(r>0||h<0)?new yi(g):(r<0?g=g.takeRight(-r):r&&(g=g.drop(r)),h!==o&&(h=wi(h),g=h<0?g.dropRight(-h):g.take(h-r)),g)},yi.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},yi.prototype.toArray=function(){return this.take(It)},Nr(yi.prototype,function(r,h){var g=/^(?:filter|find|map|reject)|While$/.test(h),O=/^(?:head|last)$/.test(h),Y=et[O?"take"+(h=="last"?"Right":""):h],ut=O||/^find/.test(h);Y&&(et.prototype[h]=function(){var _t=this.__wrapped__,bt=O?[1]:arguments,Nt=_t instanceof yi,se=bt[0],le=Nt||vi(_t),pe=function(Pi){var Ni=Y.apply(et,fs([Pi],bt));return O&&ze?Ni[0]:Ni};le&&g&&typeof se=="function"&&se.length!=1&&(Nt=le=!1);var ze=this.__chain__,Je=!!this.__actions__.length,hi=ut&&!ze,Mi=Nt&&!Je;if(!ut&&le){_t=Mi?_t:new yi(this);var ui=r.apply(_t,bt);return ui.__actions__.push({func:Hu,args:[pe],thisArg:o}),new qn(ui,ze)}return hi&&Mi?r.apply(this,bt):(ui=this.thru(pe),hi?O?ui.value()[0]:ui.value():ui)})}),Zi(["pop","push","shift","sort","splice","unshift"],function(r){var h=On[r],g=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",O=/^(?:pop|shift)$/.test(r);et.prototype[r]=function(){var Y=arguments;if(O&&!this.__chain__){var ut=this.value();return h.apply(vi(ut)?ut:[],Y)}return this[g](function(_t){return h.apply(vi(_t)?_t:[],Y)})}}),Nr(yi.prototype,function(r,h){var g=et[h];if(g){var O=g.name+"";Ti.call(no,O)||(no[O]=[]),no[O].push({name:h,func:g})}}),no[Ji(o,x).name]=[{name:"wrapper",func:o}],yi.prototype.clone=Sa,yi.prototype.reverse=Cu,yi.prototype.value=Ea,et.prototype.at=J0,et.prototype.chain=$0,et.prototype.commit=K0,et.prototype.next=Q0,et.prototype.plant=ev,et.prototype.reverse=iv,et.prototype.toJSON=et.prototype.valueOf=et.prototype.value=nv,et.prototype.first=et.prototype.head,io&&(et.prototype[io]=tv),et},to=Gc();Zr?((Zr.exports=to)._=to,Ys._=to):gn._=to}).call(Er)}(ru,ru.exports);var em=ru.exports;const $u=Ju(em);class im{constructor(l,o=[],p=!1){vf(this,"simplifyFunc",l=>{try{l=turf.simplify(l,{tolerance:5e-4,highQuality:!1,mutate:!0})}catch{}return l});mars3d?(this.map=l,this.vectorArr=o,this.geoJsonType=new Map([["Point"],["LineString"],["Polygon"],["MultiPoint"],["MultiLineString"],["MultiPolygon"]]),this.avoidanceArr=[],this.editDate={id:""},this.isDynamicMasking=p):console.error("未引入指定插件")}remove(l){this.map.removeLayer(this.map.getLayer(l,"vectorId")),window.dynamicMasking.remove(l)}add(l,o){return new Promise((p,d)=>{let u;if(typeof l!="object"){let I=this.map.getLayer(l,"vectorId");if(I)return p(I);u=this.query(l)}else{let I=this.map.getLayer(l.id,"vectorId");if(I)return p(I);u=l}let{value:m,url:_,id:T,title:S}=u;new Cesium.Resource({url:_}).fetchJson().then(I=>{let{id:N,title:z,shpInfo:U}=u,{attributes:E,geometryType:L,geometryCount:x,pointCount:M}=U,{width:R,materialType:b,materialOptions:F,clampToGround:B,distanceDisplayCondition:X,distanceDisplayCondition_near:$,distanceDisplayCondition_far:Q,zIndex:ft,label:Ct,fill:it,diffHeight:yt,outline:G,outlineStyle:Lt,color:Et,pixelSize:Pt,outlineColor:ce,outlineWidth:re}=JSON.parse(E),Ft;switch(console.log("geometryType",L),this.isDynamicMasking?(Ct.color=Cesium.Color.fromCssColorString(Ct.color).withAlpha(0),Ct.outlineColor=Cesium.Color.fromCssColorString(Ct.outlineColor).withAlpha(.001),Ct.backgroundColor=Cesium.Color.fromCssColorString(Ct.backgroundColor).withAlpha(.001),Ct.background=!1,Ct.outline=!1,Ct.show=!1):(Ct.color=Cesium.Color.fromCssColorString(Ct.color),Ct.outlineColor=Cesium.Color.fromCssColorString(Ct.outlineColor),Ct.backgroundColor=Cesium.Color.fromCssColorString(Ct.backgroundColor)),L){case"LineString":case"MultiLineString":Ct.backgroundPadding=5,Ft=new mars3d.layer.GeoJsonLayer({data:I,vectorId:N,format:M>1e4?this.simplifyFunc:null,symbol:{type:"polylineC",styleOptions:{width:R,clampToGround:B,distanceDisplayCondition:X,distanceDisplayCondition_far:Q,distanceDisplayCondition_near:$,materialType:b,materialOptions:F,label:Ct}},popup:` ${z} `,hasZIndex:!0,zIndex:ft});break;case"Polygon":case"MultiPolygon":b=="PolyGrass"&&(F={evenColor:new Cesium.Color(.25,.4,.1,1),oddColor:new Cesium.Color(.1,.1,.1,1),frequency:1.5}),Ft=new mars3d.layer.GeoJsonLayer({data:I,vectorId:N,format:M>1e4?this.simplifyFunc:null,symbol:{type:"polygon",styleOptions:{fill:it,diffHeight:yt,clampToGround:B,materialType:b,materialOptions:F,distanceDisplayCondition:X,distanceDisplayCondition_far:Q,distanceDisplayCondition_near:$,outlineStyle:Lt,outline:G,label:Ct}},popup:` ${z} `});break;case"Point":case"MultiPoint":Ft=new mars3d.layer.GeoJsonLayer({data:I,vectorId:N,format:M>1e4?this.simplifyFunc:null,symbol:{type:"pointP",styleOptions:{color:Et,pixelSize:Pt,outline:G,outlineColor:ce,outlineWidth:re,visibleDepth:!1,label:Ct}}});break}window.map.addLayer(Ft),Ft.bindPopup(Bt=>{console.log("event",Bt)});let It=$u.debounce(Bt=>{console.log("测试shp矢量加载完成"),window.dynamicMasking.add(Bt,JSON.parse(E))},500);Ft.readyPromise.then(Bt=>{It(Bt),p(Bt)}).catch(Bt=>{console.error("测试shp矢量加载失败",Bt),p({tite:"【矢量】"+modelTitle+"加载失败",type:"error",id:modelId,url:_})})}).catch(I=>{console.error("数据有误",I),p({tite:"【矢量】"+modelTitle+"数据有误",type:"error",id:modelId,url:_})})})}updateData(l){this.vectorArr=l}processingKML(l){let o,p=2e3,d=!0,{kmlInfo:u}=l,{fill:m,areaColor:_,areaSideColor:T,transparency:S,isAreaSideColor:C,minDistinct:I,textDistinct:N,textSize:z,textColor:U,fontStyle:E,outLine:L,sideColor:x,backGround:M,backGroundColor:R,clampToGround:b}=u;console.log("minDistinct",I);let F={fill:m,color:_,opacity:S||.5,outline:C,outlineColor:T,outlineWidth:2,clampToGround:b,distanceDisplayCondition:!0,distanceDisplayCondition_far:N||1e6,distanceDisplayCondition_near:I||0,classificationType:o,opacity:String(S)},B={text:"{name}",horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffsetY:-10,font_size:26,color:U||"#ffffff",font_family:E||"黑体",outline:L||!0,outlineColor:x||"#000000",outlineWidth:4,scaleByDistance:!0,distanceDisplayCondition:!0,distanceDisplayCondition_far:N||1e6,distanceDisplayCondition_near:I||0,background:M||!1,backgroundColor:R||"",visibleDepth:d,clampToGround:b||!1,disableDepthTestDistance:p};return{...F,label:B}}selected(l){this.map.getLayer(l,"vectorId").flyTo()}query(l){return this.vectorArr.length==0?!1:this.vectorArr.find(o=>o.id==l)}editVector(l,o,p){let d=this.map.getLayer(l,"vectorId"),u=Tf(o,p);console.log("编辑数据",u),d&&(d.eachGraphic(m=>{m.label.show===!1&&(delete m.label.outline,delete m.label.background,delete m.label.outlineColor,delete m.label.backgroundColor),m.setStyle({...u})}),dynamicMasking.modify(l,u))}nationalBoundaries(){let l="/gis/nationalBoundaries.json",o=new mars3d.layer.GeoJsonLayer({name:"国界",url:l,format:p=>{try{p=turf.simplify(p,{tolerance:1e-5,highQuality:!1,mutate:!0})}catch(d){console.error(d)}return p},symbol:{type:"polylineC",styleOptions:{width:2,materialType:"Color",materialOptions:{color:"#CD9B1D"},distanceDisplayCondition:!0,distanceDisplayCondition_near:1e3,distanceDisplayCondition_far:2e7,clampToGround:!0,classificationType:Cesium.ClassificationType.TERRAIN}}});map.addLayer(o)}switchDynamicMasking(l){this.isDynamicMasking=l}}class nm{constructor(l,o=[]){mars3d?(this.map=l,this.terrainProviderArr=o,this.terrainProviderId="",this.events={},this.map.on(mars3d.EventType.terrainLoadError,p=>{console.error("地形服务加载失败",p),this.hide()}),this.map.viewer.scene.globe.tileLoadProgressEvent.addEventListener(p=>{this.map.viewer.scene.globe.tilesLoaded&&this.emit("load",p)})):console.error("未引入指定插件")}add(l){let{url:o,id:p}=l;if(this.terrainProviderId==p&&this.map.terrainProvider._layers)return!1;this.map.terrainProvider=mars3d.LayerUtil.createTerrainProvider({imageXyzId:p,type:"xyz",url:o,requestVertexNormals:!0,requestMetadata:!0}),this.terrainProviderId=p}show(){this.map.hasTerrain=!0}hide(){this.map.hasTerrain=!1}on(l,o){l=="load"?this.events[l]?this.events[l].push(o):this.events[l]=[o]:console.log("未开放自定义")}emit(l,...o){this.events[l]!=null&&this.events[l].forEach(p=>p(...o))}off(l,o){this.events[l]=this.events[l].filter(p=>p!==o)}once(l,o){const p=()=>{o(),this.off(l,p)};this.on(l,p)}addClip(l){return new Promise((o,p)=>{window.bimClip?o(bimClip.clipGisAdd(l)):p("挖洞工具未初始化")})}}class rm{constructor(l,o=[]){mars3d?(this.map=l,this.elevationImageArr=o,this.elevationImageLayer,this.form={brightnessVal:1.3,msaaSamples:4,surfaceOpacity:1,layerOpacity:1,layerBrightness:2,layerContrast:1,layerHue:0,layerSaturation:1,layerGamma:1}):console.error("未引入指定插件")}pushVector(l){this.elevationImageArr.push(l)}add(l,o){let p;if(typeof l!="object"?p=l:p=l.imageXyzId,this.map.getLayer(p,"imageXyzId"))return!1;const{layerOpacity:d,layerBrightness:u,layerContrast:m,layerHue:_,layerSaturation:T,layerGamma:S,surfaceOpacity:C}=this.exposureEnvironmentSettings();return new Promise((I,N)=>{let z,U,E,L,x;if(typeof l!="object"){let M=this.query(l);M||N("缺少树结构");let{gisInfo:R}=M;z=R.id,E=R.order,U=M.url,L=R.minLevel,x=R.maxLevel}else z=l.imageXyzId,U=l.url,E=l.zIndex,L=l.minimumLevel,x=l.maximumLevel;this.elevationImageLayer=new mars3d.layer.XyzLayer({imageXyzId:z,type:"xyz",url:U,hasZIndex:!0,zIndex:E.toString(),brightness:u,opacity:d,saturation:T,contrast:m,hue:_,gamma:S,alpha:C,show:!0,minimumLevel:L||0,maximumLevel:x||15}),this.elevationImageLayer.on(mars3d.EventType.load,M=>{I(M)}),this.map.addLayer(this.elevationImageLayer),o&&Object.keys(o).forEach(M=>{this.elevationImageLayer.on(fnType.get(M),R=>{o[M](R)})})})}remove(l){console.log(l),this.map.removeLayer(this.map.getLayer(l,"imageXyzId"))}query(l){return this.elevationImageArr.length==0?!1:this.elevationImageArr.find(o=>o.id==l)}initial(){this.elevationImageArr=[],this.elevationImageLayer=null}exposureEnvironmentSettings(){return localStorage.getItem("environmentSettings")?JSON.parse(localStorage.getItem("environmentSettings")):(localStorage.setItem("environmentSettings",JSON.stringify(this.form)),JSON.parse(JSON.stringify(this.form)))}}class sm{constructor(l,o,...p){vf(this,"manualFreed",$u.debounce(()=>{let{lng:l,lat:o,alt:p,pitch:d}=this.map.getCameraView(),u;this.modelArray.forEach(m=>{u=m.releasedDistance?m.releasedDistance:1e4,this.disTance([l,o,p],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(d,u))?this.map.getLayer(m.id,"modelId")&&this.emit("leave",m):this.map.getLayer(m.id,"modelId")||this.emit("enter",m)})},200));mars3d?(l&&l!=null&&(this.modelArray=l),this.showModelArray=[],o&&o!=null&&(this.map=o),this.Cesium=mars3d.Cesium,this.events={}):console.error("未引入指定插件")}on(l,o){l=="enter"||l=="leave"?this.events[l]?this.events[l].push(o):this.events[l]=[o]:console.log("未开放自定义")}emit(l,...o){this.events[l]!=null&&this.events[l].forEach(p=>p(...o))}off(l,o){this.events[l]=this.events[l].filter(p=>p!==o)}once(l,o){const p=()=>{o(),this.off(l,p)};this.on(l,p)}say(l){return this[l]}add(l,o){this[l].push(o)}remove(l,o){this[l]=this[l].filter(function(p){return p!==o})}initial(){this.modelArray=[],this.events={}}updateCustomExcavationDetails(l,o,p,d=[],u={}){let m,_,T;switch(m=this.modelArray.find(S=>S.modelId==l).customize.bimModelExcavationDetails,T=m.find((S,C)=>{if(S.id==o)return _=C,S}),p){case"delete":m.splice(_,1);break;case"update":T.excavationDetails=d;break;case"add":m.push(u);break;case"edit":T.excavationDetails=u.excavationDetails,T.kId=u.kId;break}return m}resourceRelease(){this.map.viewer.camera.moveEnd.addEventListener(()=>{this.freed()})}freed(){let{alt:l}=this.map.getCameraView();l<2e4&&(this.freed=$u.throttle(()=>{let{lng:o,lat:p,alt:d,pitch:u}=this.map.getCameraView();this.modelArray&&this.modelArray.forEach(m=>{let _=m.bimModel.releasedDistance?m.bimModel.releasedDistance:1e4;m.center&&this.disTance([o,p,d],[m.center._lng,m.center._lat,m.center._alt],this.calculateDistance(u,_))?this.map.getLayer(m.id,"modelId")&&this.emit("leave",m):this.showModelArray.indexOf(m.id)>=0&&!this.map.getLayer(m.id,"modelId")&&this.emit("enter",m)})},2e3),this.freed())}findPnodeId(l,o,p="id"){let d;if(l){for(var u=0;u<l.length;u++){let m=l[u];if(m[p]==o)return d=m,d;if(m.children&&m.children.length>0&&(d=this.findPnodeId(m.children,o,p),d))return d}return d}}disTance(l,o,p){let d,u,m;return d=Cesium.Cartesian3.fromDegrees(...l),u=Cesium.Cartesian3.fromDegrees(...o),m=Cesium.Cartesian3.distance(d,u),m>p}calculateDistance(l,o){let p=(l+180)%360-180;p=Math.max(-90,Math.min(p,90));let d=(o-o/5)*(Math.abs(p)/90)+o/5;return Math.round(d)}}class om{constructor(l,o=[],p){mars3d?(this.map=l,this.entityArr=o,this.entityLayer=l.getLayer("bimEntity","entityId"),this.entityItem=null,this.events={}):console.error("未引入指定插件")}on(l,o){l=="change"?this.events[l]?this.events[l].push(o):this.events[l]=[o]:console.log("未开放自定义")}emit(l,...o){this.events[l]!=null&&this.events[l].forEach(p=>p(...o))}off(l,o){this.events[l]=this.events[l].filter(p=>p!==o)}once(l,o){const p=()=>{o(),this.off(l,p)};this.on(l,p)}add(l,o){return new Promise((p,d)=>{var u;if(this.entityLayer){let m,_,T;if(typeof l!="object"?(m=this.entityLayer.getGraphicByAttr(l,"entityId"),_=this.query(l),T=JSON.parse(_.bimPlanPainting.graphic),T.attr=T.attr||{},T.attr.entityId=T.attr.entityId||l):(m=this.entityLayer.getGraphicByAttr(l.id,"entityId"),T=JSON.parse(JSON.stringify(l)),T.attr=T.attr||{},T.attr.entityId=T.attr.entityId||o,T.attr==null?T.attr={entityId:l}:((u=T.attr)==null?void 0:u.entityId)==null&&o&&(T.attr.entityId=o)),m)return p();console.log(T),this.entityLayer.addGraphic(T),p(T)}else p(),console.error("未初始化标绘实例图层")})}query(l){return this.entityArr.length==0?!1:this.entityArr.find(o=>o.id==l)}queryEntity(l){if(bimEntity.entityLayer)return bimEntity.entityLayer.getGraphicByAttr(l,"entityId")}selected(l){let o=this.entityLayer.getGraphicByAttr(l,"entityId");o._point&&o._point._alt>0?o.flyTo({radius:o._point._alt+500}):o.flyTo()}remove(l){this.entityLayer.getGraphicByAttr(l,"entityId")&&(this.entityLayer.getGraphicByAttr(l,"entityId").remove(),this.entityItem&&this.entityItem.options.attr.entityId==l&&(this.entityItem=null))}removeEntityItem(){this.entityItem=null}updateData(l){this.entityArr=l}startDrawGraphic(l){let{type:o,style:p}=l;if(o=="div"){let{title:d,divType:u,theme_color:m,font_color:_,scaleByDistance:T,scaleByDistance_far:S,scaleByDistance_farValue:C,scaleByDistance_near:I,scaleByDistance_nearValue:N,distanceDisplayCondition:z,distanceDisplayCondition_far:U,distanceDisplayCondition_near:E,clampToGround:L}=p,x={type:"div",style:{pointerEvents:!0,scaleByDistance:T,scaleByDistance_far:S,scaleByDistance_farValue:C,scaleByDistance_near:I,scaleByDistance_nearValue:N,distanceDisplayCondition:z,distanceDisplayCondition_far:U,distanceDisplayCondition_near:E,clampToGround:L,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM}};switch(u){case"1":x.style.html=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${m};--theme-font-color1:${_};">
|
|
2636
|
+
<div class="title">${d}</div>
|
|
2637
|
+
</div>`,x.style.horizontalOrigin=Cesium.HorizontalOrigin.CENTER;break}this.entityLayer.startDraw(x).then(M=>{setTimeout(()=>{this.entityItem=M,this.entityLayer.startEditing(M)},500)})}else console.log(l),this.entityLayer.startDraw(l).then(d=>{setTimeout(()=>{this.entityItem=d,this.entityLayer.startEditing(d)},500)})}stopDraw(l=!0){this.entityLayer&&this.entityLayer.stopDraw(),l&&this.entityItem&&(this.entityItem.stopEditing(),this.entityItem.remove(),this.entityItem=null)}updateEntityItem(l){let o=this.entityLayer.getGraphicByAttr(l,"entityId");o&&(this.entityItem=o)}edit(l,o,p,d){let u=Tf(o,p);o.vectorStyle&&this.entityItem&&(console.log("edit",o.vectorStyle.divType,this.entityItem),o.vectorStyle.divType==5?this.entityItem.setStyle({...u,horizontalOrigin:Cesium.HorizontalOrigin.LEFT}):(console.log("newStyle",u),this.entityItem.setStyle({...u})))}enableDragging(l=!0){l?this.entityLayer.startEditing(this.entityItem):(this.entityLayer.stopDraw(),this.entityItem&&this.entityItem.stopEditing())}addRightMenu(){this.entityLayer.bindContextMenu([{text:"编辑对象",callback:l=>{this.emit("change",l)}}])}removeRightMenu(){this.entityLayer.hasContextMenu()&&this.entityLayer.unbindContextMenu()}processDivData(l){let o={"--theme-color1":"theme_color","--theme-font-color1":"font_color","--theme-color2":"theme_color2","--theme-color3":"theme_color3"},p={title:"",theme_color:"",font_color:"",content:"",divType:"",divStyle:{}};const d=document.createElement("div");d.innerHTML=l;const u=d.querySelector(".entity-div-style");return console.log("解耦",u),Object.keys(o).forEach(m=>{m=="--theme-color2"||m=="--theme-color3"?p.divStyle[o[m]]=u.style.getPropertyValue(m)||"#fff":p[o[m]]=u.style.getPropertyValue(m)}),p.title=u.querySelector(".title")?u.querySelector(".title").innerText:"标题",p.content=u.querySelector(".content")?u.querySelector(".content").innerText:"内容",p.divType=u.classList[1]?u.classList[1].replace("entity-div-style",""):"",p}updateHtml(l,o){let{theme_color:p,font_color:d,title:u,content:m,divStyle:_}=o,{theme_color2:T,theme_color3:S}=_,C="";switch(l){case"1":C=`<div class="entity-div-style entity-div-style1" style="--theme-color1:${p};--theme-font-color1:${d};">
|
|
2638
|
+
<div class="title">${u}</div>
|
|
2639
|
+
</div>`;break;case"2":C=`<div class="entity-div-style entity-div-style2" style="--theme-color1:${p};--theme-font-color1:${d};">
|
|
2640
|
+
<div class="title">${u}</div>
|
|
2641
2641
|
<div class="mars3d-divUpLabel-line"></div>
|
|
2642
|
-
</div>`;break;case"3":
|
|
2642
|
+
</div>`;break;case"3":C=`<div class="entity-div-style entity-div-style3" style="--theme-color1:${p};--theme-font-color1:${d};--theme-color2:${T};--theme-color3:${S}">
|
|
2643
2643
|
<div class="image"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div>
|
|
2644
|
-
<div class="infotop"><div class="title">${
|
|
2645
|
-
</div >`;break;case"4":
|
|
2646
|
-
<div class="title">${
|
|
2647
|
-
</div >`;break;case"5":
|
|
2644
|
+
<div class="infotop"><div class="title">${u}</div><div class="content overflow-auto scrollbar h-full">${m}</div></div>
|
|
2645
|
+
</div >`;break;case"4":C=`<div class="entity-div-style entity-div-style4" style="--theme-color1:${p};--theme-font-color1:${d};">
|
|
2646
|
+
<div class="title">${u}</div>
|
|
2647
|
+
</div >`;break;case"5":C=`<div class="entity-div-style entity-div-style5 marsTiltPanel marsTiltPanel-theme-green" style="--theme-color1:${p};--theme-font-color1:${d};--theme-color2:${T};">
|
|
2648
2648
|
<div class="marsTiltPanel-wrap">
|
|
2649
2649
|
<div class="area">
|
|
2650
2650
|
<div class="arrow-lt"></div>
|
|
@@ -2654,23 +2654,23 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2654
2654
|
<div class="b-l"></div>
|
|
2655
2655
|
<div class="arrow-rb"></div>
|
|
2656
2656
|
<div class="label-wrap">
|
|
2657
|
-
<div class="title">${
|
|
2658
|
-
<div class="content">${
|
|
2657
|
+
<div class="title">${u}</div>
|
|
2658
|
+
<div class="content">${m}</div>
|
|
2659
2659
|
</div>
|
|
2660
2660
|
</div>
|
|
2661
2661
|
<div class="b-t-l"></div>
|
|
2662
2662
|
<div class="b-b-r"></div>
|
|
2663
2663
|
</div>
|
|
2664
2664
|
<div class="arrow"></div>
|
|
2665
|
-
</div >`;break;case"6":
|
|
2666
|
-
<div class="title">${
|
|
2667
|
-
</div >`;break;case"7":
|
|
2668
|
-
<div class="title">${
|
|
2665
|
+
</div >`;break;case"6":C=`<div class="entity-div-style entity-div-style6" style="--theme-color1:${p};--theme-font-color1:${d};--theme-color2:${T};">
|
|
2666
|
+
<div class="title">${u}</div>
|
|
2667
|
+
</div >`;break;case"7":C=`<div class="entity-div-style entity-div-style7" style="--theme-color1:${p};--theme-font-color1:${d};">
|
|
2668
|
+
<div class="title">${u}</div>
|
|
2669
2669
|
<div class="pile-number">
|
|
2670
2670
|
<div class="circular"></div>
|
|
2671
2671
|
<div class="pole"></div>
|
|
2672
2672
|
</div>
|
|
2673
|
-
</div >`;break}return
|
|
2673
|
+
</div >`;break}return C}}function su(w){throw new Error('Could not dynamically require "'+w+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Mf={exports:{}};/*!
|
|
2674
2674
|
|
|
2675
2675
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
2676
2676
|
<http://stuartk.com/jszip>
|
|
@@ -2680,5 +2680,21 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2680
2680
|
|
|
2681
2681
|
JSZip uses the library pako released under the MIT license :
|
|
2682
2682
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
2683
|
-
*/(function(
|
|
2684
|
-
\0`,xe+=m(Dt,2),xe+=z.magic,xe+=m(M,2),xe+=m(x,2),xe+=m(Ft.crc32,4),xe+=m(Ft.compressedSize,4),xe+=m(Ft.uncompressedSize,4),xe+=m(ht.length,2),xe+=m(Bt.length,2),{fileRecord:H.LOCAL_FILE_HEADER+xe+ht+Bt,dirRecord:H.CENTRAL_FILE_HEADER+m(Fe,2)+xe+m(zt.length,2)+"\0\0\0\0"+m(kt,4)+m(A,4)+ht+Bt+zt}}var O=p("../utils"),E=p("../stream/GenericWorker"),U=p("../utf8"),Y=p("../crc32"),H=p("../signature");function K(B,q,b,A){E.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=q,this.zipPlatform=b,this.encodeFileName=A,this.streamFiles=B,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}O.inherits(K,E),K.prototype.push=function(B){var q=B.meta.percent||0,b=this.entriesCount,A=this._sources.length;this.accumulate?this.contentBuffer.push(B):(this.bytesWritten+=B.data.length,E.prototype.push.call(this,{data:B.data,meta:{currentFile:this.currentFile,percent:b?(q+100*(b-A-1))/b:100}}))},K.prototype.openedSource=function(B){this.currentSourceOffset=this.bytesWritten,this.currentFile=B.file.name;var q=this.streamFiles&&!B.file.dir;if(q){var b=C(B,q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},K.prototype.closedSource=function(B){this.accumulate=!1;var q=this.streamFiles&&!B.file.dir,b=C(B,q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),q)this.push({data:function(A){return H.DATA_DESCRIPTOR+m(A.crc32,4)+m(A.compressedSize,4)+m(A.uncompressedSize,4)}(B),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},K.prototype.flush=function(){for(var B=this.bytesWritten,q=0;q<this.dirRecords.length;q++)this.push({data:this.dirRecords[q],meta:{percent:100}});var b=this.bytesWritten-B,A=function(d,g,M,x,F){var z=O.transformTo("string",F(x));return H.CENTRAL_DIRECTORY_END+"\0\0\0\0"+m(d,2)+m(d,2)+m(g,4)+m(M,4)+m(z.length,2)+z}(this.dirRecords.length,b,B,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},K.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},K.prototype.registerPrevious=function(B){this._sources.push(B);var q=this;return B.on("data",function(b){q.processChunk(b)}),B.on("end",function(){q.closedSource(q.previous.streamInfo),q._sources.length?q.prepareNextSource():q.end()}),B.on("error",function(b){q.error(b)}),this},K.prototype.resume=function(){return!!E.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},K.prototype.error=function(B){var q=this._sources;if(!E.prototype.error.call(this,B))return!1;for(var b=0;b<q.length;b++)try{q[b].error(B)}catch{}return!0},K.prototype.lock=function(){E.prototype.lock.call(this);for(var B=this._sources,q=0;q<B.length;q++)B[q].lock()},J.exports=K},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,J,G){var m=p("../compressions"),C=p("./ZipFileWorker");G.generateWorker=function(O,E,U){var Y=new C(E.streamFiles,U,E.platform,E.encodeFileName),H=0;try{O.forEach(function(K,B){H++;var q=function(g,M){var x=g||M,F=m[x];if(!F)throw new Error(x+" is not a valid compression method !");return F}(B.options.compression,E.compression),b=B.options.compressionOptions||E.compressionOptions||{},A=B.dir,d=B.date;B._compressWorker(q,b).withStreamInfo("file",{name:K,dir:A,date:d,comment:B.comment||"",unixPermissions:B.unixPermissions,dosPermissions:B.dosPermissions}).pipe(Y)}),Y.entriesCount=H}catch(K){Y.error(K)}return Y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,J,G){function m(){if(!(this instanceof m))return new m;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var C=new m;for(var O in this)typeof this[O]!="function"&&(C[O]=this[O]);return C}}(m.prototype=p("./object")).loadAsync=p("./load"),m.support=p("./support"),m.defaults=p("./defaults"),m.version="3.10.1",m.loadAsync=function(C,O){return new m().loadAsync(C,O)},m.external=p("./external"),J.exports=m},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,J,G){var m=p("./utils"),C=p("./external"),O=p("./utf8"),E=p("./zipEntries"),U=p("./stream/Crc32Probe"),Y=p("./nodejsUtils");function H(K){return new C.Promise(function(B,q){var b=K.decompressed.getContentWorker().pipe(new U);b.on("error",function(A){q(A)}).on("end",function(){b.streamInfo.crc32!==K.decompressed.crc32?q(new Error("Corrupted zip : CRC32 mismatch")):B()}).resume()})}J.exports=function(K,B){var q=this;return B=m.extend(B||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:O.utf8decode}),Y.isNode&&Y.isStream(K)?C.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):m.prepareContent("the loaded zip file",K,!0,B.optimizedBinaryString,B.base64).then(function(b){var A=new E(B);return A.load(b),A}).then(function(b){var A=[C.Promise.resolve(b)],d=b.files;if(B.checkCRC32)for(var g=0;g<d.length;g++)A.push(H(d[g]));return C.Promise.all(A)}).then(function(b){for(var A=b.shift(),d=A.files,g=0;g<d.length;g++){var M=d[g],x=M.fileNameStr,F=m.resolve(M.fileNameStr);q.file(F,M.decompressed,{binary:!0,optimizedBinaryString:!0,date:M.date,dir:M.dir,comment:M.fileCommentStr.length?M.fileCommentStr:null,unixPermissions:M.unixPermissions,dosPermissions:M.dosPermissions,createFolders:B.createFolders}),M.dir||(q.file(F).unsafeOriginalName=x)}return A.zipComment.length&&(q.comment=A.zipComment),q})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,J,G){var m=p("../utils"),C=p("../stream/GenericWorker");function O(E,U){C.call(this,"Nodejs stream input adapter for "+E),this._upstreamEnded=!1,this._bindStream(U)}m.inherits(O,C),O.prototype._bindStream=function(E){var U=this;(this._stream=E).pause(),E.on("data",function(Y){U.push({data:Y,meta:{percent:0}})}).on("error",function(Y){U.isPaused?this.generatedError=Y:U.error(Y)}).on("end",function(){U.isPaused?U._upstreamEnded=!0:U.end()})},O.prototype.pause=function(){return!!C.prototype.pause.call(this)&&(this._stream.pause(),!0)},O.prototype.resume=function(){return!!C.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},J.exports=O},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,J,G){var m=p("readable-stream").Readable;function C(O,E,U){m.call(this,E),this._helper=O;var Y=this;O.on("data",function(H,K){Y.push(H)||Y._helper.pause(),U&&U(K)}).on("error",function(H){Y.emit("error",H)}).on("end",function(){Y.push(null)})}p("../utils").inherits(C,m),C.prototype._read=function(){this._helper.resume()},J.exports=C},{"../utils":32,"readable-stream":16}],14:[function(p,J,G){J.exports={isNode:typeof Buffer<"u",newBufferFrom:function(m,C){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(m,C);if(typeof m=="number")throw new Error('The "data" argument must not be a number');return new Buffer(m,C)},allocBuffer:function(m){if(Buffer.alloc)return Buffer.alloc(m);var C=new Buffer(m);return C.fill(0),C},isBuffer:function(m){return Buffer.isBuffer(m)},isStream:function(m){return m&&typeof m.on=="function"&&typeof m.pause=="function"&&typeof m.resume=="function"}}},{}],15:[function(p,J,G){function m(F,z,W){var ht,ft=O.getTypeOf(z),gt=O.extend(W||{},Y);gt.date=gt.date||new Date,gt.compression!==null&&(gt.compression=gt.compression.toUpperCase()),typeof gt.unixPermissions=="string"&&(gt.unixPermissions=parseInt(gt.unixPermissions,8)),gt.unixPermissions&&16384>.unixPermissions&&(gt.dir=!0),gt.dosPermissions&&16>.dosPermissions&&(gt.dir=!0),gt.dir&&(F=d(F)),gt.createFolders&&(ht=A(F))&&g.call(this,ht,!0);var zt=ft==="string"&>.binary===!1&>.base64===!1;W&&W.binary!==void 0||(gt.binary=!zt),(z instanceof H&&z.uncompressedSize===0||gt.dir||!z||z.length===0)&&(gt.base64=!1,gt.binary=!0,z="",gt.compression="STORE",ft="string");var lt=null;lt=z instanceof H||z instanceof E?z:q.isNode&&q.isStream(z)?new b(F,z):O.prepareContent(F,z,gt.binary,gt.optimizedBinaryString,gt.base64);var Et=new K(F,lt,gt);this.files[F]=Et}var C=p("./utf8"),O=p("./utils"),E=p("./stream/GenericWorker"),U=p("./stream/StreamHelper"),Y=p("./defaults"),H=p("./compressedObject"),K=p("./zipObject"),B=p("./generate"),q=p("./nodejsUtils"),b=p("./nodejs/NodejsStreamInputAdapter"),A=function(F){F.slice(-1)==="/"&&(F=F.substring(0,F.length-1));var z=F.lastIndexOf("/");return 0<z?F.substring(0,z):""},d=function(F){return F.slice(-1)!=="/"&&(F+="/"),F},g=function(F,z){return z=z!==void 0?z:Y.createFolders,F=d(F),this.files[F]||m.call(this,F,null,{dir:!0,createFolders:z}),this.files[F]};function M(F){return Object.prototype.toString.call(F)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(F){var z,W,ht;for(z in this.files)ht=this.files[z],(W=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&F(W,ht)},filter:function(F){var z=[];return this.forEach(function(W,ht){F(W,ht)&&z.push(ht)}),z},file:function(F,z,W){if(arguments.length!==1)return F=this.root+F,m.call(this,F,z,W),this;if(M(F)){var ht=F;return this.filter(function(gt,zt){return!zt.dir&&ht.test(gt)})}var ft=this.files[this.root+F];return ft&&!ft.dir?ft:null},folder:function(F){if(!F)return this;if(M(F))return this.filter(function(ft,gt){return gt.dir&&F.test(ft)});var z=this.root+F,W=g.call(this,z),ht=this.clone();return ht.root=W.name,ht},remove:function(F){F=this.root+F;var z=this.files[F];if(z||(F.slice(-1)!=="/"&&(F+="/"),z=this.files[F]),z&&!z.dir)delete this.files[F];else for(var W=this.filter(function(ft,gt){return gt.name.slice(0,F.length)===F}),ht=0;ht<W.length;ht++)delete this.files[W[ht].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(F){var z,W={};try{if((W=O.extend(F||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:C.utf8encode})).type=W.type.toLowerCase(),W.compression=W.compression.toUpperCase(),W.type==="binarystring"&&(W.type="string"),!W.type)throw new Error("No output type specified.");O.checkSupport(W.type),W.platform!=="darwin"&&W.platform!=="freebsd"&&W.platform!=="linux"&&W.platform!=="sunos"||(W.platform="UNIX"),W.platform==="win32"&&(W.platform="DOS");var ht=W.comment||this.comment||"";z=B.generateWorker(this,W,ht)}catch(ft){(z=new E("error")).error(ft)}return new U(z,W.type||"string",W.mimeType)},generateAsync:function(F,z){return this.generateInternalStream(F).accumulate(z)},generateNodeStream:function(F,z){return(F=F||{}).type||(F.type="nodebuffer"),this.generateInternalStream(F).toNodejsStream(z)}};J.exports=x},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(p,J,G){J.exports=p("stream")},{stream:void 0}],17:[function(p,J,G){var m=p("./DataReader");function C(O){m.call(this,O);for(var E=0;E<this.data.length;E++)O[E]=255&O[E]}p("../utils").inherits(C,m),C.prototype.byteAt=function(O){return this.data[this.zero+O]},C.prototype.lastIndexOfSignature=function(O){for(var E=O.charCodeAt(0),U=O.charCodeAt(1),Y=O.charCodeAt(2),H=O.charCodeAt(3),K=this.length-4;0<=K;--K)if(this.data[K]===E&&this.data[K+1]===U&&this.data[K+2]===Y&&this.data[K+3]===H)return K-this.zero;return-1},C.prototype.readAndCheckSignature=function(O){var E=O.charCodeAt(0),U=O.charCodeAt(1),Y=O.charCodeAt(2),H=O.charCodeAt(3),K=this.readData(4);return E===K[0]&&U===K[1]&&Y===K[2]&&H===K[3]},C.prototype.readData=function(O){if(this.checkOffset(O),O===0)return[];var E=this.data.slice(this.zero+this.index,this.zero+this.index+O);return this.index+=O,E},J.exports=C},{"../utils":32,"./DataReader":18}],18:[function(p,J,G){var m=p("../utils");function C(O){this.data=O,this.length=O.length,this.index=0,this.zero=0}C.prototype={checkOffset:function(O){this.checkIndex(this.index+O)},checkIndex:function(O){if(this.length<this.zero+O||O<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+O+"). Corrupted zip ?")},setIndex:function(O){this.checkIndex(O),this.index=O},skip:function(O){this.setIndex(this.index+O)},byteAt:function(){},readInt:function(O){var E,U=0;for(this.checkOffset(O),E=this.index+O-1;E>=this.index;E--)U=(U<<8)+this.byteAt(E);return this.index+=O,U},readString:function(O){return m.transformTo("string",this.readData(O))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var O=this.readInt(4);return new Date(Date.UTC(1980+(O>>25&127),(O>>21&15)-1,O>>16&31,O>>11&31,O>>5&63,(31&O)<<1))}},J.exports=C},{"../utils":32}],19:[function(p,J,G){var m=p("./Uint8ArrayReader");function C(O){m.call(this,O)}p("../utils").inherits(C,m),C.prototype.readData=function(O){this.checkOffset(O);var E=this.data.slice(this.zero+this.index,this.zero+this.index+O);return this.index+=O,E},J.exports=C},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,J,G){var m=p("./DataReader");function C(O){m.call(this,O)}p("../utils").inherits(C,m),C.prototype.byteAt=function(O){return this.data.charCodeAt(this.zero+O)},C.prototype.lastIndexOfSignature=function(O){return this.data.lastIndexOf(O)-this.zero},C.prototype.readAndCheckSignature=function(O){return O===this.readData(4)},C.prototype.readData=function(O){this.checkOffset(O);var E=this.data.slice(this.zero+this.index,this.zero+this.index+O);return this.index+=O,E},J.exports=C},{"../utils":32,"./DataReader":18}],21:[function(p,J,G){var m=p("./ArrayReader");function C(O){m.call(this,O)}p("../utils").inherits(C,m),C.prototype.readData=function(O){if(this.checkOffset(O),O===0)return new Uint8Array(0);var E=this.data.subarray(this.zero+this.index,this.zero+this.index+O);return this.index+=O,E},J.exports=C},{"../utils":32,"./ArrayReader":17}],22:[function(p,J,G){var m=p("../utils"),C=p("../support"),O=p("./ArrayReader"),E=p("./StringReader"),U=p("./NodeBufferReader"),Y=p("./Uint8ArrayReader");J.exports=function(H){var K=m.getTypeOf(H);return m.checkSupport(K),K!=="string"||C.uint8array?K==="nodebuffer"?new U(H):C.uint8array?new Y(m.transformTo("uint8array",H)):new O(m.transformTo("array",H)):new E(H)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,J,G){G.LOCAL_FILE_HEADER="PK",G.CENTRAL_FILE_HEADER="PK",G.CENTRAL_DIRECTORY_END="PK",G.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",G.ZIP64_CENTRAL_DIRECTORY_END="PK",G.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,J,G){var m=p("./GenericWorker"),C=p("../utils");function O(E){m.call(this,"ConvertWorker to "+E),this.destType=E}C.inherits(O,m),O.prototype.processChunk=function(E){this.push({data:C.transformTo(this.destType,E.data),meta:E.meta})},J.exports=O},{"../utils":32,"./GenericWorker":28}],25:[function(p,J,G){var m=p("./GenericWorker"),C=p("../crc32");function O(){m.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(O,m),O.prototype.processChunk=function(E){this.streamInfo.crc32=C(E.data,this.streamInfo.crc32||0),this.push(E)},J.exports=O},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,J,G){var m=p("../utils"),C=p("./GenericWorker");function O(E){C.call(this,"DataLengthProbe for "+E),this.propName=E,this.withStreamInfo(E,0)}m.inherits(O,C),O.prototype.processChunk=function(E){if(E){var U=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=U+E.data.length}C.prototype.processChunk.call(this,E)},J.exports=O},{"../utils":32,"./GenericWorker":28}],27:[function(p,J,G){var m=p("../utils"),C=p("./GenericWorker");function O(E){C.call(this,"DataWorker");var U=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,E.then(function(Y){U.dataIsReady=!0,U.data=Y,U.max=Y&&Y.length||0,U.type=m.getTypeOf(Y),U.isPaused||U._tickAndRepeat()},function(Y){U.error(Y)})}m.inherits(O,C),O.prototype.cleanUp=function(){C.prototype.cleanUp.call(this),this.data=null},O.prototype.resume=function(){return!!C.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,m.delay(this._tickAndRepeat,[],this)),!0)},O.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(m.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},O.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var E=null,U=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":E=this.data.substring(this.index,U);break;case"uint8array":E=this.data.subarray(this.index,U);break;case"array":case"nodebuffer":E=this.data.slice(this.index,U)}return this.index=U,this.push({data:E,meta:{percent:this.max?this.index/this.max*100:0}})},J.exports=O},{"../utils":32,"./GenericWorker":28}],28:[function(p,J,G){function m(C){this.name=C||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}m.prototype={push:function(C){this.emit("data",C)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(C){this.emit("error",C)}return!0},error:function(C){return!this.isFinished&&(this.isPaused?this.generatedError=C:(this.isFinished=!0,this.emit("error",C),this.previous&&this.previous.error(C),this.cleanUp()),!0)},on:function(C,O){return this._listeners[C].push(O),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(C,O){if(this._listeners[C])for(var E=0;E<this._listeners[C].length;E++)this._listeners[C][E].call(this,O)},pipe:function(C){return C.registerPrevious(this)},registerPrevious:function(C){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=C.streamInfo,this.mergeStreamInfo(),this.previous=C;var O=this;return C.on("data",function(E){O.processChunk(E)}),C.on("end",function(){O.end()}),C.on("error",function(E){O.error(E)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var C=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),C=!0),this.previous&&this.previous.resume(),!C},flush:function(){},processChunk:function(C){this.push(C)},withStreamInfo:function(C,O){return this.extraStreamInfo[C]=O,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var C in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,C)&&(this.streamInfo[C]=this.extraStreamInfo[C])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var C="Worker "+this.name;return this.previous?this.previous+" -> "+C:C}},J.exports=m},{}],29:[function(p,J,G){var m=p("../utils"),C=p("./ConvertWorker"),O=p("./GenericWorker"),E=p("../base64"),U=p("../support"),Y=p("../external"),H=null;if(U.nodestream)try{H=p("../nodejs/NodejsStreamOutputAdapter")}catch{}function K(q,b){return new Y.Promise(function(A,d){var g=[],M=q._internalType,x=q._outputType,F=q._mimeType;q.on("data",function(z,W){g.push(z),b&&b(W)}).on("error",function(z){g=[],d(z)}).on("end",function(){try{var z=function(W,ht,ft){switch(W){case"blob":return m.newBlob(m.transformTo("arraybuffer",ht),ft);case"base64":return E.encode(ht);default:return m.transformTo(W,ht)}}(x,function(W,ht){var ft,gt=0,zt=null,lt=0;for(ft=0;ft<ht.length;ft++)lt+=ht[ft].length;switch(W){case"string":return ht.join("");case"array":return Array.prototype.concat.apply([],ht);case"uint8array":for(zt=new Uint8Array(lt),ft=0;ft<ht.length;ft++)zt.set(ht[ft],gt),gt+=ht[ft].length;return zt;case"nodebuffer":return Buffer.concat(ht);default:throw new Error("concat : unsupported type '"+W+"'")}}(M,g),F);A(z)}catch(W){d(W)}g=[]}).resume()})}function B(q,b,A){var d=b;switch(b){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=b,this._mimeType=A,m.checkSupport(d),this._worker=q.pipe(new C(d)),q.lock()}catch(g){this._worker=new O("error"),this._worker.error(g)}}B.prototype={accumulate:function(q){return K(this,q)},on:function(q,b){var A=this;return q==="data"?this._worker.on(q,function(d){b.call(A,d.data,d.meta)}):this._worker.on(q,function(){m.delay(b,arguments,A)}),this},resume:function(){return m.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(q){if(m.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new H(this,{objectMode:this._outputType!=="nodebuffer"},q)}},J.exports=B},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,J,G){if(G.base64=!0,G.array=!0,G.string=!0,G.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",G.nodebuffer=typeof Buffer<"u",G.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")G.blob=!1;else{var m=new ArrayBuffer(0);try{G.blob=new Blob([m],{type:"application/zip"}).size===0}catch{try{var C=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);C.append(m),G.blob=C.getBlob("application/zip").size===0}catch{G.blob=!1}}}try{G.nodestream=!!p("readable-stream").Readable}catch{G.nodestream=!1}},{"readable-stream":16}],31:[function(p,J,G){for(var m=p("./utils"),C=p("./support"),O=p("./nodejsUtils"),E=p("./stream/GenericWorker"),U=new Array(256),Y=0;Y<256;Y++)U[Y]=252<=Y?6:248<=Y?5:240<=Y?4:224<=Y?3:192<=Y?2:1;U[254]=U[254]=1;function H(){E.call(this,"utf-8 decode"),this.leftOver=null}function K(){E.call(this,"utf-8 encode")}G.utf8encode=function(B){return C.nodebuffer?O.newBufferFrom(B,"utf-8"):function(q){var b,A,d,g,M,x=q.length,F=0;for(g=0;g<x;g++)(64512&(A=q.charCodeAt(g)))==55296&&g+1<x&&(64512&(d=q.charCodeAt(g+1)))==56320&&(A=65536+(A-55296<<10)+(d-56320),g++),F+=A<128?1:A<2048?2:A<65536?3:4;for(b=C.uint8array?new Uint8Array(F):new Array(F),g=M=0;M<F;g++)(64512&(A=q.charCodeAt(g)))==55296&&g+1<x&&(64512&(d=q.charCodeAt(g+1)))==56320&&(A=65536+(A-55296<<10)+(d-56320),g++),A<128?b[M++]=A:(A<2048?b[M++]=192|A>>>6:(A<65536?b[M++]=224|A>>>12:(b[M++]=240|A>>>18,b[M++]=128|A>>>12&63),b[M++]=128|A>>>6&63),b[M++]=128|63&A);return b}(B)},G.utf8decode=function(B){return C.nodebuffer?m.transformTo("nodebuffer",B).toString("utf-8"):function(q){var b,A,d,g,M=q.length,x=new Array(2*M);for(b=A=0;b<M;)if((d=q[b++])<128)x[A++]=d;else if(4<(g=U[d]))x[A++]=65533,b+=g-1;else{for(d&=g===2?31:g===3?15:7;1<g&&b<M;)d=d<<6|63&q[b++],g--;1<g?x[A++]=65533:d<65536?x[A++]=d:(d-=65536,x[A++]=55296|d>>10&1023,x[A++]=56320|1023&d)}return x.length!==A&&(x.subarray?x=x.subarray(0,A):x.length=A),m.applyFromCharCode(x)}(B=m.transformTo(C.uint8array?"uint8array":"array",B))},m.inherits(H,E),H.prototype.processChunk=function(B){var q=m.transformTo(C.uint8array?"uint8array":"array",B.data);if(this.leftOver&&this.leftOver.length){if(C.uint8array){var b=q;(q=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),q.set(b,this.leftOver.length)}else q=this.leftOver.concat(q);this.leftOver=null}var A=function(g,M){var x;for((M=M||g.length)>g.length&&(M=g.length),x=M-1;0<=x&&(192&g[x])==128;)x--;return x<0||x===0?M:x+U[g[x]]>M?x:M}(q),d=q;A!==q.length&&(C.uint8array?(d=q.subarray(0,A),this.leftOver=q.subarray(A,q.length)):(d=q.slice(0,A),this.leftOver=q.slice(A,q.length))),this.push({data:G.utf8decode(d),meta:B.meta})},H.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:G.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},G.Utf8DecodeWorker=H,m.inherits(K,E),K.prototype.processChunk=function(B){this.push({data:G.utf8encode(B.data),meta:B.meta})},G.Utf8EncodeWorker=K},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,J,G){var m=p("./support"),C=p("./base64"),O=p("./nodejsUtils"),E=p("./external");function U(b){return b}function Y(b,A){for(var d=0;d<b.length;++d)A[d]=255&b.charCodeAt(d);return A}p("setimmediate"),G.newBlob=function(b,A){G.checkSupport("blob");try{return new Blob([b],{type:A})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(b),d.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var H={stringifyByChunk:function(b,A,d){var g=[],M=0,x=b.length;if(x<=d)return String.fromCharCode.apply(null,b);for(;M<x;)A==="array"||A==="nodebuffer"?g.push(String.fromCharCode.apply(null,b.slice(M,Math.min(M+d,x)))):g.push(String.fromCharCode.apply(null,b.subarray(M,Math.min(M+d,x)))),M+=d;return g.join("")},stringifyByChar:function(b){for(var A="",d=0;d<b.length;d++)A+=String.fromCharCode(b[d]);return A},applyCanBeUsed:{uint8array:function(){try{return m.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return m.nodebuffer&&String.fromCharCode.apply(null,O.allocBuffer(1)).length===1}catch{return!1}}()}};function K(b){var A=65536,d=G.getTypeOf(b),g=!0;if(d==="uint8array"?g=H.applyCanBeUsed.uint8array:d==="nodebuffer"&&(g=H.applyCanBeUsed.nodebuffer),g)for(;1<A;)try{return H.stringifyByChunk(b,d,A)}catch{A=Math.floor(A/2)}return H.stringifyByChar(b)}function B(b,A){for(var d=0;d<b.length;d++)A[d]=b[d];return A}G.applyFromCharCode=K;var q={};q.string={string:U,array:function(b){return Y(b,new Array(b.length))},arraybuffer:function(b){return q.string.uint8array(b).buffer},uint8array:function(b){return Y(b,new Uint8Array(b.length))},nodebuffer:function(b){return Y(b,O.allocBuffer(b.length))}},q.array={string:K,array:U,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return O.newBufferFrom(b)}},q.arraybuffer={string:function(b){return K(new Uint8Array(b))},array:function(b){return B(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:U,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return O.newBufferFrom(new Uint8Array(b))}},q.uint8array={string:K,array:function(b){return B(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:U,nodebuffer:function(b){return O.newBufferFrom(b)}},q.nodebuffer={string:K,array:function(b){return B(b,new Array(b.length))},arraybuffer:function(b){return q.nodebuffer.uint8array(b).buffer},uint8array:function(b){return B(b,new Uint8Array(b.length))},nodebuffer:U},G.transformTo=function(b,A){if(A=A||"",!b)return A;G.checkSupport(b);var d=G.getTypeOf(A);return q[d][b](A)},G.resolve=function(b){for(var A=b.split("/"),d=[],g=0;g<A.length;g++){var M=A[g];M==="."||M===""&&g!==0&&g!==A.length-1||(M===".."?d.pop():d.push(M))}return d.join("/")},G.getTypeOf=function(b){return typeof b=="string"?"string":Object.prototype.toString.call(b)==="[object Array]"?"array":m.nodebuffer&&O.isBuffer(b)?"nodebuffer":m.uint8array&&b instanceof Uint8Array?"uint8array":m.arraybuffer&&b instanceof ArrayBuffer?"arraybuffer":void 0},G.checkSupport=function(b){if(!m[b.toLowerCase()])throw new Error(b+" is not supported by this platform")},G.MAX_VALUE_16BITS=65535,G.MAX_VALUE_32BITS=-1,G.pretty=function(b){var A,d,g="";for(d=0;d<(b||"").length;d++)g+="\\x"+((A=b.charCodeAt(d))<16?"0":"")+A.toString(16).toUpperCase();return g},G.delay=function(b,A,d){setImmediate(function(){b.apply(d||null,A||[])})},G.inherits=function(b,A){function d(){}d.prototype=A.prototype,b.prototype=new d},G.extend=function(){var b,A,d={};for(b=0;b<arguments.length;b++)for(A in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],A)&&d[A]===void 0&&(d[A]=arguments[b][A]);return d},G.prepareContent=function(b,A,d,g,M){return E.Promise.resolve(A).then(function(x){return m.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader<"u"?new E.Promise(function(F,z){var W=new FileReader;W.onload=function(ht){F(ht.target.result)},W.onerror=function(ht){z(ht.target.error)},W.readAsArrayBuffer(x)}):x}).then(function(x){var F=G.getTypeOf(x);return F?(F==="arraybuffer"?x=G.transformTo("uint8array",x):F==="string"&&(M?x=C.decode(x):d&&g!==!0&&(x=function(z){return Y(z,m.uint8array?new Uint8Array(z.length):new Array(z.length))}(x))),x):E.Promise.reject(new Error("Can't read the data of '"+b+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(p,J,G){var m=p("./reader/readerFor"),C=p("./utils"),O=p("./signature"),E=p("./zipEntry"),U=p("./support");function Y(H){this.files=[],this.loadOptions=H}Y.prototype={checkSignature:function(H){if(!this.reader.readAndCheckSignature(H)){this.reader.index-=4;var K=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+C.pretty(K)+", expected "+C.pretty(H)+")")}},isSignature:function(H,K){var B=this.reader.index;this.reader.setIndex(H);var q=this.reader.readString(4)===K;return this.reader.setIndex(B),q},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var H=this.reader.readData(this.zipCommentLength),K=U.uint8array?"uint8array":"array",B=C.transformTo(K,H);this.zipComment=this.loadOptions.decodeFileName(B)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var H,K,B,q=this.zip64EndOfCentralSize-44;0<q;)H=this.reader.readInt(2),K=this.reader.readInt(4),B=this.reader.readData(K),this.zip64ExtensibleData[H]={id:H,length:K,value:B}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var H,K;for(H=0;H<this.files.length;H++)K=this.files[H],this.reader.setIndex(K.localHeaderOffset),this.checkSignature(O.LOCAL_FILE_HEADER),K.readLocalPart(this.reader),K.handleUTF8(),K.processAttributes()},readCentralDir:function(){var H;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(O.CENTRAL_FILE_HEADER);)(H=new E({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(H);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var H=this.reader.lastIndexOfSignature(O.CENTRAL_DIRECTORY_END);if(H<0)throw this.isSignature(0,O.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(H);var K=H;if(this.checkSignature(O.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===C.MAX_VALUE_16BITS||this.diskWithCentralDirStart===C.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===C.MAX_VALUE_16BITS||this.centralDirRecords===C.MAX_VALUE_16BITS||this.centralDirSize===C.MAX_VALUE_32BITS||this.centralDirOffset===C.MAX_VALUE_32BITS){if(this.zip64=!0,(H=this.reader.lastIndexOfSignature(O.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(H),this.checkSignature(O.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,O.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(O.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(O.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var B=this.centralDirOffset+this.centralDirSize;this.zip64&&(B+=20,B+=12+this.zip64EndOfCentralSize);var q=K-B;if(0<q)this.isSignature(K,O.CENTRAL_FILE_HEADER)||(this.reader.zero=q);else if(q<0)throw new Error("Corrupted zip: missing "+Math.abs(q)+" bytes.")},prepareReader:function(H){this.reader=m(H)},load:function(H){this.prepareReader(H),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},J.exports=Y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(p,J,G){var m=p("./reader/readerFor"),C=p("./utils"),O=p("./compressedObject"),E=p("./crc32"),U=p("./utf8"),Y=p("./compressions"),H=p("./support");function K(B,q){this.options=B,this.loadOptions=q}K.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(B){var q,b;if(B.skip(22),this.fileNameLength=B.readInt(2),b=B.readInt(2),this.fileName=B.readData(this.fileNameLength),B.skip(b),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((q=function(A){for(var d in Y)if(Object.prototype.hasOwnProperty.call(Y,d)&&Y[d].magic===A)return Y[d];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+C.pretty(this.compressionMethod)+" unknown (inner file : "+C.transformTo("string",this.fileName)+")");this.decompressed=new O(this.compressedSize,this.uncompressedSize,this.crc32,q,B.readData(this.compressedSize))},readCentralPart:function(B){this.versionMadeBy=B.readInt(2),B.skip(2),this.bitFlag=B.readInt(2),this.compressionMethod=B.readString(2),this.date=B.readDate(),this.crc32=B.readInt(4),this.compressedSize=B.readInt(4),this.uncompressedSize=B.readInt(4);var q=B.readInt(2);if(this.extraFieldsLength=B.readInt(2),this.fileCommentLength=B.readInt(2),this.diskNumberStart=B.readInt(2),this.internalFileAttributes=B.readInt(2),this.externalFileAttributes=B.readInt(4),this.localHeaderOffset=B.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");B.skip(q),this.readExtraFields(B),this.parseZIP64ExtraField(B),this.fileComment=B.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var B=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),B==0&&(this.dosPermissions=63&this.externalFileAttributes),B==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var B=m(this.extraFields[1].value);this.uncompressedSize===C.MAX_VALUE_32BITS&&(this.uncompressedSize=B.readInt(8)),this.compressedSize===C.MAX_VALUE_32BITS&&(this.compressedSize=B.readInt(8)),this.localHeaderOffset===C.MAX_VALUE_32BITS&&(this.localHeaderOffset=B.readInt(8)),this.diskNumberStart===C.MAX_VALUE_32BITS&&(this.diskNumberStart=B.readInt(4))}},readExtraFields:function(B){var q,b,A,d=B.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});B.index+4<d;)q=B.readInt(2),b=B.readInt(2),A=B.readData(b),this.extraFields[q]={id:q,length:b,value:A};B.setIndex(d)},handleUTF8:function(){var B=H.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=U.utf8decode(this.fileName),this.fileCommentStr=U.utf8decode(this.fileComment);else{var q=this.findExtraFieldUnicodePath();if(q!==null)this.fileNameStr=q;else{var b=C.transformTo(B,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var d=C.transformTo(B,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var B=this.extraFields[28789];if(B){var q=m(B.value);return q.readInt(1)!==1||E(this.fileName)!==q.readInt(4)?null:U.utf8decode(q.readData(B.length-5))}return null},findExtraFieldUnicodeComment:function(){var B=this.extraFields[25461];if(B){var q=m(B.value);return q.readInt(1)!==1||E(this.fileComment)!==q.readInt(4)?null:U.utf8decode(q.readData(B.length-5))}return null}},J.exports=K},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,J,G){function m(q,b,A){this.name=q,this.dir=A.dir,this.date=A.date,this.comment=A.comment,this.unixPermissions=A.unixPermissions,this.dosPermissions=A.dosPermissions,this._data=b,this._dataBinary=A.binary,this.options={compression:A.compression,compressionOptions:A.compressionOptions}}var C=p("./stream/StreamHelper"),O=p("./stream/DataWorker"),E=p("./utf8"),U=p("./compressedObject"),Y=p("./stream/GenericWorker");m.prototype={internalStream:function(q){var b=null,A="string";try{if(!q)throw new Error("No output type specified.");var d=(A=q.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),b=this._decompressWorker();var g=!this._dataBinary;g&&!d&&(b=b.pipe(new E.Utf8EncodeWorker)),!g&&d&&(b=b.pipe(new E.Utf8DecodeWorker))}catch(M){(b=new Y("error")).error(M)}return new C(b,A,"")},async:function(q,b){return this.internalStream(q).accumulate(b)},nodeStream:function(q,b){return this.internalStream(q||"nodebuffer").toNodejsStream(b)},_compressWorker:function(q,b){if(this._data instanceof U&&this._data.compression.magic===q.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new E.Utf8EncodeWorker)),U.createWorkerFrom(A,q,b)},_decompressWorker:function(){return this._data instanceof U?this._data.getContentWorker():this._data instanceof Y?this._data:new O(this._data)}};for(var H=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],K=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},B=0;B<H.length;B++)m.prototype[H[B]]=K;J.exports=m},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,J,G){(function(m){var C,O,E=m.MutationObserver||m.WebKitMutationObserver;if(E){var U=0,Y=new E(q),H=m.document.createTextNode("");Y.observe(H,{characterData:!0}),C=function(){H.data=U=++U%2}}else if(m.setImmediate||m.MessageChannel===void 0)C="document"in m&&"onreadystatechange"in m.document.createElement("script")?function(){var b=m.document.createElement("script");b.onreadystatechange=function(){q(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},m.document.documentElement.appendChild(b)}:function(){setTimeout(q,0)};else{var K=new m.MessageChannel;K.port1.onmessage=q,C=function(){K.port2.postMessage(0)}}var B=[];function q(){var b,A;O=!0;for(var d=B.length;d;){for(A=B,B=[],b=-1;++b<d;)A[b]();d=B.length}O=!1}J.exports=function(b){B.push(b)!==1||O||C()}}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(p,J,G){var m=p("immediate");function C(){}var O={},E=["REJECTED"],U=["FULFILLED"],Y=["PENDING"];function H(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=Y,this.queue=[],this.outcome=void 0,d!==C&&b(this,d)}function K(d,g,M){this.promise=d,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}function B(d,g,M){m(function(){var x;try{x=g(M)}catch(F){return O.reject(d,F)}x===d?O.reject(d,new TypeError("Cannot resolve promise with itself")):O.resolve(d,x)})}function q(d){var g=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof g=="function")return function(){g.apply(d,arguments)}}function b(d,g){var M=!1;function x(W){M||(M=!0,O.reject(d,W))}function F(W){M||(M=!0,O.resolve(d,W))}var z=A(function(){g(F,x)});z.status==="error"&&x(z.value)}function A(d,g){var M={};try{M.value=d(g),M.status="success"}catch(x){M.status="error",M.value=x}return M}(J.exports=H).prototype.finally=function(d){if(typeof d!="function")return this;var g=this.constructor;return this.then(function(M){return g.resolve(d()).then(function(){return M})},function(M){return g.resolve(d()).then(function(){throw M})})},H.prototype.catch=function(d){return this.then(null,d)},H.prototype.then=function(d,g){if(typeof d!="function"&&this.state===U||typeof g!="function"&&this.state===E)return this;var M=new this.constructor(C);return this.state!==Y?B(M,this.state===U?d:g,this.outcome):this.queue.push(new K(M,d,g)),M},K.prototype.callFulfilled=function(d){O.resolve(this.promise,d)},K.prototype.otherCallFulfilled=function(d){B(this.promise,this.onFulfilled,d)},K.prototype.callRejected=function(d){O.reject(this.promise,d)},K.prototype.otherCallRejected=function(d){B(this.promise,this.onRejected,d)},O.resolve=function(d,g){var M=A(q,g);if(M.status==="error")return O.reject(d,M.value);var x=M.value;if(x)b(d,x);else{d.state=U,d.outcome=g;for(var F=-1,z=d.queue.length;++F<z;)d.queue[F].callFulfilled(g)}return d},O.reject=function(d,g){d.state=E,d.outcome=g;for(var M=-1,x=d.queue.length;++M<x;)d.queue[M].callRejected(g);return d},H.resolve=function(d){return d instanceof this?d:O.resolve(new this(C),d)},H.reject=function(d){var g=new this(C);return O.reject(g,d)},H.all=function(d){var g=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=d.length,x=!1;if(!M)return this.resolve([]);for(var F=new Array(M),z=0,W=-1,ht=new this(C);++W<M;)ft(d[W],W);return ht;function ft(gt,zt){g.resolve(gt).then(function(lt){F[zt]=lt,++z!==M||x||(x=!0,O.resolve(ht,F))},function(lt){x||(x=!0,O.reject(ht,lt))})}},H.race=function(d){var g=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=d.length,x=!1;if(!M)return this.resolve([]);for(var F=-1,z=new this(C);++F<M;)W=d[F],g.resolve(W).then(function(ht){x||(x=!0,O.resolve(z,ht))},function(ht){x||(x=!0,O.reject(z,ht))});var W;return z}},{immediate:36}],38:[function(p,J,G){var m={};(0,p("./lib/utils/common").assign)(m,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),J.exports=m},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,J,G){var m=p("./zlib/deflate"),C=p("./utils/common"),O=p("./utils/strings"),E=p("./zlib/messages"),U=p("./zlib/zstream"),Y=Object.prototype.toString,H=0,K=-1,B=0,q=8;function b(d){if(!(this instanceof b))return new b(d);this.options=C.assign({level:K,method:q,chunkSize:16384,windowBits:15,memLevel:8,strategy:B,to:""},d||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new U,this.strm.avail_out=0;var M=m.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(M!==H)throw new Error(E[M]);if(g.header&&m.deflateSetHeader(this.strm,g.header),g.dictionary){var x;if(x=typeof g.dictionary=="string"?O.string2buf(g.dictionary):Y.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(M=m.deflateSetDictionary(this.strm,x))!==H)throw new Error(E[M]);this._dict_set=!0}}function A(d,g){var M=new b(g);if(M.push(d,!0),M.err)throw M.msg||E[M.err];return M.result}b.prototype.push=function(d,g){var M,x,F=this.strm,z=this.options.chunkSize;if(this.ended)return!1;x=g===~~g?g:g===!0?4:0,typeof d=="string"?F.input=O.string2buf(d):Y.call(d)==="[object ArrayBuffer]"?F.input=new Uint8Array(d):F.input=d,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new C.Buf8(z),F.next_out=0,F.avail_out=z),(M=m.deflate(F,x))!==1&&M!==H)return this.onEnd(M),!(this.ended=!0);F.avail_out!==0&&(F.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(O.buf2binstring(C.shrinkBuf(F.output,F.next_out))):this.onData(C.shrinkBuf(F.output,F.next_out)))}while((0<F.avail_in||F.avail_out===0)&&M!==1);return x===4?(M=m.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===H):x!==2||(this.onEnd(H),!(F.avail_out=0))},b.prototype.onData=function(d){this.chunks.push(d)},b.prototype.onEnd=function(d){d===H&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=C.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},G.Deflate=b,G.deflate=A,G.deflateRaw=function(d,g){return(g=g||{}).raw=!0,A(d,g)},G.gzip=function(d,g){return(g=g||{}).gzip=!0,A(d,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,J,G){var m=p("./zlib/inflate"),C=p("./utils/common"),O=p("./utils/strings"),E=p("./zlib/constants"),U=p("./zlib/messages"),Y=p("./zlib/zstream"),H=p("./zlib/gzheader"),K=Object.prototype.toString;function B(b){if(!(this instanceof B))return new B(b);this.options=C.assign({chunkSize:16384,windowBits:0,to:""},b||{});var A=this.options;A.raw&&0<=A.windowBits&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),!(0<=A.windowBits&&A.windowBits<16)||b&&b.windowBits||(A.windowBits+=32),15<A.windowBits&&A.windowBits<48&&!(15&A.windowBits)&&(A.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y,this.strm.avail_out=0;var d=m.inflateInit2(this.strm,A.windowBits);if(d!==E.Z_OK)throw new Error(U[d]);this.header=new H,m.inflateGetHeader(this.strm,this.header)}function q(b,A){var d=new B(A);if(d.push(b,!0),d.err)throw d.msg||U[d.err];return d.result}B.prototype.push=function(b,A){var d,g,M,x,F,z,W=this.strm,ht=this.options.chunkSize,ft=this.options.dictionary,gt=!1;if(this.ended)return!1;g=A===~~A?A:A===!0?E.Z_FINISH:E.Z_NO_FLUSH,typeof b=="string"?W.input=O.binstring2buf(b):K.call(b)==="[object ArrayBuffer]"?W.input=new Uint8Array(b):W.input=b,W.next_in=0,W.avail_in=W.input.length;do{if(W.avail_out===0&&(W.output=new C.Buf8(ht),W.next_out=0,W.avail_out=ht),(d=m.inflate(W,E.Z_NO_FLUSH))===E.Z_NEED_DICT&&ft&&(z=typeof ft=="string"?O.string2buf(ft):K.call(ft)==="[object ArrayBuffer]"?new Uint8Array(ft):ft,d=m.inflateSetDictionary(this.strm,z)),d===E.Z_BUF_ERROR&>===!0&&(d=E.Z_OK,gt=!1),d!==E.Z_STREAM_END&&d!==E.Z_OK)return this.onEnd(d),!(this.ended=!0);W.next_out&&(W.avail_out!==0&&d!==E.Z_STREAM_END&&(W.avail_in!==0||g!==E.Z_FINISH&&g!==E.Z_SYNC_FLUSH)||(this.options.to==="string"?(M=O.utf8border(W.output,W.next_out),x=W.next_out-M,F=O.buf2string(W.output,M),W.next_out=x,W.avail_out=ht-x,x&&C.arraySet(W.output,W.output,M,x,0),this.onData(F)):this.onData(C.shrinkBuf(W.output,W.next_out)))),W.avail_in===0&&W.avail_out===0&&(gt=!0)}while((0<W.avail_in||W.avail_out===0)&&d!==E.Z_STREAM_END);return d===E.Z_STREAM_END&&(g=E.Z_FINISH),g===E.Z_FINISH?(d=m.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===E.Z_OK):g!==E.Z_SYNC_FLUSH||(this.onEnd(E.Z_OK),!(W.avail_out=0))},B.prototype.onData=function(b){this.chunks.push(b)},B.prototype.onEnd=function(b){b===E.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=C.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},G.Inflate=B,G.inflate=q,G.inflateRaw=function(b,A){return(A=A||{}).raw=!0,q(b,A)},G.ungzip=q},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(p,J,G){var m=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";G.assign=function(E){for(var U=Array.prototype.slice.call(arguments,1);U.length;){var Y=U.shift();if(Y){if(typeof Y!="object")throw new TypeError(Y+"must be non-object");for(var H in Y)Y.hasOwnProperty(H)&&(E[H]=Y[H])}}return E},G.shrinkBuf=function(E,U){return E.length===U?E:E.subarray?E.subarray(0,U):(E.length=U,E)};var C={arraySet:function(E,U,Y,H,K){if(U.subarray&&E.subarray)E.set(U.subarray(Y,Y+H),K);else for(var B=0;B<H;B++)E[K+B]=U[Y+B]},flattenChunks:function(E){var U,Y,H,K,B,q;for(U=H=0,Y=E.length;U<Y;U++)H+=E[U].length;for(q=new Uint8Array(H),U=K=0,Y=E.length;U<Y;U++)B=E[U],q.set(B,K),K+=B.length;return q}},O={arraySet:function(E,U,Y,H,K){for(var B=0;B<H;B++)E[K+B]=U[Y+B]},flattenChunks:function(E){return[].concat.apply([],E)}};G.setTyped=function(E){E?(G.Buf8=Uint8Array,G.Buf16=Uint16Array,G.Buf32=Int32Array,G.assign(G,C)):(G.Buf8=Array,G.Buf16=Array,G.Buf32=Array,G.assign(G,O))},G.setTyped(m)},{}],42:[function(p,J,G){var m=p("./common"),C=!0,O=!0;try{String.fromCharCode.apply(null,[0])}catch{C=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{O=!1}for(var E=new m.Buf8(256),U=0;U<256;U++)E[U]=252<=U?6:248<=U?5:240<=U?4:224<=U?3:192<=U?2:1;function Y(H,K){if(K<65537&&(H.subarray&&O||!H.subarray&&C))return String.fromCharCode.apply(null,m.shrinkBuf(H,K));for(var B="",q=0;q<K;q++)B+=String.fromCharCode(H[q]);return B}E[254]=E[254]=1,G.string2buf=function(H){var K,B,q,b,A,d=H.length,g=0;for(b=0;b<d;b++)(64512&(B=H.charCodeAt(b)))==55296&&b+1<d&&(64512&(q=H.charCodeAt(b+1)))==56320&&(B=65536+(B-55296<<10)+(q-56320),b++),g+=B<128?1:B<2048?2:B<65536?3:4;for(K=new m.Buf8(g),b=A=0;A<g;b++)(64512&(B=H.charCodeAt(b)))==55296&&b+1<d&&(64512&(q=H.charCodeAt(b+1)))==56320&&(B=65536+(B-55296<<10)+(q-56320),b++),B<128?K[A++]=B:(B<2048?K[A++]=192|B>>>6:(B<65536?K[A++]=224|B>>>12:(K[A++]=240|B>>>18,K[A++]=128|B>>>12&63),K[A++]=128|B>>>6&63),K[A++]=128|63&B);return K},G.buf2binstring=function(H){return Y(H,H.length)},G.binstring2buf=function(H){for(var K=new m.Buf8(H.length),B=0,q=K.length;B<q;B++)K[B]=H.charCodeAt(B);return K},G.buf2string=function(H,K){var B,q,b,A,d=K||H.length,g=new Array(2*d);for(B=q=0;B<d;)if((b=H[B++])<128)g[q++]=b;else if(4<(A=E[b]))g[q++]=65533,B+=A-1;else{for(b&=A===2?31:A===3?15:7;1<A&&B<d;)b=b<<6|63&H[B++],A--;1<A?g[q++]=65533:b<65536?g[q++]=b:(b-=65536,g[q++]=55296|b>>10&1023,g[q++]=56320|1023&b)}return Y(g,q)},G.utf8border=function(H,K){var B;for((K=K||H.length)>H.length&&(K=H.length),B=K-1;0<=B&&(192&H[B])==128;)B--;return B<0||B===0?K:B+E[H[B]]>K?B:K}},{"./common":41}],43:[function(p,J,G){J.exports=function(m,C,O,E){for(var U=65535&m|0,Y=m>>>16&65535|0,H=0;O!==0;){for(O-=H=2e3<O?2e3:O;Y=Y+(U=U+C[E++]|0)|0,--H;);U%=65521,Y%=65521}return U|Y<<16|0}},{}],44:[function(p,J,G){J.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(p,J,G){var m=function(){for(var C,O=[],E=0;E<256;E++){C=E;for(var U=0;U<8;U++)C=1&C?3988292384^C>>>1:C>>>1;O[E]=C}return O}();J.exports=function(C,O,E,U){var Y=m,H=U+E;C^=-1;for(var K=U;K<H;K++)C=C>>>8^Y[255&(C^O[K])];return-1^C}},{}],46:[function(p,J,G){var m,C=p("../utils/common"),O=p("./trees"),E=p("./adler32"),U=p("./crc32"),Y=p("./messages"),H=0,K=4,B=0,q=-2,b=-1,A=4,d=2,g=8,M=9,x=286,F=30,z=19,W=2*x+1,ht=15,ft=3,gt=258,zt=gt+ft+1,lt=42,Et=113,D=1,Bt=2,Ct=3,Rt=4;function ge(R,Jt){return R.msg=Y[Jt],Jt}function ue(R){return(R<<1)-(4<R?9:0)}function Ft(R){for(var Jt=R.length;0<=--Jt;)R[Jt]=0}function Dt(R){var Jt=R.state,jt=Jt.pending;jt>R.avail_out&&(jt=R.avail_out),jt!==0&&(C.arraySet(R.output,Jt.pending_buf,Jt.pending_out,jt,R.next_out),R.next_out+=jt,Jt.pending_out+=jt,R.total_out+=jt,R.avail_out-=jt,Jt.pending-=jt,Jt.pending===0&&(Jt.pending_out=0))}function kt(R,Jt){O._tr_flush_block(R,0<=R.block_start?R.block_start:-1,R.strstart-R.block_start,Jt),R.block_start=R.strstart,Dt(R.strm)}function Fe(R,Jt){R.pending_buf[R.pending++]=Jt}function xe(R,Jt){R.pending_buf[R.pending++]=Jt>>>8&255,R.pending_buf[R.pending++]=255&Jt}function Zt(R,Jt){var jt,ct,pt=R.max_chain_length,Lt=R.strstart,ie=R.prev_length,Kt=R.nice_match,w=R.strstart>R.w_size-zt?R.strstart-(R.w_size-zt):0,X=R.window,nt=R.w_mask,tt=R.prev,vt=R.strstart+gt,Gt=X[Lt+ie-1],Xt=X[Lt+ie];R.prev_length>=R.good_match&&(pt>>=2),Kt>R.lookahead&&(Kt=R.lookahead);do if(X[(jt=Jt)+ie]===Xt&&X[jt+ie-1]===Gt&&X[jt]===X[Lt]&&X[++jt]===X[Lt+1]){Lt+=2,jt++;do;while(X[++Lt]===X[++jt]&&X[++Lt]===X[++jt]&&X[++Lt]===X[++jt]&&X[++Lt]===X[++jt]&&X[++Lt]===X[++jt]&&X[++Lt]===X[++jt]&&X[++Lt]===X[++jt]&&X[++Lt]===X[++jt]&&Lt<vt);if(ct=gt-(vt-Lt),Lt=vt-gt,ie<ct){if(R.match_start=Jt,Kt<=(ie=ct))break;Gt=X[Lt+ie-1],Xt=X[Lt+ie]}}while((Jt=tt[Jt&nt])>w&&--pt!=0);return ie<=R.lookahead?ie:R.lookahead}function ti(R){var Jt,jt,ct,pt,Lt,ie,Kt,w,X,nt,tt=R.w_size;do{if(pt=R.window_size-R.lookahead-R.strstart,R.strstart>=tt+(tt-zt)){for(C.arraySet(R.window,R.window,tt,tt,0),R.match_start-=tt,R.strstart-=tt,R.block_start-=tt,Jt=jt=R.hash_size;ct=R.head[--Jt],R.head[Jt]=tt<=ct?ct-tt:0,--jt;);for(Jt=jt=tt;ct=R.prev[--Jt],R.prev[Jt]=tt<=ct?ct-tt:0,--jt;);pt+=tt}if(R.strm.avail_in===0)break;if(ie=R.strm,Kt=R.window,w=R.strstart+R.lookahead,X=pt,nt=void 0,nt=ie.avail_in,X<nt&&(nt=X),jt=nt===0?0:(ie.avail_in-=nt,C.arraySet(Kt,ie.input,ie.next_in,nt,w),ie.state.wrap===1?ie.adler=E(ie.adler,Kt,nt,w):ie.state.wrap===2&&(ie.adler=U(ie.adler,Kt,nt,w)),ie.next_in+=nt,ie.total_in+=nt,nt),R.lookahead+=jt,R.lookahead+R.insert>=ft)for(Lt=R.strstart-R.insert,R.ins_h=R.window[Lt],R.ins_h=(R.ins_h<<R.hash_shift^R.window[Lt+1])&R.hash_mask;R.insert&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[Lt+ft-1])&R.hash_mask,R.prev[Lt&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=Lt,Lt++,R.insert--,!(R.lookahead+R.insert<ft)););}while(R.lookahead<zt&&R.strm.avail_in!==0)}function ki(R,Jt){for(var jt,ct;;){if(R.lookahead<zt){if(ti(R),R.lookahead<zt&&Jt===H)return D;if(R.lookahead===0)break}if(jt=0,R.lookahead>=ft&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+ft-1])&R.hash_mask,jt=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),jt!==0&&R.strstart-jt<=R.w_size-zt&&(R.match_length=Zt(R,jt)),R.match_length>=ft)if(ct=O._tr_tally(R,R.strstart-R.match_start,R.match_length-ft),R.lookahead-=R.match_length,R.match_length<=R.max_lazy_match&&R.lookahead>=ft){for(R.match_length--;R.strstart++,R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+ft-1])&R.hash_mask,jt=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart,--R.match_length!=0;);R.strstart++}else R.strstart+=R.match_length,R.match_length=0,R.ins_h=R.window[R.strstart],R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+1])&R.hash_mask;else ct=O._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++;if(ct&&(kt(R,!1),R.strm.avail_out===0))return D}return R.insert=R.strstart<ft-1?R.strstart:ft-1,Jt===K?(kt(R,!0),R.strm.avail_out===0?Ct:Rt):R.last_lit&&(kt(R,!1),R.strm.avail_out===0)?D:Bt}function Ie(R,Jt){for(var jt,ct,pt;;){if(R.lookahead<zt){if(ti(R),R.lookahead<zt&&Jt===H)return D;if(R.lookahead===0)break}if(jt=0,R.lookahead>=ft&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+ft-1])&R.hash_mask,jt=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),R.prev_length=R.match_length,R.prev_match=R.match_start,R.match_length=ft-1,jt!==0&&R.prev_length<R.max_lazy_match&&R.strstart-jt<=R.w_size-zt&&(R.match_length=Zt(R,jt),R.match_length<=5&&(R.strategy===1||R.match_length===ft&&4096<R.strstart-R.match_start)&&(R.match_length=ft-1)),R.prev_length>=ft&&R.match_length<=R.prev_length){for(pt=R.strstart+R.lookahead-ft,ct=O._tr_tally(R,R.strstart-1-R.prev_match,R.prev_length-ft),R.lookahead-=R.prev_length-1,R.prev_length-=2;++R.strstart<=pt&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+ft-1])&R.hash_mask,jt=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),--R.prev_length!=0;);if(R.match_available=0,R.match_length=ft-1,R.strstart++,ct&&(kt(R,!1),R.strm.avail_out===0))return D}else if(R.match_available){if((ct=O._tr_tally(R,0,R.window[R.strstart-1]))&&kt(R,!1),R.strstart++,R.lookahead--,R.strm.avail_out===0)return D}else R.match_available=1,R.strstart++,R.lookahead--}return R.match_available&&(ct=O._tr_tally(R,0,R.window[R.strstart-1]),R.match_available=0),R.insert=R.strstart<ft-1?R.strstart:ft-1,Jt===K?(kt(R,!0),R.strm.avail_out===0?Ct:Rt):R.last_lit&&(kt(R,!1),R.strm.avail_out===0)?D:Bt}function Ge(R,Jt,jt,ct,pt){this.good_length=R,this.max_lazy=Jt,this.nice_length=jt,this.max_chain=ct,this.func=pt}function di(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new C.Buf16(2*W),this.dyn_dtree=new C.Buf16(2*(2*F+1)),this.bl_tree=new C.Buf16(2*(2*z+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new C.Buf16(ht+1),this.heap=new C.Buf16(2*x+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new C.Buf16(2*x+1),Ft(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ri(R){var Jt;return R&&R.state?(R.total_in=R.total_out=0,R.data_type=d,(Jt=R.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?lt:Et,R.adler=Jt.wrap===2?0:1,Jt.last_flush=H,O._tr_init(Jt),B):ge(R,q)}function hn(R){var Jt=Ri(R);return Jt===B&&function(jt){jt.window_size=2*jt.w_size,Ft(jt.head),jt.max_lazy_match=m[jt.level].max_lazy,jt.good_match=m[jt.level].good_length,jt.nice_match=m[jt.level].nice_length,jt.max_chain_length=m[jt.level].max_chain,jt.strstart=0,jt.block_start=0,jt.lookahead=0,jt.insert=0,jt.match_length=jt.prev_length=ft-1,jt.match_available=0,jt.ins_h=0}(R.state),Jt}function Ji(R,Jt,jt,ct,pt,Lt){if(!R)return q;var ie=1;if(Jt===b&&(Jt=6),ct<0?(ie=0,ct=-ct):15<ct&&(ie=2,ct-=16),pt<1||M<pt||jt!==g||ct<8||15<ct||Jt<0||9<Jt||Lt<0||A<Lt)return ge(R,q);ct===8&&(ct=9);var Kt=new di;return(R.state=Kt).strm=R,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=ct,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=pt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+ft-1)/ft),Kt.window=new C.Buf8(2*Kt.w_size),Kt.head=new C.Buf16(Kt.hash_size),Kt.prev=new C.Buf16(Kt.w_size),Kt.lit_bufsize=1<<pt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new C.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Lt,Kt.method=jt,hn(R)}m=[new Ge(0,0,0,0,function(R,Jt){var jt=65535;for(jt>R.pending_buf_size-5&&(jt=R.pending_buf_size-5);;){if(R.lookahead<=1){if(ti(R),R.lookahead===0&&Jt===H)return D;if(R.lookahead===0)break}R.strstart+=R.lookahead,R.lookahead=0;var ct=R.block_start+jt;if((R.strstart===0||R.strstart>=ct)&&(R.lookahead=R.strstart-ct,R.strstart=ct,kt(R,!1),R.strm.avail_out===0)||R.strstart-R.block_start>=R.w_size-zt&&(kt(R,!1),R.strm.avail_out===0))return D}return R.insert=0,Jt===K?(kt(R,!0),R.strm.avail_out===0?Ct:Rt):(R.strstart>R.block_start&&(kt(R,!1),R.strm.avail_out),D)}),new Ge(4,4,8,4,ki),new Ge(4,5,16,8,ki),new Ge(4,6,32,32,ki),new Ge(4,4,16,16,Ie),new Ge(8,16,32,32,Ie),new Ge(8,16,128,128,Ie),new Ge(8,32,128,256,Ie),new Ge(32,128,258,1024,Ie),new Ge(32,258,258,4096,Ie)],G.deflateInit=function(R,Jt){return Ji(R,Jt,g,15,8,0)},G.deflateInit2=Ji,G.deflateReset=hn,G.deflateResetKeep=Ri,G.deflateSetHeader=function(R,Jt){return R&&R.state?R.state.wrap!==2?q:(R.state.gzhead=Jt,B):q},G.deflate=function(R,Jt){var jt,ct,pt,Lt;if(!R||!R.state||5<Jt||Jt<0)return R?ge(R,q):q;if(ct=R.state,!R.output||!R.input&&R.avail_in!==0||ct.status===666&&Jt!==K)return ge(R,R.avail_out===0?-5:q);if(ct.strm=R,jt=ct.last_flush,ct.last_flush=Jt,ct.status===lt)if(ct.wrap===2)R.adler=0,Fe(ct,31),Fe(ct,139),Fe(ct,8),ct.gzhead?(Fe(ct,(ct.gzhead.text?1:0)+(ct.gzhead.hcrc?2:0)+(ct.gzhead.extra?4:0)+(ct.gzhead.name?8:0)+(ct.gzhead.comment?16:0)),Fe(ct,255&ct.gzhead.time),Fe(ct,ct.gzhead.time>>8&255),Fe(ct,ct.gzhead.time>>16&255),Fe(ct,ct.gzhead.time>>24&255),Fe(ct,ct.level===9?2:2<=ct.strategy||ct.level<2?4:0),Fe(ct,255&ct.gzhead.os),ct.gzhead.extra&&ct.gzhead.extra.length&&(Fe(ct,255&ct.gzhead.extra.length),Fe(ct,ct.gzhead.extra.length>>8&255)),ct.gzhead.hcrc&&(R.adler=U(R.adler,ct.pending_buf,ct.pending,0)),ct.gzindex=0,ct.status=69):(Fe(ct,0),Fe(ct,0),Fe(ct,0),Fe(ct,0),Fe(ct,0),Fe(ct,ct.level===9?2:2<=ct.strategy||ct.level<2?4:0),Fe(ct,3),ct.status=Et);else{var ie=g+(ct.w_bits-8<<4)<<8;ie|=(2<=ct.strategy||ct.level<2?0:ct.level<6?1:ct.level===6?2:3)<<6,ct.strstart!==0&&(ie|=32),ie+=31-ie%31,ct.status=Et,xe(ct,ie),ct.strstart!==0&&(xe(ct,R.adler>>>16),xe(ct,65535&R.adler)),R.adler=1}if(ct.status===69)if(ct.gzhead.extra){for(pt=ct.pending;ct.gzindex<(65535&ct.gzhead.extra.length)&&(ct.pending!==ct.pending_buf_size||(ct.gzhead.hcrc&&ct.pending>pt&&(R.adler=U(R.adler,ct.pending_buf,ct.pending-pt,pt)),Dt(R),pt=ct.pending,ct.pending!==ct.pending_buf_size));)Fe(ct,255&ct.gzhead.extra[ct.gzindex]),ct.gzindex++;ct.gzhead.hcrc&&ct.pending>pt&&(R.adler=U(R.adler,ct.pending_buf,ct.pending-pt,pt)),ct.gzindex===ct.gzhead.extra.length&&(ct.gzindex=0,ct.status=73)}else ct.status=73;if(ct.status===73)if(ct.gzhead.name){pt=ct.pending;do{if(ct.pending===ct.pending_buf_size&&(ct.gzhead.hcrc&&ct.pending>pt&&(R.adler=U(R.adler,ct.pending_buf,ct.pending-pt,pt)),Dt(R),pt=ct.pending,ct.pending===ct.pending_buf_size)){Lt=1;break}Lt=ct.gzindex<ct.gzhead.name.length?255&ct.gzhead.name.charCodeAt(ct.gzindex++):0,Fe(ct,Lt)}while(Lt!==0);ct.gzhead.hcrc&&ct.pending>pt&&(R.adler=U(R.adler,ct.pending_buf,ct.pending-pt,pt)),Lt===0&&(ct.gzindex=0,ct.status=91)}else ct.status=91;if(ct.status===91)if(ct.gzhead.comment){pt=ct.pending;do{if(ct.pending===ct.pending_buf_size&&(ct.gzhead.hcrc&&ct.pending>pt&&(R.adler=U(R.adler,ct.pending_buf,ct.pending-pt,pt)),Dt(R),pt=ct.pending,ct.pending===ct.pending_buf_size)){Lt=1;break}Lt=ct.gzindex<ct.gzhead.comment.length?255&ct.gzhead.comment.charCodeAt(ct.gzindex++):0,Fe(ct,Lt)}while(Lt!==0);ct.gzhead.hcrc&&ct.pending>pt&&(R.adler=U(R.adler,ct.pending_buf,ct.pending-pt,pt)),Lt===0&&(ct.status=103)}else ct.status=103;if(ct.status===103&&(ct.gzhead.hcrc?(ct.pending+2>ct.pending_buf_size&&Dt(R),ct.pending+2<=ct.pending_buf_size&&(Fe(ct,255&R.adler),Fe(ct,R.adler>>8&255),R.adler=0,ct.status=Et)):ct.status=Et),ct.pending!==0){if(Dt(R),R.avail_out===0)return ct.last_flush=-1,B}else if(R.avail_in===0&&ue(Jt)<=ue(jt)&&Jt!==K)return ge(R,-5);if(ct.status===666&&R.avail_in!==0)return ge(R,-5);if(R.avail_in!==0||ct.lookahead!==0||Jt!==H&&ct.status!==666){var Kt=ct.strategy===2?function(w,X){for(var nt;;){if(w.lookahead===0&&(ti(w),w.lookahead===0)){if(X===H)return D;break}if(w.match_length=0,nt=O._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++,nt&&(kt(w,!1),w.strm.avail_out===0))return D}return w.insert=0,X===K?(kt(w,!0),w.strm.avail_out===0?Ct:Rt):w.last_lit&&(kt(w,!1),w.strm.avail_out===0)?D:Bt}(ct,Jt):ct.strategy===3?function(w,X){for(var nt,tt,vt,Gt,Xt=w.window;;){if(w.lookahead<=gt){if(ti(w),w.lookahead<=gt&&X===H)return D;if(w.lookahead===0)break}if(w.match_length=0,w.lookahead>=ft&&0<w.strstart&&(tt=Xt[vt=w.strstart-1])===Xt[++vt]&&tt===Xt[++vt]&&tt===Xt[++vt]){Gt=w.strstart+gt;do;while(tt===Xt[++vt]&&tt===Xt[++vt]&&tt===Xt[++vt]&&tt===Xt[++vt]&&tt===Xt[++vt]&&tt===Xt[++vt]&&tt===Xt[++vt]&&tt===Xt[++vt]&&vt<Gt);w.match_length=gt-(Gt-vt),w.match_length>w.lookahead&&(w.match_length=w.lookahead)}if(w.match_length>=ft?(nt=O._tr_tally(w,1,w.match_length-ft),w.lookahead-=w.match_length,w.strstart+=w.match_length,w.match_length=0):(nt=O._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++),nt&&(kt(w,!1),w.strm.avail_out===0))return D}return w.insert=0,X===K?(kt(w,!0),w.strm.avail_out===0?Ct:Rt):w.last_lit&&(kt(w,!1),w.strm.avail_out===0)?D:Bt}(ct,Jt):m[ct.level].func(ct,Jt);if(Kt!==Ct&&Kt!==Rt||(ct.status=666),Kt===D||Kt===Ct)return R.avail_out===0&&(ct.last_flush=-1),B;if(Kt===Bt&&(Jt===1?O._tr_align(ct):Jt!==5&&(O._tr_stored_block(ct,0,0,!1),Jt===3&&(Ft(ct.head),ct.lookahead===0&&(ct.strstart=0,ct.block_start=0,ct.insert=0))),Dt(R),R.avail_out===0))return ct.last_flush=-1,B}return Jt!==K?B:ct.wrap<=0?1:(ct.wrap===2?(Fe(ct,255&R.adler),Fe(ct,R.adler>>8&255),Fe(ct,R.adler>>16&255),Fe(ct,R.adler>>24&255),Fe(ct,255&R.total_in),Fe(ct,R.total_in>>8&255),Fe(ct,R.total_in>>16&255),Fe(ct,R.total_in>>24&255)):(xe(ct,R.adler>>>16),xe(ct,65535&R.adler)),Dt(R),0<ct.wrap&&(ct.wrap=-ct.wrap),ct.pending!==0?B:1)},G.deflateEnd=function(R){var Jt;return R&&R.state?(Jt=R.state.status)!==lt&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==Et&&Jt!==666?ge(R,q):(R.state=null,Jt===Et?ge(R,-3):B):q},G.deflateSetDictionary=function(R,Jt){var jt,ct,pt,Lt,ie,Kt,w,X,nt=Jt.length;if(!R||!R.state||(Lt=(jt=R.state).wrap)===2||Lt===1&&jt.status!==lt||jt.lookahead)return q;for(Lt===1&&(R.adler=E(R.adler,Jt,nt,0)),jt.wrap=0,nt>=jt.w_size&&(Lt===0&&(Ft(jt.head),jt.strstart=0,jt.block_start=0,jt.insert=0),X=new C.Buf8(jt.w_size),C.arraySet(X,Jt,nt-jt.w_size,jt.w_size,0),Jt=X,nt=jt.w_size),ie=R.avail_in,Kt=R.next_in,w=R.input,R.avail_in=nt,R.next_in=0,R.input=Jt,ti(jt);jt.lookahead>=ft;){for(ct=jt.strstart,pt=jt.lookahead-(ft-1);jt.ins_h=(jt.ins_h<<jt.hash_shift^jt.window[ct+ft-1])&jt.hash_mask,jt.prev[ct&jt.w_mask]=jt.head[jt.ins_h],jt.head[jt.ins_h]=ct,ct++,--pt;);jt.strstart=ct,jt.lookahead=ft-1,ti(jt)}return jt.strstart+=jt.lookahead,jt.block_start=jt.strstart,jt.insert=jt.lookahead,jt.lookahead=0,jt.match_length=jt.prev_length=ft-1,jt.match_available=0,R.next_in=Kt,R.input=w,R.avail_in=ie,jt.wrap=Lt,B},G.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,J,G){J.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(p,J,G){J.exports=function(m,C){var O,E,U,Y,H,K,B,q,b,A,d,g,M,x,F,z,W,ht,ft,gt,zt,lt,Et,D,Bt;O=m.state,E=m.next_in,D=m.input,U=E+(m.avail_in-5),Y=m.next_out,Bt=m.output,H=Y-(C-m.avail_out),K=Y+(m.avail_out-257),B=O.dmax,q=O.wsize,b=O.whave,A=O.wnext,d=O.window,g=O.hold,M=O.bits,x=O.lencode,F=O.distcode,z=(1<<O.lenbits)-1,W=(1<<O.distbits)-1;t:do{M<15&&(g+=D[E++]<<M,M+=8,g+=D[E++]<<M,M+=8),ht=x[g&z];e:for(;;){if(g>>>=ft=ht>>>24,M-=ft,(ft=ht>>>16&255)===0)Bt[Y++]=65535&ht;else{if(!(16&ft)){if(!(64&ft)){ht=x[(65535&ht)+(g&(1<<ft)-1)];continue e}if(32&ft){O.mode=12;break t}m.msg="invalid literal/length code",O.mode=30;break t}gt=65535&ht,(ft&=15)&&(M<ft&&(g+=D[E++]<<M,M+=8),gt+=g&(1<<ft)-1,g>>>=ft,M-=ft),M<15&&(g+=D[E++]<<M,M+=8,g+=D[E++]<<M,M+=8),ht=F[g&W];i:for(;;){if(g>>>=ft=ht>>>24,M-=ft,!(16&(ft=ht>>>16&255))){if(!(64&ft)){ht=F[(65535&ht)+(g&(1<<ft)-1)];continue i}m.msg="invalid distance code",O.mode=30;break t}if(zt=65535&ht,M<(ft&=15)&&(g+=D[E++]<<M,(M+=8)<ft&&(g+=D[E++]<<M,M+=8)),B<(zt+=g&(1<<ft)-1)){m.msg="invalid distance too far back",O.mode=30;break t}if(g>>>=ft,M-=ft,(ft=Y-H)<zt){if(b<(ft=zt-ft)&&O.sane){m.msg="invalid distance too far back",O.mode=30;break t}if(Et=d,(lt=0)===A){if(lt+=q-ft,ft<gt){for(gt-=ft;Bt[Y++]=d[lt++],--ft;);lt=Y-zt,Et=Bt}}else if(A<ft){if(lt+=q+A-ft,(ft-=A)<gt){for(gt-=ft;Bt[Y++]=d[lt++],--ft;);if(lt=0,A<gt){for(gt-=ft=A;Bt[Y++]=d[lt++],--ft;);lt=Y-zt,Et=Bt}}}else if(lt+=A-ft,ft<gt){for(gt-=ft;Bt[Y++]=d[lt++],--ft;);lt=Y-zt,Et=Bt}for(;2<gt;)Bt[Y++]=Et[lt++],Bt[Y++]=Et[lt++],Bt[Y++]=Et[lt++],gt-=3;gt&&(Bt[Y++]=Et[lt++],1<gt&&(Bt[Y++]=Et[lt++]))}else{for(lt=Y-zt;Bt[Y++]=Bt[lt++],Bt[Y++]=Bt[lt++],Bt[Y++]=Bt[lt++],2<(gt-=3););gt&&(Bt[Y++]=Bt[lt++],1<gt&&(Bt[Y++]=Bt[lt++]))}break}}break}}while(E<U&&Y<K);E-=gt=M>>3,g&=(1<<(M-=gt<<3))-1,m.next_in=E,m.next_out=Y,m.avail_in=E<U?U-E+5:5-(E-U),m.avail_out=Y<K?K-Y+257:257-(Y-K),O.hold=g,O.bits=M}},{}],49:[function(p,J,G){var m=p("../utils/common"),C=p("./adler32"),O=p("./crc32"),E=p("./inffast"),U=p("./inftrees"),Y=1,H=2,K=0,B=-2,q=1,b=852,A=592;function d(lt){return(lt>>>24&255)+(lt>>>8&65280)+((65280<)<<8)+((255<)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new m.Buf16(320),this.work=new m.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function M(lt){var Et;return lt&<.state?(Et=lt.state,lt.total_in=lt.total_out=Et.total=0,lt.msg="",Et.wrap&&(lt.adler=1&Et.wrap),Et.mode=q,Et.last=0,Et.havedict=0,Et.dmax=32768,Et.head=null,Et.hold=0,Et.bits=0,Et.lencode=Et.lendyn=new m.Buf32(b),Et.distcode=Et.distdyn=new m.Buf32(A),Et.sane=1,Et.back=-1,K):B}function x(lt){var Et;return lt&<.state?((Et=lt.state).wsize=0,Et.whave=0,Et.wnext=0,M(lt)):B}function F(lt,Et){var D,Bt;return lt&<.state?(Bt=lt.state,Et<0?(D=0,Et=-Et):(D=1+(Et>>4),Et<48&&(Et&=15)),Et&&(Et<8||15<Et)?B:(Bt.window!==null&&Bt.wbits!==Et&&(Bt.window=null),Bt.wrap=D,Bt.wbits=Et,x(lt))):B}function z(lt,Et){var D,Bt;return lt?(Bt=new g,(lt.state=Bt).window=null,(D=F(lt,Et))!==K&&(lt.state=null),D):B}var W,ht,ft=!0;function gt(lt){if(ft){var Et;for(W=new m.Buf32(512),ht=new m.Buf32(32),Et=0;Et<144;)lt.lens[Et++]=8;for(;Et<256;)lt.lens[Et++]=9;for(;Et<280;)lt.lens[Et++]=7;for(;Et<288;)lt.lens[Et++]=8;for(U(Y,lt.lens,0,288,W,0,lt.work,{bits:9}),Et=0;Et<32;)lt.lens[Et++]=5;U(H,lt.lens,0,32,ht,0,lt.work,{bits:5}),ft=!1}lt.lencode=W,lt.lenbits=9,lt.distcode=ht,lt.distbits=5}function zt(lt,Et,D,Bt){var Ct,Rt=lt.state;return Rt.window===null&&(Rt.wsize=1<<Rt.wbits,Rt.wnext=0,Rt.whave=0,Rt.window=new m.Buf8(Rt.wsize)),Bt>=Rt.wsize?(m.arraySet(Rt.window,Et,D-Rt.wsize,Rt.wsize,0),Rt.wnext=0,Rt.whave=Rt.wsize):(Bt<(Ct=Rt.wsize-Rt.wnext)&&(Ct=Bt),m.arraySet(Rt.window,Et,D-Bt,Ct,Rt.wnext),(Bt-=Ct)?(m.arraySet(Rt.window,Et,D-Bt,Bt,0),Rt.wnext=Bt,Rt.whave=Rt.wsize):(Rt.wnext+=Ct,Rt.wnext===Rt.wsize&&(Rt.wnext=0),Rt.whave<Rt.wsize&&(Rt.whave+=Ct))),0}G.inflateReset=x,G.inflateReset2=F,G.inflateResetKeep=M,G.inflateInit=function(lt){return z(lt,15)},G.inflateInit2=z,G.inflate=function(lt,Et){var D,Bt,Ct,Rt,ge,ue,Ft,Dt,kt,Fe,xe,Zt,ti,ki,Ie,Ge,di,Ri,hn,Ji,R,Jt,jt,ct,pt=0,Lt=new m.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!lt||!lt.state||!lt.output||!lt.input&<.avail_in!==0)return B;(D=lt.state).mode===12&&(D.mode=13),ge=lt.next_out,Ct=lt.output,Ft=lt.avail_out,Rt=lt.next_in,Bt=lt.input,ue=lt.avail_in,Dt=D.hold,kt=D.bits,Fe=ue,xe=Ft,Jt=K;t:for(;;)switch(D.mode){case q:if(D.wrap===0){D.mode=13;break}for(;kt<16;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(2&D.wrap&&Dt===35615){Lt[D.check=0]=255&Dt,Lt[1]=Dt>>>8&255,D.check=O(D.check,Lt,2,0),kt=Dt=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&Dt)<<8)+(Dt>>8))%31){lt.msg="incorrect header check",D.mode=30;break}if((15&Dt)!=8){lt.msg="unknown compression method",D.mode=30;break}if(kt-=4,R=8+(15&(Dt>>>=4)),D.wbits===0)D.wbits=R;else if(R>D.wbits){lt.msg="invalid window size",D.mode=30;break}D.dmax=1<<R,lt.adler=D.check=1,D.mode=512&Dt?10:12,kt=Dt=0;break;case 2:for(;kt<16;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(D.flags=Dt,(255&D.flags)!=8){lt.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){lt.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=Dt>>8&1),512&D.flags&&(Lt[0]=255&Dt,Lt[1]=Dt>>>8&255,D.check=O(D.check,Lt,2,0)),kt=Dt=0,D.mode=3;case 3:for(;kt<32;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}D.head&&(D.head.time=Dt),512&D.flags&&(Lt[0]=255&Dt,Lt[1]=Dt>>>8&255,Lt[2]=Dt>>>16&255,Lt[3]=Dt>>>24&255,D.check=O(D.check,Lt,4,0)),kt=Dt=0,D.mode=4;case 4:for(;kt<16;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}D.head&&(D.head.xflags=255&Dt,D.head.os=Dt>>8),512&D.flags&&(Lt[0]=255&Dt,Lt[1]=Dt>>>8&255,D.check=O(D.check,Lt,2,0)),kt=Dt=0,D.mode=5;case 5:if(1024&D.flags){for(;kt<16;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}D.length=Dt,D.head&&(D.head.extra_len=Dt),512&D.flags&&(Lt[0]=255&Dt,Lt[1]=Dt>>>8&255,D.check=O(D.check,Lt,2,0)),kt=Dt=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(ue<(Zt=D.length)&&(Zt=ue),Zt&&(D.head&&(R=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),m.arraySet(D.head.extra,Bt,Rt,Zt,R)),512&D.flags&&(D.check=O(D.check,Bt,Zt,Rt)),ue-=Zt,Rt+=Zt,D.length-=Zt),D.length))break t;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(ue===0)break t;for(Zt=0;R=Bt[Rt+Zt++],D.head&&R&&D.length<65536&&(D.head.name+=String.fromCharCode(R)),R&&Zt<ue;);if(512&D.flags&&(D.check=O(D.check,Bt,Zt,Rt)),ue-=Zt,Rt+=Zt,R)break t}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(ue===0)break t;for(Zt=0;R=Bt[Rt+Zt++],D.head&&R&&D.length<65536&&(D.head.comment+=String.fromCharCode(R)),R&&Zt<ue;);if(512&D.flags&&(D.check=O(D.check,Bt,Zt,Rt)),ue-=Zt,Rt+=Zt,R)break t}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;kt<16;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(Dt!==(65535&D.check)){lt.msg="header crc mismatch",D.mode=30;break}kt=Dt=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),lt.adler=D.check=0,D.mode=12;break;case 10:for(;kt<32;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}lt.adler=D.check=d(Dt),kt=Dt=0,D.mode=11;case 11:if(D.havedict===0)return lt.next_out=ge,lt.avail_out=Ft,lt.next_in=Rt,lt.avail_in=ue,D.hold=Dt,D.bits=kt,2;lt.adler=D.check=1,D.mode=12;case 12:if(Et===5||Et===6)break t;case 13:if(D.last){Dt>>>=7&kt,kt-=7&kt,D.mode=27;break}for(;kt<3;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}switch(D.last=1&Dt,kt-=1,3&(Dt>>>=1)){case 0:D.mode=14;break;case 1:if(gt(D),D.mode=20,Et!==6)break;Dt>>>=2,kt-=2;break t;case 2:D.mode=17;break;case 3:lt.msg="invalid block type",D.mode=30}Dt>>>=2,kt-=2;break;case 14:for(Dt>>>=7&kt,kt-=7&kt;kt<32;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if((65535&Dt)!=(Dt>>>16^65535)){lt.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&Dt,kt=Dt=0,D.mode=15,Et===6)break t;case 15:D.mode=16;case 16:if(Zt=D.length){if(ue<Zt&&(Zt=ue),Ft<Zt&&(Zt=Ft),Zt===0)break t;m.arraySet(Ct,Bt,Rt,Zt,ge),ue-=Zt,Rt+=Zt,Ft-=Zt,ge+=Zt,D.length-=Zt;break}D.mode=12;break;case 17:for(;kt<14;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(D.nlen=257+(31&Dt),Dt>>>=5,kt-=5,D.ndist=1+(31&Dt),Dt>>>=5,kt-=5,D.ncode=4+(15&Dt),Dt>>>=4,kt-=4,286<D.nlen||30<D.ndist){lt.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;kt<3;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}D.lens[ie[D.have++]]=7&Dt,Dt>>>=3,kt-=3}for(;D.have<19;)D.lens[ie[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,jt={bits:D.lenbits},Jt=U(0,D.lens,0,19,D.lencode,0,D.work,jt),D.lenbits=jt.bits,Jt){lt.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;Ge=(pt=D.lencode[Dt&(1<<D.lenbits)-1])>>>16&255,di=65535&pt,!((Ie=pt>>>24)<=kt);){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(di<16)Dt>>>=Ie,kt-=Ie,D.lens[D.have++]=di;else{if(di===16){for(ct=Ie+2;kt<ct;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(Dt>>>=Ie,kt-=Ie,D.have===0){lt.msg="invalid bit length repeat",D.mode=30;break}R=D.lens[D.have-1],Zt=3+(3&Dt),Dt>>>=2,kt-=2}else if(di===17){for(ct=Ie+3;kt<ct;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}kt-=Ie,R=0,Zt=3+(7&(Dt>>>=Ie)),Dt>>>=3,kt-=3}else{for(ct=Ie+7;kt<ct;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}kt-=Ie,R=0,Zt=11+(127&(Dt>>>=Ie)),Dt>>>=7,kt-=7}if(D.have+Zt>D.nlen+D.ndist){lt.msg="invalid bit length repeat",D.mode=30;break}for(;Zt--;)D.lens[D.have++]=R}}if(D.mode===30)break;if(D.lens[256]===0){lt.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,jt={bits:D.lenbits},Jt=U(Y,D.lens,0,D.nlen,D.lencode,0,D.work,jt),D.lenbits=jt.bits,Jt){lt.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,jt={bits:D.distbits},Jt=U(H,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,jt),D.distbits=jt.bits,Jt){lt.msg="invalid distances set",D.mode=30;break}if(D.mode=20,Et===6)break t;case 20:D.mode=21;case 21:if(6<=ue&&258<=Ft){lt.next_out=ge,lt.avail_out=Ft,lt.next_in=Rt,lt.avail_in=ue,D.hold=Dt,D.bits=kt,E(lt,xe),ge=lt.next_out,Ct=lt.output,Ft=lt.avail_out,Rt=lt.next_in,Bt=lt.input,ue=lt.avail_in,Dt=D.hold,kt=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Ge=(pt=D.lencode[Dt&(1<<D.lenbits)-1])>>>16&255,di=65535&pt,!((Ie=pt>>>24)<=kt);){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(Ge&&!(240&Ge)){for(Ri=Ie,hn=Ge,Ji=di;Ge=(pt=D.lencode[Ji+((Dt&(1<<Ri+hn)-1)>>Ri)])>>>16&255,di=65535&pt,!(Ri+(Ie=pt>>>24)<=kt);){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}Dt>>>=Ri,kt-=Ri,D.back+=Ri}if(Dt>>>=Ie,kt-=Ie,D.back+=Ie,D.length=di,Ge===0){D.mode=26;break}if(32&Ge){D.back=-1,D.mode=12;break}if(64&Ge){lt.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Ge,D.mode=22;case 22:if(D.extra){for(ct=D.extra;kt<ct;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}D.length+=Dt&(1<<D.extra)-1,Dt>>>=D.extra,kt-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Ge=(pt=D.distcode[Dt&(1<<D.distbits)-1])>>>16&255,di=65535&pt,!((Ie=pt>>>24)<=kt);){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(!(240&Ge)){for(Ri=Ie,hn=Ge,Ji=di;Ge=(pt=D.distcode[Ji+((Dt&(1<<Ri+hn)-1)>>Ri)])>>>16&255,di=65535&pt,!(Ri+(Ie=pt>>>24)<=kt);){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}Dt>>>=Ri,kt-=Ri,D.back+=Ri}if(Dt>>>=Ie,kt-=Ie,D.back+=Ie,64&Ge){lt.msg="invalid distance code",D.mode=30;break}D.offset=di,D.extra=15&Ge,D.mode=24;case 24:if(D.extra){for(ct=D.extra;kt<ct;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}D.offset+=Dt&(1<<D.extra)-1,Dt>>>=D.extra,kt-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){lt.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(Ft===0)break t;if(Zt=xe-Ft,D.offset>Zt){if((Zt=D.offset-Zt)>D.whave&&D.sane){lt.msg="invalid distance too far back",D.mode=30;break}ti=Zt>D.wnext?(Zt-=D.wnext,D.wsize-Zt):D.wnext-Zt,Zt>D.length&&(Zt=D.length),ki=D.window}else ki=Ct,ti=ge-D.offset,Zt=D.length;for(Ft<Zt&&(Zt=Ft),Ft-=Zt,D.length-=Zt;Ct[ge++]=ki[ti++],--Zt;);D.length===0&&(D.mode=21);break;case 26:if(Ft===0)break t;Ct[ge++]=D.length,Ft--,D.mode=21;break;case 27:if(D.wrap){for(;kt<32;){if(ue===0)break t;ue--,Dt|=Bt[Rt++]<<kt,kt+=8}if(xe-=Ft,lt.total_out+=xe,D.total+=xe,xe&&(lt.adler=D.check=D.flags?O(D.check,Ct,xe,ge-xe):C(D.check,Ct,xe,ge-xe)),xe=Ft,(D.flags?Dt:d(Dt))!==D.check){lt.msg="incorrect data check",D.mode=30;break}kt=Dt=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;kt<32;){if(ue===0)break t;ue--,Dt+=Bt[Rt++]<<kt,kt+=8}if(Dt!==(4294967295&D.total)){lt.msg="incorrect length check",D.mode=30;break}kt=Dt=0}D.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return B}return lt.next_out=ge,lt.avail_out=Ft,lt.next_in=Rt,lt.avail_in=ue,D.hold=Dt,D.bits=kt,(D.wsize||xe!==lt.avail_out&&D.mode<30&&(D.mode<27||Et!==4))&&zt(lt,lt.output,lt.next_out,xe-lt.avail_out)?(D.mode=31,-4):(Fe-=lt.avail_in,xe-=lt.avail_out,lt.total_in+=Fe,lt.total_out+=xe,D.total+=xe,D.wrap&&xe&&(lt.adler=D.check=D.flags?O(D.check,Ct,xe,lt.next_out-xe):C(D.check,Ct,xe,lt.next_out-xe)),lt.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(Fe==0&&xe===0||Et===4)&&Jt===K&&(Jt=-5),Jt)},G.inflateEnd=function(lt){if(!lt||!lt.state)return B;var Et=lt.state;return Et.window&&(Et.window=null),lt.state=null,K},G.inflateGetHeader=function(lt,Et){var D;return lt&<.state&&2&(D=lt.state).wrap?((D.head=Et).done=!1,K):B},G.inflateSetDictionary=function(lt,Et){var D,Bt=Et.length;return lt&<.state?(D=lt.state).wrap!==0&&D.mode!==11?B:D.mode===11&&C(1,Et,Bt,0)!==D.check?-3:zt(lt,Et,Bt,Bt)?(D.mode=31,-4):(D.havedict=1,K):B},G.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,J,G){var m=p("../utils/common"),C=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],O=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],E=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],U=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];J.exports=function(Y,H,K,B,q,b,A,d){var g,M,x,F,z,W,ht,ft,gt,zt=d.bits,lt=0,Et=0,D=0,Bt=0,Ct=0,Rt=0,ge=0,ue=0,Ft=0,Dt=0,kt=null,Fe=0,xe=new m.Buf16(16),Zt=new m.Buf16(16),ti=null,ki=0;for(lt=0;lt<=15;lt++)xe[lt]=0;for(Et=0;Et<B;Et++)xe[H[K+Et]]++;for(Ct=zt,Bt=15;1<=Bt&&xe[Bt]===0;Bt--);if(Bt<Ct&&(Ct=Bt),Bt===0)return q[b++]=20971520,q[b++]=20971520,d.bits=1,0;for(D=1;D<Bt&&xe[D]===0;D++);for(Ct<D&&(Ct=D),lt=ue=1;lt<=15;lt++)if(ue<<=1,(ue-=xe[lt])<0)return-1;if(0<ue&&(Y===0||Bt!==1))return-1;for(Zt[1]=0,lt=1;lt<15;lt++)Zt[lt+1]=Zt[lt]+xe[lt];for(Et=0;Et<B;Et++)H[K+Et]!==0&&(A[Zt[H[K+Et]]++]=Et);if(W=Y===0?(kt=ti=A,19):Y===1?(kt=C,Fe-=257,ti=O,ki-=257,256):(kt=E,ti=U,-1),lt=D,z=b,ge=Et=Dt=0,x=-1,F=(Ft=1<<(Rt=Ct))-1,Y===1&&852<Ft||Y===2&&592<Ft)return 1;for(;;){for(ht=lt-ge,gt=A[Et]<W?(ft=0,A[Et]):A[Et]>W?(ft=ti[ki+A[Et]],kt[Fe+A[Et]]):(ft=96,0),g=1<<lt-ge,D=M=1<<Rt;q[z+(Dt>>ge)+(M-=g)]=ht<<24|ft<<16|gt|0,M!==0;);for(g=1<<lt-1;Dt&g;)g>>=1;if(g!==0?(Dt&=g-1,Dt+=g):Dt=0,Et++,--xe[lt]==0){if(lt===Bt)break;lt=H[K+A[Et]]}if(Ct<lt&&(Dt&F)!==x){for(ge===0&&(ge=Ct),z+=D,ue=1<<(Rt=lt-ge);Rt+ge<Bt&&!((ue-=xe[Rt+ge])<=0);)Rt++,ue<<=1;if(Ft+=1<<Rt,Y===1&&852<Ft||Y===2&&592<Ft)return 1;q[x=Dt&F]=Ct<<24|Rt<<16|z-b|0}}return Dt!==0&&(q[z+Dt]=lt-ge<<24|64<<16|0),d.bits=Ct,0}},{"../utils/common":41}],51:[function(p,J,G){J.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(p,J,G){var m=p("../utils/common"),C=0,O=1;function E(pt){for(var Lt=pt.length;0<=--Lt;)pt[Lt]=0}var U=0,Y=29,H=256,K=H+1+Y,B=30,q=19,b=2*K+1,A=15,d=16,g=7,M=256,x=16,F=17,z=18,W=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ht=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ft=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],gt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],zt=new Array(2*(K+2));E(zt);var lt=new Array(2*B);E(lt);var Et=new Array(512);E(Et);var D=new Array(256);E(D);var Bt=new Array(Y);E(Bt);var Ct,Rt,ge,ue=new Array(B);function Ft(pt,Lt,ie,Kt,w){this.static_tree=pt,this.extra_bits=Lt,this.extra_base=ie,this.elems=Kt,this.max_length=w,this.has_stree=pt&&pt.length}function Dt(pt,Lt){this.dyn_tree=pt,this.max_code=0,this.stat_desc=Lt}function kt(pt){return pt<256?Et[pt]:Et[256+(pt>>>7)]}function Fe(pt,Lt){pt.pending_buf[pt.pending++]=255&Lt,pt.pending_buf[pt.pending++]=Lt>>>8&255}function xe(pt,Lt,ie){pt.bi_valid>d-ie?(pt.bi_buf|=Lt<<pt.bi_valid&65535,Fe(pt,pt.bi_buf),pt.bi_buf=Lt>>d-pt.bi_valid,pt.bi_valid+=ie-d):(pt.bi_buf|=Lt<<pt.bi_valid&65535,pt.bi_valid+=ie)}function Zt(pt,Lt,ie){xe(pt,ie[2*Lt],ie[2*Lt+1])}function ti(pt,Lt){for(var ie=0;ie|=1&pt,pt>>>=1,ie<<=1,0<--Lt;);return ie>>>1}function ki(pt,Lt,ie){var Kt,w,X=new Array(A+1),nt=0;for(Kt=1;Kt<=A;Kt++)X[Kt]=nt=nt+ie[Kt-1]<<1;for(w=0;w<=Lt;w++){var tt=pt[2*w+1];tt!==0&&(pt[2*w]=ti(X[tt]++,tt))}}function Ie(pt){var Lt;for(Lt=0;Lt<K;Lt++)pt.dyn_ltree[2*Lt]=0;for(Lt=0;Lt<B;Lt++)pt.dyn_dtree[2*Lt]=0;for(Lt=0;Lt<q;Lt++)pt.bl_tree[2*Lt]=0;pt.dyn_ltree[2*M]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Ge(pt){8<pt.bi_valid?Fe(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function di(pt,Lt,ie,Kt){var w=2*Lt,X=2*ie;return pt[w]<pt[X]||pt[w]===pt[X]&&Kt[Lt]<=Kt[ie]}function Ri(pt,Lt,ie){for(var Kt=pt.heap[ie],w=ie<<1;w<=pt.heap_len&&(w<pt.heap_len&&di(Lt,pt.heap[w+1],pt.heap[w],pt.depth)&&w++,!di(Lt,Kt,pt.heap[w],pt.depth));)pt.heap[ie]=pt.heap[w],ie=w,w<<=1;pt.heap[ie]=Kt}function hn(pt,Lt,ie){var Kt,w,X,nt,tt=0;if(pt.last_lit!==0)for(;Kt=pt.pending_buf[pt.d_buf+2*tt]<<8|pt.pending_buf[pt.d_buf+2*tt+1],w=pt.pending_buf[pt.l_buf+tt],tt++,Kt===0?Zt(pt,w,Lt):(Zt(pt,(X=D[w])+H+1,Lt),(nt=W[X])!==0&&xe(pt,w-=Bt[X],nt),Zt(pt,X=kt(--Kt),ie),(nt=ht[X])!==0&&xe(pt,Kt-=ue[X],nt)),tt<pt.last_lit;);Zt(pt,M,Lt)}function Ji(pt,Lt){var ie,Kt,w,X=Lt.dyn_tree,nt=Lt.stat_desc.static_tree,tt=Lt.stat_desc.has_stree,vt=Lt.stat_desc.elems,Gt=-1;for(pt.heap_len=0,pt.heap_max=b,ie=0;ie<vt;ie++)X[2*ie]!==0?(pt.heap[++pt.heap_len]=Gt=ie,pt.depth[ie]=0):X[2*ie+1]=0;for(;pt.heap_len<2;)X[2*(w=pt.heap[++pt.heap_len]=Gt<2?++Gt:0)]=1,pt.depth[w]=0,pt.opt_len--,tt&&(pt.static_len-=nt[2*w+1]);for(Lt.max_code=Gt,ie=pt.heap_len>>1;1<=ie;ie--)Ri(pt,X,ie);for(w=vt;ie=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],Ri(pt,X,1),Kt=pt.heap[1],pt.heap[--pt.heap_max]=ie,pt.heap[--pt.heap_max]=Kt,X[2*w]=X[2*ie]+X[2*Kt],pt.depth[w]=(pt.depth[ie]>=pt.depth[Kt]?pt.depth[ie]:pt.depth[Kt])+1,X[2*ie+1]=X[2*Kt+1]=w,pt.heap[1]=w++,Ri(pt,X,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(Xt,Wt){var Ne,Re,de,we,yi,Si,ni=Wt.dyn_tree,Ei=Wt.max_code,Tr=Wt.stat_desc.static_tree,Xn=Wt.stat_desc.has_stree,nn=Wt.stat_desc.extra_bits,Kr=Wt.stat_desc.extra_base,Ii=Wt.stat_desc.max_length,fo=0;for(we=0;we<=A;we++)Xt.bl_count[we]=0;for(ni[2*Xt.heap[Xt.heap_max]+1]=0,Ne=Xt.heap_max+1;Ne<b;Ne++)Ii<(we=ni[2*ni[2*(Re=Xt.heap[Ne])+1]+1]+1)&&(we=Ii,fo++),ni[2*Re+1]=we,Ei<Re||(Xt.bl_count[we]++,yi=0,Kr<=Re&&(yi=nn[Re-Kr]),Si=ni[2*Re],Xt.opt_len+=Si*(we+yi),Xn&&(Xt.static_len+=Si*(Tr[2*Re+1]+yi)));if(fo!==0){do{for(we=Ii-1;Xt.bl_count[we]===0;)we--;Xt.bl_count[we]--,Xt.bl_count[we+1]+=2,Xt.bl_count[Ii]--,fo-=2}while(0<fo);for(we=Ii;we!==0;we--)for(Re=Xt.bl_count[we];Re!==0;)Ei<(de=Xt.heap[--Ne])||(ni[2*de+1]!==we&&(Xt.opt_len+=(we-ni[2*de+1])*ni[2*de],ni[2*de+1]=we),Re--)}}(pt,Lt),ki(X,Gt,pt.bl_count)}function R(pt,Lt,ie){var Kt,w,X=-1,nt=Lt[1],tt=0,vt=7,Gt=4;for(nt===0&&(vt=138,Gt=3),Lt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)w=nt,nt=Lt[2*(Kt+1)+1],++tt<vt&&w===nt||(tt<Gt?pt.bl_tree[2*w]+=tt:w!==0?(w!==X&&pt.bl_tree[2*w]++,pt.bl_tree[2*x]++):tt<=10?pt.bl_tree[2*F]++:pt.bl_tree[2*z]++,X=w,Gt=(tt=0)===nt?(vt=138,3):w===nt?(vt=6,3):(vt=7,4))}function Jt(pt,Lt,ie){var Kt,w,X=-1,nt=Lt[1],tt=0,vt=7,Gt=4;for(nt===0&&(vt=138,Gt=3),Kt=0;Kt<=ie;Kt++)if(w=nt,nt=Lt[2*(Kt+1)+1],!(++tt<vt&&w===nt)){if(tt<Gt)for(;Zt(pt,w,pt.bl_tree),--tt!=0;);else w!==0?(w!==X&&(Zt(pt,w,pt.bl_tree),tt--),Zt(pt,x,pt.bl_tree),xe(pt,tt-3,2)):tt<=10?(Zt(pt,F,pt.bl_tree),xe(pt,tt-3,3)):(Zt(pt,z,pt.bl_tree),xe(pt,tt-11,7));X=w,Gt=(tt=0)===nt?(vt=138,3):w===nt?(vt=6,3):(vt=7,4)}}E(ue);var jt=!1;function ct(pt,Lt,ie,Kt){xe(pt,(U<<1)+(Kt?1:0),3),function(w,X,nt,tt){Ge(w),tt&&(Fe(w,nt),Fe(w,~nt)),m.arraySet(w.pending_buf,w.window,X,nt,w.pending),w.pending+=nt}(pt,Lt,ie,!0)}G._tr_init=function(pt){jt||(function(){var Lt,ie,Kt,w,X,nt=new Array(A+1);for(w=Kt=0;w<Y-1;w++)for(Bt[w]=Kt,Lt=0;Lt<1<<W[w];Lt++)D[Kt++]=w;for(D[Kt-1]=w,w=X=0;w<16;w++)for(ue[w]=X,Lt=0;Lt<1<<ht[w];Lt++)Et[X++]=w;for(X>>=7;w<B;w++)for(ue[w]=X<<7,Lt=0;Lt<1<<ht[w]-7;Lt++)Et[256+X++]=w;for(ie=0;ie<=A;ie++)nt[ie]=0;for(Lt=0;Lt<=143;)zt[2*Lt+1]=8,Lt++,nt[8]++;for(;Lt<=255;)zt[2*Lt+1]=9,Lt++,nt[9]++;for(;Lt<=279;)zt[2*Lt+1]=7,Lt++,nt[7]++;for(;Lt<=287;)zt[2*Lt+1]=8,Lt++,nt[8]++;for(ki(zt,K+1,nt),Lt=0;Lt<B;Lt++)lt[2*Lt+1]=5,lt[2*Lt]=ti(Lt,5);Ct=new Ft(zt,W,H+1,K,A),Rt=new Ft(lt,ht,0,B,A),ge=new Ft(new Array(0),ft,0,q,g)}(),jt=!0),pt.l_desc=new Dt(pt.dyn_ltree,Ct),pt.d_desc=new Dt(pt.dyn_dtree,Rt),pt.bl_desc=new Dt(pt.bl_tree,ge),pt.bi_buf=0,pt.bi_valid=0,Ie(pt)},G._tr_stored_block=ct,G._tr_flush_block=function(pt,Lt,ie,Kt){var w,X,nt=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(tt){var vt,Gt=4093624447;for(vt=0;vt<=31;vt++,Gt>>>=1)if(1&Gt&&tt.dyn_ltree[2*vt]!==0)return C;if(tt.dyn_ltree[18]!==0||tt.dyn_ltree[20]!==0||tt.dyn_ltree[26]!==0)return O;for(vt=32;vt<H;vt++)if(tt.dyn_ltree[2*vt]!==0)return O;return C}(pt)),Ji(pt,pt.l_desc),Ji(pt,pt.d_desc),nt=function(tt){var vt;for(R(tt,tt.dyn_ltree,tt.l_desc.max_code),R(tt,tt.dyn_dtree,tt.d_desc.max_code),Ji(tt,tt.bl_desc),vt=q-1;3<=vt&&tt.bl_tree[2*gt[vt]+1]===0;vt--);return tt.opt_len+=3*(vt+1)+5+5+4,vt}(pt),w=pt.opt_len+3+7>>>3,(X=pt.static_len+3+7>>>3)<=w&&(w=X)):w=X=ie+5,ie+4<=w&&Lt!==-1?ct(pt,Lt,ie,Kt):pt.strategy===4||X===w?(xe(pt,2+(Kt?1:0),3),hn(pt,zt,lt)):(xe(pt,4+(Kt?1:0),3),function(tt,vt,Gt,Xt){var Wt;for(xe(tt,vt-257,5),xe(tt,Gt-1,5),xe(tt,Xt-4,4),Wt=0;Wt<Xt;Wt++)xe(tt,tt.bl_tree[2*gt[Wt]+1],3);Jt(tt,tt.dyn_ltree,vt-1),Jt(tt,tt.dyn_dtree,Gt-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,nt+1),hn(pt,pt.dyn_ltree,pt.dyn_dtree)),Ie(pt),Kt&&Ge(pt)},G._tr_tally=function(pt,Lt,ie){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=Lt>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&Lt,pt.pending_buf[pt.l_buf+pt.last_lit]=255&ie,pt.last_lit++,Lt===0?pt.dyn_ltree[2*ie]++:(pt.matches++,Lt--,pt.dyn_ltree[2*(D[ie]+H+1)]++,pt.dyn_dtree[2*kt(Lt)]++),pt.last_lit===pt.lit_bufsize-1},G._tr_align=function(pt){xe(pt,2,3),Zt(pt,M,zt),function(Lt){Lt.bi_valid===16?(Fe(Lt,Lt.bi_buf),Lt.bi_buf=0,Lt.bi_valid=0):8<=Lt.bi_valid&&(Lt.pending_buf[Lt.pending++]=255&Lt.bi_buf,Lt.bi_buf>>=8,Lt.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(p,J,G){J.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(p,J,G){(function(m){(function(C,O){if(!C.setImmediate){var E,U,Y,H,K=1,B={},q=!1,b=C.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(C);A=A&&A.setTimeout?A:C,E={}.toString.call(C.process)==="[object process]"?function(x){process.nextTick(function(){g(x)})}:function(){if(C.postMessage&&!C.importScripts){var x=!0,F=C.onmessage;return C.onmessage=function(){x=!1},C.postMessage("","*"),C.onmessage=F,x}}()?(H="setImmediate$"+Math.random()+"$",C.addEventListener?C.addEventListener("message",M,!1):C.attachEvent("onmessage",M),function(x){C.postMessage(H+x,"*")}):C.MessageChannel?((Y=new MessageChannel).port1.onmessage=function(x){g(x.data)},function(x){Y.port2.postMessage(x)}):b&&"onreadystatechange"in b.createElement("script")?(U=b.documentElement,function(x){var F=b.createElement("script");F.onreadystatechange=function(){g(x),F.onreadystatechange=null,U.removeChild(F),F=null},U.appendChild(F)}):function(x){setTimeout(g,0,x)},A.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var F=new Array(arguments.length-1),z=0;z<F.length;z++)F[z]=arguments[z+1];var W={callback:x,args:F};return B[K]=W,E(K),K++},A.clearImmediate=d}function d(x){delete B[x]}function g(x){if(q)setTimeout(g,0,x);else{var F=B[x];if(F){q=!0;try{(function(z){var W=z.callback,ht=z.args;switch(ht.length){case 0:W();break;case 1:W(ht[0]);break;case 2:W(ht[0],ht[1]);break;case 3:W(ht[0],ht[1],ht[2]);break;default:W.apply(O,ht)}})(F)}finally{d(x),q=!1}}}}function M(x){x.source===C&&typeof x.data=="string"&&x.data.indexOf(H)===0&&g(+x.data.slice(H.length))}})(typeof self>"u"?m===void 0?this:m:self)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Xh);var mc=Xh.exports;const gc=lh(mc);var qh={exports:{}};(function(T,$){(function(p,J){J()})(ur,function(){function p(U,Y){return typeof Y>"u"?Y={autoBom:!1}:typeof Y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),Y={autoBom:!Y}),Y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(U.type)?new Blob(["\uFEFF",U],{type:U.type}):U}function J(U,Y,H){var K=new XMLHttpRequest;K.open("GET",U),K.responseType="blob",K.onload=function(){E(K.response,Y,H)},K.onerror=function(){console.error("could not download file")},K.send()}function G(U){var Y=new XMLHttpRequest;Y.open("HEAD",U,!1);try{Y.send()}catch{}return 200<=Y.status&&299>=Y.status}function m(U){try{U.dispatchEvent(new MouseEvent("click"))}catch{var Y=document.createEvent("MouseEvents");Y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),U.dispatchEvent(Y)}}var C=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ur=="object"&&ur.global===ur?ur:void 0,O=C.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),E=C.saveAs||(typeof window!="object"||window!==C?function(){}:"download"in HTMLAnchorElement.prototype&&!O?function(U,Y,H){var K=C.URL||C.webkitURL,B=document.createElement("a");Y=Y||U.name||"download",B.download=Y,B.rel="noopener",typeof U=="string"?(B.href=U,B.origin===location.origin?m(B):G(B.href)?J(U,Y,H):m(B,B.target="_blank")):(B.href=K.createObjectURL(U),setTimeout(function(){K.revokeObjectURL(B.href)},4e4),setTimeout(function(){m(B)},0))}:"msSaveOrOpenBlob"in navigator?function(U,Y,H){if(Y=Y||U.name||"download",typeof U!="string")navigator.msSaveOrOpenBlob(p(U,H),Y);else if(G(U))J(U,Y,H);else{var K=document.createElement("a");K.href=U,K.target="_blank",setTimeout(function(){m(K)})}}:function(U,Y,H,K){if(K=K||open("","_blank"),K&&(K.document.title=K.document.body.innerText="downloading..."),typeof U=="string")return J(U,Y,H);var B=U.type==="application/octet-stream",q=/constructor/i.test(C.HTMLElement)||C.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||B&&q||O)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var M=A.result;M=b?M:M.replace(/^data:[^;]*;/,"data:attachment/file;"),K?K.location.href=M:location=M,K=null},A.readAsDataURL(U)}else{var d=C.URL||C.webkitURL,g=d.createObjectURL(U);K?K.location=g:location.href=g,K=null,setTimeout(function(){d.revokeObjectURL(g)},4e4)}});C.saveAs=E.saveAs=E,T.exports=E})})(qh);var vc=qh.exports;const yc=lh(vc);class _c{constructor($,p){window.mars3d?(this.map=$,this.panoramicViewClass=p,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt):console.error("未引入指定插件")}start($=!0){var p,J;if($){this.timestamp=new Date().getTime();const G=document.getElementById("app"),m=window.innerHeight,C=document.getElementById("mars3dContainer");C&&(C.style.width=m.toString()+"px",C.style.height=m.toString()+"px"),G!==null&&G.classList.add(this.panoramicViewClass);let{lat:O,lng:E,alt:U}=this.map.getCameraView();this.lat=O,this.lng=E,this.alt=U,this.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(p=this.screenshotArray)==null?void 0:p.length]?this.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(J=this.screenshotArray)==null?void 0:J.length]},{complete:()=>{setTimeout(()=>{var G;this.screenshot((G=this.screenshotArray)==null?void 0:G.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):(console.error("初始化失效"),this.emit("state",{type:"error"}))}async screenshot($){const p=await this.map.expImage({download:!1}),J=this.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),G=await window.domtoimage.toPng(this.map.container,{filter:m=>m!==J[0]});this.mergeImage(p.image,G,p.width,p.height).then(m=>{var E;let C=Number($)+1,O={src:m,name:"全景图_"+this.timestamp+"_"+C+".jpg"};this.emit("intercept",O),(E=this.screenshotArray)==null||E.push(O),this.start(!1)})}mergeImage($,p,J,G){return new Promise((m,C)=>{const O=document.createElement("canvas");O.width=J,O.height=G;const E=O.getContext("2d");if(O&&E){const U=new Image;U.crossOrigin="Anonymous",U.onload=()=>{E.drawImage(U,0,0,J,G);const Y=new Image;Y.crossOrigin="Anonymous",Y.onload=()=>{E.drawImage(Y,0,0,J,G);const H=O.toDataURL("image/png");m(H)},Y.src=p},U.src=$}else C()})}download(){this.screenshotArray&&this.screenshotArray.forEach($=>{window.mars3d.Util.downloadBase64Image($.name,$.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const $=new gc;this.screenshotArray.forEach(J=>{const G=J.src.split(",")[1],m=atob(G),C=[];for(let U=0;U<m.length;U+=1024){const Y=m.slice(U,U+1024),H=new Array(Y.length);for(let B=0;B<Y.length;B++)H[B]=Y.charCodeAt(B);const K=new Uint8Array(H);C.push(K)}const O=new Blob(C,{type:"image/jpeg"}),E=`${J.name}`;$.file(E,O,{binary:!0})});const p=await $.generateAsync({type:"blob"});yc(p,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const $=document.getElementById("app");$&&$.classList.remove(this.panoramicViewClass);const p=document.getElementById("mars3dContainer");p&&(p.style.width="",p.style.height="")}on($,p){this.events[$]?this.events[$].push(p):this.events[$]=[p]}emit($,...p){this.events[$]!=null&&this.events[$].forEach(J=>J(...p))}off($,p){this.events[$]=this.events[$].filter(J=>J!==p)}}const xc=[Gh,jh],wc={continuation:null,mapModali:null,install(T){if(xc.forEach((C,O)=>{T.component(C.name,C)}),this.continuation){T.config.globalProperties.$continuation=this.continuation;return}let $=oi.createApp(Hh),p=document.createElement("div"),J=document.body;if(J.appendChild(p),this.loading=$.mount(p),T.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){T.config.globalProperties.$mapModali=this.mapModali;return}let G=oi.createApp(Vh),m=document.createElement("div");J.appendChild(m),this.mapModali=G.mount(m),T.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};Ki.BimBackgroundPlate=jh,Ki.BimCutscenes=Hh,Ki.BimElevationImage=fc,Ki.BimEntity=dc,Ki.BimModel=lc,Ki.BimTerrainProvider=cc,Ki.BimVector=uc,Ki.Button=Gh,Ki.ChbimPlugins=wc,Ki.MapModali=Vh,Ki.PanoramicView=_c,Ki.ViewShed=pc,Object.defineProperty(Ki,Symbol.toStringTag,{value:"Module"})});
|
|
2683
|
+
*/(function(w,l){(function(o){w.exports=o()})(function(){return function o(p,d,u){function m(S,C){if(!d[S]){if(!p[S]){var I=typeof su=="function"&&su;if(!C&&I)return I(S,!0);if(_)return _(S,!0);var N=new Error("Cannot find module '"+S+"'");throw N.code="MODULE_NOT_FOUND",N}var z=d[S]={exports:{}};p[S][0].call(z.exports,function(U){var E=p[S][1][U];return m(E||U)},z,z.exports,o,p,d,u)}return d[S].exports}for(var _=typeof su=="function"&&su,T=0;T<u.length;T++)m(u[T]);return m}({1:[function(o,p,d){var u=o("./utils"),m=o("./support"),_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(T){for(var S,C,I,N,z,U,E,L=[],x=0,M=T.length,R=M,b=u.getTypeOf(T)!=="string";x<T.length;)R=M-x,I=b?(S=T[x++],C=x<M?T[x++]:0,x<M?T[x++]:0):(S=T.charCodeAt(x++),C=x<M?T.charCodeAt(x++):0,x<M?T.charCodeAt(x++):0),N=S>>2,z=(3&S)<<4|C>>4,U=1<R?(15&C)<<2|I>>6:64,E=2<R?63&I:64,L.push(_.charAt(N)+_.charAt(z)+_.charAt(U)+_.charAt(E));return L.join("")},d.decode=function(T){var S,C,I,N,z,U,E=0,L=0,x="data:";if(T.substr(0,x.length)===x)throw new Error("Invalid base64 input, it looks like a data url.");var M,R=3*(T=T.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(T.charAt(T.length-1)===_.charAt(64)&&R--,T.charAt(T.length-2)===_.charAt(64)&&R--,R%1!=0)throw new Error("Invalid base64 input, bad content length.");for(M=m.uint8array?new Uint8Array(0|R):new Array(0|R);E<T.length;)S=_.indexOf(T.charAt(E++))<<2|(N=_.indexOf(T.charAt(E++)))>>4,C=(15&N)<<4|(z=_.indexOf(T.charAt(E++)))>>2,I=(3&z)<<6|(U=_.indexOf(T.charAt(E++))),M[L++]=S,z!==64&&(M[L++]=C),U!==64&&(M[L++]=I);return M}},{"./support":30,"./utils":32}],2:[function(o,p,d){var u=o("./external"),m=o("./stream/DataWorker"),_=o("./stream/Crc32Probe"),T=o("./stream/DataLengthProbe");function S(C,I,N,z,U){this.compressedSize=C,this.uncompressedSize=I,this.crc32=N,this.compression=z,this.compressedContent=U}S.prototype={getContentWorker:function(){var C=new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new T("data_length")),I=this;return C.on("end",function(){if(this.streamInfo.data_length!==I.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),C},getCompressedWorker:function(){return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(C,I,N){return C.pipe(new _).pipe(new T("uncompressedSize")).pipe(I.compressWorker(N)).pipe(new T("compressedSize")).withStreamInfo("compression",I)},p.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,p,d){var u=o("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},d.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,p,d){var u=o("./utils"),m=function(){for(var _,T=[],S=0;S<256;S++){_=S;for(var C=0;C<8;C++)_=1&_?3988292384^_>>>1:_>>>1;T[S]=_}return T}();p.exports=function(_,T){return _!==void 0&&_.length?u.getTypeOf(_)!=="string"?function(S,C,I,N){var z=m,U=N+I;S^=-1;for(var E=N;E<U;E++)S=S>>>8^z[255&(S^C[E])];return-1^S}(0|T,_,_.length,0):function(S,C,I,N){var z=m,U=N+I;S^=-1;for(var E=N;E<U;E++)S=S>>>8^z[255&(S^C.charCodeAt(E))];return-1^S}(0|T,_,_.length,0):0}},{"./utils":32}],5:[function(o,p,d){d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(o,p,d){var u=null;u=typeof Promise<"u"?Promise:o("lie"),p.exports={Promise:u}},{lie:37}],7:[function(o,p,d){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=o("pako"),_=o("./utils"),T=o("./stream/GenericWorker"),S=u?"uint8array":"array";function C(I,N){T.call(this,"FlateWorker/"+I),this._pako=null,this._pakoAction=I,this._pakoOptions=N,this.meta={}}d.magic="\b\0",_.inherits(C,T),C.prototype.processChunk=function(I){this.meta=I.meta,this._pako===null&&this._createPako(),this._pako.push(_.transformTo(S,I.data),!1)},C.prototype.flush=function(){T.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},C.prototype.cleanUp=function(){T.prototype.cleanUp.call(this),this._pako=null},C.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var I=this;this._pako.onData=function(N){I.push({data:N,meta:I.meta})}},d.compressWorker=function(I){return new C("Deflate",I)},d.uncompressWorker=function(){return new C("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,p,d){function u(z,U){var E,L="";for(E=0;E<U;E++)L+=String.fromCharCode(255&z),z>>>=8;return L}function m(z,U,E,L,x,M){var R,b,F=z.file,B=z.compression,X=M!==S.utf8encode,$=_.transformTo("string",M(F.name)),Q=_.transformTo("string",S.utf8encode(F.name)),ft=F.comment,Ct=_.transformTo("string",M(ft)),it=_.transformTo("string",S.utf8encode(ft)),yt=Q.length!==F.name.length,G=it.length!==ft.length,Lt="",Et="",Pt="",ce=F.dir,re=F.date,Ft={crc32:0,compressedSize:0,uncompressedSize:0};U&&!E||(Ft.crc32=z.crc32,Ft.compressedSize=z.compressedSize,Ft.uncompressedSize=z.uncompressedSize);var It=0;U&&(It|=8),X||!yt&&!G||(It|=2048);var Bt=0,Be=0;ce&&(Bt|=16),x==="UNIX"?(Be=798,Bt|=function(Yt,ti){var Fi=Yt;return Yt||(Fi=ti?16893:33204),(65535&Fi)<<16}(F.unixPermissions,ce)):(Be=20,Bt|=function(Yt){return 63&(Yt||0)}(F.dosPermissions)),R=re.getUTCHours(),R<<=6,R|=re.getUTCMinutes(),R<<=5,R|=re.getUTCSeconds()/2,b=re.getUTCFullYear()-1980,b<<=4,b|=re.getUTCMonth()+1,b<<=5,b|=re.getUTCDate(),yt&&(Et=u(1,1)+u(C($),4)+Q,Lt+="up"+u(Et.length,2)+Et),G&&(Pt=u(1,1)+u(C(Ct),4)+it,Lt+="uc"+u(Pt.length,2)+Pt);var me="";return me+=`
|
|
2684
|
+
\0`,me+=u(It,2),me+=B.magic,me+=u(R,2),me+=u(b,2),me+=u(Ft.crc32,4),me+=u(Ft.compressedSize,4),me+=u(Ft.uncompressedSize,4),me+=u($.length,2),me+=u(Lt.length,2),{fileRecord:I.LOCAL_FILE_HEADER+me+$+Lt,dirRecord:I.CENTRAL_FILE_HEADER+u(Be,2)+me+u(Ct.length,2)+"\0\0\0\0"+u(Bt,4)+u(L,4)+$+Lt+Ct}}var _=o("../utils"),T=o("../stream/GenericWorker"),S=o("../utf8"),C=o("../crc32"),I=o("../signature");function N(z,U,E,L){T.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=U,this.zipPlatform=E,this.encodeFileName=L,this.streamFiles=z,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}_.inherits(N,T),N.prototype.push=function(z){var U=z.meta.percent||0,E=this.entriesCount,L=this._sources.length;this.accumulate?this.contentBuffer.push(z):(this.bytesWritten+=z.data.length,T.prototype.push.call(this,{data:z.data,meta:{currentFile:this.currentFile,percent:E?(U+100*(E-L-1))/E:100}}))},N.prototype.openedSource=function(z){this.currentSourceOffset=this.bytesWritten,this.currentFile=z.file.name;var U=this.streamFiles&&!z.file.dir;if(U){var E=m(z,U,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},N.prototype.closedSource=function(z){this.accumulate=!1;var U=this.streamFiles&&!z.file.dir,E=m(z,U,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),U)this.push({data:function(L){return I.DATA_DESCRIPTOR+u(L.crc32,4)+u(L.compressedSize,4)+u(L.uncompressedSize,4)}(z),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},N.prototype.flush=function(){for(var z=this.bytesWritten,U=0;U<this.dirRecords.length;U++)this.push({data:this.dirRecords[U],meta:{percent:100}});var E=this.bytesWritten-z,L=function(x,M,R,b,F){var B=_.transformTo("string",F(b));return I.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(x,2)+u(x,2)+u(M,4)+u(R,4)+u(B.length,2)+B}(this.dirRecords.length,E,z,this.zipComment,this.encodeFileName);this.push({data:L,meta:{percent:100}})},N.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},N.prototype.registerPrevious=function(z){this._sources.push(z);var U=this;return z.on("data",function(E){U.processChunk(E)}),z.on("end",function(){U.closedSource(U.previous.streamInfo),U._sources.length?U.prepareNextSource():U.end()}),z.on("error",function(E){U.error(E)}),this},N.prototype.resume=function(){return!!T.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},N.prototype.error=function(z){var U=this._sources;if(!T.prototype.error.call(this,z))return!1;for(var E=0;E<U.length;E++)try{U[E].error(z)}catch{}return!0},N.prototype.lock=function(){T.prototype.lock.call(this);for(var z=this._sources,U=0;U<z.length;U++)z[U].lock()},p.exports=N},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,p,d){var u=o("../compressions"),m=o("./ZipFileWorker");d.generateWorker=function(_,T,S){var C=new m(T.streamFiles,S,T.platform,T.encodeFileName),I=0;try{_.forEach(function(N,z){I++;var U=function(M,R){var b=M||R,F=u[b];if(!F)throw new Error(b+" is not a valid compression method !");return F}(z.options.compression,T.compression),E=z.options.compressionOptions||T.compressionOptions||{},L=z.dir,x=z.date;z._compressWorker(U,E).withStreamInfo("file",{name:N,dir:L,date:x,comment:z.comment||"",unixPermissions:z.unixPermissions,dosPermissions:z.dosPermissions}).pipe(C)}),C.entriesCount=I}catch(N){C.error(N)}return C}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,p,d){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var _ in this)typeof this[_]!="function"&&(m[_]=this[_]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,_){return new u().loadAsync(m,_)},u.external=o("./external"),p.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,p,d){var u=o("./utils"),m=o("./external"),_=o("./utf8"),T=o("./zipEntries"),S=o("./stream/Crc32Probe"),C=o("./nodejsUtils");function I(N){return new m.Promise(function(z,U){var E=N.decompressed.getContentWorker().pipe(new S);E.on("error",function(L){U(L)}).on("end",function(){E.streamInfo.crc32!==N.decompressed.crc32?U(new Error("Corrupted zip : CRC32 mismatch")):z()}).resume()})}p.exports=function(N,z){var U=this;return z=u.extend(z||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:_.utf8decode}),C.isNode&&C.isStream(N)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",N,!0,z.optimizedBinaryString,z.base64).then(function(E){var L=new T(z);return L.load(E),L}).then(function(E){var L=[m.Promise.resolve(E)],x=E.files;if(z.checkCRC32)for(var M=0;M<x.length;M++)L.push(I(x[M]));return m.Promise.all(L)}).then(function(E){for(var L=E.shift(),x=L.files,M=0;M<x.length;M++){var R=x[M],b=R.fileNameStr,F=u.resolve(R.fileNameStr);U.file(F,R.decompressed,{binary:!0,optimizedBinaryString:!0,date:R.date,dir:R.dir,comment:R.fileCommentStr.length?R.fileCommentStr:null,unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions,createFolders:z.createFolders}),R.dir||(U.file(F).unsafeOriginalName=b)}return L.zipComment.length&&(U.comment=L.zipComment),U})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,p,d){var u=o("../utils"),m=o("../stream/GenericWorker");function _(T,S){m.call(this,"Nodejs stream input adapter for "+T),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(_,m),_.prototype._bindStream=function(T){var S=this;(this._stream=T).pause(),T.on("data",function(C){S.push({data:C,meta:{percent:0}})}).on("error",function(C){S.isPaused?this.generatedError=C:S.error(C)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},_.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},_.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=_},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,p,d){var u=o("readable-stream").Readable;function m(_,T,S){u.call(this,T),this._helper=_;var C=this;_.on("data",function(I,N){C.push(I)||C._helper.pause(),S&&S(N)}).on("error",function(I){C.emit("error",I)}).on("end",function(){C.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},p.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,p,d){p.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,p,d){function u(F,B,X){var $,Q=_.getTypeOf(B),ft=_.extend(X||{},C);ft.date=ft.date||new Date,ft.compression!==null&&(ft.compression=ft.compression.toUpperCase()),typeof ft.unixPermissions=="string"&&(ft.unixPermissions=parseInt(ft.unixPermissions,8)),ft.unixPermissions&&16384&ft.unixPermissions&&(ft.dir=!0),ft.dosPermissions&&16&ft.dosPermissions&&(ft.dir=!0),ft.dir&&(F=x(F)),ft.createFolders&&($=L(F))&&M.call(this,$,!0);var Ct=Q==="string"&&ft.binary===!1&&ft.base64===!1;X&&X.binary!==void 0||(ft.binary=!Ct),(B instanceof I&&B.uncompressedSize===0||ft.dir||!B||B.length===0)&&(ft.base64=!1,ft.binary=!0,B="",ft.compression="STORE",Q="string");var it=null;it=B instanceof I||B instanceof T?B:U.isNode&&U.isStream(B)?new E(F,B):_.prepareContent(F,B,ft.binary,ft.optimizedBinaryString,ft.base64);var yt=new N(F,it,ft);this.files[F]=yt}var m=o("./utf8"),_=o("./utils"),T=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),C=o("./defaults"),I=o("./compressedObject"),N=o("./zipObject"),z=o("./generate"),U=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),L=function(F){F.slice(-1)==="/"&&(F=F.substring(0,F.length-1));var B=F.lastIndexOf("/");return 0<B?F.substring(0,B):""},x=function(F){return F.slice(-1)!=="/"&&(F+="/"),F},M=function(F,B){return B=B!==void 0?B:C.createFolders,F=x(F),this.files[F]||u.call(this,F,null,{dir:!0,createFolders:B}),this.files[F]};function R(F){return Object.prototype.toString.call(F)==="[object RegExp]"}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(F){var B,X,$;for(B in this.files)$=this.files[B],(X=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&F(X,$)},filter:function(F){var B=[];return this.forEach(function(X,$){F(X,$)&&B.push($)}),B},file:function(F,B,X){if(arguments.length!==1)return F=this.root+F,u.call(this,F,B,X),this;if(R(F)){var $=F;return this.filter(function(ft,Ct){return!Ct.dir&&$.test(ft)})}var Q=this.files[this.root+F];return Q&&!Q.dir?Q:null},folder:function(F){if(!F)return this;if(R(F))return this.filter(function(Q,ft){return ft.dir&&F.test(Q)});var B=this.root+F,X=M.call(this,B),$=this.clone();return $.root=X.name,$},remove:function(F){F=this.root+F;var B=this.files[F];if(B||(F.slice(-1)!=="/"&&(F+="/"),B=this.files[F]),B&&!B.dir)delete this.files[F];else for(var X=this.filter(function(Q,ft){return ft.name.slice(0,F.length)===F}),$=0;$<X.length;$++)delete this.files[X[$].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(F){var B,X={};try{if((X=_.extend(F||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=X.type.toLowerCase(),X.compression=X.compression.toUpperCase(),X.type==="binarystring"&&(X.type="string"),!X.type)throw new Error("No output type specified.");_.checkSupport(X.type),X.platform!=="darwin"&&X.platform!=="freebsd"&&X.platform!=="linux"&&X.platform!=="sunos"||(X.platform="UNIX"),X.platform==="win32"&&(X.platform="DOS");var $=X.comment||this.comment||"";B=z.generateWorker(this,X,$)}catch(Q){(B=new T("error")).error(Q)}return new S(B,X.type||"string",X.mimeType)},generateAsync:function(F,B){return this.generateInternalStream(F).accumulate(B)},generateNodeStream:function(F,B){return(F=F||{}).type||(F.type="nodebuffer"),this.generateInternalStream(F).toNodejsStream(B)}};p.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,p,d){p.exports=o("stream")},{stream:void 0}],17:[function(o,p,d){var u=o("./DataReader");function m(_){u.call(this,_);for(var T=0;T<this.data.length;T++)_[T]=255&_[T]}o("../utils").inherits(m,u),m.prototype.byteAt=function(_){return this.data[this.zero+_]},m.prototype.lastIndexOfSignature=function(_){for(var T=_.charCodeAt(0),S=_.charCodeAt(1),C=_.charCodeAt(2),I=_.charCodeAt(3),N=this.length-4;0<=N;--N)if(this.data[N]===T&&this.data[N+1]===S&&this.data[N+2]===C&&this.data[N+3]===I)return N-this.zero;return-1},m.prototype.readAndCheckSignature=function(_){var T=_.charCodeAt(0),S=_.charCodeAt(1),C=_.charCodeAt(2),I=_.charCodeAt(3),N=this.readData(4);return T===N[0]&&S===N[1]&&C===N[2]&&I===N[3]},m.prototype.readData=function(_){if(this.checkOffset(_),_===0)return[];var T=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,T},p.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,p,d){var u=o("../utils");function m(_){this.data=_,this.length=_.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(_){this.checkIndex(this.index+_)},checkIndex:function(_){if(this.length<this.zero+_||_<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+_+"). Corrupted zip ?")},setIndex:function(_){this.checkIndex(_),this.index=_},skip:function(_){this.setIndex(this.index+_)},byteAt:function(){},readInt:function(_){var T,S=0;for(this.checkOffset(_),T=this.index+_-1;T>=this.index;T--)S=(S<<8)+this.byteAt(T);return this.index+=_,S},readString:function(_){return u.transformTo("string",this.readData(_))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var _=this.readInt(4);return new Date(Date.UTC(1980+(_>>25&127),(_>>21&15)-1,_>>16&31,_>>11&31,_>>5&63,(31&_)<<1))}},p.exports=m},{"../utils":32}],19:[function(o,p,d){var u=o("./Uint8ArrayReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.readData=function(_){this.checkOffset(_);var T=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,T},p.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,p,d){var u=o("./DataReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.byteAt=function(_){return this.data.charCodeAt(this.zero+_)},m.prototype.lastIndexOfSignature=function(_){return this.data.lastIndexOf(_)-this.zero},m.prototype.readAndCheckSignature=function(_){return _===this.readData(4)},m.prototype.readData=function(_){this.checkOffset(_);var T=this.data.slice(this.zero+this.index,this.zero+this.index+_);return this.index+=_,T},p.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,p,d){var u=o("./ArrayReader");function m(_){u.call(this,_)}o("../utils").inherits(m,u),m.prototype.readData=function(_){if(this.checkOffset(_),_===0)return new Uint8Array(0);var T=this.data.subarray(this.zero+this.index,this.zero+this.index+_);return this.index+=_,T},p.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,p,d){var u=o("../utils"),m=o("../support"),_=o("./ArrayReader"),T=o("./StringReader"),S=o("./NodeBufferReader"),C=o("./Uint8ArrayReader");p.exports=function(I){var N=u.getTypeOf(I);return u.checkSupport(N),N!=="string"||m.uint8array?N==="nodebuffer"?new S(I):m.uint8array?new C(u.transformTo("uint8array",I)):new _(u.transformTo("array",I)):new T(I)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,p,d){d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,p,d){var u=o("./GenericWorker"),m=o("../utils");function _(T){u.call(this,"ConvertWorker to "+T),this.destType=T}m.inherits(_,u),_.prototype.processChunk=function(T){this.push({data:m.transformTo(this.destType,T.data),meta:T.meta})},p.exports=_},{"../utils":32,"./GenericWorker":28}],25:[function(o,p,d){var u=o("./GenericWorker"),m=o("../crc32");function _(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(_,u),_.prototype.processChunk=function(T){this.streamInfo.crc32=m(T.data,this.streamInfo.crc32||0),this.push(T)},p.exports=_},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,p,d){var u=o("../utils"),m=o("./GenericWorker");function _(T){m.call(this,"DataLengthProbe for "+T),this.propName=T,this.withStreamInfo(T,0)}u.inherits(_,m),_.prototype.processChunk=function(T){if(T){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+T.data.length}m.prototype.processChunk.call(this,T)},p.exports=_},{"../utils":32,"./GenericWorker":28}],27:[function(o,p,d){var u=o("../utils"),m=o("./GenericWorker");function _(T){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,T.then(function(C){S.dataIsReady=!0,S.data=C,S.max=C&&C.length||0,S.type=u.getTypeOf(C),S.isPaused||S._tickAndRepeat()},function(C){S.error(C)})}u.inherits(_,m),_.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},_.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},_.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},_.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var T=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":T=this.data.substring(this.index,S);break;case"uint8array":T=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":T=this.data.slice(this.index,S)}return this.index=S,this.push({data:T,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=_},{"../utils":32,"./GenericWorker":28}],28:[function(o,p,d){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,_){return this._listeners[m].push(_),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,_){if(this._listeners[m])for(var T=0;T<this._listeners[m].length;T++)this._listeners[m][T].call(this,_)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var _=this;return m.on("data",function(T){_.processChunk(T)}),m.on("end",function(){_.end()}),m.on("error",function(T){_.error(T)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,_){return this.extraStreamInfo[m]=_,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},p.exports=u},{}],29:[function(o,p,d){var u=o("../utils"),m=o("./ConvertWorker"),_=o("./GenericWorker"),T=o("../base64"),S=o("../support"),C=o("../external"),I=null;if(S.nodestream)try{I=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function N(U,E){return new C.Promise(function(L,x){var M=[],R=U._internalType,b=U._outputType,F=U._mimeType;U.on("data",function(B,X){M.push(B),E&&E(X)}).on("error",function(B){M=[],x(B)}).on("end",function(){try{var B=function(X,$,Q){switch(X){case"blob":return u.newBlob(u.transformTo("arraybuffer",$),Q);case"base64":return T.encode($);default:return u.transformTo(X,$)}}(b,function(X,$){var Q,ft=0,Ct=null,it=0;for(Q=0;Q<$.length;Q++)it+=$[Q].length;switch(X){case"string":return $.join("");case"array":return Array.prototype.concat.apply([],$);case"uint8array":for(Ct=new Uint8Array(it),Q=0;Q<$.length;Q++)Ct.set($[Q],ft),ft+=$[Q].length;return Ct;case"nodebuffer":return Buffer.concat($);default:throw new Error("concat : unsupported type '"+X+"'")}}(R,M),F);L(B)}catch(X){x(X)}M=[]}).resume()})}function z(U,E,L){var x=E;switch(E){case"blob":case"arraybuffer":x="uint8array";break;case"base64":x="string"}try{this._internalType=x,this._outputType=E,this._mimeType=L,u.checkSupport(x),this._worker=U.pipe(new m(x)),U.lock()}catch(M){this._worker=new _("error"),this._worker.error(M)}}z.prototype={accumulate:function(U){return N(this,U)},on:function(U,E){var L=this;return U==="data"?this._worker.on(U,function(x){E.call(L,x.data,x.meta)}):this._worker.on(U,function(){u.delay(E,arguments,L)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(U){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new I(this,{objectMode:this._outputType!=="nodebuffer"},U)}},p.exports=z},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,p,d){if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",d.nodebuffer=typeof Buffer<"u",d.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")d.blob=!1;else{var u=new ArrayBuffer(0);try{d.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),d.blob=m.getBlob("application/zip").size===0}catch{d.blob=!1}}}try{d.nodestream=!!o("readable-stream").Readable}catch{d.nodestream=!1}},{"readable-stream":16}],31:[function(o,p,d){for(var u=o("./utils"),m=o("./support"),_=o("./nodejsUtils"),T=o("./stream/GenericWorker"),S=new Array(256),C=0;C<256;C++)S[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;S[254]=S[254]=1;function I(){T.call(this,"utf-8 decode"),this.leftOver=null}function N(){T.call(this,"utf-8 encode")}d.utf8encode=function(z){return m.nodebuffer?_.newBufferFrom(z,"utf-8"):function(U){var E,L,x,M,R,b=U.length,F=0;for(M=0;M<b;M++)(64512&(L=U.charCodeAt(M)))==55296&&M+1<b&&(64512&(x=U.charCodeAt(M+1)))==56320&&(L=65536+(L-55296<<10)+(x-56320),M++),F+=L<128?1:L<2048?2:L<65536?3:4;for(E=m.uint8array?new Uint8Array(F):new Array(F),M=R=0;R<F;M++)(64512&(L=U.charCodeAt(M)))==55296&&M+1<b&&(64512&(x=U.charCodeAt(M+1)))==56320&&(L=65536+(L-55296<<10)+(x-56320),M++),L<128?E[R++]=L:(L<2048?E[R++]=192|L>>>6:(L<65536?E[R++]=224|L>>>12:(E[R++]=240|L>>>18,E[R++]=128|L>>>12&63),E[R++]=128|L>>>6&63),E[R++]=128|63&L);return E}(z)},d.utf8decode=function(z){return m.nodebuffer?u.transformTo("nodebuffer",z).toString("utf-8"):function(U){var E,L,x,M,R=U.length,b=new Array(2*R);for(E=L=0;E<R;)if((x=U[E++])<128)b[L++]=x;else if(4<(M=S[x]))b[L++]=65533,E+=M-1;else{for(x&=M===2?31:M===3?15:7;1<M&&E<R;)x=x<<6|63&U[E++],M--;1<M?b[L++]=65533:x<65536?b[L++]=x:(x-=65536,b[L++]=55296|x>>10&1023,b[L++]=56320|1023&x)}return b.length!==L&&(b.subarray?b=b.subarray(0,L):b.length=L),u.applyFromCharCode(b)}(z=u.transformTo(m.uint8array?"uint8array":"array",z))},u.inherits(I,T),I.prototype.processChunk=function(z){var U=u.transformTo(m.uint8array?"uint8array":"array",z.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=U;(U=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),U.set(E,this.leftOver.length)}else U=this.leftOver.concat(U);this.leftOver=null}var L=function(M,R){var b;for((R=R||M.length)>M.length&&(R=M.length),b=R-1;0<=b&&(192&M[b])==128;)b--;return b<0||b===0?R:b+S[M[b]]>R?b:R}(U),x=U;L!==U.length&&(m.uint8array?(x=U.subarray(0,L),this.leftOver=U.subarray(L,U.length)):(x=U.slice(0,L),this.leftOver=U.slice(L,U.length))),this.push({data:d.utf8decode(x),meta:z.meta})},I.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=I,u.inherits(N,T),N.prototype.processChunk=function(z){this.push({data:d.utf8encode(z.data),meta:z.meta})},d.Utf8EncodeWorker=N},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,p,d){var u=o("./support"),m=o("./base64"),_=o("./nodejsUtils"),T=o("./external");function S(E){return E}function C(E,L){for(var x=0;x<E.length;++x)L[x]=255&E.charCodeAt(x);return L}o("setimmediate"),d.newBlob=function(E,L){d.checkSupport("blob");try{return new Blob([E],{type:L})}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return x.append(E),x.getBlob(L)}catch{throw new Error("Bug : can't construct the Blob.")}}};var I={stringifyByChunk:function(E,L,x){var M=[],R=0,b=E.length;if(b<=x)return String.fromCharCode.apply(null,E);for(;R<b;)L==="array"||L==="nodebuffer"?M.push(String.fromCharCode.apply(null,E.slice(R,Math.min(R+x,b)))):M.push(String.fromCharCode.apply(null,E.subarray(R,Math.min(R+x,b)))),R+=x;return M.join("")},stringifyByChar:function(E){for(var L="",x=0;x<E.length;x++)L+=String.fromCharCode(E[x]);return L},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,_.allocBuffer(1)).length===1}catch{return!1}}()}};function N(E){var L=65536,x=d.getTypeOf(E),M=!0;if(x==="uint8array"?M=I.applyCanBeUsed.uint8array:x==="nodebuffer"&&(M=I.applyCanBeUsed.nodebuffer),M)for(;1<L;)try{return I.stringifyByChunk(E,x,L)}catch{L=Math.floor(L/2)}return I.stringifyByChar(E)}function z(E,L){for(var x=0;x<E.length;x++)L[x]=E[x];return L}d.applyFromCharCode=N;var U={};U.string={string:S,array:function(E){return C(E,new Array(E.length))},arraybuffer:function(E){return U.string.uint8array(E).buffer},uint8array:function(E){return C(E,new Uint8Array(E.length))},nodebuffer:function(E){return C(E,_.allocBuffer(E.length))}},U.array={string:N,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return _.newBufferFrom(E)}},U.arraybuffer={string:function(E){return N(new Uint8Array(E))},array:function(E){return z(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return _.newBufferFrom(new Uint8Array(E))}},U.uint8array={string:N,array:function(E){return z(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return _.newBufferFrom(E)}},U.nodebuffer={string:N,array:function(E){return z(E,new Array(E.length))},arraybuffer:function(E){return U.nodebuffer.uint8array(E).buffer},uint8array:function(E){return z(E,new Uint8Array(E.length))},nodebuffer:S},d.transformTo=function(E,L){if(L=L||"",!E)return L;d.checkSupport(E);var x=d.getTypeOf(L);return U[x][E](L)},d.resolve=function(E){for(var L=E.split("/"),x=[],M=0;M<L.length;M++){var R=L[M];R==="."||R===""&&M!==0&&M!==L.length-1||(R===".."?x.pop():x.push(R))}return x.join("/")},d.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&_.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(E){var L,x,M="";for(x=0;x<(E||"").length;x++)M+="\\x"+((L=E.charCodeAt(x))<16?"0":"")+L.toString(16).toUpperCase();return M},d.delay=function(E,L,x){setImmediate(function(){E.apply(x||null,L||[])})},d.inherits=function(E,L){function x(){}x.prototype=L.prototype,E.prototype=new x},d.extend=function(){var E,L,x={};for(E=0;E<arguments.length;E++)for(L in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],L)&&x[L]===void 0&&(x[L]=arguments[E][L]);return x},d.prepareContent=function(E,L,x,M,R){return T.Promise.resolve(L).then(function(b){return u.blob&&(b instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(b))!==-1)&&typeof FileReader<"u"?new T.Promise(function(F,B){var X=new FileReader;X.onload=function($){F($.target.result)},X.onerror=function($){B($.target.error)},X.readAsArrayBuffer(b)}):b}).then(function(b){var F=d.getTypeOf(b);return F?(F==="arraybuffer"?b=d.transformTo("uint8array",b):F==="string"&&(R?b=m.decode(b):x&&M!==!0&&(b=function(B){return C(B,u.uint8array?new Uint8Array(B.length):new Array(B.length))}(b))),b):T.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,p,d){var u=o("./reader/readerFor"),m=o("./utils"),_=o("./signature"),T=o("./zipEntry"),S=o("./support");function C(I){this.files=[],this.loadOptions=I}C.prototype={checkSignature:function(I){if(!this.reader.readAndCheckSignature(I)){this.reader.index-=4;var N=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(N)+", expected "+m.pretty(I)+")")}},isSignature:function(I,N){var z=this.reader.index;this.reader.setIndex(I);var U=this.reader.readString(4)===N;return this.reader.setIndex(z),U},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var I=this.reader.readData(this.zipCommentLength),N=S.uint8array?"uint8array":"array",z=m.transformTo(N,I);this.zipComment=this.loadOptions.decodeFileName(z)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var I,N,z,U=this.zip64EndOfCentralSize-44;0<U;)I=this.reader.readInt(2),N=this.reader.readInt(4),z=this.reader.readData(N),this.zip64ExtensibleData[I]={id:I,length:N,value:z}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var I,N;for(I=0;I<this.files.length;I++)N=this.files[I],this.reader.setIndex(N.localHeaderOffset),this.checkSignature(_.LOCAL_FILE_HEADER),N.readLocalPart(this.reader),N.handleUTF8(),N.processAttributes()},readCentralDir:function(){var I;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(_.CENTRAL_FILE_HEADER);)(I=new T({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(I);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var I=this.reader.lastIndexOfSignature(_.CENTRAL_DIRECTORY_END);if(I<0)throw this.isSignature(0,_.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(I);var N=I;if(this.checkSignature(_.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(I=this.reader.lastIndexOfSignature(_.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(I),this.checkSignature(_.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,_.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(_.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(_.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var z=this.centralDirOffset+this.centralDirSize;this.zip64&&(z+=20,z+=12+this.zip64EndOfCentralSize);var U=N-z;if(0<U)this.isSignature(N,_.CENTRAL_FILE_HEADER)||(this.reader.zero=U);else if(U<0)throw new Error("Corrupted zip: missing "+Math.abs(U)+" bytes.")},prepareReader:function(I){this.reader=u(I)},load:function(I){this.prepareReader(I),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=C},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,p,d){var u=o("./reader/readerFor"),m=o("./utils"),_=o("./compressedObject"),T=o("./crc32"),S=o("./utf8"),C=o("./compressions"),I=o("./support");function N(z,U){this.options=z,this.loadOptions=U}N.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(z){var U,E;if(z.skip(22),this.fileNameLength=z.readInt(2),E=z.readInt(2),this.fileName=z.readData(this.fileNameLength),z.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((U=function(L){for(var x in C)if(Object.prototype.hasOwnProperty.call(C,x)&&C[x].magic===L)return C[x];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new _(this.compressedSize,this.uncompressedSize,this.crc32,U,z.readData(this.compressedSize))},readCentralPart:function(z){this.versionMadeBy=z.readInt(2),z.skip(2),this.bitFlag=z.readInt(2),this.compressionMethod=z.readString(2),this.date=z.readDate(),this.crc32=z.readInt(4),this.compressedSize=z.readInt(4),this.uncompressedSize=z.readInt(4);var U=z.readInt(2);if(this.extraFieldsLength=z.readInt(2),this.fileCommentLength=z.readInt(2),this.diskNumberStart=z.readInt(2),this.internalFileAttributes=z.readInt(2),this.externalFileAttributes=z.readInt(4),this.localHeaderOffset=z.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");z.skip(U),this.readExtraFields(z),this.parseZIP64ExtraField(z),this.fileComment=z.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var z=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),z==0&&(this.dosPermissions=63&this.externalFileAttributes),z==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var z=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=z.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=z.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=z.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=z.readInt(4))}},readExtraFields:function(z){var U,E,L,x=z.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});z.index+4<x;)U=z.readInt(2),E=z.readInt(2),L=z.readData(E),this.extraFields[U]={id:U,length:E,value:L};z.setIndex(x)},handleUTF8:function(){var z=I.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var U=this.findExtraFieldUnicodePath();if(U!==null)this.fileNameStr=U;else{var E=m.transformTo(z,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var L=this.findExtraFieldUnicodeComment();if(L!==null)this.fileCommentStr=L;else{var x=m.transformTo(z,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(x)}}},findExtraFieldUnicodePath:function(){var z=this.extraFields[28789];if(z){var U=u(z.value);return U.readInt(1)!==1||T(this.fileName)!==U.readInt(4)?null:S.utf8decode(U.readData(z.length-5))}return null},findExtraFieldUnicodeComment:function(){var z=this.extraFields[25461];if(z){var U=u(z.value);return U.readInt(1)!==1||T(this.fileComment)!==U.readInt(4)?null:S.utf8decode(U.readData(z.length-5))}return null}},p.exports=N},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,p,d){function u(U,E,L){this.name=U,this.dir=L.dir,this.date=L.date,this.comment=L.comment,this.unixPermissions=L.unixPermissions,this.dosPermissions=L.dosPermissions,this._data=E,this._dataBinary=L.binary,this.options={compression:L.compression,compressionOptions:L.compressionOptions}}var m=o("./stream/StreamHelper"),_=o("./stream/DataWorker"),T=o("./utf8"),S=o("./compressedObject"),C=o("./stream/GenericWorker");u.prototype={internalStream:function(U){var E=null,L="string";try{if(!U)throw new Error("No output type specified.");var x=(L=U.toLowerCase())==="string"||L==="text";L!=="binarystring"&&L!=="text"||(L="string"),E=this._decompressWorker();var M=!this._dataBinary;M&&!x&&(E=E.pipe(new T.Utf8EncodeWorker)),!M&&x&&(E=E.pipe(new T.Utf8DecodeWorker))}catch(R){(E=new C("error")).error(R)}return new m(E,L,"")},async:function(U,E){return this.internalStream(U).accumulate(E)},nodeStream:function(U,E){return this.internalStream(U||"nodebuffer").toNodejsStream(E)},_compressWorker:function(U,E){if(this._data instanceof S&&this._data.compression.magic===U.magic)return this._data.getCompressedWorker();var L=this._decompressWorker();return this._dataBinary||(L=L.pipe(new T.Utf8EncodeWorker)),S.createWorkerFrom(L,U,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof C?this._data:new _(this._data)}};for(var I=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],N=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},z=0;z<I.length;z++)u.prototype[I[z]]=N;p.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,p,d){(function(u){var m,_,T=u.MutationObserver||u.WebKitMutationObserver;if(T){var S=0,C=new T(U),I=u.document.createTextNode("");C.observe(I,{characterData:!0}),m=function(){I.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){U(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(U,0)};else{var N=new u.MessageChannel;N.port1.onmessage=U,m=function(){N.port2.postMessage(0)}}var z=[];function U(){var E,L;_=!0;for(var x=z.length;x;){for(L=z,z=[],E=-1;++E<x;)L[E]();x=z.length}_=!1}p.exports=function(E){z.push(E)!==1||_||m()}}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,p,d){var u=o("immediate");function m(){}var _={},T=["REJECTED"],S=["FULFILLED"],C=["PENDING"];function I(x){if(typeof x!="function")throw new TypeError("resolver must be a function");this.state=C,this.queue=[],this.outcome=void 0,x!==m&&E(this,x)}function N(x,M,R){this.promise=x,typeof M=="function"&&(this.onFulfilled=M,this.callFulfilled=this.otherCallFulfilled),typeof R=="function"&&(this.onRejected=R,this.callRejected=this.otherCallRejected)}function z(x,M,R){u(function(){var b;try{b=M(R)}catch(F){return _.reject(x,F)}b===x?_.reject(x,new TypeError("Cannot resolve promise with itself")):_.resolve(x,b)})}function U(x){var M=x&&x.then;if(x&&(typeof x=="object"||typeof x=="function")&&typeof M=="function")return function(){M.apply(x,arguments)}}function E(x,M){var R=!1;function b(X){R||(R=!0,_.reject(x,X))}function F(X){R||(R=!0,_.resolve(x,X))}var B=L(function(){M(F,b)});B.status==="error"&&b(B.value)}function L(x,M){var R={};try{R.value=x(M),R.status="success"}catch(b){R.status="error",R.value=b}return R}(p.exports=I).prototype.finally=function(x){if(typeof x!="function")return this;var M=this.constructor;return this.then(function(R){return M.resolve(x()).then(function(){return R})},function(R){return M.resolve(x()).then(function(){throw R})})},I.prototype.catch=function(x){return this.then(null,x)},I.prototype.then=function(x,M){if(typeof x!="function"&&this.state===S||typeof M!="function"&&this.state===T)return this;var R=new this.constructor(m);return this.state!==C?z(R,this.state===S?x:M,this.outcome):this.queue.push(new N(R,x,M)),R},N.prototype.callFulfilled=function(x){_.resolve(this.promise,x)},N.prototype.otherCallFulfilled=function(x){z(this.promise,this.onFulfilled,x)},N.prototype.callRejected=function(x){_.reject(this.promise,x)},N.prototype.otherCallRejected=function(x){z(this.promise,this.onRejected,x)},_.resolve=function(x,M){var R=L(U,M);if(R.status==="error")return _.reject(x,R.value);var b=R.value;if(b)E(x,b);else{x.state=S,x.outcome=M;for(var F=-1,B=x.queue.length;++F<B;)x.queue[F].callFulfilled(M)}return x},_.reject=function(x,M){x.state=T,x.outcome=M;for(var R=-1,b=x.queue.length;++R<b;)x.queue[R].callRejected(M);return x},I.resolve=function(x){return x instanceof this?x:_.resolve(new this(m),x)},I.reject=function(x){var M=new this(m);return _.reject(M,x)},I.all=function(x){var M=this;if(Object.prototype.toString.call(x)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=x.length,b=!1;if(!R)return this.resolve([]);for(var F=new Array(R),B=0,X=-1,$=new this(m);++X<R;)Q(x[X],X);return $;function Q(ft,Ct){M.resolve(ft).then(function(it){F[Ct]=it,++B!==R||b||(b=!0,_.resolve($,F))},function(it){b||(b=!0,_.reject($,it))})}},I.race=function(x){var M=this;if(Object.prototype.toString.call(x)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=x.length,b=!1;if(!R)return this.resolve([]);for(var F=-1,B=new this(m);++F<R;)X=x[F],M.resolve(X).then(function($){b||(b=!0,_.resolve(B,$))},function($){b||(b=!0,_.reject(B,$))});var X;return B}},{immediate:36}],38:[function(o,p,d){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),p.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,p,d){var u=o("./zlib/deflate"),m=o("./utils/common"),_=o("./utils/strings"),T=o("./zlib/messages"),S=o("./zlib/zstream"),C=Object.prototype.toString,I=0,N=-1,z=0,U=8;function E(x){if(!(this instanceof E))return new E(x);this.options=m.assign({level:N,method:U,chunkSize:16384,windowBits:15,memLevel:8,strategy:z,to:""},x||{});var M=this.options;M.raw&&0<M.windowBits?M.windowBits=-M.windowBits:M.gzip&&0<M.windowBits&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var R=u.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(R!==I)throw new Error(T[R]);if(M.header&&u.deflateSetHeader(this.strm,M.header),M.dictionary){var b;if(b=typeof M.dictionary=="string"?_.string2buf(M.dictionary):C.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,(R=u.deflateSetDictionary(this.strm,b))!==I)throw new Error(T[R]);this._dict_set=!0}}function L(x,M){var R=new E(M);if(R.push(x,!0),R.err)throw R.msg||T[R.err];return R.result}E.prototype.push=function(x,M){var R,b,F=this.strm,B=this.options.chunkSize;if(this.ended)return!1;b=M===~~M?M:M===!0?4:0,typeof x=="string"?F.input=_.string2buf(x):C.call(x)==="[object ArrayBuffer]"?F.input=new Uint8Array(x):F.input=x,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new m.Buf8(B),F.next_out=0,F.avail_out=B),(R=u.deflate(F,b))!==1&&R!==I)return this.onEnd(R),!(this.ended=!0);F.avail_out!==0&&(F.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(_.buf2binstring(m.shrinkBuf(F.output,F.next_out))):this.onData(m.shrinkBuf(F.output,F.next_out)))}while((0<F.avail_in||F.avail_out===0)&&R!==1);return b===4?(R=u.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===I):b!==2||(this.onEnd(I),!(F.avail_out=0))},E.prototype.onData=function(x){this.chunks.push(x)},E.prototype.onEnd=function(x){x===I&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=x,this.msg=this.strm.msg},d.Deflate=E,d.deflate=L,d.deflateRaw=function(x,M){return(M=M||{}).raw=!0,L(x,M)},d.gzip=function(x,M){return(M=M||{}).gzip=!0,L(x,M)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,p,d){var u=o("./zlib/inflate"),m=o("./utils/common"),_=o("./utils/strings"),T=o("./zlib/constants"),S=o("./zlib/messages"),C=o("./zlib/zstream"),I=o("./zlib/gzheader"),N=Object.prototype.toString;function z(E){if(!(this instanceof z))return new z(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var L=this.options;L.raw&&0<=L.windowBits&&L.windowBits<16&&(L.windowBits=-L.windowBits,L.windowBits===0&&(L.windowBits=-15)),!(0<=L.windowBits&&L.windowBits<16)||E&&E.windowBits||(L.windowBits+=32),15<L.windowBits&&L.windowBits<48&&!(15&L.windowBits)&&(L.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var x=u.inflateInit2(this.strm,L.windowBits);if(x!==T.Z_OK)throw new Error(S[x]);this.header=new I,u.inflateGetHeader(this.strm,this.header)}function U(E,L){var x=new z(L);if(x.push(E,!0),x.err)throw x.msg||S[x.err];return x.result}z.prototype.push=function(E,L){var x,M,R,b,F,B,X=this.strm,$=this.options.chunkSize,Q=this.options.dictionary,ft=!1;if(this.ended)return!1;M=L===~~L?L:L===!0?T.Z_FINISH:T.Z_NO_FLUSH,typeof E=="string"?X.input=_.binstring2buf(E):N.call(E)==="[object ArrayBuffer]"?X.input=new Uint8Array(E):X.input=E,X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0&&(X.output=new m.Buf8($),X.next_out=0,X.avail_out=$),(x=u.inflate(X,T.Z_NO_FLUSH))===T.Z_NEED_DICT&&Q&&(B=typeof Q=="string"?_.string2buf(Q):N.call(Q)==="[object ArrayBuffer]"?new Uint8Array(Q):Q,x=u.inflateSetDictionary(this.strm,B)),x===T.Z_BUF_ERROR&&ft===!0&&(x=T.Z_OK,ft=!1),x!==T.Z_STREAM_END&&x!==T.Z_OK)return this.onEnd(x),!(this.ended=!0);X.next_out&&(X.avail_out!==0&&x!==T.Z_STREAM_END&&(X.avail_in!==0||M!==T.Z_FINISH&&M!==T.Z_SYNC_FLUSH)||(this.options.to==="string"?(R=_.utf8border(X.output,X.next_out),b=X.next_out-R,F=_.buf2string(X.output,R),X.next_out=b,X.avail_out=$-b,b&&m.arraySet(X.output,X.output,R,b,0),this.onData(F)):this.onData(m.shrinkBuf(X.output,X.next_out)))),X.avail_in===0&&X.avail_out===0&&(ft=!0)}while((0<X.avail_in||X.avail_out===0)&&x!==T.Z_STREAM_END);return x===T.Z_STREAM_END&&(M=T.Z_FINISH),M===T.Z_FINISH?(x=u.inflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===T.Z_OK):M!==T.Z_SYNC_FLUSH||(this.onEnd(T.Z_OK),!(X.avail_out=0))},z.prototype.onData=function(E){this.chunks.push(E)},z.prototype.onEnd=function(E){E===T.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},d.Inflate=z,d.inflate=U,d.inflateRaw=function(E,L){return(L=L||{}).raw=!0,U(E,L)},d.ungzip=U},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,p,d){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";d.assign=function(T){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var C=S.shift();if(C){if(typeof C!="object")throw new TypeError(C+"must be non-object");for(var I in C)C.hasOwnProperty(I)&&(T[I]=C[I])}}return T},d.shrinkBuf=function(T,S){return T.length===S?T:T.subarray?T.subarray(0,S):(T.length=S,T)};var m={arraySet:function(T,S,C,I,N){if(S.subarray&&T.subarray)T.set(S.subarray(C,C+I),N);else for(var z=0;z<I;z++)T[N+z]=S[C+z]},flattenChunks:function(T){var S,C,I,N,z,U;for(S=I=0,C=T.length;S<C;S++)I+=T[S].length;for(U=new Uint8Array(I),S=N=0,C=T.length;S<C;S++)z=T[S],U.set(z,N),N+=z.length;return U}},_={arraySet:function(T,S,C,I,N){for(var z=0;z<I;z++)T[N+z]=S[C+z]},flattenChunks:function(T){return[].concat.apply([],T)}};d.setTyped=function(T){T?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,m)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,_))},d.setTyped(u)},{}],42:[function(o,p,d){var u=o("./common"),m=!0,_=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{_=!1}for(var T=new u.Buf8(256),S=0;S<256;S++)T[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function C(I,N){if(N<65537&&(I.subarray&&_||!I.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(I,N));for(var z="",U=0;U<N;U++)z+=String.fromCharCode(I[U]);return z}T[254]=T[254]=1,d.string2buf=function(I){var N,z,U,E,L,x=I.length,M=0;for(E=0;E<x;E++)(64512&(z=I.charCodeAt(E)))==55296&&E+1<x&&(64512&(U=I.charCodeAt(E+1)))==56320&&(z=65536+(z-55296<<10)+(U-56320),E++),M+=z<128?1:z<2048?2:z<65536?3:4;for(N=new u.Buf8(M),E=L=0;L<M;E++)(64512&(z=I.charCodeAt(E)))==55296&&E+1<x&&(64512&(U=I.charCodeAt(E+1)))==56320&&(z=65536+(z-55296<<10)+(U-56320),E++),z<128?N[L++]=z:(z<2048?N[L++]=192|z>>>6:(z<65536?N[L++]=224|z>>>12:(N[L++]=240|z>>>18,N[L++]=128|z>>>12&63),N[L++]=128|z>>>6&63),N[L++]=128|63&z);return N},d.buf2binstring=function(I){return C(I,I.length)},d.binstring2buf=function(I){for(var N=new u.Buf8(I.length),z=0,U=N.length;z<U;z++)N[z]=I.charCodeAt(z);return N},d.buf2string=function(I,N){var z,U,E,L,x=N||I.length,M=new Array(2*x);for(z=U=0;z<x;)if((E=I[z++])<128)M[U++]=E;else if(4<(L=T[E]))M[U++]=65533,z+=L-1;else{for(E&=L===2?31:L===3?15:7;1<L&&z<x;)E=E<<6|63&I[z++],L--;1<L?M[U++]=65533:E<65536?M[U++]=E:(E-=65536,M[U++]=55296|E>>10&1023,M[U++]=56320|1023&E)}return C(M,U)},d.utf8border=function(I,N){var z;for((N=N||I.length)>I.length&&(N=I.length),z=N-1;0<=z&&(192&I[z])==128;)z--;return z<0||z===0?N:z+T[I[z]]>N?z:N}},{"./common":41}],43:[function(o,p,d){p.exports=function(u,m,_,T){for(var S=65535&u|0,C=u>>>16&65535|0,I=0;_!==0;){for(_-=I=2e3<_?2e3:_;C=C+(S=S+m[T++]|0)|0,--I;);S%=65521,C%=65521}return S|C<<16|0}},{}],44:[function(o,p,d){p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(o,p,d){var u=function(){for(var m,_=[],T=0;T<256;T++){m=T;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;_[T]=m}return _}();p.exports=function(m,_,T,S){var C=u,I=S+T;m^=-1;for(var N=S;N<I;N++)m=m>>>8^C[255&(m^_[N])];return-1^m}},{}],46:[function(o,p,d){var u,m=o("../utils/common"),_=o("./trees"),T=o("./adler32"),S=o("./crc32"),C=o("./messages"),I=0,N=4,z=0,U=-2,E=-1,L=4,x=2,M=8,R=9,b=286,F=30,B=19,X=2*b+1,$=15,Q=3,ft=258,Ct=ft+Q+1,it=42,yt=113,G=1,Lt=2,Et=3,Pt=4;function ce(W,Jt){return W.msg=C[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function It(W){var Jt=W.state,Wt=Jt.pending;Wt>W.avail_out&&(Wt=W.avail_out),Wt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,Wt,W.next_out),W.next_out+=Wt,Jt.pending_out+=Wt,W.total_out+=Wt,W.avail_out-=Wt,Jt.pending-=Wt,Jt.pending===0&&(Jt.pending_out=0))}function Bt(W,Jt){_._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,It(W.strm)}function Be(W,Jt){W.pending_buf[W.pending++]=Jt}function me(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Yt(W,Jt){var Wt,pt,dt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,D=W.strstart>W.w_size-Ct?W.strstart-(W.w_size-Ct):0,K=W.window,ot=W.w_mask,nt=W.prev,vt=W.strstart+ft,Gt=K[Dt+ie-1],Xt=K[Dt+ie];W.prev_length>=W.good_match&&(dt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(K[(Wt=Jt)+ie]===Xt&&K[Wt+ie-1]===Gt&&K[Wt]===K[Dt]&&K[++Wt]===K[Dt+1]){Dt+=2,Wt++;do;while(K[++Dt]===K[++Wt]&&K[++Dt]===K[++Wt]&&K[++Dt]===K[++Wt]&&K[++Dt]===K[++Wt]&&K[++Dt]===K[++Wt]&&K[++Dt]===K[++Wt]&&K[++Dt]===K[++Wt]&&K[++Dt]===K[++Wt]&&Dt<vt);if(pt=ft-(vt-Dt),Dt=vt-ft,ie<pt){if(W.match_start=Jt,Kt<=(ie=pt))break;Gt=K[Dt+ie-1],Xt=K[Dt+ie]}}while((Jt=nt[Jt&ot])>D&&--dt!=0);return ie<=W.lookahead?ie:W.lookahead}function ti(W){var Jt,Wt,pt,dt,Dt,ie,Kt,D,K,ot,nt=W.w_size;do{if(dt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-Ct)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=Wt=W.hash_size;pt=W.head[--Jt],W.head[Jt]=nt<=pt?pt-nt:0,--Wt;);for(Jt=Wt=nt;pt=W.prev[--Jt],W.prev[Jt]=nt<=pt?pt-nt:0,--Wt;);dt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,D=W.strstart+W.lookahead,K=dt,ot=void 0,ot=ie.avail_in,K<ot&&(ot=K),Wt=ot===0?0:(ie.avail_in-=ot,m.arraySet(Kt,ie.input,ie.next_in,ot,D),ie.state.wrap===1?ie.adler=T(ie.adler,Kt,ot,D):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,ot,D)),ie.next_in+=ot,ie.total_in+=ot,ot),W.lookahead+=Wt,W.lookahead+W.insert>=Q)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+Q-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<Q)););}while(W.lookahead<Ct&&W.strm.avail_in!==0)}function Fi(W,Jt){for(var Wt,pt;;){if(W.lookahead<Ct){if(ti(W),W.lookahead<Ct&&Jt===I)return G;if(W.lookahead===0)break}if(Wt=0,W.lookahead>=Q&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Q-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),Wt!==0&&W.strstart-Wt<=W.w_size-Ct&&(W.match_length=Yt(W,Wt)),W.match_length>=Q)if(pt=_._tr_tally(W,W.strstart-W.match_start,W.match_length-Q),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=Q){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Q-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else pt=_._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(pt&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<Q-1?W.strstart:Q-1,Jt===N?(Bt(W,!0),W.strm.avail_out===0?Et:Pt):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Lt}function Oe(W,Jt){for(var Wt,pt,dt;;){if(W.lookahead<Ct){if(ti(W),W.lookahead<Ct&&Jt===I)return G;if(W.lookahead===0)break}if(Wt=0,W.lookahead>=Q&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Q-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=Q-1,Wt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-Wt<=W.w_size-Ct&&(W.match_length=Yt(W,Wt),W.match_length<=5&&(W.strategy===1||W.match_length===Q&&4096<W.strstart-W.match_start)&&(W.match_length=Q-1)),W.prev_length>=Q&&W.match_length<=W.prev_length){for(dt=W.strstart+W.lookahead-Q,pt=_._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-Q),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=dt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Q-1])&W.hash_mask,Wt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=Q-1,W.strstart++,pt&&(Bt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((pt=_._tr_tally(W,0,W.window[W.strstart-1]))&&Bt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(pt=_._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<Q-1?W.strstart:Q-1,Jt===N?(Bt(W,!0),W.strm.avail_out===0?Et:Pt):W.last_lit&&(Bt(W,!1),W.strm.avail_out===0)?G:Lt}function Ge(W,Jt,Wt,pt,dt){this.good_length=W,this.max_lazy=Jt,this.nice_length=Wt,this.max_chain=pt,this.func=dt}function di(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=M,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new m.Buf16(2*X),this.dyn_dtree=new m.Buf16(2*(2*F+1)),this.bl_tree=new m.Buf16(2*(2*B+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16($+1),this.heap=new m.Buf16(2*b+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*b+1),Ft(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Oi(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=x,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?it:yt,W.adler=Jt.wrap===2?0:1,Jt.last_flush=I,_._tr_init(Jt),z):ce(W,U)}function mn(W){var Jt=Oi(W);return Jt===z&&function(Wt){Wt.window_size=2*Wt.w_size,Ft(Wt.head),Wt.max_lazy_match=u[Wt.level].max_lazy,Wt.good_match=u[Wt.level].good_length,Wt.nice_match=u[Wt.level].nice_length,Wt.max_chain_length=u[Wt.level].max_chain,Wt.strstart=0,Wt.block_start=0,Wt.lookahead=0,Wt.insert=0,Wt.match_length=Wt.prev_length=Q-1,Wt.match_available=0,Wt.ins_h=0}(W.state),Jt}function Qi(W,Jt,Wt,pt,dt,Dt){if(!W)return U;var ie=1;if(Jt===E&&(Jt=6),pt<0?(ie=0,pt=-pt):15<pt&&(ie=2,pt-=16),dt<1||R<dt||Wt!==M||pt<8||15<pt||Jt<0||9<Jt||Dt<0||L<Dt)return ce(W,U);pt===8&&(pt=9);var Kt=new di;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=pt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=dt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+Q-1)/Q),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<dt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=Wt,mn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var Wt=65535;for(Wt>W.pending_buf_size-5&&(Wt=W.pending_buf_size-5);;){if(W.lookahead<=1){if(ti(W),W.lookahead===0&&Jt===I)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var pt=W.block_start+Wt;if((W.strstart===0||W.strstart>=pt)&&(W.lookahead=W.strstart-pt,W.strstart=pt,Bt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-Ct&&(Bt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===N?(Bt(W,!0),W.strm.avail_out===0?Et:Pt):(W.strstart>W.block_start&&(Bt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Fi),new Ge(4,5,16,8,Fi),new Ge(4,6,32,32,Fi),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],d.deflateInit=function(W,Jt){return Qi(W,Jt,M,15,8,0)},d.deflateInit2=Qi,d.deflateReset=mn,d.deflateResetKeep=Oi,d.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?U:(W.state.gzhead=Jt,z):U},d.deflate=function(W,Jt){var Wt,pt,dt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?ce(W,U):U;if(pt=W.state,!W.output||!W.input&&W.avail_in!==0||pt.status===666&&Jt!==N)return ce(W,W.avail_out===0?-5:U);if(pt.strm=W,Wt=pt.last_flush,pt.last_flush=Jt,pt.status===it)if(pt.wrap===2)W.adler=0,Be(pt,31),Be(pt,139),Be(pt,8),pt.gzhead?(Be(pt,(pt.gzhead.text?1:0)+(pt.gzhead.hcrc?2:0)+(pt.gzhead.extra?4:0)+(pt.gzhead.name?8:0)+(pt.gzhead.comment?16:0)),Be(pt,255&pt.gzhead.time),Be(pt,pt.gzhead.time>>8&255),Be(pt,pt.gzhead.time>>16&255),Be(pt,pt.gzhead.time>>24&255),Be(pt,pt.level===9?2:2<=pt.strategy||pt.level<2?4:0),Be(pt,255&pt.gzhead.os),pt.gzhead.extra&&pt.gzhead.extra.length&&(Be(pt,255&pt.gzhead.extra.length),Be(pt,pt.gzhead.extra.length>>8&255)),pt.gzhead.hcrc&&(W.adler=S(W.adler,pt.pending_buf,pt.pending,0)),pt.gzindex=0,pt.status=69):(Be(pt,0),Be(pt,0),Be(pt,0),Be(pt,0),Be(pt,0),Be(pt,pt.level===9?2:2<=pt.strategy||pt.level<2?4:0),Be(pt,3),pt.status=yt);else{var ie=M+(pt.w_bits-8<<4)<<8;ie|=(2<=pt.strategy||pt.level<2?0:pt.level<6?1:pt.level===6?2:3)<<6,pt.strstart!==0&&(ie|=32),ie+=31-ie%31,pt.status=yt,me(pt,ie),pt.strstart!==0&&(me(pt,W.adler>>>16),me(pt,65535&W.adler)),W.adler=1}if(pt.status===69)if(pt.gzhead.extra){for(dt=pt.pending;pt.gzindex<(65535&pt.gzhead.extra.length)&&(pt.pending!==pt.pending_buf_size||(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),It(W),dt=pt.pending,pt.pending!==pt.pending_buf_size));)Be(pt,255&pt.gzhead.extra[pt.gzindex]),pt.gzindex++;pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),pt.gzindex===pt.gzhead.extra.length&&(pt.gzindex=0,pt.status=73)}else pt.status=73;if(pt.status===73)if(pt.gzhead.name){dt=pt.pending;do{if(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),It(W),dt=pt.pending,pt.pending===pt.pending_buf_size)){Dt=1;break}Dt=pt.gzindex<pt.gzhead.name.length?255&pt.gzhead.name.charCodeAt(pt.gzindex++):0,Be(pt,Dt)}while(Dt!==0);pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Dt===0&&(pt.gzindex=0,pt.status=91)}else pt.status=91;if(pt.status===91)if(pt.gzhead.comment){dt=pt.pending;do{if(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),It(W),dt=pt.pending,pt.pending===pt.pending_buf_size)){Dt=1;break}Dt=pt.gzindex<pt.gzhead.comment.length?255&pt.gzhead.comment.charCodeAt(pt.gzindex++):0,Be(pt,Dt)}while(Dt!==0);pt.gzhead.hcrc&&pt.pending>dt&&(W.adler=S(W.adler,pt.pending_buf,pt.pending-dt,dt)),Dt===0&&(pt.status=103)}else pt.status=103;if(pt.status===103&&(pt.gzhead.hcrc?(pt.pending+2>pt.pending_buf_size&&It(W),pt.pending+2<=pt.pending_buf_size&&(Be(pt,255&W.adler),Be(pt,W.adler>>8&255),W.adler=0,pt.status=yt)):pt.status=yt),pt.pending!==0){if(It(W),W.avail_out===0)return pt.last_flush=-1,z}else if(W.avail_in===0&&re(Jt)<=re(Wt)&&Jt!==N)return ce(W,-5);if(pt.status===666&&W.avail_in!==0)return ce(W,-5);if(W.avail_in!==0||pt.lookahead!==0||Jt!==I&&pt.status!==666){var Kt=pt.strategy===2?function(D,K){for(var ot;;){if(D.lookahead===0&&(ti(D),D.lookahead===0)){if(K===I)return G;break}if(D.match_length=0,ot=_._tr_tally(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++,ot&&(Bt(D,!1),D.strm.avail_out===0))return G}return D.insert=0,K===N?(Bt(D,!0),D.strm.avail_out===0?Et:Pt):D.last_lit&&(Bt(D,!1),D.strm.avail_out===0)?G:Lt}(pt,Jt):pt.strategy===3?function(D,K){for(var ot,nt,vt,Gt,Xt=D.window;;){if(D.lookahead<=ft){if(ti(D),D.lookahead<=ft&&K===I)return G;if(D.lookahead===0)break}if(D.match_length=0,D.lookahead>=Q&&0<D.strstart&&(nt=Xt[vt=D.strstart-1])===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]){Gt=D.strstart+ft;do;while(nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&nt===Xt[++vt]&&vt<Gt);D.match_length=ft-(Gt-vt),D.match_length>D.lookahead&&(D.match_length=D.lookahead)}if(D.match_length>=Q?(ot=_._tr_tally(D,1,D.match_length-Q),D.lookahead-=D.match_length,D.strstart+=D.match_length,D.match_length=0):(ot=_._tr_tally(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++),ot&&(Bt(D,!1),D.strm.avail_out===0))return G}return D.insert=0,K===N?(Bt(D,!0),D.strm.avail_out===0?Et:Pt):D.last_lit&&(Bt(D,!1),D.strm.avail_out===0)?G:Lt}(pt,Jt):u[pt.level].func(pt,Jt);if(Kt!==Et&&Kt!==Pt||(pt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(pt.last_flush=-1),z;if(Kt===Lt&&(Jt===1?_._tr_align(pt):Jt!==5&&(_._tr_stored_block(pt,0,0,!1),Jt===3&&(Ft(pt.head),pt.lookahead===0&&(pt.strstart=0,pt.block_start=0,pt.insert=0))),It(W),W.avail_out===0))return pt.last_flush=-1,z}return Jt!==N?z:pt.wrap<=0?1:(pt.wrap===2?(Be(pt,255&W.adler),Be(pt,W.adler>>8&255),Be(pt,W.adler>>16&255),Be(pt,W.adler>>24&255),Be(pt,255&W.total_in),Be(pt,W.total_in>>8&255),Be(pt,W.total_in>>16&255),Be(pt,W.total_in>>24&255)):(me(pt,W.adler>>>16),me(pt,65535&W.adler)),It(W),0<pt.wrap&&(pt.wrap=-pt.wrap),pt.pending!==0?z:1)},d.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==it&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==yt&&Jt!==666?ce(W,U):(W.state=null,Jt===yt?ce(W,-3):z):U},d.deflateSetDictionary=function(W,Jt){var Wt,pt,dt,Dt,ie,Kt,D,K,ot=Jt.length;if(!W||!W.state||(Dt=(Wt=W.state).wrap)===2||Dt===1&&Wt.status!==it||Wt.lookahead)return U;for(Dt===1&&(W.adler=T(W.adler,Jt,ot,0)),Wt.wrap=0,ot>=Wt.w_size&&(Dt===0&&(Ft(Wt.head),Wt.strstart=0,Wt.block_start=0,Wt.insert=0),K=new m.Buf8(Wt.w_size),m.arraySet(K,Jt,ot-Wt.w_size,Wt.w_size,0),Jt=K,ot=Wt.w_size),ie=W.avail_in,Kt=W.next_in,D=W.input,W.avail_in=ot,W.next_in=0,W.input=Jt,ti(Wt);Wt.lookahead>=Q;){for(pt=Wt.strstart,dt=Wt.lookahead-(Q-1);Wt.ins_h=(Wt.ins_h<<Wt.hash_shift^Wt.window[pt+Q-1])&Wt.hash_mask,Wt.prev[pt&Wt.w_mask]=Wt.head[Wt.ins_h],Wt.head[Wt.ins_h]=pt,pt++,--dt;);Wt.strstart=pt,Wt.lookahead=Q-1,ti(Wt)}return Wt.strstart+=Wt.lookahead,Wt.block_start=Wt.strstart,Wt.insert=Wt.lookahead,Wt.lookahead=0,Wt.match_length=Wt.prev_length=Q-1,Wt.match_available=0,W.next_in=Kt,W.input=D,W.avail_in=ie,Wt.wrap=Dt,z},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,p,d){p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(o,p,d){p.exports=function(u,m){var _,T,S,C,I,N,z,U,E,L,x,M,R,b,F,B,X,$,Q,ft,Ct,it,yt,G,Lt;_=u.state,T=u.next_in,G=u.input,S=T+(u.avail_in-5),C=u.next_out,Lt=u.output,I=C-(m-u.avail_out),N=C+(u.avail_out-257),z=_.dmax,U=_.wsize,E=_.whave,L=_.wnext,x=_.window,M=_.hold,R=_.bits,b=_.lencode,F=_.distcode,B=(1<<_.lenbits)-1,X=(1<<_.distbits)-1;t:do{R<15&&(M+=G[T++]<<R,R+=8,M+=G[T++]<<R,R+=8),$=b[M&B];e:for(;;){if(M>>>=Q=$>>>24,R-=Q,(Q=$>>>16&255)===0)Lt[C++]=65535&$;else{if(!(16&Q)){if(!(64&Q)){$=b[(65535&$)+(M&(1<<Q)-1)];continue e}if(32&Q){_.mode=12;break t}u.msg="invalid literal/length code",_.mode=30;break t}ft=65535&$,(Q&=15)&&(R<Q&&(M+=G[T++]<<R,R+=8),ft+=M&(1<<Q)-1,M>>>=Q,R-=Q),R<15&&(M+=G[T++]<<R,R+=8,M+=G[T++]<<R,R+=8),$=F[M&X];i:for(;;){if(M>>>=Q=$>>>24,R-=Q,!(16&(Q=$>>>16&255))){if(!(64&Q)){$=F[(65535&$)+(M&(1<<Q)-1)];continue i}u.msg="invalid distance code",_.mode=30;break t}if(Ct=65535&$,R<(Q&=15)&&(M+=G[T++]<<R,(R+=8)<Q&&(M+=G[T++]<<R,R+=8)),z<(Ct+=M&(1<<Q)-1)){u.msg="invalid distance too far back",_.mode=30;break t}if(M>>>=Q,R-=Q,(Q=C-I)<Ct){if(E<(Q=Ct-Q)&&_.sane){u.msg="invalid distance too far back",_.mode=30;break t}if(yt=x,(it=0)===L){if(it+=U-Q,Q<ft){for(ft-=Q;Lt[C++]=x[it++],--Q;);it=C-Ct,yt=Lt}}else if(L<Q){if(it+=U+L-Q,(Q-=L)<ft){for(ft-=Q;Lt[C++]=x[it++],--Q;);if(it=0,L<ft){for(ft-=Q=L;Lt[C++]=x[it++],--Q;);it=C-Ct,yt=Lt}}}else if(it+=L-Q,Q<ft){for(ft-=Q;Lt[C++]=x[it++],--Q;);it=C-Ct,yt=Lt}for(;2<ft;)Lt[C++]=yt[it++],Lt[C++]=yt[it++],Lt[C++]=yt[it++],ft-=3;ft&&(Lt[C++]=yt[it++],1<ft&&(Lt[C++]=yt[it++]))}else{for(it=C-Ct;Lt[C++]=Lt[it++],Lt[C++]=Lt[it++],Lt[C++]=Lt[it++],2<(ft-=3););ft&&(Lt[C++]=Lt[it++],1<ft&&(Lt[C++]=Lt[it++]))}break}}break}}while(T<S&&C<N);T-=ft=R>>3,M&=(1<<(R-=ft<<3))-1,u.next_in=T,u.next_out=C,u.avail_in=T<S?S-T+5:5-(T-S),u.avail_out=C<N?N-C+257:257-(C-N),_.hold=M,_.bits=R}},{}],49:[function(o,p,d){var u=o("../utils/common"),m=o("./adler32"),_=o("./crc32"),T=o("./inffast"),S=o("./inftrees"),C=1,I=2,N=0,z=-2,U=1,E=852,L=592;function x(it){return(it>>>24&255)+(it>>>8&65280)+((65280&it)<<8)+((255&it)<<24)}function M(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(it){var yt;return it&&it.state?(yt=it.state,it.total_in=it.total_out=yt.total=0,it.msg="",yt.wrap&&(it.adler=1&yt.wrap),yt.mode=U,yt.last=0,yt.havedict=0,yt.dmax=32768,yt.head=null,yt.hold=0,yt.bits=0,yt.lencode=yt.lendyn=new u.Buf32(E),yt.distcode=yt.distdyn=new u.Buf32(L),yt.sane=1,yt.back=-1,N):z}function b(it){var yt;return it&&it.state?((yt=it.state).wsize=0,yt.whave=0,yt.wnext=0,R(it)):z}function F(it,yt){var G,Lt;return it&&it.state?(Lt=it.state,yt<0?(G=0,yt=-yt):(G=1+(yt>>4),yt<48&&(yt&=15)),yt&&(yt<8||15<yt)?z:(Lt.window!==null&&Lt.wbits!==yt&&(Lt.window=null),Lt.wrap=G,Lt.wbits=yt,b(it))):z}function B(it,yt){var G,Lt;return it?(Lt=new M,(it.state=Lt).window=null,(G=F(it,yt))!==N&&(it.state=null),G):z}var X,$,Q=!0;function ft(it){if(Q){var yt;for(X=new u.Buf32(512),$=new u.Buf32(32),yt=0;yt<144;)it.lens[yt++]=8;for(;yt<256;)it.lens[yt++]=9;for(;yt<280;)it.lens[yt++]=7;for(;yt<288;)it.lens[yt++]=8;for(S(C,it.lens,0,288,X,0,it.work,{bits:9}),yt=0;yt<32;)it.lens[yt++]=5;S(I,it.lens,0,32,$,0,it.work,{bits:5}),Q=!1}it.lencode=X,it.lenbits=9,it.distcode=$,it.distbits=5}function Ct(it,yt,G,Lt){var Et,Pt=it.state;return Pt.window===null&&(Pt.wsize=1<<Pt.wbits,Pt.wnext=0,Pt.whave=0,Pt.window=new u.Buf8(Pt.wsize)),Lt>=Pt.wsize?(u.arraySet(Pt.window,yt,G-Pt.wsize,Pt.wsize,0),Pt.wnext=0,Pt.whave=Pt.wsize):(Lt<(Et=Pt.wsize-Pt.wnext)&&(Et=Lt),u.arraySet(Pt.window,yt,G-Lt,Et,Pt.wnext),(Lt-=Et)?(u.arraySet(Pt.window,yt,G-Lt,Lt,0),Pt.wnext=Lt,Pt.whave=Pt.wsize):(Pt.wnext+=Et,Pt.wnext===Pt.wsize&&(Pt.wnext=0),Pt.whave<Pt.wsize&&(Pt.whave+=Et))),0}d.inflateReset=b,d.inflateReset2=F,d.inflateResetKeep=R,d.inflateInit=function(it){return B(it,15)},d.inflateInit2=B,d.inflate=function(it,yt){var G,Lt,Et,Pt,ce,re,Ft,It,Bt,Be,me,Yt,ti,Fi,Oe,Ge,di,Oi,mn,Qi,W,Jt,Wt,pt,dt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!it||!it.state||!it.output||!it.input&&it.avail_in!==0)return z;(G=it.state).mode===12&&(G.mode=13),ce=it.next_out,Et=it.output,Ft=it.avail_out,Pt=it.next_in,Lt=it.input,re=it.avail_in,It=G.hold,Bt=G.bits,Be=re,me=Ft,Jt=N;t:for(;;)switch(G.mode){case U:if(G.wrap===0){G.mode=13;break}for(;Bt<16;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(2&G.wrap&&It===35615){Dt[G.check=0]=255&It,Dt[1]=It>>>8&255,G.check=_(G.check,Dt,2,0),Bt=It=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&It)<<8)+(It>>8))%31){it.msg="incorrect header check",G.mode=30;break}if((15&It)!=8){it.msg="unknown compression method",G.mode=30;break}if(Bt-=4,W=8+(15&(It>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){it.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,it.adler=G.check=1,G.mode=512&It?10:12,Bt=It=0;break;case 2:for(;Bt<16;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(G.flags=It,(255&G.flags)!=8){it.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){it.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=It>>8&1),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=It=0,G.mode=3;case 3:for(;Bt<32;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}G.head&&(G.head.time=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,Dt[2]=It>>>16&255,Dt[3]=It>>>24&255,G.check=_(G.check,Dt,4,0)),Bt=It=0,G.mode=4;case 4:for(;Bt<16;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}G.head&&(G.head.xflags=255&It,G.head.os=It>>8),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=It=0,G.mode=5;case 5:if(1024&G.flags){for(;Bt<16;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}G.length=It,G.head&&(G.head.extra_len=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=_(G.check,Dt,2,0)),Bt=It=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Yt=G.length)&&(Yt=re),Yt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Lt,Pt,Yt,W)),512&G.flags&&(G.check=_(G.check,Lt,Yt,Pt)),re-=Yt,Pt+=Yt,G.length-=Yt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Yt=0;W=Lt[Pt+Yt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Yt<re;);if(512&G.flags&&(G.check=_(G.check,Lt,Yt,Pt)),re-=Yt,Pt+=Yt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Yt=0;W=Lt[Pt+Yt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Yt<re;);if(512&G.flags&&(G.check=_(G.check,Lt,Yt,Pt)),re-=Yt,Pt+=Yt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Bt<16;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(It!==(65535&G.check)){it.msg="header crc mismatch",G.mode=30;break}Bt=It=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),it.adler=G.check=0,G.mode=12;break;case 10:for(;Bt<32;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}it.adler=G.check=x(It),Bt=It=0,G.mode=11;case 11:if(G.havedict===0)return it.next_out=ce,it.avail_out=Ft,it.next_in=Pt,it.avail_in=re,G.hold=It,G.bits=Bt,2;it.adler=G.check=1,G.mode=12;case 12:if(yt===5||yt===6)break t;case 13:if(G.last){It>>>=7&Bt,Bt-=7&Bt,G.mode=27;break}for(;Bt<3;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}switch(G.last=1&It,Bt-=1,3&(It>>>=1)){case 0:G.mode=14;break;case 1:if(ft(G),G.mode=20,yt!==6)break;It>>>=2,Bt-=2;break t;case 2:G.mode=17;break;case 3:it.msg="invalid block type",G.mode=30}It>>>=2,Bt-=2;break;case 14:for(It>>>=7&Bt,Bt-=7&Bt;Bt<32;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if((65535&It)!=(It>>>16^65535)){it.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&It,Bt=It=0,G.mode=15,yt===6)break t;case 15:G.mode=16;case 16:if(Yt=G.length){if(re<Yt&&(Yt=re),Ft<Yt&&(Yt=Ft),Yt===0)break t;u.arraySet(Et,Lt,Pt,Yt,ce),re-=Yt,Pt+=Yt,Ft-=Yt,ce+=Yt,G.length-=Yt;break}G.mode=12;break;case 17:for(;Bt<14;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(G.nlen=257+(31&It),It>>>=5,Bt-=5,G.ndist=1+(31&It),It>>>=5,Bt-=5,G.ncode=4+(15&It),It>>>=4,Bt-=4,286<G.nlen||30<G.ndist){it.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Bt<3;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}G.lens[ie[G.have++]]=7&It,It>>>=3,Bt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,Wt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,Wt),G.lenbits=Wt.bits,Jt){it.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(dt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(di<16)It>>>=Oe,Bt-=Oe,G.lens[G.have++]=di;else{if(di===16){for(pt=Oe+2;Bt<pt;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(It>>>=Oe,Bt-=Oe,G.have===0){it.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Yt=3+(3&It),It>>>=2,Bt-=2}else if(di===17){for(pt=Oe+3;Bt<pt;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}Bt-=Oe,W=0,Yt=3+(7&(It>>>=Oe)),It>>>=3,Bt-=3}else{for(pt=Oe+7;Bt<pt;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}Bt-=Oe,W=0,Yt=11+(127&(It>>>=Oe)),It>>>=7,Bt-=7}if(G.have+Yt>G.nlen+G.ndist){it.msg="invalid bit length repeat",G.mode=30;break}for(;Yt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){it.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,Wt={bits:G.lenbits},Jt=S(C,G.lens,0,G.nlen,G.lencode,0,G.work,Wt),G.lenbits=Wt.bits,Jt){it.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,Wt={bits:G.distbits},Jt=S(I,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,Wt),G.distbits=Wt.bits,Jt){it.msg="invalid distances set",G.mode=30;break}if(G.mode=20,yt===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){it.next_out=ce,it.avail_out=Ft,it.next_in=Pt,it.avail_in=re,G.hold=It,G.bits=Bt,T(it,me),ce=it.next_out,Et=it.output,Ft=it.avail_out,Pt=it.next_in,Lt=it.input,re=it.avail_in,It=G.hold,Bt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(dt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(Ge&&!(240&Ge)){for(Oi=Oe,mn=Ge,Qi=di;Ge=(dt=G.lencode[Qi+((It&(1<<Oi+mn)-1)>>Oi)])>>>16&255,di=65535&dt,!(Oi+(Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}It>>>=Oi,Bt-=Oi,G.back+=Oi}if(It>>>=Oe,Bt-=Oe,G.back+=Oe,G.length=di,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){it.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(pt=G.extra;Bt<pt;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}G.length+=It&(1<<G.extra)-1,It>>>=G.extra,Bt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(dt=G.distcode[It&(1<<G.distbits)-1])>>>16&255,di=65535&dt,!((Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(!(240&Ge)){for(Oi=Oe,mn=Ge,Qi=di;Ge=(dt=G.distcode[Qi+((It&(1<<Oi+mn)-1)>>Oi)])>>>16&255,di=65535&dt,!(Oi+(Oe=dt>>>24)<=Bt);){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}It>>>=Oi,Bt-=Oi,G.back+=Oi}if(It>>>=Oe,Bt-=Oe,G.back+=Oe,64&Ge){it.msg="invalid distance code",G.mode=30;break}G.offset=di,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(pt=G.extra;Bt<pt;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}G.offset+=It&(1<<G.extra)-1,It>>>=G.extra,Bt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){it.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Yt=me-Ft,G.offset>Yt){if((Yt=G.offset-Yt)>G.whave&&G.sane){it.msg="invalid distance too far back",G.mode=30;break}ti=Yt>G.wnext?(Yt-=G.wnext,G.wsize-Yt):G.wnext-Yt,Yt>G.length&&(Yt=G.length),Fi=G.window}else Fi=Et,ti=ce-G.offset,Yt=G.length;for(Ft<Yt&&(Yt=Ft),Ft-=Yt,G.length-=Yt;Et[ce++]=Fi[ti++],--Yt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[ce++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Bt<32;){if(re===0)break t;re--,It|=Lt[Pt++]<<Bt,Bt+=8}if(me-=Ft,it.total_out+=me,G.total+=me,me&&(it.adler=G.check=G.flags?_(G.check,Et,me,ce-me):m(G.check,Et,me,ce-me)),me=Ft,(G.flags?It:x(It))!==G.check){it.msg="incorrect data check",G.mode=30;break}Bt=It=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Bt<32;){if(re===0)break t;re--,It+=Lt[Pt++]<<Bt,Bt+=8}if(It!==(4294967295&G.total)){it.msg="incorrect length check",G.mode=30;break}Bt=It=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return z}return it.next_out=ce,it.avail_out=Ft,it.next_in=Pt,it.avail_in=re,G.hold=It,G.bits=Bt,(G.wsize||me!==it.avail_out&&G.mode<30&&(G.mode<27||yt!==4))&&Ct(it,it.output,it.next_out,me-it.avail_out)?(G.mode=31,-4):(Be-=it.avail_in,me-=it.avail_out,it.total_in+=Be,it.total_out+=me,G.total+=me,G.wrap&&me&&(it.adler=G.check=G.flags?_(G.check,Et,me,it.next_out-me):m(G.check,Et,me,it.next_out-me)),it.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(Be==0&&me===0||yt===4)&&Jt===N&&(Jt=-5),Jt)},d.inflateEnd=function(it){if(!it||!it.state)return z;var yt=it.state;return yt.window&&(yt.window=null),it.state=null,N},d.inflateGetHeader=function(it,yt){var G;return it&&it.state&&2&(G=it.state).wrap?((G.head=yt).done=!1,N):z},d.inflateSetDictionary=function(it,yt){var G,Lt=yt.length;return it&&it.state?(G=it.state).wrap!==0&&G.mode!==11?z:G.mode===11&&m(1,yt,Lt,0)!==G.check?-3:Ct(it,yt,Lt,Lt)?(G.mode=31,-4):(G.havedict=1,N):z},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,p,d){var u=o("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],_=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],T=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(C,I,N,z,U,E,L,x){var M,R,b,F,B,X,$,Q,ft,Ct=x.bits,it=0,yt=0,G=0,Lt=0,Et=0,Pt=0,ce=0,re=0,Ft=0,It=0,Bt=null,Be=0,me=new u.Buf16(16),Yt=new u.Buf16(16),ti=null,Fi=0;for(it=0;it<=15;it++)me[it]=0;for(yt=0;yt<z;yt++)me[I[N+yt]]++;for(Et=Ct,Lt=15;1<=Lt&&me[Lt]===0;Lt--);if(Lt<Et&&(Et=Lt),Lt===0)return U[E++]=20971520,U[E++]=20971520,x.bits=1,0;for(G=1;G<Lt&&me[G]===0;G++);for(Et<G&&(Et=G),it=re=1;it<=15;it++)if(re<<=1,(re-=me[it])<0)return-1;if(0<re&&(C===0||Lt!==1))return-1;for(Yt[1]=0,it=1;it<15;it++)Yt[it+1]=Yt[it]+me[it];for(yt=0;yt<z;yt++)I[N+yt]!==0&&(L[Yt[I[N+yt]]++]=yt);if(X=C===0?(Bt=ti=L,19):C===1?(Bt=m,Be-=257,ti=_,Fi-=257,256):(Bt=T,ti=S,-1),it=G,B=E,ce=yt=It=0,b=-1,F=(Ft=1<<(Pt=Et))-1,C===1&&852<Ft||C===2&&592<Ft)return 1;for(;;){for($=it-ce,ft=L[yt]<X?(Q=0,L[yt]):L[yt]>X?(Q=ti[Fi+L[yt]],Bt[Be+L[yt]]):(Q=96,0),M=1<<it-ce,G=R=1<<Pt;U[B+(It>>ce)+(R-=M)]=$<<24|Q<<16|ft|0,R!==0;);for(M=1<<it-1;It&M;)M>>=1;if(M!==0?(It&=M-1,It+=M):It=0,yt++,--me[it]==0){if(it===Lt)break;it=I[N+L[yt]]}if(Et<it&&(It&F)!==b){for(ce===0&&(ce=Et),B+=G,re=1<<(Pt=it-ce);Pt+ce<Lt&&!((re-=me[Pt+ce])<=0);)Pt++,re<<=1;if(Ft+=1<<Pt,C===1&&852<Ft||C===2&&592<Ft)return 1;U[b=It&F]=Et<<24|Pt<<16|B-E|0}}return It!==0&&(U[B+It]=it-ce<<24|64<<16|0),x.bits=Et,0}},{"../utils/common":41}],51:[function(o,p,d){p.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(o,p,d){var u=o("../utils/common"),m=0,_=1;function T(dt){for(var Dt=dt.length;0<=--Dt;)dt[Dt]=0}var S=0,C=29,I=256,N=I+1+C,z=30,U=19,E=2*N+1,L=15,x=16,M=7,R=256,b=16,F=17,B=18,X=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Q=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ft=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ct=new Array(2*(N+2));T(Ct);var it=new Array(2*z);T(it);var yt=new Array(512);T(yt);var G=new Array(256);T(G);var Lt=new Array(C);T(Lt);var Et,Pt,ce,re=new Array(z);function Ft(dt,Dt,ie,Kt,D){this.static_tree=dt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=D,this.has_stree=dt&&dt.length}function It(dt,Dt){this.dyn_tree=dt,this.max_code=0,this.stat_desc=Dt}function Bt(dt){return dt<256?yt[dt]:yt[256+(dt>>>7)]}function Be(dt,Dt){dt.pending_buf[dt.pending++]=255&Dt,dt.pending_buf[dt.pending++]=Dt>>>8&255}function me(dt,Dt,ie){dt.bi_valid>x-ie?(dt.bi_buf|=Dt<<dt.bi_valid&65535,Be(dt,dt.bi_buf),dt.bi_buf=Dt>>x-dt.bi_valid,dt.bi_valid+=ie-x):(dt.bi_buf|=Dt<<dt.bi_valid&65535,dt.bi_valid+=ie)}function Yt(dt,Dt,ie){me(dt,ie[2*Dt],ie[2*Dt+1])}function ti(dt,Dt){for(var ie=0;ie|=1&dt,dt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Fi(dt,Dt,ie){var Kt,D,K=new Array(L+1),ot=0;for(Kt=1;Kt<=L;Kt++)K[Kt]=ot=ot+ie[Kt-1]<<1;for(D=0;D<=Dt;D++){var nt=dt[2*D+1];nt!==0&&(dt[2*D]=ti(K[nt]++,nt))}}function Oe(dt){var Dt;for(Dt=0;Dt<N;Dt++)dt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<z;Dt++)dt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<U;Dt++)dt.bl_tree[2*Dt]=0;dt.dyn_ltree[2*R]=1,dt.opt_len=dt.static_len=0,dt.last_lit=dt.matches=0}function Ge(dt){8<dt.bi_valid?Be(dt,dt.bi_buf):0<dt.bi_valid&&(dt.pending_buf[dt.pending++]=dt.bi_buf),dt.bi_buf=0,dt.bi_valid=0}function di(dt,Dt,ie,Kt){var D=2*Dt,K=2*ie;return dt[D]<dt[K]||dt[D]===dt[K]&&Kt[Dt]<=Kt[ie]}function Oi(dt,Dt,ie){for(var Kt=dt.heap[ie],D=ie<<1;D<=dt.heap_len&&(D<dt.heap_len&&di(Dt,dt.heap[D+1],dt.heap[D],dt.depth)&&D++,!di(Dt,Kt,dt.heap[D],dt.depth));)dt.heap[ie]=dt.heap[D],ie=D,D<<=1;dt.heap[ie]=Kt}function mn(dt,Dt,ie){var Kt,D,K,ot,nt=0;if(dt.last_lit!==0)for(;Kt=dt.pending_buf[dt.d_buf+2*nt]<<8|dt.pending_buf[dt.d_buf+2*nt+1],D=dt.pending_buf[dt.l_buf+nt],nt++,Kt===0?Yt(dt,D,Dt):(Yt(dt,(K=G[D])+I+1,Dt),(ot=X[K])!==0&&me(dt,D-=Lt[K],ot),Yt(dt,K=Bt(--Kt),ie),(ot=$[K])!==0&&me(dt,Kt-=re[K],ot)),nt<dt.last_lit;);Yt(dt,R,Dt)}function Qi(dt,Dt){var ie,Kt,D,K=Dt.dyn_tree,ot=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Gt=-1;for(dt.heap_len=0,dt.heap_max=E,ie=0;ie<vt;ie++)K[2*ie]!==0?(dt.heap[++dt.heap_len]=Gt=ie,dt.depth[ie]=0):K[2*ie+1]=0;for(;dt.heap_len<2;)K[2*(D=dt.heap[++dt.heap_len]=Gt<2?++Gt:0)]=1,dt.depth[D]=0,dt.opt_len--,nt&&(dt.static_len-=ot[2*D+1]);for(Dt.max_code=Gt,ie=dt.heap_len>>1;1<=ie;ie--)Oi(dt,K,ie);for(D=vt;ie=dt.heap[1],dt.heap[1]=dt.heap[dt.heap_len--],Oi(dt,K,1),Kt=dt.heap[1],dt.heap[--dt.heap_max]=ie,dt.heap[--dt.heap_max]=Kt,K[2*D]=K[2*ie]+K[2*Kt],dt.depth[D]=(dt.depth[ie]>=dt.depth[Kt]?dt.depth[ie]:dt.depth[Kt])+1,K[2*ie+1]=K[2*Kt+1]=D,dt.heap[1]=D++,Oi(dt,K,1),2<=dt.heap_len;);dt.heap[--dt.heap_max]=dt.heap[1],function(Xt,jt){var Ne,Re,ge,we,_i,Si,ni=jt.dyn_tree,Ei=jt.max_code,qr=jt.stat_desc.static_tree,or=jt.stat_desc.has_stree,on=jt.stat_desc.extra_bits,As=jt.stat_desc.extra_base,Ii=jt.stat_desc.max_length,Xs=0;for(we=0;we<=L;we++)Xt.bl_count[we]=0;for(ni[2*Xt.heap[Xt.heap_max]+1]=0,Ne=Xt.heap_max+1;Ne<E;Ne++)Ii<(we=ni[2*ni[2*(Re=Xt.heap[Ne])+1]+1]+1)&&(we=Ii,Xs++),ni[2*Re+1]=we,Ei<Re||(Xt.bl_count[we]++,_i=0,As<=Re&&(_i=on[Re-As]),Si=ni[2*Re],Xt.opt_len+=Si*(we+_i),or&&(Xt.static_len+=Si*(qr[2*Re+1]+_i)));if(Xs!==0){do{for(we=Ii-1;Xt.bl_count[we]===0;)we--;Xt.bl_count[we]--,Xt.bl_count[we+1]+=2,Xt.bl_count[Ii]--,Xs-=2}while(0<Xs);for(we=Ii;we!==0;we--)for(Re=Xt.bl_count[we];Re!==0;)Ei<(ge=Xt.heap[--Ne])||(ni[2*ge+1]!==we&&(Xt.opt_len+=(we-ni[2*ge+1])*ni[2*ge],ni[2*ge+1]=we),Re--)}}(dt,Dt),Fi(K,Gt,dt.bl_count)}function W(dt,Dt,ie){var Kt,D,K=-1,ot=Dt[1],nt=0,vt=7,Gt=4;for(ot===0&&(vt=138,Gt=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)D=ot,ot=Dt[2*(Kt+1)+1],++nt<vt&&D===ot||(nt<Gt?dt.bl_tree[2*D]+=nt:D!==0?(D!==K&&dt.bl_tree[2*D]++,dt.bl_tree[2*b]++):nt<=10?dt.bl_tree[2*F]++:dt.bl_tree[2*B]++,K=D,Gt=(nt=0)===ot?(vt=138,3):D===ot?(vt=6,3):(vt=7,4))}function Jt(dt,Dt,ie){var Kt,D,K=-1,ot=Dt[1],nt=0,vt=7,Gt=4;for(ot===0&&(vt=138,Gt=3),Kt=0;Kt<=ie;Kt++)if(D=ot,ot=Dt[2*(Kt+1)+1],!(++nt<vt&&D===ot)){if(nt<Gt)for(;Yt(dt,D,dt.bl_tree),--nt!=0;);else D!==0?(D!==K&&(Yt(dt,D,dt.bl_tree),nt--),Yt(dt,b,dt.bl_tree),me(dt,nt-3,2)):nt<=10?(Yt(dt,F,dt.bl_tree),me(dt,nt-3,3)):(Yt(dt,B,dt.bl_tree),me(dt,nt-11,7));K=D,Gt=(nt=0)===ot?(vt=138,3):D===ot?(vt=6,3):(vt=7,4)}}T(re);var Wt=!1;function pt(dt,Dt,ie,Kt){me(dt,(S<<1)+(Kt?1:0),3),function(D,K,ot,nt){Ge(D),nt&&(Be(D,ot),Be(D,~ot)),u.arraySet(D.pending_buf,D.window,K,ot,D.pending),D.pending+=ot}(dt,Dt,ie,!0)}d._tr_init=function(dt){Wt||(function(){var Dt,ie,Kt,D,K,ot=new Array(L+1);for(D=Kt=0;D<C-1;D++)for(Lt[D]=Kt,Dt=0;Dt<1<<X[D];Dt++)G[Kt++]=D;for(G[Kt-1]=D,D=K=0;D<16;D++)for(re[D]=K,Dt=0;Dt<1<<$[D];Dt++)yt[K++]=D;for(K>>=7;D<z;D++)for(re[D]=K<<7,Dt=0;Dt<1<<$[D]-7;Dt++)yt[256+K++]=D;for(ie=0;ie<=L;ie++)ot[ie]=0;for(Dt=0;Dt<=143;)Ct[2*Dt+1]=8,Dt++,ot[8]++;for(;Dt<=255;)Ct[2*Dt+1]=9,Dt++,ot[9]++;for(;Dt<=279;)Ct[2*Dt+1]=7,Dt++,ot[7]++;for(;Dt<=287;)Ct[2*Dt+1]=8,Dt++,ot[8]++;for(Fi(Ct,N+1,ot),Dt=0;Dt<z;Dt++)it[2*Dt+1]=5,it[2*Dt]=ti(Dt,5);Et=new Ft(Ct,X,I+1,N,L),Pt=new Ft(it,$,0,z,L),ce=new Ft(new Array(0),Q,0,U,M)}(),Wt=!0),dt.l_desc=new It(dt.dyn_ltree,Et),dt.d_desc=new It(dt.dyn_dtree,Pt),dt.bl_desc=new It(dt.bl_tree,ce),dt.bi_buf=0,dt.bi_valid=0,Oe(dt)},d._tr_stored_block=pt,d._tr_flush_block=function(dt,Dt,ie,Kt){var D,K,ot=0;0<dt.level?(dt.strm.data_type===2&&(dt.strm.data_type=function(nt){var vt,Gt=4093624447;for(vt=0;vt<=31;vt++,Gt>>>=1)if(1&Gt&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return _;for(vt=32;vt<I;vt++)if(nt.dyn_ltree[2*vt]!==0)return _;return m}(dt)),Qi(dt,dt.l_desc),Qi(dt,dt.d_desc),ot=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=U-1;3<=vt&&nt.bl_tree[2*ft[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(dt),D=dt.opt_len+3+7>>>3,(K=dt.static_len+3+7>>>3)<=D&&(D=K)):D=K=ie+5,ie+4<=D&&Dt!==-1?pt(dt,Dt,ie,Kt):dt.strategy===4||K===D?(me(dt,2+(Kt?1:0),3),mn(dt,Ct,it)):(me(dt,4+(Kt?1:0),3),function(nt,vt,Gt,Xt){var jt;for(me(nt,vt-257,5),me(nt,Gt-1,5),me(nt,Xt-4,4),jt=0;jt<Xt;jt++)me(nt,nt.bl_tree[2*ft[jt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Gt-1)}(dt,dt.l_desc.max_code+1,dt.d_desc.max_code+1,ot+1),mn(dt,dt.dyn_ltree,dt.dyn_dtree)),Oe(dt),Kt&&Ge(dt)},d._tr_tally=function(dt,Dt,ie){return dt.pending_buf[dt.d_buf+2*dt.last_lit]=Dt>>>8&255,dt.pending_buf[dt.d_buf+2*dt.last_lit+1]=255&Dt,dt.pending_buf[dt.l_buf+dt.last_lit]=255&ie,dt.last_lit++,Dt===0?dt.dyn_ltree[2*ie]++:(dt.matches++,Dt--,dt.dyn_ltree[2*(G[ie]+I+1)]++,dt.dyn_dtree[2*Bt(Dt)]++),dt.last_lit===dt.lit_bufsize-1},d._tr_align=function(dt){me(dt,2,3),Yt(dt,R,Ct),function(Dt){Dt.bi_valid===16?(Be(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(dt)}},{"../utils/common":41}],53:[function(o,p,d){p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(o,p,d){(function(u){(function(m,_){if(!m.setImmediate){var T,S,C,I,N=1,z={},U=!1,E=m.document,L=Object.getPrototypeOf&&Object.getPrototypeOf(m);L=L&&L.setTimeout?L:m,T={}.toString.call(m.process)==="[object process]"?function(b){process.nextTick(function(){M(b)})}:function(){if(m.postMessage&&!m.importScripts){var b=!0,F=m.onmessage;return m.onmessage=function(){b=!1},m.postMessage("","*"),m.onmessage=F,b}}()?(I="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",R,!1):m.attachEvent("onmessage",R),function(b){m.postMessage(I+b,"*")}):m.MessageChannel?((C=new MessageChannel).port1.onmessage=function(b){M(b.data)},function(b){C.port2.postMessage(b)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(b){var F=E.createElement("script");F.onreadystatechange=function(){M(b),F.onreadystatechange=null,S.removeChild(F),F=null},S.appendChild(F)}):function(b){setTimeout(M,0,b)},L.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var F=new Array(arguments.length-1),B=0;B<F.length;B++)F[B]=arguments[B+1];var X={callback:b,args:F};return z[N]=X,T(N),N++},L.clearImmediate=x}function x(b){delete z[b]}function M(b){if(U)setTimeout(M,0,b);else{var F=z[b];if(F){U=!0;try{(function(B){var X=B.callback,$=B.args;switch($.length){case 0:X();break;case 1:X($[0]);break;case 2:X($[0],$[1]);break;case 3:X($[0],$[1],$[2]);break;default:X.apply(_,$)}})(F)}finally{x(b),U=!1}}}}function R(b){b.source===m&&typeof b.data=="string"&&b.data.indexOf(I)===0&&M(+b.data.slice(I.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Mf);var am=Mf.exports;const lm=Ju(am);var Sf={exports:{}};(function(w,l){(function(o,p){p()})(Er,function(){function o(S,C){return typeof C>"u"?C={autoBom:!1}:typeof C!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),C={autoBom:!C}),C.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function p(S,C,I){var N=new XMLHttpRequest;N.open("GET",S),N.responseType="blob",N.onload=function(){T(N.response,C,I)},N.onerror=function(){console.error("could not download file")},N.send()}function d(S){var C=new XMLHttpRequest;C.open("HEAD",S,!1);try{C.send()}catch{}return 200<=C.status&&299>=C.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var C=document.createEvent("MouseEvents");C.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(C)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Er=="object"&&Er.global===Er?Er:void 0,_=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),T=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!_?function(S,C,I){var N=m.URL||m.webkitURL,z=document.createElement("a");C=C||S.name||"download",z.download=C,z.rel="noopener",typeof S=="string"?(z.href=S,z.origin===location.origin?u(z):d(z.href)?p(S,C,I):u(z,z.target="_blank")):(z.href=N.createObjectURL(S),setTimeout(function(){N.revokeObjectURL(z.href)},4e4),setTimeout(function(){u(z)},0))}:"msSaveOrOpenBlob"in navigator?function(S,C,I){if(C=C||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,I),C);else if(d(S))p(S,C,I);else{var N=document.createElement("a");N.href=S,N.target="_blank",setTimeout(function(){u(N)})}}:function(S,C,I,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof S=="string")return p(S,C,I);var z=S.type==="application/octet-stream",U=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||z&&U||_)&&typeof FileReader<"u"){var L=new FileReader;L.onloadend=function(){var R=L.result;R=E?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=R:location=R,N=null},L.readAsDataURL(S)}else{var x=m.URL||m.webkitURL,M=x.createObjectURL(S);N?N.location=M:location.href=M,N=null,setTimeout(function(){x.revokeObjectURL(M)},4e4)}});m.saveAs=T.saveAs=T,w.exports=T})})(Sf);var hm=Sf.exports;const um=Ju(hm);class cm{constructor(l,o){window.mars3d?(this.map=l,this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt):console.error("未引入指定插件")}start(l=!0){var o,p;if(l){this.timestamp=new Date().getTime();const d=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),d!==null&&d.classList.add(this.panoramicViewClass);let{lat:_,lng:T,alt:S}=this.map.getCameraView();this.lat=_,this.lng=T,this.alt=S,this.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?this.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(p=this.screenshotArray)==null?void 0:p.length]},{complete:()=>{setTimeout(()=>{var d;this.screenshot((d=this.screenshotArray)==null?void 0:d.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):(console.error("初始化失效"),this.emit("state",{type:"error"}))}async screenshot(l){const o=await this.map.expImage({download:!1}),p=this.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),d=await window.domtoimage.toPng(this.map.container,{filter:u=>u!==p[0]});this.mergeImage(o.image,d,o.width,o.height).then(u=>{var T;let m=Number(l)+1,_={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",_),(T=this.screenshotArray)==null||T.push(_),this.start(!1)})}mergeImage(l,o,p,d){return new Promise((u,m)=>{const _=document.createElement("canvas");_.width=p,_.height=d;const T=_.getContext("2d");if(_&&T){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{T.drawImage(S,0,0,p,d);const C=new Image;C.crossOrigin="Anonymous",C.onload=()=>{T.drawImage(C,0,0,p,d);const I=_.toDataURL("image/png");u(I)},C.src=o},S.src=l}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(l=>{window.mars3d.Util.downloadBase64Image(l.name,l.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const l=new lm;this.screenshotArray.forEach(p=>{const d=p.src.split(",")[1],u=atob(d),m=[];for(let S=0;S<u.length;S+=1024){const C=u.slice(S,S+1024),I=new Array(C.length);for(let z=0;z<C.length;z++)I[z]=C.charCodeAt(z);const N=new Uint8Array(I);m.push(N)}const _=new Blob(m,{type:"image/jpeg"}),T=`${p.name}`;l.file(T,_,{binary:!0})});const o=await l.generateAsync({type:"blob"});um(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const l=document.getElementById("app");l&&l.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height="")}on(l,o){this.events[l]?this.events[l].push(o):this.events[l]=[o]}emit(l,...o){this.events[l]!=null&&this.events[l].forEach(p=>p(...o))}off(l,o){this.events[l]=this.events[l].filter(p=>p!==o)}}function uo(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function Ef(w,l){w.prototype=Object.create(l.prototype),w.prototype.constructor=w,w.__proto__=l}/*!
|
|
2685
|
+
* GSAP 3.12.5
|
|
2686
|
+
* https://gsap.com
|
|
2687
|
+
*
|
|
2688
|
+
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|
2689
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
2690
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
2691
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
2692
|
+
*/var Hr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Cl={duration:.5,overwrite:!1,delay:0},Ku,nr,hn,ns=1e8,en=1/ns,Qu=Math.PI*2,fm=Qu/4,pm=0,bf=Math.sqrt,dm=Math.cos,mm=Math.sin,Wn=function(l){return typeof l=="string"},Tn=function(l){return typeof l=="function"},co=function(l){return typeof l=="number"},tc=function(l){return typeof l>"u"},Gs=function(l){return typeof l=="object"},br=function(l){return l!==!1},ec=function(){return typeof window<"u"},ou=function(l){return Tn(l)||Wn(l)},Af=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},rr=Array.isArray,ic=/(?:-?\.?\d|\.)+/gi,Cf=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Pl=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,nc=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Pf=/[+-]=-?[.\d]+/,Lf=/[^,'"\[\]\s]+/gi,gm=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pn,Hs,rc,sc,Vr={},au={},Rf,Of=function(l){return(au=ka(l,Vr))&&Pr},oc=function(l,o){return console.warn("Invalid property",l,"set to",o,"Missing plugin? gsap.registerPlugin()")},dh=function(l,o){return!o&&console.warn(l)},If=function(l,o){return l&&(Vr[l]=o)&&au&&(au[l]=o)||Vr},mh=function(){return 0},vm={suppressEvents:!0,isStart:!0,kill:!1},lu={suppressEvents:!0,kill:!1},_m={suppressEvents:!0},ac={},qo=[],lc={},Df,Wr={},hc={},zf=30,hu=[],uc="",cc=function(l){var o=l[0],p,d;if(Gs(o)||Tn(o)||(l=[l]),!(p=(o._gsap||{}).harness)){for(d=hu.length;d--&&!hu[d].targetTest(o););p=hu[d]}for(d=l.length;d--;)l[d]&&(l[d]._gsap||(l[d]._gsap=new up(l[d],p)))||l.splice(d,1);return l},za=function(l){return l._gsap||cc(os(l))[0]._gsap},kf=function(l,o,p){return(p=l[o])&&Tn(p)?l[o]():tc(p)&&l.getAttribute&&l.getAttribute(o)||p},Ar=function(l,o){return(l=l.split(",")).forEach(o)||l},Rn=function(l){return Math.round(l*1e5)/1e5||0},jn=function(l){return Math.round(l*1e7)/1e7||0},Ll=function(l,o){var p=o.charAt(0),d=parseFloat(o.substr(2));return l=parseFloat(l),p==="+"?l+d:p==="-"?l-d:p==="*"?l*d:l/d},ym=function(l,o){for(var p=o.length,d=0;l.indexOf(o[d])<0&&++d<p;);return d<p},uu=function(){var l=qo.length,o=qo.slice(0),p,d;for(lc={},qo.length=0,p=0;p<l;p++)d=o[p],d&&d._lazy&&(d.render(d._lazy[0],d._lazy[1],!0)._lazy=0)},Bf=function(l,o,p,d){qo.length&&!nr&&uu(),l.render(o,p,d||nr&&o<0&&(l._initted||l._startAt)),qo.length&&!nr&&uu()},Nf=function(l){var o=parseFloat(l);return(o||o===0)&&(l+"").match(Lf).length<2?o:Wn(l)?l.trim():l},Ff=function(l){return l},rs=function(l,o){for(var p in o)p in l||(l[p]=o[p]);return l},xm=function(l){return function(o,p){for(var d in p)d in o||d==="duration"&&l||d==="ease"||(o[d]=p[d])}},ka=function(l,o){for(var p in o)l[p]=o[p];return l},Uf=function w(l,o){for(var p in o)p!=="__proto__"&&p!=="constructor"&&p!=="prototype"&&(l[p]=Gs(o[p])?w(l[p]||(l[p]={}),o[p]):o[p]);return l},cu=function(l,o){var p={},d;for(d in l)d in o||(p[d]=l[d]);return p},gh=function(l){var o=l.parent||pn,p=l.keyframes?xm(rr(l.keyframes)):rs;if(br(l.inherit))for(;o;)p(l,o.vars.defaults),o=o.parent||o._dp;return l},wm=function(l,o){for(var p=l.length,d=p===o.length;d&&p--&&l[p]===o[p];);return p<0},Gf=function(l,o,p,d,u){p===void 0&&(p="_first"),d===void 0&&(d="_last");var m=l[d],_;if(u)for(_=o[u];m&&m[u]>_;)m=m._prev;return m?(o._next=m._next,m._next=o):(o._next=l[p],l[p]=o),o._next?o._next._prev=o:l[d]=o,o._prev=m,o.parent=o._dp=l,o},fu=function(l,o,p,d){p===void 0&&(p="_first"),d===void 0&&(d="_last");var u=o._prev,m=o._next;u?u._next=m:l[p]===o&&(l[p]=m),m?m._prev=u:l[d]===o&&(l[d]=u),o._next=o._prev=o.parent=null},Yo=function(l,o){l.parent&&(!o||l.parent.autoRemoveChildren)&&l.parent.remove&&l.parent.remove(l),l._act=0},Ba=function(l,o){if(l&&(!o||o._end>l._dur||o._start<0))for(var p=l;p;)p._dirty=1,p=p.parent;return l},Tm=function(l){for(var o=l.parent;o&&o.parent;)o._dirty=1,o.totalDuration(),o=o.parent;return l},fc=function(l,o,p,d){return l._startAt&&(nr?l._startAt.revert(lu):l.vars.immediateRender&&!l.vars.autoRevert||l._startAt.render(o,!0,d))},Mm=function w(l){return!l||l._ts&&w(l.parent)},Hf=function(l){return l._repeat?Rl(l._tTime,l=l.duration()+l._rDelay)*l:0},Rl=function(l,o){var p=Math.floor(l/=o);return l&&p===l?p-1:p},pu=function(l,o){return(l-o._start)*o._ts+(o._ts>=0?0:o._dirty?o.totalDuration():o._tDur)},du=function(l){return l._end=jn(l._start+(l._tDur/Math.abs(l._ts||l._rts||en)||0))},mu=function(l,o){var p=l._dp;return p&&p.smoothChildTiming&&l._ts&&(l._start=jn(p._time-(l._ts>0?o/l._ts:((l._dirty?l.totalDuration():l._tDur)-o)/-l._ts)),du(l),p._dirty||Ba(p,l)),l},Vf=function(l,o){var p;if((o._time||!o._dur&&o._initted||o._start<l._time&&(o._dur||!o.add))&&(p=pu(l.rawTime(),o),(!o._dur||_h(0,o.totalDuration(),p)-o._tTime>en)&&o.render(p,!0)),Ba(l,o)._dp&&l._initted&&l._time>=l._dur&&l._ts){if(l._dur<l.duration())for(p=l;p._dp;)p.rawTime()>=0&&p.totalTime(p._tTime),p=p._dp;l._zTime=-en}},Vs=function(l,o,p,d){return o.parent&&Yo(o),o._start=jn((co(p)?p:p||l!==pn?ss(l,p,o):l._time)+o._delay),o._end=jn(o._start+(o.totalDuration()/Math.abs(o.timeScale())||0)),Gf(l,o,"_first","_last",l._sort?"_start":0),pc(o)||(l._recent=o),d||Vf(l,o),l._ts<0&&mu(l,l._tTime),l},Wf=function(l,o){return(Vr.ScrollTrigger||oc("scrollTrigger",o))&&Vr.ScrollTrigger.create(o,l)},jf=function(l,o,p,d,u){if(Tc(l,o,u),!l._initted)return 1;if(!p&&l._pt&&!nr&&(l._dur&&l.vars.lazy!==!1||!l._dur&&l.vars.lazy)&&Df!==Xr.frame)return qo.push(l),l._lazy=[u,d],1},Sm=function w(l){var o=l.parent;return o&&o._ts&&o._initted&&!o._lock&&(o.rawTime()<0||w(o))},pc=function(l){var o=l.data;return o==="isFromStart"||o==="isStart"},Em=function(l,o,p,d){var u=l.ratio,m=o<0||!o&&(!l._start&&Sm(l)&&!(!l._initted&&pc(l))||(l._ts<0||l._dp._ts<0)&&!pc(l))?0:1,_=l._rDelay,T=0,S,C,I;if(_&&l._repeat&&(T=_h(0,l._tDur,o),C=Rl(T,_),l._yoyo&&C&1&&(m=1-m),C!==Rl(l._tTime,_)&&(u=1-m,l.vars.repeatRefresh&&l._initted&&l.invalidate())),m!==u||nr||d||l._zTime===en||!o&&l._zTime){if(!l._initted&&jf(l,o,d,p,T))return;for(I=l._zTime,l._zTime=o||(p?en:0),p||(p=o&&!I),l.ratio=m,l._from&&(m=1-m),l._time=0,l._tTime=T,S=l._pt;S;)S.r(m,S.d),S=S._next;o<0&&fc(l,o,p,!0),l._onUpdate&&!p&&jr(l,"onUpdate"),T&&l._repeat&&!p&&l.parent&&jr(l,"onRepeat"),(o>=l._tDur||o<0)&&l.ratio===m&&(m&&Yo(l,1),!p&&!nr&&(jr(l,m?"onComplete":"onReverseComplete",!0),l._prom&&l._prom()))}else l._zTime||(l._zTime=o)},bm=function(l,o,p){var d;if(p>o)for(d=l._first;d&&d._start<=p;){if(d.data==="isPause"&&d._start>o)return d;d=d._next}else for(d=l._last;d&&d._start>=p;){if(d.data==="isPause"&&d._start<o)return d;d=d._prev}},Ol=function(l,o,p,d){var u=l._repeat,m=jn(o)||0,_=l._tTime/l._tDur;return _&&!d&&(l._time*=m/l._dur),l._dur=m,l._tDur=u?u<0?1e10:jn(m*(u+1)+l._rDelay*u):m,_>0&&!d&&mu(l,l._tTime=l._tDur*_),l.parent&&du(l),p||Ba(l.parent,l),l},Xf=function(l){return l instanceof gr?Ba(l):Ol(l,l._dur)},Am={_start:0,endTime:mh,totalDuration:mh},ss=function w(l,o,p){var d=l.labels,u=l._recent||Am,m=l.duration()>=ns?u.endTime(!1):l._dur,_,T,S;return Wn(o)&&(isNaN(o)||o in d)?(T=o.charAt(0),S=o.substr(-1)==="%",_=o.indexOf("="),T==="<"||T===">"?(_>=0&&(o=o.replace(/=/,"")),(T==="<"?u._start:u.endTime(u._repeat>=0))+(parseFloat(o.substr(1))||0)*(S?(_<0?u:p).totalDuration()/100:1)):_<0?(o in d||(d[o]=m),d[o]):(T=parseFloat(o.charAt(_-1)+o.substr(_+1)),S&&p&&(T=T/100*(rr(p)?p[0]:p).totalDuration()),_>1?w(l,o.substr(0,_-1),p)+T:m+T)):o==null?m:+o},vh=function(l,o,p){var d=co(o[1]),u=(d?2:1)+(l<2?0:1),m=o[u],_,T;if(d&&(m.duration=o[1]),m.parent=p,l){for(_=m,T=p;T&&!("immediateRender"in _);)_=T.vars.defaults||{},T=br(T.vars.inherit)&&T.parent;m.immediateRender=br(_.immediateRender),l<2?m.runBackwards=1:m.startAt=o[u-1]}return new kn(o[0],m,o[u+1])},Zo=function(l,o){return l||l===0?o(l):o},_h=function(l,o,p){return p<l?l:p>o?o:p},sr=function(l,o){return!Wn(l)||!(o=gm.exec(l))?"":o[1]},Cm=function(l,o,p){return Zo(p,function(d){return _h(l,o,d)})},dc=[].slice,qf=function(l,o){return l&&Gs(l)&&"length"in l&&(!o&&!l.length||l.length-1 in l&&Gs(l[0]))&&!l.nodeType&&l!==Hs},Pm=function(l,o,p){return p===void 0&&(p=[]),l.forEach(function(d){var u;return Wn(d)&&!o||qf(d,1)?(u=p).push.apply(u,os(d)):p.push(d)})||p},os=function(l,o,p){return hn&&!o&&hn.selector?hn.selector(l):Wn(l)&&!p&&(rc||!Dl())?dc.call((o||sc).querySelectorAll(l),0):rr(l)?Pm(l,p):qf(l)?dc.call(l,0):l?[l]:[]},mc=function(l){return l=os(l)[0]||dh("Invalid scope")||{},function(o){var p=l.current||l.nativeElement||l;return os(o,p.querySelectorAll?p:p===l?dh("Invalid scope")||sc.createElement("div"):l)}},Yf=function(l){return l.sort(function(){return .5-Math.random()})},Zf=function(l){if(Tn(l))return l;var o=Gs(l)?l:{each:l},p=Na(o.ease),d=o.from||0,u=parseFloat(o.base)||0,m={},_=d>0&&d<1,T=isNaN(d)||_,S=o.axis,C=d,I=d;return Wn(d)?C=I={center:.5,edges:.5,end:1}[d]||0:!_&&T&&(C=d[0],I=d[1]),function(N,z,U){var E=(U||o).length,L=m[E],x,M,R,b,F,B,X,$,Q;if(!L){if(Q=o.grid==="auto"?0:(o.grid||[1,ns])[1],!Q){for(X=-ns;X<(X=U[Q++].getBoundingClientRect().left)&&Q<E;);Q<E&&Q--}for(L=m[E]=[],x=T?Math.min(Q,E)*C-.5:d%Q,M=Q===ns?0:T?E*I/Q-.5:d/Q|0,X=0,$=ns,B=0;B<E;B++)R=B%Q-x,b=M-(B/Q|0),L[B]=F=S?Math.abs(S==="y"?b:R):bf(R*R+b*b),F>X&&(X=F),F<$&&($=F);d==="random"&&Yf(L),L.max=X-$,L.min=$,L.v=E=(parseFloat(o.amount)||parseFloat(o.each)*(Q>E?E-1:S?S==="y"?E/Q:Q:Math.max(Q,E/Q))||0)*(d==="edges"?-1:1),L.b=E<0?u-E:u,L.u=sr(o.amount||o.each)||0,p=p&&E<0?ap(p):p}return E=(L[N]-L.min)/L.max||0,jn(L.b+(p?p(E):E)*L.v)+L.u}},gc=function(l){var o=Math.pow(10,((l+"").split(".")[1]||"").length);return function(p){var d=jn(Math.round(parseFloat(p)/l)*l*o);return(d-d%1)/o+(co(p)?0:sr(p))}},Jf=function(l,o){var p=rr(l),d,u;return!p&&Gs(l)&&(d=p=l.radius||ns,l.values?(l=os(l.values),(u=!co(l[0]))&&(d*=d)):l=gc(l.increment)),Zo(o,p?Tn(l)?function(m){return u=l(m),Math.abs(u-m)<=d?u:m}:function(m){for(var _=parseFloat(u?m.x:m),T=parseFloat(u?m.y:0),S=ns,C=0,I=l.length,N,z;I--;)u?(N=l[I].x-_,z=l[I].y-T,N=N*N+z*z):N=Math.abs(l[I]-_),N<S&&(S=N,C=I);return C=!d||S<=d?l[C]:m,u||C===m||co(m)?C:C+sr(m)}:gc(l))},$f=function(l,o,p,d){return Zo(rr(l)?!o:p===!0?!!(p=0):!d,function(){return rr(l)?l[~~(Math.random()*l.length)]:(p=p||1e-5)&&(d=p<1?Math.pow(10,(p+"").length-2):1)&&Math.floor(Math.round((l-p/2+Math.random()*(o-l+p*.99))/p)*p*d)/d})},Lm=function(){for(var l=arguments.length,o=new Array(l),p=0;p<l;p++)o[p]=arguments[p];return function(d){return o.reduce(function(u,m){return m(u)},d)}},Rm=function(l,o){return function(p){return l(parseFloat(p))+(o||sr(p))}},Om=function(l,o,p){return Qf(l,o,0,1,p)},Kf=function(l,o,p){return Zo(p,function(d){return l[~~o(d)]})},Im=function w(l,o,p){var d=o-l;return rr(l)?Kf(l,w(0,l.length),o):Zo(p,function(u){return(d+(u-l)%d)%d+l})},Dm=function w(l,o,p){var d=o-l,u=d*2;return rr(l)?Kf(l,w(0,l.length-1),o):Zo(p,function(m){return m=(u+(m-l)%u)%u||0,l+(m>d?u-m:m)})},yh=function(l){for(var o=0,p="",d,u,m,_;~(d=l.indexOf("random(",o));)m=l.indexOf(")",d),_=l.charAt(d+7)==="[",u=l.substr(d+7,m-d-7).match(_?Lf:ic),p+=l.substr(o,d-o)+$f(_?u:+u[0],_?0:+u[1],+u[2]||1e-5),o=m+1;return p+l.substr(o,l.length-o)},Qf=function(l,o,p,d,u){var m=o-l,_=d-p;return Zo(u,function(T){return p+((T-l)/m*_||0)})},zm=function w(l,o,p,d){var u=isNaN(l+o)?0:function(z){return(1-z)*l+z*o};if(!u){var m=Wn(l),_={},T,S,C,I,N;if(p===!0&&(d=1)&&(p=null),m)l={p:l},o={p:o};else if(rr(l)&&!rr(o)){for(C=[],I=l.length,N=I-2,S=1;S<I;S++)C.push(w(l[S-1],l[S]));I--,u=function(U){U*=I;var E=Math.min(N,~~U);return C[E](U-E)},p=o}else d||(l=ka(rr(l)?[]:{},l));if(!C){for(T in o)xc.call(_,l,T,"get",o[T]);u=function(U){return Ec(U,_)||(m?l.p:l)}}}return Zo(p,u)},tp=function(l,o,p){var d=l.labels,u=ns,m,_,T;for(m in d)_=d[m]-o,_<0==!!p&&_&&u>(_=Math.abs(_))&&(T=m,u=_);return T},jr=function(l,o,p){var d=l.vars,u=d[o],m=hn,_=l._ctx,T,S,C;if(u)return T=d[o+"Params"],S=d.callbackScope||l,p&&qo.length&&uu(),_&&(hn=_),C=T?u.apply(S,T):u.call(S),hn=m,C},xh=function(l){return Yo(l),l.scrollTrigger&&l.scrollTrigger.kill(!!nr),l.progress()<1&&jr(l,"onInterrupt"),l},Il,ep=[],ip=function(l){if(l)if(l=!l.name&&l.default||l,ec()||l.headless){var o=l.name,p=Tn(l),d=o&&!p&&l.init?function(){this._props=[]}:l,u={init:mh,render:Ec,add:xc,kill:$m,modifier:Jm,rawVars:0},m={targetTest:0,get:0,getSetter:Sc,aliases:{},register:0};if(Dl(),l!==d){if(Wr[o])return;rs(d,rs(cu(l,u),m)),ka(d.prototype,ka(u,cu(l,m))),Wr[d.prop=o]=d,l.targetTest&&(hu.push(d),ac[o]=1),o=(o==="css"?"CSS":o.charAt(0).toUpperCase()+o.substr(1))+"Plugin"}If(o,d),l.register&&l.register(Pr,d,Cr)}else ep.push(l)},Ki=255,wh={aqua:[0,Ki,Ki],lime:[0,Ki,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ki],navy:[0,0,128],white:[Ki,Ki,Ki],olive:[128,128,0],yellow:[Ki,Ki,0],orange:[Ki,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ki,0,0],pink:[Ki,192,203],cyan:[0,Ki,Ki],transparent:[Ki,Ki,Ki,0]},vc=function(l,o,p){return l+=l<0?1:l>1?-1:0,(l*6<1?o+(p-o)*l*6:l<.5?p:l*3<2?o+(p-o)*(2/3-l)*6:o)*Ki+.5|0},np=function(l,o,p){var d=l?co(l)?[l>>16,l>>8&Ki,l&Ki]:0:wh.black,u,m,_,T,S,C,I,N,z,U;if(!d){if(l.substr(-1)===","&&(l=l.substr(0,l.length-1)),wh[l])d=wh[l];else if(l.charAt(0)==="#"){if(l.length<6&&(u=l.charAt(1),m=l.charAt(2),_=l.charAt(3),l="#"+u+u+m+m+_+_+(l.length===5?l.charAt(4)+l.charAt(4):"")),l.length===9)return d=parseInt(l.substr(1,6),16),[d>>16,d>>8&Ki,d&Ki,parseInt(l.substr(7),16)/255];l=parseInt(l.substr(1),16),d=[l>>16,l>>8&Ki,l&Ki]}else if(l.substr(0,3)==="hsl"){if(d=U=l.match(ic),!o)T=+d[0]%360/360,S=+d[1]/100,C=+d[2]/100,m=C<=.5?C*(S+1):C+S-C*S,u=C*2-m,d.length>3&&(d[3]*=1),d[0]=vc(T+1/3,u,m),d[1]=vc(T,u,m),d[2]=vc(T-1/3,u,m);else if(~l.indexOf("="))return d=l.match(Cf),p&&d.length<4&&(d[3]=1),d}else d=l.match(ic)||wh.transparent;d=d.map(Number)}return o&&!U&&(u=d[0]/Ki,m=d[1]/Ki,_=d[2]/Ki,I=Math.max(u,m,_),N=Math.min(u,m,_),C=(I+N)/2,I===N?T=S=0:(z=I-N,S=C>.5?z/(2-I-N):z/(I+N),T=I===u?(m-_)/z+(m<_?6:0):I===m?(_-u)/z+2:(u-m)/z+4,T*=60),d[0]=~~(T+.5),d[1]=~~(S*100+.5),d[2]=~~(C*100+.5)),p&&d.length<4&&(d[3]=1),d},rp=function(l){var o=[],p=[],d=-1;return l.split(Jo).forEach(function(u){var m=u.match(Pl)||[];o.push.apply(o,m),p.push(d+=m.length+1)}),o.c=p,o},sp=function(l,o,p){var d="",u=(l+d).match(Jo),m=o?"hsla(":"rgba(",_=0,T,S,C,I;if(!u)return l;if(u=u.map(function(N){return(N=np(N,o,1))&&m+(o?N[0]+","+N[1]+"%,"+N[2]+"%,"+N[3]:N.join(","))+")"}),p&&(C=rp(l),T=p.c,T.join(d)!==C.c.join(d)))for(S=l.replace(Jo,"1").split(Pl),I=S.length-1;_<I;_++)d+=S[_]+(~T.indexOf(_)?u.shift()||m+"0,0,0,0)":(C.length?C:u.length?u:p).shift());if(!S)for(S=l.split(Jo),I=S.length-1;_<I;_++)d+=S[_]+u[_];return d+S[I]},Jo=function(){var w="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",l;for(l in wh)w+="|"+l+"\\b";return new RegExp(w+")","gi")}(),km=/hsl[a]?\(/,op=function(l){var o=l.join(" "),p;if(Jo.lastIndex=0,Jo.test(o))return p=km.test(o),l[1]=sp(l[1],p),l[0]=sp(l[0],p,rp(l[1])),!0},Th,Xr=function(){var w=Date.now,l=500,o=33,p=w(),d=p,u=1e3/240,m=u,_=[],T,S,C,I,N,z,U=function E(L){var x=w()-d,M=L===!0,R,b,F,B;if((x>l||x<0)&&(p+=x-o),d+=x,F=d-p,R=F-m,(R>0||M)&&(B=++I.frame,N=F-I.time*1e3,I.time=F=F/1e3,m+=R+(R>=u?4:u-R),b=1),M||(T=S(E)),b)for(z=0;z<_.length;z++)_[z](F,N,B,L)};return I={time:0,frame:0,tick:function(){U(!0)},deltaRatio:function(L){return N/(1e3/(L||60))},wake:function(){Rf&&(!rc&&ec()&&(Hs=rc=window,sc=Hs.document||{},Vr.gsap=Pr,(Hs.gsapVersions||(Hs.gsapVersions=[])).push(Pr.version),Of(au||Hs.GreenSockGlobals||!Hs.gsap&&Hs||{}),ep.forEach(ip)),C=typeof requestAnimationFrame<"u"&&requestAnimationFrame,T&&I.sleep(),S=C||function(L){return setTimeout(L,m-I.time*1e3+1|0)},Th=1,U(2))},sleep:function(){(C?cancelAnimationFrame:clearTimeout)(T),Th=0,S=mh},lagSmoothing:function(L,x){l=L||1/0,o=Math.min(x||33,l)},fps:function(L){u=1e3/(L||240),m=I.time*1e3+u},add:function(L,x,M){var R=x?function(b,F,B,X){L(b,F,B,X),I.remove(R)}:L;return I.remove(L),_[M?"unshift":"push"](R),Dl(),R},remove:function(L,x){~(x=_.indexOf(L))&&_.splice(x,1)&&z>=x&&z--},_listeners:_},I}(),Dl=function(){return!Th&&Xr.wake()},Ri={},Bm=/^[\d.\-M][\d.\-,\s]/,Nm=/["']/g,Fm=function(l){for(var o={},p=l.substr(1,l.length-3).split(":"),d=p[0],u=1,m=p.length,_,T,S;u<m;u++)T=p[u],_=u!==m-1?T.lastIndexOf(","):T.length,S=T.substr(0,_),o[d]=isNaN(S)?S.replace(Nm,"").trim():+S,d=T.substr(_+1).trim();return o},Um=function(l){var o=l.indexOf("(")+1,p=l.indexOf(")"),d=l.indexOf("(",o);return l.substring(o,~d&&d<p?l.indexOf(")",p+1):p)},Gm=function(l){var o=(l+"").split("("),p=Ri[o[0]];return p&&o.length>1&&p.config?p.config.apply(null,~l.indexOf("{")?[Fm(o[1])]:Um(l).split(",").map(Nf)):Ri._CE&&Bm.test(l)?Ri._CE("",l):p},ap=function(l){return function(o){return 1-l(1-o)}},lp=function w(l,o){for(var p=l._first,d;p;)p instanceof gr?w(p,o):p.vars.yoyoEase&&(!p._yoyo||!p._repeat)&&p._yoyo!==o&&(p.timeline?w(p.timeline,o):(d=p._ease,p._ease=p._yEase,p._yEase=d,p._yoyo=o)),p=p._next},Na=function(l,o){return l&&(Tn(l)?l:Ri[l]||Gm(l))||o},Fa=function(l,o,p,d){p===void 0&&(p=function(T){return 1-o(1-T)}),d===void 0&&(d=function(T){return T<.5?o(T*2)/2:1-o((1-T)*2)/2});var u={easeIn:o,easeOut:p,easeInOut:d},m;return Ar(l,function(_){Ri[_]=Vr[_]=u,Ri[m=_.toLowerCase()]=p;for(var T in u)Ri[m+(T==="easeIn"?".in":T==="easeOut"?".out":".inOut")]=Ri[_+"."+T]=u[T]}),u},hp=function(l){return function(o){return o<.5?(1-l(1-o*2))/2:.5+l((o-.5)*2)/2}},_c=function w(l,o,p){var d=o>=1?o:1,u=(p||(l?.3:.45))/(o<1?o:1),m=u/Qu*(Math.asin(1/d)||0),_=function(C){return C===1?1:d*Math.pow(2,-10*C)*mm((C-m)*u)+1},T=l==="out"?_:l==="in"?function(S){return 1-_(1-S)}:hp(_);return u=Qu/u,T.config=function(S,C){return w(l,S,C)},T},yc=function w(l,o){o===void 0&&(o=1.70158);var p=function(m){return m?--m*m*((o+1)*m+o)+1:0},d=l==="out"?p:l==="in"?function(u){return 1-p(1-u)}:hp(p);return d.config=function(u){return w(l,u)},d};Ar("Linear,Quad,Cubic,Quart,Quint,Strong",function(w,l){var o=l<5?l+1:l;Fa(w+",Power"+(o-1),l?function(p){return Math.pow(p,o)}:function(p){return p},function(p){return 1-Math.pow(1-p,o)},function(p){return p<.5?Math.pow(p*2,o)/2:1-Math.pow((1-p)*2,o)/2})}),Ri.Linear.easeNone=Ri.none=Ri.Linear.easeIn,Fa("Elastic",_c("in"),_c("out"),_c()),function(w,l){var o=1/l,p=2*o,d=2.5*o,u=function(_){return _<o?w*_*_:_<p?w*Math.pow(_-1.5/l,2)+.75:_<d?w*(_-=2.25/l)*_+.9375:w*Math.pow(_-2.625/l,2)+.984375};Fa("Bounce",function(m){return 1-u(1-m)},u)}(7.5625,2.75),Fa("Expo",function(w){return w?Math.pow(2,10*(w-1)):0}),Fa("Circ",function(w){return-(bf(1-w*w)-1)}),Fa("Sine",function(w){return w===1?1:-dm(w*fm)+1}),Fa("Back",yc("in"),yc("out"),yc()),Ri.SteppedEase=Ri.steps=Vr.SteppedEase={config:function(l,o){l===void 0&&(l=1);var p=1/l,d=l+(o?0:1),u=o?1:0,m=1-en;return function(_){return((d*_h(0,m,_)|0)+u)*p}}},Cl.ease=Ri["quad.out"],Ar("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(w){return uc+=w+","+w+"Params,"});var up=function(l,o){this.id=pm++,l._gsap=this,this.target=l,this.harness=o,this.get=o?o.get:kf,this.set=o?o.getSetter:Sc},Mh=function(){function w(o){this.vars=o,this._delay=+o.delay||0,(this._repeat=o.repeat===1/0?-2:o.repeat||0)&&(this._rDelay=o.repeatDelay||0,this._yoyo=!!o.yoyo||!!o.yoyoEase),this._ts=1,Ol(this,+o.duration,1,1),this.data=o.data,hn&&(this._ctx=hn,hn.data.push(this)),Th||Xr.wake()}var l=w.prototype;return l.delay=function(p){return p||p===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+p-this._delay),this._delay=p,this):this._delay},l.duration=function(p){return arguments.length?this.totalDuration(this._repeat>0?p+(p+this._rDelay)*this._repeat:p):this.totalDuration()&&this._dur},l.totalDuration=function(p){return arguments.length?(this._dirty=0,Ol(this,this._repeat<0?p:(p-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},l.totalTime=function(p,d){if(Dl(),!arguments.length)return this._tTime;var u=this._dp;if(u&&u.smoothChildTiming&&this._ts){for(mu(this,p),!u._dp||u.parent||Vf(u,this);u&&u.parent;)u.parent._time!==u._start+(u._ts>=0?u._tTime/u._ts:(u.totalDuration()-u._tTime)/-u._ts)&&u.totalTime(u._tTime,!0),u=u.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&p<this._tDur||this._ts<0&&p>0||!this._tDur&&!p)&&Vs(this._dp,this,this._start-this._delay)}return(this._tTime!==p||!this._dur&&!d||this._initted&&Math.abs(this._zTime)===en||!p&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=p),Bf(this,p,d)),this},l.time=function(p,d){return arguments.length?this.totalTime(Math.min(this.totalDuration(),p+Hf(this))%(this._dur+this._rDelay)||(p?this._dur:0),d):this._time},l.totalProgress=function(p,d){return arguments.length?this.totalTime(this.totalDuration()*p,d):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},l.progress=function(p,d){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-p:p)+Hf(this),d):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},l.iteration=function(p,d){var u=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(p-1)*u,d):this._repeat?Rl(this._tTime,u)+1:1},l.timeScale=function(p,d){if(!arguments.length)return this._rts===-en?0:this._rts;if(this._rts===p)return this;var u=this.parent&&this._ts?pu(this.parent._time,this):this._tTime;return this._rts=+p||0,this._ts=this._ps||p===-en?0:this._rts,this.totalTime(_h(-Math.abs(this._delay),this._tDur,u),d!==!1),du(this),Tm(this)},l.paused=function(p){return arguments.length?(this._ps!==p&&(this._ps=p,p?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Dl(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==en&&(this._tTime-=en)))),this):this._ps},l.startTime=function(p){if(arguments.length){this._start=p;var d=this.parent||this._dp;return d&&(d._sort||!this.parent)&&Vs(d,this,p-this._delay),this}return this._start},l.endTime=function(p){return this._start+(br(p)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},l.rawTime=function(p){var d=this.parent||this._dp;return d?p&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?pu(d.rawTime(p),this):this._tTime:this._tTime},l.revert=function(p){p===void 0&&(p=_m);var d=nr;return nr=p,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(p),this.totalTime(-.01,p.suppressEvents)),this.data!=="nested"&&p.kill!==!1&&this.kill(),nr=d,this},l.globalTime=function(p){for(var d=this,u=arguments.length?p:d.rawTime();d;)u=d._start+u/(Math.abs(d._ts)||1),d=d._dp;return!this.parent&&this._sat?this._sat.globalTime(p):u},l.repeat=function(p){return arguments.length?(this._repeat=p===1/0?-2:p,Xf(this)):this._repeat===-2?1/0:this._repeat},l.repeatDelay=function(p){if(arguments.length){var d=this._time;return this._rDelay=p,Xf(this),d?this.time(d):this}return this._rDelay},l.yoyo=function(p){return arguments.length?(this._yoyo=p,this):this._yoyo},l.seek=function(p,d){return this.totalTime(ss(this,p),br(d))},l.restart=function(p,d){return this.play().totalTime(p?-this._delay:0,br(d))},l.play=function(p,d){return p!=null&&this.seek(p,d),this.reversed(!1).paused(!1)},l.reverse=function(p,d){return p!=null&&this.seek(p||this.totalDuration(),d),this.reversed(!0).paused(!1)},l.pause=function(p,d){return p!=null&&this.seek(p,d),this.paused(!0)},l.resume=function(){return this.paused(!1)},l.reversed=function(p){return arguments.length?(!!p!==this.reversed()&&this.timeScale(-this._rts||(p?-en:0)),this):this._rts<0},l.invalidate=function(){return this._initted=this._act=0,this._zTime=-en,this},l.isActive=function(){var p=this.parent||this._dp,d=this._start,u;return!!(!p||this._ts&&this._initted&&p.isActive()&&(u=p.rawTime(!0))>=d&&u<this.endTime(!0)-en)},l.eventCallback=function(p,d,u){var m=this.vars;return arguments.length>1?(d?(m[p]=d,u&&(m[p+"Params"]=u),p==="onUpdate"&&(this._onUpdate=d)):delete m[p],this):m[p]},l.then=function(p){var d=this;return new Promise(function(u){var m=Tn(p)?p:Ff,_=function(){var S=d.then;d.then=null,Tn(m)&&(m=m(d))&&(m.then||m===d)&&(d.then=S),u(m),d.then=S};d._initted&&d.totalProgress()===1&&d._ts>=0||!d._tTime&&d._ts<0?_():d._prom=_})},l.kill=function(){xh(this)},w}();rs(Mh.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-en,_prom:0,_ps:!1,_rts:1});var gr=function(w){Ef(l,w);function l(p,d){var u;return p===void 0&&(p={}),u=w.call(this,p)||this,u.labels={},u.smoothChildTiming=!!p.smoothChildTiming,u.autoRemoveChildren=!!p.autoRemoveChildren,u._sort=br(p.sortChildren),pn&&Vs(p.parent||pn,uo(u),d),p.reversed&&u.reverse(),p.paused&&u.paused(!0),p.scrollTrigger&&Wf(uo(u),p.scrollTrigger),u}var o=l.prototype;return o.to=function(d,u,m){return vh(0,arguments,this),this},o.from=function(d,u,m){return vh(1,arguments,this),this},o.fromTo=function(d,u,m,_){return vh(2,arguments,this),this},o.set=function(d,u,m){return u.duration=0,u.parent=this,gh(u).repeatDelay||(u.repeat=0),u.immediateRender=!!u.immediateRender,new kn(d,u,ss(this,m),1),this},o.call=function(d,u,m){return Vs(this,kn.delayedCall(0,d,u),m)},o.staggerTo=function(d,u,m,_,T,S,C){return m.duration=u,m.stagger=m.stagger||_,m.onComplete=S,m.onCompleteParams=C,m.parent=this,new kn(d,m,ss(this,T)),this},o.staggerFrom=function(d,u,m,_,T,S,C){return m.runBackwards=1,gh(m).immediateRender=br(m.immediateRender),this.staggerTo(d,u,m,_,T,S,C)},o.staggerFromTo=function(d,u,m,_,T,S,C,I){return _.startAt=m,gh(_).immediateRender=br(_.immediateRender),this.staggerTo(d,u,_,T,S,C,I)},o.render=function(d,u,m){var _=this._time,T=this._dirty?this.totalDuration():this._tDur,S=this._dur,C=d<=0?0:jn(d),I=this._zTime<0!=d<0&&(this._initted||!S),N,z,U,E,L,x,M,R,b,F,B,X;if(this!==pn&&C>T&&d>=0&&(C=T),C!==this._tTime||m||I){if(_!==this._time&&S&&(C+=this._time-_,d+=this._time-_),N=C,b=this._start,R=this._ts,x=!R,I&&(S||(_=this._zTime),(d||!u)&&(this._zTime=d)),this._repeat){if(B=this._yoyo,L=S+this._rDelay,this._repeat<-1&&d<0)return this.totalTime(L*100+d,u,m);if(N=jn(C%L),C===T?(E=this._repeat,N=S):(E=~~(C/L),E&&E===C/L&&(N=S,E--),N>S&&(N=S)),F=Rl(this._tTime,L),!_&&this._tTime&&F!==E&&this._tTime-F*L-this._dur<=0&&(F=E),B&&E&1&&(N=S-N,X=1),E!==F&&!this._lock){var $=B&&F&1,Q=$===(B&&E&1);if(E<F&&($=!$),_=$?0:C%S?S:C,this._lock=1,this.render(_||(X?0:jn(E*L)),u,!S)._lock=0,this._tTime=C,!u&&this.parent&&jr(this,"onRepeat"),this.vars.repeatRefresh&&!X&&(this.invalidate()._lock=1),_&&_!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(S=this._dur,T=this._tDur,Q&&(this._lock=2,_=$?S:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!X&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;lp(this,X)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(M=bm(this,jn(_),jn(N)),M&&(C-=N-(N=M._start))),this._tTime=C,this._time=N,this._act=!R,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=d,_=0),!_&&N&&!u&&!E&&(jr(this,"onStart"),this._tTime!==C))return this;if(N>=_&&d>=0)for(z=this._first;z;){if(U=z._next,(z._act||N>=z._start)&&z._ts&&M!==z){if(z.parent!==this)return this.render(d,u,m);if(z.render(z._ts>0?(N-z._start)*z._ts:(z._dirty?z.totalDuration():z._tDur)+(N-z._start)*z._ts,u,m),N!==this._time||!this._ts&&!x){M=0,U&&(C+=this._zTime=-en);break}}z=U}else{z=this._last;for(var ft=d<0?d:N;z;){if(U=z._prev,(z._act||ft<=z._end)&&z._ts&&M!==z){if(z.parent!==this)return this.render(d,u,m);if(z.render(z._ts>0?(ft-z._start)*z._ts:(z._dirty?z.totalDuration():z._tDur)+(ft-z._start)*z._ts,u,m||nr&&(z._initted||z._startAt)),N!==this._time||!this._ts&&!x){M=0,U&&(C+=this._zTime=ft?-en:en);break}}z=U}}if(M&&!u&&(this.pause(),M.render(N>=_?0:-en)._zTime=N>=_?1:-1,this._ts))return this._start=b,du(this),this.render(d,u,m);this._onUpdate&&!u&&jr(this,"onUpdate",!0),(C===T&&this._tTime>=this.totalDuration()||!C&&_)&&(b===this._start||Math.abs(R)!==Math.abs(this._ts))&&(this._lock||((d||!S)&&(C===T&&this._ts>0||!C&&this._ts<0)&&Yo(this,1),!u&&!(d<0&&!_)&&(C||_||!T)&&(jr(this,C===T&&d>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(C<T&&this.timeScale()>0)&&this._prom())))}return this},o.add=function(d,u){var m=this;if(co(u)||(u=ss(this,u,d)),!(d instanceof Mh)){if(rr(d))return d.forEach(function(_){return m.add(_,u)}),this;if(Wn(d))return this.addLabel(d,u);if(Tn(d))d=kn.delayedCall(0,d);else return this}return this!==d?Vs(this,d,u):this},o.getChildren=function(d,u,m,_){d===void 0&&(d=!0),u===void 0&&(u=!0),m===void 0&&(m=!0),_===void 0&&(_=-ns);for(var T=[],S=this._first;S;)S._start>=_&&(S instanceof kn?u&&T.push(S):(m&&T.push(S),d&&T.push.apply(T,S.getChildren(!0,u,m)))),S=S._next;return T},o.getById=function(d){for(var u=this.getChildren(1,1,1),m=u.length;m--;)if(u[m].vars.id===d)return u[m]},o.remove=function(d){return Wn(d)?this.removeLabel(d):Tn(d)?this.killTweensOf(d):(fu(this,d),d===this._recent&&(this._recent=this._last),Ba(this))},o.totalTime=function(d,u){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=jn(Xr.time-(this._ts>0?d/this._ts:(this.totalDuration()-d)/-this._ts))),w.prototype.totalTime.call(this,d,u),this._forcing=0,this):this._tTime},o.addLabel=function(d,u){return this.labels[d]=ss(this,u),this},o.removeLabel=function(d){return delete this.labels[d],this},o.addPause=function(d,u,m){var _=kn.delayedCall(0,u||mh,m);return _.data="isPause",this._hasPause=1,Vs(this,_,ss(this,d))},o.removePause=function(d){var u=this._first;for(d=ss(this,d);u;)u._start===d&&u.data==="isPause"&&Yo(u),u=u._next},o.killTweensOf=function(d,u,m){for(var _=this.getTweensOf(d,m),T=_.length;T--;)$o!==_[T]&&_[T].kill(d,u);return this},o.getTweensOf=function(d,u){for(var m=[],_=os(d),T=this._first,S=co(u),C;T;)T instanceof kn?ym(T._targets,_)&&(S?(!$o||T._initted&&T._ts)&&T.globalTime(0)<=u&&T.globalTime(T.totalDuration())>u:!u||T.isActive())&&m.push(T):(C=T.getTweensOf(_,u)).length&&m.push.apply(m,C),T=T._next;return m},o.tweenTo=function(d,u){u=u||{};var m=this,_=ss(m,d),T=u,S=T.startAt,C=T.onStart,I=T.onStartParams,N=T.immediateRender,z,U=kn.to(m,rs({ease:u.ease||"none",lazy:!1,immediateRender:!1,time:_,overwrite:"auto",duration:u.duration||Math.abs((_-(S&&"time"in S?S.time:m._time))/m.timeScale())||en,onStart:function(){if(m.pause(),!z){var L=u.duration||Math.abs((_-(S&&"time"in S?S.time:m._time))/m.timeScale());U._dur!==L&&Ol(U,L,0,1).render(U._time,!0,!0),z=1}C&&C.apply(U,I||[])}},u));return N?U.render(0):U},o.tweenFromTo=function(d,u,m){return this.tweenTo(u,rs({startAt:{time:ss(this,d)}},m))},o.recent=function(){return this._recent},o.nextLabel=function(d){return d===void 0&&(d=this._time),tp(this,ss(this,d))},o.previousLabel=function(d){return d===void 0&&(d=this._time),tp(this,ss(this,d),1)},o.currentLabel=function(d){return arguments.length?this.seek(d,!0):this.previousLabel(this._time+en)},o.shiftChildren=function(d,u,m){m===void 0&&(m=0);for(var _=this._first,T=this.labels,S;_;)_._start>=m&&(_._start+=d,_._end+=d),_=_._next;if(u)for(S in T)T[S]>=m&&(T[S]+=d);return Ba(this)},o.invalidate=function(d){var u=this._first;for(this._lock=0;u;)u.invalidate(d),u=u._next;return w.prototype.invalidate.call(this,d)},o.clear=function(d){d===void 0&&(d=!0);for(var u=this._first,m;u;)m=u._next,this.remove(u),u=m;return this._dp&&(this._time=this._tTime=this._pTime=0),d&&(this.labels={}),Ba(this)},o.totalDuration=function(d){var u=0,m=this,_=m._last,T=ns,S,C,I;if(arguments.length)return m.timeScale((m._repeat<0?m.duration():m.totalDuration())/(m.reversed()?-d:d));if(m._dirty){for(I=m.parent;_;)S=_._prev,_._dirty&&_.totalDuration(),C=_._start,C>T&&m._sort&&_._ts&&!m._lock?(m._lock=1,Vs(m,_,C-_._delay,1)._lock=0):T=C,C<0&&_._ts&&(u-=C,(!I&&!m._dp||I&&I.smoothChildTiming)&&(m._start+=C/m._ts,m._time-=C,m._tTime-=C),m.shiftChildren(-C,!1,-1/0),T=0),_._end>u&&_._ts&&(u=_._end),_=S;Ol(m,m===pn&&m._time>u?m._time:u,1,1),m._dirty=0}return m._tDur},l.updateRoot=function(d){if(pn._ts&&(Bf(pn,pu(d,pn)),Df=Xr.frame),Xr.frame>=zf){zf+=Hr.autoSleep||120;var u=pn._first;if((!u||!u._ts)&&Hr.autoSleep&&Xr._listeners.length<2){for(;u&&!u._ts;)u=u._next;u||Xr.sleep()}}},l}(Mh);rs(gr.prototype,{_lock:0,_hasPause:0,_forcing:0});var Hm=function(l,o,p,d,u,m,_){var T=new Cr(this._pt,l,o,0,1,gp,null,u),S=0,C=0,I,N,z,U,E,L,x,M;for(T.b=p,T.e=d,p+="",d+="",(x=~d.indexOf("random("))&&(d=yh(d)),m&&(M=[p,d],m(M,l,o),p=M[0],d=M[1]),N=p.match(nc)||[];I=nc.exec(d);)U=I[0],E=d.substring(S,I.index),z?z=(z+1)%5:E.substr(-5)==="rgba("&&(z=1),U!==N[C++]&&(L=parseFloat(N[C-1])||0,T._pt={_next:T._pt,p:E||C===1?E:",",s:L,c:U.charAt(1)==="="?Ll(L,U)-L:parseFloat(U)-L,m:z&&z<4?Math.round:0},S=nc.lastIndex);return T.c=S<d.length?d.substring(S,d.length):"",T.fp=_,(Pf.test(d)||x)&&(T.e=0),this._pt=T,T},xc=function(l,o,p,d,u,m,_,T,S,C){Tn(d)&&(d=d(u||0,l,m));var I=l[o],N=p!=="get"?p:Tn(I)?S?l[o.indexOf("set")||!Tn(l["get"+o.substr(3)])?o:"get"+o.substr(3)](S):l[o]():I,z=Tn(I)?S?qm:dp:Mc,U;if(Wn(d)&&(~d.indexOf("random(")&&(d=yh(d)),d.charAt(1)==="="&&(U=Ll(N,d)+(sr(N)||0),(U||U===0)&&(d=U))),!C||N!==d||wc)return!isNaN(N*d)&&d!==""?(U=new Cr(this._pt,l,o,+N||0,d-(N||0),typeof I=="boolean"?Zm:mp,0,z),S&&(U.fp=S),_&&U.modifier(_,this,l),this._pt=U):(!I&&!(o in l)&&oc(o,d),Hm.call(this,l,o,N,d,z,T||Hr.stringFilter,S))},Vm=function(l,o,p,d,u){if(Tn(l)&&(l=Sh(l,u,o,p,d)),!Gs(l)||l.style&&l.nodeType||rr(l)||Af(l))return Wn(l)?Sh(l,u,o,p,d):l;var m={},_;for(_ in l)m[_]=Sh(l[_],u,o,p,d);return m},cp=function(l,o,p,d,u,m){var _,T,S,C;if(Wr[l]&&(_=new Wr[l]).init(u,_.rawVars?o[l]:Vm(o[l],d,u,m,p),p,d,m)!==!1&&(p._pt=T=new Cr(p._pt,u,l,0,1,_.render,_,0,_.priority),p!==Il))for(S=p._ptLookup[p._targets.indexOf(u)],C=_._props.length;C--;)S[_._props[C]]=T;return _},$o,wc,Tc=function w(l,o,p){var d=l.vars,u=d.ease,m=d.startAt,_=d.immediateRender,T=d.lazy,S=d.onUpdate,C=d.runBackwards,I=d.yoyoEase,N=d.keyframes,z=d.autoRevert,U=l._dur,E=l._startAt,L=l._targets,x=l.parent,M=x&&x.data==="nested"?x.vars.targets:L,R=l._overwrite==="auto"&&!Ku,b=l.timeline,F,B,X,$,Q,ft,Ct,it,yt,G,Lt,Et,Pt;if(b&&(!N||!u)&&(u="none"),l._ease=Na(u,Cl.ease),l._yEase=I?ap(Na(I===!0?u:I,Cl.ease)):0,I&&l._yoyo&&!l._repeat&&(I=l._yEase,l._yEase=l._ease,l._ease=I),l._from=!b&&!!d.runBackwards,!b||N&&!d.stagger){if(it=L[0]?za(L[0]).harness:0,Et=it&&d[it.prop],F=cu(d,ac),E&&(E._zTime<0&&E.progress(1),o<0&&C&&_&&!z?E.render(-1,!0):E.revert(C&&U?lu:vm),E._lazy=0),m){if(Yo(l._startAt=kn.set(L,rs({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!E&&br(T),startAt:null,delay:0,onUpdate:S&&function(){return jr(l,"onUpdate")},stagger:0},m))),l._startAt._dp=0,l._startAt._sat=l,o<0&&(nr||!_&&!z)&&l._startAt.revert(lu),_&&U&&o<=0&&p<=0){o&&(l._zTime=o);return}}else if(C&&U&&!E){if(o&&(_=!1),X=rs({overwrite:!1,data:"isFromStart",lazy:_&&!E&&br(T),immediateRender:_,stagger:0,parent:x},F),Et&&(X[it.prop]=Et),Yo(l._startAt=kn.set(L,X)),l._startAt._dp=0,l._startAt._sat=l,o<0&&(nr?l._startAt.revert(lu):l._startAt.render(-1,!0)),l._zTime=o,!_)w(l._startAt,en,en);else if(!o)return}for(l._pt=l._ptCache=0,T=U&&br(T)||T&&!U,B=0;B<L.length;B++){if(Q=L[B],Ct=Q._gsap||cc(L)[B]._gsap,l._ptLookup[B]=G={},lc[Ct.id]&&qo.length&&uu(),Lt=M===L?B:M.indexOf(Q),it&&(yt=new it).init(Q,Et||F,l,Lt,M)!==!1&&(l._pt=$=new Cr(l._pt,Q,yt.name,0,1,yt.render,yt,0,yt.priority),yt._props.forEach(function(ce){G[ce]=$}),yt.priority&&(ft=1)),!it||Et)for(X in F)Wr[X]&&(yt=cp(X,F,l,Lt,Q,M))?yt.priority&&(ft=1):G[X]=$=xc.call(l,Q,X,"get",F[X],Lt,M,0,d.stringFilter);l._op&&l._op[B]&&l.kill(Q,l._op[B]),R&&l._pt&&($o=l,pn.killTweensOf(Q,G,l.globalTime(o)),Pt=!l.parent,$o=0),l._pt&&T&&(lc[Ct.id]=1)}ft&&vp(l),l._onInit&&l._onInit(l)}l._onUpdate=S,l._initted=(!l._op||l._pt)&&!Pt,N&&o<=0&&b.render(ns,!0,!0)},Wm=function(l,o,p,d,u,m,_,T){var S=(l._pt&&l._ptCache||(l._ptCache={}))[o],C,I,N,z;if(!S)for(S=l._ptCache[o]=[],N=l._ptLookup,z=l._targets.length;z--;){if(C=N[z][o],C&&C.d&&C.d._pt)for(C=C.d._pt;C&&C.p!==o&&C.fp!==o;)C=C._next;if(!C)return wc=1,l.vars[o]="+=0",Tc(l,_),wc=0,T?dh(o+" not eligible for reset"):1;S.push(C)}for(z=S.length;z--;)I=S[z],C=I._pt||I,C.s=(d||d===0)&&!u?d:C.s+(d||0)+m*C.c,C.c=p-C.s,I.e&&(I.e=Rn(p)+sr(I.e)),I.b&&(I.b=C.s+sr(I.b))},jm=function(l,o){var p=l[0]?za(l[0]).harness:0,d=p&&p.aliases,u,m,_,T;if(!d)return o;u=ka({},o);for(m in d)if(m in u)for(T=d[m].split(","),_=T.length;_--;)u[T[_]]=u[m];return u},Xm=function(l,o,p,d){var u=o.ease||d||"power1.inOut",m,_;if(rr(o))_=p[l]||(p[l]=[]),o.forEach(function(T,S){return _.push({t:S/(o.length-1)*100,v:T,e:u})});else for(m in o)_=p[m]||(p[m]=[]),m==="ease"||_.push({t:parseFloat(l),v:o[m],e:u})},Sh=function(l,o,p,d,u){return Tn(l)?l.call(o,p,d,u):Wn(l)&&~l.indexOf("random(")?yh(l):l},fp=uc+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",pp={};Ar(fp+",id,stagger,delay,duration,paused,scrollTrigger",function(w){return pp[w]=1});var kn=function(w){Ef(l,w);function l(p,d,u,m){var _;typeof d=="number"&&(u.duration=d,d=u,u=null),_=w.call(this,m?d:gh(d))||this;var T=_.vars,S=T.duration,C=T.delay,I=T.immediateRender,N=T.stagger,z=T.overwrite,U=T.keyframes,E=T.defaults,L=T.scrollTrigger,x=T.yoyoEase,M=d.parent||pn,R=(rr(p)||Af(p)?co(p[0]):"length"in d)?[p]:os(p),b,F,B,X,$,Q,ft,Ct;if(_._targets=R.length?cc(R):dh("GSAP target "+p+" not found. https://gsap.com",!Hr.nullTargetWarn)||[],_._ptLookup=[],_._overwrite=z,U||N||ou(S)||ou(C)){if(d=_.vars,b=_.timeline=new gr({data:"nested",defaults:E||{},targets:M&&M.data==="nested"?M.vars.targets:R}),b.kill(),b.parent=b._dp=uo(_),b._start=0,N||ou(S)||ou(C)){if(X=R.length,ft=N&&Zf(N),Gs(N))for($ in N)~fp.indexOf($)&&(Ct||(Ct={}),Ct[$]=N[$]);for(F=0;F<X;F++)B=cu(d,pp),B.stagger=0,x&&(B.yoyoEase=x),Ct&&ka(B,Ct),Q=R[F],B.duration=+Sh(S,uo(_),F,Q,R),B.delay=(+Sh(C,uo(_),F,Q,R)||0)-_._delay,!N&&X===1&&B.delay&&(_._delay=C=B.delay,_._start+=C,B.delay=0),b.to(Q,B,ft?ft(F,Q,R):0),b._ease=Ri.none;b.duration()?S=C=0:_.timeline=0}else if(U){gh(rs(b.vars.defaults,{ease:"none"})),b._ease=Na(U.ease||d.ease||"none");var it=0,yt,G,Lt;if(rr(U))U.forEach(function(Et){return b.to(R,Et,">")}),b.duration();else{B={};for($ in U)$==="ease"||$==="easeEach"||Xm($,U[$],B,U.easeEach);for($ in B)for(yt=B[$].sort(function(Et,Pt){return Et.t-Pt.t}),it=0,F=0;F<yt.length;F++)G=yt[F],Lt={ease:G.e,duration:(G.t-(F?yt[F-1].t:0))/100*S},Lt[$]=G.v,b.to(R,Lt,it),it+=Lt.duration;b.duration()<S&&b.to({},{duration:S-b.duration()})}}S||_.duration(S=b.duration())}else _.timeline=0;return z===!0&&!Ku&&($o=uo(_),pn.killTweensOf(R),$o=0),Vs(M,uo(_),u),d.reversed&&_.reverse(),d.paused&&_.paused(!0),(I||!S&&!U&&_._start===jn(M._time)&&br(I)&&Mm(uo(_))&&M.data!=="nested")&&(_._tTime=-en,_.render(Math.max(0,-C)||0)),L&&Wf(uo(_),L),_}var o=l.prototype;return o.render=function(d,u,m){var _=this._time,T=this._tDur,S=this._dur,C=d<0,I=d>T-en&&!C?T:d<en?0:d,N,z,U,E,L,x,M,R,b;if(!S)Em(this,d,u,m);else if(I!==this._tTime||!d||m||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==C){if(N=I,R=this.timeline,this._repeat){if(E=S+this._rDelay,this._repeat<-1&&C)return this.totalTime(E*100+d,u,m);if(N=jn(I%E),I===T?(U=this._repeat,N=S):(U=~~(I/E),U&&U===jn(I/E)&&(N=S,U--),N>S&&(N=S)),x=this._yoyo&&U&1,x&&(b=this._yEase,N=S-N),L=Rl(this._tTime,E),N===_&&!m&&this._initted&&U===L)return this._tTime=I,this;U!==L&&(R&&this._yEase&&lp(R,x),this.vars.repeatRefresh&&!x&&!this._lock&&this._time!==E&&this._initted&&(this._lock=m=1,this.render(jn(E*U),!0).invalidate()._lock=0))}if(!this._initted){if(jf(this,C?d:N,m,u,I))return this._tTime=0,this;if(_!==this._time&&!(m&&this.vars.repeatRefresh&&U!==L))return this;if(S!==this._dur)return this.render(d,u,m)}if(this._tTime=I,this._time=N,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=M=(b||this._ease)(N/S),this._from&&(this.ratio=M=1-M),N&&!_&&!u&&!U&&(jr(this,"onStart"),this._tTime!==I))return this;for(z=this._pt;z;)z.r(M,z.d),z=z._next;R&&R.render(d<0?d:R._dur*R._ease(N/this._dur),u,m)||this._startAt&&(this._zTime=d),this._onUpdate&&!u&&(C&&fc(this,d,u,m),jr(this,"onUpdate")),this._repeat&&U!==L&&this.vars.onRepeat&&!u&&this.parent&&jr(this,"onRepeat"),(I===this._tDur||!I)&&this._tTime===I&&(C&&!this._onUpdate&&fc(this,d,!0,!0),(d||!S)&&(I===this._tDur&&this._ts>0||!I&&this._ts<0)&&Yo(this,1),!u&&!(C&&!_)&&(I||_||x)&&(jr(this,I===T?"onComplete":"onReverseComplete",!0),this._prom&&!(I<T&&this.timeScale()>0)&&this._prom()))}return this},o.targets=function(){return this._targets},o.invalidate=function(d){return(!d||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(d),w.prototype.invalidate.call(this,d)},o.resetTo=function(d,u,m,_,T){Th||Xr.wake(),this._ts||this.play();var S=Math.min(this._dur,(this._dp._time-this._start)*this._ts),C;return this._initted||Tc(this,S),C=this._ease(S/this._dur),Wm(this,d,u,m,_,C,S,T)?this.resetTo(d,u,m,_,1):(mu(this,0),this.parent||Gf(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},o.kill=function(d,u){if(u===void 0&&(u="all"),!d&&(!u||u==="all"))return this._lazy=this._pt=0,this.parent?xh(this):this;if(this.timeline){var m=this.timeline.totalDuration();return this.timeline.killTweensOf(d,u,$o&&$o.vars.overwrite!==!0)._first||xh(this),this.parent&&m!==this.timeline.totalDuration()&&Ol(this,this._dur*this.timeline._tDur/m,0,1),this}var _=this._targets,T=d?os(d):_,S=this._ptLookup,C=this._pt,I,N,z,U,E,L,x;if((!u||u==="all")&&wm(_,T))return u==="all"&&(this._pt=0),xh(this);for(I=this._op=this._op||[],u!=="all"&&(Wn(u)&&(E={},Ar(u,function(M){return E[M]=1}),u=E),u=jm(_,u)),x=_.length;x--;)if(~T.indexOf(_[x])){N=S[x],u==="all"?(I[x]=u,U=N,z={}):(z=I[x]=I[x]||{},U=u);for(E in U)L=N&&N[E],L&&((!("kill"in L.d)||L.d.kill(E)===!0)&&fu(this,L,"_pt"),delete N[E]),z!=="all"&&(z[E]=1)}return this._initted&&!this._pt&&C&&xh(this),this},l.to=function(d,u){return new l(d,u,arguments[2])},l.from=function(d,u){return vh(1,arguments)},l.delayedCall=function(d,u,m,_){return new l(u,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:d,onComplete:u,onReverseComplete:u,onCompleteParams:m,onReverseCompleteParams:m,callbackScope:_})},l.fromTo=function(d,u,m){return vh(2,arguments)},l.set=function(d,u){return u.duration=0,u.repeatDelay||(u.repeat=0),new l(d,u)},l.killTweensOf=function(d,u,m){return pn.killTweensOf(d,u,m)},l}(Mh);rs(kn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ar("staggerTo,staggerFrom,staggerFromTo",function(w){kn[w]=function(){var l=new gr,o=dc.call(arguments,0);return o.splice(w==="staggerFromTo"?5:4,0,0),l[w].apply(l,o)}});var Mc=function(l,o,p){return l[o]=p},dp=function(l,o,p){return l[o](p)},qm=function(l,o,p,d){return l[o](d.fp,p)},Ym=function(l,o,p){return l.setAttribute(o,p)},Sc=function(l,o){return Tn(l[o])?dp:tc(l[o])&&l.setAttribute?Ym:Mc},mp=function(l,o){return o.set(o.t,o.p,Math.round((o.s+o.c*l)*1e6)/1e6,o)},Zm=function(l,o){return o.set(o.t,o.p,!!(o.s+o.c*l),o)},gp=function(l,o){var p=o._pt,d="";if(!l&&o.b)d=o.b;else if(l===1&&o.e)d=o.e;else{for(;p;)d=p.p+(p.m?p.m(p.s+p.c*l):Math.round((p.s+p.c*l)*1e4)/1e4)+d,p=p._next;d+=o.c}o.set(o.t,o.p,d,o)},Ec=function(l,o){for(var p=o._pt;p;)p.r(l,p.d),p=p._next},Jm=function(l,o,p,d){for(var u=this._pt,m;u;)m=u._next,u.p===d&&u.modifier(l,o,p),u=m},$m=function(l){for(var o=this._pt,p,d;o;)d=o._next,o.p===l&&!o.op||o.op===l?fu(this,o,"_pt"):o.dep||(p=1),o=d;return!p},Km=function(l,o,p,d){d.mSet(l,o,d.m.call(d.tween,p,d.mt),d)},vp=function(l){for(var o=l._pt,p,d,u,m;o;){for(p=o._next,d=u;d&&d.pr>o.pr;)d=d._next;(o._prev=d?d._prev:m)?o._prev._next=o:u=o,(o._next=d)?d._prev=o:m=o,o=p}l._pt=u},Cr=function(){function w(o,p,d,u,m,_,T,S,C){this.t=p,this.s=u,this.c=m,this.p=d,this.r=_||mp,this.d=T||this,this.set=S||Mc,this.pr=C||0,this._next=o,o&&(o._prev=this)}var l=w.prototype;return l.modifier=function(p,d,u){this.mSet=this.mSet||this.set,this.set=Km,this.m=p,this.mt=u,this.tween=d},w}();Ar(uc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(w){return ac[w]=1}),Vr.TweenMax=Vr.TweenLite=kn,Vr.TimelineLite=Vr.TimelineMax=gr,pn=new gr({sortChildren:!1,defaults:Cl,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Hr.stringFilter=op;var Ua=[],gu={},Qm=[],_p=0,tg=0,bc=function(l){return(gu[l]||Qm).map(function(o){return o()})},Ac=function(){var l=Date.now(),o=[];l-_p>2&&(bc("matchMediaInit"),Ua.forEach(function(p){var d=p.queries,u=p.conditions,m,_,T,S;for(_ in d)m=Hs.matchMedia(d[_]).matches,m&&(T=1),m!==u[_]&&(u[_]=m,S=1);S&&(p.revert(),T&&o.push(p))}),bc("matchMediaRevert"),o.forEach(function(p){return p.onMatch(p,function(d){return p.add(null,d)})}),_p=l,bc("matchMedia"))},yp=function(){function w(o,p){this.selector=p&&mc(p),this.data=[],this._r=[],this.isReverted=!1,this.id=tg++,o&&this.add(o)}var l=w.prototype;return l.add=function(p,d,u){Tn(p)&&(u=d,d=p,p=Tn);var m=this,_=function(){var S=hn,C=m.selector,I;return S&&S!==m&&S.data.push(m),u&&(m.selector=mc(u)),hn=m,I=d.apply(m,arguments),Tn(I)&&m._r.push(I),hn=S,m.selector=C,m.isReverted=!1,I};return m.last=_,p===Tn?_(m,function(T){return m.add(null,T)}):p?m[p]=_:_},l.ignore=function(p){var d=hn;hn=null,p(this),hn=d},l.getTweens=function(){var p=[];return this.data.forEach(function(d){return d instanceof w?p.push.apply(p,d.getTweens()):d instanceof kn&&!(d.parent&&d.parent.data==="nested")&&p.push(d)}),p},l.clear=function(){this._r.length=this.data.length=0},l.kill=function(p,d){var u=this;if(p?function(){for(var _=u.getTweens(),T=u.data.length,S;T--;)S=u.data[T],S.data==="isFlip"&&(S.revert(),S.getChildren(!0,!0,!1).forEach(function(C){return _.splice(_.indexOf(C),1)}));for(_.map(function(C){return{g:C._dur||C._delay||C._sat&&!C._sat.vars.immediateRender?C.globalTime(0):-1/0,t:C}}).sort(function(C,I){return I.g-C.g||-1/0}).forEach(function(C){return C.t.revert(p)}),T=u.data.length;T--;)S=u.data[T],S instanceof gr?S.data!=="nested"&&(S.scrollTrigger&&S.scrollTrigger.revert(),S.kill()):!(S instanceof kn)&&S.revert&&S.revert(p);u._r.forEach(function(C){return C(p,u)}),u.isReverted=!0}():this.data.forEach(function(_){return _.kill&&_.kill()}),this.clear(),d)for(var m=Ua.length;m--;)Ua[m].id===this.id&&Ua.splice(m,1)},l.revert=function(p){this.kill(p||{})},w}(),eg=function(){function w(o){this.contexts=[],this.scope=o,hn&&hn.data.push(this)}var l=w.prototype;return l.add=function(p,d,u){Gs(p)||(p={matches:p});var m=new yp(0,u||this.scope),_=m.conditions={},T,S,C;hn&&!m.selector&&(m.selector=hn.selector),this.contexts.push(m),d=m.add("onMatch",d),m.queries=p;for(S in p)S==="all"?C=1:(T=Hs.matchMedia(p[S]),T&&(Ua.indexOf(m)<0&&Ua.push(m),(_[S]=T.matches)&&(C=1),T.addListener?T.addListener(Ac):T.addEventListener("change",Ac)));return C&&d(m,function(I){return m.add(null,I)}),this},l.revert=function(p){this.kill(p||{})},l.kill=function(p){this.contexts.forEach(function(d){return d.kill(p,!0)})},w}(),vu={registerPlugin:function(){for(var l=arguments.length,o=new Array(l),p=0;p<l;p++)o[p]=arguments[p];o.forEach(function(d){return ip(d)})},timeline:function(l){return new gr(l)},getTweensOf:function(l,o){return pn.getTweensOf(l,o)},getProperty:function(l,o,p,d){Wn(l)&&(l=os(l)[0]);var u=za(l||{}).get,m=p?Ff:Nf;return p==="native"&&(p=""),l&&(o?m((Wr[o]&&Wr[o].get||u)(l,o,p,d)):function(_,T,S){return m((Wr[_]&&Wr[_].get||u)(l,_,T,S))})},quickSetter:function(l,o,p){if(l=os(l),l.length>1){var d=l.map(function(C){return Pr.quickSetter(C,o,p)}),u=d.length;return function(C){for(var I=u;I--;)d[I](C)}}l=l[0]||{};var m=Wr[o],_=za(l),T=_.harness&&(_.harness.aliases||{})[o]||o,S=m?function(C){var I=new m;Il._pt=0,I.init(l,p?C+p:C,Il,0,[l]),I.render(1,I),Il._pt&&Ec(1,Il)}:_.set(l,T);return m?S:function(C){return S(l,T,p?C+p:C,_,1)}},quickTo:function(l,o,p){var d,u=Pr.to(l,ka((d={},d[o]="+=0.1",d.paused=!0,d),p||{})),m=function(T,S,C){return u.resetTo(o,T,S,C)};return m.tween=u,m},isTweening:function(l){return pn.getTweensOf(l,!0).length>0},defaults:function(l){return l&&l.ease&&(l.ease=Na(l.ease,Cl.ease)),Uf(Cl,l||{})},config:function(l){return Uf(Hr,l||{})},registerEffect:function(l){var o=l.name,p=l.effect,d=l.plugins,u=l.defaults,m=l.extendTimeline;(d||"").split(",").forEach(function(_){return _&&!Wr[_]&&!Vr[_]&&dh(o+" effect requires "+_+" plugin.")}),hc[o]=function(_,T,S){return p(os(_),rs(T||{},u),S)},m&&(gr.prototype[o]=function(_,T,S){return this.add(hc[o](_,Gs(T)?T:(S=T)&&{},this),S)})},registerEase:function(l,o){Ri[l]=Na(o)},parseEase:function(l,o){return arguments.length?Na(l,o):Ri},getById:function(l){return pn.getById(l)},exportRoot:function(l,o){l===void 0&&(l={});var p=new gr(l),d,u;for(p.smoothChildTiming=br(l.smoothChildTiming),pn.remove(p),p._dp=0,p._time=p._tTime=pn._time,d=pn._first;d;)u=d._next,(o||!(!d._dur&&d instanceof kn&&d.vars.onComplete===d._targets[0]))&&Vs(p,d,d._start-d._delay),d=u;return Vs(pn,p,0),p},context:function(l,o){return l?new yp(l,o):hn},matchMedia:function(l){return new eg(l)},matchMediaRefresh:function(){return Ua.forEach(function(l){var o=l.conditions,p,d;for(d in o)o[d]&&(o[d]=!1,p=1);p&&l.revert()})||Ac()},addEventListener:function(l,o){var p=gu[l]||(gu[l]=[]);~p.indexOf(o)||p.push(o)},removeEventListener:function(l,o){var p=gu[l],d=p&&p.indexOf(o);d>=0&&p.splice(d,1)},utils:{wrap:Im,wrapYoyo:Dm,distribute:Zf,random:$f,snap:Jf,normalize:Om,getUnit:sr,clamp:Cm,splitColor:np,toArray:os,selector:mc,mapRange:Qf,pipe:Lm,unitize:Rm,interpolate:zm,shuffle:Yf},install:Of,effects:hc,ticker:Xr,updateRoot:gr.updateRoot,plugins:Wr,globalTimeline:pn,core:{PropTween:Cr,globals:If,Tween:kn,Timeline:gr,Animation:Mh,getCache:za,_removeLinkedListItem:fu,reverting:function(){return nr},context:function(l){return l&&hn&&(hn.data.push(l),l._ctx=hn),hn},suppressOverwrites:function(l){return Ku=l}}};Ar("to,from,fromTo,delayedCall,set,killTweensOf",function(w){return vu[w]=kn[w]}),Xr.add(gr.updateRoot),Il=vu.to({},{duration:0});var ig=function(l,o){for(var p=l._pt;p&&p.p!==o&&p.op!==o&&p.fp!==o;)p=p._next;return p},ng=function(l,o){var p=l._targets,d,u,m;for(d in o)for(u=p.length;u--;)m=l._ptLookup[u][d],m&&(m=m.d)&&(m._pt&&(m=ig(m,d)),m&&m.modifier&&m.modifier(o[d],l,p[u],d))},Cc=function(l,o){return{name:l,rawVars:1,init:function(d,u,m){m._onInit=function(_){var T,S;if(Wn(u)&&(T={},Ar(u,function(C){return T[C]=1}),u=T),o){T={};for(S in u)T[S]=o(u[S]);u=T}ng(_,u)}}}},Pr=vu.registerPlugin({name:"attr",init:function(l,o,p,d,u){var m,_,T;this.tween=p;for(m in o)T=l.getAttribute(m)||"",_=this.add(l,"setAttribute",(T||0)+"",o[m],d,u,0,0,m),_.op=m,_.b=T,this._props.push(m)},render:function(l,o){for(var p=o._pt;p;)nr?p.set(p.t,p.p,p.b,p):p.r(l,p.d),p=p._next}},{name:"endArray",init:function(l,o){for(var p=o.length;p--;)this.add(l,p,l[p]||0,o[p],0,0,0,0,0,1)}},Cc("roundProps",gc),Cc("modifiers"),Cc("snap",Jf))||vu;kn.version=gr.version=Pr.version="3.12.5",Rf=1,ec()&&Dl(),Ri.Power0,Ri.Power1,Ri.Power2,Ri.Power3,Ri.Power4,Ri.Linear,Ri.Quad,Ri.Cubic,Ri.Quart,Ri.Quint,Ri.Strong,Ri.Elastic,Ri.Back,Ri.SteppedEase,Ri.Bounce,Ri.Sine,Ri.Expo,Ri.Circ;/*!
|
|
2693
|
+
* CSSPlugin 3.12.5
|
|
2694
|
+
* https://gsap.com
|
|
2695
|
+
*
|
|
2696
|
+
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|
2697
|
+
* Subject to the terms at https://gsap.com/standard-license or for
|
|
2698
|
+
* Club GSAP members, the agreement issued with that membership.
|
|
2699
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
2700
|
+
*/var xp,Ko,zl,Pc,Ga,wp,Lc,rg=function(){return typeof window<"u"},fo={},Ha=180/Math.PI,kl=Math.PI/180,Bl=Math.atan2,Tp=1e8,Rc=/([A-Z])/g,sg=/(left|right|width|margin|padding|x)/i,og=/[\s,\(]\S/,Ws={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Oc=function(l,o){return o.set(o.t,o.p,Math.round((o.s+o.c*l)*1e4)/1e4+o.u,o)},ag=function(l,o){return o.set(o.t,o.p,l===1?o.e:Math.round((o.s+o.c*l)*1e4)/1e4+o.u,o)},lg=function(l,o){return o.set(o.t,o.p,l?Math.round((o.s+o.c*l)*1e4)/1e4+o.u:o.b,o)},hg=function(l,o){var p=o.s+o.c*l;o.set(o.t,o.p,~~(p+(p<0?-.5:.5))+o.u,o)},Mp=function(l,o){return o.set(o.t,o.p,l?o.e:o.b,o)},Sp=function(l,o){return o.set(o.t,o.p,l!==1?o.b:o.e,o)},ug=function(l,o,p){return l.style[o]=p},cg=function(l,o,p){return l.style.setProperty(o,p)},fg=function(l,o,p){return l._gsap[o]=p},pg=function(l,o,p){return l._gsap.scaleX=l._gsap.scaleY=p},dg=function(l,o,p,d,u){var m=l._gsap;m.scaleX=m.scaleY=p,m.renderTransform(u,m)},mg=function(l,o,p,d,u){var m=l._gsap;m[o]=p,m.renderTransform(u,m)},dn="transform",Lr=dn+"Origin",gg=function w(l,o){var p=this,d=this.target,u=d.style,m=d._gsap;if(l in fo&&u){if(this.tfm=this.tfm||{},l!=="transform")l=Ws[l]||l,~l.indexOf(",")?l.split(",").forEach(function(_){return p.tfm[_]=po(d,_)}):this.tfm[l]=m.x?m[l]:po(d,l),l===Lr&&(this.tfm.zOrigin=m.zOrigin);else return Ws.transform.split(",").forEach(function(_){return w.call(p,_,o)});if(this.props.indexOf(dn)>=0)return;m.svg&&(this.svgo=d.getAttribute("data-svg-origin"),this.props.push(Lr,o,"")),l=dn}(u||o)&&this.props.push(l,o,u[l])},Ep=function(l){l.translate&&(l.removeProperty("translate"),l.removeProperty("scale"),l.removeProperty("rotate"))},vg=function(){var l=this.props,o=this.target,p=o.style,d=o._gsap,u,m;for(u=0;u<l.length;u+=3)l[u+1]?o[l[u]]=l[u+2]:l[u+2]?p[l[u]]=l[u+2]:p.removeProperty(l[u].substr(0,2)==="--"?l[u]:l[u].replace(Rc,"-$1").toLowerCase());if(this.tfm){for(m in this.tfm)d[m]=this.tfm[m];d.svg&&(d.renderTransform(),o.setAttribute("data-svg-origin",this.svgo||"")),u=Lc(),(!u||!u.isStart)&&!p[dn]&&(Ep(p),d.zOrigin&&p[Lr]&&(p[Lr]+=" "+d.zOrigin+"px",d.zOrigin=0,d.renderTransform()),d.uncache=1)}},bp=function(l,o){var p={target:l,props:[],revert:vg,save:gg};return l._gsap||Pr.core.getCache(l),o&&o.split(",").forEach(function(d){return p.save(d)}),p},Ap,Ic=function(l,o){var p=Ko.createElementNS?Ko.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),l):Ko.createElement(l);return p&&p.style?p:Ko.createElement(l)},js=function w(l,o,p){var d=getComputedStyle(l);return d[o]||d.getPropertyValue(o.replace(Rc,"-$1").toLowerCase())||d.getPropertyValue(o)||!p&&w(l,Nl(o)||o,1)||""},Cp="O,Moz,ms,Ms,Webkit".split(","),Nl=function(l,o,p){var d=o||Ga,u=d.style,m=5;if(l in u&&!p)return l;for(l=l.charAt(0).toUpperCase()+l.substr(1);m--&&!(Cp[m]+l in u););return m<0?null:(m===3?"ms":m>=0?Cp[m]:"")+l},Dc=function(){rg()&&window.document&&(xp=window,Ko=xp.document,zl=Ko.documentElement,Ga=Ic("div")||{style:{}},Ic("div"),dn=Nl(dn),Lr=dn+"Origin",Ga.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ap=!!Nl("perspective"),Lc=Pr.core.reverting,Pc=1)},zc=function w(l){var o=Ic("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),p=this.parentNode,d=this.nextSibling,u=this.style.cssText,m;if(zl.appendChild(o),o.appendChild(this),this.style.display="block",l)try{m=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=w}catch{}else this._gsapBBox&&(m=this._gsapBBox());return p&&(d?p.insertBefore(this,d):p.appendChild(this)),zl.removeChild(o),this.style.cssText=u,m},Pp=function(l,o){for(var p=o.length;p--;)if(l.hasAttribute(o[p]))return l.getAttribute(o[p])},Lp=function(l){var o;try{o=l.getBBox()}catch{o=zc.call(l,!0)}return o&&(o.width||o.height)||l.getBBox===zc||(o=zc.call(l,!0)),o&&!o.width&&!o.x&&!o.y?{x:+Pp(l,["x","cx","x1"])||0,y:+Pp(l,["y","cy","y1"])||0,width:0,height:0}:o},Rp=function(l){return!!(l.getCTM&&(!l.parentNode||l.ownerSVGElement)&&Lp(l))},Va=function(l,o){if(o){var p=l.style,d;o in fo&&o!==Lr&&(o=dn),p.removeProperty?(d=o.substr(0,2),(d==="ms"||o.substr(0,6)==="webkit")&&(o="-"+o),p.removeProperty(d==="--"?o:o.replace(Rc,"-$1").toLowerCase())):p.removeAttribute(o)}},Qo=function(l,o,p,d,u,m){var _=new Cr(l._pt,o,p,0,1,m?Sp:Mp);return l._pt=_,_.b=d,_.e=u,l._props.push(p),_},Op={deg:1,rad:1,turn:1},_g={grid:1,flex:1},ta=function w(l,o,p,d){var u=parseFloat(p)||0,m=(p+"").trim().substr((u+"").length)||"px",_=Ga.style,T=sg.test(o),S=l.tagName.toLowerCase()==="svg",C=(S?"client":"offset")+(T?"Width":"Height"),I=100,N=d==="px",z=d==="%",U,E,L,x;if(d===m||!u||Op[d]||Op[m])return u;if(m!=="px"&&!N&&(u=w(l,o,p,"px")),x=l.getCTM&&Rp(l),(z||m==="%")&&(fo[o]||~o.indexOf("adius")))return U=x?l.getBBox()[T?"width":"height"]:l[C],Rn(z?u/U*I:u/100*U);if(_[T?"width":"height"]=I+(N?m:d),E=~o.indexOf("adius")||d==="em"&&l.appendChild&&!S?l:l.parentNode,x&&(E=(l.ownerSVGElement||{}).parentNode),(!E||E===Ko||!E.appendChild)&&(E=Ko.body),L=E._gsap,L&&z&&L.width&&T&&L.time===Xr.time&&!L.uncache)return Rn(u/L.width*I);if(z&&(o==="height"||o==="width")){var M=l.style[o];l.style[o]=I+d,U=l[C],M?l.style[o]=M:Va(l,o)}else(z||m==="%")&&!_g[js(E,"display")]&&(_.position=js(l,"position")),E===l&&(_.position="static"),E.appendChild(Ga),U=Ga[C],E.removeChild(Ga),_.position="absolute";return T&&z&&(L=za(E),L.time=Xr.time,L.width=E[C]),Rn(N?U*u/I:U&&u?I/U*u:0)},po=function(l,o,p,d){var u;return Pc||Dc(),o in Ws&&o!=="transform"&&(o=Ws[o],~o.indexOf(",")&&(o=o.split(",")[0])),fo[o]&&o!=="transform"?(u=bh(l,d),u=o!=="transformOrigin"?u[o]:u.svg?u.origin:yu(js(l,Lr))+" "+u.zOrigin+"px"):(u=l.style[o],(!u||u==="auto"||d||~(u+"").indexOf("calc("))&&(u=_u[o]&&_u[o](l,o,p)||js(l,o)||kf(l,o)||(o==="opacity"?1:0))),p&&!~(u+"").trim().indexOf(" ")?ta(l,o,u,p)+p:u},yg=function(l,o,p,d){if(!p||p==="none"){var u=Nl(o,l,1),m=u&&js(l,u,1);m&&m!==p?(o=u,p=m):o==="borderColor"&&(p=js(l,"borderTopColor"))}var _=new Cr(this._pt,l.style,o,0,1,gp),T=0,S=0,C,I,N,z,U,E,L,x,M,R,b,F;if(_.b=p,_.e=d,p+="",d+="",d==="auto"&&(E=l.style[o],l.style[o]=d,d=js(l,o)||d,E?l.style[o]=E:Va(l,o)),C=[p,d],op(C),p=C[0],d=C[1],N=p.match(Pl)||[],F=d.match(Pl)||[],F.length){for(;I=Pl.exec(d);)L=I[0],M=d.substring(T,I.index),U?U=(U+1)%5:(M.substr(-5)==="rgba("||M.substr(-5)==="hsla(")&&(U=1),L!==(E=N[S++]||"")&&(z=parseFloat(E)||0,b=E.substr((z+"").length),L.charAt(1)==="="&&(L=Ll(z,L)+b),x=parseFloat(L),R=L.substr((x+"").length),T=Pl.lastIndex-R.length,R||(R=R||Hr.units[o]||b,T===d.length&&(d+=R,_.e+=R)),b!==R&&(z=ta(l,o,E,R)||0),_._pt={_next:_._pt,p:M||S===1?M:",",s:z,c:x-z,m:U&&U<4||o==="zIndex"?Math.round:0});_.c=T<d.length?d.substring(T,d.length):""}else _.r=o==="display"&&d==="none"?Sp:Mp;return Pf.test(d)&&(_.e=0),this._pt=_,_},Ip={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},xg=function(l){var o=l.split(" "),p=o[0],d=o[1]||"50%";return(p==="top"||p==="bottom"||d==="left"||d==="right")&&(l=p,p=d,d=l),o[0]=Ip[p]||p,o[1]=Ip[d]||d,o.join(" ")},wg=function(l,o){if(o.tween&&o.tween._time===o.tween._dur){var p=o.t,d=p.style,u=o.u,m=p._gsap,_,T,S;if(u==="all"||u===!0)d.cssText="",T=1;else for(u=u.split(","),S=u.length;--S>-1;)_=u[S],fo[_]&&(T=1,_=_==="transformOrigin"?Lr:dn),Va(p,_);T&&(Va(p,dn),m&&(m.svg&&p.removeAttribute("transform"),bh(p,1),m.uncache=1,Ep(d)))}},_u={clearProps:function(l,o,p,d,u){if(u.data!=="isFromStart"){var m=l._pt=new Cr(l._pt,o,p,0,0,wg);return m.u=d,m.pr=-10,m.tween=u,l._props.push(p),1}}},Eh=[1,0,0,1,0,0],Dp={},zp=function(l){return l==="matrix(1, 0, 0, 1, 0, 0)"||l==="none"||!l},kp=function(l){var o=js(l,dn);return zp(o)?Eh:o.substr(7).match(Cf).map(Rn)},kc=function(l,o){var p=l._gsap||za(l),d=l.style,u=kp(l),m,_,T,S;return p.svg&&l.getAttribute("transform")?(T=l.transform.baseVal.consolidate().matrix,u=[T.a,T.b,T.c,T.d,T.e,T.f],u.join(",")==="1,0,0,1,0,0"?Eh:u):(u===Eh&&!l.offsetParent&&l!==zl&&!p.svg&&(T=d.display,d.display="block",m=l.parentNode,(!m||!l.offsetParent)&&(S=1,_=l.nextElementSibling,zl.appendChild(l)),u=kp(l),T?d.display=T:Va(l,"display"),S&&(_?m.insertBefore(l,_):m?m.appendChild(l):zl.removeChild(l))),o&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Bc=function(l,o,p,d,u,m){var _=l._gsap,T=u||kc(l,!0),S=_.xOrigin||0,C=_.yOrigin||0,I=_.xOffset||0,N=_.yOffset||0,z=T[0],U=T[1],E=T[2],L=T[3],x=T[4],M=T[5],R=o.split(" "),b=parseFloat(R[0])||0,F=parseFloat(R[1])||0,B,X,$,Q;p?T!==Eh&&(X=z*L-U*E)&&($=b*(L/X)+F*(-E/X)+(E*M-L*x)/X,Q=b*(-U/X)+F*(z/X)-(z*M-U*x)/X,b=$,F=Q):(B=Lp(l),b=B.x+(~R[0].indexOf("%")?b/100*B.width:b),F=B.y+(~(R[1]||R[0]).indexOf("%")?F/100*B.height:F)),d||d!==!1&&_.smooth?(x=b-S,M=F-C,_.xOffset=I+(x*z+M*E)-x,_.yOffset=N+(x*U+M*L)-M):_.xOffset=_.yOffset=0,_.xOrigin=b,_.yOrigin=F,_.smooth=!!d,_.origin=o,_.originIsAbsolute=!!p,l.style[Lr]="0px 0px",m&&(Qo(m,_,"xOrigin",S,b),Qo(m,_,"yOrigin",C,F),Qo(m,_,"xOffset",I,_.xOffset),Qo(m,_,"yOffset",N,_.yOffset)),l.setAttribute("data-svg-origin",b+" "+F)},bh=function(l,o){var p=l._gsap||new up(l);if("x"in p&&!o&&!p.uncache)return p;var d=l.style,u=p.scaleX<0,m="px",_="deg",T=getComputedStyle(l),S=js(l,Lr)||"0",C,I,N,z,U,E,L,x,M,R,b,F,B,X,$,Q,ft,Ct,it,yt,G,Lt,Et,Pt,ce,re,Ft,It,Bt,Be,me,Yt;return C=I=N=E=L=x=M=R=b=0,z=U=1,p.svg=!!(l.getCTM&&Rp(l)),T.translate&&((T.translate!=="none"||T.scale!=="none"||T.rotate!=="none")&&(d[dn]=(T.translate!=="none"?"translate3d("+(T.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(T.rotate!=="none"?"rotate("+T.rotate+") ":"")+(T.scale!=="none"?"scale("+T.scale.split(" ").join(",")+") ":"")+(T[dn]!=="none"?T[dn]:"")),d.scale=d.rotate=d.translate="none"),X=kc(l,p.svg),p.svg&&(p.uncache?(ce=l.getBBox(),S=p.xOrigin-ce.x+"px "+(p.yOrigin-ce.y)+"px",Pt=""):Pt=!o&&l.getAttribute("data-svg-origin"),Bc(l,Pt||S,!!Pt||p.originIsAbsolute,p.smooth!==!1,X)),F=p.xOrigin||0,B=p.yOrigin||0,X!==Eh&&(Ct=X[0],it=X[1],yt=X[2],G=X[3],C=Lt=X[4],I=Et=X[5],X.length===6?(z=Math.sqrt(Ct*Ct+it*it),U=Math.sqrt(G*G+yt*yt),E=Ct||it?Bl(it,Ct)*Ha:0,M=yt||G?Bl(yt,G)*Ha+E:0,M&&(U*=Math.abs(Math.cos(M*kl))),p.svg&&(C-=F-(F*Ct+B*yt),I-=B-(F*it+B*G))):(Yt=X[6],Be=X[7],Ft=X[8],It=X[9],Bt=X[10],me=X[11],C=X[12],I=X[13],N=X[14],$=Bl(Yt,Bt),L=$*Ha,$&&(Q=Math.cos(-$),ft=Math.sin(-$),Pt=Lt*Q+Ft*ft,ce=Et*Q+It*ft,re=Yt*Q+Bt*ft,Ft=Lt*-ft+Ft*Q,It=Et*-ft+It*Q,Bt=Yt*-ft+Bt*Q,me=Be*-ft+me*Q,Lt=Pt,Et=ce,Yt=re),$=Bl(-yt,Bt),x=$*Ha,$&&(Q=Math.cos(-$),ft=Math.sin(-$),Pt=Ct*Q-Ft*ft,ce=it*Q-It*ft,re=yt*Q-Bt*ft,me=G*ft+me*Q,Ct=Pt,it=ce,yt=re),$=Bl(it,Ct),E=$*Ha,$&&(Q=Math.cos($),ft=Math.sin($),Pt=Ct*Q+it*ft,ce=Lt*Q+Et*ft,it=it*Q-Ct*ft,Et=Et*Q-Lt*ft,Ct=Pt,Lt=ce),L&&Math.abs(L)+Math.abs(E)>359.9&&(L=E=0,x=180-x),z=Rn(Math.sqrt(Ct*Ct+it*it+yt*yt)),U=Rn(Math.sqrt(Et*Et+Yt*Yt)),$=Bl(Lt,Et),M=Math.abs($)>2e-4?$*Ha:0,b=me?1/(me<0?-me:me):0),p.svg&&(Pt=l.getAttribute("transform"),p.forceCSS=l.setAttribute("transform","")||!zp(js(l,dn)),Pt&&l.setAttribute("transform",Pt))),Math.abs(M)>90&&Math.abs(M)<270&&(u?(z*=-1,M+=E<=0?180:-180,E+=E<=0?180:-180):(U*=-1,M+=M<=0?180:-180)),o=o||p.uncache,p.x=C-((p.xPercent=C&&(!o&&p.xPercent||(Math.round(l.offsetWidth/2)===Math.round(-C)?-50:0)))?l.offsetWidth*p.xPercent/100:0)+m,p.y=I-((p.yPercent=I&&(!o&&p.yPercent||(Math.round(l.offsetHeight/2)===Math.round(-I)?-50:0)))?l.offsetHeight*p.yPercent/100:0)+m,p.z=N+m,p.scaleX=Rn(z),p.scaleY=Rn(U),p.rotation=Rn(E)+_,p.rotationX=Rn(L)+_,p.rotationY=Rn(x)+_,p.skewX=M+_,p.skewY=R+_,p.transformPerspective=b+m,(p.zOrigin=parseFloat(S.split(" ")[2])||!o&&p.zOrigin||0)&&(d[Lr]=yu(S)),p.xOffset=p.yOffset=0,p.force3D=Hr.force3D,p.renderTransform=p.svg?Mg:Ap?Bp:Tg,p.uncache=0,p},yu=function(l){return(l=l.split(" "))[0]+" "+l[1]},Nc=function(l,o,p){var d=sr(o);return Rn(parseFloat(o)+parseFloat(ta(l,"x",p+"px",d)))+d},Tg=function(l,o){o.z="0px",o.rotationY=o.rotationX="0deg",o.force3D=0,Bp(l,o)},Wa="0deg",Ah="0px",ja=") ",Bp=function(l,o){var p=o||this,d=p.xPercent,u=p.yPercent,m=p.x,_=p.y,T=p.z,S=p.rotation,C=p.rotationY,I=p.rotationX,N=p.skewX,z=p.skewY,U=p.scaleX,E=p.scaleY,L=p.transformPerspective,x=p.force3D,M=p.target,R=p.zOrigin,b="",F=x==="auto"&&l&&l!==1||x===!0;if(R&&(I!==Wa||C!==Wa)){var B=parseFloat(C)*kl,X=Math.sin(B),$=Math.cos(B),Q;B=parseFloat(I)*kl,Q=Math.cos(B),m=Nc(M,m,X*Q*-R),_=Nc(M,_,-Math.sin(B)*-R),T=Nc(M,T,$*Q*-R+R)}L!==Ah&&(b+="perspective("+L+ja),(d||u)&&(b+="translate("+d+"%, "+u+"%) "),(F||m!==Ah||_!==Ah||T!==Ah)&&(b+=T!==Ah||F?"translate3d("+m+", "+_+", "+T+") ":"translate("+m+", "+_+ja),S!==Wa&&(b+="rotate("+S+ja),C!==Wa&&(b+="rotateY("+C+ja),I!==Wa&&(b+="rotateX("+I+ja),(N!==Wa||z!==Wa)&&(b+="skew("+N+", "+z+ja),(U!==1||E!==1)&&(b+="scale("+U+", "+E+ja),M.style[dn]=b||"translate(0, 0)"},Mg=function(l,o){var p=o||this,d=p.xPercent,u=p.yPercent,m=p.x,_=p.y,T=p.rotation,S=p.skewX,C=p.skewY,I=p.scaleX,N=p.scaleY,z=p.target,U=p.xOrigin,E=p.yOrigin,L=p.xOffset,x=p.yOffset,M=p.forceCSS,R=parseFloat(m),b=parseFloat(_),F,B,X,$,Q;T=parseFloat(T),S=parseFloat(S),C=parseFloat(C),C&&(C=parseFloat(C),S+=C,T+=C),T||S?(T*=kl,S*=kl,F=Math.cos(T)*I,B=Math.sin(T)*I,X=Math.sin(T-S)*-N,$=Math.cos(T-S)*N,S&&(C*=kl,Q=Math.tan(S-C),Q=Math.sqrt(1+Q*Q),X*=Q,$*=Q,C&&(Q=Math.tan(C),Q=Math.sqrt(1+Q*Q),F*=Q,B*=Q)),F=Rn(F),B=Rn(B),X=Rn(X),$=Rn($)):(F=I,$=N,B=X=0),(R&&!~(m+"").indexOf("px")||b&&!~(_+"").indexOf("px"))&&(R=ta(z,"x",m,"px"),b=ta(z,"y",_,"px")),(U||E||L||x)&&(R=Rn(R+U-(U*F+E*X)+L),b=Rn(b+E-(U*B+E*$)+x)),(d||u)&&(Q=z.getBBox(),R=Rn(R+d/100*Q.width),b=Rn(b+u/100*Q.height)),Q="matrix("+F+","+B+","+X+","+$+","+R+","+b+")",z.setAttribute("transform",Q),M&&(z.style[dn]=Q)},Sg=function(l,o,p,d,u){var m=360,_=Wn(u),T=parseFloat(u)*(_&&~u.indexOf("rad")?Ha:1),S=T-d,C=d+S+"deg",I,N;return _&&(I=u.split("_")[1],I==="short"&&(S%=m,S!==S%(m/2)&&(S+=S<0?m:-m)),I==="cw"&&S<0?S=(S+m*Tp)%m-~~(S/m)*m:I==="ccw"&&S>0&&(S=(S-m*Tp)%m-~~(S/m)*m)),l._pt=N=new Cr(l._pt,o,p,d,S,ag),N.e=C,N.u="deg",l._props.push(p),N},Np=function(l,o){for(var p in o)l[p]=o[p];return l},Eg=function(l,o,p){var d=Np({},p._gsap),u="perspective,force3D,transformOrigin,svgOrigin",m=p.style,_,T,S,C,I,N,z,U;d.svg?(S=p.getAttribute("transform"),p.setAttribute("transform",""),m[dn]=o,_=bh(p,1),Va(p,dn),p.setAttribute("transform",S)):(S=getComputedStyle(p)[dn],m[dn]=o,_=bh(p,1),m[dn]=S);for(T in fo)S=d[T],C=_[T],S!==C&&u.indexOf(T)<0&&(z=sr(S),U=sr(C),I=z!==U?ta(p,T,S,U):parseFloat(S),N=parseFloat(C),l._pt=new Cr(l._pt,_,T,I,N-I,Oc),l._pt.u=U||0,l._props.push(T));Np(_,d)};Ar("padding,margin,Width,Radius",function(w,l){var o="Top",p="Right",d="Bottom",u="Left",m=(l<3?[o,p,d,u]:[o+u,o+p,d+p,d+u]).map(function(_){return l<2?w+_:"border"+_+w});_u[l>1?"border"+w:w]=function(_,T,S,C,I){var N,z;if(arguments.length<4)return N=m.map(function(U){return po(_,U,S)}),z=N.join(" "),z.split(N[0]).length===5?N[0]:z;N=(C+"").split(" "),z={},m.forEach(function(U,E){return z[U]=N[E]=N[E]||N[(E-1)/2|0]}),_.init(T,z,I)}});var Fp={name:"css",register:Dc,targetTest:function(l){return l.style&&l.nodeType},init:function(l,o,p,d,u){var m=this._props,_=l.style,T=p.vars.startAt,S,C,I,N,z,U,E,L,x,M,R,b,F,B,X,$;Pc||Dc(),this.styles=this.styles||bp(l),$=this.styles.props,this.tween=p;for(E in o)if(E!=="autoRound"&&(C=o[E],!(Wr[E]&&cp(E,o,p,d,l,u)))){if(z=typeof C,U=_u[E],z==="function"&&(C=C.call(p,d,l,u),z=typeof C),z==="string"&&~C.indexOf("random(")&&(C=yh(C)),U)U(this,l,E,C,p)&&(X=1);else if(E.substr(0,2)==="--")S=(getComputedStyle(l).getPropertyValue(E)+"").trim(),C+="",Jo.lastIndex=0,Jo.test(S)||(L=sr(S),x=sr(C)),x?L!==x&&(S=ta(l,E,S,x)+x):L&&(C+=L),this.add(_,"setProperty",S,C,d,u,0,0,E),m.push(E),$.push(E,0,_[E]);else if(z!=="undefined"){if(T&&E in T?(S=typeof T[E]=="function"?T[E].call(p,d,l,u):T[E],Wn(S)&&~S.indexOf("random(")&&(S=yh(S)),sr(S+"")||S==="auto"||(S+=Hr.units[E]||sr(po(l,E))||""),(S+"").charAt(1)==="="&&(S=po(l,E))):S=po(l,E),N=parseFloat(S),M=z==="string"&&C.charAt(1)==="="&&C.substr(0,2),M&&(C=C.substr(2)),I=parseFloat(C),E in Ws&&(E==="autoAlpha"&&(N===1&&po(l,"visibility")==="hidden"&&I&&(N=0),$.push("visibility",0,_.visibility),Qo(this,_,"visibility",N?"inherit":"hidden",I?"inherit":"hidden",!I)),E!=="scale"&&E!=="transform"&&(E=Ws[E],~E.indexOf(",")&&(E=E.split(",")[0]))),R=E in fo,R){if(this.styles.save(E),b||(F=l._gsap,F.renderTransform&&!o.parseTransform||bh(l,o.parseTransform),B=o.smoothOrigin!==!1&&F.smooth,b=this._pt=new Cr(this._pt,_,dn,0,1,F.renderTransform,F,0,-1),b.dep=1),E==="scale")this._pt=new Cr(this._pt,F,"scaleY",F.scaleY,(M?Ll(F.scaleY,M+I):I)-F.scaleY||0,Oc),this._pt.u=0,m.push("scaleY",E),E+="X";else if(E==="transformOrigin"){$.push(Lr,0,_[Lr]),C=xg(C),F.svg?Bc(l,C,0,B,0,this):(x=parseFloat(C.split(" ")[2])||0,x!==F.zOrigin&&Qo(this,F,"zOrigin",F.zOrigin,x),Qo(this,_,E,yu(S),yu(C)));continue}else if(E==="svgOrigin"){Bc(l,C,1,B,0,this);continue}else if(E in Dp){Sg(this,F,E,N,M?Ll(N,M+C):C);continue}else if(E==="smoothOrigin"){Qo(this,F,"smooth",F.smooth,C);continue}else if(E==="force3D"){F[E]=C;continue}else if(E==="transform"){Eg(this,C,l);continue}}else E in _||(E=Nl(E)||E);if(R||(I||I===0)&&(N||N===0)&&!og.test(C)&&E in _)L=(S+"").substr((N+"").length),I||(I=0),x=sr(C)||(E in Hr.units?Hr.units[E]:L),L!==x&&(N=ta(l,E,S,x)),this._pt=new Cr(this._pt,R?F:_,E,N,(M?Ll(N,M+I):I)-N,!R&&(x==="px"||E==="zIndex")&&o.autoRound!==!1?hg:Oc),this._pt.u=x||0,L!==x&&x!=="%"&&(this._pt.b=S,this._pt.r=lg);else if(E in _)yg.call(this,l,E,S,M?M+C:C);else if(E in l)this.add(l,E,S||l[E],M?M+C:C,d,u);else if(E!=="parseTransform"){oc(E,C);continue}R||(E in _?$.push(E,0,_[E]):$.push(E,1,S||l[E])),m.push(E)}}X&&vp(this)},render:function(l,o){if(o.tween._time||!Lc())for(var p=o._pt;p;)p.r(l,p.d),p=p._next;else o.styles.revert()},get:po,aliases:Ws,getSetter:function(l,o,p){var d=Ws[o];return d&&d.indexOf(",")<0&&(o=d),o in fo&&o!==Lr&&(l._gsap.x||po(l,"x"))?p&&wp===p?o==="scale"?pg:fg:(wp=p||{})&&(o==="scale"?dg:mg):l.style&&!tc(l.style[o])?ug:~o.indexOf("-")?cg:Sc(l,o)},core:{_removeProperty:Va,_getMatrix:kc}};Pr.utils.checkPrefix=Nl,Pr.core.getStyleSaver=bp,function(w,l,o,p){var d=Ar(w+","+l+","+o,function(u){fo[u]=1});Ar(l,function(u){Hr.units[u]="deg",Dp[u]=1}),Ws[d[13]]=w+","+l,Ar(p,function(u){var m=u.split(":");Ws[m[1]]=d[m[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Ar("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(w){Hr.units[w]="px"}),Pr.registerPlugin(Fp);var Fc=Pr.registerPlugin(Fp)||Pr;Fc.core.Tween;class bg{constructor(l,o=!1){window.mars3d?(l&&l!=null&&(this._map=l),this.Cesium=window.mars3d.Cesium,this.DynamicMaskingArr=[],this.canvasClientWidth=l.viewer.canvas.clientWidth,this.canvasClientHeight=l.viewer.canvas.clientHeight,this.oldSet=new Set,this.tweenMap=new Map,this.isDynamicMasking=o):console.error("未引入指定插件")}add(l,o){let p=l.options.symbol.styleOptions.label.font_size,d=l.options.vectorId,u=Number(p)*1.4,m=Number(p)*1.8,_=l.options.symbol.styleOptions.label,{color:T,outlineColor:S,backgroundColor:C}=_;l.eachGraphic(I=>{this.DynamicMaskingArr.push({id:d,uid:I.id,position:I._getLablePosition(),label:I.name,width:u*I.name.length,height:m,color:T,outline:o.label.outline,outlineColor:S,background:o.label.background,backgroundColor:C,dynamicMaskingColor:{backgroundColor:this.Cesium.Color.fromCssColorString(o.label.backgroundColor),color:this.Cesium.Color.fromCssColorString(o.label.color),outlineColor:this.Cesium.Color.fromCssColorString(o.label.outlineColor)}})}),this.oldSet=new Set,this.tweenMap=new Map}remove(l){this.DynamicMaskingArr=this.DynamicMaskingArr.filter(o=>o.id!==l),this.oldSet=new Set,this.tweenMap=new Map}modify(l,o){let{label:p}=o;if(p){let{color:d,outline:u,outlineColor:m,background:_,backgroundColor:T}=p;this.DynamicMaskingArr.forEach(S=>{S.id===l&&(console.log(S),d!=null&&(S.color=this.Cesium.Color.fromCssColorString(d),S.dynamicMaskingColor.color=this.Cesium.Color.fromCssColorString(d)),u!=null&&(S.outline=u),m!=null&&(S.outlineColor=this.Cesium.Color.fromCssColorString(m),S.dynamicMaskingColor.outlineColor=this.Cesium.Color.fromCssColorString(m)),_!=null&&(S.background=_),T!=null&&(S.backgroundColor=this.Cesium.Color.fromCssColorString(T),S.dynamicMaskingColor.backgroundColor=this.Cesium.Color.fromCssColorString(T)))})}}getBoundingRectangle(l){var o=this.Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._map.viewer.scene,l.position);return o!==void 0?new this.Cesium.BoundingRectangle(o.x,o.y,l.width,l.height):new this.Cesium.BoundingRectangle(0,0,1,1)}getNonIntersectingRectangles(){let l=[];for(var o=0;o<this.DynamicMaskingArr.length;o++){let d=!1,u=this.DynamicMaskingArr[o],m,_,T;if(_=this.getBoundingRectangle(u),!(_.x<0||_.x>this.canvasClientWidth||_.y<0||_.y>this.canvasClientHeight))if(l.length===0){l.push(o);continue}else{for(var p=0;p<l.length;p++)if(m=this.DynamicMaskingArr[l[p]],T=this.getBoundingRectangle(m),this.Cesium.Intersect.OUTSIDE!==this.Cesium.BoundingRectangle.intersect(_,T)){d=!0;break}d||l.push(o)}}return new Set(l)}ifShow(){if(this.isDynamicMasking){let o={color:.001,outlineColor:.001,backgroundColor:.001},p={color:1,outlineColor:1,backgroundColor:1},d=this.getNonIntersectingRectangles(),u=new Set([...this.oldSet].filter(_=>!d.has(_))),m=new Set([...d].filter(_=>!this.oldSet.has(_)));for(let _ of u)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var l=this.tweenMap.get(_);l.kill(),this.tweenMap.delete(_)}var l=Fc.to(p,{duration:.2,color:0,outlineColor:0,backgroundColor:0,onUpdate:()=>{var T=this.DynamicMaskingArr[_];T.backgroundColor.alpha=p.backgroundColor,T.color.alpha=p.color,T.outlineColor.alpha=p.outlineColor,this._map.getLayer(T.id,"vectorId").getGraphicByAttr(T.uid).setStyle({label:{show:!1,outline:!1,background:!1}})}});this.tweenMap.set(_,l)}for(let _ of m)if(this.DynamicMaskingArr[_]){if(this.tweenMap.has(_)){var l=this.tweenMap.get(_);l.kill(),this.tweenMap.delete(_)}let T=this.DynamicMaskingArr[_],{backgroundColor:S,color:C,outlineColor:I}=T.dynamicMaskingColor;var l=Fc.to(o,{duration:.8+Math.random(),color:C.alpha,outlineColor:I.alpha,backgroundColor:S.alpha,onUpdate:()=>{T.backgroundColor.alpha=o.backgroundColor,T.color.alpha=o.color,T.outlineColor.alpha=o.outlineColor,this._map.getLayer(T.id,"vectorId").getGraphicByAttr(T.uid).setStyle({label:{show:!0,outline:T.outline,background:T.background,color:T.color,outlineColor:T.outlineColor,backgroundColor:T.backgroundColor}})}});this.tweenMap.set(_,l)}this.oldSet=d}}switchDynamicMasking(l){if(l)this._map.getLayers().forEach(o=>{var p;if((p=o.options)!=null&&p.vectorId){let{color:d,outlineColor:u,backgroundColor:m}=o.options.symbol.styleOptions.label;o.eachGraphic(_=>{_.setStyle({label:{color:d.withAlpha(0),outlineColor:u.withAlpha(.001),backgroundColor:m.withAlpha(.001),show:!1,background:!1,outline:!1}})})}});else{let o,p,d,u;this.DynamicMaskingArr.forEach(m=>{o=m.dynamicMaskingColor,d=m.background,u=m.outline,p=this._map.getLayer(m.id,"vectorId"),p.eachGraphic(_=>{_.setStyle({label:{color:o.color,outlineColor:o.outlineColor,backgroundColor:o.backgroundColor,show:!0,background:d,outline:u}})})})}this.isDynamicMasking=l,window.bimVector.switchDynamicMasking(l)}}const Ag=[_f,wf],Cg={continuation:null,mapModali:null,install(w){if(Ag.forEach((m,_)=>{w.component(m.name,m)}),this.continuation){w.config.globalProperties.$continuation=this.continuation;return}let l=si.createApp(yf),o=document.createElement("div"),p=document.body;if(p.appendChild(o),this.loading=l.mount(o),w.config.globalProperties.$loading=this.loading,window.$continuation=this.loading,this.mapModali){w.config.globalProperties.$mapModali=this.mapModali;return}let d=si.createApp(xf),u=document.createElement("div");p.appendChild(u),this.mapModali=d.mount(u),w.config.globalProperties.$mapModali=this.mapModali,window.$mapModali=this.mapModali}};$i.BimBackgroundPlate=wf,$i.BimCutscenes=yf,$i.BimElevationImage=rm,$i.BimEntity=om,$i.BimModel=tm,$i.BimTerrainProvider=nm,$i.BimVector=im,$i.Button=_f,$i.ChbimPlugins=Cg,$i.DynamicMasking=bg,$i.MapModali=xf,$i.PanoramicView=cm,$i.ViewShed=sm,Object.defineProperty($i,Symbol.toStringTag,{value:"Module"})});
|