!function(e){var t=window.webpackJsonp;window.webpackJsonp=function(n,a,o){for(var s,l,c,u=0,h=[];u<n.length;u++)l=n[u],i[l]&&h.push(i[l][0]),i[l]=0;for(s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s]);for(t&&t(n,a,o);h.length;)h.shift()();if(o)for(u=0;u<o.length;u++)c=r(r.s=o[u]);return c};var n={},i={27:0};function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r.oe=function(e){throw console.error(e),e}}({100:function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},102:function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(r.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(r.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(297),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(34))},11:function(e,t,n){"use strict";var i=n(96),r=n(280),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:r,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function n(n,i){"object"==typeof t[i]&&"object"==typeof n?t[i]=e(t[i],n):t[i]=n}for(var i=0,r=arguments.length;i<r;i++)c(arguments[i],n);return t},extend:function(e,t,n){return c(t,function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},134:function(e,t,n){"use strict";function i(){}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"WebGLRenderTargetCube",function(){return dn}),n.d(t,"WebGLRenderTarget",function(){return hn}),n.d(t,"WebGLRenderer",function(){return ta}),n.d(t,"ShaderLib",function(){return Cn}),n.d(t,"UniformsLib",function(){return Sn}),n.d(t,"UniformsUtils",function(){return _n}),n.d(t,"ShaderChunk",function(){return wn}),n.d(t,"FogExp2",function(){return na}),n.d(t,"Fog",function(){return ia}),n.d(t,"Scene",function(){return ra}),n.d(t,"Sprite",function(){return la}),n.d(t,"LOD",function(){return ca}),n.d(t,"SkinnedMesh",function(){return da}),n.d(t,"Skeleton",function(){return ua}),n.d(t,"Bone",function(){return ha}),n.d(t,"Mesh",function(){return Ti}),n.d(t,"LineSegments",function(){return ma}),n.d(t,"LineLoop",function(){return va}),n.d(t,"Line",function(){return fa}),n.d(t,"Points",function(){return ya}),n.d(t,"Group",function(){return jr}),n.d(t,"VideoTexture",function(){return ba}),n.d(t,"DataTexture",function(){return pn}),n.d(t,"DataTexture3D",function(){return Ai}),n.d(t,"CompressedTexture",function(){return xa}),n.d(t,"CubeTexture",function(){return Ci}),n.d(t,"CanvasTexture",function(){return wa}),n.d(t,"DepthTexture",function(){return _a}),n.d(t,"Texture",function(){return cn}),n.d(t,"AnimationLoader",function(){return fs}),n.d(t,"CompressedTextureLoader",function(){return ms}),n.d(t,"DataTextureLoader",function(){return vs}),n.d(t,"CubeTextureLoader",function(){return ys}),n.d(t,"TextureLoader",function(){return bs}),n.d(t,"ObjectLoader",function(){return ul}),n.d(t,"MaterialLoader",function(){return el}),n.d(t,"BufferGeometryLoader",function(){return nl}),n.d(t,"DefaultLoadingManager",function(){return hs}),n.d(t,"LoadingManager",function(){return us}),n.d(t,"JSONLoader",function(){return cl}),n.d(t,"ImageLoader",function(){return gs}),n.d(t,"ImageBitmapLoader",function(){return ml}),n.d(t,"FontLoader",function(){return bl}),n.d(t,"FileLoader",function(){return ps}),n.d(t,"Loader",function(){return ll}),n.d(t,"LoaderUtils",function(){return tl}),n.d(t,"Cache",function(){return cs}),n.d(t,"AudioLoader",function(){return Ol}),n.d(t,"SpotLightShadow",function(){return $s}),n.d(t,"SpotLight",function(){return Ys}),n.d(t,"PointLight",function(){return qs}),n.d(t,"RectAreaLight",function(){return Qs}),n.d(t,"HemisphereLight",function(){return Vs}),n.d(t,"DirectionalLightShadow",function(){return Js}),n.d(t,"DirectionalLight",function(){return Zs}),n.d(t,"AmbientLight",function(){return Ks}),n.d(t,"LightShadow",function(){return Ws}),n.d(t,"Light",function(){return Gs}),n.d(t,"StereoCamera",function(){return Rl}),n.d(t,"PerspectiveCamera",function(){return Gr}),n.d(t,"OrthographicCamera",function(){return Xs}),n.d(t,"CubeCamera",function(){return Dl}),n.d(t,"ArrayCamera",function(){return Vr}),n.d(t,"Camera",function(){return Ur}),n.d(t,"AudioListener",function(){return kl}),n.d(t,"PositionalAudio",function(){return zl}),n.d(t,"AudioContext",function(){return Pl}),n.d(t,"AudioAnalyser",function(){return Fl}),n.d(t,"Audio",function(){return Nl}),n.d(t,"VectorKeyframeTrack",function(){return os}),n.d(t,"StringKeyframeTrack",function(){return as}),n.d(t,"QuaternionKeyframeTrack",function(){return rs}),n.d(t,"NumberKeyframeTrack",function(){return ns}),n.d(t,"ColorKeyframeTrack",function(){return ts}),n.d(t,"BooleanKeyframeTrack",function(){return es}),n.d(t,"PropertyMixer",function(){return Bl}),n.d(t,"PropertyBinding",function(){return nc}),n.d(t,"KeyframeTrack",function(){return Qo}),n.d(t,"AnimationUtils",function(){return qo}),n.d(t,"AnimationObjectGroup",function(){return ic}),n.d(t,"AnimationMixer",function(){return ac}),n.d(t,"AnimationClip",function(){return ss}),n.d(t,"Uniform",function(){return oc}),n.d(t,"InstancedBufferGeometry",function(){return sc}),n.d(t,"BufferGeometry",function(){return ni}),n.d(t,"Geometry",function(){return Un}),n.d(t,"InterleavedBufferAttribute",function(){return oa}),n.d(t,"InstancedInterleavedBuffer",function(){return lc}),n.d(t,"InterleavedBuffer",function(){return aa}),n.d(t,"InstancedBufferAttribute",function(){return cc}),n.d(t,"Face3",function(){return Pn}),n.d(t,"Object3D",function(){return Fn}),n.d(t,"Raycaster",function(){return uc}),n.d(t,"Layers",function(){return Rn}),n.d(t,"EventDispatcher",function(){return i}),n.d(t,"Clock",function(){return Il}),n.d(t,"QuaternionLinearInterpolant",function(){return is}),n.d(t,"LinearInterpolant",function(){return Zo}),n.d(t,"DiscreteInterpolant",function(){return Ko}),n.d(t,"CubicInterpolant",function(){return Jo}),n.d(t,"Interpolant",function(){return Xo}),n.d(t,"Triangle",function(){return Mi}),n.d(t,"Math",function(){return Xt}),n.d(t,"Spherical",function(){return pc}),n.d(t,"Cylindrical",function(){return fc}),n.d(t,"Plane",function(){return vn}),n.d(t,"Frustum",function(){return gn}),n.d(t,"Sphere",function(){return mn}),n.d(t,"Ray",function(){return _i}),n.d(t,"Matrix4",function(){return Zt}),n.d(t,"Matrix3",function(){return en}),n.d(t,"Box3",function(){return fn}),n.d(t,"Box2",function(){return mc}),n.d(t,"Line3",function(){return vc}),n.d(t,"Euler",function(){return On}),n.d(t,"Vector4",function(){return un}),n.d(t,"Vector3",function(){return Qt}),n.d(t,"Vector2",function(){return Jt}),n.d(t,"Quaternion",function(){return Kt}),n.d(t,"Color",function(){return En}),n.d(t,"ImmediateRenderObject",function(){return gc}),n.d(t,"VertexNormalsHelper",function(){return yc}),n.d(t,"SpotLightHelper",function(){return bc}),n.d(t,"SkeletonHelper",function(){return xc}),n.d(t,"PointLightHelper",function(){return wc}),n.d(t,"RectAreaLightHelper",function(){return _c}),n.d(t,"HemisphereLightHelper",function(){return Mc}),n.d(t,"GridHelper",function(){return Ec}),n.d(t,"PolarGridHelper",function(){return Tc}),n.d(t,"FaceNormalsHelper",function(){return Sc}),n.d(t,"DirectionalLightHelper",function(){return Cc}),n.d(t,"CameraHelper",function(){return Ac}),n.d(t,"BoxHelper",function(){return Lc}),n.d(t,"Box3Helper",function(){return Pc}),n.d(t,"PlaneHelper",function(){return Oc}),n.d(t,"ArrowHelper",function(){return Rc}),n.d(t,"AxesHelper",function(){return Dc}),n.d(t,"Shape",function(){return Us}),n.d(t,"Path",function(){return js}),n.d(t,"ShapePath",function(){return vl}),n.d(t,"Font",function(){return gl}),n.d(t,"CurvePath",function(){return Hs}),n.d(t,"Curve",function(){return xs}),n.d(t,"ImageUtils",function(){return sn}),n.d(t,"ShapeUtils",function(){return uo}),n.d(t,"WebGLUtils",function(){return Hr}),n.d(t,"WireframeGeometry",function(){return Ma}),n.d(t,"ParametricGeometry",function(){return Ea}),n.d(t,"ParametricBufferGeometry",function(){return Ta}),n.d(t,"TetrahedronGeometry",function(){return Aa}),n.d(t,"TetrahedronBufferGeometry",function(){return La}),n.d(t,"OctahedronGeometry",function(){return Pa}),n.d(t,"OctahedronBufferGeometry",function(){return Oa}),n.d(t,"IcosahedronGeometry",function(){return Ra}),n.d(t,"IcosahedronBufferGeometry",function(){return Da}),n.d(t,"DodecahedronGeometry",function(){return Ia}),n.d(t,"DodecahedronBufferGeometry",function(){return ka}),n.d(t,"PolyhedronGeometry",function(){return Sa}),n.d(t,"PolyhedronBufferGeometry",function(){return Ca}),n.d(t,"TubeGeometry",function(){return Na}),n.d(t,"TubeBufferGeometry",function(){return za}),n.d(t,"TorusKnotGeometry",function(){return Fa}),n.d(t,"TorusKnotBufferGeometry",function(){return Ba}),n.d(t,"TorusGeometry",function(){return Ha}),n.d(t,"TorusBufferGeometry",function(){return ja}),n.d(t,"TextGeometry",function(){return yo}),n.d(t,"TextBufferGeometry",function(){return bo}),n.d(t,"SphereGeometry",function(){return xo}),n.d(t,"SphereBufferGeometry",function(){return wo}),n.d(t,"RingGeometry",function(){return _o}),n.d(t,"RingBufferGeometry",function(){return Mo}),n.d(t,"PlaneGeometry",function(){return ai}),n.d(t,"PlaneBufferGeometry",function(){return oi}),n.d(t,"LatheGeometry",function(){return Eo}),n.d(t,"LatheBufferGeometry",function(){return To}),n.d(t,"ShapeGeometry",function(){return So}),n.d(t,"ShapeBufferGeometry",function(){return Co}),n.d(t,"ExtrudeGeometry",function(){return fo}),n.d(t,"ExtrudeBufferGeometry",function(){return mo}),n.d(t,"EdgesGeometry",function(){return Lo}),n.d(t,"ConeGeometry",function(){return Ro}),n.d(t,"ConeBufferGeometry",function(){return Do}),n.d(t,"CylinderGeometry",function(){return Po}),n.d(t,"CylinderBufferGeometry",function(){return Oo}),n.d(t,"CircleGeometry",function(){return Io}),n.d(t,"CircleBufferGeometry",function(){return ko}),n.d(t,"BoxGeometry",function(){return ii}),n.d(t,"BoxBufferGeometry",function(){return ri}),n.d(t,"ShadowMaterial",function(){return zo}),n.d(t,"SpriteMaterial",function(){return sa}),n.d(t,"RawShaderMaterial",function(){return Fo}),n.d(t,"ShaderMaterial",function(){return wi}),n.d(t,"PointsMaterial",function(){return ga}),n.d(t,"MeshPhysicalMaterial",function(){return Ho}),n.d(t,"MeshStandardMaterial",function(){return Bo}),n.d(t,"MeshPhongMaterial",function(){return jo}),n.d(t,"MeshToonMaterial",function(){return Uo}),n.d(t,"MeshNormalMaterial",function(){return Go}),n.d(t,"MeshLambertMaterial",function(){return Vo}),n.d(t,"MeshDepthMaterial",function(){return Nr}),n.d(t,"MeshDistanceMaterial",function(){return zr}),n.d(t,"MeshBasicMaterial",function(){return Ei}),n.d(t,"MeshMatcapMaterial",function(){return Wo}),n.d(t,"LineDashedMaterial",function(){return $o}),n.d(t,"LineBasicMaterial",function(){return pa}),n.d(t,"Material",function(){return xi}),n.d(t,"Float64BufferAttribute",function(){return Kn}),n.d(t,"Float32BufferAttribute",function(){return Zn}),n.d(t,"Uint32BufferAttribute",function(){return Jn}),n.d(t,"Int32BufferAttribute",function(){return Xn}),n.d(t,"Uint16BufferAttribute",function(){return qn}),n.d(t,"Int16BufferAttribute",function(){return Yn}),n.d(t,"Uint8ClampedBufferAttribute",function(){return $n}),n.d(t,"Uint8BufferAttribute",function(){return Wn}),n.d(t,"Int8BufferAttribute",function(){return Vn}),n.d(t,"BufferAttribute",function(){return Gn}),n.d(t,"ArcCurve",function(){return _s}),n.d(t,"CatmullRomCurve3",function(){return As}),n.d(t,"CubicBezierCurve",function(){return Rs}),n.d(t,"CubicBezierCurve3",function(){return Ds}),n.d(t,"EllipseCurve",function(){return ws}),n.d(t,"LineCurve",function(){return Is}),n.d(t,"LineCurve3",function(){return ks}),n.d(t,"QuadraticBezierCurve",function(){return Ns}),n.d(t,"QuadraticBezierCurve3",function(){return zs}),n.d(t,"SplineCurve",function(){return Fs}),n.d(t,"REVISION",function(){return m}),n.d(t,"MOUSE",function(){return v}),n.d(t,"CullFaceNone",function(){return g}),n.d(t,"CullFaceBack",function(){return y}),n.d(t,"CullFaceFront",function(){return b}),n.d(t,"CullFaceFrontBack",function(){return x}),n.d(t,"FrontFaceDirectionCW",function(){return w}),n.d(t,"FrontFaceDirectionCCW",function(){return _}),n.d(t,"BasicShadowMap",function(){return M}),n.d(t,"PCFShadowMap",function(){return E}),n.d(t,"PCFSoftShadowMap",function(){return T}),n.d(t,"FrontSide",function(){return S}),n.d(t,"BackSide",function(){return C}),n.d(t,"DoubleSide",function(){return A}),n.d(t,"FlatShading",function(){return L}),n.d(t,"SmoothShading",function(){return P}),n.d(t,"NoColors",function(){return O}),n.d(t,"FaceColors",function(){return R}),n.d(t,"VertexColors",function(){return D}),n.d(t,"NoBlending",function(){return I}),n.d(t,"NormalBlending",function(){return k}),n.d(t,"AdditiveBlending",function(){return N}),n.d(t,"SubtractiveBlending",function(){return z}),n.d(t,"MultiplyBlending",function(){return F}),n.d(t,"CustomBlending",function(){return B}),n.d(t,"AddEquation",function(){return H}),n.d(t,"SubtractEquation",function(){return j}),n.d(t,"ReverseSubtractEquation",function(){return U}),n.d(t,"MinEquation",function(){return G}),n.d(t,"MaxEquation",function(){return V}),n.d(t,"ZeroFactor",function(){return W}),n.d(t,"OneFactor",function(){return $}),n.d(t,"SrcColorFactor",function(){return Y}),n.d(t,"OneMinusSrcColorFactor",function(){return q}),n.d(t,"SrcAlphaFactor",function(){return X}),n.d(t,"OneMinusSrcAlphaFactor",function(){return J}),n.d(t,"DstAlphaFactor",function(){return Z}),n.d(t,"OneMinusDstAlphaFactor",function(){return K}),n.d(t,"DstColorFactor",function(){return Q}),n.d(t,"OneMinusDstColorFactor",function(){return ee}),n.d(t,"SrcAlphaSaturateFactor",function(){return te}),n.d(t,"NeverDepth",function(){return ne}),n.d(t,"AlwaysDepth",function(){return ie}),n.d(t,"LessDepth",function(){return re}),n.d(t,"LessEqualDepth",function(){return ae}),n.d(t,"EqualDepth",function(){return oe}),n.d(t,"GreaterEqualDepth",function(){return se}),n.d(t,"GreaterDepth",function(){return le}),n.d(t,"NotEqualDepth",function(){return ce}),n.d(t,"MultiplyOperation",function(){return ue}),n.d(t,"MixOperation",function(){return he}),n.d(t,"AddOperation",function(){return de}),n.d(t,"NoToneMapping",function(){return pe}),n.d(t,"LinearToneMapping",function(){return fe}),n.d(t,"ReinhardToneMapping",function(){return me}),n.d(t,"Uncharted2ToneMapping",function(){return ve}),n.d(t,"CineonToneMapping",function(){return ge}),n.d(t,"UVMapping",function(){return ye}),n.d(t,"CubeReflectionMapping",function(){return be}),n.d(t,"CubeRefractionMapping",function(){return xe}),n.d(t,"EquirectangularReflectionMapping",function(){return we}),n.d(t,"EquirectangularRefractionMapping",function(){return _e}),n.d(t,"SphericalReflectionMapping",function(){return Me}),n.d(t,"CubeUVReflectionMapping",function(){return Ee}),n.d(t,"CubeUVRefractionMapping",function(){return Te}),n.d(t,"RepeatWrapping",function(){return Se}),n.d(t,"ClampToEdgeWrapping",function(){return Ce}),n.d(t,"MirroredRepeatWrapping",function(){return Ae}),n.d(t,"NearestFilter",function(){return Le}),n.d(t,"NearestMipMapNearestFilter",function(){return Pe}),n.d(t,"NearestMipMapLinearFilter",function(){return Oe}),n.d(t,"LinearFilter",function(){return Re}),n.d(t,"LinearMipMapNearestFilter",function(){return De}),n.d(t,"LinearMipMapLinearFilter",function(){return Ie}),n.d(t,"UnsignedByteType",function(){return ke}),n.d(t,"ByteType",function(){return Ne}),n.d(t,"ShortType",function(){return ze}),n.d(t,"UnsignedShortType",function(){return Fe}),n.d(t,"IntType",function(){return Be}),n.d(t,"UnsignedIntType",function(){return He}),n.d(t,"FloatType",function(){return je}),n.d(t,"HalfFloatType",function(){return Ue}),n.d(t,"UnsignedShort4444Type",function(){return Ge}),n.d(t,"UnsignedShort5551Type",function(){return Ve}),n.d(t,"UnsignedShort565Type",function(){return We}),n.d(t,"UnsignedInt248Type",function(){return $e}),n.d(t,"AlphaFormat",function(){return Ye}),n.d(t,"RGBFormat",function(){return qe}),n.d(t,"RGBAFormat",function(){return Xe}),n.d(t,"LuminanceFormat",function(){return Je}),n.d(t,"LuminanceAlphaFormat",function(){return Ze}),n.d(t,"RGBEFormat",function(){return Ke}),n.d(t,"DepthFormat",function(){return Qe}),n.d(t,"DepthStencilFormat",function(){return et}),n.d(t,"RedFormat",function(){return tt}),n.d(t,"RGB_S3TC_DXT1_Format",function(){return nt}),n.d(t,"RGBA_S3TC_DXT1_Format",function(){return it}),n.d(t,"RGBA_S3TC_DXT3_Format",function(){return rt}),n.d(t,"RGBA_S3TC_DXT5_Format",function(){return at}),n.d(t,"RGB_PVRTC_4BPPV1_Format",function(){return ot}),n.d(t,"RGB_PVRTC_2BPPV1_Format",function(){return st}),n.d(t,"RGBA_PVRTC_4BPPV1_Format",function(){return lt}),n.d(t,"RGBA_PVRTC_2BPPV1_Format",function(){return ct}),n.d(t,"RGB_ETC1_Format",function(){return ut}),n.d(t,"RGBA_ASTC_4x4_Format",function(){return ht}),n.d(t,"RGBA_ASTC_5x4_Format",function(){return dt}),n.d(t,"RGBA_ASTC_5x5_Format",function(){return pt}),n.d(t,"RGBA_ASTC_6x5_Format",function(){return ft}),n.d(t,"RGBA_ASTC_6x6_Format",function(){return mt}),n.d(t,"RGBA_ASTC_8x5_Format",function(){return vt}),n.d(t,"RGBA_ASTC_8x6_Format",function(){return gt}),n.d(t,"RGBA_ASTC_8x8_Format",function(){return yt}),n.d(t,"RGBA_ASTC_10x5_Format",function(){return bt}),n.d(t,"RGBA_ASTC_10x6_Format",function(){return xt}),n.d(t,"RGBA_ASTC_10x8_Format",function(){return wt}),n.d(t,"RGBA_ASTC_10x10_Format",function(){return _t}),n.d(t,"RGBA_ASTC_12x10_Format",function(){return Mt}),n.d(t,"RGBA_ASTC_12x12_Format",function(){return Et}),n.d(t,"LoopOnce",function(){return Tt}),n.d(t,"LoopRepeat",function(){return St}),n.d(t,"LoopPingPong",function(){return Ct}),n.d(t,"InterpolateDiscrete",function(){return At}),n.d(t,"InterpolateLinear",function(){return Lt}),n.d(t,"InterpolateSmooth",function(){return Pt}),n.d(t,"ZeroCurvatureEnding",function(){return Ot}),n.d(t,"ZeroSlopeEnding",function(){return Rt}),n.d(t,"WrapAroundEnding",function(){return Dt}),n.d(t,"TrianglesDrawMode",function(){return It}),n.d(t,"TriangleStripDrawMode",function(){return kt}),n.d(t,"TriangleFanDrawMode",function(){return Nt}),n.d(t,"LinearEncoding",function(){return zt}),n.d(t,"sRGBEncoding",function(){return Ft}),n.d(t,"GammaEncoding",function(){return Bt}),n.d(t,"RGBEEncoding",function(){return Ht}),n.d(t,"LogLuvEncoding",function(){return jt}),n.d(t,"RGBM7Encoding",function(){return Ut}),n.d(t,"RGBM16Encoding",function(){return Gt}),n.d(t,"RGBDEncoding",function(){return Vt}),n.d(t,"BasicDepthPacking",function(){return Wt}),n.d(t,"RGBADepthPacking",function(){return $t}),n.d(t,"TangentSpaceNormalMap",function(){return Yt}),n.d(t,"ObjectSpaceNormalMap",function(){return qt}),n.d(t,"CubeGeometry",function(){return ii}),n.d(t,"Face4",function(){return Ic}),n.d(t,"LineStrip",function(){return kc}),n.d(t,"LinePieces",function(){return Nc}),n.d(t,"MeshFaceMaterial",function(){return zc}),n.d(t,"MultiMaterial",function(){return Fc}),n.d(t,"PointCloud",function(){return Bc}),n.d(t,"Particle",function(){return Hc}),n.d(t,"ParticleSystem",function(){return jc}),n.d(t,"PointCloudMaterial",function(){return Uc}),n.d(t,"ParticleBasicMaterial",function(){return Gc}),n.d(t,"ParticleSystemMaterial",function(){return Vc}),n.d(t,"Vertex",function(){return Wc}),n.d(t,"DynamicBufferAttribute",function(){return $c}),n.d(t,"Int8Attribute",function(){return Yc}),n.d(t,"Uint8Attribute",function(){return qc}),n.d(t,"Uint8ClampedAttribute",function(){return Xc}),n.d(t,"Int16Attribute",function(){return Jc}),n.d(t,"Uint16Attribute",function(){return Zc}),n.d(t,"Int32Attribute",function(){return Kc}),n.d(t,"Uint32Attribute",function(){return Qc}),n.d(t,"Float32Attribute",function(){return eu}),n.d(t,"Float64Attribute",function(){return tu}),n.d(t,"ClosedSplineCurve3",function(){return nu}),n.d(t,"SplineCurve3",function(){return iu}),n.d(t,"Spline",function(){return ru}),n.d(t,"AxisHelper",function(){return au}),n.d(t,"BoundingBoxHelper",function(){return ou}),n.d(t,"EdgesHelper",function(){return su}),n.d(t,"WireframeHelper",function(){return lu}),n.d(t,"XHRLoader",function(){return cu}),n.d(t,"BinaryTextureLoader",function(){return uu}),n.d(t,"GeometryUtils",function(){return hu}),n.d(t,"Projector",function(){return du}),n.d(t,"CanvasRenderer",function(){return pu}),n.d(t,"SceneUtils",function(){return fu}),n.d(t,"LensFlare",function(){return mu}),void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Number.isInteger&&(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}),void 0===Math.sign&&(Math.sign=function(e){return e<0?-1:e>0?1:+e}),"name"in Function.prototype==!1&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&(Object.assign=function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}),Object.assign(i.prototype,{addEventListener:function(e,t){void 0===this._listeners&&(this._listeners={});var n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)},hasEventListener:function(e,t){if(void 0===this._listeners)return!1;var n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)},removeEventListener:function(e,t){if(void 0!==this._listeners){var n=this._listeners[e];if(void 0!==n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}}},dispatchEvent:function(e){if(void 0!==this._listeners){var t=this._listeners[e.type];if(void 0!==t){e.target=this;for(var n=t.slice(0),i=0,r=n.length;i<r;i++)n[i].call(this,e)}}}});var r,a,o,s,l,c,u,h,d,p,f,m="98",v={LEFT:0,MIDDLE:1,RIGHT:2},g=0,y=1,b=2,x=3,w=0,_=1,M=0,E=1,T=2,S=0,C=1,A=2,L=1,P=2,O=0,R=1,D=2,I=0,k=1,N=2,z=3,F=4,B=5,H=100,j=101,U=102,G=103,V=104,W=200,$=201,Y=202,q=203,X=204,J=205,Z=206,K=207,Q=208,ee=209,te=210,ne=0,ie=1,re=2,ae=3,oe=4,se=5,le=6,ce=7,ue=0,he=1,de=2,pe=0,fe=1,me=2,ve=3,ge=4,ye=300,be=301,xe=302,we=303,_e=304,Me=305,Ee=306,Te=307,Se=1e3,Ce=1001,Ae=1002,Le=1003,Pe=1004,Oe=1005,Re=1006,De=1007,Ie=1008,ke=1009,Ne=1010,ze=1011,Fe=1012,Be=1013,He=1014,je=1015,Ue=1016,Ge=1017,Ve=1018,We=1019,$e=1020,Ye=1021,qe=1022,Xe=1023,Je=1024,Ze=1025,Ke=Xe,Qe=1026,et=1027,tt=1028,nt=33776,it=33777,rt=33778,at=33779,ot=35840,st=35841,lt=35842,ct=35843,ut=36196,ht=37808,dt=37809,pt=37810,ft=37811,mt=37812,vt=37813,gt=37814,yt=37815,bt=37816,xt=37817,wt=37818,_t=37819,Mt=37820,Et=37821,Tt=2200,St=2201,Ct=2202,At=2300,Lt=2301,Pt=2302,Ot=2400,Rt=2401,Dt=2402,It=0,kt=1,Nt=2,zt=3e3,Ft=3001,Bt=3007,Ht=3002,jt=3003,Ut=3004,Gt=3005,Vt=3006,Wt=3200,$t=3201,Yt=0,qt=1,Xt={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){for(var e=[],t=0;t<256;t++)e[t]=(t<16?"0":"")+t.toString(16);return function(){var t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(e[255&t]+e[t>>8&255]+e[t>>16&255]+e[t>>24&255]+"-"+e[255&n]+e[n>>8&255]+"-"+e[n>>16&15|64]+e[n>>24&255]+"-"+e[63&i|128]+e[i>>8&255]+"-"+e[i>>16&255]+e[i>>24&255]+e[255&r]+e[r>>8&255]+e[r>>16&255]+e[r>>24&255]).toUpperCase()}}(),clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},euclideanModulo:function(e,t){return(e%t+t)%t},mapLinear:function(e,t,n,i,r){return i+(e-t)*(r-i)/(n-t)},lerp:function(e,t,n){return(1-n)*e+n*t},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},degToRad:function(e){return e*Xt.DEG2RAD},radToDeg:function(e){return e*Xt.RAD2DEG},isPowerOfTwo:function(e){return 0==(e&e-1)&&0!==e},ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}};function Jt(e,t){this.x=e||0,this.y=t||0}function Zt(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function Kt(e,t,n,i){this._x=e||0,this._y=t||0,this._z=n||0,this._w=void 0!==i?i:1}function Qt(e,t,n){this.x=e||0,this.y=t||0,this.z=n||0}function en(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}Object.defineProperties(Jt.prototype,{width:{get:function(){return this.x},set:function(e){this.x=e}},height:{get:function(){return this.y},set:function(e){this.y=e}}}),Object.assign(Jt.prototype,{isVector2:!0,set:function(e,t){return this.x=e,this.y=t,this},setScalar:function(e){return this.x=e,this.y=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setComponent:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(e){return this.x=e.x,this.y=e.y,this},add:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)},addScalar:function(e){return this.x+=e,this.y+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this},sub:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this)},subScalar:function(e){return this.x-=e,this.y-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this},multiply:function(e){return this.x*=e.x,this.y*=e.y,this},multiplyScalar:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return this.x/=e.x,this.y/=e.y,this},divideScalar:function(e){return this.multiplyScalar(1/e)},applyMatrix3:function(e){var t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this},min:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this},max:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this},clamp:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this},clampScalar:(r=new Jt,a=new Jt,function(e,t){return r.set(e,e),a.set(t,t),this.clamp(r,a)}),clampLength:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))},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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(e){return this.x*e.x+this.y*e.y},cross:function(e){return this.x*e.y-this.y*e.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 e=Math.atan2(this.y,this.x);return e<0&&(e+=2*Math.PI),e},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},manhattanDistanceTo:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)},setLength:function(e){return this.normalize().multiplyScalar(e)},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},equals:function(e){return e.x===this.x&&e.y===this.y},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this},rotateAround:function(e,t){var n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,a=this.y-e.y;return this.x=r*n-a*i+e.x,this.y=r*i+a*n+e.y,this}}),Object.assign(Zt.prototype,{isMatrix4:!0,set:function(e,t,n,i,r,a,o,s,l,c,u,h,d,p,f,m){var v=this.elements;return v[0]=e,v[4]=t,v[8]=n,v[12]=i,v[1]=r,v[5]=a,v[9]=o,v[13]=s,v[2]=l,v[6]=c,v[10]=u,v[14]=h,v[3]=d,v[7]=p,v[11]=f,v[15]=m,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 Zt).fromArray(this.elements)},copy:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this},copyPosition:function(e){var t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this},extractBasis:function(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this},extractRotation:(p=new Qt,function(e){var t=this.elements,n=e.elements,i=1/p.setFromMatrixColumn(e,0).length(),r=1/p.setFromMatrixColumn(e,1).length(),a=1/p.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}),makeRotationFromEuler:function(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var t=this.elements,n=e.x,i=e.y,r=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r);if("XYZ"===e.order){var h=a*c,d=a*u,p=o*c,f=o*u;t[0]=s*c,t[4]=-s*u,t[8]=l,t[1]=d+p*l,t[5]=h-f*l,t[9]=-o*s,t[2]=f-h*l,t[6]=p+d*l,t[10]=a*s}else if("YXZ"===e.order){var m=s*c,v=s*u,g=l*c,y=l*u;t[0]=m+y*o,t[4]=g*o-v,t[8]=a*l,t[1]=a*u,t[5]=a*c,t[9]=-o,t[2]=v*o-g,t[6]=y+m*o,t[10]=a*s}else if("ZXY"===e.order){m=s*c,v=s*u,g=l*c,y=l*u;t[0]=m-y*o,t[4]=-a*u,t[8]=g+v*o,t[1]=v+g*o,t[5]=a*c,t[9]=y-m*o,t[2]=-a*l,t[6]=o,t[10]=a*s}else if("ZYX"===e.order){h=a*c,d=a*u,p=o*c,f=o*u;t[0]=s*c,t[4]=p*l-d,t[8]=h*l+f,t[1]=s*u,t[5]=f*l+h,t[9]=d*l-p,t[2]=-l,t[6]=o*s,t[10]=a*s}else if("YZX"===e.order){var b=a*s,x=a*l,w=o*s,_=o*l;t[0]=s*c,t[4]=_-b*u,t[8]=w*u+x,t[1]=u,t[5]=a*c,t[9]=-o*c,t[2]=-l*c,t[6]=x*u+w,t[10]=b-_*u}else if("XZY"===e.order){b=a*s,x=a*l,w=o*s,_=o*l;t[0]=s*c,t[4]=-u,t[8]=l*c,t[1]=b*u+_,t[5]=a*c,t[9]=x*u-w,t[2]=w*u-x,t[6]=o*c,t[10]=_*u+b}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this},makeRotationFromQuaternion:(h=new Qt(0,0,0),d=new Qt(1,1,1),function(e){return this.compose(h,e,d)}),lookAt:(l=new Qt,c=new Qt,u=new Qt,function(e,t,n){var i=this.elements;return u.subVectors(e,t),0===u.lengthSq()&&(u.z=1),u.normalize(),l.crossVectors(n,u),0===l.lengthSq()&&(1===Math.abs(n.z)?u.x+=1e-4:u.z+=1e-4,u.normalize(),l.crossVectors(n,u)),l.normalize(),c.crossVectors(u,l),i[0]=l.x,i[4]=c.x,i[8]=u.x,i[1]=l.y,i[5]=c.y,i[9]=u.y,i[2]=l.z,i[6]=c.z,i[10]=u.z,this}),multiply:function(e,t){return void 0!==t?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)},premultiply:function(e){return this.multiplyMatrices(e,this)},multiplyMatrices:function(e,t){var n=e.elements,i=t.elements,r=this.elements,a=n[0],o=n[4],s=n[8],l=n[12],c=n[1],u=n[5],h=n[9],d=n[13],p=n[2],f=n[6],m=n[10],v=n[14],g=n[3],y=n[7],b=n[11],x=n[15],w=i[0],_=i[4],M=i[8],E=i[12],T=i[1],S=i[5],C=i[9],A=i[13],L=i[2],P=i[6],O=i[10],R=i[14],D=i[3],I=i[7],k=i[11],N=i[15];return r[0]=a*w+o*T+s*L+l*D,r[4]=a*_+o*S+s*P+l*I,r[8]=a*M+o*C+s*O+l*k,r[12]=a*E+o*A+s*R+l*N,r[1]=c*w+u*T+h*L+d*D,r[5]=c*_+u*S+h*P+d*I,r[9]=c*M+u*C+h*O+d*k,r[13]=c*E+u*A+h*R+d*N,r[2]=p*w+f*T+m*L+v*D,r[6]=p*_+f*S+m*P+v*I,r[10]=p*M+f*C+m*O+v*k,r[14]=p*E+f*A+m*R+v*N,r[3]=g*w+y*T+b*L+x*D,r[7]=g*_+y*S+b*P+x*I,r[11]=g*M+y*C+b*O+x*k,r[15]=g*E+y*A+b*R+x*N,this},multiplyScalar:function(e){var t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this},applyToBufferAttribute:function(){var e=new Qt;return function(t){for(var n=0,i=t.count;n<i;n++)e.x=t.getX(n),e.y=t.getY(n),e.z=t.getZ(n),e.applyMatrix4(this),t.setXYZ(n,e.x,e.y,e.z);return t}}(),determinant:function(){var e=this.elements,t=e[0],n=e[4],i=e[8],r=e[12],a=e[1],o=e[5],s=e[9],l=e[13],c=e[2],u=e[6],h=e[10],d=e[14];return e[3]*(+r*s*u-i*l*u-r*o*h+n*l*h+i*o*d-n*s*d)+e[7]*(+t*s*d-t*l*h+r*a*h-i*a*d+i*l*c-r*s*c)+e[11]*(+t*l*u-t*o*d-r*a*u+n*a*d+r*o*c-n*l*c)+e[15]*(-i*o*c-t*s*u+t*o*h+i*a*u-n*a*h+n*s*c)},transpose:function(){var e,t=this.elements;return e=t[1],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(e){var t=this.elements;return t[12]=e.x,t[13]=e.y,t[14]=e.z,this},getInverse:function(e,t){var n=this.elements,i=e.elements,r=i[0],a=i[1],o=i[2],s=i[3],l=i[4],c=i[5],u=i[6],h=i[7],d=i[8],p=i[9],f=i[10],m=i[11],v=i[12],g=i[13],y=i[14],b=i[15],x=p*y*h-g*f*h+g*u*m-c*y*m-p*u*b+c*f*b,w=v*f*h-d*y*h-v*u*m+l*y*m+d*u*b-l*f*b,_=d*g*h-v*p*h+v*c*m-l*g*m-d*c*b+l*p*b,M=v*p*u-d*g*u-v*c*f+l*g*f+d*c*y-l*p*y,E=r*x+a*w+o*_+s*M;if(0===E){var T="THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0";if(!0===t)throw new Error(T);return console.warn(T),this.identity()}var S=1/E;return n[0]=x*S,n[1]=(g*f*s-p*y*s-g*o*m+a*y*m+p*o*b-a*f*b)*S,n[2]=(c*y*s-g*u*s+g*o*h-a*y*h-c*o*b+a*u*b)*S,n[3]=(p*u*s-c*f*s-p*o*h+a*f*h+c*o*m-a*u*m)*S,n[4]=w*S,n[5]=(d*y*s-v*f*s+v*o*m-r*y*m-d*o*b+r*f*b)*S,n[6]=(v*u*s-l*y*s-v*o*h+r*y*h+l*o*b-r*u*b)*S,n[7]=(l*f*s-d*u*s+d*o*h-r*f*h-l*o*m+r*u*m)*S,n[8]=_*S,n[9]=(v*p*s-d*g*s-v*a*m+r*g*m+d*a*b-r*p*b)*S,n[10]=(l*g*s-v*c*s+v*a*h-r*g*h-l*a*b+r*c*b)*S,n[11]=(d*c*s-l*p*s-d*a*h+r*p*h+l*a*m-r*c*m)*S,n[12]=M*S,n[13]=(d*g*o-v*p*o+v*a*f-r*g*f-d*a*y+r*p*y)*S,n[14]=(v*c*o-l*g*o-v*a*u+r*g*u+l*a*y-r*c*y)*S,n[15]=(l*p*o-d*c*o+d*a*u-r*p*u-l*a*f+r*c*f)*S,this},scale:function(e){var t=this.elements,n=e.x,i=e.y,r=e.z;return t[0]*=n,t[4]*=i,t[8]*=r,t[1]*=n,t[5]*=i,t[9]*=r,t[2]*=n,t[6]*=i,t[10]*=r,t[3]*=n,t[7]*=i,t[11]*=r,this},getMaxScaleOnAxis:function(){var e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))},makeTranslation:function(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this},makeRotationX:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this},makeRotationY:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this},makeRotationZ:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(e,t){var n=Math.cos(t),i=Math.sin(t),r=1-n,a=e.x,o=e.y,s=e.z,l=r*a,c=r*o;return this.set(l*a+n,l*o-i*s,l*s+i*o,0,l*o+i*s,c*o+n,c*s-i*a,0,l*s-i*o,c*s+i*a,r*s*s+n,0,0,0,0,1),this},makeScale:function(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this},makeShear:function(e,t,n){return this.set(1,t,n,0,e,1,n,0,e,t,1,0,0,0,0,1),this},compose:function(e,t,n){var i=this.elements,r=t._x,a=t._y,o=t._z,s=t._w,l=r+r,c=a+a,u=o+o,h=r*l,d=r*c,p=r*u,f=a*c,m=a*u,v=o*u,g=s*l,y=s*c,b=s*u,x=n.x,w=n.y,_=n.z;return i[0]=(1-(f+v))*x,i[1]=(d+b)*x,i[2]=(p-y)*x,i[3]=0,i[4]=(d-b)*w,i[5]=(1-(h+v))*w,i[6]=(m+g)*w,i[7]=0,i[8]=(p+y)*_,i[9]=(m-g)*_,i[10]=(1-(h+f))*_,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this},decompose:(o=new Qt,s=new Zt,function(e,t,n){var i=this.elements,r=o.set(i[0],i[1],i[2]).length(),a=o.set(i[4],i[5],i[6]).length(),l=o.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],s.copy(this);var c=1/r,u=1/a,h=1/l;return s.elements[0]*=c,s.elements[1]*=c,s.elements[2]*=c,s.elements[4]*=u,s.elements[5]*=u,s.elements[6]*=u,s.elements[8]*=h,s.elements[9]*=h,s.elements[10]*=h,t.setFromRotationMatrix(s),n.x=r,n.y=a,n.z=l,this}),makePerspective:function(e,t,n,i,r,a){void 0===a&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var o=this.elements,s=2*r/(t-e),l=2*r/(n-i),c=(t+e)/(t-e),u=(n+i)/(n-i),h=-(a+r)/(a-r),d=-2*a*r/(a-r);return o[0]=s,o[4]=0,o[8]=c,o[12]=0,o[1]=0,o[5]=l,o[9]=u,o[13]=0,o[2]=0,o[6]=0,o[10]=h,o[14]=d,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this},makeOrthographic:function(e,t,n,i,r,a){var o=this.elements,s=1/(t-e),l=1/(n-i),c=1/(a-r),u=(t+e)*s,h=(n+i)*l,d=(a+r)*c;return o[0]=2*s,o[4]=0,o[8]=0,o[12]=-u,o[1]=0,o[5]=2*l,o[9]=0,o[13]=-h,o[2]=0,o[6]=0,o[10]=-2*c,o[14]=-d,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this},equals:function(e){for(var t=this.elements,n=e.elements,i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0},fromArray:function(e,t){void 0===t&&(t=0);for(var n=0;n<16;n++)this.elements[n]=e[n+t];return this},toArray:function(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);var n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}),Object.assign(Kt,{slerp:function(e,t,n,i){return n.copy(e).slerp(t,i)},slerpFlat:function(e,t,n,i,r,a,o){var s=n[i+0],l=n[i+1],c=n[i+2],u=n[i+3],h=r[a+0],d=r[a+1],p=r[a+2],f=r[a+3];if(u!==f||s!==h||l!==d||c!==p){var m=1-o,v=s*h+l*d+c*p+u*f,g=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,v*g);m=Math.sin(m*x)/b,o=Math.sin(o*x)/b}var w=o*g;if(s=s*m+h*w,l=l*m+d*w,c=c*m+p*w,u=u*m+f*w,m===1-o){var _=1/Math.sqrt(s*s+l*l+c*c+u*u);s*=_,l*=_,c*=_,u*=_}}e[t]=s,e[t+1]=l,e[t+2]=c,e[t+3]=u}}),Object.defineProperties(Kt.prototype,{x:{get:function(){return this._x},set:function(e){this._x=e,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(e){this._y=e,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(e){this._z=e,this.onChangeCallback()}},w:{get:function(){return this._w},set:function(e){this._w=e,this.onChangeCallback()}}}),Object.assign(Kt.prototype,{isQuaternion:!0,set:function(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this.onChangeCallback(),this},setFromEuler:function(e,t){if(!e||!e.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=e._x,i=e._y,r=e._z,a=e.order,o=Math.cos,s=Math.sin,l=o(n/2),c=o(i/2),u=o(r/2),h=s(n/2),d=s(i/2),p=s(r/2);return"XYZ"===a?(this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p):"YXZ"===a?(this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p):"ZXY"===a?(this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p):"ZYX"===a?(this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p):"YZX"===a?(this._x=h*c*u+l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u-h*d*p):"XZY"===a&&(this._x=h*c*u-l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u+h*d*p),!1!==t&&this.onChangeCallback(),this},setFromAxisAngle:function(e,t){var n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(e){var t,n=e.elements,i=n[0],r=n[4],a=n[8],o=n[1],s=n[5],l=n[9],c=n[2],u=n[6],h=n[10],d=i+s+h;return d>0?(t=.5/Math.sqrt(d+1),this._w=.25/t,this._x=(u-l)*t,this._y=(a-c)*t,this._z=(o-r)*t):i>s&&i>h?(t=2*Math.sqrt(1+i-s-h),this._w=(u-l)/t,this._x=.25*t,this._y=(r+o)/t,this._z=(a+c)/t):s>h?(t=2*Math.sqrt(1+s-i-h),this._w=(a-c)/t,this._x=(r+o)/t,this._y=.25*t,this._z=(l+u)/t):(t=2*Math.sqrt(1+h-i-s),this._w=(o-r)/t,this._x=(a+c)/t,this._y=(l+u)/t,this._z=.25*t),this.onChangeCallback(),this},setFromUnitVectors:function(){var e,t=new Qt;return function(n,i){return void 0===t&&(t=new Qt),(e=n.dot(i)+1)<1e-6?(e=0,Math.abs(n.x)>Math.abs(n.z)?t.set(-n.y,n.x,0):t.set(0,-n.z,n.y)):t.crossVectors(n,i),this._x=t.x,this._y=t.y,this._z=t.z,this._w=e,this.normalize()}}(),angleTo:function(e){return 2*Math.acos(Math.abs(Xt.clamp(this.dot(e),-1,1)))},rotateTowards:function(e,t){var n=this.angleTo(e);if(0===n)return this;var i=Math.min(1,t/n);return this.slerp(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(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._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 e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this.onChangeCallback(),this},multiply:function(e,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)},premultiply:function(e){return this.multiplyQuaternions(e,this)},multiplyQuaternions:function(e,t){var n=e._x,i=e._y,r=e._z,a=e._w,o=t._x,s=t._y,l=t._z,c=t._w;return this._x=n*c+a*o+i*l-r*s,this._y=i*c+a*s+r*o-n*l,this._z=r*c+a*l+n*s-i*o,this._w=a*c-n*o-i*s-r*l,this.onChangeCallback(),this},slerp:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var n=this._x,i=this._y,r=this._z,a=this._w,o=a*e._w+n*e._x+i*e._y+r*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=i,this._z=r,this;var s=1-o*o;if(s<=Number.EPSILON){var l=1-t;return this._w=l*a+t*this._w,this._x=l*n+t*this._x,this._y=l*i+t*this._y,this._z=l*r+t*this._z,this.normalize()}var c=Math.sqrt(s),u=Math.atan2(c,o),h=Math.sin((1-t)*u)/c,d=Math.sin(t*u)/c;return this._w=a*h+this._w*d,this._x=n*h+this._x*d,this._y=i*h+this._y*d,this._z=r*h+this._z*d,this.onChangeCallback(),this},equals:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w},fromArray:function(e,t){return void 0===t&&(t=0),this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this.onChangeCallback(),this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e},onChange:function(e){return this.onChangeCallback=e,this},onChangeCallback:function(){}}),Object.assign(Qt.prototype,{isVector3:!0,set:function(e,t,n){return this.x=e,this.y=t,this.z=n,this},setScalar:function(e){return this.x=e,this.y=e,this.z=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setComponent:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this},add:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this},sub:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)},subScalar:function(e){return this.x-=e,this.y-=e,this.z-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this},multiply:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)},multiplyScalar:function(e){return this.x*=e,this.y*=e,this.z*=e,this},multiplyVectors:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this},applyEuler:(f=new Kt,function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(f.setFromEuler(e))}),applyAxisAngle:function(){var e=new Kt;return function(t,n){return this.applyQuaternion(e.setFromAxisAngle(t,n))}}(),applyMatrix3:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this},applyMatrix4:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements,a=1/(r[3]*t+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*i+r[12])*a,this.y=(r[1]*t+r[5]*n+r[9]*i+r[13])*a,this.z=(r[2]*t+r[6]*n+r[10]*i+r[14])*a,this},applyQuaternion:function(e){var t=this.x,n=this.y,i=this.z,r=e.x,a=e.y,o=e.z,s=e.w,l=s*t+a*i-o*n,c=s*n+o*t-r*i,u=s*i+r*n-a*t,h=-r*t-a*n-o*i;return this.x=l*s+h*-r+c*-o-u*-a,this.y=c*s+h*-a+u*-r-l*-o,this.z=u*s+h*-o+l*-a-c*-r,this},project:function(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)},unproject:function(){var e=new Zt;return function(t){return this.applyMatrix4(e.getInverse(t.projectionMatrix)).applyMatrix4(t.matrixWorld)}}(),transformDirection:function(e){var t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()},divide:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this},divideScalar:function(e){return this.multiplyScalar(1/e)},min:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this},max:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this},clamp:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this},clampScalar:function(){var e=new Qt,t=new Qt;return function(n,i){return e.set(n,n,n),t.set(i,i,i),this.clamp(e,t)}}(),clampLength:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))},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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?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(e){return this.x*e.x+this.y*e.y+this.z*e.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(e){return this.normalize().multiplyScalar(e)},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},cross:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t)):this.crossVectors(this,e)},crossVectors:function(e,t){var n=e.x,i=e.y,r=e.z,a=t.x,o=t.y,s=t.z;return this.x=i*s-r*o,this.y=r*a-n*s,this.z=n*o-i*a,this},projectOnVector:function(e){var t=e.dot(this)/e.lengthSq();return this.copy(e).multiplyScalar(t)},projectOnPlane:function(){var e=new Qt;return function(t){return e.copy(this).projectOnVector(t),this.sub(e)}}(),reflect:function(){var e=new Qt;return function(t){return this.sub(e.copy(t).multiplyScalar(2*this.dot(t)))}}(),angleTo:function(e){var t=this.dot(e)/Math.sqrt(this.lengthSq()*e.lengthSq());return Math.acos(Xt.clamp(t,-1,1))},distanceTo:function(e){return Math.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){var t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i},manhattanDistanceTo:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)},setFromSpherical:function(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)},setFromSphericalCoords:function(e,t,n){var i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this},setFromCylindrical:function(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)},setFromCylindricalCoords:function(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this},setFromMatrixPosition:function(e){var t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this},setFromMatrixScale:function(e){var t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this},setFromMatrixColumn:function(e,t){return this.fromArray(e.elements,4*t)},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}}),Object.assign(en.prototype,{isMatrix3:!0,set:function(e,t,n,i,r,a,o,s,l){var c=this.elements;return c[0]=e,c[1]=i,c[2]=o,c[3]=t,c[4]=r,c[5]=s,c[6]=n,c[7]=a,c[8]=l,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(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this},setFromMatrix4:function(e){var t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this},applyToBufferAttribute:function(){var e=new Qt;return function(t){for(var n=0,i=t.count;n<i;n++)e.x=t.getX(n),e.y=t.getY(n),e.z=t.getZ(n),e.applyMatrix3(this),t.setXYZ(n,e.x,e.y,e.z);return t}}(),multiply:function(e){return this.multiplyMatrices(this,e)},premultiply:function(e){return this.multiplyMatrices(e,this)},multiplyMatrices:function(e,t){var n=e.elements,i=t.elements,r=this.elements,a=n[0],o=n[3],s=n[6],l=n[1],c=n[4],u=n[7],h=n[2],d=n[5],p=n[8],f=i[0],m=i[3],v=i[6],g=i[1],y=i[4],b=i[7],x=i[2],w=i[5],_=i[8];return r[0]=a*f+o*g+s*x,r[3]=a*m+o*y+s*w,r[6]=a*v+o*b+s*_,r[1]=l*f+c*g+u*x,r[4]=l*m+c*y+u*w,r[7]=l*v+c*b+u*_,r[2]=h*f+d*g+p*x,r[5]=h*m+d*y+p*w,r[8]=h*v+d*b+p*_,this},multiplyScalar:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this},determinant:function(){var e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],o=e[5],s=e[6],l=e[7],c=e[8];return t*a*c-t*o*l-n*r*c+n*o*s+i*r*l-i*a*s},getInverse:function(e,t){e&&e.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var n=e.elements,i=this.elements,r=n[0],a=n[1],o=n[2],s=n[3],l=n[4],c=n[5],u=n[6],h=n[7],d=n[8],p=d*l-c*h,f=c*u-d*s,m=h*s-l*u,v=r*p+a*f+o*m;if(0===v){var g="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(!0===t)throw new Error(g);return console.warn(g),this.identity()}var y=1/v;return i[0]=p*y,i[1]=(o*h-d*a)*y,i[2]=(c*a-o*l)*y,i[3]=f*y,i[4]=(d*r-o*u)*y,i[5]=(o*s-c*r)*y,i[6]=m*y,i[7]=(a*u-h*r)*y,i[8]=(l*r-a*s)*y,this},transpose:function(){var e,t=this.elements;return e=t[1],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(e){return this.setFromMatrix4(e).getInverse(this).transpose()},transposeIntoArray:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this},setUvTransform:function(e,t,n,i,r,a,o){var s=Math.cos(r),l=Math.sin(r);this.set(n*s,n*l,-n*(s*a+l*o)+a+e,-i*l,i*s,-i*(-l*a+s*o)+o+t,0,0,1)},scale:function(e,t){var n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=t,n[4]*=t,n[7]*=t,this},rotate:function(e){var t=Math.cos(e),n=Math.sin(e),i=this.elements,r=i[0],a=i[3],o=i[6],s=i[1],l=i[4],c=i[7];return i[0]=t*r+n*s,i[3]=t*a+n*l,i[6]=t*o+n*c,i[1]=-n*r+t*s,i[4]=-n*a+t*l,i[7]=-n*o+t*c,this},translate:function(e,t){var n=this.elements;return n[0]+=e*n[2],n[3]+=e*n[5],n[6]+=e*n[8],n[1]+=t*n[2],n[4]+=t*n[5],n[7]+=t*n[8],this},equals:function(e){for(var t=this.elements,n=e.elements,i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0},fromArray:function(e,t){void 0===t&&(t=0);for(var n=0;n<9;n++)this.elements[n]=e[n+t];return this},toArray:function(e,t){void 0===e&&(e=[]),void 0===t&&(t=0);var n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}});var tn,nn,rn,an,on,sn={getDataURL:function(e){var t;if("undefined"==typeof HTMLCanvasElement)return e.src;if(e instanceof HTMLCanvasElement)t=e;else{(t=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")).width=e.width,t.height=e.height;var n=t.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height)}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}},ln=0;function cn(e,t,n,i,r,a,o,s,l,c){Object.defineProperty(this,"id",{value:ln++}),this.uuid=Xt.generateUUID(),this.name="",this.image=void 0!==e?e:cn.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==t?t:cn.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:Ce,this.wrapT=void 0!==i?i:Ce,this.magFilter=void 0!==r?r:Re,this.minFilter=void 0!==a?a:Ie,this.anisotropy=void 0!==l?l:1,this.format=void 0!==o?o:Xe,this.type=void 0!==s?s:ke,this.offset=new Jt(0,0),this.repeat=new Jt(1,1),this.center=new Jt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new en,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==c?c:zt,this.version=0,this.onUpdate=null}function un(e,t,n,i){this.x=e||0,this.y=t||0,this.z=n||0,this.w=void 0!==i?i:1}function hn(e,t,n){this.width=e,this.height=t,this.scissor=new un(0,0,e,t),this.scissorTest=!1,this.viewport=new un(0,0,e,t),void 0===(n=n||{}).minFilter&&(n.minFilter=Re),this.texture=new cn(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.generateMipmaps=void 0===n.generateMipmaps||n.generateMipmaps,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0===n.stencilBuffer||n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}function dn(e,t,n){hn.call(this,e,t,n),this.activeCubeFace=0,this.activeMipMapLevel=0}function pn(e,t,n,i,r,a,o,s,l,c,u,h){cn.call(this,null,a,o,s,l,c,i,r,u,h),this.image={data:e,width:t,height:n},this.magFilter=void 0!==l?l:Le,this.minFilter=void 0!==c?c:Le,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}function fn(e,t){this.min=void 0!==e?e:new Qt(1/0,1/0,1/0),this.max=void 0!==t?t:new Qt(-1/0,-1/0,-1/0)}function mn(e,t){this.center=void 0!==e?e:new Qt,this.radius=void 0!==t?t:0}function vn(e,t){this.normal=void 0!==e?e:new Qt(1,0,0),this.constant=void 0!==t?t:0}function gn(e,t,n,i,r,a){this.planes=[void 0!==e?e:new vn,void 0!==t?t:new vn,void 0!==n?n:new vn,void 0!==i?i:new vn,void 0!==r?r:new vn,void 0!==a?a:new vn]}cn.DEFAULT_IMAGE=void 0,cn.DEFAULT_MAPPING=ye,cn.prototype=Object.assign(Object.create(i.prototype),{constructor:cn,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(e){return this.name=e.name,this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this},toJSON:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];var n={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(void 0!==this.image){var i=this.image;if(void 0===i.uuid&&(i.uuid=Xt.generateUUID()),!t&&void 0===e.images[i.uuid]){var r;if(Array.isArray(i)){r=[];for(var a=0,o=i.length;a<o;a++)r.push(sn.getDataURL(i[a]))}else r=sn.getDataURL(i);e.images[i.uuid]={uuid:i.uuid,url:r}}n.image=i.uuid}return t||(e.textures[this.uuid]=n),n},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(e){if(this.mapping!==ye)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Se:e.x=e.x-Math.floor(e.x);break;case Ce:e.x=e.x<0?0:1;break;case Ae:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Se:e.y=e.y-Math.floor(e.y);break;case Ce:e.y=e.y<0?0:1;break;case Ae:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}}),Object.defineProperty(cn.prototype,"needsUpdate",{set:function(e){!0===e&&this.version++}}),Object.assign(un.prototype,{isVector4:!0,set:function(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this},setScalar:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setZ:function(e){return this.z=e,this},setW:function(e){return this.w=e,this},setComponent:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this},getComponent:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this},add:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)},addScalar:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this},addVectors:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this},addScaledVector:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this},sub:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)},subScalar:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this},multiplyScalar:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this},applyMatrix4:function(e){var t=this.x,n=this.y,i=this.z,r=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*t+a[5]*n+a[9]*i+a[13]*r,this.z=a[2]*t+a[6]*n+a[10]*i+a[14]*r,this.w=a[3]*t+a[7]*n+a[11]*i+a[15]*r,this},divideScalar:function(e){return this.multiplyScalar(1/e)},setAxisAngleFromQuaternion:function(e){this.w=2*Math.acos(e.w);var t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this},setAxisAngleFromRotationMatrix:function(e){var t,n,i,r,a=e.elements,o=a[0],s=a[4],l=a[8],c=a[1],u=a[5],h=a[9],d=a[2],p=a[6],f=a[10];if(Math.abs(s-c)<.01&&Math.abs(l-d)<.01&&Math.abs(h-p)<.01){if(Math.abs(s+c)<.1&&Math.abs(l+d)<.1&&Math.abs(h+p)<.1&&Math.abs(o+u+f-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;var m=(o+1)/2,v=(u+1)/2,g=(f+1)/2,y=(s+c)/4,b=(l+d)/4,x=(h+p)/4;return m>v&&m>g?m<.01?(n=0,i=.707106781,r=.707106781):(i=y/(n=Math.sqrt(m)),r=b/n):v>g?v<.01?(n=.707106781,i=0,r=.707106781):(n=y/(i=Math.sqrt(v)),r=x/i):g<.01?(n=.707106781,i=.707106781,r=0):(n=b/(r=Math.sqrt(g)),i=x/r),this.set(n,i,r,t),this}var w=Math.sqrt((p-h)*(p-h)+(l-d)*(l-d)+(c-s)*(c-s));return Math.abs(w)<.001&&(w=1),this.x=(p-h)/w,this.y=(l-d)/w,this.z=(c-s)/w,this.w=Math.acos((o+u+f-1)/2),this},min:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this},max:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this},clamp:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this},clampScalar:function(){var e,t;return function(n,i){return void 0===e&&(e=new un,t=new un),e.set(n,n,n,n),t.set(i,i,i,i),this.clamp(e,t)}}(),clampLength:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))},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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?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(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.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(e){return this.normalize().multiplyScalar(e)},lerp:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this},lerpVectors:function(e,t,n){return this.subVectors(t,e).multiplyScalar(n).add(e)},equals:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w},fromArray:function(e,t){return void 0===t&&(t=0),this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e},fromBufferAttribute:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}}),hn.prototype=Object.assign(Object.create(i.prototype),{constructor:hn,isWebGLRenderTarget:!0,setSize:function(e,t){this.width===e&&this.height===t||(this.width=e,this.height=t,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.width=e.width,this.height=e.height,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),dn.prototype=Object.create(hn.prototype),dn.prototype.constructor=dn,dn.prototype.isWebGLRenderTargetCube=!0,pn.prototype=Object.create(cn.prototype),pn.prototype.constructor=pn,pn.prototype.isDataTexture=!0,Object.assign(fn.prototype,{isBox3:!0,set:function(e,t){return this.min.copy(e),this.max.copy(t),this},setFromArray:function(e){for(var t=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=e.length;s<l;s+=3){var c=e[s],u=e[s+1],h=e[s+2];c<t&&(t=c),u<n&&(n=u),h<i&&(i=h),c>r&&(r=c),u>a&&(a=u),h>o&&(o=h)}return this.min.set(t,n,i),this.max.set(r,a,o),this},setFromBufferAttribute:function(e){for(var t=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=e.count;s<l;s++){var c=e.getX(s),u=e.getY(s),h=e.getZ(s);c<t&&(t=c),u<n&&(n=u),h<i&&(i=h),c>r&&(r=c),u>a&&(a=u),h>o&&(o=h)}return this.min.set(t,n,i),this.max.set(r,a,o),this},setFromPoints:function(e){this.makeEmpty();for(var t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this},setFromCenterAndSize:function(){var e=new Qt;return function(t,n){var i=e.copy(n).multiplyScalar(.5);return this.min.copy(t).sub(i),this.max.copy(t).add(i),this}}(),setFromObject:function(e){return this.makeEmpty(),this.expandByObject(e)},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.min.copy(e.min),this.max.copy(e.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(e){return void 0===e&&(console.warn("THREE.Box3: .getCenter() target is now required"),e=new Qt),this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(e){return void 0===e&&(console.warn("THREE.Box3: .getSize() target is now required"),e=new Qt),this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)},expandByPoint:function(e){return this.min.min(e),this.max.max(e),this},expandByVector:function(e){return this.min.sub(e),this.max.add(e),this},expandByScalar:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this},expandByObject:function(){var e,t,n,i=new Qt;function r(r){var a=r.geometry;if(void 0!==a)if(a.isGeometry){var o=a.vertices;for(t=0,n=o.length;t<n;t++)i.copy(o[t]),i.applyMatrix4(r.matrixWorld),e.expandByPoint(i)}else if(a.isBufferGeometry){var s=a.attributes.position;if(void 0!==s)for(t=0,n=s.count;t<n;t++)i.fromBufferAttribute(s,t).applyMatrix4(r.matrixWorld),e.expandByPoint(i)}}return function(t){return e=this,t.updateMatrixWorld(!0),t.traverse(r),this}}(),containsPoint:function(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)},containsBox:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z},getParameter:function(e,t){return void 0===t&&(console.warn("THREE.Box3: .getParameter() target is now required"),t=new Qt),t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)},intersectsSphere:(nn=new Qt,function(e){return this.clampPoint(e.center,nn),nn.distanceToSquared(e.center)<=e.radius*e.radius}),intersectsPlane:function(e){var t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant},intersectsTriangle:function(){var e=new Qt,t=new Qt,n=new Qt,i=new Qt,r=new Qt,a=new Qt,o=new Qt,s=new Qt,l=new Qt,c=new Qt;function u(i){var r,a;for(r=0,a=i.length-3;r<=a;r+=3){o.fromArray(i,r);var s=l.x*Math.abs(o.x)+l.y*Math.abs(o.y)+l.z*Math.abs(o.z),c=e.dot(o),u=t.dot(o),h=n.dot(o);if(Math.max(-Math.max(c,u,h),Math.min(c,u,h))>s)return!1}return!0}return function(o){if(this.isEmpty())return!1;this.getCenter(s),l.subVectors(this.max,s),e.subVectors(o.a,s),t.subVectors(o.b,s),n.subVectors(o.c,s),i.subVectors(t,e),r.subVectors(n,t),a.subVectors(e,n);var h=[0,-i.z,i.y,0,-r.z,r.y,0,-a.z,a.y,i.z,0,-i.x,r.z,0,-r.x,a.z,0,-a.x,-i.y,i.x,0,-r.y,r.x,0,-a.y,a.x,0];return!!u(h)&&(!!u(h=[1,0,0,0,1,0,0,0,1])&&(c.crossVectors(i,r),u(h=[c.x,c.y,c.z])))}}(),clampPoint:function(e,t){return void 0===t&&(console.warn("THREE.Box3: .clampPoint() target is now required"),t=new Qt),t.copy(e).clamp(this.min,this.max)},distanceToPoint:function(){var e=new Qt;return function(t){return e.copy(t).clamp(this.min,this.max).sub(t).length()}}(),getBoundingSphere:function(){var e=new Qt;return function(t){return void 0===t&&(console.warn("THREE.Box3: .getBoundingSphere() target is now required"),t=new mn),this.getCenter(t.center),t.radius=.5*this.getSize(e).length(),t}}(),intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},applyMatrix4:(tn=[new Qt,new Qt,new Qt,new Qt,new Qt,new Qt,new Qt,new Qt],function(e){return this.isEmpty()?this:(tn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),tn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),tn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),tn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),tn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),tn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),tn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),tn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(tn),this)}),translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}),Object.assign(mn.prototype,{set:function(e,t){return this.center.copy(e),this.radius=t,this},setFromPoints:(rn=new fn,function(e,t){var n=this.center;void 0!==t?n.copy(t):rn.setFromPoints(e).getCenter(n);for(var i=0,r=0,a=e.length;r<a;r++)i=Math.max(i,n.distanceToSquared(e[r]));return this.radius=Math.sqrt(i),this}),clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.center.copy(e.center),this.radius=e.radius,this},empty:function(){return this.radius<=0},containsPoint:function(e){return e.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(e){return e.distanceTo(this.center)-this.radius},intersectsSphere:function(e){var t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t},intersectsBox:function(e){return e.intersectsSphere(this)},intersectsPlane:function(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius},clampPoint:function(e,t){var n=this.center.distanceToSquared(e);return void 0===t&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),t=new Qt),t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t},getBoundingBox:function(e){return void 0===e&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),e=new fn),e.set(this.center,this.center),e.expandByScalar(this.radius),e},applyMatrix4:function(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this},translate:function(e){return this.center.add(e),this},equals:function(e){return e.center.equals(this.center)&&e.radius===this.radius}}),Object.assign(vn.prototype,{set:function(e,t){return this.normal.copy(e),this.constant=t,this},setComponents:function(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this},setFromNormalAndCoplanarPoint:function(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this},setFromCoplanarPoints:function(){var e=new Qt,t=new Qt;return function(n,i,r){var a=e.subVectors(r,i).cross(t.subVectors(n,i)).normalize();return this.setFromNormalAndCoplanarPoint(a,n),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.normal.copy(e.normal),this.constant=e.constant,this},normalize:function(){var e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(e){return this.normal.dot(e)+this.constant},distanceToSphere:function(e){return this.distanceToPoint(e.center)-e.radius},projectPoint:function(e,t){return void 0===t&&(console.warn("THREE.Plane: .projectPoint() target is now required"),t=new Qt),t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)},intersectLine:function(){var e=new Qt;return function(t,n){void 0===n&&(console.warn("THREE.Plane: .intersectLine() target is now required"),n=new Qt);var i=t.delta(e),r=this.normal.dot(i);if(0===r)return 0===this.distanceToPoint(t.start)?n.copy(t.start):void 0;var a=-(t.start.dot(this.normal)+this.constant)/r;return a<0||a>1?void 0:n.copy(i).multiplyScalar(a).add(t.start)}}(),intersectsLine:function(e){var t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0},intersectsBox:function(e){return e.intersectsPlane(this)},intersectsSphere:function(e){return e.intersectsPlane(this)},coplanarPoint:function(e){return void 0===e&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),e=new Qt),e.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var e=new Qt,t=new en;return function(n,i){var r=i||t.getNormalMatrix(n),a=this.coplanarPoint(e).applyMatrix4(n),o=this.normal.applyMatrix3(r).normalize();return this.constant=-a.dot(o),this}}(),translate:function(e){return this.constant-=e.dot(this.normal),this},equals:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}}),Object.assign(gn.prototype,{set:function(e,t,n,i,r,a){var o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(i),o[4].copy(r),o[5].copy(a),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){for(var t=this.planes,n=0;n<6;n++)t[n].copy(e.planes[n]);return this},setFromMatrix:function(e){var t=this.planes,n=e.elements,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5],c=n[6],u=n[7],h=n[8],d=n[9],p=n[10],f=n[11],m=n[12],v=n[13],g=n[14],y=n[15];return t[0].setComponents(o-i,u-s,f-h,y-m).normalize(),t[1].setComponents(o+i,u+s,f+h,y+m).normalize(),t[2].setComponents(o+r,u+l,f+d,y+v).normalize(),t[3].setComponents(o-r,u-l,f-d,y-v).normalize(),t[4].setComponents(o-a,u-c,f-p,y-g).normalize(),t[5].setComponents(o+a,u+c,f+p,y+g).normalize(),this},intersectsObject:(on=new mn,function(e){var t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),on.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(on)}),intersectsSprite:function(){var e=new mn;return function(t){return e.center.set(0,0,0),e.radius=.7071067811865476,e.applyMatrix4(t.matrixWorld),this.intersectsSphere(e)}}(),intersectsSphere:function(e){for(var t=this.planes,n=e.center,i=-e.radius,r=0;r<6;r++){if(t[r].distanceToPoint(n)<i)return!1}return!0},intersectsBox:(an=new Qt,function(e){for(var t=this.planes,n=0;n<6;n++){var i=t[n];if(an.x=i.normal.x>0?e.max.x:e.min.x,an.y=i.normal.y>0?e.max.y:e.min.y,an.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(an)<0)return!1}return!0}),containsPoint:function(e){for(var t=this.planes,n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}});var yn,bn,xn,wn={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif\n",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif\n",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif\n",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif\n",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"\nvec3 transformed = vec3( position );\n",beginnormal_vertex:"\nvec3 objectNormal = vec3( normal );\n",bsdfs:"float punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNL = saturate( dot( geometry.normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE  = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS  = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 AB = vec2( -1.04, 1.04 ) * a004 + r.zw;\n\treturn specularColor * AB.x + AB.y;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 );\n\t\tfDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif\n",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\tif ( clipped ) discard;\n\t#endif\n#endif\n",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\t#if ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP )\n\t\tvarying vec3 vViewPosition;\n\t#endif\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif\n",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP )\n\tvarying vec3 vViewPosition;\n#endif\n",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n",color_fragment:"#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif\n",color_pars_vertex:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",color_vertex:"#ifdef USE_COLOR\n\tvColor.xyz = color.xyz;\n#endif",common:"#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI_HALF 1.5707963267949\n#define RECIPROCAL_PI 0.31830988618\n#define RECIPROCAL_PI2 0.15915494\n#define LOG2 1.442695\n#define EPSILON 1e-6\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#define whiteCompliment(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\n",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n#define cubeUV_textureSize (1024.0)\nint getFaceFromDirection(vec3 direction) {\n\tvec3 absDirection = abs(direction);\n\tint face = -1;\n\tif( absDirection.x > absDirection.z ) {\n\t\tif(absDirection.x > absDirection.y )\n\t\t\tface = direction.x > 0.0 ? 0 : 3;\n\t\telse\n\t\t\tface = direction.y > 0.0 ? 1 : 4;\n\t}\n\telse {\n\t\tif(absDirection.z > absDirection.y )\n\t\t\tface = direction.z > 0.0 ? 2 : 5;\n\t\telse\n\t\t\tface = direction.y > 0.0 ? 1 : 4;\n\t}\n\treturn face;\n}\n#define cubeUV_maxLods1  (log2(cubeUV_textureSize*0.25) - 1.0)\n#define cubeUV_rangeClamp (exp2((6.0 - 1.0) * 2.0))\nvec2 MipLevelInfo( vec3 vec, float roughnessLevel, float roughness ) {\n\tfloat scale = exp2(cubeUV_maxLods1 - roughnessLevel);\n\tfloat dxRoughness = dFdx(roughness);\n\tfloat dyRoughness = dFdy(roughness);\n\tvec3 dx = dFdx( vec * scale * dxRoughness );\n\tvec3 dy = dFdy( vec * scale * dyRoughness );\n\tfloat d = max( dot( dx, dx ), dot( dy, dy ) );\n\td = clamp(d, 1.0, cubeUV_rangeClamp);\n\tfloat mipLevel = 0.5 * log2(d);\n\treturn vec2(floor(mipLevel), fract(mipLevel));\n}\n#define cubeUV_maxLods2 (log2(cubeUV_textureSize*0.25) - 2.0)\n#define cubeUV_rcpTextureSize (1.0 / cubeUV_textureSize)\nvec2 getCubeUV(vec3 direction, float roughnessLevel, float mipLevel) {\n\tmipLevel = roughnessLevel > cubeUV_maxLods2 - 3.0 ? 0.0 : mipLevel;\n\tfloat a = 16.0 * cubeUV_rcpTextureSize;\n\tvec2 exp2_packed = exp2( vec2( roughnessLevel, mipLevel ) );\n\tvec2 rcp_exp2_packed = vec2( 1.0 ) / exp2_packed;\n\tfloat powScale = exp2_packed.x * exp2_packed.y;\n\tfloat scale = rcp_exp2_packed.x * rcp_exp2_packed.y * 0.25;\n\tfloat mipOffset = 0.75*(1.0 - rcp_exp2_packed.y) * rcp_exp2_packed.x;\n\tbool bRes = mipLevel == 0.0;\n\tscale =  bRes && (scale < a) ? a : scale;\n\tvec3 r;\n\tvec2 offset;\n\tint face = getFaceFromDirection(direction);\n\tfloat rcpPowScale = 1.0 / powScale;\n\tif( face == 0) {\n\t\tr = vec3(direction.x, -direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 1) {\n\t\tr = vec3(direction.y, direction.x, direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 2) {\n\t\tr = vec3(direction.z, direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 3) {\n\t\tr = vec3(direction.x, direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\telse if( face == 4) {\n\t\tr = vec3(direction.y, direction.x, -direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\telse {\n\t\tr = vec3(direction.z, -direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\tr = normalize(r);\n\tfloat texelOffset = 0.5 * cubeUV_rcpTextureSize;\n\tvec2 s = ( r.yz / abs( r.x ) + vec2( 1.0 ) ) * 0.5;\n\tvec2 base = offset + vec2( texelOffset );\n\treturn base + s * ( scale - 2.0 * texelOffset );\n}\n#define cubeUV_maxLods3 (log2(cubeUV_textureSize*0.25) - 3.0)\nvec4 textureCubeUV( sampler2D envMap, vec3 reflectedDirection, float roughness ) {\n\tfloat roughnessVal = roughness* cubeUV_maxLods3;\n\tfloat r1 = floor(roughnessVal);\n\tfloat r2 = r1 + 1.0;\n\tfloat t = fract(roughnessVal);\n\tvec2 mipInfo = MipLevelInfo(reflectedDirection, r1, roughness);\n\tfloat s = mipInfo.y;\n\tfloat level0 = mipInfo.x;\n\tfloat level1 = level0 + 1.0;\n\tlevel1 = level1 > 5.0 ? 5.0 : level1;\n\tlevel0 += min( floor( s + 0.5 ), 5.0 );\n\tvec2 uv_10 = getCubeUV(reflectedDirection, r1, level0);\n\tvec4 color10 = envMapTexelToLinear(texture2D(envMap, uv_10));\n\tvec2 uv_20 = getCubeUV(reflectedDirection, r2, level0);\n\tvec4 color20 = envMapTexelToLinear(texture2D(envMap, uv_20));\n\tvec4 result = mix(color10, color20, t);\n\treturn vec4(result.rgb, 1.0);\n}\n#endif\n",defaultnormal_vertex:"vec3 transformedNormal = normalMatrix * objectNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif\n",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );\n#endif\n",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif\n",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif\n",encodings_fragment:"  gl_FragColor = linearToOutputTexel( gl_FragColor );\n",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = min( floor( D ) / 255.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value )  {\n\tvec3 Xp_Y_XYZp = value.rgb * cLogLuvM;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\n}\n",envmap_fragment:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\tvec2 sampleUV;\n\t\treflectVec = normalize( reflectVec );\n\t\tsampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\t\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\tvec4 envColor = texture2D( envMap, sampleUV );\n\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\treflectVec = normalize( reflectVec );\n\t\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0, 0.0, 1.0 ) );\n\t\tvec4 envColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\tenvColor = envMapTexelToLinear( envColor );\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif\n",envmap_pars_fragment:"#if defined( USE_ENVMAP ) || defined( PHYSICAL )\n\tuniform float reflectivity;\n\tuniform float envMapIntensity;\n#endif\n#ifdef USE_ENVMAP\n\t#if ! defined( PHYSICAL ) && ( defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) )\n\t\tvarying vec3 vWorldPosition;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( PHYSICAL )\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif\n",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif\n",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, queryVec, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -geometry.viewDir, geometry.normal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -geometry.viewDir, geometry.normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( blinnShininessExponent, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent ));\n\t\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\t\tvec2 sampleUV;\n\t\t\tsampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\t\t\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\t\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0,0.0,1.0 ) );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif\n",envmap_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif\n",fog_vertex:"#ifdef USE_FOG\n\tfogDepth = -mvPosition.z;\n#endif\n",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif\n",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = whiteCompliment( exp2( - fogDensity * fogDensity * fogDepth * fogDepth * LOG2 ) );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif\n",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif\n",gradientmap_pars_fragment:"#ifdef TOON\n\tuniform sampler2D gradientMap;\n\tvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\t\tfloat dotNL = dot( normal, lightDirection );\n\t\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t\t#ifdef USE_GRADIENTMAP\n\t\t\treturn texture2D( gradientMap, coord ).rgb;\n\t\t#else\n\t\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t\t#endif\n\t}\n#endif\n",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\treflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n#endif\n",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvLightFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n#endif\n",lights_pars_begin:"uniform vec3 ambientLightColor;\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t\tfloat shadowCameraNear;\n\t\tfloat shadowCameraFar;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight  ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif\n",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;\n",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3\tdiffuseColor;\n\tvec3\tspecularColor;\n\tfloat\tspecularShininess;\n\tfloat\tspecularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\t#ifdef TOON\n\t\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#else\n\t\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\t\tvec3 irradiance = dotNL * directLight.color;\n\t#endif\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)\n",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nmaterial.specularRoughness = clamp( roughnessFactor, 0.04, 1.0 );\n#ifdef STANDARD\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.clearCoat = saturate( clearCoat );\tmaterial.clearCoatRoughness = clamp( clearCoatRoughness, 0.04, 1.0 );\n#endif\n",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3\tdiffuseColor;\n\tfloat\tspecularRoughness;\n\tvec3\tspecularColor;\n\t#ifndef STANDARD\n\t\tfloat clearCoat;\n\t\tfloat clearCoatRoughness;\n\t#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearCoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos - halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos + halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos + halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos - halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifndef STANDARD\n\t\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\n\t#else\n\t\tfloat clearCoatDHR = 0.0;\n\t#endif\n\treflectedLight.directSpecular += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry, material.specularColor, material.specularRoughness );\n\treflectedLight.directDiffuse += ( 1.0 - clearCoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\t#ifndef STANDARD\n\t\treflectedLight.directSpecular += irradiance * material.clearCoat * BRDF_Specular_GGX( directLight, geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\n\t#endif\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 clearCoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t#ifndef STANDARD\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\tfloat dotNL = dotNV;\n\t\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\n\t#else\n\t\tfloat clearCoatDHR = 0.0;\n\t#endif\n\treflectedLight.indirectSpecular += ( 1.0 - clearCoatDHR ) * radiance * BRDF_Specular_GGX_Environment( geometry, material.specularColor, material.specularRoughness );\n\t#ifndef STANDARD\n\t\treflectedLight.indirectSpecular += clearCoatRadiance * material.clearCoat * BRDF_Specular_GGX_Environment( geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\n\t#endif\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\n#define Material_BlinnShininessExponent( material )   GGXRoughnessToBlinnExponent( material.specularRoughness )\n#define Material_ClearCoat_BlinnShininessExponent( material )   GGXRoughnessToBlinnExponent( material.clearCoatRoughness )\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}\n",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = normalize( vViewPosition );\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( pointLight.shadow, directLight.visible ) ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( spotLight.shadow, directLight.visible ) ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( directionalLight.shadow, directLight.visible ) ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearCoatRadiance = vec3( 0.0 );\n#endif\n",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec3 lightMapIrradiance = texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tirradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), maxMipLevel );\n\t#ifndef STANDARD\n\t\tclearCoatRadiance += getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), maxMipLevel );\n\t#endif\n#endif\n",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, clearCoatRadiance, geometry, material, reflectedLight );\n#endif\n",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n#endif\n",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif\n",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t#else\n\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\tgl_Position.z *= gl_Position.w;\n\t#endif\n#endif\n",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif\n",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n",map_particle_fragment:"#ifdef USE_MAP\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n",map_particle_pars_fragment:"#ifdef USE_MAP\n\tuniform mat3 uvTransform;\n\tuniform sampler2D map;\n#endif\n",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif\n",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];\n\tobjectNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];\n\tobjectNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];\n\tobjectNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];\n#endif\n",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_MORPHNORMALS\n\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];\n\ttransformed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];\n\ttransformed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];\n\ttransformed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\ttransformed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];\n\ttransformed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];\n\ttransformed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];\n\ttransformed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];\n\t#endif\n#endif\n",normal_fragment_begin:"#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n#endif\n",normal_fragment_maps:"#ifdef USE_NORMALMAP\n\t#ifdef OBJECTSPACE_NORMALMAP\n\t\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\t#ifdef FLIP_SIDED\n\t\t\tnormal = - normal;\n\t\t#endif\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#endif\n\t\tnormal = normalize( normalMatrix * normal );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif\n",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n\t#ifdef OBJECTSPACE_NORMALMAP\n\t\tuniform mat3 normalMatrix;\n\t#else\n\t\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\n\t\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\t\tvec2 st0 = dFdx( vUv.st );\n\t\t\tvec2 st1 = dFdy( vUv.st );\n\t\t\tfloat scale = sign( st1.t * st0.s - st0.t * st1.s );\n\t\t\tvec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );\n\t\t\tvec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );\n\t\t\tvec3 N = normalize( surf_norm );\n\t\t\tmat3 tsn = mat3( S, T, N );\n\t\t\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\t\tmapN.xy *= normalScale;\n\t\t\tmapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t\treturn normalize( tsn * mapN );\n\t\t}\n\t#endif\n#endif\n",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256.,  256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}\n",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif\n",project_vertex:"vec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\ngl_Position = projectionMatrix * mvPosition;\n",dithering_fragment:"#if defined( DITHERING )\n  gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif\n",dithering_pars_fragment:"#if defined( DITHERING )\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif\n",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif\n",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tfloat texture2DShadowLerp( sampler2D depths, vec2 size, vec2 uv, float compare ) {\n\t\tconst vec2 offset = vec2( 0.0, 1.0 );\n\t\tvec2 texelSize = vec2( 1.0 ) / size;\n\t\tvec2 centroidUV = floor( uv * size + 0.5 ) / size;\n\t\tfloat lb = texture2DCompare( depths, centroidUV + texelSize * offset.xx, compare );\n\t\tfloat lt = texture2DCompare( depths, centroidUV + texelSize * offset.xy, compare );\n\t\tfloat rb = texture2DCompare( depths, centroidUV + texelSize * offset.yx, compare );\n\t\tfloat rt = texture2DCompare( depths, centroidUV + texelSize * offset.yy, compare );\n\t\tvec2 f = fract( uv * size + 0.5 );\n\t\tfloat a = mix( lb, lt, f.y );\n\t\tfloat b = mix( rb, rt, f.y );\n\t\tfloat c = mix( a, b, f.x );\n\t\treturn c;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tshadow = (\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif\n",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n#endif\n",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n#endif\n",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\tDirectionalLight directionalLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tshadow *= bool( directionalLight.shadow ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\tSpotLight spotLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tshadow *= bool( spotLight.shadow ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\tPointLight pointLight;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tshadow *= bool( pointLight.shadow ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#endif\n\t#endif\n\treturn shadow;\n}\n",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif\n",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif\n",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix  = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n#endif\n",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n  gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif\n",tonemapping_pars_fragment:"#ifndef saturate\n\t#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\n",uv_pars_fragment:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\n",uv_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = uv2;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n#endif\n",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tgl_FragColor = texture2D( t2D, vUv );\n}\n",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position, 1.0 );\n\tgl_Position.z = 1.0;\n}\n",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor.a *= opacity;\n}\n",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}\n",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - gl_FragCoord.z ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( gl_FragCoord.z );\n\t#endif\n}\n",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}\n",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}\n",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV;\n\tsampleUV.y = asin( clamp( direction.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\tsampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n}\n",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}\n",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\tvLineDistance = scale * lineDistance;\n\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}\n",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\treflectedLight.indirectDiffuse += texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}\n",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\tvec4 matcapColor = texture2D( matcap, uv );\n\tmatcapColor = matcapTexelToLinear( matcapColor );\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}\n",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",meshphysical_frag:"#define PHYSICAL\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifndef STANDARD\n\tuniform float clearCoat;\n\tuniform float clearCoatRoughness;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshphysical_vert:"#define PHYSICAL\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}\n",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}\n",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}\n",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <fog_fragment>\n}\n",shadow_vert:"#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}\n"},_n={merge:function(e){for(var t={},n=0;n<e.length;n++){var i=this.clone(e[n]);for(var r in i)t[r]=i[r]}return t},clone:function(e){var t={};for(var n in e)for(var i in t[n]={},e[n]){var r=e[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture)?t[n][i]=r.clone():Array.isArray(r)?t[n][i]=r.slice():t[n][i]=r}return t}},Mn={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};function En(e,t,n){return void 0===t&&void 0===n?this.set(e):this.setRGB(e,t,n)}Object.assign(En.prototype,{isColor:!0,r:1,g:1,b:1,set:function(e){return e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e),this},setScalar:function(e){return this.r=e,this.g=e,this.b=e,this},setHex:function(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this},setRGB:function(e,t,n){return this.r=e,this.g=t,this.b=n,this},setHSL:function(){function e(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}return function(t,n,i){if(t=Xt.euclideanModulo(t,1),n=Xt.clamp(n,0,1),i=Xt.clamp(i,0,1),0===n)this.r=this.g=this.b=i;else{var r=i<=.5?i*(1+n):i+n-i*n,a=2*i-r;this.r=e(a,r,t+1/3),this.g=e(a,r,t),this.b=e(a,r,t-1/3)}return this}}(),setStyle:function(e){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(e)){var i,r=n[1],a=n[2];switch(r){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(a))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,t(i[5]),this;if(i=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(a))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,t(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(a)){var o=parseFloat(i[1])/360,s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return t(i[5]),this.setHSL(o,s,l)}}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(e)){var c,u=(c=n[1]).length;if(3===u)return this.r=parseInt(c.charAt(0)+c.charAt(0),16)/255,this.g=parseInt(c.charAt(1)+c.charAt(1),16)/255,this.b=parseInt(c.charAt(2)+c.charAt(2),16)/255,this;if(6===u)return this.r=parseInt(c.charAt(0)+c.charAt(1),16)/255,this.g=parseInt(c.charAt(2)+c.charAt(3),16)/255,this.b=parseInt(c.charAt(4)+c.charAt(5),16)/255,this}e&&e.length>0&&(void 0!==(c=Mn[e])?this.setHex(c):console.warn("THREE.Color: Unknown color "+e));return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this},copyGammaToLinear:function(e,t){return void 0===t&&(t=2),this.r=Math.pow(e.r,t),this.g=Math.pow(e.g,t),this.b=Math.pow(e.b,t),this},copyLinearToGamma:function(e,t){void 0===t&&(t=2);var n=t>0?1/t:1;return this.r=Math.pow(e.r,n),this.g=Math.pow(e.g,n),this.b=Math.pow(e.b,n),this},convertGammaToLinear:function(e){return this.copyGammaToLinear(this,e),this},convertLinearToGamma:function(e){return this.copyLinearToGamma(this,e),this},copySRGBToLinear:function(){function e(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}return function(t){return this.r=e(t.r),this.g=e(t.g),this.b=e(t.b),this}}(),copyLinearToSRGB:function(){function e(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}return function(t){return this.r=e(t.r),this.g=e(t.g),this.b=e(t.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(e){void 0===e&&(console.warn("THREE.Color: .getHSL() target is now required"),e={h:0,s:0,l:0});var t,n,i=this.r,r=this.g,a=this.b,o=Math.max(i,r,a),s=Math.min(i,r,a),l=(s+o)/2;if(s===o)t=0,n=0;else{var c=o-s;switch(n=l<=.5?c/(o+s):c/(2-o-s),o){case i:t=(r-a)/c+(r<a?6:0);break;case r:t=(a-i)/c+2;break;case a:t=(i-r)/c+4}t/=6}return e.h=t,e.s=n,e.l=l,e},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:(xn={},function(e,t,n){return this.getHSL(xn),xn.h+=e,xn.s+=t,xn.l+=n,this.setHSL(xn.h,xn.s,xn.l),this}),add:function(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this},addColors:function(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this},addScalar:function(e){return this.r+=e,this.g+=e,this.b+=e,this},sub:function(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this},multiply:function(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this},multiplyScalar:function(e){return this.r*=e,this.g*=e,this.b*=e,this},lerp:function(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this},lerpHSL:(yn={h:0,s:0,l:0},bn={h:0,s:0,l:0},function(e,t){this.getHSL(yn),e.getHSL(bn);var n=Xt.lerp(yn.h,bn.h,t),i=Xt.lerp(yn.s,bn.s,t),r=Xt.lerp(yn.l,bn.l,t);return this.setHSL(n,i,r),this}),equals:function(e){return e.r===this.r&&e.g===this.g&&e.b===this.b},fromArray:function(e,t){return void 0===t&&(t=0),this.r=e[t],this.g=e[t+1],this.b=e[t+2],this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e},toJSON:function(){return this.getHex()}});var Tn,Sn={common:{diffuse:{value:new En(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new en},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 Jt(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 En(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 En(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new en}},sprite:{diffuse:{value:new En(15658734)},opacity:{value:1},center:{value:new Jt(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new en}}},Cn={basic:{uniforms:_n.merge([Sn.common,Sn.specularmap,Sn.envmap,Sn.aomap,Sn.lightmap,Sn.fog]),vertexShader:wn.meshbasic_vert,fragmentShader:wn.meshbasic_frag},lambert:{uniforms:_n.merge([Sn.common,Sn.specularmap,Sn.envmap,Sn.aomap,Sn.lightmap,Sn.emissivemap,Sn.fog,Sn.lights,{emissive:{value:new En(0)}}]),vertexShader:wn.meshlambert_vert,fragmentShader:wn.meshlambert_frag},phong:{uniforms:_n.merge([Sn.common,Sn.specularmap,Sn.envmap,Sn.aomap,Sn.lightmap,Sn.emissivemap,Sn.bumpmap,Sn.normalmap,Sn.displacementmap,Sn.gradientmap,Sn.fog,Sn.lights,{emissive:{value:new En(0)},specular:{value:new En(1118481)},shininess:{value:30}}]),vertexShader:wn.meshphong_vert,fragmentShader:wn.meshphong_frag},standard:{uniforms:_n.merge([Sn.common,Sn.envmap,Sn.aomap,Sn.lightmap,Sn.emissivemap,Sn.bumpmap,Sn.normalmap,Sn.displacementmap,Sn.roughnessmap,Sn.metalnessmap,Sn.fog,Sn.lights,{emissive:{value:new En(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:wn.meshphysical_vert,fragmentShader:wn.meshphysical_frag},matcap:{uniforms:_n.merge([Sn.common,Sn.bumpmap,Sn.normalmap,Sn.displacementmap,Sn.fog,{matcap:{value:null}}]),vertexShader:wn.meshmatcap_vert,fragmentShader:wn.meshmatcap_frag},points:{uniforms:_n.merge([Sn.points,Sn.fog]),vertexShader:wn.points_vert,fragmentShader:wn.points_frag},dashed:{uniforms:_n.merge([Sn.common,Sn.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:wn.linedashed_vert,fragmentShader:wn.linedashed_frag},depth:{uniforms:_n.merge([Sn.common,Sn.displacementmap]),vertexShader:wn.depth_vert,fragmentShader:wn.depth_frag},normal:{uniforms:_n.merge([Sn.common,Sn.bumpmap,Sn.normalmap,Sn.displacementmap,{opacity:{value:1}}]),vertexShader:wn.normal_vert,fragmentShader:wn.normal_frag},sprite:{uniforms:_n.merge([Sn.sprite,Sn.fog]),vertexShader:wn.sprite_vert,fragmentShader:wn.sprite_frag},background:{uniforms:{uvTransform:{value:new en},t2D:{value:null}},vertexShader:wn.background_vert,fragmentShader:wn.background_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:wn.cube_vert,fragmentShader:wn.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:wn.equirect_vert,fragmentShader:wn.equirect_frag},distanceRGBA:{uniforms:_n.merge([Sn.common,Sn.displacementmap,{referencePosition:{value:new Qt},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:wn.distanceRGBA_vert,fragmentShader:wn.distanceRGBA_frag},shadow:{uniforms:_n.merge([Sn.lights,Sn.fog,{color:{value:new En(0)},opacity:{value:1}}]),vertexShader:wn.shadow_vert,fragmentShader:wn.shadow_frag}};function An(){var e=null,t=!1,n=null;function i(r,a){!1!==t&&(n(r,a),e.requestAnimationFrame(i))}return{start:function(){!0!==t&&null!==n&&(e.requestAnimationFrame(i),t=!0)},stop:function(){t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Ln(e){var t=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var i=t.get(n);i&&(e.deleteBuffer(i.buffer),t.delete(n))},update:function(n,i){n.isInterleavedBufferAttribute&&(n=n.data);var r=t.get(n);void 0===r?t.set(n,function(t,n){var i=t.array,r=t.dynamic?35048:35044,a=e.createBuffer();e.bindBuffer(n,a),e.bufferData(n,i,r),t.onUploadCallback();var o=5126;return i instanceof Float32Array?o=5126:i instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):i instanceof Uint16Array?o=5123:i instanceof Int16Array?o=5122:i instanceof Uint32Array?o=5125:i instanceof Int32Array?o=5124:i instanceof Int8Array?o=5120:i instanceof Uint8Array&&(o=5121),{buffer:a,type:o,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}(n,i)):r.version<n.version&&(function(t,n,i){var r=n.array,a=n.updateRange;e.bindBuffer(i,t),!1===n.dynamic?e.bufferData(i,r,35044):-1===a.count?e.bufferSubData(i,0,r):0===a.count?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."):(e.bufferSubData(i,a.offset*r.BYTES_PER_ELEMENT,r.subarray(a.offset,a.offset+a.count)),a.count=-1)}(r.buffer,n,i),r.version=n.version)}}}function Pn(e,t,n,i,r,a){this.a=e,this.b=t,this.c=n,this.normal=i&&i.isVector3?i:new Qt,this.vertexNormals=Array.isArray(i)?i:[],this.color=r&&r.isColor?r:new En,this.vertexColors=Array.isArray(r)?r:[],this.materialIndex=void 0!==a?a:0}function On(e,t,n,i){this._x=e||0,this._y=t||0,this._z=n||0,this._order=i||On.DefaultOrder}function Rn(){this.mask=1}Cn.physical={uniforms:_n.merge([Cn.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:wn.meshphysical_vert,fragmentShader:wn.meshphysical_frag},Object.assign(Pn.prototype,{clone:function(){return(new this.constructor).copy(this)},copy:function(e){this.a=e.a,this.b=e.b,this.c=e.c,this.normal.copy(e.normal),this.color.copy(e.color),this.materialIndex=e.materialIndex;for(var t=0,n=e.vertexNormals.length;t<n;t++)this.vertexNormals[t]=e.vertexNormals[t].clone();for(t=0,n=e.vertexColors.length;t<n;t++)this.vertexColors[t]=e.vertexColors[t].clone();return this}}),On.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],On.DefaultOrder="XYZ",Object.defineProperties(On.prototype,{x:{get:function(){return this._x},set:function(e){this._x=e,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(e){this._y=e,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(e){this._z=e,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(e){this._order=e,this.onChangeCallback()}}}),Object.assign(On.prototype,{isEuler:!0,set:function(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._order=i||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this.onChangeCallback(),this},setFromRotationMatrix:function(e,t,n){var i=Xt.clamp,r=e.elements,a=r[0],o=r[4],s=r[8],l=r[1],c=r[5],u=r[9],h=r[2],d=r[6],p=r[10];return"XYZ"===(t=t||this._order)?(this._y=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-u,p),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(d,c),this._z=0)):"YXZ"===t?(this._x=Math.asin(-i(u,-1,1)),Math.abs(u)<.99999?(this._y=Math.atan2(s,p),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-h,a),this._z=0)):"ZXY"===t?(this._x=Math.asin(i(d,-1,1)),Math.abs(d)<.99999?(this._y=Math.atan2(-h,p),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,a))):"ZYX"===t?(this._y=Math.asin(-i(h,-1,1)),Math.abs(h)<.99999?(this._x=Math.atan2(d,p),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,c))):"YZX"===t?(this._z=Math.asin(i(l,-1,1)),Math.abs(l)<.99999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(s,p))):"XZY"===t?(this._z=Math.asin(-i(o,-1,1)),Math.abs(o)<.99999?(this._x=Math.atan2(d,c),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-u,p),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+t),this._order=t,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var e=new Zt;return function(t,n,i){return e.makeRotationFromQuaternion(t),this.setFromRotationMatrix(e,n,i)}}(),setFromVector3:function(e,t){return this.set(e.x,e.y,e.z,t||this._order)},reorder:(Tn=new Kt,function(e){return Tn.setFromEuler(this),this.setFromQuaternion(Tn,e)}),equals:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order},fromArray:function(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this.onChangeCallback(),this},toArray:function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=0),e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e},toVector3:function(e){return e?e.set(this._x,this._y,this._z):new Qt(this._x,this._y,this._z)},onChange:function(e){return this.onChangeCallback=e,this},onChangeCallback:function(){}}),Object.assign(Rn.prototype,{set:function(e){this.mask=1<<e|0},enable:function(e){this.mask|=1<<e|0},toggle:function(e){this.mask^=1<<e|0},disable:function(e){this.mask&=~(1<<e|0)},test:function(e){return 0!=(this.mask&e.mask)}});var Dn,In,kn,Nn,zn=0;function Fn(){Object.defineProperty(this,"id",{value:zn++}),this.uuid=Xt.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Fn.DefaultUp.clone();var e=new Qt,t=new On,n=new Kt,i=new Qt(1,1,1);t.onChange(function(){n.setFromEuler(t,!1)}),n.onChange(function(){t.setFromQuaternion(n,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Zt},normalMatrix:{value:new en}}),this.matrix=new Zt,this.matrixWorld=new Zt,this.matrixAutoUpdate=Fn.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new Rn,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}Fn.DefaultUp=new Qt(0,1,0),Fn.DefaultMatrixAutoUpdate=!0,Fn.prototype=Object.assign(Object.create(i.prototype),{constructor:Fn,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(e){this.matrix.multiplyMatrices(e,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(e){return this.quaternion.premultiply(e),this},setRotationFromAxisAngle:function(e,t){this.quaternion.setFromAxisAngle(e,t)},setRotationFromEuler:function(e){this.quaternion.setFromEuler(e,!0)},setRotationFromMatrix:function(e){this.quaternion.setFromRotationMatrix(e)},setRotationFromQuaternion:function(e){this.quaternion.copy(e)},rotateOnAxis:(Nn=new Kt,function(e,t){return Nn.setFromAxisAngle(e,t),this.quaternion.multiply(Nn),this}),rotateOnWorldAxis:function(){var e=new Kt;return function(t,n){return e.setFromAxisAngle(t,n),this.quaternion.premultiply(e),this}}(),rotateX:function(){var e=new Qt(1,0,0);return function(t){return this.rotateOnAxis(e,t)}}(),rotateY:function(){var e=new Qt(0,1,0);return function(t){return this.rotateOnAxis(e,t)}}(),rotateZ:function(){var e=new Qt(0,0,1);return function(t){return this.rotateOnAxis(e,t)}}(),translateOnAxis:function(){var e=new Qt;return function(t,n){return e.copy(t).applyQuaternion(this.quaternion),this.position.add(e.multiplyScalar(n)),this}}(),translateX:function(){var e=new Qt(1,0,0);return function(t){return this.translateOnAxis(e,t)}}(),translateY:function(){var e=new Qt(0,1,0);return function(t){return this.translateOnAxis(e,t)}}(),translateZ:function(){var e=new Qt(0,0,1);return function(t){return this.translateOnAxis(e,t)}}(),localToWorld:function(e){return e.applyMatrix4(this.matrixWorld)},worldToLocal:(kn=new Zt,function(e){return e.applyMatrix4(kn.getInverse(this.matrixWorld))}),lookAt:function(){var e=new Kt,t=new Zt,n=new Qt,i=new Qt;return function(r,a,o){r.isVector3?n.copy(r):n.set(r,a,o);var s=this.parent;this.updateWorldMatrix(!0,!1),i.setFromMatrixPosition(this.matrixWorld),this.isCamera?t.lookAt(i,n,this.up):t.lookAt(n,i,this.up),this.quaternion.setFromRotationMatrix(t),s&&(t.extractRotation(s.matrixWorld),e.setFromRotationMatrix(t),this.quaternion.premultiply(e.inverse()))}}(),add:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(null!==e.parent&&e.parent.remove(e),e.parent=this,e.dispatchEvent({type:"added"}),this.children.push(e)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)},remove:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}var n=this.children.indexOf(e);return-1!==n&&(e.parent=null,e.dispatchEvent({type:"removed"}),this.children.splice(n,1)),this},getObjectById:function(e){return this.getObjectByProperty("id",e)},getObjectByName:function(e){return this.getObjectByProperty("name",e)},getObjectByProperty:function(e,t){if(this[e]===t)return this;for(var n=0,i=this.children.length;n<i;n++){var r=this.children[n].getObjectByProperty(e,t);if(void 0!==r)return r}},getWorldPosition:function(e){return void 0===e&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),e=new Qt),this.updateMatrixWorld(!0),e.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:(Dn=new Qt,In=new Qt,function(e){return void 0===e&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),e=new Kt),this.updateMatrixWorld(!0),this.matrixWorld.decompose(Dn,e,In),e}),getWorldScale:function(){var e=new Qt,t=new Kt;return function(n){return void 0===n&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),n=new Qt),this.updateMatrixWorld(!0),this.matrixWorld.decompose(e,t,n),n}}(),getWorldDirection:function(e){void 0===e&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),e=new Qt),this.updateMatrixWorld(!0);var t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()},raycast:function(){},traverse:function(e){e(this);for(var t=this.children,n=0,i=t.length;n<i;n++)t[n].traverse(e)},traverseVisible:function(e){if(!1!==this.visible){e(this);for(var t=this.children,n=0,i=t.length;n<i;n++)t[n].traverseVisible(e)}},traverseAncestors:function(e){var t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);for(var t=this.children,n=0,i=t.length;n<i;n++)t[n].updateMatrixWorld(e)},updateWorldMatrix:function(e,t){var n=this.parent;if(!0===e&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===t)for(var i=this.children,r=0,a=i.length;r<a;r++)i[r].updateWorldMatrix(!1,!0)},toJSON:function(e){var t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var i={};function r(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isMesh||this.isLine||this.isPoints){i.geometry=r(e.geometries,this.geometry);var a=this.geometry.parameters;if(void 0!==a&&void 0!==a.shapes){var o=a.shapes;if(Array.isArray(o))for(var s=0,l=o.length;s<l;s++){var c=o[s];r(e.shapes,c)}else r(e.shapes,o)}}if(void 0!==this.material)if(Array.isArray(this.material)){var u=[];for(s=0,l=this.material.length;s<l;s++)u.push(r(e.materials,this.material[s]));i.material=u}else i.material=r(e.materials,this.material);if(this.children.length>0){i.children=[];for(s=0;s<this.children.length;s++)i.children.push(this.children[s].toJSON(e).object)}if(t){var h=m(e.geometries),d=m(e.materials),p=m(e.textures),f=m(e.images);o=m(e.shapes);h.length>0&&(n.geometries=h),d.length>0&&(n.materials=d),p.length>0&&(n.textures=p),f.length>0&&(n.images=f),o.length>0&&(n.shapes=o)}return n.object=i,n;function m(e){var t=[];for(var n in e){var i=e[n];delete i.metadata,t.push(i)}return t}},clone:function(e){return(new this.constructor).copy(this,e)},copy:function(e,t){if(void 0===t&&(t=!0),this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var n=0;n<e.children.length;n++){var i=e.children[n];this.add(i.clone())}return this}});var Bn,Hn,jn=0;function Un(){Object.defineProperty(this,"id",{value:jn+=2}),this.uuid=Xt.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.boundingBox=null,this.boundingSphere=null,this.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}function Gn(e,t,n){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=!0===n,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function Vn(e,t,n){Gn.call(this,new Int8Array(e),t,n)}function Wn(e,t,n){Gn.call(this,new Uint8Array(e),t,n)}function $n(e,t,n){Gn.call(this,new Uint8ClampedArray(e),t,n)}function Yn(e,t,n){Gn.call(this,new Int16Array(e),t,n)}function qn(e,t,n){Gn.call(this,new Uint16Array(e),t,n)}function Xn(e,t,n){Gn.call(this,new Int32Array(e),t,n)}function Jn(e,t,n){Gn.call(this,new Uint32Array(e),t,n)}function Zn(e,t,n){Gn.call(this,new Float32Array(e),t,n)}function Kn(e,t,n){Gn.call(this,new Float64Array(e),t,n)}function Qn(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingBox=null,this.boundingSphere=null,this.verticesNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.uvsNeedUpdate=!1,this.groupsNeedUpdate=!1}function ei(e){if(0===e.length)return-1/0;for(var t=e[0],n=1,i=e.length;n<i;++n)e[n]>t&&(t=e[n]);return t}Un.prototype=Object.assign(Object.create(i.prototype),{constructor:Un,isGeometry:!0,applyMatrix:function(e){for(var t=(new en).getNormalMatrix(e),n=0,i=this.vertices.length;n<i;n++){this.vertices[n].applyMatrix4(e)}for(n=0,i=this.faces.length;n<i;n++){var r=this.faces[n];r.normal.applyMatrix3(t).normalize();for(var a=0,o=r.vertexNormals.length;a<o;a++)r.vertexNormals[a].applyMatrix3(t).normalize()}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this.verticesNeedUpdate=!0,this.normalsNeedUpdate=!0,this},rotateX:function(){var e=new Zt;return function(t){return e.makeRotationX(t),this.applyMatrix(e),this}}(),rotateY:function(){var e=new Zt;return function(t){return e.makeRotationY(t),this.applyMatrix(e),this}}(),rotateZ:function(){var e=new Zt;return function(t){return e.makeRotationZ(t),this.applyMatrix(e),this}}(),translate:function(){var e=new Zt;return function(t,n,i){return e.makeTranslation(t,n,i),this.applyMatrix(e),this}}(),scale:function(){var e=new Zt;return function(t,n,i){return e.makeScale(t,n,i),this.applyMatrix(e),this}}(),lookAt:(Hn=new Fn,function(e){Hn.lookAt(e),Hn.updateMatrix(),this.applyMatrix(Hn.matrix)}),fromBufferGeometry:function(e){var t=this,n=null!==e.index?e.index.array:void 0,i=e.attributes,r=i.position.array,a=void 0!==i.normal?i.normal.array:void 0,o=void 0!==i.color?i.color.array:void 0,s=void 0!==i.uv?i.uv.array:void 0,l=void 0!==i.uv2?i.uv2.array:void 0;void 0!==l&&(this.faceVertexUvs[1]=[]);for(var c=0,u=0;c<r.length;c+=3,u+=2)t.vertices.push((new Qt).fromArray(r,c)),void 0!==o&&t.colors.push((new En).fromArray(o,c));function h(e,n,i,r){var c=void 0===o?[]:[t.colors[e].clone(),t.colors[n].clone(),t.colors[i].clone()],u=new Pn(e,n,i,void 0===a?[]:[(new Qt).fromArray(a,3*e),(new Qt).fromArray(a,3*n),(new Qt).fromArray(a,3*i)],c,r);t.faces.push(u),void 0!==s&&t.faceVertexUvs[0].push([(new Jt).fromArray(s,2*e),(new Jt).fromArray(s,2*n),(new Jt).fromArray(s,2*i)]),void 0!==l&&t.faceVertexUvs[1].push([(new Jt).fromArray(l,2*e),(new Jt).fromArray(l,2*n),(new Jt).fromArray(l,2*i)])}var d=e.groups;if(d.length>0)for(c=0;c<d.length;c++)for(var p=d[c],f=p.start,m=(u=f,f+p.count);u<m;u+=3)void 0!==n?h(n[u],n[u+1],n[u+2],p.materialIndex):h(u,u+1,u+2,p.materialIndex);else if(void 0!==n)for(c=0;c<n.length;c+=3)h(n[c],n[c+1],n[c+2]);else for(c=0;c<r.length/3;c+=3)h(c,c+1,c+2);return this.computeFaceNormals(),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),this},center:(Bn=new Qt,function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Bn).negate(),this.translate(Bn.x,Bn.y,Bn.z),this}),normalize:function(){this.computeBoundingSphere();var e=this.boundingSphere.center,t=this.boundingSphere.radius,n=0===t?1:1/t,i=new Zt;return i.set(n,0,0,-n*e.x,0,n,0,-n*e.y,0,0,n,-n*e.z,0,0,0,1),this.applyMatrix(i),this},computeFaceNormals:function(){for(var e=new Qt,t=new Qt,n=0,i=this.faces.length;n<i;n++){var r=this.faces[n],a=this.vertices[r.a],o=this.vertices[r.b],s=this.vertices[r.c];e.subVectors(s,o),t.subVectors(a,o),e.cross(t),e.normalize(),r.normal.copy(e)}},computeVertexNormals:function(e){var t,n,i,r,a,o;for(void 0===e&&(e=!0),o=new Array(this.vertices.length),t=0,n=this.vertices.length;t<n;t++)o[t]=new Qt;if(e){var s,l,c,u=new Qt,h=new Qt;for(i=0,r=this.faces.length;i<r;i++)a=this.faces[i],s=this.vertices[a.a],l=this.vertices[a.b],c=this.vertices[a.c],u.subVectors(c,l),h.subVectors(s,l),u.cross(h),o[a.a].add(u),o[a.b].add(u),o[a.c].add(u)}else for(this.computeFaceNormals(),i=0,r=this.faces.length;i<r;i++)o[(a=this.faces[i]).a].add(a.normal),o[a.b].add(a.normal),o[a.c].add(a.normal);for(t=0,n=this.vertices.length;t<n;t++)o[t].normalize();for(i=0,r=this.faces.length;i<r;i++){var d=(a=this.faces[i]).vertexNormals;3===d.length?(d[0].copy(o[a.a]),d[1].copy(o[a.b]),d[2].copy(o[a.c])):(d[0]=o[a.a].clone(),d[1]=o[a.b].clone(),d[2]=o[a.c].clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var e,t,n;for(this.computeFaceNormals(),e=0,t=this.faces.length;e<t;e++){var i=(n=this.faces[e]).vertexNormals;3===i.length?(i[0].copy(n.normal),i[1].copy(n.normal),i[2].copy(n.normal)):(i[0]=n.normal.clone(),i[1]=n.normal.clone(),i[2]=n.normal.clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var e,t,n,i,r;for(n=0,i=this.faces.length;n<i;n++)for((r=this.faces[n]).__originalFaceNormal?r.__originalFaceNormal.copy(r.normal):r.__originalFaceNormal=r.normal.clone(),r.__originalVertexNormals||(r.__originalVertexNormals=[]),e=0,t=r.vertexNormals.length;e<t;e++)r.__originalVertexNormals[e]?r.__originalVertexNormals[e].copy(r.vertexNormals[e]):r.__originalVertexNormals[e]=r.vertexNormals[e].clone();var a=new Un;for(a.faces=this.faces,e=0,t=this.morphTargets.length;e<t;e++){if(!this.morphNormals[e]){this.morphNormals[e]={},this.morphNormals[e].faceNormals=[],this.morphNormals[e].vertexNormals=[];var o=this.morphNormals[e].faceNormals,s=this.morphNormals[e].vertexNormals;for(n=0,i=this.faces.length;n<i;n++)l=new Qt,c={a:new Qt,b:new Qt,c:new Qt},o.push(l),s.push(c)}var l,c,u=this.morphNormals[e];for(a.vertices=this.morphTargets[e].vertices,a.computeFaceNormals(),a.computeVertexNormals(),n=0,i=this.faces.length;n<i;n++)r=this.faces[n],l=u.faceNormals[n],c=u.vertexNormals[n],l.copy(r.normal),c.a.copy(r.vertexNormals[0]),c.b.copy(r.vertexNormals[1]),c.c.copy(r.vertexNormals[2])}for(n=0,i=this.faces.length;n<i;n++)(r=this.faces[n]).normal=r.__originalFaceNormal,r.vertexNormals=r.__originalVertexNormals},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new fn),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new mn),this.boundingSphere.setFromPoints(this.vertices)},merge:function(e,t,n){if(e&&e.isGeometry){var i,r=this.vertices.length,a=this.vertices,o=e.vertices,s=this.faces,l=e.faces,c=this.faceVertexUvs[0],u=e.faceVertexUvs[0],h=this.colors,d=e.colors;void 0===n&&(n=0),void 0!==t&&(i=(new en).getNormalMatrix(t));for(var p=0,f=o.length;p<f;p++){var m=o[p].clone();void 0!==t&&m.applyMatrix4(t),a.push(m)}for(p=0,f=d.length;p<f;p++)h.push(d[p].clone());for(p=0,f=l.length;p<f;p++){var v,g,y,b=l[p],x=b.vertexNormals,w=b.vertexColors;(v=new Pn(b.a+r,b.b+r,b.c+r)).normal.copy(b.normal),void 0!==i&&v.normal.applyMatrix3(i).normalize();for(var _=0,M=x.length;_<M;_++)g=x[_].clone(),void 0!==i&&g.applyMatrix3(i).normalize(),v.vertexNormals.push(g);v.color.copy(b.color);for(_=0,M=w.length;_<M;_++)y=w[_],v.vertexColors.push(y.clone());v.materialIndex=b.materialIndex+n,s.push(v)}for(p=0,f=u.length;p<f;p++){var E=u[p],T=[];if(void 0!==E){for(_=0,M=E.length;_<M;_++)T.push(E[_].clone());c.push(T)}}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",e)},mergeMesh:function(e){e&&e.isMesh?(e.matrixAutoUpdate&&e.updateMatrix(),this.merge(e.geometry,e.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",e)},mergeVertices:function(){var e,t,n,i,r,a,o,s,l={},c=[],u=[],h=Math.pow(10,4);for(n=0,i=this.vertices.length;n<i;n++)e=this.vertices[n],void 0===l[t=Math.round(e.x*h)+"_"+Math.round(e.y*h)+"_"+Math.round(e.z*h)]?(l[t]=n,c.push(this.vertices[n]),u[n]=c.length-1):u[n]=u[l[t]];var d=[];for(n=0,i=this.faces.length;n<i;n++){(r=this.faces[n]).a=u[r.a],r.b=u[r.b],r.c=u[r.c],a=[r.a,r.b,r.c];for(var p=0;p<3;p++)if(a[p]===a[(p+1)%3]){d.push(n);break}}for(n=d.length-1;n>=0;n--){var f=d[n];for(this.faces.splice(f,1),o=0,s=this.faceVertexUvs.length;o<s;o++)this.faceVertexUvs[o].splice(f,1)}var m=this.vertices.length-c.length;return this.vertices=c,m},setFromPoints:function(e){this.vertices=[];for(var t=0,n=e.length;t<n;t++){var i=e[t];this.vertices.push(new Qt(i.x,i.y,i.z||0))}return this},sortFacesByMaterialIndex:function(){for(var e=this.faces,t=e.length,n=0;n<t;n++)e[n]._id=n;e.sort(function(e,t){return e.materialIndex-t.materialIndex});var i,r,a=this.faceVertexUvs[0],o=this.faceVertexUvs[1];a&&a.length===t&&(i=[]),o&&o.length===t&&(r=[]);for(n=0;n<t;n++){var s=e[n]._id;i&&i.push(a[s]),r&&r.push(o[s])}i&&(this.faceVertexUvs[0]=i),r&&(this.faceVertexUvs[1]=r)},toJSON:function(){var e={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),void 0!==this.parameters){var t=this.parameters;for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}for(var i=[],r=0;r<this.vertices.length;r++){var a=this.vertices[r];i.push(a.x,a.y,a.z)}var o=[],s=[],l={},c=[],u={},h=[],d={};for(r=0;r<this.faces.length;r++){var p=this.faces[r],f=void 0!==this.faceVertexUvs[0][r],m=p.normal.length()>0,v=p.vertexNormals.length>0,g=1!==p.color.r||1!==p.color.g||1!==p.color.b,y=p.vertexColors.length>0,b=0;if(b=M(b=M(b=M(b=M(b=M(b=M(b=M(b=M(b,0,0),1,!0),2,!1),3,f),4,m),5,v),6,g),7,y),o.push(b),o.push(p.a,p.b,p.c),o.push(p.materialIndex),f){var x=this.faceVertexUvs[0][r];o.push(S(x[0]),S(x[1]),S(x[2]))}if(m&&o.push(E(p.normal)),v){var w=p.vertexNormals;o.push(E(w[0]),E(w[1]),E(w[2]))}if(g&&o.push(T(p.color)),y){var _=p.vertexColors;o.push(T(_[0]),T(_[1]),T(_[2]))}}function M(e,t,n){return n?e|1<<t:e&~(1<<t)}function E(e){var t=e.x.toString()+e.y.toString()+e.z.toString();return void 0!==l[t]?l[t]:(l[t]=s.length/3,s.push(e.x,e.y,e.z),l[t])}function T(e){var t=e.r.toString()+e.g.toString()+e.b.toString();return void 0!==u[t]?u[t]:(u[t]=c.length,c.push(e.getHex()),u[t])}function S(e){var t=e.x.toString()+e.y.toString();return void 0!==d[t]?d[t]:(d[t]=h.length/2,h.push(e.x,e.y),d[t])}return e.data={},e.data.vertices=i,e.data.normals=s,c.length>0&&(e.data.colors=c),h.length>0&&(e.data.uvs=[h]),e.data.faces=o,e},clone:function(){return(new Un).copy(this)},copy:function(e){var t,n,i,r,a,o;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=e.name;var s=e.vertices;for(t=0,n=s.length;t<n;t++)this.vertices.push(s[t].clone());var l=e.colors;for(t=0,n=l.length;t<n;t++)this.colors.push(l[t].clone());var c=e.faces;for(t=0,n=c.length;t<n;t++)this.faces.push(c[t].clone());for(t=0,n=e.faceVertexUvs.length;t<n;t++){var u=e.faceVertexUvs[t];for(void 0===this.faceVertexUvs[t]&&(this.faceVertexUvs[t]=[]),i=0,r=u.length;i<r;i++){var h=u[i],d=[];for(a=0,o=h.length;a<o;a++){var p=h[a];d.push(p.clone())}this.faceVertexUvs[t].push(d)}}var f=e.morphTargets;for(t=0,n=f.length;t<n;t++){var m={};if(m.name=f[t].name,void 0!==f[t].vertices)for(m.vertices=[],i=0,r=f[t].vertices.length;i<r;i++)m.vertices.push(f[t].vertices[i].clone());if(void 0!==f[t].normals)for(m.normals=[],i=0,r=f[t].normals.length;i<r;i++)m.normals.push(f[t].normals[i].clone());this.morphTargets.push(m)}var v=e.morphNormals;for(t=0,n=v.length;t<n;t++){var g={};if(void 0!==v[t].vertexNormals)for(g.vertexNormals=[],i=0,r=v[t].vertexNormals.length;i<r;i++){var y=v[t].vertexNormals[i],b={};b.a=y.a.clone(),b.b=y.b.clone(),b.c=y.c.clone(),g.vertexNormals.push(b)}if(void 0!==v[t].faceNormals)for(g.faceNormals=[],i=0,r=v[t].faceNormals.length;i<r;i++)g.faceNormals.push(v[t].faceNormals[i].clone());this.morphNormals.push(g)}var x=e.skinWeights;for(t=0,n=x.length;t<n;t++)this.skinWeights.push(x[t].clone());var w=e.skinIndices;for(t=0,n=w.length;t<n;t++)this.skinIndices.push(w[t].clone());var _=e.lineDistances;for(t=0,n=_.length;t<n;t++)this.lineDistances.push(_[t]);var M=e.boundingBox;null!==M&&(this.boundingBox=M.clone());var E=e.boundingSphere;return null!==E&&(this.boundingSphere=E.clone()),this.elementsNeedUpdate=e.elementsNeedUpdate,this.verticesNeedUpdate=e.verticesNeedUpdate,this.uvsNeedUpdate=e.uvsNeedUpdate,this.normalsNeedUpdate=e.normalsNeedUpdate,this.colorsNeedUpdate=e.colorsNeedUpdate,this.lineDistancesNeedUpdate=e.lineDistancesNeedUpdate,this.groupsNeedUpdate=e.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(Gn.prototype,"needsUpdate",{set:function(e){!0===e&&this.version++}}),Object.assign(Gn.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(e){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=void 0!==e?e.length/this.itemSize:0,this.array=e,this},setDynamic:function(e){return this.dynamic=e,this},copy:function(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.dynamic=e.dynamic,this},copyAt:function(e,t,n){e*=this.itemSize,n*=t.itemSize;for(var i=0,r=this.itemSize;i<r;i++)this.array[e+i]=t.array[n+i];return this},copyArray:function(e){return this.array.set(e),this},copyColorsArray:function(e){for(var t=this.array,n=0,i=0,r=e.length;i<r;i++){var a=e[i];void 0===a&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i),a=new En),t[n++]=a.r,t[n++]=a.g,t[n++]=a.b}return this},copyVector2sArray:function(e){for(var t=this.array,n=0,i=0,r=e.length;i<r;i++){var a=e[i];void 0===a&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",i),a=new Jt),t[n++]=a.x,t[n++]=a.y}return this},copyVector3sArray:function(e){for(var t=this.array,n=0,i=0,r=e.length;i<r;i++){var a=e[i];void 0===a&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",i),a=new Qt),t[n++]=a.x,t[n++]=a.y,t[n++]=a.z}return this},copyVector4sArray:function(e){for(var t=this.array,n=0,i=0,r=e.length;i<r;i++){var a=e[i];void 0===a&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",i),a=new un),t[n++]=a.x,t[n++]=a.y,t[n++]=a.z,t[n++]=a.w}return this},set:function(e,t){return void 0===t&&(t=0),this.array.set(e,t),this},getX:function(e){return this.array[e*this.itemSize]},setX:function(e,t){return this.array[e*this.itemSize]=t,this},getY:function(e){return this.array[e*this.itemSize+1]},setY:function(e,t){return this.array[e*this.itemSize+1]=t,this},getZ:function(e){return this.array[e*this.itemSize+2]},setZ:function(e,t){return this.array[e*this.itemSize+2]=t,this},getW:function(e){return this.array[e*this.itemSize+3]},setW:function(e,t){return this.array[e*this.itemSize+3]=t,this},setXY:function(e,t,n){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this},setXYZ:function(e,t,n,i){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this},setXYZW:function(e,t,n,i,r){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this.array[e+3]=r,this},onUpload:function(e){return this.onUploadCallback=e,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),Vn.prototype=Object.create(Gn.prototype),Vn.prototype.constructor=Vn,Wn.prototype=Object.create(Gn.prototype),Wn.prototype.constructor=Wn,$n.prototype=Object.create(Gn.prototype),$n.prototype.constructor=$n,Yn.prototype=Object.create(Gn.prototype),Yn.prototype.constructor=Yn,qn.prototype=Object.create(Gn.prototype),qn.prototype.constructor=qn,Xn.prototype=Object.create(Gn.prototype),Xn.prototype.constructor=Xn,Jn.prototype=Object.create(Gn.prototype),Jn.prototype.constructor=Jn,Zn.prototype=Object.create(Gn.prototype),Zn.prototype.constructor=Zn,Kn.prototype=Object.create(Gn.prototype),Kn.prototype.constructor=Kn,Object.assign(Qn.prototype,{computeGroups:function(e){for(var t,n=[],i=void 0,r=e.faces,a=0;a<r.length;a++){var o=r[a];o.materialIndex!==i&&(i=o.materialIndex,void 0!==t&&(t.count=3*a-t.start,n.push(t)),t={start:3*a,materialIndex:i})}void 0!==t&&(t.count=3*a-t.start,n.push(t)),this.groups=n},fromGeometry:function(e){var t,n=e.faces,i=e.vertices,r=e.faceVertexUvs,a=r[0]&&r[0].length>0,o=r[1]&&r[1].length>0,s=e.morphTargets,l=s.length;if(l>0){t=[];for(var c=0;c<l;c++)t[c]={name:s[c].name,data:[]};this.morphTargets.position=t}var u,h=e.morphNormals,d=h.length;if(d>0){u=[];for(c=0;c<d;c++)u[c]={name:h[c].name,data:[]};this.morphTargets.normal=u}var p=e.skinIndices,f=e.skinWeights,m=p.length===i.length,v=f.length===i.length;i.length>0&&0===n.length&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(c=0;c<n.length;c++){var g=n[c];this.vertices.push(i[g.a],i[g.b],i[g.c]);var y=g.vertexNormals;if(3===y.length)this.normals.push(y[0],y[1],y[2]);else{var b=g.normal;this.normals.push(b,b,b)}var x,w=g.vertexColors;if(3===w.length)this.colors.push(w[0],w[1],w[2]);else{var _=g.color;this.colors.push(_,_,_)}if(!0===a)void 0!==(x=r[0][c])?this.uvs.push(x[0],x[1],x[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",c),this.uvs.push(new Jt,new Jt,new Jt));if(!0===o)void 0!==(x=r[1][c])?this.uvs2.push(x[0],x[1],x[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",c),this.uvs2.push(new Jt,new Jt,new Jt));for(var M=0;M<l;M++){var E=s[M].vertices;t[M].data.push(E[g.a],E[g.b],E[g.c])}for(M=0;M<d;M++){var T=h[M].vertexNormals[c];u[M].data.push(T.a,T.b,T.c)}m&&this.skinIndices.push(p[g.a],p[g.b],p[g.c]),v&&this.skinWeights.push(f[g.a],f[g.b],f[g.c])}return this.computeGroups(e),this.verticesNeedUpdate=e.verticesNeedUpdate,this.normalsNeedUpdate=e.normalsNeedUpdate,this.colorsNeedUpdate=e.colorsNeedUpdate,this.uvsNeedUpdate=e.uvsNeedUpdate,this.groupsNeedUpdate=e.groupsNeedUpdate,this}});var ti=1;function ni(){Object.defineProperty(this,"id",{value:ti+=2}),this.uuid=Xt.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}function ii(e,t,n,i,r,a){Un.call(this),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:a},this.fromBufferGeometry(new ri(e,t,n,i,r,a)),this.mergeVertices()}function ri(e,t,n,i,r,a){ni.call(this),this.type="BoxBufferGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:a};var o=this;e=e||1,t=t||1,n=n||1,i=Math.floor(i)||1,r=Math.floor(r)||1;var s=[],l=[],c=[],u=[],h=0,d=0;function p(e,t,n,i,r,a,p,f,m,v,g){var y,b,x=a/m,w=p/v,_=a/2,M=p/2,E=f/2,T=m+1,S=v+1,C=0,A=0,L=new Qt;for(b=0;b<S;b++){var P=b*w-M;for(y=0;y<T;y++){var O=y*x-_;L[e]=O*i,L[t]=P*r,L[n]=E,l.push(L.x,L.y,L.z),L[e]=0,L[t]=0,L[n]=f>0?1:-1,c.push(L.x,L.y,L.z),u.push(y/m),u.push(1-b/v),C+=1}}for(b=0;b<v;b++)for(y=0;y<m;y++){var R=h+y+T*b,D=h+y+T*(b+1),I=h+(y+1)+T*(b+1),k=h+(y+1)+T*b;s.push(R,D,k),s.push(D,I,k),A+=6}o.addGroup(d,A,g),d+=A,h+=C}p("z","y","x",-1,-1,n,t,e,a=Math.floor(a)||1,r,0),p("z","y","x",1,-1,n,t,-e,a,r,1),p("x","z","y",1,1,e,n,t,i,a,2),p("x","z","y",1,-1,e,n,-t,i,a,3),p("x","y","z",1,-1,e,t,n,i,r,4),p("x","y","z",-1,-1,e,t,-n,i,r,5),this.setIndex(s),this.addAttribute("position",new Zn(l,3)),this.addAttribute("normal",new Zn(c,3)),this.addAttribute("uv",new Zn(u,2))}function ai(e,t,n,i){Un.call(this),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:i},this.fromBufferGeometry(new oi(e,t,n,i)),this.mergeVertices()}function oi(e,t,n,i){ni.call(this),this.type="PlaneBufferGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:i};var r,a,o=(e=e||1)/2,s=(t=t||1)/2,l=Math.floor(n)||1,c=Math.floor(i)||1,u=l+1,h=c+1,d=e/l,p=t/c,f=[],m=[],v=[],g=[];for(a=0;a<h;a++){var y=a*p-s;for(r=0;r<u;r++){var b=r*d-o;m.push(b,-y,0),v.push(0,0,1),g.push(r/l),g.push(1-a/c)}}for(a=0;a<c;a++)for(r=0;r<l;r++){var x=r+u*a,w=r+u*(a+1),_=r+1+u*(a+1),M=r+1+u*a;f.push(x,w,M),f.push(w,_,M)}this.setIndex(f),this.addAttribute("position",new Zn(m,3)),this.addAttribute("normal",new Zn(v,3)),this.addAttribute("uv",new Zn(g,2))}ni.prototype=Object.assign(Object.create(i.prototype),{constructor:ni,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(e){Array.isArray(e)?this.index=new(ei(e)>65535?Jn:qn)(e,1):this.index=e},addAttribute:function(e,t){return t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?"index"===e?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):(this.attributes[e]=t,this):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(e,new Gn(arguments[1],arguments[2])))},getAttribute:function(e){return this.attributes[e]},removeAttribute:function(e){return delete this.attributes[e],this},addGroup:function(e,t,n){this.groups.push({start:e,count:t,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(e,t){this.drawRange.start=e,this.drawRange.count=t},applyMatrix:function(e){var t=this.attributes.position;void 0!==t&&(e.applyToBufferAttribute(t),t.needsUpdate=!0);var n=this.attributes.normal;void 0!==n&&((new en).getNormalMatrix(e).applyToBufferAttribute(n),n.needsUpdate=!0);return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var e=new Zt;return function(t){return e.makeRotationX(t),this.applyMatrix(e),this}}(),rotateY:function(){var e=new Zt;return function(t){return e.makeRotationY(t),this.applyMatrix(e),this}}(),rotateZ:function(){var e=new Zt;return function(t){return e.makeRotationZ(t),this.applyMatrix(e),this}}(),translate:function(){var e=new Zt;return function(t,n,i){return e.makeTranslation(t,n,i),this.applyMatrix(e),this}}(),scale:function(){var e=new Zt;return function(t,n,i){return e.makeScale(t,n,i),this.applyMatrix(e),this}}(),lookAt:function(){var e=new Fn;return function(t){e.lookAt(t),e.updateMatrix(),this.applyMatrix(e.matrix)}}(),center:function(){var e=new Qt;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(e).negate(),this.translate(e.x,e.y,e.z),this}}(),setFromObject:function(e){var t=e.geometry;if(e.isPoints||e.isLine){var n=new Zn(3*t.vertices.length,3),i=new Zn(3*t.colors.length,3);if(this.addAttribute("position",n.copyVector3sArray(t.vertices)),this.addAttribute("color",i.copyColorsArray(t.colors)),t.lineDistances&&t.lineDistances.length===t.vertices.length){var r=new Zn(t.lineDistances.length,1);this.addAttribute("lineDistance",r.copyArray(t.lineDistances))}null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone())}else e.isMesh&&t&&t.isGeometry&&this.fromGeometry(t);return this},setFromPoints:function(e){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n];t.push(r.x,r.y,r.z||0)}return this.addAttribute("position",new Zn(t,3)),this},updateFromObject:function(e){var t,n=e.geometry;if(e.isMesh){var i=n.__directGeometry;if(!0===n.elementsNeedUpdate&&(i=void 0,n.elementsNeedUpdate=!1),void 0===i)return this.fromGeometry(n);i.verticesNeedUpdate=n.verticesNeedUpdate,i.normalsNeedUpdate=n.normalsNeedUpdate,i.colorsNeedUpdate=n.colorsNeedUpdate,i.uvsNeedUpdate=n.uvsNeedUpdate,i.groupsNeedUpdate=n.groupsNeedUpdate,n.verticesNeedUpdate=!1,n.normalsNeedUpdate=!1,n.colorsNeedUpdate=!1,n.uvsNeedUpdate=!1,n.groupsNeedUpdate=!1,n=i}return!0===n.verticesNeedUpdate&&(void 0!==(t=this.attributes.position)&&(t.copyVector3sArray(n.vertices),t.needsUpdate=!0),n.verticesNeedUpdate=!1),!0===n.normalsNeedUpdate&&(void 0!==(t=this.attributes.normal)&&(t.copyVector3sArray(n.normals),t.needsUpdate=!0),n.normalsNeedUpdate=!1),!0===n.colorsNeedUpdate&&(void 0!==(t=this.attributes.color)&&(t.copyColorsArray(n.colors),t.needsUpdate=!0),n.colorsNeedUpdate=!1),n.uvsNeedUpdate&&(void 0!==(t=this.attributes.uv)&&(t.copyVector2sArray(n.uvs),t.needsUpdate=!0),n.uvsNeedUpdate=!1),n.lineDistancesNeedUpdate&&(void 0!==(t=this.attributes.lineDistance)&&(t.copyArray(n.lineDistances),t.needsUpdate=!0),n.lineDistancesNeedUpdate=!1),n.groupsNeedUpdate&&(n.computeGroups(e.geometry),this.groups=n.groups,n.groupsNeedUpdate=!1),this},fromGeometry:function(e){return e.__directGeometry=(new Qn).fromGeometry(e),this.fromDirectGeometry(e.__directGeometry)},fromDirectGeometry:function(e){var t=new Float32Array(3*e.vertices.length);if(this.addAttribute("position",new Gn(t,3).copyVector3sArray(e.vertices)),e.normals.length>0){var n=new Float32Array(3*e.normals.length);this.addAttribute("normal",new Gn(n,3).copyVector3sArray(e.normals))}if(e.colors.length>0){var i=new Float32Array(3*e.colors.length);this.addAttribute("color",new Gn(i,3).copyColorsArray(e.colors))}if(e.uvs.length>0){var r=new Float32Array(2*e.uvs.length);this.addAttribute("uv",new Gn(r,2).copyVector2sArray(e.uvs))}if(e.uvs2.length>0){var a=new Float32Array(2*e.uvs2.length);this.addAttribute("uv2",new Gn(a,2).copyVector2sArray(e.uvs2))}for(var o in this.groups=e.groups,e.morphTargets){for(var s=[],l=e.morphTargets[o],c=0,u=l.length;c<u;c++){var h=l[c],d=new Zn(3*h.data.length,3);d.name=h.name,s.push(d.copyVector3sArray(h.data))}this.morphAttributes[o]=s}if(e.skinIndices.length>0){var p=new Zn(4*e.skinIndices.length,4);this.addAttribute("skinIndex",p.copyVector4sArray(e.skinIndices))}if(e.skinWeights.length>0){var f=new Zn(4*e.skinWeights.length,4);this.addAttribute("skinWeight",f.copyVector4sArray(e.skinWeights))}return null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new fn);var e=this.attributes.position;void 0!==e?this.boundingBox.setFromBufferAttribute(e):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 e=new fn,t=new Qt;return function(){null===this.boundingSphere&&(this.boundingSphere=new mn);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;e.setFromBufferAttribute(n),e.getCenter(i);for(var r=0,a=0,o=n.count;a<o;a++)t.x=n.getX(a),t.y=n.getY(a),t.z=n.getZ(a),r=Math.max(r,i.distanceToSquared(t));this.boundingSphere.radius=Math.sqrt(r),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 e=this.index,t=this.attributes;if(t.position){var n=t.position.array;if(void 0===t.normal)this.addAttribute("normal",new Gn(new Float32Array(n.length),3));else for(var i=t.normal.array,r=0,a=i.length;r<a;r++)i[r]=0;var o,s,l,c=t.normal.array,u=new Qt,h=new Qt,d=new Qt,p=new Qt,f=new Qt;if(e){var m=e.array;for(r=0,a=e.count;r<a;r+=3)o=3*m[r+0],s=3*m[r+1],l=3*m[r+2],u.fromArray(n,o),h.fromArray(n,s),d.fromArray(n,l),p.subVectors(d,h),f.subVectors(u,h),p.cross(f),c[o]+=p.x,c[o+1]+=p.y,c[o+2]+=p.z,c[s]+=p.x,c[s+1]+=p.y,c[s+2]+=p.z,c[l]+=p.x,c[l+1]+=p.y,c[l+2]+=p.z}else for(r=0,a=n.length;r<a;r+=9)u.fromArray(n,r),h.fromArray(n,r+3),d.fromArray(n,r+6),p.subVectors(d,h),f.subVectors(u,h),p.cross(f),c[r]=p.x,c[r+1]=p.y,c[r+2]=p.z,c[r+3]=p.x,c[r+4]=p.y,c[r+5]=p.z,c[r+6]=p.x,c[r+7]=p.y,c[r+8]=p.z;this.normalizeNormals(),t.normal.needsUpdate=!0}},merge:function(e,t){if(e&&e.isBufferGeometry){void 0===t&&(t=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var n=this.attributes;for(var i in n)if(void 0!==e.attributes[i])for(var r=n[i].array,a=e.attributes[i],o=a.array,s=0,l=a.itemSize*t;s<o.length;s++,l++)r[l]=o[s];return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",e)},normalizeNormals:function(){var e=new Qt;return function(){for(var t=this.attributes.normal,n=0,i=t.count;n<i;n++)e.x=t.getX(n),e.y=t.getY(n),e.z=t.getZ(n),e.normalize(),t.setXYZ(n,e.x,e.y,e.z)}}(),toNonIndexed:function(){if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var e=new ni,t=this.index.array,n=this.attributes;for(var i in n){for(var r=n[i],a=r.array,o=r.itemSize,s=new a.constructor(t.length*o),l=0,c=0,u=0,h=t.length;u<h;u++){l=t[u]*o;for(var d=0;d<o;d++)s[c++]=a[l++]}e.addAttribute(i,new Gn(s,o))}var p=this.groups;for(u=0,h=p.length;u<h;u++){var f=p[u];e.addGroup(f.start,f.count,f.materialIndex)}return e},toJSON:function(){var e={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){var t=this.parameters;for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};var i=this.index;if(null!==i){var r=Array.prototype.slice.call(i.array);e.data.index={type:i.array.constructor.name,array:r}}var a=this.attributes;for(var n in a){var o=a[n];r=Array.prototype.slice.call(o.array);e.data.attributes[n]={itemSize:o.itemSize,type:o.array.constructor.name,array:r,normalized:o.normalized}}var s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));var l=this.boundingSphere;return null!==l&&(e.data.boundingSphere={center:l.center.toArray(),radius:l.radius}),e},clone:function(){return(new ni).copy(this)},copy:function(e){var t,n,i;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=e.name;var r=e.index;null!==r&&this.setIndex(r.clone());var a=e.attributes;for(t in a){var o=a[t];this.addAttribute(t,o.clone())}var s=e.morphAttributes;for(t in s){var l=[],c=s[t];for(n=0,i=c.length;n<i;n++)l.push(c[n].clone());this.morphAttributes[t]=l}var u=e.groups;for(n=0,i=u.length;n<i;n++){var h=u[n];this.addGroup(h.start,h.count,h.materialIndex)}var d=e.boundingBox;null!==d&&(this.boundingBox=d.clone());var p=e.boundingSphere;return null!==p&&(this.boundingSphere=p.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),ii.prototype=Object.create(Un.prototype),ii.prototype.constructor=ii,ri.prototype=Object.create(ni.prototype),ri.prototype.constructor=ri,ai.prototype=Object.create(Un.prototype),ai.prototype.constructor=ai,oi.prototype=Object.create(ni.prototype),oi.prototype.constructor=oi;var si,li,ci,ui,hi,di,pi,fi,mi,vi,gi,yi,bi=0;function xi(){Object.defineProperty(this,"id",{value:bi++}),this.uuid=Xt.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.lights=!0,this.blending=k,this.side=S,this.flatShading=!1,this.vertexColors=O,this.opacity=1,this.transparent=!1,this.blendSrc=X,this.blendDst=J,this.blendEquation=H,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=ae,this.depthTest=!0,this.depthWrite=!0,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}function wi(e){xi.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!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,void 0!==e&&(void 0!==e.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(e))}function _i(e,t){this.origin=void 0!==e?e:new Qt,this.direction=void 0!==t?t:new Qt}function Mi(e,t,n){this.a=void 0!==e?e:new Qt,this.b=void 0!==t?t:new Qt,this.c=void 0!==n?n:new Qt}function Ei(e){xi.call(this),this.type="MeshBasicMaterial",this.color=new En(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ue,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.lights=!1,this.setValues(e)}function Ti(e,t){Fn.call(this),this.type="Mesh",this.geometry=void 0!==e?e:new ni,this.material=void 0!==t?t:new Ei({color:16777215*Math.random()}),this.drawMode=It,this.updateMorphTargets()}function Si(e,t){return Math.abs(t[1])-Math.abs(e[1])}function Ci(e,t,n,i,r,a,o,s,l,c){e=void 0!==e?e:[],t=void 0!==t?t:be,cn.call(this,e,t,n,i,r,a,o,s,l,c),this.flipY=!1}function Ai(e,t,n,i){cn.call(this,null),this.image={data:e,width:t,height:n,depth:i},this.magFilter=Le,this.minFilter=Le,this.generateMipmaps=!1,this.flipY=!1}xi.prototype=Object.assign(Object.create(i.prototype),{constructor:xi,isMaterial:!0,onBeforeCompile:function(){},setValues:function(e){if(void 0!==e)for(var t in e){var n=e[t];if(void 0!==n)if("shading"!==t){var i=this[t];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n:console.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}else console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===L;else console.warn("THREE.Material: '"+t+"' parameter is undefined.")}},toJSON:function(e){var t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function i(e){var t=[];for(var n in e){var i=e[n];delete i.metadata,t.push(i)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearCoat&&(n.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(n.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,n.reflectivity=this.reflectivity,void 0!==this.combine&&(n.combine=this.combine),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.size&&(n.size=this.size),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==k&&(n.blending=this.blending),!0===this.flatShading&&(n.flatShading=this.flatShading),this.side!==S&&(n.side=this.side),this.vertexColors!==O&&(n.vertexColors=this.vertexColors),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(n.morphTargets=!0),!0===this.skinning&&(n.skinning=!0),!1===this.visible&&(n.visible=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t){var r=i(e.textures),a=i(e.images);r.length>0&&(n.textures=r),a.length>0&&(n.images=a)}return n},clone:function(){return(new this.constructor).copy(this)},copy:function(e){this.name=e.name,this.fog=e.fog,this.lights=e.lights,this.blending=e.blending,this.side=e.side,this.flatShading=e.flatShading,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.userData=JSON.parse(JSON.stringify(e.userData)),this.clipShadows=e.clipShadows,this.clipIntersection=e.clipIntersection;var t=e.clippingPlanes,n=null;if(null!==t){var i=t.length;n=new Array(i);for(var r=0;r!==i;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.shadowSide=e.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),wi.prototype=Object.create(xi.prototype),wi.prototype.constructor=wi,wi.prototype.isShaderMaterial=!0,wi.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=_n.clone(e.uniforms),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.lights=e.lights,this.clipping=e.clipping,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this.extensions=e.extensions,this},wi.prototype.toJSON=function(e){var t=xi.prototype.toJSON.call(this,e);for(var n in t.uniforms={},this.uniforms){var i=this.uniforms[n].value;i.isTexture?t.uniforms[n]={type:"t",value:i.toJSON(e).uuid}:i.isColor?t.uniforms[n]={type:"c",value:i.getHex()}:i.isVector2?t.uniforms[n]={type:"v2",value:i.toArray()}:i.isVector3?t.uniforms[n]={type:"v3",value:i.toArray()}:i.isVector4?t.uniforms[n]={type:"v4",value:i.toArray()}:i.isMatrix4?t.uniforms[n]={type:"m4",value:i.toArray()}:t.uniforms[n]={value:i}}return Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t},Object.assign(_i.prototype,{set:function(e,t){return this.origin.copy(e),this.direction.copy(t),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this},at:function(e,t){return void 0===t&&(console.warn("THREE.Ray: .at() target is now required"),t=new Qt),t.copy(this.direction).multiplyScalar(e).add(this.origin)},lookAt:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this},recast:function(){var e=new Qt;return function(t){return this.origin.copy(this.at(t,e)),this}}(),closestPointToPoint:function(e,t){void 0===t&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),t=new Qt),t.subVectors(e,this.origin);var n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)},distanceToPoint:function(e){return Math.sqrt(this.distanceSqToPoint(e))},distanceSqToPoint:function(){var e=new Qt;return function(t){var n=e.subVectors(t,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(t):(e.copy(this.direction).multiplyScalar(n).add(this.origin),e.distanceToSquared(t))}}(),distanceSqToSegment:(li=new Qt,ci=new Qt,ui=new Qt,function(e,t,n,i){li.copy(e).add(t).multiplyScalar(.5),ci.copy(t).sub(e).normalize(),ui.copy(this.origin).sub(li);var r,a,o,s,l=.5*e.distanceTo(t),c=-this.direction.dot(ci),u=ui.dot(this.direction),h=-ui.dot(ci),d=ui.lengthSq(),p=Math.abs(1-c*c);if(p>0)if(a=c*u-h,s=l*p,(r=c*h-u)>=0)if(a>=-s)if(a<=s){var f=1/p;o=(r*=f)*(r+c*(a*=f)+2*u)+a*(c*r+a+2*h)+d}else a=l,o=-(r=Math.max(0,-(c*a+u)))*r+a*(a+2*h)+d;else a=-l,o=-(r=Math.max(0,-(c*a+u)))*r+a*(a+2*h)+d;else a<=-s?o=-(r=Math.max(0,-(-c*l+u)))*r+(a=r>0?-l:Math.min(Math.max(-l,-h),l))*(a+2*h)+d:a<=s?(r=0,o=(a=Math.min(Math.max(-l,-h),l))*(a+2*h)+d):o=-(r=Math.max(0,-(c*l+u)))*r+(a=r>0?l:Math.min(Math.max(-l,-h),l))*(a+2*h)+d;else a=c>0?-l:l,o=-(r=Math.max(0,-(c*a+u)))*r+a*(a+2*h)+d;return n&&n.copy(this.direction).multiplyScalar(r).add(this.origin),i&&i.copy(ci).multiplyScalar(a).add(li),o}),intersectSphere:function(){var e=new Qt;return function(t,n){e.subVectors(t.center,this.origin);var i=e.dot(this.direction),r=e.dot(e)-i*i,a=t.radius*t.radius;if(r>a)return null;var o=Math.sqrt(a-r),s=i-o,l=i+o;return s<0&&l<0?null:s<0?this.at(l,n):this.at(s,n)}}(),intersectsSphere:function(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius},distanceToPlane:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null},intersectPlane:function(e,t){var n=this.distanceToPlane(e);return null===n?null:this.at(n,t)},intersectsPlane:function(e){var t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0},intersectBox:function(e,t){var n,i,r,a,o,s,l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,h=this.origin;return l>=0?(n=(e.min.x-h.x)*l,i=(e.max.x-h.x)*l):(n=(e.max.x-h.x)*l,i=(e.min.x-h.x)*l),c>=0?(r=(e.min.y-h.y)*c,a=(e.max.y-h.y)*c):(r=(e.max.y-h.y)*c,a=(e.min.y-h.y)*c),n>a||r>i?null:((r>n||n!=n)&&(n=r),(a<i||i!=i)&&(i=a),u>=0?(o=(e.min.z-h.z)*u,s=(e.max.z-h.z)*u):(o=(e.max.z-h.z)*u,s=(e.min.z-h.z)*u),n>s||o>i?null:((o>n||n!=n)&&(n=o),(s<i||i!=i)&&(i=s),i<0?null:this.at(n>=0?n:i,t)))},intersectsBox:(si=new Qt,function(e){return null!==this.intersectBox(e,si)}),intersectTriangle:function(){var e=new Qt,t=new Qt,n=new Qt,i=new Qt;return function(r,a,o,s,l){t.subVectors(a,r),n.subVectors(o,r),i.crossVectors(t,n);var c,u=this.direction.dot(i);if(u>0){if(s)return null;c=1}else{if(!(u<0))return null;c=-1,u=-u}e.subVectors(this.origin,r);var h=c*this.direction.dot(n.crossVectors(e,n));if(h<0)return null;var d=c*this.direction.dot(t.cross(e));if(d<0)return null;if(h+d>u)return null;var p=-c*e.dot(i);return p<0?null:this.at(p/u,l)}}(),applyMatrix4:function(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this},equals:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}}),Object.assign(Mi,{getNormal:(di=new Qt,function(e,t,n,i){void 0===i&&(console.warn("THREE.Triangle: .getNormal() target is now required"),i=new Qt),i.subVectors(n,t),di.subVectors(e,t),i.cross(di);var r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}),getBarycoord:function(){var e=new Qt,t=new Qt,n=new Qt;return function(i,r,a,o,s){e.subVectors(o,r),t.subVectors(a,r),n.subVectors(i,r);var l=e.dot(e),c=e.dot(t),u=e.dot(n),h=t.dot(t),d=t.dot(n),p=l*h-c*c;if(void 0===s&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),s=new Qt),0===p)return s.set(-2,-1,-1);var f=1/p,m=(h*u-c*d)*f,v=(l*d-c*u)*f;return s.set(1-m-v,v,m)}}(),containsPoint:function(){var e=new Qt;return function(t,n,i,r){return Mi.getBarycoord(t,n,i,r,e),e.x>=0&&e.y>=0&&e.x+e.y<=1}}(),getUV:(hi=new Qt,function(e,t,n,i,r,a,o,s){return this.getBarycoord(e,t,n,i,hi),s.set(0,0),s.addScaledVector(r,hi.x),s.addScaledVector(a,hi.y),s.addScaledVector(o,hi.z),s})}),Object.assign(Mi.prototype,{set:function(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this},setFromPointsAndIndices:function(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this},getArea:function(){var e=new Qt,t=new Qt;return function(){return e.subVectors(this.c,this.b),t.subVectors(this.a,this.b),.5*e.cross(t).length()}}(),getMidpoint:function(e){return void 0===e&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),e=new Qt),e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(e){return Mi.getNormal(this.a,this.b,this.c,e)},getPlane:function(e){return void 0===e&&(console.warn("THREE.Triangle: .getPlane() target is now required"),e=new Qt),e.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(e,t){return Mi.getBarycoord(e,this.a,this.b,this.c,t)},containsPoint:function(e){return Mi.containsPoint(e,this.a,this.b,this.c)},getUV:function(e,t,n,i,r){return Mi.getUV(e,this.a,this.b,this.c,t,n,i,r)},intersectsBox:function(e){return e.intersectsTriangle(this)},closestPointToPoint:(pi=new Qt,fi=new Qt,mi=new Qt,vi=new Qt,gi=new Qt,yi=new Qt,function(e,t){void 0===t&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),t=new Qt);var n,i,r=this.a,a=this.b,o=this.c;pi.subVectors(a,r),fi.subVectors(o,r),vi.subVectors(e,r);var s=pi.dot(vi),l=fi.dot(vi);if(s<=0&&l<=0)return t.copy(r);gi.subVectors(e,a);var c=pi.dot(gi),u=fi.dot(gi);if(c>=0&&u<=c)return t.copy(a);var h=s*u-c*l;if(h<=0&&s>=0&&c<=0)return n=s/(s-c),t.copy(r).addScaledVector(pi,n);yi.subVectors(e,o);var d=pi.dot(yi),p=fi.dot(yi);if(p>=0&&d<=p)return t.copy(o);var f=d*l-s*p;if(f<=0&&l>=0&&p<=0)return i=l/(l-p),t.copy(r).addScaledVector(fi,i);var m=c*p-d*u;if(m<=0&&u-c>=0&&d-p>=0)return mi.subVectors(o,a),i=(u-c)/(u-c+(d-p)),t.copy(a).addScaledVector(mi,i);var v=1/(m+f+h);return n=f*v,i=h*v,t.copy(r).addScaledVector(pi,n).addScaledVector(fi,i)}),equals:function(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}),Ei.prototype=Object.create(xi.prototype),Ei.prototype.constructor=Ei,Ei.prototype.isMeshBasicMaterial=!0,Ei.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this},Ti.prototype=Object.assign(Object.create(Fn.prototype),{constructor:Ti,isMesh:!0,setDrawMode:function(e){this.drawMode=e},copy:function(e){return Fn.prototype.copy.call(this,e),this.drawMode=e.drawMode,void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this},updateMorphTargets:function(){var e,t,n,i=this.geometry;if(i.isBufferGeometry){var r=i.morphAttributes,a=Object.keys(r);if(a.length>0){var o=r[a[0]];if(void 0!==o)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},e=0,t=o.length;e<t;e++)n=o[e].name||String(e),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}else{var s=i.morphTargets;if(void 0!==s&&s.length>0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},e=0,t=s.length;e<t;e++)n=s[e].name||String(e),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}},raycast:function(){var e=new Zt,t=new _i,n=new mn,i=new Qt,r=new Qt,a=new Qt,o=new Qt,s=new Qt,l=new Qt,c=new Jt,u=new Jt,h=new Jt,d=new Qt,p=new Qt;function f(e,t,n,i,r,a,o,s){if(null===(t.side===C?i.intersectTriangle(o,a,r,!0,s):i.intersectTriangle(r,a,o,t.side!==A,s)))return null;p.copy(s),p.applyMatrix4(e.matrixWorld);var l=n.ray.origin.distanceTo(p);return l<n.near||l>n.far?null:{distance:l,point:p.clone(),object:e}}function m(e,t,n,o,s,l,p,m,v){i.fromBufferAttribute(s,p),r.fromBufferAttribute(s,m),a.fromBufferAttribute(s,v);var g=f(e,t,n,o,i,r,a,d);if(g){l&&(c.fromBufferAttribute(l,p),u.fromBufferAttribute(l,m),h.fromBufferAttribute(l,v),g.uv=Mi.getUV(d,i,r,a,c,u,h,new Jt));var y=new Pn(p,m,v);Mi.getNormal(i,r,a,y.normal),g.face=y}return g}return function(p,v){var g,y=this.geometry,b=this.material,x=this.matrixWorld;if(void 0!==b&&(null===y.boundingSphere&&y.computeBoundingSphere(),n.copy(y.boundingSphere),n.applyMatrix4(x),!1!==p.ray.intersectsSphere(n)&&(e.getInverse(x),t.copy(p.ray).applyMatrix4(e),null===y.boundingBox||!1!==t.intersectsBox(y.boundingBox))))if(y.isBufferGeometry){var w,_,M,E,T,S,C,A,L,P=y.index,O=y.attributes.position,R=y.attributes.uv,D=y.groups,I=y.drawRange;if(null!==P)if(Array.isArray(b))for(E=0,S=D.length;E<S;E++)for(L=b[(A=D[E]).materialIndex],T=Math.max(A.start,I.start),C=Math.min(A.start+A.count,I.start+I.count);T<C;T+=3)w=P.getX(T),_=P.getX(T+1),M=P.getX(T+2),(g=m(this,L,p,t,O,R,w,_,M))&&(g.faceIndex=Math.floor(T/3),v.push(g));else for(E=Math.max(0,I.start),S=Math.min(P.count,I.start+I.count);E<S;E+=3)w=P.getX(E),_=P.getX(E+1),M=P.getX(E+2),(g=m(this,b,p,t,O,R,w,_,M))&&(g.faceIndex=Math.floor(E/3),v.push(g));else if(void 0!==O)if(Array.isArray(b))for(E=0,S=D.length;E<S;E++)for(L=b[(A=D[E]).materialIndex],T=Math.max(A.start,I.start),C=Math.min(A.start+A.count,I.start+I.count);T<C;T+=3)(g=m(this,L,p,t,O,R,w=T,_=T+1,M=T+2))&&(g.faceIndex=Math.floor(T/3),v.push(g));else for(E=Math.max(0,I.start),S=Math.min(O.count,I.start+I.count);E<S;E+=3)(g=m(this,b,p,t,O,R,w=E,_=E+1,M=E+2))&&(g.faceIndex=Math.floor(E/3),v.push(g))}else if(y.isGeometry){var k,N,z,F,B=Array.isArray(b),H=y.vertices,j=y.faces,U=y.faceVertexUvs[0];U.length>0&&(F=U);for(var G=0,V=j.length;G<V;G++){var W=j[G],$=B?b[W.materialIndex]:b;if(void 0!==$){if(k=H[W.a],N=H[W.b],z=H[W.c],!0===$.morphTargets){var Y=y.morphTargets,q=this.morphTargetInfluences;i.set(0,0,0),r.set(0,0,0),a.set(0,0,0);for(var X=0,J=Y.length;X<J;X++){var Z=q[X];if(0!==Z){var K=Y[X].vertices;i.addScaledVector(o.subVectors(K[W.a],k),Z),r.addScaledVector(s.subVectors(K[W.b],N),Z),a.addScaledVector(l.subVectors(K[W.c],z),Z)}}i.add(k),r.add(N),a.add(z),k=i,N=r,z=a}if(g=f(this,$,p,t,k,N,z,d)){if(F&&F[G]){var Q=F[G];c.copy(Q[0]),u.copy(Q[1]),h.copy(Q[2]),g.uv=Mi.getUV(d,k,N,z,c,u,h,new Jt)}g.face=W,g.faceIndex=G,v.push(g)}}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Ci.prototype=Object.create(cn.prototype),Ci.prototype.constructor=Ci,Ci.prototype.isCubeTexture=!0,Object.defineProperty(Ci.prototype,"images",{get:function(){return this.image},set:function(e){this.image=e}}),Ai.prototype=Object.create(cn.prototype),Ai.prototype.constructor=Ai,Ai.prototype.isDataTexture3D=!0;var Li=new cn,Pi=new Ai,Oi=new Ci;function Ri(){this.seq=[],this.map={}}var Di=[],Ii=[],ki=new Float32Array(16),Ni=new Float32Array(9),zi=new Float32Array(4);function Fi(e,t,n){var i=e[0];if(i<=0||i>0)return e;var r=t*n,a=Di[r];if(void 0===a&&(a=new Float32Array(r),Di[r]=a),0!==t){i.toArray(a,0);for(var o=1,s=0;o!==t;++o)s+=n,e[o].toArray(a,s)}return a}function Bi(e,t){if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function Hi(e,t){for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}function ji(e,t){var n=Ii[t];void 0===n&&(n=new Int32Array(t),Ii[t]=n);for(var i=0;i!==t;++i)n[i]=e.allocTextureUnit();return n}function Ui(e,t){var n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function Gi(e,t){var n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Vi(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Bi(n,t))return;e.uniform2fv(this.addr,t),Hi(n,t)}}function Wi(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(Bi(n,t))return;e.uniform3fv(this.addr,t),Hi(n,t)}}function $i(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Bi(n,t))return;e.uniform4fv(this.addr,t),Hi(n,t)}}function Yi(e,t){var n=this.cache,i=t.elements;if(void 0===i){if(Bi(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Hi(n,t)}else{if(Bi(n,i))return;zi.set(i),e.uniformMatrix2fv(this.addr,!1,zi),Hi(n,i)}}function qi(e,t){var n=this.cache,i=t.elements;if(void 0===i){if(Bi(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Hi(n,t)}else{if(Bi(n,i))return;Ni.set(i),e.uniformMatrix3fv(this.addr,!1,Ni),Hi(n,i)}}function Xi(e,t){var n=this.cache,i=t.elements;if(void 0===i){if(Bi(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Hi(n,t)}else{if(Bi(n,i))return;ki.set(i),e.uniformMatrix4fv(this.addr,!1,ki),Hi(n,i)}}function Ji(e,t,n){var i=this.cache,r=n.allocTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture2D(t||Li,r)}function Zi(e,t,n){var i=this.cache,r=n.allocTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(t||Pi,r)}function Ki(e,t,n){var i=this.cache,r=n.allocTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(t||Oi,r)}function Qi(e,t){var n=this.cache;Bi(n,t)||(e.uniform2iv(this.addr,t),Hi(n,t))}function er(e,t){var n=this.cache;Bi(n,t)||(e.uniform3iv(this.addr,t),Hi(n,t))}function tr(e,t){var n=this.cache;Bi(n,t)||(e.uniform4iv(this.addr,t),Hi(n,t))}function nr(e,t){var n=this.cache;Bi(n,t)||(e.uniform1fv(this.addr,t),Hi(n,t))}function ir(e,t){var n=this.cache;Bi(n,t)||(e.uniform1iv(this.addr,t),Hi(n,t))}function rr(e,t){var n=this.cache,i=Fi(t,this.size,2);Bi(n,i)||(e.uniform2fv(this.addr,i),this.updateCache(i))}function ar(e,t){var n=this.cache,i=Fi(t,this.size,3);Bi(n,i)||(e.uniform3fv(this.addr,i),this.updateCache(i))}function or(e,t){var n=this.cache,i=Fi(t,this.size,4);Bi(n,i)||(e.uniform4fv(this.addr,i),this.updateCache(i))}function sr(e,t){var n=this.cache,i=Fi(t,this.size,4);Bi(n,i)||(e.uniformMatrix2fv(this.addr,!1,i),this.updateCache(i))}function lr(e,t){var n=this.cache,i=Fi(t,this.size,9);Bi(n,i)||(e.uniformMatrix3fv(this.addr,!1,i),this.updateCache(i))}function cr(e,t){var n=this.cache,i=Fi(t,this.size,16);Bi(n,i)||(e.uniformMatrix4fv(this.addr,!1,i),this.updateCache(i))}function ur(e,t,n){var i=this.cache,r=t.length,a=ji(n,r);!1===Bi(i,a)&&(e.uniform1iv(this.addr,a),Hi(i,a));for(var o=0;o!==r;++o)n.setTexture2D(t[o]||Li,a[o])}function hr(e,t,n){var i=this.cache,r=t.length,a=ji(n,r);!1===Bi(i,a)&&(e.uniform1iv(this.addr,a),Hi(i,a));for(var o=0;o!==r;++o)n.setTextureCube(t[o]||Oi,a[o])}function dr(e,t,n){this.id=e,this.addr=n,this.cache=[],this.setValue=function(e){switch(e){case 5126:return Ui;case 35664:return Vi;case 35665:return Wi;case 35666:return $i;case 35674:return Yi;case 35675:return qi;case 35676:return Xi;case 35678:case 36198:return Ji;case 35679:return Zi;case 35680:return Ki;case 5124:case 35670:return Gi;case 35667:case 35671:return Qi;case 35668:case 35672:return er;case 35669:case 35673:return tr}}(t.type)}function pr(e,t,n){this.id=e,this.addr=n,this.cache=[],this.size=t.size,this.setValue=function(e){switch(e){case 5126:return nr;case 35664:return rr;case 35665:return ar;case 35666:return or;case 35674:return sr;case 35675:return lr;case 35676:return cr;case 35678:return ur;case 35680:return hr;case 5124:case 35670:return ir;case 35667:case 35671:return Qi;case 35668:case 35672:return er;case 35669:case 35673:return tr}}(t.type)}function fr(e){this.id=e,Ri.call(this)}pr.prototype.updateCache=function(e){var t=this.cache;e instanceof Float32Array&&t.length!==e.length&&(this.cache=new Float32Array(e.length)),Hi(t,e)},fr.prototype.setValue=function(e,t,n){for(var i=this.seq,r=0,a=i.length;r!==a;++r){var o=i[r];o.setValue(e,t[o.id],n)}};var mr=/([\w\d_]+)(\])?(\[|\.)?/g;function vr(e,t){e.seq.push(t),e.map[t.id]=t}function gr(e,t,n){var i=e.name,r=i.length;for(mr.lastIndex=0;;){var a=mr.exec(i),o=mr.lastIndex,s=a[1],l="]"===a[2],c=a[3];if(l&&(s|=0),void 0===c||"["===c&&o+2===r){vr(n,void 0===c?new dr(s,e,t):new pr(s,e,t));break}var u=n.map[s];void 0===u&&vr(n,u=new fr(s)),n=u}}function yr(e,t,n){Ri.call(this),this.renderer=n;for(var i=e.getProgramParameter(t,35718),r=0;r<i;++r){var a=e.getActiveUniform(t,r);gr(a,e.getUniformLocation(t,a.name),this)}}function br(e,t,n){var i=e.createShader(t);return e.shaderSource(i,n),e.compileShader(i),!1===e.getShaderParameter(i,35713)&&console.error("THREE.WebGLShader: Shader couldn't compile."),""!==e.getShaderInfoLog(i)&&console.warn("THREE.WebGLShader: gl.getShaderInfoLog()",35633===t?"vertex":"fragment",e.getShaderInfoLog(i),function(e){for(var t=e.split("\n"),n=0;n<t.length;n++)t[n]=n+1+": "+t[n];return t.join("\n")}(n)),i}yr.prototype.setValue=function(e,t,n){var i=this.map[t];void 0!==i&&i.setValue(e,n,this.renderer)},yr.prototype.setOptional=function(e,t,n){var i=t[n];void 0!==i&&this.setValue(e,n,i)},yr.upload=function(e,t,n,i){for(var r=0,a=t.length;r!==a;++r){var o=t[r],s=n[o.id];!1!==s.needsUpdate&&o.setValue(e,s.value,i)}},yr.seqWithValue=function(e,t){for(var n=[],i=0,r=e.length;i!==r;++i){var a=e[i];a.id in t&&n.push(a)}return n};var xr=0;function wr(e){switch(e){case zt:return["Linear","( value )"];case Ft:return["sRGB","( value )"];case Ht:return["RGBE","( value )"];case Ut:return["RGBM","( value, 7.0 )"];case Gt:return["RGBM","( value, 16.0 )"];case Vt:return["RGBD","( value, 256.0 )"];case Bt:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw new Error("unsupported encoding: "+e)}}function _r(e,t){var n=wr(t);return"vec4 "+e+"( vec4 value ) { return "+n[0]+"ToLinear"+n[1]+"; }"}function Mr(e){return""!==e}function Er(e,t){return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights)}function Tr(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}function Sr(e){return e.replace(/^[ \t]*#include +<([\w\d./]+)>/gm,function(e,t){var n=wn[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return Sr(n)})}function Cr(e){return e.replace(/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,function(e,t,n,i){for(var r="",a=parseInt(t);a<parseInt(n);a++)r+=i.replace(/\[ i \]/g,"[ "+a+" ]");return r})}function Ar(e,t,n,i,r,a,o){var s=e.context,l=i.defines,c=r.vertexShader,u=r.fragmentShader,h="SHADOWMAP_TYPE_BASIC";a.shadowMapType===E?h="SHADOWMAP_TYPE_PCF":a.shadowMapType===T&&(h="SHADOWMAP_TYPE_PCF_SOFT");var d="ENVMAP_TYPE_CUBE",p="ENVMAP_MODE_REFLECTION",f="ENVMAP_BLENDING_MULTIPLY";if(a.envMap){switch(i.envMap.mapping){case be:case xe:d="ENVMAP_TYPE_CUBE";break;case Ee:case Te:d="ENVMAP_TYPE_CUBE_UV";break;case we:case _e:d="ENVMAP_TYPE_EQUIREC";break;case Me:d="ENVMAP_TYPE_SPHERE"}switch(i.envMap.mapping){case xe:case _e:p="ENVMAP_MODE_REFRACTION"}switch(i.combine){case ue:f="ENVMAP_BLENDING_MULTIPLY";break;case he:f="ENVMAP_BLENDING_MIX";break;case de:f="ENVMAP_BLENDING_ADD"}}var m,v,g,y,b,x=e.gammaFactor>0?e.gammaFactor:1,w=o.isWebGL2?"":function(e,t,n){return[(e=e||{}).derivatives||t.envMapCubeUV||t.bumpMap||t.normalMap&&!t.objectSpaceNormalMap||t.flatShading?"#extension GL_OES_standard_derivatives : enable":"",(e.fragDepth||t.logarithmicDepthBuffer)&&n.get("EXT_frag_depth")?"#extension GL_EXT_frag_depth : enable":"",e.drawBuffers&&n.get("WEBGL_draw_buffers")?"#extension GL_EXT_draw_buffers : require":"",(e.shaderTextureLOD||t.envMap)&&n.get("EXT_shader_texture_lod")?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Mr).join("\n")}(i.extensions,a,t),_=function(e){var t=[];for(var n in e){var i=e[n];!1!==i&&t.push("#define "+n+" "+i)}return t.join("\n")}(l),M=s.createProgram();if(i.isRawShaderMaterial?((m=[_].filter(Mr).join("\n")).length>0&&(m+="\n"),(v=[w,_].filter(Mr).join("\n")).length>0&&(v+="\n")):(m=["precision "+a.precision+" float;","precision "+a.precision+" int;","#define SHADER_NAME "+r.name,_,a.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+x,"#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 "+p:"",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&&!1===a.flatShading?"#define USE_MORPHNORMALS":"",a.doubleSided?"#define DOUBLE_SIDED":"",a.flipSided?"#define FLIP_SIDED":"",a.shadowMapEnabled?"#define USE_SHADOWMAP":"",a.shadowMapEnabled?"#define "+h:"",a.sizeAttenuation?"#define USE_SIZEATTENUATION":"",a.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",a.logarithmicDepthBuffer&&(o.isWebGL2||t.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","\tattribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Mr).join("\n"),v=[w,"precision "+a.precision+" float;","precision "+a.precision+" int;","#define SHADER_NAME "+r.name,_,a.alphaTest?"#define ALPHATEST "+a.alphaTest+(a.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+x,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 "+d:"",a.envMap?"#define "+p:"",a.envMap?"#define "+f:"",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 "+h:"",a.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",a.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",a.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",a.logarithmicDepthBuffer&&(o.isWebGL2||t.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"",a.envMap&&(o.isWebGL2||t.get("EXT_shader_texture_lod"))?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",a.toneMapping!==pe?"#define TONE_MAPPING":"",a.toneMapping!==pe?wn.tonemapping_pars_fragment:"",a.toneMapping!==pe?function(e,t){var n;switch(t){case fe:n="Linear";break;case me:n="Reinhard";break;case ve:n="Uncharted2";break;case ge:n="OptimizedCineon";break;default:throw new Error("unsupported toneMapping: "+t)}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}("toneMapping",a.toneMapping):"",a.dithering?"#define DITHERING":"",a.outputEncoding||a.mapEncoding||a.matcapEncoding||a.envMapEncoding||a.emissiveMapEncoding?wn.encodings_pars_fragment:"",a.mapEncoding?_r("mapTexelToLinear",a.mapEncoding):"",a.matcapEncoding?_r("matcapTexelToLinear",a.matcapEncoding):"",a.envMapEncoding?_r("envMapTexelToLinear",a.envMapEncoding):"",a.emissiveMapEncoding?_r("emissiveMapTexelToLinear",a.emissiveMapEncoding):"",a.outputEncoding?(g="linearToOutputTexel",y=a.outputEncoding,b=wr(y),"vec4 "+g+"( vec4 value ) { return LinearTo"+b[0]+b[1]+"; }"):"",a.depthPacking?"#define DEPTH_PACKING "+i.depthPacking:"","\n"].filter(Mr).join("\n")),c=Tr(c=Er(c=Sr(c),a),a),u=Tr(u=Er(u=Sr(u),a),a),c=Cr(c),u=Cr(u),o.isWebGL2&&!i.isRawShaderMaterial){var S=!1,C=/^\s*#version\s+300\s+es\s*\n/;i.isShaderMaterial&&null!==c.match(C)&&null!==u.match(C)&&(S=!0,c=c.replace(C,""),u=u.replace(C,"")),m=["#version 300 es\n","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+m,v=["#version 300 es\n","#define varying in",S?"":"out highp vec4 pc_fragColor;",S?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+v}var A=v+u,L=br(s,35633,m+c),P=br(s,35632,A);s.attachShader(M,L),s.attachShader(M,P),void 0!==i.index0AttributeName?s.bindAttribLocation(M,0,i.index0AttributeName):!0===a.morphTargets&&s.bindAttribLocation(M,0,"position"),s.linkProgram(M);var O,R,D=s.getProgramInfoLog(M).trim(),I=s.getShaderInfoLog(L).trim(),k=s.getShaderInfoLog(P).trim(),N=!0,z=!0;return!1===s.getProgramParameter(M,35714)?(N=!1,console.error("THREE.WebGLProgram: shader error: ",s.getError(),"35715",s.getProgramParameter(M,35715),"gl.getProgramInfoLog",D,I,k)):""!==D?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",D):""!==I&&""!==k||(z=!1),z&&(this.diagnostics={runnable:N,material:i,programLog:D,vertexShader:{log:I,prefix:m},fragmentShader:{log:k,prefix:v}}),s.deleteShader(L),s.deleteShader(P),this.getUniforms=function(){return void 0===O&&(O=new yr(s,M,e)),O},this.getAttributes=function(){return void 0===R&&(R=function(e,t){for(var n={},i=e.getProgramParameter(t,35721),r=0;r<i;r++){var a=e.getActiveAttrib(t,r).name;n[a]=e.getAttribLocation(t,a)}return n}(s,M)),R},this.destroy=function(){s.deleteProgram(M),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=r.name,this.id=xr++,this.code=n,this.usedTimes=1,this.program=M,this.vertexShader=L,this.fragmentShader=P,this}function Lr(e,t,n){var i=[],r={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"},a=["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"];function o(e,t){var n;return e?e.isTexture?n=e.encoding:e.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),n=e.texture.encoding):n=zt,n===zt&&t&&(n=Bt),n}this.getParameters=function(t,i,a,s,l,c,u){var h=r[t.type],d=u.isSkinnedMesh?function(e){var t=e.skeleton.bones;if(n.floatVertexTextures)return 1024;var i=n.maxVertexUniforms,r=Math.floor((i-20)/4),a=Math.min(r,t.length);return a<t.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+t.length+" bones. This GPU supports "+a+"."),0):a}(u):0,p=n.precision;null!==t.precision&&(p=n.getMaxPrecision(t.precision))!==t.precision&&console.warn("THREE.WebGLProgram.getParameters:",t.precision,"not supported, using",p,"instead.");var f=e.getRenderTarget();return{shaderID:h,precision:p,supportsVertexTextures:n.vertexTextures,outputEncoding:o(f?f.texture:null,e.gammaOutput),map:!!t.map,mapEncoding:o(t.map,e.gammaInput),matcap:!!t.matcap,matcapEncoding:o(t.matcap,e.gammaInput),envMap:!!t.envMap,envMapMode:t.envMap&&t.envMap.mapping,envMapEncoding:o(t.envMap,e.gammaInput),envMapCubeUV:!!t.envMap&&(t.envMap.mapping===Ee||t.envMap.mapping===Te),lightMap:!!t.lightMap,aoMap:!!t.aoMap,emissiveMap:!!t.emissiveMap,emissiveMapEncoding:o(t.emissiveMap,e.gammaInput),bumpMap:!!t.bumpMap,normalMap:!!t.normalMap,objectSpaceNormalMap:t.normalMapType===qt,displacementMap:!!t.displacementMap,roughnessMap:!!t.roughnessMap,metalnessMap:!!t.metalnessMap,specularMap:!!t.specularMap,alphaMap:!!t.alphaMap,gradientMap:!!t.gradientMap,combine:t.combine,vertexColors:t.vertexColors,fog:!!s,useFog:t.fog,fogExp:s&&s.isFogExp2,flatShading:t.flatShading,sizeAttenuation:t.sizeAttenuation,logarithmicDepthBuffer:n.logarithmicDepthBuffer,skinning:t.skinning&&d>0,maxBones:d,useVertexTexture:n.floatVertexTextures,morphTargets:t.morphTargets,morphNormals:t.morphNormals,maxMorphTargets:e.maxMorphTargets,maxMorphNormals:e.maxMorphNormals,numDirLights:i.directional.length,numPointLights:i.point.length,numSpotLights:i.spot.length,numRectAreaLights:i.rectArea.length,numHemiLights:i.hemi.length,numClippingPlanes:l,numClipIntersection:c,dithering:t.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.receiveShadow&&a.length>0,shadowMapType:e.shadowMap.type,toneMapping:e.toneMapping,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:t.premultipliedAlpha,alphaTest:t.alphaTest,doubleSided:t.side===A,flipSided:t.side===C,depthPacking:void 0!==t.depthPacking&&t.depthPacking}},this.getProgramCode=function(t,n){var i=[];if(n.shaderID?i.push(n.shaderID):(i.push(t.fragmentShader),i.push(t.vertexShader)),void 0!==t.defines)for(var r in t.defines)i.push(r),i.push(t.defines[r]);for(var o=0;o<a.length;o++)i.push(n[a[o]]);return i.push(t.onBeforeCompile.toString()),i.push(e.gammaOutput),i.push(e.gammaFactor),i.join()},this.acquireProgram=function(r,a,o,s){for(var l,c=0,u=i.length;c<u;c++){var h=i[c];if(h.code===s){++(l=h).usedTimes;break}}return void 0===l&&(l=new Ar(e,t,s,r,a,o,n),i.push(l)),l},this.releaseProgram=function(e){if(0==--e.usedTimes){var t=i.indexOf(e);i[t]=i[i.length-1],i.pop(),e.destroy()}},this.programs=i}function Pr(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.program&&t.program&&e.program!==t.program?e.program.id-t.program.id:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function Or(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function Rr(){var e={};return{get:function(t,n){var i=t.id+","+n.id,r=e[i];return void 0===r&&(r=new function(){var e=[],t=0,n=[],i=[];return{opaque:n,transparent:i,init:function(){t=0,n.length=0,i.length=0},push:function(r,a,o,s,l){var c=e[t];void 0===c?(c={id:r.id,object:r,geometry:a,material:o,program:o.program,renderOrder:r.renderOrder,z:s,group:l},e[t]=c):(c.id=r.id,c.object=r,c.geometry=a,c.material=o,c.program=o.program,c.renderOrder=r.renderOrder,c.z=s,c.group=l),(!0===o.transparent?i:n).push(c),t++},sort:function(){n.length>1&&n.sort(Pr),i.length>1&&i.sort(Or)}}},e[i]=r),r},dispose:function(){e={}}}}var Dr=0;function Ir(){var e=new function(){var e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];var n;switch(t.type){case"DirectionalLight":n={direction:new Qt,color:new En,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Jt};break;case"SpotLight":n={position:new Qt,direction:new Qt,color:new En,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Jt};break;case"PointLight":n={position:new Qt,color:new En,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Jt,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":n={direction:new Qt,skyColor:new En,groundColor:new En};break;case"RectAreaLight":n={color:new En,position:new Qt,halfWidth:new Qt,halfHeight:new Qt}}return e[t.id]=n,n}}},t={id:Dr++,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:[]},n=new Qt,i=new Zt,r=new Zt;return{setup:function(a,o,s){for(var l=0,c=0,u=0,h=0,d=0,p=0,f=0,m=0,v=s.matrixWorldInverse,g=0,y=a.length;g<y;g++){var b=a[g],x=b.color,w=b.intensity,_=b.distance,M=b.shadow&&b.shadow.map?b.shadow.map.texture:null;if(b.isAmbientLight)l+=x.r*w,c+=x.g*w,u+=x.b*w;else if(b.isDirectionalLight){if((T=e.get(b)).color.copy(b.color).multiplyScalar(b.intensity),T.direction.setFromMatrixPosition(b.matrixWorld),n.setFromMatrixPosition(b.target.matrixWorld),T.direction.sub(n),T.direction.transformDirection(v),T.shadow=b.castShadow,b.castShadow){var E=b.shadow;T.shadowBias=E.bias,T.shadowRadius=E.radius,T.shadowMapSize=E.mapSize}t.directionalShadowMap[h]=M,t.directionalShadowMatrix[h]=b.shadow.matrix,t.directional[h]=T,h++}else if(b.isSpotLight)(T=e.get(b)).position.setFromMatrixPosition(b.matrixWorld),T.position.applyMatrix4(v),T.color.copy(x).multiplyScalar(w),T.distance=_,T.direction.setFromMatrixPosition(b.matrixWorld),n.setFromMatrixPosition(b.target.matrixWorld),T.direction.sub(n),T.direction.transformDirection(v),T.coneCos=Math.cos(b.angle),T.penumbraCos=Math.cos(b.angle*(1-b.penumbra)),T.decay=b.decay,T.shadow=b.castShadow,b.castShadow&&(E=b.shadow,T.shadowBias=E.bias,T.shadowRadius=E.radius,T.shadowMapSize=E.mapSize),t.spotShadowMap[p]=M,t.spotShadowMatrix[p]=b.shadow.matrix,t.spot[p]=T,p++;else if(b.isRectAreaLight)(T=e.get(b)).color.copy(x).multiplyScalar(w),T.position.setFromMatrixPosition(b.matrixWorld),T.position.applyMatrix4(v),r.identity(),i.copy(b.matrixWorld),i.premultiply(v),r.extractRotation(i),T.halfWidth.set(.5*b.width,0,0),T.halfHeight.set(0,.5*b.height,0),T.halfWidth.applyMatrix4(r),T.halfHeight.applyMatrix4(r),t.rectArea[f]=T,f++;else if(b.isPointLight)(T=e.get(b)).position.setFromMatrixPosition(b.matrixWorld),T.position.applyMatrix4(v),T.color.copy(b.color).multiplyScalar(b.intensity),T.distance=b.distance,T.decay=b.decay,T.shadow=b.castShadow,b.castShadow&&(E=b.shadow,T.shadowBias=E.bias,T.shadowRadius=E.radius,T.shadowMapSize=E.mapSize,T.shadowCameraNear=E.camera.near,T.shadowCameraFar=E.camera.far),t.pointShadowMap[d]=M,t.pointShadowMatrix[d]=b.shadow.matrix,t.point[d]=T,d++;else if(b.isHemisphereLight){var T;(T=e.get(b)).direction.setFromMatrixPosition(b.matrixWorld),T.direction.transformDirection(v),T.direction.normalize(),T.skyColor.copy(b.color).multiplyScalar(w),T.groundColor.copy(b.groundColor).multiplyScalar(w),t.hemi[m]=T,m++}}t.ambient[0]=l,t.ambient[1]=c,t.ambient[2]=u,t.directional.length=h,t.spot.length=p,t.rectArea.length=f,t.point.length=d,t.hemi.length=m,t.hash.stateID=t.id,t.hash.directionalLength=h,t.hash.pointLength=d,t.hash.spotLength=p,t.hash.rectAreaLength=f,t.hash.hemiLength=m,t.hash.shadowsLength=o.length},state:t}}function kr(){var e=new Ir,t=[],n=[];return{init:function(){t.length=0,n.length=0},state:{lightsArray:t,shadowsArray:n,lights:e},setupLights:function(i){e.setup(t,n,i)},pushLight:function(e){t.push(e)},pushShadow:function(e){n.push(e)}}}function Nr(e){xi.call(this),this.type="MeshDepthMaterial",this.depthPacking=Wt,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.setValues(e)}function zr(e){xi.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new Qt,this.nearDistance=1,this.farDistance=1e3,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.lights=!1,this.setValues(e)}function Fr(e,t,n){for(var i=new gn,r=new Zt,a=new Jt,o=new Jt(n,n),s=new Qt,l=new Qt,c=1,u=2,h=1+(c|u),d=new Array(h),p=new Array(h),f={},m={0:C,1:S,2:A},v=[new Qt(1,0,0),new Qt(-1,0,0),new Qt(0,0,1),new Qt(0,0,-1),new Qt(0,1,0),new Qt(0,-1,0)],g=[new Qt(0,1,0),new Qt(0,1,0),new Qt(0,1,0),new Qt(0,1,0),new Qt(0,0,1),new Qt(0,0,-1)],y=[new un,new un,new un,new un,new un,new un],b=0;b!==h;++b){var x=0!=(b&c),w=0!=(b&u),_=new Nr({depthPacking:$t,morphTargets:x,skinning:w});d[b]=_;var M=new zr({morphTargets:x,skinning:w});p[b]=M}var T=this;function L(t,n,i,r,a,o){var s=t.geometry,l=null,h=d,v=t.customDepthMaterial;if(i&&(h=p,v=t.customDistanceMaterial),v)l=v;else{var g=!1;n.morphTargets&&(s&&s.isBufferGeometry?g=s.morphAttributes&&s.morphAttributes.position&&s.morphAttributes.position.length>0:s&&s.isGeometry&&(g=s.morphTargets&&s.morphTargets.length>0)),t.isSkinnedMesh&&!1===n.skinning&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",t);var y=t.isSkinnedMesh&&n.skinning,b=0;g&&(b|=c),y&&(b|=u),l=h[b]}if(e.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var x=l.uuid,w=n.uuid,_=f[x];void 0===_&&(_={},f[x]=_);var M=_[w];void 0===M&&(M=l.clone(),_[w]=M),l=M}return l.visible=n.visible,l.wireframe=n.wireframe,l.side=null!=n.shadowSide?n.shadowSide:m[n.side],l.clipShadows=n.clipShadows,l.clippingPlanes=n.clippingPlanes,l.clipIntersection=n.clipIntersection,l.wireframeLinewidth=n.wireframeLinewidth,l.linewidth=n.linewidth,i&&l.isMeshDistanceMaterial&&(l.referencePosition.copy(r),l.nearDistance=a,l.farDistance=o),l}function P(n,r,a,o){if(!1!==n.visible){if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&n.castShadow&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);var s=t.update(n),c=n.material;if(Array.isArray(c))for(var u=s.groups,h=0,d=u.length;h<d;h++){var p=u[h],f=c[p.materialIndex];if(f&&f.visible){var m=L(n,f,o,l,a.near,a.far);e.renderBufferDirect(a,null,s,m,n,p)}}else if(c.visible){m=L(n,c,o,l,a.near,a.far);e.renderBufferDirect(a,null,s,m,n,null)}}for(var v=n.children,g=0,y=v.length;g<y;g++)P(v[g],r,a,o)}}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=E,this.render=function(t,n,c){if(!1!==T.enabled&&(!1!==T.autoUpdate||!1!==T.needsUpdate)&&0!==t.length){e.context;var u,h=e.state;h.disable(3042),h.buffers.color.setClear(1,1,1,1),h.buffers.depth.setTest(!0),h.setScissorTest(!1);for(var d=0,p=t.length;d<p;d++){var f=t[d],m=f.shadow,b=f&&f.isPointLight;if(void 0!==m){var x=m.camera;if(a.copy(m.mapSize),a.min(o),b){var w=a.x,_=a.y;y[0].set(2*w,_,w,_),y[1].set(0,_,w,_),y[2].set(3*w,_,w,_),y[3].set(w,_,w,_),y[4].set(3*w,0,w,_),y[5].set(w,0,w,_),a.x*=4,a.y*=2}if(null===m.map){var M={minFilter:Le,magFilter:Le,format:Xe};m.map=new hn(a.x,a.y,M),m.map.texture.name=f.name+".shadowMap",x.updateProjectionMatrix()}m.isSpotLightShadow&&m.update(f);var E=m.map,S=m.matrix;l.setFromMatrixPosition(f.matrixWorld),x.position.copy(l),b?(u=6,S.makeTranslation(-l.x,-l.y,-l.z)):(u=1,s.setFromMatrixPosition(f.target.matrixWorld),x.lookAt(s),x.updateMatrixWorld(),S.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),S.multiply(x.projectionMatrix),S.multiply(x.matrixWorldInverse)),e.setRenderTarget(E),e.clear();for(var C=0;C<u;C++){if(b){s.copy(x.position),s.add(v[C]),x.up.copy(g[C]),x.lookAt(s),x.updateMatrixWorld();var A=y[C];h.viewport(A)}r.multiplyMatrices(x.projectionMatrix,x.matrixWorldInverse),i.setFromMatrix(r),P(n,c,x,b)}}else console.warn("THREE.WebGLShadowMap:",f,"has no shadow.")}T.needsUpdate=!1}}}function Br(e,t,n,i,r,a,o){var s,l={};function c(e,t){if(e.width>t||e.height>t){if("data"in e)return void console.warn("THREE.WebGLRenderer: image in DataTexture is too big ("+e.width+"x"+e.height+").");var n=t/Math.max(e.width,e.height),i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return i.width=Math.floor(e.width*n),i.height=Math.floor(e.height*n),i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,i.width,i.height),console.warn("THREE.WebGLRenderer: image is too big ("+e.width+"x"+e.height+"). Resized to "+i.width+"x"+i.height),i}return e}function u(e){return Xt.isPowerOfTwo(e.width)&&Xt.isPowerOfTwo(e.height)}function h(e,t){return e.generateMipmaps&&t&&e.minFilter!==Le&&e.minFilter!==Re}function d(t,n,r,a){e.generateMipmap(t),i.get(n).__maxMipLevel=Math.log(Math.max(r,a))*Math.LOG2E}function p(e,t){if(!r.isWebGL2)return e;if(6403===e){if(5126===t)return 33326;if(5131===t)return 33325;if(5121===t)return 33321}if(6407===e){if(5126===t)return 34837;if(5131===t)return 34843;if(5121===t)return 32849}if(6408===e){if(5126===t)return 34836;if(5131===t)return 34842;if(5121===t)return 32856}return e}function f(e){return e===Le||e===Pe||e===Oe?9728:9729}function m(t){var n=t.target;n.removeEventListener("dispose",m),function(t){var n=i.get(t);if(t.image&&n.__image__webglTextureCube)e.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)return;e.deleteTexture(n.__webglTexture)}i.remove(t)}(n),n.isVideoTexture&&delete l[n.id],o.memory.textures--}function v(t){var n=t.target;n.removeEventListener("dispose",v),function(t){var n=i.get(t),r=i.get(t.texture);if(!t)return;void 0!==r.__webglTexture&&e.deleteTexture(r.__webglTexture);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLRenderTargetCube)for(var a=0;a<6;a++)e.deleteFramebuffer(n.__webglFramebuffer[a]),n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[a]);else e.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer);i.remove(t.texture),i.remove(t)}(n),o.memory.textures--}function g(e,t){var r=i.get(e);if(e.isVideoTexture&&function(e){var t=e.id,n=o.render.frame;l[t]!==n&&(l[t]=n,e.update())}(e),e.version>0&&r.__version!==e.version){var a=e.image;if(void 0===a)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==a.complete)return void b(r,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+t),n.bindTexture(3553,r.__webglTexture)}function y(n,o,s){var l;if(s?(e.texParameteri(n,10242,a.convert(o.wrapS)),e.texParameteri(n,10243,a.convert(o.wrapT)),e.texParameteri(n,10240,a.convert(o.magFilter)),e.texParameteri(n,10241,a.convert(o.minFilter))):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),o.wrapS===Ce&&o.wrapT===Ce||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,f(o.magFilter)),e.texParameteri(n,10241,f(o.minFilter)),o.minFilter!==Le&&o.minFilter!==Re&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),l=t.get("EXT_texture_filter_anisotropic")){if(o.type===je&&null===t.get("OES_texture_float_linear"))return;if(o.type===Ue&&null===(r.isWebGL2||t.get("OES_texture_half_float_linear")))return;(o.anisotropy>1||i.get(o).__currentAnisotropy)&&(e.texParameterf(n,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy)}}function b(t,i,l){var f;f=i.isDataTexture3D?32879:3553,void 0===t.__webglInit&&(t.__webglInit=!0,i.addEventListener("dispose",m),t.__webglTexture=e.createTexture(),o.memory.textures++),n.activeTexture(33984+l),n.bindTexture(f,t.__webglTexture),e.pixelStorei(37440,i.flipY),e.pixelStorei(37441,i.premultiplyAlpha),e.pixelStorei(3317,i.unpackAlignment);var v=c(i.image,r.maxTextureSize);(function(e){return!r.isWebGL2&&(e.wrapS!==Ce||e.wrapT!==Ce||e.minFilter!==Le&&e.minFilter!==Re)})(i)&&!1===u(v)&&(v=function(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageBitmap?(void 0===s&&(s=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),s.width=Xt.floorPowerOfTwo(e.width),s.height=Xt.floorPowerOfTwo(e.height),s.getContext("2d").drawImage(e,0,0,s.width,s.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+e.width+"x"+e.height+"). Resized to "+s.width+"x"+s.height),s):e}(v));var g=u(v),b=a.convert(i.format),x=a.convert(i.type),w=p(b,x);y(f,i,g);var _,M=i.mipmaps;if(i.isDepthTexture){if(w=6402,i.type===je){if(!r.isWebGL2)throw new Error("Float Depth Texture only supported in WebGL2.0");w=36012}else r.isWebGL2&&(w=33189);i.format===Qe&&6402===w&&i.type!==Fe&&i.type!==He&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=Fe,x=a.convert(i.type)),i.format===et&&(w=34041,i.type!==$e&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=$e,x=a.convert(i.type))),n.texImage2D(3553,0,w,v.width,v.height,0,b,x,null)}else if(i.isDataTexture)if(M.length>0&&g){for(var E=0,T=M.length;E<T;E++)_=M[E],n.texImage2D(3553,E,w,_.width,_.height,0,b,x,_.data);i.generateMipmaps=!1,t.__maxMipLevel=M.length-1}else n.texImage2D(3553,0,w,v.width,v.height,0,b,x,v.data),t.__maxMipLevel=0;else if(i.isCompressedTexture){for(E=0,T=M.length;E<T;E++)_=M[E],i.format!==Xe&&i.format!==qe?n.getCompressedTextureFormats().indexOf(b)>-1?n.compressedTexImage2D(3553,E,w,_.width,_.height,0,_.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(3553,E,w,_.width,_.height,0,b,x,_.data);t.__maxMipLevel=M.length-1}else if(i.isDataTexture3D)n.texImage3D(32879,0,w,v.width,v.height,v.depth,0,b,x,v.data),t.__maxMipLevel=0;else if(M.length>0&&g){for(E=0,T=M.length;E<T;E++)_=M[E],n.texImage2D(3553,E,w,b,x,_);i.generateMipmaps=!1,t.__maxMipLevel=M.length-1}else n.texImage2D(3553,0,w,b,x,v),t.__maxMipLevel=0;h(i,g)&&d(3553,i,v.width,v.height),t.__version=i.version,i.onUpdate&&i.onUpdate(i)}function x(t,r,o,s){var l=a.convert(r.texture.format),c=a.convert(r.texture.type),u=p(l,c);n.texImage2D(s,0,u,r.width,r.height,0,l,c,null),e.bindFramebuffer(36160,t),e.framebufferTexture2D(36160,o,s,i.get(r.texture).__webglTexture,0),e.bindFramebuffer(36160,null)}function w(t,n){e.bindRenderbuffer(36161,t),n.depthBuffer&&!n.stencilBuffer?(e.renderbufferStorage(36161,33189,n.width,n.height),e.framebufferRenderbuffer(36160,36096,36161,t)):n.depthBuffer&&n.stencilBuffer?(e.renderbufferStorage(36161,34041,n.width,n.height),e.framebufferRenderbuffer(36160,33306,36161,t)):e.renderbufferStorage(36161,32854,n.width,n.height),e.bindRenderbuffer(36161,null)}function _(t){var n=i.get(t),r=!0===t.isWebGLRenderTargetCube;if(t.depthTexture){if(r)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,n){if(n&&n.isWebGLRenderTargetCube)throw new Error("Depth Texture with cube render targets is not supported");if(e.bindFramebuffer(36160,t),!n.depthTexture||!n.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(n.depthTexture).__webglTexture&&n.depthTexture.image.width===n.width&&n.depthTexture.image.height===n.height||(n.depthTexture.image.width=n.width,n.depthTexture.image.height=n.height,n.depthTexture.needsUpdate=!0),g(n.depthTexture,0);var r=i.get(n.depthTexture).__webglTexture;if(n.depthTexture.format===Qe)e.framebufferTexture2D(36160,36096,3553,r,0);else{if(n.depthTexture.format!==et)throw new Error("Unknown depthTexture format");e.framebufferTexture2D(36160,33306,3553,r,0)}}(n.__webglFramebuffer,t)}else if(r){n.__webglDepthbuffer=[];for(var a=0;a<6;a++)e.bindFramebuffer(36160,n.__webglFramebuffer[a]),n.__webglDepthbuffer[a]=e.createRenderbuffer(),w(n.__webglDepthbuffer[a],t)}else e.bindFramebuffer(36160,n.__webglFramebuffer),n.__webglDepthbuffer=e.createRenderbuffer(),w(n.__webglDepthbuffer,t);e.bindFramebuffer(36160,null)}this.setTexture2D=g,this.setTexture3D=function(e,t){var r=i.get(e);e.version>0&&r.__version!==e.version?b(r,e,t):(n.activeTexture(33984+t),n.bindTexture(32879,r.__webglTexture))},this.setTextureCube=function(t,s){var l=i.get(t);if(6===t.image.length)if(t.version>0&&l.__version!==t.version){l.__image__webglTextureCube||(t.addEventListener("dispose",m),l.__image__webglTextureCube=e.createTexture(),o.memory.textures++),n.activeTexture(33984+s),n.bindTexture(34067,l.__image__webglTextureCube),e.pixelStorei(37440,t.flipY);for(var f=t&&t.isCompressedTexture,v=t.image[0]&&t.image[0].isDataTexture,g=[],b=0;b<6;b++)g[b]=f||v?v?t.image[b].image:t.image[b]:c(t.image[b],r.maxCubemapSize);var x=g[0],w=u(x),_=a.convert(t.format),M=a.convert(t.type),E=p(_,M);for(y(34067,t,w),b=0;b<6;b++)if(f)for(var T,S=g[b].mipmaps,C=0,A=S.length;C<A;C++)T=S[C],t.format!==Xe&&t.format!==qe?n.getCompressedTextureFormats().indexOf(_)>-1?n.compressedTexImage2D(34069+b,C,E,T.width,T.height,0,T.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(34069+b,C,E,T.width,T.height,0,_,M,T.data);else v?n.texImage2D(34069+b,0,E,g[b].width,g[b].height,0,_,M,g[b].data):n.texImage2D(34069+b,0,E,_,M,g[b]);l.__maxMipLevel=f?S.length-1:0,h(t,w)&&d(34067,t,x.width,x.height),l.__version=t.version,t.onUpdate&&t.onUpdate(t)}else n.activeTexture(33984+s),n.bindTexture(34067,l.__image__webglTextureCube)},this.setTextureCubeDynamic=function(e,t){n.activeTexture(33984+t),n.bindTexture(34067,i.get(e).__webglTexture)},this.setupRenderTarget=function(t){var r=i.get(t),a=i.get(t.texture);t.addEventListener("dispose",v),a.__webglTexture=e.createTexture(),o.memory.textures++;var s=!0===t.isWebGLRenderTargetCube,l=u(t);if(s){r.__webglFramebuffer=[];for(var c=0;c<6;c++)r.__webglFramebuffer[c]=e.createFramebuffer()}else r.__webglFramebuffer=e.createFramebuffer();if(s){for(n.bindTexture(34067,a.__webglTexture),y(34067,t.texture,l),c=0;c<6;c++)x(r.__webglFramebuffer[c],t,36064,34069+c);h(t.texture,l)&&d(34067,t.texture,t.width,t.height),n.bindTexture(34067,null)}else n.bindTexture(3553,a.__webglTexture),y(3553,t.texture,l),x(r.__webglFramebuffer,t,36064,3553),h(t.texture,l)&&d(3553,t.texture,t.width,t.height),n.bindTexture(3553,null);t.depthBuffer&&_(t)},this.updateRenderTargetMipmap=function(e){var t=e.texture;if(h(t,u(e))){var r=e.isWebGLRenderTargetCube?34067:3553,a=i.get(t).__webglTexture;n.bindTexture(r,a),d(r,t,e.width,e.height),n.bindTexture(r,null)}}}function Hr(e,t,n){return{convert:function(e){var i;if(e===Se)return 10497;if(e===Ce)return 33071;if(e===Ae)return 33648;if(e===Le)return 9728;if(e===Pe)return 9984;if(e===Oe)return 9986;if(e===Re)return 9729;if(e===De)return 9985;if(e===Ie)return 9987;if(e===ke)return 5121;if(e===Ge)return 32819;if(e===Ve)return 32820;if(e===We)return 33635;if(e===Ne)return 5120;if(e===ze)return 5122;if(e===Fe)return 5123;if(e===Be)return 5124;if(e===He)return 5125;if(e===je)return 5126;if(e===Ue){if(n.isWebGL2)return 5131;if(null!==(i=t.get("OES_texture_half_float")))return i.HALF_FLOAT_OES}if(e===Ye)return 6406;if(e===qe)return 6407;if(e===Xe)return 6408;if(e===Je)return 6409;if(e===Ze)return 6410;if(e===Qe)return 6402;if(e===et)return 34041;if(e===tt)return 6403;if(e===H)return 32774;if(e===j)return 32778;if(e===U)return 32779;if(e===W)return 0;if(e===$)return 1;if(e===Y)return 768;if(e===q)return 769;if(e===X)return 770;if(e===J)return 771;if(e===Z)return 772;if(e===K)return 773;if(e===Q)return 774;if(e===ee)return 775;if(e===te)return 776;if((e===nt||e===it||e===rt||e===at)&&null!==(i=t.get("WEBGL_compressed_texture_s3tc"))){if(e===nt)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===it)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===rt)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===at)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((e===ot||e===st||e===lt||e===ct)&&null!==(i=t.get("WEBGL_compressed_texture_pvrtc"))){if(e===ot)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(e===st)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(e===lt)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(e===ct)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(e===ut&&null!==(i=t.get("WEBGL_compressed_texture_etc1")))return i.COMPRESSED_RGB_ETC1_WEBGL;if((e===ht||e===dt||e===pt||e===ft||e===mt||e===vt||e===gt||e===yt||e===bt||e===xt||e===wt||e===_t||e===Mt||e===Et)&&null!==(i=t.get("WEBGL_compressed_texture_astc")))return e;if(e===G||e===V){if(n.isWebGL2){if(e===G)return 32775;if(e===V)return 32776}if(null!==(i=t.get("EXT_blend_minmax"))){if(e===G)return i.MIN_EXT;if(e===V)return i.MAX_EXT}}if(e===$e){if(n.isWebGL2)return 34042;if(null!==(i=t.get("WEBGL_depth_texture")))return i.UNSIGNED_INT_24_8_WEBGL}return 0}}}function jr(){Fn.call(this),this.type="Group"}function Ur(){Fn.call(this),this.type="Camera",this.matrixWorldInverse=new Zt,this.projectionMatrix=new Zt,this.projectionMatrixInverse=new Zt}function Gr(e,t,n,i){Ur.call(this),this.type="PerspectiveCamera",this.fov=void 0!==e?e:50,this.zoom=1,this.near=void 0!==n?n:.1,this.far=void 0!==i?i:2e3,this.focus=10,this.aspect=void 0!==t?t:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function Vr(e){Gr.call(this),this.cameras=e||[]}Nr.prototype=Object.create(xi.prototype),Nr.prototype.constructor=Nr,Nr.prototype.isMeshDepthMaterial=!0,Nr.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.depthPacking=e.depthPacking,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this},zr.prototype=Object.create(xi.prototype),zr.prototype.constructor=zr,zr.prototype.isMeshDistanceMaterial=!0,zr.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this},jr.prototype=Object.assign(Object.create(Fn.prototype),{constructor:jr,isGroup:!0}),Ur.prototype=Object.assign(Object.create(Fn.prototype),{constructor:Ur,isCamera:!0,copy:function(e,t){return Fn.prototype.copy.call(this,e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this},getWorldDirection:function(e){void 0===e&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),e=new Qt),this.updateMatrixWorld(!0);var t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()},updateMatrixWorld:function(e){Fn.prototype.updateMatrixWorld.call(this,e),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return(new this.constructor).copy(this)}}),Gr.prototype=Object.assign(Object.create(Ur.prototype),{constructor:Gr,isPerspectiveCamera:!0,copy:function(e,t){return Ur.prototype.copy.call(this,e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this},setFocalLength:function(e){var t=.5*this.getFilmHeight()/e;this.fov=2*Xt.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var e=Math.tan(.5*Xt.DEG2RAD*this.fov);return.5*this.getFilmHeight()/e},getEffectiveFOV:function(){return 2*Xt.RAD2DEG*Math.atan(Math.tan(.5*Xt.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(e,t,n,i,r,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var e=this.near,t=e*Math.tan(.5*Xt.DEG2RAD*this.fov)/this.zoom,n=2*t,i=this.aspect*n,r=-.5*i,a=this.view;if(null!==this.view&&this.view.enabled){var o=a.fullWidth,s=a.fullHeight;r+=a.offsetX*i/o,t-=a.offsetY*n/s,i*=a.width/o,n*=a.height/s}var l=this.filmOffset;0!==l&&(r+=e*l/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,t,t-n,e,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(e){var t=Fn.prototype.toJSON.call(this,e);return 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,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),Vr.prototype=Object.assign(Object.create(Gr.prototype),{constructor:Vr,isArrayCamera:!0});var Wr,$r,Yr,qr,Xr,Jr,Zr=new Qt,Kr=new Qt;function Qr(e,t,n){Zr.setFromMatrixPosition(t.matrixWorld),Kr.setFromMatrixPosition(n.matrixWorld);var i=Zr.distanceTo(Kr),r=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=r[14]/(r[10]-1),s=r[14]/(r[10]+1),l=(r[9]+1)/r[5],c=(r[9]-1)/r[5],u=(r[8]-1)/r[0],h=(a[8]+1)/a[0],d=o*u,p=o*h,f=i/(-u+h),m=f*-u;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(f),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.getInverse(e.matrixWorld);var v=o+f,g=s+f,y=d-m,b=p+(i-m),x=l*s/g*v,w=c*s/g*v;e.projectionMatrix.makePerspective(y,b,x,w,v,g)}function ea(e){var t=this,n=null,i=null,r=null,a=[],o=new Zt,s=new Zt,l=1,c="stage";"undefined"!=typeof window&&"VRFrameData"in window&&(i=new window.VRFrameData,window.addEventListener("vrdisplaypresentchange",b,!1));var u=new Zt,h=new Kt,d=new Qt,p=new Gr;p.bounds=new un(0,0,.5,1),p.layers.enable(1);var f=new Gr;f.bounds=new un(.5,0,.5,1),f.layers.enable(2);var m,v,g=new Vr([p,f]);function y(){return null!==n&&!0===n.isPresenting}function b(){if(y()){var i=n.getEyeParameters("left"),r=i.renderWidth*l,a=i.renderHeight*l;v=e.getPixelRatio(),m=e.getSize(),e.setDrawingBufferSize(2*r,a,1),_.start()}else t.enabled&&e.setDrawingBufferSize(m.width,m.height,v),_.stop()}g.layers.enable(1),g.layers.enable(2);var x=[];function w(e){for(var t=navigator.getGamepads&&navigator.getGamepads(),n=0,i=0,r=t.length;n<r;n++){var a=t[n];if(a&&("Daydream Controller"===a.id||"Gear VR Controller"===a.id||"Oculus Go Controller"===a.id||"OpenVR Gamepad"===a.id||a.id.startsWith("Oculus Touch")||a.id.startsWith("Spatial Controller"))){if(i===e)return a;i++}}}this.enabled=!1,this.getController=function(e){var t=a[e];return void 0===t&&((t=new jr).matrixAutoUpdate=!1,t.visible=!1,a[e]=t),t},this.getDevice=function(){return n},this.setDevice=function(e){void 0!==e&&(n=e),_.setContext(e)},this.setFramebufferScaleFactor=function(e){l=e},this.setFrameOfReferenceType=function(e){c=e},this.setPoseTarget=function(e){void 0!==e&&(r=e)},this.getCamera=function(e){var t="stage"===c?1.6:0;if(null===n)return e.position.set(0,t,0),e;if(n.depthNear=e.near,n.depthFar=e.far,n.getFrameData(i),"stage"===c){var l=n.stageParameters;l?o.fromArray(l.sittingToStandingTransform):o.makeTranslation(0,t,0)}var m=i.pose,v=null!==r?r:e;if(v.matrix.copy(o),v.matrix.decompose(v.position,v.quaternion,v.scale),null!==m.orientation&&(h.fromArray(m.orientation),v.quaternion.multiply(h)),null!==m.position&&(h.setFromRotationMatrix(o),d.fromArray(m.position),d.applyQuaternion(h),v.position.add(d)),v.updateMatrixWorld(),!1===n.isPresenting)return e;p.near=e.near,f.near=e.near,p.far=e.far,f.far=e.far,p.matrixWorldInverse.fromArray(i.leftViewMatrix),f.matrixWorldInverse.fromArray(i.rightViewMatrix),s.getInverse(o),"stage"===c&&(p.matrixWorldInverse.multiply(s),f.matrixWorldInverse.multiply(s));var y=v.parent;null!==y&&(u.getInverse(y.matrixWorld),p.matrixWorldInverse.multiply(u),f.matrixWorldInverse.multiply(u)),p.matrixWorld.getInverse(p.matrixWorldInverse),f.matrixWorld.getInverse(f.matrixWorldInverse),p.projectionMatrix.fromArray(i.leftProjectionMatrix),f.projectionMatrix.fromArray(i.rightProjectionMatrix),Qr(g,p,f);var b=n.getLayers();if(b.length){var _=b[0];null!==_.leftBounds&&4===_.leftBounds.length&&p.bounds.fromArray(_.leftBounds),null!==_.rightBounds&&4===_.rightBounds.length&&f.bounds.fromArray(_.rightBounds)}return function(){for(var e=0;e<a.length;e++){var t=a[e],n=w(e);if(void 0!==n&&void 0!==n.pose){if(null===n.pose)return;var i=n.pose;!1===i.hasPosition&&t.position.set(.2,-.6,-.05),null!==i.position&&t.position.fromArray(i.position),null!==i.orientation&&t.quaternion.fromArray(i.orientation),t.matrix.compose(t.position,t.quaternion,t.scale),t.matrix.premultiply(o),t.matrix.decompose(t.position,t.quaternion,t.scale),t.matrixWorldNeedsUpdate=!0,t.visible=!0;var r="Daydream Controller"===n.id?0:1;x[e]!==n.buttons[r].pressed&&(x[e]=n.buttons[r].pressed,!0===x[e]?t.dispatchEvent({type:"selectstart"}):(t.dispatchEvent({type:"selectend"}),t.dispatchEvent({type:"select"})))}else t.visible=!1}}(),g},this.getStandingMatrix=function(){return o},this.isPresenting=y;var _=new An;this.setAnimationLoop=function(e){_.setAnimationLoop(e)},this.submitFrame=function(){y()&&n.submitFrame()},this.dispose=function(){"undefined"!=typeof window&&window.removeEventListener("vrdisplaypresentchange",b)}}function ta(e){console.log("THREE.WebGLRenderer",m);var t=void 0!==(e=e||{}).canvas?e.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),n=void 0!==e.context?e.context:null,i=void 0!==e.alpha&&e.alpha,r=void 0===e.depth||e.depth,a=void 0===e.stencil||e.stencil,o=void 0!==e.antialias&&e.antialias,s=void 0===e.premultipliedAlpha||e.premultipliedAlpha,l=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,c=void 0!==e.powerPreference?e.powerPreference:"default",u=null,h=null;this.domElement=t,this.context=null,this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.gammaInput=!1,this.gammaOutput=!1,this.physicallyCorrectLights=!1,this.toneMapping=fe,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var d,p,f,v,x,w,_,M,E,T,L,P,O,R,D,j,U,G,V=this,W=!1,$=null,Y=null,q=null,X=-1,J={geometry:null,program:null,wireframe:!1},Z=null,K=null,Q=new un,ee=new un,te=null,ue=0,he=t.width,de=t.height,pe=1,me=new un(0,0,he,de),ve=new un(0,0,he,de),ge=!1,ye=new gn,be=new function(){var e=this,t=null,n=0,i=!1,r=!1,a=new vn,o=new en,s={value:null,needsUpdate:!1};function l(){s.value!==t&&(s.value=t,s.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function c(t,n,i,r){var l=null!==t?t.length:0,c=null;if(0!==l){if(c=s.value,!0!==r||null===c){var u=i+4*l,h=n.matrixWorldInverse;o.getNormalMatrix(h),(null===c||c.length<u)&&(c=new Float32Array(u));for(var d=0,p=i;d!==l;++d,p+=4)a.copy(t[d]).applyMatrix4(h,o),a.normal.toArray(c,p),c[p+3]=a.constant}s.value=c,s.needsUpdate=!0}return e.numPlanes=l,c}this.uniform=s,this.numPlanes=0,this.numIntersection=0,this.init=function(e,r,a){var o=0!==e.length||r||0!==n||i;return i=r,t=c(e,a,0),n=e.length,o},this.beginShadows=function(){r=!0,c(null)},this.endShadows=function(){r=!1,l()},this.setState=function(e,a,o,u,h,d){if(!i||null===e||0===e.length||r&&!o)r?c(null):l();else{var p=r?0:n,f=4*p,m=h.clippingState||null;s.value=m,m=c(e,u,f,d);for(var v=0;v!==f;++v)m[v]=t[v];h.clippingState=m,this.numIntersection=a?this.numPlanes:0,this.numPlanes+=p}}},xe=!1,we=!1,_e=new Zt,Me=new Qt;function Ee(){return null===Y?pe:1}try{var Te={alpha:i,depth:r,stencil:a,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:l,powerPreference:c};if(t.addEventListener("webglcontextlost",Le,!1),t.addEventListener("webglcontextrestored",Pe,!1),null===(d=n||t.getContext("webgl",Te)||t.getContext("experimental-webgl",Te)))throw null!==t.getContext("webgl")?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.");void 0===d.getShaderPrecisionFormat&&(d.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(e){console.error("THREE.WebGLRenderer: "+e.message)}function Se(){p=new function(e){var t={};return{get:function(n){if(void 0!==t[n])return t[n];var i;switch(n){case"WEBGL_depth_texture":i=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=e.getExtension(n)}return null===i&&console.warn("THREE.WebGLRenderer: "+n+" extension not supported."),t[n]=i,i}}}(d),(f=new function(e,t,n){var i;function r(t){if("highp"===t){if(e.getShaderPrecisionFormat(35633,36338).precision>0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}var a="undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext,o=void 0!==n.precision?n.precision:"highp",s=r(o);s!==o&&(console.warn("THREE.WebGLRenderer:",o,"not supported, using",s,"instead."),o=s);var l=!0===n.logarithmicDepthBuffer,c=e.getParameter(34930),u=e.getParameter(35660),h=e.getParameter(3379),d=e.getParameter(34076),p=e.getParameter(34921),f=e.getParameter(36347),m=e.getParameter(36348),v=e.getParameter(36349),g=u>0,y=a||!!t.get("OES_texture_float");return{isWebGL2:a,getMaxAnisotropy:function(){if(void 0!==i)return i;var n=t.get("EXT_texture_filter_anisotropic");return i=null!==n?e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:r,precision:o,logarithmicDepthBuffer:l,maxTextures:c,maxVertexTextures:u,maxTextureSize:h,maxCubemapSize:d,maxAttributes:p,maxVertexUniforms:f,maxVaryings:m,maxFragmentUniforms:v,vertexTextures:g,floatFragmentTextures:y,floatVertexTextures:g&&y}}(d,p,e)).isWebGL2||(p.get("WEBGL_depth_texture"),p.get("OES_texture_float"),p.get("OES_texture_half_float"),p.get("OES_texture_half_float_linear"),p.get("OES_standard_derivatives"),p.get("OES_element_index_uint"),p.get("ANGLE_instanced_arrays")),p.get("OES_texture_float_linear"),G=new Hr(d,p,f),(v=new function(e,t,n,i){var r=new function(){var t=!1,n=new un,i=null,r=new un(0,0,0,0);return{setMask:function(n){i===n||t||(e.colorMask(n,n,n,n),i=n)},setLocked:function(e){t=e},setClear:function(t,i,a,o,s){!0===s&&(t*=o,i*=o,a*=o),n.set(t,i,a,o),!1===r.equals(n)&&(e.clearColor(t,i,a,o),r.copy(n))},reset:function(){t=!1,i=null,r.set(-1,0,0,0)}}},a=new function(){var t=!1,n=null,i=null,r=null;return{setTest:function(e){e?Z(2929):K(2929)},setMask:function(i){n===i||t||(e.depthMask(i),n=i)},setFunc:function(t){if(i!==t){if(t)switch(t){case ne:e.depthFunc(512);break;case ie:e.depthFunc(519);break;case re:e.depthFunc(513);break;case ae:e.depthFunc(515);break;case oe:e.depthFunc(514);break;case se:e.depthFunc(518);break;case le:e.depthFunc(516);break;case ce:e.depthFunc(517);break;default:e.depthFunc(515)}else e.depthFunc(515);i=t}},setLocked:function(e){t=e},setClear:function(t){r!==t&&(e.clearDepth(t),r=t)},reset:function(){t=!1,n=null,i=null,r=null}}},o=new function(){var t=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,c=null;return{setTest:function(e){e?Z(2960):K(2960)},setMask:function(i){n===i||t||(e.stencilMask(i),n=i)},setFunc:function(t,n,o){i===t&&r===n&&a===o||(e.stencilFunc(t,n,o),i=t,r=n,a=o)},setOp:function(t,n,i){o===t&&s===n&&l===i||(e.stencilOp(t,n,i),o=t,s=n,l=i)},setLocked:function(e){t=e},setClear:function(t){c!==t&&(e.clearStencil(t),c=t)},reset:function(){t=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,c=null}}},s=e.getParameter(34921),l=new Uint8Array(s),c=new Uint8Array(s),u=new Uint8Array(s),h={},d=null,p=null,f=null,m=null,v=null,x=null,w=null,_=null,M=null,E=null,T=!1,S=null,L=null,P=null,O=null,R=null,D=e.getParameter(35661),j=!1,U=0,G=e.getParameter(7938);-1!==G.indexOf("WebGL")?(U=parseFloat(/^WebGL\ ([0-9])/.exec(G)[1]),j=U>=1):-1!==G.indexOf("OpenGL ES")&&(U=parseFloat(/^OpenGL\ ES\ ([0-9])/.exec(G)[1]),j=U>=2);var V=null,W={},$=new un,Y=new un;function q(t,n,i){var r=new Uint8Array(4),a=e.createTexture();e.bindTexture(t,a),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(var o=0;o<i;o++)e.texImage2D(n+o,0,6408,1,1,0,6408,5121,r);return a}var X={};function J(n,r){l[n]=1,0===c[n]&&(e.enableVertexAttribArray(n),c[n]=1),u[n]!==r&&((i.isWebGL2?e:t.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,r),u[n]=r)}function Z(t){!0!==h[t]&&(e.enable(t),h[t]=!0)}function K(t){!1!==h[t]&&(e.disable(t),h[t]=!1)}function Q(t,i,r,a,o,s,l,c){if(t!==I){if(f||(Z(3042),f=!0),t===B)o=o||i,s=s||r,l=l||a,i===v&&o===_||(e.blendEquationSeparate(n.convert(i),n.convert(o)),v=i,_=o),r===x&&a===w&&s===M&&l===E||(e.blendFuncSeparate(n.convert(r),n.convert(a),n.convert(s),n.convert(l)),x=r,w=a,M=s,E=l),m=t,T=null;else if(t!==m||c!==T){if(v===H&&_===H||(e.blendEquation(32774),v=H,_=H),c)switch(t){case k:e.blendFuncSeparate(1,771,1,771);break;case N:e.blendFunc(1,1);break;case z:e.blendFuncSeparate(0,0,769,771);break;case F:e.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case k:e.blendFuncSeparate(770,771,1,771);break;case N:e.blendFunc(770,1);break;case z:e.blendFunc(0,769);break;case F:e.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}x=null,w=null,M=null,E=null,m=t,T=c}}else f&&(K(3042),f=!1)}function ee(t){S!==t&&(t?e.frontFace(2304):e.frontFace(2305),S=t)}function te(t){t!==g?(Z(2884),t!==L&&(t===y?e.cullFace(1029):t===b?e.cullFace(1028):e.cullFace(1032))):K(2884),L=t}function ue(t,n,i){t?(Z(32823),O===n&&R===i||(e.polygonOffset(n,i),O=n,R=i)):K(32823)}function he(t){void 0===t&&(t=33984+D-1),V!==t&&(e.activeTexture(t),V=t)}return X[3553]=q(3553,3553,1),X[34067]=q(34067,34069,6),r.setClear(0,0,0,1),a.setClear(1),o.setClear(0),Z(2929),a.setFunc(ae),ee(!1),te(y),Z(2884),Q(I),{buffers:{color:r,depth:a,stencil:o},initAttributes:function(){for(var e=0,t=l.length;e<t;e++)l[e]=0},enableAttribute:function(e){J(e,0)},enableAttributeAndDivisor:J,disableUnusedAttributes:function(){for(var t=0,n=c.length;t!==n;++t)c[t]!==l[t]&&(e.disableVertexAttribArray(t),c[t]=0)},enable:Z,disable:K,getCompressedTextureFormats:function(){if(null===d&&(d=[],t.get("WEBGL_compressed_texture_pvrtc")||t.get("WEBGL_compressed_texture_s3tc")||t.get("WEBGL_compressed_texture_etc1")||t.get("WEBGL_compressed_texture_astc")))for(var n=e.getParameter(34467),i=0;i<n.length;i++)d.push(n[i]);return d},useProgram:function(t){return p!==t&&(e.useProgram(t),p=t,!0)},setBlending:Q,setMaterial:function(e,t){e.side===A?K(2884):Z(2884);var n=e.side===C;t&&(n=!n),ee(n),e.blending===k&&!1===e.transparent?Q(I):Q(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),a.setFunc(e.depthFunc),a.setTest(e.depthTest),a.setMask(e.depthWrite),r.setMask(e.colorWrite),ue(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits)},setFlipSided:ee,setCullFace:te,setLineWidth:function(t){t!==P&&(j&&e.lineWidth(t),P=t)},setPolygonOffset:ue,setScissorTest:function(e){e?Z(3089):K(3089)},activeTexture:he,bindTexture:function(t,n){null===V&&he();var i=W[V];void 0===i&&(i={type:void 0,texture:void 0},W[V]=i),i.type===t&&i.texture===n||(e.bindTexture(t,n||X[t]),i.type=t,i.texture=n)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},scissor:function(t){!1===$.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),$.copy(t))},viewport:function(t){!1===Y.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),Y.copy(t))},reset:function(){for(var t=0;t<c.length;t++)1===c[t]&&(e.disableVertexAttribArray(t),c[t]=0);h={},d=null,V=null,W={},p=null,m=null,S=null,L=null,r.reset(),a.reset(),o.reset()}}}(d,p,G,f)).scissor(ee.copy(ve).multiplyScalar(pe)),v.viewport(Q.copy(me).multiplyScalar(pe)),x=new function(e){var t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.frame++,t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(e,n,i){switch(i=i||1,t.calls++,n){case 4:t.triangles+=i*(e/3);break;case 5:case 6:t.triangles+=i*(e-2);break;case 1:t.lines+=i*(e/2);break;case 3:t.lines+=i*(e-1);break;case 2:t.lines+=i*e;break;case 0:t.points+=i*e;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}(d),w=new function(){var e=new WeakMap;return{get:function(t){var n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,i){e.get(t)[n]=i},dispose:function(){e=new WeakMap}}},_=new Br(d,p,v,w,f,G,x),M=new Ln(d),E=new function(e,t,n){var i={},r={};function a(e){var o=e.target,s=i[o.id];for(var l in null!==s.index&&t.remove(s.index),s.attributes)t.remove(s.attributes[l]);o.removeEventListener("dispose",a),delete i[o.id];var c=r[s.id];c&&(t.remove(c),delete r[s.id]),n.memory.geometries--}return{get:function(e,t){var r=i[t.id];return r||(t.addEventListener("dispose",a),t.isBufferGeometry?r=t:t.isGeometry&&(void 0===t._bufferGeometry&&(t._bufferGeometry=(new ni).setFromObject(e)),r=t._bufferGeometry),i[t.id]=r,n.memory.geometries++,r)},update:function(e){var n=e.index,i=e.attributes;for(var r in null!==n&&t.update(n,34963),i)t.update(i[r],34962);var a=e.morphAttributes;for(var r in a)for(var o=a[r],s=0,l=o.length;s<l;s++)t.update(o[s],34962)},getWireframeAttribute:function(e){var n=r[e.id];if(n)return n;var i,a=[],o=e.index,s=e.attributes;if(null!==o)for(var l=0,c=(i=o.array).length;l<c;l+=3){var u=i[l+0],h=i[l+1],d=i[l+2];a.push(u,h,h,d,d,u)}else for(l=0,c=(i=s.position.array).length/3-1;l<c;l+=3)u=l+0,h=l+1,d=l+2,a.push(u,h,h,d,d,u);return n=new(ei(a)>65535?Jn:qn)(a,1),t.update(n,34963),r[e.id]=n,n}}}(d,M,x),T=new function(e,t){var n={};return{update:function(i){var r=t.render.frame,a=i.geometry,o=e.get(i,a);return n[o.id]!==r&&(a.isGeometry&&o.updateFromObject(i),e.update(o),n[o.id]=r),o},dispose:function(){n={}}}}(E,x),D=new function(e){var t={},n=new Float32Array(8);return{update:function(i,r,a,o){var s=i.morphTargetInfluences,l=s.length,c=t[r.id];if(void 0===c){c=[];for(var u=0;u<l;u++)c[u]=[u,0];t[r.id]=c}var h=a.morphTargets&&r.morphAttributes.position,d=a.morphNormals&&r.morphAttributes.normal;for(u=0;u<l;u++)0!==(p=c[u])[1]&&(h&&r.removeAttribute("morphTarget"+u),d&&r.removeAttribute("morphNormal"+u));for(u=0;u<l;u++)(p=c[u])[0]=u,p[1]=s[u];for(c.sort(Si),u=0;u<8;u++){var p;if(p=c[u]){var f=p[0],m=p[1];if(m){h&&r.addAttribute("morphTarget"+u,h[f]),d&&r.addAttribute("morphNormal"+u,d[f]),n[u]=m;continue}}n[u]=0}o.getUniforms().setValue(e,"morphTargetInfluences",n)}}}(d),L=new Lr(V,p,f),P=new Rr,O=new function(){var e={};return{get:function(t,n){var i;return void 0===e[t.id]?(i=new kr,e[t.id]={},e[t.id][n.id]=i):void 0===e[t.id][n.id]?(i=new kr,e[t.id][n.id]=i):i=e[t.id][n.id],i},dispose:function(){e={}}}},R=new function(e,t,n,i){var r,a,o=new En(0),s=0;function l(e,n){t.buffers.color.setClear(e.r,e.g,e.b,n,i)}return{getClearColor:function(){return o},setClearColor:function(e,t){o.set(e),l(o,s=void 0!==t?t:1)},getClearAlpha:function(){return s},setClearAlpha:function(e){l(o,s=e)},render:function(t,i,c,u){var h=i.background;null===h?l(o,s):h&&h.isColor&&(l(h,1),u=!0),(e.autoClear||u)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),h&&(h.isCubeTexture||h.isWebGLRenderTargetCube)?(void 0===a&&((a=new Ti(new ri(1,1,1),new wi({type:"BackgroundCubeMaterial",uniforms:_n.clone(Cn.cube.uniforms),vertexShader:Cn.cube.vertexShader,fragmentShader:Cn.cube.fragmentShader,side:C,depthTest:!0,depthWrite:!1,fog:!1}))).geometry.removeAttribute("normal"),a.geometry.removeAttribute("uv"),a.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},n.update(a)),a.material.uniforms.tCube.value=h.isWebGLRenderTargetCube?h.texture:h,a.material.uniforms.tFlip.value=h.isWebGLRenderTargetCube?1:-1,t.push(a,a.geometry,a.material,0,null)):h&&h.isTexture&&(void 0===r&&((r=new Ti(new oi(2,2),new wi({type:"BackgroundMaterial",uniforms:_n.clone(Cn.background.uniforms),vertexShader:Cn.background.vertexShader,fragmentShader:Cn.background.fragmentShader,side:S,depthTest:!0,depthWrite:!1,fog:!1}))).geometry.removeAttribute("normal"),n.update(r)),r.material.uniforms.t2D.value=h,!0===h.matrixAutoUpdate&&h.updateMatrix(),r.material.uniforms.uvTransform.value.copy(h.matrix),t.push(r,r.geometry,r.material,0,null))}}}(V,v,T,s),j=new function(e,t,n,i){var r;this.setMode=function(e){r=e},this.render=function(t,i){e.drawArrays(r,t,i),n.update(i,r)},this.renderInstances=function(a,o,s){var l;if(i.isWebGL2)l=e;else if(null===(l=t.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[i.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](r,o,s,a.maxInstancedCount),n.update(s,r,a.maxInstancedCount)}}(d,p,x,f),U=new function(e,t,n,i){var r,a,o;this.setMode=function(e){r=e},this.setIndex=function(e){a=e.type,o=e.bytesPerElement},this.render=function(t,i){e.drawElements(r,i,a,t*o),n.update(i,r)},this.renderInstances=function(s,l,c){var u;if(i.isWebGL2)u=e;else if(null===(u=t.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[i.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](r,c,a,l*o,s.maxInstancedCount),n.update(c,r,s.maxInstancedCount)}}(d,p,x,f),x.programs=L.programs,V.context=d,V.capabilities=f,V.extensions=p,V.properties=w,V.renderLists=P,V.state=v,V.info=x}Se();var Ce=null;"undefined"!=typeof navigator&&(Ce="xr"in navigator?new function(e){var t=e.context,n=null,i=null,r=1,a=null,o="stage",s=null,l=[],c=[];function u(){return null!==i&&null!==a}var h=new Gr;h.layers.enable(1),h.viewport=new un;var d=new Gr;d.layers.enable(2),d.viewport=new un;var p=new Vr([h,d]);function f(e){var t=l[c.indexOf(e.inputSource)];t&&t.dispatchEvent({type:e.type})}function m(){e.setFramebuffer(null),y.stop()}function v(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.getInverse(e.matrixWorld)}p.layers.enable(1),p.layers.enable(2),this.enabled=!1,this.getController=function(e){var t=l[e];return void 0===t&&((t=new jr).matrixAutoUpdate=!1,t.visible=!1,l[e]=t),t},this.getDevice=function(){return n},this.setDevice=function(e){void 0!==e&&(n=e),e instanceof XRDevice&&t.setCompatibleXRDevice(e)},this.setFramebufferScaleFactor=function(e){r=e},this.setFrameOfReferenceType=function(e){o=e},this.setSession=function(n){null!==(i=n)&&(i.addEventListener("select",f),i.addEventListener("selectstart",f),i.addEventListener("selectend",f),i.addEventListener("end",m),i.baseLayer=new XRWebGLLayer(i,t,{framebufferScaleFactor:r}),i.requestFrameOfReference(o).then(function(t){a=t,e.setFramebuffer(i.baseLayer.framebuffer),y.setContext(i),y.start()}),c=i.getInputSources(),i.addEventListener("inputsourceschange",function(){c=i.getInputSources(),console.log(c);for(var e=0;e<l.length;e++)l[e].userData.inputSource=c[e]}))},this.getCamera=function(e){if(u()){var t=e.parent,n=p.cameras;v(p,t);for(var i=0;i<n.length;i++)v(n[i],t);e.matrixWorld.copy(p.matrixWorld);for(var r=e.children,a=(i=0,r.length);i<a;i++)r[i].updateMatrixWorld(!0);return Qr(p,h,d),p}return e},this.isPresenting=u;var g=null,y=new An;y.setAnimationLoop(function(e,t){if(null!==(s=t.getDevicePose(a)))for(var n=i.baseLayer,r=t.views,o=0;o<r.length;o++){var u=r[o],h=n.getViewport(u),d=s.getViewMatrix(u),f=p.cameras[o];f.matrix.fromArray(d).getInverse(f.matrix),f.projectionMatrix.fromArray(u.projectionMatrix),f.viewport.set(h.x,h.y,h.width,h.height),0===o&&p.matrix.copy(f.matrix)}for(o=0;o<l.length;o++){var m=l[o],v=c[o];if(v){var y=t.getInputPose(v,a);if(null!==y){"targetRay"in y?m.matrix.elements=y.targetRay.transformMatrix:"pointerMatrix"in y&&(m.matrix.elements=y.pointerMatrix),m.matrix.decompose(m.position,m.rotation,m.scale),m.visible=!0;continue}}m.visible=!1}g&&g(e)}),this.setAnimationLoop=function(e){g=e},this.dispose=function(){},this.getStandingMatrix=function(){return console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed."),new THREE.Matrix4},this.submitFrame=function(){}}(V):new ea(V)),this.vr=Ce;var Ae=new Fr(V,T,f.maxTextureSize);function Le(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),W=!0}function Pe(){console.log("THREE.WebGLRenderer: Context Restored."),W=!1,Se()}function Oe(e){var t=e.target;t.removeEventListener("dispose",Oe),function(e){Re(e),w.remove(e)}(t)}function Re(e){var t=w.get(e).program;e.program=void 0,void 0!==t&&L.releaseProgram(t)}this.shadowMap=Ae,this.getContext=function(){return d},this.getContextAttributes=function(){return d.getContextAttributes()},this.forceContextLoss=function(){var e=p.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){var e=p.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return pe},this.setPixelRatio=function(e){void 0!==e&&(pe=e,this.setSize(he,de,!1))},this.getSize=function(){return{width:he,height:de}},this.setSize=function(e,n,i){Ce.isPresenting()?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(he=e,de=n,t.width=e*pe,t.height=n*pe,!1!==i&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(){return{width:he*pe,height:de*pe}},this.setDrawingBufferSize=function(e,n,i){he=e,de=n,pe=i,t.width=e*i,t.height=n*i,this.setViewport(0,0,e,n)},this.getCurrentViewport=function(){return Q},this.setViewport=function(e,t,n,i){me.set(e,de-t-i,n,i),v.viewport(Q.copy(me).multiplyScalar(pe))},this.setScissor=function(e,t,n,i){ve.set(e,de-t-i,n,i),v.scissor(ee.copy(ve).multiplyScalar(pe))},this.setScissorTest=function(e){v.setScissorTest(ge=e)},this.getClearColor=function(){return R.getClearColor()},this.setClearColor=function(){R.setClearColor.apply(R,arguments)},this.getClearAlpha=function(){return R.getClearAlpha()},this.setClearAlpha=function(){R.setClearAlpha.apply(R,arguments)},this.clear=function(e,t,n){var i=0;(void 0===e||e)&&(i|=16384),(void 0===t||t)&&(i|=256),(void 0===n||n)&&(i|=1024),d.clear(i)},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(){t.removeEventListener("webglcontextlost",Le,!1),t.removeEventListener("webglcontextrestored",Pe,!1),P.dispose(),O.dispose(),w.dispose(),T.dispose(),Ce.dispose(),Ne.stop()},this.renderBufferImmediate=function(e,t){v.initAttributes();var n=w.get(e);e.hasPositions&&!n.position&&(n.position=d.createBuffer()),e.hasNormals&&!n.normal&&(n.normal=d.createBuffer()),e.hasUvs&&!n.uv&&(n.uv=d.createBuffer()),e.hasColors&&!n.color&&(n.color=d.createBuffer());var i=t.getAttributes();e.hasPositions&&(d.bindBuffer(34962,n.position),d.bufferData(34962,e.positionArray,35048),v.enableAttribute(i.position),d.vertexAttribPointer(i.position,3,5126,!1,0,0)),e.hasNormals&&(d.bindBuffer(34962,n.normal),d.bufferData(34962,e.normalArray,35048),v.enableAttribute(i.normal),d.vertexAttribPointer(i.normal,3,5126,!1,0,0)),e.hasUvs&&(d.bindBuffer(34962,n.uv),d.bufferData(34962,e.uvArray,35048),v.enableAttribute(i.uv),d.vertexAttribPointer(i.uv,2,5126,!1,0,0)),e.hasColors&&(d.bindBuffer(34962,n.color),d.bufferData(34962,e.colorArray,35048),v.enableAttribute(i.color),d.vertexAttribPointer(i.color,3,5126,!1,0,0)),v.disableUnusedAttributes(),d.drawArrays(4,0,e.count),e.count=0},this.renderBufferDirect=function(e,t,n,i,r,a){var o=r.isMesh&&r.normalMatrix.determinant()<0;v.setMaterial(i,o);var s=He(e,t,i,r),l=!1;J.geometry===n.id&&J.program===s.id&&J.wireframe===(!0===i.wireframe)||(J.geometry=n.id,J.program=s.id,J.wireframe=!0===i.wireframe,l=!0),r.morphTargetInfluences&&(D.update(r,n,i,s),l=!0);var c,u=n.index,h=n.attributes.position,m=1;!0===i.wireframe&&(u=E.getWireframeAttribute(n),m=2);var g=j;null!==u&&(c=M.get(u),(g=U).setIndex(c)),l&&(!function(e,t,n){if(n&&n.isInstancedBufferGeometry&!f.isWebGL2&&null===p.get("ANGLE_instanced_arrays"))return void console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");v.initAttributes();var i=n.attributes,r=t.getAttributes(),a=e.defaultAttributeValues;for(var o in r){var s=r[o];if(s>=0){var l=i[o];if(void 0!==l){var c=l.normalized,u=l.itemSize,h=M.get(l);if(void 0===h)continue;var m=h.buffer,g=h.type,y=h.bytesPerElement;if(l.isInterleavedBufferAttribute){var b=l.data,x=b.stride,w=l.offset;b&&b.isInstancedInterleavedBuffer?(v.enableAttributeAndDivisor(s,b.meshPerAttribute),void 0===n.maxInstancedCount&&(n.maxInstancedCount=b.meshPerAttribute*b.count)):v.enableAttribute(s),d.bindBuffer(34962,m),d.vertexAttribPointer(s,u,g,c,x*y,w*y)}else l.isInstancedBufferAttribute?(v.enableAttributeAndDivisor(s,l.meshPerAttribute),void 0===n.maxInstancedCount&&(n.maxInstancedCount=l.meshPerAttribute*l.count)):v.enableAttribute(s),d.bindBuffer(34962,m),d.vertexAttribPointer(s,u,g,c,0,0)}else if(void 0!==a){var _=a[o];if(void 0!==_)switch(_.length){case 2:d.vertexAttrib2fv(s,_);break;case 3:d.vertexAttrib3fv(s,_);break;case 4:d.vertexAttrib4fv(s,_);break;default:d.vertexAttrib1fv(s,_)}}}}v.disableUnusedAttributes()}(i,s,n),null!==u&&d.bindBuffer(34963,c.buffer));var y=1/0;null!==u?y=u.count:void 0!==h&&(y=h.count);var b=n.drawRange.start*m,x=n.drawRange.count*m,w=null!==a?a.start*m:0,_=null!==a?a.count*m:1/0,T=Math.max(b,w),S=Math.min(y,b+x,w+_)-1,C=Math.max(0,S-T+1);if(0!==C){if(r.isMesh)if(!0===i.wireframe)v.setLineWidth(i.wireframeLinewidth*Ee()),g.setMode(1);else switch(r.drawMode){case It:g.setMode(4);break;case kt:g.setMode(5);break;case Nt:g.setMode(6)}else if(r.isLine){var A=i.linewidth;void 0===A&&(A=1),v.setLineWidth(A*Ee()),r.isLineSegments?g.setMode(1):r.isLineLoop?g.setMode(2):g.setMode(3)}else r.isPoints?g.setMode(0):r.isSprite&&g.setMode(4);n&&n.isInstancedBufferGeometry?n.maxInstancedCount>0&&g.renderInstances(n,T,C):g.render(T,C)}},this.compile=function(e,t){(h=O.get(e,t)).init(),e.traverse(function(e){e.isLight&&(h.pushLight(e),e.castShadow&&h.pushShadow(e))}),h.setupLights(t),e.traverse(function(t){if(t.material)if(Array.isArray(t.material))for(var n=0;n<t.material.length;n++)Be(t.material[n],e.fog,t);else Be(t.material,e.fog,t)})};var De=null;var Ie,Ne=new An;function ze(e,t,n,i){for(var r=0,a=e.length;r<a;r++){var o=e[r],s=o.object,l=o.geometry,c=void 0===i?o.material:i,u=o.group;if(n.isArrayCamera){K=n;for(var d=n.cameras,p=0,f=d.length;p<f;p++){var m=d[p];if(s.layers.test(m.layers)){if("viewport"in m)v.viewport(Q.copy(m.viewport));else{var g=m.bounds,y=g.x*he,b=g.y*de,x=g.z*he,w=g.w*de;v.viewport(Q.set(y,b,x,w).multiplyScalar(pe))}h.setupLights(m),Fe(s,t,m,l,c,u)}}}else K=null,Fe(s,t,n,l,c,u)}}function Fe(e,t,n,i,r,a){if(e.onBeforeRender(V,t,n,i,r,a),h=O.get(t,K||n),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),e.isImmediateRenderObject){v.setMaterial(r);var o=He(n,t.fog,r,e);J.geometry=null,J.program=null,J.wireframe=!1,function(e,t){e.render(function(e){V.renderBufferImmediate(e,t)})}(e,o)}else V.renderBufferDirect(n,t.fog,i,r,e,a);e.onAfterRender(V,t,n,i,r,a),h=O.get(t,K||n)}function Be(e,t,n){var i=w.get(e),r=h.state.lights,a=h.state.shadowsArray,o=i.lightsHash,s=r.state.hash,l=L.getParameters(e,r.state,a,t,be.numPlanes,be.numIntersection,n),c=L.getProgramCode(e,l),u=i.program,d=!0;if(void 0===u)e.addEventListener("dispose",Oe);else if(u.code!==c)Re(e);else if(o.stateID!==s.stateID||o.directionalLength!==s.directionalLength||o.pointLength!==s.pointLength||o.spotLength!==s.spotLength||o.rectAreaLength!==s.rectAreaLength||o.hemiLength!==s.hemiLength||o.shadowsLength!==s.shadowsLength)o.stateID=s.stateID,o.directionalLength=s.directionalLength,o.pointLength=s.pointLength,o.spotLength=s.spotLength,o.rectAreaLength=s.rectAreaLength,o.hemiLength=s.hemiLength,o.shadowsLength=s.shadowsLength,d=!1;else{if(void 0!==l.shaderID)return;d=!1}if(d){if(l.shaderID){var p=Cn[l.shaderID];i.shader={name:e.type,uniforms:_n.clone(p.uniforms),vertexShader:p.vertexShader,fragmentShader:p.fragmentShader}}else i.shader={name:e.type,uniforms:e.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader};e.onBeforeCompile(i.shader,V),c=L.getProgramCode(e,l),u=L.acquireProgram(e,i.shader,l,c),i.program=u,e.program=u}var f=u.getAttributes();if(e.morphTargets){e.numSupportedMorphTargets=0;for(var m=0;m<V.maxMorphTargets;m++)f["morphTarget"+m]>=0&&e.numSupportedMorphTargets++}if(e.morphNormals){e.numSupportedMorphNormals=0;for(m=0;m<V.maxMorphNormals;m++)f["morphNormal"+m]>=0&&e.numSupportedMorphNormals++}var v=i.shader.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(i.numClippingPlanes=be.numPlanes,i.numIntersection=be.numIntersection,v.clippingPlanes=be.uniform),i.fog=t,void 0===o&&(i.lightsHash=o={}),o.stateID=s.stateID,o.directionalLength=s.directionalLength,o.pointLength=s.pointLength,o.spotLength=s.spotLength,o.rectAreaLength=s.rectAreaLength,o.hemiLength=s.hemiLength,o.shadowsLength=s.shadowsLength,e.lights&&(v.ambientLightColor.value=r.state.ambient,v.directionalLights.value=r.state.directional,v.spotLights.value=r.state.spot,v.rectAreaLights.value=r.state.rectArea,v.pointLights.value=r.state.point,v.hemisphereLights.value=r.state.hemi,v.directionalShadowMap.value=r.state.directionalShadowMap,v.directionalShadowMatrix.value=r.state.directionalShadowMatrix,v.spotShadowMap.value=r.state.spotShadowMap,v.spotShadowMatrix.value=r.state.spotShadowMatrix,v.pointShadowMap.value=r.state.pointShadowMap,v.pointShadowMatrix.value=r.state.pointShadowMatrix);var g=i.program.getUniforms(),y=yr.seqWithValue(g.seq,v);i.uniformsList=y}function He(e,t,n,i){ue=0;var r=w.get(n),a=h.state.lights,o=r.lightsHash,s=a.state.hash;if(xe&&(we||e!==Z)){var l=e===Z&&n.id===X;be.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,e,r,l)}!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==t?n.needsUpdate=!0:(!n.lights||o.stateID===s.stateID&&o.directionalLength===s.directionalLength&&o.pointLength===s.pointLength&&o.spotLength===s.spotLength&&o.rectAreaLength===s.rectAreaLength&&o.hemiLength===s.hemiLength&&o.shadowsLength===s.shadowsLength)&&(void 0===r.numClippingPlanes||r.numClippingPlanes===be.numPlanes&&r.numIntersection===be.numIntersection)||(n.needsUpdate=!0)),n.needsUpdate&&(Be(n,t,i),n.needsUpdate=!1);var c,u,p=!1,m=!1,g=!1,y=r.program,b=y.getUniforms(),x=r.shader.uniforms;if(v.useProgram(y.program)&&(p=!0,m=!0,g=!0),n.id!==X&&(X=n.id,m=!0),p||Z!==e){if(b.setValue(d,"projectionMatrix",e.projectionMatrix),f.logarithmicDepthBuffer&&b.setValue(d,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),Z!==e&&(Z=e,m=!0,g=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var _=b.map.cameraPosition;void 0!==_&&_.setValue(d,Me.setFromMatrixPosition(e.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&b.setValue(d,"viewMatrix",e.matrixWorldInverse)}if(n.skinning){b.setOptional(d,i,"bindMatrix"),b.setOptional(d,i,"bindMatrixInverse");var M=i.skeleton;if(M){var E=M.bones;if(f.floatVertexTextures){if(void 0===M.boneTexture){var T=Math.sqrt(4*E.length);T=Xt.ceilPowerOfTwo(T),T=Math.max(T,4);var S=new Float32Array(T*T*4);S.set(M.boneMatrices);var A=new pn(S,T,T,Xe,je);A.needsUpdate=!0,M.boneMatrices=S,M.boneTexture=A,M.boneTextureSize=T}b.setValue(d,"boneTexture",M.boneTexture),b.setValue(d,"boneTextureSize",M.boneTextureSize)}else b.setOptional(d,M,"boneMatrices")}}return m&&(b.setValue(d,"toneMappingExposure",V.toneMappingExposure),b.setValue(d,"toneMappingWhitePoint",V.toneMappingWhitePoint),n.lights&&(u=g,(c=x).ambientLightColor.needsUpdate=u,c.directionalLights.needsUpdate=u,c.pointLights.needsUpdate=u,c.spotLights.needsUpdate=u,c.rectAreaLights.needsUpdate=u,c.hemisphereLights.needsUpdate=u),t&&n.fog&&function(e,t){e.fogColor.value=t.color,t.isFog?(e.fogNear.value=t.near,e.fogFar.value=t.far):t.isFogExp2&&(e.fogDensity.value=t.density)}(x,t),n.isMeshBasicMaterial?Ge(x,n):n.isMeshLambertMaterial?(Ge(x,n),function(e,t){t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap)}(x,n)):n.isMeshPhongMaterial?(Ge(x,n),n.isMeshToonMaterial?function(e,t){Ve(e,t),t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(x,n):Ve(x,n)):n.isMeshStandardMaterial?(Ge(x,n),n.isMeshPhysicalMaterial?function(e,t){We(e,t),e.reflectivity.value=t.reflectivity,e.clearCoat.value=t.clearCoat,e.clearCoatRoughness.value=t.clearCoatRoughness}(x,n):We(x,n)):n.isMeshMatcapMaterial?(Ge(x,n),function(e,t){t.matcap&&(e.matcap.value=t.matcap);t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===C&&(e.bumpScale.value*=-1));t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===C&&e.normalScale.value.negate());t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(x,n)):n.isMeshDepthMaterial?(Ge(x,n),function(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(x,n)):n.isMeshDistanceMaterial?(Ge(x,n),function(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias);e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}(x,n)):n.isMeshNormalMaterial?(Ge(x,n),function(e,t){t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===C&&(e.bumpScale.value*=-1));t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===C&&e.normalScale.value.negate());t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(x,n)):n.isLineBasicMaterial?(function(e,t){e.diffuse.value=t.color,e.opacity.value=t.opacity}(x,n),n.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(x,n)):n.isPointsMaterial?function(e,t){e.diffuse.value=t.color,e.opacity.value=t.opacity,e.size.value=t.size*pe,e.scale.value=.5*de,e.map.value=t.map,null!==t.map&&(!0===t.map.matrixAutoUpdate&&t.map.updateMatrix(),e.uvTransform.value.copy(t.map.matrix))}(x,n):n.isSpriteMaterial?function(e,t){e.diffuse.value=t.color,e.opacity.value=t.opacity,e.rotation.value=t.rotation,e.map.value=t.map,null!==t.map&&(!0===t.map.matrixAutoUpdate&&t.map.updateMatrix(),e.uvTransform.value.copy(t.map.matrix))}(x,n):n.isShadowMaterial&&(x.color.value=n.color,x.opacity.value=n.opacity),void 0!==x.ltc_1&&(x.ltc_1.value=Sn.LTC_1),void 0!==x.ltc_2&&(x.ltc_2.value=Sn.LTC_2),yr.upload(d,r.uniformsList,x,V)),n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(yr.upload(d,r.uniformsList,x,V),n.uniformsNeedUpdate=!1),n.isSpriteMaterial&&b.setValue(d,"center",i.center),b.setValue(d,"modelViewMatrix",i.modelViewMatrix),b.setValue(d,"normalMatrix",i.normalMatrix),b.setValue(d,"modelMatrix",i.matrixWorld),y}function Ge(e,t){var n;e.opacity.value=t.opacity,t.color&&(e.diffuse.value=t.color),t.emissive&&e.emissive.value.copy(t.emissive).multiplyScalar(t.emissiveIntensity),t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.specularMap&&(e.specularMap.value=t.specularMap),t.envMap&&(e.envMap.value=t.envMap,e.flipEnvMap.value=t.envMap&&t.envMap.isCubeTexture?-1:1,e.reflectivity.value=t.reflectivity,e.refractionRatio.value=t.refractionRatio,e.maxMipLevel.value=w.get(t.envMap).__maxMipLevel),t.lightMap&&(e.lightMap.value=t.lightMap,e.lightMapIntensity.value=t.lightMapIntensity),t.aoMap&&(e.aoMap.value=t.aoMap,e.aoMapIntensity.value=t.aoMapIntensity),t.map?n=t.map:t.specularMap?n=t.specularMap:t.displacementMap?n=t.displacementMap:t.normalMap?n=t.normalMap:t.bumpMap?n=t.bumpMap:t.roughnessMap?n=t.roughnessMap:t.metalnessMap?n=t.metalnessMap:t.alphaMap?n=t.alphaMap:t.emissiveMap&&(n=t.emissiveMap),void 0!==n&&(n.isWebGLRenderTarget&&(n=n.texture),!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}function Ve(e,t){e.specular.value=t.specular,e.shininess.value=Math.max(t.shininess,1e-4),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===C&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===C&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}function We(e,t){e.roughness.value=t.roughness,e.metalness.value=t.metalness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap),t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap),t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===C&&(e.bumpScale.value*=-1)),t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===C&&e.normalScale.value.negate()),t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}Ne.setAnimationLoop(function(e){Ce.isPresenting()||De&&De(e)}),"undefined"!=typeof window&&Ne.setContext(window),this.setAnimationLoop=function(e){De=e,Ce.setAnimationLoop(e),Ne.start()},this.render=function(e,t,n,i){if(t&&t.isCamera){if(!W){J.geometry=null,J.program=null,J.wireframe=!1,X=-1,Z=null,!0===e.autoUpdate&&e.updateMatrixWorld(),null===t.parent&&t.updateMatrixWorld(),Ce.enabled&&(t=Ce.getCamera(t)),(h=O.get(e,t)).init(),e.onBeforeRender(V,e,t,n),_e.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),ye.setFromMatrix(_e),we=this.localClippingEnabled,xe=be.init(this.clippingPlanes,we,t),(u=P.get(e,t)).init(),function e(t,n,i){if(!1===t.visible)return;var r=t.layers.test(n.layers);if(r)if(t.isLight)h.pushLight(t),t.castShadow&&h.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||ye.intersectsSprite(t)){i&&Me.setFromMatrixPosition(t.matrixWorld).applyMatrix4(_e);var a=T.update(t),o=t.material;u.push(t,a,o,Me.z,null)}}else if(t.isImmediateRenderObject)i&&Me.setFromMatrixPosition(t.matrixWorld).applyMatrix4(_e),u.push(t,null,t.material,Me.z,null);else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.update(),!t.frustumCulled||ye.intersectsObject(t))){i&&Me.setFromMatrixPosition(t.matrixWorld).applyMatrix4(_e);var a=T.update(t),o=t.material;if(Array.isArray(o))for(var s=a.groups,l=0,c=s.length;l<c;l++){var d=s[l],p=o[d.materialIndex];p&&p.visible&&u.push(t,a,p,Me.z,d)}else o.visible&&u.push(t,a,o,Me.z,null)}var f=t.children;for(var l=0,c=f.length;l<c;l++)e(f[l],n,i)}(e,t,V.sortObjects),!0===V.sortObjects&&u.sort(),xe&&be.beginShadows();var r=h.state.shadowsArray;Ae.render(r,e,t),h.setupLights(t),xe&&be.endShadows(),this.info.autoReset&&this.info.reset(),void 0===n&&(n=null),this.setRenderTarget(n),R.render(u,e,t,i);var a=u.opaque,o=u.transparent;if(e.overrideMaterial){var s=e.overrideMaterial;a.length&&ze(a,e,t,s),o.length&&ze(o,e,t,s)}else a.length&&ze(a,e,t),o.length&&ze(o,e,t);n&&_.updateRenderTargetMipmap(n),v.buffers.depth.setTest(!0),v.buffers.depth.setMask(!0),v.buffers.color.setMask(!0),v.setPolygonOffset(!1),e.onAfterRender(V,e,t),Ce.enabled&&Ce.submitFrame(),u=null,h=null}}else console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")},this.allocTextureUnit=function(){var e=ue;return e>=f.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+e+" texture units while this GPU supports only "+f.maxTextures),ue+=1,e},this.setTexture2D=(Ie=!1,function(e,t){e&&e.isWebGLRenderTarget&&(Ie||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),Ie=!0),e=e.texture),_.setTexture2D(e,t)}),this.setTexture3D=function(e,t){_.setTexture3D(e,t)},this.setTexture=function(){var e=!1;return function(t,n){e||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),e=!0),_.setTexture2D(t,n)}}(),this.setTextureCube=function(){var e=!1;return function(t,n){t&&t.isWebGLRenderTargetCube&&(e||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),e=!0),t=t.texture),t&&t.isCubeTexture||Array.isArray(t.image)&&6===t.image.length?_.setTextureCube(t,n):_.setTextureCubeDynamic(t,n)}}(),this.setFramebuffer=function(e){$=e},this.getRenderTarget=function(){return Y},this.setRenderTarget=function(e){Y=e,e&&void 0===w.get(e).__webglFramebuffer&&_.setupRenderTarget(e);var t=$,n=!1;if(e){var i=w.get(e).__webglFramebuffer;e.isWebGLRenderTargetCube?(t=i[e.activeCubeFace],n=!0):t=i,Q.copy(e.viewport),ee.copy(e.scissor),te=e.scissorTest}else Q.copy(me).multiplyScalar(pe),ee.copy(ve).multiplyScalar(pe),te=ge;if(q!==t&&(d.bindFramebuffer(36160,t),q=t),v.viewport(Q),v.scissor(ee),v.setScissorTest(te),n){var r=w.get(e.texture);d.framebufferTexture2D(36160,36064,34069+e.activeCubeFace,r.__webglTexture,e.activeMipMapLevel)}},this.readRenderTargetPixels=function(e,t,n,i,r,a){if(e&&e.isWebGLRenderTarget){var o=w.get(e).__webglFramebuffer;if(o){var s=!1;o!==q&&(d.bindFramebuffer(36160,o),s=!0);try{var l=e.texture,c=l.format,u=l.type;if(c!==Xe&&G.convert(c)!==d.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!(u===ke||G.convert(u)===d.getParameter(35738)||u===je&&(f.isWebGL2||p.get("OES_texture_float")||p.get("WEBGL_color_buffer_float"))||u===Ue&&(f.isWebGL2?p.get("EXT_color_buffer_float"):p.get("EXT_color_buffer_half_float"))))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===d.checkFramebufferStatus(36160)?t>=0&&t<=e.width-i&&n>=0&&n<=e.height-r&&d.readPixels(t,n,i,r,G.convert(c),G.convert(u),a):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{s&&d.bindFramebuffer(36160,q)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(e,t,n){var i=t.image.width,r=t.image.height,a=G.convert(t.format);this.setTexture2D(t,0),d.copyTexImage2D(3553,n||0,a,e.x,e.y,i,r,0)},this.copyTextureToTexture=function(e,t,n,i){var r=t.image.width,a=t.image.height,o=G.convert(n.format),s=G.convert(n.type);this.setTexture2D(n,0),t.isDataTexture?d.texSubImage2D(3553,i||0,e.x,e.y,r,a,o,s,t.image.data):d.texSubImage2D(3553,i||0,e.x,e.y,o,s,t.image)}}function na(e,t){this.name="",this.color=new En(e),this.density=void 0!==t?t:25e-5}function ia(e,t,n){this.name="",this.color=new En(e),this.near=void 0!==t?t:1,this.far=void 0!==n?n:1e3}function ra(){Fn.call(this),this.type="Scene",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function aa(e,t){this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function oa(e,t,n,i){this.data=e,this.itemSize=t,this.offset=n,this.normalized=!0===i}function sa(e){xi.call(this),this.type="SpriteMaterial",this.color=new En(16777215),this.map=null,this.rotation=0,this.sizeAttenuation=!0,this.lights=!1,this.transparent=!0,this.setValues(e)}function la(e){if(Fn.call(this),this.type="Sprite",void 0===Wr){Wr=new ni;var t=new aa(new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),5);Wr.setIndex([0,1,2,0,2,3]),Wr.addAttribute("position",new oa(t,3,0,!1)),Wr.addAttribute("uv",new oa(t,2,3,!1))}this.geometry=Wr,this.material=void 0!==e?e:new sa,this.center=new Jt(.5,.5)}function ca(){Fn.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function ua(e,t){if(e=e||[],this.bones=e.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),void 0===t)this.calculateInverses();else if(this.bones.length===t.length)this.boneInverses=t.slice(0);else{console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[];for(var n=0,i=this.bones.length;n<i;n++)this.boneInverses.push(new Zt)}}function ha(){Fn.call(this),this.type="Bone"}function da(e,t){Ti.call(this,e,t),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Zt,this.bindMatrixInverse=new Zt;var n=new ua(this.initBones());this.bind(n,this.matrixWorld),this.normalizeSkinWeights()}function pa(e){xi.call(this),this.type="LineBasicMaterial",this.color=new En(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.lights=!1,this.setValues(e)}function fa(e,t,n){1===n&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),Fn.call(this),this.type="Line",this.geometry=void 0!==e?e:new ni,this.material=void 0!==t?t:new pa({color:16777215*Math.random()})}function ma(e,t){fa.call(this,e,t),this.type="LineSegments"}function va(e,t){fa.call(this,e,t),this.type="LineLoop"}function ga(e){xi.call(this),this.type="PointsMaterial",this.color=new En(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.lights=!1,this.setValues(e)}function ya(e,t){Fn.call(this),this.type="Points",this.geometry=void 0!==e?e:new ni,this.material=void 0!==t?t:new ga({color:16777215*Math.random()})}function ba(e,t,n,i,r,a,o,s,l){cn.call(this,e,t,n,i,r,a,o,s,l),this.generateMipmaps=!1}function xa(e,t,n,i,r,a,o,s,l,c,u,h){cn.call(this,null,a,o,s,l,c,i,r,u,h),this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}function wa(e,t,n,i,r,a,o,s,l){cn.call(this,e,t,n,i,r,a,o,s,l),this.needsUpdate=!0}function _a(e,t,n,i,r,a,o,s,l,c){if((c=void 0!==c?c:Qe)!==Qe&&c!==et)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===Qe&&(n=Fe),void 0===n&&c===et&&(n=$e),cn.call(this,null,i,r,a,o,s,c,n,l),this.image={width:e,height:t},this.magFilter=void 0!==o?o:Le,this.minFilter=void 0!==s?s:Le,this.flipY=!1,this.generateMipmaps=!1}function Ma(e){ni.call(this),this.type="WireframeGeometry";var t,n,i,r,a,o,s,l,c,u,h=[],d=[0,0],p={},f=["a","b","c"];if(e&&e.isGeometry){var m=e.faces;for(t=0,i=m.length;t<i;t++){var v=m[t];for(n=0;n<3;n++)s=v[f[n]],l=v[f[(n+1)%3]],d[0]=Math.min(s,l),d[1]=Math.max(s,l),void 0===p[c=d[0]+","+d[1]]&&(p[c]={index1:d[0],index2:d[1]})}for(c in p)o=p[c],u=e.vertices[o.index1],h.push(u.x,u.y,u.z),u=e.vertices[o.index2],h.push(u.x,u.y,u.z)}else if(e&&e.isBufferGeometry){var g,y,b,x,w,_,M;if(u=new Qt,null!==e.index){for(g=e.attributes.position,y=e.index,0===(b=e.groups).length&&(b=[{start:0,count:y.count,materialIndex:0}]),r=0,a=b.length;r<a;++r)for(t=w=(x=b[r]).start,i=w+x.count;t<i;t+=3)for(n=0;n<3;n++)s=y.getX(t+n),l=y.getX(t+(n+1)%3),d[0]=Math.min(s,l),d[1]=Math.max(s,l),void 0===p[c=d[0]+","+d[1]]&&(p[c]={index1:d[0],index2:d[1]});for(c in p)o=p[c],u.fromBufferAttribute(g,o.index1),h.push(u.x,u.y,u.z),u.fromBufferAttribute(g,o.index2),h.push(u.x,u.y,u.z)}else for(t=0,i=(g=e.attributes.position).count/3;t<i;t++)for(n=0;n<3;n++)_=3*t+n,u.fromBufferAttribute(g,_),h.push(u.x,u.y,u.z),M=3*t+(n+1)%3,u.fromBufferAttribute(g,M),h.push(u.x,u.y,u.z)}this.addAttribute("position",new Zn(h,3))}function Ea(e,t,n){Un.call(this),this.type="ParametricGeometry",this.parameters={func:e,slices:t,stacks:n},this.fromBufferGeometry(new Ta(e,t,n)),this.mergeVertices()}function Ta(e,t,n){ni.call(this),this.type="ParametricBufferGeometry",this.parameters={func:e,slices:t,stacks:n};var i,r,a=[],o=[],s=[],l=[],c=new Qt,u=new Qt,h=new Qt,d=new Qt,p=new Qt;e.length<3&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var f=t+1;for(i=0;i<=n;i++){var m=i/n;for(r=0;r<=t;r++){var v=r/t;e(v,m,u),o.push(u.x,u.y,u.z),v-1e-5>=0?(e(v-1e-5,m,h),d.subVectors(u,h)):(e(v+1e-5,m,h),d.subVectors(h,u)),m-1e-5>=0?(e(v,m-1e-5,h),p.subVectors(u,h)):(e(v,m+1e-5,h),p.subVectors(h,u)),c.crossVectors(d,p).normalize(),s.push(c.x,c.y,c.z),l.push(v,m)}}for(i=0;i<n;i++)for(r=0;r<t;r++){var g=i*f+r,y=i*f+r+1,b=(i+1)*f+r+1,x=(i+1)*f+r;a.push(g,y,x),a.push(y,b,x)}this.setIndex(a),this.addAttribute("position",new Zn(o,3)),this.addAttribute("normal",new Zn(s,3)),this.addAttribute("uv",new Zn(l,2))}function Sa(e,t,n,i){Un.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:i},this.fromBufferGeometry(new Ca(e,t,n,i)),this.mergeVertices()}function Ca(e,t,n,i){ni.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:i},n=n||1;var r=[],a=[];function o(e,t,n,i){var r,a,o=Math.pow(2,i),l=[];for(r=0;r<=o;r++){l[r]=[];var c=e.clone().lerp(n,r/o),u=t.clone().lerp(n,r/o),h=o-r;for(a=0;a<=h;a++)l[r][a]=0===a&&r===o?c:c.clone().lerp(u,a/h)}for(r=0;r<o;r++)for(a=0;a<2*(o-r)-1;a++){var d=Math.floor(a/2);a%2==0?(s(l[r][d+1]),s(l[r+1][d]),s(l[r][d])):(s(l[r][d+1]),s(l[r+1][d+1]),s(l[r+1][d]))}}function s(e){r.push(e.x,e.y,e.z)}function l(t,n){var i=3*t;n.x=e[i+0],n.y=e[i+1],n.z=e[i+2]}function c(e,t,n,i){i<0&&1===e.x&&(a[t]=e.x-1),0===n.x&&0===n.z&&(a[t]=i/2/Math.PI+.5)}function u(e){return Math.atan2(e.z,-e.x)}!function(e){for(var n=new Qt,i=new Qt,r=new Qt,a=0;a<t.length;a+=3)l(t[a+0],n),l(t[a+1],i),l(t[a+2],r),o(n,i,r,e)}(i=i||0),function(e){for(var t=new Qt,n=0;n<r.length;n+=3)t.x=r[n+0],t.y=r[n+1],t.z=r[n+2],t.normalize().multiplyScalar(e),r[n+0]=t.x,r[n+1]=t.y,r[n+2]=t.z}(n),function(){for(var e=new Qt,t=0;t<r.length;t+=3){e.x=r[t+0],e.y=r[t+1],e.z=r[t+2];var n=u(e)/2/Math.PI+.5,i=(o=e,Math.atan2(-o.y,Math.sqrt(o.x*o.x+o.z*o.z))/Math.PI+.5);a.push(n,1-i)}var o;(function(){for(var e=new Qt,t=new Qt,n=new Qt,i=new Qt,o=new Jt,s=new Jt,l=new Jt,h=0,d=0;h<r.length;h+=9,d+=6){e.set(r[h+0],r[h+1],r[h+2]),t.set(r[h+3],r[h+4],r[h+5]),n.set(r[h+6],r[h+7],r[h+8]),o.set(a[d+0],a[d+1]),s.set(a[d+2],a[d+3]),l.set(a[d+4],a[d+5]),i.copy(e).add(t).add(n).divideScalar(3);var p=u(i);c(o,d+0,e,p),c(s,d+2,t,p),c(l,d+4,n,p)}})(),function(){for(var e=0;e<a.length;e+=6){var t=a[e+0],n=a[e+2],i=a[e+4],r=Math.max(t,n,i),o=Math.min(t,n,i);r>.9&&o<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),i<.2&&(a[e+4]+=1))}}()}(),this.addAttribute("position",new Zn(r,3)),this.addAttribute("normal",new Zn(r.slice(),3)),this.addAttribute("uv",new Zn(a,2)),0===i?this.computeVertexNormals():this.normalizeNormals()}function Aa(e,t){Un.call(this),this.type="TetrahedronGeometry",this.parameters={radius:e,detail:t},this.fromBufferGeometry(new La(e,t)),this.mergeVertices()}function La(e,t){Ca.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],e,t),this.type="TetrahedronBufferGeometry",this.parameters={radius:e,detail:t}}function Pa(e,t){Un.call(this),this.type="OctahedronGeometry",this.parameters={radius:e,detail:t},this.fromBufferGeometry(new Oa(e,t)),this.mergeVertices()}function Oa(e,t){Ca.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],e,t),this.type="OctahedronBufferGeometry",this.parameters={radius:e,detail:t}}function Ra(e,t){Un.call(this),this.type="IcosahedronGeometry",this.parameters={radius:e,detail:t},this.fromBufferGeometry(new Da(e,t)),this.mergeVertices()}function Da(e,t){var n=(1+Math.sqrt(5))/2,i=[-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1];Ca.call(this,i,[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],e,t),this.type="IcosahedronBufferGeometry",this.parameters={radius:e,detail:t}}function Ia(e,t){Un.call(this),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t},this.fromBufferGeometry(new ka(e,t)),this.mergeVertices()}function ka(e,t){var n=(1+Math.sqrt(5))/2,i=1/n,r=[-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,-i,-n,0,-i,n,0,i,-n,0,i,n,-i,-n,0,-i,n,0,i,-n,0,i,n,0,-n,0,-i,n,0,-i,-n,0,i,n,0,i];Ca.call(this,r,[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],e,t),this.type="DodecahedronBufferGeometry",this.parameters={radius:e,detail:t}}function Na(e,t,n,i,r,a){Un.call(this),this.type="TubeGeometry",this.parameters={path:e,tubularSegments:t,radius:n,radialSegments:i,closed:r},void 0!==a&&console.warn("THREE.TubeGeometry: taper has been removed.");var o=new za(e,t,n,i,r);this.tangents=o.tangents,this.normals=o.normals,this.binormals=o.binormals,this.fromBufferGeometry(o),this.mergeVertices()}function za(e,t,n,i,r){ni.call(this),this.type="TubeBufferGeometry",this.parameters={path:e,tubularSegments:t,radius:n,radialSegments:i,closed:r},t=t||64,n=n||1,i=i||8,r=r||!1;var a=e.computeFrenetFrames(t,r);this.tangents=a.tangents,this.normals=a.normals,this.binormals=a.binormals;var o,s,l=new Qt,c=new Qt,u=new Jt,h=new Qt,d=[],p=[],f=[],m=[];function v(r){h=e.getPointAt(r/t,h);var o=a.normals[r],u=a.binormals[r];for(s=0;s<=i;s++){var f=s/i*Math.PI*2,m=Math.sin(f),v=-Math.cos(f);c.x=v*o.x+m*u.x,c.y=v*o.y+m*u.y,c.z=v*o.z+m*u.z,c.normalize(),p.push(c.x,c.y,c.z),l.x=h.x+n*c.x,l.y=h.y+n*c.y,l.z=h.z+n*c.z,d.push(l.x,l.y,l.z)}}!function(){for(o=0;o<t;o++)v(o);v(!1===r?t:0),function(){for(o=0;o<=t;o++)for(s=0;s<=i;s++)u.x=o/t,u.y=s/i,f.push(u.x,u.y)}(),function(){for(s=1;s<=t;s++)for(o=1;o<=i;o++){var e=(i+1)*(s-1)+(o-1),n=(i+1)*s+(o-1),r=(i+1)*s+o,a=(i+1)*(s-1)+o;m.push(e,n,a),m.push(n,r,a)}}()}(),this.setIndex(m),this.addAttribute("position",new Zn(d,3)),this.addAttribute("normal",new Zn(p,3)),this.addAttribute("uv",new Zn(f,2))}function Fa(e,t,n,i,r,a,o){Un.call(this),this.type="TorusKnotGeometry",this.parameters={radius:e,tube:t,tubularSegments:n,radialSegments:i,p:r,q:a},void 0!==o&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new Ba(e,t,n,i,r,a)),this.mergeVertices()}function Ba(e,t,n,i,r,a){ni.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:e,tube:t,tubularSegments:n,radialSegments:i,p:r,q:a},e=e||1,t=t||.4,n=Math.floor(n)||64,i=Math.floor(i)||8,r=r||2,a=a||3;var o,s,l=[],c=[],u=[],h=[],d=new Qt,p=new Qt,f=new Qt,m=new Qt,v=new Qt,g=new Qt,y=new Qt;for(o=0;o<=n;++o){var b=o/n*r*Math.PI*2;for(C(b,r,a,e,f),C(b+.01,r,a,e,m),g.subVectors(m,f),y.addVectors(m,f),v.crossVectors(g,y),y.crossVectors(v,g),v.normalize(),y.normalize(),s=0;s<=i;++s){var x=s/i*Math.PI*2,w=-t*Math.cos(x),_=t*Math.sin(x);d.x=f.x+(w*y.x+_*v.x),d.y=f.y+(w*y.y+_*v.y),d.z=f.z+(w*y.z+_*v.z),c.push(d.x,d.y,d.z),p.subVectors(d,f).normalize(),u.push(p.x,p.y,p.z),h.push(o/n),h.push(s/i)}}for(s=1;s<=n;s++)for(o=1;o<=i;o++){var M=(i+1)*(s-1)+(o-1),E=(i+1)*s+(o-1),T=(i+1)*s+o,S=(i+1)*(s-1)+o;l.push(M,E,S),l.push(E,T,S)}function C(e,t,n,i,r){var a=Math.cos(e),o=Math.sin(e),s=n/t*e,l=Math.cos(s);r.x=i*(2+l)*.5*a,r.y=i*(2+l)*o*.5,r.z=i*Math.sin(s)*.5}this.setIndex(l),this.addAttribute("position",new Zn(c,3)),this.addAttribute("normal",new Zn(u,3)),this.addAttribute("uv",new Zn(h,2))}function Ha(e,t,n,i,r){Un.call(this),this.type="TorusGeometry",this.parameters={radius:e,tube:t,radialSegments:n,tubularSegments:i,arc:r},this.fromBufferGeometry(new ja(e,t,n,i,r)),this.mergeVertices()}function ja(e,t,n,i,r){ni.call(this),this.type="TorusBufferGeometry",this.parameters={radius:e,tube:t,radialSegments:n,tubularSegments:i,arc:r},e=e||1,t=t||.4,n=Math.floor(n)||8,i=Math.floor(i)||6,r=r||2*Math.PI;var a,o,s=[],l=[],c=[],u=[],h=new Qt,d=new Qt,p=new Qt;for(a=0;a<=n;a++)for(o=0;o<=i;o++){var f=o/i*r,m=a/n*Math.PI*2;d.x=(e+t*Math.cos(m))*Math.cos(f),d.y=(e+t*Math.cos(m))*Math.sin(f),d.z=t*Math.sin(m),l.push(d.x,d.y,d.z),h.x=e*Math.cos(f),h.y=e*Math.sin(f),p.subVectors(d,h).normalize(),c.push(p.x,p.y,p.z),u.push(o/i),u.push(a/n)}for(a=1;a<=n;a++)for(o=1;o<=i;o++){var v=(i+1)*a+o-1,g=(i+1)*(a-1)+o-1,y=(i+1)*(a-1)+o,b=(i+1)*a+o;s.push(v,g,b),s.push(g,y,b)}this.setIndex(s),this.addAttribute("position",new Zn(l,3)),this.addAttribute("normal",new Zn(c,3)),this.addAttribute("uv",new Zn(u,2))}na.prototype.isFogExp2=!0,na.prototype.clone=function(){return new na(this.color,this.density)},na.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},ia.prototype.isFog=!0,ia.prototype.clone=function(){return new ia(this.color,this.near,this.far)},ia.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},ra.prototype=Object.assign(Object.create(Fn.prototype),{constructor:ra,copy:function(e,t){return Fn.prototype.copy.call(this,e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.fog&&(this.fog=e.fog.clone()),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this},toJSON:function(e){var t=Fn.prototype.toJSON.call(this,e);return null!==this.background&&(t.object.background=this.background.toJSON(e)),null!==this.fog&&(t.object.fog=this.fog.toJSON()),t}}),Object.defineProperty(aa.prototype,"needsUpdate",{set:function(e){!0===e&&this.version++}}),Object.assign(aa.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(e){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=void 0!==e?e.length/this.stride:0,this.array=e,this},setDynamic:function(e){return this.dynamic=e,this},copy:function(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.dynamic=e.dynamic,this},copyAt:function(e,t,n){e*=this.stride,n*=t.stride;for(var i=0,r=this.stride;i<r;i++)this.array[e+i]=t.array[n+i];return this},set:function(e,t){return void 0===t&&(t=0),this.array.set(e,t),this},clone:function(){return(new this.constructor).copy(this)},onUpload:function(e){return this.onUploadCallback=e,this}}),Object.defineProperties(oa.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(oa.prototype,{isInterleavedBufferAttribute:!0,setX:function(e,t){return this.data.array[e*this.data.stride+this.offset]=t,this},setY:function(e,t){return this.data.array[e*this.data.stride+this.offset+1]=t,this},setZ:function(e,t){return this.data.array[e*this.data.stride+this.offset+2]=t,this},setW:function(e,t){return this.data.array[e*this.data.stride+this.offset+3]=t,this},getX:function(e){return this.data.array[e*this.data.stride+this.offset]},getY:function(e){return this.data.array[e*this.data.stride+this.offset+1]},getZ:function(e){return this.data.array[e*this.data.stride+this.offset+2]},getW:function(e){return this.data.array[e*this.data.stride+this.offset+3]},setXY:function(e,t,n){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this},setXYZ:function(e,t,n,i){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=i,this},setXYZW:function(e,t,n,i,r){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=i,this.data.array[e+3]=r,this}}),sa.prototype=Object.create(xi.prototype),sa.prototype.constructor=sa,sa.prototype.isSpriteMaterial=!0,sa.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this},la.prototype=Object.assign(Object.create(Fn.prototype),{constructor:la,isSprite:!0,raycast:function(){var e=new Qt,t=new Qt,n=new Qt,i=new Jt,r=new Jt,a=new Zt,o=new Qt,s=new Qt,l=new Qt,c=new Jt,u=new Jt,h=new Jt;function d(e,t,n,o,s,l){i.subVectors(e,n).addScalar(.5).multiply(o),void 0!==s?(r.x=l*i.x-s*i.y,r.y=s*i.x+l*i.y):r.copy(i),e.copy(t),e.x+=r.x,e.y+=r.y,e.applyMatrix4(a)}return function(i,r){t.setFromMatrixScale(this.matrixWorld),a.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),n.setFromMatrixPosition(this.modelViewMatrix);var p,f,m=this.material.rotation;0!==m&&(f=Math.cos(m),p=Math.sin(m));var v=this.center;d(o.set(-.5,-.5,0),n,v,t,p,f),d(s.set(.5,-.5,0),n,v,t,p,f),d(l.set(.5,.5,0),n,v,t,p,f),c.set(0,0),u.set(1,0),h.set(1,1);var g=i.ray.intersectTriangle(o,s,l,!1,e);if(null!==g||(d(s.set(-.5,.5,0),n,v,t,p,f),u.set(0,1),null!==(g=i.ray.intersectTriangle(o,l,s,!1,e)))){var y=i.ray.origin.distanceTo(e);y<i.near||y>i.far||r.push({distance:y,point:e.clone(),uv:Mi.getUV(e,o,s,l,c,u,h,new Jt),face:null,object:this})}}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(e){return Fn.prototype.copy.call(this,e),void 0!==e.center&&this.center.copy(e.center),this}}),ca.prototype=Object.assign(Object.create(Fn.prototype),{constructor:ca,copy:function(e){Fn.prototype.copy.call(this,e,!1);for(var t=e.levels,n=0,i=t.length;n<i;n++){var r=t[n];this.addLevel(r.object.clone(),r.distance)}return this},addLevel:function(e,t){void 0===t&&(t=0),t=Math.abs(t);for(var n=this.levels,i=0;i<n.length&&!(t<n[i].distance);i++);n.splice(i,0,{distance:t,object:e}),this.add(e)},getObjectForDistance:function(e){for(var t=this.levels,n=1,i=t.length;n<i&&!(e<t[n].distance);n++);return t[n-1].object},raycast:($r=new Qt,function(e,t){$r.setFromMatrixPosition(this.matrixWorld);var n=e.ray.origin.distanceTo($r);this.getObjectForDistance(n).raycast(e,t)}),update:function(){var e=new Qt,t=new Qt;return function(n){var i=this.levels;if(i.length>1){e.setFromMatrixPosition(n.matrixWorld),t.setFromMatrixPosition(this.matrixWorld);var r=e.distanceTo(t);i[0].object.visible=!0;for(var a=1,o=i.length;a<o&&r>=i[a].distance;a++)i[a-1].object.visible=!1,i[a].object.visible=!0;for(;a<o;a++)i[a].object.visible=!1}}}(),toJSON:function(e){var t=Fn.prototype.toJSON.call(this,e);t.object.levels=[];for(var n=this.levels,i=0,r=n.length;i<r;i++){var a=n[i];t.object.levels.push({object:a.object.uuid,distance:a.distance})}return t}}),Object.assign(ua.prototype,{calculateInverses:function(){this.boneInverses=[];for(var e=0,t=this.bones.length;e<t;e++){var n=new Zt;this.bones[e]&&n.getInverse(this.bones[e].matrixWorld),this.boneInverses.push(n)}},pose:function(){var e,t,n;for(t=0,n=this.bones.length;t<n;t++)(e=this.bones[t])&&e.matrixWorld.getInverse(this.boneInverses[t]);for(t=0,n=this.bones.length;t<n;t++)(e=this.bones[t])&&(e.parent&&e.parent.isBone?(e.matrix.getInverse(e.parent.matrixWorld),e.matrix.multiply(e.matrixWorld)):e.matrix.copy(e.matrixWorld),e.matrix.decompose(e.position,e.quaternion,e.scale))},update:(Yr=new Zt,qr=new Zt,function(){for(var e=this.bones,t=this.boneInverses,n=this.boneMatrices,i=this.boneTexture,r=0,a=e.length;r<a;r++){var o=e[r]?e[r].matrixWorld:qr;Yr.multiplyMatrices(o,t[r]),Yr.toArray(n,16*r)}void 0!==i&&(i.needsUpdate=!0)}),clone:function(){return new ua(this.bones,this.boneInverses)},getBoneByName:function(e){for(var t=0,n=this.bones.length;t<n;t++){var i=this.bones[t];if(i.name===e)return i}}}),ha.prototype=Object.assign(Object.create(Fn.prototype),{constructor:ha,isBone:!0}),da.prototype=Object.assign(Object.create(Ti.prototype),{constructor:da,isSkinnedMesh:!0,initBones:function(){var e,t,n,i,r=[];if(this.geometry&&void 0!==this.geometry.bones){for(n=0,i=this.geometry.bones.length;n<i;n++)t=this.geometry.bones[n],e=new ha,r.push(e),e.name=t.name,e.position.fromArray(t.pos),e.quaternion.fromArray(t.rotq),void 0!==t.scl&&e.scale.fromArray(t.scl);for(n=0,i=this.geometry.bones.length;n<i;n++)-1!==(t=this.geometry.bones[n]).parent&&null!==t.parent&&void 0!==r[t.parent]?r[t.parent].add(r[n]):this.add(r[n])}return this.updateMatrixWorld(!0),r},bind:function(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.getInverse(t)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){var e,t;if(this.geometry&&this.geometry.isGeometry)for(t=0;t<this.geometry.skinWeights.length;t++){var n=this.geometry.skinWeights[t];(e=1/n.manhattanLength())!==1/0?n.multiplyScalar(e):n.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){var i=new un,r=this.geometry.attributes.skinWeight;for(t=0;t<r.count;t++)i.x=r.getX(t),i.y=r.getY(t),i.z=r.getZ(t),i.w=r.getW(t),(e=1/i.manhattanLength())!==1/0?i.multiplyScalar(e):i.set(1,0,0,0),r.setXYZW(t,i.x,i.y,i.z,i.w)}},updateMatrixWorld:function(e){Ti.prototype.updateMatrixWorld.call(this,e),"attached"===this.bindMode?this.bindMatrixInverse.getInverse(this.matrixWorld):"detached"===this.bindMode?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)}}),pa.prototype=Object.create(xi.prototype),pa.prototype.constructor=pa,pa.prototype.isLineBasicMaterial=!0,pa.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.color.copy(e.color),this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this},fa.prototype=Object.assign(Object.create(Fn.prototype),{constructor:fa,isLine:!0,computeLineDistances:(Xr=new Qt,Jr=new Qt,function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[0],i=1,r=t.count;i<r;i++)Xr.fromBufferAttribute(t,i-1),Jr.fromBufferAttribute(t,i),n[i]=n[i-1],n[i]+=Xr.distanceTo(Jr);e.addAttribute("lineDistance",new Zn(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(e.isGeometry){var a=e.vertices;for((n=e.lineDistances)[0]=0,i=1,r=a.length;i<r;i++)n[i]=n[i-1],n[i]+=a[i-1].distanceTo(a[i])}return this}),raycast:function(){var e=new Zt,t=new _i,n=new mn;return function(i,r){var a=i.linePrecision,o=this.geometry,s=this.matrixWorld;if(null===o.boundingSphere&&o.computeBoundingSphere(),n.copy(o.boundingSphere),n.applyMatrix4(s),n.radius+=a,!1!==i.ray.intersectsSphere(n)){e.getInverse(s),t.copy(i.ray).applyMatrix4(e);var l=a/((this.scale.x+this.scale.y+this.scale.z)/3),c=l*l,u=new Qt,h=new Qt,d=new Qt,p=new Qt,f=this&&this.isLineSegments?2:1;if(o.isBufferGeometry){var m=o.index,v=o.attributes.position.array;if(null!==m)for(var g=m.array,y=0,b=g.length-1;y<b;y+=f){var x=g[y],w=g[y+1];if(u.fromArray(v,3*x),h.fromArray(v,3*w),!(t.distanceSqToSegment(u,h,p,d)>c))p.applyMatrix4(this.matrixWorld),(E=i.ray.origin.distanceTo(p))<i.near||E>i.far||r.push({distance:E,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}else for(y=0,b=v.length/3-1;y<b;y+=f){if(u.fromArray(v,3*y),h.fromArray(v,3*y+3),!(t.distanceSqToSegment(u,h,p,d)>c))p.applyMatrix4(this.matrixWorld),(E=i.ray.origin.distanceTo(p))<i.near||E>i.far||r.push({distance:E,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}else if(o.isGeometry){var _=o.vertices,M=_.length;for(y=0;y<M-1;y+=f){var E;if(!(t.distanceSqToSegment(_[y],_[y+1],p,d)>c))p.applyMatrix4(this.matrixWorld),(E=i.ray.origin.distanceTo(p))<i.near||E>i.far||r.push({distance:E,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}}}}(),copy:function(e){return Fn.prototype.copy.call(this,e),this.geometry.copy(e.geometry),this.material.copy(e.material),this},clone:function(){return(new this.constructor).copy(this)}}),ma.prototype=Object.assign(Object.create(fa.prototype),{constructor:ma,isLineSegments:!0,computeLineDistances:function(){var e=new Qt,t=new Qt;return function(){var n=this.geometry;if(n.isBufferGeometry)if(null===n.index){for(var i=n.attributes.position,r=[],a=0,o=i.count;a<o;a+=2)e.fromBufferAttribute(i,a),t.fromBufferAttribute(i,a+1),r[a]=0===a?0:r[a-1],r[a+1]=r[a]+e.distanceTo(t);n.addAttribute("lineDistance",new Zn(r,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(n.isGeometry){var s=n.vertices;for(r=n.lineDistances,a=0,o=s.length;a<o;a+=2)e.copy(s[a]),t.copy(s[a+1]),r[a]=0===a?0:r[a-1],r[a+1]=r[a]+e.distanceTo(t)}return this}}()}),va.prototype=Object.assign(Object.create(fa.prototype),{constructor:va,isLineLoop:!0}),ga.prototype=Object.create(xi.prototype),ga.prototype.constructor=ga,ga.prototype.isPointsMaterial=!0,ga.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.morphTargets=e.morphTargets,this},ya.prototype=Object.assign(Object.create(Fn.prototype),{constructor:ya,isPoints:!0,raycast:function(){var e=new Zt,t=new _i,n=new mn;return function(i,r){var a=this,o=this.geometry,s=this.matrixWorld,l=i.params.Points.threshold;if(null===o.boundingSphere&&o.computeBoundingSphere(),n.copy(o.boundingSphere),n.applyMatrix4(s),n.radius+=l,!1!==i.ray.intersectsSphere(n)){e.getInverse(s),t.copy(i.ray).applyMatrix4(e);var c=l/((this.scale.x+this.scale.y+this.scale.z)/3),u=c*c,h=new Qt,d=new Qt;if(o.isBufferGeometry){var p=o.index,f=o.attributes.position.array;if(null!==p)for(var m=p.array,v=0,g=m.length;v<g;v++){var y=m[v];h.fromArray(f,3*y),w(h,y)}else{v=0;for(var b=f.length/3;v<b;v++)h.fromArray(f,3*v),w(h,v)}}else{var x=o.vertices;for(v=0,b=x.length;v<b;v++)w(x[v],v)}}function w(e,n){var o=t.distanceSqToPoint(e);if(o<u){t.closestPointToPoint(e,d),d.applyMatrix4(s);var l=i.ray.origin.distanceTo(d);if(l<i.near||l>i.far)return;r.push({distance:l,distanceToRay:Math.sqrt(o),point:d.clone(),index:n,face:null,object:a})}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),ba.prototype=Object.assign(Object.create(cn.prototype),{constructor:ba,isVideoTexture:!0,update:function(){var e=this.image;e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),xa.prototype=Object.create(cn.prototype),xa.prototype.constructor=xa,xa.prototype.isCompressedTexture=!0,wa.prototype=Object.create(cn.prototype),wa.prototype.constructor=wa,wa.prototype.isCanvasTexture=!0,_a.prototype=Object.create(cn.prototype),_a.prototype.constructor=_a,_a.prototype.isDepthTexture=!0,Ma.prototype=Object.create(ni.prototype),Ma.prototype.constructor=Ma,Ea.prototype=Object.create(Un.prototype),Ea.prototype.constructor=Ea,Ta.prototype=Object.create(ni.prototype),Ta.prototype.constructor=Ta,Sa.prototype=Object.create(Un.prototype),Sa.prototype.constructor=Sa,Ca.prototype=Object.create(ni.prototype),Ca.prototype.constructor=Ca,Aa.prototype=Object.create(Un.prototype),Aa.prototype.constructor=Aa,La.prototype=Object.create(Ca.prototype),La.prototype.constructor=La,Pa.prototype=Object.create(Un.prototype),Pa.prototype.constructor=Pa,Oa.prototype=Object.create(Ca.prototype),Oa.prototype.constructor=Oa,Ra.prototype=Object.create(Un.prototype),Ra.prototype.constructor=Ra,Da.prototype=Object.create(Ca.prototype),Da.prototype.constructor=Da,Ia.prototype=Object.create(Un.prototype),Ia.prototype.constructor=Ia,ka.prototype=Object.create(Ca.prototype),ka.prototype.constructor=ka,Na.prototype=Object.create(Un.prototype),Na.prototype.constructor=Na,za.prototype=Object.create(ni.prototype),za.prototype.constructor=za,Fa.prototype=Object.create(Un.prototype),Fa.prototype.constructor=Fa,Ba.prototype=Object.create(ni.prototype),Ba.prototype.constructor=Ba,Ha.prototype=Object.create(Un.prototype),Ha.prototype.constructor=Ha,ja.prototype=Object.create(ni.prototype),ja.prototype.constructor=ja;var Ua=function(e,t,n){n=n||2;var i,r,a,o,s,l,c,u=t&&t.length,h=u?t[0]*n:e.length,d=Ga(e,0,h,n,!0),p=[];if(!d)return p;if(u&&(d=function(e,t,n,i){var r,a,o,s,l,c=[];for(r=0,a=t.length;r<a;r++)o=t[r]*i,s=r<a-1?t[r+1]*i:e.length,(l=Ga(e,o,s,i,!1))===l.next&&(l.steiner=!0),c.push(Qa(l));for(c.sort(Ja),r=0;r<c.length;r++)Za(c[r],n),n=Va(n,n.next);return n}(e,t,d,n)),e.length>80*n){i=a=e[0],r=o=e[1];for(var f=n;f<h;f+=n)s=e[f],l=e[f+1],s<i&&(i=s),l<r&&(r=l),s>a&&(a=s),l>o&&(o=l);c=0!==(c=Math.max(a-i,o-r))?1/c:0}return Wa(d,p,n,i,r,c),p};function Ga(e,t,n,i,r){var a,o;if(r===function(e,t,n,i){for(var r=0,a=t,o=n-i;a<n;a+=i)r+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return r}(e,t,n,i)>0)for(a=t;a<n;a+=i)o=so(a,e[a],e[a+1],o);else for(a=n-i;a>=t;a-=i)o=so(a,e[a],e[a+1],o);return o&&io(o,o.next)&&(lo(o),o=o.next),o}function Va(e,t){if(!e)return e;t||(t=e);var n,i=e;do{if(n=!1,i.steiner||!io(i,i.next)&&0!==no(i.prev,i,i.next))i=i.next;else{if(lo(i),(i=t=i.prev)===i.next)break;n=!0}}while(n||i!==t);return t}function Wa(e,t,n,i,r,a,o){if(e){!o&&a&&function(e,t,n,i){var r=e;do{null===r.z&&(r.z=Ka(r.x,r.y,t,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){var t,n,i,r,a,o,s,l,c=1;do{for(n=e,e=null,a=null,o=0;n;){for(o++,i=n,s=0,t=0;t<c&&(s++,i=i.nextZ);t++);for(l=c;s>0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),a?a.nextZ=r:e=r,r.prevZ=a,a=r;n=i}a.nextZ=null,c*=2}while(o>1)}(r)}(e,i,r,a);for(var s,l,c=e;e.prev!==e.next;)if(s=e.prev,l=e.next,a?Ya(e,i,r,a):$a(e))t.push(s.i/n),t.push(e.i/n),t.push(l.i/n),lo(e),e=l.next,c=l.next;else if((e=l)===c){o?1===o?Wa(e=qa(e,t,n),t,n,i,r,a,2):2===o&&Xa(e,t,n,i,r,a):Wa(Va(e),t,n,i,r,a,1);break}}}function $a(e){var t=e.prev,n=e,i=e.next;if(no(t,n,i)>=0)return!1;for(var r=e.next.next;r!==e.prev;){if(eo(t.x,t.y,n.x,n.y,i.x,i.y,r.x,r.y)&&no(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function Ya(e,t,n,i){var r=e.prev,a=e,o=e.next;if(no(r,a,o)>=0)return!1;for(var s=r.x<a.x?r.x<o.x?r.x:o.x:a.x<o.x?a.x:o.x,l=r.y<a.y?r.y<o.y?r.y:o.y:a.y<o.y?a.y:o.y,c=r.x>a.x?r.x>o.x?r.x:o.x:a.x>o.x?a.x:o.x,u=r.y>a.y?r.y>o.y?r.y:o.y:a.y>o.y?a.y:o.y,h=Ka(s,l,t,n,i),d=Ka(c,u,t,n,i),p=e.nextZ;p&&p.z<=d;){if(p!==e.prev&&p!==e.next&&eo(r.x,r.y,a.x,a.y,o.x,o.y,p.x,p.y)&&no(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=e.prevZ;p&&p.z>=h;){if(p!==e.prev&&p!==e.next&&eo(r.x,r.y,a.x,a.y,o.x,o.y,p.x,p.y)&&no(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function qa(e,t,n){var i=e;do{var r=i.prev,a=i.next.next;!io(r,a)&&ro(r,i,i.next,a)&&ao(r,a)&&ao(a,r)&&(t.push(r.i/n),t.push(i.i/n),t.push(a.i/n),lo(i),lo(i.next),i=e=a),i=i.next}while(i!==e);return i}function Xa(e,t,n,i,r,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&to(o,s)){var l=oo(o,s);return o=Va(o,o.next),l=Va(l,l.next),Wa(o,t,n,i,r,a),void Wa(l,t,n,i,r,a)}s=s.next}o=o.next}while(o!==e)}function Ja(e,t){return e.x-t.x}function Za(e,t){if(t=function(e,t){var n,i=t,r=e.x,a=e.y,o=-1/0;do{if(a<=i.y&&a>=i.next.y&&i.next.y!==i.y){var s=i.x+(a-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>o){if(o=s,s===r){if(a===i.y)return i;if(a===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==t);if(!n)return null;if(r===o)return n.prev;var l,c=n,u=n.x,h=n.y,d=1/0;i=n.next;for(;i!==c;)r>=i.x&&i.x>=u&&r!==i.x&&eo(a<h?r:o,a,u,h,a<h?o:r,a,i.x,i.y)&&((l=Math.abs(a-i.y)/(r-i.x))<d||l===d&&i.x>n.x)&&ao(i,e)&&(n=i,d=l),i=i.next;return n}(e,t)){var n=oo(t,e);Va(n,n.next)}}function Ka(e,t,n,i,r){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*r)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*r)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Qa(e){var t=e,n=e;do{t.x<n.x&&(n=t),t=t.next}while(t!==e);return n}function eo(e,t,n,i,r,a,o,s){return(r-o)*(t-s)-(e-o)*(a-s)>=0&&(e-o)*(i-s)-(n-o)*(t-s)>=0&&(n-o)*(a-s)-(r-o)*(i-s)>=0}function to(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&ro(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&ao(e,t)&&ao(t,e)&&function(e,t){var n=e,i=!1,r=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&r<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==e);return i}(e,t)}function no(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function io(e,t){return e.x===t.x&&e.y===t.y}function ro(e,t,n,i){return!!(io(e,t)&&io(n,i)||io(e,i)&&io(n,t))||no(e,t,n)>0!=no(e,t,i)>0&&no(n,i,e)>0!=no(n,i,t)>0}function ao(e,t){return no(e.prev,e,e.next)<0?no(e,t,e.next)>=0&&no(e,e.prev,t)>=0:no(e,t,e.prev)<0||no(e,e.next,t)<0}function oo(e,t){var n=new co(e.i,e.x,e.y),i=new co(t.i,t.x,t.y),r=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,i.next=n,n.prev=i,a.next=i,i.prev=a,i}function so(e,t,n,i){var r=new co(e,t,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function lo(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function co(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}var uo={area:function(e){for(var t=e.length,n=0,i=t-1,r=0;r<t;i=r++)n+=e[i].x*e[r].y-e[r].x*e[i].y;return.5*n},isClockWise:function(e){return uo.area(e)<0},triangulateShape:function(e,t){var n=[],i=[],r=[];ho(e),po(n,e);var a=e.length;t.forEach(ho);for(var o=0;o<t.length;o++)i.push(a),a+=t[o].length,po(n,t[o]);var s=Ua(n,i);for(o=0;o<s.length;o+=3)r.push(s.slice(o,o+3));return r}};function ho(e){var t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function po(e,t){for(var n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}function fo(e,t){Un.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},this.fromBufferGeometry(new mo(e,t)),this.mergeVertices()}function mo(e,t){ni.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:e,options:t};for(var n=this,i=[],r=[],a=0,o=(e=Array.isArray(e)?e:[e]).length;a<o;a++){s(e[a])}function s(e){var a=[],o=void 0!==t.curveSegments?t.curveSegments:12,s=void 0!==t.steps?t.steps:1,l=void 0!==t.depth?t.depth:100,c=void 0===t.bevelEnabled||t.bevelEnabled,u=void 0!==t.bevelThickness?t.bevelThickness:6,h=void 0!==t.bevelSize?t.bevelSize:u-2,d=void 0!==t.bevelSegments?t.bevelSegments:3,p=t.extrudePath,f=void 0!==t.UVGenerator?t.UVGenerator:vo;void 0!==t.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),l=t.amount);var m,v,g,y,b,x,w,_,M=!1;p&&(m=p.getSpacedPoints(s),M=!0,c=!1,v=p.computeFrenetFrames(s,!1),g=new Qt,y=new Qt,b=new Qt),c||(d=0,u=0,h=0);var E=e.extractPoints(o),T=E.shape,S=E.holes;if(!uo.isClockWise(T))for(T=T.reverse(),w=0,_=S.length;w<_;w++)x=S[w],uo.isClockWise(x)&&(S[w]=x.reverse());var C=uo.triangulateShape(T,S),A=T;for(w=0,_=S.length;w<_;w++)x=S[w],T=T.concat(x);function L(e,t,n){return t||console.error("THREE.ExtrudeGeometry: vec does not exist"),t.clone().multiplyScalar(n).add(e)}var P,O,R,D,I,k,N=T.length,z=C.length;function F(e,t,n){var i,r,a,o=e.x-t.x,s=e.y-t.y,l=n.x-e.x,c=n.y-e.y,u=o*o+s*s,h=o*c-s*l;if(Math.abs(h)>Number.EPSILON){var d=Math.sqrt(u),p=Math.sqrt(l*l+c*c),f=t.x-s/d,m=t.y+o/d,v=((n.x-c/p-f)*c-(n.y+l/p-m)*l)/(o*c-s*l),g=(i=f+o*v-e.x)*i+(r=m+s*v-e.y)*r;if(g<=2)return new Jt(i,r);a=Math.sqrt(g/2)}else{var y=!1;o>Number.EPSILON?l>Number.EPSILON&&(y=!0):o<-Number.EPSILON?l<-Number.EPSILON&&(y=!0):Math.sign(s)===Math.sign(c)&&(y=!0),y?(i=-s,r=o,a=Math.sqrt(u)):(i=o,r=s,a=Math.sqrt(u/2))}return new Jt(i/a,r/a)}for(var B=[],H=0,j=A.length,U=j-1,G=H+1;H<j;H++,U++,G++)U===j&&(U=0),G===j&&(G=0),B[H]=F(A[H],A[U],A[G]);var V,W,$=[],Y=B.concat();for(w=0,_=S.length;w<_;w++){for(x=S[w],V=[],H=0,U=(j=x.length)-1,G=H+1;H<j;H++,U++,G++)U===j&&(U=0),G===j&&(G=0),V[H]=F(x[H],x[U],x[G]);$.push(V),Y=Y.concat(V)}for(P=0;P<d;P++){for(R=P/d,D=u*Math.cos(R*Math.PI/2),O=h*Math.sin(R*Math.PI/2),H=0,j=A.length;H<j;H++)X((I=L(A[H],B[H],O)).x,I.y,-D);for(w=0,_=S.length;w<_;w++)for(x=S[w],V=$[w],H=0,j=x.length;H<j;H++)X((I=L(x[H],V[H],O)).x,I.y,-D)}for(O=h,H=0;H<N;H++)I=c?L(T[H],Y[H],O):T[H],M?(y.copy(v.normals[0]).multiplyScalar(I.x),g.copy(v.binormals[0]).multiplyScalar(I.y),b.copy(m[0]).add(y).add(g),X(b.x,b.y,b.z)):X(I.x,I.y,0);for(W=1;W<=s;W++)for(H=0;H<N;H++)I=c?L(T[H],Y[H],O):T[H],M?(y.copy(v.normals[W]).multiplyScalar(I.x),g.copy(v.binormals[W]).multiplyScalar(I.y),b.copy(m[W]).add(y).add(g),X(b.x,b.y,b.z)):X(I.x,I.y,l/s*W);for(P=d-1;P>=0;P--){for(R=P/d,D=u*Math.cos(R*Math.PI/2),O=h*Math.sin(R*Math.PI/2),H=0,j=A.length;H<j;H++)X((I=L(A[H],B[H],O)).x,I.y,l+D);for(w=0,_=S.length;w<_;w++)for(x=S[w],V=$[w],H=0,j=x.length;H<j;H++)I=L(x[H],V[H],O),M?X(I.x,I.y+m[s-1].y,m[s-1].x+D):X(I.x,I.y,l+D)}function q(e,t){var n,i;for(H=e.length;--H>=0;){n=H,(i=H-1)<0&&(i=e.length-1);var r=0,a=s+2*d;for(r=0;r<a;r++){var o=N*r,l=N*(r+1);Z(t+n+o,t+i+o,t+i+l,t+n+l)}}}function X(e,t,n){a.push(e),a.push(t),a.push(n)}function J(e,t,r){K(e),K(t),K(r);var a=i.length/3,o=f.generateTopUV(n,i,a-3,a-2,a-1);Q(o[0]),Q(o[1]),Q(o[2])}function Z(e,t,r,a){K(e),K(t),K(a),K(t),K(r),K(a);var o=i.length/3,s=f.generateSideWallUV(n,i,o-6,o-3,o-2,o-1);Q(s[0]),Q(s[1]),Q(s[3]),Q(s[1]),Q(s[2]),Q(s[3])}function K(e){i.push(a[3*e+0]),i.push(a[3*e+1]),i.push(a[3*e+2])}function Q(e){r.push(e.x),r.push(e.y)}!function(){var e=i.length/3;if(c){var t=0,r=N*t;for(H=0;H<z;H++)J((k=C[H])[2]+r,k[1]+r,k[0]+r);for(r=N*(t=s+2*d),H=0;H<z;H++)J((k=C[H])[0]+r,k[1]+r,k[2]+r)}else{for(H=0;H<z;H++)J((k=C[H])[2],k[1],k[0]);for(H=0;H<z;H++)J((k=C[H])[0]+N*s,k[1]+N*s,k[2]+N*s)}n.addGroup(e,i.length/3-e,0)}(),function(){var e=i.length/3,t=0;for(q(A,t),t+=A.length,w=0,_=S.length;w<_;w++)q(x=S[w],t),t+=x.length;n.addGroup(e,i.length/3-e,1)}()}this.addAttribute("position",new Zn(i,3)),this.addAttribute("uv",new Zn(r,2)),this.computeVertexNormals()}fo.prototype=Object.create(Un.prototype),fo.prototype.constructor=fo,fo.prototype.toJSON=function(){var e=Un.prototype.toJSON.call(this);return go(this.parameters.shapes,this.parameters.options,e)},mo.prototype=Object.create(ni.prototype),mo.prototype.constructor=mo,mo.prototype.toJSON=function(){var e=ni.prototype.toJSON.call(this);return go(this.parameters.shapes,this.parameters.options,e)};var vo={generateTopUV:function(e,t,n,i,r){var a=t[3*n],o=t[3*n+1],s=t[3*i],l=t[3*i+1],c=t[3*r],u=t[3*r+1];return[new Jt(a,o),new Jt(s,l),new Jt(c,u)]},generateSideWallUV:function(e,t,n,i,r,a){var o=t[3*n],s=t[3*n+1],l=t[3*n+2],c=t[3*i],u=t[3*i+1],h=t[3*i+2],d=t[3*r],p=t[3*r+1],f=t[3*r+2],m=t[3*a],v=t[3*a+1],g=t[3*a+2];return Math.abs(s-u)<.01?[new Jt(o,1-l),new Jt(c,1-h),new Jt(d,1-f),new Jt(m,1-g)]:[new Jt(s,1-l),new Jt(u,1-h),new Jt(p,1-f),new Jt(v,1-g)]}};function go(e,t,n){if(n.shapes=[],Array.isArray(e))for(var i=0,r=e.length;i<r;i++){var a=e[i];n.shapes.push(a.uuid)}else n.shapes.push(e.uuid);return void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON()),n}function yo(e,t){Un.call(this),this.type="TextGeometry",this.parameters={text:e,parameters:t},this.fromBufferGeometry(new bo(e,t)),this.mergeVertices()}function bo(e,t){var n=(t=t||{}).font;if(!n||!n.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new Un;var i=n.generateShapes(e,t.size);t.depth=void 0!==t.height?t.height:50,void 0===t.bevelThickness&&(t.bevelThickness=10),void 0===t.bevelSize&&(t.bevelSize=8),void 0===t.bevelEnabled&&(t.bevelEnabled=!1),mo.call(this,i,t),this.type="TextBufferGeometry"}function xo(e,t,n,i,r,a,o){Un.call(this),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:i,phiLength:r,thetaStart:a,thetaLength:o},this.fromBufferGeometry(new wo(e,t,n,i,r,a,o)),this.mergeVertices()}function wo(e,t,n,i,r,a,o){ni.call(this),this.type="SphereBufferGeometry",this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:i,phiLength:r,thetaStart:a,thetaLength:o},e=e||1,t=Math.max(3,Math.floor(t)||8),n=Math.max(2,Math.floor(n)||6),i=void 0!==i?i:0,r=void 0!==r?r:2*Math.PI;var s,l,c=(a=void 0!==a?a:0)+(o=void 0!==o?o:Math.PI),u=0,h=[],d=new Qt,p=new Qt,f=[],m=[],v=[],g=[];for(l=0;l<=n;l++){var y=[],b=l/n;for(s=0;s<=t;s++){var x=s/t;d.x=-e*Math.cos(i+x*r)*Math.sin(a+b*o),d.y=e*Math.cos(a+b*o),d.z=e*Math.sin(i+x*r)*Math.sin(a+b*o),m.push(d.x,d.y,d.z),p.set(d.x,d.y,d.z).normalize(),v.push(p.x,p.y,p.z),g.push(x,1-b),y.push(u++)}h.push(y)}for(l=0;l<n;l++)for(s=0;s<t;s++){var w=h[l][s+1],_=h[l][s],M=h[l+1][s],E=h[l+1][s+1];(0!==l||a>0)&&f.push(w,_,E),(l!==n-1||c<Math.PI)&&f.push(_,M,E)}this.setIndex(f),this.addAttribute("position",new Zn(m,3)),this.addAttribute("normal",new Zn(v,3)),this.addAttribute("uv",new Zn(g,2))}function _o(e,t,n,i,r,a){Un.call(this),this.type="RingGeometry",this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:a},this.fromBufferGeometry(new Mo(e,t,n,i,r,a)),this.mergeVertices()}function Mo(e,t,n,i,r,a){ni.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:a},e=e||.5,t=t||1,r=void 0!==r?r:0,a=void 0!==a?a:2*Math.PI,n=void 0!==n?Math.max(3,n):8;var o,s,l,c=[],u=[],h=[],d=[],p=e,f=(t-e)/(i=void 0!==i?Math.max(1,i):1),m=new Qt,v=new Jt;for(s=0;s<=i;s++){for(l=0;l<=n;l++)o=r+l/n*a,m.x=p*Math.cos(o),m.y=p*Math.sin(o),u.push(m.x,m.y,m.z),h.push(0,0,1),v.x=(m.x/t+1)/2,v.y=(m.y/t+1)/2,d.push(v.x,v.y);p+=f}for(s=0;s<i;s++){var g=s*(n+1);for(l=0;l<n;l++){var y=o=l+g,b=o+n+1,x=o+n+2,w=o+1;c.push(y,b,w),c.push(b,x,w)}}this.setIndex(c),this.addAttribute("position",new Zn(u,3)),this.addAttribute("normal",new Zn(h,3)),this.addAttribute("uv",new Zn(d,2))}function Eo(e,t,n,i){Un.call(this),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:i},this.fromBufferGeometry(new To(e,t,n,i)),this.mergeVertices()}function To(e,t,n,i){ni.call(this),this.type="LatheBufferGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:i},t=Math.floor(t)||12,n=n||0,i=i||2*Math.PI,i=Xt.clamp(i,0,2*Math.PI);var r,a,o,s=[],l=[],c=[],u=1/t,h=new Qt,d=new Jt;for(a=0;a<=t;a++){var p=n+a*u*i,f=Math.sin(p),m=Math.cos(p);for(o=0;o<=e.length-1;o++)h.x=e[o].x*f,h.y=e[o].y,h.z=e[o].x*m,l.push(h.x,h.y,h.z),d.x=a/t,d.y=o/(e.length-1),c.push(d.x,d.y)}for(a=0;a<t;a++)for(o=0;o<e.length-1;o++){var v=r=o+a*e.length,g=r+e.length,y=r+e.length+1,b=r+1;s.push(v,g,b),s.push(g,y,b)}if(this.setIndex(s),this.addAttribute("position",new Zn(l,3)),this.addAttribute("uv",new Zn(c,2)),this.computeVertexNormals(),i===2*Math.PI){var x=this.attributes.normal.array,w=new Qt,_=new Qt,M=new Qt;for(r=t*e.length*3,a=0,o=0;a<e.length;a++,o+=3)w.x=x[o+0],w.y=x[o+1],w.z=x[o+2],_.x=x[r+o+0],_.y=x[r+o+1],_.z=x[r+o+2],M.addVectors(w,_).normalize(),x[o+0]=x[r+o+0]=M.x,x[o+1]=x[r+o+1]=M.y,x[o+2]=x[r+o+2]=M.z}}function So(e,t){Un.call(this),this.type="ShapeGeometry","object"==typeof t&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),t=t.curveSegments),this.parameters={shapes:e,curveSegments:t},this.fromBufferGeometry(new Co(e,t)),this.mergeVertices()}function Co(e,t){ni.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:e,curveSegments:t},t=t||12;var n=[],i=[],r=[],a=[],o=0,s=0;if(!1===Array.isArray(e))c(e);else for(var l=0;l<e.length;l++)c(e[l]),this.addGroup(o,s,l),o+=s,s=0;function c(e){var o,l,c,u=i.length/3,h=e.extractPoints(t),d=h.shape,p=h.holes;if(!1===uo.isClockWise(d))for(d=d.reverse(),o=0,l=p.length;o<l;o++)c=p[o],!0===uo.isClockWise(c)&&(p[o]=c.reverse());var f=uo.triangulateShape(d,p);for(o=0,l=p.length;o<l;o++)c=p[o],d=d.concat(c);for(o=0,l=d.length;o<l;o++){var m=d[o];i.push(m.x,m.y,0),r.push(0,0,1),a.push(m.x,m.y)}for(o=0,l=f.length;o<l;o++){var v=f[o],g=v[0]+u,y=v[1]+u,b=v[2]+u;n.push(g,y,b),s+=3}}this.setIndex(n),this.addAttribute("position",new Zn(i,3)),this.addAttribute("normal",new Zn(r,3)),this.addAttribute("uv",new Zn(a,2))}function Ao(e,t){if(t.shapes=[],Array.isArray(e))for(var n=0,i=e.length;n<i;n++){var r=e[n];t.shapes.push(r.uuid)}else t.shapes.push(e.uuid);return t}function Lo(e,t){ni.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:t},t=void 0!==t?t:1;var n,i,r,a,o=[],s=Math.cos(Xt.DEG2RAD*t),l=[0,0],c={},u=["a","b","c"];e.isBufferGeometry?(a=new Un).fromBufferGeometry(e):a=e.clone(),a.mergeVertices(),a.computeFaceNormals();for(var h=a.vertices,d=a.faces,p=0,f=d.length;p<f;p++)for(var m=d[p],v=0;v<3;v++)n=m[u[v]],i=m[u[(v+1)%3]],l[0]=Math.min(n,i),l[1]=Math.max(n,i),void 0===c[r=l[0]+","+l[1]]?c[r]={index1:l[0],index2:l[1],face1:p,face2:void 0}:c[r].face2=p;for(r in c){var g=c[r];if(void 0===g.face2||d[g.face1].normal.dot(d[g.face2].normal)<=s){var y=h[g.index1];o.push(y.x,y.y,y.z),y=h[g.index2],o.push(y.x,y.y,y.z)}}this.addAttribute("position",new Zn(o,3))}function Po(e,t,n,i,r,a,o,s){Un.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:i,heightSegments:r,openEnded:a,thetaStart:o,thetaLength:s},this.fromBufferGeometry(new Oo(e,t,n,i,r,a,o,s)),this.mergeVertices()}function Oo(e,t,n,i,r,a,o,s){ni.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:i,heightSegments:r,openEnded:a,thetaStart:o,thetaLength:s};var l=this;e=void 0!==e?e:1,t=void 0!==t?t:1,n=n||1,i=Math.floor(i)||8,r=Math.floor(r)||1,a=void 0!==a&&a,o=void 0!==o?o:0,s=void 0!==s?s:2*Math.PI;var c=[],u=[],h=[],d=[],p=0,f=[],m=n/2,v=0;function g(n){var r,a,f,g=new Jt,y=new Qt,b=0,x=!0===n?e:t,w=!0===n?1:-1;for(a=p,r=1;r<=i;r++)u.push(0,m*w,0),h.push(0,w,0),d.push(.5,.5),p++;for(f=p,r=0;r<=i;r++){var _=r/i*s+o,M=Math.cos(_),E=Math.sin(_);y.x=x*E,y.y=m*w,y.z=x*M,u.push(y.x,y.y,y.z),h.push(0,w,0),g.x=.5*M+.5,g.y=.5*E*w+.5,d.push(g.x,g.y),p++}for(r=0;r<i;r++){var T=a+r,S=f+r;!0===n?c.push(S,S+1,T):c.push(S+1,S,T),b+=3}l.addGroup(v,b,!0===n?1:2),v+=b}!function(){var a,g,y=new Qt,b=new Qt,x=0,w=(t-e)/n;for(g=0;g<=r;g++){var _=[],M=g/r,E=M*(t-e)+e;for(a=0;a<=i;a++){var T=a/i,S=T*s+o,C=Math.sin(S),A=Math.cos(S);b.x=E*C,b.y=-M*n+m,b.z=E*A,u.push(b.x,b.y,b.z),y.set(C,w,A).normalize(),h.push(y.x,y.y,y.z),d.push(T,1-M),_.push(p++)}f.push(_)}for(a=0;a<i;a++)for(g=0;g<r;g++){var L=f[g][a],P=f[g+1][a],O=f[g+1][a+1],R=f[g][a+1];c.push(L,P,R),c.push(P,O,R),x+=6}l.addGroup(v,x,0),v+=x}(),!1===a&&(e>0&&g(!0),t>0&&g(!1)),this.setIndex(c),this.addAttribute("position",new Zn(u,3)),this.addAttribute("normal",new Zn(h,3)),this.addAttribute("uv",new Zn(d,2))}function Ro(e,t,n,i,r,a,o){Po.call(this,0,e,t,n,i,r,a,o),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function Do(e,t,n,i,r,a,o){Oo.call(this,0,e,t,n,i,r,a,o),this.type="ConeBufferGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function Io(e,t,n,i){Un.call(this),this.type="CircleGeometry",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new ko(e,t,n,i)),this.mergeVertices()}function ko(e,t,n,i){ni.call(this),this.type="CircleBufferGeometry",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:i},e=e||1,t=void 0!==t?Math.max(3,t):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var r,a,o=[],s=[],l=[],c=[],u=new Qt,h=new Jt;for(s.push(0,0,0),l.push(0,0,1),c.push(.5,.5),a=0,r=3;a<=t;a++,r+=3){var d=n+a/t*i;u.x=e*Math.cos(d),u.y=e*Math.sin(d),s.push(u.x,u.y,u.z),l.push(0,0,1),h.x=(s[r]/e+1)/2,h.y=(s[r+1]/e+1)/2,c.push(h.x,h.y)}for(r=1;r<=t;r++)o.push(r,r+1,0);this.setIndex(o),this.addAttribute("position",new Zn(s,3)),this.addAttribute("normal",new Zn(l,3)),this.addAttribute("uv",new Zn(c,2))}yo.prototype=Object.create(Un.prototype),yo.prototype.constructor=yo,bo.prototype=Object.create(mo.prototype),bo.prototype.constructor=bo,xo.prototype=Object.create(Un.prototype),xo.prototype.constructor=xo,wo.prototype=Object.create(ni.prototype),wo.prototype.constructor=wo,_o.prototype=Object.create(Un.prototype),_o.prototype.constructor=_o,Mo.prototype=Object.create(ni.prototype),Mo.prototype.constructor=Mo,Eo.prototype=Object.create(Un.prototype),Eo.prototype.constructor=Eo,To.prototype=Object.create(ni.prototype),To.prototype.constructor=To,So.prototype=Object.create(Un.prototype),So.prototype.constructor=So,So.prototype.toJSON=function(){var e=Un.prototype.toJSON.call(this);return Ao(this.parameters.shapes,e)},Co.prototype=Object.create(ni.prototype),Co.prototype.constructor=Co,Co.prototype.toJSON=function(){var e=ni.prototype.toJSON.call(this);return Ao(this.parameters.shapes,e)},Lo.prototype=Object.create(ni.prototype),Lo.prototype.constructor=Lo,Po.prototype=Object.create(Un.prototype),Po.prototype.constructor=Po,Oo.prototype=Object.create(ni.prototype),Oo.prototype.constructor=Oo,Ro.prototype=Object.create(Po.prototype),Ro.prototype.constructor=Ro,Do.prototype=Object.create(Oo.prototype),Do.prototype.constructor=Do,Io.prototype=Object.create(Un.prototype),Io.prototype.constructor=Io,ko.prototype=Object.create(ni.prototype),ko.prototype.constructor=ko;var No=Object.freeze({WireframeGeometry:Ma,ParametricGeometry:Ea,ParametricBufferGeometry:Ta,TetrahedronGeometry:Aa,TetrahedronBufferGeometry:La,OctahedronGeometry:Pa,OctahedronBufferGeometry:Oa,IcosahedronGeometry:Ra,IcosahedronBufferGeometry:Da,DodecahedronGeometry:Ia,DodecahedronBufferGeometry:ka,PolyhedronGeometry:Sa,PolyhedronBufferGeometry:Ca,TubeGeometry:Na,TubeBufferGeometry:za,TorusKnotGeometry:Fa,TorusKnotBufferGeometry:Ba,TorusGeometry:Ha,TorusBufferGeometry:ja,TextGeometry:yo,TextBufferGeometry:bo,SphereGeometry:xo,SphereBufferGeometry:wo,RingGeometry:_o,RingBufferGeometry:Mo,PlaneGeometry:ai,PlaneBufferGeometry:oi,LatheGeometry:Eo,LatheBufferGeometry:To,ShapeGeometry:So,ShapeBufferGeometry:Co,ExtrudeGeometry:fo,ExtrudeBufferGeometry:mo,EdgesGeometry:Lo,ConeGeometry:Ro,ConeBufferGeometry:Do,CylinderGeometry:Po,CylinderBufferGeometry:Oo,CircleGeometry:Io,CircleBufferGeometry:ko,BoxGeometry:ii,BoxBufferGeometry:ri});function zo(e){xi.call(this),this.type="ShadowMaterial",this.color=new En(0),this.transparent=!0,this.setValues(e)}function Fo(e){wi.call(this,e),this.type="RawShaderMaterial"}function Bo(e){xi.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new En(16777215),this.roughness=.5,this.metalness=.5,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new En(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Yt,this.normalScale=new Jt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Ho(e){Bo.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(e)}function jo(e){xi.call(this),this.type="MeshPhongMaterial",this.color=new En(16777215),this.specular=new En(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new En(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Yt,this.normalScale=new Jt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ue,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Uo(e){jo.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(e)}function Go(e){xi.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Yt,this.normalScale=new Jt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Vo(e){xi.call(this),this.type="MeshLambertMaterial",this.color=new En(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new En(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ue,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(e)}function Wo(e){if(xi.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new En(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Yt,this.normalScale=new Jt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.lights=!1,this.setValues(e),null===this.matcap){var t=document.createElement("canvas");t.width=1,t.height=1;var n=t.getContext("2d");n.fillStyle="#fff",n.fillRect(0,0,1,1),this.matcap=new THREE.CanvasTexture(t)}}function $o(e){pa.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}zo.prototype=Object.create(xi.prototype),zo.prototype.constructor=zo,zo.prototype.isShadowMaterial=!0,zo.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.color.copy(e.color),this},Fo.prototype=Object.create(wi.prototype),Fo.prototype.constructor=Fo,Fo.prototype.isRawShaderMaterial=!0,Bo.prototype=Object.create(xi.prototype),Bo.prototype.constructor=Bo,Bo.prototype.isMeshStandardMaterial=!0,Bo.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Ho.prototype=Object.create(Bo.prototype),Ho.prototype.constructor=Ho,Ho.prototype.isMeshPhysicalMaterial=!0,Ho.prototype.copy=function(e){return Bo.prototype.copy.call(this,e),this.defines={PHYSICAL:""},this.reflectivity=e.reflectivity,this.clearCoat=e.clearCoat,this.clearCoatRoughness=e.clearCoatRoughness,this},jo.prototype=Object.create(xi.prototype),jo.prototype.constructor=jo,jo.prototype.isMeshPhongMaterial=!0,jo.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Uo.prototype=Object.create(jo.prototype),Uo.prototype.constructor=Uo,Uo.prototype.isMeshToonMaterial=!0,Uo.prototype.copy=function(e){return jo.prototype.copy.call(this,e),this.gradientMap=e.gradientMap,this},Go.prototype=Object.create(xi.prototype),Go.prototype.constructor=Go,Go.prototype.isMeshNormalMaterial=!0,Go.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Vo.prototype=Object.create(xi.prototype),Vo.prototype.constructor=Vo,Vo.prototype.isMeshLambertMaterial=!0,Vo.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},Wo.prototype=Object.create(xi.prototype),Wo.prototype.constructor=Wo,Wo.prototype.isMeshMatcapMaterial=!0,Wo.prototype.copy=function(e){return xi.prototype.copy.call(this,e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.skinning=e.skinning,this.morphTargets=e.morphTargets,this.morphNormals=e.morphNormals,this},$o.prototype=Object.create(pa.prototype),$o.prototype.constructor=$o,$o.prototype.isLineDashedMaterial=!0,$o.prototype.copy=function(e){return pa.prototype.copy.call(this,e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this};var Yo=Object.freeze({ShadowMaterial:zo,SpriteMaterial:sa,RawShaderMaterial:Fo,ShaderMaterial:wi,PointsMaterial:ga,MeshPhysicalMaterial:Ho,MeshStandardMaterial:Bo,MeshPhongMaterial:jo,MeshToonMaterial:Uo,MeshNormalMaterial:Go,MeshLambertMaterial:Vo,MeshDepthMaterial:Nr,MeshDistanceMaterial:zr,MeshBasicMaterial:Ei,MeshMatcapMaterial:Wo,LineDashedMaterial:$o,LineBasicMaterial:pa,Material:xi}),qo={arraySlice:function(e,t,n){return qo.isTypedArray(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){for(var t=e.length,n=new Array(t),i=0;i!==t;++i)n[i]=i;return n.sort(function(t,n){return e[t]-e[n]}),n},sortedArray:function(e,t,n){for(var i=e.length,r=new e.constructor(i),a=0,o=0;o!==i;++a)for(var s=n[a]*t,l=0;l!==t;++l)r[o++]=e[s+l];return r},flattenJSON:function(e,t,n,i){for(var r=1,a=e[0];void 0!==a&&void 0===a[i];)a=e[r++];if(void 0!==a){var o=a[i];if(void 0!==o)if(Array.isArray(o))do{void 0!==(o=a[i])&&(t.push(a.time),n.push.apply(n,o)),a=e[r++]}while(void 0!==a);else if(void 0!==o.toArray)do{void 0!==(o=a[i])&&(t.push(a.time),o.toArray(n,n.length)),a=e[r++]}while(void 0!==a);else do{void 0!==(o=a[i])&&(t.push(a.time),n.push(o)),a=e[r++]}while(void 0!==a)}}};function Xo(e,t,n,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new t.constructor(n),this.sampleValues=t,this.valueSize=n}function Jo(e,t,n,i){Xo.call(this,e,t,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Zo(e,t,n,i){Xo.call(this,e,t,n,i)}function Ko(e,t,n,i){Xo.call(this,e,t,n,i)}function Qo(e,t,n,i){if(void 0===e)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=qo.convertArray(t,this.TimeBufferType),this.values=qo.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}function es(e,t,n){Qo.call(this,e,t,n)}function ts(e,t,n,i){Qo.call(this,e,t,n,i)}function ns(e,t,n,i){Qo.call(this,e,t,n,i)}function is(e,t,n,i){Xo.call(this,e,t,n,i)}function rs(e,t,n,i){Qo.call(this,e,t,n,i)}function as(e,t,n,i){Qo.call(this,e,t,n,i)}function os(e,t,n,i){Qo.call(this,e,t,n,i)}function ss(e,t,n){this.name=e,this.tracks=n,this.duration=void 0!==t?t:-1,this.uuid=Xt.generateUUID(),this.duration<0&&this.resetDuration()}function ls(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");var t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return ns;case"vector":case"vector2":case"vector3":case"vector4":return os;case"color":return ts;case"quaternion":return rs;case"bool":case"boolean":return es;case"string":return as}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){var n=[],i=[];qo.flattenJSON(e.keys,n,i,"value"),e.times=n,e.values=i}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}Object.assign(Xo.prototype,{evaluate:function(e){var t=this.parameterPositions,n=this._cachedIndex,i=t[n],r=t[n-1];e:{t:{var a;n:{i:if(!(e<i)){for(var o=n+2;;){if(void 0===i){if(e<r)break i;return n=t.length,this._cachedIndex=n,this.afterEnd_(n-1,e,r)}if(n===o)break;if(r=i,e<(i=t[++n]))break t}a=t.length;break n}if(e>=r)break e;var s=t[1];e<s&&(n=2,r=s);for(o=n-2;;){if(void 0===r)return this._cachedIndex=0,this.beforeStart_(0,e,i);if(n===o)break;if(i=r,e>=(r=t[--n-1]))break t}a=n,n=0}for(;n<a;){var l=n+a>>>1;e<t[l]?a=l:n=l+1}if(i=t[n],void 0===(r=t[n-1]))return this._cachedIndex=0,this.beforeStart_(0,e,i);if(void 0===i)return n=t.length,this._cachedIndex=n,this.afterEnd_(n-1,r,e)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,e,i)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(e){for(var t=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=e*i,a=0;a!==i;++a)t[a]=n[r+a];return t},interpolate_:function(){throw new Error("call to abstract method")},intervalChanged_:function(){}}),
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(Xo.prototype,{beforeStart_:Xo.prototype.copySampleValue_,afterEnd_:Xo.prototype.copySampleValue_}),Jo.prototype=Object.assign(Object.create(Xo.prototype),{constructor:Jo,DefaultSettings_:{endingStart:Ot,endingEnd:Ot},intervalChanged_:function(e,t,n){var i=this.parameterPositions,r=e-2,a=e+1,o=i[r],s=i[a];if(void 0===o)switch(this.getSettings_().endingStart){case Rt:r=e,o=2*t-n;break;case Dt:o=t+i[r=i.length-2]-i[r+1];break;default:r=e,o=n}if(void 0===s)switch(this.getSettings_().endingEnd){case Rt:a=e,s=2*n-t;break;case Dt:a=1,s=n+i[1]-i[0];break;default:a=e-1,s=t}var l=.5*(n-t),c=this.valueSize;this._weightPrev=l/(t-o),this._weightNext=l/(s-n),this._offsetPrev=r*c,this._offsetNext=a*c},interpolate_:function(e,t,n,i){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=s-o,c=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,d=this._weightNext,p=(n-t)/(i-t),f=p*p,m=f*p,v=-h*m+2*h*f-h*p,g=(1+h)*m+(-1.5-2*h)*f+(-.5+h)*p+1,y=(-1-d)*m+(1.5+d)*f+.5*p,b=d*m-d*f,x=0;x!==o;++x)r[x]=v*a[c+x]+g*a[l+x]+y*a[s+x]+b*a[u+x];return r}}),Zo.prototype=Object.assign(Object.create(Xo.prototype),{constructor:Zo,interpolate_:function(e,t,n,i){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=s-o,c=(n-t)/(i-t),u=1-c,h=0;h!==o;++h)r[h]=a[l+h]*u+a[s+h]*c;return r}}),Ko.prototype=Object.assign(Object.create(Xo.prototype),{constructor:Ko,interpolate_:function(e){return this.copySampleValue_(e-1)}}),Object.assign(Qo,{toJSON:function(e){var t,n=e.constructor;if(void 0!==n.toJSON)t=n.toJSON(e);else{t={name:e.name,times:qo.convertArray(e.times,Array),values:qo.convertArray(e.values,Array)};var i=e.getInterpolation();i!==e.DefaultInterpolation&&(t.interpolation=i)}return t.type=e.ValueTypeName,t}}),Object.assign(Qo.prototype,{constructor:Qo,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:Lt,InterpolantFactoryMethodDiscrete:function(e){return new Ko(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodLinear:function(e){return new Zo(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodSmooth:function(e){return new Jo(this.times,this.values,this.getValueSize(),e)},setInterpolation:function(e){var t;switch(e){case At:t=this.InterpolantFactoryMethodDiscrete;break;case Lt:t=this.InterpolantFactoryMethodLinear;break;case Pt:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){var n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(n);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",n),this}return this.createInterpolant=t,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return At;case this.InterpolantFactoryMethodLinear:return Lt;case this.InterpolantFactoryMethodSmooth:return Pt}},getValueSize:function(){return this.values.length/this.times.length},shift:function(e){if(0!==e)for(var t=this.times,n=0,i=t.length;n!==i;++n)t[n]+=e;return this},scale:function(e){if(1!==e)for(var t=this.times,n=0,i=t.length;n!==i;++n)t[n]*=e;return this},trim:function(e,t){for(var n=this.times,i=n.length,r=0,a=i-1;r!==i&&n[r]<e;)++r;for(;-1!==a&&n[a]>t;)--a;if(++a,0!==r||a!==i){r>=a&&(r=(a=Math.max(a,1))-1);var o=this.getValueSize();this.times=qo.arraySlice(n,r,a),this.values=qo.arraySlice(this.values,r*o,a*o)}return this},validate:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);var n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);for(var a=null,o=0;o!==r;o++){var s=n[o];if("number"==typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,s),e=!1;break}if(null!==a&&a>s){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,s,a),e=!1;break}a=s}if(void 0!==i&&qo.isTypedArray(i)){o=0;for(var l=i.length;o!==l;++o){var c=i[o];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,o,c),e=!1;break}}}return e},optimize:function(){for(var e=this.times,t=this.values,n=this.getValueSize(),i=this.getInterpolation()===Pt,r=1,a=e.length-1,o=1;o<a;++o){var s=!1,l=e[o];if(l!==e[o+1]&&(1!==o||l!==l[0]))if(i)s=!0;else for(var c=o*n,u=c-n,h=c+n,d=0;d!==n;++d){var p=t[c+d];if(p!==t[u+d]||p!==t[h+d]){s=!0;break}}if(s){if(o!==r){e[r]=e[o];var f=o*n,m=r*n;for(d=0;d!==n;++d)t[m+d]=t[f+d]}++r}}if(a>0){e[r]=e[a];for(f=a*n,m=r*n,d=0;d!==n;++d)t[m+d]=t[f+d];++r}return r!==e.length&&(this.times=qo.arraySlice(e,0,r),this.values=qo.arraySlice(t,0,r*n)),this}}),es.prototype=Object.assign(Object.create(Qo.prototype),{constructor:es,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:At,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),ts.prototype=Object.assign(Object.create(Qo.prototype),{constructor:ts,ValueTypeName:"color"}),ns.prototype=Object.assign(Object.create(Qo.prototype),{constructor:ns,ValueTypeName:"number"}),is.prototype=Object.assign(Object.create(Xo.prototype),{constructor:is,interpolate_:function(e,t,n,i){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=(n-t)/(i-t),c=s+o;s!==c;s+=4)Kt.slerpFlat(r,0,a,s-o,a,s,l);return r}}),rs.prototype=Object.assign(Object.create(Qo.prototype),{constructor:rs,ValueTypeName:"quaternion",DefaultInterpolation:Lt,InterpolantFactoryMethodLinear:function(e){return new is(this.times,this.values,this.getValueSize(),e)},InterpolantFactoryMethodSmooth:void 0}),as.prototype=Object.assign(Object.create(Qo.prototype),{constructor:as,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:At,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),os.prototype=Object.assign(Object.create(Qo.prototype),{constructor:os,ValueTypeName:"vector"}),Object.assign(ss,{parse:function(e){for(var t=[],n=e.tracks,i=1/(e.fps||1),r=0,a=n.length;r!==a;++r)t.push(ls(n[r]).scale(i));return new ss(e.name,e.duration,t)},toJSON:function(e){for(var t=[],n=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid},r=0,a=n.length;r!==a;++r)t.push(Qo.toJSON(n[r]));return i},CreateFromMorphTargetSequence:function(e,t,n,i){for(var r=t.length,a=[],o=0;o<r;o++){var s=[],l=[];s.push((o+r-1)%r,o,(o+1)%r),l.push(0,1,0);var c=qo.getKeyframeOrder(s);s=qo.sortedArray(s,1,c),l=qo.sortedArray(l,1,c),i||0!==s[0]||(s.push(r),l.push(l[0])),a.push(new ns(".morphTargetInfluences["+t[o].name+"]",s,l).scale(1/n))}return new ss(e,-1,a)},findByName:function(e,t){var n=e;if(!Array.isArray(e)){var i=e;n=i.geometry&&i.geometry.animations||i.animations}for(var r=0;r<n.length;r++)if(n[r].name===t)return n[r];return null},CreateClipsFromMorphTargetSequences:function(e,t,n){for(var i={},r=/^([\w-]*?)([\d]+)$/,a=0,o=e.length;a<o;a++){var s=e[a],l=s.name.match(r);if(l&&l.length>1){var c=i[h=l[1]];c||(i[h]=c=[]),c.push(s)}}var u=[];for(var h in i)u.push(ss.CreateFromMorphTargetSequence(h,i[h],t,n));return u},parseAnimation:function(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var n=function(e,t,n,i,r){if(0!==n.length){var a=[],o=[];qo.flattenJSON(n,a,o,i),0!==a.length&&r.push(new e(t,a,o))}},i=[],r=e.name||"default",a=e.length||-1,o=e.fps||30,s=e.hierarchy||[],l=0;l<s.length;l++){var c=s[l].keys;if(c&&0!==c.length)if(c[0].morphTargets){for(var u={},h=0;h<c.length;h++)if(c[h].morphTargets)for(var d=0;d<c[h].morphTargets.length;d++)u[c[h].morphTargets[d]]=-1;for(var p in u){var f=[],m=[];for(d=0;d!==c[h].morphTargets.length;++d){var v=c[h];f.push(v.time),m.push(v.morphTarget===p?1:0)}i.push(new ns(".morphTargetInfluence["+p+"]",f,m))}a=u.length*(o||1)}else{var g=".bones["+t[l].name+"]";n(os,g+".position",c,"pos",i),n(rs,g+".quaternion",c,"rot",i),n(os,g+".scale",c,"scl",i)}}return 0===i.length?null:new ss(r,a,i)}}),Object.assign(ss.prototype,{resetDuration:function(){for(var e=0,t=0,n=this.tracks.length;t!==n;++t){var i=this.tracks[t];e=Math.max(e,i.times[i.times.length-1])}return this.duration=e,this},trim:function(){for(var e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this},validate:function(){for(var e=!0,t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e},optimize:function(){for(var e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}});var cs={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};function us(e,t,n){var i=this,r=!1,a=0,o=0,s=void 0;this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){o++,!1===r&&void 0!==i.onStart&&i.onStart(e,a,o),r=!0},this.itemEnd=function(e){a++,void 0!==i.onProgress&&i.onProgress(e,a,o),a===o&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(e){void 0!==i.onError&&i.onError(e)},this.resolveURL=function(e){return s?s(e):e},this.setURLModifier=function(e){return s=e,this}}var hs=new us,ds={};function ps(e){this.manager=void 0!==e?e:hs}function fs(e){this.manager=void 0!==e?e:hs}function ms(e){this.manager=void 0!==e?e:hs,this._parser=null}function vs(e){this.manager=void 0!==e?e:hs,this._parser=null}function gs(e){this.manager=void 0!==e?e:hs}function ys(e){this.manager=void 0!==e?e:hs}function bs(e){this.manager=void 0!==e?e:hs}function xs(){this.type="Curve",this.arcLengthDivisions=200}function ws(e,t,n,i,r,a,o,s){xs.call(this),this.type="EllipseCurve",this.aX=e||0,this.aY=t||0,this.xRadius=n||1,this.yRadius=i||1,this.aStartAngle=r||0,this.aEndAngle=a||2*Math.PI,this.aClockwise=o||!1,this.aRotation=s||0}function _s(e,t,n,i,r,a){ws.call(this,e,t,n,n,i,r,a),this.type="ArcCurve"}function Ms(){var e=0,t=0,n=0,i=0;function r(r,a,o,s){e=r,t=o,n=-3*r+3*a-2*o-s,i=2*r-2*a+o+s}return{initCatmullRom:function(e,t,n,i,a){r(t,n,a*(n-e),a*(i-t))},initNonuniformCatmullRom:function(e,t,n,i,a,o,s){var l=(t-e)/a-(n-e)/(a+o)+(n-t)/o,c=(n-t)/o-(i-t)/(o+s)+(i-n)/s;r(t,n,l*=o,c*=o)},calc:function(r){var a=r*r;return e+t*r+n*a+i*(a*r)}}}Object.assign(ps.prototype,{load:function(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var r=this,a=cs.get(e);if(void 0!==a)return r.manager.itemStart(e),setTimeout(function(){t&&t(a),r.manager.itemEnd(e)},0),a;if(void 0===ds[e]){var o=e.match(/^data:(.*?)(;base64)?,(.*)$/);if(o){var s=o[1],l=!!o[2],c=o[3];c=decodeURIComponent(c),l&&(c=atob(c));try{var u,h=(this.responseType||"").toLowerCase();switch(h){case"arraybuffer":case"blob":for(var d=new Uint8Array(c.length),p=0;p<c.length;p++)d[p]=c.charCodeAt(p);u="blob"===h?new Blob([d.buffer],{type:s}):d.buffer;break;case"document":var f=new DOMParser;u=f.parseFromString(c,s);break;case"json":u=JSON.parse(c);break;default:u=c}setTimeout(function(){t&&t(u),r.manager.itemEnd(e)},0)}catch(t){setTimeout(function(){i&&i(t),r.manager.itemError(e),r.manager.itemEnd(e)},0)}}else{ds[e]=[],ds[e].push({onLoad:t,onProgress:n,onError:i});var m=new XMLHttpRequest;for(var v in m.open("GET",e,!0),m.addEventListener("load",function(t){var n=this.response;cs.add(e,n);var i=ds[e];if(delete ds[e],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received.");for(var a=0,o=i.length;a<o;a++){(s=i[a]).onLoad&&s.onLoad(n)}r.manager.itemEnd(e)}else{for(a=0,o=i.length;a<o;a++){var s;(s=i[a]).onError&&s.onError(t)}r.manager.itemError(e),r.manager.itemEnd(e)}},!1),m.addEventListener("progress",function(t){for(var n=ds[e],i=0,r=n.length;i<r;i++){var a=n[i];a.onProgress&&a.onProgress(t)}},!1),m.addEventListener("error",function(t){var n=ds[e];delete ds[e];for(var i=0,a=n.length;i<a;i++){var o=n[i];o.onError&&o.onError(t)}r.manager.itemError(e),r.manager.itemEnd(e)},!1),m.addEventListener("abort",function(t){var n=ds[e];delete ds[e];for(var i=0,a=n.length;i<a;i++){var o=n[i];o.onError&&o.onError(t)}r.manager.itemError(e),r.manager.itemEnd(e)},!1),void 0!==this.responseType&&(m.responseType=this.responseType),void 0!==this.withCredentials&&(m.withCredentials=this.withCredentials),m.overrideMimeType&&m.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain"),this.requestHeader)m.setRequestHeader(v,this.requestHeader[v]);m.send(null)}return r.manager.itemStart(e),m}ds[e].push({onLoad:t,onProgress:n,onError:i})},setPath:function(e){return this.path=e,this},setResponseType:function(e){return this.responseType=e,this},setWithCredentials:function(e){return this.withCredentials=e,this},setMimeType:function(e){return this.mimeType=e,this},setRequestHeader:function(e){return this.requestHeader=e,this}}),Object.assign(fs.prototype,{load:function(e,t,n,i){var r=this,a=new ps(r.manager);a.setPath(r.path),a.load(e,function(e){t(r.parse(JSON.parse(e)))},n,i)},parse:function(e,t){for(var n=[],i=0;i<e.length;i++){var r=ss.parse(e[i]);n.push(r)}t(n)},setPath:function(e){return this.path=e,this}}),Object.assign(ms.prototype,{load:function(e,t,n,i){var r=this,a=[],o=new xa;o.image=a;var s=new ps(this.manager);function l(l){s.load(e[l],function(e){var n=r._parser(e,!0);a[l]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},6===(c+=1)&&(1===n.mipmapCount&&(o.minFilter=Re),o.format=n.format,o.needsUpdate=!0,t&&t(o))},n,i)}if(s.setPath(this.path),s.setResponseType("arraybuffer"),Array.isArray(e))for(var c=0,u=0,h=e.length;u<h;++u)l(u);else s.load(e,function(e){var n=r._parser(e,!0);if(n.isCubemap)for(var i=n.mipmaps.length/n.mipmapCount,s=0;s<i;s++){a[s]={mipmaps:[]};for(var l=0;l<n.mipmapCount;l++)a[s].mipmaps.push(n.mipmaps[s*n.mipmapCount+l]),a[s].format=n.format,a[s].width=n.width,a[s].height=n.height}else o.image.width=n.width,o.image.height=n.height,o.mipmaps=n.mipmaps;1===n.mipmapCount&&(o.minFilter=Re),o.format=n.format,o.needsUpdate=!0,t&&t(o)},n,i);return o},setPath:function(e){return this.path=e,this}}),Object.assign(vs.prototype,{load:function(e,t,n,i){var r=this,a=new pn,o=new ps(this.manager);return o.setResponseType("arraybuffer"),o.setPath(this.path),o.load(e,function(e){var n=r._parser(e);n&&(void 0!==n.image?a.image=n.image:void 0!==n.data&&(a.image.width=n.width,a.image.height=n.height,a.image.data=n.data),a.wrapS=void 0!==n.wrapS?n.wrapS:Ce,a.wrapT=void 0!==n.wrapT?n.wrapT:Ce,a.magFilter=void 0!==n.magFilter?n.magFilter:Re,a.minFilter=void 0!==n.minFilter?n.minFilter:Ie,a.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.format&&(a.format=n.format),void 0!==n.type&&(a.type=n.type),void 0!==n.mipmaps&&(a.mipmaps=n.mipmaps),1===n.mipmapCount&&(a.minFilter=Re),a.needsUpdate=!0,t&&t(a,n))},n,i),a},setPath:function(e){return this.path=e,this}}),Object.assign(gs.prototype,{crossOrigin:"anonymous",load:function(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var r=this,a=cs.get(e);if(void 0!==a)return r.manager.itemStart(e),setTimeout(function(){t&&t(a),r.manager.itemEnd(e)},0),a;var o=document.createElementNS("http://www.w3.org/1999/xhtml","img");function s(){o.removeEventListener("load",s,!1),o.removeEventListener("error",l,!1),cs.add(e,this),t&&t(this),r.manager.itemEnd(e)}function l(t){o.removeEventListener("load",s,!1),o.removeEventListener("error",l,!1),i&&i(t),r.manager.itemError(e),r.manager.itemEnd(e)}return o.addEventListener("load",s,!1),o.addEventListener("error",l,!1),"data:"!==e.substr(0,5)&&void 0!==this.crossOrigin&&(o.crossOrigin=this.crossOrigin),r.manager.itemStart(e),o.src=e,o},setCrossOrigin:function(e){return this.crossOrigin=e,this},setPath:function(e){return this.path=e,this}}),Object.assign(ys.prototype,{crossOrigin:"anonymous",load:function(e,t,n,i){var r=new Ci,a=new gs(this.manager);a.setCrossOrigin(this.crossOrigin),a.setPath(this.path);var o=0;function s(n){a.load(e[n],function(e){r.images[n]=e,6===++o&&(r.needsUpdate=!0,t&&t(r))},void 0,i)}for(var l=0;l<e.length;++l)s(l);return r},setCrossOrigin:function(e){return this.crossOrigin=e,this},setPath:function(e){return this.path=e,this}}),Object.assign(bs.prototype,{crossOrigin:"anonymous",load:function(e,t,n,i){var r=new cn,a=new gs(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,function(n){r.image=n;var i=e.search(/\.jpe?g$/i)>0||0===e.search(/^data\:image\/jpeg/);r.format=i?qe:Xe,r.needsUpdate=!0,void 0!==t&&t(r)},n,i),r},setCrossOrigin:function(e){return this.crossOrigin=e,this},setPath:function(e){return this.path=e,this}}),Object.assign(xs.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(e,t){var n=this.getUtoTmapping(e);return this.getPoint(n,t)},getPoints:function(e){void 0===e&&(e=5);for(var t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return t},getSpacedPoints:function(e){void 0===e&&(e=5);for(var t=[],n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t},getLength:function(){var e=this.getLengths();return e[e.length-1]},getLengths:function(e){if(void 0===e&&(e=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,n,i=[],r=this.getPoint(0),a=0;for(i.push(0),n=1;n<=e;n++)a+=(t=this.getPoint(n/e)).distanceTo(r),i.push(a),r=t;return this.cacheArcLengths=i,i},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(e,t){var n,i=this.getLengths(),r=0,a=i.length;n=t||e*i[a-1];for(var o,s=0,l=a-1;s<=l;)if((o=i[r=Math.floor(s+(l-s)/2)]-n)<0)s=r+1;else{if(!(o>0)){l=r;break}l=r-1}if(i[r=l]===n)return r/(a-1);var c=i[r];return(r+(n-c)/(i[r+1]-c))/(a-1)},getTangent:function(e){var t=e-1e-4,n=e+1e-4;t<0&&(t=0),n>1&&(n=1);var i=this.getPoint(t);return this.getPoint(n).clone().sub(i).normalize()},getTangentAt:function(e){var t=this.getUtoTmapping(e);return this.getTangent(t)},computeFrenetFrames:function(e,t){var n,i,r,a=new Qt,o=[],s=[],l=[],c=new Qt,u=new Zt;for(n=0;n<=e;n++)i=n/e,o[n]=this.getTangentAt(i),o[n].normalize();s[0]=new Qt,l[0]=new Qt;var h=Number.MAX_VALUE,d=Math.abs(o[0].x),p=Math.abs(o[0].y),f=Math.abs(o[0].z);for(d<=h&&(h=d,a.set(1,0,0)),p<=h&&(h=p,a.set(0,1,0)),f<=h&&a.set(0,0,1),c.crossVectors(o[0],a).normalize(),s[0].crossVectors(o[0],c),l[0].crossVectors(o[0],s[0]),n=1;n<=e;n++)s[n]=s[n-1].clone(),l[n]=l[n-1].clone(),c.crossVectors(o[n-1],o[n]),c.length()>Number.EPSILON&&(c.normalize(),r=Math.acos(Xt.clamp(o[n-1].dot(o[n]),-1,1)),s[n].applyMatrix4(u.makeRotationAxis(c,r))),l[n].crossVectors(o[n],s[n]);if(!0===t)for(r=Math.acos(Xt.clamp(s[0].dot(s[e]),-1,1)),r/=e,o[0].dot(c.crossVectors(s[0],s[e]))>0&&(r=-r),n=1;n<=e;n++)s[n].applyMatrix4(u.makeRotationAxis(o[n],r*n)),l[n].crossVectors(o[n],s[n]);return{tangents:o,normals:s,binormals:l}},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this},toJSON:function(){var e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e},fromJSON:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}),ws.prototype=Object.create(xs.prototype),ws.prototype.constructor=ws,ws.prototype.isEllipseCurve=!0,ws.prototype.getPoint=function(e,t){for(var n=t||new Jt,i=2*Math.PI,r=this.aEndAngle-this.aStartAngle,a=Math.abs(r)<Number.EPSILON;r<0;)r+=i;for(;r>i;)r-=i;r<Number.EPSILON&&(r=a?0:i),!0!==this.aClockwise||a||(r===i?r=-i:r-=i);var o=this.aStartAngle+e*r,s=this.aX+this.xRadius*Math.cos(o),l=this.aY+this.yRadius*Math.sin(o);if(0!==this.aRotation){var c=Math.cos(this.aRotation),u=Math.sin(this.aRotation),h=s-this.aX,d=l-this.aY;s=h*c-d*u+this.aX,l=h*u+d*c+this.aY}return n.set(s,l)},ws.prototype.copy=function(e){return xs.prototype.copy.call(this,e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this},ws.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e},ws.prototype.fromJSON=function(e){return xs.prototype.fromJSON.call(this,e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this},_s.prototype=Object.create(ws.prototype),_s.prototype.constructor=_s,_s.prototype.isArcCurve=!0;var Es=new Qt,Ts=new Ms,Ss=new Ms,Cs=new Ms;function As(e,t,n,i){xs.call(this),this.type="CatmullRomCurve3",this.points=e||[],this.closed=t||!1,this.curveType=n||"centripetal",this.tension=i||.5}function Ls(e,t,n,i,r){var a=.5*(i-t),o=.5*(r-n),s=e*e;return(2*n-2*i+a+o)*(e*s)+(-3*n+3*i-2*a-o)*s+a*e+n}function Ps(e,t,n,i){return function(e,t){var n=1-e;return n*n*t}(e,t)+function(e,t){return 2*(1-e)*e*t}(e,n)+function(e,t){return e*e*t}(e,i)}function Os(e,t,n,i,r){return function(e,t){var n=1-e;return n*n*n*t}(e,t)+function(e,t){var n=1-e;return 3*n*n*e*t}(e,n)+function(e,t){return 3*(1-e)*e*e*t}(e,i)+function(e,t){return e*e*e*t}(e,r)}function Rs(e,t,n,i){xs.call(this),this.type="CubicBezierCurve",this.v0=e||new Jt,this.v1=t||new Jt,this.v2=n||new Jt,this.v3=i||new Jt}function Ds(e,t,n,i){xs.call(this),this.type="CubicBezierCurve3",this.v0=e||new Qt,this.v1=t||new Qt,this.v2=n||new Qt,this.v3=i||new Qt}function Is(e,t){xs.call(this),this.type="LineCurve",this.v1=e||new Jt,this.v2=t||new Jt}function ks(e,t){xs.call(this),this.type="LineCurve3",this.v1=e||new Qt,this.v2=t||new Qt}function Ns(e,t,n){xs.call(this),this.type="QuadraticBezierCurve",this.v0=e||new Jt,this.v1=t||new Jt,this.v2=n||new Jt}function zs(e,t,n){xs.call(this),this.type="QuadraticBezierCurve3",this.v0=e||new Qt,this.v1=t||new Qt,this.v2=n||new Qt}function Fs(e){xs.call(this),this.type="SplineCurve",this.points=e||[]}As.prototype=Object.create(xs.prototype),As.prototype.constructor=As,As.prototype.isCatmullRomCurve3=!0,As.prototype.getPoint=function(e,t){var n,i,r,a,o=t||new Qt,s=this.points,l=s.length,c=(l-(this.closed?0:1))*e,u=Math.floor(c),h=c-u;if(this.closed?u+=u>0?0:(Math.floor(Math.abs(u)/l)+1)*l:0===h&&u===l-1&&(u=l-2,h=1),this.closed||u>0?n=s[(u-1)%l]:(Es.subVectors(s[0],s[1]).add(s[0]),n=Es),i=s[u%l],r=s[(u+1)%l],this.closed||u+2<l?a=s[(u+2)%l]:(Es.subVectors(s[l-1],s[l-2]).add(s[l-1]),a=Es),"centripetal"===this.curveType||"chordal"===this.curveType){var d="chordal"===this.curveType?.5:.25,p=Math.pow(n.distanceToSquared(i),d),f=Math.pow(i.distanceToSquared(r),d),m=Math.pow(r.distanceToSquared(a),d);f<1e-4&&(f=1),p<1e-4&&(p=f),m<1e-4&&(m=f),Ts.initNonuniformCatmullRom(n.x,i.x,r.x,a.x,p,f,m),Ss.initNonuniformCatmullRom(n.y,i.y,r.y,a.y,p,f,m),Cs.initNonuniformCatmullRom(n.z,i.z,r.z,a.z,p,f,m)}else"catmullrom"===this.curveType&&(Ts.initCatmullRom(n.x,i.x,r.x,a.x,this.tension),Ss.initCatmullRom(n.y,i.y,r.y,a.y,this.tension),Cs.initCatmullRom(n.z,i.z,r.z,a.z,this.tension));return o.set(Ts.calc(h),Ss.calc(h),Cs.calc(h)),o},As.prototype.copy=function(e){xs.prototype.copy.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var i=e.points[t];this.points.push(i.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this},As.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);e.points=[];for(var t=0,n=this.points.length;t<n;t++){var i=this.points[t];e.points.push(i.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e},As.prototype.fromJSON=function(e){xs.prototype.fromJSON.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var i=e.points[t];this.points.push((new Qt).fromArray(i))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this},Rs.prototype=Object.create(xs.prototype),Rs.prototype.constructor=Rs,Rs.prototype.isCubicBezierCurve=!0,Rs.prototype.getPoint=function(e,t){var n=t||new Jt,i=this.v0,r=this.v1,a=this.v2,o=this.v3;return n.set(Os(e,i.x,r.x,a.x,o.x),Os(e,i.y,r.y,a.y,o.y)),n},Rs.prototype.copy=function(e){return xs.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this},Rs.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e},Rs.prototype.fromJSON=function(e){return xs.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this},Ds.prototype=Object.create(xs.prototype),Ds.prototype.constructor=Ds,Ds.prototype.isCubicBezierCurve3=!0,Ds.prototype.getPoint=function(e,t){var n=t||new Qt,i=this.v0,r=this.v1,a=this.v2,o=this.v3;return n.set(Os(e,i.x,r.x,a.x,o.x),Os(e,i.y,r.y,a.y,o.y),Os(e,i.z,r.z,a.z,o.z)),n},Ds.prototype.copy=function(e){return xs.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this},Ds.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e},Ds.prototype.fromJSON=function(e){return xs.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this},Is.prototype=Object.create(xs.prototype),Is.prototype.constructor=Is,Is.prototype.isLineCurve=!0,Is.prototype.getPoint=function(e,t){var n=t||new Jt;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n},Is.prototype.getPointAt=function(e,t){return this.getPoint(e,t)},Is.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},Is.prototype.copy=function(e){return xs.prototype.copy.call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this},Is.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},Is.prototype.fromJSON=function(e){return xs.prototype.fromJSON.call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},ks.prototype=Object.create(xs.prototype),ks.prototype.constructor=ks,ks.prototype.isLineCurve3=!0,ks.prototype.getPoint=function(e,t){var n=t||new Qt;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n},ks.prototype.getPointAt=function(e,t){return this.getPoint(e,t)},ks.prototype.copy=function(e){return xs.prototype.copy.call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this},ks.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},ks.prototype.fromJSON=function(e){return xs.prototype.fromJSON.call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},Ns.prototype=Object.create(xs.prototype),Ns.prototype.constructor=Ns,Ns.prototype.isQuadraticBezierCurve=!0,Ns.prototype.getPoint=function(e,t){var n=t||new Jt,i=this.v0,r=this.v1,a=this.v2;return n.set(Ps(e,i.x,r.x,a.x),Ps(e,i.y,r.y,a.y)),n},Ns.prototype.copy=function(e){return xs.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this},Ns.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},Ns.prototype.fromJSON=function(e){return xs.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},zs.prototype=Object.create(xs.prototype),zs.prototype.constructor=zs,zs.prototype.isQuadraticBezierCurve3=!0,zs.prototype.getPoint=function(e,t){var n=t||new Qt,i=this.v0,r=this.v1,a=this.v2;return n.set(Ps(e,i.x,r.x,a.x),Ps(e,i.y,r.y,a.y),Ps(e,i.z,r.z,a.z)),n},zs.prototype.copy=function(e){return xs.prototype.copy.call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this},zs.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e},zs.prototype.fromJSON=function(e){return xs.prototype.fromJSON.call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this},Fs.prototype=Object.create(xs.prototype),Fs.prototype.constructor=Fs,Fs.prototype.isSplineCurve=!0,Fs.prototype.getPoint=function(e,t){var n=t||new Jt,i=this.points,r=(i.length-1)*e,a=Math.floor(r),o=r-a,s=i[0===a?a:a-1],l=i[a],c=i[a>i.length-2?i.length-1:a+1],u=i[a>i.length-3?i.length-1:a+2];return n.set(Ls(o,s.x,l.x,c.x,u.x),Ls(o,s.y,l.y,c.y,u.y)),n},Fs.prototype.copy=function(e){xs.prototype.copy.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var i=e.points[t];this.points.push(i.clone())}return this},Fs.prototype.toJSON=function(){var e=xs.prototype.toJSON.call(this);e.points=[];for(var t=0,n=this.points.length;t<n;t++){var i=this.points[t];e.points.push(i.toArray())}return e},Fs.prototype.fromJSON=function(e){xs.prototype.fromJSON.call(this,e),this.points=[];for(var t=0,n=e.points.length;t<n;t++){var i=e.points[t];this.points.push((new Jt).fromArray(i))}return this};var Bs=Object.freeze({ArcCurve:_s,CatmullRomCurve3:As,CubicBezierCurve:Rs,CubicBezierCurve3:Ds,EllipseCurve:ws,LineCurve:Is,LineCurve3:ks,QuadraticBezierCurve:Ns,QuadraticBezierCurve3:zs,SplineCurve:Fs});function Hs(){xs.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function js(e){Hs.call(this),this.type="Path",this.currentPoint=new Jt,e&&this.setFromPoints(e)}function Us(e){js.call(this,e),this.uuid=Xt.generateUUID(),this.type="Shape",this.holes=[]}function Gs(e,t){Fn.call(this),this.type="Light",this.color=new En(e),this.intensity=void 0!==t?t:1,this.receiveShadow=void 0}function Vs(e,t,n){Gs.call(this,e,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(Fn.DefaultUp),this.updateMatrix(),this.groundColor=new En(t)}function Ws(e){this.camera=e,this.bias=0,this.radius=1,this.mapSize=new Jt(512,512),this.map=null,this.matrix=new Zt}function $s(){Ws.call(this,new Gr(50,1,.5,500))}function Ys(e,t,n,i,r,a){Gs.call(this,e,t),this.type="SpotLight",this.position.copy(Fn.DefaultUp),this.updateMatrix(),this.target=new Fn,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(e){this.intensity=e/Math.PI}}),this.distance=void 0!==n?n:0,this.angle=void 0!==i?i:Math.PI/3,this.penumbra=void 0!==r?r:0,this.decay=void 0!==a?a:1,this.shadow=new $s}function qs(e,t,n,i){Gs.call(this,e,t),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new Ws(new Gr(90,1,.5,500))}function Xs(e,t,n,i,r,a){Ur.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=void 0!==e?e:-1,this.right=void 0!==t?t:1,this.top=void 0!==n?n:1,this.bottom=void 0!==i?i:-1,this.near=void 0!==r?r:.1,this.far=void 0!==a?a:2e3,this.updateProjectionMatrix()}function Js(){Ws.call(this,new Xs(-5,5,5,-5,.5,500))}function Zs(e,t){Gs.call(this,e,t),this.type="DirectionalLight",this.position.copy(Fn.DefaultUp),this.updateMatrix(),this.target=new Fn,this.shadow=new Js}function Ks(e,t){Gs.call(this,e,t),this.type="AmbientLight",this.castShadow=void 0}function Qs(e,t,n,i){Gs.call(this,e,t),this.type="RectAreaLight",this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function el(e){this.manager=void 0!==e?e:hs,this.textures={}}Hs.prototype=Object.assign(Object.create(xs.prototype),{constructor:Hs,add:function(e){this.curves.push(e)},closePath:function(){var e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new Is(t,e))},getPoint:function(e){for(var t=e*this.getLength(),n=this.getCurveLengths(),i=0;i<n.length;){if(n[i]>=t){var r=n[i]-t,a=this.curves[i],o=a.getLength(),s=0===o?0:1-r/o;return a.getPointAt(s)}i++}return null},getLength:function(){var e=this.getCurveLengths();return e[e.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 e=[],t=0,n=0,i=this.curves.length;n<i;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e},getSpacedPoints:function(e){void 0===e&&(e=40);for(var t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t},getPoints:function(e){e=e||12;for(var t,n=[],i=0,r=this.curves;i<r.length;i++)for(var a=r[i],o=a&&a.isEllipseCurve?2*e:a&&(a.isLineCurve||a.isLineCurve3)?1:a&&a.isSplineCurve?e*a.points.length:e,s=a.getPoints(o),l=0;l<s.length;l++){var c=s[l];t&&t.equals(c)||(n.push(c),t=c)}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},copy:function(e){xs.prototype.copy.call(this,e),this.curves=[];for(var t=0,n=e.curves.length;t<n;t++){var i=e.curves[t];this.curves.push(i.clone())}return this.autoClose=e.autoClose,this},toJSON:function(){var e=xs.prototype.toJSON.call(this);e.autoClose=this.autoClose,e.curves=[];for(var t=0,n=this.curves.length;t<n;t++){var i=this.curves[t];e.curves.push(i.toJSON())}return e},fromJSON:function(e){xs.prototype.fromJSON.call(this,e),this.autoClose=e.autoClose,this.curves=[];for(var t=0,n=e.curves.length;t<n;t++){var i=e.curves[t];this.curves.push((new Bs[i.type]).fromJSON(i))}return this}}),js.prototype=Object.assign(Object.create(Hs.prototype),{constructor:js,setFromPoints:function(e){this.moveTo(e[0].x,e[0].y);for(var t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y)},moveTo:function(e,t){this.currentPoint.set(e,t)},lineTo:function(e,t){var n=new Is(this.currentPoint.clone(),new Jt(e,t));this.curves.push(n),this.currentPoint.set(e,t)},quadraticCurveTo:function(e,t,n,i){var r=new Ns(this.currentPoint.clone(),new Jt(e,t),new Jt(n,i));this.curves.push(r),this.currentPoint.set(n,i)},bezierCurveTo:function(e,t,n,i,r,a){var o=new Rs(this.currentPoint.clone(),new Jt(e,t),new Jt(n,i),new Jt(r,a));this.curves.push(o),this.currentPoint.set(r,a)},splineThru:function(e){var t=new Fs([this.currentPoint.clone()].concat(e));this.curves.push(t),this.currentPoint.copy(e[e.length-1])},arc:function(e,t,n,i,r,a){var o=this.currentPoint.x,s=this.currentPoint.y;this.absarc(e+o,t+s,n,i,r,a)},absarc:function(e,t,n,i,r,a){this.absellipse(e,t,n,n,i,r,a)},ellipse:function(e,t,n,i,r,a,o,s){var l=this.currentPoint.x,c=this.currentPoint.y;this.absellipse(e+l,t+c,n,i,r,a,o,s)},absellipse:function(e,t,n,i,r,a,o,s){var l=new ws(e,t,n,i,r,a,o,s);if(this.curves.length>0){var c=l.getPoint(0);c.equals(this.currentPoint)||this.lineTo(c.x,c.y)}this.curves.push(l);var u=l.getPoint(1);this.currentPoint.copy(u)},copy:function(e){return Hs.prototype.copy.call(this,e),this.currentPoint.copy(e.currentPoint),this},toJSON:function(){var e=Hs.prototype.toJSON.call(this);return e.currentPoint=this.currentPoint.toArray(),e},fromJSON:function(e){return Hs.prototype.fromJSON.call(this,e),this.currentPoint.fromArray(e.currentPoint),this}}),Us.prototype=Object.assign(Object.create(js.prototype),{constructor:Us,getPointsHoles:function(e){for(var t=[],n=0,i=this.holes.length;n<i;n++)t[n]=this.holes[n].getPoints(e);return t},extractPoints:function(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}},copy:function(e){js.prototype.copy.call(this,e),this.holes=[];for(var t=0,n=e.holes.length;t<n;t++){var i=e.holes[t];this.holes.push(i.clone())}return this},toJSON:function(){var e=js.prototype.toJSON.call(this);e.uuid=this.uuid,e.holes=[];for(var t=0,n=this.holes.length;t<n;t++){var i=this.holes[t];e.holes.push(i.toJSON())}return e},fromJSON:function(e){js.prototype.fromJSON.call(this,e),this.uuid=e.uuid,this.holes=[];for(var t=0,n=e.holes.length;t<n;t++){var i=e.holes[t];this.holes.push((new js).fromJSON(i))}return this}}),Gs.prototype=Object.assign(Object.create(Fn.prototype),{constructor:Gs,isLight:!0,copy:function(e){return Fn.prototype.copy.call(this,e),this.color.copy(e.color),this.intensity=e.intensity,this},toJSON:function(e){var t=Fn.prototype.toJSON.call(this,e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}),Vs.prototype=Object.assign(Object.create(Gs.prototype),{constructor:Vs,isHemisphereLight:!0,copy:function(e){return Gs.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}),Object.assign(Ws.prototype,{copy:function(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var e={};return 0!==this.bias&&(e.bias=this.bias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}),$s.prototype=Object.assign(Object.create(Ws.prototype),{constructor:$s,isSpotLightShadow:!0,update:function(e){var t=this.camera,n=2*Xt.RAD2DEG*e.angle,i=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;n===t.fov&&i===t.aspect&&r===t.far||(t.fov=n,t.aspect=i,t.far=r,t.updateProjectionMatrix())}}),Ys.prototype=Object.assign(Object.create(Gs.prototype),{constructor:Ys,isSpotLight:!0,copy:function(e){return Gs.prototype.copy.call(this,e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),qs.prototype=Object.assign(Object.create(Gs.prototype),{constructor:qs,isPointLight:!0,copy:function(e){return Gs.prototype.copy.call(this,e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}),Xs.prototype=Object.assign(Object.create(Ur.prototype),{constructor:Xs,isOrthographicCamera:!0,copy:function(e,t){return Ur.prototype.copy.call(this,e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this},setViewOffset:function(e,t,n,i,r,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2,r=n-e,a=n+e,o=i+t,s=i-t;if(null!==this.view&&this.view.enabled){var l=this.zoom/(this.view.width/this.view.fullWidth),c=this.zoom/(this.view.height/this.view.fullHeight),u=(this.right-this.left)/this.view.width,h=(this.top-this.bottom)/this.view.height;a=(r+=u*(this.view.offsetX/l))+u*(this.view.width/l),s=(o-=h*(this.view.offsetY/c))-h*(this.view.height/c)}this.projectionMatrix.makeOrthographic(r,a,o,s,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(e){var t=Fn.prototype.toJSON.call(this,e);return 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,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}),Js.prototype=Object.assign(Object.create(Ws.prototype),{constructor:Js}),Zs.prototype=Object.assign(Object.create(Gs.prototype),{constructor:Zs,isDirectionalLight:!0,copy:function(e){return Gs.prototype.copy.call(this,e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}),Ks.prototype=Object.assign(Object.create(Gs.prototype),{constructor:Ks,isAmbientLight:!0}),Qs.prototype=Object.assign(Object.create(Gs.prototype),{constructor:Qs,isRectAreaLight:!0,copy:function(e){return Gs.prototype.copy.call(this,e),this.width=e.width,this.height=e.height,this},toJSON:function(e){var t=Gs.prototype.toJSON.call(this,e);return t.object.width=this.width,t.object.height=this.height,t}}),Object.assign(el.prototype,{load:function(e,t,n,i){var r=this,a=new ps(r.manager);a.setPath(r.path),a.load(e,function(e){t(r.parse(JSON.parse(e)))},n,i)},parse:function(e){var t=this.textures;function n(e){return void 0===t[e]&&console.warn("THREE.MaterialLoader: Undefined texture",e),t[e]}var i=new Yo[e.type];if(void 0!==e.uuid&&(i.uuid=e.uuid),void 0!==e.name&&(i.name=e.name),void 0!==e.color&&i.color.setHex(e.color),void 0!==e.roughness&&(i.roughness=e.roughness),void 0!==e.metalness&&(i.metalness=e.metalness),void 0!==e.emissive&&i.emissive.setHex(e.emissive),void 0!==e.specular&&i.specular.setHex(e.specular),void 0!==e.shininess&&(i.shininess=e.shininess),void 0!==e.clearCoat&&(i.clearCoat=e.clearCoat),void 0!==e.clearCoatRoughness&&(i.clearCoatRoughness=e.clearCoatRoughness),void 0!==e.vertexColors&&(i.vertexColors=e.vertexColors),void 0!==e.fog&&(i.fog=e.fog),void 0!==e.flatShading&&(i.flatShading=e.flatShading),void 0!==e.blending&&(i.blending=e.blending),void 0!==e.combine&&(i.combine=e.combine),void 0!==e.side&&(i.side=e.side),void 0!==e.opacity&&(i.opacity=e.opacity),void 0!==e.transparent&&(i.transparent=e.transparent),void 0!==e.alphaTest&&(i.alphaTest=e.alphaTest),void 0!==e.depthTest&&(i.depthTest=e.depthTest),void 0!==e.depthWrite&&(i.depthWrite=e.depthWrite),void 0!==e.colorWrite&&(i.colorWrite=e.colorWrite),void 0!==e.wireframe&&(i.wireframe=e.wireframe),void 0!==e.wireframeLinewidth&&(i.wireframeLinewidth=e.wireframeLinewidth),void 0!==e.wireframeLinecap&&(i.wireframeLinecap=e.wireframeLinecap),void 0!==e.wireframeLinejoin&&(i.wireframeLinejoin=e.wireframeLinejoin),void 0!==e.rotation&&(i.rotation=e.rotation),1!==e.linewidth&&(i.linewidth=e.linewidth),void 0!==e.dashSize&&(i.dashSize=e.dashSize),void 0!==e.gapSize&&(i.gapSize=e.gapSize),void 0!==e.scale&&(i.scale=e.scale),void 0!==e.polygonOffset&&(i.polygonOffset=e.polygonOffset),void 0!==e.polygonOffsetFactor&&(i.polygonOffsetFactor=e.polygonOffsetFactor),void 0!==e.polygonOffsetUnits&&(i.polygonOffsetUnits=e.polygonOffsetUnits),void 0!==e.skinning&&(i.skinning=e.skinning),void 0!==e.morphTargets&&(i.morphTargets=e.morphTargets),void 0!==e.dithering&&(i.dithering=e.dithering),void 0!==e.visible&&(i.visible=e.visible),void 0!==e.userData&&(i.userData=e.userData),void 0!==e.uniforms)for(var r in e.uniforms){var a=e.uniforms[r];switch(i.uniforms[r]={},a.type){case"t":i.uniforms[r].value=n(a.value);break;case"c":i.uniforms[r].value=(new En).setHex(a.value);break;case"v2":i.uniforms[r].value=(new Jt).fromArray(a.value);break;case"v3":i.uniforms[r].value=(new Qt).fromArray(a.value);break;case"v4":i.uniforms[r].value=(new un).fromArray(a.value);break;case"m4":i.uniforms[r].value=(new Zt).fromArray(a.value);break;default:i.uniforms[r].value=a.value}}if(void 0!==e.defines&&(i.defines=e.defines),void 0!==e.vertexShader&&(i.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(i.fragmentShader=e.fragmentShader),void 0!==e.shading&&(i.flatShading=1===e.shading),void 0!==e.size&&(i.size=e.size),void 0!==e.sizeAttenuation&&(i.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(i.map=n(e.map)),void 0!==e.alphaMap&&(i.alphaMap=n(e.alphaMap),i.transparent=!0),void 0!==e.bumpMap&&(i.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(i.bumpScale=e.bumpScale),void 0!==e.normalMap&&(i.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(i.normalMapType=e.normalMapType),void 0!==e.normalScale){var o=e.normalScale;!1===Array.isArray(o)&&(o=[o,o]),i.normalScale=(new Jt).fromArray(o)}return void 0!==e.displacementMap&&(i.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(i.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(i.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(i.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(i.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(i.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(i.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(i.specularMap=n(e.specularMap)),void 0!==e.envMap&&(i.envMap=n(e.envMap)),void 0!==e.envMapIntensity&&(i.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(i.reflectivity=e.reflectivity),void 0!==e.lightMap&&(i.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(i.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(i.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(i.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(i.gradientMap=n(e.gradientMap)),i},setPath:function(e){return this.path=e,this},setTextures:function(e){return this.textures=e,this}});var tl={decodeText:function(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var t="",n=0,i=e.length;n<i;n++)t+=String.fromCharCode(e[n]);return decodeURIComponent(escape(t))},extractUrlBase:function(e){var t=e.lastIndexOf("/");return-1===t?"./":e.substr(0,t+1)}};function nl(e){this.manager=void 0!==e?e:hs}Object.assign(nl.prototype,{load:function(e,t,n,i){var r=this,a=new ps(r.manager);a.setPath(r.path),a.load(e,function(e){t(r.parse(JSON.parse(e)))},n,i)},parse:function(e){var t=new ni,n=e.data.index;if(void 0!==n){var i=new sl[n.type](n.array);t.setIndex(new Gn(i,1))}var r=e.data.attributes;for(var a in r){var o=r[a];i=new sl[o.type](o.array);t.addAttribute(a,new Gn(i,o.itemSize,o.normalized))}var s=e.data.groups||e.data.drawcalls||e.data.offsets;if(void 0!==s)for(var l=0,c=s.length;l!==c;++l){var u=s[l];t.addGroup(u.start,u.count,u.materialIndex)}var h=e.data.boundingSphere;if(void 0!==h){var d=new Qt;void 0!==h.center&&d.fromArray(h.center),t.boundingSphere=new mn(d,h.radius)}return t},setPath:function(e){return this.path=e,this}});var il,rl,al,ol,sl={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!=typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function ll(){}function cl(e){"boolean"==typeof e&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),e=void 0),this.manager=void 0!==e?e:hs,this.withCredentials=!1}function ul(e){this.manager=void 0!==e?e:hs,this.resourcePath=""}ll.Handlers={handlers:[],add:function(e,t){this.handlers.push(e,t)},get:function(e){for(var t=this.handlers,n=0,i=t.length;n<i;n+=2){var r=t[n],a=t[n+1];if(r.test(e))return a}return null}},Object.assign(ll.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(e,t,n){for(var i=[],r=0;r<e.length;++r)i[r]=this.createMaterial(e[r],t,n);return i},createMaterial:(il={NoBlending:I,NormalBlending:k,AdditiveBlending:N,SubtractiveBlending:z,MultiplyBlending:F,CustomBlending:B},rl=new En,al=new bs,ol=new el,function(e,t,n){var i={};function r(e,r,a,o,s){var l,c=t+e,u=ll.Handlers.get(c);null!==u?l=u.load(c):(al.setCrossOrigin(n),l=al.load(c)),void 0!==r&&(l.repeat.fromArray(r),1!==r[0]&&(l.wrapS=Se),1!==r[1]&&(l.wrapT=Se)),void 0!==a&&l.offset.fromArray(a),void 0!==o&&("repeat"===o[0]&&(l.wrapS=Se),"mirror"===o[0]&&(l.wrapS=Ae),"repeat"===o[1]&&(l.wrapT=Se),"mirror"===o[1]&&(l.wrapT=Ae)),void 0!==s&&(l.anisotropy=s);var h=Xt.generateUUID();return i[h]=l,h}var a={uuid:Xt.generateUUID(),type:"MeshLambertMaterial"};for(var o in e){var s=e[o];switch(o){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":a.name=s;break;case"blending":a.blending=il[s];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",o,"is no longer supported.");break;case"colorDiffuse":a.color=rl.fromArray(s).getHex();break;case"colorSpecular":a.specular=rl.fromArray(s).getHex();break;case"colorEmissive":a.emissive=rl.fromArray(s).getHex();break;case"specularCoef":a.shininess=s;break;case"shading":"basic"===s.toLowerCase()&&(a.type="MeshBasicMaterial"),"phong"===s.toLowerCase()&&(a.type="MeshPhongMaterial"),"standard"===s.toLowerCase()&&(a.type="MeshStandardMaterial");break;case"mapDiffuse":a.map=r(s,e.mapDiffuseRepeat,e.mapDiffuseOffset,e.mapDiffuseWrap,e.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":a.emissiveMap=r(s,e.mapEmissiveRepeat,e.mapEmissiveOffset,e.mapEmissiveWrap,e.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":a.lightMap=r(s,e.mapLightRepeat,e.mapLightOffset,e.mapLightWrap,e.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":a.aoMap=r(s,e.mapAORepeat,e.mapAOOffset,e.mapAOWrap,e.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":a.bumpMap=r(s,e.mapBumpRepeat,e.mapBumpOffset,e.mapBumpWrap,e.mapBumpAnisotropy);break;case"mapBumpScale":a.bumpScale=s;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":a.normalMap=r(s,e.mapNormalRepeat,e.mapNormalOffset,e.mapNormalWrap,e.mapNormalAnisotropy);break;case"mapNormalFactor":a.normalScale=s;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":a.specularMap=r(s,e.mapSpecularRepeat,e.mapSpecularOffset,e.mapSpecularWrap,e.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":a.metalnessMap=r(s,e.mapMetalnessRepeat,e.mapMetalnessOffset,e.mapMetalnessWrap,e.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":a.roughnessMap=r(s,e.mapRoughnessRepeat,e.mapRoughnessOffset,e.mapRoughnessWrap,e.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":a.alphaMap=r(s,e.mapAlphaRepeat,e.mapAlphaOffset,e.mapAlphaWrap,e.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":a.side=C;break;case"doubleSided":a.side=A;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity"),a.opacity=s;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":a[o]=s;break;case"vertexColors":!0===s&&(a.vertexColors=D),"face"===s&&(a.vertexColors=R);break;default:console.error("THREE.Loader.createMaterial: Unsupported",o,s)}}return"MeshBasicMaterial"===a.type&&delete a.emissive,"MeshPhongMaterial"!==a.type&&delete a.specular,a.opacity<1&&(a.transparent=!0),ol.setTextures(i),ol.parse(a)})}),Object.assign(cl.prototype,{crossOrigin:"anonymous",load:function(e,t,n,i){var r=this,a=void 0===this.path?tl.extractUrlBase(e):this.path,o=new ps(this.manager);o.setPath(this.path),o.setWithCredentials(this.withCredentials),o.load(e,function(n){var i=JSON.parse(n),o=i.metadata;if(void 0!==o){var s=o.type;if(void 0!==s&&"object"===s.toLowerCase())return void console.error("THREE.JSONLoader: "+e+" should be loaded with THREE.ObjectLoader instead.")}var l=r.parse(i,a);t(l.geometry,l.materials)},n,i)},setPath:function(e){return this.path=e,this},setResourcePath:function(e){return this.resourcePath=e,this},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(){return function(e,t){void 0!==e.data&&(e=e.data),void 0!==e.scale?e.scale=1/e.scale:e.scale=1;var n=new Un;return function(e,t){function n(e,t){return e&1<<t}var i,r,a,o,s,l,c,u,h,d,p,f,m,v,g,y,b,x,w,_,M,E,T,S,C,A=e.faces,L=e.vertices,P=e.normals,O=e.colors,R=e.scale,D=0;if(void 0!==e.uvs){for(i=0;i<e.uvs.length;i++)e.uvs[i].length&&D++;for(i=0;i<D;i++)t.faceVertexUvs[i]=[]}for(o=0,s=L.length;o<s;)(x=new Qt).x=L[o++]*R,x.y=L[o++]*R,x.z=L[o++]*R,t.vertices.push(x);for(o=0,s=A.length;o<s;)if(p=n(d=A[o++],0),f=n(d,1),m=n(d,3),v=n(d,4),g=n(d,5),y=n(d,6),b=n(d,7),p){if((_=new Pn).a=A[o],_.b=A[o+1],_.c=A[o+3],(M=new Pn).a=A[o+1],M.b=A[o+2],M.c=A[o+3],o+=4,f&&(h=A[o++],_.materialIndex=h,M.materialIndex=h),a=t.faces.length,m)for(i=0;i<D;i++)for(S=e.uvs[i],t.faceVertexUvs[i][a]=[],t.faceVertexUvs[i][a+1]=[],r=0;r<4;r++)C=new Jt(S[2*(u=A[o++])],S[2*u+1]),2!==r&&t.faceVertexUvs[i][a].push(C),0!==r&&t.faceVertexUvs[i][a+1].push(C);if(v&&(c=3*A[o++],_.normal.set(P[c++],P[c++],P[c]),M.normal.copy(_.normal)),g)for(i=0;i<4;i++)c=3*A[o++],T=new Qt(P[c++],P[c++],P[c]),2!==i&&_.vertexNormals.push(T),0!==i&&M.vertexNormals.push(T);if(y&&(E=O[l=A[o++]],_.color.setHex(E),M.color.setHex(E)),b)for(i=0;i<4;i++)E=O[l=A[o++]],2!==i&&_.vertexColors.push(new En(E)),0!==i&&M.vertexColors.push(new En(E));t.faces.push(_),t.faces.push(M)}else{if((w=new Pn).a=A[o++],w.b=A[o++],w.c=A[o++],f&&(h=A[o++],w.materialIndex=h),a=t.faces.length,m)for(i=0;i<D;i++)for(S=e.uvs[i],t.faceVertexUvs[i][a]=[],r=0;r<3;r++)C=new Jt(S[2*(u=A[o++])],S[2*u+1]),t.faceVertexUvs[i][a].push(C);if(v&&(c=3*A[o++],w.normal.set(P[c++],P[c++],P[c])),g)for(i=0;i<3;i++)c=3*A[o++],T=new Qt(P[c++],P[c++],P[c]),w.vertexNormals.push(T);if(y&&(l=A[o++],w.color.setHex(O[l])),b)for(i=0;i<3;i++)l=A[o++],w.vertexColors.push(new En(O[l]));t.faces.push(w)}}(e,n),function(e,t){var n=void 0!==e.influencesPerVertex?e.influencesPerVertex:2;if(e.skinWeights)for(var i=0,r=e.skinWeights.length;i<r;i+=n){var a=e.skinWeights[i],o=n>1?e.skinWeights[i+1]:0,s=n>2?e.skinWeights[i+2]:0,l=n>3?e.skinWeights[i+3]:0;t.skinWeights.push(new un(a,o,s,l))}if(e.skinIndices)for(i=0,r=e.skinIndices.length;i<r;i+=n){var c=e.skinIndices[i],u=n>1?e.skinIndices[i+1]:0,h=n>2?e.skinIndices[i+2]:0,d=n>3?e.skinIndices[i+3]:0;t.skinIndices.push(new un(c,u,h,d))}t.bones=e.bones,t.bones&&t.bones.length>0&&(t.skinWeights.length!==t.skinIndices.length||t.skinIndices.length!==t.vertices.length)&&console.warn("When skinning, number of vertices ("+t.vertices.length+"), skinIndices ("+t.skinIndices.length+"), and skinWeights ("+t.skinWeights.length+") should match.")}(e,n),function(e,t){var n=e.scale;if(void 0!==e.morphTargets)for(var i=0,r=e.morphTargets.length;i<r;i++){t.morphTargets[i]={},t.morphTargets[i].name=e.morphTargets[i].name,t.morphTargets[i].vertices=[];for(var a=t.morphTargets[i].vertices,o=e.morphTargets[i].vertices,s=0,l=o.length;s<l;s+=3){var c=new Qt;c.x=o[s]*n,c.y=o[s+1]*n,c.z=o[s+2]*n,a.push(c)}}if(void 0!==e.morphColors&&e.morphColors.length>0){console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.');var u=t.faces,h=e.morphColors[0].colors;for(i=0,r=u.length;i<r;i++)u[i].color.fromArray(h,3*i)}}(e,n),function(e,t){var n=[],i=[];void 0!==e.animation&&i.push(e.animation),void 0!==e.animations&&(e.animations.length?i=i.concat(e.animations):i.push(e.animations));for(var r=0;r<i.length;r++){var a=ss.parseAnimation(i[r],t.bones);a&&n.push(a)}if(t.morphTargets){var o=ss.CreateClipsFromMorphTargetSequences(t.morphTargets,10);n=n.concat(o)}n.length>0&&(t.animations=n)}(e,n),n.computeFaceNormals(),n.computeBoundingSphere(),void 0===e.materials||0===e.materials.length?{geometry:n}:{geometry:n,materials:ll.prototype.initMaterials(e.materials,this.resourcePath||t,this.crossOrigin)}}}()}),Object.assign(ul.prototype,{crossOrigin:"anonymous",load:function(e,t,n,i){var r=this,a=void 0===this.path?tl.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||a;var o=new ps(r.manager);o.setPath(this.path),o.load(e,function(n){var a=null;try{a=JSON.parse(n)}catch(t){return void 0!==i&&i(t),void console.error("THREE:ObjectLoader: Can't parse "+e+".",t.message)}var o=a.metadata;void 0!==o&&void 0!==o.type&&"geometry"!==o.type.toLowerCase()?r.parse(a,t):console.error("THREE.ObjectLoader: Can't load "+e+". Use THREE.JSONLoader instead.")},n,i)},setPath:function(e){return this.path=e,this},setResourcePath:function(e){return this.resourcePath=e,this},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(e,t){var n=this.parseShape(e.shapes),i=this.parseGeometries(e.geometries,n),r=this.parseImages(e.images,function(){void 0!==t&&t(s)}),a=this.parseTextures(e.textures,r),o=this.parseMaterials(e.materials,a),s=this.parseObject(e.object,i,o);return e.animations&&(s.animations=this.parseAnimations(e.animations)),void 0!==e.images&&0!==e.images.length||void 0!==t&&t(s),s},parseShape:function(e){var t={};if(void 0!==e)for(var n=0,i=e.length;n<i;n++){var r=(new Us).fromJSON(e[n]);t[r.uuid]=r}return t},parseGeometries:function(e,t){var n={};if(void 0!==e)for(var i=new cl,r=new nl,a=0,o=e.length;a<o;a++){var s,l=e[a];switch(l.type){case"PlaneGeometry":case"PlaneBufferGeometry":s=new No[l.type](l.width,l.height,l.widthSegments,l.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":s=new No[l.type](l.width,l.height,l.depth,l.widthSegments,l.heightSegments,l.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":s=new No[l.type](l.radius,l.segments,l.thetaStart,l.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":s=new No[l.type](l.radiusTop,l.radiusBottom,l.height,l.radialSegments,l.heightSegments,l.openEnded,l.thetaStart,l.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":s=new No[l.type](l.radius,l.height,l.radialSegments,l.heightSegments,l.openEnded,l.thetaStart,l.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":s=new No[l.type](l.radius,l.widthSegments,l.heightSegments,l.phiStart,l.phiLength,l.thetaStart,l.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":s=new No[l.type](l.radius,l.detail);break;case"RingGeometry":case"RingBufferGeometry":s=new No[l.type](l.innerRadius,l.outerRadius,l.thetaSegments,l.phiSegments,l.thetaStart,l.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":s=new No[l.type](l.radius,l.tube,l.radialSegments,l.tubularSegments,l.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":s=new No[l.type](l.radius,l.tube,l.tubularSegments,l.radialSegments,l.p,l.q);break;case"LatheGeometry":case"LatheBufferGeometry":s=new No[l.type](l.points,l.segments,l.phiStart,l.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":s=new No[l.type](l.vertices,l.indices,l.radius,l.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":for(var c=[],u=0,h=l.shapes.length;u<h;u++){var d=t[l.shapes[u]];c.push(d)}s=new No[l.type](c,l.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(c=[],u=0,h=l.shapes.length;u<h;u++){d=t[l.shapes[u]];c.push(d)}var p=l.options.extrudePath;void 0!==p&&(l.options.extrudePath=(new Bs[p.type]).fromJSON(p)),s=new No[l.type](c,l.options);break;case"BufferGeometry":s=r.parse(l);break;case"Geometry":s=i.parse(l,this.resourcePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+l.type+'"');continue}s.uuid=l.uuid,void 0!==l.name&&(s.name=l.name),!0===s.isBufferGeometry&&void 0!==l.userData&&(s.userData=l.userData),n[l.uuid]=s}return n},parseMaterials:function(e,t){var n={},i={};if(void 0!==e){var r=new el;r.setTextures(t);for(var a=0,o=e.length;a<o;a++){var s=e[a];if("MultiMaterial"===s.type){for(var l=[],c=0;c<s.materials.length;c++){var u=s.materials[c];void 0===n[u.uuid]&&(n[u.uuid]=r.parse(u)),l.push(n[u.uuid])}i[s.uuid]=l}else i[s.uuid]=r.parse(s),n[s.uuid]=i[s.uuid]}}return i},parseAnimations:function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=ss.parse(i);void 0!==i.uuid&&(r.uuid=i.uuid),t.push(r)}return t},parseImages:function(e,t){var n=this,i={};function r(e){return n.manager.itemStart(e),a.load(e,function(){n.manager.itemEnd(e)},void 0,function(){n.manager.itemError(e),n.manager.itemEnd(e)})}if(void 0!==e&&e.length>0){var a=new gs(new us(t));a.setCrossOrigin(this.crossOrigin);for(var o=0,s=e.length;o<s;o++){var l=e[o],c=l.url;if(Array.isArray(c)){i[l.uuid]=[];for(var u=0,h=c.length;u<h;u++){var d=c[u],p=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(d)?d:n.resourcePath+d;i[l.uuid].push(r(p))}}else{p=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(l.url)?l.url:n.resourcePath+l.url;i[l.uuid]=r(p)}}}return i},parseTextures:function(e,t){function n(e,t){return"number"==typeof e?e:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",e),t[e])}var i={};if(void 0!==e)for(var r=0,a=e.length;r<a;r++){var o,s=e[r];void 0===s.image&&console.warn('THREE.ObjectLoader: No "image" specified for',s.uuid),void 0===t[s.image]&&console.warn("THREE.ObjectLoader: Undefined image",s.image),(o=Array.isArray(t[s.image])?new Ci(t[s.image]):new cn(t[s.image])).needsUpdate=!0,o.uuid=s.uuid,void 0!==s.name&&(o.name=s.name),void 0!==s.mapping&&(o.mapping=n(s.mapping,dl)),void 0!==s.offset&&o.offset.fromArray(s.offset),void 0!==s.repeat&&o.repeat.fromArray(s.repeat),void 0!==s.center&&o.center.fromArray(s.center),void 0!==s.rotation&&(o.rotation=s.rotation),void 0!==s.wrap&&(o.wrapS=n(s.wrap[0],pl),o.wrapT=n(s.wrap[1],pl)),void 0!==s.format&&(o.format=s.format),void 0!==s.minFilter&&(o.minFilter=n(s.minFilter,fl)),void 0!==s.magFilter&&(o.magFilter=n(s.magFilter,fl)),void 0!==s.anisotropy&&(o.anisotropy=s.anisotropy),void 0!==s.flipY&&(o.flipY=s.flipY),i[s.uuid]=o}return i},parseObject:function(e,t,n){var i;function r(e){return void 0===t[e]&&console.warn("THREE.ObjectLoader: Undefined geometry",e),t[e]}function a(e){if(void 0!==e){if(Array.isArray(e)){for(var t=[],i=0,r=e.length;i<r;i++){var a=e[i];void 0===n[a]&&console.warn("THREE.ObjectLoader: Undefined material",a),t.push(n[a])}return t}return void 0===n[e]&&console.warn("THREE.ObjectLoader: Undefined material",e),n[e]}}switch(e.type){case"Scene":i=new ra,void 0!==e.background&&Number.isInteger(e.background)&&(i.background=new En(e.background)),void 0!==e.fog&&("Fog"===e.fog.type?i.fog=new ia(e.fog.color,e.fog.near,e.fog.far):"FogExp2"===e.fog.type&&(i.fog=new na(e.fog.color,e.fog.density)));break;case"PerspectiveCamera":i=new Gr(e.fov,e.aspect,e.near,e.far),void 0!==e.focus&&(i.focus=e.focus),void 0!==e.zoom&&(i.zoom=e.zoom),void 0!==e.filmGauge&&(i.filmGauge=e.filmGauge),void 0!==e.filmOffset&&(i.filmOffset=e.filmOffset),void 0!==e.view&&(i.view=Object.assign({},e.view));break;case"OrthographicCamera":i=new Xs(e.left,e.right,e.top,e.bottom,e.near,e.far),void 0!==e.zoom&&(i.zoom=e.zoom),void 0!==e.view&&(i.view=Object.assign({},e.view));break;case"AmbientLight":i=new Ks(e.color,e.intensity);break;case"DirectionalLight":i=new Zs(e.color,e.intensity);break;case"PointLight":i=new qs(e.color,e.intensity,e.distance,e.decay);break;case"RectAreaLight":i=new Qs(e.color,e.intensity,e.width,e.height);break;case"SpotLight":i=new Ys(e.color,e.intensity,e.distance,e.angle,e.penumbra,e.decay);break;case"HemisphereLight":i=new Vs(e.color,e.groundColor,e.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":var o=r(e.geometry),s=a(e.material);i=o.bones&&o.bones.length>0?new da(o,s):new Ti(o,s);break;case"LOD":i=new ca;break;case"Line":i=new fa(r(e.geometry),a(e.material),e.mode);break;case"LineLoop":i=new va(r(e.geometry),a(e.material));break;case"LineSegments":i=new ma(r(e.geometry),a(e.material));break;case"PointCloud":case"Points":i=new ya(r(e.geometry),a(e.material));break;case"Sprite":i=new la(a(e.material));break;case"Group":i=new jr;break;default:i=new Fn}if(i.uuid=e.uuid,void 0!==e.name&&(i.name=e.name),void 0!==e.matrix?(i.matrix.fromArray(e.matrix),void 0!==e.matrixAutoUpdate&&(i.matrixAutoUpdate=e.matrixAutoUpdate),i.matrixAutoUpdate&&i.matrix.decompose(i.position,i.quaternion,i.scale)):(void 0!==e.position&&i.position.fromArray(e.position),void 0!==e.rotation&&i.rotation.fromArray(e.rotation),void 0!==e.quaternion&&i.quaternion.fromArray(e.quaternion),void 0!==e.scale&&i.scale.fromArray(e.scale)),void 0!==e.castShadow&&(i.castShadow=e.castShadow),void 0!==e.receiveShadow&&(i.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(i.shadow.bias=e.shadow.bias),void 0!==e.shadow.radius&&(i.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&i.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(i.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(i.visible=e.visible),void 0!==e.frustumCulled&&(i.frustumCulled=e.frustumCulled),void 0!==e.renderOrder&&(i.renderOrder=e.renderOrder),void 0!==e.userData&&(i.userData=e.userData),void 0!==e.layers&&(i.layers.mask=e.layers),void 0!==e.children)for(var l=e.children,c=0;c<l.length;c++)i.add(this.parseObject(l[c],t,n));if("LOD"===e.type)for(var u=e.levels,h=0;h<u.length;h++){var d=u[h],p=i.getObjectByProperty("uuid",d.object);void 0!==p&&i.addLevel(p,d.distance)}return i}});var hl,dl={UVMapping:ye,CubeReflectionMapping:be,CubeRefractionMapping:xe,EquirectangularReflectionMapping:we,EquirectangularRefractionMapping:_e,SphericalReflectionMapping:Me,CubeUVReflectionMapping:Ee,CubeUVRefractionMapping:Te},pl={RepeatWrapping:Se,ClampToEdgeWrapping:Ce,MirroredRepeatWrapping:Ae},fl={NearestFilter:Le,NearestMipMapNearestFilter:Pe,NearestMipMapLinearFilter:Oe,LinearFilter:Re,LinearMipMapNearestFilter:De,LinearMipMapLinearFilter:Ie};function ml(e){"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.manager=void 0!==e?e:hs,this.options=void 0}function vl(){this.type="ShapePath",this.color=new En,this.subPaths=[],this.currentPath=null}function gl(e){this.type="Font",this.data=e}function yl(e,t,n,i,r){var a=r.glyphs[e]||r.glyphs["?"];if(a){var o,s,l,c,u,h,d,p,f=new vl;if(a.o)for(var m=a._cachedOutline||(a._cachedOutline=a.o.split(" ")),v=0,g=m.length;v<g;){switch(m[v++]){case"m":o=m[v++]*t+n,s=m[v++]*t+i,f.moveTo(o,s);break;case"l":o=m[v++]*t+n,s=m[v++]*t+i,f.lineTo(o,s);break;case"q":l=m[v++]*t+n,c=m[v++]*t+i,u=m[v++]*t+n,h=m[v++]*t+i,f.quadraticCurveTo(u,h,l,c);break;case"b":l=m[v++]*t+n,c=m[v++]*t+i,u=m[v++]*t+n,h=m[v++]*t+i,d=m[v++]*t+n,p=m[v++]*t+i,f.bezierCurveTo(u,h,d,p,l,c)}}return{offsetX:a.ha*t,path:f}}}function bl(e){this.manager=void 0!==e?e:hs}ml.prototype={constructor:ml,setOptions:function(e){return this.options=e,this},load:function(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var r=this,a=cs.get(e);if(void 0!==a)return r.manager.itemStart(e),setTimeout(function(){t&&t(a),r.manager.itemEnd(e)},0),a;fetch(e).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,r.options)}).then(function(n){cs.add(e,n),t&&t(n),r.manager.itemEnd(e)}).catch(function(t){i&&i(t),r.manager.itemError(e),r.manager.itemEnd(e)})},setCrossOrigin:function(){return this},setPath:function(e){return this.path=e,this}},Object.assign(vl.prototype,{moveTo:function(e,t){this.currentPath=new js,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t)},lineTo:function(e,t){this.currentPath.lineTo(e,t)},quadraticCurveTo:function(e,t,n,i){this.currentPath.quadraticCurveTo(e,t,n,i)},bezierCurveTo:function(e,t,n,i,r,a){this.currentPath.bezierCurveTo(e,t,n,i,r,a)},splineThru:function(e){this.currentPath.splineThru(e)},toShapes:function(e,t){function n(e){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n],a=new Us;a.curves=r.curves,t.push(a)}return t}function i(e,t){for(var n=t.length,i=!1,r=n-1,a=0;a<n;r=a++){var o=t[r],s=t[a],l=s.x-o.x,c=s.y-o.y;if(Math.abs(c)>Number.EPSILON){if(c<0&&(o=t[a],l=-l,s=t[r],c=-c),e.y<o.y||e.y>s.y)continue;if(e.y===o.y){if(e.x===o.x)return!0}else{var u=c*(e.x-o.x)-l*(e.y-o.y);if(0===u)return!0;if(u<0)continue;i=!i}}else{if(e.y!==o.y)continue;if(s.x<=e.x&&e.x<=o.x||o.x<=e.x&&e.x<=s.x)return!0}}return i}var r=uo.isClockWise,a=this.subPaths;if(0===a.length)return[];if(!0===t)return n(a);var o,s,l,c=[];if(1===a.length)return s=a[0],(l=new Us).curves=s.curves,c.push(l),c;var u=!r(a[0].getPoints());u=e?!u:u;var h,d,p=[],f=[],m=[],v=0;f[v]=void 0,m[v]=[];for(var g=0,y=a.length;g<y;g++)o=r(h=(s=a[g]).getPoints()),(o=e?!o:o)?(!u&&f[v]&&v++,f[v]={s:new Us,p:h},f[v].s.curves=s.curves,u&&v++,m[v]=[]):m[v].push({h:s,p:h[0]});if(!f[0])return n(a);if(f.length>1){for(var b=!1,x=[],w=0,_=f.length;w<_;w++)p[w]=[];for(w=0,_=f.length;w<_;w++)for(var M=m[w],E=0;E<M.length;E++){for(var T=M[E],S=!0,C=0;C<f.length;C++)i(T.p,f[C].p)&&(w!==C&&x.push({froms:w,tos:C,hole:E}),S?(S=!1,p[C].push(T)):b=!0);S&&p[w].push(T)}x.length>0&&(b||(m=p))}g=0;for(var A=f.length;g<A;g++){l=f[g].s,c.push(l);for(var L=0,P=(d=m[g]).length;L<P;L++)l.holes.push(d[L].h)}return c}}),Object.assign(gl.prototype,{isFont:!0,generateShapes:function(e,t){void 0===t&&(t=100);for(var n=[],i=function(e,t,n){for(var i=Array.from?Array.from(e):String(e).split(""),r=t/n.resolution,a=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*r,o=[],s=0,l=0,c=0;c<i.length;c++){var u=i[c];if("\n"===u)s=0,l-=a;else{var h=yl(u,r,s,l,n);s+=h.offsetX,o.push(h.path)}}return o}(e,t,this.data),r=0,a=i.length;r<a;r++)Array.prototype.push.apply(n,i[r].toShapes());return n}}),Object.assign(bl.prototype,{load:function(e,t,n,i){var r=this,a=new ps(this.manager);a.setPath(this.path),a.load(e,function(e){var n;try{n=JSON.parse(e)}catch(t){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),n=JSON.parse(e.substring(65,e.length-2))}var i=r.parse(n);t&&t(i)},n,i)},parse:function(e){return new gl(e)},setPath:function(e){return this.path=e,this}});var xl,wl,_l,Ml,El,Tl,Sl,Cl,Al,Ll,Pl={getContext:function(){return void 0===hl&&(hl=new(window.AudioContext||window.webkitAudioContext)),hl},setContext:function(e){hl=e}};function Ol(e){this.manager=void 0!==e?e:hs}function Rl(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Gr,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Gr,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function Dl(e,t,n,i){Fn.call(this),this.type="CubeCamera";var r=new Gr(90,1,e,t);r.up.set(0,-1,0),r.lookAt(new Qt(1,0,0)),this.add(r);var a=new Gr(90,1,e,t);a.up.set(0,-1,0),a.lookAt(new Qt(-1,0,0)),this.add(a);var o=new Gr(90,1,e,t);o.up.set(0,0,1),o.lookAt(new Qt(0,1,0)),this.add(o);var s=new Gr(90,1,e,t);s.up.set(0,0,-1),s.lookAt(new Qt(0,-1,0)),this.add(s);var l=new Gr(90,1,e,t);l.up.set(0,-1,0),l.lookAt(new Qt(0,0,1)),this.add(l);var c=new Gr(90,1,e,t);c.up.set(0,-1,0),c.lookAt(new Qt(0,0,-1)),this.add(c),i=i||{format:qe,magFilter:Re,minFilter:Re},this.renderTarget=new dn(n,n,i),this.renderTarget.texture.name="CubeCamera",this.update=function(e,t){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,i=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,e.render(t,r,n),n.activeCubeFace=1,e.render(t,a,n),n.activeCubeFace=2,e.render(t,o,n),n.activeCubeFace=3,e.render(t,s,n),n.activeCubeFace=4,e.render(t,l,n),n.texture.generateMipmaps=i,n.activeCubeFace=5,e.render(t,c,n),e.setRenderTarget(null)},this.clear=function(e,t,n,i){for(var r=this.renderTarget,a=0;a<6;a++)r.activeCubeFace=a,e.setRenderTarget(r),e.clear(t,n,i);e.setRenderTarget(null)}}function Il(e){this.autoStart=void 0===e||e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}function kl(){Fn.call(this),this.type="AudioListener",this.context=Pl.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0}function Nl(e){Fn.call(this),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.startTime=0,this.offset=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function zl(e){Nl.call(this,e),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Fl(e,t){this.analyser=e.context.createAnalyser(),this.analyser.fftSize=void 0!==t?t:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}function Bl(e,t,n){this.binding=e,this.valueSize=n;var i,r=Float64Array;switch(t){case"quaternion":i=this._slerp;break;case"string":case"bool":r=Array,i=this._select;break;default:i=this._lerp}this.buffer=new r(4*n),this._mixBufferRegion=i,this.cumulativeWeight=0,this.useCount=0,this.referenceCount=0}Object.assign(Ol.prototype,{load:function(e,t,n,i){var r=new ps(this.manager);r.setResponseType("arraybuffer"),r.setPath(this.path),r.load(e,function(e){var n=e.slice(0);Pl.getContext().decodeAudioData(n,function(e){t(e)})},n,i)},setPath:function(e){return this.path=e,this}}),Object.assign(Rl.prototype,{update:(Al=new Zt,Ll=new Zt,function(e){if(xl!==this||wl!==e.focus||_l!==e.fov||Ml!==e.aspect*this.aspect||El!==e.near||Tl!==e.far||Sl!==e.zoom||Cl!==this.eyeSep){xl=this,wl=e.focus,_l=e.fov,Ml=e.aspect*this.aspect,El=e.near,Tl=e.far,Sl=e.zoom;var t,n,i=e.projectionMatrix.clone(),r=(Cl=this.eyeSep/2)*El/wl,a=El*Math.tan(Xt.DEG2RAD*_l*.5)/Sl;Ll.elements[12]=-Cl,Al.elements[12]=Cl,t=-a*Ml+r,n=a*Ml+r,i.elements[0]=2*El/(n-t),i.elements[8]=(n+t)/(n-t),this.cameraL.projectionMatrix.copy(i),t=-a*Ml-r,n=a*Ml-r,i.elements[0]=2*El/(n-t),i.elements[8]=(n+t)/(n-t),this.cameraR.projectionMatrix.copy(i)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(Ll),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(Al)})}),Dl.prototype=Object.create(Fn.prototype),Dl.prototype.constructor=Dl,Object.assign(Il.prototype,{start:function(){this.startTime=("undefined"==typeof performance?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var t=("undefined"==typeof performance?Date:performance).now();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}),kl.prototype=Object.assign(Object.create(Fn.prototype),{constructor:kl,getInput:function(){return this.gain},removeFilter:function(){return null!==this.filter&&(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(e){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this},updateMatrixWorld:function(){var e=new Qt,t=new Kt,n=new Qt,i=new Qt,r=new Il;return function(a){Fn.prototype.updateMatrixWorld.call(this,a);var o=this.context.listener,s=this.up;if(this.timeDelta=r.getDelta(),this.matrixWorld.decompose(e,t,n),i.set(0,0,-1).applyQuaternion(t),o.positionX){var l=this.context.currentTime+this.timeDelta;o.positionX.linearRampToValueAtTime(e.x,l),o.positionY.linearRampToValueAtTime(e.y,l),o.positionZ.linearRampToValueAtTime(e.z,l),o.forwardX.linearRampToValueAtTime(i.x,l),o.forwardY.linearRampToValueAtTime(i.y,l),o.forwardZ.linearRampToValueAtTime(i.z,l),o.upX.linearRampToValueAtTime(s.x,l),o.upY.linearRampToValueAtTime(s.y,l),o.upZ.linearRampToValueAtTime(s.z,l)}else o.setPosition(e.x,e.y,e.z),o.setOrientation(i.x,i.y,i.z,s.x,s.y,s.z)}}()}),Nl.prototype=Object.assign(Object.create(Fn.prototype),{constructor:Nl,getOutput:function(){return this.gain},setNodeSource:function(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this},setMediaElementSource:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this},setBuffer:function(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(!0!==this.isPlaying){if(!1!==this.hasPlaybackControl){var e=this.context.createBufferSource();return e.buffer=this.buffer,e.loop=this.loop,e.onended=this.onEnded.bind(this),e.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,e.start(this.startTime,this.offset),this.isPlaying=!0,this.source=e,this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}else console.warn("THREE.Audio: Audio is already playing.")},pause:function(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")},stop:function(){if(!1!==this.hasPlaybackControl)return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")},connect:function(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(var e=1,t=this.filters.length;e<t;e++)this.filters[e-1].connect(this.filters[e]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(var e=1,t=this.filters.length;e<t;e++)this.filters[e-1].disconnect(this.filters[e]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(e){return e||(e=[]),!0===this.isPlaying?(this.disconnect(),this.filters=e,this.connect()):this.filters=e,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(e){return this.setFilters(e?[e]:[])},setPlaybackRate:function(e){if(!1!==this.hasPlaybackControl)return this.playbackRate=e,!0===this.isPlaying&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this;console.warn("THREE.Audio: this Audio has no playback control.")},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(e){if(!1!==this.hasPlaybackControl)return this.loop=e,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")},getVolume:function(){return this.gain.gain.value},setVolume:function(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}}),zl.prototype=Object.assign(Object.create(Nl.prototype),{constructor:zl,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(e){return this.panner.refDistance=e,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(e){return this.panner.rolloffFactor=e,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(e){return this.panner.distanceModel=e,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(e){return this.panner.maxDistance=e,this},setDirectionalCone:function(e,t,n){return this.panner.coneInnerAngle=e,this.panner.coneOuterAngle=t,this.panner.coneOuterGain=n,this},updateMatrixWorld:function(){var e=new Qt,t=new Kt,n=new Qt,i=new Qt;return function(r){Fn.prototype.updateMatrixWorld.call(this,r);var a=this.panner;if(this.matrixWorld.decompose(e,t,n),i.set(0,0,1).applyQuaternion(t),a.positionX){var o=this.context.currentTime+this.listener.timeDelta;a.positionX.linearRampToValueAtTime(e.x,o),a.positionY.linearRampToValueAtTime(e.y,o),a.positionZ.linearRampToValueAtTime(e.z,o),a.orientationX.linearRampToValueAtTime(i.x,o),a.orientationY.linearRampToValueAtTime(i.y,o),a.orientationZ.linearRampToValueAtTime(i.z,o)}else a.setPosition(e.x,e.y,e.z),a.setOrientation(i.x,i.y,i.z)}}()}),Object.assign(Fl.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var e=0,t=this.getFrequencyData(),n=0;n<t.length;n++)e+=t[n];return e/t.length}}),Object.assign(Bl.prototype,{accumulate:function(e,t){var n=this.buffer,i=this.valueSize,r=e*i+i,a=this.cumulativeWeight;if(0===a){for(var o=0;o!==i;++o)n[r+o]=n[o];a=t}else{var s=t/(a+=t);this._mixBufferRegion(n,r,0,s,i)}this.cumulativeWeight=a},apply:function(e){var t=this.valueSize,n=this.buffer,i=e*t+t,r=this.cumulativeWeight,a=this.binding;if(this.cumulativeWeight=0,r<1){var o=3*t;this._mixBufferRegion(n,i,o,1-r,t)}for(var s=t,l=t+t;s!==l;++s)if(n[s]!==n[s+t]){a.setValue(n,i);break}},saveOriginalState:function(){var e=this.binding,t=this.buffer,n=this.valueSize,i=3*n;e.getValue(t,i);for(var r=n,a=i;r!==a;++r)t[r]=t[i+r%n];this.cumulativeWeight=0},restoreOriginalState:function(){var e=3*this.valueSize;this.binding.setValue(this.buffer,e)},_select:function(e,t,n,i,r){if(i>=.5)for(var a=0;a!==r;++a)e[t+a]=e[n+a]},_slerp:function(e,t,n,i){Kt.slerpFlat(e,t,e,t,e,n,i)},_lerp:function(e,t,n,i,r){for(var a=1-i,o=0;o!==r;++o){var s=t+o;e[s]=e[s]*a+e[n+o]*i}}});var Hl,jl,Ul,Gl,Vl,Wl,$l,Yl,ql,Xl,Jl,Zl,Kl,Ql,ec;function tc(e,t,n){var i=n||nc.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}function nc(e,t,n){this.path=t,this.parsedPath=n||nc.parseTrackName(t),this.node=nc.findNode(e,this.parsedPath.nodeName)||e,this.rootNode=e}function ic(){this.uuid=Xt.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var e={};this._indicesByUUID=e;for(var t=0,n=arguments.length;t!==n;++t)e[arguments[t].uuid]=t;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var i=this;this.stats={objects:{get total(){return i._objects.length},get inUse(){return this.total-i.nCachedObjects_}},get bindingsPerObject(){return i._bindings.length}}}function rc(e,t,n){this._mixer=e,this._clip=t,this._localRoot=n||null;for(var i=t.tracks,r=i.length,a=new Array(r),o={endingStart:Ot,endingEnd:Ot},s=0;s!==r;++s){var l=i[s].createInterpolant(null);a[s]=l,l.settings=o}this._interpolantSettings=o,this._interpolants=a,this._propertyBindings=new Array(r),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=St,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}function ac(e){this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function oc(e){"string"==typeof e&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),e=arguments[1]),this.value=e}function sc(){ni.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function lc(e,t,n){aa.call(this,e,t),this.meshPerAttribute=n||1}function cc(e,t,n,i){"number"==typeof n&&(i=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),Gn.call(this,e,t,n),this.meshPerAttribute=i||1}function uc(e,t,n,i){this.ray=new _i(e,t),this.near=n||0,this.far=i||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 hc(e,t){return e.distance-t.distance}function dc(e,t,n,i){if(!1!==e.visible&&(e.raycast(t,n),!0===i))for(var r=e.children,a=0,o=r.length;a<o;a++)dc(r[a],t,n,!0)}function pc(e,t,n){return this.radius=void 0!==e?e:1,this.phi=void 0!==t?t:0,this.theta=void 0!==n?n:0,this}function fc(e,t,n){return this.radius=void 0!==e?e:1,this.theta=void 0!==t?t:0,this.y=void 0!==n?n:0,this}function mc(e,t){this.min=void 0!==e?e:new Jt(1/0,1/0),this.max=void 0!==t?t:new Jt(-1/0,-1/0)}function vc(e,t){this.start=void 0!==e?e:new Qt,this.end=void 0!==t?t:new Qt}function gc(e){Fn.call(this),this.material=e,this.render=function(){}}function yc(e,t,n,i){this.object=e,this.size=void 0!==t?t:1;var r=void 0!==n?n:16711680,a=void 0!==i?i:1,o=0,s=this.object.geometry;s&&s.isGeometry?o=3*s.faces.length:s&&s.isBufferGeometry&&(o=s.attributes.normal.count);var l=new ni,c=new Zn(2*o*3,3);l.addAttribute("position",c),ma.call(this,l,new pa({color:r,linewidth:a})),this.matrixAutoUpdate=!1,this.update()}function bc(e,t){Fn.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t;for(var n=new ni,i=[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],r=0,a=1;r<32;r++,a++){var o=r/32*Math.PI*2,s=a/32*Math.PI*2;i.push(Math.cos(o),Math.sin(o),1,Math.cos(s),Math.sin(s),1)}n.addAttribute("position",new Zn(i,3));var l=new pa({fog:!1});this.cone=new ma(n,l),this.add(this.cone),this.update()}function xc(e){for(var t=function e(t){var n=[];t&&t.isBone&&n.push(t);for(var i=0;i<t.children.length;i++)n.push.apply(n,e(t.children[i]));return n}(e),n=new ni,i=[],r=[],a=new En(0,0,1),o=new En(0,1,0),s=0;s<t.length;s++){var l=t[s];l.parent&&l.parent.isBone&&(i.push(0,0,0),i.push(0,0,0),r.push(a.r,a.g,a.b),r.push(o.r,o.g,o.b))}n.addAttribute("position",new Zn(i,3)),n.addAttribute("color",new Zn(r,3));var c=new pa({vertexColors:D,depthTest:!1,depthWrite:!1,transparent:!0});ma.call(this,n,c),this.root=e,this.bones=t,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1}function wc(e,t,n){this.light=e,this.light.updateMatrixWorld(),this.color=n;var i=new wo(t,4,2),r=new Ei({wireframe:!0,fog:!1});Ti.call(this,i,r),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}function _c(e,t){Fn.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t;var n=new pa({fog:!1}),i=new ni;i.addAttribute("position",new Gn(new Float32Array(15),3)),this.line=new fa(i,n),this.add(this.line),this.update()}function Mc(e,t,n){Fn.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;var i=new Oa(t);i.rotateY(.5*Math.PI),this.material=new Ei({wireframe:!0,fog:!1}),void 0===this.color&&(this.material.vertexColors=D);var r=i.getAttribute("position"),a=new Float32Array(3*r.count);i.addAttribute("color",new Gn(a,3)),this.add(new Ti(i,this.material)),this.update()}function Ec(e,t,n,i){e=e||10,t=t||10,n=new En(void 0!==n?n:4473924),i=new En(void 0!==i?i:8947848);for(var r=t/2,a=e/t,o=e/2,s=[],l=[],c=0,u=0,h=-o;c<=t;c++,h+=a){s.push(-o,0,h,o,0,h),s.push(h,0,-o,h,0,o);var d=c===r?n:i;d.toArray(l,u),u+=3,d.toArray(l,u),u+=3,d.toArray(l,u),u+=3,d.toArray(l,u),u+=3}var p=new ni;p.addAttribute("position",new Zn(s,3)),p.addAttribute("color",new Zn(l,3));var f=new pa({vertexColors:D});ma.call(this,p,f)}function Tc(e,t,n,i,r,a){e=e||10,t=t||16,n=n||8,i=i||64,r=new En(void 0!==r?r:4473924),a=new En(void 0!==a?a:8947848);var o,s,l,c,u,h,d,p=[],f=[];for(c=0;c<=t;c++)l=c/t*(2*Math.PI),o=Math.sin(l)*e,s=Math.cos(l)*e,p.push(0,0,0),p.push(o,0,s),d=1&c?r:a,f.push(d.r,d.g,d.b),f.push(d.r,d.g,d.b);for(c=0;c<=n;c++)for(d=1&c?r:a,h=e-e/n*c,u=0;u<i;u++)l=u/i*(2*Math.PI),o=Math.sin(l)*h,s=Math.cos(l)*h,p.push(o,0,s),f.push(d.r,d.g,d.b),l=(u+1)/i*(2*Math.PI),o=Math.sin(l)*h,s=Math.cos(l)*h,p.push(o,0,s),f.push(d.r,d.g,d.b);var m=new ni;m.addAttribute("position",new Zn(p,3)),m.addAttribute("color",new Zn(f,3));var v=new pa({vertexColors:D});ma.call(this,m,v)}function Sc(e,t,n,i){this.object=e,this.size=void 0!==t?t:1;var r=void 0!==n?n:16776960,a=void 0!==i?i:1,o=0,s=this.object.geometry;s&&s.isGeometry?o=s.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead.");var l=new ni,c=new Zn(2*o*3,3);l.addAttribute("position",c),ma.call(this,l,new pa({color:r,linewidth:a})),this.matrixAutoUpdate=!1,this.update()}function Cc(e,t,n){Fn.call(this),this.light=e,this.light.updateMatrixWorld(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===t&&(t=1);var i=new ni;i.addAttribute("position",new Zn([-t,t,0,t,t,0,t,-t,0,-t,-t,0,-t,t,0],3));var r=new pa({fog:!1});this.lightPlane=new fa(i,r),this.add(this.lightPlane),(i=new ni).addAttribute("position",new Zn([0,0,0,0,0,1],3)),this.targetLine=new fa(i,r),this.add(this.targetLine),this.update()}function Ac(e){var t=new ni,n=new pa({color:16777215,vertexColors:R}),i=[],r=[],a={},o=new En(16755200),s=new En(16711680),l=new En(43775),c=new En(16777215),u=new En(3355443);function h(e,t,n){d(e,n),d(t,n)}function d(e,t){i.push(0,0,0),r.push(t.r,t.g,t.b),void 0===a[e]&&(a[e]=[]),a[e].push(i.length/3-1)}h("n1","n2",o),h("n2","n4",o),h("n4","n3",o),h("n3","n1",o),h("f1","f2",o),h("f2","f4",o),h("f4","f3",o),h("f3","f1",o),h("n1","f1",o),h("n2","f2",o),h("n3","f3",o),h("n4","f4",o),h("p","n1",s),h("p","n2",s),h("p","n3",s),h("p","n4",s),h("u1","u2",l),h("u2","u3",l),h("u3","u1",l),h("c","t",c),h("p","c",u),h("cn1","cn2",u),h("cn3","cn4",u),h("cf1","cf2",u),h("cf3","cf4",u),t.addAttribute("position",new Zn(i,3)),t.addAttribute("color",new Zn(r,3)),ma.call(this,t,n),this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=a,this.update()}function Lc(e,t){this.object=e,void 0===t&&(t=16776960);var n=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]),i=new Float32Array(24),r=new ni;r.setIndex(new Gn(n,1)),r.addAttribute("position",new Gn(i,3)),ma.call(this,r,new pa({color:t})),this.matrixAutoUpdate=!1,this.update()}function Pc(e,t){this.type="Box3Helper",this.box=e;var n=void 0!==t?t:16776960,i=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]),r=new ni;r.setIndex(new Gn(i,1)),r.addAttribute("position",new Zn([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)),ma.call(this,r,new pa({color:n})),this.geometry.computeBoundingSphere()}function Oc(e,t,n){this.type="PlaneHelper",this.plane=e,this.size=void 0===t?1:t;var i=void 0!==n?n:16776960,r=new ni;r.addAttribute("position",new Zn([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)),r.computeBoundingSphere(),fa.call(this,r,new pa({color:i}));var a=new ni;a.addAttribute("position",new Zn([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),a.computeBoundingSphere(),this.add(new Ti(a,new Ei({color:i,opacity:.2,transparent:!0,depthWrite:!1})))}function Rc(e,t,n,i,r,a){Fn.call(this),void 0===e&&(e=new THREE.Vector3(0,0,1)),void 0===t&&(t=new THREE.Vector3(0,0,0)),void 0===n&&(n=1),void 0===i&&(i=16776960),void 0===r&&(r=.2*n),void 0===a&&(a=.2*r),void 0===Zl&&((Zl=new ni).addAttribute("position",new Zn([0,0,0,0,1,0],3)),(Kl=new Oo(0,.5,1,5,1)).translate(0,-.5,0)),this.position.copy(t),this.line=new fa(Zl,new pa({color:i})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Ti(Kl,new Ei({color:i})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(n,r,a)}function Dc(e){var t=[0,0,0,e=e||1,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new ni;n.addAttribute("position",new Zn(t,3)),n.addAttribute("color",new Zn([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));var i=new pa({vertexColors:D});ma.call(this,n,i)}function Ic(e,t,n,i,r,a,o){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new Pn(e,t,n,r,a,o)}Object.assign(tc.prototype,{getValue:function(e,t){this.bind();var n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(e,t)},setValue:function(e,t){for(var n=this._bindings,i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(e,t)},bind:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()},unbind:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}),Object.assign(nc,{Composite:tc,create:function(e,t,n){return e&&e.isAnimationObjectGroup?new nc.Composite(e,t,n):new nc(e,t,n)},sanitizeNodeName:(ql=new RegExp("[\\[\\]\\.:\\/]","g"),function(e){return e.replace(/\s/g,"_").replace(ql,"")}),parseTrackName:(Hl="[^\\[\\]\\.:\\/]",jl="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",Ul=/((?:WC+[\/:])*)/.source.replace("WC",Hl),Gl=/(WCOD+)?/.source.replace("WCOD",jl),Vl=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Hl),Wl=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Hl),$l=new RegExp("^"+Ul+Gl+Vl+Wl+"$"),Yl=["material","materials","bones"],function(e){var t=$l.exec(e);if(!t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);var n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){var r=n.nodeName.substring(i+1);-1!==Yl.indexOf(r)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=r)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}),findNode:function(e,t){if(!t||""===t||"root"===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){var n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){var i=function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.name===t||r.uuid===t)return r;var a=i(r.children);if(a)return a}return null},r=i(e.children);if(r)return r}return null}}),Object.assign(nc.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(e,t){e[t]=this.node[this.propertyName]},function(e,t){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)e[t++]=n[i]},function(e,t){e[t]=this.resolvedProperty[this.propertyIndex]},function(e,t){this.resolvedProperty.toArray(e,t)}],SetterByBindingTypeAndVersioning:[[function(e,t){this.targetObject[this.propertyName]=e[t]},function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0},function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=e[t++]},function(e,t){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.needsUpdate=!0},function(e,t){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){this.resolvedProperty[this.propertyIndex]=e[t]},function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0},function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(e,t){this.resolvedProperty.fromArray(e,t)},function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0},function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(e,t){this.bind(),this.getValue(e,t)},setValue:function(e,t){this.bind(),this.setValue(e,t)},bind:function(){var e=this.node,t=this.parsedPath,n=t.objectName,i=t.propertyName,r=t.propertyIndex;if(e||(e=nc.findNode(this.rootNode,t.nodeName)||this.rootNode,this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,e){if(n){var a=t.objectIndex;switch(n){case"materials":if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!e.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);e=e.material.materials;break;case"bones":if(!e.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);e=e.skeleton.bones;for(var o=0;o<e.length;o++)if(e[o].name===a){a=o;break}break;default:if(void 0===e[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);e=e[n]}if(void 0!==a){if(void 0===e[a])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);e=e[a]}}var s=e[i];if(void 0!==s){var l=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?l=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(l=this.Versioning.MatrixWorldNeedsUpdate);var c=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!e.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(e.geometry.isBufferGeometry){if(!e.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);for(o=0;o<this.node.geometry.morphAttributes.position.length;o++)if(e.geometry.morphAttributes.position[o].name===r){r=o;break}}else{if(!e.geometry.morphTargets)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);for(o=0;o<this.node.geometry.morphTargets.length;o++)if(e.geometry.morphTargets[o].name===r){r=o;break}}}c=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=r}else void 0!==s.fromArray&&void 0!==s.toArray?(c=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(c=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][l]}else{var u=t.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+u+"."+i+" but it wasn't found.",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}}),
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(nc.prototype,{_getValue_unbound:nc.prototype.getValue,_setValue_unbound:nc.prototype.setValue}),Object.assign(ic.prototype,{isAnimationObjectGroup:!0,add:function(){for(var e=this._objects,t=e.length,n=this.nCachedObjects_,i=this._indicesByUUID,r=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length,l=void 0,c=0,u=arguments.length;c!==u;++c){var h=arguments[c],d=h.uuid,p=i[d];if(void 0===p){p=t++,i[d]=p,e.push(h);for(var f=0,m=s;f!==m;++f)o[f].push(new nc(h,r[f],a[f]))}else if(p<n){l=e[p];var v=--n,g=e[v];i[g.uuid]=p,e[p]=g,i[d]=v,e[v]=h;for(f=0,m=s;f!==m;++f){var y=o[f],b=y[v],x=y[p];y[p]=b,void 0===x&&(x=new nc(h,r[f],a[f])),y[v]=x}}else e[p]!==l&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=n},remove:function(){for(var e=this._objects,t=this.nCachedObjects_,n=this._indicesByUUID,i=this._bindings,r=i.length,a=0,o=arguments.length;a!==o;++a){var s=arguments[a],l=s.uuid,c=n[l];if(void 0!==c&&c>=t){var u=t++,h=e[u];n[h.uuid]=c,e[c]=h,n[l]=u,e[u]=s;for(var d=0,p=r;d!==p;++d){var f=i[d],m=f[u],v=f[c];f[c]=m,f[u]=v}}}this.nCachedObjects_=t},uncache:function(){for(var e=this._objects,t=e.length,n=this.nCachedObjects_,i=this._indicesByUUID,r=this._bindings,a=r.length,o=0,s=arguments.length;o!==s;++o){var l=arguments[o].uuid,c=i[l];if(void 0!==c)if(delete i[l],c<n){var u=--n,h=e[u],d=e[g=--t];i[h.uuid]=c,e[c]=h,i[d.uuid]=u,e[u]=d,e.pop();for(var p=0,f=a;p!==f;++p){var m=(y=r[p])[u],v=y[g];y[c]=m,y[u]=v,y.pop()}}else{var g;i[(d=e[g=--t]).uuid]=c,e[c]=d,e.pop();for(p=0,f=a;p!==f;++p){var y;(y=r[p])[c]=y[g],y.pop()}}}this.nCachedObjects_=n},subscribe_:function(e,t){var n=this._bindingsIndicesByPath,i=n[e],r=this._bindings;if(void 0!==i)return r[i];var a=this._paths,o=this._parsedPaths,s=this._objects,l=s.length,c=this.nCachedObjects_,u=new Array(l);i=r.length,n[e]=i,a.push(e),o.push(t),r.push(u);for(var h=c,d=s.length;h!==d;++h){var p=s[h];u[h]=new nc(p,e,t)}return u},unsubscribe_:function(e){var t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){var i=this._paths,r=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o];t[e[o]]=n,a[n]=s,a.pop(),r[n]=r[o],r.pop(),i[n]=i[o],i.pop()}}}),Object.assign(rc.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&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(e){return this._startTime=e,this},setLoop:function(e,t){return this.loop=e,this.repetitions=t,this},setEffectiveWeight:function(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(e){return this._scheduleFading(e,0,1)},fadeOut:function(e){return this._scheduleFading(e,1,0)},crossFadeFrom:function(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){var i=this._clip.duration,r=e._clip.duration,a=r/i,o=i/r;e.warp(1,a,t),this.warp(o,1,t)}return this},crossFadeTo:function(e,t,n){return e.crossFadeFrom(this,t,n)},stopFading:function(){var e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this},setEffectiveTimeScale:function(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(e){return this.timeScale=this._clip.duration/e,this.stopWarping()},syncWith:function(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()},halt:function(e){return this.warp(this._effectiveTimeScale,0,e)},warp:function(e,t,n){var i=this._mixer,r=i.time,a=this._timeScaleInterpolant,o=this.timeScale;null===a&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);var s=a.parameterPositions,l=a.sampleValues;return s[0]=r,s[1]=r+n,l[0]=e/o,l[1]=t/o,this},stopWarping:function(){var e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(e,t,n,i){if(this.enabled){var r=this._startTime;if(null!==r){var a=(e-r)*n;if(a<0||0===n)return;this._startTime=null,t=n*a}t*=this._updateTimeScale(e);var o=this._updateTime(t),s=this._updateWeight(e);if(s>0)for(var l=this._interpolants,c=this._propertyBindings,u=0,h=l.length;u!==h;++u)l[u].evaluate(o),c[u].accumulate(i,s)}else this._updateWeight(e)},_updateWeight:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=t,t},_updateTimeScale:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n)t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}return this._effectiveTimeScale=t,t},_updateTime:function(e){var t=this.time+e,n=this._clip.duration,i=this.loop,r=this._loopCount,a=i===Ct;if(0===e)return-1===r?t:a&&1==(1&r)?n-t:t;if(i===Tt){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(t>=n)t=n;else{if(!(t<0))break e;t=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===r&&(e>=0?(r=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),t>=n||t<0){var o=Math.floor(t/n);t-=n*o,r+=Math.abs(o);var s=this.repetitions-r;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,t=e>0?n:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){var l=e<0;this._setEndings(l,!l,a)}else this._setEndings(!1,!1,a);this._loopCount=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:o})}}if(a&&1==(1&r))return this.time=t,n-t}return this.time=t,t},_setEndings:function(e,t,n){var i=this._interpolantSettings;n?(i.endingStart=Rt,i.endingEnd=Rt):(i.endingStart=e?this.zeroSlopeAtStart?Rt:Ot:Dt,i.endingEnd=t?this.zeroSlopeAtEnd?Rt:Ot:Dt)},_scheduleFading:function(e,t,n){var i=this._mixer,r=i.time,a=this._weightInterpolant;null===a&&(a=i._lendControlInterpolant(),this._weightInterpolant=a);var o=a.parameterPositions,s=a.sampleValues;return o[0]=r,s[0]=t,o[1]=r+e,s[1]=n,this}}),ac.prototype=Object.assign(Object.create(i.prototype),{constructor:ac,_bindAction:function(e,t){var n=e._localRoot||this._root,i=e._clip.tracks,r=i.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName,c=l[s];void 0===c&&(c={},l[s]=c);for(var u=0;u!==r;++u){var h=i[u],d=h.name,p=c[d];if(void 0!==p)a[u]=p;else{if(void 0!==(p=a[u])){null===p._cacheIndex&&(++p.referenceCount,this._addInactiveBinding(p,s,d));continue}var f=t&&t._propertyBindings[u].binding.parsedPath;++(p=new Bl(nc.create(n,d,f),h.ValueTypeName,h.getValueSize())).referenceCount,this._addInactiveBinding(p,s,d),a[u]=p}o[u].resultBuffer=p.buffer}},_activateAction:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,i=this._actionsByClip[n];this._bindAction(e,i&&i.knownActions[0]),this._addInactiveAction(e,n,t)}for(var r=e._propertyBindings,a=0,o=r.length;a!==o;++a){var s=r[a];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}},_deactivateAction:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,i=t.length;n!==i;++n){var r=t[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(e)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}},_isActiveAction:function(e){var t=e._cacheIndex;return null!==t&&t<this._nActiveActions},_addInactiveAction:function(e,t,n){var i=this._actions,r=this._actionsByClip,a=r[t];if(void 0===a)a={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,r[t]=a;else{var o=a.knownActions;e._byClipCacheIndex=o.length,o.push(e)}e._cacheIndex=i.length,i.push(e),a.actionByRoot[n]=e},_removeInactiveAction:function(e){var t=this._actions,n=t[t.length-1],i=e._cacheIndex;n._cacheIndex=i,t[i]=n,t.pop(),e._cacheIndex=null;var r=e._clip.uuid,a=this._actionsByClip,o=a[r],s=o.knownActions,l=s[s.length-1],c=e._byClipCacheIndex;l._byClipCacheIndex=c,s[c]=l,s.pop(),e._byClipCacheIndex=null,delete o.actionByRoot[(e._localRoot||this._root).uuid],0===s.length&&delete a[r],this._removeInactiveBindingsForAction(e)},_removeInactiveBindingsForAction:function(e){for(var t=e._propertyBindings,n=0,i=t.length;n!==i;++n){var r=t[n];0==--r.referenceCount&&this._removeInactiveBinding(r)}},_lendAction:function(e){var t=this._actions,n=e._cacheIndex,i=this._nActiveActions++,r=t[i];e._cacheIndex=i,t[i]=e,r._cacheIndex=n,t[n]=r},_takeBackAction:function(e){var t=this._actions,n=e._cacheIndex,i=--this._nActiveActions,r=t[i];e._cacheIndex=i,t[i]=e,r._cacheIndex=n,t[n]=r},_addInactiveBinding:function(e,t,n){var i=this._bindingsByRootAndName,r=i[t],a=this._bindings;void 0===r&&(r={},i[t]=r),r[n]=e,e._cacheIndex=a.length,a.push(e)},_removeInactiveBinding:function(e){var t=this._bindings,n=e.binding,i=n.rootNode.uuid,r=n.path,a=this._bindingsByRootAndName,o=a[i],s=t[t.length-1],l=e._cacheIndex;s._cacheIndex=l,t[l]=s,t.pop(),delete o[r];e:{for(var c in o)break e;delete a[i]}},_lendBinding:function(e){var t=this._bindings,n=e._cacheIndex,i=this._nActiveBindings++,r=t[i];e._cacheIndex=i,t[i]=e,r._cacheIndex=n,t[n]=r},_takeBackBinding:function(e){var t=this._bindings,n=e._cacheIndex,i=--this._nActiveBindings,r=t[i];e._cacheIndex=i,t[i]=e,r._cacheIndex=n,t[n]=r},_lendControlInterpolant:function(){var e=this._controlInterpolants,t=this._nActiveControlInterpolants++,n=e[t];return void 0===n&&((n=new Zo(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=t,e[t]=n),n},_takeBackControlInterpolant:function(e){var t=this._controlInterpolants,n=e.__cacheIndex,i=--this._nActiveControlInterpolants,r=t[i];e.__cacheIndex=i,t[i]=e,r.__cacheIndex=n,t[n]=r},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(e,t){var n=t||this._root,i=n.uuid,r="string"==typeof e?ss.findByName(n,e):e,a=null!==r?r.uuid:e,o=this._actionsByClip[a],s=null;if(void 0!==o){var l=o.actionByRoot[i];if(void 0!==l)return l;s=o.knownActions[0],null===r&&(r=s._clip)}if(null===r)return null;var c=new rc(this,r,t);return this._bindAction(c,s),this._addInactiveAction(c,a,i),c},existingAction:function(e,t){var n=t||this._root,i=n.uuid,r="string"==typeof e?ss.findByName(n,e):e,a=r?r.uuid:e,o=this._actionsByClip[a];return void 0!==o&&o.actionByRoot[i]||null},stopAllAction:function(){var e=this._actions,t=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var r=0;r!==t;++r)e[r].reset();for(r=0;r!==i;++r)n[r].useCount=0;return this},update:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,i=this.time+=e,r=Math.sign(e),a=this._accuIndex^=1,o=0;o!==n;++o){t[o]._update(i,e,r,a)}var s=this._bindings,l=this._nActiveBindings;for(o=0;o!==l;++o)s[o].apply(a);return this},getRoot:function(){return this._root},uncacheClip:function(e){var t=this._actions,n=e.uuid,i=this._actionsByClip,r=i[n];if(void 0!==r){for(var a=r.knownActions,o=0,s=a.length;o!==s;++o){var l=a[o];this._deactivateAction(l);var c=l._cacheIndex,u=t[t.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,u._cacheIndex=c,t[c]=u,t.pop(),this._removeInactiveBindingsForAction(l)}delete i[n]}},uncacheRoot:function(e){var t=e.uuid,n=this._actionsByClip;for(var i in n){var r=n[i].actionByRoot[t];void 0!==r&&(this._deactivateAction(r),this._removeInactiveAction(r))}var a=this._bindingsByRootAndName[t];if(void 0!==a)for(var o in a){var s=a[o];s.restoreOriginalState(),this._removeInactiveBinding(s)}},uncacheAction:function(e,t){var n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}),oc.prototype.clone=function(){return new oc(void 0===this.value.clone?this.value:this.value.clone())},sc.prototype=Object.assign(Object.create(ni.prototype),{constructor:sc,isInstancedBufferGeometry:!0,copy:function(e){return ni.prototype.copy.call(this,e),this.maxInstancedCount=e.maxInstancedCount,this},clone:function(){return(new this.constructor).copy(this)}}),lc.prototype=Object.assign(Object.create(aa.prototype),{constructor:lc,isInstancedInterleavedBuffer:!0,copy:function(e){return aa.prototype.copy.call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}}),cc.prototype=Object.assign(Object.create(Gn.prototype),{constructor:cc,isInstancedBufferAttribute:!0,copy:function(e){return Gn.prototype.copy.call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}}),Object.assign(uc.prototype,{linePrecision:1,set:function(e,t){this.ray.set(e,t)},setFromCamera:function(e,t){t&&t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize()):t&&t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(e,t,n){var i=n||[];return dc(e,this,i,t),i.sort(hc),i},intersectObjects:function(e,t,n){var i=n||[];if(!1===Array.isArray(e))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),i;for(var r=0,a=e.length;r<a;r++)dc(e[r],this,i,t);return i.sort(hc),i}}),Object.assign(pc.prototype,{set:function(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(e){return this.setFromCartesianCoords(e.x,e.y,e.z)},setFromCartesianCoords:function(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(Xt.clamp(t/this.radius,-1,1))),this}}),Object.assign(fc.prototype,{set:function(e,t,n){return this.radius=e,this.theta=t,this.y=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.radius=e.radius,this.theta=e.theta,this.y=e.y,this},setFromVector3:function(e){return this.setFromCartesianCoords(e.x,e.y,e.z)},setFromCartesianCoords:function(e,t,n){return this.radius=Math.sqrt(e*e+n*n),this.theta=Math.atan2(e,n),this.y=t,this}}),Object.assign(mc.prototype,{set:function(e,t){return this.min.copy(e),this.max.copy(t),this},setFromPoints:function(e){this.makeEmpty();for(var t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this},setFromCenterAndSize:function(){var e=new Jt;return function(t,n){var i=e.copy(n).multiplyScalar(.5);return this.min.copy(t).sub(i),this.max.copy(t).add(i),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.min.copy(e.min),this.max.copy(e.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(e){return void 0===e&&(console.warn("THREE.Box2: .getCenter() target is now required"),e=new Jt),this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(e){return void 0===e&&(console.warn("THREE.Box2: .getSize() target is now required"),e=new Jt),this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)},expandByPoint:function(e){return this.min.min(e),this.max.max(e),this},expandByVector:function(e){return this.min.sub(e),this.max.add(e),this},expandByScalar:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this},containsPoint:function(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)},containsBox:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y},getParameter:function(e,t){return void 0===t&&(console.warn("THREE.Box2: .getParameter() target is now required"),t=new Jt),t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y)},clampPoint:function(e,t){return void 0===t&&(console.warn("THREE.Box2: .clampPoint() target is now required"),t=new Jt),t.copy(e).clamp(this.min,this.max)},distanceToPoint:function(){var e=new Jt;return function(t){return e.copy(t).clamp(this.min,this.max).sub(t).length()}}(),intersect:function(e){return this.min.max(e.min),this.max.min(e.max),this},union:function(e){return this.min.min(e.min),this.max.max(e.max),this},translate:function(e){return this.min.add(e),this.max.add(e),this},equals:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}),Object.assign(vc.prototype,{set:function(e,t){return this.start.copy(e),this.end.copy(t),this},clone:function(){return(new this.constructor).copy(this)},copy:function(e){return this.start.copy(e.start),this.end.copy(e.end),this},getCenter:function(e){return void 0===e&&(console.warn("THREE.Line3: .getCenter() target is now required"),e=new Qt),e.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(e){return void 0===e&&(console.warn("THREE.Line3: .delta() target is now required"),e=new Qt),e.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(e,t){return void 0===t&&(console.warn("THREE.Line3: .at() target is now required"),t=new Qt),this.delta(t).multiplyScalar(e).add(this.start)},closestPointToPointParameter:(Xl=new Qt,Jl=new Qt,function(e,t){Xl.subVectors(e,this.start),Jl.subVectors(this.end,this.start);var n=Jl.dot(Jl),i=Jl.dot(Xl)/n;return t&&(i=Xt.clamp(i,0,1)),i}),closestPointToPoint:function(e,t,n){var i=this.closestPointToPointParameter(e,t);return void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new Qt),this.delta(n).multiplyScalar(i).add(this.start)},applyMatrix4:function(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this},equals:function(e){return e.start.equals(this.start)&&e.end.equals(this.end)}}),gc.prototype=Object.create(Fn.prototype),gc.prototype.constructor=gc,gc.prototype.isImmediateRenderObject=!0,yc.prototype=Object.create(ma.prototype),yc.prototype.constructor=yc,yc.prototype.update=function(){var e=new Qt,t=new Qt,n=new en;return function(){var i=["a","b","c"];this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);var r=this.object.matrixWorld,a=this.geometry.attributes.position,o=this.object.geometry;if(o&&o.isGeometry)for(var s=o.vertices,l=o.faces,c=0,u=0,h=l.length;u<h;u++)for(var d=l[u],p=0,f=d.vertexNormals.length;p<f;p++){var m=s[d[i[p]]],v=d.vertexNormals[p];e.copy(m).applyMatrix4(r),t.copy(v).applyMatrix3(n).normalize().multiplyScalar(this.size).add(e),a.setXYZ(c,e.x,e.y,e.z),c+=1,a.setXYZ(c,t.x,t.y,t.z),c+=1}else if(o&&o.isBufferGeometry){var g=o.attributes.position,y=o.attributes.normal;for(c=0,p=0,f=g.count;p<f;p++)e.set(g.getX(p),g.getY(p),g.getZ(p)).applyMatrix4(r),t.set(y.getX(p),y.getY(p),y.getZ(p)),t.applyMatrix3(n).normalize().multiplyScalar(this.size).add(e),a.setXYZ(c,e.x,e.y,e.z),c+=1,a.setXYZ(c,t.x,t.y,t.z),c+=1}a.needsUpdate=!0}}(),bc.prototype=Object.create(Fn.prototype),bc.prototype.constructor=bc,bc.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},bc.prototype.update=function(){var e=new Qt,t=new Qt;return function(){this.light.updateMatrixWorld();var n=this.light.distance?this.light.distance:1e3,i=n*Math.tan(this.light.angle);this.cone.scale.set(i,i,n),e.setFromMatrixPosition(this.light.matrixWorld),t.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(t.sub(e)),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),xc.prototype=Object.create(ma.prototype),xc.prototype.constructor=xc,xc.prototype.updateMatrixWorld=function(){var e=new Qt,t=new Zt,n=new Zt;return function(i){var r=this.bones,a=this.geometry,o=a.getAttribute("position");n.getInverse(this.root.matrixWorld);for(var s=0,l=0;s<r.length;s++){var c=r[s];c.parent&&c.parent.isBone&&(t.multiplyMatrices(n,c.matrixWorld),e.setFromMatrixPosition(t),o.setXYZ(l,e.x,e.y,e.z),t.multiplyMatrices(n,c.parent.matrixWorld),e.setFromMatrixPosition(t),o.setXYZ(l+1,e.x,e.y,e.z),l+=2)}a.getAttribute("position").needsUpdate=!0,Fn.prototype.updateMatrixWorld.call(this,i)}}(),wc.prototype=Object.create(Ti.prototype),wc.prototype.constructor=wc,wc.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},wc.prototype.update=function(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)},_c.prototype=Object.create(Fn.prototype),_c.prototype.constructor=_c,_c.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},_c.prototype.update=function(){var e=.5*this.light.width,t=.5*this.light.height,n=this.line.geometry.attributes.position,i=n.array;i[0]=e,i[1]=-t,i[2]=0,i[3]=e,i[4]=t,i[5]=0,i[6]=-e,i[7]=t,i[8]=0,i[9]=-e,i[10]=-t,i[11]=0,i[12]=e,i[13]=-t,i[14]=0,n.needsUpdate=!0,void 0!==this.color?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},Mc.prototype=Object.create(Fn.prototype),Mc.prototype.constructor=Mc,Mc.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},Mc.prototype.update=function(){var e=new Qt,t=new En,n=new En;return function(){var i=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{var r=i.geometry.getAttribute("color");t.copy(this.light.color),n.copy(this.light.groundColor);for(var a=0,o=r.count;a<o;a++){var s=a<o/2?t:n;r.setXYZ(a,s.r,s.g,s.b)}r.needsUpdate=!0}i.lookAt(e.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),Ec.prototype=Object.create(ma.prototype),Ec.prototype.constructor=Ec,Tc.prototype=Object.create(ma.prototype),Tc.prototype.constructor=Tc,Sc.prototype=Object.create(ma.prototype),Sc.prototype.constructor=Sc,Sc.prototype.update=function(){var e=new Qt,t=new Qt,n=new en;return function(){this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);for(var i=this.object.matrixWorld,r=this.geometry.attributes.position,a=this.object.geometry,o=a.vertices,s=a.faces,l=0,c=0,u=s.length;c<u;c++){var h=s[c],d=h.normal;e.copy(o[h.a]).add(o[h.b]).add(o[h.c]).divideScalar(3).applyMatrix4(i),t.copy(d).applyMatrix3(n).normalize().multiplyScalar(this.size).add(e),r.setXYZ(l,e.x,e.y,e.z),l+=1,r.setXYZ(l,t.x,t.y,t.z),l+=1}r.needsUpdate=!0}}(),Cc.prototype=Object.create(Fn.prototype),Cc.prototype.constructor=Cc,Cc.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},Cc.prototype.update=function(){var e=new Qt,t=new Qt,n=new Qt;return function(){e.setFromMatrixPosition(this.light.matrixWorld),t.setFromMatrixPosition(this.light.target.matrixWorld),n.subVectors(t,e),this.lightPlane.lookAt(n),void 0!==this.color?(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(n),this.targetLine.scale.z=n.length()}}(),Ac.prototype=Object.create(ma.prototype),Ac.prototype.constructor=Ac,Ac.prototype.update=function(){var e,t,n=new Qt,i=new Ur;function r(r,a,o,s){n.set(a,o,s).unproject(i);var l=t[r];if(void 0!==l)for(var c=e.getAttribute("position"),u=0,h=l.length;u<h;u++)c.setXYZ(l[u],n.x,n.y,n.z)}return function(){e=this.geometry,t=this.pointMap;i.projectionMatrix.copy(this.camera.projectionMatrix),r("c",0,0,-1),r("t",0,0,1),r("n1",-1,-1,-1),r("n2",1,-1,-1),r("n3",-1,1,-1),r("n4",1,1,-1),r("f1",-1,-1,1),r("f2",1,-1,1),r("f3",-1,1,1),r("f4",1,1,1),r("u1",.7,1.1,-1),r("u2",-.7,1.1,-1),r("u3",0,2,-1),r("cf1",-1,0,1),r("cf2",1,0,1),r("cf3",0,-1,1),r("cf4",0,1,1),r("cn1",-1,0,-1),r("cn2",1,0,-1),r("cn3",0,-1,-1),r("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),Lc.prototype=Object.create(ma.prototype),Lc.prototype.constructor=Lc,Lc.prototype.update=function(){var e=new fn;return function(t){if(void 0!==t&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&e.setFromObject(this.object),!e.isEmpty()){var n=e.min,i=e.max,r=this.geometry.attributes.position,a=r.array;a[0]=i.x,a[1]=i.y,a[2]=i.z,a[3]=n.x,a[4]=i.y,a[5]=i.z,a[6]=n.x,a[7]=n.y,a[8]=i.z,a[9]=i.x,a[10]=n.y,a[11]=i.z,a[12]=i.x,a[13]=i.y,a[14]=n.z,a[15]=n.x,a[16]=i.y,a[17]=n.z,a[18]=n.x,a[19]=n.y,a[20]=n.z,a[21]=i.x,a[22]=n.y,a[23]=n.z,r.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),Lc.prototype.setFromObject=function(e){return this.object=e,this.update(),this},Lc.prototype.copy=function(e){return ma.prototype.copy.call(this,e),this.object=e.object,this},Lc.prototype.clone=function(){return(new this.constructor).copy(this)},Pc.prototype=Object.create(ma.prototype),Pc.prototype.constructor=Pc,Pc.prototype.updateMatrixWorld=function(e){var t=this.box;t.isEmpty()||(t.getCenter(this.position),t.getSize(this.scale),this.scale.multiplyScalar(.5),Fn.prototype.updateMatrixWorld.call(this,e))},Oc.prototype=Object.create(fa.prototype),Oc.prototype.constructor=Oc,Oc.prototype.updateMatrixWorld=function(e){var t=-this.plane.constant;Math.abs(t)<1e-8&&(t=1e-8),this.scale.set(.5*this.size,.5*this.size,t),this.children[0].material.side=t<0?C:S,this.lookAt(this.plane.normal),Fn.prototype.updateMatrixWorld.call(this,e)},Rc.prototype=Object.create(Fn.prototype),Rc.prototype.constructor=Rc,Rc.prototype.setDirection=(ec=new Qt,function(e){e.y>.99999?this.quaternion.set(0,0,0,1):e.y<-.99999?this.quaternion.set(1,0,0,0):(ec.set(e.z,0,-e.x).normalize(),Ql=Math.acos(e.y),this.quaternion.setFromAxisAngle(ec,Ql))}),Rc.prototype.setLength=function(e,t,n){void 0===t&&(t=.2*e),void 0===n&&(n=.2*t),this.line.scale.set(1,Math.max(0,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()},Rc.prototype.setColor=function(e){this.line.material.color.copy(e),this.cone.material.color.copy(e)},Rc.prototype.copy=function(e){return Fn.prototype.copy.call(this,e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this},Rc.prototype.clone=function(){return(new this.constructor).copy(this)},Dc.prototype=Object.create(ma.prototype),Dc.prototype.constructor=Dc;var kc=0,Nc=1;function zc(e){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),e}function Fc(e){return void 0===e&&(e=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),e.isMultiMaterial=!0,e.materials=e,e.clone=function(){return e.slice()},e}function Bc(e,t){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new ya(e,t)}function Hc(e){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new la(e)}function jc(e,t){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new ya(e,t)}function Uc(e){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new ga(e)}function Gc(e){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new ga(e)}function Vc(e){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new ga(e)}function Wc(e,t,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new Qt(e,t,n)}function $c(e,t){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new Gn(e,t).setDynamic(!0)}function Yc(e,t){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new Vn(e,t)}function qc(e,t){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new Wn(e,t)}function Xc(e,t){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new $n(e,t)}function Jc(e,t){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new Yn(e,t)}function Zc(e,t){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new qn(e,t)}function Kc(e,t){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new Xn(e,t)}function Qc(e,t){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Jn(e,t)}function eu(e,t){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Zn(e,t)}function tu(e,t){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Kn(e,t)}function nu(e){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),As.call(this,e),this.type="catmullrom",this.closed=!0}function iu(e){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),As.call(this,e),this.type="catmullrom"}function ru(e){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),As.call(this,e),this.type="catmullrom"}function au(e){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new Dc(e)}function ou(e,t){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new Lc(e,t)}function su(e,t){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new ma(new Lo(e.geometry),new pa({color:void 0!==t?t:16777215}))}function lu(e,t){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new ma(new Ma(e.geometry),new pa({color:void 0!==t?t:16777215}))}function cu(e){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new ps(e)}function uu(e){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new vs(e)}xs.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(xs.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},Object.assign(Hs.prototype,{createPointsGeometry:function(e){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var t=this.getPoints(e);return this.createGeometry(t)},createSpacedPointsGeometry:function(e){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var t=this.getSpacedPoints(e);return this.createGeometry(t)},createGeometry:function(e){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var t=new Un,n=0,i=e.length;n<i;n++){var r=e[n];t.vertices.push(new Qt(r.x,r.y,r.z||0))}return t}}),Object.assign(js.prototype,{fromPoints:function(e){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)}}),nu.prototype=Object.create(As.prototype),iu.prototype=Object.create(As.prototype),ru.prototype=Object.create(As.prototype),Object.assign(ru.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.")}}),Ec.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},xc.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(ll.prototype,{extractUrlBase:function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),tl.extractUrlBase(e)}}),Object.assign(cl.prototype,{setTexturePath:function(e){return console.warn("THREE.JSONLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(e)}}),Object.assign(ul.prototype,{setTexturePath:function(e){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(e)}}),Object.assign(mc.prototype,{center:function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},size:function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)}}),Object.assign(fn.prototype,{center:function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},isIntersectionSphere:function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},size:function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)}}),vc.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},Object.assign(Xt,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(e){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),Xt.floorPowerOfTwo(e)},nextPowerOfTwo:function(e){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),Xt.ceilPowerOfTwo(e)}}),Object.assign(en.prototype,{flattenToArrayOffset:function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},multiplyVector3:function(e){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBuffer:function(e){return console.warn("THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(e)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(Zt.prototype,{extractPosition:function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},flattenToArrayOffset:function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},getPosition:function(){var e;return function(){return void 0===e&&(e=new Qt),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),e.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(e){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector4:function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},crossVector:function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.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(e){return console.warn("THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(e)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(e,t,n,i,r,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(e,t,i,n,r,a)}}),vn.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},Kt.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},Object.assign(_i.prototype,{isIntersectionBox:function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},isIntersectionPlane:function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},isIntersectionSphere:function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)}}),Object.assign(Mi.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},midpoint:function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},normal:function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},plane:function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)}}),Object.assign(Mi,{barycoordFromPoint:function(e,t,n,i,r){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Mi.getBarycoord(e,t,n,i,r)},normal:function(e,t,n,i){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Mi.getNormal(e,t,n,i)}}),Object.assign(Us.prototype,{extractAllPoints:function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},extrude:function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new fo(this,e)},makeGeometry:function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new So(this,e)}}),Object.assign(Jt.prototype,{fromAttribute:function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},distanceToManhattan:function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Qt.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(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},getScaleFromMatrix:function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},getColumnFromMatrix:function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},applyProjection:function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},fromAttribute:function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},distanceToManhattan:function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(un.prototype,{fromAttribute:function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(Un.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(Fn.prototype,{getChildByName:function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")}}),Object.defineProperties(Fn.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(e){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=e}},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(ca.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(ua.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Object.defineProperty(xs.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(e){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=e}}),Gr.prototype.setLens=function(e,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==t&&(this.filmGauge=t),this.setFocalLength(e)},Object.defineProperties(Gs.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(e){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=e}},shadowCameraLeft:{set:function(e){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=e}},shadowCameraRight:{set:function(e){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=e}},shadowCameraTop:{set:function(e){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=e}},shadowCameraBottom:{set:function(e){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=e}},shadowCameraNear:{set:function(e){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=e}},shadowCameraFar:{set:function(e){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=e}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(e){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=e}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(e){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=e}},shadowMapHeight:{set:function(e){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=e}}}),Object.defineProperties(Gn.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(ni.prototype,{addIndex:function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},addDrawCall:function(e,t,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(e,t)},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(ni.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(mo.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(oc.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(xi.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 En}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=e===L}}}),Object.defineProperties(jo.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(wi.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(e){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=e}}}),Object.assign(ta.prototype,{clearTarget:function(e,t,n,i){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(e),this.clear(t,n,i)},animate:function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},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(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},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(ta.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=e}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=e}},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(Fr.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(hn.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=e}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=e}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=e}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=e}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(e){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=e}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(e){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=e}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(e){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=e}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(e){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=e}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(e){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=e}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(e){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=e}}}),Object.defineProperties(ea.prototype,{standing:{set:function(){console.warn("THREE.WebVRManager: .standing has been removed.")}},userHeight:{set:function(){console.warn("THREE.WebVRManager: .userHeight has been removed.")}}}),Nl.prototype.load=function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var t=this;return(new Ol).load(e,function(e){t.setBuffer(e)}),this},Fl.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},Dl.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(e,t)};var hu={merge:function(e,t,n){var i;console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),t.isMesh&&(t.matrixAutoUpdate&&t.updateMatrix(),i=t.matrix,t=t.geometry),e.merge(t,i,n)},center:function(e){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),e.center()}};function du(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.projectVector=function(e,t){console.warn("THREE.Projector: .projectVector() is now vector.project()."),e.project(t)},this.unprojectVector=function(e,t){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),e.unproject(t)},this.pickingRay=function(){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}}function pu(){console.error("THREE.CanvasRenderer has been removed")}sn.crossOrigin=void 0,sn.loadTexture=function(e,t,n,i){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var r=new bs;r.setCrossOrigin(this.crossOrigin);var a=r.load(e,n,void 0,i);return t&&(a.mapping=t),a},sn.loadTextureCube=function(e,t,n,i){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var r=new ys;r.setCrossOrigin(this.crossOrigin);var a=r.load(e,n,void 0,i);return t&&(a.mapping=t),a},sn.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},sn.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};var fu={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")}};function mu(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")}},138:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}},139:function(e,t,n){"use strict";n.d(t,"b",function(){return i});var i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};t.a=i},140:function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"c",function(){return r}),t.b=function(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(i,r)},t)}},n.d(t,"a",function(){return a});var i=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},r=function(e){return!0===e?1:0};var a=function(e){return e instanceof Array?e:[e]}},141:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return s}),n.d(t,"a",function(){return l});var i=n(140),r=function(){},a=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},o={D:r,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*Object(i.c)(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),r=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:r,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:r,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},s={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return a(l.n(e,t,n)-1,!1,t)},G:function(e,t,n){return Object(i.d)(l.h(e,t,n))},H:function(e){return Object(i.d)(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Object(i.c)(e.getHours()>11)]},M:function(e,t){return a(e.getMonth(),!0,t)},S:function(e){return Object(i.d)(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return Object(i.d)(e.getFullYear(),4)},d:function(e){return Object(i.d)(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Object(i.d)(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return Object(i.d)(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}}},15:function(e,t,n){e.exports=n(279)},21:function(e,t,n){"use strict";var i=" expando-no-transition",r=function(e){var t=window.getComputedStyle(e);return t.transitionProperty||t.WebkitTransitionProperty||t.MozTransitionProperty||t.OTransitionProperyy||t.MsTransitionProperty},a=function(e,t){e.addEventListener("transitionend",t),e.addEventListener("mozTransitionEnd",t),e.addEventListener("webkitTransitionEnd",t),e.addEventListener("msTransitionEnd",t),e.addEventListener("oTransitionEnd",t)},o=function(e,t){e.removeEventListener("oTransitionEnd",t),e.removeEventListener("msTransitionEnd",t),e.removeEventListener("webkitTransitionEnd",t),e.removeEventListener("mozTransitionEnd",t),e.removeEventListener("transitionend",t)};e.exports={closest:function(e,t){for(var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e;){if(e===document.body)return;if(n.call(e,t))break;e=e.parentElement}return e},slideUp:function(e,t,n){t=t||function(){},n=n||function(){};var s=e.style,l="height",c=r(e);if(!c||c.indexOf(l)<0)return t(),s.display="none",n();var u=e.clientHeight;0!==u&&(e.className+=i,s[l]=u+"px",s["overflow-y"]="hidden",e.clientHeight,e.className=e.className.replace(i,""),a(e,function i(r){r.propertyName===l&&(o(e,i),t(),s.display="none",s.removeProperty(l),n())}),s[l]="0px")},slideDown:function(e,t,n){var s=e.style;t=t||function(){},n=n||function(){};var l="height",c=r(e);if(!c||c.indexOf(l)<0)return t(),s.display="block",n();s.display="block";var u=e.clientHeight;s[l]=0,e.clientHeight,s[l]=u+"px",s["overflow-y"]="hidden",a(e,function r(a){a.propertyName===l&&(o(e,r),t(),e.className+=i,e.clientHeight,s.removeProperty(l),e.clientHeight,e.className=e.className.replace(i,""),n())})},nodeToArray:function(e,t){void 0===t&&(t=document);var n=t.querySelectorAll(e);return Array.prototype.slice.call(n)}}},279:function(e,t,n){"use strict";var i=n(11),r=n(96),a=n(281),o=n(63);function s(e){var t=new a(e),n=r(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var l=s(o);l.Axios=a,l.create=function(e){return s(i.merge(o,e))},l.Cancel=n(100),l.CancelToken=n(295),l.isCancel=n(99),l.all=function(e){return Promise.all(e)},l.spread=n(296),e.exports=l,e.exports.default=l},280:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},281:function(e,t,n){"use strict";var i=n(63),r=n(11),a=n(290),o=n(291);function s(e){this.defaults=e,this.interceptors={request:new a,response:new a}}s.prototype.request=function(e){"string"==typeof e&&(e=r.merge({url:arguments[0]},arguments[1])),(e=r.merge(i,this.defaults,{method:"get"},e)).method=e.method.toLowerCase();var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},r.forEach(["delete","get","head","options"],function(e){s.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){s.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}}),e.exports=s},282:function(e,t,n){"use strict";var i=n(11);e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},283:function(e,t,n){"use strict";var i=n(98);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},284:function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e}},285:function(e,t,n){"use strict";var i=n(11);function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(i.isURLSearchParams(t))a=t.toString();else{var o=[];i.forEach(t,function(e,t){null!==e&&void 0!==e&&(i.isArray(e)&&(t+="[]"),i.isArray(e)||(e=[e]),i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))}))}),a=o.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},286:function(e,t,n){"use strict";var i=n(11),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(i.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o):o}},287:function(e,t,n){"use strict";var i=n(11);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},288:function(e,t,n){"use strict";var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(){this.message="String contains an invalid character"}r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,a=String(e),o="",s=0,l=i;a.charAt(0|s)||(l="=",s%1);o+=l.charAt(63&t>>8-s%1*8)){if((n=a.charCodeAt(s+=.75))>255)throw new r;t=t<<8|n}return o}},289:function(e,t,n){"use strict";var i=n(11);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},290:function(e,t,n){"use strict";var i=n(11);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},291:function(e,t,n){"use strict";var i=n(11),r=n(292),a=n(99),o=n(63),s=n(293),l=n(294);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return c(e),t.data=r(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},292:function(e,t,n){"use strict";var i=n(11);e.exports=function(e,t,n){return i.forEach(n,function(n){e=n(e,t)}),e}},293:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},294:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},295:function(e,t,n){"use strict";var i=n(100);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new i(e),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},296:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},297:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,r,a,o,s,l=1,c={},u=!1,h=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){f(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){f(e.data)},i=function(e){a.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,i=function(e){var t=h.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):i=function(e){setTimeout(f,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(o+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return c[l]=r,i(l),l++},d.clearImmediate=p}function p(e){delete c[e]}function f(e){if(u)setTimeout(f,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,i=e.args;switch(i.length){case 0:t();break;case 1:t(i[0]);break;case 2:t(i[0],i[1]);break;case 3:t(i[0],i[1],i[2]);break;default:t.apply(n,i)}}(t)}finally{p(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(34),n(43))},33:function(e,t,n){var i;i=function(){"use strict";var e="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"==typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,n=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function i(i,r){var a=[],o=0;if(i&&!r&&i instanceof n)return i;if(i)if("string"==typeof i){var s,l,c=i.trim();if(c.indexOf("<")>=0&&c.indexOf(">")>=0){var u="div";for(0===c.indexOf("<li")&&(u="ul"),0===c.indexOf("<tr")&&(u="tbody"),0!==c.indexOf("<td")&&0!==c.indexOf("<th")||(u="tr"),0===c.indexOf("<tbody")&&(u="table"),0===c.indexOf("<option")&&(u="select"),(l=e.createElement(u)).innerHTML=c,o=0;o<l.childNodes.length;o+=1)a.push(l.childNodes[o])}else for(s=r||"#"!==i[0]||i.match(/[ .<>:~]/)?(r||e).querySelectorAll(i.trim()):[e.getElementById(i.trim().split("#")[1])],o=0;o<s.length;o+=1)s[o]&&a.push(s[o])}else if(i.nodeType||i===t||i===e)a.push(i);else if(i.length>0&&i[0].nodeType)for(o=0;o<i.length;o+=1)a.push(i[o]);return new n(a)}function r(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}i.fn=n.prototype,i.Class=n,i.Dom7=n;var a={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.add(t[n]);return this},removeClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.remove(t[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.toggle(t[n]);return this},attr:function(e,t){var n=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i+=1)if(2===n.length)this[i].setAttribute(e,t);else for(var r in e)this[i][r]=e[r],this[i].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var n;if(void 0!==t){for(var i=0;i<this.length;i+=1)(n=this[i]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var r=n.getAttribute("data-"+e);return r||void 0}},transform:function(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],a=t[1],o=t[2],s=t[3];function l(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),i(t).is(a))o.apply(t,n);else for(var r=i(t).parents(),s=0;s<r.length;s+=1)i(r[s]).is(a)&&o.apply(r[s],n)}}function c(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),o.apply(this,t)}"function"==typeof t[1]&&(r=(e=t)[0],o=e[1],s=e[2],a=void 0),s||(s=!1);for(var u,h=r.split(" "),d=0;d<this.length;d+=1){var p=this[d];if(a)for(u=0;u<h.length;u+=1){var f=h[u];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:o,proxyListener:l}),p.addEventListener(f,l,s)}else for(u=0;u<h.length;u+=1){var m=h[u];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:o,proxyListener:c}),p.addEventListener(m,c,s)}}return this},off:function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=t[0],r=t[1],a=t[2],o=t[3];"function"==typeof t[1]&&(i=(e=t)[0],a=e[1],o=e[2],r=void 0),o||(o=!1);for(var s=i.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var h=this[u],d=void 0;if(!r&&h.dom7Listeners?d=h.dom7Listeners[c]:r&&h.dom7LiveListeners&&(d=h.dom7LiveListeners[c]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var f=d[p];a&&f.listener===a?(h.removeEventListener(c,f.proxyListener,o),d.splice(p,1)):a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(h.removeEventListener(c,f.proxyListener,o),d.splice(p,1)):a||(h.removeEventListener(c,f.proxyListener,o),d.splice(p,1))}}return this},trigger:function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];for(var r=n[0].split(" "),a=n[1],o=0;o<r.length;o+=1)for(var s=r[o],l=0;l<this.length;l+=1){var c=this[l],u=void 0;try{u=new t.CustomEvent(s,{detail:a,bubbles:!0,cancelable:!0})}catch(t){(u=e.createEvent("Event")).initEvent(s,!0,!0),u.detail=a}c.dom7EventData=n.filter(function(e,t){return t>0}),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}return this},transitionEnd:function(e){var t,n=["webkitTransitionEnd","transitionend"],i=this;function r(a){if(a.target===this)for(e.call(this,a),t=0;t<n.length;t+=1)i.off(n[t],r)}if(e)for(t=0;t<n.length;t+=1)i.on(n[t],r);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var n=this[0],i=n.getBoundingClientRect(),r=e.body,a=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,s=n===t?t.scrollY:n.scrollTop,l=n===t?t.scrollX:n.scrollLeft;return{top:i.top+s-a,left:i.left+l-o}}return null},css:function(e,n){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var r in e)this[i].style[r]=e[r];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=n;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(r){var a,o,s=this[0];if(!s||void 0===r)return!1;if("string"==typeof r){if(s.matches)return s.matches(r);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(r);if(s.msMatchesSelector)return s.msMatchesSelector(r);for(a=i(r),o=0;o<a.length;o+=1)if(a[o]===s)return!0;return!1}if(r===e)return s===e;if(r===t)return s===t;if(r.nodeType||r instanceof n){for(a=r.nodeType?[r]:r,o=0;o<a.length;o+=1)if(a[o]===s)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,i=this.length;return new n(e>i-1?[]:e<0?(t=i+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var t,i=[],r=arguments.length;r--;)i[r]=arguments[r];for(var a=0;a<i.length;a+=1){t=i[a];for(var o=0;o<this.length;o+=1)if("string"==typeof t){var s=e.createElement("div");for(s.innerHTML=t;s.firstChild;)this[o].appendChild(s.firstChild)}else if(t instanceof n)for(var l=0;l<t.length;l+=1)this[o].appendChild(t[l]);else this[o].appendChild(t)}return this},prepend:function(t){var i,r;for(i=0;i<this.length;i+=1)if("string"==typeof t){var a=e.createElement("div");for(a.innerHTML=t,r=a.childNodes.length-1;r>=0;r-=1)this[i].insertBefore(a.childNodes[r],this[i].childNodes[0])}else if(t instanceof n)for(r=0;r<t.length;r+=1)this[i].insertBefore(t[r],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&i(this[0].nextElementSibling).is(e)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])},nextAll:function(e){var t=[],r=this[0];if(!r)return new n([]);for(;r.nextElementSibling;){var a=r.nextElementSibling;e?i(a).is(e)&&t.push(a):t.push(a),r=a}return new n(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&i(t.previousElementSibling).is(e)?new n([t.previousElementSibling]):new n([]):t.previousElementSibling?new n([t.previousElementSibling]):new n([])}return new n([])},prevAll:function(e){var t=[],r=this[0];if(!r)return new n([]);for(;r.previousElementSibling;){var a=r.previousElementSibling;e?i(a).is(e)&&t.push(a):t.push(a),r=a}return new n(t)},parent:function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?i(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return i(r(t))},parents:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var a=this[n].parentNode;a;)e?i(a).is(e)&&t.push(a):t.push(a),a=a.parentNode;return i(r(t))},closest:function(e){var t=this;return void 0===e?new n([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var r=this[i].querySelectorAll(e),a=0;a<r.length;a+=1)t.push(r[a]);return new n(t)},children:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var o=this[a].childNodes,s=0;s<o.length;s+=1)e?1===o[s].nodeType&&i(o[s]).is(e)&&t.push(o[s]):1===o[s].nodeType&&t.push(o[s]);return new n(r(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r;for(n=0;n<e.length;n+=1){var a=i(e[n]);for(r=0;r<a.length;r+=1)this[this.length]=a[r],this.length+=1}return this},styles:function(){return this[0]?t.getComputedStyle(this[0],null):{}}};Object.keys(a).forEach(function(e){i.fn[e]=i.fn[e]||a[e]});var o,s,l={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,n){var i,r,a;void 0===n&&(n="x");var o=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((r=o.transform||o.webkitTransform).split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),a=new t.WebKitCSSMatrix("none"===r?"":r)):i=(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(r=t.WebKitCSSMatrix?a.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===n&&(r=t.WebKitCSSMatrix?a.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0},parseUrlQuery:function(e){var n,i,r,a,o={},s=e||t.location.href;if("string"==typeof s&&s.length)for(a=(i=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter(function(e){return""!==e})).length,n=0;n<a;n+=1)r=i[n].replace(/#\S+/g,"").split("="),o[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r[1])||"";return o},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=Object(e[0]),i=1;i<e.length;i+=1){var r=e[i];if(void 0!==r&&null!==r)for(var a=Object.keys(Object(r)),o=0,s=a.length;o<s;o+=1){var c=a[o],u=Object.getOwnPropertyDescriptor(r,c);void 0!==u&&u.enumerable&&(l.isObject(n[c])&&l.isObject(r[c])?l.extend(n[c],r[c]):!l.isObject(n[c])&&l.isObject(r[c])?(n[c]={},l.extend(n[c],r[c])):n[c]=r[c])}}return n}},c=(s=e.createElement("div"),{touch:t.Modernizr&&!0===t.Modernizr.touch||!!(t.navigator.maxTouchPoints>0||"ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!(t.navigator.pointerEnabled||t.PointerEvent||"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>0),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:(o=s.style,"transition"in o||"webkitTransition"in o||"MozTransition"in o),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||function(){var e=s.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=s.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n+=1)if(t[n]in e)return!0;return!1}(),observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(e){}return e}(),gestures:"ongesturestart"in t}),u=function(){return{isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)};var e}(),h=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(e){t.on(e,t.params.on[e])})},d={components:{configurable:!0}};h.prototype.on=function(e,t,n){var i=this;if("function"!=typeof t)return i;var r=n?"unshift":"push";return e.split(" ").forEach(function(e){i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)}),i},h.prototype.once=function(e,t,n){var i=this;if("function"!=typeof t)return i;function r(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];t.apply(i,n),i.off(e,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=t,i.on(e,r,n)},h.prototype.off=function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach(function(i,r){(i===t||i.f7proxy&&i.f7proxy===t)&&n.eventsListeners[e].splice(r,1)})}),n):n},h.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,i,r,a=this;return a.eventsListeners?("string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],i=e.slice(1,e.length),r=a):(n=e[0].events,i=e[0].data,r=e[0].context||a),(Array.isArray(n)?n:n.split(" ")).forEach(function(e){if(a.eventsListeners&&a.eventsListeners[e]){var t=[];a.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(r,i)})}}),a):a},h.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(n){var i=t.modules[n];i.params&&l.extend(e,i.params)})},h.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(n){var i=t.modules[n],r=e[n]||{};i.instance&&Object.keys(i.instance).forEach(function(e){var n=i.instance[e];t[e]="function"==typeof n?n.bind(t):n}),i.on&&t.on&&Object.keys(i.on).forEach(function(e){t.on(e,i.on[e])}),i.create&&i.create.bind(t)(r)})},d.components.set=function(e){this.use&&this.use(e)},h.installModule=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var i=this;i.prototype.modules||(i.prototype.modules={});var r=e.name||Object.keys(i.prototype.modules).length+"_"+l.now();return i.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach(function(t){i.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){i[t]=e.static[t]}),e.install&&e.install.apply(i,t),i},h.use=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var i=this;return Array.isArray(e)?(e.forEach(function(e){return i.installModule(e)}),i):i.installModule.apply(i,[e].concat(t))},Object.defineProperties(h,d);var p={updateSize:function(){var e,t,n=this.$el;e=void 0!==this.params.width?this.params.width:n[0].clientWidth,t=void 0!==this.params.height?this.params.height:n[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),l.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,n=this.$wrapperEl,i=this.size,r=this.rtlTranslate,a=this.wrongRTL,o=this.virtual&&e.virtual.enabled,s=o?this.virtual.slides.length:this.slides.length,h=n.children("."+this.params.slideClass),d=o?this.virtual.slides.length:h.length,p=[],f=[],m=[],v=e.slidesOffsetBefore;"function"==typeof v&&(v=e.slidesOffsetBefore.call(this));var g=e.slidesOffsetAfter;"function"==typeof g&&(g=e.slidesOffsetAfter.call(this));var y=this.snapGrid.length,b=this.snapGrid.length,x=e.spaceBetween,w=-v,_=0,M=0;if(void 0!==i){var E,T;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*i),this.virtualSize=-x,r?h.css({marginLeft:"",marginTop:""}):h.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(E=Math.floor(d/e.slidesPerColumn)===d/this.params.slidesPerColumn?d:Math.ceil(d/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(E=Math.max(E,e.slidesPerView*e.slidesPerColumn)));for(var S,C=e.slidesPerColumn,A=E/C,L=Math.floor(d/e.slidesPerColumn),P=0;P<d;P+=1){T=0;var O=h.eq(P);if(e.slidesPerColumn>1){var R=void 0,D=void 0,I=void 0;if("column"===e.slidesPerColumnFill||"row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){if("column"===e.slidesPerColumnFill)I=P-(D=Math.floor(P/C))*C,(D>L||D===L&&I===C-1)&&(I+=1)>=C&&(I=0,D+=1);else{var k=Math.floor(P/e.slidesPerGroup);D=P-(I=Math.floor(P/e.slidesPerView)-k*e.slidesPerColumn)*e.slidesPerView-k*e.slidesPerView}R=D+I*E/C,O.css({"-webkit-box-ordinal-group":R,"-moz-box-ordinal-group":R,"-ms-flex-order":R,"-webkit-order":R,order:R})}else D=P-(I=Math.floor(P/A))*A;O.css("margin-"+(this.isHorizontal()?"top":"left"),0!==I&&e.spaceBetween&&e.spaceBetween+"px").attr("data-swiper-column",D).attr("data-swiper-row",I)}if("none"!==O.css("display")){if("auto"===e.slidesPerView){var N=t.getComputedStyle(O[0],null),z=O[0].style.transform,F=O[0].style.webkitTransform;if(z&&(O[0].style.transform="none"),F&&(O[0].style.webkitTransform="none"),e.roundLengths)T=this.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else if(this.isHorizontal()){var B=parseFloat(N.getPropertyValue("width")),H=parseFloat(N.getPropertyValue("padding-left")),j=parseFloat(N.getPropertyValue("padding-right")),U=parseFloat(N.getPropertyValue("margin-left")),G=parseFloat(N.getPropertyValue("margin-right")),V=N.getPropertyValue("box-sizing");T=V&&"border-box"===V&&!u.isIE?B+U+G:B+H+j+U+G}else{var W=parseFloat(N.getPropertyValue("height")),$=parseFloat(N.getPropertyValue("padding-top")),Y=parseFloat(N.getPropertyValue("padding-bottom")),q=parseFloat(N.getPropertyValue("margin-top")),X=parseFloat(N.getPropertyValue("margin-bottom")),J=N.getPropertyValue("box-sizing");T=J&&"border-box"===J&&!u.isIE?W+q+X:W+$+Y+q+X}z&&(O[0].style.transform=z),F&&(O[0].style.webkitTransform=F),e.roundLengths&&(T=Math.floor(T))}else T=(i-(e.slidesPerView-1)*x)/e.slidesPerView,e.roundLengths&&(T=Math.floor(T)),h[P]&&(this.isHorizontal()?h[P].style.width=T+"px":h[P].style.height=T+"px");h[P]&&(h[P].swiperSlideSize=T),m.push(T),e.centeredSlides?(w=w+T/2+_/2+x,0===_&&0!==P&&(w=w-i/2-x),0===P&&(w=w-i/2-x),Math.abs(w)<.001&&(w=0),e.roundLengths&&(w=Math.floor(w)),M%e.slidesPerGroup==0&&p.push(w),f.push(w)):(e.roundLengths&&(w=Math.floor(w)),M%e.slidesPerGroup==0&&p.push(w),f.push(w),w=w+T+x),this.virtualSize+=T+x,_=T,M+=1}}if(this.virtualSize=Math.max(this.virtualSize,i)+g,r&&a&&("slide"===e.effect||"coverflow"===e.effect)&&n.css({width:this.virtualSize+e.spaceBetween+"px"}),c.flexbox&&!e.setWrapperSize||(this.isHorizontal()?n.css({width:this.virtualSize+e.spaceBetween+"px"}):n.css({height:this.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(this.virtualSize=(T+e.spaceBetween)*E,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?n.css({width:this.virtualSize+e.spaceBetween+"px"}):n.css({height:this.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){S=[];for(var Z=0;Z<p.length;Z+=1){var K=p[Z];e.roundLengths&&(K=Math.floor(K)),p[Z]<this.virtualSize+p[0]&&S.push(K)}p=S}if(!e.centeredSlides){S=[];for(var Q=0;Q<p.length;Q+=1){var ee=p[Q];e.roundLengths&&(ee=Math.floor(ee)),p[Q]<=this.virtualSize-i&&S.push(ee)}p=S,Math.floor(this.virtualSize-i)-Math.floor(p[p.length-1])>1&&p.push(this.virtualSize-i)}if(0===p.length&&(p=[0]),0!==e.spaceBetween&&(this.isHorizontal()?r?h.css({marginLeft:x+"px"}):h.css({marginRight:x+"px"}):h.css({marginBottom:x+"px"})),e.centerInsufficientSlides){var te=0;if(m.forEach(function(t){te+=t+(e.spaceBetween?e.spaceBetween:0)}),(te-=e.spaceBetween)<i){var ne=(i-te)/2;p.forEach(function(e,t){p[t]=e-ne}),f.forEach(function(e,t){f[t]=e+ne})}}l.extend(this,{slides:h,snapGrid:p,slidesGrid:f,slidesSizesGrid:m}),d!==s&&this.emit("slidesLengthChange"),p.length!==y&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),f.length!==b&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,n=[],i=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var r=this.activeIndex+t;if(r>this.slides.length)break;n.push(this.slides.eq(r)[0])}else n.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var a=n[t].offsetHeight;i=a>i?a:i}i&&this.$wrapperEl.css("height",i+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,n=this.slides,r=this.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();var a=-e;r&&(a=e),n.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var o=0;o<n.length;o+=1){var s=n[o],l=(a+(t.centeredSlides?this.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility){var c=-(a-s.swiperSlideOffset),u=c+this.slidesSizesGrid[o];(c>=0&&c<this.size-1||u>1&&u<=this.size||c<=0&&u>=this.size)&&(this.visibleSlides.push(s),this.visibleSlidesIndexes.push(o),n.eq(o).addClass(t.slideVisibleClass))}s.progress=r?-l:l}this.visibleSlides=i(this.visibleSlides)}},updateProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,n=this.maxTranslate()-this.minTranslate(),i=this.progress,r=this.isBeginning,a=this.isEnd,o=r,s=a;0===n?(i=0,r=!0,a=!0):(r=(i=(e-this.minTranslate())/n)<=0,a=i>=1),l.extend(this,{progress:i,isBeginning:r,isEnd:a}),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesProgress(e),r&&!o&&this.emit("reachBeginning toEdge"),a&&!s&&this.emit("reachEnd toEdge"),(o&&!r||s&&!a)&&this.emit("fromEdge"),this.emit("progress",i)},updateSlidesClasses:function(){var e,t=this.slides,n=this.params,i=this.$wrapperEl,r=this.activeIndex,a=this.realIndex,o=this.virtual&&n.virtual.enabled;t.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass),(e=o?this.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(n.slideDuplicateActiveClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(n.slideDuplicateActiveClass));var s=e.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===s.length&&(s=t.eq(0)).addClass(n.slideNextClass);var l=e.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===l.length&&(l=t.eq(-1)).addClass(n.slidePrevClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),l.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,n=this.rtlTranslate?this.translate:-this.translate,i=this.slidesGrid,r=this.snapGrid,a=this.params,o=this.activeIndex,s=this.realIndex,c=this.snapIndex,u=e;if(void 0===u){for(var h=0;h<i.length;h+=1)void 0!==i[h+1]?n>=i[h]&&n<i[h+1]-(i[h+1]-i[h])/2?u=h:n>=i[h]&&n<i[h+1]&&(u=h+1):n>=i[h]&&(u=h);a.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if((t=r.indexOf(n)>=0?r.indexOf(n):Math.floor(u/a.slidesPerGroup))>=r.length&&(t=r.length-1),u!==o){var d=parseInt(this.slides.eq(u).attr("data-swiper-slide-index")||u,10);l.extend(this,{snapIndex:t,realIndex:d,previousIndex:o,activeIndex:u}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),s!==d&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else t!==c&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,n=i(e.target).closest("."+t.slideClass)[0],r=!1;if(n)for(var a=0;a<this.slides.length;a+=1)this.slides[a]===n&&(r=!0);if(!n||!r)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(i(n).attr("data-swiper-slide-index"),10):this.clickedIndex=i(n).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var f={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,n=this.rtlTranslate,i=this.translate,r=this.$wrapperEl;if(t.virtualTranslate)return n?-i:i;var a=l.getTranslate(r[0],e);return n&&(a=-a),a||0},setTranslate:function(e,t){var n=this.rtlTranslate,i=this.params,r=this.$wrapperEl,a=this.progress,o=0,s=0;this.isHorizontal()?o=n?-e:e:s=e,i.roundLengths&&(o=Math.floor(o),s=Math.floor(s)),i.virtualTranslate||(c.transforms3d?r.transform("translate3d("+o+"px, "+s+"px, 0px)"):r.transform("translate("+o+"px, "+s+"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:s;var l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==a&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var m={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var n=this.activeIndex,i=this.params,r=this.previousIndex;i.autoHeight&&this.updateAutoHeight();var a=t;if(a||(a=n>r?"next":n<r?"prev":"reset"),this.emit("transitionStart"),e&&n!==r){if("reset"===a)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===a?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(e,t){void 0===e&&(e=!0);var n=this.activeIndex,i=this.previousIndex;this.animating=!1,this.setTransition(0);var r=t;if(r||(r=n>i?"next":n<i?"prev":"reset"),this.emit("transitionEnd"),e&&n!==i){if("reset"===r)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===r?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}};var v={slideTo:function(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var r=this,a=e;a<0&&(a=0);var o=r.params,s=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,h=r.activeIndex,d=r.rtlTranslate;if(r.animating&&o.preventInteractionOnTransition)return!1;var p=Math.floor(a/o.slidesPerGroup);p>=s.length&&(p=s.length-1),(h||o.initialSlide||0)===(u||0)&&n&&r.emit("beforeSlideChangeStart");var f,m=-s[p];if(r.updateProgress(m),o.normalizeSlideIndex)for(var v=0;v<l.length;v+=1)-Math.floor(100*m)>=Math.floor(100*l[v])&&(a=v);if(r.initialized&&a!==h){if(!r.allowSlideNext&&m<r.translate&&m<r.minTranslate())return!1;if(!r.allowSlidePrev&&m>r.translate&&m>r.maxTranslate()&&(h||0)!==a)return!1}return f=a>h?"next":a<h?"prev":"reset",d&&-m===r.translate||!d&&m===r.translate?(r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(m),"reset"!==f&&(r.transitionStart(n,f),r.transitionEnd(n,f)),!1):(0!==t&&c.transition?(r.setTransition(t),r.setTranslate(m),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,f),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,f))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(m),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,f),r.transitionEnd(n,f)),!0)},slideToLoop:function(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var r=e;return this.params.loop&&(r+=this.loopedSlides),this.slideTo(r,t,n,i)},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this.params,r=this.animating;return i.loop?!r&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+i.slidesPerGroup,e,t,n)):this.slideTo(this.activeIndex+i.slidesPerGroup,e,t,n)},slidePrev:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this.params,r=this.animating,a=this.snapGrid,o=this.slidesGrid,s=this.rtlTranslate;if(i.loop){if(r)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c,u=l(s?this.translate:-this.translate),h=a.map(function(e){return l(e)}),d=(o.map(function(e){return l(e)}),a[h.indexOf(u)],a[h.indexOf(u)-1]);return void 0!==d&&(c=o.indexOf(d))<0&&(c=this.activeIndex-1),this.slideTo(c,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this.activeIndex,r=Math.floor(i/this.params.slidesPerGroup);if(r<this.snapGrid.length-1){var a=this.rtlTranslate?this.translate:-this.translate,o=this.snapGrid[r];a-o>(this.snapGrid[r+1]-o)/2&&(i=this.params.slidesPerGroup)}return this.slideTo(i,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,a="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(i(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?o<t.loopedSlides-a/2||o>t.slides.length-t.loopedSlides+a/2?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),l.nextTick(function(){t.slideTo(o)})):t.slideTo(o):o>t.slides.length-a?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),l.nextTick(function(){t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}};var g={loopCreate:function(){var t=this,n=t.params,r=t.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var a=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-a.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;s<o;s+=1){var l=i(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);r.append(l)}a=r.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=a.length),t.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>a.length&&(t.loopedSlides=a.length);var c=[],u=[];a.each(function(e,n){var r=i(n);e<t.loopedSlides&&u.push(n),e<a.length&&e>=a.length-t.loopedSlides&&c.push(n),r.attr("data-swiper-slide-index",e)});for(var h=0;h<u.length;h+=1)r.append(i(u[h].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var d=c.length-1;d>=0;d-=1)r.prepend(i(c[d].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e,t=this.params,n=this.activeIndex,i=this.slides,r=this.loopedSlides,a=this.allowSlidePrev,o=this.allowSlideNext,s=this.snapGrid,l=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var c=-s[n]-this.getTranslate();n<r?(e=i.length-3*r+n,e+=r,this.slideTo(e,0,!1,!0)&&0!==c&&this.setTranslate((l?-this.translate:this.translate)-c)):("auto"===t.slidesPerView&&n>=2*r||n>=i.length-r)&&(e=-i.length+n+r,e+=r,this.slideTo(e,0,!1,!0)&&0!==c&&this.setTranslate((l?-this.translate:this.translate)-c));this.allowSlidePrev=a,this.allowSlideNext=o},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,n=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}};var y={setGrabCursor:function(e){if(!(c.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){c.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var b={appendSlide:function(e){var t=this.$wrapperEl,n=this.params;if(n.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.append(e[i]);else t.append(e);n.loop&&this.loopCreate(),n.observer&&c.observer||this.update()},prependSlide:function(e){var t=this.params,n=this.$wrapperEl,i=this.activeIndex;t.loop&&this.loopDestroy();var r=i+1;if("object"==typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)e[a]&&n.prepend(e[a]);r=i+e.length}else n.prepend(e);t.loop&&this.loopCreate(),t.observer&&c.observer||this.update(),this.slideTo(r,0,!1)},addSlide:function(e,t){var n=this.$wrapperEl,i=this.params,r=this.activeIndex;i.loop&&(r-=this.loopedSlides,this.loopDestroy(),this.slides=n.children("."+i.slideClass));var a=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=a)this.appendSlide(t);else{for(var o=r>e?r+1:r,s=[],l=a-1;l>=e;l-=1){var u=this.slides.eq(l);u.remove(),s.unshift(u)}if("object"==typeof t&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&n.append(t[h]);o=r>e?r+t.length:r}else n.append(t);for(var d=0;d<s.length;d+=1)n.append(s[d]);i.loop&&this.loopCreate(),i.observer&&c.observer||this.update(),i.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)}},removeSlide:function(e){var t=this.params,n=this.$wrapperEl,i=this.activeIndex;t.loop&&(i-=this.loopedSlides,this.loopDestroy(),this.slides=n.children("."+t.slideClass));var r,a=i;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)r=e[o],this.slides[r]&&this.slides.eq(r).remove(),r<a&&(a-=1);a=Math.max(a,0)}else r=e,this.slides[r]&&this.slides.eq(r).remove(),r<a&&(a-=1),a=Math.max(a,0);t.loop&&this.loopCreate(),t.observer&&c.observer||this.update(),t.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},x=function(){var n=t.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},r=n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),a=n.match(/(Android);?[\s\/]+([\d.]+)?/),o=n.match(/(iPad).*OS\s([\d_]+)/),s=n.match(/(iPod)(.*OS\s([\d_]+))?/),l=!o&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(r&&(i.os="windows",i.osVersion=r[2],i.windows=!0),a&&!r&&(i.os="android",i.osVersion=a[2],i.android=!0,i.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(o||l||s)&&(i.os="ios",i.ios=!0),l&&!s&&(i.osVersion=l[2].replace(/_/g,"."),i.iphone=!0),o&&(i.osVersion=o[2].replace(/_/g,"."),i.ipad=!0),s&&(i.osVersion=s[3]?s[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&n.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),i.desktop=!(i.os||i.android||i.webView),i.webView=(l||o||s)&&n.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var c=i.osVersion.split("."),u=e.querySelector('meta[name="viewport"]');i.minimalUi=!i.webView&&(s||l)&&(1*c[0]==7?1*c[1]>=1:1*c[0]>7)&&u&&u.getAttribute("content").indexOf("minimal-ui")>=0}return i.pixelRatio=t.devicePixelRatio||1,i}();function w(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var n=this.allowSlideNext,i=this.allowSlidePrev,r=this.snapGrid;if(this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),e.freeMode){var a=Math.min(Math.max(this.translate,this.maxTranslate()),this.minTranslate());this.setTranslate(a),this.updateActiveIndex(),this.updateSlidesClasses(),e.autoHeight&&this.updateAutoHeight()}else this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0);this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=i,this.allowSlideNext=n,this.params.watchOverflow&&r!==this.snapGrid&&this.checkOverflow()}}var _={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},M={update:p,translate:f,transition:m,slide:v,loop:g,grabCursor:y,manipulation:b,events:{attachEvents:function(){var n=this.params,r=this.touchEvents,a=this.el,o=this.wrapperEl;this.onTouchStart=function(n){var r=this.touchEventsData,a=this.params,o=this.touches;if(!this.animating||!a.preventInteractionOnTransition){var s=n;if(s.originalEvent&&(s=s.originalEvent),r.isTouchEvent="touchstart"===s.type,(r.isTouchEvent||!("which"in s)||3!==s.which)&&!(!r.isTouchEvent&&"button"in s&&s.button>0||r.isTouched&&r.isMoved))if(a.noSwiping&&i(s.target).closest(a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass)[0])this.allowClick=!0;else if(!a.swipeHandler||i(s).closest(a.swipeHandler)[0]){o.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,o.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var c=o.currentX,u=o.currentY,h=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,d=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!h||!(c<=d||c>=t.screen.width-d)){if(l.extend(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=c,o.startY=u,r.touchStartTime=l.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,a.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==s.type){var p=!0;i(s.target).is(r.formElements)&&(p=!1),e.activeElement&&i(e.activeElement).is(r.formElements)&&e.activeElement!==s.target&&e.activeElement.blur();var f=p&&this.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||f)&&s.preventDefault()}this.emit("touchStart",s)}}}}.bind(this),this.onTouchMove=function(t){var n=this.touchEventsData,r=this.params,a=this.touches,o=this.rtlTranslate,s=t;if(s.originalEvent&&(s=s.originalEvent),n.isTouched){if(!n.isTouchEvent||"mousemove"!==s.type){var c="touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,u="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper)return a.startX=c,void(a.startY=u);if(!this.allowTouchMove)return this.allowClick=!1,void(n.isTouched&&(l.extend(a,{startX:c,startY:u,currentX:c,currentY:u}),n.touchStartTime=l.now()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(this.isVertical()){if(u<a.startY&&this.translate<=this.maxTranslate()||u>a.startY&&this.translate>=this.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(c<a.startX&&this.translate<=this.maxTranslate()||c>a.startX&&this.translate>=this.minTranslate())return;if(n.isTouchEvent&&e.activeElement&&s.target===e.activeElement&&i(s.target).is(n.formElements))return n.isMoved=!0,void(this.allowClick=!1);if(n.allowTouchCallbacks&&this.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){a.currentX=c,a.currentY=u;var h,d=a.currentX-a.startX,p=a.currentY-a.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))<this.params.threshold))if(void 0===n.isScrolling&&(this.isHorizontal()&&a.currentY===a.startY||this.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:d*d+p*p>=25&&(h=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,n.isScrolling=this.isHorizontal()?h>r.touchAngle:90-h>r.touchAngle)),n.isScrolling&&this.emit("touchMoveOpposite",s),void 0===n.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(n.startMoving=!0)),n.isScrolling)n.isTouched=!1;else if(n.startMoving){this.allowClick=!1,s.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&s.stopPropagation(),n.isMoved||(r.loop&&this.loopFix(),n.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",s)),this.emit("sliderMove",s),n.isMoved=!0;var f=this.isHorizontal()?d:p;a.diff=f,f*=r.touchRatio,o&&(f=-f),this.swipeDirection=f>0?"prev":"next",n.currentTranslate=f+n.startTranslate;var m=!0,v=r.resistanceRatio;if(r.touchReleaseOnEdges&&(v=0),f>0&&n.currentTranslate>this.minTranslate()?(m=!1,r.resistance&&(n.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+n.startTranslate+f,v))):f<0&&n.currentTranslate<this.maxTranslate()&&(m=!1,r.resistance&&(n.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-n.startTranslate-f,v))),m&&(s.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(f)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,void(a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}r.followFinger&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),r.freeMode&&(0===n.velocities.length&&n.velocities.push({position:a[this.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:a[this.isHorizontal()?"currentX":"currentY"],time:l.now()})),this.updateProgress(n.currentTranslate),this.setTranslate(n.currentTranslate))}}}}else n.startMoving&&n.isScrolling&&this.emit("touchMoveOpposite",s)}.bind(this),this.onTouchEnd=function(e){var t=this,n=t.touchEventsData,i=t.params,r=t.touches,a=t.rtlTranslate,o=t.$wrapperEl,s=t.slidesGrid,c=t.snapGrid,u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var h,d=l.now(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),p<300&&d-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=l.nextTick(function(){t&&!t.destroyed&&t.emit("click",u)},300)),p<300&&d-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",u))),n.lastClickTime=l.now(),l.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,h=i.followFinger?a?t.translate:-t.translate:-n.currentTranslate,i.freeMode){if(h<-t.minTranslate())return void t.slideTo(t.activeIndex);if(h>-t.maxTranslate())return void(t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(n.velocities.length>1){var f=n.velocities.pop(),m=n.velocities.pop(),v=f.position-m.position,g=f.time-m.time;t.velocity=v/g,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(g>150||l.now()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var y=1e3*i.freeModeMomentumRatio,b=t.velocity*y,x=t.translate+b;a&&(x=-x);var w,_,M=!1,E=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(x<t.maxTranslate())i.freeModeMomentumBounce?(x+t.maxTranslate()<-E&&(x=t.maxTranslate()-E),w=t.maxTranslate(),M=!0,n.allowMomentumBounce=!0):x=t.maxTranslate(),i.loop&&i.centeredSlides&&(_=!0);else if(x>t.minTranslate())i.freeModeMomentumBounce?(x-t.minTranslate()>E&&(x=t.minTranslate()+E),w=t.minTranslate(),M=!0,n.allowMomentumBounce=!0):x=t.minTranslate(),i.loop&&i.centeredSlides&&(_=!0);else if(i.freeModeSticky){for(var T,S=0;S<c.length;S+=1)if(c[S]>-x){T=S;break}x=-(x=Math.abs(c[T]-x)<Math.abs(c[T-1]-x)||"next"===t.swipeDirection?c[T]:c[T-1])}if(_&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)y=a?Math.abs((-x-t.translate)/t.velocity):Math.abs((x-t.translate)/t.velocity);else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&M?(t.updateProgress(w),t.setTransition(y),t.setTranslate(x),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd(function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate(w),o.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(x),t.setTransition(y),t.setTranslate(x),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(x),t.updateActiveIndex(),t.updateSlidesClasses()}else if(i.freeModeSticky)return void t.slideToClosest();(!i.freeModeMomentum||p>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var C=0,A=t.slidesSizesGrid[0],L=0;L<s.length;L+=i.slidesPerGroup)void 0!==s[L+i.slidesPerGroup]?h>=s[L]&&h<s[L+i.slidesPerGroup]&&(C=L,A=s[L+i.slidesPerGroup]-s[L]):h>=s[L]&&(C=L,A=s[s.length-1]-s[s.length-2]);var P=(h-s[C])/A;if(p>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(P>=i.longSwipesRatio?t.slideTo(C+i.slidesPerGroup):t.slideTo(C)),"prev"===t.swipeDirection&&(P>1-i.longSwipesRatio?t.slideTo(C+i.slidesPerGroup):t.slideTo(C))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(C+i.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(C)}}}.bind(this),this.onClick=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}.bind(this);var s="container"===n.touchEventsTarget?a:o,u=!!n.nested;if(c.touch||!c.pointerEvents&&!c.prefixedPointerEvents){if(c.touch){var h=!("touchstart"!==r.start||!c.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(r.start,this.onTouchStart,h),s.addEventListener(r.move,this.onTouchMove,c.passiveListener?{passive:!1,capture:u}:u),s.addEventListener(r.end,this.onTouchEnd,h)}(n.simulateTouch&&!x.ios&&!x.android||n.simulateTouch&&!c.touch&&x.ios)&&(s.addEventListener("mousedown",this.onTouchStart,!1),e.addEventListener("mousemove",this.onTouchMove,u),e.addEventListener("mouseup",this.onTouchEnd,!1))}else s.addEventListener(r.start,this.onTouchStart,!1),e.addEventListener(r.move,this.onTouchMove,u),e.addEventListener(r.end,this.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&s.addEventListener("click",this.onClick,!0),this.on(x.ios||x.android?"resize orientationchange observerUpdate":"resize observerUpdate",w,!0)},detachEvents:function(){var t=this.params,n=this.touchEvents,i=this.el,r=this.wrapperEl,a="container"===t.touchEventsTarget?i:r,o=!!t.nested;if(c.touch||!c.pointerEvents&&!c.prefixedPointerEvents){if(c.touch){var s=!("onTouchStart"!==n.start||!c.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(n.start,this.onTouchStart,s),a.removeEventListener(n.move,this.onTouchMove,o),a.removeEventListener(n.end,this.onTouchEnd,s)}(t.simulateTouch&&!x.ios&&!x.android||t.simulateTouch&&!c.touch&&x.ios)&&(a.removeEventListener("mousedown",this.onTouchStart,!1),e.removeEventListener("mousemove",this.onTouchMove,o),e.removeEventListener("mouseup",this.onTouchEnd,!1))}else a.removeEventListener(n.start,this.onTouchStart,!1),e.removeEventListener(n.move,this.onTouchMove,o),e.removeEventListener(n.end,this.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.removeEventListener("click",this.onClick,!0),this.off(x.ios||x.android?"resize orientationchange observerUpdate":"resize observerUpdate",w)}},breakpoints:{setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,n=this.loopedSlides;void 0===n&&(n=0);var i=this.params,r=i.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var a=this.getBreakpoint(r);if(a&&this.currentBreakpoint!==a){var o=a in r?r[a]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(e){var t=o[e];void 0!==t&&(o[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")});var s=o||this.originalParams,c=s.direction&&s.direction!==i.direction,u=i.loop&&(s.slidesPerView!==i.slidesPerView||c);c&&t&&this.changeDirection(),l.extend(this.params,s),l.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=a,u&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-n+this.loopedSlides,0,!1)),this.emit("breakpoint",s)}}},getBreakpoint:function(e){if(e){var n=!1,i=[];Object.keys(e).forEach(function(e){i.push(e)}),i.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var r=0;r<i.length;r+=1){var a=i[r];this.params.breakpointsInverse?a<=t.innerWidth&&(n=a):a>=t.innerWidth&&!n&&(n=a)}return n||"max"}}},checkOverflow:{checkOverflow:function(){var e=this.isLocked;this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),e&&e!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,n=this.rtl,i=this.$el,r=[];r.push("initialized"),r.push(t.direction),t.freeMode&&r.push("free-mode"),c.flexbox||r.push("no-flexbox"),t.autoHeight&&r.push("autoheight"),n&&r.push("rtl"),t.slidesPerColumn>1&&r.push("multirow"),x.android&&r.push("android"),x.ios&&r.push("ios"),(u.isIE||u.isEdge)&&(c.pointerEvents||c.prefixedPointerEvents)&&r.push("wp8-"+t.direction),r.forEach(function(n){e.push(t.containerModifierClass+n)}),i.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,n,i,r,a,o){var s;function l(){o&&o()}e.complete&&a?l():n?((s=new t.Image).onload=l,s.onerror=l,r&&(s.sizes=r),i&&(s.srcset=i),n&&(s.src=n)):l()},preloadImages:function(){var e=this;function t(){void 0!==e&&null!==e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var i=e.imagesToLoad[n];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},E={},T=function(e){function t(){for(var n,r,a,o=[],s=arguments.length;s--;)o[s]=arguments[s];1===o.length&&o[0].constructor&&o[0].constructor===Object?a=o[0]:(r=(n=o)[0],a=n[1]),a||(a={}),a=l.extend({},a),r&&!a.el&&(a.el=r),e.call(this,a),Object.keys(M).forEach(function(e){Object.keys(M[e]).forEach(function(n){t.prototype[n]||(t.prototype[n]=M[e][n])})});var u=this;void 0===u.modules&&(u.modules={}),Object.keys(u.modules).forEach(function(e){var t=u.modules[e];if(t.params){var n=Object.keys(t.params)[0],i=t.params[n];if("object"!=typeof i||null===i)return;if(!(n in a&&"enabled"in i))return;!0===a[n]&&(a[n]={enabled:!0}),"object"!=typeof a[n]||"enabled"in a[n]||(a[n].enabled=!0),a[n]||(a[n]={enabled:!1})}});var h=l.extend({},_);u.useModulesParams(h),u.params=l.extend({},h,E,a),u.originalParams=l.extend({},u.params),u.passedParams=l.extend({},a),u.$=i;var d=i(u.params.el);if(r=d[0]){if(d.length>1){var p=[];return d.each(function(e,n){var i=l.extend({},a,{el:n});p.push(new t(i))}),p}r.swiper=u,d.data("swiper",u);var f,m,v=d.children("."+u.params.wrapperClass);return l.extend(u,{$el:d,el:r,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:i(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===u.params.direction},isVertical:function(){return"vertical"===u.params.direction},rtl:"rtl"===r.dir.toLowerCase()||"rtl"===d.css("direction"),rtlTranslate:"horizontal"===u.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===d.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEvents:(f=["touchstart","touchmove","touchend"],m=["mousedown","mousemove","mouseup"],c.pointerEvents?m=["pointerdown","pointermove","pointerup"]:c.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),u.touchEventsTouch={start:f[0],move:f[1],end:f[2]},u.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},c.touch||!u.params.simulateTouch?u.touchEventsTouch:u.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:l.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.useModules(),u.params.init&&u.init(),u}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,n=this.slidesGrid,i=this.size,r=this.activeIndex,a=1;if(e.centeredSlides){for(var o,s=t[r].swiperSlideSize,l=r+1;l<t.length;l+=1)t[l]&&!o&&(a+=1,(s+=t[l].swiperSlideSize)>i&&(o=!0));for(var c=r-1;c>=0;c-=1)t[c]&&!o&&(a+=1,(s+=t[c].swiperSlideSize)>i&&(o=!0))}else for(var u=r+1;u<t.length;u+=1)n[u]-n[r]<i&&(a+=1);return a},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(i(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||i(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function i(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e?this:(this.$el.removeClass(""+this.params.containerModifierClass+n+" wp8-"+n).addClass(""+this.params.containerModifierClass+e),(u.isIE||u.isEdge)&&(c.pointerEvents||c.prefixedPointerEvents)&&this.$el.addClass(this.params.containerModifierClass+"wp8-"+e),this.params.direction=e,this.slides.each(function(t,n){"vertical"===e?n.style.width="":n.style.height=""}),this.emit("changeDirection"),t&&this.update(),this)},t.prototype.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,i=n.params,r=n.$el,a=n.$wrapperEl,o=n.slides;return void 0===n.params||n.destroyed?null:(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(function(e){n.off(e)}),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),l.deleteProps(n)),n.destroyed=!0,null)},t.extendDefaults=function(e){l.extend(E,e)},n.extendedDefaults.get=function(){return E},n.defaults.get=function(){return _},n.Class.get=function(){return e},n.$.get=function(){return i},Object.defineProperties(t,n),t}(h),S={name:"device",proto:{device:x},static:{device:x}},C={name:"support",proto:{support:c},static:{support:c}},A={name:"browser",proto:{browser:u},static:{browser:u}},L={name:"resize",create:function(){var e=this;l.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){t.addEventListener("resize",this.resize.resizeHandler),t.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){t.removeEventListener("resize",this.resize.resizeHandler),t.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},P={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,n){void 0===n&&(n={});var i=this,r=new(0,P.func)(function(e){if(1!==e.length){var n=function(){i.emit("observerUpdate",e[0])};t.requestAnimationFrame?t.requestAnimationFrame(n):t.setTimeout(n,0)}else i.emit("observerUpdate",e[0])});r.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),i.observer.observers.push(r)},init:function(){if(c.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(e){e.disconnect()}),this.observer.observers=[]}},O={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){l.extend(this,{observer:{init:P.init.bind(this),attach:P.attach.bind(this),destroy:P.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},R={update:function(e){var t=this,n=t.params,i=n.slidesPerView,r=n.slidesPerGroup,a=n.centeredSlides,o=t.params.virtual,s=o.addSlidesBefore,c=o.addSlidesAfter,u=t.virtual,h=u.from,d=u.to,p=u.slides,f=u.slidesGrid,m=u.renderSlide,v=u.offset;t.updateActiveIndex();var g,y,b,x=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",a?(y=Math.floor(i/2)+r+s,b=Math.floor(i/2)+r+c):(y=i+(r-1)+s,b=r+c);var w=Math.max((x||0)-b,0),_=Math.min((x||0)+y,p.length-1),M=(t.slidesGrid[w]||0)-(t.slidesGrid[0]||0);function E(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(l.extend(t.virtual,{from:w,to:_,offset:M,slidesGrid:t.slidesGrid}),h===w&&d===_&&!e)return t.slidesGrid!==f&&M!==v&&t.slides.css(g,M+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:M,from:w,to:_,slides:function(){for(var e=[],t=w;t<=_;t+=1)e.push(p[t]);return e}()}),void E();var T=[],S=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var C=h;C<=d;C+=1)(C<w||C>_)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+C+'"]').remove();for(var A=0;A<p.length;A+=1)A>=w&&A<=_&&(void 0===d||e?S.push(A):(A>d&&S.push(A),A<h&&T.push(A)));S.forEach(function(e){t.$wrapperEl.append(m(p[e],e))}),T.sort(function(e,t){return t-e}).forEach(function(e){t.$wrapperEl.prepend(m(p[e],e))}),t.$wrapperEl.children(".swiper-slide").css(g,M+"px"),E()},renderSlide:function(e,t){var n=this.params.virtual;if(n.cache&&this.virtual.cache[t])return this.virtual.cache[t];var r=n.renderSlide?i(n.renderSlide.call(this,e,t)):i('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),n.cache&&(this.virtual.cache[t]=r),r},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this.activeIndex,n=t+1,i=1;if(Array.isArray(e)){for(var r=0;r<e.length;r+=1)e[r]&&this.virtual.slides.unshift(e[r]);n=t+e.length,i=e.length}else this.virtual.slides.unshift(e);if(this.params.virtual.cache){var a=this.virtual.cache,o={};Object.keys(a).forEach(function(e){o[parseInt(e,10)+i]=a[e]}),this.virtual.cache=o}this.virtual.update(!0),this.slideTo(n,0)},removeSlide:function(e){if(void 0!==e&&null!==e){var t=this.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)this.virtual.slides.splice(e[n],1),this.params.virtual.cache&&delete this.virtual.cache[e[n]],e[n]<t&&(t-=1),t=Math.max(t,0);else this.virtual.slides.splice(e,1),this.params.virtual.cache&&delete this.virtual.cache[e],e<t&&(t-=1),t=Math.max(t,0);this.virtual.update(!0),this.slideTo(t,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},D={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){l.extend(this,{virtual:{update:R.update.bind(this),appendSlide:R.appendSlide.bind(this),prependSlide:R.prependSlide.bind(this),removeSlide:R.removeSlide.bind(this),removeAllSlides:R.removeAllSlides.bind(this),renderSlide:R.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};l.extend(this.params,e),l.extend(this.originalParams,e),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},I={handle:function(n){var i=this.rtlTranslate,r=n;r.originalEvent&&(r=r.originalEvent);var a=r.keyCode||r.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===a||this.isVertical()&&40===a||34===a))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===a||this.isVertical()&&38===a||33===a))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===a||34===a||37===a||39===a||38===a||40===a)){var o=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var s=t.innerWidth,l=t.innerHeight,c=this.$el.offset();i&&(c.left-=this.$el[0].scrollLeft);for(var u=[[c.left,c.top],[c.left+this.width,c.top],[c.left,c.top+this.height],[c.left+this.width,c.top+this.height]],h=0;h<u.length;h+=1){var d=u[h];d[0]>=0&&d[0]<=s&&d[1]>=0&&d[1]<=l&&(o=!0)}if(!o)return}this.isHorizontal()?(33!==a&&34!==a&&37!==a&&39!==a||(r.preventDefault?r.preventDefault():r.returnValue=!1),(34!==a&&39!==a||i)&&(33!==a&&37!==a||!i)||this.slideNext(),(33!==a&&37!==a||i)&&(34!==a&&39!==a||!i)||this.slidePrev()):(33!==a&&34!==a&&38!==a&&40!==a||(r.preventDefault?r.preventDefault():r.returnValue=!1),34!==a&&40!==a||this.slideNext(),33!==a&&38!==a||this.slidePrev()),this.emit("keyPress",a)}},enable:function(){this.keyboard.enabled||(i(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(i(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},k={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){l.extend(this,{keyboard:{enabled:!1,enable:I.enable.bind(this),disable:I.disable.bind(this),handle:I.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var N={lastScrollTime:l.now(),event:t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in e;if(!t){var n=e.createElement("div");n.setAttribute("onwheel","return;"),t="function"==typeof n.onwheel}return!t&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(t=e.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1===e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var n=e,i=this,r=i.params.mousewheel;if(!i.mouseEntered&&!r.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);var a=0,o=i.rtlTranslate?-1:1,s=N.normalize(n);if(r.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;a=s.pixelX*o}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;a=s.pixelY}else a=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*o:-s.pixelY;if(0===a)return!0;if(r.invert&&(a=-a),i.params.freeMode){i.params.loop&&i.loopFix();var c=i.getTranslate()+a*r.sensitivity,u=i.isBeginning,h=i.isEnd;if(c>=i.minTranslate()&&(c=i.minTranslate()),c<=i.maxTranslate()&&(c=i.maxTranslate()),i.setTransition(0),i.setTranslate(c),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!u&&i.isBeginning||!h&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=l.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",n),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),c===i.minTranslate()||c===i.maxTranslate())return!0}else{if(l.now()-i.mousewheel.lastScrollTime>60)if(a<0)if(i.isEnd&&!i.params.loop||i.animating){if(r.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",n);else if(i.isBeginning&&!i.params.loop||i.animating){if(r.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",n);i.mousewheel.lastScrollTime=(new t.Date).getTime()}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},enable:function(){if(!N.event)return!1;if(this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=i(this.params.mousewheel.eventsTarged)),e.on("mouseenter",this.mousewheel.handleMouseEnter),e.on("mouseleave",this.mousewheel.handleMouseLeave),e.on(N.event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){if(!N.event)return!1;if(!this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=i(this.params.mousewheel.eventsTarged)),e.off(N.event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},z={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,n=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(this.isBeginning?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),n&&n.length>0&&(this.isEnd?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,n=this.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(e=i(n.nextEl),this.params.uniqueNavElements&&"string"==typeof n.nextEl&&e.length>1&&1===this.$el.find(n.nextEl).length&&(e=this.$el.find(n.nextEl))),n.prevEl&&(t=i(n.prevEl),this.params.uniqueNavElements&&"string"==typeof n.prevEl&&t.length>1&&1===this.$el.find(n.prevEl).length&&(t=this.$el.find(n.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),t&&t.length>0&&t.on("click",this.navigation.onPrevClick),l.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;t&&t.length&&(t.off("click",this.navigation.onNextClick),t.removeClass(this.params.navigation.disabledClass)),n&&n.length&&(n.off("click",this.navigation.onPrevClick),n.removeClass(this.params.navigation.disabledClass))}},F={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n,r=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,a=this.pagination.$el,o=this.params.loop?Math.ceil((r-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((n=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>r-1-2*this.loopedSlides&&(n-=r-2*this.loopedSlides),n>o-1&&(n-=o),n<0&&"bullets"!==this.params.paginationType&&(n=o+n)):n=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var s,l,c,u=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=u.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=n-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),s=n-this.pagination.dynamicBulletIndex,c=((l=s+(Math.min(u.length,t.dynamicMainBullets)-1))+s)/2),u.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),a.length>1)u.each(function(e,r){var a=i(r),o=a.index();o===n&&a.addClass(t.bulletActiveClass),t.dynamicBullets&&(o>=s&&o<=l&&a.addClass(t.bulletActiveClass+"-main"),o===s&&a.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),o===l&&a.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))});else if(u.eq(n).addClass(t.bulletActiveClass),t.dynamicBullets){for(var h=u.eq(s),d=u.eq(l),p=s;p<=l;p+=1)u.eq(p).addClass(t.bulletActiveClass+"-main");h.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),d.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}if(t.dynamicBullets){var f=Math.min(u.length,t.dynamicMainBullets+4),m=(this.pagination.bulletSize*f-this.pagination.bulletSize)/2-c*this.pagination.bulletSize,v=e?"right":"left";u.css(this.isHorizontal()?v:"top",m+"px")}}if("fraction"===t.type&&(a.find("."+t.currentClass).text(t.formatFractionCurrent(n+1)),a.find("."+t.totalClass).text(t.formatFractionTotal(o))),"progressbar"===t.type){var g;g=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var y=(n+1)/o,b=1,x=1;"horizontal"===g?b=y:x=y,a.find("."+t.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+b+") scaleY("+x+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(a.html(t.renderCustom(this,n+1,o)),this.emit("paginationRender",this,a[0])):this.emit("paginationUpdate",this,a[0]),a[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,i="";if("bullets"===e.type){for(var r=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,a=0;a<r;a+=1)e.renderBullet?i+=e.renderBullet.call(this,a,e.bulletClass):i+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";n.html(i),this.pagination.bullets=n.find("."+e.bulletClass)}"fraction"===e.type&&(i=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',n.html(i)),"progressbar"===e.type&&(i=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',n.html(i)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=i(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click","."+t.bulletClass,function(t){t.preventDefault();var n=i(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)}),l.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}},B={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,n=this.progress,i=e.dragSize,r=e.trackSize,a=e.$dragEl,o=e.$el,s=this.params.scrollbar,l=i,u=(r-i)*n;t?(u=-u)>0?(l=i-u,u=0):-u+i>r&&(l=r+u):u<0?(l=i+u,u=0):u+i>r&&(l=r-u),this.isHorizontal()?(c.transforms3d?a.transform("translate3d("+u+"px, 0, 0)"):a.transform("translateX("+u+"px)"),a[0].style.width=l+"px"):(c.transforms3d?a.transform("translate3d(0px, "+u+"px, 0)"):a.transform("translateY("+u+"px)"),a[0].style.height=l+"px"),s.hide&&(clearTimeout(this.scrollbar.timeout),o[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){o[0].style.opacity=0,o.transition(400)},1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,n=e.$el;t[0].style.width="",t[0].style.height="";var i,r=this.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,a=this.size/this.virtualSize,o=a*(r/this.size);i="auto"===this.params.scrollbar.dragSize?r*a:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width=i+"px":t[0].style.height=i+"px",n[0].style.display=a>=1?"none":"",this.params.scrollbar.hide&&(n[0].style.opacity=0),l.extend(e,{trackSize:r,divider:a,moveDivider:o,dragSize:i}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,n=this.scrollbar,i=this.rtlTranslate,r=n.$el,a=n.dragSize,o=n.trackSize,s=n.dragStartPos;t=(n.getPointerPosition(e)-r.offset()[this.isHorizontal()?"left":"top"]-(null!==s?s:a/2))/(o-a),t=Math.max(Math.min(t,1),0),i&&(t=1-t);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,n=this.scrollbar,i=this.$wrapperEl,r=n.$el,a=n.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=e.target===a[0]||e.target===a?n.getPointerPosition(e)-e.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.transition(100),a.transition(100),n.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),r.transition(0),t.hide&&r.css("opacity",1),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,n=this.$wrapperEl,i=t.$el,r=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),n.transition(0),i.transition(0),r.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,n=this.scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=l.nextTick(function(){n.css("opacity",0),n.transition(400)},1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,n=this.touchEventsTouch,i=this.touchEventsDesktop,r=this.params,a=t.$el[0],o=!(!c.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},s=!(!c.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};c.touch?(a.addEventListener(n.start,this.scrollbar.onDragStart,o),a.addEventListener(n.move,this.scrollbar.onDragMove,o),a.addEventListener(n.end,this.scrollbar.onDragEnd,s)):(a.addEventListener(i.start,this.scrollbar.onDragStart,o),e.addEventListener(i.move,this.scrollbar.onDragMove,o),e.addEventListener(i.end,this.scrollbar.onDragEnd,s))}},disableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,n=this.touchEventsTouch,i=this.touchEventsDesktop,r=this.params,a=t.$el[0],o=!(!c.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},s=!(!c.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};c.touch?(a.removeEventListener(n.start,this.scrollbar.onDragStart,o),a.removeEventListener(n.move,this.scrollbar.onDragMove,o),a.removeEventListener(n.end,this.scrollbar.onDragEnd,s)):(a.removeEventListener(i.start,this.scrollbar.onDragStart,o),e.removeEventListener(i.move,this.scrollbar.onDragMove,o),e.removeEventListener(i.end,this.scrollbar.onDragEnd,s))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,n=this.params.scrollbar,r=i(n.el);this.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===t.find(n.el).length&&(r=t.find(n.el));var a=r.find("."+this.params.scrollbar.dragClass);0===a.length&&(a=i('<div class="'+this.params.scrollbar.dragClass+'"></div>'),r.append(a)),l.extend(e,{$el:r,el:r[0],$dragEl:a,dragEl:a[0]}),n.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},H={setTransform:function(e,t){var n=this.rtl,r=i(e),a=n?-1:1,o=r.attr("data-swiper-parallax")||"0",s=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),c=r.attr("data-swiper-parallax-scale"),u=r.attr("data-swiper-parallax-opacity");if(s||l?(s=s||"0",l=l||"0"):this.isHorizontal()?(s=o,l="0"):(l=o,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*t*a+"%":s*t*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",void 0!==u&&null!==u){var h=u-(u-1)*(1-Math.abs(t));r[0].style.opacity=h}if(void 0===c||null===c)r.transform("translate3d("+s+", "+l+", 0px)");else{var d=c-(c-1)*(1-Math.abs(t));r.transform("translate3d("+s+", "+l+", 0px) scale("+d+")")}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,r=e.progress,a=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t,n){e.parallax.setTransform(n,r)}),n.each(function(t,n){var o=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(t/2)-r*(a.length-1)),o=Math.min(Math.max(o,-1),1),i(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t,n){e.parallax.setTransform(n,o)})})},setTransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t,n){var r=i(n),a=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),r.transition(a)})}},j={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-t,2)+Math.pow(r-n,2))},onGestureStart:function(e){var t=this.params.zoom,n=this.zoom,r=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!c.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,r.scaleStart=j.getDistanceBetweenTouches(e)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=i(e.target).closest(".swiper-slide"),0===r.$slideEl.length&&(r.$slideEl=this.slides.eq(this.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+t.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl.transition(0),this.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,n=this.zoom,i=n.gesture;if(!c.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,i.scaleMove=j.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(c.gestures?n.scale=e.scale*n.currentScale:n.scale=i.scaleMove/i.scaleStart*n.currentScale,n.scale>i.maxRatio&&(n.scale=i.maxRatio-1+Math.pow(n.scale-i.maxRatio+1,.5)),n.scale<t.minRatio&&(n.scale=t.minRatio+1-Math.pow(t.minRatio-n.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,n=this.zoom,i=n.gesture;if(!c.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!x.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,i.maxRatio),t.minRatio),i.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+n.scale+")"),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(i.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,i=t.image;n.$imageEl&&0!==n.$imageEl.length&&(i.isTouched||(x.android&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,n=t.gesture,i=t.image,r=t.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(this.allowClick=!1,i.isTouched&&n.$slideEl)){i.isMoved||(i.width=n.$imageEl[0].offsetWidth,i.height=n.$imageEl[0].offsetHeight,i.startX=l.getTranslate(n.$imageWrapEl[0],"x")||0,i.startY=l.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),this.rtl&&(i.startX=-i.startX,i.startY=-i.startY));var a=i.width*t.scale,o=i.height*t.scale;if(!(a<n.slideWidth&&o<n.slideHeight)){if(i.minX=Math.min(n.slideWidth/2-a/2,0),i.maxX=-i.minX,i.minY=Math.min(n.slideHeight/2-o/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,i=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var r=300,a=300,o=i.x*r,s=n.currentX+o,l=i.y*a,c=n.currentY+l;0!==i.x&&(r=Math.abs((s-n.currentX)/i.x)),0!==i.y&&(a=Math.abs((c-n.currentY)/i.y));var u=Math.max(r,a);n.currentX=s,n.currentY=c;var h=n.width*e.scale,d=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-h/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-d/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(u).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,r,a,o,s,l,c,u,h,d,p,f,m,v,g,y=this.zoom,b=this.params.zoom,x=y.gesture,w=y.image;(x.$slideEl||(x.$slideEl=this.clickedSlide?i(this.clickedSlide):this.slides.eq(this.activeIndex),x.$imageEl=x.$slideEl.find("img, svg, canvas"),x.$imageWrapEl=x.$imageEl.parent("."+b.containerClass)),x.$imageEl&&0!==x.$imageEl.length)&&(x.$slideEl.addClass(""+b.zoomedSlideClass),void 0===w.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=w.touchesStart.x,n=w.touchesStart.y),y.scale=x.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,y.currentScale=x.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,e?(v=x.$slideEl[0].offsetWidth,g=x.$slideEl[0].offsetHeight,r=x.$slideEl.offset().left+v/2-t,a=x.$slideEl.offset().top+g/2-n,l=x.$imageEl[0].offsetWidth,c=x.$imageEl[0].offsetHeight,u=l*y.scale,h=c*y.scale,f=-(d=Math.min(v/2-u/2,0)),m=-(p=Math.min(g/2-h/2,0)),o=r*y.scale,s=a*y.scale,o<d&&(o=d),o>f&&(o=f),s<p&&(s=p),s>m&&(s=m)):(o=0,s=0),x.$imageWrapEl.transition(300).transform("translate3d("+o+"px, "+s+"px,0)"),x.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,n=e.gesture;n.$slideEl||(n.$slideEl=this.clickedSlide?i(this.clickedSlide):this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+t.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+t.zoomedSlideClass),n.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!c.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};c.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!c.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};c.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove)}}},U={loadInSlide:function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var a=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):n.slides.eq(e),o=a.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!a.hasClass(r.elementClass)||a.hasClass(r.loadedClass)||a.hasClass(r.loadingClass)||(o=o.add(a[0])),0!==o.length&&o.each(function(e,o){var s=i(o);s.addClass(r.loadingClass);var l=s.attr("data-background"),c=s.attr("data-src"),u=s.attr("data-srcset"),h=s.attr("data-sizes");n.loadImage(s[0],c||l,u,h,!1,function(){if(void 0!==n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(l?(s.css("background-image",'url("'+l+'")'),s.removeAttr("data-background")):(u&&(s.attr("srcset",u),s.removeAttr("data-srcset")),h&&(s.attr("sizes",h),s.removeAttr("data-sizes")),c&&(s.attr("src",c),s.removeAttr("data-src"))),s.addClass(r.loadedClass).removeClass(r.loadingClass),a.find("."+r.preloaderClass).remove(),n.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(i.index(),!1)}else{var o=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(o.index(),!1)}}n.emit("lazyImageReady",a[0],s[0])}}),n.emit("lazyImageLoad",a[0],s[0])})}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides,a=e.activeIndex,o=e.virtual&&n.virtual.enabled,s=n.lazy,l=n.slidesPerView;function c(e){if(o){if(t.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(r[e])return!0;return!1}function u(e){return o?i(e).attr("data-swiper-slide-index"):i(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+n.slideVisibleClass).each(function(t,n){var r=o?i(n).attr("data-swiper-slide-index"):i(n).index();e.lazy.loadInSlide(r)});else if(l>1)for(var h=a;h<a+l;h+=1)c(h)&&e.lazy.loadInSlide(h);else e.lazy.loadInSlide(a);if(s.loadPrevNext)if(l>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var d=s.loadPrevNextAmount,p=l,f=Math.min(a+p+Math.max(d,p),r.length),m=Math.max(a-Math.max(p,d),0),v=a+l;v<f;v+=1)c(v)&&e.lazy.loadInSlide(v);for(var g=m;g<a;g+=1)c(g)&&e.lazy.loadInSlide(g)}else{var y=t.children("."+n.slideNextClass);y.length>0&&e.lazy.loadInSlide(u(y));var b=t.children("."+n.slidePrevClass);b.length>0&&e.lazy.loadInSlide(u(b))}}},G={LinearSpline:function(e,t){var n,i,r,a,o,s=function(e,t){for(i=-1,n=e.length;n-i>1;)e[r=n+i>>1]<=t?i=r:n=r;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(o=s(this.x,e),a=o-1,(e-this.x[a])*(this.y[o]-this.y[a])/(this.x[o]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new G.LinearSpline(this.slidesGrid,e.slidesGrid):new G.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,i,r=this,a=r.controller.control;function o(e){var t=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),i=-r.controller.spline.interpolate(-t)),i&&"container"!==r.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),i=(t-r.minTranslate())*n+e.minTranslate()),r.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(var s=0;s<a.length;s+=1)a[s]!==t&&a[s]instanceof T&&o(a[s]);else a instanceof T&&t!==a&&o(a)},setTransition:function(e,t){var n,i=this,r=i.controller.control;function a(t){t.setTransition(e,i),0!==e&&(t.transitionStart(),t.params.autoHeight&&l.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){r&&(t.params.loop&&"slide"===i.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(r))for(n=0;n<r.length;n+=1)r[n]!==t&&r[n]instanceof T&&a(r[n]);else r instanceof T&&t!==r&&a(r)}},V={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var n=i(e.target);this.navigation&&this.navigation.$nextEl&&n.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&n.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&n.is("."+this.params.pagination.bulletClass)&&n[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop){var e=this.navigation,t=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(this.isBeginning?this.a11y.disableEl(n):this.a11y.enableEl(n)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each(function(n,r){var a=i(r);e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,t.paginationBulletMessage.replace(/{{index}}/,a.index()+1))})},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,n=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,n.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,n.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},W={init:function(){if(this.params.history){if(!t.history||!t.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=W.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||t.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=W.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),n=e.length;return{key:e[n-2],value:e[n-1]}},setHistory:function(e,n){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(n),r=W.slugify(i.attr("data-history"));t.location.pathname.includes(e)||(r=e+"/"+r);var a=t.history.state;a&&a.value===r||(this.params.history.replaceState?t.history.replaceState({value:r},null,r):t.history.pushState({value:r},null,r))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){if(t)for(var i=0,r=this.slides.length;i<r;i+=1){var a=this.slides.eq(i);if(W.slugify(a.attr("data-history"))===t&&!a.hasClass(this.params.slideDuplicateClass)){var o=a.index();this.slideTo(o,e,n)}}else this.slideTo(0,e,n)}},$={onHashCange:function(){var t=e.location.hash.replace("#","");if(t!==this.slides.eq(this.activeIndex).attr("data-hash")){var n=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===n)return;this.slideTo(n)}},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||"");else{var n=this.slides.eq(this.activeIndex),i=n.attr("data-hash")||n.attr("data-history");e.location.hash=i||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var n=e.location.hash.replace("#","");if(n)for(var r=0,a=this.slides.length;r<a;r+=1){var o=this.slides.eq(r);if((o.attr("data-hash")||o.attr("data-history"))===n&&!o.hasClass(this.params.slideDuplicateClass)){var s=o.index();this.slideTo(s,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&i(t).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&i(t).off("hashchange",this.hashNavigation.onHashCange)}},Y={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=l.nextTick(function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},n)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},q={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var n=this.slides.eq(t),i=-n[0].swiperSlideOffset;this.params.virtualTranslate||(i-=this.translate);var r=0;this.isHorizontal()||(r=i,i=0);var a=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:a}).transform("translate3d("+i+"px, "+r+"px, 0px)")}},setTransition:function(e){var t=this,n=t.slides,i=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var r=!1;n.transitionEnd(function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}})}}},X={setTranslate:function(){var e,t=this.$el,n=this.$wrapperEl,r=this.slides,a=this.width,o=this.height,s=this.rtlTranslate,l=this.size,c=this.params.cubeEffect,h=this.isHorizontal(),d=this.virtual&&this.params.virtual.enabled,p=0;c.shadow&&(h?(0===(e=n.find(".swiper-cube-shadow")).length&&(e=i('<div class="swiper-cube-shadow"></div>'),n.append(e)),e.css({height:a+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=i('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var f=0;f<r.length;f+=1){var m=r.eq(f),v=f;d&&(v=parseInt(m.attr("data-swiper-slide-index"),10));var g=90*v,y=Math.floor(g/360);s&&(g=-g,y=Math.floor(-g/360));var b=Math.max(Math.min(m[0].progress,1),-1),x=0,w=0,_=0;v%4==0?(x=4*-y*l,_=0):(v-1)%4==0?(x=0,_=4*-y*l):(v-2)%4==0?(x=l+4*y*l,_=l):(v-3)%4==0&&(x=-l,_=3*l+4*l*y),s&&(x=-x),h||(w=x,x=0);var M="rotateX("+(h?0:-g)+"deg) rotateY("+(h?g:0)+"deg) translate3d("+x+"px, "+w+"px, "+_+"px)";if(b<=1&&b>-1&&(p=90*v+90*b,s&&(p=90*-v-90*b)),m.transform(M),c.slideShadows){var E=h?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),T=h?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===E.length&&(E=i('<div class="swiper-slide-shadow-'+(h?"left":"top")+'"></div>'),m.append(E)),0===T.length&&(T=i('<div class="swiper-slide-shadow-'+(h?"right":"bottom")+'"></div>'),m.append(T)),E.length&&(E[0].style.opacity=Math.max(-b,0)),T.length&&(T[0].style.opacity=Math.max(b,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),c.shadow)if(h)e.transform("translate3d(0px, "+(a/2+c.shadowOffset)+"px, "+-a/2+"px) rotateX(90deg) rotateZ(0deg) scale("+c.shadowScale+")");else{var S=Math.abs(p)-90*Math.floor(Math.abs(p)/90),C=1.5-(Math.sin(2*S*Math.PI/360)/2+Math.cos(2*S*Math.PI/360)/2),A=c.shadowScale,L=c.shadowScale/C,P=c.shadowOffset;e.transform("scale3d("+A+", 1, "+L+") translate3d(0px, "+(o/2+P)+"px, "+-o/2/L+"px) rotateX(-90deg)")}var O=u.isSafari||u.isUiWebView?-l/2:0;n.transform("translate3d(0px,0,"+O+"px) rotateX("+(this.isHorizontal()?0:p)+"deg) rotateY("+(this.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},J={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,n=0;n<e.length;n+=1){var r=e.eq(n),a=r[0].progress;this.params.flipEffect.limitRotation&&(a=Math.max(Math.min(r[0].progress,1),-1));var o=-180*a,s=0,l=-r[0].swiperSlideOffset,c=0;if(this.isHorizontal()?t&&(o=-o):(c=l,l=0,s=-o,o=0),r[0].style.zIndex=-Math.abs(Math.round(a))+e.length,this.params.flipEffect.slideShadows){var u=this.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=this.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===u.length&&(u=i('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),r.append(u)),0===h.length&&(h=i('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),r.append(h)),u.length&&(u[0].style.opacity=Math.max(-a,0)),h.length&&(h[0].style.opacity=Math.max(a,0))}r.transform("translate3d("+l+"px, "+c+"px, 0px) rotateX("+s+"deg) rotateY("+o+"deg)")}},setTransition:function(e){var t=this,n=t.slides,i=t.activeIndex,r=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;n.eq(i).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}})}}},Z={setTranslate:function(){for(var e=this.width,t=this.height,n=this.slides,r=this.$wrapperEl,a=this.slidesSizesGrid,o=this.params.coverflowEffect,s=this.isHorizontal(),l=this.translate,u=s?e/2-l:t/2-l,h=s?o.rotate:-o.rotate,d=o.depth,p=0,f=n.length;p<f;p+=1){var m=n.eq(p),v=a[p],g=(u-m[0].swiperSlideOffset-v/2)/v*o.modifier,y=s?h*g:0,b=s?0:h*g,x=-d*Math.abs(g),w=s?0:o.stretch*g,_=s?o.stretch*g:0;Math.abs(_)<.001&&(_=0),Math.abs(w)<.001&&(w=0),Math.abs(x)<.001&&(x=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0);var M="translate3d("+_+"px,"+w+"px,"+x+"px)  rotateX("+b+"deg) rotateY("+y+"deg)";if(m.transform(M),m[0].style.zIndex=1-Math.abs(Math.round(g)),o.slideShadows){var E=s?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),T=s?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===E.length&&(E=i('<div class="swiper-slide-shadow-'+(s?"left":"top")+'"></div>'),m.append(E)),0===T.length&&(T=i('<div class="swiper-slide-shadow-'+(s?"right":"bottom")+'"></div>'),m.append(T)),E.length&&(E[0].style.opacity=g>0?g:0),T.length&&(T[0].style.opacity=-g>0?-g:0)}}(c.pointerEvents||c.prefixedPointerEvents)&&(r[0].style.perspectiveOrigin=u+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},K={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,l.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),l.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):l.isObject(e.swiper)&&(this.thumbs.swiper=new t(l.extend({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedIndex,n=e.clickedSlide;if(!(n&&i(n).hasClass(this.params.thumbs.slideThumbActiveClass)||void 0===t||null===t)){var r;if(r=e.params.loop?parseInt(i(e.clickedSlide).attr("data-swiper-slide-index"),10):t,this.params.loop){var a=this.activeIndex;this.slides.eq(a).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,a=this.activeIndex);var o=this.slides.eq(a).prevAll('[data-swiper-slide-index="'+r+'"]').eq(0).index(),s=this.slides.eq(a).nextAll('[data-swiper-slide-index="'+r+'"]').eq(0).index();r=void 0===o?s:void 0===s?o:s-a<a-o?s:o}this.slideTo(r)}}},update:function(e){var t=this.thumbs.swiper;if(t){var n="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():t.params.slidesPerView;if(this.realIndex!==t.realIndex){var i,r=t.activeIndex;if(t.params.loop){t.slides.eq(r).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,r=t.activeIndex);var a=t.slides.eq(r).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),o=t.slides.eq(r).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();i=void 0===a?o:void 0===o?a:o-r==r-a?r:o-r<r-a?o:a}else i=this.realIndex;t.visibleSlidesIndexes&&t.visibleSlidesIndexes.indexOf(i)<0&&(t.params.centeredSlides?i=i>r?i-Math.floor(n/2)+1:i+Math.floor(n/2)-1:i>r&&(i=i-n+1),t.slideTo(i,e?0:void 0))}var s=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(s=this.params.slidesPerView),t.slides.removeClass(l),t.params.loop||t.params.virtual)for(var c=0;c<s;c+=1)t.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+c)+'"]').addClass(l);else for(var u=0;u<s;u+=1)t.slides.eq(this.realIndex+u).addClass(l)}}},Q=[S,C,A,L,O,D,k,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){l.extend(this,{mousewheel:{enabled:!1,enable:N.enable.bind(this),disable:N.disable.bind(this),handle:N.handle.bind(this),handleMouseEnter:N.handleMouseEnter.bind(this),handleMouseLeave:N.handleMouseLeave.bind(this),lastScrollTime:l.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){l.extend(this,{navigation:{init:z.init.bind(this),update:z.update.bind(this),destroy:z.destroy.bind(this),onNextClick:z.onNextClick.bind(this),onPrevClick:z.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,n=this.navigation,r=n.$nextEl,a=n.$prevEl;!this.params.navigation.hideOnClick||i(e.target).is(a)||i(e.target).is(r)||(r?t=r.hasClass(this.params.navigation.hiddenClass):a&&(t=a.hasClass(this.params.navigation.hiddenClass)),!0===t?this.emit("navigationShow",this):this.emit("navigationHide",this),r&&r.toggleClass(this.params.navigation.hiddenClass),a&&a.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){l.extend(this,{pagination:{init:F.init.bind(this),render:F.render.bind(this),update:F.update.bind(this),destroy:F.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!i(e.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){l.extend(this,{scrollbar:{init:B.init.bind(this),destroy:B.destroy.bind(this),updateSize:B.updateSize.bind(this),setTranslate:B.setTranslate.bind(this),setTransition:B.setTransition.bind(this),enableDraggable:B.enableDraggable.bind(this),disableDraggable:B.disableDraggable.bind(this),setDragPosition:B.setDragPosition.bind(this),getPointerPosition:B.getPointerPosition.bind(this),onDragStart:B.onDragStart.bind(this),onDragMove:B.onDragMove.bind(this),onDragEnd:B.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){l.extend(this,{parallax:{setTransform:H.setTransform.bind(this),setTranslate:H.setTranslate.bind(this),setTransition:H.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(n){t[n]=j[n].bind(e)}),l.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var i=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,r=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,i,r)}n=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){l.extend(this,{lazy:{initialImageLoaded:!1,load:U.load.bind(this),loadInSlide:U.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){l.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:G.getInterpolateFunction.bind(this),setTranslate:G.setTranslate.bind(this),setTransition:G.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;l.extend(e,{a11y:{liveRegion:i('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(V).forEach(function(t){e.a11y[t]=V[t].bind(e)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){l.extend(this,{history:{init:W.init.bind(this),setHistory:W.setHistory.bind(this),setHistoryPopState:W.setHistoryPopState.bind(this),scrollToSlide:W.scrollToSlide.bind(this),destroy:W.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){l.extend(this,{hashNavigation:{initialized:!1,init:$.init.bind(this),destroy:$.destroy.bind(this),setHash:$.setHash.bind(this),onHashCange:$.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;l.extend(e,{autoplay:{running:!1,paused:!1,run:Y.run.bind(e),start:Y.start.bind(e),stop:Y.stop.bind(e),pause:Y.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){l.extend(this,{fadeEffect:{setTranslate:q.setTranslate.bind(this),setTransition:q.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};l.extend(this.params,e),l.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){l.extend(this,{cubeEffect:{setTranslate:X.setTranslate.bind(this),setTransition:X.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};l.extend(this.params,e),l.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){l.extend(this,{flipEffect:{setTranslate:J.setTranslate.bind(this),setTransition:J.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};l.extend(this.params,e),l.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){l.extend(this,{coverflowEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){l.extend(this,{thumbs:{swiper:null,init:K.init.bind(this),update:K.update.bind(this),onThumbClick:K.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===T.use&&(T.use=T.Class.use,T.installModule=T.Class.installModule),T.use(Q),T},e.exports=i()},34:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},414:function(e,t){THREE.VRMLLoader=function(e){this.manager=void 0!==e?e:THREE.DefaultLoadingManager},THREE.VRMLLoader.prototype={constructor:THREE.VRMLLoader,isRecordingPoints:!1,isRecordingFaces:!1,points:[],indexes:[],isRecordingAngles:!1,isRecordingColors:!1,angles:[],colors:[],recordingFieldname:null,crossOrigin:"anonymous",load:function(e,t,n,i){var r=this,a=void 0===r.path?THREE.LoaderUtils.extractUrlBase(e):r.path,o=new THREE.FileLoader(this.manager);o.setPath(r.path),o.load(e,function(e){t(r.parse(e,a))},n,i)},setPath:function(e){return this.path=e,this},setResourcePath:function(e){return this.resourcePath=e,this},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(e,t){var n=this,i=new THREE.TextureLoader(this.manager);i.setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin);for(var r=new THREE.Scene,a=e.split("\n"),o=a.length-1;o>-1;o--){var s=a[o];if(s=s.replace(/(#.*)/,""),/{.*[{\[]/.test(s))(l=s.split("{").join("{\n").split("\n")).unshift(1),l.unshift(o),a.splice.apply(a,l);else if(/\].*}/.test(s)){var l;(l=s.split("]").join("]\n").split("\n")).unshift(1),l.unshift(o),a.splice.apply(a,l)}if(/}.*}/.test(s))(l=s.split("}").join("}\n").split("\n")).unshift(1),l.unshift(o),a.splice.apply(a,l);/^\b[^\s]+\b$/.test(s.trim())?(a[o+1]=s+" "+a[o+1].trim(),a.splice(o,1)):s.indexOf("coord")>-1&&s.indexOf("[")<0&&s.indexOf("{")<0&&(a[o]+=" Coordinate {}")}var c=a.shift();return/V1.0/.exec(c)?console.warn("THREE.VRMLLoader: V1.0 not supported yet."):/V2.0/.exec(c)&&function(e,t){var r={},a=/(\b|\-|\+)([\d\.e]+)/,o=/([\d\.\+\-e]+)\s+([\d\.\+\-e]+)/g,s=/([\d\.\+\-e]+)\s+([\d\.\+\-e]+)\s+([\d\.\+\-e]+)/g;function l(e,t,n,i,r){for(var a=!0===r?1:-1,o=[],s={},l={},c=0;c<n.length;c++){var u={x:a*(Math.cos(n[c])*t),y:a*(Math.sin(n[c])*t)};o.push(u)}for(var h=e.index,d=e.attributes.position,p=new THREE.BufferAttribute(new Float32Array(3*e.attributes.position.count),3),f=new THREE.Vector3,m=new THREE.Color,v=0;v<h.count;v++){var g=h.getX(v);f.fromBufferAttribute(d,g);for(var y=0;y<i.length;y++)if(0===y?(s.x=0,s.y=!0===r?t:-1*t):(s.x=o[y-1].x,s.y=o[y-1].y),void 0!==(l=o[y]))if(!0==(!0===r?f.y<=s.y&&f.y>l.y:f.y>=s.y&&f.y<l.y)){var b=i[y],x=i[y+1],w=Math.abs(f.y-s.y)/(s.y-l.y);m.copy(b).lerp(x,w),p.setXYZ(g,m.r,m.g,m.b)}else{var _=i[!0===r?i.length-1:0];p.setXYZ(g,_.r,_.g,_.b)}}e.addAttribute("color",p)}var c=[];function u(e,t){for(var i,r,l,u=[],h={},d=/[^\s,\[\]]+/g;null!==(i=d.exec(t));)u.push(i[0]);switch(r=u[0]){case"skyAngle":case"groundAngle":n.recordingFieldname=r,n.isRecordingAngles=!0,n.angles=[];break;case"color":case"skyColor":case"groundColor":n.recordingFieldname=r,n.isRecordingColors=!0,n.colors=[];break;case"point":case"vector":n.recordingFieldname=r,n.isRecordingPoints=!0,n.points=[];break;case"colorIndex":case"coordIndex":case"normalIndex":case"texCoordIndex":n.recordingFieldname=r,n.isRecordingFaces=!0,n.indexes=[]}if(n.isRecordingFaces){if(u.length>0)for(var p=0;p<u.length;p++)/(-?\d+)/.test(u[p])&&("-1"===u[p]?(c.length>0&&n.indexes.push(c),c=[]):c.push(parseInt(u[p])));/]/.exec(t)&&(c.length>0&&n.indexes.push(c),c=[],n.isRecordingFaces=!1,e[n.recordingFieldname]=n.indexes)}else if(n.isRecordingPoints){if("Coordinate"==e.nodeType)for(;null!==(u=s.exec(t));)l={x:parseFloat(u[1]),y:parseFloat(u[2]),z:parseFloat(u[3])},n.points.push(l);if("Normal"==e.nodeType)for(;null!==(u=s.exec(t));)l={x:parseFloat(u[1]),y:parseFloat(u[2]),z:parseFloat(u[3])},n.points.push(l);if("TextureCoordinate"==e.nodeType)for(;null!==(u=o.exec(t));)l={x:parseFloat(u[1]),y:parseFloat(u[2])},n.points.push(l);/]/.exec(t)&&(n.isRecordingPoints=!1,e.points=n.points)}else if(n.isRecordingAngles){if(u.length>0)for(p=0;p<u.length;p++)a.test(u[p])&&n.angles.push(parseFloat(u[p]));/]/.exec(t)&&(n.isRecordingAngles=!1,e[n.recordingFieldname]=n.angles)}else if(n.isRecordingColors){for(;null!==(u=s.exec(t));){var f={r:parseFloat(u[1]),g:parseFloat(u[2]),b:parseFloat(u[3])};n.colors.push(f)}/]/.exec(t)&&(n.isRecordingColors=!1,e[n.recordingFieldname]=n.colors)}else if("NULL"!==u[u.length-1]&&"children"!==r){switch(r){case"diffuseColor":case"emissiveColor":case"specularColor":case"color":if(4!==u.length){console.warn("THREE.VRMLLoader: Invalid color format detected for %s.",r);break}h={r:parseFloat(u[1]),g:parseFloat(u[2]),b:parseFloat(u[3])};break;case"location":case"direction":case"translation":case"scale":case"size":if(4!==u.length){console.warn("THREE.VRMLLoader: Invalid vector format detected for %s.",r);break}h={x:parseFloat(u[1]),y:parseFloat(u[2]),z:parseFloat(u[3])};break;case"intensity":case"cutOffAngle":case"radius":case"topRadius":case"bottomRadius":case"height":case"transparency":case"shininess":case"ambientIntensity":case"creaseAngle":if(2!==u.length){console.warn("THREE.VRMLLoader: Invalid single float value specification detected for %s.",r);break}h=parseFloat(u[1]);break;case"rotation":if(5!==u.length){console.warn("THREE.VRMLLoader: Invalid quaternion format detected for %s.",r);break}h={x:parseFloat(u[1]),y:parseFloat(u[2]),z:parseFloat(u[3]),w:parseFloat(u[4])};break;case"on":case"ccw":case"solid":case"colorPerVertex":case"convex":if(2!==u.length){console.warn("THREE.VRMLLoader: Invalid format detected for %s.",r);break}h="TRUE"===u[1]}e[r]=h}return h}!function e(n,a){var o;if("string"!=typeof n){o=a,n.string.indexOf("AmbientLight")>-1&&"PointLight"===n.nodeType&&(n.nodeType="AmbientLight");var s=void 0===n.on||n.on,c=void 0!==n.intensity?n.intensity:1,u=new THREE.Color;if(n.color&&u.copy(n.color),"AmbientLight"===n.nodeType)(o=new THREE.AmbientLight(u,c)).visible=s,a.add(o);else if("PointLight"===n.nodeType){var h=0;void 0!==n.radius&&n.radius<1e3&&(h=n.radius),(o=new THREE.PointLight(u,c,h)).visible=s,a.add(o)}else if("SpotLight"===n.nodeType){c=1,h=0;var d=Math.PI/3;s=!0,void 0!==n.radius&&n.radius<1e3&&(h=n.radius),void 0!==n.cutOffAngle&&(d=n.cutOffAngle),(o=new THREE.SpotLight(u,c,h,d,0)).visible=s,a.add(o)}else if("Transform"===n.nodeType||"Group"===n.nodeType){if(o=new THREE.Object3D,/DEF/.exec(n.string)&&(o.name=/DEF\s+([^\s]+)/.exec(n.string)[1],r[o.name]=o),void 0!==n.translation){var p=n.translation;o.position.set(p.x,p.y,p.z)}if(void 0!==n.rotation){var f=n.rotation;o.quaternion.setFromAxisAngle(new THREE.Vector3(f.x,f.y,f.z),f.w)}if(void 0!==n.scale){var m=n.scale;o.scale.set(m.x,m.y,m.z)}a.add(o)}else if("Shape"===n.nodeType)o=new THREE.Mesh,/DEF/.exec(n.string)&&(o.name=/DEF\s+([^\s]+)/.exec(n.string)[1],r[o.name]=o),a.add(o);else if("Background"===n.nodeType){var v=2e4,g=new THREE.SphereBufferGeometry(v,20,20),y=new THREE.MeshBasicMaterial({fog:!1,side:THREE.BackSide});if(n.skyColor.length>1)l(g,v,n.skyAngle,n.skyColor,!0),y.vertexColors=THREE.VertexColors;else{var b=n.skyColor[0];y.color.setRGB(b.r,b.b,b.g)}if(t.add(new THREE.Mesh(g,y)),void 0!==n.groundColor){v=12e3;var x=new THREE.SphereBufferGeometry(v,20,20,0,2*Math.PI,.5*Math.PI,1.5*Math.PI),w=new THREE.MeshBasicMaterial({fog:!1,side:THREE.BackSide,vertexColors:THREE.VertexColors});l(x,v,n.groundAngle,n.groundColor,!1),t.add(new THREE.Mesh(x,w))}}else{if(/geometry/.exec(n.string)){if("Box"===n.nodeType)m=n.size,a.geometry=new THREE.BoxBufferGeometry(m.x,m.y,m.z);else if("Cylinder"===n.nodeType)a.geometry=new THREE.CylinderBufferGeometry(n.radius,n.radius,n.height);else if("Cone"===n.nodeType)a.geometry=new THREE.CylinderBufferGeometry(n.topRadius,n.bottomRadius,n.height);else if("Sphere"===n.nodeType)a.geometry=new THREE.SphereBufferGeometry(n.radius);else if("IndexedFaceSet"===n.nodeType){var _,M,E,T,S,C,A=new THREE.BufferGeometry,L=[],P=[],O=[],R=[];for(K=0,T=n.children.length;K<T;K++){if("TextureCoordinate"===(Q=n.children[K]).nodeType&&Q.points)for(S=0,C=Q.points.length;S<C;S++)E=Q.points[S],R.push(E.x,E.y);if("Normal"===Q.nodeType&&Q.points)for(S=0,C=Q.points.length;S<C;S++)M=Q.points[S],O.push(M.x,M.y,M.z);if("Color"===Q.nodeType&&Q.color)for(S=0,C=Q.color.length;S<C;S++)b=Q.color[S],P.push(b.r,b.g,b.b);if("Coordinate"===Q.nodeType){if(Q.points)for(S=0,C=Q.points.length;S<C;S++)_=Q.points[S],L.push(_.x,_.y,_.z);if(Q.string.indexOf("DEF")>-1){var D=/DEF\s+([^\s]+)/.exec(Q.string)[1];r[D]=L.slice(0)}Q.string.indexOf("USE")>-1&&(ae=/USE\s+([^\s]+)/.exec(Q.string)[1],L=r[ae])}}if(n.coordIndex){function I(e,t){void 0===t&&(t=!0);var n=[],i=0;for(K=0,T=e.length;K<T;K++){var r=e[K];for(i=0;r.length>=3&&i<r.length-2;){var a=r[0],o=r[i+(t?1:2)],s=r[i+(t?2:1)];n.push(a,o,s),i++}}return n}var k=n.coordIndex?I(n.coordIndex,n.ccw):[],N=n.normalIndex?I(n.normalIndex,n.ccw):k,z=n.colorIndex?I(n.colorIndex,n.ccw):k,F=n.texCoordIndex?I(n.texCoordIndex,n.ccw):k,B=[],H=[],j=[],U=[],G=[],V=Object.create(null);for(K=0;K<k.length;K++){var W=[],$=k[K],Y=N[K],q=z[K],X=F[K];W.push($.toString(10)),void 0!==Y&&W.push(Y.toString(10)),void 0!==q&&W.push(q.toString(10)),void 0!==X&&W.push(X.toString(10));var J=W.join(","),Z=V[J];void 0===Z&&(Z=H.length/3,V[J]=Z,H.push(L[3*$],L[3*$+1],L[3*$+2]),void 0!==Y&&O.length>0&&j.push(O[3*Y],O[3*Y+1],O[3*Y+2]),void 0!==q&&P.length>0&&U.push(P[3*q],P[3*q+1],P[3*q+2]),void 0!==X&&R.length>0&&G.push(R[2*X],R[2*X+1])),B.push(Z)}L=H,O=j,P=U,R=G,A.setIndex(B)}else a.parent.remove(a);!1===n.solid&&(a.material.side=THREE.DoubleSide),A.solid=n.solid,A.addAttribute("position",new THREE.Float32BufferAttribute(L,3)),P.length>0&&A.addAttribute("color",new THREE.Float32BufferAttribute(P,3)),R.length>0&&A.addAttribute("uv",new THREE.Float32BufferAttribute(R,2)),O.length>0?A.addAttribute("normal",new THREE.Float32BufferAttribute(O,3)):(A=A.toNonIndexed()).computeVertexNormals(),A.computeBoundingSphere(),/DEF/.exec(n.string)&&(A.name=/DEF ([^\s]+)/.exec(n.string)[1],r[A.name]=A),a.geometry=A}return}if(/appearance/.exec(n.string)){for(var K=0;K<n.children.length;K++){var Q;if("Material"===(Q=n.children[K]).nodeType){var ee=new THREE.MeshPhongMaterial;if(void 0!==Q.diffuseColor){var te=Q.diffuseColor;ee.color.setRGB(te.r,te.g,te.b)}if(void 0!==Q.emissiveColor){var ne=Q.emissiveColor;ee.emissive.setRGB(ne.r,ne.g,ne.b)}void 0!==Q.specularColor&&(m=Q.specularColor,ee.specular.setRGB(m.r,m.g,m.b)),void 0!==Q.transparency&&(p=Q.transparency,ee.opacity=Math.abs(1-p),ee.transparent=!0),/DEF/.exec(n.string)&&(ee.name=/DEF ([^\s]+)/.exec(n.string)[1],r[ee.name]=ee),a.material=ee}if("ImageTexture"===Q.nodeType){var ie=/"([^"]+)"/.exec(Q.children[0]);ie&&(a.material.name=ie[1],a.material.map=i.load(ie[1]))}}return}}K=0;for(var re=n.children.length;K<re;K++)e(n.children[K],o)}else if(/USE/.exec(n)){var ae=/USE\s+?([^\s]+)/.exec(n)[1];void 0==r[ae]?console.warn("THREE.VRMLLoader: %s is not defined.",ae):/appearance/.exec(n)&&ae?a.material=r[ae].clone():/geometry/.exec(n)&&ae?(a.geometry=r[ae].clone(),void 0!==r[ae].solid&&!1===r[ae].solid&&(a.geometry.solid=!1,a.material.side=THREE.DoubleSide)):ae&&(o=r[ae].clone(),a.add(o))}}(function(e){for(var t,n,i={string:"Scene",children:[]},r=i,a=0;a<e.length;a++){var o="",s=e[a];if(null===/^\s+?$/g.exec(s)&&""!==(s=s.trim())){if(/#/.exec(s)){var l=s.split("#");s=l[0],o=l[1]}if(t=/([^\s]*){1}(?:\s+)?{/.exec(s)){var c={nodeType:t[1],string:s,parent:r,children:[],comment:o};r.children.push(c),r=c,/}/.exec(s)&&(n=/{(.*)}/.exec(s)[1],c.children.push(n),u(r,n),r=r.parent)}else/}/.exec(s)?r=r.parent:""!==s&&(u(r,s),r.children.push(s))}}return i}(e),t)}(a,r),r}}},415:function(e,t,n){var i=n(134);i.OrbitControls=function(e,t){var n,r,a,o,s;void 0===t&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=e,this.domElement=t,this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!1,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={LEFT:i.MOUSE.ROTATE,MIDDLE:i.MOUSE.DOLLY,RIGHT:i.MOUSE.PAN},this.touches={ONE:i.TOUCH.ROTATE,TWO:i.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return m.phi},this.getAzimuthalAngle=function(){return m.theta},this.saveState=function(){l.target0.copy(l.target),l.position0.copy(l.object.position),l.zoom0=l.object.zoom},this.reset=function(){l.target.copy(l.target0),l.object.position.copy(l.position0),l.object.zoom=l.zoom0,l.object.updateProjectionMatrix(),l.dispatchEvent(c),l.update(),p=d.NONE},this.update=(n=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),a=r.clone().inverse(),o=new i.Vector3,s=new i.Quaternion,function(){var e=l.object.position;return n.copy(e).sub(l.target),n.applyQuaternion(r),m.setFromVector3(n),l.autoRotate&&p===d.NONE&&P(2*Math.PI/60/60*l.autoRotateSpeed),l.enableDamping?(m.theta+=v.theta*l.dampingFactor,m.phi+=v.phi*l.dampingFactor):(m.theta+=v.theta,m.phi+=v.phi),m.theta=Math.max(l.minAzimuthAngle,Math.min(l.maxAzimuthAngle,m.theta)),m.phi=Math.max(l.minPolarAngle,Math.min(l.maxPolarAngle,m.phi)),m.makeSafe(),m.radius*=g,m.radius=Math.max(l.minDistance,Math.min(l.maxDistance,m.radius)),!0===l.enableDamping?l.target.addScaledVector(y,l.dampingFactor):l.target.add(y),n.setFromSpherical(m),n.applyQuaternion(a),e.copy(l.target).add(n),l.object.lookAt(l.target),!0===l.enableDamping?(v.theta*=1-l.dampingFactor,v.phi*=1-l.dampingFactor,y.multiplyScalar(1-l.dampingFactor)):(v.set(0,0,0),y.set(0,0,0)),g=1,!!(b||o.distanceToSquared(l.object.position)>f||8*(1-s.dot(l.object.quaternion))>f)&&(l.dispatchEvent(c),o.copy(l.object.position),s.copy(l.object.quaternion),b=!1,!0)}),this.dispose=function(){l.domElement.removeEventListener("contextmenu",ee,!1),l.domElement.removeEventListener("mousedown",$,!1),l.domElement.removeEventListener("wheel",X,!1),l.domElement.removeEventListener("touchstart",Z,!1),l.domElement.removeEventListener("touchend",Q,!1),l.domElement.removeEventListener("touchmove",K,!1),document.removeEventListener("mousemove",Y,!1),document.removeEventListener("mouseup",q,!1),l.domElement.removeEventListener("keydown",J,!1)};var l=this,c={type:"change"},u={type:"start"},h={type:"end"},d={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},p=d.NONE,f=1e-6,m=new i.Spherical,v=new i.Spherical,g=1,y=new i.Vector3,b=!1,x=new i.Vector2,w=new i.Vector2,_=new i.Vector2,M=new i.Vector2,E=new i.Vector2,T=new i.Vector2,S=new i.Vector2,C=new i.Vector2,A=new i.Vector2;function L(){return Math.pow(.95,l.zoomSpeed)}function P(e){v.theta-=e}function O(e){v.phi-=e}var R,D=(R=new i.Vector3,function(e,t){R.setFromMatrixColumn(t,0),R.multiplyScalar(-e),y.add(R)}),I=function(){var e=new i.Vector3;return function(t,n){!0===l.screenSpacePanning?e.setFromMatrixColumn(n,1):(e.setFromMatrixColumn(n,0),e.crossVectors(l.object.up,e)),e.multiplyScalar(t),y.add(e)}}(),k=function(){var e=new i.Vector3;return function(t,n){var i=l.domElement;if(l.object.isPerspectiveCamera){var r=l.object.position;e.copy(r).sub(l.target);var a=e.length();a*=Math.tan(l.object.fov/2*Math.PI/180),D(2*t*a/i.clientHeight,l.object.matrix),I(2*n*a/i.clientHeight,l.object.matrix)}else l.object.isOrthographicCamera?(D(t*(l.object.right-l.object.left)/l.object.zoom/i.clientWidth,l.object.matrix),I(n*(l.object.top-l.object.bottom)/l.object.zoom/i.clientHeight,l.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),l.enablePan=!1)}}();function N(e){l.object.isPerspectiveCamera?g/=e:l.object.isOrthographicCamera?(l.object.zoom=Math.max(l.minZoom,Math.min(l.maxZoom,l.object.zoom*e)),l.object.updateProjectionMatrix(),b=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),l.enableZoom=!1)}function z(e){l.object.isPerspectiveCamera?g*=e:l.object.isOrthographicCamera?(l.object.zoom=Math.max(l.minZoom,Math.min(l.maxZoom,l.object.zoom/e)),l.object.updateProjectionMatrix(),b=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),l.enableZoom=!1)}function F(e){x.set(e.clientX,e.clientY)}function B(e){M.set(e.clientX,e.clientY)}function H(e){if(1==e.touches.length)x.set(e.touches[0].pageX,e.touches[0].pageY);else{var t=.5*(e.touches[0].pageX+e.touches[1].pageX),n=.5*(e.touches[0].pageY+e.touches[1].pageY);x.set(t,n)}}function j(e){if(1==e.touches.length)M.set(e.touches[0].pageX,e.touches[0].pageY);else{var t=.5*(e.touches[0].pageX+e.touches[1].pageX),n=.5*(e.touches[0].pageY+e.touches[1].pageY);M.set(t,n)}}function U(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);S.set(0,i)}function G(e){if(1==e.touches.length)w.set(e.touches[0].pageX,e.touches[0].pageY);else{var t=.5*(e.touches[0].pageX+e.touches[1].pageX),n=.5*(e.touches[0].pageY+e.touches[1].pageY);w.set(t,n)}_.subVectors(w,x).multiplyScalar(l.rotateSpeed);var i=l.domElement;P(2*Math.PI*_.x/i.clientHeight),O(2*Math.PI*_.y/i.clientHeight),x.copy(w)}function V(e){if(1==e.touches.length)E.set(e.touches[0].pageX,e.touches[0].pageY);else{var t=.5*(e.touches[0].pageX+e.touches[1].pageX),n=.5*(e.touches[0].pageY+e.touches[1].pageY);E.set(t,n)}T.subVectors(E,M).multiplyScalar(l.panSpeed),k(T.x,T.y),M.copy(E)}function W(e){var t=e.touches[0].pageX-e.touches[1].pageX,n=e.touches[0].pageY-e.touches[1].pageY,i=Math.sqrt(t*t+n*n);C.set(0,i),A.set(0,Math.pow(C.y/S.y,l.zoomSpeed)),N(A.y),S.copy(C)}function $(e){if(!1!==l.enabled){switch(e.preventDefault(),l.domElement.focus?l.domElement.focus():window.focus(),e.button){case 0:switch(l.mouseButtons.LEFT){case i.MOUSE.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===l.enablePan)return;B(e),p=d.PAN}else{if(!1===l.enableRotate)return;F(e),p=d.ROTATE}break;case i.MOUSE.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===l.enableRotate)return;F(e),p=d.ROTATE}else{if(!1===l.enablePan)return;B(e),p=d.PAN}break;default:p=d.NONE}break;case 1:switch(l.mouseButtons.MIDDLE){case i.MOUSE.DOLLY:if(!1===l.enableZoom)return;!function(e){S.set(e.clientX,e.clientY)}(e),p=d.DOLLY;break;default:p=d.NONE}break;case 2:switch(l.mouseButtons.RIGHT){case i.MOUSE.ROTATE:if(!1===l.enableRotate)return;F(e),p=d.ROTATE;break;case i.MOUSE.PAN:if(!1===l.enablePan)return;B(e),p=d.PAN;break;default:p=d.NONE}}p!==d.NONE&&(document.addEventListener("mousemove",Y,!1),document.addEventListener("mouseup",q,!1),l.dispatchEvent(u))}}function Y(e){if(!1!==l.enabled)switch(e.preventDefault(),p){case d.ROTATE:if(!1===l.enableRotate)return;!function(e){w.set(e.clientX,e.clientY),_.subVectors(w,x).multiplyScalar(l.rotateSpeed);var t=l.domElement;P(2*Math.PI*_.x/t.clientHeight),O(2*Math.PI*_.y/t.clientHeight),x.copy(w),l.update()}(e);break;case d.DOLLY:if(!1===l.enableZoom)return;!function(e){C.set(e.clientX,e.clientY),A.subVectors(C,S),A.y>0?N(L()):A.y<0&&z(L()),S.copy(C),l.update()}(e);break;case d.PAN:if(!1===l.enablePan)return;!function(e){E.set(e.clientX,e.clientY),T.subVectors(E,M).multiplyScalar(l.panSpeed),k(T.x,T.y),M.copy(E),l.update()}(e)}}function q(e){!1!==l.enabled&&(document.removeEventListener("mousemove",Y,!1),document.removeEventListener("mouseup",q,!1),l.dispatchEvent(h),p=d.NONE)}function X(e){!1===l.enabled||!1===l.enableZoom||p!==d.NONE&&p!==d.ROTATE||(e.preventDefault(),e.stopPropagation(),l.dispatchEvent(u),function(e){e.deltaY<0?z(L()):e.deltaY>0&&N(L()),l.update()}(e),l.dispatchEvent(h))}function J(e){!1!==l.enabled&&!1!==l.enableKeys&&!1!==l.enablePan&&function(e){var t=!1;switch(e.keyCode){case l.keys.UP:k(0,l.keyPanSpeed),t=!0;break;case l.keys.BOTTOM:k(0,-l.keyPanSpeed),t=!0;break;case l.keys.LEFT:k(l.keyPanSpeed,0),t=!0;break;case l.keys.RIGHT:k(-l.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),l.update())}(e)}function Z(e){if(!1!==l.enabled){switch(e.preventDefault(),e.touches.length){case 1:switch(l.touches.ONE){case i.TOUCH.ROTATE:if(!1===l.enableRotate)return;H(e),p=d.TOUCH_ROTATE;break;case i.TOUCH.PAN:if(!1===l.enablePan)return;j(e),p=d.TOUCH_PAN;break;default:p=d.NONE}break;case 2:switch(l.touches.TWO){case i.TOUCH.DOLLY_PAN:if(!1===l.enableZoom&&!1===l.enablePan)return;!function(e){l.enableZoom&&U(e),l.enablePan&&j(e)}(e),p=d.TOUCH_DOLLY_PAN;break;case i.TOUCH.DOLLY_ROTATE:if(!1===l.enableZoom&&!1===l.enableRotate)return;!function(e){l.enableZoom&&U(e),l.enableRotate&&H(e)}(e),p=d.TOUCH_DOLLY_ROTATE;break;default:p=d.NONE}break;default:p=d.NONE}p!==d.NONE&&l.dispatchEvent(u)}}function K(e){if(!1!==l.enabled)switch(e.preventDefault(),e.stopPropagation(),p){case d.TOUCH_ROTATE:if(!1===l.enableRotate)return;G(e),l.update();break;case d.TOUCH_PAN:if(!1===l.enablePan)return;V(e),l.update();break;case d.TOUCH_DOLLY_PAN:if(!1===l.enableZoom&&!1===l.enablePan)return;!function(e){l.enableZoom&&W(e),l.enablePan&&V(e)}(e),l.update();break;case d.TOUCH_DOLLY_ROTATE:if(!1===l.enableZoom&&!1===l.enableRotate)return;!function(e){l.enableZoom&&W(e),l.enableRotate&&G(e)}(e),l.update();break;default:p=d.NONE}}function Q(e){!1!==l.enabled&&(l.dispatchEvent(h),p=d.NONE)}function ee(e){!1!==l.enabled&&e.preventDefault()}l.domElement.addEventListener("contextmenu",ee,!1),l.domElement.addEventListener("mousedown",$,!1),l.domElement.addEventListener("wheel",X,!1),l.domElement.addEventListener("touchstart",Z,!1),l.domElement.addEventListener("touchend",Q,!1),l.domElement.addEventListener("touchmove",K,!1),l.domElement.addEventListener("keydown",J,!1),-1===l.domElement.tabIndex&&(l.domElement.tabIndex=0),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,i.MapControls=function(e,t){i.OrbitControls.call(this,e,t),this.mouseButtons.LEFT=i.MOUSE.PAN,this.mouseButtons.RIGHT=i.MOUSE.ROTATE,this.touches.ONE=i.TOUCH.PAN,this.touches.TWO=i.TOUCH.DOLLY_ROTATE},i.MapControls.prototype=Object.create(i.EventDispatcher.prototype),i.MapControls.prototype.constructor=i.MapControls,e.exports=t.default=i.OrbitControls},43:function(e,t){var n,i,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(138),r=n(139),a=n(140),o=n(431),s=n(432),l=n(141),c=n(433),u=(n.n(c),this&&this.__assign||function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}),h=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i},d=300;function p(e,t){var n={config:u(u({},i.b),m.defaultConfig),l10n:r.a};function c(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function p(e){return e.bind(n)}function f(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function v(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||Object(s.b)(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),i=Object(s.f)(n.config);t.setHours(i.hours,i.minutes,i.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,i=Object(o.e)(e),r=i;void 0!==n.amPM&&i===n.amPM&&(n.amPM.textContent=n.l10n.amPM[Object(a.c)(n.amPM.textContent===n.l10n.amPM[0])]);var s=parseFloat(r.getAttribute("min")),l=parseFloat(r.getAttribute("max")),c=parseFloat(r.getAttribute("step")),u=parseInt(r.value,10),h=e.delta||(t?38===e.which?1:-1:0),d=u+c*h;if(void 0!==r.value&&2===r.value.length){var p=r===n.hourElement,f=r===n.minuteElement;d<s?(d=l+d+Object(a.c)(!p)+(Object(a.c)(p)&&Object(a.c)(!n.amPM)),f&&T(void 0,-1,n.hourElement)):d>l&&(d=r===n.hourElement?d-l-Object(a.c)(!n.amPM):s,f&&T(void 0,1,n.hourElement)),n.amPM&&p&&(1===c?d+u===23:Math.abs(d-u)>c)&&(n.amPM.textContent=n.l10n.amPM[Object(a.c)(n.amPM.textContent===n.l10n.amPM[0])]),r.value=Object(a.d)(d)}}(e);var r=n._input.value;g(),ce(),n._input.value!==r&&n._debouncedChange()}function g(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,i=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=i,t=n.amPM.textContent,i=e%12+12*Object(a.c)(t===n.l10n.amPM[1]));var l=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===Object(s.b)(n.latestSelectedDateObj,n.config.minDate,!0),c=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===Object(s.b)(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var u=Object(s.a)(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),h=Object(s.a)(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),d=Object(s.a)(i,r,o);if(d>h&&d<u){var p=Object(s.h)(u);i=p[0],r=p[1],o=p[2]}}else{if(c){var f=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(i=Math.min(i,f.getHours()))===f.getHours()&&(r=Math.min(r,f.getMinutes())),r===f.getMinutes()&&(o=Math.min(o,f.getSeconds()))}if(l){var m=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(i=Math.max(i,m.getHours()))===m.getHours()&&r<m.getMinutes()&&(r=m.getMinutes()),r===m.getMinutes()&&(o=Math.max(o,m.getSeconds()))}}b(i,r,o)}}function y(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&b(t.getHours(),t.getMinutes(),t.getSeconds())}function b(e,t,i){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,i||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=Object(a.d)(n.config.time_24hr?e:(12+e)%12+12*Object(a.c)(e%12==0)),n.minuteElement.value=Object(a.d)(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[Object(a.c)(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=Object(a.d)(i)))}function x(e){var t=Object(o.e)(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&H(n)}function w(e,t,i,r){return t instanceof Array?t.forEach(function(t){return w(e,t,i,r)}):e instanceof Array?e.forEach(function(e){return w(e,t,i,r)}):(e.addEventListener(t,i,r),void n._handlers.push({remove:function(){return e.removeEventListener(t,i,r)}}))}function _(){re("onChange")}function M(e,t){var i=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),r=n.currentYear,a=n.currentMonth;try{void 0!==i&&(n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth())}catch(e){e.message="Invalid date supplied: "+i,n.config.errorHandler(e)}t&&n.currentYear!==r&&(re("onYearChange"),R()),!t||n.currentYear===r&&n.currentMonth===a||re("onMonthChange"),n.redraw()}function E(e){var t=Object(o.e)(e);~t.className.indexOf("arrow")&&T(e,t.classList.contains("arrowUp")?1:-1)}function T(e,t,n){var i=e&&Object(o.e)(e),r=n||i&&i.parentNode&&i.parentNode.firstChild,a=ae("increment");a.delta=t,r&&r.dispatchEvent(a)}function S(e,t,i,r){var a=j(t,!0),l=Object(o.b)("span",e,t.getDate().toString());return l.dateObj=t,l.$i=r,l.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===Object(s.b)(t,n.now)&&(n.todayDateElem=l,l.classList.add("today"),l.setAttribute("aria-current","date")),a?(l.tabIndex=-1,oe(t)&&(l.classList.add("selected"),n.selectedDateElem=l,"range"===n.config.mode&&(Object(o.f)(l,"startRange",n.selectedDates[0]&&0===Object(s.b)(t,n.selectedDates[0],!0)),Object(o.f)(l,"endRange",n.selectedDates[1]&&0===Object(s.b)(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&l.classList.add("inRange")))):l.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&Object(s.b)(e,n.selectedDates[0])>=0&&Object(s.b)(e,n.selectedDates[1])<=0}(t)&&!oe(t)&&l.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&r%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),re("onDayCreate",l),l}function C(e){e.focus(),"range"===n.config.mode&&W(e)}function A(e){for(var t=e>0?0:n.config.showMonths-1,i=e>0?n.config.showMonths:-1,r=t;r!=i;r+=e)for(var a=n.daysContainer.children[r],o=e>0?0:a.children.length-1,s=e>0?a.children.length:-1,l=o;l!=s;l+=e){var c=a.children[l];if(-1===c.className.indexOf("hidden")&&j(c.dateObj))return c}}function L(e,t){var i=c(),r=U(i||document.body),a=void 0!==e?e:r?i:void 0!==n.selectedDateElem&&U(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&U(n.todayDateElem)?n.todayDateElem:A(t>0?1:-1);void 0===a?n._input.focus():r?function(e,t){for(var i=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,r=t>0?n.config.showMonths:-1,a=t>0?1:-1,o=i-n.currentMonth;o!=r;o+=a)for(var s=n.daysContainer.children[o],l=i-n.currentMonth===o?e.$i+t:t<0?s.children.length-1:0,c=s.children.length,u=l;u>=0&&u<c&&u!=(t>0?c:-1);u+=a){var h=s.children[u];if(-1===h.className.indexOf("hidden")&&j(h.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return C(h)}n.changeMonth(a),L(A(a),0)}(a,t):C(a)}function P(e,t){for(var i=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,r=n.utils.getDaysInMonth((t-1+12)%12,e),a=n.utils.getDaysInMonth(t,e),s=window.document.createDocumentFragment(),l=n.config.showMonths>1,c=l?"prevMonthDay hidden":"prevMonthDay",u=l?"nextMonthDay hidden":"nextMonthDay",h=r+1-i,d=0;h<=r;h++,d++)s.appendChild(S("flatpickr-day "+c,new Date(e,t-1,h),0,d));for(h=1;h<=a;h++,d++)s.appendChild(S("flatpickr-day",new Date(e,t,h),0,d));for(var p=a+1;p<=42-i&&(1===n.config.showMonths||d%7!=0);p++,d++)s.appendChild(S("flatpickr-day "+u,new Date(e,t+1,p%a),0,d));var f=Object(o.b)("div","dayContainer");return f.appendChild(s),f}function O(){if(void 0!==n.daysContainer){Object(o.a)(n.daysContainer),n.weekNumbers&&Object(o.a)(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var i=new Date(n.currentYear,n.currentMonth,1);i.setMonth(n.currentMonth+t),e.appendChild(P(i.getFullYear(),i.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&W()}}function R(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var i=Object(o.b)("option","flatpickr-monthDropdown-month");i.value=new Date(n.currentYear,t).getMonth().toString(),i.textContent=Object(l.b)(t,n.config.shorthandCurrentMonth,n.l10n),i.tabIndex=-1,n.currentMonth===t&&(i.selected=!0),n.monthsDropdownContainer.appendChild(i)}}}function D(){var e,t=Object(o.b)("div","flatpickr-month"),i=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=Object(o.b)("span","cur-month"):(n.monthsDropdownContainer=Object(o.b)("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),w(n.monthsDropdownContainer,"change",function(e){var t=Object(o.e)(e),i=parseInt(t.value,10);n.changeMonth(i-n.currentMonth),re("onMonthChange")}),R(),e=n.monthsDropdownContainer);var r=Object(o.c)("cur-year",{tabindex:"-1"}),a=r.getElementsByTagName("input")[0];a.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&a.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(a.setAttribute("max",n.config.maxDate.getFullYear().toString()),a.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var s=Object(o.b)("div","flatpickr-current-month");return s.appendChild(e),s.appendChild(r),i.appendChild(s),t.appendChild(i),{container:t,yearElement:a,monthElement:e}}function I(){Object(o.a)(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=D();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function k(){n.weekdayContainer?Object(o.a)(n.weekdayContainer):n.weekdayContainer=Object(o.b)("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=Object(o.b)("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return N(),n.weekdayContainer}function N(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=h(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=h(t.splice(e,t.length),t.splice(0,e)));for(var i=n.config.showMonths;i--;)n.weekdayContainer.children[i].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function z(e,t){void 0===t&&(t=!0);var i=t?e:e-n.currentMonth;i<0&&!0===n._hidePrevMonthArrow||i>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=i,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,re("onYearChange"),R()),O(),re("onMonthChange"),se())}function F(e){return n.calendarContainer.contains(e)}function B(e){if(n.isOpen&&!n.config.inline){var t=Object(o.e)(e),i=F(t),r=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!i&&!F(e.relatedTarget),a=!n.config.ignoredFocusElements.some(function(e){return e.contains(t)});r&&a&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&v(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function H(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,i=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),i&&(n.redraw(),re("onYearChange"),R())}}function j(e,t){var i;void 0===t&&(t=!0);var r=n.parseDate(e,void 0,t);if(n.config.minDate&&r&&Object(s.b)(r,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&r&&Object(s.b)(r,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===r)return!1;for(var a=!!n.config.enable,o=null!==(i=n.config.enable)&&void 0!==i?i:n.config.disable,l=0,c=void 0;l<o.length;l++){if("function"==typeof(c=o[l])&&c(r))return a;if(c instanceof Date&&void 0!==r&&c.getTime()===r.getTime())return a;if("string"==typeof c){var u=n.parseDate(c,void 0,!0);return u&&u.getTime()===r.getTime()?a:!a}if("object"==typeof c&&void 0!==r&&c.from&&c.to&&r.getTime()>=c.from.getTime()&&r.getTime()<=c.to.getTime())return a}return!a}function U(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function G(e){var t=e.target===n._input,i=n._input.value.trimEnd()!==le();!t||!i||e.relatedTarget&&F(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function V(t){var i=Object(o.e)(t),r=n.config.wrap?e.contains(i):i===n._input,a=n.config.allowInput,s=n.isOpen&&(!a||!r),l=n.config.inline&&r&&!a;if(13===t.keyCode&&r){if(a)return n.setDate(n._input.value,!0,i===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),i.blur();n.open()}else if(F(i)||s||l){var u=!!n.timeContainer&&n.timeContainer.contains(i);switch(t.keyCode){case 13:u?(t.preventDefault(),v(),K()):Q(t);break;case 27:t.preventDefault(),K();break;case 8:case 46:r&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(u||r)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var h=c();if(void 0!==n.daysContainer&&(!1===a||h&&U(h))){var d=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),z(d),L(A(1),0)):L(void 0,d)}}break;case 38:case 40:t.preventDefault();var p=40===t.keyCode?1:-1;n.daysContainer&&void 0!==i.$i||i===n.input||i===n.altInput?t.ctrlKey?(t.stopPropagation(),H(n.currentYear-p),L(A(1),0)):u||L(void 0,7*p):i===n.currentYearElement?H(n.currentYear-p):n.config.enableTime&&(!u&&n.hourElement&&n.hourElement.focus(),v(t),n._debouncedChange());break;case 9:if(u){var f=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(e){return e}),m=f.indexOf(i);if(-1!==m){var y=f[m+(t.shiftKey?-1:1)];t.preventDefault(),(y||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(i)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&i===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],g(),ce();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],g(),ce()}(r||F(i))&&re("onKeyDown",t)}function W(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var i=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),r=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),a=Math.min(i,n.selectedDates[0].getTime()),o=Math.max(i,n.selectedDates[0].getTime()),l=!1,c=0,u=0,h=a;h<o;h+=s.e.DAY)j(new Date(h),!0)||(l=l||h>a&&h<o,h<r&&(!c||h>c)?c=h:h>r&&(!u||h<u)&&(u=h));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+t)).forEach(function(t){var a=t.dateObj.getTime(),o=c>0&&a<c||u>0&&a>u;if(o)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});l&&!o||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(i<=n.selectedDates[0].getTime()?"startRange":"endRange"),r<i&&a===r?t.classList.add("startRange"):r>i&&a===r&&t.classList.add("endRange"),a>=c&&(0===u||a<=u)&&Object(s.g)(a,r,i)&&t.classList.add("inRange")))})}}function $(){!n.isOpen||n.config.static||n.config.inline||J()}function Y(e){return function(t){var i=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),r=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==i&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(e){return j(e)}),n.selectedDates.length||"min"!==e||y(i),ce()),n.daysContainer&&(Z(),void 0!==i?n.currentYearElement[e]=i.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!r&&void 0!==i&&r.getFullYear()===i.getFullYear())}}function q(){return n.config.wrap?e.querySelector("[data-input]"):e}function X(){"object"!=typeof n.config.locale&&void 0===m.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=u(u({},m.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?m.l10ns[n.config.locale]:void 0),l.d.D="("+n.l10n.weekdays.shorthand.join("|")+")",l.d.l="("+n.l10n.weekdays.longhand.join("|")+")",l.d.M="("+n.l10n.months.shorthand.join("|")+")",l.d.F="("+n.l10n.months.longhand.join("|")+")",l.d.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===u(u({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===m.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=Object(s.c)(n),n.parseDate=Object(s.d)({config:n.config,l10n:n.l10n})}function J(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){re("onPreCalendarPosition");var t=e||n._positionElement,i=Array.prototype.reduce.call(n.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=n.calendarContainer.offsetWidth,a=n.config.position.split(" "),s=a[0],l=a.length>1?a[1]:null,c=t.getBoundingClientRect(),u=window.innerHeight-c.bottom,h="above"===s||"below"!==s&&u<i&&c.top>i,d=window.pageYOffset+c.top+(h?-i-2:t.offsetHeight+2);if(Object(o.f)(n.calendarContainer,"arrowTop",!h),Object(o.f)(n.calendarContainer,"arrowBottom",h),!n.config.inline){var p=window.pageXOffset+c.left,f=!1,m=!1;"center"===l?(p-=(r-c.width)/2,f=!0):"right"===l&&(p-=r-c.width,m=!0),Object(o.f)(n.calendarContainer,"arrowLeft",!f&&!m),Object(o.f)(n.calendarContainer,"arrowCenter",f),Object(o.f)(n.calendarContainer,"arrowRight",m);var v=window.document.body.offsetWidth-(window.pageXOffset+c.right),g=p+r>window.document.body.offsetWidth,y=v+r>window.document.body.offsetWidth;if(Object(o.f)(n.calendarContainer,"rightMost",g),!n.config.static)if(n.calendarContainer.style.top=d+"px",g)if(y){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===b)return;var x=window.document.body.offsetWidth,w=Math.max(0,x/2-r/2),_=b.cssRules.length,M="{left:"+c.left+"px;right:auto;}";Object(o.f)(n.calendarContainer,"rightMost",!1),Object(o.f)(n.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+M,_),n.calendarContainer.style.left=w+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=v+"px";else n.calendarContainer.style.left=p+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,e)}function Z(){n.config.noCalendar||n.isMobile||(R(),se(),O())}function K(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function Q(e){e.preventDefault(),e.stopPropagation();var t=Object(o.d)(Object(o.e)(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var i=t,r=n.latestSelectedDateObj=new Date(i.dateObj.getTime()),a=(r.getMonth()<n.currentMonth||r.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=i,"single"===n.config.mode)n.selectedDates=[r];else if("multiple"===n.config.mode){var l=oe(r);l?n.selectedDates.splice(parseInt(l),1):n.selectedDates.push(r)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=r,n.selectedDates.push(r),0!==Object(s.b)(r,n.selectedDates[0],!0)&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(g(),a){var c=n.currentYear!==r.getFullYear();n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth(),c&&(re("onYearChange"),R()),re("onMonthChange")}if(se(),O(),ce(),a||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():C(i),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var u="single"===n.config.mode&&!n.config.enableTime,h="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(u||h)&&K()}_()}}n.parseDate=Object(s.d)({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=w,n._setHoursFromDate=y,n._positionCalendar=J,n.changeMonth=z,n.changeYear=H,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var i=Object(s.f)(n.config),r=i.hours,a=i.minutes,o=i.seconds;b(r,a,o)}n.redraw(),e&&re("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));re("onClose")},n.onMouseOver=W,n._createElement=o.b,n.createDay=S,n.destroy=function(){void 0!==n.config&&re("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete n[e]}catch(e){}})},n.isEnabled=j,n.jumpToDate=M,n.updateValue=ce,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var i=Object(o.e)(e);i&&i.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void re("onOpen")}if(n._input.disabled||n.config.inline)return;var r=n.isOpen;n.isOpen=!0,r||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),re("onOpen"),J(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return n.hourElement.select()},50))},n.redraw=Z,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var r in Object.assign(n.config,e),e)void 0!==ee[r]&&ee[r].forEach(function(e){return e()});else n.config[e]=t,void 0!==ee[e]?ee[e].forEach(function(e){return e()}):i.a.indexOf(e)>-1&&(n.config[e]=Object(a.a)(t));n.redraw(),ce(!0)},n.setDate=function(e,t,i){void 0===t&&(t=!1);void 0===i&&(i=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);te(e,i),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),M(void 0,t),y(),0===n.selectedDates.length&&n.clear(!1);ce(t),t&&re("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var ee={locale:[X,N],showMonths:[I,f,k],minDate:[M],maxDate:[M],positionElement:[ie],clickOpens:[function(){!0===n.config.clickOpens?(w(n._input,"focus",n.open),w(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function te(e,t){var i=[];if(e instanceof Array)i=e.map(function(e){return n.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)i=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":i=[n.parseDate(e,t)];break;case"multiple":i=e.split(n.config.conjunction).map(function(e){return n.parseDate(e,t)});break;case"range":i=e.split(n.l10n.rangeSeparator).map(function(e){return n.parseDate(e,t)})}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?i:i.filter(function(e){return e instanceof Date&&j(e,!1)}),"range"===n.config.mode&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ne(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function ie(){n._positionElement=n.config.positionElement||n._input}function re(e,t){if(void 0!==n.config){var i=n.config[e];if(void 0!==i&&i.length>0)for(var r=0;i[r]&&r<i.length;r++)i[r](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(ae("change")),n.input.dispatchEvent(ae("input")))}}function ae(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function oe(e){for(var t=0;t<n.selectedDates.length;t++){var i=n.selectedDates[t];if(i instanceof Date&&0===Object(s.b)(i,e))return""+t}return!1}function se(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(e,t){var i=new Date(n.currentYear,n.currentMonth,1);i.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=Object(l.b)(i.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=i.getMonth().toString(),e.value=i.getFullYear().toString()}),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function le(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(e){return n.formatDate(e,t)}).filter(function(e,t,i){return"range"!==n.config.mode||n.config.enableTime||i.indexOf(e)===t}).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function ce(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=le(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=le(n.config.altFormat)),!1!==e&&re("onValueUpdate")}function ue(e){var t=Object(o.e)(e),i=n.prevMonthNav.contains(t),r=n.nextMonthNav.contains(t);i||r?z(i?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var r=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=u(u({},JSON.parse(JSON.stringify(e.dataset||{}))),t),s={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=ne(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=ne(e)}});var l="time"===o.mode;if(!o.dateFormat&&(o.enableTime||l)){var c=m.defaultConfig.dateFormat||i.b.dateFormat;s.dateFormat=o.noCalendar||l?"H:i"+(o.enableSeconds?":S":""):c+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||l)&&!o.altFormat){var h=m.defaultConfig.altFormat||i.b.altFormat;s.altFormat=o.noCalendar||l?"h:i"+(o.enableSeconds?":S K":" K"):h+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:Y("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:Y("max")});var d=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:d("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:d("max")}),"time"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0),Object.assign(n.config,s,o);for(var f=0;f<r.length;f++)n.config[r[f]]=!0===n.config[r[f]]||"true"===n.config[r[f]];i.a.filter(function(e){return void 0!==n.config[e]}).forEach(function(e){n.config[e]=Object(a.a)(n.config[e]||[]).map(p)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var f=0;f<n.config.plugins.length;f++){var v=n.config.plugins[f](n)||{};for(var g in v)i.a.indexOf(g)>-1?n.config[g]=Object(a.a)(v[g]).map(p).concat(n.config[g]):void 0===o[g]&&(n.config[g]=v[g])}o.altInputClass||(n.config.altInputClass=q().className+" "+n.config.altInputClass),re("onParseConfig")}(),X(),n.input=q(),n.input?(n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=Object(o.b)(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling)),n.config.allowInput||n._input.setAttribute("readonly","readonly"),ie()):n.config.errorHandler(new Error("Invalid input element specified")),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&te(e,n.config.dateFormat),n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]),void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i")),void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i")),n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=Object(o.b)("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=Object(o.b)("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=Object(o.b)("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=Object(o.b)("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,I(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(Object(o.f)(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(Object(o.f)(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],se(),n.monthNav)),n.innerContainer=Object(o.b)("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=Object(o.b)("div","flatpickr-weekwrapper");e.appendChild(Object(o.b)("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=Object(o.b)("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),i=t.weekWrapper,r=t.weekNumbers;n.innerContainer.appendChild(i),n.weekNumbers=r,n.weekWrapper=i}n.rContainer=Object(o.b)("div","flatpickr-rContainer"),n.rContainer.appendChild(k()),n.daysContainer||(n.daysContainer=Object(o.b)("div","flatpickr-days"),n.daysContainer.tabIndex=-1),O(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=Object(s.f)(n.config);n.timeContainer=Object(o.b)("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=Object(o.b)("span","flatpickr-time-separator",":"),i=Object(o.c)("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=i.getElementsByTagName("input")[0];var r=Object(o.c)("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});if(n.minuteElement=r.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=Object(a.d)(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=Object(a.d)(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(i),n.timeContainer.appendChild(t),n.timeContainer.appendChild(r),n.config.time_24hr&&n.timeContainer.classList.add("time24hr"),n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var l=Object(o.c)("flatpickr-second");n.secondElement=l.getElementsByTagName("input")[0],n.secondElement.value=Object(a.d)(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(Object(o.b)("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(l)}return n.config.time_24hr||(n.amPM=Object(o.b)("span","flatpickr-am-pm",n.l10n.amPM[Object(a.c)((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM)),n.timeContainer}()),Object(o.f)(n.calendarContainer,"rangeMode","range"===n.config.mode),Object(o.f)(n.calendarContainer,"animate",!0===n.config.animate),Object(o.f)(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var l=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!l&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var c=Object(o.b)("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(c,n.element),c.appendChild(n.element),n.altInput&&c.appendChild(n.altInput),c.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){if(n.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),function(t){return w(t,"click",n[e])})}),n.isMobile)!function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=Object(o.b)("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr)),n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d")),n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d")),n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step"))),n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}w(n.mobileInput,"change",function(e){n.setDate(Object(o.e)(e).value,!1,n.mobileFormatStr),re("onChange"),re("onClose")})}();else{var e=Object(a.b)($,50);n._debouncedChange=Object(a.b)(_,d),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&w(n.daysContainer,"mouseover",function(e){"range"===n.config.mode&&W(Object(o.e)(e))}),w(n._input,"keydown",V),void 0!==n.calendarContainer&&w(n.calendarContainer,"keydown",V),n.config.inline||n.config.static||w(window,"resize",e),void 0!==window.ontouchstart?w(window.document,"touchstart",B):w(window.document,"mousedown",B),w(window.document,"focus",B,{capture:!0}),!0===n.config.clickOpens&&(w(n._input,"focus",n.open),w(n._input,"click",n.open)),void 0!==n.daysContainer&&(w(n.monthNav,"click",ue),w(n.monthNav,["keyup","increment"],x),w(n.daysContainer,"click",Q)),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&(w(n.timeContainer,["increment"],v),w(n.timeContainer,"blur",v,{capture:!0}),w(n.timeContainer,"click",E),w([n.hourElement,n.minuteElement],["focus","click"],function(e){return Object(o.e)(e).select()}),void 0!==n.secondElement&&w(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),void 0!==n.amPM&&w(n.amPM,"click",function(e){v(e)})),n.config.allowInput&&w(n._input,"blur",G)}}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&y(n.config.noCalendar?n.latestSelectedDateObj:void 0),ce(!1)),f();var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&r&&J(),re("onReady")}(),n}function f(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),i=[],r=0;r<n.length;r++){var a=n[r];try{if(null!==a.getAttribute("data-fp-omit"))continue;void 0!==a._flatpickr&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=p(a,t||{}),i.push(a._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return f(this,e)},HTMLElement.prototype.flatpickr=function(e){return f([this],e)});var m=function(e,t){return"string"==typeof e?f(window.document.querySelectorAll(e),t):e instanceof Node?f([e],t):f(e,t)};m.defaultConfig={},m.l10ns={en:u({},r.a),default:u({},r.a)},m.localize=function(e){m.l10ns.default=u(u({},m.l10ns.default),e)},m.setDefaults=function(e){m.defaultConfig=u(u({},m.defaultConfig),e)},m.parseDate=Object(s.d)({}),m.formatDate=Object(s.c)({}),m.compareDates=s.b,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return f(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=m),t.default=m},431:function(e,t,n){"use strict";function i(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}t.f=function(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)},t.b=i,t.a=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.d=function e(t,n){if(n(t))return t;if(t.parentNode)return e(t.parentNode,n);return},t.c=function(e,t){var n=i("div","numInputWrapper"),r=i("input","numInput "+e),a=i("span","arrowUp"),o=i("span","arrowDown");-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*");if(void 0!==t)for(var s in t)r.setAttribute(s,t[s]);return n.appendChild(r),n.appendChild(a),n.appendChild(o),n},t.e=function(e){try{if("function"==typeof e.composedPath){var t=e.composedPath();return t[0]}return e.target}catch(t){return e.target}}},432:function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"d",function(){return s}),t.b=function(e,t,n){void 0===n&&(n=!0);if(!1!==n)return new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0);return e.getTime()-t.getTime()},n.d(t,"g",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"h",function(){return u}),n.d(t,"e",function(){return h}),t.f=function(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),a=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<a&&(n=a),t===r&&n===a&&i<o&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}};var i=n(141),r=n(138),a=n(139),o=function(e){var t=e.config,n=void 0===t?r.b:t,o=e.l10n,s=void 0===o?a.b:o,l=e.isMobile,c=void 0!==l&&l;return function(e,t,r){var a=r||s;return void 0===n.formatDate||c?t.split("").map(function(t,r,o){return i.a[t]&&"\\"!==o[r-1]?i.a[t](e,a,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,a)}},s=function(e){var t=e.config,n=void 0===t?r.b:t,o=e.l10n,s=void 0===o?a.b:o;return function(e,t,a,o){if(0===e||e){var l,c=o||s,u=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var h=t||(n||r.b).dateFormat,d=String(e).trim();if("today"===d)l=new Date,a=!0;else if(n&&n.parseDate)l=n.parseDate(e,h);else if(/Z$/.test(d)||/GMT$/.test(d))l=new Date(e);else{for(var p=void 0,f=[],m=0,v=0,g="";m<h.length;m++){var y=h[m],b="\\"===y,x="\\"===h[m-1]||b;if(i.d[y]&&!x){g+=i.d[y];var w=new RegExp(g).exec(e);w&&(p=!0)&&f["Y"!==y?"push":"unshift"]({fn:i.c[y],val:w[++v]})}else b||(g+=".")}l=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),f.forEach(function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l}),l=p?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===a&&l.setHours(0,0,0,0),l;n.errorHandler(new Error("Invalid date provided: "+u))}}};var l=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},c=function(e,t,n){return 3600*e+60*t+n},u=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]},h={DAY:864e5}},433:function(e,t,n){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},r=0,a=t;r<a.length;r++){i(a[r])}return e})},61:function(e,t,n){"use strict";(function(t){e.exports=function(){var e=function(){t.nodeToArray(".js-catalog-item").forEach(function(e){var t=e.querySelector(".js-catalog-item-hidden");if(t){var n=e.offsetHeight+e.querySelector(".js-catalog-item-preview").offsetHeight;t.setAttribute("style","padding-top: "+n+"px;")}})};appConfig.mobileVersion||(window.addEventListener("load",function(){e()}),window.addEventListener("resize",function(){e()}))}}).call(t,n(21))},62:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),window.THREE=n(134),n(414);n(415);t.default=function(e,t){var n,i,r=new THREE.Raycaster,a=new THREE.Vector2,o="/dist/models/";function s(e){var t=!0,i=0;this.camera=function(e,t){var t=t||{x:1.5,y:1.5,z:1},n=e,i=new THREE.PerspectiveCamera(65,n.clientWidth/n.clientHeight,1,1e5);return i.position.x=t.x,i.position.y=t.y,i.position.z=t.z,i}(e),this.baseScene=null,this.modelScene=null,this.controls=null,this.container=e,this.webgl=null,this.markers=[],this.runningAnimations=[],this.stats=null,this.model=null,this.AutoRotate_delta=.009,this.AutoRotate_enabled=!1,this.AutoRotate_axis="z",this.AutoRotate_destination="",this.init=function(){this.loadRenderers(),this.loadScenes(),this.addRenderer(this.webgl)},this.addStats=function(e){this.stats=new Stats,this.stats.setMode(0),this.stats.domElement.style.position="absolute",this.stats.domElement.style.left="0px",this.stats.domElement.style.top="0px",e.appendChild(this.stats.domElement)},this.updateStats=function(){this.stats.update()},this.loadScenes=function(){this.baseScene=new THREE.Scene,this.modelScene=new THREE.Scene,this.modelScene.rotateX(-Math.PI/2),this.baseScene.add(this.modelScene)},this.addRenderer=function(e){this.container.appendChild(e.domElement)},this.loadRenderers=function(){(n=new THREE.WebGLRenderer({alpha:!0,antialias:!0})).setClearColor(0,0),n.setPixelRatio(window.devicePixelRatio),n.setSize(this.container.clientWidth,this.container.clientHeight),n.domElement.style.position="relative",n.shadowMap.enabled=!0,n.shadowMap.soft=!0,n.shadowMap.type=THREE.PCFSoftShadowMap,this.webgl=n},this.addOrbitControl=function(){this.controls=new THREE.OrbitControls(this.camera,this.webgl.domElement);var e=this;this.controls.addEventListener("change",function(){e.updateScene()})},this.loadModel=function(e,t){var n=this.modelScene,i=this;if(this.controls.target.set(e.controltarget.x,e.controltarget.y,e.controltarget.z),this.modelScene.position.set(e.scenePos.x,e.scenePos.y,e.scenePos.z),e.modelFBX)switch(e.modelType){case"FBX":console.log("Load FBX"),(new THREE.FBXLoader).load(o+e.modelFBX,function(t){console.log("Loaded"),t.scale.set(e.scale,e.scale,e.scale),t.position.y=0,i.updateScene(),n.add(t),i.model=t},u,h);break;case"VRML":console.log("Load Vrml"),(new THREE.VRMLLoader).load(e.modelFBX,function(t){(new THREE.Box3).setFromObject(t);var r=new THREE.BoxHelper(t,16776960),a=r.geometry.boundingSphere.center,o=r.geometry.boundingSphere.radius;t.scale.set(e.scale,e.scale,e.scale);var s=0,l=0,c=0;t.position.z=a.z!==c?t.position.z+(c-a.z):c,t.position.y=a.y!==l?t.position.y+(l-a.y):l,t.position.x=a.x!==s?t.position.x+(s-a.x):s,n.add(t),i.updateScene(),i.model=t,i.camera.position.x=o+.6*o,i.camera.position.y=o+.6*o,i.camera.position.z=o+.6*o},function(){},function(){console.log("Error while loading given model, load default model"),i.loadModel({object:null,name:"Test vrml",modelFBX:"/dist/models/model-2.vrml",modelType:"VRML",scale:1,controltarget:{x:0,y:0,z:0},scenePos:{x:0,y:0,z:0},markers:[]})});break;default:mtlLoader.setPath(o),object=mtlLoader.load(e.modelMtl,function(t){t.preload(),t.anisotropy=1,t.transparent=!0,objLoader.setMaterials(t),objLoader.setPath(o),objLoader.load(e.modelObj,function(t){t.position.y=0,n.add(t),t.scale.set(e.scale,e.scale,e.scale),e.object=t;for(var r=0;r<t.children.length;r++)t.children[r].castShadow=!0,t.children[r].receiveShadow=!0;i.updateScene(),i.model=t},u,h)})}return this.updateScene(),t&&t(),this.model},this.hideScene=function(e){e.visibility=!1},this.showScene=function(e){e.visibility=!0},this.updateScene=function(){t=!0,i=0},this.needRender=function(){var e=!1;if(t){e=10>i;i>=10?(i=0,t=!1):i+=1}return this.runningAnimations.length&&(i=0,e=!0),e},this.render=function(){this.update(),this.controls.update(),this.webgl.render(this.baseScene,this.camera)},this.animate=function(){requestAnimationFrame(s.animate),s.render()},this.update=function(){this.AutoRotate_enabled&&(this.baseScene.rotation.y+=this.AutoRotate_delta,this.updateScene())},this.modelAutoRotating=function(e){if(this.AutoRotate_enabled&&this.AutoRotate_direction===e)this.AutoRotate_enabled=!1;else{switch(e){case"left":this.AutoRotate_delta=-Math.abs(this.AutoRotate_delta),this.AutoRotate_axis="z";break;case"right":this.AutoRotate_delta=Math.abs(this.AutoRotate_delta),this.AutoRotate_axis="z"}this.AutoRotate_direction=e,this.AutoRotate_enabled=!0,this.updateScene()}},this.addLights=function(e){var t=new THREE.AmbientLight(16777215,.5);this.baseScene.add(t);var n=new THREE.DirectionalLight(15990270,.6,30);new THREE.Vector3(157,54,147).normalize();n.position.set(1099,1080,1029),e&&(n.castShadow=!0,n.lookAt(this.baseScene.position),n.shadow.mapSize.width=4096,n.shadow.mapSize.height=4096,n.shadow.camera.near=1,n.shadow.camera.far=2e3,n.shadowCameraLeft=-250,n.shadowCameraRight=250,n.shadowCameraTop=250,n.shadowCameraBottom=-250),this.baseScene.add(n)},this.onMouseUp=function(e){r.setFromCamera(a,this.camera);var t=r.intersectObjects(this.markers,!0);t.length>0&&((e=new Event("markClicked",{cancelable:!0})).point=t[0].point,e.mark=t[0].object,this.container.dispatchEvent(e))}}THREE.Scene.prototype.hide=function(){this.visible=!1},THREE.Scene.prototype.show=function(){this.visible=!0};var l;window.innerWidth,window.innerHeight;function c(e){requestAnimationFrame(function(){c(e)}),e.needRender()&&e.render(),function(e){var t=new THREE.Vector3(a.x,a.y,1);t.unproject(e.camera);var n=new THREE.Raycaster(e.camera.position,t.sub(e.camera.position).normalize());n.setFromCamera(a,e.camera);var r=n.intersectObjects(e.markers,!0);if(r.length>0){if(r[0].object!=i){if(i){var o=new Event("markHoverOut",{cancelable:!0});o.mark=i,e.container.dispatchEvent(o)}i=r[0].object;var o=new Event("markHoverIn",{cancelable:!0});o.mark=r[0].object,e.container.dispatchEvent(o)}}else{if(i){var o=new Event("markHoverOut",{cancelable:!0});o.mark=i,e.container.dispatchEvent(o)}i=null}e.stats&&e.updateStats();l.position.set(e.camera.position),l.position.x=e.camera.position.x,l.position.y=e.camera.position.y,l.position.z=e.camera.position.z}(e)}var u=function(e){if(e.lengthComputable){var t=e.loaded/e.total*100;console.log(Math.round(t,2)+"% downloaded")}},h=function(e){};return function(e){var n=new s(e);if(n.init(),n.addLights(!0),window.NTAPROM&&window.NTAPROM.Moncy&&window.NTAPROM.Moncy.isShowAxis){var i=THREE.AxisHelper();i.scale.set(20,20,20),n.baseScene.add(i)}return(l=new THREE.DirectionalLight(15990270,.25,30)).position.set(n.camera.position),n.baseScene.add(l),n.addOrbitControl(),n.loadModel({object:null,name:"Test vrml",modelFBX:t||null,modelType:"VRML",scale:1,controltarget:{x:0,y:0,z:0},scenePos:{x:0,y:0,z:0},markers:[]}),e.addEventListener("mousemove",function(e){!function(e,t){t.updateScene()}(0,n)},!1),e.addEventListener("mouseup",function(e){!function(e,t){t.onMouseUp(e),t.updateScene()}(e,n)},!1),window.addEventListener("resize",function(e){!function(e,t){window.innerWidth/2,window.innerHeight/2,t.camera.aspect=t.container.clientWidth/t.container.clientHeight,t.camera.updateProjectionMatrix(),t.webgl.setSize(t.container.clientWidth,t.container.clientHeight)}(0,n)},!1),c(n),window.NTAPROM=window.NTAPROM||{},window.NTAPROM.instance3d=n,n}(e)}},63:function(e,t,n){"use strict";(function(t){var i=n(11),r=n(282),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=n(97):void 0!==t&&(s=n(97)),s),transformRequest:[function(e,t){return r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){l.headers[e]={}}),i.forEach(["post","put","patch"],function(e){l.headers[e]=i.merge(a)}),e.exports=l}).call(t,n(43))},8:function(e,t,n){(function(t,n){
/*!
 * Vue.js v2.7.15
 * (c) 2014-2023 Evan You
 * Released under the MIT License.
 */
var i;i=function(){"use strict";var e=Object.freeze({}),i=Array.isArray;function r(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function o(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function h(e){return u.call(e).slice(8,-1)}function d(e){return"[object Object]"===u.call(e)}function p(e){return"[object RegExp]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var b=y("slot,component",!0),x=y("key,ref,slot,slot-scope,is");function w(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var i=e.indexOf(t);if(i>-1)return e.splice(i,1)}}var _=Object.prototype.hasOwnProperty;function M(e,t){return _.call(e,t)}function E(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var T=/-(\w)/g,S=E(function(e){return e.replace(T,function(e,t){return t?t.toUpperCase():""})}),C=E(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),A=/\B([A-Z])/g,L=E(function(e){return e.replace(A,"-$1").toLowerCase()});var P=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function O(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function R(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n<e.length;n++)e[n]&&R(t,e[n]);return t}function I(e,t,n){}var k=function(e,t,n){return!1},N=function(e){return e};function z(e,t){if(e===t)return!0;var n=c(e),i=c(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),a=Array.isArray(t);if(r&&a)return e.length===t.length&&e.every(function(e,n){return z(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||a)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every(function(n){return z(e[n],t[n])})}catch(e){return!1}}function F(e,t){for(var n=0;n<e.length;n++)if(z(e[n],t))return n;return-1}function B(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function H(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}var j="data-server-rendered",U=["component","directive","filter"],G=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:k,isReservedAttr:k,isUnknownElement:k,getTagNamespace:I,parsePlatformTagName:N,mustUseProp:k,async:!0,_lifecycleHooks:G},W=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function $(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function Y(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var q=new RegExp("[^".concat(W.source,".$_\\d]"));var X="__proto__"in{},J="undefined"!=typeof window,Z=J&&window.navigator.userAgent.toLowerCase(),K=Z&&/msie|trident/.test(Z),Q=Z&&Z.indexOf("msie 9.0")>0,ee=Z&&Z.indexOf("edge/")>0;Z&&Z.indexOf("android");var te=Z&&/iphone|ipad|ipod|ios/.test(Z);Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z);var ne,ie=Z&&Z.match(/firefox\/(\d+)/),re={}.watch,ae=!1;if(J)try{var oe={};Object.defineProperty(oe,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,oe)}catch(e){}var se=function(){return void 0===ne&&(ne=!J&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),ne},le=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"==typeof e&&/native code/.test(e.toString())}var ue,he="undefined"!=typeof Symbol&&ce(Symbol)&&"undefined"!=typeof Reflect&&ce(Reflect.ownKeys);ue="undefined"!=typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=null;function pe(e){void 0===e&&(e=null),e||de&&de._scope.off(),de=e,e&&e._scope.on()}var fe,me=function(){function e(e,t,n,i,r,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),ve=function(e){void 0===e&&(e="");var t=new me;return t.text=e,t.isComment=!0,t};function ge(e){return new me(void 0,void 0,void 0,String(e))}function ye(e){var t=new me(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var be=y("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,require"),xe=function(e,t){Ri('Property or method "'.concat(t,'" is not defined on the instance but ')+"referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.",e)},we=function(e,t){Ri('Property "'.concat(t,'" must be accessed with "$data.').concat(t,'" because ')+'properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://v2.vuejs.org/v2/api/#data',e)},_e="undefined"!=typeof Proxy&&ce(Proxy);if(_e){var Me=y("stop,prevent,self,ctrl,shift,alt,meta,exact");V.keyCodes=new Proxy(V.keyCodes,{set:function(e,t,n){return Me(t)?(Ri("Avoid overwriting built-in modifier in config.keyCodes: .".concat(t)),!1):(e[t]=n,!0)}})}var Ee={has:function(e,t){var n=t in e,i=be(t)||"string"==typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||i||(t in e.$data?we(e,t):xe(e,t)),n||!i}},Te={get:function(e,t){return"string"!=typeof t||t in e||(t in e.$data?we(e,t):xe(e,t)),e[t]}};fe=function(e){if(_e){var t=e.$options,n=t.render&&t.render._withStripped?Te:Ee;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var Se=function(){return(Se=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ce=0,Ae=[],Le=function(){for(var e=0;e<Ae.length;e++){var t=Ae[e];t.subs=t.subs.filter(function(e){return e}),t._pending=!1}Ae.length=0},Pe=function(){function e(){this._pending=!1,this.id=Ce++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,Ae.push(this))},e.prototype.depend=function(t){e.target&&(e.target.addDep(this),t&&e.target.onTrack&&e.target.onTrack(Se({effect:e.target},t)))},e.prototype.notify=function(e){var t=this.subs.filter(function(e){return e});V.async||t.sort(function(e,t){return e.id-t.id});for(var n=0,i=t.length;n<i;n++){var r=t[n];e&&r.onTrigger&&r.onTrigger(Se({effect:t[n]},e)),r.update()}},e}();Pe.target=null;var Oe=[];function Re(e){Oe.push(e),Pe.target=e}function De(){Oe.pop(),Pe.target=Oe[Oe.length-1]}var Ie=Array.prototype,ke=Object.create(Ie);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=Ie[e];Y(ke,e,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&o.observeArray(r),o.dep.notify({type:"array mutation",target:this,key:e}),a})});var Ne=Object.getOwnPropertyNames(ke),ze={},Fe=!0;function Be(e){Fe=e}var He={notify:I,depend:I,addSub:I,removeSub:I},je=function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.value=e,this.shallow=t,this.mock=n,this.dep=n?He:new Pe,this.vmCount=0,Y(e,"__ob__",this),i(e)){if(!n)if(X)e.__proto__=ke;else for(var r=0,a=Ne.length;r<a;r++){Y(e,s=Ne[r],ke[s])}t||this.observeArray(e)}else{var o=Object.keys(e);for(r=0;r<o.length;r++){var s;Ge(e,s=o[r],ze,void 0,t,n)}}}return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ue(e[t],!1,this.mock)},e}();function Ue(e,t,n){return e&&M(e,"__ob__")&&e.__ob__ instanceof je?e.__ob__:!Fe||!n&&se()||!i(e)&&!d(e)||!Object.isExtensible(e)||e.__v_skip||Qe(e)||e instanceof me?void 0:new je(e,t,n)}function Ge(e,t,n,r,a,o){var s=new Pe,l=Object.getOwnPropertyDescriptor(e,t);if(!l||!1!==l.configurable){var c=l&&l.get,u=l&&l.set;c&&!u||n!==ze&&2!==arguments.length||(n=e[t]);var h=!a&&Ue(n,!1,o);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var r=c?c.call(e):n;return Pe.target&&(s.depend({target:e,type:"get",key:t}),h&&(h.dep.depend(),i(r)&&function e(t){for(var n=void 0,r=0,a=t.length;r<a;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),i(n)&&e(n)}(r))),Qe(r)&&!a?r.value:r},set:function(i){var l=c?c.call(e):n;if(H(l,i)){if(r&&r(),u)u.call(e,i);else{if(c)return;if(!a&&Qe(l)&&!Qe(i))return void(l.value=i);n=i}h=!a&&Ue(i,!1,o),s.notify({type:"set",target:e,key:t,newValue:i,oldValue:l})}}}),s}}function Ve(e,t,n){if((r(e)||s(e))&&Ri("Cannot set reactive property on undefined, null, or primitive value: ".concat(e)),!Je(e)){var a=e.__ob__;return i(e)&&f(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),a&&!a.shallow&&a.mock&&Ue(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||a&&a.vmCount?(Ri("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):a?(Ge(a.value,t,n,void 0,a.shallow,a.mock),a.dep.notify({type:"add",target:e,key:t,newValue:n,oldValue:void 0}),n):(e[t]=n,n)}Ri('Set operation on key "'.concat(t,'" failed: target is readonly.'))}function We(e,t){if((r(e)||s(e))&&Ri("Cannot delete reactive property on undefined, null, or primitive value: ".concat(e)),i(e)&&f(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount?Ri("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):Je(e)?Ri('Delete operation on key "'.concat(t,'" failed: target is readonly.')):M(e,t)&&(delete e[t],n&&n.dep.notify({type:"delete",target:e,key:t}))}}function $e(e){return Ye(e,!0),Y(e,"__v_isShallow",!0),e}function Ye(e,t){if(!Je(e)){i(e)&&Ri("Avoid using Array as root value for ".concat(t?"shallowReactive()":"reactive()"," as it cannot be tracked in watch() or watchEffect(). Use ").concat(t?"shallowRef()":"ref()"," instead. This is a Vue-2-only limitation."));var n=e&&e.__ob__;n&&n.shallow!==t&&Ri("Target is already a ".concat(n.shallow?"":"non-","shallow reactive object, and cannot be converted to ").concat(t?"":"non-","shallow.")),Ue(e,t,se())||((null==e||s(e))&&Ri("value cannot be made reactive: ".concat(String(e))),Ze(e)&&Ri("Vue 2 does not support reactive collection types such as Map or Set."))}}function qe(e){return Je(e)?qe(e.__v_raw):!(!e||!e.__ob__)}function Xe(e){return!(!e||!e.__v_isShallow)}function Je(e){return!(!e||!e.__v_isReadonly)}function Ze(e){var t=h(e);return"Map"===t||"WeakMap"===t||"Set"===t||"WeakSet"===t}var Ke="__v_isRef";function Qe(e){return!(!e||!0!==e.__v_isRef)}function et(e,t){if(Qe(e))return e;var n={};return Y(n,Ke,!0),Y(n,"__v_isShallow",t),Y(n,"dep",Ge(n,"value",e,null,t,se())),n}function tt(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if(Qe(e))return e.value;var i=e&&e.__ob__;return i&&i.dep.depend(),e},set:function(e){var i=t[n];Qe(i)&&!Qe(e)?i.value=e:t[n]=e}})}function nt(e,t,n){var i=e[t];if(Qe(i))return i;var r={get value(){var i=e[t];return void 0===i?n:i},set value(n){e[t]=n}};return Y(r,Ke,!0),r}var it,rt,at="__v_rawToReadonly",ot="__v_rawToShallowReadonly";function st(e){return lt(e,!1)}function lt(e,t){if(!d(e))return i(e)?Ri("Vue 2 does not support readonly arrays."):Ze(e)?Ri("Vue 2 does not support readonly collection types such as Map or Set."):Ri("value cannot be made readonly: ".concat(typeof e)),e;if(Object.isExtensible(e)||Ri("Vue 2 does not support creating readonly proxy for non-extensible object."),Je(e))return e;var n=t?ot:at,r=e[n];if(r)return r;var a=Object.create(Object.getPrototypeOf(e));Y(e,n,a),Y(a,"__v_isReadonly",!0),Y(a,"__v_raw",e),Qe(e)&&Y(a,Ke,!0),(t||Xe(e))&&Y(a,"__v_isShallow",!0);for(var o=Object.keys(e),s=0;s<o.length;s++)ct(a,e,o[s],t);return a}function ct(e,t,n,i){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return i||!d(e)?e:st(e)},set:function(){Ri('Set operation on key "'.concat(n,'" failed: target is readonly.'))}})}var ut=J&&window.performance;ut&&ut.mark&&ut.measure&&ut.clearMarks&&ut.clearMeasures&&(it=function(e){return ut.mark(e)},rt=function(e,t,n){ut.measure(e,t,n),ut.clearMarks(t),ut.clearMarks(n)});var ht=E(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),i="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=i?e.slice(1):e,once:n,capture:i,passive:t}});function dt(e,t){function n(){var e=n.fns;if(!i(e))return In(e,null,arguments,t,"v-on handler");for(var r=e.slice(),a=0;a<r.length;a++)In(r[a],null,arguments,t,"v-on handler")}return n.fns=e,n}function pt(e,t,n,i,a,s){var l,c,u,h;for(l in e)c=e[l],u=t[l],h=ht(l),r(c)?Ri('Invalid handler for event "'.concat(h.name,'": got ')+String(c),s):r(u)?(r(c.fns)&&(c=e[l]=dt(c,s)),o(h.once)&&(c=e[l]=a(h.name,c,h.capture)),n(h.name,c,h.capture,h.passive,h.params)):c!==u&&(u.fns=c,e[l]=u);for(l in t)r(e[l])&&i((h=ht(l)).name,t[l],h.capture)}function ft(e,t,n){var i;e instanceof me&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),w(i.fns,l)}r(s)?i=dt([l]):a(s.fns)&&o(s.merged)?(i=s).fns.push(l):i=dt([s,l]),i.merged=!0,e[t]=i}function mt(e,t,n,i,r){if(a(t)){if(M(t,n))return e[n]=t[n],r||delete t[n],!0;if(M(t,i))return e[n]=t[i],r||delete t[i],!0}return!1}function vt(e){return s(e)?[ge(e)]:i(e)?function e(t,n){var l=[];var c,u,h,d;for(c=0;c<t.length;c++)r(u=t[c])||"boolean"==typeof u||(h=l.length-1,d=l[h],i(u)?u.length>0&&(gt((u=e(u,"".concat(n||"","_").concat(c)))[0])&&gt(d)&&(l[h]=ge(d.text+u[0].text),u.shift()),l.push.apply(l,u)):s(u)?gt(d)?l[h]=ge(d.text+u):""!==u&&l.push(ge(u)):gt(u)&&gt(d)?l[h]=ge(d.text+u.text):(o(t._isVList)&&a(u.tag)&&r(u.key)&&a(n)&&(u.key="__vlist".concat(n,"_").concat(c,"__")),l.push(u)));return l}(e):void 0}function gt(e){return a(e)&&a(e.text)&&!1===e.isComment}var yt=1,bt=2;function xt(e,t,n,u,h,d){return(i(n)||s(n))&&(h=u,u=n,n=void 0),o(d)&&(h=bt),function(e,t,n,u,h){if(a(n)&&a(n.__ob__))return Ri("Avoid using observed data object as vnode data: ".concat(JSON.stringify(n),"\n")+"Always create fresh vnode data objects in each render!",e),ve();a(n)&&a(n.is)&&(t=n.is);if(!t)return ve();a(n)&&a(n.key)&&!s(n.key)&&Ri("Avoid using non-primitive value as key, use string/number value instead.",e);i(u)&&l(u[0])&&((n=n||{}).scopedSlots={default:u[0]},u.length=0);h===bt?u=vt(u):h===yt&&(u=function(e){for(var t=0;t<e.length;t++)if(i(e[t]))return Array.prototype.concat.apply([],e);return e}(u));var d,p;if("string"==typeof t){var f=void 0;p=e.$vnode&&e.$vnode.ns||V.getTagNamespace(t),V.isReservedTag(t)?(a(n)&&a(n.nativeOn)&&"component"!==n.tag&&Ri("The .native modifier for v-on is only valid on components but it was used on <".concat(t,">."),e),d=new me(V.parsePlatformTagName(t),n,u,void 0,void 0,e)):d=n&&n.pre||!a(f=Wi(e.$options,"components",t))?new me(t,n,u,void 0,void 0,e):Ai(f,n,e,u,t)}else d=Ai(t,n,e,u);return i(d)?d:a(d)?(a(p)&&function e(t,n,i){t.ns=n;"foreignObject"===t.tag&&(n=void 0,i=!0);if(a(t.children))for(var s=0,l=t.children.length;s<l;s++){var c=t.children[s];a(c.tag)&&(r(c.ns)||o(i)&&"svg"!==c.tag)&&e(c,n,i)}}(d,p),a(n)&&function(e){c(e.style)&&li(e.style);c(e.class)&&li(e.class)}(n),d):ve()}(e,t,n,u,h)}function wt(e,t){var n,r,o,s,l=null;if(i(e)||"string"==typeof e)for(l=new Array(e.length),n=0,r=e.length;n<r;n++)l[n]=t(e[n],n);else if("number"==typeof e)for(l=new Array(e),n=0;n<e;n++)l[n]=t(n+1,n);else if(c(e))if(he&&e[Symbol.iterator]){l=[];for(var u=e[Symbol.iterator](),h=u.next();!h.done;)l.push(t(h.value,l.length)),h=u.next()}else for(o=Object.keys(e),l=new Array(o.length),n=0,r=o.length;n<r;n++)s=o[n],l[n]=t(e[s],s,n);return a(l)||(l=[]),l._isVList=!0,l}function _t(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(c(i)||Ri("slot v-bind without argument expects an Object",this),n=R(R({},i),n)),r=a(n)||(l(t)?t():t)):r=this.$slots[e]||(l(t)?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},r):r}function Mt(e){return Wi(this.$options,"filters",e,!0)||N}function Et(e,t){return i(e)?-1===e.indexOf(t):e!==t}function Tt(e,t,n,i,r){var a=V.keyCodes[t]||n;return r&&i&&!V.keyCodes[t]?Et(r,i):a?Et(a,e):i?L(i)!==t:void 0===e}function St(e,t,n,r,a){if(n)if(c(n)){i(n)&&(n=D(n));var o=void 0,s=function(i){if("class"===i||"style"===i||x(i))o=e;else{var s=e.attrs&&e.attrs.type;o=r||V.mustUseProp(t,s,i)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=S(i),c=L(i);l in o||c in o||(o[i]=n[i],a&&((e.on||(e.on={}))["update:".concat(i)]=function(e){n[i]=e}))};for(var l in n)s(l)}else Ri("v-bind without argument expects an Object or Array value",this);return e}function Ct(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t?i:(Lt(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),"__static__".concat(e),!1),i)}function At(e,t,n){return Lt(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function Lt(e,t,n){if(i(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Pt(e[r],"".concat(t,"_").concat(r),n);else Pt(e,t,n)}function Pt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Ot(e,t){if(t)if(d(t)){var n=e.on=e.on?R({},e.on):{};for(var i in t){var r=n[i],a=t[i];n[i]=r?[].concat(r,a):a}}else Ri("v-on without argument expects an Object value",this);return e}function Rt(e,t,n,r){t=t||{$stable:!n};for(var a=0;a<e.length;a++){var o=e[a];i(o)?Rt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Dt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"==typeof i&&i?e[t[n]]=t[n+1]:""!==i&&null!==i&&Ri("Invalid value for dynamic directive argument (expected string or null): ".concat(i),this)}return e}function It(e,t){return"string"==typeof e?t+e:e}function kt(e){e._o=At,e._n=g,e._s=v,e._l=wt,e._t=_t,e._q=z,e._i=F,e._m=Ct,e._f=Mt,e._k=Tt,e._b=St,e._v=ge,e._e=ve,e._u=Rt,e._g=Ot,e._d=Dt,e._p=It}function Nt(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var a=e[i],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(zt)&&delete n[c];return n}function zt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Ft(e){return e.isComment&&e.asyncFactory}function Bt(t,n,i,r){var a,o=Object.keys(i).length>0,s=n?!!n.$stable:!o,l=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(s&&r&&r!==e&&l===r.$key&&!o&&!r.$hasNormal)return r;for(var c in a={},n)n[c]&&"$"!==c[0]&&(a[c]=Ht(t,i,c,n[c]))}else a={};for(var u in i)u in a||(a[u]=jt(i,u));return n&&Object.isExtensible(n)&&(n._normalized=a),Y(a,"$stable",s),Y(a,"$key",l),Y(a,"$hasNormal",o),a}function Ht(e,t,n,r){var a=function(){var t=de;pe(e);var n=arguments.length?r.apply(null,arguments):r({}),a=(n=n&&"object"==typeof n&&!i(n)?[n]:vt(n))&&n[0];return pe(t),n&&(!a||1===n.length&&a.isComment&&!Ft(a))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:a,enumerable:!0,configurable:!0}),a}function jt(e,t){return function(){return e[t]}}function Ut(t){var n=!1;return{get attrs(){if(!t._attrsProxy){var n=t._attrsProxy={};Y(n,"_v_attr_proxy",!0),Gt(n,t.$attrs,e,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||Gt(t._listenersProxy={},t.$listeners,e,t,"$listeners");return t._listenersProxy},get slots(){return function(e){e._slotsProxy||Wt(e._slotsProxy={},e.$scopedSlots);return e._slotsProxy}(t)},emit:P(t.$emit,t),expose:function(e){n&&Ri("expose() should be called only once per setup().",t),n=!0,e&&Object.keys(e).forEach(function(n){return tt(t,e,n)})}}}function Gt(e,t,n,i,r){var a=!1;for(var o in t)o in e?t[o]!==n[o]&&(a=!0):(a=!0,Vt(e,o,i,r));for(var o in e)o in t||(a=!0,delete e[o]);return a}function Vt(e,t,n,i){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[i][t]}})}function Wt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function $t(){de||Ri("useContext() called without active instance.");var e=de;return e._setupContext||(e._setupContext=Ut(e))}var Yt,qt,Xt=null;function Jt(e,t){return(e.__esModule||he&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Zt(e){if(i(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||Ft(n)))return n}}function Kt(e,t){Yt.$on(e,t)}function Qt(e,t){Yt.$off(e,t)}function en(e,t){var n=Yt;return function i(){null!==t.apply(null,arguments)&&n.$off(e,i)}}function tn(e,t,n){Yt=e,pt(t,n||{},Kt,Qt,en,e),Yt=void 0}var nn=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=qt,!e&&qt&&(this.index=(qt.scopes||(qt.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=qt;try{return qt=this,e()}finally{qt=t}}else Ri("cannot run an inactive effect scope.")},e.prototype.on=function(){qt=this},e.prototype.off=function(){qt=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}},e}();function rn(){return qt}var an=null,on=!1;function sn(e){var t=an;return an=e,function(){an=t}}function ln(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function cn(e,t){if(t){if(e._directInactive=!1,ln(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)cn(e.$children[n]);un(e,"activated")}}function un(e,t,n,i){void 0===i&&(i=!0),Re();var r=de,a=rn();i&&pe(e);var o=e.$options[t],s="".concat(t," hook");if(o)for(var l=0,c=o.length;l<c;l++)In(o[l],e,n||null,e,s);e._hasHookEvent&&e.$emit("hook:"+t),i&&(pe(r),a&&a.on()),De()}var hn=100,dn=[],pn=[],fn={},mn={},vn=!1,gn=!1,yn=0;var bn=0,xn=Date.now;if(J&&!K){var wn=window.performance;wn&&"function"==typeof wn.now&&xn()>document.createEvent("Event").timeStamp&&(xn=function(){return wn.now()})}var _n=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Mn(){var e,t;for(bn=xn(),gn=!0,dn.sort(_n),yn=0;yn<dn.length;yn++)if((e=dn[yn]).before&&e.before(),t=e.id,fn[t]=null,e.run(),null!=fn[t]&&(mn[t]=(mn[t]||0)+1,mn[t]>hn)){Ri("You may have an infinite update loop "+(e.user?'in watcher with expression "'.concat(e.expression,'"'):"in a component render function."),e.vm);break}var n=pn.slice(),i=dn.slice();yn=dn.length=pn.length=0,fn={},mn={},vn=gn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,cn(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],i=n.vm;i&&i._watcher===n&&i._isMounted&&!i._isDestroyed&&un(i,"updated")}}(i),Le(),le&&V.devtools&&le.emit("flush")}function En(e){var t=e.id;if(null==fn[t]&&(e!==Pe.target||!e.noRecurse)){if(fn[t]=!0,gn){for(var n=dn.length-1;n>yn&&dn[n].id>e.id;)n--;dn.splice(n+1,0,e)}else dn.push(e);if(!vn){if(vn=!0,!V.async)return void Mn();$n(Mn)}}}var Tn="watcher",Sn="".concat(Tn," callback"),Cn="".concat(Tn," getter"),An="".concat(Tn," cleanup");function Ln(e,t){return On(e,null,Se(Se({},t),{flush:"post"}))}var Pn={};function On(t,n,r){var a=void 0===r?e:r,o=a.immediate,s=a.deep,c=a.flush,u=void 0===c?"pre":c,h=a.onTrack,d=a.onTrigger;n||(void 0!==o&&Ri('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==s&&Ri('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));var p,f,m=function(e){Ri("Invalid watch source: ".concat(e,". A watch source can only be a getter/effect ")+"function, a ref, a reactive object, or an array of these types.")},v=de,g=function(e,t,n){return void 0===n&&(n=null),In(e,null,n,v,t)},y=!1,b=!1;if(Qe(t)?(p=function(){return t.value},y=Xe(t)):qe(t)?(p=function(){return t.__ob__.dep.depend(),t},s=!0):i(t)?(b=!0,y=t.some(function(e){return qe(e)||Xe(e)}),p=function(){return t.map(function(e){return Qe(e)?e.value:qe(e)?li(e):l(e)?g(e,Cn):void m(e)})}):l(t)?p=n?function(){return g(t,Cn)}:function(){if(!v||!v._isDestroyed)return f&&f(),g(t,Tn,[w])}:(p=I,m(t)),n&&s){var x=p;p=function(){return li(x())}}var w=function(e){f=_.onStop=function(){g(e,An)}};if(se())return w=I,n?o&&g(n,Sn,[p(),b?[]:void 0,w]):p(),I;var _=new ui(de,p,I,{lazy:!0});_.noRecurse=!n;var M=b?[]:Pn;return _.run=function(){if(_.active)if(n){var e=_.get();(s||y||(b?e.some(function(e,t){return H(e,M[t])}):H(e,M)))&&(f&&f(),g(n,Sn,[e,M===Pn?void 0:M,w]),M=e)}else _.get()},"sync"===u?_.update=_.run:"post"===u?(_.post=!0,_.update=function(){return En(_)}):_.update=function(){if(v&&v===de&&!v._isMounted){var e=v._preWatchers||(v._preWatchers=[]);e.indexOf(_)<0&&e.push(_)}else En(_)},_.onTrack=h,_.onTrigger=d,n?o?_.run():M=_.get():"post"===u&&v?v.$once("hook:mounted",function(){return _.get()}):_.get(),function(){_.teardown()}}function Rn(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function Dn(e,t,n){Re();try{if(t)for(var i=t;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var a=0;a<r.length;a++)try{if(!1===r[a].call(i,e,t,n))return}catch(e){kn(e,i,"errorCaptured hook")}}kn(e,t,n)}finally{De()}}function In(e,t,n,i,r){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&m(a)&&!a._handled&&(a.catch(function(e){return Dn(e,i,r+" (Promise/async)")}),a._handled=!0)}catch(e){Dn(e,i,r)}return a}function kn(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Nn(t,null,"config.errorHandler")}Nn(e,t,n)}function Nn(e,t,n){if(Ri("Error in ".concat(n,': "').concat(e.toString(),'"'),t),!J||"undefined"==typeof console)throw e;console.error(e)}var zn,Fn=!1,Bn=[],Hn=!1;function jn(){Hn=!1;var e=Bn.slice(0);Bn.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ce(Promise)){var Un=Promise.resolve();zn=function(){Un.then(jn),te&&setTimeout(I)},Fn=!0}else if(K||"undefined"==typeof MutationObserver||!ce(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())zn=void 0!==n&&ce(n)?function(){n(jn)}:function(){setTimeout(jn,0)};else{var Gn=1,Vn=new MutationObserver(jn),Wn=document.createTextNode(String(Gn));Vn.observe(Wn,{characterData:!0}),zn=function(){Gn=(Gn+1)%2,Wn.data=String(Gn)},Fn=!0}function $n(e,t){var n;if(Bn.push(function(){if(e)try{e.call(t)}catch(e){Dn(e,t,"nextTick")}else n&&n(t)}),Hn||(Hn=!0,zn()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}function Yn(e){return function(t,n){if(void 0===n&&(n=de),n)return function(e,t,n){var i=e.$options;i[t]=Bi(i[t],n)}(n,e,t);Ri("".concat(function(e){"beforeDestroy"===e?e="beforeUnmount":"destroyed"===e&&(e="unmounted");return"on".concat(e[0].toUpperCase()+e.slice(1))}(e)," is called when there is no active component instance to be ")+"associated with. Lifecycle injection APIs can only be used during execution of setup().")}}var qn=Yn("beforeMount"),Xn=Yn("mounted"),Jn=Yn("beforeUpdate"),Zn=Yn("updated"),Kn=Yn("beforeDestroy"),Qn=Yn("destroyed"),ei=Yn("activated"),ti=Yn("deactivated"),ni=Yn("serverPrefetch"),ii=Yn("renderTracked"),ri=Yn("renderTriggered"),ai=Yn("errorCaptured");var oi=Object.freeze({__proto__:null,version:"2.7.15",defineComponent:function(e){return e},ref:function(e){return et(e,!1)},shallowRef:function(e){return et(e,!0)},isRef:Qe,toRef:nt,toRefs:function(e){qe(e)||Ri("toRefs() expects a reactive object but received a plain one.");var t=i(e)?new Array(e.length):{};for(var n in e)t[n]=nt(e,n);return t},unref:function(e){return Qe(e)?e.value:e},proxyRefs:function(e){if(qe(e))return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++)tt(t,e,n[i]);return t},customRef:function(e){var t=new Pe,n=e(function(){t.depend({target:a,type:"get",key:"value"})},function(){t.notify({target:a,type:"set",key:"value"})}),i=n.get,r=n.set,a={get value(){return i()},set value(e){r(e)}};return Y(a,Ke,!0),a},triggerRef:function(e){e.dep||Ri("received object is not a triggerable ref."),e.dep&&e.dep.notify({type:"set",target:e,key:"value"})},reactive:function(e){return Ye(e,!1),e},isReactive:qe,isReadonly:Je,isShallow:Xe,isProxy:function(e){return qe(e)||Je(e)},shallowReactive:$e,markRaw:function(e){return Object.isExtensible(e)&&Y(e,"__v_skip",!0),e},toRaw:function e(t){var n=t&&t.__v_raw;return n?e(n):t},readonly:st,shallowReadonly:function(e){return lt(e,!0)},computed:function(e,t){var n,i,r=l(e);r?(n=e,i=function(){Ri("Write operation failed: computed value is readonly")}):(n=e.get,i=e.set);var a=se()?null:new ui(de,n,I,{lazy:!0});a&&t&&(a.onTrack=t.onTrack,a.onTrigger=t.onTrigger);var o={effect:a,get value(){return a?(a.dirty&&a.evaluate(),Pe.target&&(Pe.target.onTrack&&Pe.target.onTrack({effect:Pe.target,target:o,type:"get",key:"value"}),a.depend()),a.value):n()},set value(e){i(e)}};return Y(o,Ke,!0),Y(o,"__v_isReadonly",r),o},watch:function(e,t,n){return"function"!=typeof t&&Ri("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),On(e,t,n)},watchEffect:function(e,t){return On(e,null,t)},watchPostEffect:Ln,watchSyncEffect:function(e,t){return On(e,null,Se(Se({},t),{flush:"sync"}))},EffectScope:nn,effectScope:function(e){return new nn(e)},onScopeDispose:function(e){qt?qt.cleanups.push(e):Ri("onScopeDispose() is called when there is no active effect scope to be associated with.")},getCurrentScope:rn,provide:function(e,t){de?Rn(de)[e]=t:Ri("provide() can only be used inside setup().")},inject:function(e,t,n){void 0===n&&(n=!1);var i=de;if(i){var r=i.$parent&&i.$parent._provided;if(r&&e in r)return r[e];if(arguments.length>1)return n&&l(t)?t.call(i):t;Ri('injection "'.concat(String(e),'" not found.'))}else Ri("inject() can only be used inside setup() or functional components.")},h:function(e,t,n){return de||Ri("globally imported h() can only be invoked when there is an active component instance, e.g. synchronously in a component's render or setup function."),xt(de,e,t,n,2,!0)},getCurrentInstance:function(){return de&&{proxy:de}},useSlots:function(){return $t().slots},useAttrs:function(){return $t().attrs},useListeners:function(){return $t().listeners},mergeDefaults:function(e,t){var n=i(e)?e.reduce(function(e,t){return e[t]={},e},{}):e;for(var r in t){var a=n[r];a?i(a)||l(a)?n[r]={type:a,default:t[r]}:a.default=t[r]:null===a?n[r]={default:t[r]}:Ri('props default key "'.concat(r,'" has no corresponding declaration.'))}return n},nextTick:$n,set:Ve,del:We,useCssModule:function(t){return Ri("useCssModule() is not supported in the global build."),e},useCssVars:function(e){if(J){var t=de;t?Ln(function(){var n=t.$el,i=e(t,t._setupProxy);if(n&&1===n.nodeType){var r=n.style;for(var a in i)r.setProperty("--".concat(a),i[a])}}):Ri("useCssVars is called without current active component instance.")}},defineAsyncComponent:function(e){l(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,i=e.errorComponent,r=e.delay,a=void 0===r?200:r,o=e.timeout,s=e.suspensible,u=void 0!==s&&s,h=e.onError;u&&Ri("The suspensible option for async components is not supported in Vue2. It is ignored.");var d=null,p=0,f=function(){var e;return d||(e=d=t().catch(function(e){if(e=e instanceof Error?e:new Error(String(e)),h)return new Promise(function(t,n){h(e,function(){return t((p++,d=null,f()))},function(){return n(e)},p+1)});throw e}).then(function(t){if(e!==d&&d)return d;if(t||Ri("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t&&!c(t)&&!l(t))throw new Error("Invalid async component load result: ".concat(t));return t}))};return function(){return{component:f(),delay:a,timeout:o,error:i,loading:n}}},onBeforeMount:qn,onMounted:Xn,onBeforeUpdate:Jn,onUpdated:Zn,onBeforeUnmount:Kn,onUnmounted:Qn,onActivated:ei,onDeactivated:ti,onServerPrefetch:ni,onRenderTracked:ii,onRenderTriggered:ri,onErrorCaptured:function(e,t){void 0===t&&(t=de),ai(e,t)}}),si=new ue;function li(e){return function e(t,n){var r,a;var o=i(t);if(!o&&!c(t)||t.__v_skip||Object.isFrozen(t)||t instanceof me)return;if(t.__ob__){var s=t.__ob__.dep.id;if(n.has(s))return;n.add(s)}if(o)for(r=t.length;r--;)e(t[r],n);else if(Qe(t))e(t.value,n);else for(a=Object.keys(t),r=a.length;r--;)e(t[a[r]],n)}(e,si),si.clear(),e}var ci=0,ui=function(){function e(e,t,n,i,r){var a,o;a=this,void 0===(o=qt&&!qt._vm?qt:e?e._scope:void 0)&&(o=qt),o&&o.active&&o.effects.push(a),(this.vm=e)&&r&&(e._watcher=this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before,this.onTrack=i.onTrack,this.onTrigger=i.onTrigger):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ci,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ue,this.newDepIds=new ue,this.expression=t.toString(),l(t)?this.getter=t:(this.getter=function(e){if(!q.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=I,Ri('Failed watching path: "'.concat(t,'" ')+"Watcher only accepts simple dot-delimited paths. For full control, use a function instead.",e))),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;Re(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Dn(e,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&li(e),De(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():En(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');In(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}(),hi={enumerable:!0,configurable:!0,get:I,set:I};function di(e,t,n){hi.get=function(){return this[t][n]},hi.set=function(e){this[t][n]=e},Object.defineProperty(e,n,hi)}function pi(e){var t=e.$options;if(t.props&&function(e,t){var n=e.$options.propsData||{},i=e._props=$e({}),r=e.$options._propKeys=[],a=!e.$parent;a||Be(!1);var o=function(o){r.push(o);var s=$i(o,t,n,e),l=L(o);(x(l)||V.isReservedAttr(l))&&Ri('"'.concat(l,'" is a reserved attribute and cannot be used as component prop.'),e),Ge(i,o,s,function(){a||on||Ri("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's "+'value. Prop being mutated: "'.concat(o,'"'),e)}),o in e||di(e,"_props",o)};for(var s in t)o(s);Be(!0)}(e,t.props),function(e){var t=e.$options,n=t.setup;if(n){var i=e._setupContext=Ut(e);pe(e),Re();var r=In(n,null,[e._props||$e({}),i],e,"setup");if(De(),pe(),l(r))t.render=r;else if(c(r))if(r instanceof me&&Ri("setup() should not return VNodes directly - return a render function instead."),e._setupState=r,r.__sfc){var a=e._setupProxy={};for(var o in r)"__sfc"!==o&&tt(a,r,o)}else for(var o in r)$(o)?Ri("Avoid using variables that start with _ or $ in setup()."):tt(e,r,o);else void 0!==r&&Ri("setup() should return an object. Received: ".concat(null===r?"null":typeof r))}}(e),t.methods&&function(e,t){var n=e.$options.props;for(var i in t)"function"!=typeof t[i]&&Ri('Method "'.concat(i,'" has type "').concat(typeof t[i],'" in the component definition. ')+"Did you reference the function correctly?",e),n&&M(n,i)&&Ri('Method "'.concat(i,'" has already been defined as a prop.'),e),i in e&&$(i)&&Ri('Method "'.concat(i,'" conflicts with an existing Vue instance method. ')+"Avoid defining component methods that start with _ or $."),e[i]="function"!=typeof t[i]?I:P(t[i],e)}(e,t.methods),t.data)!function(e){var t=e.$options.data;d(t=e._data=l(t)?function(e,t){Re();try{return e.call(t,t)}catch(e){return Dn(e,t,"data()"),{}}finally{De()}}(t,e):t||{})||(t={},Ri("data functions should return an object:\nhttps://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var n=Object.keys(t),i=e.$options.props,r=e.$options.methods,a=n.length;for(;a--;){var o=n[a];r&&M(r,o)&&Ri('Method "'.concat(o,'" has already been defined as a data property.'),e),i&&M(i,o)?Ri('The data property "'.concat(o,'" is already declared as a prop. ')+"Use prop default value instead.",e):$(o)||di(e,"_data",o)}var s=Ue(t);s&&s.vmCount++}(e);else{var n=Ue(e._data={});n&&n.vmCount++}t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),i=se();for(var r in t){var a=t[r],o=l(a)?a:a.get;null==o&&Ri('Getter is missing for computed property "'.concat(r,'".'),e),i||(n[r]=new ui(e,o||I,I,fi)),r in e?r in e.$data?Ri('The computed property "'.concat(r,'" is already defined in data.'),e):e.$options.props&&r in e.$options.props?Ri('The computed property "'.concat(r,'" is already defined as a prop.'),e):e.$options.methods&&r in e.$options.methods&&Ri('The computed property "'.concat(r,'" is already defined as a method.'),e):mi(e,r,a)}}(e,t.computed),t.watch&&t.watch!==re&&function(e,t){for(var n in t){var r=t[n];if(i(r))for(var a=0;a<r.length;a++)yi(e,n,r[a]);else yi(e,n,r)}}(e,t.watch)}var fi={lazy:!0};function mi(e,t,n){var i=!se();l(n)?(hi.get=i?vi(t):gi(n),hi.set=I):(hi.get=n.get?i&&!1!==n.cache?vi(t):gi(n.get):I,hi.set=n.set||I),hi.set===I&&(hi.set=function(){Ri('Computed property "'.concat(t,'" was assigned to but it has no setter.'),this)}),Object.defineProperty(e,t,hi)}function vi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Pe.target&&(Pe.target.onTrack&&Pe.target.onTrack({effect:Pe.target,target:this,type:"get",key:e}),t.depend()),t.value}}function gi(e){return function(){return e.call(this,this)}}function yi(e,t,n,i){return d(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,i)}function bi(e,t){if(e){for(var n=Object.create(null),i=he?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("__ob__"!==a){var o=e[a].from;if(o in t._provided)n[a]=t._provided[o];else if("default"in e[a]){var s=e[a].default;n[a]=l(s)?s.call(t):s}else Ri('Injection "'.concat(a,'" not found'),t)}}return n}}var xi=0;function wi(e){var t=e.options;if(e.super){var n=wi(e.super);if(n!==e.superOptions){e.superOptions=n;var i=function(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}(e);i&&R(e.extendOptions,i),(t=e.options=Vi(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function _i(t,n,r,a,s){var l,c=this,u=s.options;M(a,"_uid")?(l=Object.create(a))._original=a:(l=a,a=a._original);var h=o(u._compiled),d=!h;this.data=t,this.props=n,this.children=r,this.parent=a,this.listeners=t.on||e,this.injections=bi(u.inject,a),this.slots=function(){return c.$slots||Bt(a,t.scopedSlots,c.$slots=Nt(r,a)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Bt(a,t.scopedSlots,this.slots())}}),h&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Bt(a,t.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=xt(l,e,t,n,r,d);return o&&!i(o)&&(o.fnScopeId=u._scopeId,o.fnContext=a),o}:this._c=function(e,t,n,i){return xt(l,e,t,n,i,d)}}function Mi(e,t,n,i,r){var a=ye(e);return a.fnContext=n,a.fnOptions=i,(a.devtoolsMeta=a.devtoolsMeta||{}).renderContext=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Ei(e,t){for(var n in t)e[S(n)]=t[n]}function Ti(e){return e.name||e.__name||e._componentTag}kt(_i.prototype);var Si={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Si.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;a(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,an)).$mount(t?e.elm:void 0,t)}},prepatch:function(t,n){var i=n.componentOptions;!function(t,n,i,r,a){on=!0;var o=r.data.scopedSlots,s=t.$scopedSlots,l=!!(o&&!o.$stable||s!==e&&!s.$stable||o&&t.$scopedSlots.$key!==o.$key||!o&&t.$scopedSlots.$key),c=!!(a||t.$options._renderChildren||l),u=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=a;var h=r.data.attrs||e;t._attrsProxy&&Gt(t._attrsProxy,h,u.data&&u.data.attrs||e,t,"$attrs")&&(c=!0),t.$attrs=h,i=i||e;var d=t.$options._parentListeners;if(t._listenersProxy&&Gt(t._listenersProxy,i,d||e,t,"$listeners"),t.$listeners=t.$options._parentListeners=i,tn(t,i,d),n&&t.$options.props){Be(!1);for(var p=t._props,f=t.$options._propKeys||[],m=0;m<f.length;m++){var v=f[m],g=t.$options.props;p[v]=$i(v,g,n,t)}Be(!0),t.$options.propsData=n}c&&(t.$slots=Nt(a,r.context),t.$forceUpdate()),on=!1}(n.componentInstance=t.componentInstance,i.propsData,i.listeners,n,i.children)},insert:function(e){var t,n=e.context,i=e.componentInstance;i._isMounted||(i._isMounted=!0,un(i,"mounted")),e.data.keepAlive&&(n._isMounted?((t=i)._inactive=!1,pn.push(t)):cn(i,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(!(n&&(t._directInactive=!0,ln(t))||t._inactive)){t._inactive=!0;for(var i=0;i<t.$children.length;i++)e(t.$children[i]);un(t,"deactivated")}}(t,!0):t.$destroy())}},Ci=Object.keys(Si);function Ai(t,n,s,l,u){if(!r(t)){var h=s.$options._base;if(c(t)&&(t=h.extend(t)),"function"==typeof t){var d;if(r(t.cid)&&void 0===(t=function(e,t){if(o(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=Xt;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var i=e.owners=[n],s=!0,l=null,u=null;n.$on("hook:destroyed",function(){return w(i,n)});var h=function(e){for(var t=0,n=i.length;t<n;t++)i[t].$forceUpdate();e&&(i.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},d=B(function(n){e.resolved=Jt(n,t),s?i.length=0:h(!0)}),p=B(function(t){Ri("Failed to resolve async component: ".concat(String(e))+(t?"\nReason: ".concat(t):"")),a(e.errorComp)&&(e.error=!0,h(!0))}),f=e(d,p);return c(f)&&(m(f)?r(e.resolved)&&f.then(d,p):m(f.component)&&(f.component.then(d,p),a(f.error)&&(e.errorComp=Jt(f.error,t)),a(f.loading)&&(e.loadingComp=Jt(f.loading,t),0===f.delay?e.loading=!0:l=setTimeout(function(){l=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,h(!1))},f.delay||200)),a(f.timeout)&&(u=setTimeout(function(){u=null,r(e.resolved)&&p("timeout (".concat(f.timeout,"ms)"))},f.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=t,h)))return function(e,t,n,i,r){var a=ve();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:i,tag:r},a}(d,n,s,l,u);n=n||{},wi(t),a(n.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[r],l=t.model.callback;a(s)?(i(s)?-1===s.indexOf(l):s!==l)&&(o[r]=[l].concat(s)):o[r]=l}(t.options,n);var p=function(e,t,n){var i=t.options.props;if(!r(i)){var o={},s=e.attrs,l=e.props;if(a(s)||a(l))for(var c in i){var u=L(c),h=c.toLowerCase();c!==h&&s&&M(s,h)&&Di('Prop "'.concat(h,'" is passed to component ')+"".concat(Oi(n||t),", but the declared prop name is")+' "'.concat(c,'". ')+"Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM "+'templates. You should probably use "'.concat(u,'" instead of "').concat(c,'".')),mt(o,l,c,u,!0)||mt(o,s,c,u,!1)}return o}}(n,t,u);if(o(t.options.functional))return function(t,n,r,o,s){var l=t.options,c={},u=l.props;if(a(u))for(var h in u)c[h]=$i(h,u,n||e);else a(r.attrs)&&Ei(c,r.attrs),a(r.props)&&Ei(c,r.props);var d=new _i(r,c,s,o,t),p=l.render.call(null,d._c,d);if(p instanceof me)return Mi(p,r,d.parent,l,d);if(i(p)){for(var f=vt(p)||[],m=new Array(f.length),v=0;v<f.length;v++)m[v]=Mi(f[v],r,d.parent,l,d);return m}}(t,p,n,s,l);var f=n.on;if(n.on=n.nativeOn,o(t.options.abstract)){var v=n.slot;n={},v&&(n.slot=v)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Ci.length;n++){var i=Ci[n],r=t[i],a=Si[i];r===a||r&&r._merged||(t[i]=r?Li(a,r):a)}}(n);var g=Ti(t.options)||u;return new me("vue-component-".concat(t.cid).concat(g?"-".concat(g):""),n,void 0,void 0,void 0,s,{Ctor:t,propsData:p,listeners:f,tag:u,children:l},d)}Ri("Invalid Component definition: ".concat(String(t)),s)}}function Li(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}var Pi,Oi,Ri=I,Di=I,Ii="undefined"!=typeof console,ki=/(?:^|[-_])(\w)/g;Ri=function(e,t){void 0===t&&(t=de);var n=t?Pi(t):"";V.warnHandler?V.warnHandler.call(null,e,t,n):Ii&&!V.silent&&console.error("[Vue warn]: ".concat(e).concat(n))},Di=function(e,t){Ii&&!V.silent&&console.warn("[Vue tip]: ".concat(e)+(t?Pi(t):""))},Oi=function(e,t){if(e.$root===e)return"<Root>";var n=l(e)&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,i=Ti(n),r=n.__file;if(!i&&r){var a=r.match(/([^/\\]+)\.vue$/);i=a&&a[1]}return(i?"<".concat(i.replace(ki,function(e){return e.toUpperCase()}).replace(/[-_]/g,""),">"):"<Anonymous>")+(r&&!1!==t?" at ".concat(r):"")};Pi=function(e){if(e._isVue&&e.$parent){for(var t=[],n=0;e;){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map(function(e,t){return"".concat(0===t?"---\x3e ":function(e,t){for(var n="";t;)t%2==1&&(n+=e),t>1&&(e+=e),t>>=1;return n}(" ",5+2*t)).concat(i(e)?"".concat(Oi(e[0]),"... (").concat(e[1]," recursive calls)"):Oi(e))}).join("\n")}return"\n\n(found in ".concat(Oi(e),")")};var Ni=V.optionMergeStrategies;function zi(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var i,r,a,o=he?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)"__ob__"!==(i=o[s])&&(r=e[i],a=t[i],n&&M(e,i)?r!==a&&d(r)&&d(a)&&zi(r,a):Ve(e,i,a));return e}function Fi(e,t,n){return n?function(){var i=l(t)?t.call(n,n):t,r=l(e)?e.call(n,n):e;return i?zi(i,r):r}:t?e?function(){return zi(l(t)?t.call(this,this):t,l(e)?e.call(this,this):e)}:t:e}function Bi(e,t){var n=t?e?e.concat(t):i(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Hi(e,t,n,i){var r=Object.create(e||null);return t?(Gi(i,t,n),R(r,t)):r}Ni.el=Ni.propsData=function(e,t,n,i){return n||Ri('option "'.concat(i,'" can only be used during instance ')+"creation with the `new` keyword."),ji(e,t)},Ni.data=function(e,t,n){return n?Fi(e,t,n):t&&"function"!=typeof t?(Ri('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):Fi(e,t)},G.forEach(function(e){Ni[e]=Bi}),U.forEach(function(e){Ni[e+"s"]=Hi}),Ni.watch=function(e,t,n,r){if(e===re&&(e=void 0),t===re&&(t=void 0),!t)return Object.create(e||null);if(Gi(r,t,n),!e)return t;var a={};for(var o in R(a,e),t){var s=a[o],l=t[o];s&&!i(s)&&(s=[s]),a[o]=s?s.concat(l):i(l)?l:[l]}return a},Ni.props=Ni.methods=Ni.inject=Ni.computed=function(e,t,n,i){if(t&&Gi(i,t,n),!e)return t;var r=Object.create(null);return R(r,e),t&&R(r,t),r},Ni.provide=function(e,t){return e?function(){var n=Object.create(null);return zi(n,l(e)?e.call(this):e),t&&zi(n,l(t)?t.call(this):t,!1),n}:t};var ji=function(e,t){return void 0===t?e:t};function Ui(e){new RegExp("^[a-zA-Z][\\-\\.0-9_".concat(W.source,"]*$")).test(e)||Ri('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(b(e)||V.isReservedTag(e))&&Ri("Do not use built-in or reserved HTML elements as component id: "+e)}function Gi(e,t,n){d(t)||Ri('Invalid value for option "'.concat(e,'": expected an Object, ')+"but got ".concat(h(t),"."),n)}function Vi(e,t,n){if(function(e){for(var t in e.components)Ui(t)}(t),l(t)&&(t=t.options),function(e,t){var n=e.props;if(n){var r,a,o={};if(i(n))for(r=n.length;r--;)"string"==typeof(a=n[r])?o[S(a)]={type:null}:Ri("props must be strings when using array syntax.");else if(d(n))for(var s in n)a=n[s],o[S(s)]=d(a)?a:{type:a};else Ri('Invalid value for option "props": expected an Array or an Object, '+"but got ".concat(h(n),"."),t);e.props=o}}(t,n),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(i(n))for(var a=0;a<n.length;a++)r[n[a]]={from:n[a]};else if(d(n))for(var o in n){var s=n[o];r[o]=d(s)?R({from:o},s):{from:s}}else Ri('Invalid value for option "inject": expected an Array or an Object, '+"but got ".concat(h(n),"."),t)}}(t,n),function(e){var t=e.directives;if(t)for(var n in t){var i=t[n];l(i)&&(t[n]={bind:i,update:i})}}(t),!t._base&&(t.extends&&(e=Vi(e,t.extends,n)),t.mixins))for(var r=0,a=t.mixins.length;r<a;r++)e=Vi(e,t.mixins[r],n);var o,s={};for(o in e)c(o);for(o in t)M(e,o)||c(o);function c(i){var r=Ni[i]||ji;s[i]=r(e[i],t[i],n,i)}return s}function Wi(e,t,n,i){if("string"==typeof n){var r=e[t];if(M(r,n))return r[n];var a=S(n);if(M(r,a))return r[a];var o=C(a);if(M(r,o))return r[o];var s=r[n]||r[a]||r[o];return i&&!s&&Ri("Failed to resolve "+t.slice(0,-1)+": "+n),s}}function $i(e,t,n,r){var a=t[e],o=!M(n,e),s=n[e],u=Ki(Boolean,a.type);if(u>-1)if(o&&!M(a,"default"))s=!1;else if(""===s||s===L(e)){var d=Ki(String,a.type);(d<0||u<d)&&(s=!0)}if(void 0===s){s=function(e,t,n){if(!M(t,"default"))return;var i=t.default;c(i)&&Ri('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e);if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return l(i)&&"Function"!==Ji(t.type)?i.call(e):i}(r,a,e);var p=Fe;Be(!0),Ue(s),Be(p)}return function(e,t,n,r,a){if(e.required&&a)return void Ri('Missing required prop: "'+t+'"',r);if(null==n&&!e.required)return;var o=e.type,s=!o||!0===o,l=[];if(o){i(o)||(o=[o]);for(var c=0;c<o.length&&!s;c++){var u=qi(n,o[c],r);l.push(u.expectedType||""),s=u.valid}}var d=l.some(function(e){return e});if(!s&&d)return void Ri(function(e,t,n){var i='Invalid prop: type check failed for prop "'.concat(e,'".')+" Expected ".concat(n.map(C).join(", ")),r=n[0],a=h(t);1===n.length&&tr(r)&&tr(typeof t)&&!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.some(function(e){return"boolean"===e.toLowerCase()})}(r,a)&&(i+=" with value ".concat(Qi(t,r)));i+=", got ".concat(a," "),tr(a)&&(i+="with value ".concat(Qi(t,a),"."));return i}(t,n,l),r);var p=e.validator;p&&(p(n)||Ri('Invalid prop: custom validator check failed for prop "'+t+'".',r))}(a,e,s,r,o),s}var Yi=/^(String|Number|Boolean|Function|Symbol|BigInt)$/;function qi(e,t,n){var r,a=Ji(t);if(Yi.test(a)){var o=typeof e;(r=o===a.toLowerCase())||"object"!==o||(r=e instanceof t)}else if("Object"===a)r=d(e);else if("Array"===a)r=i(e);else try{r=e instanceof t}catch(e){Ri('Invalid prop type: "'+String(t)+'" is not a constructor',n),r=!1}return{valid:r,expectedType:a}}var Xi=/^\s*function (\w+)/;function Ji(e){var t=e&&e.toString().match(Xi);return t?t[1]:""}function Zi(e,t){return Ji(e)===Ji(t)}function Ki(e,t){if(!i(t))return Zi(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Zi(t[n],e))return n;return-1}function Qi(e,t){return"String"===t?'"'.concat(e,'"'):"".concat("Number"===t?Number(e):e)}var er=["string","number","boolean"];function tr(e){return er.some(function(t){return e.toLowerCase()===t})}function nr(e){this instanceof nr||Ri("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function ir(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var a=Ti(e)||Ti(n.options);a&&Ui(a);var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=Vi(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)di(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)mi(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,U.forEach(function(e){o[e]=n[e]}),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=R({},o.options),r[i]=o,o}}function rr(e){return e&&(Ti(e.Ctor.options)||e.tag)}function ar(e,t){return i(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function or(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&sr(n,a,i,r)}}}function sr(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,w(n,t)}!function(t){t.prototype._init=function(t){var n,i,r=this;r._uid=xi++,V.performance&&it&&(n="vue-perf-start:".concat(r._uid),i="vue-perf-end:".concat(r._uid),it(n)),r._isVue=!0,r.__v_skip=!0,r._scope=new nn(!0),r._scope._vm=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(r,t):r.$options=Vi(wi(r.constructor),t||{},r),fe(r),r._self=r,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(r),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&tn(e,t)}(r),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,i=t.$vnode=n._parentVnode,r=i&&i.context;t.$slots=Nt(n._renderChildren,r),t.$scopedSlots=i?Bt(t.$parent,i.data.scopedSlots,t.$slots):e,t._c=function(e,n,i,r){return xt(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return xt(t,e,n,i,r,!0)};var a=i&&i.data;Ge(t,"$attrs",a&&a.attrs||e,function(){!on&&Ri("$attrs is readonly.",t)},!0),Ge(t,"$listeners",n._parentListeners||e,function(){!on&&Ri("$listeners is readonly.",t)},!0)}(r),un(r,"beforeCreate",void 0,!1),function(e){var t=bi(e.$options.inject,e);t&&(Be(!1),Object.keys(t).forEach(function(n){Ge(e,n,t[n],function(){Ri("Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. "+'injection being mutated: "'.concat(n,'"'),e)})}),Be(!0))}(r),pi(r),function(e){var t=e.$options.provide;if(t){var n=l(t)?t.call(e):t;if(!c(n))return;for(var i=Rn(e),r=he?Reflect.ownKeys(n):Object.keys(n),a=0;a<r.length;a++){var o=r[a];Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(n,o))}}}(r),un(r,"created"),V.performance&&it&&(r._name=Oi(r,!1),it(i),rt("vue ".concat(r._name," init"),n,i)),r.$options.el&&r.$mount(r.$options.el)}}(nr),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};t.set=function(){Ri("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){Ri("$props is readonly.",this)},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ve,e.prototype.$delete=We,e.prototype.$watch=function(e,t,n){if(d(t))return yi(this,e,t,n);(n=n||{}).user=!0;var i=new ui(this,e,t,n);if(n.immediate){var r='callback for immediate watcher "'.concat(i.expression,'"');Re(),In(t,this,[i.value],this,r),De()}return function(){i.teardown()}}}(nr),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(i(e))for(var a=0,o=e.length;a<o;a++)r.$on(e[a],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(i(e)){for(var r=0,a=e.length;r<a;r++)n.$off(e[r],t);return n}var o,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;for(var l=s.length;l--;)if((o=s[l])===t||o.fn===t){s.splice(l,1);break}return n},e.prototype.$emit=function(e){var t=this,n=e.toLowerCase();n!==e&&t._events[n]&&Di('Event "'.concat(n,'" is emitted in component ')+"".concat(Oi(t),' but the handler is registered for "').concat(e,'". ')+"Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. "+'You should probably use "'.concat(L(e),'" instead of "').concat(e,'".'));var i=t._events[e];if(i){i=i.length>1?O(i):i;for(var r=O(arguments,1),a='event handler for "'.concat(e,'"'),o=0,s=i.length;o<s;o++)In(i[o],t,r,t,a)}return t}}(nr),function(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,a=sn(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),a(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var o=n;o&&o.$vnode&&o.$parent&&o.$vnode===o.$parent._vnode;)o.$parent.$el=o.$el,o=o.$parent},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){un(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||w(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),un(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(nr),function(e){kt(e.prototype),e.prototype.$nextTick=function(e){return $n(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,a=n._parentVnode;a&&t._isMounted&&(t.$scopedSlots=Bt(t.$parent,a.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Wt(t._slotsProxy,t.$scopedSlots)),t.$vnode=a;try{pe(t),Xt=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){if(Dn(n,t,"render"),t.$options.renderError)try{e=t.$options.renderError.call(t._renderProxy,t.$createElement,n)}catch(n){Dn(n,t,"renderError"),e=t._vnode}else e=t._vnode}finally{Xt=null,pe()}return i(e)&&1===e.length&&(e=e[0]),e instanceof me||(i(e)&&Ri("Multiple root nodes returned from render function. Render function should return a single root node.",t),e=ve()),e.parent=a,e}}(nr);var lr=[String,RegExp,Array],cr={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:lr,exclude:lr,max:[String,Number]},methods:{cacheVNode:function(){var e=this.cache,t=this.keys,n=this.vnodeToCache,i=this.keyToCache;if(n){var r=n.tag,a=n.componentInstance,o=n.componentOptions;e[i]={name:rr(o),tag:r,componentInstance:a},t.push(i),this.max&&t.length>parseInt(this.max)&&sr(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)sr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){or(e,function(e){return ar(t,e)})}),this.$watch("exclude",function(t){or(e,function(e){return!ar(t,e)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Zt(e),n=t&&t.componentOptions;if(n){var i=rr(n),r=this.include,a=this.exclude;if(r&&(!i||!ar(r,i))||a&&i&&ar(a,i))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,w(s,l),s.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return V},set:function(){Ri("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:Ri,extend:R,mergeOptions:Vi,defineReactive:Ge},e.set=Ve,e.delete=We,e.nextTick=$n,e.observable=function(e){return Ue(e),e},e.options=Object.create(null),U.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,R(e.options.components,cr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Vi(this.options,e),this}}(e),ir(e),function(e){U.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&Ui(e),"component"===t&&d(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(nr),Object.defineProperty(nr.prototype,"$isServer",{get:se}),Object.defineProperty(nr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(nr,"FunctionalRenderContext",{value:_i}),nr.version="2.7.15";var ur=y("style,class"),hr=y("input,textarea,option,select,progress"),dr=function(e,t,n){return"value"===n&&hr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},pr=y("contenteditable,draggable,spellcheck"),fr=y("events,caret,typing,plaintext-only"),mr=function(e,t){return xr(t)||"false"===t?"false":"contenteditable"===e&&fr(t)?t:"true"},vr=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),gr="http://www.w3.org/1999/xlink",yr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},br=function(e){return yr(e)?e.slice(6,e.length):""},xr=function(e){return null==e||!1===e};function wr(e){for(var t=e.data,n=e,i=e;a(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=_r(i.data,t));for(;a(n=n.parent);)n&&n.data&&(t=_r(t,n.data));return function(e,t){if(a(e)||a(t))return Mr(e,Er(t));return""}(t.staticClass,t.class)}function _r(e,t){return{staticClass:Mr(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Mr(e,t){return e?t?e+" "+t:e:t||""}function Er(e){return Array.isArray(e)?function(e){for(var t,n="",i=0,r=e.length;i<r;i++)a(t=Er(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):c(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Tr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Sr=y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Cr=y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ar=function(e){return Sr(e)||Cr(e)};function Lr(e){return Cr(e)?"svg":"math"===e?"math":void 0}var Pr=Object.create(null);var Or=y("text,number,password,search,email,tel,url");function Rr(e){if("string"==typeof e){var t=document.querySelector(e);return t||(Ri("Cannot find element: "+e),document.createElement("div"))}return e}var Dr=Object.freeze({__proto__:null,createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Tr[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Ir={create:function(e,t){kr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(kr(e,!0),kr(t))},destroy:function(e){kr(e,!0)}};function kr(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,s=t?null:o,c=t?void 0:o;if(l(n))In(n,r,[s],r,"template ref function");else{var u=e.data.refInFor,h="string"==typeof n||"number"==typeof n,d=Qe(n),p=r.$refs;if(h||d)if(u){var f=h?p[n]:n.value;t?i(f)&&w(f,o):i(f)?f.includes(o)||f.push(o):h?(p[n]=[o],Nr(r,n,p[n])):n.value=[o]}else if(h){if(t&&p[n]!==o)return;p[n]=c,Nr(r,n,s)}else if(d){if(t&&n.value!==o)return;n.value=s}else Ri("Invalid template ref type: ".concat(typeof n))}}}function Nr(e,t,n){var i=e._setupState;i&&M(i,t)&&(Qe(i[t])?i[t].value=n:i[t]=n)}var zr=new me("",{},[]),Fr=["create","activate","update","remove","destroy"];function Br(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,i=a(n=e.data)&&a(n=n.attrs)&&n.type,r=a(n=t.data)&&a(n=n.attrs)&&n.type;return i===r||Or(i)&&Or(r)}(e,t)||o(e.isAsyncPlaceholder)&&r(t.asyncFactory.error))}function Hr(e,t,n){var i,r,o={};for(i=t;i<=n;++i)a(r=e[i].key)&&(o[r]=i);return o}var jr={create:Ur,update:Ur,destroy:function(e){Ur(e,zr)}};function Ur(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,i,r,a=e===zr,o=t===zr,s=Vr(e.data.directives,e.context),l=Vr(t.data.directives,t.context),c=[],u=[];for(n in l)i=s[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,$r(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):($r(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var h=function(){for(var n=0;n<c.length;n++)$r(c[n],"inserted",t,e)};a?ft(t,"insert",h):h()}u.length&&ft(t,"postpatch",function(){for(var n=0;n<u.length;n++)$r(u[n],"componentUpdated",t,e)});if(!a)for(n in s)l[n]||$r(s[n],"unbind",e,e,o)}(e,t)}var Gr=Object.create(null);function Vr(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++){if((i=e[n]).modifiers||(i.modifiers=Gr),r[Wr(i)]=i,t._setupState&&t._setupState.__sfc){var a=i.def||Wi(t,"_setupState","v-"+i.name);i.def="function"==typeof a?{bind:a,update:a}:a}i.def=i.def||Wi(t.$options,"directives",i.name,!0)}return r}function Wr(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function $r(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(i){Dn(i,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var Yr=[Ir,jr];function qr(e,t){var n=t.componentOptions;if(!(a(n)&&!1===n.Ctor.options.inheritAttrs||r(e.data.attrs)&&r(t.data.attrs))){var i,s,l=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(i in(a(u.__ob__)||o(u._v_attr_proxy))&&(u=t.data.attrs=R({},u)),u)s=u[i],c[i]!==s&&Xr(l,i,s,t.data.pre);for(i in(K||ee)&&u.value!==c.value&&Xr(l,"value",u.value),c)r(u[i])&&(yr(i)?l.removeAttributeNS(gr,br(i)):pr(i)||l.removeAttribute(i))}}function Xr(e,t,n,i){i||e.tagName.indexOf("-")>-1?Jr(e,t,n):vr(t)?xr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):pr(t)?e.setAttribute(t,mr(t,n)):yr(t)?xr(n)?e.removeAttributeNS(gr,br(t)):e.setAttributeNS(gr,t,n):Jr(e,t,n)}function Jr(e,t,n){if(xr(n))e.removeAttribute(t);else{if(K&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Zr={create:qr,update:qr};function Kr(e,t){var n=t.elm,i=t.data,o=e.data;if(!(r(i.staticClass)&&r(i.class)&&(r(o)||r(o.staticClass)&&r(o.class)))){var s=wr(t),l=n._transitionClasses;a(l)&&(s=Mr(s,Er(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Qr,ea,ta,na,ia,ra,aa,oa={create:Kr,update:Kr},sa=/[\w).+\-_$\]]/;function la(e){var t,n,i,r,a,o=!1,s=!1,l=!1,c=!1,u=0,h=0,d=0,p=0;for(i=0;i<e.length;i++)if(n=t,t=e.charCodeAt(i),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||u||h||d){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:u++;break;case 125:u--}if(47===t){for(var f=i-1,m=void 0;f>=0&&" "===(m=e.charAt(f));f--);m&&sa.test(m)||(c=!0)}}else void 0===r?(p=i+1,r=e.slice(0,i).trim()):v();function v(){(a||(a=[])).push(e.slice(p,i).trim()),p=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==p&&v(),a)for(i=0;i<a.length;i++)r=ca(r,a[i]);return r}function ca(e,t){var n=t.indexOf("(");if(n<0)return'_f("'.concat(t,'")(').concat(e,")");var i=t.slice(0,n),r=t.slice(n+1);return'_f("'.concat(i,'")(').concat(e).concat(")"!==r?","+r:r)}function ua(e,t){console.error("[Vue compiler]: ".concat(e))}function ha(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function da(e,t,n,i,r){(e.props||(e.props=[])).push(_a({name:t,value:n,dynamic:r},i)),e.plain=!1}function pa(e,t,n,i,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(_a({name:t,value:n,dynamic:r},i)),e.plain=!1}function fa(e,t,n,i){e.attrsMap[t]=n,e.attrsList.push(_a({name:t,value:n},i))}function ma(e,t,n,i,r,a,o,s){(e.directives||(e.directives=[])).push(_a({name:t,rawName:n,value:i,arg:r,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function va(e,t,n){return n?"_p(".concat(t,',"').concat(e,'")'):e+t}function ga(t,n,i,r,a,o,s,l){var c;r=r||e,o&&r.prevent&&r.passive&&o("passive and prevent can't be used together. Passive handler can't prevent default event.",s),r.right?l?n="(".concat(n,")==='click'?'contextmenu':(").concat(n,")"):"click"===n&&(n="contextmenu",delete r.right):r.middle&&(l?n="(".concat(n,")==='click'?'mouseup':(").concat(n,")"):"click"===n&&(n="mouseup")),r.capture&&(delete r.capture,n=va("!",n,l)),r.once&&(delete r.once,n=va("~",n,l)),r.passive&&(delete r.passive,n=va("&",n,l)),r.native?(delete r.native,c=t.nativeEvents||(t.nativeEvents={})):c=t.events||(t.events={});var u=_a({value:i.trim(),dynamic:l},s);r!==e&&(u.modifiers=r);var h=c[n];Array.isArray(h)?a?h.unshift(u):h.push(u):c[n]=h?a?[u,h]:[h,u]:u,t.plain=!1}function ya(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function ba(e,t,n){var i=xa(e,":"+t)||xa(e,"v-bind:"+t);if(null!=i)return la(i);if(!1!==n){var r=xa(e,t);if(null!=r)return JSON.stringify(r)}}function xa(e,t,n){var i;if(null!=(i=e.attrsMap[t]))for(var r=e.attrsList,a=0,o=r.length;a<o;a++)if(r[a].name===t){r.splice(a,1);break}return n&&delete e.attrsMap[t],i}function wa(e,t){for(var n=e.attrsList,i=0,r=n.length;i<r;i++){var a=n[i];if(t.test(a.name))return n.splice(i,1),a}}function _a(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Ma(e,t,n){var i=n||{},r=i.number,a="$$v";i.trim&&(a="(typeof ".concat("$$v"," === 'string'")+"? ".concat("$$v",".trim()")+": ".concat("$$v",")")),r&&(a="_n(".concat(a,")"));var o=Ea(t,a);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat("$$v",") {").concat(o,"}")}}function Ea(e,t){var n=function(e){if(e=e.trim(),Qr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<Qr-1)return(na=e.lastIndexOf("."))>-1?{exp:e.slice(0,na),key:'"'+e.slice(na+1)+'"'}:{exp:e,key:null};ea=e,na=ia=ra=0;for(;!Sa();)Ca(ta=Ta())?La(ta):91===ta&&Aa(ta);return{exp:e.slice(0,ia),key:e.slice(ia+1,ra)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function Ta(){return ea.charCodeAt(++na)}function Sa(){return na>=Qr}function Ca(e){return 34===e||39===e}function Aa(e){var t=1;for(ia=na;!Sa();)if(Ca(e=Ta()))La(e);else if(91===e&&t++,93===e&&t--,0===t){ra=na;break}}function La(e){for(var t=e;!Sa()&&(e=Ta())!==t;);}var Pa,Oa="__r",Ra="__c";function Da(e,t,n){var i=Pa;return function r(){null!==t.apply(null,arguments)&&Na(e,r,n,i)}}var Ia=Fn&&!(ie&&Number(ie[1])<=53);function ka(e,t,n,i){if(Ia){var r=bn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Pa.addEventListener(e,t,ae?{capture:n,passive:i}:n)}function Na(e,t,n,i){(i||Pa).removeEventListener(e,t._wrapper||t,n)}function za(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Pa=t.elm||e.elm,function(e){if(a(e[Oa])){var t=K?"change":"input";e[t]=[].concat(e[Oa],e[t]||[]),delete e[Oa]}a(e[Ra])&&(e.change=[].concat(e[Ra],e.change||[]),delete e[Ra])}(n),pt(n,i,ka,Na,Da,t.context),Pa=void 0}}var Fa,Ba={create:za,update:za,destroy:function(e){return za(e,zr)}};function Ha(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,i,s=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(n in(a(c.__ob__)||o(c._v_attr_proxy))&&(c=t.data.domProps=R({},c)),l)n in c||(s[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===l[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=i;var u=r(i)?"":String(i);ja(s,u)&&(s.value=u)}else if("innerHTML"===n&&Cr(s.tagName)&&r(s.innerHTML)){(Fa=Fa||document.createElement("div")).innerHTML="<svg>".concat(i,"</svg>");for(var h=Fa.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;h.firstChild;)s.appendChild(h.firstChild)}else if(i!==l[n])try{s[n]=i}catch(e){}}}}function ja(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,i=e._vModifiers;if(a(i)){if(i.number)return g(n)!==g(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Ua={create:Ha,update:Ha},Ga=E(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var i=e.split(n);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t});function Va(e){var t=Wa(e.style);return e.staticStyle?R(e.staticStyle,t):t}function Wa(e){return Array.isArray(e)?D(e):"string"==typeof e?Ga(e):e}var $a,Ya=/^--/,qa=/\s*!important$/,Xa=function(e,t,n){if(Ya.test(t))e.style.setProperty(t,n);else if(qa.test(n))e.style.setProperty(L(t),n.replace(qa,""),"important");else{var i=Za(t);if(Array.isArray(n))for(var r=0,a=n.length;r<a;r++)e.style[i]=n[r];else e.style[i]=n}},Ja=["Webkit","Moz","ms"],Za=E(function(e){if($a=$a||document.createElement("div").style,"filter"!==(e=S(e))&&e in $a)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ja.length;n++){var i=Ja[n]+t;if(i in $a)return i}});function Ka(e,t){var n=t.data,i=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var o,s,l=t.elm,c=i.staticStyle,u=i.normalizedStyle||i.style||{},h=c||u,d=Wa(t.data.style)||{};t.data.normalizedStyle=a(d.__ob__)?R({},d):d;var p=function(e,t){var n,i={};if(t)for(var r=e;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=Va(r.data))&&R(i,n);(n=Va(e.data))&&R(i,n);for(var a=e;a=a.parent;)a.data&&(n=Va(a.data))&&R(i,n);return i}(t,!0);for(s in h)r(p[s])&&Xa(l,s,"");for(s in p)(o=p[s])!==h[s]&&Xa(l,s,null==o?"":o)}}var Qa={create:Ka,update:Ka},eo=/\s+/;function to(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(eo).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function no(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(eo).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),i=" "+t+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function io(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&R(t,ro(e.name||"v")),R(t,e),t}return"string"==typeof e?ro(e):void 0}}var ro=E(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),ao=J&&!Q,oo="transition",so="animation",lo="transition",co="transitionend",uo="animation",ho="animationend";ao&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(lo="WebkitTransition",co="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(uo="WebkitAnimation",ho="webkitAnimationEnd"));var po=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function fo(e){po(function(){po(e)})}function mo(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),to(e,t))}function vo(e,t){e._transitionClasses&&w(e._transitionClasses,t),no(e,t)}function go(e,t,n){var i=bo(e,t),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===oo?co:ho,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout(function(){l<o&&c()},a+1),e.addEventListener(s,u)}var yo=/\b(transform|all)(,|$)/;function bo(e,t){var n,i=window.getComputedStyle(e),r=(i[lo+"Delay"]||"").split(", "),a=(i[lo+"Duration"]||"").split(", "),o=xo(r,a),s=(i[uo+"Delay"]||"").split(", "),l=(i[uo+"Duration"]||"").split(", "),c=xo(s,l),u=0,h=0;return t===oo?o>0&&(n=oo,u=o,h=a.length):t===so?c>0&&(n=so,u=c,h=l.length):h=(n=(u=Math.max(o,c))>0?o>c?oo:so:null)?n===oo?a.length:l.length:0,{type:n,timeout:u,propCount:h,hasTransform:n===oo&&yo.test(i[lo+"Property"])}}function xo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return wo(t)+wo(e[n])}))}function wo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function _o(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=io(e.data.transition);if(!r(i)&&!a(n._enterCb)&&1===n.nodeType){for(var o=i.css,s=i.type,u=i.enterClass,h=i.enterToClass,d=i.enterActiveClass,p=i.appearClass,f=i.appearToClass,m=i.appearActiveClass,v=i.beforeEnter,y=i.enter,b=i.afterEnter,x=i.enterCancelled,w=i.beforeAppear,_=i.appear,M=i.afterAppear,E=i.appearCancelled,T=i.duration,S=an,C=an.$vnode;C&&C.parent;)S=C.context,C=C.parent;var A=!S._isMounted||!e.isRootInsert;if(!A||_||""===_){var L=A&&p?p:u,P=A&&m?m:d,O=A&&f?f:h,R=A&&w||v,D=A&&l(_)?_:y,I=A&&M||b,k=A&&E||x,N=g(c(T)?T.enter:T);null!=N&&Eo(N,"enter",e);var z=!1!==o&&!Q,F=So(D),H=n._enterCb=B(function(){z&&(vo(n,O),vo(n,P)),H.cancelled?(z&&vo(n,L),k&&k(n)):I&&I(n),n._enterCb=null});e.data.show||ft(e,"insert",function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),D&&D(n,H)}),R&&R(n),z&&(mo(n,L),mo(n,P),fo(function(){vo(n,L),H.cancelled||(mo(n,O),F||(To(N)?setTimeout(H,N):go(n,s,H)))})),e.data.show&&(t&&t(),D&&D(n,H)),z||F||H()}}}function Mo(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=io(e.data.transition);if(r(i)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var o=i.css,s=i.type,l=i.leaveClass,u=i.leaveToClass,h=i.leaveActiveClass,d=i.beforeLeave,p=i.leave,f=i.afterLeave,m=i.leaveCancelled,v=i.delayLeave,y=i.duration,b=!1!==o&&!Q,x=So(p),w=g(c(y)?y.leave:y);a(w)&&Eo(w,"leave",e);var _=n._leaveCb=B(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(vo(n,u),vo(n,h)),_.cancelled?(b&&vo(n,l),m&&m(n)):(t(),f&&f(n)),n._leaveCb=null});v?v(M):M()}function M(){_.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),b&&(mo(n,l),mo(n,h),fo(function(){vo(n,l),_.cancelled||(mo(n,u),x||(To(w)?setTimeout(_,w):go(n,s,_)))})),p&&p(n,_),b||x||_())}}function Eo(e,t,n){"number"!=typeof e?Ri("<transition> explicit ".concat(t," duration is not a valid number - ")+"got ".concat(JSON.stringify(e),"."),n.context):isNaN(e)&&Ri("<transition> explicit ".concat(t," duration is NaN - ")+"the duration expression might be incorrect.",n.context)}function To(e){return"number"==typeof e&&!isNaN(e)}function So(e){if(r(e))return!1;var t=e.fns;return a(t)?So(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Co(e,t){!0!==t.data.show&&_o(t)}var Ao=function(e){var t,n,l={},c=e.modules,u=e.nodeOps;for(t=0;t<Fr.length;++t)for(l[Fr[t]]=[],n=0;n<c.length;++n)a(c[n][Fr[t]])&&l[Fr[t]].push(c[n][Fr[t]]);function h(e){var t=u.parentNode(e);a(t)&&u.removeChild(t,e)}function d(e,t){return!t&&!e.ns&&!(V.ignoredElements.length&&V.ignoredElements.some(function(t){return p(t)?t.test(e.tag):t===e.tag}))&&V.isUnknownElement(e.tag)}var f=0;function m(e,t,n,i,r,s,c){if(a(e.elm)&&a(s)&&(e=s[c]=ye(e)),e.isRootInsert=!r,!function(e,t,n,i){var r=e.data;if(a(r)){var s=a(e.componentInstance)&&r.keepAlive;if(a(r=r.hook)&&a(r=r.init)&&r(e,!1),a(e.componentInstance))return v(e,t),g(n,e.elm,i),o(s)&&function(e,t,n,i){for(var r,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,a(r=o.data)&&a(r=r.transition)){for(r=0;r<l.activate.length;++r)l.activate[r](zr,o);t.push(o);break}g(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var h=e.data,p=e.children,m=e.tag;a(m)?(h&&h.pre&&f++,d(e,f)&&Ri("Unknown custom element: <"+m+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context),e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),_(e),b(e,p,t),a(h)&&w(e,t),g(n,e.elm,i),h&&h.pre&&f--):o(e.isComment)?(e.elm=u.createComment(e.text),g(n,e.elm,i)):(e.elm=u.createTextNode(e.text),g(n,e.elm,i))}}function v(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,x(e)?(w(e,t),_(e)):(kr(e),t.push(e))}function g(e,t,n){a(e)&&(a(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function b(e,t,n){if(i(t)){C(t);for(var r=0;r<t.length;++r)m(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function x(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return a(e.tag)}function w(e,n){for(var i=0;i<l.create.length;++i)l.create[i](zr,e);a(t=e.data.hook)&&(a(t.create)&&t.create(zr,e),a(t.insert)&&n.push(e))}function _(e){var t;if(a(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)a(t=n.context)&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;a(t=an)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function M(e,t,n,i,r,a){for(;i<=r;++i)m(n[i],a,e,t,!1,n,i)}function E(e){var t,n,i=e.data;if(a(i))for(a(t=i.hook)&&a(t=t.destroy)&&t(e),t=0;t<l.destroy.length;++t)l.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)E(e.children[n])}function T(e,t,n){for(;t<=n;++t){var i=e[t];a(i)&&(a(i.tag)?(S(i),E(i)):h(i.elm))}}function S(e,t){if(a(t)||a(e.data)){var n,i=l.remove.length+1;for(a(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&h(e)}return n.listeners=t,n}(e.elm,i),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&S(n,t),n=0;n<l.remove.length;++n)l.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else h(e.elm)}function C(e){for(var t={},n=0;n<e.length;n++){var i=e[n],r=i.key;a(r)&&(t[r]?Ri("Duplicate keys detected: '".concat(r,"'. This may cause an update error."),i.context):t[r]=!0)}}function A(e,t,n,i){for(var r=n;r<i;r++){var o=t[r];if(a(o)&&Br(e,o))return r}}function L(e,t,n,i,s,c){if(e!==t){a(t.elm)&&a(i)&&(t=i[s]=ye(t));var h=t.elm=e.elm;if(o(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?D(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,p=t.data;a(p)&&a(d=p.hook)&&a(d=d.prepatch)&&d(e,t);var f=e.children,v=t.children;if(a(p)&&x(t)){for(d=0;d<l.update.length;++d)l.update[d](e,t);a(d=p.hook)&&a(d=d.update)&&d(e,t)}r(t.text)?a(f)&&a(v)?f!==v&&function(e,t,n,i,o){var s,l,c,h=0,d=0,p=t.length-1,f=t[0],v=t[p],g=n.length-1,y=n[0],b=n[g],x=!o;for(C(n);h<=p&&d<=g;)r(f)?f=t[++h]:r(v)?v=t[--p]:Br(f,y)?(L(f,y,i,n,d),f=t[++h],y=n[++d]):Br(v,b)?(L(v,b,i,n,g),v=t[--p],b=n[--g]):Br(f,b)?(L(f,b,i,n,g),x&&u.insertBefore(e,f.elm,u.nextSibling(v.elm)),f=t[++h],b=n[--g]):Br(v,y)?(L(v,y,i,n,d),x&&u.insertBefore(e,v.elm,f.elm),v=t[--p],y=n[++d]):(r(s)&&(s=Hr(t,h,p)),r(l=a(y.key)?s[y.key]:A(y,t,h,p))?m(y,i,e,f.elm,!1,n,d):Br(c=t[l],y)?(L(c,y,i,n,d),t[l]=void 0,x&&u.insertBefore(e,c.elm,f.elm)):m(y,i,e,f.elm,!1,n,d),y=n[++d]);h>p?M(e,r(n[g+1])?null:n[g+1].elm,n,d,g,i):d>g&&T(t,h,p)}(h,f,v,n,c):a(v)?(C(v),a(e.text)&&u.setTextContent(h,""),M(h,null,v,0,v.length-1,n)):a(f)?T(f,0,f.length-1):a(e.text)&&u.setTextContent(h,""):e.text!==t.text&&u.setTextContent(h,t.text),a(p)&&a(d=p.hook)&&a(d=d.postpatch)&&d(e,t)}}}function P(e,t,n){if(o(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var O=!1,R=y("attrs,class,staticClass,staticStyle,key");function D(e,t,n,i){var r,s=t.tag,l=t.data,c=t.children;if(i=i||l&&l.pre,t.elm=e,o(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(!function(e,t,n){return a(t.tag)?0===t.tag.indexOf("vue-component")||!d(t,n)&&t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):e.nodeType===(t.isComment?8:3)}(e,t,i))return!1;if(a(l)&&(a(r=l.hook)&&a(r=r.init)&&r(t,!0),a(r=t.componentInstance)))return v(t,n),!0;if(a(s)){if(a(c))if(e.hasChildNodes())if(a(r=l)&&a(r=r.domProps)&&a(r=r.innerHTML)){if(r!==e.innerHTML)return"undefined"==typeof console||O||(O=!0,console.warn("Parent: ",e),console.warn("server innerHTML: ",r),console.warn("client innerHTML: ",e.innerHTML)),!1}else{for(var u=!0,h=e.firstChild,p=0;p<c.length;p++){if(!h||!D(h,c[p],n,i)){u=!1;break}h=h.nextSibling}if(!u||h)return"undefined"==typeof console||O||(O=!0,console.warn("Parent: ",e),console.warn("Mismatching childNodes vs. VNodes: ",e.childNodes,c)),!1}else b(t,c,n);if(a(l)){var f=!1;for(var m in l)if(!R(m)){f=!0,w(t,n);break}!f&&l.class&&li(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!r(t)){var s,c=!1,h=[];if(r(e))c=!0,m(t,h);else{var d=a(e.nodeType);if(!d&&Br(e,t))L(e,t,h,null,null,i);else{if(d){if(1===e.nodeType&&e.hasAttribute(j)&&(e.removeAttribute(j),n=!0),o(n)){if(D(e,t,h))return P(t,h,!0),e;Ri("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}s=e,e=new me(u.tagName(s).toLowerCase(),{},[],void 0,s)}var p=e.elm,f=u.parentNode(p);if(m(t,h,p._leaveCb?null:f,u.nextSibling(p)),a(t.parent))for(var v=t.parent,g=x(t);v;){for(var y=0;y<l.destroy.length;++y)l.destroy[y](v);if(v.elm=t.elm,g){for(var b=0;b<l.create.length;++b)l.create[b](zr,v);var w=v.data.hook.insert;if(w.merged)for(var _=w.fns.slice(1),M=0;M<_.length;M++)_[M]()}else kr(v);v=v.parent}a(f)?T([e],0,0):a(e.tag)&&E(e)}}return P(t,h,c),t.elm}a(e)&&E(e)}}({nodeOps:Dr,modules:[Zr,oa,Ba,Ua,Qa,J?{create:Co,activate:Co,remove:function(e,t){!0!==e.data.show?Mo(e,t):t()}}:{}].concat(Yr)});Q&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&No(e,"input")});var Lo={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?ft(n,"postpatch",function(){Lo.componentUpdated(e,t,n)}):Po(e,t,n.context),e._vOptions=[].map.call(e.options,Do)):("textarea"===n.tag||Or(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Io),e.addEventListener("compositionend",ko),e.addEventListener("change",ko),Q&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Po(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Do);if(r.some(function(e,t){return!z(e,i[t])}))(e.multiple?t.value.some(function(e){return Ro(e,r)}):t.value!==t.oldValue&&Ro(t.value,r))&&No(e,"change")}}};function Po(e,t,n){Oo(e,t,n),(K||ee)&&setTimeout(function(){Oo(e,t,n)},0)}function Oo(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],r)a=F(i,Do(o))>-1,o.selected!==a&&(o.selected=a);else if(z(Do(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}else Ri('<select multiple v-model="'.concat(t.expression,'"> ')+"expects an Array value for its binding, but got ".concat(Object.prototype.toString.call(i).slice(8,-1)),n)}function Ro(e,t){return t.every(function(t){return!z(t,e)})}function Do(e){return"_value"in e?e._value:e.value}function Io(e){e.target.composing=!0}function ko(e){e.target.composing&&(e.target.composing=!1,No(e.target,"input"))}function No(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function zo(e){return!e.componentInstance||e.data&&e.data.transition?e:zo(e.componentInstance._vnode)}var Fo={model:Lo,show:{bind:function(e,t,n){var i=t.value,r=(n=zo(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,_o(n,function(){e.style.display=a})):e.style.display=i?a:"none"},update:function(e,t,n){var i=t.value;!i!=!t.oldValue&&((n=zo(n)).data&&n.data.transition?(n.data.show=!0,i?_o(n,function(){e.style.display=e.__vOriginalDisplay}):Mo(n,function(){e.style.display="none"})):e.style.display=i?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}}},Bo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ho(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ho(Zt(t.children)):e}function jo(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var i in r)t[S(i)]=r[i];return t}function Uo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Go=function(e){return e.tag||Ft(e)},Vo=function(e){return"show"===e.name},Wo={name:"transition",props:Bo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Go)).length){n.length>1&&Ri("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var i=this.mode;i&&"in-out"!==i&&"out-in"!==i&&Ri("invalid <transition> mode: "+i,this.$parent);var r=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var a=Ho(r);if(!a)return r;if(this._leaving)return Uo(e,r);var o="__transition-".concat(this._uid,"-");a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=jo(this),c=this._vnode,u=Ho(c);if(a.data.directives&&a.data.directives.some(Vo)&&(a.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,u)&&!Ft(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=R({},l);if("out-in"===i)return this._leaving=!0,ft(h,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Uo(e,r);if("in-out"===i){if(Ft(a))return c;var d,p=function(){d()};ft(l,"afterEnter",p),ft(l,"enterCancelled",p),ft(h,"delayLeave",function(e){d=e})}}return r}}},$o=R({tag:String,moveClass:String},Bo);function Yo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function qo(e){e.data.newPos=e.elm.getBoundingClientRect()}function Xo(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate(".concat(i,"px,").concat(r,"px)"),a.transitionDuration="0s"}}delete $o.mode;var Jo={Transition:Wo,TransitionGroup:{props:$o,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=sn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=jo(this),s=0;s<r.length;s++){if((d=r[s]).tag)if(null!=d.key&&0!==String(d.key).indexOf("__vlist"))a.push(d),n[d.key]=d,(d.data||(d.data={})).transition=o;else{var l=d.componentOptions,c=l?Ti(l.Ctor.options)||l.tag||"":d.tag;Ri("<transition-group> children must be keyed: <".concat(c,">"))}}if(i){var u=[],h=[];for(s=0;s<i.length;s++){var d;(d=i[s]).data.transition=o,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):h.push(d)}this.kept=e(t,null,u),this.removed=h}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Yo),e.forEach(qo),e.forEach(Xo),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,i=n.style;mo(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(co,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(co,e),n._moveCb=null,vo(n,t))})}}))},methods:{hasMove:function(e,t){if(!ao)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){no(n,e)}),to(n,t),n.style.display="none",this.$el.appendChild(n);var i=bo(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};nr.config.mustUseProp=dr,nr.config.isReservedTag=Ar,nr.config.isReservedAttr=ur,nr.config.getTagNamespace=Lr,nr.config.isUnknownElement=function(e){if(!J)return!0;if(Ar(e))return!1;if(e=e.toLowerCase(),null!=Pr[e])return Pr[e];var t=document.createElement(e);return e.indexOf("-")>-1?Pr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Pr[e]=/HTMLUnknownElement/.test(t.toString())},R(nr.options.directives,Fo),R(nr.options.components,Jo),nr.prototype.__patch__=J?Ao:I,nr.prototype.$mount=function(e,t){return function(e,t,n){var i;e.$el=t,e.$options.render||(e.$options.render=ve,e.$options.template&&"#"!==e.$options.template.charAt(0)||e.$options.el||t?Ri("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):Ri("Failed to mount component: template or render function not defined.",e)),un(e,"beforeMount"),i=V.performance&&it?function(){var t=e._name,i=e._uid,r="vue-perf-start:".concat(i),a="vue-perf-end:".concat(i);it(r);var o=e._render();it(a),rt("vue ".concat(t," render"),r,a),it(r),e._update(o,n),it(a),rt("vue ".concat(t," patch"),r,a)}:function(){e._update(e._render(),n)};var r={before:function(){e._isMounted&&!e._isDestroyed&&un(e,"beforeUpdate")},onTrack:function(t){return un(e,"renderTracked",[t])},onTrigger:function(t){return un(e,"renderTriggered",[t])}};new ui(e,i,I,r,!0),n=!1;var a=e._preWatchers;if(a)for(var o=0;o<a.length;o++)a[o].run();return null==e.$vnode&&(e._isMounted=!0,un(e,"mounted")),e}(this,e=e&&J?Rr(e):void 0,t)},J&&setTimeout(function(){V.devtools&&(le?le.emit("init",nr):console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")),!1!==V.productionTip&&"undefined"!=typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html")},0);var Zo=/\{\{((?:.|\r?\n)+?)\}\}/g,Ko=/[-.*+?^${}()|[\]\/\\]/g,Qo=E(function(e){var t=e[0].replace(Ko,"\\$&"),n=e[1].replace(Ko,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function es(e,t){var n=t?Qo(t):Zo;if(n.test(e)){for(var i,r,a,o=[],s=[],l=n.lastIndex=0;i=n.exec(e);){(r=i.index)>l&&(s.push(a=e.slice(l,r)),o.push(JSON.stringify(a)));var c=la(i[1].trim());o.push("_s(".concat(c,")")),s.push({"@binding":c}),l=r+i[0].length}return l<e.length&&(s.push(a=e.slice(l)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}var ts={staticKeys:["staticClass"],transformNode:function(e,t){var n=t.warn||ua,i=xa(e,"class");i&&es(i,t.delimiters)&&n('class="'.concat(i,'": ')+'Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.',e.rawAttrsMap.class),i&&(e.staticClass=JSON.stringify(i.replace(/\s+/g," ").trim()));var r=ba(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:".concat(e.staticClass,",")),e.classBinding&&(t+="class:".concat(e.classBinding,",")),t}};var ns,is={staticKeys:["staticStyle"],transformNode:function(e,t){var n=t.warn||ua,i=xa(e,"style");i&&(es(i,t.delimiters)&&n('style="'.concat(i,'": ')+'Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style="{{ val }}">, use <div :style="val">.',e.rawAttrsMap.style),e.staticStyle=JSON.stringify(Ga(i)));var r=ba(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}},rs=function(e){return(ns=ns||document.createElement("div")).innerHTML=e,ns.textContent},as=y("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),os=y("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ss=y("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ls=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,cs=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,us="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(W.source,"]*"),hs="((?:".concat(us,"\\:)?").concat(us,")"),ds=new RegExp("^<".concat(hs)),ps=/^\s*(\/?)>/,fs=new RegExp("^<\\/".concat(hs,"[^>]*>")),ms=/^<!DOCTYPE [^>]+>/i,vs=/^<!\--/,gs=/^<!\[/,ys=y("script,style,textarea",!0),bs={},xs={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},ws=/&(?:lt|gt|quot|amp|#39);/g,_s=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ms=y("pre,textarea",!0),Es=function(e,t){return e&&Ms(e)&&"\n"===t[0]};function Ts(e,t){var n=t?_s:ws;return e.replace(n,function(e){return xs[e]})}function Ss(e,t){for(var n,i,r=[],a=t.expectHTML,o=t.isUnaryTag||k,s=t.canBeLeftOpenTag||k,l=0,c=function(){if(n=e,i&&ys(i)){var c=0,d=i.toLowerCase(),p=bs[d]||(bs[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i"));_=e.replace(p,function(e,n,i){return c=i.length,ys(d)||"noscript"===d||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Es(d,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-_.length,e=_,h(d,l-c,l)}else{var f=e.indexOf("<");if(0===f){if(vs.test(e)){var m=e.indexOf("--\x3e");if(m>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,m),l,l+m+3),u(m+3),"continue"}if(gs.test(e)){var v=e.indexOf("]>");if(v>=0)return u(v+2),"continue"}var g=e.match(ms);if(g)return u(g[0].length),"continue";var y=e.match(fs);if(y){var b=l;return u(y[0].length),h(y[1],b,l),"continue"}var x=function(){var t=e.match(ds);if(t){var n={tagName:t[1],attrs:[],start:l};u(t[0].length);for(var i=void 0,r=void 0;!(i=e.match(ps))&&(r=e.match(cs)||e.match(ls));)r.start=l,u(r[0].length),r.end=l,n.attrs.push(r);if(i)return n.unarySlash=i[1],u(i[0].length),n.end=l,n}}();if(x)return function(e){var n=e.tagName,l=e.unarySlash;a&&("p"===i&&ss(n)&&h(i),s(n)&&i===n&&h(n));for(var c=o(n)||!!l,u=e.attrs.length,d=new Array(u),p=0;p<u;p++){var f=e.attrs[p],m=f[3]||f[4]||f[5]||"",v="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[p]={name:f[1],value:Ts(m,v)},t.outputSourceRange&&(d[p].start=f.start+f[0].match(/^\s*/).length,d[p].end=f.end)}c||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),i=n);t.start&&t.start(n,d,c,e.start,e.end)}(x),Es(x.tagName,e)&&u(1),"continue"}var w=void 0,_=void 0,M=void 0;if(f>=0){for(_=e.slice(f);!(fs.test(_)||ds.test(_)||vs.test(_)||gs.test(_)||(M=_.indexOf("<",1))<0);)f+=M,_=e.slice(f);w=e.substring(0,f)}f<0&&(w=e),w&&u(w.length),t.chars&&w&&t.chars(w,l-w.length,l)}if(e===n)return t.chars&&t.chars(e),!r.length&&t.warn&&t.warn('Mal-formatted tag at end of template: "'.concat(e,'"'),{start:l+e.length}),"break"};e;){if("break"===c())break}function u(t){l+=t,e=e.substring(t)}function h(e,n,a){var o,s;if(null==n&&(n=l),null==a&&(a=l),e)for(s=e.toLowerCase(),o=r.length-1;o>=0&&r[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=r.length-1;c>=o;c--)(c>o||!e)&&t.warn&&t.warn("tag <".concat(r[c].tag,"> has no matching end tag."),{start:r[c].start,end:r[c].end}),t.end&&t.end(r[c].tag,n,a);r.length=o,i=o&&r[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}h()}var Cs,As,Ls,Ps,Os,Rs,Ds,Is,ks,Ns=/^@|^v-on:/,zs=/^v-|^@|^:|^#/,Fs=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Bs=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Hs=/^\(|\)$/g,js=/^\[.*\]$/,Us=/:(.*)$/,Gs=/^:|^\.|^v-bind:/,Vs=/\.[^.\]]+(?=[^\]]*$)/g,Ws=/^v-slot(:|$)|^#/,$s=/[\r\n]/,Ys=/[ \f\t\r\n]+/g,qs=/[\s"'<>\/=]/,Xs=E(rs),Js="_empty_";function Zs(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,i=e.length;n<i;n++)!t[e[n].name]||K||ee||Cs("duplicate attribute: "+e[n].name,e[n]),t[e[n].name]=e[n].value;return t}(t),rawAttrsMap:{},parent:n,children:[]}}function Ks(e,t){Cs=t.warn||ua,Rs=t.isPreTag||k,Ds=t.mustUseProp||k,Is=t.getTagNamespace||k;var n=t.isReservedTag||k;ks=function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))},Ls=ha(t.modules,"transformNode"),Ps=ha(t.modules,"preTransformNode"),Os=ha(t.modules,"postTransformNode"),As=t.delimiters;var i,r,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1,u=!1;function h(e,t){u||(u=!0,Cs(e,t))}function d(e){if(p(e),l||e.processed||(e=Qs(e,t)),a.length||e===i||(i.if&&(e.elseif||e.else)?(f(e),tl(i,{exp:e.elseif,block:e})):h("Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.",{start:e.start})),r&&!e.forbidden)if(e.elseif||e.else)o=e,(s=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];" "!==e[t].text&&Cs('text "'.concat(e[t].text.trim(),'" between v-if and v-else(-if) ')+"will be ignored.",e[t]),e.pop()}}(r.children))&&s.if?tl(s,{exp:o.elseif,block:o}):Cs("v-".concat(o.elseif?'else-if="'+o.elseif+'"':"else"," ")+"used on element <".concat(o.tag,"> without corresponding v-if."),o.rawAttrsMap[o.elseif?"v-else-if":"v-else"]);else{if(e.slotScope){var n=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=e}r.children.push(e),e.parent=r}var o,s;e.children=e.children.filter(function(e){return!e.slotScope}),p(e),e.pre&&(l=!1),Rs(e.tag)&&(c=!1);for(var u=0;u<Os.length;u++)Os[u](e,t)}function p(e){if(!c)for(var t=void 0;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}function f(e){"slot"!==e.tag&&"template"!==e.tag||h("Cannot use <".concat(e.tag,"> as component root element because it may ")+"contain multiple nodes.",{start:e.start}),e.attrsMap.hasOwnProperty("v-for")&&h("Cannot use v-for on stateful component root element because it renders multiple elements.",e.rawAttrsMap["v-for"])}return Ss(e,{warn:Cs,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,u){var h=r&&r.ns||Is(e);K&&"svg"===h&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];rl.test(i.name)||(i.name=i.name.replace(al,""),t.push(i))}return t}(n));var p,m=Zs(e,n,r);h&&(m.ns=h),t.outputSourceRange&&(m.start=s,m.end=u,m.rawAttrsMap=m.attrsList.reduce(function(e,t){return e[t.name]=t,e},{})),n.forEach(function(e){qs.test(e.name)&&Cs("Invalid dynamic argument expression: attribute names cannot contain spaces, quotes, <, >, / or =.",t.outputSourceRange?{start:e.start+e.name.indexOf("["),end:e.start+e.name.length}:void 0)}),"style"!==(p=m).tag&&("script"!==p.tag||p.attrsMap.type&&"text/javascript"!==p.attrsMap.type)||se()||(m.forbidden=!0,Cs("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as "+"<".concat(e,">")+", as they will not be parsed.",{start:m.start}));for(var v=0;v<Ps.length;v++)m=Ps[v](m,t)||m;l||(!function(e){null!=xa(e,"v-pre")&&(e.pre=!0)}(m),m.pre&&(l=!0)),Rs(m.tag)&&(c=!0),l?function(e){var t=e.attrsList,n=t.length;if(n)for(var i=e.attrs=new Array(n),r=0;r<n;r++)i[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(i[r].start=t[r].start,i[r].end=t[r].end);else e.pre||(e.plain=!0)}(m):m.processed||(el(m),function(e){var t=xa(e,"v-if");if(t)e.if=t,tl(e,{exp:t,block:e});else{null!=xa(e,"v-else")&&(e.else=!0);var n=xa(e,"v-else-if");n&&(e.elseif=n)}}(m),function(e){null!=xa(e,"v-once")&&(e.once=!0)}(m)),i||f(i=m),o?d(m):(r=m,a.push(m))},end:function(e,n,i){var o=a[a.length-1];a.length-=1,r=a[a.length-1],t.outputSourceRange&&(o.end=i),d(o)},chars:function(n,i,a){if(r){if(!K||"textarea"!==r.tag||r.attrsMap.placeholder!==n){var u,d=r.children;if(n=c||n.trim()?"script"===(u=r).tag||"style"===u.tag?n:Xs(n):d.length?s?"condense"===s&&$s.test(n)?"":" ":o?" ":"":""){c||"condense"!==s||(n=n.replace(Ys," "));var p=void 0,f=void 0;!l&&" "!==n&&(p=es(n,As))?f={type:2,expression:p.expression,tokens:p.tokens,text:n}:" "===n&&d.length&&" "===d[d.length-1].text||(f={type:3,text:n}),f&&(t.outputSourceRange&&(f.start=i,f.end=a),d.push(f))}}}else n===e?h("Component template requires a root element, rather than just text.",{start:i}):(n=n.trim())&&h('text "'.concat(n,'" outside root element will be ignored.'),{start:i})},comment:function(e,n,i){if(r){var a={type:3,text:e,isComment:!0};t.outputSourceRange&&(a.start=n,a.end=i),r.children.push(a)}}}),i}function Qs(e,t){var n,i;!function(e){var t=ba(e,"key");if(t){if("template"===e.tag&&Cs("<template> cannot be keyed. Place the key on real elements instead.",ya(e,"key")),e.for){var n=e.iterator2||e.iterator1,i=e.parent;n&&n===t&&i&&"transition-group"===i.tag&&Cs("Do not use v-for index as key on <transition-group> children, this is the same as not using keys.",ya(e,"key"),!0)}e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,(i=ba(n=e,"ref"))&&(n.ref=i,n.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(n)),function(e){var t;"template"===e.tag?((t=xa(e,"scope"))&&Cs('the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The new "slot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.',e.rawAttrsMap.scope,!0),e.slotScope=t||xa(e,"slot-scope")):(t=xa(e,"slot-scope"))&&(e.attrsMap["v-for"]&&Cs("Ambiguous combined usage of slot-scope and v-for on <".concat(e.tag,"> ")+"(v-for takes higher priority). Use a wrapper <template> for the scoped slot to make it clearer.",e.rawAttrsMap["slot-scope"],!0),e.slotScope=t);var n=ba(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||pa(e,"slot",n,ya(e,"slot")));if("template"===e.tag){var i=wa(e,Ws);if(i){(e.slotTarget||e.slotScope)&&Cs("Unexpected mixed usage of different slot syntaxes.",e),e.parent&&!ks(e.parent)&&Cs("<template v-slot> can only appear at the root level inside the receiving component",e);var r=nl(i),a=r.name,o=r.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=i.value||Js}}else{var i=wa(e,Ws);if(i){ks(e)||Cs("v-slot can only be used on components or <template>.",i),(e.slotScope||e.slotTarget)&&Cs("Unexpected mixed usage of different slot syntaxes.",e),e.scopedSlots&&Cs("To avoid scope ambiguity, the default slot should also use <template> syntax when there are other named slots.",i);var s=e.scopedSlots||(e.scopedSlots={}),l=nl(i),c=l.name,o=l.dynamic,u=s[c]=Zs("template",[],e);u.slotTarget=c,u.slotTargetDynamic=o,u.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=u,!0}),u.slotScope=i.value||Js,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=ba(e,"name"),e.key&&Cs("`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.",ya(e,"key")))}(e),function(e){var t;(t=ba(e,"is"))&&(e.component=t);null!=xa(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<Ls.length;r++)e=Ls[r](e,t)||e;return function(e){var t,n,i,r,a,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++)if(i=r=c[t].name,a=c[t].value,zs.test(i))if(e.hasBindings=!0,(o=il(i.replace(zs,"")))&&(i=i.replace(Vs,"")),Gs.test(i))i=i.replace(Gs,""),a=la(a),(l=js.test(i))&&(i=i.slice(1,-1)),0===a.trim().length&&Cs('The value for a v-bind expression cannot be empty. Found in "v-bind:'.concat(i,'"')),o&&(o.prop&&!l&&"innerHtml"===(i=S(i))&&(i="innerHTML"),o.camel&&!l&&(i=S(i)),o.sync&&(s=Ea(a,"$event"),l?ga(e,'"update:"+('.concat(i,")"),s,null,!1,Cs,c[t],!0):(ga(e,"update:".concat(S(i)),s,null,!1,Cs,c[t]),L(i)!==S(i)&&ga(e,"update:".concat(L(i)),s,null,!1,Cs,c[t])))),o&&o.prop||!e.component&&Ds(e.tag,e.attrsMap.type,i)?da(e,i,a,c[t],l):pa(e,i,a,c[t],l);else if(Ns.test(i))i=i.replace(Ns,""),(l=js.test(i))&&(i=i.slice(1,-1)),ga(e,i,a,o,!1,Cs,c[t],l);else{var u=(i=i.replace(zs,"")).match(Us),h=u&&u[1];l=!1,h&&(i=i.slice(0,-(h.length+1)),js.test(h)&&(h=h.slice(1,-1),l=!0)),ma(e,i,r,a,h,l,o,c[t]),"model"===i&&ol(e,a)}else{var d=es(a,As);d&&Cs("".concat(i,'="').concat(a,'": ')+'Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.',c[t]),pa(e,i,JSON.stringify(a),c[t]),!e.component&&"muted"===i&&Ds(e.tag,e.attrsMap.type,i)&&da(e,i,"true",c[t])}}(e),e}function el(e){var t;if(t=xa(e,"v-for")){var n=function(e){var t=e.match(Fs);if(!t)return;var n={};n.for=t[2].trim();var i=t[1].trim().replace(Hs,""),r=i.match(Bs);r?(n.alias=i.replace(Bs,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i;return n}(t);n?R(e,n):Cs("Invalid v-for expression: ".concat(t),e.rawAttrsMap["v-for"])}}function tl(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function nl(e){var t=e.name.replace(Ws,"");return t||("#"!==e.name[0]?t="default":Cs("v-slot shorthand syntax requires a slot name.",e)),js.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'.concat(t,'"'),dynamic:!1}}function il(e){var t=e.match(Vs);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}var rl=/^xmlns:NS\d+/,al=/^NS\d+:/;function ol(e,t){for(var n=e;n;)n.for&&n.alias===t&&Cs("<".concat(e.tag,' v-model="').concat(t,'">: ')+"You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.",e.rawAttrsMap["v-model"]),n=n.parent}function sl(e){return Zs(e.tag,e.attrsList.slice(),e.parent)}var ll=[ts,is,{preTransformNode:function(e,t){if("input"===e.tag){var n=e.attrsMap;if(!n["v-model"])return;var i=void 0;if((n[":type"]||n["v-bind:type"])&&(i=ba(e,"type")),n.type||i||!n["v-bind"]||(i="(".concat(n["v-bind"],").type")),i){var r=xa(e,"v-if",!0),a=r?"&&(".concat(r,")"):"",o=null!=xa(e,"v-else",!0),s=xa(e,"v-else-if",!0),l=sl(e);el(l),fa(l,"type","checkbox"),Qs(l,t),l.processed=!0,l.if="(".concat(i,")==='checkbox'")+a,tl(l,{exp:l.if,block:l});var c=sl(e);xa(c,"v-for",!0),fa(c,"type","radio"),Qs(c,t),tl(l,{exp:"(".concat(i,")==='radio'")+a,block:c});var u=sl(e);return xa(u,"v-for",!0),fa(u,":type",i),Qs(u,t),tl(l,{exp:r,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}}];var cl,ul,hl={expectHTML:!0,modules:ll,directives:{model:function(e,t,n){aa=n;var i=t.value,r=t.modifiers,a=e.tag,o=e.attrsMap.type;if("input"===a&&"file"===o&&aa("<".concat(e.tag,' v-model="').concat(i,'" type="file">:\n')+"File inputs are read only. Use a v-on:change listener instead.",e.rawAttrsMap["v-model"]),e.component)return Ma(e,i,r),!1;if("select"===a)!function(e,t,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(i?"_n(val)":"val","})"),a="var $$selectedVal = ".concat(r,";");a="".concat(a," ").concat(Ea(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")),ga(e,"change",a,null,!0)}(e,i,r);else if("input"===a&&"checkbox"===o)!function(e,t,n){var i=n&&n.number,r=ba(e,"value")||"null",a=ba(e,"true-value")||"true",o=ba(e,"false-value")||"false";da(e,"checked","Array.isArray(".concat(t,")")+"?_i(".concat(t,",").concat(r,")>-1")+("true"===a?":(".concat(t,")"):":_q(".concat(t,",").concat(a,")"))),ga(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(a,"):(").concat(o,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(i?"_n("+r+")":r,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Ea(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Ea(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Ea(t,"$$c"),"}"),null,!0)}(e,i,r);else if("input"===a&&"radio"===o)!function(e,t,n){var i=n&&n.number,r=ba(e,"value")||"null";r=i?"_n(".concat(r,")"):r,da(e,"checked","_q(".concat(t,",").concat(r,")")),ga(e,"change",Ea(t,r),null,!0)}(e,i,r);else if("input"===a||"textarea"===a)!function(e,t,n){var i=e.attrsMap.type,r=e.attrsMap["v-bind:value"]||e.attrsMap[":value"],a=e.attrsMap["v-bind:type"]||e.attrsMap[":type"];if(r&&!a){var o=e.attrsMap["v-bind:value"]?"v-bind:value":":value";aa("".concat(o,'="').concat(r,'" conflicts with v-model on the same element ')+"because the latter already expands to a value binding internally",e.rawAttrsMap[o])}var s=n||{},l=s.lazy,c=s.number,u=s.trim,h=!l&&"range"!==i,d=l?"change":"range"===i?Oa:"input",p="$event.target.value";u&&(p="$event.target.value.trim()"),c&&(p="_n(".concat(p,")"));var f=Ea(t,p);h&&(f="if($event.target.composing)return;".concat(f)),da(e,"value","(".concat(t,")")),ga(e,d,f,null,!0),(u||c)&&ga(e,"blur","$forceUpdate()")}(e,i,r);else{if(!V.isReservedTag(a))return Ma(e,i,r),!1;aa("<".concat(e.tag,' v-model="').concat(i,'">: ')+"v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.",e.rawAttrsMap["v-model"])}return!0},text:function(e,t){t.value&&da(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&da(e,"innerHTML","_s(".concat(t.value,")"),t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:as,mustUseProp:dr,canBeLeftOpenTag:os,isReservedTag:Ar,getTagNamespace:Lr,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ll)},dl=E(function(e){return y("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function pl(e,t){e&&(cl=dl(t.staticKeys||""),ul=t.isReservedTag||k,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||b(e.tag)||!ul(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(cl)))}(t);if(1===t.type){if(!ul(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,i=t.children.length;n<i;n++){var r=t.children[n];e(r),r.static||(t.static=!1)}if(t.ifConditions)for(var n=1,i=t.ifConditions.length;n<i;n++){var a=t.ifConditions[n].block;e(a),a.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var i=0,r=t.children.length;i<r;i++)e(t.children[i],n||!!t.for);if(t.ifConditions)for(var i=1,r=t.ifConditions.length;i<r;i++)e(t.ifConditions[i].block,n)}}(e,!1))}var fl=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ml=/\([^)]*?\);*$/,vl=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,gl={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},yl={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},bl=function(e){return"if(".concat(e,")return null;")},xl={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:bl("$event.target !== $event.currentTarget"),ctrl:bl("!$event.ctrlKey"),shift:bl("!$event.shiftKey"),alt:bl("!$event.altKey"),meta:bl("!$event.metaKey"),left:bl("'button' in $event && $event.button !== 0"),middle:bl("'button' in $event && $event.button !== 1"),right:bl("'button' in $event && $event.button !== 2")};function wl(e,t){var n=t?"nativeOn:":"on:",i="",r="";for(var a in e){var o=_l(e[a]);e[a]&&e[a].dynamic?r+="".concat(a,",").concat(o,","):i+='"'.concat(a,'":').concat(o,",")}return i="{".concat(i.slice(0,-1),"}"),r?n+"_d(".concat(i,",[").concat(r.slice(0,-1),"])"):n+i}function _l(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map(function(e){return _l(e)}).join(","),"]");var t=vl.test(e.value),n=fl.test(e.value),i=vl.test(e.value.replace(ml,""));if(e.modifiers){var r="",a="",o=[],s=function(t){if(xl[t])a+=xl[t],gl[t]&&o.push(t);else if("exact"===t){var n=e.modifiers;a+=bl(["ctrl","shift","alt","meta"].filter(function(e){return!n[e]}).map(function(e){return"$event.".concat(e,"Key")}).join("||"))}else o.push(t)};for(var l in e.modifiers)s(l);o.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(Ml).join("&&"),")return null;")}(o)),a&&(r+=a);var c=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):i?"return ".concat(e.value):e.value;return"function($event){".concat(r).concat(c,"}")}return t||n?e.value:"function($event){".concat(i?"return ".concat(e.value):e.value,"}")}function Ml(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=gl[e],i=yl[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(i))+")"}var El={on:function(e,t){t.modifiers&&Ri("v-on without argument does not support modifiers."),e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:I},Tl=function(){return function(e){this.options=e,this.warn=e.warn||ua,this.transforms=ha(e.modules,"transformCode"),this.dataGenFns=ha(e.modules,"genData"),this.directives=R(R({},El),e.directives);var t=e.isReservedTag||k;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}}();function Sl(e,t){var n=new Tl(t),i=e?"script"===e.tag?"null":Cl(e,n):'_c("div")';return{render:"with(this){return ".concat(i,"}"),staticRenderFns:n.staticRenderFns}}function Cl(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Al(e,t);if(e.once&&!e.onceProcessed)return Ll(e,t);if(e.for&&!e.forProcessed)return Ol(e,t);if(e.if&&!e.ifProcessed)return Pl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',i=kl(e,t),r="_t(".concat(n).concat(i?",function(){return ".concat(i,"}"):""),a=e.attrs||e.dynamicAttrs?Fl((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:S(e.name),value:e.value,dynamic:e.dynamic}})):null,o=e.attrsMap["v-bind"];!a&&!o||i||(r+=",null");a&&(r+=",".concat(a));o&&(r+="".concat(a?"":",null",",").concat(o));return r+")"}(e,t);var n=void 0;if(e.component)n=function(e,t,n){var i=t.inlineTemplate?null:kl(t,n,!0);return"_c(".concat(e,",").concat(Rl(t,n)).concat(i?",".concat(i):"",")")}(e.component,e,t);else{var i=void 0,r=t.maybeComponent(e);(!e.plain||e.pre&&r)&&(i=Rl(e,t));var a=void 0,o=t.options.bindings;r&&o&&!1!==o.__isScriptSetup&&(a=function(e,t){var n=S(t),i=C(n),r=function(r){return e[t]===r?t:e[n]===r?n:e[i]===r?i:void 0},a=r("setup-const")||r("setup-reactive-const");if(a)return a;var o=r("setup-let")||r("setup-ref")||r("setup-maybe-ref");if(o)return o}(o,e.tag)),a||(a="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:kl(e,t,!0);n="_c(".concat(a).concat(i?",".concat(i):"").concat(s?",".concat(s):"",")")}for(var l=0;l<t.transforms.length;l++)n=t.transforms[l](e,n);return n}return kl(e,t)||"void 0"}function Al(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return ".concat(Cl(e,t),"}")),t.pre=n,"_m(".concat(t.staticRenderFns.length-1).concat(e.staticInFor?",true":"",")")}function Ll(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Pl(e,t);if(e.staticInFor){for(var n="",i=e.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o(".concat(Cl(e,t),",").concat(t.onceId++,",").concat(n,")"):(t.warn("v-once can only be used inside v-for that is keyed. ",e.rawAttrsMap["v-once"]),Cl(e,t))}return Al(e,t)}function Pl(e,t,n,i){return e.ifProcessed=!0,function e(t,n,i,r){if(!t.length)return r||"_e()";var a=t.shift();return a.exp?"(".concat(a.exp,")?").concat(o(a.block),":").concat(e(t,n,i,r)):"".concat(o(a.block));function o(e){return i?i(e,n):e.once?Ll(e,n):Cl(e,n)}}(e.ifConditions.slice(),t,n,i)}function Ol(e,t,n,i){var r=e.for,a=e.alias,o=e.iterator1?",".concat(e.iterator1):"",s=e.iterator2?",".concat(e.iterator2):"";return t.maybeComponent(e)&&"slot"!==e.tag&&"template"!==e.tag&&!e.key&&t.warn("<".concat(e.tag,' v-for="').concat(a," in ").concat(r,'">: component lists rendered with ')+"v-for should have explicit keys. See https://v2.vuejs.org/v2/guide/list.html#key for more info.",e.rawAttrsMap["v-for"],!0),e.forProcessed=!0,"".concat(i||"_l","((").concat(r,"),")+"function(".concat(a).concat(o).concat(s,"){")+"return ".concat((n||Cl)(e,t))+"})"}function Rl(e,t){var n="{",i=function(e,t){var n=e.directives;if(!n)return;var i,r,a,o,s="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){a=n[i],o=!0;var c=t.directives[a.name];c&&(o=!!c(e,a,t.warn)),o&&(l=!0,s+='{name:"'.concat(a.name,'",rawName:"').concat(a.rawName,'"').concat(a.value?",value:(".concat(a.value,"),expression:").concat(JSON.stringify(a.value)):"").concat(a.arg?",arg:".concat(a.isDynamicArg?a.arg:'"'.concat(a.arg,'"')):"").concat(a.modifiers?",modifiers:".concat(JSON.stringify(a.modifiers)):"","},"))}if(l)return s.slice(0,-1)+"]"}(e,t);i&&(n+=i+","),e.key&&(n+="key:".concat(e.key,",")),e.ref&&(n+="ref:".concat(e.ref,",")),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'.concat(e.tag,'",'));for(var r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+="attrs:".concat(Fl(e.attrs),",")),e.props&&(n+="domProps:".concat(Fl(e.props),",")),e.events&&(n+="".concat(wl(e.events,!1),",")),e.nativeEvents&&(n+="".concat(wl(e.nativeEvents,!0),",")),e.slotTarget&&!e.slotScope&&(n+="slot:".concat(e.slotTarget,",")),e.scopedSlots&&(n+="".concat(function(e,t,n){var i=e.for||Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Dl(n)}),r=!!e.if;if(!i)for(var a=e.parent;a;){if(a.slotScope&&a.slotScope!==Js||a.for){i=!0;break}a.if&&(r=!0),a=a.parent}var o=Object.keys(t).map(function(e){return Il(t[e],n)}).join(",");return"scopedSlots:_u([".concat(o,"]").concat(i?",null,true":"").concat(!i&&r?",null,false,".concat(function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var a=function(e,t){var n=e.children[0];1===e.children.length&&1===n.type||t.warn("Inline-template components must have exactly one child element.",{start:e.start});if(n&&1===n.type){var i=Sl(n,t.options);return"inlineTemplate:{render:function(){".concat(i.render,"},staticRenderFns:[").concat(i.staticRenderFns.map(function(e){return"function(){".concat(e,"}")}).join(","),"]}")}}(e,t);a&&(n+="".concat(a,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(Fl(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Dl(e){return 1===e.type&&("slot"===e.tag||e.children.some(Dl))}function Il(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Pl(e,t,Il,"null");if(e.for&&!e.forProcessed)return Ol(e,t,Il);var i=e.slotScope===Js?"":String(e.slotScope),r="function(".concat(i,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(kl(e,t)||"undefined",":undefined"):kl(e,t)||"undefined":Cl(e,t),"}"),a=i?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(r).concat(a,"}")}function kl(e,t,n,i,r){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return"".concat((i||Cl)(o,t)).concat(s)}var l=n?function(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];if(1===r.type){if(Nl(r)||r.ifConditions&&r.ifConditions.some(function(e){return Nl(e.block)})){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(a,t.maybeComponent):0,c=r||zl;return"[".concat(a.map(function(e){return c(e,t)}).join(","),"]").concat(l?",".concat(l):"")}}function Nl(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function zl(e,t){return 1===e.type?Cl(e,t):3===e.type&&e.isComment?(i=e,"_e(".concat(JSON.stringify(i.text),")")):"_v(".concat(2===(n=e).type?n.expression:Bl(JSON.stringify(n.text)),")");var n,i}function Fl(e){for(var t="",n="",i=0;i<e.length;i++){var r=e[i],a=Bl(r.value);r.dynamic?n+="".concat(r.name,",").concat(a,","):t+='"'.concat(r.name,'":').concat(a,",")}return t="{".concat(t.slice(0,-1),"}"),n?"_d(".concat(t,",[").concat(n.slice(0,-1),"])"):t}function Bl(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var Hl=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),jl=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),Ul=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Gl(e,t){e&&function e(t,n){if(1===t.type){for(var i in t.attrsMap)if(zs.test(i)){var r=t.attrsMap[i];if(r){var a=t.rawAttrsMap[i];"v-for"===i?Wl(t,'v-for="'.concat(r,'"'),n,a):"v-slot"===i||"#"===i[0]?ql(r,"".concat(i,'="').concat(r,'"'),n,a):Ns.test(i)?Vl(r,"".concat(i,'="').concat(r,'"'),n,a):Yl(r,"".concat(i,'="').concat(r,'"'),n,a)}}if(t.children)for(var o=0;o<t.children.length;o++)e(t.children[o],n)}else 2===t.type&&Yl(t.expression,t.text,n,t)}(e,t)}function Vl(e,t,n,i){var r=e.replace(Ul,""),a=r.match(jl);a&&"$"!==r.charAt(a.index-1)&&n("avoid using JavaScript unary operator as property name: "+'"'.concat(a[0],'" in expression ').concat(t.trim()),i),Yl(e,t,n,i)}function Wl(e,t,n,i){Yl(e.for||"",t,n,i),$l(e.alias,"v-for alias",t,n,i),$l(e.iterator1,"v-for iterator",t,n,i),$l(e.iterator2,"v-for iterator",t,n,i)}function $l(e,t,n,i,r){if("string"==typeof e)try{new Function("var ".concat(e,"=_"))}catch(a){i("invalid ".concat(t,' "').concat(e,'" in expression: ').concat(n.trim()),r)}}function Yl(e,t,n,i){try{new Function("return ".concat(e))}catch(a){var r=e.replace(Ul,"").match(Hl);n(r?"avoid using JavaScript keyword as property name: "+'"'.concat(r[0],'"\n  Raw expression: ').concat(t.trim()):"invalid expression: ".concat(a.message," in\n\n")+"    ".concat(e,"\n\n")+"  Raw expression: ".concat(t.trim(),"\n"),i)}}function ql(e,t,n,i){try{new Function(e,"")}catch(r){n("invalid function parameter expression: ".concat(r.message," in\n\n")+"    ".concat(e,"\n\n")+"  Raw expression: ".concat(t.trim(),"\n"),i)}}var Xl=2;function Jl(e,t){var n="";if(t>0)for(;1&t&&(n+=e),!((t>>>=1)<=0);)e+=e;return n}function Zl(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),I}}function Kl(e){var t=Object.create(null);return function(n,i,r){var a=(i=R({},i)).warn||Ri;delete i.warn;try{new Function("return 1")}catch(e){e.toString().match(/unsafe-eval|CSP/)&&a("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")}var o=i.delimiters?String(i.delimiters)+n:n;if(t[o])return t[o];var s=e(n,i);s.errors&&s.errors.length&&(i.outputSourceRange?s.errors.forEach(function(e){a("Error compiling template:\n\n".concat(e.msg,"\n\n")+function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=e.split(/\r?\n/),r=0,a=[],o=0;o<i.length;o++)if((r+=i[o].length+1)>=t){for(var s=o-Xl;s<=o+Xl||n>r;s++)if(!(s<0||s>=i.length)){a.push("".concat(s+1).concat(Jl(" ",3-String(s+1).length),"|  ").concat(i[s]));var l=i[s].length;if(s===o){var c=t-(r-l)+1,u=n>r?l-c:n-t;a.push("   |  "+Jl(" ",c)+Jl("^",u))}else if(s>o){if(n>r){var h=Math.min(n-r,l);a.push("   |  "+Jl("^",h))}r+=l+1}}break}return a.join("\n")}(n,e.start,e.end),r)}):a("Error compiling template:\n\n".concat(n,"\n\n")+s.errors.map(function(e){return"- ".concat(e)}).join("\n")+"\n",r)),s.tips&&s.tips.length&&(i.outputSourceRange?s.tips.forEach(function(e){return Di(e.msg,r)}):s.tips.forEach(function(e){return Di(e,r)}));var l={},c=[];return l.render=Zl(s.render,c),l.staticRenderFns=s.staticRenderFns.map(function(e){return Zl(e,c)}),s.errors&&s.errors.length||!c.length||a("Failed to generate render function:\n\n"+c.map(function(e){var t=e.err,n=e.code;return"".concat(t.toString()," in\n\n").concat(n,"\n")}).join("\n"),r),t[o]=l}}var Ql,ec,tc=(Ql=function(e,t){var n=Ks(e.trim(),t);!1!==t.optimize&&pl(n,t);var i=Sl(n,t);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}},function(e){function t(t,n){var i=Object.create(e),r=[],a=[],o=function(e,t,n){(n?a:r).push(e)};if(n){if(n.outputSourceRange){var s=t.match(/^\s*/)[0].length;o=function(e,t,n){var i="string"==typeof e?{msg:e}:e;t&&(null!=t.start&&(i.start=t.start+s),null!=t.end&&(i.end=t.end+s)),(n?a:r).push(i)}}for(var l in n.modules&&(i.modules=(e.modules||[]).concat(n.modules)),n.directives&&(i.directives=R(Object.create(e.directives||null),n.directives)),n)"modules"!==l&&"directives"!==l&&(i[l]=n[l])}i.warn=o;var c=Ql(t.trim(),i);return Gl(c.ast,o),c.errors=r,c.tips=a,c}return{compile:t,compileToFunctions:Kl(t)}})(hl).compileToFunctions;function nc(e){return(ec=ec||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',ec.innerHTML.indexOf("&#10;")>0}var ic=!!J&&nc(!1),rc=!!J&&nc(!0),ac=E(function(e){var t=Rr(e);return t&&t.innerHTML}),oc=nr.prototype.$mount;return nr.prototype.$mount=function(e,t){if((e=e&&Rr(e))===document.body||e===document.documentElement)return Ri("Do not mount Vue to <html> or <body> - mount to normal elements instead."),this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&((i=ac(i))||Ri("Template element not found or is empty: ".concat(n.template),this));else{if(!i.nodeType)return Ri("invalid template option:"+i,this),this;i=i.innerHTML}else e&&(i=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(i){V.performance&&it&&it("compile");var r=tc(i,{outputSourceRange:!0,shouldDecodeNewlines:ic,shouldDecodeNewlinesForHref:rc,delimiters:n.delimiters,comments:n.comments},this),a=r.render,o=r.staticRenderFns;n.render=a,n.staticRenderFns=o,V.performance&&it&&(it("compile end"),rt("vue ".concat(this._name," compile"),"compile","compile end"))}}return oc.call(this,e,t)},nr.compile=tc,R(nr,oi),nr.effect=function(e,t){var n=new ui(de,e,I,{sync:!0});t&&(n.update=function(){t(function(){return n.run()})})},nr},e.exports=i()}).call(t,n(34),n(102).setImmediate)},94:function(e,t,n){var i;"undefined"!=typeof self&&self,i=function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n.n(i),a=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],o={name:"flat-pickr",props:{value:{default:null,required:!0,validator:function(e){return null===e||e instanceof Date||"string"==typeof e||e instanceof String||e instanceof Array||"number"==typeof e}},config:{type:Object,default:function(){return{wrap:!1,defaultDate:null}}},events:{type:Array,default:function(){return a}}},data:function(){return{fp:null}},mounted:function(){var e=this;this.fp||(this.events.forEach(function(t){var n;e.config[t]=(n=e.config[t]||[],n instanceof Array?n:[n]).concat(function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var a;e.$emit.apply(e,[(a=t,a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())].concat(i))})}),this.config.defaultDate=this.value||this.config.defaultDate,this.fp=new r.a(this.getElem(),this.config))},methods:{getElem:function(){return this.config.wrap?this.$el.parentNode:this.$el},onInput:function(e){this.$emit("input",e.target.value)}},watch:{config:{deep:!0,handler:function(e){a.forEach(function(t){delete e[t]}),this.fp.set(e)}},value:function(e){e!==this.$el.value&&this.fp&&this.fp.setDate(e,!0)}},beforeDestroy:function(){this.fp&&(this.fp.destroy(),this.fp=null)}},s={render:function(){var e=this.$createElement;return(this._self._c||e)("input",{attrs:{type:"text","data-input":""},on:{input:this.onInput}})},staticRenderFns:[]},l=n(1)(o,s,!1,null,null,null).exports;n.d(t,"Plugin",function(){return c}),n.d(t,"Component",function(){return l});var c=function(e,t){var n="flat-pickr";"string"==typeof t&&(n=t),e.component(n,l)};l.install=c;t.default=l},function(e,t){e.exports=function(e,t,n,i,r,a){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=i),c){var h=u.functional,d=h?u.render:u.beforeCreate;h?(u._injectStyles=c,u.render=function(e,t){return c.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,c):[c]}return{esModule:o,exports:s,options:u}}},function(t,n){t.exports=e}]).default},e.exports=i(n(430))},95:function(e,t,n){(function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};t.l10ns.ru=n;var i=t.l10ns;e.Russian=n,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})})(t)},96:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},97:function(e,t,n){"use strict";(function(t){var i=n(11),r=n(283),a=n(285),o=n(286),s=n(287),l=n(98),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(288);e.exports=function(e){return new Promise(function(u,h){var d=e.data,p=e.headers;i.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest,m="onreadystatechange",v=!1;if("test"===t.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||s(e.url)||(f=new window.XDomainRequest,m="onload",v=!0,f.onprogress=function(){},f.ontimeout=function(){}),e.auth){var g=e.auth.username||"",y=e.auth.password||"";p.Authorization="Basic "+c(g+":"+y)}if(f.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f[m]=function(){if(f&&(4===f.readyState||v)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var t="getAllResponseHeaders"in f?o(f.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:t,config:e,request:f};r(u,h,n),f=null}},f.onerror=function(){h(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){h(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var b=n(289),x=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;x&&(p[e.xsrfHeaderName]=x)}if("setRequestHeader"in f&&i.forEach(p,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)}),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),h(e),f=null)}),void 0===d&&(d=null),f.send(d)})}}).call(t,n(43))},98:function(e,t,n){"use strict";var i=n(284);e.exports=function(e,t,n,r,a){var o=new Error(e);return i(o,t,n,r,a)}},99:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}}});
//# sourceMappingURL=common.bundle.js.map