From 84b6cdb0c126a8cf14a88f1e05f3fe8814a797ef Mon Sep 17 00:00:00 2001 From: Vivian Lin Date: Mon, 12 Mar 2018 14:19:24 -0700 Subject: [PATCH] Dreamview: update sidebar and layer-menu icons (#3350) --- .../frontend/assets/images/icons/syncup.png | Bin 1670 -> 0 bytes .../frontend/assets/images/menu/Decision.png | Bin 475 -> 0 bytes .../assets/images/menu/Perception.png | Bin 545 -> 0 bytes .../frontend/assets/images/menu/Planning.png | Bin 416 -> 0 bytes .../assets/images/menu/PointOfView.png | Bin 425 -> 0 bytes .../assets/images/menu/Prediction.png | Bin 486 -> 0 bytes .../frontend/assets/images/menu/Routing.png | Bin 440 -> 0 bytes .../frontend/assets/images/menu/decision.png | Bin 0 -> 978 bytes .../frontend/assets/images/menu/map.png | Bin 0 -> 839 bytes .../assets/images/menu/perception.png | Bin 0 -> 787 bytes .../frontend/assets/images/menu/planning.png | Bin 0 -> 772 bytes .../assets/images/menu/point_of_view.png | Bin 0 -> 462 bytes .../frontend/assets/images/menu/position.png | Bin 0 -> 758 bytes .../assets/images/menu/prediction.png | Bin 0 -> 616 bytes .../frontend/assets/images/menu/routing.png | Bin 0 -> 525 bytes .../assets/images/sidebar/data_recorder.png | Bin 141 -> 299 bytes .../assets/images/sidebar/layer_menu.png | Bin 147 -> 224 bytes .../images/sidebar/module_controller.png | Bin 156 -> 303 bytes .../assets/images/sidebar/route_editing.png | Bin 190 -> 419 bytes modules/dreamview/frontend/dist/app.bundle.js | 14 ++++++------ .../dreamview/frontend/dist/app.bundle.js.map | 2 +- .../dist/assets/1VjU8-lRFZw_ZryZW5jvu9.png | Bin 0 -> 195 bytes .../dist/assets/21g8AJSRjYcnwl_KKPiq49.png | Bin 0 -> 365 bytes .../dist/assets/24ObNVAeLQ1n3S5D9jb8Wo.png | Bin 320 -> 0 bytes .../dist/assets/2CzZUJ_88PonapiEL9yqRB.png | Bin 258 -> 0 bytes .../dist/assets/2DNb-d13acVQUZGfQIIT7H.png | Bin 0 -> 410 bytes .../dist/assets/2DooGxR9gIBrX3LWNKD5bn.png | Bin 305 -> 0 bytes .../dist/assets/2EUYLwlKef0kdEOEtpIF32.png | Bin 0 -> 249 bytes .../dist/assets/2Pv9EE8DFvmwOR7l1sNw4-.png | Bin 0 -> 446 bytes .../dist/assets/2UaG3NtKPH-5AjKPJ1VctX.png | Bin 0 -> 239 bytes .../dist/assets/2mLfIh-bK5rqJgPJF70iSR.png | Bin 0 -> 400 bytes .../dist/assets/33tjEWBXRQvWemQw5UhBo.png | Bin 281 -> 0 bytes .../dist/assets/34mVgyjNEtBvo5AE0_5AmB.png | Bin 118 -> 0 bytes .../dist/assets/3Fe9fcXF_qq6_IgOoQKXHh.png | Bin 0 -> 127 bytes .../dist/assets/3Iqjzgc83hgZ4G5mrmawOr.png | Bin 0 -> 403 bytes .../dist/assets/3_JuUQhtE815-mFYEQxLD7.png | Bin 127 -> 0 bytes .../dist/assets/3bD4CnQrI774P7eAmm4ou9.png | Bin 0 -> 136 bytes .../dist/assets/3hfo8_18OIfW41h-Fothw1.png | Bin 298 -> 0 bytes .../dist/assets/3ymW0_3b4E9AkSrQdwuhXa.png | Bin 0 -> 321 bytes .../dist/assets/MuXNbyq72A2dXqIO7kstx.png | Bin 0 -> 139 bytes .../dist/assets/SGGg2xQ5wu9S-5KOxbnuq.png | Bin 364 -> 0 bytes .../dreamview/frontend/dist/assets/map_data | 1 - .../dist/assets/t8N2JFIzU8cMJO1Lf8mYH.png | Bin 161 -> 0 bytes .../frontend/src/components/SideBar/Menu.js | 20 +++++++++++------- .../frontend/src/components/SideBar/POI.js | 2 +- .../dreamview/frontend/src/styles/main.scss | 17 +++++++++------ 46 files changed, 32 insertions(+), 24 deletions(-) delete mode 100644 modules/dreamview/frontend/assets/images/icons/syncup.png delete mode 100644 modules/dreamview/frontend/assets/images/menu/Decision.png delete mode 100644 modules/dreamview/frontend/assets/images/menu/Perception.png delete mode 100644 modules/dreamview/frontend/assets/images/menu/Planning.png delete mode 100644 modules/dreamview/frontend/assets/images/menu/PointOfView.png delete mode 100644 modules/dreamview/frontend/assets/images/menu/Prediction.png delete mode 100644 modules/dreamview/frontend/assets/images/menu/Routing.png create mode 100644 modules/dreamview/frontend/assets/images/menu/decision.png create mode 100644 modules/dreamview/frontend/assets/images/menu/map.png create mode 100644 modules/dreamview/frontend/assets/images/menu/perception.png create mode 100644 modules/dreamview/frontend/assets/images/menu/planning.png create mode 100644 modules/dreamview/frontend/assets/images/menu/point_of_view.png create mode 100644 modules/dreamview/frontend/assets/images/menu/position.png create mode 100644 modules/dreamview/frontend/assets/images/menu/prediction.png create mode 100644 modules/dreamview/frontend/assets/images/menu/routing.png create mode 100644 modules/dreamview/frontend/dist/assets/1VjU8-lRFZw_ZryZW5jvu9.png create mode 100644 modules/dreamview/frontend/dist/assets/21g8AJSRjYcnwl_KKPiq49.png delete mode 100644 modules/dreamview/frontend/dist/assets/24ObNVAeLQ1n3S5D9jb8Wo.png delete mode 100644 modules/dreamview/frontend/dist/assets/2CzZUJ_88PonapiEL9yqRB.png create mode 100644 modules/dreamview/frontend/dist/assets/2DNb-d13acVQUZGfQIIT7H.png delete mode 100644 modules/dreamview/frontend/dist/assets/2DooGxR9gIBrX3LWNKD5bn.png create mode 100644 modules/dreamview/frontend/dist/assets/2EUYLwlKef0kdEOEtpIF32.png create mode 100644 modules/dreamview/frontend/dist/assets/2Pv9EE8DFvmwOR7l1sNw4-.png create mode 100644 modules/dreamview/frontend/dist/assets/2UaG3NtKPH-5AjKPJ1VctX.png create mode 100644 modules/dreamview/frontend/dist/assets/2mLfIh-bK5rqJgPJF70iSR.png delete mode 100644 modules/dreamview/frontend/dist/assets/33tjEWBXRQvWemQw5UhBo.png delete mode 100644 modules/dreamview/frontend/dist/assets/34mVgyjNEtBvo5AE0_5AmB.png create mode 100644 modules/dreamview/frontend/dist/assets/3Fe9fcXF_qq6_IgOoQKXHh.png create mode 100644 modules/dreamview/frontend/dist/assets/3Iqjzgc83hgZ4G5mrmawOr.png delete mode 100644 modules/dreamview/frontend/dist/assets/3_JuUQhtE815-mFYEQxLD7.png create mode 100644 modules/dreamview/frontend/dist/assets/3bD4CnQrI774P7eAmm4ou9.png delete mode 100644 modules/dreamview/frontend/dist/assets/3hfo8_18OIfW41h-Fothw1.png create mode 100644 modules/dreamview/frontend/dist/assets/3ymW0_3b4E9AkSrQdwuhXa.png create mode 100644 modules/dreamview/frontend/dist/assets/MuXNbyq72A2dXqIO7kstx.png delete mode 100644 modules/dreamview/frontend/dist/assets/SGGg2xQ5wu9S-5KOxbnuq.png delete mode 120000 modules/dreamview/frontend/dist/assets/map_data delete mode 100644 modules/dreamview/frontend/dist/assets/t8N2JFIzU8cMJO1Lf8mYH.png diff --git a/modules/dreamview/frontend/assets/images/icons/syncup.png b/modules/dreamview/frontend/assets/images/icons/syncup.png deleted file mode 100644 index 6f9b8e8c6aeb3784c8f91cab3b8b006976fbea66..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1670 zcmZ`(XQ5QTQtnn+)~ld;YB+6N}dZYS=iJ_*4U$u^WlBC=iYPfJ-_qqRz!pa9n^$t0ss!; zg9D-z-REnmD=QF?`7sJqKIKdF1)#ec`kA7l;AYg|C?WubXaLw{0PHCw_BsH07yvfO z0Jt>(V931M7wMr`C?yku0s#1>3W-xN4Q6mct|ICA*Mj(2H5DjCH5Q&2s3y@cQ897S zud?d^K;;BJ!1qMz%hiOe(Ab#6CH4d7jFgDW`r2aNm&8up-qFtd@{8$u2C-DeQ@cqC zhx?(0b^c#>*u5#S3E-{?2t4`g*cu z*dMI|*ZpgG2Bs;V93#QgcaC1!kJ=sijgPSHf$rnaLPM^etuHysIa$luMm@)z!#We1 z1w9WYMtZ8hJEf{t?i5k=x3(82l18*IVAO}84*d_Fp~Y5Wc+qlNk*53Q4EQqVJyx*D zCryMn=R}-Sztil(zY$JJe9Ha#iDhR-2Ya*5y^q9RSjIT__2glr?`~=ic0FZ8-!+(Yb>?uT#l;v3~ahiJiH4 z1lECb(`7_^_1=Ajn+e;=u)pUEn{_Do5FukXs{uLypd0ht2BdxemuZ%+R|6t@%g88!H|=+V5ks`PA`p_Cd*% zQ&??!^xFhE7o=%VwHl$*7{^+di<$|Fc7N(TQD2Zg?Ae`MnVukV5T*Y%&v-&}KSihCxSU5R@vUKi|6p>|B} z`hCc;IL(Bag$*NugtA~Nx9!;JIC5s4dvm>nFCZe>u?`u5NiawZ=EIWt!^jq5S~>*LtXF!^rue@v>$mU){&4!PV)kfQ z*9g9}$8-26lvr}RnjVHGy2es(%Jz^UmH0&d9!CUoYFU_X6{#Ua#i@j0!>YMY=toUB z`_(p7i?eUxd7@wDgy>v<`d*I%8nuKxB0jse$)3jFZ`^=m7*|Px80l8w5Nkh0sab-1 ze)3DHW$r+$mT*OgmN}Umt&RloWIhks`;hV2?sa!r!@=zM3>3%p#_$^&V zp!Iw@?;cMd=xgJAv|YW~-{zzIao|rOH0UIWqdFZOJ41$*$g$j%6?4;tF89R!^1N~L zE1ia@#hE1IL6wE2{)%U{HN)_#q!?@WjKLz7jYVTj{WrCjW|-dBsGE7$wJI7$PAw$! zOM8FQ82IUjw|;B;Pgea44%On@OWwDNTsQ5LEe10km&y$<8L?lHKWAsM zJ{iiDr#v@#x5^bS*OC<&&q|@NXl~RTnxX+52J2#nIcA4*Ie|IqhI4T{inGDs+%On7 zVN}&$3>jG|Y4o%I-$1C_#3~HNUlXFU=&XE74h`hz=i8@cGIFUDCe1!8=Ty@h54hq8 N-~+<~Zu^l-{|CQ-=4Ai? diff --git a/modules/dreamview/frontend/assets/images/menu/Decision.png b/modules/dreamview/frontend/assets/images/menu/Decision.png deleted file mode 100644 index 1b62f7edc1c061423dac8a684dc7921f802b7282..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 475 zcmV<10VMv3P)Px$l}SWFR7ef&)z2$LQ53-Ox%0~y5keFTq?ErvDP=Jw8-Ip>L4IT-DOp%pSor;; zEGT86D5aE`nx>?b8ezdgEUljJ(Tt|Ueed;pJElI}d(S=Ryty-P-b5mQ?&UbnG$#EX zJnlD9@@PEEkU^Yz!Wc6l@lakgoW~XF(109f!fL)ivkTOg8Zxg(7IURoppgcPI7f|c zKuk{Zh7rBzYfa%2&QPrjh{dpjBc$}c>zV?CWt^f)Cliw|c^8LB>V4NW1yQWy1Zka2 zEP*{7$XxHct|^e_+mK^d>SSU`jN$_wdf#(RQ6p|Ku9JyXKt7UJY~c=VI?r=WQ8RAv zeG%p<$f@K@9mWebQ9!$AQ=LFj6Rt6ZG>)->sN^yZ;<*^RXYABHJl7P-J)VcW%N3aN zBGwtmN#urjKv(&`uQ^5XYaO#Cvo`>_$QmBeZOaWDr)fXrBCB{pPvB;@LYnqLF0x-7 zTWq<3<23HYJHmOw{`O92-m2sJ&KM%$$Kyd2UGhg$P%-QB>%O+`{%`OJd;%VDmQtKY RAv^#8002ovPDHLkV1k3=)8POB diff --git a/modules/dreamview/frontend/assets/images/menu/Perception.png b/modules/dreamview/frontend/assets/images/menu/Perception.png deleted file mode 100644 index 950ed83f1821dee65a08c1d8687377674837fc6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 545 zcmV++0^a?JP)Px$+et)0R7ef&l)o=SQ545pzXlT3kPw!p3>HHZQc)KA2eki!kdT-x7%V1T+58A0 zHo`0>qt+zCP>COj5QzjqEb8-pc}?zndecd|ILRmXobx^R+}GRpP9X4amA-*sxd$i| z3aaUaE@*e_?^&-P8w>^uZm#5FJ%Gj$cFaNw9^ewxSf+!zp$!gTk%O*T%Nvcuum;aC z4^i7LX>N^bS0QYxb@CL%;TD#l(JUrzfIh8eUcPE!8MHU<*PR$42C}qSKwJ--@CG^f zgmY*z>*SM5!V|)VWQn@fYA7eq9MU^^y%Zy>LQs2P0;4x7iH& ztUvE+8MFl$5ObBHfqrlXeXsK<$Lr;6mVYg45u?;)x0c>)NgKBX4Ap)A78qb=l jdB~L;*VO!5g>T>ouMf^v5`0NN00000NkvXXu0mjfI4kTP diff --git a/modules/dreamview/frontend/assets/images/menu/Planning.png b/modules/dreamview/frontend/assets/images/menu/Planning.png deleted file mode 100644 index 0512730ca5aeacabb292121017142fea1532e162..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 416 zcmV;R0bl-!P)Px$T1iAfR7ef&lCeqyK@f)TB#oL*kXVU@HtDpGv_U%y3qh?+W25*6mR43ac>${g zpTbH(MG*zXKq5#?p|J>eBg^!u}|CznqT%ssF=?4Da28=PAPy;W6VphJsF!t(K>n6 zscp)TeBc{|GRT7_t=XT*TaMD-RoQ)m2I30lotkcBaF==!=3yMZ!9Q}}1T1mSg*6#2 zz`Yd$34RXR(gy?ol6YHisaK37iL9rhVkq*9TIjd%0^6aUL^~$(46|l?DC#h0g#igY zJ8%LYAgc%-yk)o&Q$O-E`6FU*z!UeW8}K%y|J0jH%X9;O+`tct5c#5&V_5P40000< KMNUMnLSTZ_G_pDX diff --git a/modules/dreamview/frontend/assets/images/menu/PointOfView.png b/modules/dreamview/frontend/assets/images/menu/PointOfView.png deleted file mode 100644 index d05a59102aa79ead03ba457edbe29efa24bcaae4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 425 zcmV;a0apHrP)Px$V@X6oR7ef&lrc*KK@f%SGzt=s`~a~N!8BU!Z3bp|Wa;CvjD92WC0n!yOX` zKA4ASSB>9?Z{Tkvo_{iwDU(+<)UPKInKfQr3l}n>R TK(k{b00000NkvXXu0mjf;Uu?^ diff --git a/modules/dreamview/frontend/assets/images/menu/Prediction.png b/modules/dreamview/frontend/assets/images/menu/Prediction.png deleted file mode 100644 index c16333948806520a8af0b34236eb734e6035d5f5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 486 zcmV@P)Px$ph-kQR7ef&luJqjK@f%=8QclFaI1n6#h^j55kZtF2tE)+e1M8OFCmI|aO*X6 zCwK&JAfn;}!3*g4{W=|bhUrO@WOga|=<2G!s(Lz;3AzffD2gs<`vcwZ4O4Ix1i_60 zMVN*~ptT>q;F^Q|+ShH)#A$M67Sb|HJyaK(Px$a!Eu%R7ef<C**Q547Dm1Hrquu&7mV9JiNm6U}IN@+H-wUeaeGq7O8N0_m+ zldTD5B@{&&DeUb%zcal%y?5??y@nOdso$J?{^x)1yZ1KTAZW)=ZXgW9VK{<1JVOPF zS!?0x%JKx5rr{BmAP0FUgJ_d!3(zxg3VmrFS-czWU__hHM&Sm$yF_0BiHe@vtZ6R8 zPE$|=dV5e-vTRIF`35$otf#{cqC8HnDJ@=}QHV#!9Kr)!z&R{JBRcIM$^+yVrNzq+ zib7nFu`#Afs|GN$QoOcYi z7|&*&-EVOI#`cQd@vlP(7T_9u@rju8H6pE_{Oa`CvAl$rAhF>XB7vSfhG`#{H>n0i z?|d2)a0~kRNcicWz)V7y$Qin;E`wh307ecO0Ws{Fyxuiy2L^SID{*Z itKEg3)>rxqGrj>dQ35&ZY*3N_0000Px&j7da6RA>e5nO$g3aU93D;l_KjH*3~vExA!jN}?2{T!_THY-Y`Bii=&0M&8v3 zaj^@8D2n37l^fASL^MP)ON%70VVfC`&-d{^daRx2dH&9M&d$a8)@T3oKj-)IJ^wu~ z=f7oTMT%A+T7f`TAQp?wf-5jCkcNIX!So#X0@58A?`Qpt*23&u_y&?Q-s3noqmBJ2 zj>&n@4blmi1kW@<4w_Y_aVYWQgk zY_}~&-e!|4^L4iQp5kd(3y%3_+hXKy1xYn(Z1X+E)36@2YEqMJF>-dsGylBwR@>%# zil^~NnUHBj=FG z*LTHY+k8*)G;A`>WqzG)F>-d9d<}uWY_^!@`m|VUW1jeIXaRlEy#nbvjJB!s-?22x zgEt`Q>2YMb#fX*p;~>2U-9(or=mv~Qx0a_k8cl}RAYFq|sR|O41E(NSADAqMm*(Ux z#$dLXG^zk+_1ZXgT|KT1gEJs~h52w%6Z8pm6E8GD!EG^VRu0bU-Q;-ez~2PtWd0mT z+6T{84C8P(57K9-gy))|;I^1FD}zpuZo}UVI>$130VJ86nRtWDb#rGy(#@>^Jw{8x zZ82$93LWZ-^eC)H;t_BOq>nHo(Y$ladA&DIgQS<2o@9gHV$!q(oYm8&odLH*pfAZde76G(o{_F=Y+^&)CCo8d7(Ow(H(M(bQ8^> zmz8uiR7R7T!L0KLA9v0VebN;s%L&~z3~w^-_5F|^I)mvL!uT2p@1Nn*xrrzy%q#HE zKOSV1*IUdF!`aA>I;m>pqzZ_xM=KDmK)6@nH}mcHFH?ZHTmS$707*qoM6N<$g7~D( AkN^Mx literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/assets/images/menu/map.png b/modules/dreamview/frontend/assets/images/menu/map.png new file mode 100644 index 0000000000000000000000000000000000000000..e1a586f06adccf3928857e1edb26a5d63a290a4b GIT binary patch literal 839 zcmV-N1GxN&P)Px&0ZBwbRA>e5nZ0UNK@^39Ng$*MNk|j)0Zd4(=o_R+9wDH8QV4cFfR zbuDay+G=GKti)6bMr=~}!|_{(vk!CU%-lKm&IJ)?!(wLktiAU9C2;qdnJHFIpq#+O zCs0+@I(Q6TfJ+k#^$0}&JQ(z#rYQ)`f&=g!xb}p>Mp~gi1HDyn8~g-S|Hudvjf>!o z#3J?!{{wI~BGJoD{2bT^UqNfVfnCbm(4UwFIksMd23n#RZSNQ#Ro|UIgYzv~*``hWP z#&a0oa|efTLmQcH9$OG?`_6-_X`IF%#qsBwjacY(^O&liG&UZWZ#v_~#rU272$tYq zY0C!w_Dz)=C^wLK0_6#19$%oHd$ka>XF;pGOhk1$i9+(705W`~y>$UeeM zf&cpk_?_DRAg8~Sd6>~~H;+%6_y!PF$>qoqR4qwm#i?#2kjF_G=n_y{V5)X8xdqx{ zEB*ICMJlrsI?0U~d5k4F8bWy*cWCz4^+@q!BwULtO~KKz5qUb__zv=fmv`PHfb7+{XC)^f=%P}Y853D znPvy5^k?>rPVx&3oCTngx)yIXv=MVg@_c4~uh)Wok_pqg?_5RLZJ(PO6SE9%fm2{+ z8?mvQM;}jA1z$;NN9RqoY4y(cLH*97L5T_C&w+=){(k6o>@}VX390mSBO86^X@xig zZGA9#+T^fC9}0Cyv+>9=W)K>H6X<;ce*kmA1dUJ7 Repvtj002ovPDHLkV1n@hgMR=3 literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/assets/images/menu/perception.png b/modules/dreamview/frontend/assets/images/menu/perception.png new file mode 100644 index 0000000000000000000000000000000000000000..14db2cfe81fbdb63f992ec286ada7f39e389c361 GIT binary patch literal 787 zcmV+u1MK{XP)Px%%}GQ-RA>e5n6GaXK@`UiY8pfnOa4vK!98$18kpHZIbCkm z&`LB->si+)(GNre0uIDhV8@{fxJAvX0jQQnQUcN(155;4;p2?If2x@(5EeBXO+H7D zNyPybY4RE6hJ$pIJvCy%UfRiRvZEJjajaH&`+&lx2cDW~8}Y)UTVfl@=jbt60@k*0 z&t;%9^YhPQ`{cM}M=xV)T&kZ(ujU)^?FW6syzR3$z?lB{CzN|Y*&Cq1_cWn@*tQYr zvgs^$0~35CYGmRdVj!pjJLBl)r#^A!=VR3RqiDYo>q*U3=GS*Ml4zVcvYr6*`&Gg< z@`3d(_*Y-%lv_2llJXl^#rqBzwNYc`Ez3=CG)l5Z2XVU`%GH$-8`ZShi<*FSFzrI~ z68ja9>p~+gadyQnH0!;Jp5_dzT`3=+>)K~xSIUbR`d%p&vkm+!rE=uCQU;pQrT#2< z0{lz;Q*7rz=u)pU`S_Q5af$QqTpHkUk9g7kimNnLwF9nLwF9nZUeG;1?)GKqQ@H R>J|V1002ovPDHLkV1g)>V3q&? literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/assets/images/menu/planning.png b/modules/dreamview/frontend/assets/images/menu/planning.png new file mode 100644 index 0000000000000000000000000000000000000000..2cee086062d781e9edd1b7aac164728dd28746c2 GIT binary patch literal 772 zcmV+f1N;1mP)Px%zDYzuRA>e5SFuhUF%aEQP|&5LLX=d=+Fr7!$>VEWe2l$&C;PYMd;)GI*t^^VY-eJ>&+WPo%qNSlap5tUaA5jlm z#Do!S;v5l={sHPA)KuQnu3OBRe2wEcvV}eXoN%|;yN@J#tzd42lelw%{TZF_GW;m* zMkD+mm`FYs{svGCkpQ@DxHmnm+)gaHob&9QXB)-MQIh1fTm(fuTy7_pT+VrR&a;i; z-hKd#*lcm2LI+Qi(;-DoB^}yjo1!0jApmFcwV&n~LZMfmB?Rt0YAR>>JjS6{GH^c= z8KvOoTB*NeM^DI@dzgFDfthAd{{nm>1kI<;+`eW2#X>5BY5*19l>Sw( zB|qm?pfL&Fxp1$I>3?Iw0{97h+UpVAQwiW#FLy6^IOiSUVOv3HJV+3sZ~JZh)Xo6+ z-pw|`!XcMhJ4o5oR|x=5aX{xkd20go$isD{)(F3Nvcw^|9-}bPFUKAeR^Orv0w!Q;+ zqR`y+Zea40KkE#vWFdTX-nx41)S@=Io}Ke-UEG@wfDtY&9yjj*=u5tYdE1$9d zT)y&1CyOrMK=1$?7w`!Ve+lmL+g9h_s^X1?#9`U!b5z;?B}*bo~fMK8Re2X$09LZQY1>s z?0Kr%vX!?bw(c<#^PXMuP5dbLjrr4dpZ${V-%$Q5y!%E>T<*ph>IOo|bJlGSyr}i% z?!O7GPk#TK!jUiI`sKHwx_6t>ufKDqDLuOU;Px%ut`KgRA>e5n6YXVK@^7Xm4pZeLaJb47vcjXpbrp|B9CCIl(9_Z1K1=@EPQ~Z zv9lJEJb{I^D7Gqsg$ROz>-X=@4a;(~XJ%(+V=)JQ=I)+z{{P>Bx%cdyOiGj;C_9j3 z2db)C055?Rs#!=Pnu-KNtKh!X_pl>@3#sAuD*+EMOf zU>ke~ig)0FC9E1(%To7lTRmCwh#!JKazVTX_k4v^>v~vfjzizx=sE_7v`bntqZoN2wxD@#gH{{-jwQJJ4hCA=!Mj-gGTBf^sH1Zs7hzB3m zu1V_}t@MW*(lem=3hr7aV)N2)S}fIBEZ+o@W$;04#EWP`gFqU!Qlq(Sl>4P2+yuWJ z@t$8-coqD6PD5Io;S4<;5FR=5Z>;xwN(ZIH3B;{98bs391gU;_-iV#J0(biALvrGB zoGi6Q@DHPx9^`A_i&ThbUQHfF;;I=N?lq5=;Ux&|fWJU<(Bt7uO{X{Y-s;IYSXt)-K@(k)jcpdz31`a|==sR$| z;#d#uPg0NYzBBQY^`S4RYJqwb`@Vfy>M(F#+i2d%mMjr!mw?{h6z5ib_BhmB+{yFh>n)+M~jj#XD*qbG@Sm`Mje-?9*bfJ!)KXeLZUEGtfPS z#*sXuLV|~wJ8EEfyip;+L+oOBHfrcyw>>KC#`2HSkLeSj(5N9OPDT+=A%fZVs3G$j zJH{OqVjl#Px%B1uF+RA>e5m%B>?K@i3hQBlDsD2Rv_+5`kEE4!3dR`zzb{tI?#ZEYqi*rA*FA2NA z7Wf7tqL0BE=nYE1`7(F|B72}G$lv%G35S7nP2>yggLipRB5UC}73^j3q5O8y-Np$9 z1teh!+$sVu=(6~uhrkB71X`M=f^h{@)!`1hwLfD>DEqEQFW=R(Ud3XU{T71GseED+ z*#@4!EWP3-wvo)a?=t%Su)z4}sYtO}Dq;7Go|DzN@0qraP5ZJUfB3 zIvX{voj}x1rR8TQkXC1-#%=ovL@m_%*$#AS2YvzJ%U_ixus~4&0000Px$$4Nv%RA>e5Sg}sSFc57}r4AiBRbr?F8!IzA-^Lg418hv}s4Fuo5^QWt3=C}W zo@+;mW%uleixP2`E@$7p_w3v?QI*BQhE?EySD=Y+{|6(E4OurBLwL2ElUl;m@XOqR zhF0*eI+#0G9G`s$>;~eNj=i2-2k;Et&;}QR4e5S zE@5|J?~Z3I`=(5uF_4qVf?zEl_!aEI^S%QgKFpb06>NQg1c72g1gzl$yM{e_&KLZ( zpVM*97zZ)yXsh(n!Es4vgb&OX z_Uy4A@Rvc($J+gwgAv0)&Ng6^-obE5CJTZRANd{Z#pB-LFS@cm-rJuT7_l7W?z)`b z+(B^Z1uGU3ANjqx}|%qIeEq P00000NkvXXu0mjfgP!ee literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/assets/images/sidebar/data_recorder.png b/modules/dreamview/frontend/assets/images/sidebar/data_recorder.png index e38e65b3951258a97bd934178bc31095e5b18d5a..79d54c9e4cccab7ec4fc349ae5fe483aba129300 100644 GIT binary patch literal 299 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTC#^NA%Cx&(BWL^R}Pd!~6Lo!(3 zPCLkVSb@j+_?G|wpRS!=w8G`7#Wk}f$JdIeKamtX_FJO=ki>Bf9ew?^@1BRA+aM4k zyxidoQxK#0*OQlD+4&`GX0SY*v~X61;`Zh9w|(+&5&4jy4%GM6*`xbH67IU}4q#ikNERkhn o2daPgl*E_|g>TXCsx8_>fHp00i_>zopr08El~v;Y7A literal 141 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaT3?y&uT)!Jgv7|ftIx;Y9?C1WI$O_~$76-XI zF|0c$^AgBm3-AeXbuaMw|NsB|DT|yz(j`HD!3+-1ZlnP@5}q!OAsp9}f7Ji5cWxF| hj^hbx=Igk^&XD9IZhG&GKmgo zCW1+5LIaD6LZfHGf6gtHi~gj)Xq}VH>EQqtXJ~xe8ua-6JPkRGzt^f4@+Y{9=>LDE R_Z;X-22WQ%mvv4FO#tdXPDB6z literal 147 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaT3?y&uT)!Jgv7|ftIx;Y9?C1WI$O_~$76-XI zF|0c$^AgBm3-AeXbuaMw|NsB|DT|yz(j`HD!3+-1ZlnP@a-J@ZAsp9}fBgS%@661s o94N6wOnSxt|NN_W{QYmwkW|dSTkqvGPoPQ$Pgg&ebxsLQ01SXFAOHXW diff --git a/modules/dreamview/frontend/assets/images/sidebar/module_controller.png b/modules/dreamview/frontend/assets/images/sidebar/module_controller.png index e78253748c3a9cf8a6cbff1df4da4623eada0831..e1c644a71e4f03560999f29c8b416da5e079d4e0 100644 GIT binary patch literal 303 zcmV+~0nq-5P)Px#=}AOERA>e5mcb4JF$hGh@&A8WwW@&rC_A*Nup(^Su8-)7e# z5GleGj?OXS*>!mWP9TfAYo7^pDVvR(o&!<9?k*GEi~n6hP-4oP08@TX>TPUab=?H2 z%AIx21kO^j8b_W$dJ=bak|=I=!e56#R*~;ojugheYFwO`C*TBta>|>)l=8SYJqK{$ zSO0I9VfVR&m_ps_CeW=gi!V=Lv9}6SV0vAizzcjZG+l|pS(5+&002ovPDHLkV1k1h Bf#?7L literal 156 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaT3?y&uT)!Jgv7|ftIx;Y9?C1WI$O_~$76-XI zF|0c$^AgBm3-AeXbuaMw|NsB|DT|yz(j`HD!3+-1ZlnP@>Ygr+Asp9}fBgS%@661s x%w(=mQ2pOo#4d)HooW03ijG6>X51NO3=5gWr){0{6le_tgQu&X%Q~loCIDIIEwTUr diff --git a/modules/dreamview/frontend/assets/images/sidebar/route_editing.png b/modules/dreamview/frontend/assets/images/sidebar/route_editing.png index 50f61ac6dfa8ba99b011d00321c722aa2ecb8bbc..625755d33827964faaea89670593f0ba77c3fd57 100644 GIT binary patch literal 419 zcmV;U0bKrxP)Px$T}ebiRA>e5TH6i6Fbr%_S7`s3fGJpr4L`6Dv~XkMs3cy zJ4Yxy>Nlb)I1UAK@2NLIK#d6F60TwA6yE_Cu=jTJ4tNJh2Yd^W2GVfv0Bs>zz&k)1 zNW;AY8VhlfY>`I|c7%~*sl@1k(G4usA+N|gQY`}5KC*5htk}Vq3-W|~B40=@1|jAh z5b{WIUP7)SMjd?>yi{?ZF0~94vdCoQWyQ!l4wiYSW>}E_5ujqV5@ba_ivUaV<^rtA zn+nK5-b_F)@+Jaul20xGXQ+~$ybv4sb0>%i^6e_s2`143 z_9Xw^fku>&hTMQZouS7UokoEq;t?C!Qg+9k^yO7I&0$l(A N002ovPDHLkV1il?s`vl^ literal 190 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM3?#3wJbMaAv7|ftIx;Y9?C1WI$O_~$76-XI zF|0c$^AgD65AX?bbuaMw4+cO1ApO`idNoL2NswPKgZ&%%$LXa?K)$V~i(`n!`Q(Iy zj1mzN8=4mC9z1cRBa}(8&)b$+@2iH8#v>1*6^}SLO$sNhUeF-fZXY4RHl0OhXTweo a28KHFb diff --git a/modules/dreamview/frontend/dist/app.bundle.js b/modules/dreamview/frontend/dist/app.bundle.js index 6008db2b12..d05ac362a9 100644 --- a/modules/dreamview/frontend/dist/app.bundle.js +++ b/modules/dreamview/frontend/dist/app.bundle.js @@ -1,9 +1,9 @@ -!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=165)}([function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(19),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var n=0;n6?l-6:0),c=6;c>",s=s||r,null==i[r]){if(e){var n=null===i[r]?"null":"undefined";return new Error("The "+o+" `"+s+"` is marked as required in `"+a+"`, but its value is `"+n+"`.")}return null}return t.apply(void 0,[i,r,a,o,s].concat(u))})}var i=e.bind(null,!1);return i.isRequired=e.bind(null,!0),i}function r(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function a(t){var e=void 0===t?"undefined":k(t);return Array.isArray(t)?"array":t instanceof RegExp?"object":r(e,t)?"symbol":e}function o(t){var e=a(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function s(t,e){return i(function(i,r,s,l,u){return n.i(w.untracked)(function(){if(t&&a(i[r])===e.toLowerCase())return null;var n=void 0;switch(e){case"Array":n=w.isObservableArray;break;case"Object":n=w.isObservableObject;break;case"Map":n=w.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+e)}var l=i[r];if(!n(l)){var c=o(l),h=t?" or javascript `"+e.toLowerCase()+"`":"";return new Error("Invalid prop `"+u+"` of type `"+c+"` supplied to `"+s+"`, expected `mobx.Observable"+e+"`"+h+".")}return null})})}function l(t,e){return i(function(i,r,a,o,l){for(var u=arguments.length,c=Array(u>5?u-5:0),h=5;h2&&void 0!==arguments[2]&&arguments[2],i=t[e],r=it[e],a=i?!0===n?function(){r.apply(this,arguments),i.apply(this,arguments)}:function(){i.apply(this,arguments),r.apply(this,arguments)}:r;t[e]=a}function y(t,e){if(b(t,e))return!0;if("object"!==(void 0===t?"undefined":k(t))||null===t||"object"!==(void 0===e?"undefined":k(e))||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var r=0;r",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,r=!1,a=!1;t.call(this,"props"),t.call(this,"state");var o=this.render.bind(this),s=null,l=!1,u=function(){return s=new w.Reaction(n+"#"+i+".render()",function(){if(!l&&(l=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{a=!0,r||M.Component.prototype.forceUpdate.call(e),t=!1}finally{a=!1,t&&s.dispose()}}}),s.reactComponent=e,c.$mobx=s,e.render=c,c()},c=function(){l=!1;var t=void 0,n=void 0;if(s.track(function(){Q&&(e.__$mobRenderStart=Date.now());try{n=w.extras.allowStateChanges(!1,o)}catch(e){t=e}Q&&(e.__$mobRenderEnd=Date.now())}),t)throw nt.emit(t),t;return n};this.render=u}},componentWillUnmount:function(){if(!0!==J&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,Q)){var t=f(this);t&&tt&&tt.delete(t),et.emit({event:"destroy",component:this,node:t})}},componentDidMount:function(){Q&&p(this)},componentDidUpdate:function(){Q&&p(this)},shouldComponentUpdate:function(t,e){return J&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==e||!y(this.props,t)}},rt=x(function(t){var e=t.children,n=t.inject,i=t.render,r=e||i;if(void 0===r)return null;if(!n)return r();var a=d(n)(r);return S.a.createElement(a,null)});rt.displayName="Observer";var at=function(t,e,n,i,r){var a="children"===e?"render":"children";if("function"==typeof t[e]&&"function"==typeof t[a])return new Error("Invalid prop,do not use children and render in the same time in`"+n);if("function"!=typeof t[e]&&"function"!=typeof t[a])return new Error("Invalid prop `"+r+"` of type `"+k(t[e])+"` supplied to `"+n+"`, expected `function`.")};rt.propTypes={render:at,children:at};var ot,st,lt={children:!0,key:!0,ref:!0},ut=(st=ot=function(t){function e(){return T(this,e),O(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return P(e,t),C(e,[{key:"render",value:function(){return M.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var t={},e=this.context.mobxStores;if(e)for(var n in e)t[n]=e[n];for(var i in this.props)lt[i]||"suppressChangedStoreWarning"===i||(t[i]=this.props[i]);return{mobxStores:t}}},{key:"componentWillReceiveProps",value:function(t){if(Object.keys(t).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!t.suppressChangedStoreWarning)for(var e in t)lt[e]||this.props[e]===t[e]||console.warn("MobX Provider: Provided store '"+e+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),e}(M.Component),ot.contextTypes={mobxStores:q},ot.childContextTypes={mobxStores:q.isRequired},st);if(!M.Component)throw new Error("mobx-react requires React to be available");if(!w.extras)throw new Error("mobx-react requires mobx to be available");"function"==typeof E.unstable_batchedUpdates&&w.extras.setReactionScheduler(E.unstable_batchedUpdates);var ct=function(t){return nt.on(t)};if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":k(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var ht={spy:w.spy,extras:w.extras},dt={renderReporter:et,componentByNodeRegistery:tt,trackComponents:m};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(dt,ht)}},function(t,e,n){"use strict";var i=n(6);t.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},function(t,e,n){"use strict";var i=n(7),r=n(57);e.a=function(t){return Math.abs(t)<=i.c?t:t-n.i(r.a)(t)*i.e}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";function i(){}function r(t,e){this.x=t||0,this.y=e||0}function a(t,e,n,i,o,s,l,u,c,h){Object.defineProperty(this,"id",{value:ps++}),this.uuid=fs.generateUUID(),this.name="",this.image=void 0!==t?t:a.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:a.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:so,this.wrapT=void 0!==i?i:so,this.magFilter=void 0!==o?o:fo,this.minFilter=void 0!==s?s:mo,this.anisotropy=void 0!==c?c:1,this.format=void 0!==l?l:Oo,this.type=void 0!==u?u:go,this.offset=new r(0,0),this.repeat=new r(1,1),this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==h?h:is,this.version=0,this.onUpdate=null}function o(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1}function s(t,e,n){this.uuid=fs.generateUUID(),this.width=t,this.height=e,this.scissor=new o(0,0,t,e),this.scissorTest=!1,this.viewport=new o(0,0,t,e),n=n||{},void 0===n.minFilter&&(n.minFilter=fo),this.texture=new a(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),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 l(t,e,n){s.call(this,t,e,n),this.activeCubeFace=0,this.activeMipMapLevel=0}function u(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1}function c(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function h(){this.elements=new Float32Array([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 d(t,e,n,i,r,o,s,l,u,c){t=void 0!==t?t:[],e=void 0!==e?e:$a,a.call(this,t,e,n,i,r,o,s,l,u,c),this.flipY=!1}function f(){this.seq=[],this.map={}}function p(t,e,n){var i=t[0];if(i<=0||i>0)return t;var r=e*n,a=vs[r];if(void 0===a&&(a=new Float32Array(r),vs[r]=a),0!==e){i.toArray(a,0);for(var o=1,s=0;o!==e;++o)s+=n,t[o].toArray(a,s)}return a}function m(t,e){var n=ys[e];void 0===n&&(n=new Int32Array(e),ys[e]=n);for(var i=0;i!==e;++i)n[i]=t.allocTextureUnit();return n}function g(t,e){t.uniform1f(this.addr,e)}function v(t,e){t.uniform1i(this.addr,e)}function y(t,e){void 0===e.x?t.uniform2fv(this.addr,e):t.uniform2f(this.addr,e.x,e.y)}function b(t,e){void 0!==e.x?t.uniform3f(this.addr,e.x,e.y,e.z):void 0!==e.r?t.uniform3f(this.addr,e.r,e.g,e.b):t.uniform3fv(this.addr,e)}function x(t,e){void 0===e.x?t.uniform4fv(this.addr,e):t.uniform4f(this.addr,e.x,e.y,e.z,e.w)}function _(t,e){t.uniformMatrix2fv(this.addr,!1,e.elements||e)}function w(t,e){t.uniformMatrix3fv(this.addr,!1,e.elements||e)}function M(t,e){t.uniformMatrix4fv(this.addr,!1,e.elements||e)}function S(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),n.setTexture2D(e||ms,i)}function E(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),n.setTextureCube(e||gs,i)}function k(t,e){t.uniform2iv(this.addr,e)}function T(t,e){t.uniform3iv(this.addr,e)}function C(t,e){t.uniform4iv(this.addr,e)}function P(t){switch(t){case 5126:return g;case 35664:return y;case 35665:return b;case 35666:return x;case 35674:return _;case 35675:return w;case 35676:return M;case 35678:return S;case 35680:return E;case 5124:case 35670:return v;case 35667:case 35671:return k;case 35668:case 35672:return T;case 35669:case 35673:return C}}function O(t,e){t.uniform1fv(this.addr,e)}function A(t,e){t.uniform1iv(this.addr,e)}function R(t,e){t.uniform2fv(this.addr,p(e,this.size,2))}function L(t,e){t.uniform3fv(this.addr,p(e,this.size,3))}function I(t,e){t.uniform4fv(this.addr,p(e,this.size,4))}function D(t,e){t.uniformMatrix2fv(this.addr,!1,p(e,this.size,4))}function N(t,e){t.uniformMatrix3fv(this.addr,!1,p(e,this.size,9))}function z(t,e){t.uniformMatrix4fv(this.addr,!1,p(e,this.size,16))}function B(t,e,n){var i=e.length,r=m(n,i);t.uniform1iv(this.addr,r);for(var a=0;a!==i;++a)n.setTexture2D(e[a]||ms,r[a])}function F(t,e,n){var i=e.length,r=m(n,i);t.uniform1iv(this.addr,r);for(var a=0;a!==i;++a)n.setTextureCube(e[a]||gs,r[a])}function U(t){switch(t){case 5126:return O;case 35664:return R;case 35665:return L;case 35666:return I;case 35674:return D;case 35675:return N;case 35676:return z;case 35678:return B;case 35680:return F;case 5124:case 35670:return A;case 35667:case 35671:return k;case 35668:case 35672:return T;case 35669:case 35673:return C}}function j(t,e,n){this.id=t,this.addr=n,this.setValue=P(e.type)}function W(t,e,n){this.id=t,this.addr=n,this.size=e.size,this.setValue=U(e.type)}function G(t){this.id=t,f.call(this)}function V(t,e){t.seq.push(e),t.map[e.id]=e}function H(t,e,n){var i=t.name,r=i.length;for(bs.lastIndex=0;;){var a=bs.exec(i),o=bs.lastIndex,s=a[1],l="]"===a[2],u=a[3];if(l&&(s|=0),void 0===u||"["===u&&o+2===r){V(n,void 0===u?new j(s,t,e):new W(s,t,e));break}var c=n.map,h=c[s];void 0===h&&(h=new G(s),V(n,h)),n=h}}function Y(t,e,n){f.call(this),this.renderer=n;for(var i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),r=0;r.001&&A.scale>.001&&(M.x=A.x,M.y=A.y,M.z=A.z,_=A.size*A.scale/g.w,w.x=_*y,w.y=_,p.uniform3f(h.screenPosition,M.x,M.y,M.z),p.uniform2f(h.scale,w.x,w.y),p.uniform1f(h.rotation,A.rotation),p.uniform1f(h.opacity,A.opacity),p.uniform3f(h.color,A.color.r,A.color.g,A.color.b),m.setBlending(A.blending,A.blendEquation,A.blendSrc,A.blendDst),t.setTexture2D(A.texture,1),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0))}}}m.enable(p.CULL_FACE),m.enable(p.DEPTH_TEST),m.setDepthWrite(!0),t.resetGLState()}}}function Q(t,e){function n(){var t=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),e=new Uint16Array([0,1,2,0,2,3]);o=p.createBuffer(),s=p.createBuffer(),p.bindBuffer(p.ARRAY_BUFFER,o),p.bufferData(p.ARRAY_BUFFER,t,p.STATIC_DRAW),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.bufferData(p.ELEMENT_ARRAY_BUFFER,e,p.STATIC_DRAW),l=i(),h={position:p.getAttribLocation(l,"position"),uv:p.getAttribLocation(l,"uv")},d={uvOffset:p.getUniformLocation(l,"uvOffset"),uvScale:p.getUniformLocation(l,"uvScale"),rotation:p.getUniformLocation(l,"rotation"),scale:p.getUniformLocation(l,"scale"),color:p.getUniformLocation(l,"color"),map:p.getUniformLocation(l,"map"),opacity:p.getUniformLocation(l,"opacity"),modelViewMatrix:p.getUniformLocation(l,"modelViewMatrix"),projectionMatrix:p.getUniformLocation(l,"projectionMatrix"),fogType:p.getUniformLocation(l,"fogType"),fogDensity:p.getUniformLocation(l,"fogDensity"),fogNear:p.getUniformLocation(l,"fogNear"),fogFar:p.getUniformLocation(l,"fogFar"),fogColor:p.getUniformLocation(l,"fogColor"),alphaTest:p.getUniformLocation(l,"alphaTest")};var n=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");n.width=8,n.height=8;var r=n.getContext("2d");r.fillStyle="white",r.fillRect(0,0,8,8),f=new a(n),f.needsUpdate=!0}function i(){var e=p.createProgram(),n=p.createShader(p.VERTEX_SHADER),i=p.createShader(p.FRAGMENT_SHADER);return p.shaderSource(n,["precision "+t.getPrecision()+" float;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform float rotation;","uniform vec2 scale;","uniform vec2 uvOffset;","uniform vec2 uvScale;","attribute vec2 position;","attribute vec2 uv;","varying vec2 vUV;","void main() {","vUV = uvOffset + uv * uvScale;","vec2 alignedPosition = position * scale;","vec2 rotatedPosition;","rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;","rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;","vec4 finalPosition;","finalPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );","finalPosition.xy += rotatedPosition;","finalPosition = projectionMatrix * finalPosition;","gl_Position = finalPosition;","}"].join("\n")),p.shaderSource(i,["precision "+t.getPrecision()+" float;","uniform vec3 color;","uniform sampler2D map;","uniform float opacity;","uniform int fogType;","uniform vec3 fogColor;","uniform float fogDensity;","uniform float fogNear;","uniform float fogFar;","uniform float alphaTest;","varying vec2 vUV;","void main() {","vec4 texture = texture2D( map, vUV );","if ( texture.a < alphaTest ) discard;","gl_FragColor = vec4( color * texture.xyz, texture.a * opacity );","if ( fogType > 0 ) {","float depth = gl_FragCoord.z / gl_FragCoord.w;","float fogFactor = 0.0;","if ( fogType == 1 ) {","fogFactor = smoothstep( fogNear, fogFar, depth );","} else {","const float LOG2 = 1.442695;","fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );","fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );","}","gl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );","}","}"].join("\n")),p.compileShader(n),p.compileShader(i),p.attachShader(e,n),p.attachShader(e,i),p.linkProgram(e),e}function r(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:e.id-t.id}var o,s,l,h,d,f,p=t.context,m=t.state,g=new c,v=new u,y=new c;this.render=function(i,a){if(0!==e.length){void 0===l&&n(),p.useProgram(l),m.initAttributes(),m.enableAttribute(h.position),m.enableAttribute(h.uv),m.disableUnusedAttributes(),m.disable(p.CULL_FACE),m.enable(p.BLEND),p.bindBuffer(p.ARRAY_BUFFER,o),p.vertexAttribPointer(h.position,2,p.FLOAT,!1,16,0),p.vertexAttribPointer(h.uv,2,p.FLOAT,!1,16,8),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.uniformMatrix4fv(d.projectionMatrix,!1,a.projectionMatrix.elements),m.activeTexture(p.TEXTURE0),p.uniform1i(d.map,0);var u=0,c=0,b=i.fog;b?(p.uniform3f(d.fogColor,b.color.r,b.color.g,b.color.b),b.isFog?(p.uniform1f(d.fogNear,b.near),p.uniform1f(d.fogFar,b.far),p.uniform1i(d.fogType,1),u=1,c=1):b.isFogExp2&&(p.uniform1f(d.fogDensity,b.density),p.uniform1i(d.fogType,2),u=2,c=2)):(p.uniform1i(d.fogType,0),u=0,c=0);for(var x=0,_=e.length;x<_;x++){var w=e[x];w.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,w.matrixWorld),w.z=-w.modelViewMatrix.elements[14]}e.sort(r);for(var M=[],x=0,_=e.length;x<_;x++){var w=e[x],S=w.material;if(!1!==S.visible){p.uniform1f(d.alphaTest,S.alphaTest),p.uniformMatrix4fv(d.modelViewMatrix,!1,w.modelViewMatrix.elements),w.matrixWorld.decompose(g,v,y),M[0]=y.x,M[1]=y.y;var E=0;i.fog&&S.fog&&(E=c),u!==E&&(p.uniform1i(d.fogType,E),u=E),null!==S.map?(p.uniform2f(d.uvOffset,S.map.offset.x,S.map.offset.y),p.uniform2f(d.uvScale,S.map.repeat.x,S.map.repeat.y)):(p.uniform2f(d.uvOffset,0,0),p.uniform2f(d.uvScale,1,1)),p.uniform1f(d.opacity,S.opacity),p.uniform3f(d.color,S.color.r,S.color.g,S.color.b),p.uniform1f(d.rotation,S.rotation),p.uniform2fv(d.scale,M),m.setBlending(S.blending,S.blendEquation,S.blendSrc,S.blendDst),m.setDepthTest(S.depthTest),m.setDepthWrite(S.depthWrite),S.map?t.setTexture2D(S.map,0):t.setTexture2D(f,0),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0)}}m.enable(p.CULL_FACE),t.resetGLState()}}}function J(){Object.defineProperty(this,"id",{value:Es++}),this.uuid=fs.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.lights=!0,this.blending=ma,this.side=oa,this.shading=ca,this.vertexColors=ha,this.opacity=1,this.transparent=!1,this.blendSrc=Pa,this.blendDst=Oa,this.blendEquation=xa,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=Fa,this.depthTest=!0,this.depthWrite=!0,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.alphaTest=0,this.premultipliedAlpha=!1,this.overdraw=0,this.visible=!0,this._needsUpdate=!0}function $(t){J.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,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function tt(t){J.call(this),this.type="MeshDepthMaterial",this.depthPacking=hs,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(t)}function et(t,e){this.min=void 0!==t?t:new c(1/0,1/0,1/0),this.max=void 0!==e?e:new c(-1/0,-1/0,-1/0)}function nt(t,e){this.center=void 0!==t?t:new c,this.radius=void 0!==e?e:0}function it(){this.elements=new Float32Array([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.")}function rt(t,e){this.normal=void 0!==t?t:new c(1,0,0),this.constant=void 0!==e?e:0}function at(t,e,n,i,r,a){this.planes=[void 0!==t?t:new rt,void 0!==e?e:new rt,void 0!==n?n:new rt,void 0!==i?i:new rt,void 0!==r?r:new rt,void 0!==a?a:new rt]}function ot(t,e,n,i){function a(e,n,i,r){var a=e.geometry,o=null,s=S,l=e.customDepthMaterial;if(i&&(s=E,l=e.customDistanceMaterial),l)o=l;else{var u=!1;n.morphTargets&&(a&&a.isBufferGeometry?u=a.morphAttributes&&a.morphAttributes.position&&a.morphAttributes.position.length>0:a&&a.isGeometry&&(u=a.morphTargets&&a.morphTargets.length>0));var c=e.isSkinnedMesh&&n.skinning,h=0;u&&(h|=_),c&&(h|=w),o=s[h]}if(t.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var d=o.uuid,f=n.uuid,p=k[d];void 0===p&&(p={},k[d]=p);var m=p[f];void 0===m&&(m=o.clone(),p[f]=m),o=m}o.visible=n.visible,o.wireframe=n.wireframe;var g=n.side;return B.renderSingleSided&&g==la&&(g=oa),B.renderReverseSided&&(g===oa?g=sa:g===sa&&(g=oa)),o.side=g,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,i&&void 0!==o.uniforms.lightPos&&o.uniforms.lightPos.value.copy(r),o}function l(t,e,n){if(!1!==t.visible){if(0!=(t.layers.mask&e.layers.mask)&&(t.isMesh||t.isLine||t.isPoints)&&t.castShadow&&(!1===t.frustumCulled||!0===f.intersectsObject(t))){!0===t.material.visible&&(t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),x.push(t))}for(var i=t.children,r=0,a=i.length;rn&&(n=t[e]);return n}function Tt(){return Ts++}function Ct(){Object.defineProperty(this,"id",{value:Tt()}),this.uuid=fs.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 Pt(){Object.defineProperty(this,"id",{value:Tt()}),this.uuid=fs.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}}function Ot(t,e){ct.call(this),this.type="Mesh",this.geometry=void 0!==t?t:new Pt,this.material=void 0!==e?e:new pt({color:16777215*Math.random()}),this.drawMode=ts,this.updateMorphTargets()}function At(t,e,n,i,r,a){Ct.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:a},this.fromBufferGeometry(new Rt(t,e,n,i,r,a)),this.mergeVertices()}function Rt(t,e,n,i,r,a){function o(t,e,n,i,r,a,o,m,g,v,y){var b,x,_=a/g,w=o/v,M=a/2,S=o/2,E=m/2,k=g+1,T=v+1,C=0,P=0,O=new c;for(x=0;x0?1:-1,h.push(O.x,O.y,O.z),d.push(b/g),d.push(1-x/v),C+=1}}for(x=0;x");return Jt(n)}var n=/#include +<([\w\d.]+)>/g;return t.replace(n,e)}function $t(t){function e(t,e,n,i){for(var r="",a=parseInt(e);a0?t.gammaFactor:1,g=qt(a,i,t.extensions),v=Xt(o),y=r.createProgram();n.isRawShaderMaterial?(f=[v,"\n"].filter(Kt).join("\n"),p=[g,v,"\n"].filter(Kt).join("\n")):(f=["precision "+i.precision+" float;","precision "+i.precision+" int;","#define SHADER_NAME "+n.__webglShader.name,v,i.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+m,"#define MAX_BONES "+i.maxBones,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+h:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.displacementMap&&i.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.vertexColors?"#define USE_COLOR":"",i.flatShading?"#define FLAT_SHADED":"",i.skinning?"#define USE_SKINNING":"",i.useVertexTexture?"#define BONE_TEXTURE":"",i.morphTargets?"#define USE_MORPHTARGETS":"",i.morphNormals&&!1===i.flatShading?"#define USE_MORPHNORMALS":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"","#define NUM_CLIPPING_PLANES "+i.numClippingPlanes,i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+u:"",i.sizeAttenuation?"#define USE_SIZEATTENUATION":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&t.extensions.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(Kt).join("\n"),p=[g,"precision "+i.precision+" float;","precision "+i.precision+" int;","#define SHADER_NAME "+n.__webglShader.name,v,i.alphaTest?"#define ALPHATEST "+i.alphaTest:"","#define GAMMA_FACTOR "+m,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+c:"",i.envMap?"#define "+h:"",i.envMap?"#define "+d:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.vertexColors?"#define USE_COLOR":"",i.gradientMap?"#define USE_GRADIENTMAP":"",i.flatShading?"#define FLAT_SHADED":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"","#define NUM_CLIPPING_PLANES "+i.numClippingPlanes,"#define UNION_CLIPPING_PLANES "+(i.numClippingPlanes-i.numClipIntersection),i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+u:"",i.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",i.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&t.extensions.get("EXT_frag_depth")?"#define USE_LOGDEPTHBUF_EXT":"",i.envMap&&t.extensions.get("EXT_shader_texture_lod")?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",i.toneMapping!==qa?"#define TONE_MAPPING":"",i.toneMapping!==qa?_s.tonemapping_pars_fragment:"",i.toneMapping!==qa?Yt("toneMapping",i.toneMapping):"",i.outputEncoding||i.mapEncoding||i.envMapEncoding||i.emissiveMapEncoding?_s.encodings_pars_fragment:"",i.mapEncoding?Vt("mapTexelToLinear",i.mapEncoding):"",i.envMapEncoding?Vt("envMapTexelToLinear",i.envMapEncoding):"",i.emissiveMapEncoding?Vt("emissiveMapTexelToLinear",i.emissiveMapEncoding):"",i.outputEncoding?Ht("linearToOutputTexel",i.outputEncoding):"",i.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Kt).join("\n")),s=Jt(s,i),s=Qt(s,i),l=Jt(l,i),l=Qt(l,i),n.isShaderMaterial||(s=$t(s),l=$t(l));var b=f+s,x=p+l,_=Wt(r,r.VERTEX_SHADER,b),w=Wt(r,r.FRAGMENT_SHADER,x);r.attachShader(y,_),r.attachShader(y,w),void 0!==n.index0AttributeName?r.bindAttribLocation(y,0,n.index0AttributeName):!0===i.morphTargets&&r.bindAttribLocation(y,0,"position"),r.linkProgram(y);var M=r.getProgramInfoLog(y),S=r.getShaderInfoLog(_),E=r.getShaderInfoLog(w),k=!0,T=!0;!1===r.getProgramParameter(y,r.LINK_STATUS)?(k=!1,console.error("THREE.WebGLProgram: shader error: ",r.getError(),"gl.VALIDATE_STATUS",r.getProgramParameter(y,r.VALIDATE_STATUS),"gl.getProgramInfoLog",M,S,E)):""!==M?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",M):""!==S&&""!==E||(T=!1),T&&(this.diagnostics={runnable:k,material:n,programLog:M,vertexShader:{log:S,prefix:f},fragmentShader:{log:E,prefix:p}}),r.deleteShader(_),r.deleteShader(w);var C;this.getUniforms=function(){return void 0===C&&(C=new Y(r,y,t)),C};var P;return this.getAttributes=function(){return void 0===P&&(P=Zt(r,y)),P},this.destroy=function(){r.deleteProgram(y),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.id=Cs++,this.code=e,this.usedTimes=1,this.program=y,this.vertexShader=_,this.fragmentShader=w,this}function ee(t,e){function n(t){if(e.floatVertexTextures&&t&&t.skeleton&&t.skeleton.useVertexTexture)return 1024;var n=e.maxVertexUniforms,i=Math.floor((n-20)/4),r=i;return void 0!==t&&t&&t.isSkinnedMesh&&(r=Math.min(t.skeleton.bones.length,r))0,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:r.premultipliedAlpha,alphaTest:r.alphaTest,doubleSided:r.side===la,flipSided:r.side===sa,depthPacking:void 0!==r.depthPacking&&r.depthPacking}},this.getProgramCode=function(t,e){var n=[];if(e.shaderID?n.push(e.shaderID):(n.push(t.fragmentShader),n.push(t.vertexShader)),void 0!==t.defines)for(var i in t.defines)n.push(i),n.push(t.defines[i]);for(var r=0;r65535?wt:xt)(a,1);return r(p,t.ELEMENT_ARRAY_BUFFER),i.wireframe=p,p}var c=new ne(t,e,n);return{getAttributeBuffer:s,getAttributeProperties:l,getWireframeAttribute:u,update:i}}function re(t,e,n,i,r,a,o){function s(t,e){if(t.width>e||t.height>e){var n=e/Math.max(t.width,t.height),i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=Math.floor(t.width*n),i.height=Math.floor(t.height*n);return i.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,i.width,i.height),console.warn("THREE.WebGLRenderer: image is too big ("+t.width+"x"+t.height+"). Resized to "+i.width+"x"+i.height,t),i}return t}function l(t){return fs.isPowerOfTwo(t.width)&&fs.isPowerOfTwo(t.height)}function u(t){if(t instanceof HTMLImageElement||t instanceof HTMLCanvasElement){var e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");e.width=fs.nearestPowerOfTwo(t.width),e.height=fs.nearestPowerOfTwo(t.height);return e.getContext("2d").drawImage(t,0,0,e.width,e.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+t.width+"x"+t.height+"). Resized to "+e.width+"x"+e.height,t),e}return t}function c(t){return t.wrapS!==so||t.wrapT!==so||t.minFilter!==uo&&t.minFilter!==fo}function h(e){return e===uo||e===co||e===ho?t.NEAREST:t.LINEAR}function d(t){var e=t.target;e.removeEventListener("dispose",d),p(e),T.textures--}function f(t){var e=t.target;e.removeEventListener("dispose",f),m(e),T.textures--}function p(e){var n=i.get(e);if(e.image&&n.__image__webglTextureCube)t.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)return;t.deleteTexture(n.__webglTexture)}i.delete(e)}function m(e){var n=i.get(e),r=i.get(e.texture);if(e){if(void 0!==r.__webglTexture&&t.deleteTexture(r.__webglTexture),e.depthTexture&&e.depthTexture.dispose(),e.isWebGLRenderTargetCube)for(var a=0;a<6;a++)t.deleteFramebuffer(n.__webglFramebuffer[a]),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer[a]);else t.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer);i.delete(e.texture),i.delete(e)}}function g(e,r){var a=i.get(e);if(e.version>0&&a.__version!==e.version){var o=e.image;if(void 0===o)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined",e);else{if(!1!==o.complete)return void x(a,e,r);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete",e)}}n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_2D,a.__webglTexture)}function v(e,o){var u=i.get(e);if(6===e.image.length)if(e.version>0&&u.__version!==e.version){u.__image__webglTextureCube||(e.addEventListener("dispose",d),u.__image__webglTextureCube=t.createTexture(),T.textures++),n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_CUBE_MAP,u.__image__webglTextureCube),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e.flipY);for(var c=e&&e.isCompressedTexture,h=e.image[0]&&e.image[0].isDataTexture,f=[],p=0;p<6;p++)f[p]=c||h?h?e.image[p].image:e.image[p]:s(e.image[p],r.maxCubemapSize);var m=f[0],g=l(m),v=a(e.format),y=a(e.type);b(t.TEXTURE_CUBE_MAP,e,g);for(var p=0;p<6;p++)if(c)for(var x,_=f[p].mipmaps,w=0,M=_.length;w-1?n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,x.width,x.height,0,x.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,x.width,x.height,0,v,y,x.data);else h?n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,f[p].width,f[p].height,0,v,y,f[p].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,v,y,f[p]);e.generateMipmaps&&g&&t.generateMipmap(t.TEXTURE_CUBE_MAP),u.__version=e.version,e.onUpdate&&e.onUpdate(e)}else n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_CUBE_MAP,u.__image__webglTextureCube)}function y(e,r){n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_CUBE_MAP,i.get(e).__webglTexture)}function b(n,o,s){var l;if(s?(t.texParameteri(n,t.TEXTURE_WRAP_S,a(o.wrapS)),t.texParameteri(n,t.TEXTURE_WRAP_T,a(o.wrapT)),t.texParameteri(n,t.TEXTURE_MAG_FILTER,a(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,a(o.minFilter))):(t.texParameteri(n,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(n,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),o.wrapS===so&&o.wrapT===so||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.",o),t.texParameteri(n,t.TEXTURE_MAG_FILTER,h(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,h(o.minFilter)),o.minFilter!==uo&&o.minFilter!==fo&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.",o)),l=e.get("EXT_texture_filter_anisotropic")){if(o.type===wo&&null===e.get("OES_texture_float_linear"))return;if(o.type===Mo&&null===e.get("OES_texture_half_float_linear"))return;(o.anisotropy>1||i.get(o).__currentAnisotropy)&&(t.texParameterf(n,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy)}}function x(e,i,o){void 0===e.__webglInit&&(e.__webglInit=!0,i.addEventListener("dispose",d),e.__webglTexture=t.createTexture(),T.textures++),n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_2D,e.__webglTexture),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,i.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,i.unpackAlignment);var h=s(i.image,r.maxTextureSize);c(i)&&!1===l(h)&&(h=u(h));var f=l(h),p=a(i.format),m=a(i.type);b(t.TEXTURE_2D,i,f);var g,v=i.mipmaps;if(i.isDepthTexture){var y=t.DEPTH_COMPONENT;if(i.type===wo){if(!C)throw new Error("Float Depth Texture only supported in WebGL2.0");y=t.DEPTH_COMPONENT32F}else C&&(y=t.DEPTH_COMPONENT16);i.format===Io&&y===t.DEPTH_COMPONENT&&i.type!==bo&&i.type!==_o&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=bo,m=a(i.type)),i.format===Do&&(y=t.DEPTH_STENCIL,i.type!==To&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=To,m=a(i.type))),n.texImage2D(t.TEXTURE_2D,0,y,h.width,h.height,0,p,m,null)}else if(i.isDataTexture)if(v.length>0&&f){for(var x=0,_=v.length;x<_;x++)g=v[x],n.texImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,p,m,g.data);i.generateMipmaps=!1}else n.texImage2D(t.TEXTURE_2D,0,p,h.width,h.height,0,p,m,h.data);else if(i.isCompressedTexture)for(var x=0,_=v.length;x<_;x++)g=v[x],i.format!==Oo&&i.format!==Po?n.getCompressedTextureFormats().indexOf(p)>-1?n.compressedTexImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,g.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,p,m,g.data);else if(v.length>0&&f){for(var x=0,_=v.length;x<_;x++)g=v[x],n.texImage2D(t.TEXTURE_2D,x,p,p,m,g);i.generateMipmaps=!1}else n.texImage2D(t.TEXTURE_2D,0,p,p,m,h);i.generateMipmaps&&f&&t.generateMipmap(t.TEXTURE_2D),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function _(e,r,o,s){var l=a(r.texture.format),u=a(r.texture.type);n.texImage2D(s,0,l,r.width,r.height,0,l,u,null),t.bindFramebuffer(t.FRAMEBUFFER,e),t.framebufferTexture2D(t.FRAMEBUFFER,o,s,i.get(r.texture).__webglTexture,0),t.bindFramebuffer(t.FRAMEBUFFER,null)}function w(e,n){t.bindRenderbuffer(t.RENDERBUFFER,e),n.depthBuffer&&!n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e)):n.depthBuffer&&n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e)):t.renderbufferStorage(t.RENDERBUFFER,t.RGBA4,n.width,n.height),t.bindRenderbuffer(t.RENDERBUFFER,null)}function M(e,n){if(n&&n.isWebGLRenderTargetCube)throw new Error("Depth Texture with cube render targets is not supported!");if(t.bindFramebuffer(t.FRAMEBUFFER,e),!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===Io)t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,r,0);else{if(n.depthTexture.format!==Do)throw new Error("Unknown depthTexture format");t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,r,0)}}function S(e){var n=i.get(e),r=!0===e.isWebGLRenderTargetCube;if(e.depthTexture){if(r)throw new Error("target.depthTexture not supported in Cube render targets");M(n.__webglFramebuffer,e)}else if(r){n.__webglDepthbuffer=[];for(var a=0;a<6;a++)t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer[a]),n.__webglDepthbuffer[a]=t.createRenderbuffer(),w(n.__webglDepthbuffer[a],e)}else t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer),n.__webglDepthbuffer=t.createRenderbuffer(),w(n.__webglDepthbuffer,e);t.bindFramebuffer(t.FRAMEBUFFER,null)}function E(e){var r=i.get(e),a=i.get(e.texture);e.addEventListener("dispose",f),a.__webglTexture=t.createTexture(),T.textures++;var o=!0===e.isWebGLRenderTargetCube,s=l(e);if(o){r.__webglFramebuffer=[];for(var u=0;u<6;u++)r.__webglFramebuffer[u]=t.createFramebuffer()}else r.__webglFramebuffer=t.createFramebuffer();if(o){n.bindTexture(t.TEXTURE_CUBE_MAP,a.__webglTexture),b(t.TEXTURE_CUBE_MAP,e.texture,s);for(var u=0;u<6;u++)_(r.__webglFramebuffer[u],e,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+u);e.texture.generateMipmaps&&s&&t.generateMipmap(t.TEXTURE_CUBE_MAP),n.bindTexture(t.TEXTURE_CUBE_MAP,null)}else n.bindTexture(t.TEXTURE_2D,a.__webglTexture),b(t.TEXTURE_2D,e.texture,s),_(r.__webglFramebuffer,e,t.COLOR_ATTACHMENT0,t.TEXTURE_2D),e.texture.generateMipmaps&&s&&t.generateMipmap(t.TEXTURE_2D),n.bindTexture(t.TEXTURE_2D,null);e.depthBuffer&&S(e)}function k(e){var r=e.texture;if(r.generateMipmaps&&l(e)&&r.minFilter!==uo&&r.minFilter!==fo){var a=e&&e.isWebGLRenderTargetCube?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,o=i.get(r).__webglTexture;n.bindTexture(a,o),t.generateMipmap(a),n.bindTexture(a,null)}}var T=o.memory,C="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext;this.setTexture2D=g,this.setTextureCube=v,this.setTextureCubeDynamic=y,this.setupRenderTarget=E,this.updateRenderTargetMipmap=k}function ae(){var t={};return{get:function(e){var n=e.uuid,i=t[n];return void 0===i&&(i={},t[n]=i),i},delete:function(e){delete t[e.uuid]},clear:function(){t={}}}}function oe(t,e,n){function i(){var e=!1,n=new o,i=null,r=new o;return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,a,o,s){!0===s&&(e*=o,i*=o,a*=o),n.set(e,i,a,o),!1===r.equals(n)&&(t.clearColor(e,i,a,o),r.copy(n))},reset:function(){e=!1,i=null,r.set(0,0,0,1)}}}function r(){var e=!1,n=null,i=null,r=null;return{setTest:function(e){e?f(t.DEPTH_TEST):p(t.DEPTH_TEST)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case Na:t.depthFunc(t.NEVER);break;case za:t.depthFunc(t.ALWAYS);break;case Ba:t.depthFunc(t.LESS);break;case Fa:t.depthFunc(t.LEQUAL);break;case Ua:t.depthFunc(t.EQUAL);break;case ja:t.depthFunc(t.GEQUAL);break;case Wa:t.depthFunc(t.GREATER);break;case Ga:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}else t.depthFunc(t.LEQUAL);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}}function a(){var e=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,u=null;return{setTest:function(e){e?f(t.STENCIL_TEST):p(t.STENCIL_TEST)},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,o){i===e&&r===n&&a===o||(t.stencilFunc(e,n,o),i=e,r=n,a=o)},setOp:function(e,n,i){o===e&&s===n&&l===i||(t.stencilOp(e,n,i),o=e,s=n,l=i)},setLocked:function(t){e=t},setClear:function(e){u!==e&&(t.clearStencil(e),u=e)},reset:function(){e=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,u=null}}}function s(e,n,i){var r=new Uint8Array(4),a=t.createTexture();t.bindTexture(e,a),t.texParameteri(e,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(e,t.TEXTURE_MAG_FILTER,t.NEAREST);for(var o=0;o=1,ct=null,ht={},dt=new o,ft=new o,pt={};return pt[t.TEXTURE_2D]=s(t.TEXTURE_2D,t.TEXTURE_2D,1),pt[t.TEXTURE_CUBE_MAP]=s(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),{buffers:{color:B,depth:F,stencil:U},init:l,initAttributes:u,enableAttribute:c,enableAttributeAndDivisor:h,disableUnusedAttributes:d,enable:f,disable:p,getCompressedTextureFormats:m,setBlending:g,setColorWrite:v,setDepthTest:y,setDepthWrite:b,setDepthFunc:x,setStencilTest:_,setStencilWrite:w,setStencilFunc:M,setStencilOp:S,setFlipSided:E,setCullFace:k,setLineWidth:T,setPolygonOffset:C,getScissorTest:P,setScissorTest:O,activeTexture:A,bindTexture:R,compressedTexImage2D:L,texImage2D:I,scissor:D,viewport:N,reset:z}}function se(t,e,n){function i(){if(void 0!==a)return a;var n=e.get("EXT_texture_filter_anisotropic");return a=null!==n?t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}function r(e){if("highp"===e){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}var a,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&&!!e.get("EXT_frag_depth"),u=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),c=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_TEXTURE_SIZE),d=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),f=t.getParameter(t.MAX_VERTEX_ATTRIBS),p=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),m=t.getParameter(t.MAX_VARYING_VECTORS),g=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),v=c>0,y=!!e.get("OES_texture_float");return{getMaxAnisotropy:i,getMaxPrecision:r,precision:o,logarithmicDepthBuffer:l,maxTextures:u,maxVertexTextures:c,maxTextureSize:h,maxCubemapSize:d,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:g,vertexTextures:v,floatFragmentTextures:y,floatVertexTextures:v&&y}}function le(t){var e={};return{get:function(n){if(void 0!==e[n])return e[n];var i;switch(n){case"WEBGL_depth_texture":i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;case"WEBGL_compressed_texture_etc1":i=t.getExtension("WEBGL_compressed_texture_etc1");break;default:i=t.getExtension(n)}return null===i&&console.warn("THREE.WebGLRenderer: "+n+" extension not supported."),e[n]=i,i}}}function ue(){function t(){u.value!==i&&(u.value=i,u.needsUpdate=r>0),n.numPlanes=r,n.numIntersection=0}function e(t,e,i,r){var a=null!==t?t.length:0,o=null;if(0!==a){if(o=u.value,!0!==r||null===o){var c=i+4*a,h=e.matrixWorldInverse;l.getNormalMatrix(h),(null===o||o.length=0){var c=a[l];if(void 0!==c){var h=c.normalized,d=c.itemSize,f=he.getAttributeProperties(c),p=f.__webglBuffer,m=f.type,g=f.bytesPerElement;if(c.isInterleavedBufferAttribute){var v=c.data,y=v.stride,b=c.offset;v&&v.isInstancedInterleavedBuffer?(te.enableAttributeAndDivisor(u,v.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=v.meshPerAttribute*v.count)):te.enableAttribute(u),Kt.bindBuffer(Kt.ARRAY_BUFFER,p),Kt.vertexAttribPointer(u,d,m,h,y*g,(i*y+b)*g)}else c.isInstancedBufferAttribute?(te.enableAttributeAndDivisor(u,c.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=c.meshPerAttribute*c.count)):te.enableAttribute(u),Kt.bindBuffer(Kt.ARRAY_BUFFER,p),Kt.vertexAttribPointer(u,d,m,h,0,i*d*g)}else if(void 0!==s){var x=s[l];if(void 0!==x)switch(x.length){case 2:Kt.vertexAttrib2fv(u,x);break;case 3:Kt.vertexAttrib3fv(u,x);break;case 4:Kt.vertexAttrib4fv(u,x);break;default:Kt.vertexAttrib1fv(u,x)}}}}te.disableUnusedAttributes()}function d(t,e){return Math.abs(e[0])-Math.abs(t[0])}function f(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.material.program&&e.material.program&&t.material.program!==e.material.program?t.material.program.id-e.material.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function p(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function m(t,e,n,i,r){var a,o;n.transparent?(a=it,o=++rt):(a=tt,o=++et);var s=a[o];void 0!==s?(s.id=t.id,s.object=t,s.geometry=e,s.material=n,s.z=Ht.z,s.group=r):(s={id:t.id,object:t,geometry:e,material:n,z:Ht.z,group:r},a.push(s))}function g(t){var e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Gt.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),y(Gt)}function v(t){return Gt.center.set(0,0,0),Gt.radius=.7071067811865476,Gt.applyMatrix4(t.matrixWorld),y(Gt)}function y(t){if(!Lt.intersectsSphere(t))return!1;var e=Dt.numPlanes;if(0===e)return!0;var n=ct.clippingPlanes,i=t.center,r=-t.radius,a=0;do{if(n[a].distanceToPoint(i)=0&&t.numSupportedMorphTargets++}if(t.morphNormals){t.numSupportedMorphNormals=0;for(var d=0;d=0&&t.numSupportedMorphNormals++}var f=i.__webglShader.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(i.numClippingPlanes=Dt.numPlanes,i.numIntersection=Dt.numIntersection,f.clippingPlanes=Dt.uniform),i.fog=e,i.lightsHash=Xt.hash,t.lights&&(f.ambientLightColor.value=Xt.ambient,f.directionalLights.value=Xt.directional,f.spotLights.value=Xt.spot,f.rectAreaLights.value=Xt.rectArea,f.pointLights.value=Xt.point,f.hemisphereLights.value=Xt.hemi,f.directionalShadowMap.value=Xt.directionalShadowMap,f.directionalShadowMatrix.value=Xt.directionalShadowMatrix,f.spotShadowMap.value=Xt.spotShadowMap,f.spotShadowMatrix.value=Xt.spotShadowMatrix,f.pointShadowMap.value=Xt.pointShadowMap,f.pointShadowMatrix.value=Xt.pointShadowMatrix);var p=i.program.getUniforms(),m=Y.seqWithValue(p.seq,f);i.uniformsList=m}function w(t){t.side===la?te.disable(Kt.CULL_FACE):te.enable(Kt.CULL_FACE),te.setFlipSided(t.side===sa),!0===t.transparent?te.setBlending(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha):te.setBlending(pa),te.setDepthFunc(t.depthFunc),te.setDepthTest(t.depthTest),te.setDepthWrite(t.depthWrite),te.setColorWrite(t.colorWrite),te.setPolygonOffset(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits)}function M(t,e,n,i){_t=0;var r=ne.get(n);if(jt&&(Wt||t!==vt)){var a=t===vt&&n.id===mt;Dt.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,t,r,a)}!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==e?n.needsUpdate=!0:n.lights&&r.lightsHash!==Xt.hash?n.needsUpdate=!0:void 0===r.numClippingPlanes||r.numClippingPlanes===Dt.numPlanes&&r.numIntersection===Dt.numIntersection||(n.needsUpdate=!0)),n.needsUpdate&&(_(n,e,i),n.needsUpdate=!1);var o=!1,s=!1,l=!1,u=r.program,c=u.getUniforms(),h=r.__webglShader.uniforms;if(u.id!==ht&&(Kt.useProgram(u.program),ht=u.id,o=!0,s=!0,l=!0),n.id!==mt&&(mt=n.id,s=!0),o||t!==vt){if(c.set(Kt,t,"projectionMatrix"),$t.logarithmicDepthBuffer&&c.setValue(Kt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),t!==vt&&(vt=t,s=!0,l=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var d=c.map.cameraPosition;void 0!==d&&d.setValue(Kt,Ht.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&c.setValue(Kt,"viewMatrix",t.matrixWorldInverse),c.set(Kt,ct,"toneMappingExposure"),c.set(Kt,ct,"toneMappingWhitePoint")}if(n.skinning){c.setOptional(Kt,i,"bindMatrix"),c.setOptional(Kt,i,"bindMatrixInverse");var f=i.skeleton;f&&($t.floatVertexTextures&&f.useVertexTexture?(c.set(Kt,f,"boneTexture"),c.set(Kt,f,"boneTextureWidth"),c.set(Kt,f,"boneTextureHeight")):c.setOptional(Kt,f,"boneMatrices"))}return s&&(n.lights&&D(h,l),e&&n.fog&&C(h,e),(n.isMeshBasicMaterial||n.isMeshLambertMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.isMeshNormalMaterial||n.isMeshDepthMaterial)&&S(h,n),n.isLineBasicMaterial?E(h,n):n.isLineDashedMaterial?(E(h,n),k(h,n)):n.isPointsMaterial?T(h,n):n.isMeshLambertMaterial?P(h,n):n.isMeshToonMaterial?A(h,n):n.isMeshPhongMaterial?O(h,n):n.isMeshPhysicalMaterial?L(h,n):n.isMeshStandardMaterial?R(h,n):n.isMeshDepthMaterial?n.displacementMap&&(h.displacementMap.value=n.displacementMap,h.displacementScale.value=n.displacementScale,h.displacementBias.value=n.displacementBias):n.isMeshNormalMaterial&&I(h,n),void 0!==h.ltcMat&&(h.ltcMat.value=THREE.UniformsLib.LTC_MAT_TEXTURE),void 0!==h.ltcMag&&(h.ltcMag.value=THREE.UniformsLib.LTC_MAG_TEXTURE),Y.upload(Kt,r.uniformsList,h,ct)),c.set(Kt,i,"modelViewMatrix"),c.set(Kt,i,"normalMatrix"),c.setValue(Kt,"modelMatrix",i.matrixWorld),u}function S(t,e){t.opacity.value=e.opacity,t.diffuse.value=e.color,e.emissive&&t.emissive.value.copy(e.emissive).multiplyScalar(e.emissiveIntensity),t.map.value=e.map,t.specularMap.value=e.specularMap,t.alphaMap.value=e.alphaMap,e.lightMap&&(t.lightMap.value=e.lightMap,t.lightMapIntensity.value=e.lightMapIntensity),e.aoMap&&(t.aoMap.value=e.aoMap,t.aoMapIntensity.value=e.aoMapIntensity);var n;if(e.map?n=e.map:e.specularMap?n=e.specularMap:e.displacementMap?n=e.displacementMap:e.normalMap?n=e.normalMap:e.bumpMap?n=e.bumpMap:e.roughnessMap?n=e.roughnessMap:e.metalnessMap?n=e.metalnessMap:e.alphaMap?n=e.alphaMap:e.emissiveMap&&(n=e.emissiveMap),void 0!==n){n.isWebGLRenderTarget&&(n=n.texture);var i=n.offset,r=n.repeat;t.offsetRepeat.value.set(i.x,i.y,r.x,r.y)}t.envMap.value=e.envMap,t.flipEnvMap.value=e.envMap&&e.envMap.isCubeTexture?-1:1,t.reflectivity.value=e.reflectivity,t.refractionRatio.value=e.refractionRatio}function E(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity}function k(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}function T(t,e){if(t.diffuse.value=e.color,t.opacity.value=e.opacity,t.size.value=e.size*kt,t.scale.value=.5*Et,t.map.value=e.map,null!==e.map){var n=e.map.offset,i=e.map.repeat;t.offsetRepeat.value.set(n.x,n.y,i.x,i.y)}}function C(t,e){t.fogColor.value=e.color,e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)}function P(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}function O(t,e){t.specular.value=e.specular,t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function A(t,e){O(t,e),e.gradientMap&&(t.gradientMap.value=e.gradientMap)}function R(t,e){t.roughness.value=e.roughness,t.metalness.value=e.metalness,e.roughnessMap&&(t.roughnessMap.value=e.roughnessMap),e.metalnessMap&&(t.metalnessMap.value=e.metalnessMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),e.envMap&&(t.envMapIntensity.value=e.envMapIntensity)}function L(t,e){t.clearCoat.value=e.clearCoat,t.clearCoatRoughness.value=e.clearCoatRoughness,R(t,e)}function I(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function D(t,e){t.ambientLightColor.needsUpdate=e,t.directionalLights.needsUpdate=e,t.pointLights.needsUpdate=e,t.spotLights.needsUpdate=e,t.rectAreaLights.needsUpdate=e,t.hemisphereLights.needsUpdate=e}function N(t){for(var e=0,n=0,i=t.length;n=$t.maxTextures&&console.warn("WebGLRenderer: trying to use "+t+" texture units while this GPU supports only "+$t.maxTextures),_t+=1,t}function F(t){var e;if(t===oo)return Kt.REPEAT;if(t===so)return Kt.CLAMP_TO_EDGE;if(t===lo)return Kt.MIRRORED_REPEAT;if(t===uo)return Kt.NEAREST;if(t===co)return Kt.NEAREST_MIPMAP_NEAREST;if(t===ho)return Kt.NEAREST_MIPMAP_LINEAR;if(t===fo)return Kt.LINEAR;if(t===po)return Kt.LINEAR_MIPMAP_NEAREST;if(t===mo)return Kt.LINEAR_MIPMAP_LINEAR;if(t===go)return Kt.UNSIGNED_BYTE;if(t===So)return Kt.UNSIGNED_SHORT_4_4_4_4;if(t===Eo)return Kt.UNSIGNED_SHORT_5_5_5_1;if(t===ko)return Kt.UNSIGNED_SHORT_5_6_5;if(t===vo)return Kt.BYTE;if(t===yo)return Kt.SHORT;if(t===bo)return Kt.UNSIGNED_SHORT;if(t===xo)return Kt.INT;if(t===_o)return Kt.UNSIGNED_INT;if(t===wo)return Kt.FLOAT;if(t===Mo&&null!==(e=Jt.get("OES_texture_half_float")))return e.HALF_FLOAT_OES;if(t===Co)return Kt.ALPHA;if(t===Po)return Kt.RGB;if(t===Oo)return Kt.RGBA;if(t===Ao)return Kt.LUMINANCE;if(t===Ro)return Kt.LUMINANCE_ALPHA;if(t===Io)return Kt.DEPTH_COMPONENT;if(t===Do)return Kt.DEPTH_STENCIL;if(t===xa)return Kt.FUNC_ADD;if(t===_a)return Kt.FUNC_SUBTRACT;if(t===wa)return Kt.FUNC_REVERSE_SUBTRACT;if(t===Ea)return Kt.ZERO;if(t===ka)return Kt.ONE;if(t===Ta)return Kt.SRC_COLOR;if(t===Ca)return Kt.ONE_MINUS_SRC_COLOR;if(t===Pa)return Kt.SRC_ALPHA;if(t===Oa)return Kt.ONE_MINUS_SRC_ALPHA;if(t===Aa)return Kt.DST_ALPHA;if(t===Ra)return Kt.ONE_MINUS_DST_ALPHA;if(t===La)return Kt.DST_COLOR;if(t===Ia)return Kt.ONE_MINUS_DST_COLOR;if(t===Da)return Kt.SRC_ALPHA_SATURATE;if((t===No||t===zo||t===Bo||t===Fo)&&null!==(e=Jt.get("WEBGL_compressed_texture_s3tc"))){if(t===No)return e.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===zo)return e.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===Bo)return e.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===Fo)return e.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((t===Uo||t===jo||t===Wo||t===Go)&&null!==(e=Jt.get("WEBGL_compressed_texture_pvrtc"))){if(t===Uo)return e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===jo)return e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===Wo)return e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===Go)return e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(t===Vo&&null!==(e=Jt.get("WEBGL_compressed_texture_etc1")))return e.COMPRESSED_RGB_ETC1_WEBGL;if((t===Ma||t===Sa)&&null!==(e=Jt.get("EXT_blend_minmax"))){if(t===Ma)return e.MIN_EXT;if(t===Sa)return e.MAX_EXT}return t===To&&null!==(e=Jt.get("WEBGL_depth_texture"))?e.UNSIGNED_INT_24_8_WEBGL:0}console.log("THREE.WebGLRenderer",Zr),t=t||{};var U=void 0!==t.canvas?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),j=void 0!==t.context?t.context:null,W=void 0!==t.alpha&&t.alpha,G=void 0===t.depth||t.depth,V=void 0===t.stencil||t.stencil,H=void 0!==t.antialias&&t.antialias,X=void 0===t.premultipliedAlpha||t.premultipliedAlpha,Z=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,J=[],tt=[],et=-1,it=[],rt=-1,st=new Float32Array(8),lt=[],ut=[];this.domElement=U,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=Xa,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var ct=this,ht=null,dt=null,ft=null,mt=-1,gt="",vt=null,yt=new o,bt=null,xt=new o,_t=0,wt=new q(0),Mt=0,St=U.width,Et=U.height,kt=1,Tt=new o(0,0,St,Et),Ct=!1,At=new o(0,0,St,Et),Lt=new at,Dt=new ue,jt=!1,Wt=!1,Gt=new nt,Vt=new h,Ht=new c,Yt=new h,qt=new h,Xt={hash:"",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],shadows:[]},Zt={calls:0,vertices:0,faces:0,points:0};this.info={render:Zt,memory:{geometries:0,textures:0},programs:null};var Kt;try{var Qt={alpha:W,depth:G,stencil:V,antialias:H,premultipliedAlpha:X,preserveDrawingBuffer:Z};if(null===(Kt=j||U.getContext("webgl",Qt)||U.getContext("experimental-webgl",Qt)))throw null!==U.getContext("webgl")?"Error creating WebGL context with your selected attributes.":"Error creating WebGL context.";void 0===Kt.getShaderPrecisionFormat&&(Kt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}}),U.addEventListener("webglcontextlost",r,!1)}catch(t){console.error("THREE.WebGLRenderer: "+t)}var Jt=new le(Kt);Jt.get("WEBGL_depth_texture"),Jt.get("OES_texture_float"),Jt.get("OES_texture_float_linear"),Jt.get("OES_texture_half_float"),Jt.get("OES_texture_half_float_linear"),Jt.get("OES_standard_derivatives"),Jt.get("ANGLE_instanced_arrays"),Jt.get("OES_element_index_uint")&&(Pt.MaxIndex=4294967296);var $t=new se(Kt,Jt,t),te=new oe(Kt,Jt,F),ne=new ae,ce=new re(Kt,Jt,te,ne,$t,F,this.info),he=new ie(Kt,ne,this.info),de=new ee(this,$t),fe=new Ut;this.info.programs=de.programs;var pe,me,ge,ve,ye=new Ft(Kt,Jt,Zt),be=new Bt(Kt,Jt,Zt);n(),this.context=Kt,this.capabilities=$t,this.extensions=Jt,this.properties=ne,this.state=te;var xe=new ot(this,Xt,he,$t);this.shadowMap=xe;var _e=new Q(this,lt),we=new K(this,ut);this.getContext=function(){return Kt},this.getContextAttributes=function(){return Kt.getContextAttributes()},this.forceContextLoss=function(){Jt.get("WEBGL_lose_context").loseContext()},this.getMaxAnisotropy=function(){return $t.getMaxAnisotropy()},this.getPrecision=function(){return $t.precision},this.getPixelRatio=function(){return kt},this.setPixelRatio=function(t){void 0!==t&&(kt=t,this.setSize(At.z,At.w,!1))},this.getSize=function(){return{width:St,height:Et}},this.setSize=function(t,e,n){St=t,Et=e,U.width=t*kt,U.height=e*kt,!1!==n&&(U.style.width=t+"px",U.style.height=e+"px"),this.setViewport(0,0,t,e)},this.setViewport=function(t,e,n,i){te.viewport(At.set(t,e,n,i))},this.setScissor=function(t,e,n,i){te.scissor(Tt.set(t,e,n,i))},this.setScissorTest=function(t){te.setScissorTest(Ct=t)},this.getClearColor=function(){return wt},this.setClearColor=function(t,e){wt.set(t),Mt=void 0!==e?e:1,te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X)},this.getClearAlpha=function(){return Mt},this.setClearAlpha=function(t){Mt=t,te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X)},this.clear=function(t,e,n){var i=0;(void 0===t||t)&&(i|=Kt.COLOR_BUFFER_BIT),(void 0===e||e)&&(i|=Kt.DEPTH_BUFFER_BIT),(void 0===n||n)&&(i|=Kt.STENCIL_BUFFER_BIT),Kt.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.clearTarget=function(t,e,n,i){this.setRenderTarget(t),this.clear(e,n,i)},this.resetGLState=i,this.dispose=function(){it=[],rt=-1,tt=[],et=-1,U.removeEventListener("webglcontextlost",r,!1)},this.renderBufferImmediate=function(t,e,n){te.initAttributes();var i=ne.get(t);t.hasPositions&&!i.position&&(i.position=Kt.createBuffer()),t.hasNormals&&!i.normal&&(i.normal=Kt.createBuffer()),t.hasUvs&&!i.uv&&(i.uv=Kt.createBuffer()),t.hasColors&&!i.color&&(i.color=Kt.createBuffer());var r=e.getAttributes();if(t.hasPositions&&(Kt.bindBuffer(Kt.ARRAY_BUFFER,i.position),Kt.bufferData(Kt.ARRAY_BUFFER,t.positionArray,Kt.DYNAMIC_DRAW),te.enableAttribute(r.position),Kt.vertexAttribPointer(r.position,3,Kt.FLOAT,!1,0,0)),t.hasNormals){if(Kt.bindBuffer(Kt.ARRAY_BUFFER,i.normal),!n.isMeshPhongMaterial&&!n.isMeshStandardMaterial&&!n.isMeshNormalMaterial&&n.shading===ua)for(var a=0,o=3*t.count;a8&&(f.length=8);for(var v=i.morphAttributes,p=0,m=f.length;p0&&S.renderInstances(i,O,R):S.render(O,R)}},this.render=function(t,e,n,i){if(void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");gt="",mt=-1,vt=null,!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),e.matrixWorldInverse.getInverse(e.matrixWorld),Vt.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),Lt.setFromMatrix(Vt),J.length=0,et=-1,rt=-1,lt.length=0,ut.length=0,Wt=this.localClippingEnabled,jt=Dt.init(this.clippingPlanes,Wt,e),b(t,e),tt.length=et+1,it.length=rt+1,!0===ct.sortObjects&&(tt.sort(f),it.sort(p)),jt&&Dt.beginShadows(),N(J),xe.render(t,e),z(J,e),jt&&Dt.endShadows(),Zt.calls=0,Zt.vertices=0,Zt.faces=0,Zt.points=0,void 0===n&&(n=null),this.setRenderTarget(n);var r=t.background;if(null===r?te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X):r&&r.isColor&&(te.buffers.color.setClear(r.r,r.g,r.b,1,X),i=!0),(this.autoClear||i)&&this.clear(this.autoClearColor,this.autoClearDepth,this.autoClearStencil),r&&r.isCubeTexture?(void 0===ge&&(ge=new Nt,ve=new Ot(new Rt(5,5,5),new $({uniforms:Ss.cube.uniforms,vertexShader:Ss.cube.vertexShader,fragmentShader:Ss.cube.fragmentShader,side:sa,depthTest:!1,depthWrite:!1,fog:!1}))),ge.projectionMatrix.copy(e.projectionMatrix),ge.matrixWorld.extractRotation(e.matrixWorld),ge.matrixWorldInverse.getInverse(ge.matrixWorld),ve.material.uniforms.tCube.value=r,ve.modelViewMatrix.multiplyMatrices(ge.matrixWorldInverse,ve.matrixWorld),he.update(ve),ct.renderBufferDirect(ge,null,ve.geometry,ve.material,ve,null)):r&&r.isTexture&&(void 0===pe&&(pe=new zt(-1,1,1,-1,0,1),me=new Ot(new It(2,2),new pt({depthTest:!1,depthWrite:!1,fog:!1}))),me.material.map=r,he.update(me),ct.renderBufferDirect(pe,null,me.geometry,me.material,me,null)),t.overrideMaterial){var a=t.overrideMaterial;x(tt,t,e,a),x(it,t,e,a)}else te.setBlending(pa),x(tt,t,e),x(it,t,e);_e.render(t,e),we.render(t,e,xt),n&&ce.updateRenderTargetMipmap(n),te.setDepthTest(!0),te.setDepthWrite(!0),te.setColorWrite(!0)},this.setFaceCulling=function(t,e){te.setCullFace(t),te.setFlipSided(e===ea)},this.allocTextureUnit=B,this.setTexture2D=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTarget&&(t||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),t=!0),e=e.texture),ce.setTexture2D(e,n)}}(),this.setTexture=function(){var t=!1;return function(e,n){t||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),t=!0),ce.setTexture2D(e,n)}}(),this.setTextureCube=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTargetCube&&(t||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),t=!0),e=e.texture),e&&e.isCubeTexture||Array.isArray(e.image)&&6===e.image.length?ce.setTextureCube(e,n):ce.setTextureCubeDynamic(e,n)}}(),this.getCurrentRenderTarget=function(){return dt},this.setRenderTarget=function(t){dt=t,t&&void 0===ne.get(t).__webglFramebuffer&&ce.setupRenderTarget(t);var e,n=t&&t.isWebGLRenderTargetCube;if(t){var i=ne.get(t);e=n?i.__webglFramebuffer[t.activeCubeFace]:i.__webglFramebuffer,yt.copy(t.scissor),bt=t.scissorTest,xt.copy(t.viewport)}else e=null,yt.copy(Tt).multiplyScalar(kt),bt=Ct,xt.copy(At).multiplyScalar(kt);if(ft!==e&&(Kt.bindFramebuffer(Kt.FRAMEBUFFER,e),ft=e),te.scissor(yt),te.setScissorTest(bt),te.viewport(xt),n){var r=ne.get(t.texture);Kt.framebufferTexture2D(Kt.FRAMEBUFFER,Kt.COLOR_ATTACHMENT0,Kt.TEXTURE_CUBE_MAP_POSITIVE_X+t.activeCubeFace,r.__webglTexture,t.activeMipMapLevel)}},this.readRenderTargetPixels=function(t,e,n,i,r,a){if(!1===(t&&t.isWebGLRenderTarget))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");var o=ne.get(t).__webglFramebuffer;if(o){var s=!1;o!==ft&&(Kt.bindFramebuffer(Kt.FRAMEBUFFER,o),s=!0);try{var l=t.texture,u=l.format,c=l.type;if(u!==Oo&&F(u)!==Kt.getParameter(Kt.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!(c===go||F(c)===Kt.getParameter(Kt.IMPLEMENTATION_COLOR_READ_TYPE)||c===wo&&(Jt.get("OES_texture_float")||Jt.get("WEBGL_color_buffer_float"))||c===Mo&&Jt.get("EXT_color_buffer_half_float")))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");Kt.checkFramebufferStatus(Kt.FRAMEBUFFER)===Kt.FRAMEBUFFER_COMPLETE?e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&Kt.readPixels(e,n,i,r,F(u),F(c),a):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{s&&Kt.bindFramebuffer(Kt.FRAMEBUFFER,ft)}}}}function he(t,e){this.name="",this.color=new q(t),this.density=void 0!==e?e:25e-5}function de(t,e,n){this.name="",this.color=new q(t),this.near=void 0!==e?e:1,this.far=void 0!==n?n:1e3}function fe(){ct.call(this),this.type="Scene",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function pe(t,e,n,i,r){ct.call(this),this.lensFlares=[],this.positionScreen=new c,this.customUpdateCallback=void 0,void 0!==t&&this.add(t,e,n,i,r)}function me(t){J.call(this),this.type="SpriteMaterial",this.color=new q(16777215),this.map=null,this.rotation=0,this.fog=!1,this.lights=!1,this.setValues(t)}function ge(t){ct.call(this),this.type="Sprite",this.material=void 0!==t?t:new me}function ve(){ct.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function ye(t,e,n){if(this.useVertexTexture=void 0===n||n,this.identityMatrix=new h,t=t||[],this.bones=t.slice(0),this.useVertexTexture){var i=Math.sqrt(4*this.bones.length);i=fs.nextPowerOfTwo(Math.ceil(i)),i=Math.max(i,4),this.boneTextureWidth=i,this.boneTextureHeight=i,this.boneMatrices=new Float32Array(this.boneTextureWidth*this.boneTextureHeight*4),this.boneTexture=new X(this.boneMatrices,this.boneTextureWidth,this.boneTextureHeight,Oo,wo)}else this.boneMatrices=new Float32Array(16*this.bones.length);if(void 0===e)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else{console.warn("THREE.Skeleton bonInverses is the wrong length."),this.boneInverses=[];for(var r=0,a=this.bones.length;r=t.HAVE_CURRENT_DATA&&(h.needsUpdate=!0)}a.call(this,t,e,n,i,r,o,s,l,u),this.generateMipmaps=!1;var h=this;c()}function Ce(t,e,n,i,r,o,s,l,u,c,h,d){a.call(this,null,o,s,l,u,c,i,r,h,d),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}function Pe(t,e,n,i,r,o,s,l,u){a.call(this,t,e,n,i,r,o,s,l,u),this.needsUpdate=!0}function Oe(t,e,n,i,r,o,s,l,u,c){if((c=void 0!==c?c:Io)!==Io&&c!==Do)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===Io&&(n=bo),void 0===n&&c===Do&&(n=To),a.call(this,null,i,r,o,s,l,c,n,u),this.image={width:t,height:e},this.magFilter=void 0!==s?s:uo,this.minFilter=void 0!==l?l:uo,this.flipY=!1,this.generateMipmaps=!1}function Ae(t){function e(t,e){return t-e}Pt.call(this),this.type="WireframeGeometry";var n,i,r,a,o,s,l,u,h=[],d=[0,0],f={},p=["a","b","c"];if(t&&t.isGeometry){var m=t.faces;for(n=0,r=m.length;n.9&&a<.1&&(e<.2&&(m[t+0]+=1),n<.2&&(m[t+2]+=1),i<.2&&(m[t+4]+=1))}}function s(t){p.push(t.x,t.y,t.z)}function l(e,n){var i=3*e;n.x=t[i+0],n.y=t[i+1],n.z=t[i+2]}function u(){for(var t=new c,e=new c,n=new c,i=new c,a=new r,o=new r,s=new r,l=0,u=0;l0)&&m.push(w,M,E),(l!==n-1||u0&&u(!0),e>0&&u(!1)),this.setIndex(d),this.addAttribute("position",new Mt(f,3)),this.addAttribute("normal",new Mt(p,3)),this.addAttribute("uv",new Mt(m,2))}function cn(t,e,n,i,r,a,o){ln.call(this,0,t,e,n,i,r,a,o),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function hn(t,e,n,i,r,a,o){un.call(this,0,t,e,n,i,r,a,o),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function dn(t,e,n,i){Ct.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new fn(t,e,n,i))}function fn(t,e,n,i){Pt.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},t=t||50,e=void 0!==e?Math.max(3,e):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var a,o,s=[],l=[],u=[],h=[],d=new c,f=new r;for(l.push(0,0,0),u.push(0,0,1),h.push(.5,.5),o=0,a=3;o<=e;o++,a+=3){var p=n+o/e*i;d.x=t*Math.cos(p),d.y=t*Math.sin(p),l.push(d.x,d.y,d.z),u.push(0,0,1),f.x=(l[a]/t+1)/2,f.y=(l[a+1]/t+1)/2,h.push(f.x,f.y)}for(a=1;a<=e;a++)s.push(a,a+1,0);this.setIndex(s),this.addAttribute("position",new Mt(l,3)),this.addAttribute("normal",new Mt(u,3)),this.addAttribute("uv",new Mt(h,2))}function pn(){$.call(this,{uniforms:xs.merge([Ms.lights,{opacity:{value:1}}]),vertexShader:_s.shadow_vert,fragmentShader:_s.shadow_frag}),this.lights=!0,this.transparent=!0,Object.defineProperties(this,{opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}}})}function mn(t){$.call(this,t),this.type="RawShaderMaterial"}function gn(t){this.uuid=fs.generateUUID(),this.type="MultiMaterial",this.materials=Array.isArray(t)?t:[],this.visible=!0}function vn(t){J.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new q(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 q(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(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(t)}function yn(t){vn.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(t)}function bn(t){J.call(this),this.type="MeshPhongMaterial",this.color=new q(16777215),this.specular=new q(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new q(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Va,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(t)}function xn(t){bn.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function _n(t){J.call(this,t),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(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(t)}function wn(t){J.call(this),this.type="MeshLambertMaterial",this.color=new q(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new q(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Va,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(t)}function Mn(t){J.call(this),this.type="LineDashedMaterial",this.color=new q(16777215),this.linewidth=1,this.scale=1,this.dashSize=3,this.gapSize=1,this.lights=!1,this.setValues(t)}function Sn(t,e,n){var i=this,r=!1,a=0,o=0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){o++,!1===r&&void 0!==i.onStart&&i.onStart(t,a,o),r=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,o),a===o&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)}}function En(t){this.manager=void 0!==t?t:Ls}function kn(t){this.manager=void 0!==t?t:Ls,this._parser=null}function Tn(t){this.manager=void 0!==t?t:Ls,this._parser=null}function Cn(t){this.manager=void 0!==t?t:Ls}function Pn(t){this.manager=void 0!==t?t:Ls}function On(t){this.manager=void 0!==t?t:Ls}function An(t,e){ct.call(this),this.type="Light",this.color=new q(t),this.intensity=void 0!==e?e:1,this.receiveShadow=void 0}function Rn(t,e,n){An.call(this,t,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(ct.DefaultUp),this.updateMatrix(),this.groundColor=new q(e)}function Ln(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new r(512,512),this.map=null,this.matrix=new h}function In(){Ln.call(this,new Nt(50,1,.5,500))}function Dn(t,e,n,i,r,a){An.call(this,t,e),this.type="SpotLight",this.position.copy(ct.DefaultUp),this.updateMatrix(),this.target=new ct,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(t){this.intensity=t/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 In}function Nn(t,e,n,i){An.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(t){this.intensity=t/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new Ln(new Nt(90,1,.5,500))}function zn(){Ln.call(this,new zt(-5,5,5,-5,.5,500))}function Bn(t,e){An.call(this,t,e),this.type="DirectionalLight",this.position.copy(ct.DefaultUp),this.updateMatrix(),this.target=new ct,this.shadow=new zn}function Fn(t,e){An.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function Un(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function jn(t,e,n,i){Un.call(this,t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Wn(t,e,n,i){Un.call(this,t,e,n,i)}function Gn(t,e,n,i){Un.call(this,t,e,n,i)}function Vn(t,e,n,i){if(void 0===t)throw new Error("track name is undefined");if(void 0===e||0===e.length)throw new Error("no keyframes in track named "+t);this.name=t,this.times=Is.convertArray(e,this.TimeBufferType),this.values=Is.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation),this.validate(),this.optimize()}function Hn(t,e,n,i){Vn.call(this,t,e,n,i)}function Yn(t,e,n,i){Un.call(this,t,e,n,i)}function qn(t,e,n,i){Vn.call(this,t,e,n,i)}function Xn(t,e,n,i){Vn.call(this,t,e,n,i)}function Zn(t,e,n,i){Vn.call(this,t,e,n,i)}function Kn(t,e,n){Vn.call(this,t,e,n)}function Qn(t,e,n,i){Vn.call(this,t,e,n,i)}function Jn(t,e,n,i){Vn.apply(this,arguments)}function $n(t,e,n){this.name=t,this.tracks=n,this.duration=void 0!==e?e:-1,this.uuid=fs.generateUUID(),this.duration<0&&this.resetDuration(),this.optimize()}function ti(t){this.manager=void 0!==t?t:Ls,this.textures={}}function ei(t){this.manager=void 0!==t?t:Ls}function ni(){this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){}}function ii(t){"boolean"==typeof t&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=void 0!==t?t:Ls,this.withCredentials=!1}function ri(t){this.manager=void 0!==t?t:Ls,this.texturePath=""}function ai(t,e,n,i,r){var a=.5*(i-e),o=.5*(r-n),s=t*t;return(2*n-2*i+a+o)*(t*s)+(-3*n+3*i-2*a-o)*s+a*t+n}function oi(t,e){var n=1-t;return n*n*e}function si(t,e){return 2*(1-t)*t*e}function li(t,e){return t*t*e}function ui(t,e,n,i){return oi(t,e)+si(t,n)+li(t,i)}function ci(t,e){var n=1-t;return n*n*n*e}function hi(t,e){var n=1-t;return 3*n*n*t*e}function di(t,e){return 3*(1-t)*t*t*e}function fi(t,e){return t*t*t*e}function pi(t,e,n,i,r){return ci(t,e)+hi(t,n)+di(t,i)+fi(t,r)}function mi(){}function gi(t,e){this.v1=t,this.v2=e}function vi(){this.curves=[],this.autoClose=!1}function yi(t,e,n,i,r,a,o,s){this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s||0}function bi(t){this.points=void 0===t?[]:t}function xi(t,e,n,i){this.v0=t,this.v1=e,this.v2=n,this.v3=i}function _i(t,e,n){this.v0=t,this.v1=e,this.v2=n}function wi(t){vi.call(this),this.currentPoint=new r,t&&this.fromPoints(t)}function Mi(){wi.apply(this,arguments),this.holes=[]}function Si(){this.subPaths=[],this.currentPath=null}function Ei(t){this.data=t}function ki(t){this.manager=void 0!==t?t:Ls}function Ti(t){this.manager=void 0!==t?t:Ls}function Ci(t,e,n,i){An.call(this,t,e),this.type="RectAreaLight",this.position.set(0,1,0),this.updateMatrix(),this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function Pi(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Nt,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Nt,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function Oi(t,e,n){ct.call(this),this.type="CubeCamera";var i=new Nt(90,1,t,e);i.up.set(0,-1,0),i.lookAt(new c(1,0,0)),this.add(i);var r=new Nt(90,1,t,e);r.up.set(0,-1,0),r.lookAt(new c(-1,0,0)),this.add(r);var a=new Nt(90,1,t,e);a.up.set(0,0,1),a.lookAt(new c(0,1,0)),this.add(a);var o=new Nt(90,1,t,e);o.up.set(0,0,-1),o.lookAt(new c(0,-1,0)),this.add(o);var s=new Nt(90,1,t,e);s.up.set(0,-1,0),s.lookAt(new c(0,0,1)),this.add(s);var u=new Nt(90,1,t,e);u.up.set(0,-1,0),u.lookAt(new c(0,0,-1)),this.add(u);var h={format:Po,magFilter:fo,minFilter:fo};this.renderTarget=new l(n,n,h),this.updateCubeMap=function(t,e){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,l=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,t.render(e,i,n),n.activeCubeFace=1,t.render(e,r,n),n.activeCubeFace=2,t.render(e,a,n),n.activeCubeFace=3,t.render(e,o,n),n.activeCubeFace=4,t.render(e,s,n),n.texture.generateMipmaps=l,n.activeCubeFace=5,t.render(e,u,n),t.setRenderTarget(null)}}function Ai(){ct.call(this),this.type="AudioListener",this.context=Bs.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null}function Ri(t){ct.call(this),this.type="Audio",this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function Li(t){Ri.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Ii(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=void 0!==e?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function Di(t,e,n){this.binding=t,this.valueSize=n;var i,r=Float64Array;switch(e){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}function Ni(t,e,n){this.path=e,this.parsedPath=n||Ni.parseTrackName(e),this.node=Ni.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function zi(t){this.uuid=fs.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var e={};this._indicesByUUID=e;for(var n=0,i=arguments.length;n!==i;++n)e[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}}function Bi(t,e,n){this._mixer=t,this._clip=e,this._localRoot=n||null;for(var i=e.tracks,r=i.length,a=new Array(r),o={endingStart:Qo,endingEnd:Qo},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=Yo,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 Fi(t){this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function Ui(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}function ji(){Pt.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function Wi(t,e,n,i){this.uuid=fs.generateUUID(),this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}function Gi(t,e){this.uuid=fs.generateUUID(),this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.onUploadCallback=function(){},this.version=0}function Vi(t,e,n){Gi.call(this,t,e),this.meshPerAttribute=n||1}function Hi(t,e,n){mt.call(this,t,e),this.meshPerAttribute=n||1}function Yi(t,e,n,i){this.ray=new st(t,e),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 qi(t,e){return t.distance-e.distance}function Xi(t,e,n,i){if(!1!==t.visible&&(t.raycast(e,n),!0===i))for(var r=t.children,a=0,o=r.length;a0?1:+t}),void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n>=4,n[r]=e[19===r?3&t|8:t]);return n.join("")}}(),clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*fs.DEG2RAD},radToDeg:function(t){return t*fs.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}};r.prototype={constructor:r,isVector2:!0,get width(){return this.x},set width(t){this.x=t},get height(){return this.y},set height(t){this.y=t},set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new r,e=new r),t.set(n,n),e.set(i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/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(t){return this.x*t.x+this.y*t.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length())},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},distanceToManhattan:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,a=this.y-t.y;return this.x=r*n-a*i+t.x,this.y=r*i+a*n+t.y,this}};var ps=0;a.DEFAULT_IMAGE=void 0,a.DEFAULT_MAPPING=Ja,a.prototype={constructor:a,isTexture:!0,set needsUpdate(t){!0===t&&this.version++},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){if(void 0!==t.textures[this.uuid])return t.textures[this.uuid];var e={metadata:{version:4.4,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],wrap:[this.wrapS,this.wrapT],minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(void 0!==this.image){var n=this.image;void 0===n.uuid&&(n.uuid=fs.generateUUID()),void 0===t.images[n.uuid]&&(t.images[n.uuid]={uuid:n.uuid,url:function(t){var e;return void 0!==t.toDataURL?e=t:(e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),e.width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0,t.width,t.height)),e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}(n)}),e.image=n.uuid}return t.textures[this.uuid]=e,e},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping===Ja){if(t.multiply(this.repeat),t.add(this.offset),t.x<0||t.x>1)switch(this.wrapS){case oo:t.x=t.x-Math.floor(t.x);break;case so:t.x=t.x<0?0:1;break;case lo:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case oo:t.y=t.y-Math.floor(t.y);break;case so:t.y=t.y<0?0:1;break;case lo:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}this.flipY&&(t.y=1-t.y)}}},Object.assign(a.prototype,i.prototype),o.prototype={constructor:o,isVector4:!0,set:function(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t,this.w*=t):(this.x=0,this.y=0,this.z=0,this.w=0),this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=this.w,a=t.elements;return this.x=a[0]*e+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*e+a[5]*n+a[9]*i+a[13]*r,this.z=a[2]*e+a[6]*n+a[10]*i+a[14]*r,this.w=a[3]*e+a[7]*n+a[11]*i+a[15]*r,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e,n,i,r,a=t.elements,o=a[0],s=a[4],l=a[8],u=a[1],c=a[5],h=a[9],d=a[2],f=a[6],p=a[10];if(Math.abs(s-u)<.01&&Math.abs(l-d)<.01&&Math.abs(h-f)<.01){if(Math.abs(s+u)<.1&&Math.abs(l+d)<.1&&Math.abs(h+f)<.1&&Math.abs(o+c+p-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;var m=(o+1)/2,g=(c+1)/2,v=(p+1)/2,y=(s+u)/4,b=(l+d)/4,x=(h+f)/4;return m>g&&m>v?m<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(m),i=y/n,r=b/n):g>v?g<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(g),n=y/i,r=x/i):v<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=b/r,i=x/r),this.set(n,i,r,e),this}var _=Math.sqrt((f-h)*(f-h)+(l-d)*(l-d)+(u-s)*(u-s));return Math.abs(_)<.001&&(_=1),this.x=(f-h)/_,this.y=(l-d)/_,this.z=(u-s)/_,this.w=Math.acos((o+c+p-1)/2),this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new o,e=new o),t.set(n,n,n,n),e.set(i,i,i,i),this.clamp(t,e)}}(),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(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan: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())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}},s.prototype={constructor:s,isWebGLRenderTarget:!0,setSize:function(t,e){this.width===t&&this.height===e||(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}},Object.assign(s.prototype,i.prototype),l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.isWebGLRenderTargetCube=!0,u.prototype={constructor:u,get x(){return this._x},set x(t){this._x=t,this.onChangeCallback()},get y(){return this._y},set y(t){this._y=t,this.onChangeCallback()},get z(){return this._z},set z(t){this._z=t,this.onChangeCallback()},get w(){return this._w},set w(t){this._w=t,this.onChangeCallback()},set:function(t,e,n,i){return this._x=t,this._y=e,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(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!1===(t&&t.isEuler))throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=Math.cos(t._x/2),i=Math.cos(t._y/2),r=Math.cos(t._z/2),a=Math.sin(t._x/2),o=Math.sin(t._y/2),s=Math.sin(t._z/2),l=t.order;return"XYZ"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r-a*o*s):"YXZ"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r+a*o*s):"ZXY"===l?(this._x=a*i*r-n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r-a*o*s):"ZYX"===l?(this._x=a*i*r-n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r+a*o*s):"YZX"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r-a*o*s):"XZY"===l&&(this._x=a*i*r-n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r+a*o*s),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e,n=t.elements,i=n[0],r=n[4],a=n[8],o=n[1],s=n[5],l=n[9],u=n[2],c=n[6],h=n[10],d=i+s+h;return d>0?(e=.5/Math.sqrt(d+1),this._w=.25/e,this._x=(c-l)*e,this._y=(a-u)*e,this._z=(o-r)*e):i>s&&i>h?(e=2*Math.sqrt(1+i-s-h),this._w=(c-l)/e,this._x=.25*e,this._y=(r+o)/e,this._z=(a+u)/e):s>h?(e=2*Math.sqrt(1+s-i-h),this._w=(a-u)/e,this._x=(r+o)/e,this._y=.25*e,this._z=(l+c)/e):(e=2*Math.sqrt(1+h-i-s),this._w=(o-r)/e,this._x=(a+u)/e,this._y=(l+c)/e,this._z=.25*e),this.onChangeCallback(),this},setFromUnitVectors:function(){var t,e;return function(n,i){return void 0===t&&(t=new c),e=n.dot(i)+1,e<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()}}(),inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this.onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,i=t._y,r=t._z,a=t._w,o=e._x,s=e._y,l=e._z,u=e._w;return this._x=n*u+a*o+i*l-r*s,this._y=i*u+a*s+r*o-n*l,this._z=r*u+a*l+n*s-i*o,this._w=a*u-n*o-i*s-r*l,this.onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var n=this._x,i=this._y,r=this._z,a=this._w,o=a*t._w+n*t._x+i*t._y+r*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=n,this._y=i,this._z=r,this;var s=Math.sqrt(1-o*o);if(Math.abs(s)<.001)return this._w=.5*(a+this._w),this._x=.5*(n+this._x),this._y=.5*(i+this._y),this._z=.5*(r+this._z),this;var l=Math.atan2(s,o),u=Math.sin((1-e)*l)/s,c=Math.sin(e*l)/s;return this._w=a*u+this._w*c,this._x=n*u+this._x*c,this._y=i*u+this._y*c,this._z=r*u+this._z*c,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},Object.assign(u,{slerp:function(t,e,n,i){return n.copy(t).slerp(e,i)},slerpFlat:function(t,e,n,i,r,a,o){var s=n[i+0],l=n[i+1],u=n[i+2],c=n[i+3],h=r[a+0],d=r[a+1],f=r[a+2],p=r[a+3];if(c!==p||s!==h||l!==d||u!==f){var m=1-o,g=s*h+l*d+u*f+c*p,v=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,g*v);m=Math.sin(m*x)/b,o=Math.sin(o*x)/b}var _=o*v;if(s=s*m+h*_,l=l*m+d*_,u=u*m+f*_,c=c*m+p*_,m===1-o){var w=1/Math.sqrt(s*s+l*l+u*u+c*c);s*=w,l*=w,u*=w,c*=w}}t[e]=s,t[e+1]=l,t[e+2]=u,t[e+3]=c}}),c.prototype={constructor:c,isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t;return function(e){return!1===(e&&e.isEuler)&&console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),void 0===t&&(t=new u),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t;return function(e,n){return void 0===t&&(t=new u),this.applyQuaternion(t.setFromAxisAngle(e,n))}}(),applyMatrix3:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;this.x=r[0]*e+r[4]*n+r[8]*i+r[12],this.y=r[1]*e+r[5]*n+r[9]*i+r[13],this.z=r[2]*e+r[6]*n+r[10]*i+r[14];var a=r[3]*e+r[7]*n+r[11]*i+r[15];return this.divideScalar(a)},applyQuaternion:function(t){var e=this.x,n=this.y,i=this.z,r=t.x,a=t.y,o=t.z,s=t.w,l=s*e+a*i-o*n,u=s*n+o*e-r*i,c=s*i+r*n-a*e,h=-r*e-a*n-o*i;return this.x=l*s+h*-r+u*-o-c*-a,this.y=u*s+h*-a+c*-r-l*-o,this.z=c*s+h*-o+l*-a-u*-r,this},project:function(){var t;return function(e){return void 0===t&&(t=new h),t.multiplyMatrices(e.projectionMatrix,t.getInverse(e.matrixWorld)),this.applyMatrix4(t)}}(),unproject:function(){var t;return function(e){return void 0===t&&(t=new h),t.multiplyMatrices(e.matrixWorld,t.getInverse(e.projectionMatrix)),this.applyMatrix4(t)}}(),transformDirection:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new c,e=new c),t.set(n,n,n),e.set(i,i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/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(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){if(void 0!==e)return console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e);var n=this.x,i=this.y,r=this.z;return this.x=i*t.z-r*t.y,this.y=r*t.x-n*t.z,this.z=n*t.y-i*t.x,this},crossVectors:function(t,e){var n=t.x,i=t.y,r=t.z,a=e.x,o=e.y,s=e.z;return this.x=i*s-r*o,this.y=r*a-n*s,this.z=n*o-i*a,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t;return function(e){return void 0===t&&(t=new c),t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t;return function(e){return void 0===t&&(t=new c),this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){var e=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq());return Math.acos(fs.clamp(e,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i},distanceToManhattan:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){var e=Math.sin(t.phi)*t.radius;return this.x=e*Math.sin(t.theta),this.y=Math.cos(t.phi)*t.radius,this.z=e*Math.cos(t.theta),this},setFromCylindrical:function(t){return this.x=t.radius*Math.sin(t.theta),this.y=t.y,this.z=t.radius*Math.cos(t.theta),this},setFromMatrixPosition:function(t){return this.setFromMatrixColumn(t,3)},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this},setFromMatrixColumn:function(t,e){if("number"==typeof t){console.warn("THREE.Vector3: setFromMatrixColumn now expects ( matrix, index ).");var n=t;t=e,e=n}return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}},h.prototype={constructor:h,isMatrix4:!0,set:function(t,e,n,i,r,a,o,s,l,u,c,h,d,f,p,m){var g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=a,g[9]=o,g[13]=s,g[2]=l,g[6]=u,g[10]=c,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[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 h).fromArray(this.elements)},copy:function(t){return this.elements.set(t.elements),this},copyPosition:function(t){var e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this},extractRotation:function(){var t;return function(e){void 0===t&&(t=new c);var n=this.elements,i=e.elements,r=1/t.setFromMatrixColumn(e,0).length(),a=1/t.setFromMatrixColumn(e,1).length(),o=1/t.setFromMatrixColumn(e,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[4]=i[4]*a,n[5]=i[5]*a,n[6]=i[6]*a,n[8]=i[8]*o,n[9]=i[9]*o,n[10]=i[10]*o,this}}(),makeRotationFromEuler:function(t){!1===(t&&t.isEuler)&&console.error("THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,n=t.x,i=t.y,r=t.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(i),l=Math.sin(i),u=Math.cos(r),c=Math.sin(r);if("XYZ"===t.order){var h=a*u,d=a*c,f=o*u,p=o*c;e[0]=s*u,e[4]=-s*c,e[8]=l,e[1]=d+f*l,e[5]=h-p*l,e[9]=-o*s,e[2]=p-h*l,e[6]=f+d*l,e[10]=a*s}else if("YXZ"===t.order){var m=s*u,g=s*c,v=l*u,y=l*c;e[0]=m+y*o,e[4]=v*o-g,e[8]=a*l,e[1]=a*c,e[5]=a*u,e[9]=-o,e[2]=g*o-v,e[6]=y+m*o,e[10]=a*s}else if("ZXY"===t.order){var m=s*u,g=s*c,v=l*u,y=l*c;e[0]=m-y*o,e[4]=-a*c,e[8]=v+g*o,e[1]=g+v*o,e[5]=a*u,e[9]=y-m*o,e[2]=-a*l,e[6]=o,e[10]=a*s}else if("ZYX"===t.order){var h=a*u,d=a*c,f=o*u,p=o*c;e[0]=s*u,e[4]=f*l-d,e[8]=h*l+p,e[1]=s*c,e[5]=p*l+h,e[9]=d*l-f,e[2]=-l,e[6]=o*s,e[10]=a*s}else if("YZX"===t.order){var b=a*s,x=a*l,_=o*s,w=o*l;e[0]=s*u,e[4]=w-b*c,e[8]=_*c+x,e[1]=c,e[5]=a*u,e[9]=-o*u,e[2]=-l*u,e[6]=x*c+_,e[10]=b-w*c}else if("XZY"===t.order){var b=a*s,x=a*l,_=o*s,w=o*l;e[0]=s*u,e[4]=-c,e[8]=l*u,e[1]=b*c+w,e[5]=a*u,e[9]=x*c-_,e[2]=_*c-x,e[6]=o*u,e[10]=w*c+b}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(t){var e=this.elements,n=t.x,i=t.y,r=t.z,a=t.w,o=n+n,s=i+i,l=r+r,u=n*o,c=n*s,h=n*l,d=i*s,f=i*l,p=r*l,m=a*o,g=a*s,v=a*l;return e[0]=1-(d+p),e[4]=c-v,e[8]=h+g,e[1]=c+v,e[5]=1-(u+p),e[9]=f-m,e[2]=h-g,e[6]=f+m,e[10]=1-(u+d),e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},lookAt:function(){var t,e,n;return function(i,r,a){void 0===t&&(t=new c,e=new c,n=new c);var o=this.elements;return n.subVectors(i,r).normalize(),0===n.lengthSq()&&(n.z=1),t.crossVectors(a,n).normalize(),0===t.lengthSq()&&(n.z+=1e-4,t.crossVectors(a,n).normalize()),e.crossVectors(n,t),o[0]=t.x,o[4]=e.x,o[8]=n.x,o[1]=t.y,o[5]=e.y,o[9]=n.y,o[2]=t.z,o[6]=e.z,o[10]=n.z,this}}(),multiply:function(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,i=e.elements,r=this.elements,a=n[0],o=n[4],s=n[8],l=n[12],u=n[1],c=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],_=i[0],w=i[4],M=i[8],S=i[12],E=i[1],k=i[5],T=i[9],C=i[13],P=i[2],O=i[6],A=i[10],R=i[14],L=i[3],I=i[7],D=i[11],N=i[15];return r[0]=a*_+o*E+s*P+l*L,r[4]=a*w+o*k+s*O+l*I,r[8]=a*M+o*T+s*A+l*D,r[12]=a*S+o*C+s*R+l*N,r[1]=u*_+c*E+h*P+d*L,r[5]=u*w+c*k+h*O+d*I,r[9]=u*M+c*T+h*A+d*D,r[13]=u*S+c*C+h*R+d*N,r[2]=f*_+p*E+m*P+g*L,r[6]=f*w+p*k+m*O+g*I,r[10]=f*M+p*T+m*A+g*D,r[14]=f*S+p*C+m*R+g*N,r[3]=v*_+y*E+b*P+x*L,r[7]=v*w+y*k+b*O+x*I,r[11]=v*M+y*T+b*A+x*D,r[15]=v*S+y*C+b*R+x*N,this},multiplyToArray:function(t,e,n){var i=this.elements;return this.multiplyMatrices(t,e),n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t;return function(e){void 0===t&&(t=new c);for(var n=0,i=e.count;n 0.0 ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\t\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t\treturn distanceFalloff * maxDistanceCutoffFactor;\n#else\n\t\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n#endif\n\t\t}\n\t\treturn 1.0;\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 ltcTextureCoords( const in GeometricContext geometry, 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\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 P = geometry.position;\n\tfloat theta = acos( dot( N, V ) );\n\tvec2 uv = vec2(\n\t\tsqrt( saturate( roughness ) ),\n\t\tsaturate( theta / ( 0.5 * PI ) ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nvoid clipQuadToHorizon( inout vec3 L[5], out int n ) {\n\tint config = 0;\n\tif ( L[0].z > 0.0 ) config += 1;\n\tif ( L[1].z > 0.0 ) config += 2;\n\tif ( L[2].z > 0.0 ) config += 4;\n\tif ( L[3].z > 0.0 ) config += 8;\n\tn = 0;\n\tif ( config == 0 ) {\n\t} else if ( config == 1 ) {\n\t\tn = 3;\n\t\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\n\t\tL[2] = -L[3].z * L[0] + L[0].z * L[3];\n\t} else if ( config == 2 ) {\n\t\tn = 3;\n\t\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\n\t\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\n\t} else if ( config == 3 ) {\n\t\tn = 4;\n\t\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\n\t\tL[3] = -L[3].z * L[0] + L[0].z * L[3];\n\t} else if ( config == 4 ) {\n\t\tn = 3;\n\t\tL[0] = -L[3].z * L[2] + L[2].z * L[3];\n\t\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\n\t} else if ( config == 5 ) {\n\t\tn = 0;\n\t} else if ( config == 6 ) {\n\t\tn = 4;\n\t\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\n\t\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\n\t} else if ( config == 7 ) {\n\t\tn = 5;\n\t\tL[4] = -L[3].z * L[0] + L[0].z * L[3];\n\t\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\n\t} else if ( config == 8 ) {\n\t\tn = 3;\n\t\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\n\t\tL[1] = -L[2].z * L[3] + L[3].z * L[2];\n\t\tL[2] = L[3];\n\t} else if ( config == 9 ) {\n\t\tn = 4;\n\t\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\n\t\tL[2] = -L[2].z * L[3] + L[3].z * L[2];\n\t} else if ( config == 10 ) {\n\t\tn = 0;\n\t} else if ( config == 11 ) {\n\t\tn = 5;\n\t\tL[4] = L[3];\n\t\tL[3] = -L[2].z * L[3] + L[3].z * L[2];\n\t\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\n\t} else if ( config == 12 ) {\n\t\tn = 4;\n\t\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\n\t\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\n\t} else if ( config == 13 ) {\n\t\tn = 5;\n\t\tL[4] = L[3];\n\t\tL[3] = L[2];\n\t\tL[2] = -L[1].z * L[2] + L[2].z * L[1];\n\t\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\n\t} else if ( config == 14 ) {\n\t\tn = 5;\n\t\tL[4] = -L[0].z * L[3] + L[3].z * L[0];\n\t\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\n\t} else if ( config == 15 ) {\n\t\tn = 4;\n\t}\n\tif ( n == 3 )\n\t\tL[3] = L[0];\n\tif ( n == 4 )\n\t\tL[4] = L[0];\n}\nfloat integrateLtcBrdfOverRectEdge( vec3 v1, vec3 v2 ) {\n\tfloat cosTheta = dot( v1, v2 );\n\tfloat theta = acos( cosTheta );\n\tfloat res = cross( v1, v2 ).z * ( ( theta > 0.001 ) ? theta / sin( theta ) : 1.0 );\n\treturn res;\n}\nvoid initRectPoints( const in vec3 pos, const in vec3 halfWidth, const in vec3 halfHeight, out vec3 rectPoints[4] ) {\n\trectPoints[0] = pos - halfWidth - halfHeight;\n\trectPoints[1] = pos + halfWidth - halfHeight;\n\trectPoints[2] = pos + halfWidth + halfHeight;\n\trectPoints[3] = pos - halfWidth + halfHeight;\n}\nvec3 integrateLtcBrdfOverRect( const in GeometricContext geometry, const in mat3 brdfMat, const in vec3 rectPoints[4] ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 P = geometry.position;\n\tvec3 T1, T2;\n\tT1 = normalize(V - N * dot( V, N ));\n\tT2 = - cross( N, T1 );\n\tmat3 brdfWrtSurface = brdfMat * transpose( mat3( T1, T2, N ) );\n\tvec3 clippedRect[5];\n\tclippedRect[0] = brdfWrtSurface * ( rectPoints[0] - P );\n\tclippedRect[1] = brdfWrtSurface * ( rectPoints[1] - P );\n\tclippedRect[2] = brdfWrtSurface * ( rectPoints[2] - P );\n\tclippedRect[3] = brdfWrtSurface * ( rectPoints[3] - P );\n\tint n;\n\tclipQuadToHorizon(clippedRect, n);\n\tif ( n == 0 )\n\t\treturn vec3( 0, 0, 0 );\n\tclippedRect[0] = normalize( clippedRect[0] );\n\tclippedRect[1] = normalize( clippedRect[1] );\n\tclippedRect[2] = normalize( clippedRect[2] );\n\tclippedRect[3] = normalize( clippedRect[3] );\n\tclippedRect[4] = normalize( clippedRect[4] );\n\tfloat sum = 0.0;\n\tsum += integrateLtcBrdfOverRectEdge( clippedRect[0], clippedRect[1] );\n\tsum += integrateLtcBrdfOverRectEdge( clippedRect[1], clippedRect[2] );\n\tsum += integrateLtcBrdfOverRectEdge( clippedRect[2], clippedRect[3] );\n\tif (n >= 4)\n\t\tsum += integrateLtcBrdfOverRectEdge( clippedRect[3], clippedRect[4] );\n\tif (n == 5)\n\t\tsum += integrateLtcBrdfOverRectEdge( clippedRect[4], clippedRect[0] );\n\tsum = max( 0.0, sum );\n\tvec3 Lo_i = vec3( sum, sum, sum );\n\treturn Lo_i;\n}\nvec3 Rect_Area_Light_Specular_Reflectance(\n\t\tconst in GeometricContext geometry,\n\t\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight,\n\t\tconst in float roughness,\n\t\tconst in sampler2D ltcMat, const in sampler2D ltcMag ) {\n\tvec3 rectPoints[4];\n\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\n\tvec2 uv = ltcTextureCoords( geometry, roughness );\n\tvec4 brdfLtcApproxParams, t;\n\tbrdfLtcApproxParams = texture2D( ltcMat, uv );\n\tt = texture2D( ltcMat, uv );\n\tfloat brdfLtcScalar = texture2D( ltcMag, uv ).a;\n\tmat3 brdfLtcApproxMat = mat3(\n\t\tvec3( 1, 0, t.y ),\n\t\tvec3( 0, t.z, 0 ),\n\t\tvec3( t.w, 0, t.x )\n\t);\n\tvec3 specularReflectance = integrateLtcBrdfOverRect( geometry, brdfLtcApproxMat, rectPoints );\n\tspecularReflectance *= brdfLtcScalar;\n\treturn specularReflectance;\n}\nvec3 Rect_Area_Light_Diffuse_Reflectance(\n\t\tconst in GeometricContext geometry,\n\t\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight ) {\n\tvec3 rectPoints[4];\n\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\n\tmat3 diffuseBrdfMat = mat3(1);\n\tvec3 diffuseReflectance = integrateLtcBrdfOverRect( geometry, diffuseBrdfMat, rectPoints );\n\treturn diffuseReflectance;\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 = dFdx( surf_pos );\n\t\tvec3 vSigmaY = dFdy( surf_pos );\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\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\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; ++ i ) {\n\t\tvec4 plane = clippingPlanes[ i ];\n\t\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t\t\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; ++ i ) {\n\t\t\tvec4 plane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\tif ( clipped ) discard;\n\t\n\t#endif\n#endif\n",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\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 )\n\tvarying vec3 vViewPosition;\n#endif\n",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\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 transpose( const in mat3 v ) {\n\tmat3 tmp;\n\ttmp[0] = vec3(v[0].x, v[1].x, v[2].x);\n\ttmp[1] = vec3(v[0].y, v[1].y, v[2].y);\n\ttmp[2] = vec3(v[0].z, v[1].z, v[2].z);\n\treturn tmp;\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(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:"#ifdef FLIP_SIDED\n\tobjectNormal = -objectNormal;\n#endif\nvec3 transformedNormal = normalMatrix * objectNormal;\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 += normal * ( 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.xyz, vec3( gammaFactor ) ), value.w );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\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.w );\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.w );\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.xyz * value.w * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.x, 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.x, 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, flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\tvec2 sampleUV;\n\t\tsampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );\n\t\tsampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\tvec4 envColor = texture2D( envMap, sampleUV );\n\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\tvec3 reflectView = flipNormal * 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\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_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:"\n#ifdef USE_FOG\nfogDepth = -mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n varying 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\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\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\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\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:"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};\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 ltcMat;\tuniform sampler2D ltcMag;\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#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( 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(queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent));\n\t\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\t\tvec2 sampleUV;\n\t\t\tsampleUV.y = saturate( reflectVec.y * 0.5 + 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",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};\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_BlinnPhong( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 matDiffColor = material.diffuseColor;\n\t\tvec3 matSpecColor = material.specularColor;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = BlinnExponentToGGXRoughness( material.specularShininess );\n\t\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\n\t\t\t\tgeometry,\n\t\t\t\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\n\t\t\t\troughness,\n\t\t\t\tltcMat, ltcMag );\n\t\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\n\t\t\t\tgeometry,\n\t\t\t\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\n\t\treflectedLight.directSpecular += lightColor * matSpecColor * spec / PI2;\n\t\treflectedLight.directDiffuse += lightColor * matDiffColor * diff / PI2;\n\t}\n#endif\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_Direct_RectArea\t\tRE_Direct_RectArea_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 matDiffColor = material.diffuseColor;\n\t\tvec3 matSpecColor = material.specularColor;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\n\t\t\t\tgeometry,\n\t\t\t\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\n\t\t\t\troughness,\n\t\t\t\tltcMat, ltcMag );\n\t\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\n\t\t\t\tgeometry,\n\t\t\t\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\n\t\treflectedLight.directSpecular += lightColor * matSpecColor * spec;\n\t\treflectedLight.directDiffuse += lightColor * matDiffColor * diff;\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_template:"\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\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 ] ) : 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\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\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\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#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 ( NUM_HEMI_LIGHTS > 0 )\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\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tirradiance += getLightProbeIndirectIrradiance( geometry, 8 );\n\t#endif\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tvec3 radiance = getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), 8 );\n\t#ifndef STANDARD\n\t\tvec3 clearCoatRadiance = getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), 8 );\n\t#else\n\t\tvec3 clearCoatRadiance = vec3( 0.0 );\n\t#endif\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:"#ifdef USE_LOGDEPTHBUF\n\tuniform float logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n#endif\n",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n\tuniform float logDepthBufFC;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tgl_Position.z = log2(max( EPSILON, gl_Position.w + 1.0 )) * logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t#else\n\t\tgl_Position.z = (gl_Position.z - 1.0) * 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\tvec4 mapTexel = texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) * offsetRepeat.zw + offsetRepeat.xy );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n",map_particle_pars_fragment:"#ifdef USE_MAP\n\tuniform vec4 offsetRepeat;\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.r;\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_flip:"#ifdef DOUBLE_SIDED\n\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n#else\n\tfloat flipNormal = 1.0;\n#endif\n",normal_fragment:"#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 ) * flipNormal;\n#endif\n#ifdef USE_NORMALMAP\n\tnormal = perturbNormal2Arb( -vViewPosition, normal );\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\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 S = normalize( q0 * st1.t - q1 * st0.t );\n\t\tvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\n\t\tvec3 N = normalize( surf_norm );\n\t\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\tmapN.xy = normalScale * mapN.xy;\n\t\tmat3 tsn = mat3( S, T, N );\n\t\treturn normalize( tsn * mapN );\n\t}\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 1.0 - 2.0 * rgb.xyz;\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:"#ifdef USE_SKINNING\n\tvec4 mvPosition = modelViewMatrix * skinned;\n#else\n\tvec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\n#endif\ngl_Position = projectionMatrix * mvPosition;\n",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.r;\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\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\treturn (\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\treturn (\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\treturn texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn 1.0;\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 ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\tfloat dp = ( length( lightToPosition ) - shadowBias ) / 1000.0;\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\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\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\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\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\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\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 ] ) : 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 boneTextureWidth;\n\t\tuniform int boneTextureHeight;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureWidth ) );\n\t\t\tfloat y = floor( j / float( boneTextureWidth ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureWidth );\n\t\t\tfloat dy = 1.0 / float( boneTextureHeight );\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\tskinned = bindMatrixInverse * skinned;\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:"#define saturate(a) clamp( a, 0.0, 1.0 )\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 vec4 offsetRepeat;\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 = uv * offsetRepeat.zw + offsetRepeat.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( PHONG ) || defined( PHYSICAL ) || defined( LAMBERT ) || defined ( USE_SHADOWMAP )\n\t#ifdef USE_SKINNING\n\t\tvec4 worldPosition = modelMatrix * skinned;\n\t#else\n\t\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n\t#endif\n#endif\n",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldPosition;\n#include \nvoid main() {\n\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\n\tgl_FragColor.a *= opacity;\n}\n",cube_vert:"varying vec3 vWorldPosition;\n#include \nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}\n",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 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 \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}\n",distanceRGBA_frag:"uniform vec3 lightPos;\nvarying vec4 vWorldPosition;\n#include \n#include \n#include \nvoid main () {\n\t#include \n\tgl_FragColor = packDepthToRGBA( length( vWorldPosition.xyz - lightPos.xyz ) / 1000.0 );\n}\n",distanceRGBA_vert:"varying vec4 vWorldPosition;\n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition;\n}\n",equirect_frag:"uniform sampler2D tEquirect;\nuniform float tFlip;\nvarying vec3 vWorldPosition;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldPosition );\n\tvec2 sampleUV;\n\tsampleUV.y = saturate( tFlip * direction.y * -0.5 + 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 vWorldPosition;\n#include \nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}\n",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \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 \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvLineDistance = scale * lineDistance;\n\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}\n",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \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 \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_ENVMAP\n\t#include \n\t#include \n\t#include \n\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \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 \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \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 \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\n\t#include \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 \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \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 \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \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 \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \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 \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshphysical_vert:"#define PHYSICAL\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}\n",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}\n",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}\n",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#ifdef USE_SIZEATTENUATION\n\t\tgl_PointSize = size * ( scale / - mvPosition.z );\n\t#else\n\t\tgl_PointSize = size;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}\n",shadow_frag:"uniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tgl_FragColor = vec4( 0.0, 0.0, 0.0, opacity * ( 1.0 - getShadowMask() ) );\n}\n",shadow_vert:"#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n}\n"};q.prototype={constructor:q,isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this},setScalar:function(t){return this.r=t,this.g=t,this.b=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(){function t(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}return function(e,n,i){if(e=fs.euclideanModulo(e,1),n=fs.clamp(n,0,1),i=fs.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=t(a,r,e+1/3),this.g=t(a,r,e),this.b=t(a,r,e-1/3)}return this}}(),setStyle:function(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){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,e(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,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(a)){var o=parseFloat(i[1])/360,s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(o,s,l)}}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(t)){var u=n[1],c=u.length;if(3===c)return this.r=parseInt(u.charAt(0)+u.charAt(0),16)/255,this.g=parseInt(u.charAt(1)+u.charAt(1),16)/255,this.b=parseInt(u.charAt(2)+u.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(u.charAt(0)+u.charAt(1),16)/255,this.g=parseInt(u.charAt(2)+u.charAt(3),16)/255,this.b=parseInt(u.charAt(4)+u.charAt(5),16)/255,this}if(t&&t.length>0){var u=ws[t];void 0!==u?this.setHex(u):console.warn("THREE.Color: Unknown color "+t)}return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return void 0===e&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){void 0===e&&(e=2);var n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this},convertGammaToLinear:function(){var t=this.r,e=this.g,n=this.b;return this.r=t*t,this.g=e*e,this.b=n*n,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){var e,n,i=t||{h:0,s:0,l:0},r=this.r,a=this.g,o=this.b,s=Math.max(r,a,o),l=Math.min(r,a,o),u=(l+s)/2;if(l===s)e=0,n=0;else{var c=s-l;switch(n=u<=.5?c/(s+l):c/(2-s-l),s){case r:e=(a-o)/c+(athis.max.x||t.ythis.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return(e||new r).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y)},clampPoint:function(t,e){return(e||new r).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new r;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}};var Es=0;J.prototype={constructor:J,isMaterial:!0,get needsUpdate(){return this._needsUpdate},set needsUpdate(t){!0===t&&this.update(),this._needsUpdate=t},setValues:function(t){if(void 0!==t)for(var e in t){var n=t[e];if(void 0!==n){var i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]="overdraw"===e?Number(n):n:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}else console.warn("THREE.Material: '"+e+"' parameter is undefined.")}},toJSON:function(t){function e(t){var e=[];for(var n in t){var i=t[n];delete i.metadata,e.push(i)}return e}var n=void 0===t;n&&(t={textures:{},images:{}});var i={metadata:{version:4.4,type:"Material",generator:"Material.toJSON"}};if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearCoat&&(i.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(i.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,i.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(i.size=this.size),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==ma&&(i.blending=this.blending),this.shading!==ca&&(i.shading=this.shading),this.side!==oa&&(i.side=this.side),this.vertexColors!==ha&&(i.vertexColors=this.vertexColors),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),i.skinning=this.skinning,i.morphTargets=this.morphTargets,n){var r=e(t.textures),a=e(t.images);r.length>0&&(i.textures=r),a.length>0&&(i.images=a)}return i},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.shading=t.shading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.overdraw=t.overdraw,this.visible=t.visible,this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,n=null;if(null!==e){var i=e.length;n=new Array(i);for(var r=0;r!==i;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this},update:function(){this.dispatchEvent({type:"update"})},dispose:function(){this.dispatchEvent({type:"dispose"})}},Object.assign(J.prototype,i.prototype),$.prototype=Object.create(J.prototype),$.prototype.constructor=$,$.prototype.isShaderMaterial=!0,$.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=xs.clone(t.uniforms),this.defines=t.defines,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},$.prototype.toJSON=function(t){var e=J.prototype.toJSON.call(this,t);return e.uniforms=this.uniforms,e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},tt.prototype=Object.create(J.prototype),tt.prototype.constructor=tt,tt.prototype.isMeshDepthMaterial=!0,tt.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},et.prototype={constructor:et,isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=t.length;sr&&(r=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=t.count;sr&&(r=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return(e||new c).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)},intersectsSphere:function(){var t;return function(e){return void 0===t&&(t=new c),this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){var e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=t.constant&&n>=t.constant},clampPoint:function(t,e){return(e||new c).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new c;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new c;return function(e){var n=e||new nt;return this.getCenter(n.center),n.radius=.5*this.getSize(t).length(),n}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(){var t=[new c,new c,new c,new c,new c,new c,new c,new c];return function(e){return this.isEmpty()?this:(t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(t),this)}}(),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},nt.prototype={constructor:nt,set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t;return function(e,n){void 0===t&&(t=new et);var i=this.center;void 0!==n?i.copy(n):t.setFromPoints(e).getCenter(i);for(var r=0,a=0,o=e.length;athis.radius*this.radius&&(i.sub(this.center).normalize(),i.multiplyScalar(this.radius).add(this.center)),i},getBoundingBox:function(t){var e=t||new et;return e.set(this.center,this.center),e.expandByScalar(this.radius),e},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}},it.prototype={constructor:it,isMatrix3:!0,set:function(t,e,n,i,r,a,o,s,l){var u=this.elements;return u[0]=t,u[1]=i,u[2]=o,u[3]=e,u[4]=r,u[5]=s,u[6]=n,u[7]=a,u[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(t){var e=t.elements;return this.set(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8]),this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},applyToBufferAttribute:function(){var t;return function(e){void 0===t&&(t=new c);for(var n=0,i=e.count;n1))return i.copy(r).multiplyScalar(o).add(e.start)}else if(0===this.distanceToPoint(e.start))return i.copy(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return(t||new c).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new c,e=new it;return function(n,i){var r=this.coplanarPoint(t).applyMatrix4(n),a=i||e.getNormalMatrix(n),o=this.normal.applyMatrix3(a).normalize();return this.constant=-r.dot(o),this}}(),translate:function(t){return this.constant=this.constant-t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}},at.prototype={constructor:at,set:function(t,e,n,i,r,a){var o=this.planes;return o[0].copy(t),o[1].copy(e),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(t){for(var e=this.planes,n=0;n<6;n++)e[n].copy(t.planes[n]);return this},setFromMatrix:function(t){var e=this.planes,n=t.elements,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return e[0].setComponents(o-i,c-s,p-h,y-m).normalize(),e[1].setComponents(o+i,c+s,p+h,y+m).normalize(),e[2].setComponents(o+r,c+l,p+d,y+g).normalize(),e[3].setComponents(o-r,c-l,p-d,y-g).normalize(),e[4].setComponents(o-a,c-u,p-f,y-v).normalize(),e[5].setComponents(o+a,c+u,p+f,y+v).normalize(),this},intersectsObject:function(){var t=new nt;return function(e){var n=e.geometry;return null===n.boundingSphere&&n.computeBoundingSphere(),t.copy(n.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new nt;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){for(var e=this.planes,n=t.center,i=-t.radius,r=0;r<6;r++){if(e[r].distanceToPoint(n)0?n.min.x:n.max.x,e.x=a.normal.x>0?n.max.x:n.min.x,t.y=a.normal.y>0?n.min.y:n.max.y,e.y=a.normal.y>0?n.max.y:n.min.y,t.z=a.normal.z>0?n.min.z:n.max.z,e.z=a.normal.z>0?n.max.z:n.min.z;var o=a.distanceToPoint(t),s=a.distanceToPoint(e);if(o<0&&s<0)return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}},st.prototype={constructor:st,set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return(e||new c).copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new c;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){var n=e||new c;n.subVectors(t,this.origin);var i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.direction).multiplyScalar(i).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new c;return function(e){var n=t.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(n).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new c,e=new c,n=new c;return function(i,r,a,o){t.copy(i).add(r).multiplyScalar(.5),e.copy(r).sub(i).normalize(),n.copy(this.origin).sub(t);var s,l,u,c,h=.5*i.distanceTo(r),d=-this.direction.dot(e),f=n.dot(this.direction),p=-n.dot(e),m=n.lengthSq(),g=Math.abs(1-d*d);if(g>0)if(s=d*p-f,l=d*f-p,c=h*g,s>=0)if(l>=-c)if(l<=c){var v=1/g;s*=v,l*=v,u=s*(s+d*l+2*f)+l*(d*s+l+2*p)+m}else l=h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;else l=-h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;else l<=-c?(s=Math.max(0,-(-d*h+f)),l=s>0?-h:Math.min(Math.max(-h,-p),h),u=-s*s+l*(l+2*p)+m):l<=c?(s=0,l=Math.min(Math.max(-h,-p),h),u=l*(l+2*p)+m):(s=Math.max(0,-(d*h+f)),l=s>0?h:Math.min(Math.max(-h,-p),h),u=-s*s+l*(l+2*p)+m);else l=d>0?-h:h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;return a&&a.copy(this.direction).multiplyScalar(s).add(this.origin),o&&o.copy(e).multiplyScalar(l).add(t),u}}(),intersectSphere:function(){var t=new c;return function(e,n){t.subVectors(e.center,this.origin);var i=t.dot(this.direction),r=t.dot(t)-i*i,a=e.radius*e.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(t){return this.distanceToPoint(t.center)<=t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null},intersectPlane:function(t,e){var n=this.distanceToPlane(t);return null===n?null:this.at(n,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0},intersectBox:function(t,e){var n,i,r,a,o,s,l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,h=this.origin;return l>=0?(n=(t.min.x-h.x)*l,i=(t.max.x-h.x)*l):(n=(t.max.x-h.x)*l,i=(t.min.x-h.x)*l),u>=0?(r=(t.min.y-h.y)*u,a=(t.max.y-h.y)*u):(r=(t.max.y-h.y)*u,a=(t.min.y-h.y)*u),n>a||r>i?null:((r>n||n!==n)&&(n=r),(a=0?(o=(t.min.z-h.z)*c,s=(t.max.z-h.z)*c):(o=(t.max.z-h.z)*c,s=(t.min.z-h.z)*c),n>s||o>i?null:((o>n||n!==n)&&(n=o),(s=0?n:i,e)))},intersectsBox:function(){var t=new c;return function(e){return null!==this.intersectBox(e,t)}}(),intersectTriangle:function(){var t=new c,e=new c,n=new c,i=new c;return function(r,a,o,s,l){e.subVectors(a,r),n.subVectors(o,r),i.crossVectors(e,n);var u,c=this.direction.dot(i);if(c>0){if(s)return null;u=1}else{if(!(c<0))return null;u=-1,c=-c}t.subVectors(this.origin,r);var h=u*this.direction.dot(n.crossVectors(t,n));if(h<0)return null;var d=u*this.direction.dot(e.cross(t));if(d<0)return null;if(h+d>c)return null;var f=-u*t.dot(i);return f<0?null:this.at(f/c,l)}}(),applyMatrix4:function(t){return this.direction.add(this.origin).applyMatrix4(t),this.origin.applyMatrix4(t),this.direction.sub(this.origin),this.direction.normalize(),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},lt.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],lt.DefaultOrder="XYZ",lt.prototype={constructor:lt,isEuler:!0,get x(){return this._x},set x(t){this._x=t,this.onChangeCallback()},get y(){return this._y},set y(t){this._y=t,this.onChangeCallback()},get z(){return this._z},set z(t){this._z=t,this.onChangeCallback()},get order(){return this._order},set order(t){this._order=t,this.onChangeCallback()},set:function(t,e,n,i){return this._x=t,this._y=e,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(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var i=fs.clamp,r=t.elements,a=r[0],o=r[4],s=r[8],l=r[1],u=r[5],c=r[9],h=r[2],d=r[6],f=r[10];return e=e||this._order,"XYZ"===e?(this._y=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-c,f),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(d,u),this._z=0)):"YXZ"===e?(this._x=Math.asin(-i(c,-1,1)),Math.abs(c)<.99999?(this._y=Math.atan2(s,f),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,a),this._z=0)):"ZXY"===e?(this._x=Math.asin(i(d,-1,1)),Math.abs(d)<.99999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,a))):"ZYX"===e?(this._y=Math.asin(-i(h,-1,1)),Math.abs(h)<.99999?(this._x=Math.atan2(d,f),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,u))):"YZX"===e?(this._z=Math.asin(i(l,-1,1)),Math.abs(l)<.99999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(s,f))):"XZY"===e?(this._z=Math.asin(-i(o,-1,1)),Math.abs(o)<.99999?(this._x=Math.atan2(d,u),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-c,f),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,n,i)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new u;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new c(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},ut.prototype={constructor:ut,set:function(t){this.mask=1<1){for(var e=0;e1)for(var e=0;e0){r.children=[];for(var a=0;a0&&(i.geometries=o),s.length>0&&(i.materials=s),l.length>0&&(i.textures=l),u.length>0&&(i.images=u)}return i.object=r,i},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e){if(void 0===e&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(var n=0;n0?a.multiplyScalar(1/Math.sqrt(o)):a.set(0,0,0)}}(),dt.barycoordFromPoint=function(){var t=new c,e=new c,n=new c;return function(i,r,a,o,s){t.subVectors(o,r),e.subVectors(a,r),n.subVectors(i,r);var l=t.dot(t),u=t.dot(e),h=t.dot(n),d=e.dot(e),f=e.dot(n),p=l*d-u*u,m=s||new c;if(0===p)return m.set(-2,-1,-1);var g=1/p,v=(d*h-u*f)*g,y=(l*f-u*h)*g;return m.set(1-v-y,y,v)}}(),dt.containsPoint=function(){var t=new c;return function(e,n,i,r){var a=dt.barycoordFromPoint(e,n,i,r,t);return a.x>=0&&a.y>=0&&a.x+a.y<=1}}(),dt.prototype={constructor:dt,set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},area:function(){var t=new c,e=new c;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),midpoint:function(t){return(t||new c).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(t){return dt.normal(this.a,this.b,this.c,t)},plane:function(t){return(t||new rt).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(t,e){return dt.barycoordFromPoint(t,this.a,this.b,this.c,e)},containsPoint:function(t){return dt.containsPoint(t,this.a,this.b,this.c)},closestPointToPoint:function(){var t,e,n,i;return function(r,a){void 0===t&&(t=new rt,e=[new ht,new ht,new ht],n=new c,i=new c);var o=a||new c,s=1/0;if(t.setFromCoplanarPoints(this.a,this.b,this.c),t.projectPoint(r,n),!0===this.containsPoint(n))o.copy(n);else{e[0].set(this.a,this.b),e[1].set(this.b,this.c),e[2].set(this.c,this.a);for(var l=0;l0,s=a[1]&&a[1].length>0,l=t.morphTargets,u=l.length;if(u>0){e=[];for(var c=0;c0){h=[];for(var c=0;c0)for(var m=0;m0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t,e,n;for(this.computeFaceNormals(),t=0,e=this.faces.length;t0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n,i,r;for(n=0,i=this.faces.length;n0&&(t+=e[n].distanceTo(e[n-1])),this.lineDistances[n]=t},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new et),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new nt),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(!1===(t&&t.isGeometry))return void console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t);var i,r=this.vertices.length,a=this.vertices,o=t.vertices,s=this.faces,l=t.faces,u=this.faceVertexUvs[0],c=t.faceVertexUvs[0],h=this.colors,d=t.colors;void 0===n&&(n=0),void 0!==e&&(i=(new it).getNormalMatrix(e));for(var f=0,p=o.length;f=0;n--){var p=d[n];for(this.faces.splice(p,1),o=0,s=this.faceVertexUvs.length;o0,x=v.vertexNormals.length>0,_=1!==v.color.r||1!==v.color.g||1!==v.color.b,w=v.vertexColors.length>0,M=0;if(M=t(M,0,0),M=t(M,1,!0),M=t(M,2,!1),M=t(M,3,y),M=t(M,4,b),M=t(M,5,x),M=t(M,6,_),M=t(M,7,w),c.push(M),c.push(v.a,v.b,v.c),c.push(v.materialIndex),y){var S=this.faceVertexUvs[0][l];c.push(i(S[0]),i(S[1]),i(S[2]))}if(b&&c.push(e(v.normal)),x){var E=v.vertexNormals;c.push(e(E[0]),e(E[1]),e(E[2]))}if(_&&c.push(n(v.color)),w){var k=v.vertexColors;c.push(n(k[0]),n(k[1]),n(k[2]))}}return r.data={},r.data.vertices=s,r.data.normals=h,f.length>0&&(r.data.colors=f),m.length>0&&(r.data.uvs=[m]),r.data.faces=c,r},clone:function(){return(new Ct).copy(this)},copy:function(t){var e,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=t.name;var s=t.vertices;for(e=0,n=s.length;e65535?wt:xt)(t,1):this.index=t},addAttribute:function(t,e){return!1===(e&&e.isBufferAttribute)&&!1===(e&&e.isInterleavedBufferAttribute)?(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),void this.addAttribute(t,new mt(arguments[1],arguments[2]))):"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),void this.setIndex(e)):(this.attributes[t]=e,this)},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;void 0!==e&&(t.applyToBufferAttribute(e),e.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){(new it).getNormalMatrix(t).applyToBufferAttribute(n),n.needsUpdate=!0}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeTranslation(e,n,i),this.applyMatrix(t),this}}(),scale:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeScale(e,n,i),this.applyMatrix(t),this}}(),lookAt:function(){var t;return function(e){void 0===t&&(t=new ct),t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){this.computeBoundingBox();var t=this.boundingBox.getCenter().negate();return this.translate(t.x,t.y,t.z),t},setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){var n=new Mt(3*e.vertices.length,3),i=new Mt(3*e.colors.length,3);if(this.addAttribute("position",n.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){var r=new Mt(e.lineDistances.length,1);this.addAttribute("lineDistance",r.copyArray(e.lineDistances))}null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var n=e.__directGeometry;if(!0===e.elementsNeedUpdate&&(n=void 0,e.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(e);n.verticesNeedUpdate=e.verticesNeedUpdate,n.normalsNeedUpdate=e.normalsNeedUpdate,n.colorsNeedUpdate=e.colorsNeedUpdate,n.uvsNeedUpdate=e.uvsNeedUpdate,n.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=n}var i;return!0===e.verticesNeedUpdate&&(i=this.attributes.position,void 0!==i&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),!0===e.normalsNeedUpdate&&(i=this.attributes.normal,void 0!==i&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),!0===e.colorsNeedUpdate&&(i=this.attributes.color,void 0!==i&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,void 0!==i&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,void 0!==i&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new Et).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);if(this.addAttribute("position",new mt(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){var n=new Float32Array(3*t.normals.length);this.addAttribute("normal",new mt(n,3).copyVector3sArray(t.normals))}if(t.colors.length>0){var i=new Float32Array(3*t.colors.length);this.addAttribute("color",new mt(i,3).copyColorsArray(t.colors))}if(t.uvs.length>0){var r=new Float32Array(2*t.uvs.length);this.addAttribute("uv",new mt(r,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){var a=new Float32Array(2*t.uvs2.length);this.addAttribute("uv2",new mt(a,2).copyVector2sArray(t.uvs2))}if(t.indices.length>0){var o=kt(t.indices)>65535?Uint32Array:Uint16Array,s=new o(3*t.indices.length);this.setIndex(new mt(s,1).copyIndicesArray(t.indices))}this.groups=t.groups;for(var l in t.morphTargets){for(var u=[],c=t.morphTargets[l],h=0,d=c.length;h0){var m=new Mt(4*t.skinIndices.length,4);this.addAttribute("skinIndex",m.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){var g=new Mt(4*t.skinWeights.length,4);this.addAttribute("skinWeight",g.copyVector4sArray(t.skinWeights))}return null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new et);var t=this.attributes.position;void 0!==t?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new et,e=new c;return function(){null===this.boundingSphere&&(this.boundingSphere=new nt);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;t.setFromBufferAttribute(n),t.getCenter(i);for(var r=0,a=0,o=n.count;a0&&(t.data.groups=JSON.parse(JSON.stringify(s)));var l=this.boundingSphere;return null!==l&&(t.data.boundingSphere={center:l.center.toArray(),radius:l.radius}),t},clone:function(){return(new Pt).copy(this)},copy:function(t){var e,n,i;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var r=t.index;null!==r&&this.setIndex(r.clone());var a=t.attributes;for(e in a){var o=a[e];this.addAttribute(e,o.clone())}var s=t.morphAttributes;for(e in s){var l=[],u=s[e];for(n=0,i=u.length;n0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var e=0,n=t.length;ee.far?null:{distance:l,point:x.clone(),object:t}}function n(n,i,r,a,o,c,h,d){s.fromBufferAttribute(a,c),l.fromBufferAttribute(a,h),u.fromBufferAttribute(a,d);var f=e(n,i,r,s,l,u,b);return f&&(o&&(m.fromBufferAttribute(o,c),g.fromBufferAttribute(o,h),v.fromBufferAttribute(o,d),f.uv=t(b,s,l,u,m,g,v)),f.face=new ft(c,h,d,dt.normal(s,l,u)),f.faceIndex=c),f}var i=new h,a=new st,o=new nt,s=new c,l=new c,u=new c,d=new c,f=new c,p=new c,m=new r,g=new r,v=new r,y=new c,b=new c,x=new c;return function(r,c){var h=this.geometry,y=this.material,x=this.matrixWorld;if(void 0!==y&&(null===h.boundingSphere&&h.computeBoundingSphere(),o.copy(h.boundingSphere),o.applyMatrix4(x),!1!==r.ray.intersectsSphere(o)&&(i.getInverse(x),a.copy(r.ray).applyMatrix4(i),null===h.boundingBox||!1!==a.intersectsBox(h.boundingBox)))){var _;if(h.isBufferGeometry){var w,M,S,E,k,T=h.index,C=h.attributes.position,P=h.attributes.uv;if(null!==T)for(E=0,k=T.count;E0&&(L=B);for(var F=0,U=z.length;Fthis.scale.x*this.scale.y/4||n.push({distance:Math.sqrt(i),point:this.position,face:null,object:this})}}(),clone:function(){return new this.constructor(this.material).copy(this)}}),ve.prototype=Object.assign(Object.create(ct.prototype),{constructor:ve,copy:function(t){ct.prototype.copy.call(this,t,!1);for(var e=t.levels,n=0,i=e.length;n1){t.setFromMatrixPosition(n.matrixWorld),e.setFromMatrixPosition(this.matrixWorld);var r=t.distanceTo(e);i[0].object.visible=!0;for(var a=1,o=i.length;a=i[a].distance;a++)i[a-1].object.visible=!1,i[a].object.visible=!0;for(;ao)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}else for(var b=0,x=v.length/3-1;bo)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}else if(s.isGeometry)for(var E=s.vertices,k=E.length,b=0;bo)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Me.prototype=Object.assign(Object.create(we.prototype),{constructor:Me,isLineSegments:!0}),Se.prototype=Object.create(J.prototype),Se.prototype.constructor=Se,Se.prototype.isPointsMaterial=!0,Se.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this},Ee.prototype=Object.assign(Object.create(ct.prototype),{constructor:Ee,isPoints:!0,raycast:function(){var t=new h,e=new st,n=new nt;return function(i,r){function a(t,n){var a=e.distanceSqToPoint(t);if(ai.far)return;r.push({distance:u,distanceToRay:Math.sqrt(a),point:s.clone(),index:n,face:null,object:o})}}var o=this,s=this.geometry,l=this.matrixWorld,u=i.params.Points.threshold;if(null===s.boundingSphere&&s.computeBoundingSphere(),n.copy(s.boundingSphere),n.applyMatrix4(l),!1!==i.ray.intersectsSphere(n)){t.getInverse(l),e.copy(i.ray).applyMatrix4(t);var h=u/((this.scale.x+this.scale.y+this.scale.z)/3),d=h*h,f=new c;if(s.isBufferGeometry){var p=s.index,m=s.attributes,g=m.position.array;if(null!==p)for(var v=p.array,y=0,b=v.length;y=-Number.EPSILON&&C>=-Number.EPSILON&&T>=-Number.EPSILON))return!1;return!0}return function(e,n){var i=e.length;if(i<3)return null;var r,a,o,s=[],l=[],u=[];if(Ps.area(e)>0)for(a=0;a2;){if(h--<=0)return console.warn("THREE.ShapeUtils: Unable to triangulate polygon! in triangulate()"),n?u:s;if(r=a,c<=r&&(r=0),a=r+1,c<=a&&(a=0),o=a+1,c<=o&&(o=0),t(e,r,a,o,c,l)){var d,f,p,m,g;for(d=l[r],f=l[a],p=l[o],s.push([e[d],e[f],e[p]]),u.push([l[r],l[a],l[o]]),m=a,g=a+1;g2&&t[e-1].equals(t[0])&&t.pop()}function i(t,e,n){return t.x!==e.x?t.xNumber.EPSILON){var p;if(d>0){if(f<0||f>d)return[];if((p=u*c-l*h)<0||p>d)return[]}else{if(f>0||f0||pE?[]:x===E?a?[]:[y]:_<=E?[y,b]:[y,M]}function a(t,e,n,i){var r=e.x-t.x,a=e.y-t.y,o=n.x-t.x,s=n.y-t.y,l=i.x-t.x,u=i.y-t.y,c=r*s-a*o,h=r*u-a*l;if(Math.abs(c)>Number.EPSILON){var d=l*s-u*o;return c>0?h>=0&&d>=0:h>=0||d>=0}return h>0}n(t),e.forEach(n);for(var o,s,l,u,c,h,d={},f=t.concat(),p=0,m=e.length;p0;){if(--_<0){console.log("Infinite Loop! Holes left:"+g.length+", Probably Hole outside Shape!");break}for(o=x;oi&&(o=0);var s=a(m[t],m[r],m[o],n[e]);if(!s)return!1;var l=n.length-1,u=e-1;u<0&&(u=l);var c=e+1;return c>l&&(c=0),!!(s=a(n[e],n[u],n[c],m[t]))}(o,w)&&!function(t,e){var n,i,a;for(n=0;n0)return!0;return!1}(s,l)&&!function(t,n){var i,a,o,s,l;for(i=0;i0)return!0;return!1}(s,l)){i=w,g.splice(y,1),h=m.slice(0,o+1),d=m.slice(o),f=n.slice(i),p=n.slice(0,i+1),m=h.concat(f).concat(p).concat(d),x=o;break}if(i>=0)break;v[c]=!0}if(i>=0)break}}return m}(t,e),v=Ps.triangulate(g,!1);for(o=0,s=v.length;oNumber.EPSILON){var f=Math.sqrt(h),p=Math.sqrt(u*u+c*c),m=e.x-l/f,g=e.y+s/f,v=n.x-c/p,y=n.y+u/p,b=((v-m)*c-(y-g)*u)/(s*c-l*u);i=m+s*b-t.x,a=g+l*b-t.y;var x=i*i+a*a;if(x<=2)return new r(i,a);o=Math.sqrt(x/2)}else{var _=!1;s>Number.EPSILON?u>Number.EPSILON&&(_=!0):s<-Number.EPSILON?u<-Number.EPSILON&&(_=!0):Math.sign(l)===Math.sign(c)&&(_=!0),_?(i=-l,a=s,o=Math.sqrt(h)):(i=s,a=l,o=Math.sqrt(h/2))}return new r(i/o,a/o)}function a(t,e){var n,i;for(H=t.length;--H>=0;){n=H,i=H-1,i<0&&(i=t.length-1);var r=0,a=_+2*y;for(r=0;r=0;N--){for(B=N/y,F=g*Math.cos(B*Math.PI/2),z=v*Math.sin(B*Math.PI/2),H=0,Y=D.length;H0||0===t.search(/^data\:image\/jpeg/);r.format=i?Po:Oo,r.image=n,r.needsUpdate=!0,void 0!==e&&e(r)},n,i),r},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),An.prototype=Object.assign(Object.create(ct.prototype),{constructor:An,isLight:!0,copy:function(t){return ct.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){var e=ct.prototype.toJSON.call(this,t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}),Rn.prototype=Object.assign(Object.create(An.prototype),{constructor:Rn,isHemisphereLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(Ln.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var t={};return 0!==this.bias&&(t.bias=this.bias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),In.prototype=Object.assign(Object.create(Ln.prototype),{constructor:In,isSpotLightShadow:!0,update:function(t){var e=2*fs.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height,i=t.distance||500,r=this.camera;e===r.fov&&n===r.aspect&&i===r.far||(r.fov=e,r.aspect=n,r.far=i,r.updateProjectionMatrix())}}),Dn.prototype=Object.assign(Object.create(An.prototype),{constructor:Dn,isSpotLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Nn.prototype=Object.assign(Object.create(An.prototype),{constructor:Nn,isPointLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),zn.prototype=Object.assign(Object.create(Ln.prototype),{constructor:zn}),Bn.prototype=Object.assign(Object.create(An.prototype),{constructor:Bn,isDirectionalLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Fn.prototype=Object.assign(Object.create(An.prototype),{constructor:Fn,isAmbientLight:!0});var Is={arraySlice:function(t,e,n){return Is.isTypedArray(t)?new t.constructor(t.subarray(e,n)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){function e(e,n){return t[e]-t[n]}for(var n=t.length,i=new Array(n),r=0;r!==n;++r)i[r]=r;return i.sort(e),i},sortedArray:function(t,e,n){for(var i=t.length,r=new t.constructor(i),a=0,o=0;o!==i;++a)for(var s=n[a]*e,l=0;l!==e;++l)r[o++]=t[s+l];return r},flattenJSON:function(t,e,n,i){for(var r=1,a=t[0];void 0!==a&&void 0===a[i];)a=t[r++];if(void 0!==a){var o=a[i];if(void 0!==o)if(Array.isArray(o))do{o=a[i],void 0!==o&&(e.push(a.time),n.push.apply(n,o)),a=t[r++]}while(void 0!==a);else if(void 0!==o.toArray)do{o=a[i],void 0!==o&&(e.push(a.time),o.toArray(n,n.length)),a=t[r++]}while(void 0!==a);else do{o=a[i],void 0!==o&&(e.push(a.time),n.push(o)),a=t[r++]}while(void 0!==a)}}};Un.prototype={constructor:Un,evaluate:function(t){var e=this.parameterPositions,n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{var a;n:{i:if(!(t=r)break t;var s=e[1];t=r)break e}a=n,n=0}}for(;n>>1;te;)--a;if(++a,0!==r||a!==i){r>=a&&(a=Math.max(a,1),r=a-1);var o=this.getValueSize();this.times=Is.arraySlice(n,r,a),this.values=Is.arraySlice(this.values,r*o,a*o)}return this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("invalid value size in track",this),t=!1);var n=this.times,i=this.values,r=n.length;0===r&&(console.error("track is empty",this),t=!1);for(var a=null,o=0;o!==r;o++){var s=n[o];if("number"==typeof s&&isNaN(s)){console.error("time is not a valid number",this,o,s),t=!1;break}if(null!==a&&a>s){console.error("out of order keys",this,o,s,a),t=!1;break}a=s}if(void 0!==i&&Is.isTypedArray(i))for(var o=0,l=i.length;o!==l;++o){var u=i[o];if(isNaN(u)){console.error("value is not a valid number",this,o,u),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,n=this.getValueSize(),i=this.getInterpolation()===Ko,r=1,a=t.length-1,o=1;o0){t[r]=t[a];for(var p=a*n,m=r*n,d=0;d!==n;++d)e[m+d]=e[p+d];++r}return r!==t.length&&(this.times=Is.arraySlice(t,0,r),this.values=Is.arraySlice(e,0,r*n)),this}},Hn.prototype=Object.assign(Object.create(Ds),{constructor:Hn,ValueTypeName:"vector"}),Yn.prototype=Object.assign(Object.create(Un.prototype),{constructor:Yn,interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,l=(n-e)/(i-e),c=s+o;s!==c;s+=4)u.slerpFlat(r,0,a,s-o,a,s,l);return r}}),qn.prototype=Object.assign(Object.create(Ds),{constructor:qn,ValueTypeName:"quaternion",DefaultInterpolation:Zo,InterpolantFactoryMethodLinear:function(t){return new Yn(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Xn.prototype=Object.assign(Object.create(Ds),{constructor:Xn,ValueTypeName:"number"}),Zn.prototype=Object.assign(Object.create(Ds),{constructor:Zn,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:Xo,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Kn.prototype=Object.assign(Object.create(Ds),{constructor:Kn,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:Xo,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Qn.prototype=Object.assign(Object.create(Ds),{constructor:Qn,ValueTypeName:"color"}),Jn.prototype=Ds,Ds.constructor=Jn,Object.assign(Jn,{parse:function(t){if(void 0===t.type)throw new Error("track type undefined, can not parse");var e=Jn._getTrackTypeForValueTypeName(t.type);if(void 0===t.times){var n=[],i=[];Is.flattenJSON(t.keys,n,i,"value"),t.times=n,t.values=i}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)},toJSON:function(t){var e,n=t.constructor;if(void 0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:Is.convertArray(t.times,Array),values:Is.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e},_getTrackTypeForValueTypeName:function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Xn;case"vector":case"vector2":case"vector3":case"vector4":return Hn;case"color":return Qn;case"quaternion":return qn;case"bool":case"boolean":return Kn;case"string":return Zn}throw new Error("Unsupported typeName: "+t)}}),$n.prototype={constructor:$n,resetDuration:function(){for(var t=this.tracks,e=0,n=0,i=t.length;n!==i;++n){var r=this.tracks[n];e=Math.max(e,r.times[r.times.length-1])}this.duration=e},trim:function(){for(var t=0;t1){var u=l[1],c=i[u];c||(i[u]=c=[]),c.push(s)}}var h=[];for(var u in i)h.push($n.CreateFromMorphTargetSequence(u,i[u],e,n));return h},parseAnimation:function(t,e){if(!t)return console.error(" no animation in JSONLoader data"),null;for(var n=function(t,e,n,i,r){if(0!==n.length){var a=[],o=[];Is.flattenJSON(n,a,o,i),0!==a.length&&r.push(new t(e,a,o))}},i=[],r=t.name||"default",a=t.length||-1,o=t.fps||30,s=t.hierarchy||[],l=0;l1?t.skinWeights[i+1]:0,l=e>2?t.skinWeights[i+2]:0,u=e>3?t.skinWeights[i+3]:0;n.skinWeights.push(new o(a,s,l,u))}if(t.skinIndices)for(var i=0,r=t.skinIndices.length;i1?t.skinIndices[i+1]:0,d=e>2?t.skinIndices[i+2]:0,f=e>3?t.skinIndices[i+3]:0;n.skinIndices.push(new o(c,h,d,f))}n.bones=t.bones,n.bones&&n.bones.length>0&&(n.skinWeights.length!==n.skinIndices.length||n.skinIndices.length!==n.vertices.length)&&console.warn("When skinning, number of vertices ("+n.vertices.length+"), skinIndices ("+n.skinIndices.length+"), and skinWeights ("+n.skinWeights.length+") should match.")}(),function(e){if(void 0!==t.morphTargets)for(var i=0,r=t.morphTargets.length;i0){console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.');for(var h=n.faces,d=t.morphColors[0].colors,i=0,r=h.length;i0&&(n.animations=e)}(),n.computeFaceNormals(),n.computeBoundingSphere(),void 0===t.materials||0===t.materials.length)return{geometry:n};var a=ni.prototype.initMaterials(t.materials,e,this.crossOrigin);return{geometry:n,materials:a}}}),Object.assign(ri.prototype,{load:function(t,e,n,i){""===this.texturePath&&(this.texturePath=t.substring(0,t.lastIndexOf("/")+1));var r=this;new En(r.manager).load(t,function(n){var a=null;try{a=JSON.parse(n)}catch(e){return void 0!==i&&i(e),void console.error("THREE:ObjectLoader: Can't parse "+t+".",e.message)}var o=a.metadata;if(void 0===o||void 0===o.type||"geometry"===o.type.toLowerCase())return void console.error("THREE.ObjectLoader: Can't load "+t+". Use THREE.JSONLoader instead.");r.parse(a,e)},n,i)},setTexturePath:function(t){this.texturePath=t},setCrossOrigin:function(t){this.crossOrigin=t},parse:function(t,e){var n=this.parseGeometries(t.geometries),i=this.parseImages(t.images,function(){void 0!==e&&e(o)}),r=this.parseTextures(t.textures,i),a=this.parseMaterials(t.materials,r),o=this.parseObject(t.object,n,a);return t.animations&&(o.animations=this.parseAnimations(t.animations)),void 0!==t.images&&0!==t.images.length||void 0!==e&&e(o),o},parseGeometries:function(t){var e={};if(void 0!==t)for(var n=new ii,i=new ei,r=0,a=t.length;r0){var r=new Sn(e),a=new Cn(r);a.setCrossOrigin(this.crossOrigin);for(var o=0,s=t.length;o0?new xe(s,l):new Ot(s,l);break;case"LOD":o=new ve;break;case"Line":o=new we(r(e.geometry),a(e.material),e.mode);break;case"LineSegments":o=new Me(r(e.geometry),a(e.material));break;case"PointCloud":case"Points":o=new Ee(r(e.geometry),a(e.material));break;case"Sprite":o=new ge(a(e.material));break;case"Group":o=new ke;break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh type. Instantiates Object3D instead.");default:o=new ct}if(o.uuid=e.uuid,void 0!==e.name&&(o.name=e.name),void 0!==e.matrix?(t.fromArray(e.matrix),t.decompose(o.position,o.quaternion,o.scale)):(void 0!==e.position&&o.position.fromArray(e.position),void 0!==e.rotation&&o.rotation.fromArray(e.rotation),void 0!==e.quaternion&&o.quaternion.fromArray(e.quaternion),void 0!==e.scale&&o.scale.fromArray(e.scale)),void 0!==e.castShadow&&(o.castShadow=e.castShadow),void 0!==e.receiveShadow&&(o.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(o.shadow.bias=e.shadow.bias),void 0!==e.shadow.radius&&(o.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&o.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(o.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(o.visible=e.visible),void 0!==e.userData&&(o.userData=e.userData),void 0!==e.children)for(var u in e.children)o.add(this.parseObject(e.children[u],n,i));if("LOD"===e.type)for(var c=e.levels,h=0;h0)){l=r;break}l=r-1}if(r=l,i[r]===n){var u=r/(a-1);return u}var c=i[r],h=i[r+1],d=h-c,f=(n-c)/d,u=(r+f)/(a-1);return u},getTangent:function(t){var e=t-1e-4,n=t+1e-4;e<0&&(e=0),n>1&&(n=1);var i=this.getPoint(e);return this.getPoint(n).clone().sub(i).normalize()},getTangentAt:function(t){var e=this.getUtoTmapping(t);return this.getTangent(e)},computeFrenetFrames:function(t,e){var n,i,r,a=new c,o=[],s=[],l=[],u=new c,d=new h;for(n=0;n<=t;n++)i=n/t,o[n]=this.getTangentAt(i),o[n].normalize();s[0]=new c,l[0]=new c;var f=Number.MAX_VALUE,p=Math.abs(o[0].x),m=Math.abs(o[0].y),g=Math.abs(o[0].z);for(p<=f&&(f=p,a.set(1,0,0)),m<=f&&(f=m,a.set(0,1,0)),g<=f&&a.set(0,0,1),u.crossVectors(o[0],a).normalize(),s[0].crossVectors(o[0],u),l[0].crossVectors(o[0],s[0]),n=1;n<=t;n++)s[n]=s[n-1].clone(),l[n]=l[n-1].clone(),u.crossVectors(o[n-1],o[n]),u.length()>Number.EPSILON&&(u.normalize(),r=Math.acos(fs.clamp(o[n-1].dot(o[n]),-1,1)),s[n].applyMatrix4(d.makeRotationAxis(u,r))),l[n].crossVectors(o[n],s[n]);if(!0===e)for(r=Math.acos(fs.clamp(s[0].dot(s[t]),-1,1)),r/=t,o[0].dot(u.crossVectors(s[0],s[t]))>0&&(r=-r),n=1;n<=t;n++)s[n].applyMatrix4(d.makeRotationAxis(o[n],r*n)),l[n].crossVectors(o[n],s[n]);return{tangents:o,normals:s,binormals:l}}},gi.prototype=Object.create(mi.prototype),gi.prototype.constructor=gi,gi.prototype.isLineCurve=!0,gi.prototype.getPoint=function(t){if(1===t)return this.v2.clone();var e=this.v2.clone().sub(this.v1);return e.multiplyScalar(t).add(this.v1),e},gi.prototype.getPointAt=function(t){return this.getPoint(t)},gi.prototype.getTangent=function(t){return this.v2.clone().sub(this.v1).normalize()},vi.prototype=Object.assign(Object.create(mi.prototype),{constructor:vi,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new gi(e,t))},getPoint:function(t){for(var e=t*this.getLength(),n=this.getCurveLengths(),i=0;i=e){var r=n[i]-e,a=this.curves[i],o=a.getLength(),s=0===o?0:1-r/o;return a.getPointAt(s)}i++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,n=0,i=this.curves.length;n1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},createPointsGeometry:function(t){var e=this.getPoints(t);return this.createGeometry(e)},createSpacedPointsGeometry:function(t){var e=this.getSpacedPoints(t);return this.createGeometry(e)},createGeometry:function(t){for(var e=new Ct,n=0,i=t.length;ne;)n-=e;ne.length-2?e.length-1:i+1],u=e[i>e.length-3?e.length-1:i+2];return new r(ai(a,o.x,s.x,l.x,u.x),ai(a,o.y,s.y,l.y,u.y))},xi.prototype=Object.create(mi.prototype),xi.prototype.constructor=xi,xi.prototype.getPoint=function(t){var e=this.v0,n=this.v1,i=this.v2,a=this.v3;return new r(pi(t,e.x,n.x,i.x,a.x),pi(t,e.y,n.y,i.y,a.y))},_i.prototype=Object.create(mi.prototype),_i.prototype.constructor=_i,_i.prototype.getPoint=function(t){var e=this.v0,n=this.v1,i=this.v2;return new r(ui(t,e.x,n.x,i.x),ui(t,e.y,n.y,i.y))};var Ns=Object.assign(Object.create(vi.prototype),{fromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,n=t.length;e0){var u=l.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(l);var c=l.getPoint(1);this.currentPoint.copy(c)}});wi.prototype=Ns,Ns.constructor=wi,Mi.prototype=Object.assign(Object.create(Ns),{constructor:Mi,getPointsHoles:function(t){for(var e=[],n=0,i=this.holes.length;n1){for(var v=!1,y=[],b=0,x=d.length;bNumber.EPSILON){if(u<0&&(o=e[a],l=-l,s=e[r],u=-u),t.ys.y)continue;if(t.y===o.y){if(t.x===o.x)return!0}else{var c=u*(t.x-o.x)-l*(t.y-o.y);if(0===c)return!0;if(c<0)continue;i=!i}}else{if(t.y!==o.y)continue;if(s.x<=t.x&&t.x<=o.x||o.x<=t.x&&t.x<=s.x)return!0}}return i})(M.p,d[E].p)&&(b!==E&&y.push({froms:b,tos:E,hole:w}),S?(S=!1,h[E].push(M)):v=!0);S&&h[b].push(M)}y.length>0&&(v||(f=h))}for(var k,m=0,T=d.length;m0){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t0){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t=.5)for(var a=0;a!==r;++a)t[e+a]=t[n+a]},_slerp:function(t,e,n,i,r){u.slerpFlat(t,e,t,e,t,n,i)},_lerp:function(t,e,n,i,r){for(var a=1-i,o=0;o!==r;++o){var s=e+o;t[s]=t[s]*a+t[n+o]*i}}},Ni.prototype={constructor:Ni,getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,n=e.objectName,i=e.propertyName,r=e.propertyIndex;if(t||(t=Ni.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error(" trying to update node for track: "+this.path+" but it wasn't found.");if(n){var a=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error(" can not bind to material as node does not have a material",this);if(!t.material.materials)return void console.error(" can not bind to material.materials as node.material does not have a materials array",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error(" can not bind to bones as node does not have a skeleton",this);t=t.skeleton.bones;for(var o=0;o=n){var h=n++,d=e[h];i[d.uuid]=c,e[c]=d,i[u]=h,e[h]=l;for(var f=0,p=a;f!==p;++f){var m=r[f],g=m[h],v=m[c];m[c]=g,m[h]=v}}}this.nCachedObjects_=n},uncache:function(t){for(var e=this._objects,n=e.length,i=this.nCachedObjects_,r=this._indicesByUUID,a=this._bindings,o=a.length,s=0,l=arguments.length;s!==l;++s){var u=arguments[s],c=u.uuid,h=r[c];if(void 0!==h)if(delete r[c],h0)for(var l=this._interpolants,u=this._propertyBindings,c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulate(i,s)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n){e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e},_updateTime:function(t){var e=this.time+t;if(0===t)return e;var n=this._clip.duration,i=this.loop,r=this._loopCount;if(i===Ho){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(e>=n)e=n;else{if(!(e<0))break t;e=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{var a=i===qo;if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),e>=n||e<0){var o=Math.floor(e/n);e-=n*o,r+=Math.abs(o);var s=this.repetitions-r;if(s<0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=t>0?n:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(0===s){var l=t<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=e,n-e}return this.time=e,e},_setEndings:function(t,e,n){var i=this._interpolantSettings;n?(i.endingStart=Jo,i.endingEnd=Jo):(i.endingStart=t?this.zeroSlopeAtStart?Jo:Qo:$o,i.endingEnd=e?this.zeroSlopeAtEnd?Jo:Qo:$o)},_scheduleFading:function(t,e,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]=e,o[1]=r+t,s[1]=n,this}},Fi.prototype={constructor:Fi,clipAction:function(t,e){var n=e||this._root,i=n.uuid,r="string"==typeof t?$n.findByName(n,t):t,a=null!==r?r.uuid:t,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 u=new Bi(this,r,e);return this._bindAction(u,s),this._addInactiveAction(u,a,i),u},existingAction:function(t,e){var n=e||this._root,i=n.uuid,r="string"==typeof t?$n.findByName(n,t):t,a=r?r.uuid:t,o=this._actionsByClip[a];return void 0!==o?o.actionByRoot[i]||null:null},stopAllAction:function(){var t=this._actions,e=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var r=0;r!==e;++r)t[r].reset();for(var r=0;r!==i;++r)n[r].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),a=this._accuIndex^=1,o=0;o!==n;++o){var s=e[o];s.enabled&&s._update(i,t,r,a)}for(var l=this._bindings,u=this._nActiveBindings,o=0;o!==u;++o)l[o].apply(a);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions,n=t.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 u=l._cacheIndex,c=e[e.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,c._cacheIndex=u,e[u]=c,e.pop(),this._removeInactiveBindingsForAction(l)}delete i[n]}},uncacheRoot:function(t){var e=t.uuid,n=this._actionsByClip;for(var i in n){var r=n[i].actionByRoot,a=r[e];void 0!==a&&(this._deactivateAction(a),this._removeInactiveAction(a))}var o=this._bindingsByRootAndName,s=o[e];if(void 0!==s)for(var l in s){var u=s[l];u.restoreOriginalState(),this._removeInactiveBinding(u)}},uncacheAction:function(t,e){var n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}},Object.assign(Fi.prototype,{_bindAction:function(t,e){var n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,a=t._propertyBindings,o=t._interpolants,s=n.uuid,l=this._bindingsByRootAndName,u=l[s];void 0===u&&(u={},l[s]=u);for(var c=0;c!==r;++c){var h=i[c],d=h.name,f=u[d];if(void 0!==f)a[c]=f;else{if(void 0!==(f=a[c])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,s,d));continue}var p=e&&e._propertyBindings[c].binding.parsedPath;f=new Di(Ni.create(n,d,p),h.ValueTypeName,h.getValueSize()),++f.referenceCount,this._addInactiveBinding(f,s,d),a[c]=f}o[c].resultBuffer=f.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){var e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}for(var r=t._propertyBindings,a=0,o=r.length;a!==o;++a){var s=r[a];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){var e=t._cacheIndex;return null!==e&&e1){var u=l[1];i[u]||(i[u]={start:1/0,end:-1/0});var c=i[u];ac.end&&(c.end=a),e||(e=u)}}for(var u in i){var c=i[u];this.createAnimation(u,c.start,c.end,t)}this.firstAnimation=e},Ji.prototype.setAnimationDirectionForward=function(t){var e=this.animationsMap[t];e&&(e.direction=1,e.directionBackwards=!1)},Ji.prototype.setAnimationDirectionBackward=function(t){var e=this.animationsMap[t];e&&(e.direction=-1,e.directionBackwards=!0)},Ji.prototype.setAnimationFPS=function(t,e){var n=this.animationsMap[t];n&&(n.fps=e,n.duration=(n.end-n.start)/n.fps)},Ji.prototype.setAnimationDuration=function(t,e){var n=this.animationsMap[t];n&&(n.duration=e,n.fps=(n.end-n.start)/n.duration)},Ji.prototype.setAnimationWeight=function(t,e){var n=this.animationsMap[t];n&&(n.weight=e)},Ji.prototype.setAnimationTime=function(t,e){var n=this.animationsMap[t];n&&(n.time=e)},Ji.prototype.getAnimationTime=function(t){var e=0,n=this.animationsMap[t];return n&&(e=n.time),e},Ji.prototype.getAnimationDuration=function(t){var e=-1,n=this.animationsMap[t];return n&&(e=n.duration),e},Ji.prototype.playAnimation=function(t){var e=this.animationsMap[t];e?(e.time=0,e.active=!0):console.warn("THREE.MorphBlendMesh: animation["+t+"] undefined in .playAnimation()")},Ji.prototype.stopAnimation=function(t){var e=this.animationsMap[t];e&&(e.active=!1)},Ji.prototype.update=function(t){for(var e=0,n=this.animationsList.length;ei.duration||i.time<0)&&(i.direction*=-1,i.time>i.duration&&(i.time=i.duration,i.directionBackwards=!0),i.time<0&&(i.time=0,i.directionBackwards=!1)):(i.time=i.time%i.duration,i.time<0&&(i.time+=i.duration));var a=i.start+fs.clamp(Math.floor(i.time/r),0,i.length-1),o=i.weight;a!==i.currentFrame&&(this.morphTargetInfluences[i.lastFrame]=0,this.morphTargetInfluences[i.currentFrame]=1*o,this.morphTargetInfluences[a]=0,i.lastFrame=i.currentFrame,i.currentFrame=a);var s=i.time%r/r;i.directionBackwards&&(s=1-s),i.currentFrame!==i.lastFrame?(this.morphTargetInfluences[i.currentFrame]=s*o,this.morphTargetInfluences[i.lastFrame]=(1-s)*o):this.morphTargetInfluences[i.currentFrame]=o}}},$i.prototype=Object.create(ct.prototype),$i.prototype.constructor=$i,$i.prototype.isImmediateRenderObject=!0,tr.prototype=Object.create(Me.prototype),tr.prototype.constructor=tr,tr.prototype.update=function(){var t=new c,e=new c,n=new it;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,u=0,c=0,h=l.length;c.99999?this.quaternion.set(0,0,0,1):n.y<-.99999?this.quaternion.set(1,0,0,0):(e.set(n.z,0,-n.x).normalize(),t=Math.acos(n.y),this.quaternion.setFromAxisAngle(e,t))}}(),dr.prototype.setLength=function(t,e,n){void 0===e&&(e=.2*t),void 0===n&&(n=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()},dr.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},fr.prototype=Object.create(Me.prototype),fr.prototype.constructor=fr;var js=new c,Ws=new pr,Gs=new pr,Vs=new pr;mr.prototype=Object.create(mi.prototype),mr.prototype.constructor=mr,mr.prototype.getPoint=function(t){var e=this.points,n=e.length;n<2&&console.log("duh, you need at least 2 points");var i=(n-(this.closed?0:1))*t,r=Math.floor(i),a=i-r;this.closed?r+=r>0?0:(Math.floor(Math.abs(r)/e.length)+1)*e.length:0===a&&r===n-1&&(r=n-2,a=1);var o,s,l,u;if(this.closed||r>0?o=e[(r-1)%n]:(js.subVectors(e[0],e[1]).add(e[0]),o=js),s=e[r%n],l=e[(r+1)%n],this.closed||r+26?l-6:0),c=6;c>",s=s||r,null==i[r]){if(e){var n=null===i[r]?"null":"undefined";return new Error("The "+o+" `"+s+"` is marked as required in `"+a+"`, but its value is `"+n+"`.")}return null}return t.apply(void 0,[i,r,a,o,s].concat(u))})}var i=e.bind(null,!1);return i.isRequired=e.bind(null,!0),i}function r(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function a(t){var e=void 0===t?"undefined":k(t);return Array.isArray(t)?"array":t instanceof RegExp?"object":r(e,t)?"symbol":e}function o(t){var e=a(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function s(t,e){return i(function(i,r,s,l,u){return n.i(w.untracked)(function(){if(t&&a(i[r])===e.toLowerCase())return null;var n=void 0;switch(e){case"Array":n=w.isObservableArray;break;case"Object":n=w.isObservableObject;break;case"Map":n=w.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+e)}var l=i[r];if(!n(l)){var c=o(l),h=t?" or javascript `"+e.toLowerCase()+"`":"";return new Error("Invalid prop `"+u+"` of type `"+c+"` supplied to `"+s+"`, expected `mobx.Observable"+e+"`"+h+".")}return null})})}function l(t,e){return i(function(i,r,a,o,l){for(var u=arguments.length,c=Array(u>5?u-5:0),h=5;h2&&void 0!==arguments[2]&&arguments[2],i=t[e],r=it[e],a=i?!0===n?function(){r.apply(this,arguments),i.apply(this,arguments)}:function(){i.apply(this,arguments),r.apply(this,arguments)}:r;t[e]=a}function y(t,e){if(b(t,e))return!0;if("object"!==(void 0===t?"undefined":k(t))||null===t||"object"!==(void 0===e?"undefined":k(e))||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var r=0;r",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,r=!1,a=!1;t.call(this,"props"),t.call(this,"state");var o=this.render.bind(this),s=null,l=!1,u=function(){return s=new w.Reaction(n+"#"+i+".render()",function(){if(!l&&(l=!0,"function"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{a=!0,r||M.Component.prototype.forceUpdate.call(e),t=!1}finally{a=!1,t&&s.dispose()}}}),s.reactComponent=e,c.$mobx=s,e.render=c,c()},c=function(){l=!1;var t=void 0,n=void 0;if(s.track(function(){Q&&(e.__$mobRenderStart=Date.now());try{n=w.extras.allowStateChanges(!1,o)}catch(e){t=e}Q&&(e.__$mobRenderEnd=Date.now())}),t)throw nt.emit(t),t;return n};this.render=u}},componentWillUnmount:function(){if(!0!==J&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,Q)){var t=f(this);t&&tt&&tt.delete(t),et.emit({event:"destroy",component:this,node:t})}},componentDidMount:function(){Q&&p(this)},componentDidUpdate:function(){Q&&p(this)},shouldComponentUpdate:function(t,e){return J&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==e||!y(this.props,t)}},rt=x(function(t){var e=t.children,n=t.inject,i=t.render,r=e||i;if(void 0===r)return null;if(!n)return r();var a=d(n)(r);return S.a.createElement(a,null)});rt.displayName="Observer";var at=function(t,e,n,i,r){var a="children"===e?"render":"children";if("function"==typeof t[e]&&"function"==typeof t[a])return new Error("Invalid prop,do not use children and render in the same time in`"+n);if("function"!=typeof t[e]&&"function"!=typeof t[a])return new Error("Invalid prop `"+r+"` of type `"+k(t[e])+"` supplied to `"+n+"`, expected `function`.")};rt.propTypes={render:at,children:at};var ot,st,lt={children:!0,key:!0,ref:!0},ut=(st=ot=function(t){function e(){return T(this,e),O(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return P(e,t),C(e,[{key:"render",value:function(){return M.Children.only(this.props.children)}},{key:"getChildContext",value:function(){var t={},e=this.context.mobxStores;if(e)for(var n in e)t[n]=e[n];for(var i in this.props)lt[i]||"suppressChangedStoreWarning"===i||(t[i]=this.props[i]);return{mobxStores:t}}},{key:"componentWillReceiveProps",value:function(t){if(Object.keys(t).length!==Object.keys(this.props).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!t.suppressChangedStoreWarning)for(var e in t)lt[e]||this.props[e]===t[e]||console.warn("MobX Provider: Provided store '"+e+"' has changed. Please avoid replacing stores as the change might not propagate to all children")}}]),e}(M.Component),ot.contextTypes={mobxStores:Y},ot.childContextTypes={mobxStores:Y.isRequired},st);if(!M.Component)throw new Error("mobx-react requires React to be available");if(!w.extras)throw new Error("mobx-react requires mobx to be available");"function"==typeof E.unstable_batchedUpdates&&w.extras.setReactionScheduler(E.unstable_batchedUpdates);var ct=function(t){return nt.on(t)};if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":k(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var ht={spy:w.spy,extras:w.extras},dt={renderReporter:et,componentByNodeRegistery:tt,trackComponents:m};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(dt,ht)}},function(t,e,n){"use strict";var i=n(6);t.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},function(t,e,n){"use strict";var i=n(7),r=n(57);e.a=function(t){return Math.abs(t)<=i.c?t:t-n.i(r.a)(t)*i.e}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";function i(){}function r(t,e){this.x=t||0,this.y=e||0}function a(t,e,n,i,o,s,l,u,c,h){Object.defineProperty(this,"id",{value:ps++}),this.uuid=fs.generateUUID(),this.name="",this.image=void 0!==t?t:a.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:a.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:so,this.wrapT=void 0!==i?i:so,this.magFilter=void 0!==o?o:fo,this.minFilter=void 0!==s?s:mo,this.anisotropy=void 0!==c?c:1,this.format=void 0!==l?l:Oo,this.type=void 0!==u?u:go,this.offset=new r(0,0),this.repeat=new r(1,1),this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==h?h:is,this.version=0,this.onUpdate=null}function o(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1}function s(t,e,n){this.uuid=fs.generateUUID(),this.width=t,this.height=e,this.scissor=new o(0,0,t,e),this.scissorTest=!1,this.viewport=new o(0,0,t,e),n=n||{},void 0===n.minFilter&&(n.minFilter=fo),this.texture=new a(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),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 l(t,e,n){s.call(this,t,e,n),this.activeCubeFace=0,this.activeMipMapLevel=0}function u(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1}function c(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function h(){this.elements=new Float32Array([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 d(t,e,n,i,r,o,s,l,u,c){t=void 0!==t?t:[],e=void 0!==e?e:$a,a.call(this,t,e,n,i,r,o,s,l,u,c),this.flipY=!1}function f(){this.seq=[],this.map={}}function p(t,e,n){var i=t[0];if(i<=0||i>0)return t;var r=e*n,a=vs[r];if(void 0===a&&(a=new Float32Array(r),vs[r]=a),0!==e){i.toArray(a,0);for(var o=1,s=0;o!==e;++o)s+=n,t[o].toArray(a,s)}return a}function m(t,e){var n=ys[e];void 0===n&&(n=new Int32Array(e),ys[e]=n);for(var i=0;i!==e;++i)n[i]=t.allocTextureUnit();return n}function g(t,e){t.uniform1f(this.addr,e)}function v(t,e){t.uniform1i(this.addr,e)}function y(t,e){void 0===e.x?t.uniform2fv(this.addr,e):t.uniform2f(this.addr,e.x,e.y)}function b(t,e){void 0!==e.x?t.uniform3f(this.addr,e.x,e.y,e.z):void 0!==e.r?t.uniform3f(this.addr,e.r,e.g,e.b):t.uniform3fv(this.addr,e)}function x(t,e){void 0===e.x?t.uniform4fv(this.addr,e):t.uniform4f(this.addr,e.x,e.y,e.z,e.w)}function _(t,e){t.uniformMatrix2fv(this.addr,!1,e.elements||e)}function w(t,e){t.uniformMatrix3fv(this.addr,!1,e.elements||e)}function M(t,e){t.uniformMatrix4fv(this.addr,!1,e.elements||e)}function S(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),n.setTexture2D(e||ms,i)}function E(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),n.setTextureCube(e||gs,i)}function k(t,e){t.uniform2iv(this.addr,e)}function T(t,e){t.uniform3iv(this.addr,e)}function C(t,e){t.uniform4iv(this.addr,e)}function P(t){switch(t){case 5126:return g;case 35664:return y;case 35665:return b;case 35666:return x;case 35674:return _;case 35675:return w;case 35676:return M;case 35678:return S;case 35680:return E;case 5124:case 35670:return v;case 35667:case 35671:return k;case 35668:case 35672:return T;case 35669:case 35673:return C}}function O(t,e){t.uniform1fv(this.addr,e)}function A(t,e){t.uniform1iv(this.addr,e)}function R(t,e){t.uniform2fv(this.addr,p(e,this.size,2))}function L(t,e){t.uniform3fv(this.addr,p(e,this.size,3))}function I(t,e){t.uniform4fv(this.addr,p(e,this.size,4))}function D(t,e){t.uniformMatrix2fv(this.addr,!1,p(e,this.size,4))}function N(t,e){t.uniformMatrix3fv(this.addr,!1,p(e,this.size,9))}function z(t,e){t.uniformMatrix4fv(this.addr,!1,p(e,this.size,16))}function B(t,e,n){var i=e.length,r=m(n,i);t.uniform1iv(this.addr,r);for(var a=0;a!==i;++a)n.setTexture2D(e[a]||ms,r[a])}function F(t,e,n){var i=e.length,r=m(n,i);t.uniform1iv(this.addr,r);for(var a=0;a!==i;++a)n.setTextureCube(e[a]||gs,r[a])}function U(t){switch(t){case 5126:return O;case 35664:return R;case 35665:return L;case 35666:return I;case 35674:return D;case 35675:return N;case 35676:return z;case 35678:return B;case 35680:return F;case 5124:case 35670:return A;case 35667:case 35671:return k;case 35668:case 35672:return T;case 35669:case 35673:return C}}function j(t,e,n){this.id=t,this.addr=n,this.setValue=P(e.type)}function W(t,e,n){this.id=t,this.addr=n,this.size=e.size,this.setValue=U(e.type)}function G(t){this.id=t,f.call(this)}function V(t,e){t.seq.push(e),t.map[e.id]=e}function H(t,e,n){var i=t.name,r=i.length;for(bs.lastIndex=0;;){var a=bs.exec(i),o=bs.lastIndex,s=a[1],l="]"===a[2],u=a[3];if(l&&(s|=0),void 0===u||"["===u&&o+2===r){V(n,void 0===u?new j(s,t,e):new W(s,t,e));break}var c=n.map,h=c[s];void 0===h&&(h=new G(s),V(n,h)),n=h}}function q(t,e,n){f.call(this),this.renderer=n;for(var i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),r=0;r.001&&A.scale>.001&&(M.x=A.x,M.y=A.y,M.z=A.z,_=A.size*A.scale/g.w,w.x=_*y,w.y=_,p.uniform3f(h.screenPosition,M.x,M.y,M.z),p.uniform2f(h.scale,w.x,w.y),p.uniform1f(h.rotation,A.rotation),p.uniform1f(h.opacity,A.opacity),p.uniform3f(h.color,A.color.r,A.color.g,A.color.b),m.setBlending(A.blending,A.blendEquation,A.blendSrc,A.blendDst),t.setTexture2D(A.texture,1),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0))}}}m.enable(p.CULL_FACE),m.enable(p.DEPTH_TEST),m.setDepthWrite(!0),t.resetGLState()}}}function Q(t,e){function n(){var t=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),e=new Uint16Array([0,1,2,0,2,3]);o=p.createBuffer(),s=p.createBuffer(),p.bindBuffer(p.ARRAY_BUFFER,o),p.bufferData(p.ARRAY_BUFFER,t,p.STATIC_DRAW),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.bufferData(p.ELEMENT_ARRAY_BUFFER,e,p.STATIC_DRAW),l=i(),h={position:p.getAttribLocation(l,"position"),uv:p.getAttribLocation(l,"uv")},d={uvOffset:p.getUniformLocation(l,"uvOffset"),uvScale:p.getUniformLocation(l,"uvScale"),rotation:p.getUniformLocation(l,"rotation"),scale:p.getUniformLocation(l,"scale"),color:p.getUniformLocation(l,"color"),map:p.getUniformLocation(l,"map"),opacity:p.getUniformLocation(l,"opacity"),modelViewMatrix:p.getUniformLocation(l,"modelViewMatrix"),projectionMatrix:p.getUniformLocation(l,"projectionMatrix"),fogType:p.getUniformLocation(l,"fogType"),fogDensity:p.getUniformLocation(l,"fogDensity"),fogNear:p.getUniformLocation(l,"fogNear"),fogFar:p.getUniformLocation(l,"fogFar"),fogColor:p.getUniformLocation(l,"fogColor"),alphaTest:p.getUniformLocation(l,"alphaTest")};var n=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");n.width=8,n.height=8;var r=n.getContext("2d");r.fillStyle="white",r.fillRect(0,0,8,8),f=new a(n),f.needsUpdate=!0}function i(){var e=p.createProgram(),n=p.createShader(p.VERTEX_SHADER),i=p.createShader(p.FRAGMENT_SHADER);return p.shaderSource(n,["precision "+t.getPrecision()+" float;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform float rotation;","uniform vec2 scale;","uniform vec2 uvOffset;","uniform vec2 uvScale;","attribute vec2 position;","attribute vec2 uv;","varying vec2 vUV;","void main() {","vUV = uvOffset + uv * uvScale;","vec2 alignedPosition = position * scale;","vec2 rotatedPosition;","rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;","rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;","vec4 finalPosition;","finalPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );","finalPosition.xy += rotatedPosition;","finalPosition = projectionMatrix * finalPosition;","gl_Position = finalPosition;","}"].join("\n")),p.shaderSource(i,["precision "+t.getPrecision()+" float;","uniform vec3 color;","uniform sampler2D map;","uniform float opacity;","uniform int fogType;","uniform vec3 fogColor;","uniform float fogDensity;","uniform float fogNear;","uniform float fogFar;","uniform float alphaTest;","varying vec2 vUV;","void main() {","vec4 texture = texture2D( map, vUV );","if ( texture.a < alphaTest ) discard;","gl_FragColor = vec4( color * texture.xyz, texture.a * opacity );","if ( fogType > 0 ) {","float depth = gl_FragCoord.z / gl_FragCoord.w;","float fogFactor = 0.0;","if ( fogType == 1 ) {","fogFactor = smoothstep( fogNear, fogFar, depth );","} else {","const float LOG2 = 1.442695;","fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );","fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );","}","gl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );","}","}"].join("\n")),p.compileShader(n),p.compileShader(i),p.attachShader(e,n),p.attachShader(e,i),p.linkProgram(e),e}function r(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:e.id-t.id}var o,s,l,h,d,f,p=t.context,m=t.state,g=new c,v=new u,y=new c;this.render=function(i,a){if(0!==e.length){void 0===l&&n(),p.useProgram(l),m.initAttributes(),m.enableAttribute(h.position),m.enableAttribute(h.uv),m.disableUnusedAttributes(),m.disable(p.CULL_FACE),m.enable(p.BLEND),p.bindBuffer(p.ARRAY_BUFFER,o),p.vertexAttribPointer(h.position,2,p.FLOAT,!1,16,0),p.vertexAttribPointer(h.uv,2,p.FLOAT,!1,16,8),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.uniformMatrix4fv(d.projectionMatrix,!1,a.projectionMatrix.elements),m.activeTexture(p.TEXTURE0),p.uniform1i(d.map,0);var u=0,c=0,b=i.fog;b?(p.uniform3f(d.fogColor,b.color.r,b.color.g,b.color.b),b.isFog?(p.uniform1f(d.fogNear,b.near),p.uniform1f(d.fogFar,b.far),p.uniform1i(d.fogType,1),u=1,c=1):b.isFogExp2&&(p.uniform1f(d.fogDensity,b.density),p.uniform1i(d.fogType,2),u=2,c=2)):(p.uniform1i(d.fogType,0),u=0,c=0);for(var x=0,_=e.length;x<_;x++){var w=e[x];w.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,w.matrixWorld),w.z=-w.modelViewMatrix.elements[14]}e.sort(r);for(var M=[],x=0,_=e.length;x<_;x++){var w=e[x],S=w.material;if(!1!==S.visible){p.uniform1f(d.alphaTest,S.alphaTest),p.uniformMatrix4fv(d.modelViewMatrix,!1,w.modelViewMatrix.elements),w.matrixWorld.decompose(g,v,y),M[0]=y.x,M[1]=y.y;var E=0;i.fog&&S.fog&&(E=c),u!==E&&(p.uniform1i(d.fogType,E),u=E),null!==S.map?(p.uniform2f(d.uvOffset,S.map.offset.x,S.map.offset.y),p.uniform2f(d.uvScale,S.map.repeat.x,S.map.repeat.y)):(p.uniform2f(d.uvOffset,0,0),p.uniform2f(d.uvScale,1,1)),p.uniform1f(d.opacity,S.opacity),p.uniform3f(d.color,S.color.r,S.color.g,S.color.b),p.uniform1f(d.rotation,S.rotation),p.uniform2fv(d.scale,M),m.setBlending(S.blending,S.blendEquation,S.blendSrc,S.blendDst),m.setDepthTest(S.depthTest),m.setDepthWrite(S.depthWrite),S.map?t.setTexture2D(S.map,0):t.setTexture2D(f,0),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0)}}m.enable(p.CULL_FACE),t.resetGLState()}}}function J(){Object.defineProperty(this,"id",{value:Es++}),this.uuid=fs.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.lights=!0,this.blending=ma,this.side=oa,this.shading=ca,this.vertexColors=ha,this.opacity=1,this.transparent=!1,this.blendSrc=Pa,this.blendDst=Oa,this.blendEquation=xa,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=Fa,this.depthTest=!0,this.depthWrite=!0,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.alphaTest=0,this.premultipliedAlpha=!1,this.overdraw=0,this.visible=!0,this._needsUpdate=!0}function $(t){J.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,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function tt(t){J.call(this),this.type="MeshDepthMaterial",this.depthPacking=hs,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(t)}function et(t,e){this.min=void 0!==t?t:new c(1/0,1/0,1/0),this.max=void 0!==e?e:new c(-1/0,-1/0,-1/0)}function nt(t,e){this.center=void 0!==t?t:new c,this.radius=void 0!==e?e:0}function it(){this.elements=new Float32Array([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.")}function rt(t,e){this.normal=void 0!==t?t:new c(1,0,0),this.constant=void 0!==e?e:0}function at(t,e,n,i,r,a){this.planes=[void 0!==t?t:new rt,void 0!==e?e:new rt,void 0!==n?n:new rt,void 0!==i?i:new rt,void 0!==r?r:new rt,void 0!==a?a:new rt]}function ot(t,e,n,i){function a(e,n,i,r){var a=e.geometry,o=null,s=S,l=e.customDepthMaterial;if(i&&(s=E,l=e.customDistanceMaterial),l)o=l;else{var u=!1;n.morphTargets&&(a&&a.isBufferGeometry?u=a.morphAttributes&&a.morphAttributes.position&&a.morphAttributes.position.length>0:a&&a.isGeometry&&(u=a.morphTargets&&a.morphTargets.length>0));var c=e.isSkinnedMesh&&n.skinning,h=0;u&&(h|=_),c&&(h|=w),o=s[h]}if(t.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var d=o.uuid,f=n.uuid,p=k[d];void 0===p&&(p={},k[d]=p);var m=p[f];void 0===m&&(m=o.clone(),p[f]=m),o=m}o.visible=n.visible,o.wireframe=n.wireframe;var g=n.side;return B.renderSingleSided&&g==la&&(g=oa),B.renderReverseSided&&(g===oa?g=sa:g===sa&&(g=oa)),o.side=g,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,i&&void 0!==o.uniforms.lightPos&&o.uniforms.lightPos.value.copy(r),o}function l(t,e,n){if(!1!==t.visible){if(0!=(t.layers.mask&e.layers.mask)&&(t.isMesh||t.isLine||t.isPoints)&&t.castShadow&&(!1===t.frustumCulled||!0===f.intersectsObject(t))){!0===t.material.visible&&(t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),x.push(t))}for(var i=t.children,r=0,a=i.length;rn&&(n=t[e]);return n}function Tt(){return Ts++}function Ct(){Object.defineProperty(this,"id",{value:Tt()}),this.uuid=fs.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 Pt(){Object.defineProperty(this,"id",{value:Tt()}),this.uuid=fs.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}}function Ot(t,e){ct.call(this),this.type="Mesh",this.geometry=void 0!==t?t:new Pt,this.material=void 0!==e?e:new pt({color:16777215*Math.random()}),this.drawMode=ts,this.updateMorphTargets()}function At(t,e,n,i,r,a){Ct.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:a},this.fromBufferGeometry(new Rt(t,e,n,i,r,a)),this.mergeVertices()}function Rt(t,e,n,i,r,a){function o(t,e,n,i,r,a,o,m,g,v,y){var b,x,_=a/g,w=o/v,M=a/2,S=o/2,E=m/2,k=g+1,T=v+1,C=0,P=0,O=new c;for(x=0;x0?1:-1,h.push(O.x,O.y,O.z),d.push(b/g),d.push(1-x/v),C+=1}}for(x=0;x");return Jt(n)}var n=/#include +<([\w\d.]+)>/g;return t.replace(n,e)}function $t(t){function e(t,e,n,i){for(var r="",a=parseInt(e);a0?t.gammaFactor:1,g=Yt(a,i,t.extensions),v=Xt(o),y=r.createProgram();n.isRawShaderMaterial?(f=[v,"\n"].filter(Kt).join("\n"),p=[g,v,"\n"].filter(Kt).join("\n")):(f=["precision "+i.precision+" float;","precision "+i.precision+" int;","#define SHADER_NAME "+n.__webglShader.name,v,i.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+m,"#define MAX_BONES "+i.maxBones,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+h:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.displacementMap&&i.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.vertexColors?"#define USE_COLOR":"",i.flatShading?"#define FLAT_SHADED":"",i.skinning?"#define USE_SKINNING":"",i.useVertexTexture?"#define BONE_TEXTURE":"",i.morphTargets?"#define USE_MORPHTARGETS":"",i.morphNormals&&!1===i.flatShading?"#define USE_MORPHNORMALS":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"","#define NUM_CLIPPING_PLANES "+i.numClippingPlanes,i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+u:"",i.sizeAttenuation?"#define USE_SIZEATTENUATION":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&t.extensions.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(Kt).join("\n"),p=[g,"precision "+i.precision+" float;","precision "+i.precision+" int;","#define SHADER_NAME "+n.__webglShader.name,v,i.alphaTest?"#define ALPHATEST "+i.alphaTest:"","#define GAMMA_FACTOR "+m,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+c:"",i.envMap?"#define "+h:"",i.envMap?"#define "+d:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.vertexColors?"#define USE_COLOR":"",i.gradientMap?"#define USE_GRADIENTMAP":"",i.flatShading?"#define FLAT_SHADED":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"","#define NUM_CLIPPING_PLANES "+i.numClippingPlanes,"#define UNION_CLIPPING_PLANES "+(i.numClippingPlanes-i.numClipIntersection),i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+u:"",i.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",i.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&t.extensions.get("EXT_frag_depth")?"#define USE_LOGDEPTHBUF_EXT":"",i.envMap&&t.extensions.get("EXT_shader_texture_lod")?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",i.toneMapping!==Ya?"#define TONE_MAPPING":"",i.toneMapping!==Ya?_s.tonemapping_pars_fragment:"",i.toneMapping!==Ya?qt("toneMapping",i.toneMapping):"",i.outputEncoding||i.mapEncoding||i.envMapEncoding||i.emissiveMapEncoding?_s.encodings_pars_fragment:"",i.mapEncoding?Vt("mapTexelToLinear",i.mapEncoding):"",i.envMapEncoding?Vt("envMapTexelToLinear",i.envMapEncoding):"",i.emissiveMapEncoding?Vt("emissiveMapTexelToLinear",i.emissiveMapEncoding):"",i.outputEncoding?Ht("linearToOutputTexel",i.outputEncoding):"",i.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Kt).join("\n")),s=Jt(s,i),s=Qt(s,i),l=Jt(l,i),l=Qt(l,i),n.isShaderMaterial||(s=$t(s),l=$t(l));var b=f+s,x=p+l,_=Wt(r,r.VERTEX_SHADER,b),w=Wt(r,r.FRAGMENT_SHADER,x);r.attachShader(y,_),r.attachShader(y,w),void 0!==n.index0AttributeName?r.bindAttribLocation(y,0,n.index0AttributeName):!0===i.morphTargets&&r.bindAttribLocation(y,0,"position"),r.linkProgram(y);var M=r.getProgramInfoLog(y),S=r.getShaderInfoLog(_),E=r.getShaderInfoLog(w),k=!0,T=!0;!1===r.getProgramParameter(y,r.LINK_STATUS)?(k=!1,console.error("THREE.WebGLProgram: shader error: ",r.getError(),"gl.VALIDATE_STATUS",r.getProgramParameter(y,r.VALIDATE_STATUS),"gl.getProgramInfoLog",M,S,E)):""!==M?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",M):""!==S&&""!==E||(T=!1),T&&(this.diagnostics={runnable:k,material:n,programLog:M,vertexShader:{log:S,prefix:f},fragmentShader:{log:E,prefix:p}}),r.deleteShader(_),r.deleteShader(w);var C;this.getUniforms=function(){return void 0===C&&(C=new q(r,y,t)),C};var P;return this.getAttributes=function(){return void 0===P&&(P=Zt(r,y)),P},this.destroy=function(){r.deleteProgram(y),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.id=Cs++,this.code=e,this.usedTimes=1,this.program=y,this.vertexShader=_,this.fragmentShader=w,this}function ee(t,e){function n(t){if(e.floatVertexTextures&&t&&t.skeleton&&t.skeleton.useVertexTexture)return 1024;var n=e.maxVertexUniforms,i=Math.floor((n-20)/4),r=i;return void 0!==t&&t&&t.isSkinnedMesh&&(r=Math.min(t.skeleton.bones.length,r))0,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:r.premultipliedAlpha,alphaTest:r.alphaTest,doubleSided:r.side===la,flipSided:r.side===sa,depthPacking:void 0!==r.depthPacking&&r.depthPacking}},this.getProgramCode=function(t,e){var n=[];if(e.shaderID?n.push(e.shaderID):(n.push(t.fragmentShader),n.push(t.vertexShader)),void 0!==t.defines)for(var i in t.defines)n.push(i),n.push(t.defines[i]);for(var r=0;r65535?wt:xt)(a,1);return r(p,t.ELEMENT_ARRAY_BUFFER),i.wireframe=p,p}var c=new ne(t,e,n);return{getAttributeBuffer:s,getAttributeProperties:l,getWireframeAttribute:u,update:i}}function re(t,e,n,i,r,a,o){function s(t,e){if(t.width>e||t.height>e){var n=e/Math.max(t.width,t.height),i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=Math.floor(t.width*n),i.height=Math.floor(t.height*n);return i.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,i.width,i.height),console.warn("THREE.WebGLRenderer: image is too big ("+t.width+"x"+t.height+"). Resized to "+i.width+"x"+i.height,t),i}return t}function l(t){return fs.isPowerOfTwo(t.width)&&fs.isPowerOfTwo(t.height)}function u(t){if(t instanceof HTMLImageElement||t instanceof HTMLCanvasElement){var e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");e.width=fs.nearestPowerOfTwo(t.width),e.height=fs.nearestPowerOfTwo(t.height);return e.getContext("2d").drawImage(t,0,0,e.width,e.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+t.width+"x"+t.height+"). Resized to "+e.width+"x"+e.height,t),e}return t}function c(t){return t.wrapS!==so||t.wrapT!==so||t.minFilter!==uo&&t.minFilter!==fo}function h(e){return e===uo||e===co||e===ho?t.NEAREST:t.LINEAR}function d(t){var e=t.target;e.removeEventListener("dispose",d),p(e),T.textures--}function f(t){var e=t.target;e.removeEventListener("dispose",f),m(e),T.textures--}function p(e){var n=i.get(e);if(e.image&&n.__image__webglTextureCube)t.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)return;t.deleteTexture(n.__webglTexture)}i.delete(e)}function m(e){var n=i.get(e),r=i.get(e.texture);if(e){if(void 0!==r.__webglTexture&&t.deleteTexture(r.__webglTexture),e.depthTexture&&e.depthTexture.dispose(),e.isWebGLRenderTargetCube)for(var a=0;a<6;a++)t.deleteFramebuffer(n.__webglFramebuffer[a]),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer[a]);else t.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer);i.delete(e.texture),i.delete(e)}}function g(e,r){var a=i.get(e);if(e.version>0&&a.__version!==e.version){var o=e.image;if(void 0===o)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined",e);else{if(!1!==o.complete)return void x(a,e,r);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete",e)}}n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_2D,a.__webglTexture)}function v(e,o){var u=i.get(e);if(6===e.image.length)if(e.version>0&&u.__version!==e.version){u.__image__webglTextureCube||(e.addEventListener("dispose",d),u.__image__webglTextureCube=t.createTexture(),T.textures++),n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_CUBE_MAP,u.__image__webglTextureCube),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e.flipY);for(var c=e&&e.isCompressedTexture,h=e.image[0]&&e.image[0].isDataTexture,f=[],p=0;p<6;p++)f[p]=c||h?h?e.image[p].image:e.image[p]:s(e.image[p],r.maxCubemapSize);var m=f[0],g=l(m),v=a(e.format),y=a(e.type);b(t.TEXTURE_CUBE_MAP,e,g);for(var p=0;p<6;p++)if(c)for(var x,_=f[p].mipmaps,w=0,M=_.length;w-1?n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,x.width,x.height,0,x.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,x.width,x.height,0,v,y,x.data);else h?n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,f[p].width,f[p].height,0,v,y,f[p].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,v,y,f[p]);e.generateMipmaps&&g&&t.generateMipmap(t.TEXTURE_CUBE_MAP),u.__version=e.version,e.onUpdate&&e.onUpdate(e)}else n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_CUBE_MAP,u.__image__webglTextureCube)}function y(e,r){n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_CUBE_MAP,i.get(e).__webglTexture)}function b(n,o,s){var l;if(s?(t.texParameteri(n,t.TEXTURE_WRAP_S,a(o.wrapS)),t.texParameteri(n,t.TEXTURE_WRAP_T,a(o.wrapT)),t.texParameteri(n,t.TEXTURE_MAG_FILTER,a(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,a(o.minFilter))):(t.texParameteri(n,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(n,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),o.wrapS===so&&o.wrapT===so||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.",o),t.texParameteri(n,t.TEXTURE_MAG_FILTER,h(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,h(o.minFilter)),o.minFilter!==uo&&o.minFilter!==fo&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.",o)),l=e.get("EXT_texture_filter_anisotropic")){if(o.type===wo&&null===e.get("OES_texture_float_linear"))return;if(o.type===Mo&&null===e.get("OES_texture_half_float_linear"))return;(o.anisotropy>1||i.get(o).__currentAnisotropy)&&(t.texParameterf(n,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy)}}function x(e,i,o){void 0===e.__webglInit&&(e.__webglInit=!0,i.addEventListener("dispose",d),e.__webglTexture=t.createTexture(),T.textures++),n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_2D,e.__webglTexture),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,i.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,i.unpackAlignment);var h=s(i.image,r.maxTextureSize);c(i)&&!1===l(h)&&(h=u(h));var f=l(h),p=a(i.format),m=a(i.type);b(t.TEXTURE_2D,i,f);var g,v=i.mipmaps;if(i.isDepthTexture){var y=t.DEPTH_COMPONENT;if(i.type===wo){if(!C)throw new Error("Float Depth Texture only supported in WebGL2.0");y=t.DEPTH_COMPONENT32F}else C&&(y=t.DEPTH_COMPONENT16);i.format===Io&&y===t.DEPTH_COMPONENT&&i.type!==bo&&i.type!==_o&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=bo,m=a(i.type)),i.format===Do&&(y=t.DEPTH_STENCIL,i.type!==To&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=To,m=a(i.type))),n.texImage2D(t.TEXTURE_2D,0,y,h.width,h.height,0,p,m,null)}else if(i.isDataTexture)if(v.length>0&&f){for(var x=0,_=v.length;x<_;x++)g=v[x],n.texImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,p,m,g.data);i.generateMipmaps=!1}else n.texImage2D(t.TEXTURE_2D,0,p,h.width,h.height,0,p,m,h.data);else if(i.isCompressedTexture)for(var x=0,_=v.length;x<_;x++)g=v[x],i.format!==Oo&&i.format!==Po?n.getCompressedTextureFormats().indexOf(p)>-1?n.compressedTexImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,g.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,p,m,g.data);else if(v.length>0&&f){for(var x=0,_=v.length;x<_;x++)g=v[x],n.texImage2D(t.TEXTURE_2D,x,p,p,m,g);i.generateMipmaps=!1}else n.texImage2D(t.TEXTURE_2D,0,p,p,m,h);i.generateMipmaps&&f&&t.generateMipmap(t.TEXTURE_2D),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function _(e,r,o,s){var l=a(r.texture.format),u=a(r.texture.type);n.texImage2D(s,0,l,r.width,r.height,0,l,u,null),t.bindFramebuffer(t.FRAMEBUFFER,e),t.framebufferTexture2D(t.FRAMEBUFFER,o,s,i.get(r.texture).__webglTexture,0),t.bindFramebuffer(t.FRAMEBUFFER,null)}function w(e,n){t.bindRenderbuffer(t.RENDERBUFFER,e),n.depthBuffer&&!n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e)):n.depthBuffer&&n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e)):t.renderbufferStorage(t.RENDERBUFFER,t.RGBA4,n.width,n.height),t.bindRenderbuffer(t.RENDERBUFFER,null)}function M(e,n){if(n&&n.isWebGLRenderTargetCube)throw new Error("Depth Texture with cube render targets is not supported!");if(t.bindFramebuffer(t.FRAMEBUFFER,e),!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===Io)t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,r,0);else{if(n.depthTexture.format!==Do)throw new Error("Unknown depthTexture format");t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,r,0)}}function S(e){var n=i.get(e),r=!0===e.isWebGLRenderTargetCube;if(e.depthTexture){if(r)throw new Error("target.depthTexture not supported in Cube render targets");M(n.__webglFramebuffer,e)}else if(r){n.__webglDepthbuffer=[];for(var a=0;a<6;a++)t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer[a]),n.__webglDepthbuffer[a]=t.createRenderbuffer(),w(n.__webglDepthbuffer[a],e)}else t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer),n.__webglDepthbuffer=t.createRenderbuffer(),w(n.__webglDepthbuffer,e);t.bindFramebuffer(t.FRAMEBUFFER,null)}function E(e){var r=i.get(e),a=i.get(e.texture);e.addEventListener("dispose",f),a.__webglTexture=t.createTexture(),T.textures++;var o=!0===e.isWebGLRenderTargetCube,s=l(e);if(o){r.__webglFramebuffer=[];for(var u=0;u<6;u++)r.__webglFramebuffer[u]=t.createFramebuffer()}else r.__webglFramebuffer=t.createFramebuffer();if(o){n.bindTexture(t.TEXTURE_CUBE_MAP,a.__webglTexture),b(t.TEXTURE_CUBE_MAP,e.texture,s);for(var u=0;u<6;u++)_(r.__webglFramebuffer[u],e,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+u);e.texture.generateMipmaps&&s&&t.generateMipmap(t.TEXTURE_CUBE_MAP),n.bindTexture(t.TEXTURE_CUBE_MAP,null)}else n.bindTexture(t.TEXTURE_2D,a.__webglTexture),b(t.TEXTURE_2D,e.texture,s),_(r.__webglFramebuffer,e,t.COLOR_ATTACHMENT0,t.TEXTURE_2D),e.texture.generateMipmaps&&s&&t.generateMipmap(t.TEXTURE_2D),n.bindTexture(t.TEXTURE_2D,null);e.depthBuffer&&S(e)}function k(e){var r=e.texture;if(r.generateMipmaps&&l(e)&&r.minFilter!==uo&&r.minFilter!==fo){var a=e&&e.isWebGLRenderTargetCube?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,o=i.get(r).__webglTexture;n.bindTexture(a,o),t.generateMipmap(a),n.bindTexture(a,null)}}var T=o.memory,C="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext;this.setTexture2D=g,this.setTextureCube=v,this.setTextureCubeDynamic=y,this.setupRenderTarget=E,this.updateRenderTargetMipmap=k}function ae(){var t={};return{get:function(e){var n=e.uuid,i=t[n];return void 0===i&&(i={},t[n]=i),i},delete:function(e){delete t[e.uuid]},clear:function(){t={}}}}function oe(t,e,n){function i(){var e=!1,n=new o,i=null,r=new o;return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,a,o,s){!0===s&&(e*=o,i*=o,a*=o),n.set(e,i,a,o),!1===r.equals(n)&&(t.clearColor(e,i,a,o),r.copy(n))},reset:function(){e=!1,i=null,r.set(0,0,0,1)}}}function r(){var e=!1,n=null,i=null,r=null;return{setTest:function(e){e?f(t.DEPTH_TEST):p(t.DEPTH_TEST)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case Na:t.depthFunc(t.NEVER);break;case za:t.depthFunc(t.ALWAYS);break;case Ba:t.depthFunc(t.LESS);break;case Fa:t.depthFunc(t.LEQUAL);break;case Ua:t.depthFunc(t.EQUAL);break;case ja:t.depthFunc(t.GEQUAL);break;case Wa:t.depthFunc(t.GREATER);break;case Ga:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}else t.depthFunc(t.LEQUAL);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}}function a(){var e=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,u=null;return{setTest:function(e){e?f(t.STENCIL_TEST):p(t.STENCIL_TEST)},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,o){i===e&&r===n&&a===o||(t.stencilFunc(e,n,o),i=e,r=n,a=o)},setOp:function(e,n,i){o===e&&s===n&&l===i||(t.stencilOp(e,n,i),o=e,s=n,l=i)},setLocked:function(t){e=t},setClear:function(e){u!==e&&(t.clearStencil(e),u=e)},reset:function(){e=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,u=null}}}function s(e,n,i){var r=new Uint8Array(4),a=t.createTexture();t.bindTexture(e,a),t.texParameteri(e,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(e,t.TEXTURE_MAG_FILTER,t.NEAREST);for(var o=0;o=1,ct=null,ht={},dt=new o,ft=new o,pt={};return pt[t.TEXTURE_2D]=s(t.TEXTURE_2D,t.TEXTURE_2D,1),pt[t.TEXTURE_CUBE_MAP]=s(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),{buffers:{color:B,depth:F,stencil:U},init:l,initAttributes:u,enableAttribute:c,enableAttributeAndDivisor:h,disableUnusedAttributes:d,enable:f,disable:p,getCompressedTextureFormats:m,setBlending:g,setColorWrite:v,setDepthTest:y,setDepthWrite:b,setDepthFunc:x,setStencilTest:_,setStencilWrite:w,setStencilFunc:M,setStencilOp:S,setFlipSided:E,setCullFace:k,setLineWidth:T,setPolygonOffset:C,getScissorTest:P,setScissorTest:O,activeTexture:A,bindTexture:R,compressedTexImage2D:L,texImage2D:I,scissor:D,viewport:N,reset:z}}function se(t,e,n){function i(){if(void 0!==a)return a;var n=e.get("EXT_texture_filter_anisotropic");return a=null!==n?t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}function r(e){if("highp"===e){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}var a,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&&!!e.get("EXT_frag_depth"),u=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),c=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_TEXTURE_SIZE),d=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),f=t.getParameter(t.MAX_VERTEX_ATTRIBS),p=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),m=t.getParameter(t.MAX_VARYING_VECTORS),g=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),v=c>0,y=!!e.get("OES_texture_float");return{getMaxAnisotropy:i,getMaxPrecision:r,precision:o,logarithmicDepthBuffer:l,maxTextures:u,maxVertexTextures:c,maxTextureSize:h,maxCubemapSize:d,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:g,vertexTextures:v,floatFragmentTextures:y,floatVertexTextures:v&&y}}function le(t){var e={};return{get:function(n){if(void 0!==e[n])return e[n];var i;switch(n){case"WEBGL_depth_texture":i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;case"WEBGL_compressed_texture_etc1":i=t.getExtension("WEBGL_compressed_texture_etc1");break;default:i=t.getExtension(n)}return null===i&&console.warn("THREE.WebGLRenderer: "+n+" extension not supported."),e[n]=i,i}}}function ue(){function t(){u.value!==i&&(u.value=i,u.needsUpdate=r>0),n.numPlanes=r,n.numIntersection=0}function e(t,e,i,r){var a=null!==t?t.length:0,o=null;if(0!==a){if(o=u.value,!0!==r||null===o){var c=i+4*a,h=e.matrixWorldInverse;l.getNormalMatrix(h),(null===o||o.length=0){var c=a[l];if(void 0!==c){var h=c.normalized,d=c.itemSize,f=he.getAttributeProperties(c),p=f.__webglBuffer,m=f.type,g=f.bytesPerElement;if(c.isInterleavedBufferAttribute){var v=c.data,y=v.stride,b=c.offset;v&&v.isInstancedInterleavedBuffer?(te.enableAttributeAndDivisor(u,v.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=v.meshPerAttribute*v.count)):te.enableAttribute(u),Kt.bindBuffer(Kt.ARRAY_BUFFER,p),Kt.vertexAttribPointer(u,d,m,h,y*g,(i*y+b)*g)}else c.isInstancedBufferAttribute?(te.enableAttributeAndDivisor(u,c.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=c.meshPerAttribute*c.count)):te.enableAttribute(u),Kt.bindBuffer(Kt.ARRAY_BUFFER,p),Kt.vertexAttribPointer(u,d,m,h,0,i*d*g)}else if(void 0!==s){var x=s[l];if(void 0!==x)switch(x.length){case 2:Kt.vertexAttrib2fv(u,x);break;case 3:Kt.vertexAttrib3fv(u,x);break;case 4:Kt.vertexAttrib4fv(u,x);break;default:Kt.vertexAttrib1fv(u,x)}}}}te.disableUnusedAttributes()}function d(t,e){return Math.abs(e[0])-Math.abs(t[0])}function f(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.material.program&&e.material.program&&t.material.program!==e.material.program?t.material.program.id-e.material.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function p(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function m(t,e,n,i,r){var a,o;n.transparent?(a=it,o=++rt):(a=tt,o=++et);var s=a[o];void 0!==s?(s.id=t.id,s.object=t,s.geometry=e,s.material=n,s.z=Ht.z,s.group=r):(s={id:t.id,object:t,geometry:e,material:n,z:Ht.z,group:r},a.push(s))}function g(t){var e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Gt.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),y(Gt)}function v(t){return Gt.center.set(0,0,0),Gt.radius=.7071067811865476,Gt.applyMatrix4(t.matrixWorld),y(Gt)}function y(t){if(!Lt.intersectsSphere(t))return!1;var e=Dt.numPlanes;if(0===e)return!0;var n=ct.clippingPlanes,i=t.center,r=-t.radius,a=0;do{if(n[a].distanceToPoint(i)=0&&t.numSupportedMorphTargets++}if(t.morphNormals){t.numSupportedMorphNormals=0;for(var d=0;d=0&&t.numSupportedMorphNormals++}var f=i.__webglShader.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(i.numClippingPlanes=Dt.numPlanes,i.numIntersection=Dt.numIntersection,f.clippingPlanes=Dt.uniform),i.fog=e,i.lightsHash=Xt.hash,t.lights&&(f.ambientLightColor.value=Xt.ambient,f.directionalLights.value=Xt.directional,f.spotLights.value=Xt.spot,f.rectAreaLights.value=Xt.rectArea,f.pointLights.value=Xt.point,f.hemisphereLights.value=Xt.hemi,f.directionalShadowMap.value=Xt.directionalShadowMap,f.directionalShadowMatrix.value=Xt.directionalShadowMatrix,f.spotShadowMap.value=Xt.spotShadowMap,f.spotShadowMatrix.value=Xt.spotShadowMatrix,f.pointShadowMap.value=Xt.pointShadowMap,f.pointShadowMatrix.value=Xt.pointShadowMatrix);var p=i.program.getUniforms(),m=q.seqWithValue(p.seq,f);i.uniformsList=m}function w(t){t.side===la?te.disable(Kt.CULL_FACE):te.enable(Kt.CULL_FACE),te.setFlipSided(t.side===sa),!0===t.transparent?te.setBlending(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha):te.setBlending(pa),te.setDepthFunc(t.depthFunc),te.setDepthTest(t.depthTest),te.setDepthWrite(t.depthWrite),te.setColorWrite(t.colorWrite),te.setPolygonOffset(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits)}function M(t,e,n,i){_t=0;var r=ne.get(n);if(jt&&(Wt||t!==vt)){var a=t===vt&&n.id===mt;Dt.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,t,r,a)}!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==e?n.needsUpdate=!0:n.lights&&r.lightsHash!==Xt.hash?n.needsUpdate=!0:void 0===r.numClippingPlanes||r.numClippingPlanes===Dt.numPlanes&&r.numIntersection===Dt.numIntersection||(n.needsUpdate=!0)),n.needsUpdate&&(_(n,e,i),n.needsUpdate=!1);var o=!1,s=!1,l=!1,u=r.program,c=u.getUniforms(),h=r.__webglShader.uniforms;if(u.id!==ht&&(Kt.useProgram(u.program),ht=u.id,o=!0,s=!0,l=!0),n.id!==mt&&(mt=n.id,s=!0),o||t!==vt){if(c.set(Kt,t,"projectionMatrix"),$t.logarithmicDepthBuffer&&c.setValue(Kt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),t!==vt&&(vt=t,s=!0,l=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var d=c.map.cameraPosition;void 0!==d&&d.setValue(Kt,Ht.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&c.setValue(Kt,"viewMatrix",t.matrixWorldInverse),c.set(Kt,ct,"toneMappingExposure"),c.set(Kt,ct,"toneMappingWhitePoint")}if(n.skinning){c.setOptional(Kt,i,"bindMatrix"),c.setOptional(Kt,i,"bindMatrixInverse");var f=i.skeleton;f&&($t.floatVertexTextures&&f.useVertexTexture?(c.set(Kt,f,"boneTexture"),c.set(Kt,f,"boneTextureWidth"),c.set(Kt,f,"boneTextureHeight")):c.setOptional(Kt,f,"boneMatrices"))}return s&&(n.lights&&D(h,l),e&&n.fog&&C(h,e),(n.isMeshBasicMaterial||n.isMeshLambertMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.isMeshNormalMaterial||n.isMeshDepthMaterial)&&S(h,n),n.isLineBasicMaterial?E(h,n):n.isLineDashedMaterial?(E(h,n),k(h,n)):n.isPointsMaterial?T(h,n):n.isMeshLambertMaterial?P(h,n):n.isMeshToonMaterial?A(h,n):n.isMeshPhongMaterial?O(h,n):n.isMeshPhysicalMaterial?L(h,n):n.isMeshStandardMaterial?R(h,n):n.isMeshDepthMaterial?n.displacementMap&&(h.displacementMap.value=n.displacementMap,h.displacementScale.value=n.displacementScale,h.displacementBias.value=n.displacementBias):n.isMeshNormalMaterial&&I(h,n),void 0!==h.ltcMat&&(h.ltcMat.value=THREE.UniformsLib.LTC_MAT_TEXTURE),void 0!==h.ltcMag&&(h.ltcMag.value=THREE.UniformsLib.LTC_MAG_TEXTURE),q.upload(Kt,r.uniformsList,h,ct)),c.set(Kt,i,"modelViewMatrix"),c.set(Kt,i,"normalMatrix"),c.setValue(Kt,"modelMatrix",i.matrixWorld),u}function S(t,e){t.opacity.value=e.opacity,t.diffuse.value=e.color,e.emissive&&t.emissive.value.copy(e.emissive).multiplyScalar(e.emissiveIntensity),t.map.value=e.map,t.specularMap.value=e.specularMap,t.alphaMap.value=e.alphaMap,e.lightMap&&(t.lightMap.value=e.lightMap,t.lightMapIntensity.value=e.lightMapIntensity),e.aoMap&&(t.aoMap.value=e.aoMap,t.aoMapIntensity.value=e.aoMapIntensity);var n;if(e.map?n=e.map:e.specularMap?n=e.specularMap:e.displacementMap?n=e.displacementMap:e.normalMap?n=e.normalMap:e.bumpMap?n=e.bumpMap:e.roughnessMap?n=e.roughnessMap:e.metalnessMap?n=e.metalnessMap:e.alphaMap?n=e.alphaMap:e.emissiveMap&&(n=e.emissiveMap),void 0!==n){n.isWebGLRenderTarget&&(n=n.texture);var i=n.offset,r=n.repeat;t.offsetRepeat.value.set(i.x,i.y,r.x,r.y)}t.envMap.value=e.envMap,t.flipEnvMap.value=e.envMap&&e.envMap.isCubeTexture?-1:1,t.reflectivity.value=e.reflectivity,t.refractionRatio.value=e.refractionRatio}function E(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity}function k(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}function T(t,e){if(t.diffuse.value=e.color,t.opacity.value=e.opacity,t.size.value=e.size*kt,t.scale.value=.5*Et,t.map.value=e.map,null!==e.map){var n=e.map.offset,i=e.map.repeat;t.offsetRepeat.value.set(n.x,n.y,i.x,i.y)}}function C(t,e){t.fogColor.value=e.color,e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)}function P(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}function O(t,e){t.specular.value=e.specular,t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function A(t,e){O(t,e),e.gradientMap&&(t.gradientMap.value=e.gradientMap)}function R(t,e){t.roughness.value=e.roughness,t.metalness.value=e.metalness,e.roughnessMap&&(t.roughnessMap.value=e.roughnessMap),e.metalnessMap&&(t.metalnessMap.value=e.metalnessMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),e.envMap&&(t.envMapIntensity.value=e.envMapIntensity)}function L(t,e){t.clearCoat.value=e.clearCoat,t.clearCoatRoughness.value=e.clearCoatRoughness,R(t,e)}function I(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function D(t,e){t.ambientLightColor.needsUpdate=e,t.directionalLights.needsUpdate=e,t.pointLights.needsUpdate=e,t.spotLights.needsUpdate=e,t.rectAreaLights.needsUpdate=e,t.hemisphereLights.needsUpdate=e}function N(t){for(var e=0,n=0,i=t.length;n=$t.maxTextures&&console.warn("WebGLRenderer: trying to use "+t+" texture units while this GPU supports only "+$t.maxTextures),_t+=1,t}function F(t){var e;if(t===oo)return Kt.REPEAT;if(t===so)return Kt.CLAMP_TO_EDGE;if(t===lo)return Kt.MIRRORED_REPEAT;if(t===uo)return Kt.NEAREST;if(t===co)return Kt.NEAREST_MIPMAP_NEAREST;if(t===ho)return Kt.NEAREST_MIPMAP_LINEAR;if(t===fo)return Kt.LINEAR;if(t===po)return Kt.LINEAR_MIPMAP_NEAREST;if(t===mo)return Kt.LINEAR_MIPMAP_LINEAR;if(t===go)return Kt.UNSIGNED_BYTE;if(t===So)return Kt.UNSIGNED_SHORT_4_4_4_4;if(t===Eo)return Kt.UNSIGNED_SHORT_5_5_5_1;if(t===ko)return Kt.UNSIGNED_SHORT_5_6_5;if(t===vo)return Kt.BYTE;if(t===yo)return Kt.SHORT;if(t===bo)return Kt.UNSIGNED_SHORT;if(t===xo)return Kt.INT;if(t===_o)return Kt.UNSIGNED_INT;if(t===wo)return Kt.FLOAT;if(t===Mo&&null!==(e=Jt.get("OES_texture_half_float")))return e.HALF_FLOAT_OES;if(t===Co)return Kt.ALPHA;if(t===Po)return Kt.RGB;if(t===Oo)return Kt.RGBA;if(t===Ao)return Kt.LUMINANCE;if(t===Ro)return Kt.LUMINANCE_ALPHA;if(t===Io)return Kt.DEPTH_COMPONENT;if(t===Do)return Kt.DEPTH_STENCIL;if(t===xa)return Kt.FUNC_ADD;if(t===_a)return Kt.FUNC_SUBTRACT;if(t===wa)return Kt.FUNC_REVERSE_SUBTRACT;if(t===Ea)return Kt.ZERO;if(t===ka)return Kt.ONE;if(t===Ta)return Kt.SRC_COLOR;if(t===Ca)return Kt.ONE_MINUS_SRC_COLOR;if(t===Pa)return Kt.SRC_ALPHA;if(t===Oa)return Kt.ONE_MINUS_SRC_ALPHA;if(t===Aa)return Kt.DST_ALPHA;if(t===Ra)return Kt.ONE_MINUS_DST_ALPHA;if(t===La)return Kt.DST_COLOR;if(t===Ia)return Kt.ONE_MINUS_DST_COLOR;if(t===Da)return Kt.SRC_ALPHA_SATURATE;if((t===No||t===zo||t===Bo||t===Fo)&&null!==(e=Jt.get("WEBGL_compressed_texture_s3tc"))){if(t===No)return e.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===zo)return e.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===Bo)return e.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===Fo)return e.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((t===Uo||t===jo||t===Wo||t===Go)&&null!==(e=Jt.get("WEBGL_compressed_texture_pvrtc"))){if(t===Uo)return e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===jo)return e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===Wo)return e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===Go)return e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(t===Vo&&null!==(e=Jt.get("WEBGL_compressed_texture_etc1")))return e.COMPRESSED_RGB_ETC1_WEBGL;if((t===Ma||t===Sa)&&null!==(e=Jt.get("EXT_blend_minmax"))){if(t===Ma)return e.MIN_EXT;if(t===Sa)return e.MAX_EXT}return t===To&&null!==(e=Jt.get("WEBGL_depth_texture"))?e.UNSIGNED_INT_24_8_WEBGL:0}console.log("THREE.WebGLRenderer",Zr),t=t||{};var U=void 0!==t.canvas?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),j=void 0!==t.context?t.context:null,W=void 0!==t.alpha&&t.alpha,G=void 0===t.depth||t.depth,V=void 0===t.stencil||t.stencil,H=void 0!==t.antialias&&t.antialias,X=void 0===t.premultipliedAlpha||t.premultipliedAlpha,Z=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,J=[],tt=[],et=-1,it=[],rt=-1,st=new Float32Array(8),lt=[],ut=[];this.domElement=U,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=Xa,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var ct=this,ht=null,dt=null,ft=null,mt=-1,gt="",vt=null,yt=new o,bt=null,xt=new o,_t=0,wt=new Y(0),Mt=0,St=U.width,Et=U.height,kt=1,Tt=new o(0,0,St,Et),Ct=!1,At=new o(0,0,St,Et),Lt=new at,Dt=new ue,jt=!1,Wt=!1,Gt=new nt,Vt=new h,Ht=new c,qt=new h,Yt=new h,Xt={hash:"",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],shadows:[]},Zt={calls:0,vertices:0,faces:0,points:0};this.info={render:Zt,memory:{geometries:0,textures:0},programs:null};var Kt;try{var Qt={alpha:W,depth:G,stencil:V,antialias:H,premultipliedAlpha:X,preserveDrawingBuffer:Z};if(null===(Kt=j||U.getContext("webgl",Qt)||U.getContext("experimental-webgl",Qt)))throw null!==U.getContext("webgl")?"Error creating WebGL context with your selected attributes.":"Error creating WebGL context.";void 0===Kt.getShaderPrecisionFormat&&(Kt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}}),U.addEventListener("webglcontextlost",r,!1)}catch(t){console.error("THREE.WebGLRenderer: "+t)}var Jt=new le(Kt);Jt.get("WEBGL_depth_texture"),Jt.get("OES_texture_float"),Jt.get("OES_texture_float_linear"),Jt.get("OES_texture_half_float"),Jt.get("OES_texture_half_float_linear"),Jt.get("OES_standard_derivatives"),Jt.get("ANGLE_instanced_arrays"),Jt.get("OES_element_index_uint")&&(Pt.MaxIndex=4294967296);var $t=new se(Kt,Jt,t),te=new oe(Kt,Jt,F),ne=new ae,ce=new re(Kt,Jt,te,ne,$t,F,this.info),he=new ie(Kt,ne,this.info),de=new ee(this,$t),fe=new Ut;this.info.programs=de.programs;var pe,me,ge,ve,ye=new Ft(Kt,Jt,Zt),be=new Bt(Kt,Jt,Zt);n(),this.context=Kt,this.capabilities=$t,this.extensions=Jt,this.properties=ne,this.state=te;var xe=new ot(this,Xt,he,$t);this.shadowMap=xe;var _e=new Q(this,lt),we=new K(this,ut);this.getContext=function(){return Kt},this.getContextAttributes=function(){return Kt.getContextAttributes()},this.forceContextLoss=function(){Jt.get("WEBGL_lose_context").loseContext()},this.getMaxAnisotropy=function(){return $t.getMaxAnisotropy()},this.getPrecision=function(){return $t.precision},this.getPixelRatio=function(){return kt},this.setPixelRatio=function(t){void 0!==t&&(kt=t,this.setSize(At.z,At.w,!1))},this.getSize=function(){return{width:St,height:Et}},this.setSize=function(t,e,n){St=t,Et=e,U.width=t*kt,U.height=e*kt,!1!==n&&(U.style.width=t+"px",U.style.height=e+"px"),this.setViewport(0,0,t,e)},this.setViewport=function(t,e,n,i){te.viewport(At.set(t,e,n,i))},this.setScissor=function(t,e,n,i){te.scissor(Tt.set(t,e,n,i))},this.setScissorTest=function(t){te.setScissorTest(Ct=t)},this.getClearColor=function(){return wt},this.setClearColor=function(t,e){wt.set(t),Mt=void 0!==e?e:1,te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X)},this.getClearAlpha=function(){return Mt},this.setClearAlpha=function(t){Mt=t,te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X)},this.clear=function(t,e,n){var i=0;(void 0===t||t)&&(i|=Kt.COLOR_BUFFER_BIT),(void 0===e||e)&&(i|=Kt.DEPTH_BUFFER_BIT),(void 0===n||n)&&(i|=Kt.STENCIL_BUFFER_BIT),Kt.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.clearTarget=function(t,e,n,i){this.setRenderTarget(t),this.clear(e,n,i)},this.resetGLState=i,this.dispose=function(){it=[],rt=-1,tt=[],et=-1,U.removeEventListener("webglcontextlost",r,!1)},this.renderBufferImmediate=function(t,e,n){te.initAttributes();var i=ne.get(t);t.hasPositions&&!i.position&&(i.position=Kt.createBuffer()),t.hasNormals&&!i.normal&&(i.normal=Kt.createBuffer()),t.hasUvs&&!i.uv&&(i.uv=Kt.createBuffer()),t.hasColors&&!i.color&&(i.color=Kt.createBuffer());var r=e.getAttributes();if(t.hasPositions&&(Kt.bindBuffer(Kt.ARRAY_BUFFER,i.position),Kt.bufferData(Kt.ARRAY_BUFFER,t.positionArray,Kt.DYNAMIC_DRAW),te.enableAttribute(r.position),Kt.vertexAttribPointer(r.position,3,Kt.FLOAT,!1,0,0)),t.hasNormals){if(Kt.bindBuffer(Kt.ARRAY_BUFFER,i.normal),!n.isMeshPhongMaterial&&!n.isMeshStandardMaterial&&!n.isMeshNormalMaterial&&n.shading===ua)for(var a=0,o=3*t.count;a8&&(f.length=8);for(var v=i.morphAttributes,p=0,m=f.length;p0&&S.renderInstances(i,O,R):S.render(O,R)}},this.render=function(t,e,n,i){if(void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");gt="",mt=-1,vt=null,!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),e.matrixWorldInverse.getInverse(e.matrixWorld),Vt.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),Lt.setFromMatrix(Vt),J.length=0,et=-1,rt=-1,lt.length=0,ut.length=0,Wt=this.localClippingEnabled,jt=Dt.init(this.clippingPlanes,Wt,e),b(t,e),tt.length=et+1,it.length=rt+1,!0===ct.sortObjects&&(tt.sort(f),it.sort(p)),jt&&Dt.beginShadows(),N(J),xe.render(t,e),z(J,e),jt&&Dt.endShadows(),Zt.calls=0,Zt.vertices=0,Zt.faces=0,Zt.points=0,void 0===n&&(n=null),this.setRenderTarget(n);var r=t.background;if(null===r?te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X):r&&r.isColor&&(te.buffers.color.setClear(r.r,r.g,r.b,1,X),i=!0),(this.autoClear||i)&&this.clear(this.autoClearColor,this.autoClearDepth,this.autoClearStencil),r&&r.isCubeTexture?(void 0===ge&&(ge=new Nt,ve=new Ot(new Rt(5,5,5),new $({uniforms:Ss.cube.uniforms,vertexShader:Ss.cube.vertexShader,fragmentShader:Ss.cube.fragmentShader,side:sa,depthTest:!1,depthWrite:!1,fog:!1}))),ge.projectionMatrix.copy(e.projectionMatrix),ge.matrixWorld.extractRotation(e.matrixWorld),ge.matrixWorldInverse.getInverse(ge.matrixWorld),ve.material.uniforms.tCube.value=r,ve.modelViewMatrix.multiplyMatrices(ge.matrixWorldInverse,ve.matrixWorld),he.update(ve),ct.renderBufferDirect(ge,null,ve.geometry,ve.material,ve,null)):r&&r.isTexture&&(void 0===pe&&(pe=new zt(-1,1,1,-1,0,1),me=new Ot(new It(2,2),new pt({depthTest:!1,depthWrite:!1,fog:!1}))),me.material.map=r,he.update(me),ct.renderBufferDirect(pe,null,me.geometry,me.material,me,null)),t.overrideMaterial){var a=t.overrideMaterial;x(tt,t,e,a),x(it,t,e,a)}else te.setBlending(pa),x(tt,t,e),x(it,t,e);_e.render(t,e),we.render(t,e,xt),n&&ce.updateRenderTargetMipmap(n),te.setDepthTest(!0),te.setDepthWrite(!0),te.setColorWrite(!0)},this.setFaceCulling=function(t,e){te.setCullFace(t),te.setFlipSided(e===ea)},this.allocTextureUnit=B,this.setTexture2D=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTarget&&(t||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),t=!0),e=e.texture),ce.setTexture2D(e,n)}}(),this.setTexture=function(){var t=!1;return function(e,n){t||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),t=!0),ce.setTexture2D(e,n)}}(),this.setTextureCube=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTargetCube&&(t||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),t=!0),e=e.texture),e&&e.isCubeTexture||Array.isArray(e.image)&&6===e.image.length?ce.setTextureCube(e,n):ce.setTextureCubeDynamic(e,n)}}(),this.getCurrentRenderTarget=function(){return dt},this.setRenderTarget=function(t){dt=t,t&&void 0===ne.get(t).__webglFramebuffer&&ce.setupRenderTarget(t);var e,n=t&&t.isWebGLRenderTargetCube;if(t){var i=ne.get(t);e=n?i.__webglFramebuffer[t.activeCubeFace]:i.__webglFramebuffer,yt.copy(t.scissor),bt=t.scissorTest,xt.copy(t.viewport)}else e=null,yt.copy(Tt).multiplyScalar(kt),bt=Ct,xt.copy(At).multiplyScalar(kt);if(ft!==e&&(Kt.bindFramebuffer(Kt.FRAMEBUFFER,e),ft=e),te.scissor(yt),te.setScissorTest(bt),te.viewport(xt),n){var r=ne.get(t.texture);Kt.framebufferTexture2D(Kt.FRAMEBUFFER,Kt.COLOR_ATTACHMENT0,Kt.TEXTURE_CUBE_MAP_POSITIVE_X+t.activeCubeFace,r.__webglTexture,t.activeMipMapLevel)}},this.readRenderTargetPixels=function(t,e,n,i,r,a){if(!1===(t&&t.isWebGLRenderTarget))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");var o=ne.get(t).__webglFramebuffer;if(o){var s=!1;o!==ft&&(Kt.bindFramebuffer(Kt.FRAMEBUFFER,o),s=!0);try{var l=t.texture,u=l.format,c=l.type;if(u!==Oo&&F(u)!==Kt.getParameter(Kt.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!(c===go||F(c)===Kt.getParameter(Kt.IMPLEMENTATION_COLOR_READ_TYPE)||c===wo&&(Jt.get("OES_texture_float")||Jt.get("WEBGL_color_buffer_float"))||c===Mo&&Jt.get("EXT_color_buffer_half_float")))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");Kt.checkFramebufferStatus(Kt.FRAMEBUFFER)===Kt.FRAMEBUFFER_COMPLETE?e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&Kt.readPixels(e,n,i,r,F(u),F(c),a):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{s&&Kt.bindFramebuffer(Kt.FRAMEBUFFER,ft)}}}}function he(t,e){this.name="",this.color=new Y(t),this.density=void 0!==e?e:25e-5}function de(t,e,n){this.name="",this.color=new Y(t),this.near=void 0!==e?e:1,this.far=void 0!==n?n:1e3}function fe(){ct.call(this),this.type="Scene",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function pe(t,e,n,i,r){ct.call(this),this.lensFlares=[],this.positionScreen=new c,this.customUpdateCallback=void 0,void 0!==t&&this.add(t,e,n,i,r)}function me(t){J.call(this),this.type="SpriteMaterial",this.color=new Y(16777215),this.map=null,this.rotation=0,this.fog=!1,this.lights=!1,this.setValues(t)}function ge(t){ct.call(this),this.type="Sprite",this.material=void 0!==t?t:new me}function ve(){ct.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function ye(t,e,n){if(this.useVertexTexture=void 0===n||n,this.identityMatrix=new h,t=t||[],this.bones=t.slice(0),this.useVertexTexture){var i=Math.sqrt(4*this.bones.length);i=fs.nextPowerOfTwo(Math.ceil(i)),i=Math.max(i,4),this.boneTextureWidth=i,this.boneTextureHeight=i,this.boneMatrices=new Float32Array(this.boneTextureWidth*this.boneTextureHeight*4),this.boneTexture=new X(this.boneMatrices,this.boneTextureWidth,this.boneTextureHeight,Oo,wo)}else this.boneMatrices=new Float32Array(16*this.bones.length);if(void 0===e)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else{console.warn("THREE.Skeleton bonInverses is the wrong length."),this.boneInverses=[];for(var r=0,a=this.bones.length;r=t.HAVE_CURRENT_DATA&&(h.needsUpdate=!0)}a.call(this,t,e,n,i,r,o,s,l,u),this.generateMipmaps=!1;var h=this;c()}function Ce(t,e,n,i,r,o,s,l,u,c,h,d){a.call(this,null,o,s,l,u,c,i,r,h,d),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}function Pe(t,e,n,i,r,o,s,l,u){a.call(this,t,e,n,i,r,o,s,l,u),this.needsUpdate=!0}function Oe(t,e,n,i,r,o,s,l,u,c){if((c=void 0!==c?c:Io)!==Io&&c!==Do)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===Io&&(n=bo),void 0===n&&c===Do&&(n=To),a.call(this,null,i,r,o,s,l,c,n,u),this.image={width:t,height:e},this.magFilter=void 0!==s?s:uo,this.minFilter=void 0!==l?l:uo,this.flipY=!1,this.generateMipmaps=!1}function Ae(t){function e(t,e){return t-e}Pt.call(this),this.type="WireframeGeometry";var n,i,r,a,o,s,l,u,h=[],d=[0,0],f={},p=["a","b","c"];if(t&&t.isGeometry){var m=t.faces;for(n=0,r=m.length;n.9&&a<.1&&(e<.2&&(m[t+0]+=1),n<.2&&(m[t+2]+=1),i<.2&&(m[t+4]+=1))}}function s(t){p.push(t.x,t.y,t.z)}function l(e,n){var i=3*e;n.x=t[i+0],n.y=t[i+1],n.z=t[i+2]}function u(){for(var t=new c,e=new c,n=new c,i=new c,a=new r,o=new r,s=new r,l=0,u=0;l0)&&m.push(w,M,E),(l!==n-1||u0&&u(!0),e>0&&u(!1)),this.setIndex(d),this.addAttribute("position",new Mt(f,3)),this.addAttribute("normal",new Mt(p,3)),this.addAttribute("uv",new Mt(m,2))}function cn(t,e,n,i,r,a,o){ln.call(this,0,t,e,n,i,r,a,o),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function hn(t,e,n,i,r,a,o){un.call(this,0,t,e,n,i,r,a,o),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function dn(t,e,n,i){Ct.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new fn(t,e,n,i))}function fn(t,e,n,i){Pt.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},t=t||50,e=void 0!==e?Math.max(3,e):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var a,o,s=[],l=[],u=[],h=[],d=new c,f=new r;for(l.push(0,0,0),u.push(0,0,1),h.push(.5,.5),o=0,a=3;o<=e;o++,a+=3){var p=n+o/e*i;d.x=t*Math.cos(p),d.y=t*Math.sin(p),l.push(d.x,d.y,d.z),u.push(0,0,1),f.x=(l[a]/t+1)/2,f.y=(l[a+1]/t+1)/2,h.push(f.x,f.y)}for(a=1;a<=e;a++)s.push(a,a+1,0);this.setIndex(s),this.addAttribute("position",new Mt(l,3)),this.addAttribute("normal",new Mt(u,3)),this.addAttribute("uv",new Mt(h,2))}function pn(){$.call(this,{uniforms:xs.merge([Ms.lights,{opacity:{value:1}}]),vertexShader:_s.shadow_vert,fragmentShader:_s.shadow_frag}),this.lights=!0,this.transparent=!0,Object.defineProperties(this,{opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}}})}function mn(t){$.call(this,t),this.type="RawShaderMaterial"}function gn(t){this.uuid=fs.generateUUID(),this.type="MultiMaterial",this.materials=Array.isArray(t)?t:[],this.visible=!0}function vn(t){J.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Y(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 Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(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(t)}function yn(t){vn.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(t)}function bn(t){J.call(this),this.type="MeshPhongMaterial",this.color=new Y(16777215),this.specular=new Y(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Va,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(t)}function xn(t){bn.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function _n(t){J.call(this,t),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(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(t)}function wn(t){J.call(this),this.type="MeshLambertMaterial",this.color=new Y(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Va,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(t)}function Mn(t){J.call(this),this.type="LineDashedMaterial",this.color=new Y(16777215),this.linewidth=1,this.scale=1,this.dashSize=3,this.gapSize=1,this.lights=!1,this.setValues(t)}function Sn(t,e,n){var i=this,r=!1,a=0,o=0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){o++,!1===r&&void 0!==i.onStart&&i.onStart(t,a,o),r=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,o),a===o&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)}}function En(t){this.manager=void 0!==t?t:Ls}function kn(t){this.manager=void 0!==t?t:Ls,this._parser=null}function Tn(t){this.manager=void 0!==t?t:Ls,this._parser=null}function Cn(t){this.manager=void 0!==t?t:Ls}function Pn(t){this.manager=void 0!==t?t:Ls}function On(t){this.manager=void 0!==t?t:Ls}function An(t,e){ct.call(this),this.type="Light",this.color=new Y(t),this.intensity=void 0!==e?e:1,this.receiveShadow=void 0}function Rn(t,e,n){An.call(this,t,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(ct.DefaultUp),this.updateMatrix(),this.groundColor=new Y(e)}function Ln(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new r(512,512),this.map=null,this.matrix=new h}function In(){Ln.call(this,new Nt(50,1,.5,500))}function Dn(t,e,n,i,r,a){An.call(this,t,e),this.type="SpotLight",this.position.copy(ct.DefaultUp),this.updateMatrix(),this.target=new ct,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(t){this.intensity=t/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 In}function Nn(t,e,n,i){An.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(t){this.intensity=t/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new Ln(new Nt(90,1,.5,500))}function zn(){Ln.call(this,new zt(-5,5,5,-5,.5,500))}function Bn(t,e){An.call(this,t,e),this.type="DirectionalLight",this.position.copy(ct.DefaultUp),this.updateMatrix(),this.target=new ct,this.shadow=new zn}function Fn(t,e){An.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function Un(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function jn(t,e,n,i){Un.call(this,t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Wn(t,e,n,i){Un.call(this,t,e,n,i)}function Gn(t,e,n,i){Un.call(this,t,e,n,i)}function Vn(t,e,n,i){if(void 0===t)throw new Error("track name is undefined");if(void 0===e||0===e.length)throw new Error("no keyframes in track named "+t);this.name=t,this.times=Is.convertArray(e,this.TimeBufferType),this.values=Is.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation),this.validate(),this.optimize()}function Hn(t,e,n,i){Vn.call(this,t,e,n,i)}function qn(t,e,n,i){Un.call(this,t,e,n,i)}function Yn(t,e,n,i){Vn.call(this,t,e,n,i)}function Xn(t,e,n,i){Vn.call(this,t,e,n,i)}function Zn(t,e,n,i){Vn.call(this,t,e,n,i)}function Kn(t,e,n){Vn.call(this,t,e,n)}function Qn(t,e,n,i){Vn.call(this,t,e,n,i)}function Jn(t,e,n,i){Vn.apply(this,arguments)}function $n(t,e,n){this.name=t,this.tracks=n,this.duration=void 0!==e?e:-1,this.uuid=fs.generateUUID(),this.duration<0&&this.resetDuration(),this.optimize()}function ti(t){this.manager=void 0!==t?t:Ls,this.textures={}}function ei(t){this.manager=void 0!==t?t:Ls}function ni(){this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){}}function ii(t){"boolean"==typeof t&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=void 0!==t?t:Ls,this.withCredentials=!1}function ri(t){this.manager=void 0!==t?t:Ls,this.texturePath=""}function ai(t,e,n,i,r){var a=.5*(i-e),o=.5*(r-n),s=t*t;return(2*n-2*i+a+o)*(t*s)+(-3*n+3*i-2*a-o)*s+a*t+n}function oi(t,e){var n=1-t;return n*n*e}function si(t,e){return 2*(1-t)*t*e}function li(t,e){return t*t*e}function ui(t,e,n,i){return oi(t,e)+si(t,n)+li(t,i)}function ci(t,e){var n=1-t;return n*n*n*e}function hi(t,e){var n=1-t;return 3*n*n*t*e}function di(t,e){return 3*(1-t)*t*t*e}function fi(t,e){return t*t*t*e}function pi(t,e,n,i,r){return ci(t,e)+hi(t,n)+di(t,i)+fi(t,r)}function mi(){}function gi(t,e){this.v1=t,this.v2=e}function vi(){this.curves=[],this.autoClose=!1}function yi(t,e,n,i,r,a,o,s){this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s||0}function bi(t){this.points=void 0===t?[]:t}function xi(t,e,n,i){this.v0=t,this.v1=e,this.v2=n,this.v3=i}function _i(t,e,n){this.v0=t,this.v1=e,this.v2=n}function wi(t){vi.call(this),this.currentPoint=new r,t&&this.fromPoints(t)}function Mi(){wi.apply(this,arguments),this.holes=[]}function Si(){this.subPaths=[],this.currentPath=null}function Ei(t){this.data=t}function ki(t){this.manager=void 0!==t?t:Ls}function Ti(t){this.manager=void 0!==t?t:Ls}function Ci(t,e,n,i){An.call(this,t,e),this.type="RectAreaLight",this.position.set(0,1,0),this.updateMatrix(),this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function Pi(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Nt,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Nt,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function Oi(t,e,n){ct.call(this),this.type="CubeCamera";var i=new Nt(90,1,t,e);i.up.set(0,-1,0),i.lookAt(new c(1,0,0)),this.add(i);var r=new Nt(90,1,t,e);r.up.set(0,-1,0),r.lookAt(new c(-1,0,0)),this.add(r);var a=new Nt(90,1,t,e);a.up.set(0,0,1),a.lookAt(new c(0,1,0)),this.add(a);var o=new Nt(90,1,t,e);o.up.set(0,0,-1),o.lookAt(new c(0,-1,0)),this.add(o);var s=new Nt(90,1,t,e);s.up.set(0,-1,0),s.lookAt(new c(0,0,1)),this.add(s);var u=new Nt(90,1,t,e);u.up.set(0,-1,0),u.lookAt(new c(0,0,-1)),this.add(u);var h={format:Po,magFilter:fo,minFilter:fo};this.renderTarget=new l(n,n,h),this.updateCubeMap=function(t,e){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,l=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,t.render(e,i,n),n.activeCubeFace=1,t.render(e,r,n),n.activeCubeFace=2,t.render(e,a,n),n.activeCubeFace=3,t.render(e,o,n),n.activeCubeFace=4,t.render(e,s,n),n.texture.generateMipmaps=l,n.activeCubeFace=5,t.render(e,u,n),t.setRenderTarget(null)}}function Ai(){ct.call(this),this.type="AudioListener",this.context=Bs.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null}function Ri(t){ct.call(this),this.type="Audio",this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function Li(t){Ri.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Ii(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=void 0!==e?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function Di(t,e,n){this.binding=t,this.valueSize=n;var i,r=Float64Array;switch(e){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}function Ni(t,e,n){this.path=e,this.parsedPath=n||Ni.parseTrackName(e),this.node=Ni.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function zi(t){this.uuid=fs.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var e={};this._indicesByUUID=e;for(var n=0,i=arguments.length;n!==i;++n)e[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}}function Bi(t,e,n){this._mixer=t,this._clip=e,this._localRoot=n||null;for(var i=e.tracks,r=i.length,a=new Array(r),o={endingStart:Qo,endingEnd:Qo},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=qo,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 Fi(t){this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function Ui(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}function ji(){Pt.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function Wi(t,e,n,i){this.uuid=fs.generateUUID(),this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}function Gi(t,e){this.uuid=fs.generateUUID(),this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.onUploadCallback=function(){},this.version=0}function Vi(t,e,n){Gi.call(this,t,e),this.meshPerAttribute=n||1}function Hi(t,e,n){mt.call(this,t,e),this.meshPerAttribute=n||1}function qi(t,e,n,i){this.ray=new st(t,e),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 Yi(t,e){return t.distance-e.distance}function Xi(t,e,n,i){if(!1!==t.visible&&(t.raycast(e,n),!0===i))for(var r=t.children,a=0,o=r.length;a0?1:+t}),void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n>=4,n[r]=e[19===r?3&t|8:t]);return n.join("")}}(),clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*fs.DEG2RAD},radToDeg:function(t){return t*fs.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}};r.prototype={constructor:r,isVector2:!0,get width(){return this.x},set width(t){this.x=t},get height(){return this.y},set height(t){this.y=t},set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new r,e=new r),t.set(n,n),e.set(i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/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(t){return this.x*t.x+this.y*t.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length())},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},distanceToManhattan:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,a=this.y-t.y;return this.x=r*n-a*i+t.x,this.y=r*i+a*n+t.y,this}};var ps=0;a.DEFAULT_IMAGE=void 0,a.DEFAULT_MAPPING=Ja,a.prototype={constructor:a,isTexture:!0,set needsUpdate(t){!0===t&&this.version++},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){if(void 0!==t.textures[this.uuid])return t.textures[this.uuid];var e={metadata:{version:4.4,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],wrap:[this.wrapS,this.wrapT],minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(void 0!==this.image){var n=this.image;void 0===n.uuid&&(n.uuid=fs.generateUUID()),void 0===t.images[n.uuid]&&(t.images[n.uuid]={uuid:n.uuid,url:function(t){var e;return void 0!==t.toDataURL?e=t:(e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),e.width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0,t.width,t.height)),e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}(n)}),e.image=n.uuid}return t.textures[this.uuid]=e,e},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping===Ja){if(t.multiply(this.repeat),t.add(this.offset),t.x<0||t.x>1)switch(this.wrapS){case oo:t.x=t.x-Math.floor(t.x);break;case so:t.x=t.x<0?0:1;break;case lo:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case oo:t.y=t.y-Math.floor(t.y);break;case so:t.y=t.y<0?0:1;break;case lo:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}this.flipY&&(t.y=1-t.y)}}},Object.assign(a.prototype,i.prototype),o.prototype={constructor:o,isVector4:!0,set:function(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t,this.w*=t):(this.x=0,this.y=0,this.z=0,this.w=0),this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=this.w,a=t.elements;return this.x=a[0]*e+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*e+a[5]*n+a[9]*i+a[13]*r,this.z=a[2]*e+a[6]*n+a[10]*i+a[14]*r,this.w=a[3]*e+a[7]*n+a[11]*i+a[15]*r,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e,n,i,r,a=t.elements,o=a[0],s=a[4],l=a[8],u=a[1],c=a[5],h=a[9],d=a[2],f=a[6],p=a[10];if(Math.abs(s-u)<.01&&Math.abs(l-d)<.01&&Math.abs(h-f)<.01){if(Math.abs(s+u)<.1&&Math.abs(l+d)<.1&&Math.abs(h+f)<.1&&Math.abs(o+c+p-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;var m=(o+1)/2,g=(c+1)/2,v=(p+1)/2,y=(s+u)/4,b=(l+d)/4,x=(h+f)/4;return m>g&&m>v?m<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(m),i=y/n,r=b/n):g>v?g<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(g),n=y/i,r=x/i):v<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=b/r,i=x/r),this.set(n,i,r,e),this}var _=Math.sqrt((f-h)*(f-h)+(l-d)*(l-d)+(u-s)*(u-s));return Math.abs(_)<.001&&(_=1),this.x=(f-h)/_,this.y=(l-d)/_,this.z=(u-s)/_,this.w=Math.acos((o+c+p-1)/2),this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new o,e=new o),t.set(n,n,n,n),e.set(i,i,i,i),this.clamp(t,e)}}(),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(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan: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())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}},s.prototype={constructor:s,isWebGLRenderTarget:!0,setSize:function(t,e){this.width===t&&this.height===e||(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}},Object.assign(s.prototype,i.prototype),l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.isWebGLRenderTargetCube=!0,u.prototype={constructor:u,get x(){return this._x},set x(t){this._x=t,this.onChangeCallback()},get y(){return this._y},set y(t){this._y=t,this.onChangeCallback()},get z(){return this._z},set z(t){this._z=t,this.onChangeCallback()},get w(){return this._w},set w(t){this._w=t,this.onChangeCallback()},set:function(t,e,n,i){return this._x=t,this._y=e,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(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!1===(t&&t.isEuler))throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=Math.cos(t._x/2),i=Math.cos(t._y/2),r=Math.cos(t._z/2),a=Math.sin(t._x/2),o=Math.sin(t._y/2),s=Math.sin(t._z/2),l=t.order;return"XYZ"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r-a*o*s):"YXZ"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r+a*o*s):"ZXY"===l?(this._x=a*i*r-n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r-a*o*s):"ZYX"===l?(this._x=a*i*r-n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r+a*o*s):"YZX"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r-a*o*s):"XZY"===l&&(this._x=a*i*r-n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r+a*o*s),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e,n=t.elements,i=n[0],r=n[4],a=n[8],o=n[1],s=n[5],l=n[9],u=n[2],c=n[6],h=n[10],d=i+s+h;return d>0?(e=.5/Math.sqrt(d+1),this._w=.25/e,this._x=(c-l)*e,this._y=(a-u)*e,this._z=(o-r)*e):i>s&&i>h?(e=2*Math.sqrt(1+i-s-h),this._w=(c-l)/e,this._x=.25*e,this._y=(r+o)/e,this._z=(a+u)/e):s>h?(e=2*Math.sqrt(1+s-i-h),this._w=(a-u)/e,this._x=(r+o)/e,this._y=.25*e,this._z=(l+c)/e):(e=2*Math.sqrt(1+h-i-s),this._w=(o-r)/e,this._x=(a+u)/e,this._y=(l+c)/e,this._z=.25*e),this.onChangeCallback(),this},setFromUnitVectors:function(){var t,e;return function(n,i){return void 0===t&&(t=new c),e=n.dot(i)+1,e<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()}}(),inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this.onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,i=t._y,r=t._z,a=t._w,o=e._x,s=e._y,l=e._z,u=e._w;return this._x=n*u+a*o+i*l-r*s,this._y=i*u+a*s+r*o-n*l,this._z=r*u+a*l+n*s-i*o,this._w=a*u-n*o-i*s-r*l,this.onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var n=this._x,i=this._y,r=this._z,a=this._w,o=a*t._w+n*t._x+i*t._y+r*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=n,this._y=i,this._z=r,this;var s=Math.sqrt(1-o*o);if(Math.abs(s)<.001)return this._w=.5*(a+this._w),this._x=.5*(n+this._x),this._y=.5*(i+this._y),this._z=.5*(r+this._z),this;var l=Math.atan2(s,o),u=Math.sin((1-e)*l)/s,c=Math.sin(e*l)/s;return this._w=a*u+this._w*c,this._x=n*u+this._x*c,this._y=i*u+this._y*c,this._z=r*u+this._z*c,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},Object.assign(u,{slerp:function(t,e,n,i){return n.copy(t).slerp(e,i)},slerpFlat:function(t,e,n,i,r,a,o){var s=n[i+0],l=n[i+1],u=n[i+2],c=n[i+3],h=r[a+0],d=r[a+1],f=r[a+2],p=r[a+3];if(c!==p||s!==h||l!==d||u!==f){var m=1-o,g=s*h+l*d+u*f+c*p,v=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,g*v);m=Math.sin(m*x)/b,o=Math.sin(o*x)/b}var _=o*v;if(s=s*m+h*_,l=l*m+d*_,u=u*m+f*_,c=c*m+p*_,m===1-o){var w=1/Math.sqrt(s*s+l*l+u*u+c*c);s*=w,l*=w,u*=w,c*=w}}t[e]=s,t[e+1]=l,t[e+2]=u,t[e+3]=c}}),c.prototype={constructor:c,isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t;return function(e){return!1===(e&&e.isEuler)&&console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),void 0===t&&(t=new u),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t;return function(e,n){return void 0===t&&(t=new u),this.applyQuaternion(t.setFromAxisAngle(e,n))}}(),applyMatrix3:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;this.x=r[0]*e+r[4]*n+r[8]*i+r[12],this.y=r[1]*e+r[5]*n+r[9]*i+r[13],this.z=r[2]*e+r[6]*n+r[10]*i+r[14];var a=r[3]*e+r[7]*n+r[11]*i+r[15];return this.divideScalar(a)},applyQuaternion:function(t){var e=this.x,n=this.y,i=this.z,r=t.x,a=t.y,o=t.z,s=t.w,l=s*e+a*i-o*n,u=s*n+o*e-r*i,c=s*i+r*n-a*e,h=-r*e-a*n-o*i;return this.x=l*s+h*-r+u*-o-c*-a,this.y=u*s+h*-a+c*-r-l*-o,this.z=c*s+h*-o+l*-a-u*-r,this},project:function(){var t;return function(e){return void 0===t&&(t=new h),t.multiplyMatrices(e.projectionMatrix,t.getInverse(e.matrixWorld)),this.applyMatrix4(t)}}(),unproject:function(){var t;return function(e){return void 0===t&&(t=new h),t.multiplyMatrices(e.matrixWorld,t.getInverse(e.projectionMatrix)),this.applyMatrix4(t)}}(),transformDirection:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new c,e=new c),t.set(n,n,n),e.set(i,i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/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(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){if(void 0!==e)return console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e);var n=this.x,i=this.y,r=this.z;return this.x=i*t.z-r*t.y,this.y=r*t.x-n*t.z,this.z=n*t.y-i*t.x,this},crossVectors:function(t,e){var n=t.x,i=t.y,r=t.z,a=e.x,o=e.y,s=e.z;return this.x=i*s-r*o,this.y=r*a-n*s,this.z=n*o-i*a,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t;return function(e){return void 0===t&&(t=new c),t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t;return function(e){return void 0===t&&(t=new c),this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){var e=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq());return Math.acos(fs.clamp(e,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i},distanceToManhattan:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){var e=Math.sin(t.phi)*t.radius;return this.x=e*Math.sin(t.theta),this.y=Math.cos(t.phi)*t.radius,this.z=e*Math.cos(t.theta),this},setFromCylindrical:function(t){return this.x=t.radius*Math.sin(t.theta),this.y=t.y,this.z=t.radius*Math.cos(t.theta),this},setFromMatrixPosition:function(t){return this.setFromMatrixColumn(t,3)},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this},setFromMatrixColumn:function(t,e){if("number"==typeof t){console.warn("THREE.Vector3: setFromMatrixColumn now expects ( matrix, index ).");var n=t;t=e,e=n}return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}},h.prototype={constructor:h,isMatrix4:!0,set:function(t,e,n,i,r,a,o,s,l,u,c,h,d,f,p,m){var g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=a,g[9]=o,g[13]=s,g[2]=l,g[6]=u,g[10]=c,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[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 h).fromArray(this.elements)},copy:function(t){return this.elements.set(t.elements),this},copyPosition:function(t){var e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this},extractRotation:function(){var t;return function(e){void 0===t&&(t=new c);var n=this.elements,i=e.elements,r=1/t.setFromMatrixColumn(e,0).length(),a=1/t.setFromMatrixColumn(e,1).length(),o=1/t.setFromMatrixColumn(e,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[4]=i[4]*a,n[5]=i[5]*a,n[6]=i[6]*a,n[8]=i[8]*o,n[9]=i[9]*o,n[10]=i[10]*o,this}}(),makeRotationFromEuler:function(t){!1===(t&&t.isEuler)&&console.error("THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,n=t.x,i=t.y,r=t.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(i),l=Math.sin(i),u=Math.cos(r),c=Math.sin(r);if("XYZ"===t.order){var h=a*u,d=a*c,f=o*u,p=o*c;e[0]=s*u,e[4]=-s*c,e[8]=l,e[1]=d+f*l,e[5]=h-p*l,e[9]=-o*s,e[2]=p-h*l,e[6]=f+d*l,e[10]=a*s}else if("YXZ"===t.order){var m=s*u,g=s*c,v=l*u,y=l*c;e[0]=m+y*o,e[4]=v*o-g,e[8]=a*l,e[1]=a*c,e[5]=a*u,e[9]=-o,e[2]=g*o-v,e[6]=y+m*o,e[10]=a*s}else if("ZXY"===t.order){var m=s*u,g=s*c,v=l*u,y=l*c;e[0]=m-y*o,e[4]=-a*c,e[8]=v+g*o,e[1]=g+v*o,e[5]=a*u,e[9]=y-m*o,e[2]=-a*l,e[6]=o,e[10]=a*s}else if("ZYX"===t.order){var h=a*u,d=a*c,f=o*u,p=o*c;e[0]=s*u,e[4]=f*l-d,e[8]=h*l+p,e[1]=s*c,e[5]=p*l+h,e[9]=d*l-f,e[2]=-l,e[6]=o*s,e[10]=a*s}else if("YZX"===t.order){var b=a*s,x=a*l,_=o*s,w=o*l;e[0]=s*u,e[4]=w-b*c,e[8]=_*c+x,e[1]=c,e[5]=a*u,e[9]=-o*u,e[2]=-l*u,e[6]=x*c+_,e[10]=b-w*c}else if("XZY"===t.order){var b=a*s,x=a*l,_=o*s,w=o*l;e[0]=s*u,e[4]=-c,e[8]=l*u,e[1]=b*c+w,e[5]=a*u,e[9]=x*c-_,e[2]=_*c-x,e[6]=o*u,e[10]=w*c+b}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(t){var e=this.elements,n=t.x,i=t.y,r=t.z,a=t.w,o=n+n,s=i+i,l=r+r,u=n*o,c=n*s,h=n*l,d=i*s,f=i*l,p=r*l,m=a*o,g=a*s,v=a*l;return e[0]=1-(d+p),e[4]=c-v,e[8]=h+g,e[1]=c+v,e[5]=1-(u+p),e[9]=f-m,e[2]=h-g,e[6]=f+m,e[10]=1-(u+d),e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},lookAt:function(){var t,e,n;return function(i,r,a){void 0===t&&(t=new c,e=new c,n=new c);var o=this.elements;return n.subVectors(i,r).normalize(),0===n.lengthSq()&&(n.z=1),t.crossVectors(a,n).normalize(),0===t.lengthSq()&&(n.z+=1e-4,t.crossVectors(a,n).normalize()),e.crossVectors(n,t),o[0]=t.x,o[4]=e.x,o[8]=n.x,o[1]=t.y,o[5]=e.y,o[9]=n.y,o[2]=t.z,o[6]=e.z,o[10]=n.z,this}}(),multiply:function(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,i=e.elements,r=this.elements,a=n[0],o=n[4],s=n[8],l=n[12],u=n[1],c=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],_=i[0],w=i[4],M=i[8],S=i[12],E=i[1],k=i[5],T=i[9],C=i[13],P=i[2],O=i[6],A=i[10],R=i[14],L=i[3],I=i[7],D=i[11],N=i[15];return r[0]=a*_+o*E+s*P+l*L,r[4]=a*w+o*k+s*O+l*I,r[8]=a*M+o*T+s*A+l*D,r[12]=a*S+o*C+s*R+l*N,r[1]=u*_+c*E+h*P+d*L,r[5]=u*w+c*k+h*O+d*I,r[9]=u*M+c*T+h*A+d*D,r[13]=u*S+c*C+h*R+d*N,r[2]=f*_+p*E+m*P+g*L,r[6]=f*w+p*k+m*O+g*I,r[10]=f*M+p*T+m*A+g*D,r[14]=f*S+p*C+m*R+g*N,r[3]=v*_+y*E+b*P+x*L,r[7]=v*w+y*k+b*O+x*I,r[11]=v*M+y*T+b*A+x*D,r[15]=v*S+y*C+b*R+x*N,this},multiplyToArray:function(t,e,n){var i=this.elements;return this.multiplyMatrices(t,e),n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t;return function(e){void 0===t&&(t=new c);for(var n=0,i=e.count;n 0.0 ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\t\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t\treturn distanceFalloff * maxDistanceCutoffFactor;\n#else\n\t\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n#endif\n\t\t}\n\t\treturn 1.0;\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 ltcTextureCoords( const in GeometricContext geometry, 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\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 P = geometry.position;\n\tfloat theta = acos( dot( N, V ) );\n\tvec2 uv = vec2(\n\t\tsqrt( saturate( roughness ) ),\n\t\tsaturate( theta / ( 0.5 * PI ) ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nvoid clipQuadToHorizon( inout vec3 L[5], out int n ) {\n\tint config = 0;\n\tif ( L[0].z > 0.0 ) config += 1;\n\tif ( L[1].z > 0.0 ) config += 2;\n\tif ( L[2].z > 0.0 ) config += 4;\n\tif ( L[3].z > 0.0 ) config += 8;\n\tn = 0;\n\tif ( config == 0 ) {\n\t} else if ( config == 1 ) {\n\t\tn = 3;\n\t\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\n\t\tL[2] = -L[3].z * L[0] + L[0].z * L[3];\n\t} else if ( config == 2 ) {\n\t\tn = 3;\n\t\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\n\t\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\n\t} else if ( config == 3 ) {\n\t\tn = 4;\n\t\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\n\t\tL[3] = -L[3].z * L[0] + L[0].z * L[3];\n\t} else if ( config == 4 ) {\n\t\tn = 3;\n\t\tL[0] = -L[3].z * L[2] + L[2].z * L[3];\n\t\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\n\t} else if ( config == 5 ) {\n\t\tn = 0;\n\t} else if ( config == 6 ) {\n\t\tn = 4;\n\t\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\n\t\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\n\t} else if ( config == 7 ) {\n\t\tn = 5;\n\t\tL[4] = -L[3].z * L[0] + L[0].z * L[3];\n\t\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\n\t} else if ( config == 8 ) {\n\t\tn = 3;\n\t\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\n\t\tL[1] = -L[2].z * L[3] + L[3].z * L[2];\n\t\tL[2] = L[3];\n\t} else if ( config == 9 ) {\n\t\tn = 4;\n\t\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\n\t\tL[2] = -L[2].z * L[3] + L[3].z * L[2];\n\t} else if ( config == 10 ) {\n\t\tn = 0;\n\t} else if ( config == 11 ) {\n\t\tn = 5;\n\t\tL[4] = L[3];\n\t\tL[3] = -L[2].z * L[3] + L[3].z * L[2];\n\t\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\n\t} else if ( config == 12 ) {\n\t\tn = 4;\n\t\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\n\t\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\n\t} else if ( config == 13 ) {\n\t\tn = 5;\n\t\tL[4] = L[3];\n\t\tL[3] = L[2];\n\t\tL[2] = -L[1].z * L[2] + L[2].z * L[1];\n\t\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\n\t} else if ( config == 14 ) {\n\t\tn = 5;\n\t\tL[4] = -L[0].z * L[3] + L[3].z * L[0];\n\t\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\n\t} else if ( config == 15 ) {\n\t\tn = 4;\n\t}\n\tif ( n == 3 )\n\t\tL[3] = L[0];\n\tif ( n == 4 )\n\t\tL[4] = L[0];\n}\nfloat integrateLtcBrdfOverRectEdge( vec3 v1, vec3 v2 ) {\n\tfloat cosTheta = dot( v1, v2 );\n\tfloat theta = acos( cosTheta );\n\tfloat res = cross( v1, v2 ).z * ( ( theta > 0.001 ) ? theta / sin( theta ) : 1.0 );\n\treturn res;\n}\nvoid initRectPoints( const in vec3 pos, const in vec3 halfWidth, const in vec3 halfHeight, out vec3 rectPoints[4] ) {\n\trectPoints[0] = pos - halfWidth - halfHeight;\n\trectPoints[1] = pos + halfWidth - halfHeight;\n\trectPoints[2] = pos + halfWidth + halfHeight;\n\trectPoints[3] = pos - halfWidth + halfHeight;\n}\nvec3 integrateLtcBrdfOverRect( const in GeometricContext geometry, const in mat3 brdfMat, const in vec3 rectPoints[4] ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 P = geometry.position;\n\tvec3 T1, T2;\n\tT1 = normalize(V - N * dot( V, N ));\n\tT2 = - cross( N, T1 );\n\tmat3 brdfWrtSurface = brdfMat * transpose( mat3( T1, T2, N ) );\n\tvec3 clippedRect[5];\n\tclippedRect[0] = brdfWrtSurface * ( rectPoints[0] - P );\n\tclippedRect[1] = brdfWrtSurface * ( rectPoints[1] - P );\n\tclippedRect[2] = brdfWrtSurface * ( rectPoints[2] - P );\n\tclippedRect[3] = brdfWrtSurface * ( rectPoints[3] - P );\n\tint n;\n\tclipQuadToHorizon(clippedRect, n);\n\tif ( n == 0 )\n\t\treturn vec3( 0, 0, 0 );\n\tclippedRect[0] = normalize( clippedRect[0] );\n\tclippedRect[1] = normalize( clippedRect[1] );\n\tclippedRect[2] = normalize( clippedRect[2] );\n\tclippedRect[3] = normalize( clippedRect[3] );\n\tclippedRect[4] = normalize( clippedRect[4] );\n\tfloat sum = 0.0;\n\tsum += integrateLtcBrdfOverRectEdge( clippedRect[0], clippedRect[1] );\n\tsum += integrateLtcBrdfOverRectEdge( clippedRect[1], clippedRect[2] );\n\tsum += integrateLtcBrdfOverRectEdge( clippedRect[2], clippedRect[3] );\n\tif (n >= 4)\n\t\tsum += integrateLtcBrdfOverRectEdge( clippedRect[3], clippedRect[4] );\n\tif (n == 5)\n\t\tsum += integrateLtcBrdfOverRectEdge( clippedRect[4], clippedRect[0] );\n\tsum = max( 0.0, sum );\n\tvec3 Lo_i = vec3( sum, sum, sum );\n\treturn Lo_i;\n}\nvec3 Rect_Area_Light_Specular_Reflectance(\n\t\tconst in GeometricContext geometry,\n\t\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight,\n\t\tconst in float roughness,\n\t\tconst in sampler2D ltcMat, const in sampler2D ltcMag ) {\n\tvec3 rectPoints[4];\n\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\n\tvec2 uv = ltcTextureCoords( geometry, roughness );\n\tvec4 brdfLtcApproxParams, t;\n\tbrdfLtcApproxParams = texture2D( ltcMat, uv );\n\tt = texture2D( ltcMat, uv );\n\tfloat brdfLtcScalar = texture2D( ltcMag, uv ).a;\n\tmat3 brdfLtcApproxMat = mat3(\n\t\tvec3( 1, 0, t.y ),\n\t\tvec3( 0, t.z, 0 ),\n\t\tvec3( t.w, 0, t.x )\n\t);\n\tvec3 specularReflectance = integrateLtcBrdfOverRect( geometry, brdfLtcApproxMat, rectPoints );\n\tspecularReflectance *= brdfLtcScalar;\n\treturn specularReflectance;\n}\nvec3 Rect_Area_Light_Diffuse_Reflectance(\n\t\tconst in GeometricContext geometry,\n\t\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight ) {\n\tvec3 rectPoints[4];\n\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\n\tmat3 diffuseBrdfMat = mat3(1);\n\tvec3 diffuseReflectance = integrateLtcBrdfOverRect( geometry, diffuseBrdfMat, rectPoints );\n\treturn diffuseReflectance;\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 = dFdx( surf_pos );\n\t\tvec3 vSigmaY = dFdy( surf_pos );\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\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\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; ++ i ) {\n\t\tvec4 plane = clippingPlanes[ i ];\n\t\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t\t\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; ++ i ) {\n\t\t\tvec4 plane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\tif ( clipped ) discard;\n\t\n\t#endif\n#endif\n",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\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 )\n\tvarying vec3 vViewPosition;\n#endif\n",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\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 transpose( const in mat3 v ) {\n\tmat3 tmp;\n\ttmp[0] = vec3(v[0].x, v[1].x, v[2].x);\n\ttmp[1] = vec3(v[0].y, v[1].y, v[2].y);\n\ttmp[2] = vec3(v[0].z, v[1].z, v[2].z);\n\treturn tmp;\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(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:"#ifdef FLIP_SIDED\n\tobjectNormal = -objectNormal;\n#endif\nvec3 transformedNormal = normalMatrix * objectNormal;\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 += normal * ( 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.xyz, vec3( gammaFactor ) ), value.w );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\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.w );\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.w );\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.xyz * value.w * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.x, 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.x, 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, flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\tvec2 sampleUV;\n\t\tsampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );\n\t\tsampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\tvec4 envColor = texture2D( envMap, sampleUV );\n\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\tvec3 reflectView = flipNormal * 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\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_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:"\n#ifdef USE_FOG\nfogDepth = -mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n varying 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\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\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\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\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:"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};\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 ltcMat;\tuniform sampler2D ltcMag;\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#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( 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(queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent));\n\t\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\t\tvec2 sampleUV;\n\t\t\tsampleUV.y = saturate( reflectVec.y * 0.5 + 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",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};\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_BlinnPhong( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 matDiffColor = material.diffuseColor;\n\t\tvec3 matSpecColor = material.specularColor;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = BlinnExponentToGGXRoughness( material.specularShininess );\n\t\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\n\t\t\t\tgeometry,\n\t\t\t\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\n\t\t\t\troughness,\n\t\t\t\tltcMat, ltcMag );\n\t\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\n\t\t\t\tgeometry,\n\t\t\t\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\n\t\treflectedLight.directSpecular += lightColor * matSpecColor * spec / PI2;\n\t\treflectedLight.directDiffuse += lightColor * matDiffColor * diff / PI2;\n\t}\n#endif\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_Direct_RectArea\t\tRE_Direct_RectArea_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 matDiffColor = material.diffuseColor;\n\t\tvec3 matSpecColor = material.specularColor;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\n\t\t\t\tgeometry,\n\t\t\t\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\n\t\t\t\troughness,\n\t\t\t\tltcMat, ltcMag );\n\t\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\n\t\t\t\tgeometry,\n\t\t\t\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\n\t\treflectedLight.directSpecular += lightColor * matSpecColor * spec;\n\t\treflectedLight.directDiffuse += lightColor * matDiffColor * diff;\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_template:"\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\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 ] ) : 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\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\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\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#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 ( NUM_HEMI_LIGHTS > 0 )\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\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tirradiance += getLightProbeIndirectIrradiance( geometry, 8 );\n\t#endif\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tvec3 radiance = getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), 8 );\n\t#ifndef STANDARD\n\t\tvec3 clearCoatRadiance = getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), 8 );\n\t#else\n\t\tvec3 clearCoatRadiance = vec3( 0.0 );\n\t#endif\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:"#ifdef USE_LOGDEPTHBUF\n\tuniform float logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n#endif\n",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n\tuniform float logDepthBufFC;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tgl_Position.z = log2(max( EPSILON, gl_Position.w + 1.0 )) * logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t#else\n\t\tgl_Position.z = (gl_Position.z - 1.0) * 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\tvec4 mapTexel = texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) * offsetRepeat.zw + offsetRepeat.xy );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n",map_particle_pars_fragment:"#ifdef USE_MAP\n\tuniform vec4 offsetRepeat;\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.r;\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_flip:"#ifdef DOUBLE_SIDED\n\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n#else\n\tfloat flipNormal = 1.0;\n#endif\n",normal_fragment:"#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 ) * flipNormal;\n#endif\n#ifdef USE_NORMALMAP\n\tnormal = perturbNormal2Arb( -vViewPosition, normal );\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\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 S = normalize( q0 * st1.t - q1 * st0.t );\n\t\tvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\n\t\tvec3 N = normalize( surf_norm );\n\t\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\tmapN.xy = normalScale * mapN.xy;\n\t\tmat3 tsn = mat3( S, T, N );\n\t\treturn normalize( tsn * mapN );\n\t}\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 1.0 - 2.0 * rgb.xyz;\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:"#ifdef USE_SKINNING\n\tvec4 mvPosition = modelViewMatrix * skinned;\n#else\n\tvec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\n#endif\ngl_Position = projectionMatrix * mvPosition;\n",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.r;\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\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\treturn (\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\treturn (\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\treturn texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn 1.0;\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 ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\tfloat dp = ( length( lightToPosition ) - shadowBias ) / 1000.0;\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\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\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\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\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\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\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 ] ) : 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 boneTextureWidth;\n\t\tuniform int boneTextureHeight;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureWidth ) );\n\t\t\tfloat y = floor( j / float( boneTextureWidth ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureWidth );\n\t\t\tfloat dy = 1.0 / float( boneTextureHeight );\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\tskinned = bindMatrixInverse * skinned;\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:"#define saturate(a) clamp( a, 0.0, 1.0 )\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 vec4 offsetRepeat;\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 = uv * offsetRepeat.zw + offsetRepeat.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( PHONG ) || defined( PHYSICAL ) || defined( LAMBERT ) || defined ( USE_SHADOWMAP )\n\t#ifdef USE_SKINNING\n\t\tvec4 worldPosition = modelMatrix * skinned;\n\t#else\n\t\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n\t#endif\n#endif\n",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldPosition;\n#include \nvoid main() {\n\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\n\tgl_FragColor.a *= opacity;\n}\n",cube_vert:"varying vec3 vWorldPosition;\n#include \nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}\n",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 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 \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}\n",distanceRGBA_frag:"uniform vec3 lightPos;\nvarying vec4 vWorldPosition;\n#include \n#include \n#include \nvoid main () {\n\t#include \n\tgl_FragColor = packDepthToRGBA( length( vWorldPosition.xyz - lightPos.xyz ) / 1000.0 );\n}\n",distanceRGBA_vert:"varying vec4 vWorldPosition;\n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition;\n}\n",equirect_frag:"uniform sampler2D tEquirect;\nuniform float tFlip;\nvarying vec3 vWorldPosition;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldPosition );\n\tvec2 sampleUV;\n\tsampleUV.y = saturate( tFlip * direction.y * -0.5 + 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 vWorldPosition;\n#include \nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}\n",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \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 \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvLineDistance = scale * lineDistance;\n\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}\n",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \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 \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_ENVMAP\n\t#include \n\t#include \n\t#include \n\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \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 \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \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 \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\n\t#include \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 \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \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 \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \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 \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \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 \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",meshphysical_vert:"#define PHYSICAL\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}\n",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}\n",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}\n",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}\n",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#ifdef USE_SIZEATTENUATION\n\t\tgl_PointSize = size * ( scale / - mvPosition.z );\n\t#else\n\t\tgl_PointSize = size;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}\n",shadow_frag:"uniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tgl_FragColor = vec4( 0.0, 0.0, 0.0, opacity * ( 1.0 - getShadowMask() ) );\n}\n",shadow_vert:"#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n}\n"};Y.prototype={constructor:Y,isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this},setScalar:function(t){return this.r=t,this.g=t,this.b=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(){function t(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}return function(e,n,i){if(e=fs.euclideanModulo(e,1),n=fs.clamp(n,0,1),i=fs.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=t(a,r,e+1/3),this.g=t(a,r,e),this.b=t(a,r,e-1/3)}return this}}(),setStyle:function(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){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,e(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,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(a)){var o=parseFloat(i[1])/360,s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(o,s,l)}}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(t)){var u=n[1],c=u.length;if(3===c)return this.r=parseInt(u.charAt(0)+u.charAt(0),16)/255,this.g=parseInt(u.charAt(1)+u.charAt(1),16)/255,this.b=parseInt(u.charAt(2)+u.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(u.charAt(0)+u.charAt(1),16)/255,this.g=parseInt(u.charAt(2)+u.charAt(3),16)/255,this.b=parseInt(u.charAt(4)+u.charAt(5),16)/255,this}if(t&&t.length>0){var u=ws[t];void 0!==u?this.setHex(u):console.warn("THREE.Color: Unknown color "+t)}return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return void 0===e&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){void 0===e&&(e=2);var n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this},convertGammaToLinear:function(){var t=this.r,e=this.g,n=this.b;return this.r=t*t,this.g=e*e,this.b=n*n,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){var e,n,i=t||{h:0,s:0,l:0},r=this.r,a=this.g,o=this.b,s=Math.max(r,a,o),l=Math.min(r,a,o),u=(l+s)/2;if(l===s)e=0,n=0;else{var c=s-l;switch(n=u<=.5?c/(s+l):c/(2-s-l),s){case r:e=(a-o)/c+(athis.max.x||t.ythis.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return(e||new r).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y)},clampPoint:function(t,e){return(e||new r).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new r;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}};var Es=0;J.prototype={constructor:J,isMaterial:!0,get needsUpdate(){return this._needsUpdate},set needsUpdate(t){!0===t&&this.update(),this._needsUpdate=t},setValues:function(t){if(void 0!==t)for(var e in t){var n=t[e];if(void 0!==n){var i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]="overdraw"===e?Number(n):n:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}else console.warn("THREE.Material: '"+e+"' parameter is undefined.")}},toJSON:function(t){function e(t){var e=[];for(var n in t){var i=t[n];delete i.metadata,e.push(i)}return e}var n=void 0===t;n&&(t={textures:{},images:{}});var i={metadata:{version:4.4,type:"Material",generator:"Material.toJSON"}};if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearCoat&&(i.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(i.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,i.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(i.size=this.size),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==ma&&(i.blending=this.blending),this.shading!==ca&&(i.shading=this.shading),this.side!==oa&&(i.side=this.side),this.vertexColors!==ha&&(i.vertexColors=this.vertexColors),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),i.skinning=this.skinning,i.morphTargets=this.morphTargets,n){var r=e(t.textures),a=e(t.images);r.length>0&&(i.textures=r),a.length>0&&(i.images=a)}return i},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.shading=t.shading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.overdraw=t.overdraw,this.visible=t.visible,this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,n=null;if(null!==e){var i=e.length;n=new Array(i);for(var r=0;r!==i;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this},update:function(){this.dispatchEvent({type:"update"})},dispose:function(){this.dispatchEvent({type:"dispose"})}},Object.assign(J.prototype,i.prototype),$.prototype=Object.create(J.prototype),$.prototype.constructor=$,$.prototype.isShaderMaterial=!0,$.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=xs.clone(t.uniforms),this.defines=t.defines,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},$.prototype.toJSON=function(t){var e=J.prototype.toJSON.call(this,t);return e.uniforms=this.uniforms,e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},tt.prototype=Object.create(J.prototype),tt.prototype.constructor=tt,tt.prototype.isMeshDepthMaterial=!0,tt.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},et.prototype={constructor:et,isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=t.length;sr&&(r=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=t.count;sr&&(r=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return(e||new c).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)},intersectsSphere:function(){var t;return function(e){return void 0===t&&(t=new c),this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){var e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=t.constant&&n>=t.constant},clampPoint:function(t,e){return(e||new c).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new c;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new c;return function(e){var n=e||new nt;return this.getCenter(n.center),n.radius=.5*this.getSize(t).length(),n}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(){var t=[new c,new c,new c,new c,new c,new c,new c,new c];return function(e){return this.isEmpty()?this:(t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(t),this)}}(),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},nt.prototype={constructor:nt,set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t;return function(e,n){void 0===t&&(t=new et);var i=this.center;void 0!==n?i.copy(n):t.setFromPoints(e).getCenter(i);for(var r=0,a=0,o=e.length;athis.radius*this.radius&&(i.sub(this.center).normalize(),i.multiplyScalar(this.radius).add(this.center)),i},getBoundingBox:function(t){var e=t||new et;return e.set(this.center,this.center),e.expandByScalar(this.radius),e},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}},it.prototype={constructor:it,isMatrix3:!0,set:function(t,e,n,i,r,a,o,s,l){var u=this.elements;return u[0]=t,u[1]=i,u[2]=o,u[3]=e,u[4]=r,u[5]=s,u[6]=n,u[7]=a,u[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(t){var e=t.elements;return this.set(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8]),this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},applyToBufferAttribute:function(){var t;return function(e){void 0===t&&(t=new c);for(var n=0,i=e.count;n1))return i.copy(r).multiplyScalar(o).add(e.start)}else if(0===this.distanceToPoint(e.start))return i.copy(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return(t||new c).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new c,e=new it;return function(n,i){var r=this.coplanarPoint(t).applyMatrix4(n),a=i||e.getNormalMatrix(n),o=this.normal.applyMatrix3(a).normalize();return this.constant=-r.dot(o),this}}(),translate:function(t){return this.constant=this.constant-t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}},at.prototype={constructor:at,set:function(t,e,n,i,r,a){var o=this.planes;return o[0].copy(t),o[1].copy(e),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(t){for(var e=this.planes,n=0;n<6;n++)e[n].copy(t.planes[n]);return this},setFromMatrix:function(t){var e=this.planes,n=t.elements,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return e[0].setComponents(o-i,c-s,p-h,y-m).normalize(),e[1].setComponents(o+i,c+s,p+h,y+m).normalize(),e[2].setComponents(o+r,c+l,p+d,y+g).normalize(),e[3].setComponents(o-r,c-l,p-d,y-g).normalize(),e[4].setComponents(o-a,c-u,p-f,y-v).normalize(),e[5].setComponents(o+a,c+u,p+f,y+v).normalize(),this},intersectsObject:function(){var t=new nt;return function(e){var n=e.geometry;return null===n.boundingSphere&&n.computeBoundingSphere(),t.copy(n.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new nt;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){for(var e=this.planes,n=t.center,i=-t.radius,r=0;r<6;r++){if(e[r].distanceToPoint(n)0?n.min.x:n.max.x,e.x=a.normal.x>0?n.max.x:n.min.x,t.y=a.normal.y>0?n.min.y:n.max.y,e.y=a.normal.y>0?n.max.y:n.min.y,t.z=a.normal.z>0?n.min.z:n.max.z,e.z=a.normal.z>0?n.max.z:n.min.z;var o=a.distanceToPoint(t),s=a.distanceToPoint(e);if(o<0&&s<0)return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}},st.prototype={constructor:st,set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return(e||new c).copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new c;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){var n=e||new c;n.subVectors(t,this.origin);var i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.direction).multiplyScalar(i).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new c;return function(e){var n=t.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(n).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new c,e=new c,n=new c;return function(i,r,a,o){t.copy(i).add(r).multiplyScalar(.5),e.copy(r).sub(i).normalize(),n.copy(this.origin).sub(t);var s,l,u,c,h=.5*i.distanceTo(r),d=-this.direction.dot(e),f=n.dot(this.direction),p=-n.dot(e),m=n.lengthSq(),g=Math.abs(1-d*d);if(g>0)if(s=d*p-f,l=d*f-p,c=h*g,s>=0)if(l>=-c)if(l<=c){var v=1/g;s*=v,l*=v,u=s*(s+d*l+2*f)+l*(d*s+l+2*p)+m}else l=h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;else l=-h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;else l<=-c?(s=Math.max(0,-(-d*h+f)),l=s>0?-h:Math.min(Math.max(-h,-p),h),u=-s*s+l*(l+2*p)+m):l<=c?(s=0,l=Math.min(Math.max(-h,-p),h),u=l*(l+2*p)+m):(s=Math.max(0,-(d*h+f)),l=s>0?h:Math.min(Math.max(-h,-p),h),u=-s*s+l*(l+2*p)+m);else l=d>0?-h:h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;return a&&a.copy(this.direction).multiplyScalar(s).add(this.origin),o&&o.copy(e).multiplyScalar(l).add(t),u}}(),intersectSphere:function(){var t=new c;return function(e,n){t.subVectors(e.center,this.origin);var i=t.dot(this.direction),r=t.dot(t)-i*i,a=e.radius*e.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(t){return this.distanceToPoint(t.center)<=t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null},intersectPlane:function(t,e){var n=this.distanceToPlane(t);return null===n?null:this.at(n,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0},intersectBox:function(t,e){var n,i,r,a,o,s,l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,h=this.origin;return l>=0?(n=(t.min.x-h.x)*l,i=(t.max.x-h.x)*l):(n=(t.max.x-h.x)*l,i=(t.min.x-h.x)*l),u>=0?(r=(t.min.y-h.y)*u,a=(t.max.y-h.y)*u):(r=(t.max.y-h.y)*u,a=(t.min.y-h.y)*u),n>a||r>i?null:((r>n||n!==n)&&(n=r),(a=0?(o=(t.min.z-h.z)*c,s=(t.max.z-h.z)*c):(o=(t.max.z-h.z)*c,s=(t.min.z-h.z)*c),n>s||o>i?null:((o>n||n!==n)&&(n=o),(s=0?n:i,e)))},intersectsBox:function(){var t=new c;return function(e){return null!==this.intersectBox(e,t)}}(),intersectTriangle:function(){var t=new c,e=new c,n=new c,i=new c;return function(r,a,o,s,l){e.subVectors(a,r),n.subVectors(o,r),i.crossVectors(e,n);var u,c=this.direction.dot(i);if(c>0){if(s)return null;u=1}else{if(!(c<0))return null;u=-1,c=-c}t.subVectors(this.origin,r);var h=u*this.direction.dot(n.crossVectors(t,n));if(h<0)return null;var d=u*this.direction.dot(e.cross(t));if(d<0)return null;if(h+d>c)return null;var f=-u*t.dot(i);return f<0?null:this.at(f/c,l)}}(),applyMatrix4:function(t){return this.direction.add(this.origin).applyMatrix4(t),this.origin.applyMatrix4(t),this.direction.sub(this.origin),this.direction.normalize(),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},lt.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],lt.DefaultOrder="XYZ",lt.prototype={constructor:lt,isEuler:!0,get x(){return this._x},set x(t){this._x=t,this.onChangeCallback()},get y(){return this._y},set y(t){this._y=t,this.onChangeCallback()},get z(){return this._z},set z(t){this._z=t,this.onChangeCallback()},get order(){return this._order},set order(t){this._order=t,this.onChangeCallback()},set:function(t,e,n,i){return this._x=t,this._y=e,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(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var i=fs.clamp,r=t.elements,a=r[0],o=r[4],s=r[8],l=r[1],u=r[5],c=r[9],h=r[2],d=r[6],f=r[10];return e=e||this._order,"XYZ"===e?(this._y=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-c,f),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(d,u),this._z=0)):"YXZ"===e?(this._x=Math.asin(-i(c,-1,1)),Math.abs(c)<.99999?(this._y=Math.atan2(s,f),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,a),this._z=0)):"ZXY"===e?(this._x=Math.asin(i(d,-1,1)),Math.abs(d)<.99999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,a))):"ZYX"===e?(this._y=Math.asin(-i(h,-1,1)),Math.abs(h)<.99999?(this._x=Math.atan2(d,f),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,u))):"YZX"===e?(this._z=Math.asin(i(l,-1,1)),Math.abs(l)<.99999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(s,f))):"XZY"===e?(this._z=Math.asin(-i(o,-1,1)),Math.abs(o)<.99999?(this._x=Math.atan2(d,u),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-c,f),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,n,i)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new u;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new c(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},ut.prototype={constructor:ut,set:function(t){this.mask=1<1){for(var e=0;e1)for(var e=0;e0){r.children=[];for(var a=0;a0&&(i.geometries=o),s.length>0&&(i.materials=s),l.length>0&&(i.textures=l),u.length>0&&(i.images=u)}return i.object=r,i},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e){if(void 0===e&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(var n=0;n0?a.multiplyScalar(1/Math.sqrt(o)):a.set(0,0,0)}}(),dt.barycoordFromPoint=function(){var t=new c,e=new c,n=new c;return function(i,r,a,o,s){t.subVectors(o,r),e.subVectors(a,r),n.subVectors(i,r);var l=t.dot(t),u=t.dot(e),h=t.dot(n),d=e.dot(e),f=e.dot(n),p=l*d-u*u,m=s||new c;if(0===p)return m.set(-2,-1,-1);var g=1/p,v=(d*h-u*f)*g,y=(l*f-u*h)*g;return m.set(1-v-y,y,v)}}(),dt.containsPoint=function(){var t=new c;return function(e,n,i,r){var a=dt.barycoordFromPoint(e,n,i,r,t);return a.x>=0&&a.y>=0&&a.x+a.y<=1}}(),dt.prototype={constructor:dt,set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},area:function(){var t=new c,e=new c;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),midpoint:function(t){return(t||new c).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(t){return dt.normal(this.a,this.b,this.c,t)},plane:function(t){return(t||new rt).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(t,e){return dt.barycoordFromPoint(t,this.a,this.b,this.c,e)},containsPoint:function(t){return dt.containsPoint(t,this.a,this.b,this.c)},closestPointToPoint:function(){var t,e,n,i;return function(r,a){void 0===t&&(t=new rt,e=[new ht,new ht,new ht],n=new c,i=new c);var o=a||new c,s=1/0;if(t.setFromCoplanarPoints(this.a,this.b,this.c),t.projectPoint(r,n),!0===this.containsPoint(n))o.copy(n);else{e[0].set(this.a,this.b),e[1].set(this.b,this.c),e[2].set(this.c,this.a);for(var l=0;l0,s=a[1]&&a[1].length>0,l=t.morphTargets,u=l.length;if(u>0){e=[];for(var c=0;c0){h=[];for(var c=0;c0)for(var m=0;m0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t,e,n;for(this.computeFaceNormals(),t=0,e=this.faces.length;t0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n,i,r;for(n=0,i=this.faces.length;n0&&(t+=e[n].distanceTo(e[n-1])),this.lineDistances[n]=t},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new et),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new nt),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(!1===(t&&t.isGeometry))return void console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t);var i,r=this.vertices.length,a=this.vertices,o=t.vertices,s=this.faces,l=t.faces,u=this.faceVertexUvs[0],c=t.faceVertexUvs[0],h=this.colors,d=t.colors;void 0===n&&(n=0),void 0!==e&&(i=(new it).getNormalMatrix(e));for(var f=0,p=o.length;f=0;n--){var p=d[n];for(this.faces.splice(p,1),o=0,s=this.faceVertexUvs.length;o0,x=v.vertexNormals.length>0,_=1!==v.color.r||1!==v.color.g||1!==v.color.b,w=v.vertexColors.length>0,M=0;if(M=t(M,0,0),M=t(M,1,!0),M=t(M,2,!1),M=t(M,3,y),M=t(M,4,b),M=t(M,5,x),M=t(M,6,_),M=t(M,7,w),c.push(M),c.push(v.a,v.b,v.c),c.push(v.materialIndex),y){var S=this.faceVertexUvs[0][l];c.push(i(S[0]),i(S[1]),i(S[2]))}if(b&&c.push(e(v.normal)),x){var E=v.vertexNormals;c.push(e(E[0]),e(E[1]),e(E[2]))}if(_&&c.push(n(v.color)),w){var k=v.vertexColors;c.push(n(k[0]),n(k[1]),n(k[2]))}}return r.data={},r.data.vertices=s,r.data.normals=h,f.length>0&&(r.data.colors=f),m.length>0&&(r.data.uvs=[m]),r.data.faces=c,r},clone:function(){return(new Ct).copy(this)},copy:function(t){var e,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=t.name;var s=t.vertices;for(e=0,n=s.length;e65535?wt:xt)(t,1):this.index=t},addAttribute:function(t,e){return!1===(e&&e.isBufferAttribute)&&!1===(e&&e.isInterleavedBufferAttribute)?(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),void this.addAttribute(t,new mt(arguments[1],arguments[2]))):"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),void this.setIndex(e)):(this.attributes[t]=e,this)},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;void 0!==e&&(t.applyToBufferAttribute(e),e.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){(new it).getNormalMatrix(t).applyToBufferAttribute(n),n.needsUpdate=!0}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeTranslation(e,n,i),this.applyMatrix(t),this}}(),scale:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeScale(e,n,i),this.applyMatrix(t),this}}(),lookAt:function(){var t;return function(e){void 0===t&&(t=new ct),t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){this.computeBoundingBox();var t=this.boundingBox.getCenter().negate();return this.translate(t.x,t.y,t.z),t},setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){var n=new Mt(3*e.vertices.length,3),i=new Mt(3*e.colors.length,3);if(this.addAttribute("position",n.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){var r=new Mt(e.lineDistances.length,1);this.addAttribute("lineDistance",r.copyArray(e.lineDistances))}null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var n=e.__directGeometry;if(!0===e.elementsNeedUpdate&&(n=void 0,e.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(e);n.verticesNeedUpdate=e.verticesNeedUpdate,n.normalsNeedUpdate=e.normalsNeedUpdate,n.colorsNeedUpdate=e.colorsNeedUpdate,n.uvsNeedUpdate=e.uvsNeedUpdate,n.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=n}var i;return!0===e.verticesNeedUpdate&&(i=this.attributes.position,void 0!==i&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),!0===e.normalsNeedUpdate&&(i=this.attributes.normal,void 0!==i&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),!0===e.colorsNeedUpdate&&(i=this.attributes.color,void 0!==i&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,void 0!==i&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,void 0!==i&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new Et).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);if(this.addAttribute("position",new mt(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){var n=new Float32Array(3*t.normals.length);this.addAttribute("normal",new mt(n,3).copyVector3sArray(t.normals))}if(t.colors.length>0){var i=new Float32Array(3*t.colors.length);this.addAttribute("color",new mt(i,3).copyColorsArray(t.colors))}if(t.uvs.length>0){var r=new Float32Array(2*t.uvs.length);this.addAttribute("uv",new mt(r,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){var a=new Float32Array(2*t.uvs2.length);this.addAttribute("uv2",new mt(a,2).copyVector2sArray(t.uvs2))}if(t.indices.length>0){var o=kt(t.indices)>65535?Uint32Array:Uint16Array,s=new o(3*t.indices.length);this.setIndex(new mt(s,1).copyIndicesArray(t.indices))}this.groups=t.groups;for(var l in t.morphTargets){for(var u=[],c=t.morphTargets[l],h=0,d=c.length;h0){var m=new Mt(4*t.skinIndices.length,4);this.addAttribute("skinIndex",m.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){var g=new Mt(4*t.skinWeights.length,4);this.addAttribute("skinWeight",g.copyVector4sArray(t.skinWeights))}return null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new et);var t=this.attributes.position;void 0!==t?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new et,e=new c;return function(){null===this.boundingSphere&&(this.boundingSphere=new nt);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;t.setFromBufferAttribute(n),t.getCenter(i);for(var r=0,a=0,o=n.count;a0&&(t.data.groups=JSON.parse(JSON.stringify(s)));var l=this.boundingSphere;return null!==l&&(t.data.boundingSphere={center:l.center.toArray(),radius:l.radius}),t},clone:function(){return(new Pt).copy(this)},copy:function(t){var e,n,i;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var r=t.index;null!==r&&this.setIndex(r.clone());var a=t.attributes;for(e in a){var o=a[e];this.addAttribute(e,o.clone())}var s=t.morphAttributes;for(e in s){var l=[],u=s[e];for(n=0,i=u.length;n0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var e=0,n=t.length;ee.far?null:{distance:l,point:x.clone(),object:t}}function n(n,i,r,a,o,c,h,d){s.fromBufferAttribute(a,c),l.fromBufferAttribute(a,h),u.fromBufferAttribute(a,d);var f=e(n,i,r,s,l,u,b);return f&&(o&&(m.fromBufferAttribute(o,c),g.fromBufferAttribute(o,h),v.fromBufferAttribute(o,d),f.uv=t(b,s,l,u,m,g,v)),f.face=new ft(c,h,d,dt.normal(s,l,u)),f.faceIndex=c),f}var i=new h,a=new st,o=new nt,s=new c,l=new c,u=new c,d=new c,f=new c,p=new c,m=new r,g=new r,v=new r,y=new c,b=new c,x=new c;return function(r,c){var h=this.geometry,y=this.material,x=this.matrixWorld;if(void 0!==y&&(null===h.boundingSphere&&h.computeBoundingSphere(),o.copy(h.boundingSphere),o.applyMatrix4(x),!1!==r.ray.intersectsSphere(o)&&(i.getInverse(x),a.copy(r.ray).applyMatrix4(i),null===h.boundingBox||!1!==a.intersectsBox(h.boundingBox)))){var _;if(h.isBufferGeometry){var w,M,S,E,k,T=h.index,C=h.attributes.position,P=h.attributes.uv;if(null!==T)for(E=0,k=T.count;E0&&(L=B);for(var F=0,U=z.length;Fthis.scale.x*this.scale.y/4||n.push({distance:Math.sqrt(i),point:this.position,face:null,object:this})}}(),clone:function(){return new this.constructor(this.material).copy(this)}}),ve.prototype=Object.assign(Object.create(ct.prototype),{constructor:ve,copy:function(t){ct.prototype.copy.call(this,t,!1);for(var e=t.levels,n=0,i=e.length;n1){t.setFromMatrixPosition(n.matrixWorld),e.setFromMatrixPosition(this.matrixWorld);var r=t.distanceTo(e);i[0].object.visible=!0;for(var a=1,o=i.length;a=i[a].distance;a++)i[a-1].object.visible=!1,i[a].object.visible=!0;for(;ao)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}else for(var b=0,x=v.length/3-1;bo)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}else if(s.isGeometry)for(var E=s.vertices,k=E.length,b=0;bo)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Me.prototype=Object.assign(Object.create(we.prototype),{constructor:Me,isLineSegments:!0}),Se.prototype=Object.create(J.prototype),Se.prototype.constructor=Se,Se.prototype.isPointsMaterial=!0,Se.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this},Ee.prototype=Object.assign(Object.create(ct.prototype),{constructor:Ee,isPoints:!0,raycast:function(){var t=new h,e=new st,n=new nt;return function(i,r){function a(t,n){var a=e.distanceSqToPoint(t);if(ai.far)return;r.push({distance:u,distanceToRay:Math.sqrt(a),point:s.clone(),index:n,face:null,object:o})}}var o=this,s=this.geometry,l=this.matrixWorld,u=i.params.Points.threshold;if(null===s.boundingSphere&&s.computeBoundingSphere(),n.copy(s.boundingSphere),n.applyMatrix4(l),!1!==i.ray.intersectsSphere(n)){t.getInverse(l),e.copy(i.ray).applyMatrix4(t);var h=u/((this.scale.x+this.scale.y+this.scale.z)/3),d=h*h,f=new c;if(s.isBufferGeometry){var p=s.index,m=s.attributes,g=m.position.array;if(null!==p)for(var v=p.array,y=0,b=v.length;y=-Number.EPSILON&&C>=-Number.EPSILON&&T>=-Number.EPSILON))return!1;return!0}return function(e,n){var i=e.length;if(i<3)return null;var r,a,o,s=[],l=[],u=[];if(Ps.area(e)>0)for(a=0;a2;){if(h--<=0)return console.warn("THREE.ShapeUtils: Unable to triangulate polygon! in triangulate()"),n?u:s;if(r=a,c<=r&&(r=0),a=r+1,c<=a&&(a=0),o=a+1,c<=o&&(o=0),t(e,r,a,o,c,l)){var d,f,p,m,g;for(d=l[r],f=l[a],p=l[o],s.push([e[d],e[f],e[p]]),u.push([l[r],l[a],l[o]]),m=a,g=a+1;g2&&t[e-1].equals(t[0])&&t.pop()}function i(t,e,n){return t.x!==e.x?t.xNumber.EPSILON){var p;if(d>0){if(f<0||f>d)return[];if((p=u*c-l*h)<0||p>d)return[]}else{if(f>0||f0||pE?[]:x===E?a?[]:[y]:_<=E?[y,b]:[y,M]}function a(t,e,n,i){var r=e.x-t.x,a=e.y-t.y,o=n.x-t.x,s=n.y-t.y,l=i.x-t.x,u=i.y-t.y,c=r*s-a*o,h=r*u-a*l;if(Math.abs(c)>Number.EPSILON){var d=l*s-u*o;return c>0?h>=0&&d>=0:h>=0||d>=0}return h>0}n(t),e.forEach(n);for(var o,s,l,u,c,h,d={},f=t.concat(),p=0,m=e.length;p0;){if(--_<0){console.log("Infinite Loop! Holes left:"+g.length+", Probably Hole outside Shape!");break}for(o=x;oi&&(o=0);var s=a(m[t],m[r],m[o],n[e]);if(!s)return!1;var l=n.length-1,u=e-1;u<0&&(u=l);var c=e+1;return c>l&&(c=0),!!(s=a(n[e],n[u],n[c],m[t]))}(o,w)&&!function(t,e){var n,i,a;for(n=0;n0)return!0;return!1}(s,l)&&!function(t,n){var i,a,o,s,l;for(i=0;i0)return!0;return!1}(s,l)){i=w,g.splice(y,1),h=m.slice(0,o+1),d=m.slice(o),f=n.slice(i),p=n.slice(0,i+1),m=h.concat(f).concat(p).concat(d),x=o;break}if(i>=0)break;v[c]=!0}if(i>=0)break}}return m}(t,e),v=Ps.triangulate(g,!1);for(o=0,s=v.length;oNumber.EPSILON){var f=Math.sqrt(h),p=Math.sqrt(u*u+c*c),m=e.x-l/f,g=e.y+s/f,v=n.x-c/p,y=n.y+u/p,b=((v-m)*c-(y-g)*u)/(s*c-l*u);i=m+s*b-t.x,a=g+l*b-t.y;var x=i*i+a*a;if(x<=2)return new r(i,a);o=Math.sqrt(x/2)}else{var _=!1;s>Number.EPSILON?u>Number.EPSILON&&(_=!0):s<-Number.EPSILON?u<-Number.EPSILON&&(_=!0):Math.sign(l)===Math.sign(c)&&(_=!0),_?(i=-l,a=s,o=Math.sqrt(h)):(i=s,a=l,o=Math.sqrt(h/2))}return new r(i/o,a/o)}function a(t,e){var n,i;for(H=t.length;--H>=0;){n=H,i=H-1,i<0&&(i=t.length-1);var r=0,a=_+2*y;for(r=0;r=0;N--){for(B=N/y,F=g*Math.cos(B*Math.PI/2),z=v*Math.sin(B*Math.PI/2),H=0,q=D.length;H0||0===t.search(/^data\:image\/jpeg/);r.format=i?Po:Oo,r.image=n,r.needsUpdate=!0,void 0!==e&&e(r)},n,i),r},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),An.prototype=Object.assign(Object.create(ct.prototype),{constructor:An,isLight:!0,copy:function(t){return ct.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){var e=ct.prototype.toJSON.call(this,t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}),Rn.prototype=Object.assign(Object.create(An.prototype),{constructor:Rn,isHemisphereLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(Ln.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var t={};return 0!==this.bias&&(t.bias=this.bias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),In.prototype=Object.assign(Object.create(Ln.prototype),{constructor:In,isSpotLightShadow:!0,update:function(t){var e=2*fs.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height,i=t.distance||500,r=this.camera;e===r.fov&&n===r.aspect&&i===r.far||(r.fov=e,r.aspect=n,r.far=i,r.updateProjectionMatrix())}}),Dn.prototype=Object.assign(Object.create(An.prototype),{constructor:Dn,isSpotLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Nn.prototype=Object.assign(Object.create(An.prototype),{constructor:Nn,isPointLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),zn.prototype=Object.assign(Object.create(Ln.prototype),{constructor:zn}),Bn.prototype=Object.assign(Object.create(An.prototype),{constructor:Bn,isDirectionalLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Fn.prototype=Object.assign(Object.create(An.prototype),{constructor:Fn,isAmbientLight:!0});var Is={arraySlice:function(t,e,n){return Is.isTypedArray(t)?new t.constructor(t.subarray(e,n)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){function e(e,n){return t[e]-t[n]}for(var n=t.length,i=new Array(n),r=0;r!==n;++r)i[r]=r;return i.sort(e),i},sortedArray:function(t,e,n){for(var i=t.length,r=new t.constructor(i),a=0,o=0;o!==i;++a)for(var s=n[a]*e,l=0;l!==e;++l)r[o++]=t[s+l];return r},flattenJSON:function(t,e,n,i){for(var r=1,a=t[0];void 0!==a&&void 0===a[i];)a=t[r++];if(void 0!==a){var o=a[i];if(void 0!==o)if(Array.isArray(o))do{o=a[i],void 0!==o&&(e.push(a.time),n.push.apply(n,o)),a=t[r++]}while(void 0!==a);else if(void 0!==o.toArray)do{o=a[i],void 0!==o&&(e.push(a.time),o.toArray(n,n.length)),a=t[r++]}while(void 0!==a);else do{o=a[i],void 0!==o&&(e.push(a.time),n.push(o)),a=t[r++]}while(void 0!==a)}}};Un.prototype={constructor:Un,evaluate:function(t){var e=this.parameterPositions,n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{var a;n:{i:if(!(t=r)break t;var s=e[1];t=r)break e}a=n,n=0}}for(;n>>1;te;)--a;if(++a,0!==r||a!==i){r>=a&&(a=Math.max(a,1),r=a-1);var o=this.getValueSize();this.times=Is.arraySlice(n,r,a),this.values=Is.arraySlice(this.values,r*o,a*o)}return this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("invalid value size in track",this),t=!1);var n=this.times,i=this.values,r=n.length;0===r&&(console.error("track is empty",this),t=!1);for(var a=null,o=0;o!==r;o++){var s=n[o];if("number"==typeof s&&isNaN(s)){console.error("time is not a valid number",this,o,s),t=!1;break}if(null!==a&&a>s){console.error("out of order keys",this,o,s,a),t=!1;break}a=s}if(void 0!==i&&Is.isTypedArray(i))for(var o=0,l=i.length;o!==l;++o){var u=i[o];if(isNaN(u)){console.error("value is not a valid number",this,o,u),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,n=this.getValueSize(),i=this.getInterpolation()===Ko,r=1,a=t.length-1,o=1;o0){t[r]=t[a];for(var p=a*n,m=r*n,d=0;d!==n;++d)e[m+d]=e[p+d];++r}return r!==t.length&&(this.times=Is.arraySlice(t,0,r),this.values=Is.arraySlice(e,0,r*n)),this}},Hn.prototype=Object.assign(Object.create(Ds),{constructor:Hn,ValueTypeName:"vector"}),qn.prototype=Object.assign(Object.create(Un.prototype),{constructor:qn,interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,l=(n-e)/(i-e),c=s+o;s!==c;s+=4)u.slerpFlat(r,0,a,s-o,a,s,l);return r}}),Yn.prototype=Object.assign(Object.create(Ds),{constructor:Yn,ValueTypeName:"quaternion",DefaultInterpolation:Zo,InterpolantFactoryMethodLinear:function(t){return new qn(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Xn.prototype=Object.assign(Object.create(Ds),{constructor:Xn,ValueTypeName:"number"}),Zn.prototype=Object.assign(Object.create(Ds),{constructor:Zn,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:Xo,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Kn.prototype=Object.assign(Object.create(Ds),{constructor:Kn,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:Xo,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Qn.prototype=Object.assign(Object.create(Ds),{constructor:Qn,ValueTypeName:"color"}),Jn.prototype=Ds,Ds.constructor=Jn,Object.assign(Jn,{parse:function(t){if(void 0===t.type)throw new Error("track type undefined, can not parse");var e=Jn._getTrackTypeForValueTypeName(t.type);if(void 0===t.times){var n=[],i=[];Is.flattenJSON(t.keys,n,i,"value"),t.times=n,t.values=i}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)},toJSON:function(t){var e,n=t.constructor;if(void 0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:Is.convertArray(t.times,Array),values:Is.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e},_getTrackTypeForValueTypeName:function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Xn;case"vector":case"vector2":case"vector3":case"vector4":return Hn;case"color":return Qn;case"quaternion":return Yn;case"bool":case"boolean":return Kn;case"string":return Zn}throw new Error("Unsupported typeName: "+t)}}),$n.prototype={constructor:$n,resetDuration:function(){for(var t=this.tracks,e=0,n=0,i=t.length;n!==i;++n){var r=this.tracks[n];e=Math.max(e,r.times[r.times.length-1])}this.duration=e},trim:function(){for(var t=0;t1){var u=l[1],c=i[u];c||(i[u]=c=[]),c.push(s)}}var h=[];for(var u in i)h.push($n.CreateFromMorphTargetSequence(u,i[u],e,n));return h},parseAnimation:function(t,e){if(!t)return console.error(" no animation in JSONLoader data"),null;for(var n=function(t,e,n,i,r){if(0!==n.length){var a=[],o=[];Is.flattenJSON(n,a,o,i),0!==a.length&&r.push(new t(e,a,o))}},i=[],r=t.name||"default",a=t.length||-1,o=t.fps||30,s=t.hierarchy||[],l=0;l1?t.skinWeights[i+1]:0,l=e>2?t.skinWeights[i+2]:0,u=e>3?t.skinWeights[i+3]:0;n.skinWeights.push(new o(a,s,l,u))}if(t.skinIndices)for(var i=0,r=t.skinIndices.length;i1?t.skinIndices[i+1]:0,d=e>2?t.skinIndices[i+2]:0,f=e>3?t.skinIndices[i+3]:0;n.skinIndices.push(new o(c,h,d,f))}n.bones=t.bones,n.bones&&n.bones.length>0&&(n.skinWeights.length!==n.skinIndices.length||n.skinIndices.length!==n.vertices.length)&&console.warn("When skinning, number of vertices ("+n.vertices.length+"), skinIndices ("+n.skinIndices.length+"), and skinWeights ("+n.skinWeights.length+") should match.")}(),function(e){if(void 0!==t.morphTargets)for(var i=0,r=t.morphTargets.length;i0){console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.');for(var h=n.faces,d=t.morphColors[0].colors,i=0,r=h.length;i0&&(n.animations=e)}(),n.computeFaceNormals(),n.computeBoundingSphere(),void 0===t.materials||0===t.materials.length)return{geometry:n};var a=ni.prototype.initMaterials(t.materials,e,this.crossOrigin);return{geometry:n,materials:a}}}),Object.assign(ri.prototype,{load:function(t,e,n,i){""===this.texturePath&&(this.texturePath=t.substring(0,t.lastIndexOf("/")+1));var r=this;new En(r.manager).load(t,function(n){var a=null;try{a=JSON.parse(n)}catch(e){return void 0!==i&&i(e),void console.error("THREE:ObjectLoader: Can't parse "+t+".",e.message)}var o=a.metadata;if(void 0===o||void 0===o.type||"geometry"===o.type.toLowerCase())return void console.error("THREE.ObjectLoader: Can't load "+t+". Use THREE.JSONLoader instead.");r.parse(a,e)},n,i)},setTexturePath:function(t){this.texturePath=t},setCrossOrigin:function(t){this.crossOrigin=t},parse:function(t,e){var n=this.parseGeometries(t.geometries),i=this.parseImages(t.images,function(){void 0!==e&&e(o)}),r=this.parseTextures(t.textures,i),a=this.parseMaterials(t.materials,r),o=this.parseObject(t.object,n,a);return t.animations&&(o.animations=this.parseAnimations(t.animations)),void 0!==t.images&&0!==t.images.length||void 0!==e&&e(o),o},parseGeometries:function(t){var e={};if(void 0!==t)for(var n=new ii,i=new ei,r=0,a=t.length;r0){var r=new Sn(e),a=new Cn(r);a.setCrossOrigin(this.crossOrigin);for(var o=0,s=t.length;o0?new xe(s,l):new Ot(s,l);break;case"LOD":o=new ve;break;case"Line":o=new we(r(e.geometry),a(e.material),e.mode);break;case"LineSegments":o=new Me(r(e.geometry),a(e.material));break;case"PointCloud":case"Points":o=new Ee(r(e.geometry),a(e.material));break;case"Sprite":o=new ge(a(e.material));break;case"Group":o=new ke;break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh type. Instantiates Object3D instead.");default:o=new ct}if(o.uuid=e.uuid,void 0!==e.name&&(o.name=e.name),void 0!==e.matrix?(t.fromArray(e.matrix),t.decompose(o.position,o.quaternion,o.scale)):(void 0!==e.position&&o.position.fromArray(e.position),void 0!==e.rotation&&o.rotation.fromArray(e.rotation),void 0!==e.quaternion&&o.quaternion.fromArray(e.quaternion),void 0!==e.scale&&o.scale.fromArray(e.scale)),void 0!==e.castShadow&&(o.castShadow=e.castShadow),void 0!==e.receiveShadow&&(o.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(o.shadow.bias=e.shadow.bias),void 0!==e.shadow.radius&&(o.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&o.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(o.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(o.visible=e.visible),void 0!==e.userData&&(o.userData=e.userData),void 0!==e.children)for(var u in e.children)o.add(this.parseObject(e.children[u],n,i));if("LOD"===e.type)for(var c=e.levels,h=0;h0)){l=r;break}l=r-1}if(r=l,i[r]===n){var u=r/(a-1);return u}var c=i[r],h=i[r+1],d=h-c,f=(n-c)/d,u=(r+f)/(a-1);return u},getTangent:function(t){var e=t-1e-4,n=t+1e-4;e<0&&(e=0),n>1&&(n=1);var i=this.getPoint(e);return this.getPoint(n).clone().sub(i).normalize()},getTangentAt:function(t){var e=this.getUtoTmapping(t);return this.getTangent(e)},computeFrenetFrames:function(t,e){var n,i,r,a=new c,o=[],s=[],l=[],u=new c,d=new h;for(n=0;n<=t;n++)i=n/t,o[n]=this.getTangentAt(i),o[n].normalize();s[0]=new c,l[0]=new c;var f=Number.MAX_VALUE,p=Math.abs(o[0].x),m=Math.abs(o[0].y),g=Math.abs(o[0].z);for(p<=f&&(f=p,a.set(1,0,0)),m<=f&&(f=m,a.set(0,1,0)),g<=f&&a.set(0,0,1),u.crossVectors(o[0],a).normalize(),s[0].crossVectors(o[0],u),l[0].crossVectors(o[0],s[0]),n=1;n<=t;n++)s[n]=s[n-1].clone(),l[n]=l[n-1].clone(),u.crossVectors(o[n-1],o[n]),u.length()>Number.EPSILON&&(u.normalize(),r=Math.acos(fs.clamp(o[n-1].dot(o[n]),-1,1)),s[n].applyMatrix4(d.makeRotationAxis(u,r))),l[n].crossVectors(o[n],s[n]);if(!0===e)for(r=Math.acos(fs.clamp(s[0].dot(s[t]),-1,1)),r/=t,o[0].dot(u.crossVectors(s[0],s[t]))>0&&(r=-r),n=1;n<=t;n++)s[n].applyMatrix4(d.makeRotationAxis(o[n],r*n)),l[n].crossVectors(o[n],s[n]);return{tangents:o,normals:s,binormals:l}}},gi.prototype=Object.create(mi.prototype),gi.prototype.constructor=gi,gi.prototype.isLineCurve=!0,gi.prototype.getPoint=function(t){if(1===t)return this.v2.clone();var e=this.v2.clone().sub(this.v1);return e.multiplyScalar(t).add(this.v1),e},gi.prototype.getPointAt=function(t){return this.getPoint(t)},gi.prototype.getTangent=function(t){return this.v2.clone().sub(this.v1).normalize()},vi.prototype=Object.assign(Object.create(mi.prototype),{constructor:vi,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new gi(e,t))},getPoint:function(t){for(var e=t*this.getLength(),n=this.getCurveLengths(),i=0;i=e){var r=n[i]-e,a=this.curves[i],o=a.getLength(),s=0===o?0:1-r/o;return a.getPointAt(s)}i++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,n=0,i=this.curves.length;n1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},createPointsGeometry:function(t){var e=this.getPoints(t);return this.createGeometry(e)},createSpacedPointsGeometry:function(t){var e=this.getSpacedPoints(t);return this.createGeometry(e)},createGeometry:function(t){for(var e=new Ct,n=0,i=t.length;ne;)n-=e;ne.length-2?e.length-1:i+1],u=e[i>e.length-3?e.length-1:i+2];return new r(ai(a,o.x,s.x,l.x,u.x),ai(a,o.y,s.y,l.y,u.y))},xi.prototype=Object.create(mi.prototype),xi.prototype.constructor=xi,xi.prototype.getPoint=function(t){var e=this.v0,n=this.v1,i=this.v2,a=this.v3;return new r(pi(t,e.x,n.x,i.x,a.x),pi(t,e.y,n.y,i.y,a.y))},_i.prototype=Object.create(mi.prototype),_i.prototype.constructor=_i,_i.prototype.getPoint=function(t){var e=this.v0,n=this.v1,i=this.v2;return new r(ui(t,e.x,n.x,i.x),ui(t,e.y,n.y,i.y))};var Ns=Object.assign(Object.create(vi.prototype),{fromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,n=t.length;e0){var u=l.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(l);var c=l.getPoint(1);this.currentPoint.copy(c)}});wi.prototype=Ns,Ns.constructor=wi,Mi.prototype=Object.assign(Object.create(Ns),{constructor:Mi,getPointsHoles:function(t){for(var e=[],n=0,i=this.holes.length;n1){for(var v=!1,y=[],b=0,x=d.length;bNumber.EPSILON){if(u<0&&(o=e[a],l=-l,s=e[r],u=-u),t.ys.y)continue;if(t.y===o.y){if(t.x===o.x)return!0}else{var c=u*(t.x-o.x)-l*(t.y-o.y);if(0===c)return!0;if(c<0)continue;i=!i}}else{if(t.y!==o.y)continue;if(s.x<=t.x&&t.x<=o.x||o.x<=t.x&&t.x<=s.x)return!0}}return i})(M.p,d[E].p)&&(b!==E&&y.push({froms:b,tos:E,hole:w}),S?(S=!1,h[E].push(M)):v=!0);S&&h[b].push(M)}y.length>0&&(v||(f=h))}for(var k,m=0,T=d.length;m0){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t0){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t=.5)for(var a=0;a!==r;++a)t[e+a]=t[n+a]},_slerp:function(t,e,n,i,r){u.slerpFlat(t,e,t,e,t,n,i)},_lerp:function(t,e,n,i,r){for(var a=1-i,o=0;o!==r;++o){var s=e+o;t[s]=t[s]*a+t[n+o]*i}}},Ni.prototype={constructor:Ni,getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,n=e.objectName,i=e.propertyName,r=e.propertyIndex;if(t||(t=Ni.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error(" trying to update node for track: "+this.path+" but it wasn't found.");if(n){var a=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error(" can not bind to material as node does not have a material",this);if(!t.material.materials)return void console.error(" can not bind to material.materials as node.material does not have a materials array",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error(" can not bind to bones as node does not have a skeleton",this);t=t.skeleton.bones;for(var o=0;o=n){var h=n++,d=e[h];i[d.uuid]=c,e[c]=d,i[u]=h,e[h]=l;for(var f=0,p=a;f!==p;++f){var m=r[f],g=m[h],v=m[c];m[c]=g,m[h]=v}}}this.nCachedObjects_=n},uncache:function(t){for(var e=this._objects,n=e.length,i=this.nCachedObjects_,r=this._indicesByUUID,a=this._bindings,o=a.length,s=0,l=arguments.length;s!==l;++s){var u=arguments[s],c=u.uuid,h=r[c];if(void 0!==h)if(delete r[c],h0)for(var l=this._interpolants,u=this._propertyBindings,c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulate(i,s)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n){e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e},_updateTime:function(t){var e=this.time+t;if(0===t)return e;var n=this._clip.duration,i=this.loop,r=this._loopCount;if(i===Ho){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(e>=n)e=n;else{if(!(e<0))break t;e=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{var a=i===Yo;if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),e>=n||e<0){var o=Math.floor(e/n);e-=n*o,r+=Math.abs(o);var s=this.repetitions-r;if(s<0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=t>0?n:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(0===s){var l=t<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=e,n-e}return this.time=e,e},_setEndings:function(t,e,n){var i=this._interpolantSettings;n?(i.endingStart=Jo,i.endingEnd=Jo):(i.endingStart=t?this.zeroSlopeAtStart?Jo:Qo:$o,i.endingEnd=e?this.zeroSlopeAtEnd?Jo:Qo:$o)},_scheduleFading:function(t,e,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]=e,o[1]=r+t,s[1]=n,this}},Fi.prototype={constructor:Fi,clipAction:function(t,e){var n=e||this._root,i=n.uuid,r="string"==typeof t?$n.findByName(n,t):t,a=null!==r?r.uuid:t,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 u=new Bi(this,r,e);return this._bindAction(u,s),this._addInactiveAction(u,a,i),u},existingAction:function(t,e){var n=e||this._root,i=n.uuid,r="string"==typeof t?$n.findByName(n,t):t,a=r?r.uuid:t,o=this._actionsByClip[a];return void 0!==o?o.actionByRoot[i]||null:null},stopAllAction:function(){var t=this._actions,e=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var r=0;r!==e;++r)t[r].reset();for(var r=0;r!==i;++r)n[r].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),a=this._accuIndex^=1,o=0;o!==n;++o){var s=e[o];s.enabled&&s._update(i,t,r,a)}for(var l=this._bindings,u=this._nActiveBindings,o=0;o!==u;++o)l[o].apply(a);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions,n=t.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 u=l._cacheIndex,c=e[e.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,c._cacheIndex=u,e[u]=c,e.pop(),this._removeInactiveBindingsForAction(l)}delete i[n]}},uncacheRoot:function(t){var e=t.uuid,n=this._actionsByClip;for(var i in n){var r=n[i].actionByRoot,a=r[e];void 0!==a&&(this._deactivateAction(a),this._removeInactiveAction(a))}var o=this._bindingsByRootAndName,s=o[e];if(void 0!==s)for(var l in s){var u=s[l];u.restoreOriginalState(),this._removeInactiveBinding(u)}},uncacheAction:function(t,e){var n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}},Object.assign(Fi.prototype,{_bindAction:function(t,e){var n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,a=t._propertyBindings,o=t._interpolants,s=n.uuid,l=this._bindingsByRootAndName,u=l[s];void 0===u&&(u={},l[s]=u);for(var c=0;c!==r;++c){var h=i[c],d=h.name,f=u[d];if(void 0!==f)a[c]=f;else{if(void 0!==(f=a[c])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,s,d));continue}var p=e&&e._propertyBindings[c].binding.parsedPath;f=new Di(Ni.create(n,d,p),h.ValueTypeName,h.getValueSize()),++f.referenceCount,this._addInactiveBinding(f,s,d),a[c]=f}o[c].resultBuffer=f.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){var e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}for(var r=t._propertyBindings,a=0,o=r.length;a!==o;++a){var s=r[a];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){var e=t._cacheIndex;return null!==e&&e1){var u=l[1];i[u]||(i[u]={start:1/0,end:-1/0});var c=i[u];ac.end&&(c.end=a),e||(e=u)}}for(var u in i){var c=i[u];this.createAnimation(u,c.start,c.end,t)}this.firstAnimation=e},Ji.prototype.setAnimationDirectionForward=function(t){var e=this.animationsMap[t];e&&(e.direction=1,e.directionBackwards=!1)},Ji.prototype.setAnimationDirectionBackward=function(t){var e=this.animationsMap[t];e&&(e.direction=-1,e.directionBackwards=!0)},Ji.prototype.setAnimationFPS=function(t,e){var n=this.animationsMap[t];n&&(n.fps=e,n.duration=(n.end-n.start)/n.fps)},Ji.prototype.setAnimationDuration=function(t,e){var n=this.animationsMap[t];n&&(n.duration=e,n.fps=(n.end-n.start)/n.duration)},Ji.prototype.setAnimationWeight=function(t,e){var n=this.animationsMap[t];n&&(n.weight=e)},Ji.prototype.setAnimationTime=function(t,e){var n=this.animationsMap[t];n&&(n.time=e)},Ji.prototype.getAnimationTime=function(t){var e=0,n=this.animationsMap[t];return n&&(e=n.time),e},Ji.prototype.getAnimationDuration=function(t){var e=-1,n=this.animationsMap[t];return n&&(e=n.duration),e},Ji.prototype.playAnimation=function(t){var e=this.animationsMap[t];e?(e.time=0,e.active=!0):console.warn("THREE.MorphBlendMesh: animation["+t+"] undefined in .playAnimation()")},Ji.prototype.stopAnimation=function(t){var e=this.animationsMap[t];e&&(e.active=!1)},Ji.prototype.update=function(t){for(var e=0,n=this.animationsList.length;ei.duration||i.time<0)&&(i.direction*=-1,i.time>i.duration&&(i.time=i.duration,i.directionBackwards=!0),i.time<0&&(i.time=0,i.directionBackwards=!1)):(i.time=i.time%i.duration,i.time<0&&(i.time+=i.duration));var a=i.start+fs.clamp(Math.floor(i.time/r),0,i.length-1),o=i.weight;a!==i.currentFrame&&(this.morphTargetInfluences[i.lastFrame]=0,this.morphTargetInfluences[i.currentFrame]=1*o,this.morphTargetInfluences[a]=0,i.lastFrame=i.currentFrame,i.currentFrame=a);var s=i.time%r/r;i.directionBackwards&&(s=1-s),i.currentFrame!==i.lastFrame?(this.morphTargetInfluences[i.currentFrame]=s*o,this.morphTargetInfluences[i.lastFrame]=(1-s)*o):this.morphTargetInfluences[i.currentFrame]=o}}},$i.prototype=Object.create(ct.prototype),$i.prototype.constructor=$i,$i.prototype.isImmediateRenderObject=!0,tr.prototype=Object.create(Me.prototype),tr.prototype.constructor=tr,tr.prototype.update=function(){var t=new c,e=new c,n=new it;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,u=0,c=0,h=l.length;c.99999?this.quaternion.set(0,0,0,1):n.y<-.99999?this.quaternion.set(1,0,0,0):(e.set(n.z,0,-n.x).normalize(),t=Math.acos(n.y),this.quaternion.setFromAxisAngle(e,t))}}(),dr.prototype.setLength=function(t,e,n){void 0===e&&(e=.2*t),void 0===n&&(n=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()},dr.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},fr.prototype=Object.create(Me.prototype),fr.prototype.constructor=fr;var js=new c,Ws=new pr,Gs=new pr,Vs=new pr;mr.prototype=Object.create(mi.prototype),mr.prototype.constructor=mr,mr.prototype.getPoint=function(t){var e=this.points,n=e.length;n<2&&console.log("duh, you need at least 2 points");var i=(n-(this.closed?0:1))*t,r=Math.floor(i),a=i-r;this.closed?r+=r>0?0:(Math.floor(Math.abs(r)/e.length)+1)*e.length:0===a&&r===n-1&&(r=n-2,a=1);var o,s,l,u;if(this.closed||r>0?o=e[(r-1)%n]:(js.subVectors(e[0],e[1]).add(e[0]),o=js),s=e[r%n],l=e[(r+1)%n],this.closed||r+20}function a(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),St(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function o(t,e){var n=Me();try{var i=t.interceptors;if(i)for(var r=0,a=i.length;r0}function l(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),St(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function u(t,e){var n=Me(),i=t.changeListeners;if(i){i=i.slice();for(var r=0,a=i.length;r=this.length,value:e0,"actions should have valid names, got: '"+t+"'");var n=function(){return S(t,e,this,arguments)};return n.originalFn=e,n.isMobxAction=!0,n}function S(t,e,n,i){var r=E(t,e,n,i);try{return e.apply(n,i)}finally{k(r)}}function E(t,e,n,i){var r=c()&&!!t,a=0;if(r){a=Date.now();var o=i&&i.length||0,s=new Array(o);if(o>0)for(var l=0;l",r="function"==typeof t?t:e,a="function"==typeof t?e:n;return wt("function"==typeof r,w("m002")),wt(0===r.length,w("m003")),wt("string"==typeof i&&i.length>0,"actions should have valid names, got: '"+i+"'"),S(i,r,a,void 0)}function B(t){return"function"==typeof t&&!0===t.isMobxAction}function F(t,e,n){var i=function(){return S(e,n,t,arguments)};i.isMobxAction=!0,At(t,e,i)}function U(t,e){return t===e}function j(t,e){return Nt(t,e)}function W(t,e){return Bt(t,e)||U(t,e)}function G(t,e,n){function i(){a(s)}var r,a,o;"string"==typeof t?(r=t,a=e,o=n):(r=t.name||"Autorun@"+xt(),a=t,o=e),wt("function"==typeof a,w("m004")),wt(!1===B(a),w("m005")),o&&(a=a.bind(o));var s=new Kn(r,function(){this.track(i)});return s.schedule(),s.getDisposer()}function V(t,e,n,i){var r,a,o,s;return"string"==typeof t?(r=t,a=e,o=n,s=i):(r="When@"+xt(),a=t,o=e,s=n),G(r,function(t){if(a.call(s)){t.dispose();var e=Me();o.call(s),Se(e)}})}function H(t,e,n,i){function r(){o(c)}var a,o,s,l;"string"==typeof t?(a=t,o=e,s=n,l=i):(a=t.name||"AutorunAsync@"+xt(),o=t,s=e,l=n),wt(!1===B(o),w("m006")),void 0===s&&(s=1),l&&(o=o.bind(l));var u=!1,c=new Kn(a,function(){u||(u=!0,setTimeout(function(){u=!1,c.isDisposed||c.track(r)},s))});return c.schedule(),c.getDisposer()}function Y(t,e,n){function i(){if(!u.isDisposed){var n=!1;u.track(function(){var e=t(u);n=o||!l(a,e),a=e}),o&&r.fireImmediately&&e(a,u),o||!0!==n||e(a,u),o&&(o=!1)}}arguments.length>3&&_t(w("m007")),ct(t)&&_t(w("m008"));var r;r="object"==typeof n?n:{},r.name=r.name||t.name||e.name||"Reaction@"+xt(),r.fireImmediately=!0===n||!0===r.fireImmediately,r.delay=r.delay||0,r.compareStructural=r.compareStructural||r.struct||!1,e=yn(r.name,r.context?e.bind(r.context):e),r.context&&(t=t.bind(r.context));var a,o=!0,s=!1,l=r.equals?r.equals:r.compareStructural||r.struct?bn.structural:bn.default,u=new Kn(r.name,function(){o||r.delay<1?i():s||(s=!0,setTimeout(function(){s=!1,i()},r.delay))});return u.schedule(),u.getDisposer()}function q(t,e){if(nt(t)&&t.hasOwnProperty("$mobx"))return t.$mobx;wt(Object.isExtensible(t),w("m035")),Ct(t)||(e=(t.constructor.name||"ObservableObject")+"@"+xt()),e||(e="ObservableObject@"+xt());var n=new wn(t,e);return Rt(t,"$mobx",n),n}function X(t,e,n,i){if(t.values[e]&&!_n(t.values[e]))return wt("value"in n,"The property "+e+" in "+t.name+" is already observable, cannot redefine it as computed property"),void(t.target[e]=n.value);if("value"in n)if(ct(n.value)){var r=n.value;Z(t,e,r.initialValue,r.enhancer)}else B(n.value)&&!0===n.value.autoBind?F(t.target,e,n.value.originalFn):_n(n.value)?Q(t,e,n.value):Z(t,e,n.value,i);else K(t,e,n.get,n.set,bn.default,!0)}function Z(t,e,n,i){if(It(t.target,e),r(t)){var a=o(t,{object:t.target,name:e,type:"add",newValue:n});if(!a)return;n=a.newValue}n=(t.values[e]=new fn(n,i,t.name+"."+e,!1)).value,Object.defineProperty(t.target,e,J(e)),et(t,t.target,e,n)}function K(t,e,n,i,r,a){a&&It(t.target,e),t.values[e]=new xn(n,t.target,r,t.name+"."+e,i),a&&Object.defineProperty(t.target,e,$(e))}function Q(t,e,n){var i=t.name+"."+e;n.name=i,n.scope||(n.scope=t.target),t.values[e]=n,Object.defineProperty(t.target,e,$(e))}function J(t){return Mn[t]||(Mn[t]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[t].get()},set:function(e){tt(this,t,e)}})}function $(t){return Sn[t]||(Sn[t]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[t].get()},set:function(e){return this.$mobx.values[t].set(e)}})}function tt(t,e,n){var i=t.$mobx,a=i.values[e];if(r(i)){var l=o(i,{type:"update",object:t,name:e,newValue:n});if(!l)return;n=l.newValue}if((n=a.prepareNewValue(n))!==dn){var h=s(i),p=c(),l=h||p?{type:"update",object:t,oldValue:a.value,name:e,newValue:n}:null;p&&d(l),a.setNewValue(n),h&&u(i,l),p&&f()}}function et(t,e,n,i){var r=s(t),a=c(),o=r||a?{type:"add",object:e,name:n,newValue:i}:null;a&&d(o),r&&u(t,o),a&&f()}function nt(t){return!!Tt(t)&&(I(t),En(t.$mobx))}function it(t,e){if(null===t||void 0===t)return!1;if(void 0!==e){if(_(t)||Dn(t))throw new Error(w("m019"));if(nt(t)){var n=t.$mobx;return n.values&&!!n.values[e]}return!1}return nt(t)||!!t.$mobx||en(t)||$n(t)||_n(t)}function rt(t){return wt(!!t,":("),R(function(e,n,i,r,a){It(e,n),wt(!a||!a.get,w("m022")),Z(q(e,void 0),n,i,t)},function(t){var e=this.$mobx.values[t];if(void 0!==e)return e.get()},function(t,e){tt(this,t,e)},!0,!1)}function at(t){for(var e=[],n=1;n=2,w("m014")),wt("object"==typeof t,w("m015")),wt(!Dn(t),w("m016")),n.forEach(function(t){wt("object"==typeof t,w("m017")),wt(!it(t),w("m018"))});for(var i=q(t),r={},a=n.length-1;a>=0;a--){var o=n[a];for(var s in o)if(!0!==r[s]&&Ot(o,s)){if(r[s]=!0,t===o&&!Lt(t,s))continue;var l=Object.getOwnPropertyDescriptor(o,s);X(i,s,l,e)}}return t}function lt(t){if(void 0===t&&(t=void 0),"string"==typeof arguments[1])return kn.apply(null,arguments);if(wt(arguments.length<=1,w("m021")),wt(!ct(t),w("m020")),it(t))return t;var e=dt(t,void 0,void 0);return e!==t?e:Rn.box(t)}function ut(t){_t("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}function ct(t){return"object"==typeof t&&null!==t&&!0===t.isMobxModifierDescriptor}function ht(t,e){return wt(!ct(e),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:e,enhancer:t}}function dt(t,e,n){return ct(t)&&_t("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),it(t)?t:Array.isArray(t)?Rn.array(t,n):Ct(t)?Rn.object(t,n):jt(t)?Rn.map(t,n):t}function ft(t,e,n){return ct(t)&&_t("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),void 0===t||null===t?t:nt(t)||_(t)||Dn(t)?t:Array.isArray(t)?Rn.shallowArray(t,n):Ct(t)?Rn.shallowObject(t,n):jt(t)?Rn.shallowMap(t,n):_t("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function pt(t){return t}function mt(t,e,n){if(Nt(t,e))return e;if(it(t))return t;if(Array.isArray(t))return new un(t,mt,n);if(jt(t))return new In(t,mt,n);if(Ct(t)){var i={};return q(i,n),st(i,mt,[t]),i}return t}function gt(t,e,n){return Nt(t,e)?e:t}function vt(t,e){void 0===e&&(e=void 0),se();try{return t.apply(e)}finally{le()}}function yt(t){return Mt("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Rn.map(t)}function bt(){return"undefined"!=typeof window?window:t}function xt(){return++Wn.mobxGuid}function _t(t,e){throw wt(!1,t,e),"X"}function wt(t,e,n){if(!t)throw new Error("[mobx] Invariant failed: "+e+(n?" in '"+n+"'":""))}function Mt(t){return-1===zn.indexOf(t)&&(zn.push(t),console.error("[mobx] Deprecated: "+t),!0)}function St(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}function Et(t){var e=[];return t.forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),e}function kt(t,e,n){return void 0===e&&(e=100),void 0===n&&(n=" - "),t?t.slice(0,e).join(n)+(t.length>e?" (... and "+(t.length-e)+"more)":""):""}function Tt(t){return null!==t&&"object"==typeof t}function Ct(t){if(null===t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function Pt(){for(var t=arguments[0],e=1,n=arguments.length;e=0;r--)if(!Nt(t[r],e[r]))return!1;return!0}if(i){if(t.size!==e.size)return!1;var a=!0;return t.forEach(function(t,n){a=a&&Nt(e.get(n),t)}),a}if("object"==typeof t&&"object"==typeof e){if(null===t||null===e)return!1;if(Ut(t)&&Ut(e))return t.size===e.size&&Nt(Rn.shallowMap(t).entries(),Rn.shallowMap(e).entries());if(Dt(t).length!==Dt(e).length)return!1;for(var o in t){if(!(o in e))return!1;if(!Nt(t[o],e[o]))return!1}return!0}return!1}function zt(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(t){return Tt(t)&&!0===t[n]}}function Bt(t,e){return"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Ft(t){return Array.isArray(t)||_(t)}function Ut(t){return jt(t)||Dn(t)}function jt(t){return void 0!==bt().Map&&t instanceof bt().Map}function Wt(t){var e;return Ct(t)?e=Object.keys(t):Array.isArray(t)?e=t.map(function(t){return t[0]}):Ut(t)?e=Array.from(t.keys()):_t("Cannot get keys from "+t),e}function Gt(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function Vt(t){return null===t?null:"object"==typeof t?""+t:t}function Ht(){Vn=!0,bt().__mobxInstanceCount--}function Yt(){Mt("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),Gn=!0;var t=bt(),e=Wn;if(t.__mobservableTrackingStack||t.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(t.__mobxGlobal&&t.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");t.__mobxGlobal?Wn=t.__mobxGlobal:t.__mobxGlobal=e}function qt(){return Wn}function Xt(){Wn.resetId++;var t=new jn;for(var e in t)-1===Un.indexOf(e)&&(Wn[e]=t[e]);Wn.allowStateChanges=!Wn.strictMode}function Zt(t,e){if("object"==typeof t&&null!==t){if(_(t))return wt(void 0===e,w("m036")),t.$mobx.atom;if(Dn(t)){var n=t;if(void 0===e)return Zt(n._keys);var i=n._data[e]||n._hasMap[e];return wt(!!i,"the entry '"+e+"' does not exist in the observable map '"+Qt(t)+"'"),i}if(I(t),e&&!t.$mobx&&t[e],nt(t)){if(!e)return _t("please specify a property");var i=t.$mobx.values[e];return wt(!!i,"no observable property '"+e+"' found on the observable object '"+Qt(t)+"'"),i}if(en(t)||_n(t)||$n(t))return t}else if("function"==typeof t&&$n(t.$mobx))return t.$mobx;return _t("Cannot obtain atom from "+t)}function Kt(t,e){return wt(t,"Expecting some object"),void 0!==e?Kt(Zt(t,e)):en(t)||_n(t)||$n(t)?t:Dn(t)?t:(I(t),t.$mobx?t.$mobx:void wt(!1,"Cannot obtain administration from "+t))}function Qt(t,e){var n;return n=void 0!==e?Zt(t,e):nt(t)||Dn(t)?Kt(t):Zt(t),n.name}function Jt(t,e){return $t(Zt(t,e))}function $t(t){var e={name:t.name};return t.observing&&t.observing.length>0&&(e.dependencies=Et(t.observing).map($t)),e}function te(t,e){return ee(Zt(t,e))}function ee(t){var e={name:t.name};return ne(t)&&(e.observers=ie(t).map(ee)),e}function ne(t){return t.observers&&t.observers.length>0}function ie(t){return t.observers}function re(t,e){var n=t.observers.length;n&&(t.observersIndexes[e.__mapid]=n),t.observers[n]=e,t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function ae(t,e){if(1===t.observers.length)t.observers.length=0,oe(t);else{var n=t.observers,i=t.observersIndexes,r=n.pop();if(r!==e){var a=i[e.__mapid]||0;a?i[r.__mapid]=a:delete i[r.__mapid],n[a]=r}delete i[e.__mapid]}}function oe(t){t.isPendingUnobservation||(t.isPendingUnobservation=!0,Wn.pendingUnobservations.push(t))}function se(){Wn.inBatch++}function le(){if(0==--Wn.inBatch){Re();for(var t=Wn.pendingUnobservations,e=0;e=1e3)return void e.push("(and many more)");e.push(""+new Array(n).join("\t")+t.name),t.dependencies&&t.dependencies.forEach(function(t){return pe(t,e,n+1)})}function me(t){return t instanceof Zn}function ge(t){switch(t.dependenciesState){case qn.UP_TO_DATE:return!1;case qn.NOT_TRACKING:case qn.STALE:return!0;case qn.POSSIBLY_STALE:for(var e=Me(),n=t.observing,i=n.length,r=0;r0;Wn.computationDepth>0&&e&&_t(w("m031")+t.name),!Wn.allowStateChanges&&e&&_t(w(Wn.strictMode?"m030a":"m030b")+t.name)}function be(t,e,n){Ee(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Wn.runId;var i=Wn.trackingDerivation;Wn.trackingDerivation=t;var r;try{r=e.call(n)}catch(t){r=new Zn(t)}return Wn.trackingDerivation=i,xe(t),r}function xe(t){for(var e=t.observing,n=t.observing=t.newObserving,i=qn.UP_TO_DATE,r=0,a=t.unboundDepsCount,o=0;oi&&(i=s.dependenciesState)}for(n.length=r,t.newObserving=null,a=e.length;a--;){var s=e[a];0===s.diffValue&&ae(s,t),s.diffValue=0}for(;r--;){var s=n[r];1===s.diffValue&&(s.diffValue=0,re(s,t))}i!==qn.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function _e(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)ae(e[n],t);t.dependenciesState=qn.NOT_TRACKING}function we(t){var e=Me(),n=t();return Se(e),n}function Me(){var t=Wn.trackingDerivation;return Wn.trackingDerivation=null,t}function Se(t){Wn.trackingDerivation=t}function Ee(t){if(t.dependenciesState!==qn.UP_TO_DATE){t.dependenciesState=qn.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=qn.UP_TO_DATE}}function ke(t){return console.log(t),t}function Te(t,e){return Mt("`whyRun` is deprecated in favor of `trace`"),t=Pe(arguments),t?_n(t)||$n(t)?ke(t.whyRun()):_t(w("m025")):ke(w("m024"))}function Ce(){for(var t=[],e=0;e=0&&Wn.globalReactionErrorHandlers.splice(e,1)}}function Re(){Wn.inBatch>0||Wn.isRunningReactions||Jn(Le)}function Le(){Wn.isRunningReactions=!0;for(var t=Wn.pendingReactions,e=0;t.length>0;){++e===Qn&&(console.error("Reaction doesn't converge to a stable state after "+Qn+" iterations. Probably there is a cycle in the reactive function: "+t[0]),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;i0}function a(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),St(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function o(t,e){var n=Me();try{var i=t.interceptors;if(i)for(var r=0,a=i.length;r0}function l(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),St(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function u(t,e){var n=Me(),i=t.changeListeners;if(i){i=i.slice();for(var r=0,a=i.length;r=this.length,value:e0,"actions should have valid names, got: '"+t+"'");var n=function(){return S(t,e,this,arguments)};return n.originalFn=e,n.isMobxAction=!0,n}function S(t,e,n,i){var r=E(t,e,n,i);try{return e.apply(n,i)}finally{k(r)}}function E(t,e,n,i){var r=c()&&!!t,a=0;if(r){a=Date.now();var o=i&&i.length||0,s=new Array(o);if(o>0)for(var l=0;l",r="function"==typeof t?t:e,a="function"==typeof t?e:n;return wt("function"==typeof r,w("m002")),wt(0===r.length,w("m003")),wt("string"==typeof i&&i.length>0,"actions should have valid names, got: '"+i+"'"),S(i,r,a,void 0)}function B(t){return"function"==typeof t&&!0===t.isMobxAction}function F(t,e,n){var i=function(){return S(e,n,t,arguments)};i.isMobxAction=!0,At(t,e,i)}function U(t,e){return t===e}function j(t,e){return Nt(t,e)}function W(t,e){return Bt(t,e)||U(t,e)}function G(t,e,n){function i(){a(s)}var r,a,o;"string"==typeof t?(r=t,a=e,o=n):(r=t.name||"Autorun@"+xt(),a=t,o=e),wt("function"==typeof a,w("m004")),wt(!1===B(a),w("m005")),o&&(a=a.bind(o));var s=new Kn(r,function(){this.track(i)});return s.schedule(),s.getDisposer()}function V(t,e,n,i){var r,a,o,s;return"string"==typeof t?(r=t,a=e,o=n,s=i):(r="When@"+xt(),a=t,o=e,s=n),G(r,function(t){if(a.call(s)){t.dispose();var e=Me();o.call(s),Se(e)}})}function H(t,e,n,i){function r(){o(c)}var a,o,s,l;"string"==typeof t?(a=t,o=e,s=n,l=i):(a=t.name||"AutorunAsync@"+xt(),o=t,s=e,l=n),wt(!1===B(o),w("m006")),void 0===s&&(s=1),l&&(o=o.bind(l));var u=!1,c=new Kn(a,function(){u||(u=!0,setTimeout(function(){u=!1,c.isDisposed||c.track(r)},s))});return c.schedule(),c.getDisposer()}function q(t,e,n){function i(){if(!u.isDisposed){var n=!1;u.track(function(){var e=t(u);n=o||!l(a,e),a=e}),o&&r.fireImmediately&&e(a,u),o||!0!==n||e(a,u),o&&(o=!1)}}arguments.length>3&&_t(w("m007")),ct(t)&&_t(w("m008"));var r;r="object"==typeof n?n:{},r.name=r.name||t.name||e.name||"Reaction@"+xt(),r.fireImmediately=!0===n||!0===r.fireImmediately,r.delay=r.delay||0,r.compareStructural=r.compareStructural||r.struct||!1,e=yn(r.name,r.context?e.bind(r.context):e),r.context&&(t=t.bind(r.context));var a,o=!0,s=!1,l=r.equals?r.equals:r.compareStructural||r.struct?bn.structural:bn.default,u=new Kn(r.name,function(){o||r.delay<1?i():s||(s=!0,setTimeout(function(){s=!1,i()},r.delay))});return u.schedule(),u.getDisposer()}function Y(t,e){if(nt(t)&&t.hasOwnProperty("$mobx"))return t.$mobx;wt(Object.isExtensible(t),w("m035")),Ct(t)||(e=(t.constructor.name||"ObservableObject")+"@"+xt()),e||(e="ObservableObject@"+xt());var n=new wn(t,e);return Rt(t,"$mobx",n),n}function X(t,e,n,i){if(t.values[e]&&!_n(t.values[e]))return wt("value"in n,"The property "+e+" in "+t.name+" is already observable, cannot redefine it as computed property"),void(t.target[e]=n.value);if("value"in n)if(ct(n.value)){var r=n.value;Z(t,e,r.initialValue,r.enhancer)}else B(n.value)&&!0===n.value.autoBind?F(t.target,e,n.value.originalFn):_n(n.value)?Q(t,e,n.value):Z(t,e,n.value,i);else K(t,e,n.get,n.set,bn.default,!0)}function Z(t,e,n,i){if(It(t.target,e),r(t)){var a=o(t,{object:t.target,name:e,type:"add",newValue:n});if(!a)return;n=a.newValue}n=(t.values[e]=new fn(n,i,t.name+"."+e,!1)).value,Object.defineProperty(t.target,e,J(e)),et(t,t.target,e,n)}function K(t,e,n,i,r,a){a&&It(t.target,e),t.values[e]=new xn(n,t.target,r,t.name+"."+e,i),a&&Object.defineProperty(t.target,e,$(e))}function Q(t,e,n){var i=t.name+"."+e;n.name=i,n.scope||(n.scope=t.target),t.values[e]=n,Object.defineProperty(t.target,e,$(e))}function J(t){return Mn[t]||(Mn[t]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[t].get()},set:function(e){tt(this,t,e)}})}function $(t){return Sn[t]||(Sn[t]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[t].get()},set:function(e){return this.$mobx.values[t].set(e)}})}function tt(t,e,n){var i=t.$mobx,a=i.values[e];if(r(i)){var l=o(i,{type:"update",object:t,name:e,newValue:n});if(!l)return;n=l.newValue}if((n=a.prepareNewValue(n))!==dn){var h=s(i),p=c(),l=h||p?{type:"update",object:t,oldValue:a.value,name:e,newValue:n}:null;p&&d(l),a.setNewValue(n),h&&u(i,l),p&&f()}}function et(t,e,n,i){var r=s(t),a=c(),o=r||a?{type:"add",object:e,name:n,newValue:i}:null;a&&d(o),r&&u(t,o),a&&f()}function nt(t){return!!Tt(t)&&(I(t),En(t.$mobx))}function it(t,e){if(null===t||void 0===t)return!1;if(void 0!==e){if(_(t)||Dn(t))throw new Error(w("m019"));if(nt(t)){var n=t.$mobx;return n.values&&!!n.values[e]}return!1}return nt(t)||!!t.$mobx||en(t)||$n(t)||_n(t)}function rt(t){return wt(!!t,":("),R(function(e,n,i,r,a){It(e,n),wt(!a||!a.get,w("m022")),Z(Y(e,void 0),n,i,t)},function(t){var e=this.$mobx.values[t];if(void 0!==e)return e.get()},function(t,e){tt(this,t,e)},!0,!1)}function at(t){for(var e=[],n=1;n=2,w("m014")),wt("object"==typeof t,w("m015")),wt(!Dn(t),w("m016")),n.forEach(function(t){wt("object"==typeof t,w("m017")),wt(!it(t),w("m018"))});for(var i=Y(t),r={},a=n.length-1;a>=0;a--){var o=n[a];for(var s in o)if(!0!==r[s]&&Ot(o,s)){if(r[s]=!0,t===o&&!Lt(t,s))continue;var l=Object.getOwnPropertyDescriptor(o,s);X(i,s,l,e)}}return t}function lt(t){if(void 0===t&&(t=void 0),"string"==typeof arguments[1])return kn.apply(null,arguments);if(wt(arguments.length<=1,w("m021")),wt(!ct(t),w("m020")),it(t))return t;var e=dt(t,void 0,void 0);return e!==t?e:Rn.box(t)}function ut(t){_t("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}function ct(t){return"object"==typeof t&&null!==t&&!0===t.isMobxModifierDescriptor}function ht(t,e){return wt(!ct(e),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:e,enhancer:t}}function dt(t,e,n){return ct(t)&&_t("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),it(t)?t:Array.isArray(t)?Rn.array(t,n):Ct(t)?Rn.object(t,n):jt(t)?Rn.map(t,n):t}function ft(t,e,n){return ct(t)&&_t("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),void 0===t||null===t?t:nt(t)||_(t)||Dn(t)?t:Array.isArray(t)?Rn.shallowArray(t,n):Ct(t)?Rn.shallowObject(t,n):jt(t)?Rn.shallowMap(t,n):_t("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function pt(t){return t}function mt(t,e,n){if(Nt(t,e))return e;if(it(t))return t;if(Array.isArray(t))return new un(t,mt,n);if(jt(t))return new In(t,mt,n);if(Ct(t)){var i={};return Y(i,n),st(i,mt,[t]),i}return t}function gt(t,e,n){return Nt(t,e)?e:t}function vt(t,e){void 0===e&&(e=void 0),se();try{return t.apply(e)}finally{le()}}function yt(t){return Mt("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Rn.map(t)}function bt(){return"undefined"!=typeof window?window:t}function xt(){return++Wn.mobxGuid}function _t(t,e){throw wt(!1,t,e),"X"}function wt(t,e,n){if(!t)throw new Error("[mobx] Invariant failed: "+e+(n?" in '"+n+"'":""))}function Mt(t){return-1===zn.indexOf(t)&&(zn.push(t),console.error("[mobx] Deprecated: "+t),!0)}function St(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}function Et(t){var e=[];return t.forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),e}function kt(t,e,n){return void 0===e&&(e=100),void 0===n&&(n=" - "),t?t.slice(0,e).join(n)+(t.length>e?" (... and "+(t.length-e)+"more)":""):""}function Tt(t){return null!==t&&"object"==typeof t}function Ct(t){if(null===t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function Pt(){for(var t=arguments[0],e=1,n=arguments.length;e=0;r--)if(!Nt(t[r],e[r]))return!1;return!0}if(i){if(t.size!==e.size)return!1;var a=!0;return t.forEach(function(t,n){a=a&&Nt(e.get(n),t)}),a}if("object"==typeof t&&"object"==typeof e){if(null===t||null===e)return!1;if(Ut(t)&&Ut(e))return t.size===e.size&&Nt(Rn.shallowMap(t).entries(),Rn.shallowMap(e).entries());if(Dt(t).length!==Dt(e).length)return!1;for(var o in t){if(!(o in e))return!1;if(!Nt(t[o],e[o]))return!1}return!0}return!1}function zt(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(t){return Tt(t)&&!0===t[n]}}function Bt(t,e){return"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Ft(t){return Array.isArray(t)||_(t)}function Ut(t){return jt(t)||Dn(t)}function jt(t){return void 0!==bt().Map&&t instanceof bt().Map}function Wt(t){var e;return Ct(t)?e=Object.keys(t):Array.isArray(t)?e=t.map(function(t){return t[0]}):Ut(t)?e=Array.from(t.keys()):_t("Cannot get keys from "+t),e}function Gt(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function Vt(t){return null===t?null:"object"==typeof t?""+t:t}function Ht(){Vn=!0,bt().__mobxInstanceCount--}function qt(){Mt("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),Gn=!0;var t=bt(),e=Wn;if(t.__mobservableTrackingStack||t.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(t.__mobxGlobal&&t.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");t.__mobxGlobal?Wn=t.__mobxGlobal:t.__mobxGlobal=e}function Yt(){return Wn}function Xt(){Wn.resetId++;var t=new jn;for(var e in t)-1===Un.indexOf(e)&&(Wn[e]=t[e]);Wn.allowStateChanges=!Wn.strictMode}function Zt(t,e){if("object"==typeof t&&null!==t){if(_(t))return wt(void 0===e,w("m036")),t.$mobx.atom;if(Dn(t)){var n=t;if(void 0===e)return Zt(n._keys);var i=n._data[e]||n._hasMap[e];return wt(!!i,"the entry '"+e+"' does not exist in the observable map '"+Qt(t)+"'"),i}if(I(t),e&&!t.$mobx&&t[e],nt(t)){if(!e)return _t("please specify a property");var i=t.$mobx.values[e];return wt(!!i,"no observable property '"+e+"' found on the observable object '"+Qt(t)+"'"),i}if(en(t)||_n(t)||$n(t))return t}else if("function"==typeof t&&$n(t.$mobx))return t.$mobx;return _t("Cannot obtain atom from "+t)}function Kt(t,e){return wt(t,"Expecting some object"),void 0!==e?Kt(Zt(t,e)):en(t)||_n(t)||$n(t)?t:Dn(t)?t:(I(t),t.$mobx?t.$mobx:void wt(!1,"Cannot obtain administration from "+t))}function Qt(t,e){var n;return n=void 0!==e?Zt(t,e):nt(t)||Dn(t)?Kt(t):Zt(t),n.name}function Jt(t,e){return $t(Zt(t,e))}function $t(t){var e={name:t.name};return t.observing&&t.observing.length>0&&(e.dependencies=Et(t.observing).map($t)),e}function te(t,e){return ee(Zt(t,e))}function ee(t){var e={name:t.name};return ne(t)&&(e.observers=ie(t).map(ee)),e}function ne(t){return t.observers&&t.observers.length>0}function ie(t){return t.observers}function re(t,e){var n=t.observers.length;n&&(t.observersIndexes[e.__mapid]=n),t.observers[n]=e,t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function ae(t,e){if(1===t.observers.length)t.observers.length=0,oe(t);else{var n=t.observers,i=t.observersIndexes,r=n.pop();if(r!==e){var a=i[e.__mapid]||0;a?i[r.__mapid]=a:delete i[r.__mapid],n[a]=r}delete i[e.__mapid]}}function oe(t){t.isPendingUnobservation||(t.isPendingUnobservation=!0,Wn.pendingUnobservations.push(t))}function se(){Wn.inBatch++}function le(){if(0==--Wn.inBatch){Re();for(var t=Wn.pendingUnobservations,e=0;e=1e3)return void e.push("(and many more)");e.push(""+new Array(n).join("\t")+t.name),t.dependencies&&t.dependencies.forEach(function(t){return pe(t,e,n+1)})}function me(t){return t instanceof Zn}function ge(t){switch(t.dependenciesState){case Yn.UP_TO_DATE:return!1;case Yn.NOT_TRACKING:case Yn.STALE:return!0;case Yn.POSSIBLY_STALE:for(var e=Me(),n=t.observing,i=n.length,r=0;r0;Wn.computationDepth>0&&e&&_t(w("m031")+t.name),!Wn.allowStateChanges&&e&&_t(w(Wn.strictMode?"m030a":"m030b")+t.name)}function be(t,e,n){Ee(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Wn.runId;var i=Wn.trackingDerivation;Wn.trackingDerivation=t;var r;try{r=e.call(n)}catch(t){r=new Zn(t)}return Wn.trackingDerivation=i,xe(t),r}function xe(t){for(var e=t.observing,n=t.observing=t.newObserving,i=Yn.UP_TO_DATE,r=0,a=t.unboundDepsCount,o=0;oi&&(i=s.dependenciesState)}for(n.length=r,t.newObserving=null,a=e.length;a--;){var s=e[a];0===s.diffValue&&ae(s,t),s.diffValue=0}for(;r--;){var s=n[r];1===s.diffValue&&(s.diffValue=0,re(s,t))}i!==Yn.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function _e(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)ae(e[n],t);t.dependenciesState=Yn.NOT_TRACKING}function we(t){var e=Me(),n=t();return Se(e),n}function Me(){var t=Wn.trackingDerivation;return Wn.trackingDerivation=null,t}function Se(t){Wn.trackingDerivation=t}function Ee(t){if(t.dependenciesState!==Yn.UP_TO_DATE){t.dependenciesState=Yn.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=Yn.UP_TO_DATE}}function ke(t){return console.log(t),t}function Te(t,e){return Mt("`whyRun` is deprecated in favor of `trace`"),t=Pe(arguments),t?_n(t)||$n(t)?ke(t.whyRun()):_t(w("m025")):ke(w("m024"))}function Ce(){for(var t=[],e=0;e=0&&Wn.globalReactionErrorHandlers.splice(e,1)}}function Re(){Wn.inBatch>0||Wn.isRunningReactions||Jn(Le)}function Le(){Wn.isRunningReactions=!0;for(var t=Wn.pendingReactions,e=0;t.length>0;){++e===Qn&&(console.error("Reaction doesn't converge to a stable state after "+Qn+" iterations. Probably there is a cycle in the reactive function: "+t[0]),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;ie){for(var n=new Array(t-e),i=0;i0&&t+e+1>on&&x(t+e+1)},t.prototype.spliceWithArray=function(t,e,n){var i=this;ye(this.atom);var a=this.values.length;if(void 0===t?t=0:t>a?t=a:t<0&&(t=Math.max(0,a+t)),e=1===arguments.length?a-t:void 0===e||null===e?0:Math.max(0,Math.min(e,a-t)),void 0===n&&(n=[]),r(this)){var s=o(this,{object:this.array,type:"splice",index:t,removedCount:e,added:n});if(!s)return Nn;e=s.removedCount,n=s.added}n=n.map(function(t){return i.enhancer(t,void 0)});var l=n.length-e;this.updateArrayLength(a,l);var u=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(t,e,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[t,e].concat(n));var i=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),i;var r},t.prototype.notifyArrayChildUpdate=function(t,e,n){var i=!this.owned&&c(),r=s(this),a=r||i?{object:this.array,type:"update",index:t,newValue:e,oldValue:n}:null;i&&d(a),this.atom.reportChanged(),r&&u(this,a),i&&f()},t.prototype.notifyArraySplice=function(t,e,n){var i=!this.owned&&c(),r=s(this),a=r||i?{object:this.array,type:"splice",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;i&&d(a),this.atom.reportChanged(),r&&u(this,a),i&&f()},t}(),un=function(t){function e(e,n,i,r){void 0===i&&(i="ObservableArray@"+xt()),void 0===r&&(r=!1);var a=t.call(this)||this,o=new ln(i,n,a,r);return Rt(a,"$mobx",o),e&&e.length&&a.spliceWithArray(0,0,e),an&&Object.defineProperty(o.array,"0",cn),a}return i(e,t),e.prototype.intercept=function(t){return this.$mobx.intercept(t)},e.prototype.observe=function(t,e){return void 0===e&&(e=!1),this.$mobx.observe(t,e)},e.prototype.clear=function(){return this.splice(0)},e.prototype.concat=function(){for(var t=[],e=0;e-1&&(this.splice(e,1),!0)},e.prototype.move=function(t,e){function n(t){if(t<0)throw new Error("[mobx.array] Index out of bounds: "+t+" is negative");var e=this.$mobx.values.length;if(t>=e)throw new Error("[mobx.array] Index out of bounds: "+t+" is not smaller than "+e)}if(n.call(this,t),n.call(this,e),t!==e){var i,r=this.$mobx.values;i=t";At(t,e,yn(a,n))},function(t){return this[t]},function(){wt(!1,w("m001"))},!1,!0),vn=R(function(t,e,n){F(t,e,n)},function(t){return this[t]},function(){wt(!1,w("m001"))},!1,!1),yn=function(t,e,n,i){return 1===arguments.length&&"function"==typeof t?M(t.name||"",t):2===arguments.length&&"function"==typeof e?M(t,e):1===arguments.length&&"string"==typeof t?N(t):N(e).apply(null,arguments)};yn.bound=function(t,e,n){if("function"==typeof t){var i=M("",t);return i.autoBind=!0,i}return vn.apply(null,arguments)};var bn={identity:U,structural:j,default:W},xn=function(){function t(t,e,n,i,r){this.derivation=t,this.scope=e,this.equals=n,this.dependenciesState=qn.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=qn.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+xt(),this.value=new Zn(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Xn.NONE,this.name=i||"ComputedValue@"+xt(),r&&(this.setter=M(i+"-setter",r))}return t.prototype.onBecomeStale=function(){de(this)},t.prototype.onBecomeUnobserved=function(){_e(this),this.value=void 0},t.prototype.get=function(){wt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===Wn.inBatch?(se(),ge(this)&&(this.isTracing!==Xn.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),le()):(ue(this),ge(this)&&this.trackAndCompute()&&he(this));var t=this.value;if(me(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(me(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){wt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else wt(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},t.prototype.trackAndCompute=function(){c()&&h({object:this.scope,type:"compute",fn:this.derivation});var t=this.value,e=this.dependenciesState===qn.NOT_TRACKING,n=this.value=this.computeValue(!0);return e||me(t)||me(n)||!this.equals(t,n)},t.prototype.computeValue=function(t){this.isComputing=!0,Wn.computationDepth++;var e;if(t)e=be(this,this.derivation,this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new Zn(t)}return Wn.computationDepth--,this.isComputing=!1,e},t.prototype.observe=function(t,e){var n=this,i=!0,r=void 0;return G(function(){var a=n.get();if(!i||e){var o=Me();t({type:"update",object:n,newValue:a,oldValue:r}),Se(o)}i=!1,r=a})},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return Vt(this.get())},t.prototype.whyRun=function(){var t=Boolean(Wn.trackingDerivation),e=Et(this.isComputing?this.newObserving:this.observing).map(function(t){return t.name}),n=Et(ie(this).map(function(t){return t.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(t?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===qn.NOT_TRACKING?w("m032"):" * This computation will re-run if any of the following observables changes:\n "+kt(e)+"\n "+(this.isComputing&&t?" (... or any observable accessed during the remainder of the current run)":"")+"\n "+w("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+kt(n)+"\n")},t}();xn.prototype[Gt()]=xn.prototype.valueOf;var _n=zt("ComputedValue",xn),wn=function(){function t(t,e){this.target=t,this.name=e,this.values={},this.changeListeners=null,this.interceptors=null}return t.prototype.observe=function(t,e){return wt(!0!==e,"`observe` doesn't support the fire immediately property for observable objects."),l(this,t)},t.prototype.intercept=function(t){return a(this,t)},t}(),Mn={},Sn={},En=zt("ObservableObjectAdministration",wn),kn=rt(dt),Tn=rt(ft),Cn=rt(pt),Pn=rt(mt),On=rt(gt),An={box:function(t,e){return arguments.length>2&&ut("box"),new fn(t,dt,e)},shallowBox:function(t,e){return arguments.length>2&&ut("shallowBox"),new fn(t,pt,e)},array:function(t,e){return arguments.length>2&&ut("array"),new un(t,dt,e)},shallowArray:function(t,e){return arguments.length>2&&ut("shallowArray"),new un(t,pt,e)},map:function(t,e){return arguments.length>2&&ut("map"),new In(t,dt,e)},shallowMap:function(t,e){return arguments.length>2&&ut("shallowMap"),new In(t,pt,e)},object:function(t,e){arguments.length>2&&ut("object");var n={};return q(n,e),at(n,t),n},shallowObject:function(t,e){arguments.length>2&&ut("shallowObject");var n={};return q(n,e),ot(n,t),n},ref:function(){return arguments.length<2?ht(pt,arguments[0]):Cn.apply(null,arguments)},shallow:function(){return arguments.length<2?ht(ft,arguments[0]):Tn.apply(null,arguments)},deep:function(){return arguments.length<2?ht(dt,arguments[0]):kn.apply(null,arguments)},struct:function(){return arguments.length<2?ht(mt,arguments[0]):Pn.apply(null,arguments)}},Rn=lt;Object.keys(An).forEach(function(t){return Rn[t]=An[t]}),Rn.deep.struct=Rn.struct,Rn.ref.struct=function(){return arguments.length<2?ht(gt,arguments[0]):On.apply(null,arguments)};var Ln={},In=function(){function t(t,e,n){void 0===e&&(e=dt),void 0===n&&(n="ObservableMap@"+xt()),this.enhancer=e,this.name=n,this.$mobx=Ln,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new un(void 0,pt,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(t)}return t.prototype._has=function(t){return void 0!==this._data[t]},t.prototype.has=function(t){return!!this.isValidKey(t)&&(t=""+t,this._hasMap[t]?this._hasMap[t].get():this._updateHasMapEntry(t,!1).get())},t.prototype.set=function(t,e){this.assertValidKey(t),t=""+t;var n=this._has(t);if(r(this)){var i=o(this,{type:n?"update":"add",object:this,newValue:e,name:t});if(!i)return this;e=i.newValue}return n?this._updateValue(t,e):this._addValue(t,e),this},t.prototype.delete=function(t){var e=this;if(this.assertValidKey(t),t=""+t,r(this)){var n=o(this,{type:"delete",object:this,name:t});if(!n)return!1}if(this._has(t)){var i=c(),a=s(this),n=a||i?{type:"delete",object:this,oldValue:this._data[t].value,name:t}:null;return i&&d(n),vt(function(){e._keys.remove(t),e._updateHasMapEntry(t,!1),e._data[t].setNewValue(void 0),e._data[t]=void 0}),a&&u(this,n),i&&f(),!0}return!1},t.prototype._updateHasMapEntry=function(t,e){var n=this._hasMap[t];return n?n.setNewValue(e):n=this._hasMap[t]=new fn(e,pt,this.name+"."+t+"?",!1),n},t.prototype._updateValue=function(t,e){var n=this._data[t];if((e=n.prepareNewValue(e))!==dn){var i=c(),r=s(this),a=r||i?{type:"update",object:this,oldValue:n.value,name:t,newValue:e}:null;i&&d(a),n.setNewValue(e),r&&u(this,a),i&&f()}},t.prototype._addValue=function(t,e){var n=this;vt(function(){var i=n._data[t]=new fn(e,n.enhancer,n.name+"."+t,!1);e=i.value,n._updateHasMapEntry(t,!0),n._keys.push(t)});var i=c(),r=s(this),a=r||i?{type:"add",object:this,name:t,newValue:e}:null;i&&d(a),r&&u(this,a),i&&f()},t.prototype.get=function(t){return t=""+t,this.has(t)?this.dehanceValue(this._data[t].get()):this.dehanceValue(void 0)},t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.keys=function(){return g(this._keys.slice())},t.prototype.values=function(){return g(this._keys.map(this.get,this))},t.prototype.entries=function(){var t=this;return g(this._keys.map(function(e){return[e,t.get(e)]}))},t.prototype.forEach=function(t,e){var n=this;this.keys().forEach(function(i){return t.call(e,n.get(i),i,n)})},t.prototype.merge=function(t){var e=this;return Dn(t)&&(t=t.toJS()),vt(function(){Ct(t)?Object.keys(t).forEach(function(n){return e.set(n,t[n])}):Array.isArray(t)?t.forEach(function(t){var n=t[0],i=t[1];return e.set(n,i)}):jt(t)?t.forEach(function(t,n){return e.set(n,t)}):null!==t&&void 0!==t&&_t("Cannot initialize map from "+t)}),this},t.prototype.clear=function(){var t=this;vt(function(){we(function(){t.keys().forEach(t.delete,t)})})},t.prototype.replace=function(t){var e=this;return vt(function(){var n=Wt(t);e.keys().filter(function(t){return-1===n.indexOf(t)}).forEach(function(t){return e.delete(t)}),e.merge(t)}),this},Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.toJS=function(){var t=this,e={};return this.keys().forEach(function(n){return e[n]=t.get(n)}),e},t.prototype.toJSON=function(){return this.toJS()},t.prototype.isValidKey=function(t){return null!==t&&void 0!==t&&("string"==typeof t||"number"==typeof t||"boolean"==typeof t)},t.prototype.assertValidKey=function(t){if(!this.isValidKey(t))throw new Error("[mobx.map] Invalid key: '"+t+"', only strings, numbers and booleans are accepted as key in observable maps.")},t.prototype.toString=function(){var t=this;return this.name+"[{ "+this.keys().map(function(e){return e+": "+t.get(e)}).join(", ")+" }]"},t.prototype.observe=function(t,e){return wt(!0!==e,w("m033")),l(this,t)},t.prototype.intercept=function(t){return a(this,t)},t}();v(In.prototype,function(){return this.entries()});var Dn=zt("ObservableMap",In),Nn=[];Object.freeze(Nn);var zn=[],Bn=function(){},Fn=Object.prototype.hasOwnProperty,Un=["mobxGuid","resetId","spyListeners","strictMode","runId"],jn=function(){function t(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return t}(),Wn=new jn,Gn=!1,Vn=!1,Hn=!1,Yn=bt();Yn.__mobxInstanceCount?(Yn.__mobxInstanceCount++,setTimeout(function(){Gn||Vn||Hn||(Hn=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))})):Yn.__mobxInstanceCount=1;var qn;!function(t){t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE"}(qn||(qn={}));var Xn;!function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(Xn||(Xn={}));var Zn=function(){function t(t){this.cause=t}return t}(),Kn=function(){function t(t,e){void 0===t&&(t="Reaction@"+xt()),this.name=t,this.onInvalidate=e,this.observing=[],this.newObserving=[],this.dependenciesState=qn.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+xt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Xn.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Wn.pendingReactions.push(this),Re())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){this.isDisposed||(se(),this._isScheduled=!1,ge(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&c()&&h({object:this,type:"scheduled-reaction"})),le())},t.prototype.track=function(t){se();var e,n=c();n&&(e=Date.now(),d({object:this,type:"reaction",fn:t})),this._isRunning=!0;var i=be(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&_e(this),me(i)&&this.reportExceptionInDerivation(i.cause),n&&f({time:Date.now()-e}),le()},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)return void this.errorHandler(t,this);var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,i=w("m037");console.error(n||i,t),c()&&h({type:"error",message:n,error:t,object:this}),Wn.globalReactionErrorHandlers.forEach(function(n){return n(t,e)})},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(se(),_e(this),le()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t.$mobx=this,t.onError=Oe,t},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.whyRun=function(){var t=Et(this._isRunning?this.newObserving:this.observing).map(function(t){return t.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+kt(t)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+w("m038")+"\n"},t.prototype.trace=function(t){void 0===t&&(t=!1),Ce(this,t)},t}(),Qn=100,Jn=function(t){return t()},$n=zt("Reaction",Kn),ti=Fe(bn.default),ei=Fe(bn.structural),ni=function(t,e,n){if("string"==typeof e)return ti.apply(null,arguments);wt("function"==typeof t,w("m011")),wt(arguments.length<3,w("m012"));var i="object"==typeof e?e:{};i.setter="function"==typeof e?e:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?bn.structural:bn.default;return new xn(t,i.context,r,i.name||t.name||"",i.setter)};ni.struct=ei,ni.equals=Fe;var ii={allowStateChanges:P,deepEqual:Nt,getAtom:Zt,getDebugName:Qt,getDependencyTree:Jt,getAdministration:Kt,getGlobalState:qt,getObserverTree:te,interceptReads:Qe,isComputingDerivation:ve,isSpyEnabled:c,onReactionError:Ae,reserveArrayBuffer:x,resetGlobalState:Xt,isolateGlobalState:Ht,shareGlobalState:Yt,spyReport:h,spyReportEnd:f,spyReportStart:d,setReactionScheduler:Ie},ri={Reaction:Kn,untracked:we,Atom:tn,BaseAtom:$e,useStrict:T,isStrictModeEnabled:C,spy:p,comparer:bn,asReference:De,asFlat:ze,asStructure:Ne,asMap:Be,isModifierDescriptor:ct,isObservableObject:nt,isBoxedObservable:pn,isObservableArray:_,ObservableMap:In,isObservableMap:Dn,map:yt,transaction:vt,observable:Rn,computed:ni,isObservable:it,isComputed:Ue,extendObservable:at,extendShallowObservable:ot,observe:je,intercept:Ve,autorun:G,autorunAsync:H,when:V,reaction:Y,action:yn,isAction:B,runInAction:z,expr:qe,toJS:Xe,createTransformer:Ze,whyRun:Te,isArrayLike:Ft,extras:ii},ai=!1;for(var oi in ri)!function(t){var e=ri[t];Object.defineProperty(ri,t,{get:function(){return ai||(ai=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),e}})}(oi);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:ii}),e.default=ri}.call(e,n(111))},function(t,e,n){t.exports=n(459)()},function(t,e,n){t.exports={default:n(305),__esModule:!0}},function(t,e,n){var i=n(21);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(36)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={camera:{viewAngle:.65,Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3},laneWidth:4.5,laneWidthToViewDistanceRatio:5},ground:{defaults:{mpp:.125,xres:8192,yres:8192,xorigin:4096,yorigin:4096,type:"default",tileRange:4},sunnyvale_big_loop:{mpp:.125,xres:24576,yres:16384,xorigin:587392,yorigin:4140800,type:"default",tileRange:4}},planning:{minInterval:.1,defaults:{width:1.4}},options:{defaults:{enableSimControl:!1,showModuleController:!1,showMenu:!1,showPOI:!1,showPNCMonitor:!1,showRouteEditingBar:!1,showDataRecorder:!1,showTasks:!0,showVideo:!1,showPlanningCar:!1,showPlanningReference:!1,showPlaningDpOptimizer:!1,showPlanningQpOptimizer:!1,showPlanning:!0,showDecisionMain:!0,showDecisionObstacle:!0,showRouting:!0,showPredictionMajor:!0,showPredictionMinor:!0,showObstaclesVehicle:!0,showObstaclesPedestrian:!0,showObstaclesBicycle:!0,showObstaclesUnknownMovable:!0,showObstaclesUnknownUnmovable:!0,showObstaclesUnknown:!0,showObstaclesVirtual:!1,showObstaclesVelocity:!0,showObstaclesHeading:!0,showObstaclesId:!0,showPointCloud:!1,showPositionGps:!1,showPositionLocalization:!0,showMapCrosswalk:!0,showMapClearArea:!0,showMapJunction:!1,showMapLane:!0,showMapRoad:!1,showMapSignal:!0,showMapStopSign:!0,cameraAngle:"Default"}},navigation:{map:"GoogleMap"},debug:{autoMonitorMessage:!1,performanceMonitor:!1},server:{port:8888}}},function(t,e,n){var i=n(48);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";function i(t,e,n){return n?[t,e]:t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(e){var n=e*w;t.position.z+=n}}function a(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=new g.MeshBasicMaterial({map:E.load(t),transparent:!0,depthWrite:!1}),s=new g.Mesh(new g.PlaneGeometry(e,n),o);return s.material.side=g.DoubleSide,s.position.set(i,r,a),s.overdraw=!0,s}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=new g.Path,u=l.createGeometry(t);u.computeLineDistances();var c=new g.LineDashedMaterial({color:e,dashSize:i,linewidth:n,gapSize:a}),h=new g.Line(u,c);return r(h,o),h.matrixAutoUpdate=s,s||h.updateMatrix(),h}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=new g.CircleGeometry(t,n);return new g.Mesh(i,e)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16777215,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=M(t.map(function(t){return[t.x,t.y]})),s=new g.ShaderMaterial(S({side:g.DoubleSide,diffuse:n,thickness:e,opacity:i,transparent:!0})),l=new g.Mesh(o,s);return r(l,a),l}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,l=new g.Path,u=l.createGeometry(t),c=new g.LineBasicMaterial({color:e,linewidth:n,transparent:o,opacity:s}),h=new g.Line(u,c);return r(h,i),h.matrixAutoUpdate=a,!1===a&&h.updateMatrix(),h}function c(t,e,n){var i=new g.CubeGeometry(t.x,t.y,t.z),r=new g.MeshBasicMaterial({color:e}),a=new g.Mesh(i,r),o=new g.BoxHelper(a);return o.material.linewidth=n,o}function h(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.01,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.02,a=new g.CubeGeometry(t.x,t.y,t.z);a=new g.EdgesGeometry(a),a=(new g.Geometry).fromBufferGeometry(a),a.computeLineDistances();var o=new g.LineDashedMaterial({color:e,linewidth:n,dashSize:i,gapSize:r});return new g.LineSegments(a,o)}function d(t,e,n,i,r){var a=new g.Vector3(0,t,0);return u([new g.Vector3(0,0,0),a,new g.Vector3(i/2,t-n,0),a,new g.Vector3(-i/2,t-n,0)],r,e,1)}function f(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new g.Shape;if(e){n.moveTo(t[0].x,t[0].y);for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:new g.MeshBasicMaterial({color:16711680}),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=f(t,n),s=new g.Mesh(o,e);return r(s,i),s.matrixAutoUpdate=a,!1===a&&s.updateMatrix(),s}Object.defineProperty(e,"__esModule",{value:!0}),e.addOffsetZ=r,e.drawImage=a,e.drawDashedLineFromPoints=o,e.drawCircle=s,e.drawThickBandFromPoints=l,e.drawSegmentsFromPoints=u,e.drawBox=c,e.drawDashedBox=h,e.drawArrow=d,e.getShapeGeometryFromPoints=f,e.drawShapeFromPoints=p;var m=n(12),g=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(m),v=n(480),y=i(v),b=n(481),x=i(b),_=n(39),w=.04,M=(0,y.default)(g),S=(0,x.default)(g),E=new g.TextureLoader},function(t,e,n){t.exports={default:n(307),__esModule:!0}},function(t,e,n){"use strict";t.exports={},t.exports.Arc=n(274),t.exports.Line=n(275),t.exports.Point=n(276),t.exports.Rectangle=n(277)},function(t,e,n){var i=n(22),r=n(52);t.exports=n(27)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(535),h=(i(c),n(478)),d=i(h),f=n(28),p=i(f),m=n(208),g=i(m),v=n(207),y=i(v),b=n(211),x=i(b),_=n(218),w=i(_),M=n(212),S=i(M),E=n(219),k=i(E),T=n(116),C=i(T),P=n(209),O=i(P),A=n(214),R=i(A),L=n(215),I=i(L),D=n(216),N=i(D),z=n(210),B=i(z),F=n(213),U=i(F),j=(n(39),function(){function t(){(0,a.default)(this,t);var e=!this.isMobileDevice();this.coordinates=new g.default,this.renderer=new u.WebGLRenderer({antialias:e}),this.scene=new u.Scene,this.scene.background=new u.Color(3095),this.dimension={width:0,height:0},this.ground="tile"===p.default.ground.type?new w.default:new x.default,this.map=new S.default,this.adc=new y.default("adc",this.scene),this.planningAdc=new y.default("plannigAdc",this.scene),this.planningTrajectory=new k.default,this.perceptionObstacles=new C.default,this.decision=new O.default,this.prediction=new R.default,this.routing=new I.default,this.routingEditor=new N.default,this.gnss=new B.default,this.pointCloud=new U.default,this.stats=null,p.default.debug.performanceMonitor&&(this.stats=new d.default,this.stats.showPanel(1),this.stats.domElement.style.position="absolute",this.stats.domElement.style.top=null,this.stats.domElement.style.bottom="0px",document.body.appendChild(this.stats.domElement)),this.geolocation={x:0,y:0}}return(0,s.default)(t,[{key:"initialize",value:function(t,e,n,i){this.options=i,this.canvasId=t,this.viewAngle=p.default.camera.viewAngle,this.viewDistance=p.default.camera.laneWidth*p.default.camera.laneWidthToViewDistanceRatio,this.camera=new u.PerspectiveCamera(p.default.camera[this.options.cameraAngle].fov,window.innerWidth/window.innerHeight,p.default.camera[this.options.cameraAngle].near,p.default.camera[this.options.cameraAngle].far),this.camera.name="camera",this.scene.add(this.camera),this.updateDimension(e,n),this.renderer.setPixelRatio(window.devicePixelRatio),document.getElementById(t).appendChild(this.renderer.domElement);var r=new u.AmbientLight(4473924),a=new u.DirectionalLight(16772829);a.position.set(0,0,1).normalize(),this.controls=new u.OrbitControls(this.camera,this.renderer.domElement),this.controls.enable=!1,this.onMouseDownHandler=this.editRoute.bind(this),this.scene.add(r),this.scene.add(a),this.animate()}},{key:"maybeInitializeOffest",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.coordinates.isInitialized()&&!n||this.coordinates.initialize(t,e)}},{key:"updateDimension",value:function(t,e){this.camera.aspect=t/e,this.camera.updateProjectionMatrix(),this.renderer.setSize(t,e),this.dimension.width=t,this.dimension.height=e}},{key:"enableOrbitControls",value:function(){var t=this.adc.mesh.position;this.controls.enabled=!0,this.controls.enableRotate=!1,this.controls.reset(),this.controls.minDistance=20,this.controls.maxDistance=1e3,this.controls.target.set(t.x,t.y,0),this.camera.position.set(t.x,t.y,50),"FLU"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt(t.x,t.y,0)}},{key:"adjustCamera",value:function(t,e){if(!this.routingEditor.isInEditingMode()){switch(this.camera.fov=p.default.camera[e].fov,this.camera.near=p.default.camera[e].near,this.camera.far=p.default.camera[e].far,e){case"Default":var n=this.viewDistance*Math.cos(t.rotation.y)*Math.cos(this.viewAngle),i=this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=this.viewDistance*Math.sin(this.viewAngle);this.camera.position.x=t.position.x-n,this.camera.position.y=t.position.y-i,this.camera.position.z=t.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:t.position.x+2*n,y:t.position.y+2*i,z:0}),this.controls.enabled=!1;break;case"Near":n=.5*this.viewDistance*Math.cos(t.rotation.y)*Math.cos(this.viewAngle),i=.5*this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=.5*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=t.position.x-n,this.camera.position.y=t.position.y-i,this.camera.position.z=t.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:t.position.x+2*n,y:t.position.y+2*i,z:0}),this.controls.enabled=!1;break;case"Overhead":i=.5*this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=2*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=t.position.x,this.camera.position.y=t.position.y+i,this.camera.position.z=2*(t.position.z+r),"FLU"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt({x:t.position.x,y:t.position.y+i,z:0}),this.controls.enabled=!1;break;case"Map":this.controls.enabled||this.enableOrbitControls()}this.camera.updateProjectionMatrix()}}},{key:"enableRouteEditing",value:function(){this.enableOrbitControls(),this.routingEditor.enableEditingMode(this.camera,this.adc),document.getElementById(this.canvasId).addEventListener("mousedown",this.onMouseDownHandler,!1)}},{key:"disableRouteEditing",value:function(){this.routingEditor.disableEditingMode(this.scene),document.getElementById(this.canvasId).removeEventListener("mousedown",this.onMouseDownHandler,!1)}},{key:"addDefaultEndPoint",value:function(t){for(var e=0;e1&&void 0!==arguments[1]&&arguments[1]&&this.map.removeAllElements(this.scene),this.map.appendMapData(t,this.coordinates,this.scene)}},{key:"updatePointCloud",value:function(t){this.coordinates.isInitialized()&&this.adc.mesh&&this.pointCloud.update(t,this.adc.mesh)}},{key:"updateMapIndex",value:function(t,e,n){this.routingEditor.isInEditingMode()&&this.routingEditor.EDITING_MAP_RADIUS!==n||this.map.updateIndex(t,e,this.scene)}},{key:"isMobileDevice",value:function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)}},{key:"getGeolocation",value:function(t){if(this.coordinates.isInitialized()){var e=t.currentTarget.getBoundingClientRect(),n=new u.Vector3((t.clientX-e.left)/this.dimension.width*2-1,-(t.clientY-e.top)/this.dimension.height*2+1,0);n.unproject(this.camera);var i=n.sub(this.camera.position).normalize(),r=-this.camera.position.z/i.z,a=this.camera.position.clone().add(i.multiplyScalar(r));return this.coordinates.applyOffset(a,!0)}}}]),t}()),W=new j;e.default=W},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(83),r=n(80);t.exports=function(t){return i(r(t))}},function(t,e,n){(function(t,i){var r;(function(){function a(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function o(t,e,n,i){for(var r=-1,a=null==t?0:t.length;++r-1}function d(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function z(t,e){for(var n=t.length;n--&&w(e,t[n],0)>-1;);return n}function B(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}function F(t){return"\\"+kn[t]}function U(t,e){return null==t?it:t[e]}function j(t){return vn.test(t)}function W(t){return yn.test(t)}function G(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function H(t,e){return function(n){return t(e(n))}}function Y(t,e){for(var n=-1,i=t.length,r=0,a=[];++n>>1,Bt=[["ary",wt],["bind",mt],["bindKey",gt],["curry",yt],["curryRight",bt],["flip",St],["partial",xt],["partialRight",_t],["rearg",Mt]],Ft="[object Arguments]",Ut="[object Array]",jt="[object AsyncFunction]",Wt="[object Boolean]",Gt="[object Date]",Vt="[object DOMException]",Ht="[object Error]",Yt="[object Function]",qt="[object GeneratorFunction]",Xt="[object Map]",Zt="[object Number]",Kt="[object Null]",Qt="[object Object]",Jt="[object Proxy]",$t="[object RegExp]",te="[object Set]",ee="[object String]",ne="[object Symbol]",ie="[object Undefined]",re="[object WeakMap]",ae="[object WeakSet]",oe="[object ArrayBuffer]",se="[object DataView]",le="[object Float32Array]",ue="[object Float64Array]",ce="[object Int8Array]",he="[object Int16Array]",de="[object Int32Array]",fe="[object Uint8Array]",pe="[object Uint8ClampedArray]",me="[object Uint16Array]",ge="[object Uint32Array]",ve=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,_e=/[&<>"']/g,we=RegExp(xe.source),Me=RegExp(_e.source),Se=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,ke=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Oe.source),Re=/^\s+|\s+$/g,Le=/^\s+/,Ie=/\s+$/,De=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,je=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Je="["+Qe+"]",$e="["+Ke+"]",tn="[a-z\\xdf-\\xf6\\xf8-\\xff]",en="[^\\ud800-\\udfff"+Qe+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",nn="\\ud83c[\\udffb-\\udfff]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",an="[\\ud800-\\udbff][\\udc00-\\udfff]",on="[A-Z\\xc0-\\xd6\\xd8-\\xde]",sn="(?:"+tn+"|"+en+")",ln="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",un="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",rn,an].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*",cn="[\\ufe0e\\ufe0f]?"+ln+un,hn="(?:"+["[\\u2700-\\u27bf]",rn,an].join("|")+")"+cn,dn="(?:"+["[^\\ud800-\\udfff]"+$e+"?",$e,rn,an,"[\\ud800-\\udfff]"].join("|")+")",fn=RegExp("['’]","g"),pn=RegExp($e,"g"),mn=RegExp(nn+"(?="+nn+")|"+dn+cn,"g"),gn=RegExp([on+"?"+tn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Je,on,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Je,on+sn,"$"].join("|")+")",on+"?"+sn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",on+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",hn].join("|"),"g"),vn=RegExp("[\\u200d\\ud800-\\udfff"+Ke+"\\ufe0e\\ufe0f]"),yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xn=-1,_n={};_n[le]=_n[ue]=_n[ce]=_n[he]=_n[de]=_n[fe]=_n[pe]=_n[me]=_n[ge]=!0,_n[Ft]=_n[Ut]=_n[oe]=_n[Wt]=_n[se]=_n[Gt]=_n[Ht]=_n[Yt]=_n[Xt]=_n[Zt]=_n[Qt]=_n[$t]=_n[te]=_n[ee]=_n[re]=!1;var wn={};wn[Ft]=wn[Ut]=wn[oe]=wn[se]=wn[Wt]=wn[Gt]=wn[le]=wn[ue]=wn[ce]=wn[he]=wn[de]=wn[Xt]=wn[Zt]=wn[Qt]=wn[$t]=wn[te]=wn[ee]=wn[ne]=wn[fe]=wn[pe]=wn[me]=wn[ge]=!0,wn[Ht]=wn[Yt]=wn[re]=!1;var Mn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Sn={"&":"&","<":"<",">":">",'"':""","'":"'"},En={"&":"&","<":"<",">":">",""":'"',"'":"'"},kn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tn=parseFloat,Cn=parseInt,Pn="object"==typeof t&&t&&t.Object===Object&&t,On="object"==typeof self&&self&&self.Object===Object&&self,An=Pn||On||Function("return this")(),Rn="object"==typeof e&&e&&!e.nodeType&&e,Ln=Rn&&"object"==typeof i&&i&&!i.nodeType&&i,In=Ln&&Ln.exports===Rn,Dn=In&&Pn.process,Nn=function(){try{return Dn&&Dn.binding&&Dn.binding("util")}catch(t){}}(),zn=Nn&&Nn.isArrayBuffer,Bn=Nn&&Nn.isDate,Fn=Nn&&Nn.isMap,Un=Nn&&Nn.isRegExp,jn=Nn&&Nn.isSet,Wn=Nn&&Nn.isTypedArray,Gn=k("length"),Vn=T(Mn),Hn=T(Sn),Yn=T(En),qn=function t(e){function n(t){if(el(t)&&!dd(t)&&!(t instanceof y)){if(t instanceof r)return t;if(dc.call(t,"__wrapped__"))return Qa(t)}return new r(t)}function i(){}function r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function y(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dt,this.__views__=[]}function T(){var t=new y(this.__wrapped__);return t.__actions__=Lr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lr(this.__views__),t}function K(){if(this.__filtered__){var t=new y(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function tt(){var t=this.__wrapped__.value(),e=this.__dir__,n=dd(t),i=e<0,r=n?t.length:0,a=wa(0,r,this.__views__),o=a.start,s=a.end,l=s-o,u=i?s:o-1,c=this.__iteratees__,h=c.length,d=0,f=Wc(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return gr(t,this.__actions__);var p=[];t:for(;l--&&d-1}function on(t,e){var n=this.__data__,i=Xn(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function sn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ei(t,e,n,i,r,a){var o,l=e&ct,u=e&ht,c=e&dt;if(n&&(o=r?n(t,i,r,a):n(t)),o!==it)return o;if(!tl(t))return t;var h=dd(t);if(h){if(o=Ea(t),!l)return Lr(t,o)}else{var d=wh(t),f=d==Yt||d==qt;if(pd(t))return Mr(t,l);if(d==Qt||d==Ft||f&&!r){if(o=u||f?{}:ka(t),!l)return u?Nr(t,Qn(o,t)):Dr(t,Kn(o,t))}else{if(!wn[d])return r?t:{};o=Ta(t,d,l)}}a||(a=new yn);var p=a.get(t);if(p)return p;if(a.set(t,o),yd(t))return t.forEach(function(i){o.add(ei(i,e,n,i,t,a))}),o;if(gd(t))return t.forEach(function(i,r){o.set(r,ei(i,e,n,r,t,a))}),o;var m=c?u?pa:fa:u?zl:Nl,g=h?it:m(t);return s(g||t,function(i,r){g&&(r=i,i=t[r]),Gn(o,r,ei(i,e,n,r,t,a))}),o}function ni(t){var e=Nl(t);return function(n){return ii(n,t,e)}}function ii(t,e,n){var i=n.length;if(null==t)return!i;for(t=ic(t);i--;){var r=n[i],a=e[r],o=t[r];if(o===it&&!(r in t)||!a(o))return!1}return!0}function ri(t,e,n){if("function"!=typeof t)throw new oc(ot);return Eh(function(){t.apply(it,n)},e)}function ai(t,e,n,i){var r=-1,a=h,o=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=f(e,L(n))),i?(a=d,o=!1):e.length>=rt&&(a=D,o=!1,e=new mn(e));t:for(;++rr?0:r+n),i=i===it||i>r?r:yl(i),i<0&&(i+=r),i=n>i?0:bl(i);n0&&n(s)?e>1?ci(s,e-1,n,i,r):p(r,s):i||(r[r.length]=s)}return r}function hi(t,e){return t&&dh(t,e,Nl)}function di(t,e){return t&&fh(t,e,Nl)}function fi(t,e){return c(e,function(e){return Qs(t[e])})}function pi(t,e){e=_r(e,t);for(var n=0,i=e.length;null!=t&&ne}function yi(t,e){return null!=t&&dc.call(t,e)}function bi(t,e){return null!=t&&e in ic(t)}function xi(t,e,n){return t>=Wc(e,n)&&t=120&&c.length>=120)?new mn(o&&c):it}c=t[0];var p=-1,m=s[0];t:for(;++p-1;)s!==t&&kc.call(s,l,1),kc.call(t,l,1);return t}function Ki(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==a){var a=r;Oa(r)?kc.call(t,r,1):fr(t,r)}}return t}function Qi(t,e){return t+Dc(Hc()*(e-t+1))}function Ji(t,e,n,i){for(var r=-1,a=jc(Ic((e-t)/(n||1)),0),o=Ju(a);a--;)o[i?a:++r]=t,t+=n;return o}function $i(t,e){var n="";if(!t||e<1||e>Rt)return n;do{e%2&&(n+=t),(e=Dc(e/2))&&(t+=t)}while(e);return n}function tr(t,e){return kh(Wa(t,e,ku),t+"")}function er(t){return Rn(Zl(t))}function nr(t,e){var n=Zl(t);return qa(n,ti(e,0,n.length))}function ir(t,e,n,i){if(!tl(t))return t;e=_r(e,t);for(var r=-1,a=e.length,o=a-1,s=t;null!=s&&++rr?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var a=Ju(r);++i>>1,o=t[a];null!==o&&!dl(o)&&(n?o<=e:o=rt){var u=e?null:yh(t);if(u)return X(u);o=!1,r=D,l=new mn}else l=e?[]:s;t:for(;++i=i?t:ar(t,e,n)}function Mr(t,e){if(e)return t.slice();var n=t.length,i=wc?wc(n):new t.constructor(n);return t.copy(i),i}function Sr(t){var e=new t.constructor(t.byteLength);return new _c(e).set(new _c(t)),e}function Er(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function kr(t){var e=new t.constructor(t.source,je.exec(t));return e.lastIndex=t.lastIndex,e}function Tr(t){return sh?ic(sh.call(t)):{}}function Cr(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Pr(t,e){if(t!==e){var n=t!==it,i=null===t,r=t===t,a=dl(t),o=e!==it,s=null===e,l=e===e,u=dl(e);if(!s&&!u&&!a&&t>e||a&&o&&l&&!s&&!u||i&&o&&l||!n&&l||!r)return 1;if(!i&&!a&&!u&&t=s)return l;return l*("desc"==n[i]?-1:1)}}return t.index-e.index}function Ar(t,e,n,i){for(var r=-1,a=t.length,o=n.length,s=-1,l=e.length,u=jc(a-o,0),c=Ju(l+u),h=!i;++s1?n[r-1]:it,o=r>2?n[2]:it;for(a=t.length>3&&"function"==typeof a?(r--,a):it,o&&Aa(n[0],n[1],o)&&(a=r<3?it:a,r=1),e=ic(e);++i-1?r[a?e[o]:o]:it}}function qr(t){return da(function(e){var n=e.length,i=n,a=r.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if("function"!=typeof o)throw new oc(ot);if(a&&!s&&"wrapper"==ma(o))var s=new r([],!0)}for(i=s?i:n;++i1&&y.reverse(),h&&ls))return!1;var u=a.get(t);if(u&&a.get(e))return u==e;var c=-1,h=!0,d=n&pt?new mn:it;for(a.set(t,e),a.set(e,t);++c1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(De,"{\n/* [wrapped with "+e+"] */\n")}function Pa(t){return dd(t)||hd(t)||!!(Tc&&t&&t[Tc])}function Oa(t,e){var n=typeof t;return!!(e=null==e?Rt:e)&&("number"==n||"symbol"!=n&&Ye.test(t))&&t>-1&&t%1==0&&t0){if(++e>=Tt)return arguments[0]}else e=0;return t.apply(it,arguments)}}function qa(t,e){var n=-1,i=t.length,r=i-1;for(e=e===it?i:e;++n=this.__values__.length;return{done:t,value:t?it:this.__values__[this.__index__++]}}function Jo(){return this}function $o(t){for(var e,n=this;n instanceof i;){var r=Qa(n);r.__index__=0,r.__values__=it,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e}function ts(){var t=this.__wrapped__;if(t instanceof y){var e=t;return this.__actions__.length&&(e=new y(this)),e=e.reverse(),e.__actions__.push({func:Xo,args:[So],thisArg:it}),new r(e,this.__chain__)}return this.thru(So)}function es(){return gr(this.__wrapped__,this.__actions__)}function ns(t,e,n){var i=dd(t)?u:oi;return n&&Aa(t,e,n)&&(e=it),i(t,va(e,3))}function is(t,e){return(dd(t)?c:ui)(t,va(e,3))}function rs(t,e){return ci(cs(t,e),1)}function as(t,e){return ci(cs(t,e),At)}function os(t,e,n){return n=n===it?1:yl(n),ci(cs(t,e),n)}function ss(t,e){return(dd(t)?s:ch)(t,va(e,3))}function ls(t,e){return(dd(t)?l:hh)(t,va(e,3))}function us(t,e,n,i){t=Ws(t)?t:Zl(t),n=n&&!i?yl(n):0;var r=t.length;return n<0&&(n=jc(r+n,0)),hl(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&w(t,e,n)>-1}function cs(t,e){return(dd(t)?f:Fi)(t,va(e,3))}function hs(t,e,n,i){return null==t?[]:(dd(e)||(e=null==e?[]:[e]),n=i?it:n,dd(n)||(n=null==n?[]:[n]),Hi(t,e,n))}function ds(t,e,n){var i=dd(t)?m:C,r=arguments.length<3;return i(t,va(e,4),n,r,ch)}function fs(t,e,n){var i=dd(t)?g:C,r=arguments.length<3;return i(t,va(e,4),n,r,hh)}function ps(t,e){return(dd(t)?c:ui)(t,Cs(va(e,3)))}function ms(t){return(dd(t)?Rn:er)(t)}function gs(t,e,n){return e=(n?Aa(t,e,n):e===it)?1:yl(e),(dd(t)?Ln:nr)(t,e)}function vs(t){return(dd(t)?Dn:rr)(t)}function ys(t){if(null==t)return 0;if(Ws(t))return hl(t)?J(t):t.length;var e=wh(t);return e==Xt||e==te?t.size:Ni(t).length}function bs(t,e,n){var i=dd(t)?v:or;return n&&Aa(t,e,n)&&(e=it),i(t,va(e,3))}function xs(t,e){if("function"!=typeof e)throw new oc(ot);return t=yl(t),function(){if(--t<1)return e.apply(this,arguments)}}function _s(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,aa(t,wt,it,it,it,it,e)}function ws(t,e){var n;if("function"!=typeof e)throw new oc(ot);return t=yl(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Ms(t,e,n){e=n?it:e;var i=aa(t,yt,it,it,it,it,it,e);return i.placeholder=Ms.placeholder,i}function Ss(t,e,n){e=n?it:e;var i=aa(t,bt,it,it,it,it,it,e);return i.placeholder=Ss.placeholder,i}function Es(t,e,n){function i(e){var n=d,i=f;return d=f=it,y=e,m=t.apply(i,n)}function r(t){return y=t,g=Eh(s,e),b?i(t):m}function a(t){var n=t-v,i=t-y,r=e-n;return x?Wc(r,p-i):r}function o(t){var n=t-v,i=t-y;return v===it||n>=e||n<0||x&&i>=p}function s(){var t=td();if(o(t))return l(t);g=Eh(s,a(t))}function l(t){return g=it,_&&d?i(t):(d=f=it,m)}function u(){g!==it&&vh(g),y=0,d=v=f=g=it}function c(){return g===it?m:l(td())}function h(){var t=td(),n=o(t);if(d=arguments,f=this,v=t,n){if(g===it)return r(v);if(x)return g=Eh(s,e),i(v)}return g===it&&(g=Eh(s,e)),m}var d,f,p,m,g,v,y=0,b=!1,x=!1,_=!0;if("function"!=typeof t)throw new oc(ot);return e=xl(e)||0,tl(n)&&(b=!!n.leading,x="maxWait"in n,p=x?jc(xl(n.maxWait)||0,e):p,_="trailing"in n?!!n.trailing:_),h.cancel=u,h.flush=c,h}function ks(t){return aa(t,St)}function Ts(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oc(ot);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=t.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(Ts.Cache||sn),n}function Cs(t){if("function"!=typeof t)throw new oc(ot);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ps(t){return ws(2,t)}function Os(t,e){if("function"!=typeof t)throw new oc(ot);return e=e===it?e:yl(e),tr(t,e)}function As(t,e){if("function"!=typeof t)throw new oc(ot);return e=null==e?0:jc(yl(e),0),tr(function(n){var i=n[e],r=wr(n,0,e);return i&&p(r,i),a(t,this,r)})}function Rs(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new oc(ot);return tl(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Es(t,e,{leading:i,maxWait:e,trailing:r})}function Ls(t){return _s(t,1)}function Is(t,e){return od(xr(e),t)}function Ds(){if(!arguments.length)return[];var t=arguments[0];return dd(t)?t:[t]}function Ns(t){return ei(t,dt)}function zs(t,e){return e="function"==typeof e?e:it,ei(t,dt,e)}function Bs(t){return ei(t,ct|dt)}function Fs(t,e){return e="function"==typeof e?e:it,ei(t,ct|dt,e)}function Us(t,e){return null==e||ii(t,e,Nl(e))}function js(t,e){return t===e||t!==t&&e!==e}function Ws(t){return null!=t&&$s(t.length)&&!Qs(t)}function Gs(t){return el(t)&&Ws(t)}function Vs(t){return!0===t||!1===t||el(t)&&gi(t)==Wt}function Hs(t){return el(t)&&1===t.nodeType&&!ul(t)}function Ys(t){if(null==t)return!0;if(Ws(t)&&(dd(t)||"string"==typeof t||"function"==typeof t.splice||pd(t)||bd(t)||hd(t)))return!t.length;var e=wh(t);if(e==Xt||e==te)return!t.size;if(Na(t))return!Ni(t).length;for(var n in t)if(dc.call(t,n))return!1;return!0}function qs(t,e){return Ti(t,e)}function Xs(t,e,n){n="function"==typeof n?n:it;var i=n?n(t,e):it;return i===it?Ti(t,e,it,n):!!i}function Zs(t){if(!el(t))return!1;var e=gi(t);return e==Ht||e==Vt||"string"==typeof t.message&&"string"==typeof t.name&&!ul(t)}function Ks(t){return"number"==typeof t&&Bc(t)}function Qs(t){if(!tl(t))return!1;var e=gi(t);return e==Yt||e==qt||e==jt||e==Jt}function Js(t){return"number"==typeof t&&t==yl(t)}function $s(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Rt}function tl(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function el(t){return null!=t&&"object"==typeof t}function nl(t,e){return t===e||Oi(t,e,ba(e))}function il(t,e,n){return n="function"==typeof n?n:it,Oi(t,e,ba(e),n)}function rl(t){return ll(t)&&t!=+t}function al(t){if(Mh(t))throw new tc(at);return Ai(t)}function ol(t){return null===t}function sl(t){return null==t}function ll(t){return"number"==typeof t||el(t)&&gi(t)==Zt}function ul(t){if(!el(t)||gi(t)!=Qt)return!1;var e=Mc(t);if(null===e)return!0;var n=dc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&hc.call(n)==gc}function cl(t){return Js(t)&&t>=-Rt&&t<=Rt}function hl(t){return"string"==typeof t||!dd(t)&&el(t)&&gi(t)==ee}function dl(t){return"symbol"==typeof t||el(t)&&gi(t)==ne}function fl(t){return t===it}function pl(t){return el(t)&&wh(t)==re}function ml(t){return el(t)&&gi(t)==ae}function gl(t){if(!t)return[];if(Ws(t))return hl(t)?$(t):Lr(t);if(Cc&&t[Cc])return G(t[Cc]());var e=wh(t);return(e==Xt?V:e==te?X:Zl)(t)}function vl(t){if(!t)return 0===t?t:0;if((t=xl(t))===At||t===-At){return(t<0?-1:1)*Lt}return t===t?t:0}function yl(t){var e=vl(t),n=e%1;return e===e?n?e-n:e:0}function bl(t){return t?ti(yl(t),0,Dt):0}function xl(t){if("number"==typeof t)return t;if(dl(t))return It;if(tl(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tl(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Re,"");var n=Ge.test(t);return n||He.test(t)?Cn(t.slice(2),n?2:8):We.test(t)?It:+t}function _l(t){return Ir(t,zl(t))}function wl(t){return t?ti(yl(t),-Rt,Rt):0===t?t:0}function Ml(t){return null==t?"":hr(t)}function Sl(t,e){var n=uh(t);return null==e?n:Kn(n,e)}function El(t,e){return x(t,va(e,3),hi)}function kl(t,e){return x(t,va(e,3),di)}function Tl(t,e){return null==t?t:dh(t,va(e,3),zl)}function Cl(t,e){return null==t?t:fh(t,va(e,3),zl)}function Pl(t,e){return t&&hi(t,va(e,3))}function Ol(t,e){return t&&di(t,va(e,3))}function Al(t){return null==t?[]:fi(t,Nl(t))}function Rl(t){return null==t?[]:fi(t,zl(t))}function Ll(t,e,n){var i=null==t?it:pi(t,e);return i===it?n:i}function Il(t,e){return null!=t&&Sa(t,e,yi)}function Dl(t,e){return null!=t&&Sa(t,e,bi)}function Nl(t){return Ws(t)?On(t):Ni(t)}function zl(t){return Ws(t)?On(t,!0):zi(t)}function Bl(t,e){var n={};return e=va(e,3),hi(t,function(t,i,r){Jn(n,e(t,i,r),t)}),n}function Fl(t,e){var n={};return e=va(e,3),hi(t,function(t,i,r){Jn(n,i,e(t,i,r))}),n}function Ul(t,e){return jl(t,Cs(va(e)))}function jl(t,e){if(null==t)return{};var n=f(pa(t),function(t){return[t]});return e=va(e),qi(t,n,function(t,n){return e(t,n[0])})}function Wl(t,e,n){e=_r(e,t);var i=-1,r=e.length;for(r||(r=1,t=it);++ie){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Hc();return Wc(t+r*(e-t+Tn("1e-"+((r+"").length-1))),e)}return Qi(t,e)}function tu(t){return Hd(Ml(t).toLowerCase())}function eu(t){return(t=Ml(t))&&t.replace(qe,Vn).replace(pn,"")}function nu(t,e,n){t=Ml(t),e=hr(e);var i=t.length;n=n===it?i:ti(yl(n),0,i);var r=n;return(n-=e.length)>=0&&t.slice(n,r)==e}function iu(t){return t=Ml(t),t&&Me.test(t)?t.replace(_e,Hn):t}function ru(t){return t=Ml(t),t&&Ae.test(t)?t.replace(Oe,"\\$&"):t}function au(t,e,n){t=Ml(t),e=yl(e);var i=e?J(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Jr(Dc(r),n)+t+Jr(Ic(r),n)}function ou(t,e,n){t=Ml(t),e=yl(e);var i=e?J(t):0;return e&&i>>0)?(t=Ml(t),t&&("string"==typeof e||null!=e&&!vd(e))&&!(e=hr(e))&&j(t)?wr($(t),0,n):t.split(e,n)):[]}function du(t,e,n){return t=Ml(t),n=null==n?0:ti(yl(n),0,t.length),e=hr(e),t.slice(n,n+e.length)==e}function fu(t,e,i){var r=n.templateSettings;i&&Aa(t,e,i)&&(e=it),t=Ml(t),e=Sd({},e,r,oa);var a,o,s=Sd({},e.imports,r.imports,oa),l=Nl(s),u=I(s,l),c=0,h=e.interpolate||Xe,d="__p += '",f=rc((e.escape||Xe).source+"|"+h.source+"|"+(h===ke?Ue:Xe).source+"|"+(e.evaluate||Xe).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++xn+"]")+"\n";t.replace(f,function(e,n,i,r,s,l){return i||(i=r),d+=t.slice(c,l).replace(Ze,F),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),d+="';\n";var m=e.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(ve,""):d).replace(ye,"$1").replace(be,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Yd(function(){return ec(l,p+"return "+d).apply(it,u)});if(g.source=d,Zs(g))throw g;return g}function pu(t){return Ml(t).toLowerCase()}function mu(t){return Ml(t).toUpperCase()}function gu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Re,"");if(!t||!(e=hr(e)))return t;var i=$(t),r=$(e);return wr(i,N(i,r),z(i,r)+1).join("")}function vu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Ie,"");if(!t||!(e=hr(e)))return t;var i=$(t);return wr(i,0,z(i,$(e))+1).join("")}function yu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Le,"");if(!t||!(e=hr(e)))return t;var i=$(t);return wr(i,N(i,$(e))).join("")}function bu(t,e){var n=Et,i=kt;if(tl(e)){var r="separator"in e?e.separator:r;n="length"in e?yl(e.length):n,i="omission"in e?hr(e.omission):i}t=Ml(t);var a=t.length;if(j(t)){var o=$(t);a=o.length}if(n>=a)return t;var s=n-J(i);if(s<1)return i;var l=o?wr(o,0,s).join(""):t.slice(0,s);if(r===it)return l+i;if(o&&(s+=l.length-s),vd(r)){if(t.slice(s).search(r)){var u,c=l;for(r.global||(r=rc(r.source,Ml(je.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var h=u.index;l=l.slice(0,h===it?s:h)}}else if(t.indexOf(hr(r),s)!=s){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+i}function xu(t){return t=Ml(t),t&&we.test(t)?t.replace(xe,Yn):t}function _u(t,e,n){return t=Ml(t),e=n?it:e,e===it?W(t)?nt(t):b(t):t.match(e)||[]}function wu(t){var e=null==t?0:t.length,n=va();return t=e?f(t,function(t){if("function"!=typeof t[1])throw new oc(ot);return[n(t[0]),t[1]]}):[],tr(function(n){for(var i=-1;++iRt)return[];var n=Dt,i=Wc(t,Dt);e=va(e),t-=Dt;for(var r=A(i,e);++n1?t[e-1]:it;return n="function"==typeof n?(t.pop(),n):it,Go(t,n)}),Hh=da(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,a=function(e){return $n(e,t)};return!(e>1||this.__actions__.length)&&i instanceof y&&Oa(n)?(i=i.slice(n,+n+(e?1:0)),i.__actions__.push({func:Xo,args:[a],thisArg:it}),new r(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(a)}),Yh=zr(function(t,e,n){dc.call(t,n)?++t[n]:Jn(t,n,1)}),qh=Yr(oo),Xh=Yr(so),Zh=zr(function(t,e,n){dc.call(t,n)?t[n].push(e):Jn(t,n,[e])}),Kh=tr(function(t,e,n){var i=-1,r="function"==typeof e,o=Ws(t)?Ju(t.length):[];return ch(t,function(t){o[++i]=r?a(e,t,n):Mi(t,e,n)}),o}),Qh=zr(function(t,e,n){Jn(t,n,e)}),Jh=zr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),$h=tr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Aa(t,e[0],e[1])?e=[]:n>2&&Aa(e[0],e[1],e[2])&&(e=[e[0]]),Hi(t,ci(e,1),[])}),td=Rc||function(){return An.Date.now()},ed=tr(function(t,e,n){var i=mt;if(n.length){var r=Y(n,ga(ed));i|=xt}return aa(t,i,e,n,r)}),nd=tr(function(t,e,n){var i=mt|gt;if(n.length){var r=Y(n,ga(nd));i|=xt}return aa(e,i,t,n,r)}),id=tr(function(t,e){return ri(t,1,e)}),rd=tr(function(t,e,n){return ri(t,xl(e)||0,n)});Ts.Cache=sn;var ad=gh(function(t,e){e=1==e.length&&dd(e[0])?f(e[0],L(va())):f(ci(e,1),L(va()));var n=e.length;return tr(function(i){for(var r=-1,o=Wc(i.length,n);++r=e}),hd=Si(function(){return arguments}())?Si:function(t){return el(t)&&dc.call(t,"callee")&&!Ec.call(t,"callee")},dd=Ju.isArray,fd=zn?L(zn):Ei,pd=zc||zu,md=Bn?L(Bn):ki,gd=Fn?L(Fn):Pi,vd=Un?L(Un):Ri,yd=jn?L(jn):Li,bd=Wn?L(Wn):Ii,xd=ea(Bi),_d=ea(function(t,e){return t<=e}),wd=Br(function(t,e){if(Na(e)||Ws(e))return void Ir(e,Nl(e),t);for(var n in e)dc.call(e,n)&&Gn(t,n,e[n])}),Md=Br(function(t,e){Ir(e,zl(e),t)}),Sd=Br(function(t,e,n,i){Ir(e,zl(e),t,i)}),Ed=Br(function(t,e,n,i){Ir(e,Nl(e),t,i)}),kd=da($n),Td=tr(function(t,e){t=ic(t);var n=-1,i=e.length,r=i>2?e[2]:it;for(r&&Aa(e[0],e[1],r)&&(i=1);++n1),e}),Ir(t,pa(t),n),i&&(n=ei(n,ct|ht|dt,la));for(var r=e.length;r--;)fr(n,e[r]);return n}),Dd=da(function(t,e){return null==t?{}:Yi(t,e)}),Nd=ra(Nl),zd=ra(zl),Bd=Gr(function(t,e,n){return e=e.toLowerCase(),t+(n?tu(e):e)}),Fd=Gr(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Ud=Gr(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),jd=Wr("toLowerCase"),Wd=Gr(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Gd=Gr(function(t,e,n){return t+(n?" ":"")+Hd(e)}),Vd=Gr(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Hd=Wr("toUpperCase"),Yd=tr(function(t,e){try{return a(t,it,e)}catch(t){return Zs(t)?t:new tc(t)}}),qd=da(function(t,e){return s(e,function(e){e=Xa(e),Jn(t,e,ed(t[e],t))}),t}),Xd=qr(),Zd=qr(!0),Kd=tr(function(t,e){return function(n){return Mi(n,t,e)}}),Qd=tr(function(t,e){return function(n){return Mi(t,n,e)}}),Jd=Qr(f),$d=Qr(u),tf=Qr(v),ef=ta(),nf=ta(!0),rf=Kr(function(t,e){return t+e},0),af=ia("ceil"),of=Kr(function(t,e){return t/e},1),sf=ia("floor"),lf=Kr(function(t,e){return t*e},1),uf=ia("round"),cf=Kr(function(t,e){return t-e},0);return n.after=xs,n.ary=_s,n.assign=wd,n.assignIn=Md,n.assignInWith=Sd,n.assignWith=Ed,n.at=kd,n.before=ws,n.bind=ed,n.bindAll=qd,n.bindKey=nd,n.castArray=Ds,n.chain=Yo,n.chunk=Ja,n.compact=$a,n.concat=to,n.cond=wu,n.conforms=Mu,n.constant=Su,n.countBy=Yh,n.create=Sl,n.curry=Ms,n.curryRight=Ss,n.debounce=Es,n.defaults=Td,n.defaultsDeep=Cd,n.defer=id,n.delay=rd,n.difference=Ch,n.differenceBy=Ph,n.differenceWith=Oh,n.drop=eo,n.dropRight=no,n.dropRightWhile=io,n.dropWhile=ro,n.fill=ao,n.filter=is,n.flatMap=rs,n.flatMapDeep=as,n.flatMapDepth=os,n.flatten=lo,n.flattenDeep=uo,n.flattenDepth=co,n.flip=ks,n.flow=Xd,n.flowRight=Zd,n.fromPairs=ho,n.functions=Al,n.functionsIn=Rl,n.groupBy=Zh,n.initial=mo,n.intersection=Ah,n.intersectionBy=Rh,n.intersectionWith=Lh,n.invert=Pd,n.invertBy=Od,n.invokeMap=Kh,n.iteratee=Tu,n.keyBy=Qh,n.keys=Nl,n.keysIn=zl,n.map=cs,n.mapKeys=Bl,n.mapValues=Fl,n.matches=Cu,n.matchesProperty=Pu,n.memoize=Ts,n.merge=Rd,n.mergeWith=Ld,n.method=Kd,n.methodOf=Qd,n.mixin=Ou,n.negate=Cs,n.nthArg=Lu,n.omit=Id,n.omitBy=Ul,n.once=Ps,n.orderBy=hs,n.over=Jd,n.overArgs=ad,n.overEvery=$d,n.overSome=tf,n.partial=od,n.partialRight=sd,n.partition=Jh,n.pick=Dd,n.pickBy=jl,n.property=Iu,n.propertyOf=Du,n.pull=Ih,n.pullAll=xo,n.pullAllBy=_o,n.pullAllWith=wo,n.pullAt=Dh,n.range=ef,n.rangeRight=nf,n.rearg=ld,n.reject=ps,n.remove=Mo,n.rest=Os,n.reverse=So,n.sampleSize=gs,n.set=Gl,n.setWith=Vl,n.shuffle=vs,n.slice=Eo,n.sortBy=$h,n.sortedUniq=Ro,n.sortedUniqBy=Lo,n.split=hu,n.spread=As,n.tail=Io,n.take=Do,n.takeRight=No,n.takeRightWhile=zo,n.takeWhile=Bo,n.tap=qo,n.throttle=Rs,n.thru=Xo,n.toArray=gl,n.toPairs=Nd,n.toPairsIn=zd,n.toPath=Wu,n.toPlainObject=_l,n.transform=Hl,n.unary=Ls,n.union=Nh,n.unionBy=zh,n.unionWith=Bh,n.uniq=Fo,n.uniqBy=Uo,n.uniqWith=jo,n.unset=Yl,n.unzip=Wo,n.unzipWith=Go,n.update=ql,n.updateWith=Xl,n.values=Zl,n.valuesIn=Kl,n.without=Fh,n.words=_u,n.wrap=Is,n.xor=Uh,n.xorBy=jh,n.xorWith=Wh,n.zip=Gh,n.zipObject=Vo,n.zipObjectDeep=Ho,n.zipWith=Vh,n.entries=Nd,n.entriesIn=zd,n.extend=Md,n.extendWith=Sd,Ou(n,n),n.add=rf,n.attempt=Yd,n.camelCase=Bd,n.capitalize=tu,n.ceil=af,n.clamp=Ql,n.clone=Ns,n.cloneDeep=Bs,n.cloneDeepWith=Fs,n.cloneWith=zs,n.conformsTo=Us,n.deburr=eu,n.defaultTo=Eu,n.divide=of,n.endsWith=nu,n.eq=js,n.escape=iu,n.escapeRegExp=ru,n.every=ns,n.find=qh,n.findIndex=oo,n.findKey=El,n.findLast=Xh,n.findLastIndex=so,n.findLastKey=kl,n.floor=sf,n.forEach=ss,n.forEachRight=ls,n.forIn=Tl,n.forInRight=Cl,n.forOwn=Pl,n.forOwnRight=Ol,n.get=Ll,n.gt=ud,n.gte=cd,n.has=Il,n.hasIn=Dl,n.head=fo,n.identity=ku,n.includes=us,n.indexOf=po,n.inRange=Jl,n.invoke=Ad,n.isArguments=hd,n.isArray=dd,n.isArrayBuffer=fd,n.isArrayLike=Ws,n.isArrayLikeObject=Gs,n.isBoolean=Vs,n.isBuffer=pd,n.isDate=md,n.isElement=Hs,n.isEmpty=Ys,n.isEqual=qs,n.isEqualWith=Xs,n.isError=Zs,n.isFinite=Ks,n.isFunction=Qs,n.isInteger=Js,n.isLength=$s,n.isMap=gd,n.isMatch=nl,n.isMatchWith=il,n.isNaN=rl,n.isNative=al,n.isNil=sl,n.isNull=ol,n.isNumber=ll,n.isObject=tl,n.isObjectLike=el,n.isPlainObject=ul,n.isRegExp=vd,n.isSafeInteger=cl,n.isSet=yd,n.isString=hl,n.isSymbol=dl,n.isTypedArray=bd,n.isUndefined=fl,n.isWeakMap=pl,n.isWeakSet=ml,n.join=go,n.kebabCase=Fd,n.last=vo,n.lastIndexOf=yo,n.lowerCase=Ud,n.lowerFirst=jd,n.lt=xd,n.lte=_d,n.max=Vu,n.maxBy=Hu,n.mean=Yu,n.meanBy=qu,n.min=Xu,n.minBy=Zu,n.stubArray=Nu,n.stubFalse=zu,n.stubObject=Bu,n.stubString=Fu,n.stubTrue=Uu,n.multiply=lf,n.nth=bo,n.noConflict=Au,n.noop=Ru,n.now=td,n.pad=au,n.padEnd=ou,n.padStart=su,n.parseInt=lu,n.random=$l,n.reduce=ds,n.reduceRight=fs,n.repeat=uu,n.replace=cu,n.result=Wl,n.round=uf,n.runInContext=t,n.sample=ms,n.size=ys,n.snakeCase=Wd,n.some=bs,n.sortedIndex=ko,n.sortedIndexBy=To,n.sortedIndexOf=Co,n.sortedLastIndex=Po,n.sortedLastIndexBy=Oo,n.sortedLastIndexOf=Ao,n.startCase=Gd,n.startsWith=du,n.subtract=cf,n.sum=Ku,n.sumBy=Qu,n.template=fu,n.times=ju,n.toFinite=vl,n.toInteger=yl,n.toLength=bl,n.toLower=pu,n.toNumber=xl,n.toSafeInteger=wl,n.toString=Ml,n.toUpper=mu,n.trim=gu,n.trimEnd=vu,n.trimStart=yu,n.truncate=bu,n.unescape=xu,n.uniqueId=Gu,n.upperCase=Vd,n.upperFirst=Hd,n.each=ss,n.eachRight=ls,n.first=fo,Ou(n,function(){var t={};return hi(n,function(e,i){dc.call(n.prototype,i)||(t[i]=e)}),t}(),{chain:!1}),n.VERSION="4.17.5",s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),s(["drop","take"],function(t,e){y.prototype[t]=function(n){n=n===it?1:jc(yl(n),0);var i=this.__filtered__&&!e?new y(this):this.clone();return i.__filtered__?i.__takeCount__=Wc(n,i.__takeCount__):i.__views__.push({size:Wc(n,Dt),type:t+(i.__dir__<0?"Right":"")}),i},y.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),s(["filter","map","takeWhile"],function(t,e){var n=e+1,i=n==Pt||3==n;y.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:va(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),s(["head","last"],function(t,e){var n="take"+(e?"Right":"");y.prototype[t]=function(){return this[n](1).value()[0]}}),s(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");y.prototype[t]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(ku)},y.prototype.find=function(t){return this.filter(t).head()},y.prototype.findLast=function(t){return this.reverse().find(t)},y.prototype.invokeMap=tr(function(t,e){return"function"==typeof t?new y(this):this.map(function(n){return Mi(n,t,e)})}),y.prototype.reject=function(t){return this.filter(Cs(va(t)))},y.prototype.slice=function(t,e){t=yl(t);var n=this;return n.__filtered__&&(t>0||e<0)?new y(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=yl(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},y.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},y.prototype.toArray=function(){return this.take(Dt)},hi(y.prototype,function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),a=/^(?:head|last)$/.test(e),o=n[a?"take"+("last"==e?"Right":""):e],s=a||/^find/.test(e);o&&(n.prototype[e]=function(){var e=this.__wrapped__,l=a?[1]:arguments,u=e instanceof y,c=l[0],h=u||dd(e),d=function(t){var e=o.apply(n,p([t],l));return a&&f?e[0]:e};h&&i&&"function"==typeof c&&1!=c.length&&(u=h=!1);var f=this.__chain__,m=!!this.__actions__.length,g=s&&!f,v=u&&!m;if(!s&&h){e=v?e:new y(this);var b=t.apply(e,l);return b.__actions__.push({func:Xo,args:[d],thisArg:it}),new r(b,f)}return g&&v?t.apply(this,l):(b=this.thru(d),g?a?b.value()[0]:b.value():b)})}),s(["pop","push","shift","sort","splice","unshift"],function(t){var e=sc[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var n=this.value();return e.apply(dd(n)?n:[],t)}return this[i](function(n){return e.apply(dd(n)?n:[],t)})}}),hi(y.prototype,function(t,e){var i=n[e];if(i){var r=i.name+"";(th[r]||(th[r]=[])).push({name:e,func:i})}}),th[Xr(it,gt).name]=[{name:"wrapper",func:it}],y.prototype.clone=T,y.prototype.reverse=K,y.prototype.value=tt,n.prototype.at=Hh,n.prototype.chain=Zo,n.prototype.commit=Ko,n.prototype.next=Qo,n.prototype.plant=$o,n.prototype.reverse=ts,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=es,n.prototype.first=n.prototype.head,Cc&&(n.prototype[Cc]=Jo),n}();An._=qn,(r=function(){return qn}.call(e,n,e,i))!==it&&(i.exports=r)}).call(this)}).call(e,n(111),n(112)(t))},function(t,e,n){t.exports={default:n(298),__esModule:!0}},function(t,e){t.exports={}},function(t,e,n){var i=n(80);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=n(333)(!0);n(84)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";e.a=function(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}},function(t,e,n){"use strict";e.a=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}},function(t,e,n){"use strict";function i(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(t){console.error(t)}}i(),t.exports=n(461)},function(t,e,n){"use strict";var i=n(6);t.exports={generators:{linear:function(t,e){var n,r=[];if(t.stepSize&&t.stepSize>0)n=t.stepSize;else{var a=i.niceNum(e.max-e.min,!1);n=i.niceNum(a/(t.maxTicks-1),!0)}var o=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(o=t.min,s=t.max);var l=(s-o)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),r.push(void 0!==t.min?t.min:o);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var a=i.log10(Math.abs(r)),o="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?"0":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():""}}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(29),r=n(126),a=n(124),o=n(26),s=n(66),l=n(97),u={},c={},e=t.exports=function(t,e,n,h,d){var f,p,m,g,v=d?function(){return t}:l(t),y=i(n,h,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(f=s(t.length);f>b;b++)if((g=e?y(o(p=t[b])[0],p[1]):y(t[b]))===u||g===c)return g}else for(m=v.call(t);!(p=m.next()).done;)if((g=r(m,y,p.value,e))===u||g===c)return g};e.BREAK=u,e.RETURN=c},function(t,e,n){var i=n(131),r=n(82);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(22).f,r=n(37),a=n(17)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){n(338);for(var i=n(18),r=n(34),a=n(41),o=n(17)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;ln.length)for(;this.routingPaths.length>n.length;)this.mapAdapter.removePolyline(this.routingPaths[this.routingPaths.length-1]),this.routingPaths.pop();this.routingPaths.forEach(function(t,i){e.mapAdapter.updatePolyline(t,n[i])})}}},{key:"requestRoute",value:function(t,e,n,i){var r=this;if(t&&e&&n&&i){var a="http://navi-env.axty8vi3ic.us-west-2.elasticbeanstalk.com/dreamview/navigation?origin="+t+","+e+"&destination="+n+","+i+"&heading=0";fetch(encodeURI(a),{method:"GET",mode:"cors"}).then(function(t){return t.arrayBuffer()}).then(function(t){if(!t.byteLength)return void alert("No navigation info received.");r.WS.publishNavigationInfo(t)}).catch(function(t){console.error("Failed to retrieve navigation data:",t)})}}},{key:"sendRoutingRequest",value:function(){if(this.routingRequestPoints){var t=this.routingRequestPoints.length>1?this.routingRequestPoints[0]:this.mapAdapter.getMarkerPosition(this.vehicleMarker),e=this.routingRequestPoints[this.routingRequestPoints.length-1];return this.routingRequestPoints=[],this.requestRoute(t.lat,t.lng,e.lat,e.lng),!0}return alert("Please select a route"),!1}},{key:"addDefaultEndPoint",value:function(t){var e=this;t.forEach(function(t){var n=(0,d.UTMToWGS84)(t.x,t.y),i=(0,a.default)(n,2),r=i[0],o=i[1];e.routingRequestPoints.push({lat:o,lng:r})})}}]),t}(),p=new f;e.default=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){function r(t){if(i){var e=t.clone();i(e)}}p[e]?r(p[e]):new s.default(function(e,n){t?d.load(t,function(t){t.preload(),e(t)}):e(null)}).then(function(t){var i=new u.OBJLoader;t&&i.setMaterials(t),i.load(e,function(t){t.name=e,t.scale.set(n.x,n.y,n.z),p[e]=t,r(t)})}).catch(function(){console.error("Failed to load object.")})}function a(t,e,n){f.load(t,e,void 0,n)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(242),s=i(o);e.loadObject=r,e.loadTexture=a;var l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(537),h=(i(c),n(536)),d=(i(h),new u.MTLLoader),f=new u.TextureLoader;u.TextureLoader.prototype.crossOrigin="";var p={}},function(t,e,n){t.exports={default:n(300),__esModule:!0}},function(t,e,n){"use strict";var i={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||void 0===t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return i.valueOrDefault(i.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,r){var a,o,s;if(i.isArray(t))if(o=t.length,r)for(a=o-1;a>=0;a--)e.call(n,t[a],a);else for(a=0;adocument.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[a[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[o]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(93),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){"use strict";function i(t){return function(){return t}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";e.a=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))}},function(t,e,n){"use strict";e.a=function(t){return.375*t*(1+.25*t*(1+.46875*t))}},function(t,e,n){"use strict";e.a=function(t){return.05859375*t*t*(1+.75*t)}},function(t,e,n){"use strict";e.a=function(t){return t*t*t*(35/3072)}},function(t,e,n){"use strict";e.a=function(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}},function(t,e,n){"use strict";var i=n(7);e.a=function(t,e){for(var n,r,a=.5*t,o=i.a-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),r=i.a-2*Math.atan(e*Math.pow((1-n)/(1+n),a))-o,o+=r,Math.abs(r)<=1e-10)return o;return-9999}},function(t,e,n){"use strict";var i=n(7);e.a=function(t,e,n){var r=t*n,a=.5*t;return r=Math.pow((1-r)/(1+r),a),Math.tan(.5*(i.a-e))/r}},function(t,e,n){"use strict";function i(t){return t.type&&"Tab"===t.type.tabsRole}function r(t){return t.type&&"TabPanel"===t.type.tabsRole}function a(t){return t.type&&"TabList"===t.type.tabsRole}e.b=i,e.c=r,e.a=a},function(t,e,n){"use strict";function i(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t.constructor===Array&&t.length>0)for(;e0?i:n)(t)}},function(t,e,n){var i=n(21);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(18),r=n(11),a=n(63),o=n(96),s=n(22).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},function(t,e,n){e.f=n(17)},function(t,e,n){var i=n(62),r=n(17)("iterator"),a=n(41);t.exports=n(11).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||a[i(t)]}},function(t,e){},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(373),a=i(r),o=n(376),s=i(o),l=n(375),u=i(l),c=n(377),h=i(c),d=n(378),f=i(d),p=n(379),m=i(p),g=n(380),v=i(g),y=n(381),b=i(y),x=n(382),_=i(x),w=n(383),M=i(w),S=n(384),E=i(S),k=n(386),T=i(k),C=n(374),P=i(C),O=[u.default,s.default,h.default,m.default,v.default,b.default,_.default,M.default,E.default,f.default],A=(0,a.default)({prefixMap:P.default.prefixMap,plugins:O},T.default);e.default=A,t.exports=e.default},function(t,e,n){"use strict";function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){"use strict";function i(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/* +var Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},$e=function(){function t(t){void 0===t&&(t="Atom@"+xt()),this.name=t,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Yn.NOT_TRACKING}return t.prototype.onBecomeUnobserved=function(){},t.prototype.reportObserved=function(){ue(this)},t.prototype.reportChanged=function(){se(),ce(this),le()},t.prototype.toString=function(){return this.name},t}(),tn=function(t){function e(e,n,i){void 0===e&&(e="Atom@"+xt()),void 0===n&&(n=Bn),void 0===i&&(i=Bn);var r=t.call(this,e)||this;return r.name=e,r.onBecomeObservedHandler=n,r.onBecomeUnobservedHandler=i,r.isPendingUnobservation=!1,r.isBeingTracked=!1,r}return i(e,t),e.prototype.reportObserved=function(){return se(),t.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),le(),!!Wn.trackingDerivation},e.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},e}($e),en=zt("Atom",$e),nn={spyReportEnd:!0},rn="__$$iterating",an=function(){var t=!1,e={};return Object.defineProperty(e,"0",{set:function(){t=!0}}),Object.create(e)[0]=1,!1===t}(),on=0,sn=function(){function t(){}return t}();!function(t,e){void 0!==Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,e):void 0!==t.prototype.__proto__?t.prototype.__proto__=e:t.prototype=e}(sn,Array.prototype),Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(t){Object.defineProperty(sn.prototype,t,{configurable:!0,writable:!0,value:Array.prototype[t]})});var ln=function(){function t(t,e,n,i){this.array=n,this.owned=i,this.values=[],this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new $e(t||"ObservableArray@"+xt()),this.enhancer=function(n,i){return e(n,i,t+"[..]")}}return t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.dehanceValues=function(t){return void 0!==this.dehancer?t.map(this.dehancer):t},t.prototype.intercept=function(t){return a(this,t)},t.prototype.observe=function(t,e){return void 0===e&&(e=!1),e&&t({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),l(this,t)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(t){if("number"!=typeof t||t<0)throw new Error("[mobx.array] Out of range: "+t);var e=this.values.length;if(t!==e)if(t>e){for(var n=new Array(t-e),i=0;i0&&t+e+1>on&&x(t+e+1)},t.prototype.spliceWithArray=function(t,e,n){var i=this;ye(this.atom);var a=this.values.length;if(void 0===t?t=0:t>a?t=a:t<0&&(t=Math.max(0,a+t)),e=1===arguments.length?a-t:void 0===e||null===e?0:Math.max(0,Math.min(e,a-t)),void 0===n&&(n=[]),r(this)){var s=o(this,{object:this.array,type:"splice",index:t,removedCount:e,added:n});if(!s)return Nn;e=s.removedCount,n=s.added}n=n.map(function(t){return i.enhancer(t,void 0)});var l=n.length-e;this.updateArrayLength(a,l);var u=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(t,e,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[t,e].concat(n));var i=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),i;var r},t.prototype.notifyArrayChildUpdate=function(t,e,n){var i=!this.owned&&c(),r=s(this),a=r||i?{object:this.array,type:"update",index:t,newValue:e,oldValue:n}:null;i&&d(a),this.atom.reportChanged(),r&&u(this,a),i&&f()},t.prototype.notifyArraySplice=function(t,e,n){var i=!this.owned&&c(),r=s(this),a=r||i?{object:this.array,type:"splice",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;i&&d(a),this.atom.reportChanged(),r&&u(this,a),i&&f()},t}(),un=function(t){function e(e,n,i,r){void 0===i&&(i="ObservableArray@"+xt()),void 0===r&&(r=!1);var a=t.call(this)||this,o=new ln(i,n,a,r);return Rt(a,"$mobx",o),e&&e.length&&a.spliceWithArray(0,0,e),an&&Object.defineProperty(o.array,"0",cn),a}return i(e,t),e.prototype.intercept=function(t){return this.$mobx.intercept(t)},e.prototype.observe=function(t,e){return void 0===e&&(e=!1),this.$mobx.observe(t,e)},e.prototype.clear=function(){return this.splice(0)},e.prototype.concat=function(){for(var t=[],e=0;e-1&&(this.splice(e,1),!0)},e.prototype.move=function(t,e){function n(t){if(t<0)throw new Error("[mobx.array] Index out of bounds: "+t+" is negative");var e=this.$mobx.values.length;if(t>=e)throw new Error("[mobx.array] Index out of bounds: "+t+" is not smaller than "+e)}if(n.call(this,t),n.call(this,e),t!==e){var i,r=this.$mobx.values;i=t";At(t,e,yn(a,n))},function(t){return this[t]},function(){wt(!1,w("m001"))},!1,!0),vn=R(function(t,e,n){F(t,e,n)},function(t){return this[t]},function(){wt(!1,w("m001"))},!1,!1),yn=function(t,e,n,i){return 1===arguments.length&&"function"==typeof t?M(t.name||"",t):2===arguments.length&&"function"==typeof e?M(t,e):1===arguments.length&&"string"==typeof t?N(t):N(e).apply(null,arguments)};yn.bound=function(t,e,n){if("function"==typeof t){var i=M("",t);return i.autoBind=!0,i}return vn.apply(null,arguments)};var bn={identity:U,structural:j,default:W},xn=function(){function t(t,e,n,i,r){this.derivation=t,this.scope=e,this.equals=n,this.dependenciesState=Yn.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Yn.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+xt(),this.value=new Zn(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Xn.NONE,this.name=i||"ComputedValue@"+xt(),r&&(this.setter=M(i+"-setter",r))}return t.prototype.onBecomeStale=function(){de(this)},t.prototype.onBecomeUnobserved=function(){_e(this),this.value=void 0},t.prototype.get=function(){wt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===Wn.inBatch?(se(),ge(this)&&(this.isTracing!==Xn.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context and doing a full recompute"),this.value=this.computeValue(!1)),le()):(ue(this),ge(this)&&this.trackAndCompute()&&he(this));var t=this.value;if(me(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(me(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){wt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else wt(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},t.prototype.trackAndCompute=function(){c()&&h({object:this.scope,type:"compute",fn:this.derivation});var t=this.value,e=this.dependenciesState===Yn.NOT_TRACKING,n=this.value=this.computeValue(!0);return e||me(t)||me(n)||!this.equals(t,n)},t.prototype.computeValue=function(t){this.isComputing=!0,Wn.computationDepth++;var e;if(t)e=be(this,this.derivation,this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new Zn(t)}return Wn.computationDepth--,this.isComputing=!1,e},t.prototype.observe=function(t,e){var n=this,i=!0,r=void 0;return G(function(){var a=n.get();if(!i||e){var o=Me();t({type:"update",object:n,newValue:a,oldValue:r}),Se(o)}i=!1,r=a})},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return Vt(this.get())},t.prototype.whyRun=function(){var t=Boolean(Wn.trackingDerivation),e=Et(this.isComputing?this.newObserving:this.observing).map(function(t){return t.name}),n=Et(ie(this).map(function(t){return t.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(t?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===Yn.NOT_TRACKING?w("m032"):" * This computation will re-run if any of the following observables changes:\n "+kt(e)+"\n "+(this.isComputing&&t?" (... or any observable accessed during the remainder of the current run)":"")+"\n "+w("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+kt(n)+"\n")},t}();xn.prototype[Gt()]=xn.prototype.valueOf;var _n=zt("ComputedValue",xn),wn=function(){function t(t,e){this.target=t,this.name=e,this.values={},this.changeListeners=null,this.interceptors=null}return t.prototype.observe=function(t,e){return wt(!0!==e,"`observe` doesn't support the fire immediately property for observable objects."),l(this,t)},t.prototype.intercept=function(t){return a(this,t)},t}(),Mn={},Sn={},En=zt("ObservableObjectAdministration",wn),kn=rt(dt),Tn=rt(ft),Cn=rt(pt),Pn=rt(mt),On=rt(gt),An={box:function(t,e){return arguments.length>2&&ut("box"),new fn(t,dt,e)},shallowBox:function(t,e){return arguments.length>2&&ut("shallowBox"),new fn(t,pt,e)},array:function(t,e){return arguments.length>2&&ut("array"),new un(t,dt,e)},shallowArray:function(t,e){return arguments.length>2&&ut("shallowArray"),new un(t,pt,e)},map:function(t,e){return arguments.length>2&&ut("map"),new In(t,dt,e)},shallowMap:function(t,e){return arguments.length>2&&ut("shallowMap"),new In(t,pt,e)},object:function(t,e){arguments.length>2&&ut("object");var n={};return Y(n,e),at(n,t),n},shallowObject:function(t,e){arguments.length>2&&ut("shallowObject");var n={};return Y(n,e),ot(n,t),n},ref:function(){return arguments.length<2?ht(pt,arguments[0]):Cn.apply(null,arguments)},shallow:function(){return arguments.length<2?ht(ft,arguments[0]):Tn.apply(null,arguments)},deep:function(){return arguments.length<2?ht(dt,arguments[0]):kn.apply(null,arguments)},struct:function(){return arguments.length<2?ht(mt,arguments[0]):Pn.apply(null,arguments)}},Rn=lt;Object.keys(An).forEach(function(t){return Rn[t]=An[t]}),Rn.deep.struct=Rn.struct,Rn.ref.struct=function(){return arguments.length<2?ht(gt,arguments[0]):On.apply(null,arguments)};var Ln={},In=function(){function t(t,e,n){void 0===e&&(e=dt),void 0===n&&(n="ObservableMap@"+xt()),this.enhancer=e,this.name=n,this.$mobx=Ln,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new un(void 0,pt,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(t)}return t.prototype._has=function(t){return void 0!==this._data[t]},t.prototype.has=function(t){return!!this.isValidKey(t)&&(t=""+t,this._hasMap[t]?this._hasMap[t].get():this._updateHasMapEntry(t,!1).get())},t.prototype.set=function(t,e){this.assertValidKey(t),t=""+t;var n=this._has(t);if(r(this)){var i=o(this,{type:n?"update":"add",object:this,newValue:e,name:t});if(!i)return this;e=i.newValue}return n?this._updateValue(t,e):this._addValue(t,e),this},t.prototype.delete=function(t){var e=this;if(this.assertValidKey(t),t=""+t,r(this)){var n=o(this,{type:"delete",object:this,name:t});if(!n)return!1}if(this._has(t)){var i=c(),a=s(this),n=a||i?{type:"delete",object:this,oldValue:this._data[t].value,name:t}:null;return i&&d(n),vt(function(){e._keys.remove(t),e._updateHasMapEntry(t,!1),e._data[t].setNewValue(void 0),e._data[t]=void 0}),a&&u(this,n),i&&f(),!0}return!1},t.prototype._updateHasMapEntry=function(t,e){var n=this._hasMap[t];return n?n.setNewValue(e):n=this._hasMap[t]=new fn(e,pt,this.name+"."+t+"?",!1),n},t.prototype._updateValue=function(t,e){var n=this._data[t];if((e=n.prepareNewValue(e))!==dn){var i=c(),r=s(this),a=r||i?{type:"update",object:this,oldValue:n.value,name:t,newValue:e}:null;i&&d(a),n.setNewValue(e),r&&u(this,a),i&&f()}},t.prototype._addValue=function(t,e){var n=this;vt(function(){var i=n._data[t]=new fn(e,n.enhancer,n.name+"."+t,!1);e=i.value,n._updateHasMapEntry(t,!0),n._keys.push(t)});var i=c(),r=s(this),a=r||i?{type:"add",object:this,name:t,newValue:e}:null;i&&d(a),r&&u(this,a),i&&f()},t.prototype.get=function(t){return t=""+t,this.has(t)?this.dehanceValue(this._data[t].get()):this.dehanceValue(void 0)},t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.keys=function(){return g(this._keys.slice())},t.prototype.values=function(){return g(this._keys.map(this.get,this))},t.prototype.entries=function(){var t=this;return g(this._keys.map(function(e){return[e,t.get(e)]}))},t.prototype.forEach=function(t,e){var n=this;this.keys().forEach(function(i){return t.call(e,n.get(i),i,n)})},t.prototype.merge=function(t){var e=this;return Dn(t)&&(t=t.toJS()),vt(function(){Ct(t)?Object.keys(t).forEach(function(n){return e.set(n,t[n])}):Array.isArray(t)?t.forEach(function(t){var n=t[0],i=t[1];return e.set(n,i)}):jt(t)?t.forEach(function(t,n){return e.set(n,t)}):null!==t&&void 0!==t&&_t("Cannot initialize map from "+t)}),this},t.prototype.clear=function(){var t=this;vt(function(){we(function(){t.keys().forEach(t.delete,t)})})},t.prototype.replace=function(t){var e=this;return vt(function(){var n=Wt(t);e.keys().filter(function(t){return-1===n.indexOf(t)}).forEach(function(t){return e.delete(t)}),e.merge(t)}),this},Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.toJS=function(){var t=this,e={};return this.keys().forEach(function(n){return e[n]=t.get(n)}),e},t.prototype.toJSON=function(){return this.toJS()},t.prototype.isValidKey=function(t){return null!==t&&void 0!==t&&("string"==typeof t||"number"==typeof t||"boolean"==typeof t)},t.prototype.assertValidKey=function(t){if(!this.isValidKey(t))throw new Error("[mobx.map] Invalid key: '"+t+"', only strings, numbers and booleans are accepted as key in observable maps.")},t.prototype.toString=function(){var t=this;return this.name+"[{ "+this.keys().map(function(e){return e+": "+t.get(e)}).join(", ")+" }]"},t.prototype.observe=function(t,e){return wt(!0!==e,w("m033")),l(this,t)},t.prototype.intercept=function(t){return a(this,t)},t}();v(In.prototype,function(){return this.entries()});var Dn=zt("ObservableMap",In),Nn=[];Object.freeze(Nn);var zn=[],Bn=function(){},Fn=Object.prototype.hasOwnProperty,Un=["mobxGuid","resetId","spyListeners","strictMode","runId"],jn=function(){function t(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return t}(),Wn=new jn,Gn=!1,Vn=!1,Hn=!1,qn=bt();qn.__mobxInstanceCount?(qn.__mobxInstanceCount++,setTimeout(function(){Gn||Vn||Hn||(Hn=!0,console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details."))})):qn.__mobxInstanceCount=1;var Yn;!function(t){t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE"}(Yn||(Yn={}));var Xn;!function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(Xn||(Xn={}));var Zn=function(){function t(t){this.cause=t}return t}(),Kn=function(){function t(t,e){void 0===t&&(t="Reaction@"+xt()),this.name=t,this.onInvalidate=e,this.observing=[],this.newObserving=[],this.dependenciesState=Yn.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+xt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Xn.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Wn.pendingReactions.push(this),Re())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){this.isDisposed||(se(),this._isScheduled=!1,ge(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&c()&&h({object:this,type:"scheduled-reaction"})),le())},t.prototype.track=function(t){se();var e,n=c();n&&(e=Date.now(),d({object:this,type:"reaction",fn:t})),this._isRunning=!0;var i=be(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&_e(this),me(i)&&this.reportExceptionInDerivation(i.cause),n&&f({time:Date.now()-e}),le()},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)return void this.errorHandler(t,this);var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,i=w("m037");console.error(n||i,t),c()&&h({type:"error",message:n,error:t,object:this}),Wn.globalReactionErrorHandlers.forEach(function(n){return n(t,e)})},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(se(),_e(this),le()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t.$mobx=this,t.onError=Oe,t},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.whyRun=function(){var t=Et(this._isRunning?this.newObserving:this.observing).map(function(t){return t.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+kt(t)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+w("m038")+"\n"},t.prototype.trace=function(t){void 0===t&&(t=!1),Ce(this,t)},t}(),Qn=100,Jn=function(t){return t()},$n=zt("Reaction",Kn),ti=Fe(bn.default),ei=Fe(bn.structural),ni=function(t,e,n){if("string"==typeof e)return ti.apply(null,arguments);wt("function"==typeof t,w("m011")),wt(arguments.length<3,w("m012"));var i="object"==typeof e?e:{};i.setter="function"==typeof e?e:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?bn.structural:bn.default;return new xn(t,i.context,r,i.name||t.name||"",i.setter)};ni.struct=ei,ni.equals=Fe;var ii={allowStateChanges:P,deepEqual:Nt,getAtom:Zt,getDebugName:Qt,getDependencyTree:Jt,getAdministration:Kt,getGlobalState:Yt,getObserverTree:te,interceptReads:Qe,isComputingDerivation:ve,isSpyEnabled:c,onReactionError:Ae,reserveArrayBuffer:x,resetGlobalState:Xt,isolateGlobalState:Ht,shareGlobalState:qt,spyReport:h,spyReportEnd:f,spyReportStart:d,setReactionScheduler:Ie},ri={Reaction:Kn,untracked:we,Atom:tn,BaseAtom:$e,useStrict:T,isStrictModeEnabled:C,spy:p,comparer:bn,asReference:De,asFlat:ze,asStructure:Ne,asMap:Be,isModifierDescriptor:ct,isObservableObject:nt,isBoxedObservable:pn,isObservableArray:_,ObservableMap:In,isObservableMap:Dn,map:yt,transaction:vt,observable:Rn,computed:ni,isObservable:it,isComputed:Ue,extendObservable:at,extendShallowObservable:ot,observe:je,intercept:Ve,autorun:G,autorunAsync:H,when:V,reaction:q,action:yn,isAction:B,runInAction:z,expr:Ye,toJS:Xe,createTransformer:Ze,whyRun:Te,isArrayLike:Ft,extras:ii},ai=!1;for(var oi in ri)!function(t){var e=ri[t];Object.defineProperty(ri,t,{get:function(){return ai||(ai=!0,console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")),e}})}(oi);"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:ii}),e.default=ri}.call(e,n(111))},function(t,e,n){t.exports=n(459)()},function(t,e,n){t.exports={default:n(305),__esModule:!0}},function(t,e,n){var i=n(21);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(36)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports={camera:{viewAngle:.65,Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3},laneWidth:4.5,laneWidthToViewDistanceRatio:5},ground:{defaults:{mpp:.125,xres:8192,yres:8192,xorigin:4096,yorigin:4096,type:"default",tileRange:4},sunnyvale_big_loop:{mpp:.125,xres:24576,yres:16384,xorigin:587392,yorigin:4140800,type:"default",tileRange:4}},planning:{minInterval:.1,defaults:{width:1.4}},options:{defaults:{enableSimControl:!1,showModuleController:!1,showMenu:!1,showPOI:!1,showPNCMonitor:!1,showRouteEditingBar:!1,showDataRecorder:!1,showTasks:!0,showVideo:!1,showPlanningCar:!1,showPlanningReference:!1,showPlaningDpOptimizer:!1,showPlanningQpOptimizer:!1,showPlanning:!0,showDecisionMain:!0,showDecisionObstacle:!0,showRouting:!0,showPredictionMajor:!0,showPredictionMinor:!0,showObstaclesVehicle:!0,showObstaclesPedestrian:!0,showObstaclesBicycle:!0,showObstaclesUnknownMovable:!0,showObstaclesUnknownUnmovable:!0,showObstaclesUnknown:!0,showObstaclesVirtual:!1,showObstaclesVelocity:!0,showObstaclesHeading:!0,showObstaclesId:!0,showPointCloud:!1,showPositionGps:!1,showPositionLocalization:!0,showMapCrosswalk:!0,showMapClearArea:!0,showMapJunction:!1,showMapLane:!0,showMapRoad:!1,showMapSignal:!0,showMapStopSign:!0,cameraAngle:"Default"}},navigation:{map:"GoogleMap"},debug:{autoMonitorMessage:!1,performanceMonitor:!1},server:{port:8888}}},function(t,e,n){var i=n(48);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";function i(t,e,n){return n?[t,e]:t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(e){var n=e*w;t.position.z+=n}}function a(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=new g.MeshBasicMaterial({map:E.load(t),transparent:!0,depthWrite:!1}),s=new g.Mesh(new g.PlaneGeometry(e,n),o);return s.material.side=g.DoubleSide,s.position.set(i,r,a),s.overdraw=!0,s}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=new g.Path,u=l.createGeometry(t);u.computeLineDistances();var c=new g.LineDashedMaterial({color:e,dashSize:i,linewidth:n,gapSize:a}),h=new g.Line(u,c);return r(h,o),h.matrixAutoUpdate=s,s||h.updateMatrix(),h}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=new g.CircleGeometry(t,n);return new g.Mesh(i,e)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16777215,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=M(t.map(function(t){return[t.x,t.y]})),s=new g.ShaderMaterial(S({side:g.DoubleSide,diffuse:n,thickness:e,opacity:i,transparent:!0})),l=new g.Mesh(o,s);return r(l,a),l}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,l=new g.Path,u=l.createGeometry(t),c=new g.LineBasicMaterial({color:e,linewidth:n,transparent:o,opacity:s}),h=new g.Line(u,c);return r(h,i),h.matrixAutoUpdate=a,!1===a&&h.updateMatrix(),h}function c(t,e,n){var i=new g.CubeGeometry(t.x,t.y,t.z),r=new g.MeshBasicMaterial({color:e}),a=new g.Mesh(i,r),o=new g.BoxHelper(a);return o.material.linewidth=n,o}function h(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.01,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.02,a=new g.CubeGeometry(t.x,t.y,t.z);a=new g.EdgesGeometry(a),a=(new g.Geometry).fromBufferGeometry(a),a.computeLineDistances();var o=new g.LineDashedMaterial({color:e,linewidth:n,dashSize:i,gapSize:r});return new g.LineSegments(a,o)}function d(t,e,n,i,r){var a=new g.Vector3(0,t,0);return u([new g.Vector3(0,0,0),a,new g.Vector3(i/2,t-n,0),a,new g.Vector3(-i/2,t-n,0)],r,e,1)}function f(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new g.Shape;if(e){n.moveTo(t[0].x,t[0].y);for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:new g.MeshBasicMaterial({color:16711680}),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=f(t,n),s=new g.Mesh(o,e);return r(s,i),s.matrixAutoUpdate=a,!1===a&&s.updateMatrix(),s}Object.defineProperty(e,"__esModule",{value:!0}),e.addOffsetZ=r,e.drawImage=a,e.drawDashedLineFromPoints=o,e.drawCircle=s,e.drawThickBandFromPoints=l,e.drawSegmentsFromPoints=u,e.drawBox=c,e.drawDashedBox=h,e.drawArrow=d,e.getShapeGeometryFromPoints=f,e.drawShapeFromPoints=p;var m=n(12),g=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(m),v=n(480),y=i(v),b=n(481),x=i(b),_=n(39),w=.04,M=(0,y.default)(g),S=(0,x.default)(g),E=new g.TextureLoader},function(t,e,n){t.exports={default:n(307),__esModule:!0}},function(t,e,n){"use strict";t.exports={},t.exports.Arc=n(274),t.exports.Line=n(275),t.exports.Point=n(276),t.exports.Rectangle=n(277)},function(t,e,n){var i=n(22),r=n(52);t.exports=n(27)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(537),h=(i(c),n(478)),d=i(h),f=n(28),p=i(f),m=n(208),g=i(m),v=n(207),y=i(v),b=n(211),x=i(b),_=n(218),w=i(_),M=n(212),S=i(M),E=n(219),k=i(E),T=n(116),C=i(T),P=n(209),O=i(P),A=n(214),R=i(A),L=n(215),I=i(L),D=n(216),N=i(D),z=n(210),B=i(z),F=n(213),U=i(F),j=(n(39),function(){function t(){(0,a.default)(this,t);var e=!this.isMobileDevice();this.coordinates=new g.default,this.renderer=new u.WebGLRenderer({antialias:e}),this.scene=new u.Scene,this.scene.background=new u.Color(3095),this.dimension={width:0,height:0},this.ground="tile"===p.default.ground.type?new w.default:new x.default,this.map=new S.default,this.adc=new y.default("adc",this.scene),this.planningAdc=new y.default("plannigAdc",this.scene),this.planningTrajectory=new k.default,this.perceptionObstacles=new C.default,this.decision=new O.default,this.prediction=new R.default,this.routing=new I.default,this.routingEditor=new N.default,this.gnss=new B.default,this.pointCloud=new U.default,this.stats=null,p.default.debug.performanceMonitor&&(this.stats=new d.default,this.stats.showPanel(1),this.stats.domElement.style.position="absolute",this.stats.domElement.style.top=null,this.stats.domElement.style.bottom="0px",document.body.appendChild(this.stats.domElement)),this.geolocation={x:0,y:0}}return(0,s.default)(t,[{key:"initialize",value:function(t,e,n,i){this.options=i,this.canvasId=t,this.viewAngle=p.default.camera.viewAngle,this.viewDistance=p.default.camera.laneWidth*p.default.camera.laneWidthToViewDistanceRatio,this.camera=new u.PerspectiveCamera(p.default.camera[this.options.cameraAngle].fov,window.innerWidth/window.innerHeight,p.default.camera[this.options.cameraAngle].near,p.default.camera[this.options.cameraAngle].far),this.camera.name="camera",this.scene.add(this.camera),this.updateDimension(e,n),this.renderer.setPixelRatio(window.devicePixelRatio),document.getElementById(t).appendChild(this.renderer.domElement);var r=new u.AmbientLight(4473924),a=new u.DirectionalLight(16772829);a.position.set(0,0,1).normalize(),this.controls=new u.OrbitControls(this.camera,this.renderer.domElement),this.controls.enable=!1,this.onMouseDownHandler=this.editRoute.bind(this),this.scene.add(r),this.scene.add(a),this.animate()}},{key:"maybeInitializeOffest",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.coordinates.isInitialized()&&!n||this.coordinates.initialize(t,e)}},{key:"updateDimension",value:function(t,e){this.camera.aspect=t/e,this.camera.updateProjectionMatrix(),this.renderer.setSize(t,e),this.dimension.width=t,this.dimension.height=e}},{key:"enableOrbitControls",value:function(){var t=this.adc.mesh.position;this.controls.enabled=!0,this.controls.enableRotate=!1,this.controls.reset(),this.controls.minDistance=20,this.controls.maxDistance=1e3,this.controls.target.set(t.x,t.y,0),this.camera.position.set(t.x,t.y,50),"FLU"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt(t.x,t.y,0)}},{key:"adjustCamera",value:function(t,e){if(!this.routingEditor.isInEditingMode()){switch(this.camera.fov=p.default.camera[e].fov,this.camera.near=p.default.camera[e].near,this.camera.far=p.default.camera[e].far,e){case"Default":var n=this.viewDistance*Math.cos(t.rotation.y)*Math.cos(this.viewAngle),i=this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=this.viewDistance*Math.sin(this.viewAngle);this.camera.position.x=t.position.x-n,this.camera.position.y=t.position.y-i,this.camera.position.z=t.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:t.position.x+2*n,y:t.position.y+2*i,z:0}),this.controls.enabled=!1;break;case"Near":n=.5*this.viewDistance*Math.cos(t.rotation.y)*Math.cos(this.viewAngle),i=.5*this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=.5*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=t.position.x-n,this.camera.position.y=t.position.y-i,this.camera.position.z=t.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:t.position.x+2*n,y:t.position.y+2*i,z:0}),this.controls.enabled=!1;break;case"Overhead":i=.5*this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=2*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=t.position.x,this.camera.position.y=t.position.y+i,this.camera.position.z=2*(t.position.z+r),"FLU"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt({x:t.position.x,y:t.position.y+i,z:0}),this.controls.enabled=!1;break;case"Map":this.controls.enabled||this.enableOrbitControls()}this.camera.updateProjectionMatrix()}}},{key:"enableRouteEditing",value:function(){this.enableOrbitControls(),this.routingEditor.enableEditingMode(this.camera,this.adc),document.getElementById(this.canvasId).addEventListener("mousedown",this.onMouseDownHandler,!1)}},{key:"disableRouteEditing",value:function(){this.routingEditor.disableEditingMode(this.scene),document.getElementById(this.canvasId).removeEventListener("mousedown",this.onMouseDownHandler,!1)}},{key:"addDefaultEndPoint",value:function(t){for(var e=0;e1&&void 0!==arguments[1]&&arguments[1]&&this.map.removeAllElements(this.scene),this.map.appendMapData(t,this.coordinates,this.scene)}},{key:"updatePointCloud",value:function(t){this.coordinates.isInitialized()&&this.adc.mesh&&this.pointCloud.update(t,this.adc.mesh)}},{key:"updateMapIndex",value:function(t,e,n){this.routingEditor.isInEditingMode()&&this.routingEditor.EDITING_MAP_RADIUS!==n||this.map.updateIndex(t,e,this.scene)}},{key:"isMobileDevice",value:function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)}},{key:"getGeolocation",value:function(t){if(this.coordinates.isInitialized()){var e=t.currentTarget.getBoundingClientRect(),n=new u.Vector3((t.clientX-e.left)/this.dimension.width*2-1,-(t.clientY-e.top)/this.dimension.height*2+1,0);n.unproject(this.camera);var i=n.sub(this.camera.position).normalize(),r=-this.camera.position.z/i.z,a=this.camera.position.clone().add(i.multiplyScalar(r));return this.coordinates.applyOffset(a,!0)}}}]),t}()),W=new j;e.default=W},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(83),r=n(80);t.exports=function(t){return i(r(t))}},function(t,e,n){(function(t,i){var r;(function(){function a(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function o(t,e,n,i){for(var r=-1,a=null==t?0:t.length;++r-1}function d(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function z(t,e){for(var n=t.length;n--&&w(e,t[n],0)>-1;);return n}function B(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}function F(t){return"\\"+kn[t]}function U(t,e){return null==t?it:t[e]}function j(t){return vn.test(t)}function W(t){return yn.test(t)}function G(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function H(t,e){return function(n){return t(e(n))}}function q(t,e){for(var n=-1,i=t.length,r=0,a=[];++n>>1,Bt=[["ary",wt],["bind",mt],["bindKey",gt],["curry",yt],["curryRight",bt],["flip",St],["partial",xt],["partialRight",_t],["rearg",Mt]],Ft="[object Arguments]",Ut="[object Array]",jt="[object AsyncFunction]",Wt="[object Boolean]",Gt="[object Date]",Vt="[object DOMException]",Ht="[object Error]",qt="[object Function]",Yt="[object GeneratorFunction]",Xt="[object Map]",Zt="[object Number]",Kt="[object Null]",Qt="[object Object]",Jt="[object Proxy]",$t="[object RegExp]",te="[object Set]",ee="[object String]",ne="[object Symbol]",ie="[object Undefined]",re="[object WeakMap]",ae="[object WeakSet]",oe="[object ArrayBuffer]",se="[object DataView]",le="[object Float32Array]",ue="[object Float64Array]",ce="[object Int8Array]",he="[object Int16Array]",de="[object Int32Array]",fe="[object Uint8Array]",pe="[object Uint8ClampedArray]",me="[object Uint16Array]",ge="[object Uint32Array]",ve=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,_e=/[&<>"']/g,we=RegExp(xe.source),Me=RegExp(_e.source),Se=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,ke=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Oe.source),Re=/^\s+|\s+$/g,Le=/^\s+/,Ie=/\s+$/,De=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,je=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\d*)$/,Ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Je="["+Qe+"]",$e="["+Ke+"]",tn="[a-z\\xdf-\\xf6\\xf8-\\xff]",en="[^\\ud800-\\udfff"+Qe+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",nn="\\ud83c[\\udffb-\\udfff]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",an="[\\ud800-\\udbff][\\udc00-\\udfff]",on="[A-Z\\xc0-\\xd6\\xd8-\\xde]",sn="(?:"+tn+"|"+en+")",ln="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",un="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",rn,an].join("|")+")[\\ufe0e\\ufe0f]?"+ln+")*",cn="[\\ufe0e\\ufe0f]?"+ln+un,hn="(?:"+["[\\u2700-\\u27bf]",rn,an].join("|")+")"+cn,dn="(?:"+["[^\\ud800-\\udfff]"+$e+"?",$e,rn,an,"[\\ud800-\\udfff]"].join("|")+")",fn=RegExp("['’]","g"),pn=RegExp($e,"g"),mn=RegExp(nn+"(?="+nn+")|"+dn+cn,"g"),gn=RegExp([on+"?"+tn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Je,on,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Je,on+sn,"$"].join("|")+")",on+"?"+sn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",on+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",hn].join("|"),"g"),vn=RegExp("[\\u200d\\ud800-\\udfff"+Ke+"\\ufe0e\\ufe0f]"),yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xn=-1,_n={};_n[le]=_n[ue]=_n[ce]=_n[he]=_n[de]=_n[fe]=_n[pe]=_n[me]=_n[ge]=!0,_n[Ft]=_n[Ut]=_n[oe]=_n[Wt]=_n[se]=_n[Gt]=_n[Ht]=_n[qt]=_n[Xt]=_n[Zt]=_n[Qt]=_n[$t]=_n[te]=_n[ee]=_n[re]=!1;var wn={};wn[Ft]=wn[Ut]=wn[oe]=wn[se]=wn[Wt]=wn[Gt]=wn[le]=wn[ue]=wn[ce]=wn[he]=wn[de]=wn[Xt]=wn[Zt]=wn[Qt]=wn[$t]=wn[te]=wn[ee]=wn[ne]=wn[fe]=wn[pe]=wn[me]=wn[ge]=!0,wn[Ht]=wn[qt]=wn[re]=!1;var Mn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Sn={"&":"&","<":"<",">":">",'"':""","'":"'"},En={"&":"&","<":"<",">":">",""":'"',"'":"'"},kn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tn=parseFloat,Cn=parseInt,Pn="object"==typeof t&&t&&t.Object===Object&&t,On="object"==typeof self&&self&&self.Object===Object&&self,An=Pn||On||Function("return this")(),Rn="object"==typeof e&&e&&!e.nodeType&&e,Ln=Rn&&"object"==typeof i&&i&&!i.nodeType&&i,In=Ln&&Ln.exports===Rn,Dn=In&&Pn.process,Nn=function(){try{return Dn&&Dn.binding&&Dn.binding("util")}catch(t){}}(),zn=Nn&&Nn.isArrayBuffer,Bn=Nn&&Nn.isDate,Fn=Nn&&Nn.isMap,Un=Nn&&Nn.isRegExp,jn=Nn&&Nn.isSet,Wn=Nn&&Nn.isTypedArray,Gn=k("length"),Vn=T(Mn),Hn=T(Sn),qn=T(En),Yn=function t(e){function n(t){if(el(t)&&!dd(t)&&!(t instanceof y)){if(t instanceof r)return t;if(dc.call(t,"__wrapped__"))return Qa(t)}return new r(t)}function i(){}function r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function y(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dt,this.__views__=[]}function T(){var t=new y(this.__wrapped__);return t.__actions__=Lr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lr(this.__views__),t}function K(){if(this.__filtered__){var t=new y(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function tt(){var t=this.__wrapped__.value(),e=this.__dir__,n=dd(t),i=e<0,r=n?t.length:0,a=wa(0,r,this.__views__),o=a.start,s=a.end,l=s-o,u=i?s:o-1,c=this.__iteratees__,h=c.length,d=0,f=Wc(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return gr(t,this.__actions__);var p=[];t:for(;l--&&d-1}function on(t,e){var n=this.__data__,i=Xn(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function sn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ei(t,e,n,i,r,a){var o,l=e&ct,u=e&ht,c=e&dt;if(n&&(o=r?n(t,i,r,a):n(t)),o!==it)return o;if(!tl(t))return t;var h=dd(t);if(h){if(o=Ea(t),!l)return Lr(t,o)}else{var d=wh(t),f=d==qt||d==Yt;if(pd(t))return Mr(t,l);if(d==Qt||d==Ft||f&&!r){if(o=u||f?{}:ka(t),!l)return u?Nr(t,Qn(o,t)):Dr(t,Kn(o,t))}else{if(!wn[d])return r?t:{};o=Ta(t,d,l)}}a||(a=new yn);var p=a.get(t);if(p)return p;if(a.set(t,o),yd(t))return t.forEach(function(i){o.add(ei(i,e,n,i,t,a))}),o;if(gd(t))return t.forEach(function(i,r){o.set(r,ei(i,e,n,r,t,a))}),o;var m=c?u?pa:fa:u?zl:Nl,g=h?it:m(t);return s(g||t,function(i,r){g&&(r=i,i=t[r]),Gn(o,r,ei(i,e,n,r,t,a))}),o}function ni(t){var e=Nl(t);return function(n){return ii(n,t,e)}}function ii(t,e,n){var i=n.length;if(null==t)return!i;for(t=ic(t);i--;){var r=n[i],a=e[r],o=t[r];if(o===it&&!(r in t)||!a(o))return!1}return!0}function ri(t,e,n){if("function"!=typeof t)throw new oc(ot);return Eh(function(){t.apply(it,n)},e)}function ai(t,e,n,i){var r=-1,a=h,o=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=f(e,L(n))),i?(a=d,o=!1):e.length>=rt&&(a=D,o=!1,e=new mn(e));t:for(;++rr?0:r+n),i=i===it||i>r?r:yl(i),i<0&&(i+=r),i=n>i?0:bl(i);n0&&n(s)?e>1?ci(s,e-1,n,i,r):p(r,s):i||(r[r.length]=s)}return r}function hi(t,e){return t&&dh(t,e,Nl)}function di(t,e){return t&&fh(t,e,Nl)}function fi(t,e){return c(e,function(e){return Qs(t[e])})}function pi(t,e){e=_r(e,t);for(var n=0,i=e.length;null!=t&&ne}function yi(t,e){return null!=t&&dc.call(t,e)}function bi(t,e){return null!=t&&e in ic(t)}function xi(t,e,n){return t>=Wc(e,n)&&t=120&&c.length>=120)?new mn(o&&c):it}c=t[0];var p=-1,m=s[0];t:for(;++p-1;)s!==t&&kc.call(s,l,1),kc.call(t,l,1);return t}function Ki(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==a){var a=r;Oa(r)?kc.call(t,r,1):fr(t,r)}}return t}function Qi(t,e){return t+Dc(Hc()*(e-t+1))}function Ji(t,e,n,i){for(var r=-1,a=jc(Ic((e-t)/(n||1)),0),o=Ju(a);a--;)o[i?a:++r]=t,t+=n;return o}function $i(t,e){var n="";if(!t||e<1||e>Rt)return n;do{e%2&&(n+=t),(e=Dc(e/2))&&(t+=t)}while(e);return n}function tr(t,e){return kh(Wa(t,e,ku),t+"")}function er(t){return Rn(Zl(t))}function nr(t,e){var n=Zl(t);return Ya(n,ti(e,0,n.length))}function ir(t,e,n,i){if(!tl(t))return t;e=_r(e,t);for(var r=-1,a=e.length,o=a-1,s=t;null!=s&&++rr?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var a=Ju(r);++i>>1,o=t[a];null!==o&&!dl(o)&&(n?o<=e:o=rt){var u=e?null:yh(t);if(u)return X(u);o=!1,r=D,l=new mn}else l=e?[]:s;t:for(;++i=i?t:ar(t,e,n)}function Mr(t,e){if(e)return t.slice();var n=t.length,i=wc?wc(n):new t.constructor(n);return t.copy(i),i}function Sr(t){var e=new t.constructor(t.byteLength);return new _c(e).set(new _c(t)),e}function Er(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function kr(t){var e=new t.constructor(t.source,je.exec(t));return e.lastIndex=t.lastIndex,e}function Tr(t){return sh?ic(sh.call(t)):{}}function Cr(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Pr(t,e){if(t!==e){var n=t!==it,i=null===t,r=t===t,a=dl(t),o=e!==it,s=null===e,l=e===e,u=dl(e);if(!s&&!u&&!a&&t>e||a&&o&&l&&!s&&!u||i&&o&&l||!n&&l||!r)return 1;if(!i&&!a&&!u&&t=s)return l;return l*("desc"==n[i]?-1:1)}}return t.index-e.index}function Ar(t,e,n,i){for(var r=-1,a=t.length,o=n.length,s=-1,l=e.length,u=jc(a-o,0),c=Ju(l+u),h=!i;++s1?n[r-1]:it,o=r>2?n[2]:it;for(a=t.length>3&&"function"==typeof a?(r--,a):it,o&&Aa(n[0],n[1],o)&&(a=r<3?it:a,r=1),e=ic(e);++i-1?r[a?e[o]:o]:it}}function Yr(t){return da(function(e){var n=e.length,i=n,a=r.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if("function"!=typeof o)throw new oc(ot);if(a&&!s&&"wrapper"==ma(o))var s=new r([],!0)}for(i=s?i:n;++i1&&y.reverse(),h&&ls))return!1;var u=a.get(t);if(u&&a.get(e))return u==e;var c=-1,h=!0,d=n&pt?new mn:it;for(a.set(t,e),a.set(e,t);++c1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(De,"{\n/* [wrapped with "+e+"] */\n")}function Pa(t){return dd(t)||hd(t)||!!(Tc&&t&&t[Tc])}function Oa(t,e){var n=typeof t;return!!(e=null==e?Rt:e)&&("number"==n||"symbol"!=n&&qe.test(t))&&t>-1&&t%1==0&&t0){if(++e>=Tt)return arguments[0]}else e=0;return t.apply(it,arguments)}}function Ya(t,e){var n=-1,i=t.length,r=i-1;for(e=e===it?i:e;++n=this.__values__.length;return{done:t,value:t?it:this.__values__[this.__index__++]}}function Jo(){return this}function $o(t){for(var e,n=this;n instanceof i;){var r=Qa(n);r.__index__=0,r.__values__=it,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e}function ts(){var t=this.__wrapped__;if(t instanceof y){var e=t;return this.__actions__.length&&(e=new y(this)),e=e.reverse(),e.__actions__.push({func:Xo,args:[So],thisArg:it}),new r(e,this.__chain__)}return this.thru(So)}function es(){return gr(this.__wrapped__,this.__actions__)}function ns(t,e,n){var i=dd(t)?u:oi;return n&&Aa(t,e,n)&&(e=it),i(t,va(e,3))}function is(t,e){return(dd(t)?c:ui)(t,va(e,3))}function rs(t,e){return ci(cs(t,e),1)}function as(t,e){return ci(cs(t,e),At)}function os(t,e,n){return n=n===it?1:yl(n),ci(cs(t,e),n)}function ss(t,e){return(dd(t)?s:ch)(t,va(e,3))}function ls(t,e){return(dd(t)?l:hh)(t,va(e,3))}function us(t,e,n,i){t=Ws(t)?t:Zl(t),n=n&&!i?yl(n):0;var r=t.length;return n<0&&(n=jc(r+n,0)),hl(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&w(t,e,n)>-1}function cs(t,e){return(dd(t)?f:Fi)(t,va(e,3))}function hs(t,e,n,i){return null==t?[]:(dd(e)||(e=null==e?[]:[e]),n=i?it:n,dd(n)||(n=null==n?[]:[n]),Hi(t,e,n))}function ds(t,e,n){var i=dd(t)?m:C,r=arguments.length<3;return i(t,va(e,4),n,r,ch)}function fs(t,e,n){var i=dd(t)?g:C,r=arguments.length<3;return i(t,va(e,4),n,r,hh)}function ps(t,e){return(dd(t)?c:ui)(t,Cs(va(e,3)))}function ms(t){return(dd(t)?Rn:er)(t)}function gs(t,e,n){return e=(n?Aa(t,e,n):e===it)?1:yl(e),(dd(t)?Ln:nr)(t,e)}function vs(t){return(dd(t)?Dn:rr)(t)}function ys(t){if(null==t)return 0;if(Ws(t))return hl(t)?J(t):t.length;var e=wh(t);return e==Xt||e==te?t.size:Ni(t).length}function bs(t,e,n){var i=dd(t)?v:or;return n&&Aa(t,e,n)&&(e=it),i(t,va(e,3))}function xs(t,e){if("function"!=typeof e)throw new oc(ot);return t=yl(t),function(){if(--t<1)return e.apply(this,arguments)}}function _s(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,aa(t,wt,it,it,it,it,e)}function ws(t,e){var n;if("function"!=typeof e)throw new oc(ot);return t=yl(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Ms(t,e,n){e=n?it:e;var i=aa(t,yt,it,it,it,it,it,e);return i.placeholder=Ms.placeholder,i}function Ss(t,e,n){e=n?it:e;var i=aa(t,bt,it,it,it,it,it,e);return i.placeholder=Ss.placeholder,i}function Es(t,e,n){function i(e){var n=d,i=f;return d=f=it,y=e,m=t.apply(i,n)}function r(t){return y=t,g=Eh(s,e),b?i(t):m}function a(t){var n=t-v,i=t-y,r=e-n;return x?Wc(r,p-i):r}function o(t){var n=t-v,i=t-y;return v===it||n>=e||n<0||x&&i>=p}function s(){var t=td();if(o(t))return l(t);g=Eh(s,a(t))}function l(t){return g=it,_&&d?i(t):(d=f=it,m)}function u(){g!==it&&vh(g),y=0,d=v=f=g=it}function c(){return g===it?m:l(td())}function h(){var t=td(),n=o(t);if(d=arguments,f=this,v=t,n){if(g===it)return r(v);if(x)return g=Eh(s,e),i(v)}return g===it&&(g=Eh(s,e)),m}var d,f,p,m,g,v,y=0,b=!1,x=!1,_=!0;if("function"!=typeof t)throw new oc(ot);return e=xl(e)||0,tl(n)&&(b=!!n.leading,x="maxWait"in n,p=x?jc(xl(n.maxWait)||0,e):p,_="trailing"in n?!!n.trailing:_),h.cancel=u,h.flush=c,h}function ks(t){return aa(t,St)}function Ts(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oc(ot);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=t.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(Ts.Cache||sn),n}function Cs(t){if("function"!=typeof t)throw new oc(ot);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ps(t){return ws(2,t)}function Os(t,e){if("function"!=typeof t)throw new oc(ot);return e=e===it?e:yl(e),tr(t,e)}function As(t,e){if("function"!=typeof t)throw new oc(ot);return e=null==e?0:jc(yl(e),0),tr(function(n){var i=n[e],r=wr(n,0,e);return i&&p(r,i),a(t,this,r)})}function Rs(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new oc(ot);return tl(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Es(t,e,{leading:i,maxWait:e,trailing:r})}function Ls(t){return _s(t,1)}function Is(t,e){return od(xr(e),t)}function Ds(){if(!arguments.length)return[];var t=arguments[0];return dd(t)?t:[t]}function Ns(t){return ei(t,dt)}function zs(t,e){return e="function"==typeof e?e:it,ei(t,dt,e)}function Bs(t){return ei(t,ct|dt)}function Fs(t,e){return e="function"==typeof e?e:it,ei(t,ct|dt,e)}function Us(t,e){return null==e||ii(t,e,Nl(e))}function js(t,e){return t===e||t!==t&&e!==e}function Ws(t){return null!=t&&$s(t.length)&&!Qs(t)}function Gs(t){return el(t)&&Ws(t)}function Vs(t){return!0===t||!1===t||el(t)&&gi(t)==Wt}function Hs(t){return el(t)&&1===t.nodeType&&!ul(t)}function qs(t){if(null==t)return!0;if(Ws(t)&&(dd(t)||"string"==typeof t||"function"==typeof t.splice||pd(t)||bd(t)||hd(t)))return!t.length;var e=wh(t);if(e==Xt||e==te)return!t.size;if(Na(t))return!Ni(t).length;for(var n in t)if(dc.call(t,n))return!1;return!0}function Ys(t,e){return Ti(t,e)}function Xs(t,e,n){n="function"==typeof n?n:it;var i=n?n(t,e):it;return i===it?Ti(t,e,it,n):!!i}function Zs(t){if(!el(t))return!1;var e=gi(t);return e==Ht||e==Vt||"string"==typeof t.message&&"string"==typeof t.name&&!ul(t)}function Ks(t){return"number"==typeof t&&Bc(t)}function Qs(t){if(!tl(t))return!1;var e=gi(t);return e==qt||e==Yt||e==jt||e==Jt}function Js(t){return"number"==typeof t&&t==yl(t)}function $s(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Rt}function tl(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function el(t){return null!=t&&"object"==typeof t}function nl(t,e){return t===e||Oi(t,e,ba(e))}function il(t,e,n){return n="function"==typeof n?n:it,Oi(t,e,ba(e),n)}function rl(t){return ll(t)&&t!=+t}function al(t){if(Mh(t))throw new tc(at);return Ai(t)}function ol(t){return null===t}function sl(t){return null==t}function ll(t){return"number"==typeof t||el(t)&&gi(t)==Zt}function ul(t){if(!el(t)||gi(t)!=Qt)return!1;var e=Mc(t);if(null===e)return!0;var n=dc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&hc.call(n)==gc}function cl(t){return Js(t)&&t>=-Rt&&t<=Rt}function hl(t){return"string"==typeof t||!dd(t)&&el(t)&&gi(t)==ee}function dl(t){return"symbol"==typeof t||el(t)&&gi(t)==ne}function fl(t){return t===it}function pl(t){return el(t)&&wh(t)==re}function ml(t){return el(t)&&gi(t)==ae}function gl(t){if(!t)return[];if(Ws(t))return hl(t)?$(t):Lr(t);if(Cc&&t[Cc])return G(t[Cc]());var e=wh(t);return(e==Xt?V:e==te?X:Zl)(t)}function vl(t){if(!t)return 0===t?t:0;if((t=xl(t))===At||t===-At){return(t<0?-1:1)*Lt}return t===t?t:0}function yl(t){var e=vl(t),n=e%1;return e===e?n?e-n:e:0}function bl(t){return t?ti(yl(t),0,Dt):0}function xl(t){if("number"==typeof t)return t;if(dl(t))return It;if(tl(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tl(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Re,"");var n=Ge.test(t);return n||He.test(t)?Cn(t.slice(2),n?2:8):We.test(t)?It:+t}function _l(t){return Ir(t,zl(t))}function wl(t){return t?ti(yl(t),-Rt,Rt):0===t?t:0}function Ml(t){return null==t?"":hr(t)}function Sl(t,e){var n=uh(t);return null==e?n:Kn(n,e)}function El(t,e){return x(t,va(e,3),hi)}function kl(t,e){return x(t,va(e,3),di)}function Tl(t,e){return null==t?t:dh(t,va(e,3),zl)}function Cl(t,e){return null==t?t:fh(t,va(e,3),zl)}function Pl(t,e){return t&&hi(t,va(e,3))}function Ol(t,e){return t&&di(t,va(e,3))}function Al(t){return null==t?[]:fi(t,Nl(t))}function Rl(t){return null==t?[]:fi(t,zl(t))}function Ll(t,e,n){var i=null==t?it:pi(t,e);return i===it?n:i}function Il(t,e){return null!=t&&Sa(t,e,yi)}function Dl(t,e){return null!=t&&Sa(t,e,bi)}function Nl(t){return Ws(t)?On(t):Ni(t)}function zl(t){return Ws(t)?On(t,!0):zi(t)}function Bl(t,e){var n={};return e=va(e,3),hi(t,function(t,i,r){Jn(n,e(t,i,r),t)}),n}function Fl(t,e){var n={};return e=va(e,3),hi(t,function(t,i,r){Jn(n,i,e(t,i,r))}),n}function Ul(t,e){return jl(t,Cs(va(e)))}function jl(t,e){if(null==t)return{};var n=f(pa(t),function(t){return[t]});return e=va(e),Yi(t,n,function(t,n){return e(t,n[0])})}function Wl(t,e,n){e=_r(e,t);var i=-1,r=e.length;for(r||(r=1,t=it);++ie){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Hc();return Wc(t+r*(e-t+Tn("1e-"+((r+"").length-1))),e)}return Qi(t,e)}function tu(t){return Hd(Ml(t).toLowerCase())}function eu(t){return(t=Ml(t))&&t.replace(Ye,Vn).replace(pn,"")}function nu(t,e,n){t=Ml(t),e=hr(e);var i=t.length;n=n===it?i:ti(yl(n),0,i);var r=n;return(n-=e.length)>=0&&t.slice(n,r)==e}function iu(t){return t=Ml(t),t&&Me.test(t)?t.replace(_e,Hn):t}function ru(t){return t=Ml(t),t&&Ae.test(t)?t.replace(Oe,"\\$&"):t}function au(t,e,n){t=Ml(t),e=yl(e);var i=e?J(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Jr(Dc(r),n)+t+Jr(Ic(r),n)}function ou(t,e,n){t=Ml(t),e=yl(e);var i=e?J(t):0;return e&&i>>0)?(t=Ml(t),t&&("string"==typeof e||null!=e&&!vd(e))&&!(e=hr(e))&&j(t)?wr($(t),0,n):t.split(e,n)):[]}function du(t,e,n){return t=Ml(t),n=null==n?0:ti(yl(n),0,t.length),e=hr(e),t.slice(n,n+e.length)==e}function fu(t,e,i){var r=n.templateSettings;i&&Aa(t,e,i)&&(e=it),t=Ml(t),e=Sd({},e,r,oa);var a,o,s=Sd({},e.imports,r.imports,oa),l=Nl(s),u=I(s,l),c=0,h=e.interpolate||Xe,d="__p += '",f=rc((e.escape||Xe).source+"|"+h.source+"|"+(h===ke?Ue:Xe).source+"|"+(e.evaluate||Xe).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++xn+"]")+"\n";t.replace(f,function(e,n,i,r,s,l){return i||(i=r),d+=t.slice(c,l).replace(Ze,F),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),d+="';\n";var m=e.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(ve,""):d).replace(ye,"$1").replace(be,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=qd(function(){return ec(l,p+"return "+d).apply(it,u)});if(g.source=d,Zs(g))throw g;return g}function pu(t){return Ml(t).toLowerCase()}function mu(t){return Ml(t).toUpperCase()}function gu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Re,"");if(!t||!(e=hr(e)))return t;var i=$(t),r=$(e);return wr(i,N(i,r),z(i,r)+1).join("")}function vu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Ie,"");if(!t||!(e=hr(e)))return t;var i=$(t);return wr(i,0,z(i,$(e))+1).join("")}function yu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Le,"");if(!t||!(e=hr(e)))return t;var i=$(t);return wr(i,N(i,$(e))).join("")}function bu(t,e){var n=Et,i=kt;if(tl(e)){var r="separator"in e?e.separator:r;n="length"in e?yl(e.length):n,i="omission"in e?hr(e.omission):i}t=Ml(t);var a=t.length;if(j(t)){var o=$(t);a=o.length}if(n>=a)return t;var s=n-J(i);if(s<1)return i;var l=o?wr(o,0,s).join(""):t.slice(0,s);if(r===it)return l+i;if(o&&(s+=l.length-s),vd(r)){if(t.slice(s).search(r)){var u,c=l;for(r.global||(r=rc(r.source,Ml(je.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var h=u.index;l=l.slice(0,h===it?s:h)}}else if(t.indexOf(hr(r),s)!=s){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+i}function xu(t){return t=Ml(t),t&&we.test(t)?t.replace(xe,qn):t}function _u(t,e,n){return t=Ml(t),e=n?it:e,e===it?W(t)?nt(t):b(t):t.match(e)||[]}function wu(t){var e=null==t?0:t.length,n=va();return t=e?f(t,function(t){if("function"!=typeof t[1])throw new oc(ot);return[n(t[0]),t[1]]}):[],tr(function(n){for(var i=-1;++iRt)return[];var n=Dt,i=Wc(t,Dt);e=va(e),t-=Dt;for(var r=A(i,e);++n1?t[e-1]:it;return n="function"==typeof n?(t.pop(),n):it,Go(t,n)}),Hh=da(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,a=function(e){return $n(e,t)};return!(e>1||this.__actions__.length)&&i instanceof y&&Oa(n)?(i=i.slice(n,+n+(e?1:0)),i.__actions__.push({func:Xo,args:[a],thisArg:it}),new r(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(a)}),qh=zr(function(t,e,n){dc.call(t,n)?++t[n]:Jn(t,n,1)}),Yh=qr(oo),Xh=qr(so),Zh=zr(function(t,e,n){dc.call(t,n)?t[n].push(e):Jn(t,n,[e])}),Kh=tr(function(t,e,n){var i=-1,r="function"==typeof e,o=Ws(t)?Ju(t.length):[];return ch(t,function(t){o[++i]=r?a(e,t,n):Mi(t,e,n)}),o}),Qh=zr(function(t,e,n){Jn(t,n,e)}),Jh=zr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),$h=tr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Aa(t,e[0],e[1])?e=[]:n>2&&Aa(e[0],e[1],e[2])&&(e=[e[0]]),Hi(t,ci(e,1),[])}),td=Rc||function(){return An.Date.now()},ed=tr(function(t,e,n){var i=mt;if(n.length){var r=q(n,ga(ed));i|=xt}return aa(t,i,e,n,r)}),nd=tr(function(t,e,n){var i=mt|gt;if(n.length){var r=q(n,ga(nd));i|=xt}return aa(e,i,t,n,r)}),id=tr(function(t,e){return ri(t,1,e)}),rd=tr(function(t,e,n){return ri(t,xl(e)||0,n)});Ts.Cache=sn;var ad=gh(function(t,e){e=1==e.length&&dd(e[0])?f(e[0],L(va())):f(ci(e,1),L(va()));var n=e.length;return tr(function(i){for(var r=-1,o=Wc(i.length,n);++r=e}),hd=Si(function(){return arguments}())?Si:function(t){return el(t)&&dc.call(t,"callee")&&!Ec.call(t,"callee")},dd=Ju.isArray,fd=zn?L(zn):Ei,pd=zc||zu,md=Bn?L(Bn):ki,gd=Fn?L(Fn):Pi,vd=Un?L(Un):Ri,yd=jn?L(jn):Li,bd=Wn?L(Wn):Ii,xd=ea(Bi),_d=ea(function(t,e){return t<=e}),wd=Br(function(t,e){if(Na(e)||Ws(e))return void Ir(e,Nl(e),t);for(var n in e)dc.call(e,n)&&Gn(t,n,e[n])}),Md=Br(function(t,e){Ir(e,zl(e),t)}),Sd=Br(function(t,e,n,i){Ir(e,zl(e),t,i)}),Ed=Br(function(t,e,n,i){Ir(e,Nl(e),t,i)}),kd=da($n),Td=tr(function(t,e){t=ic(t);var n=-1,i=e.length,r=i>2?e[2]:it;for(r&&Aa(e[0],e[1],r)&&(i=1);++n1),e}),Ir(t,pa(t),n),i&&(n=ei(n,ct|ht|dt,la));for(var r=e.length;r--;)fr(n,e[r]);return n}),Dd=da(function(t,e){return null==t?{}:qi(t,e)}),Nd=ra(Nl),zd=ra(zl),Bd=Gr(function(t,e,n){return e=e.toLowerCase(),t+(n?tu(e):e)}),Fd=Gr(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Ud=Gr(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),jd=Wr("toLowerCase"),Wd=Gr(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Gd=Gr(function(t,e,n){return t+(n?" ":"")+Hd(e)}),Vd=Gr(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Hd=Wr("toUpperCase"),qd=tr(function(t,e){try{return a(t,it,e)}catch(t){return Zs(t)?t:new tc(t)}}),Yd=da(function(t,e){return s(e,function(e){e=Xa(e),Jn(t,e,ed(t[e],t))}),t}),Xd=Yr(),Zd=Yr(!0),Kd=tr(function(t,e){return function(n){return Mi(n,t,e)}}),Qd=tr(function(t,e){return function(n){return Mi(t,n,e)}}),Jd=Qr(f),$d=Qr(u),tf=Qr(v),ef=ta(),nf=ta(!0),rf=Kr(function(t,e){return t+e},0),af=ia("ceil"),of=Kr(function(t,e){return t/e},1),sf=ia("floor"),lf=Kr(function(t,e){return t*e},1),uf=ia("round"),cf=Kr(function(t,e){return t-e},0);return n.after=xs,n.ary=_s,n.assign=wd,n.assignIn=Md,n.assignInWith=Sd,n.assignWith=Ed,n.at=kd,n.before=ws,n.bind=ed,n.bindAll=Yd,n.bindKey=nd,n.castArray=Ds,n.chain=qo,n.chunk=Ja,n.compact=$a,n.concat=to,n.cond=wu,n.conforms=Mu,n.constant=Su,n.countBy=qh,n.create=Sl,n.curry=Ms,n.curryRight=Ss,n.debounce=Es,n.defaults=Td,n.defaultsDeep=Cd,n.defer=id,n.delay=rd,n.difference=Ch,n.differenceBy=Ph,n.differenceWith=Oh,n.drop=eo,n.dropRight=no,n.dropRightWhile=io,n.dropWhile=ro,n.fill=ao,n.filter=is,n.flatMap=rs,n.flatMapDeep=as,n.flatMapDepth=os,n.flatten=lo,n.flattenDeep=uo,n.flattenDepth=co,n.flip=ks,n.flow=Xd,n.flowRight=Zd,n.fromPairs=ho,n.functions=Al,n.functionsIn=Rl,n.groupBy=Zh,n.initial=mo,n.intersection=Ah,n.intersectionBy=Rh,n.intersectionWith=Lh,n.invert=Pd,n.invertBy=Od,n.invokeMap=Kh,n.iteratee=Tu,n.keyBy=Qh,n.keys=Nl,n.keysIn=zl,n.map=cs,n.mapKeys=Bl,n.mapValues=Fl,n.matches=Cu,n.matchesProperty=Pu,n.memoize=Ts,n.merge=Rd,n.mergeWith=Ld,n.method=Kd,n.methodOf=Qd,n.mixin=Ou,n.negate=Cs,n.nthArg=Lu,n.omit=Id,n.omitBy=Ul,n.once=Ps,n.orderBy=hs,n.over=Jd,n.overArgs=ad,n.overEvery=$d,n.overSome=tf,n.partial=od,n.partialRight=sd,n.partition=Jh,n.pick=Dd,n.pickBy=jl,n.property=Iu,n.propertyOf=Du,n.pull=Ih,n.pullAll=xo,n.pullAllBy=_o,n.pullAllWith=wo,n.pullAt=Dh,n.range=ef,n.rangeRight=nf,n.rearg=ld,n.reject=ps,n.remove=Mo,n.rest=Os,n.reverse=So,n.sampleSize=gs,n.set=Gl,n.setWith=Vl,n.shuffle=vs,n.slice=Eo,n.sortBy=$h,n.sortedUniq=Ro,n.sortedUniqBy=Lo,n.split=hu,n.spread=As,n.tail=Io,n.take=Do,n.takeRight=No,n.takeRightWhile=zo,n.takeWhile=Bo,n.tap=Yo,n.throttle=Rs,n.thru=Xo,n.toArray=gl,n.toPairs=Nd,n.toPairsIn=zd,n.toPath=Wu,n.toPlainObject=_l,n.transform=Hl,n.unary=Ls,n.union=Nh,n.unionBy=zh,n.unionWith=Bh,n.uniq=Fo,n.uniqBy=Uo,n.uniqWith=jo,n.unset=ql,n.unzip=Wo,n.unzipWith=Go,n.update=Yl,n.updateWith=Xl,n.values=Zl,n.valuesIn=Kl,n.without=Fh,n.words=_u,n.wrap=Is,n.xor=Uh,n.xorBy=jh,n.xorWith=Wh,n.zip=Gh,n.zipObject=Vo,n.zipObjectDeep=Ho,n.zipWith=Vh,n.entries=Nd,n.entriesIn=zd,n.extend=Md,n.extendWith=Sd,Ou(n,n),n.add=rf,n.attempt=qd,n.camelCase=Bd,n.capitalize=tu,n.ceil=af,n.clamp=Ql,n.clone=Ns,n.cloneDeep=Bs,n.cloneDeepWith=Fs,n.cloneWith=zs,n.conformsTo=Us,n.deburr=eu,n.defaultTo=Eu,n.divide=of,n.endsWith=nu,n.eq=js,n.escape=iu,n.escapeRegExp=ru,n.every=ns,n.find=Yh,n.findIndex=oo,n.findKey=El,n.findLast=Xh,n.findLastIndex=so,n.findLastKey=kl,n.floor=sf,n.forEach=ss,n.forEachRight=ls,n.forIn=Tl,n.forInRight=Cl,n.forOwn=Pl,n.forOwnRight=Ol,n.get=Ll,n.gt=ud,n.gte=cd,n.has=Il,n.hasIn=Dl,n.head=fo,n.identity=ku,n.includes=us,n.indexOf=po,n.inRange=Jl,n.invoke=Ad,n.isArguments=hd,n.isArray=dd,n.isArrayBuffer=fd,n.isArrayLike=Ws,n.isArrayLikeObject=Gs,n.isBoolean=Vs,n.isBuffer=pd,n.isDate=md,n.isElement=Hs,n.isEmpty=qs,n.isEqual=Ys,n.isEqualWith=Xs,n.isError=Zs,n.isFinite=Ks,n.isFunction=Qs,n.isInteger=Js,n.isLength=$s,n.isMap=gd,n.isMatch=nl,n.isMatchWith=il,n.isNaN=rl,n.isNative=al,n.isNil=sl,n.isNull=ol,n.isNumber=ll,n.isObject=tl,n.isObjectLike=el,n.isPlainObject=ul,n.isRegExp=vd,n.isSafeInteger=cl,n.isSet=yd,n.isString=hl,n.isSymbol=dl,n.isTypedArray=bd,n.isUndefined=fl,n.isWeakMap=pl,n.isWeakSet=ml,n.join=go,n.kebabCase=Fd,n.last=vo,n.lastIndexOf=yo,n.lowerCase=Ud,n.lowerFirst=jd,n.lt=xd,n.lte=_d,n.max=Vu,n.maxBy=Hu,n.mean=qu,n.meanBy=Yu,n.min=Xu,n.minBy=Zu,n.stubArray=Nu,n.stubFalse=zu,n.stubObject=Bu,n.stubString=Fu,n.stubTrue=Uu,n.multiply=lf,n.nth=bo,n.noConflict=Au,n.noop=Ru,n.now=td,n.pad=au,n.padEnd=ou,n.padStart=su,n.parseInt=lu,n.random=$l,n.reduce=ds,n.reduceRight=fs,n.repeat=uu,n.replace=cu,n.result=Wl,n.round=uf,n.runInContext=t,n.sample=ms,n.size=ys,n.snakeCase=Wd,n.some=bs,n.sortedIndex=ko,n.sortedIndexBy=To,n.sortedIndexOf=Co,n.sortedLastIndex=Po,n.sortedLastIndexBy=Oo,n.sortedLastIndexOf=Ao,n.startCase=Gd,n.startsWith=du,n.subtract=cf,n.sum=Ku,n.sumBy=Qu,n.template=fu,n.times=ju,n.toFinite=vl,n.toInteger=yl,n.toLength=bl,n.toLower=pu,n.toNumber=xl,n.toSafeInteger=wl,n.toString=Ml,n.toUpper=mu,n.trim=gu,n.trimEnd=vu,n.trimStart=yu,n.truncate=bu,n.unescape=xu,n.uniqueId=Gu,n.upperCase=Vd,n.upperFirst=Hd,n.each=ss,n.eachRight=ls,n.first=fo,Ou(n,function(){var t={};return hi(n,function(e,i){dc.call(n.prototype,i)||(t[i]=e)}),t}(),{chain:!1}),n.VERSION="4.17.5",s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),s(["drop","take"],function(t,e){y.prototype[t]=function(n){n=n===it?1:jc(yl(n),0);var i=this.__filtered__&&!e?new y(this):this.clone();return i.__filtered__?i.__takeCount__=Wc(n,i.__takeCount__):i.__views__.push({size:Wc(n,Dt),type:t+(i.__dir__<0?"Right":"")}),i},y.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),s(["filter","map","takeWhile"],function(t,e){var n=e+1,i=n==Pt||3==n;y.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:va(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),s(["head","last"],function(t,e){var n="take"+(e?"Right":"");y.prototype[t]=function(){return this[n](1).value()[0]}}),s(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");y.prototype[t]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(ku)},y.prototype.find=function(t){return this.filter(t).head()},y.prototype.findLast=function(t){return this.reverse().find(t)},y.prototype.invokeMap=tr(function(t,e){return"function"==typeof t?new y(this):this.map(function(n){return Mi(n,t,e)})}),y.prototype.reject=function(t){return this.filter(Cs(va(t)))},y.prototype.slice=function(t,e){t=yl(t);var n=this;return n.__filtered__&&(t>0||e<0)?new y(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=yl(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},y.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},y.prototype.toArray=function(){return this.take(Dt)},hi(y.prototype,function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),a=/^(?:head|last)$/.test(e),o=n[a?"take"+("last"==e?"Right":""):e],s=a||/^find/.test(e);o&&(n.prototype[e]=function(){var e=this.__wrapped__,l=a?[1]:arguments,u=e instanceof y,c=l[0],h=u||dd(e),d=function(t){var e=o.apply(n,p([t],l));return a&&f?e[0]:e};h&&i&&"function"==typeof c&&1!=c.length&&(u=h=!1);var f=this.__chain__,m=!!this.__actions__.length,g=s&&!f,v=u&&!m;if(!s&&h){e=v?e:new y(this);var b=t.apply(e,l);return b.__actions__.push({func:Xo,args:[d],thisArg:it}),new r(b,f)}return g&&v?t.apply(this,l):(b=this.thru(d),g?a?b.value()[0]:b.value():b)})}),s(["pop","push","shift","sort","splice","unshift"],function(t){var e=sc[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var n=this.value();return e.apply(dd(n)?n:[],t)}return this[i](function(n){return e.apply(dd(n)?n:[],t)})}}),hi(y.prototype,function(t,e){var i=n[e];if(i){var r=i.name+"";(th[r]||(th[r]=[])).push({name:e,func:i})}}),th[Xr(it,gt).name]=[{name:"wrapper",func:it}],y.prototype.clone=T,y.prototype.reverse=K,y.prototype.value=tt,n.prototype.at=Hh,n.prototype.chain=Zo,n.prototype.commit=Ko,n.prototype.next=Qo,n.prototype.plant=$o,n.prototype.reverse=ts,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=es,n.prototype.first=n.prototype.head,Cc&&(n.prototype[Cc]=Jo),n}();An._=Yn,(r=function(){return Yn}.call(e,n,e,i))!==it&&(i.exports=r)}).call(this)}).call(e,n(111),n(112)(t))},function(t,e,n){t.exports={default:n(298),__esModule:!0}},function(t,e){t.exports={}},function(t,e,n){var i=n(80);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=n(333)(!0);n(84)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";e.a=function(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}},function(t,e,n){"use strict";e.a=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}},function(t,e,n){"use strict";function i(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(t){console.error(t)}}i(),t.exports=n(461)},function(t,e,n){"use strict";var i=n(6);t.exports={generators:{linear:function(t,e){var n,r=[];if(t.stepSize&&t.stepSize>0)n=t.stepSize;else{var a=i.niceNum(e.max-e.min,!1);n=i.niceNum(a/(t.maxTicks-1),!0)}var o=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(o=t.min,s=t.max);var l=(s-o)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),r.push(void 0!==t.min?t.min:o);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var a=i.log10(Math.abs(r)),o="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?"0":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():""}}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(29),r=n(126),a=n(124),o=n(26),s=n(66),l=n(97),u={},c={},e=t.exports=function(t,e,n,h,d){var f,p,m,g,v=d?function(){return t}:l(t),y=i(n,h,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(f=s(t.length);f>b;b++)if((g=e?y(o(p=t[b])[0],p[1]):y(t[b]))===u||g===c)return g}else for(m=v.call(t);!(p=m.next()).done;)if((g=r(m,y,p.value,e))===u||g===c)return g};e.BREAK=u,e.RETURN=c},function(t,e,n){var i=n(131),r=n(82);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(22).f,r=n(37),a=n(17)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){n(338);for(var i=n(18),r=n(34),a=n(41),o=n(17)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;ln.length)for(;this.routingPaths.length>n.length;)this.mapAdapter.removePolyline(this.routingPaths[this.routingPaths.length-1]),this.routingPaths.pop();this.routingPaths.forEach(function(t,i){e.mapAdapter.updatePolyline(t,n[i])})}}},{key:"requestRoute",value:function(t,e,n,i){var r=this;if(t&&e&&n&&i){var a="http://navi-env.axty8vi3ic.us-west-2.elasticbeanstalk.com/dreamview/navigation?origin="+t+","+e+"&destination="+n+","+i+"&heading=0";fetch(encodeURI(a),{method:"GET",mode:"cors"}).then(function(t){return t.arrayBuffer()}).then(function(t){if(!t.byteLength)return void alert("No navigation info received.");r.WS.publishNavigationInfo(t)}).catch(function(t){console.error("Failed to retrieve navigation data:",t)})}}},{key:"sendRoutingRequest",value:function(){if(this.routingRequestPoints){var t=this.routingRequestPoints.length>1?this.routingRequestPoints[0]:this.mapAdapter.getMarkerPosition(this.vehicleMarker),e=this.routingRequestPoints[this.routingRequestPoints.length-1];return this.routingRequestPoints=[],this.requestRoute(t.lat,t.lng,e.lat,e.lng),!0}return alert("Please select a route"),!1}},{key:"addDefaultEndPoint",value:function(t){var e=this;t.forEach(function(t){var n=(0,d.UTMToWGS84)(t.x,t.y),i=(0,a.default)(n,2),r=i[0],o=i[1];e.routingRequestPoints.push({lat:o,lng:r})})}}]),t}(),p=new f;e.default=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){function r(t){if(i){var e=t.clone();i(e)}}p[e]?r(p[e]):new s.default(function(e,n){t?d.load(t,function(t){t.preload(),e(t)}):e(null)}).then(function(t){var i=new u.OBJLoader;t&&i.setMaterials(t),i.load(e,function(t){t.name=e,t.scale.set(n.x,n.y,n.z),p[e]=t,r(t)})}).catch(function(){console.error("Failed to load object.")})}function a(t,e,n){f.load(t,e,void 0,n)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(242),s=i(o);e.loadObject=r,e.loadTexture=a;var l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(539),h=(i(c),n(538)),d=(i(h),new u.MTLLoader),f=new u.TextureLoader;u.TextureLoader.prototype.crossOrigin="";var p={}},function(t,e,n){t.exports={default:n(300),__esModule:!0}},function(t,e,n){"use strict";var i={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||void 0===t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return i.valueOrDefault(i.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,r){var a,o,s;if(i.isArray(t))if(o=t.length,r)for(a=o-1;a>=0;a--)e.call(n,t[a],a);else for(a=0;adocument.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[a[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[o]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(93),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){"use strict";function i(t){return function(){return t}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";e.a=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))}},function(t,e,n){"use strict";e.a=function(t){return.375*t*(1+.25*t*(1+.46875*t))}},function(t,e,n){"use strict";e.a=function(t){return.05859375*t*t*(1+.75*t)}},function(t,e,n){"use strict";e.a=function(t){return t*t*t*(35/3072)}},function(t,e,n){"use strict";e.a=function(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}},function(t,e,n){"use strict";var i=n(7);e.a=function(t,e){for(var n,r,a=.5*t,o=i.a-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),r=i.a-2*Math.atan(e*Math.pow((1-n)/(1+n),a))-o,o+=r,Math.abs(r)<=1e-10)return o;return-9999}},function(t,e,n){"use strict";var i=n(7);e.a=function(t,e,n){var r=t*n,a=.5*t;return r=Math.pow((1-r)/(1+r),a),Math.tan(.5*(i.a-e))/r}},function(t,e,n){"use strict";function i(t){return t.type&&"Tab"===t.type.tabsRole}function r(t){return t.type&&"TabPanel"===t.type.tabsRole}function a(t){return t.type&&"TabList"===t.type.tabsRole}e.b=i,e.c=r,e.a=a},function(t,e,n){"use strict";function i(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t.constructor===Array&&t.length>0)for(;e0?i:n)(t)}},function(t,e,n){var i=n(21);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(18),r=n(11),a=n(63),o=n(96),s=n(22).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},function(t,e,n){e.f=n(17)},function(t,e,n){var i=n(62),r=n(17)("iterator"),a=n(41);t.exports=n(11).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||a[i(t)]}},function(t,e){},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(373),a=i(r),o=n(376),s=i(o),l=n(375),u=i(l),c=n(377),h=i(c),d=n(378),f=i(d),p=n(379),m=i(p),g=n(380),v=i(g),y=n(381),b=i(y),x=n(382),_=i(x),w=n(383),M=i(w),S=n(384),E=i(S),k=n(386),T=i(k),C=n(374),P=i(C),O=[u.default,s.default,h.default,m.default,v.default,b.default,_.default,M.default,E.default,f.default],A=(0,a.default)({prefixMap:P.default.prefixMap,plugins:O},T.default);e.default=A,t.exports=e.default},function(t,e,n){"use strict";function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){"use strict";function i(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/* object-assign (c) Sindre Sorhus @license MIT */ -var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=i(t),u=1;u1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e}},function(t,e,n){"use strict";function i(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),a=e.toLowerCase().replace(r,""),o=-1;++o0?1:-1,d=Math.tan(s)*h,f=h*c.x,p=d*c.y,m=Math.atan2(p,f),g=o.data[0],v=g.tooltipPosition();t.ctx.font=x.default.helpers.fontString(20,"normal","Helvetica Neue"),t.ctx.translate(v.x,v.y),t.ctx.rotate(-m),t.ctx.fillText("►",0,0),t.ctx.restore()}})}}),x.default.defaults.global.defaultFontColor="#FFFFFF";var _=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"initializeCanvas",value:function(t,e){this.name2idx={};var n={title:{display:t&&t.length>0,text:t},legend:{display:e.legend.display},tooltips:{enable:!0,mode:"nearest",intersect:!1}};if(e.axes){n.scales||(n.scales={});for(var i in e.axes){var r=i+"Axes",a=e.axes[i],o={id:i+"-axis-0",scaleLabel:{display:!0,labelString:a.labelString},ticks:{min:a.min,max:a.max},gridLines:{color:"rgba(153, 153, 153, 0.5)",zeroLineColor:"rgba(153, 153, 153, 0.7)"}};n.scales[r]||(n.scales[r]=[]),n.scales[r].push(o)}}var s=this.canvasElement.getContext("2d");this.chart=new x.default(s,{type:"scatter",options:n})}},{key:"updateData",value:function(t,e,n,i){var r=e.substring(0,5);if(void 0===this.chart.data.datasets[t]){var a={label:r,showText:n.showLabel,text:e,backgroundColor:n.color,borderColor:n.color,data:i};for(var o in n)a[o]=n[o];this.chart.data.datasets.push(a)}else this.chart.data.datasets[t].text=e,this.chart.data.datasets[t].data=i}},{key:"updateChart",value:function(t){for(var e in t.properties.lines){void 0===this.name2idx[e]&&(this.name2idx[e]=this.chart.data.datasets.length);var n=this.name2idx[e],i=t.properties.lines[e],r=t.data?t.data[e]:[];this.updateData(n,e,i,r)}var o=(0,a.default)(this.name2idx).length;if(t.boxes)for(var s in t.boxes){var l=t.boxes[s];this.updateData(o,s,t.properties.box,l),o++}this.chart.data.datasets.splice(o,this.chart.data.datasets.length-o),this.chart.update(0)}},{key:"componentDidMount",value:function(){var t=this.props,e=t.title,n=t.options;this.initializeCanvas(e,n),this.updateChart(this.props)}},{key:"componentWillUnmount",value:function(){this.chart.destroy()}},{key:"componentWillReceiveProps",value:function(t){this.updateChart(t)}},{key:"render",value:function(){var t=this,e=this.props;e.data,e.properties,e.options,e.boxes;return v.default.createElement("div",{className:"scatter-graph"},v.default.createElement("canvas",{ref:function(e){t.canvasElement=e}}))}}]),e}(v.default.Component);e.default=_},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.id,n=t.title,i=t.isChecked,r=t.onClick,a=t.disabled,o=t.extraClasses;return m.default.createElement("ul",{className:(0,v.default)({disabled:a},o)},m.default.createElement("li",{id:e,onClick:function(){a||r()}},m.default.createElement("div",{className:"switch"},m.default.createElement("input",{type:"checkbox",className:"toggle-switch",name:e,checked:i,disabled:a,readOnly:!0}),m.default.createElement("label",{className:"toggle-switch-label",htmlFor:e})),m.default.createElement("span",null,n)))}}]),e}(m.default.Component);e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.id,n=t.title,i=(t.options,t.onClick),r=t.checked,a=t.extraClasses;return m.default.createElement("ul",{className:a},m.default.createElement("li",{onClick:i},m.default.createElement("input",{type:"radio",name:e,checked:r,readOnly:!0}),m.default.createElement("label",{className:"radio-selector-label",htmlFor:n}),m.default.createElement("span",null,n)))}}]),e}(m.default.Component);e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ObstacleColorMapping=e.DEFAULT_COLOR=void 0;var r=n(239),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(12),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c),d=n(15),f=i(d),p=n(217),m=i(p),g=n(77),v=n(31),y=n(39),b=e.DEFAULT_COLOR=16711932,x=e.ObstacleColorMapping={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608},_=function(){function t(){(0,s.default)(this,t),this.textRender=new m.default,this.arrows=[],this.ids=[],this.solidCubes=[],this.dashedCubes=[],this.extrusionSolidFaces=[],this.extrusionDashedFaces=[]}return(0,u.default)(t,[{key:"update",value:function(t,e,n){y.isEmpty(this.ids)||(this.ids.forEach(function(t){t.children.forEach(function(t){return t.visible=!1}),n.remove(t)}),this.ids=[]),this.textRender.reset();var i=t.object;if(y.isEmpty(i))return(0,g.hideArrayObjects)(this.arrows),(0,g.hideArrayObjects)(this.solidCubes),(0,g.hideArrayObjects)(this.dashedCubes),(0,g.hideArrayObjects)(this.extrusionSolidFaces),void(0,g.hideArrayObjects)(this.extrusionDashedFaces);for(var r=e.applyOffset({x:t.autoDrivingCar.positionX,y:t.autoDrivingCar.positionY}),o=0,s=0,l=0,u=0;u.5){var m=this.updateArrow(d,c.speedHeading,p,o++,n),v=1+(0,a.default)(c.speed);m.scale.set(v,v,v),m.visible=!0}if(f.default.options.showObstaclesHeading){var _=this.updateArrow(d,c.heading,16777215,o++,n);_.scale.set(1,1,1),_.visible=!0}f.default.options.showObstaclesId&&this.updateIdAndDistance(c.id,new h.Vector3(d.x,d.y,c.height),r.distanceTo(d).toFixed(1),n);var w=c.confidence;w=Math.max(0,w),w=Math.min(1,w);var M=c.polygonPoint;void 0!==M&&M.length>0?(this.updatePolygon(M,c.height,p,e,w,l,n),l+=M.length):c.length&&c.width&&c.height&&this.updateCube(c.length,c.width,c.height,d,c.heading,p,w,s++,n)}}(0,g.hideArrayObjects)(this.arrows,o),(0,g.hideArrayObjects)(this.solidCubes,s),(0,g.hideArrayObjects)(this.dashedCubes,s),(0,g.hideArrayObjects)(this.extrusionSolidFaces,l),(0,g.hideArrayObjects)(this.extrusionDashedFaces,l)}},{key:"updateArrow",value:function(t,e,n,i,r){var a=this.getArrow(i,r);return(0,g.copyProperty)(a.position,t),a.material.color.setHex(n),a.rotation.set(0,0,-(Math.PI/2-e)),a}},{key:"updateIdAndDistance",value:function(t,e,n,i){var r=this.textRender.composeText(t+" D:"+n);if(null!==r){r.position.set(e.x,e.y+.5,e.z||3);var a=i.getObjectByName("camera");void 0!==a&&r.quaternion.copy(a.quaternion),r.children.forEach(function(t){return t.visible=!0}),r.visible=!0,r.name="id_"+t,this.ids.push(r),i.add(r)}}},{key:"updatePolygon",value:function(t,e,n,i,r,a,o){for(var s=0;s0){var u=this.getCube(s,l,!0);u.position.set(i.x,i.y,i.z+n*(o-1)/2),u.scale.set(t,e,n*o),u.material.color.setHex(a),u.rotation.set(0,0,r),u.visible=!0}if(o<1){var c=this.getCube(s,l,!1);c.position.set(i.x,i.y,i.z+n*o/2),c.scale.set(t,e,n*(1-o)),c.material.color.setHex(a),c.rotation.set(0,0,r),c.visible=!0}}},{key:"getArrow",value:function(t,e){if(t2&&void 0!==arguments[2])||arguments[2],i=n?this.extrusionSolidFaces:this.extrusionDashedFaces;if(t2&&void 0!==arguments[2])||arguments[2],i=n?this.solidCubes:this.dashedCubes;if(t0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!1})},point:function(t,e){return a(t,i(e,t))},nearest:function(t,e,n){var r=i(e,t);n.axis=n.axis||"xy";var a=s(n.axis),l=o(t,r,n.intersect,a);return l.length>1&&l.sort(function(t,e){var n=t.getArea(),i=e.getArea(),r=n-i;return 0===r&&(r=t._datasetIndex-e._datasetIndex),r}),l.slice(0,1)},x:function(t,e,n){var a=i(e,t),o=[],s=!1;return r(t,function(t){t.inXRange(a.x)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o},y:function(t,e,n){var a=i(e,t),o=[],s=!1;return r(t,function(t){t.inYRange(a.y)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o}}}},function(t,e,n){"use strict";var i=n(6),r=n(281),a=n(282),o=a._enabled?a:r;t.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},o)},function(t,e,n){var i=n(294),r=n(292),a=function(t){if(t instanceof a)return t;if(!(this instanceof a))return new a(t);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;"string"==typeof t?(e=r.getRgba(t),e?this.setValues("rgb",e):(e=r.getHsla(t))?this.setValues("hsl",e):(e=r.getHwb(t))&&this.setValues("hwb",e)):"object"==typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e))};a.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=t<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,r=void 0===e?.5:e,a=2*r-1,o=n.alpha()-i.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new a,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(t=i[o],e={}.toString.call(t),"[object Array]"===e?r[o]=t.slice(0):"[object Number]"===e?r[o]=t:console.error("unexpected color value:",t));return n}},a.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},a.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a.prototype.getValues=function(t){for(var e=this.values,n={},i=0;il;)i(s,n=e[l++])&&(~a(u,n)||u.push(n));return u}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(26),r=n(21),a=n(86);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports=n(34)},function(t,e,n){"use strict";var i=n(18),r=n(11),a=n(22),o=n(27),s=n(17)("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];o&&e&&!e[s]&&a.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(26),r=n(48),a=n(17)("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},function(t,e,n){var i,r,a,o=n(29),s=n(324),l=n(122),u=n(81),c=n(18),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},i(g),g},f=function(t){delete v[t]},"process"==n(49)(h)?i=function(t){h.nextTick(o(y,t,1))}:m&&m.now?i=function(t){m.now(o(y,t,1))}:p?(r=new p,a=r.port2,r.port1.onmessage=b,i=o(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):i="onreadystatechange"in u("script")?function(t){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e,n){var i=n(21);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";function i(t){return(0,a.default)(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(371),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var a=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([a]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r=56&&d<64&&f>=3&&f<12&&(h=32),d>=72&&d<84&&(f>=0&&f<9?h=31:f>=9&&f<21?h=33:f>=21&&f<33?h=35:f>=33&&f<42&&(h=37)),e=6*(h-1)-180+3,u=o(e),n=.006739496752268451,i=p/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),r=Math.tan(m)*Math.tan(m),a=n*Math.cos(m)*Math.cos(m),s=Math.cos(m)*(g-u),l=p*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var v=.9996*i*(s+(1-r+a)*s*s*s/6+(5-18*r+r*r+72*a-58*n)*s*s*s*s*s/120)+5e5,y=.9996*(l+i*Math.tan(m)*(s*s/2+(5-r+9*a+4*a*a)*s*s*s*s/24+(61-58*r+r*r+600*a-330*n)*s*s*s*s*s*s/720));return d<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:h,zoneLetter:c(d)}}function u(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var a,o,l,c,h,d,f,p,m,g,v=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),b=n-5e5,x=e;i<"N"&&(x-=1e7),p=6*(r-1)-180+3,a=.006739496752268451,f=x/.9996,m=f/6367449.145945056,g=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),o=v/Math.sqrt(1-.00669438*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),c=a*Math.cos(g)*Math.cos(g),h=.99330562*v/Math.pow(1-.00669438*Math.sin(g)*Math.sin(g),1.5),d=b/(.9996*o);var _=g-o*Math.tan(g)/h*(d*d/2-(5+3*l+10*c-4*c*c-9*a)*d*d*d*d/24+(61+90*l+298*c+45*l*l-252*a-3*c*c)*d*d*d*d*d*d/720);_=s(_);var w=(d-(1+2*l+c)*d*d*d/6+(5-2*c+28*l-3*c*c+8*a+24*l*l)*d*d*d*d*d/120)/Math.cos(g);w=p+s(w);var M;if(t.accuracy){var S=u({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});M={top:S.lat,right:S.lon,bottom:_,left:w}}else M={lat:_,lon:w};return M}function c(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function h(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+d(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function d(t,e,n){var i=f(n);return p(Math.floor(t/1e5),Math.floor(e/1e5)%20,i)}function f(t){var e=t%b;return 0===e&&(e=b),e}function p(t,e,n){var i=n-1,r=x.charCodeAt(i),a=_.charCodeAt(i),o=r+t-1,s=a+e,l=!1;return o>k&&(o=o-k+w-1,l=!0),(o===M||rM||(o>M||rS||(o>S||rk&&(o=o-k+w-1),s>E?(s=s-E+w-1,l=!0):l=!1,(s===M||aM||(s>M||aS||(s>S||aE&&(s=s-E+w-1),String.fromCharCode(o)+String.fromCharCode(s)}function m(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,i=null,r="",a=0;!/[A-Z]/.test(e=t.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,a++}var o=parseInt(r,10);if(0===a||a+3>n)throw"MGRSPoint bad conversion from: "+t;var s=t.charAt(a++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+t;i=t.substring(a,a+=2);for(var l=f(o),u=g(i.charAt(0),l),c=v(i.charAt(1),l);c0&&(d=1e5/Math.pow(10,_),p=t.substring(a,a+_),w=parseFloat(p)*d,m=t.substring(a+_),M=parseFloat(m)*d),b=w+u,x=M+c,{easting:b,northing:x,zoneLetter:s,zoneNumber:o,accuracy:d}}function g(t,e){for(var n=x.charCodeAt(e-1),i=1e5,r=!1;n!==t.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>k){if(r)throw"Bad character: "+t;n=w,r=!0}i+=1e5}return i}function v(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var n=_.charCodeAt(e-1),i=0,r=!1;n!==t.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>E){if(r)throw"Bad character: "+t;n=w,r=!0}i+=1e5}return i}function y(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}e.c=i,e.b=a;var b=6,x="AJSAJS",_="AFAFAF",w=65,M=73,S=79,E=86,k=90;e.a={forward:i,inverse:r,toPoint:a}},function(t,e,n){"use strict";e.a=function(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}},function(t,e,n){"use strict";var i=.01068115234375;e.a=function(t){var e=[];e[0]=1-t*(.25+t*(.046875+t*(.01953125+t*i))),e[1]=t*(.75-t*(.046875+t*(.01953125+t*i)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}},function(t,e,n){"use strict";var i=n(105),r=n(7);e.a=function(t,e,a){for(var o=1/(1-e),s=t,l=20;l;--l){var u=Math.sin(s),c=1-e*u*u;if(c=(n.i(i.a)(s,u,Math.cos(s),a)-t)*(c*Math.sqrt(c))*o,s-=c,Math.abs(c)2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}},function(t,e,n){"use strict";function i(t){var e=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?i[t]=n.i(a.a)(arguments[1]):i[t]=n.i(o.a)(arguments[1]):i[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?i.apply(e,t):i(t)});if("string"==typeof t){if(t in i)return i[t]}else"EPSG"in t?i["EPSG:"+t.EPSG]=t:"ESRI"in t?i["ESRI:"+t.ESRI]=t:"IAU2000"in t?i["IAU2000:"+t.IAU2000]=t:console.log(t);return}}var r=n(426),a=n(152),o=n(159);n.i(r.a)(i),e.a=i},function(t,e,n){"use strict";var i=n(7),r=n(418),a=n(419),o=n(107);e.a=function(t){var e,s,l,u={},c=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),h={proj:"projName",datum:"datumCode",rf:function(t){u.rf=parseFloat(t)},lat_0:function(t){u.lat0=t*i.g},lat_1:function(t){u.lat1=t*i.g},lat_2:function(t){u.lat2=t*i.g},lat_ts:function(t){u.lat_ts=t*i.g},lon_0:function(t){u.long0=t*i.g},lon_1:function(t){u.long1=t*i.g},lon_2:function(t){u.long2=t*i.g},alpha:function(t){u.alpha=parseFloat(t)*i.g},lonc:function(t){u.longc=t*i.g},x_0:function(t){u.x0=parseFloat(t)},y_0:function(t){u.y0=parseFloat(t)},k_0:function(t){u.k0=parseFloat(t)},k:function(t){u.k0=parseFloat(t)},a:function(t){u.a=parseFloat(t)},b:function(t){u.b=parseFloat(t)},r_a:function(){u.R_A=!0},zone:function(t){u.zone=parseInt(t,10)},south:function(){u.utmSouth=!0},towgs84:function(t){u.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){u.to_meter=parseFloat(t)},units:function(t){u.units=t;var e=n.i(o.a)(a.a,t);e&&(u.to_meter=e.to_meter)},from_greenwich:function(t){u.from_greenwich=t*i.g},pm:function(t){var e=n.i(o.a)(r.a,t);u.from_greenwich=(e||parseFloat(t))*i.g},nadgrids:function(t){"@null"===t?u.datumCode="none":u.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(u.axis=t)}};for(e in c)s=c[e],e in h?(l=h[e],"function"==typeof l?l(s):u[l]=s):u[e]=s;return"string"==typeof u.datumCode&&"WGS84"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(t,e,n){"use strict";function i(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),i*=e,this.cgb[1]=i*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i*=e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),i*=e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(e*(-24832/14175)-2.4)),i*=e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i*=e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(.25+i*(1/64+i/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),i*=e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i*=e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i*=e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i*=e,this.utg[5]=-.03233083094085698*i,this.gtu[5]=.6650675310896665*i;var r=n.i(u.a)(this.cbg,this.lat0);this.Zb=-this.Qn*(r+n.i(c.a)(this.gtu,2*r))}function r(t){var e=n.i(d.a)(t.x-this.long0),i=t.y;i=n.i(u.a)(this.cbg,i);var r=Math.sin(i),a=Math.cos(i),o=Math.sin(e),c=Math.cos(e);i=Math.atan2(r,c*a),e=Math.atan2(o*a,n.i(s.a)(r,a*c)),e=n.i(l.a)(Math.tan(e));var f=n.i(h.a)(this.gtu,2*i,2*e);i+=f[0],e+=f[1];var p,m;return Math.abs(e)<=2.623395162778?(p=this.a*(this.Qn*e)+this.x0,m=this.a*(this.Qn*i+this.Zb)+this.y0):(p=1/0,m=1/0),t.x=p,t.y=m,t}function a(t){var e=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,e/=this.Qn;var r,a;if(Math.abs(e)<=2.623395162778){var l=n.i(h.a)(this.utg,2*i,2*e);i+=l[0],e+=l[1],e=Math.atan(n.i(o.a)(e));var c=Math.sin(i),f=Math.cos(i),p=Math.sin(e),m=Math.cos(e);i=Math.atan2(c*m,n.i(s.a)(p,m*f)),e=Math.atan2(p,m*f),r=n.i(d.a)(e+this.long0),a=n.i(u.a)(this.cgb,i)}else r=1/0,a=1/0;return t.x=r,t.y=a,t}var o=n(149),s=n(146),l=n(408),u=n(412),c=n(409),h=n(410),d=n(10),f=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"];e.a={init:i,forward:r,inverse:a,names:f}},function(t,e,n){"use strict";function i(t,e){return(t.datum.datum_type===a.h||t.datum.datum_type===a.i)&&"WGS84"!==e.datumCode||(e.datum.datum_type===a.h||e.datum.datum_type===a.i)&&"WGS84"!==t.datumCode}function r(t,e,h){var d;return Array.isArray(h)&&(h=n.i(u.a)(h)),n.i(c.a)(h),t.datum&&e.datum&&i(t,e)&&(d=new l.a("WGS84"),h=r(t,d,h),t=d),"enu"!==t.axis&&(h=n.i(s.a)(t,!1,h)),"longlat"===t.projName?h={x:h.x*a.g,y:h.y*a.g}:(t.to_meter&&(h={x:h.x*t.to_meter,y:h.y*t.to_meter}),h=t.inverse(h)),t.from_greenwich&&(h.x+=t.from_greenwich),h=n.i(o.a)(t.datum,e.datum,h),e.from_greenwich&&(h={x:h.x-e.from_greenwich,y:h.y}),"longlat"===e.projName?h={x:h.x*a.j,y:h.y*a.j}:(h=e.forward(h),e.to_meter&&(h={x:h.x/e.to_meter,y:h.y/e.to_meter})),"enu"!==e.axis?n.i(s.a)(e,!0,h):h}e.a=r;var a=n(7),o=n(423),s=n(405),l=n(102),u=n(150),c=n(406)},function(t,e,n){"use strict";function i(t){var e=0;return n.i(a.b)(t,function(t){n.i(o.b)(t)&&e++}),e}function r(t){var e=0;return n.i(a.b)(t,function(t){n.i(o.c)(t)&&e++}),e}e.a=i,e.b=r;var a=n(109),o=n(76)},function(t,e,n){"use strict";n(109),n(76)},function(t,e,n){"use strict";function i(){return"react-tabs-"+a++}function r(){a=0}e.b=i,e.a=r;var a=0},function(t,e,n){function i(t,e){for(var n=0;n=0&&b.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),a(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),a(t,e),e}function u(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function c(t,e){var n,i,r,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var u=y++;n=v||(v=s(e)),i=h.bind(null,n,u,!1),r=h.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(e),i=f.bind(null,n,e),r=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=d.bind(null,n),r=function(){o(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function h(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function d(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function f(t,e,n){var i=n.css,r=n.sourceMap,a=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||a)&&(i=x(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var p={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),v=null,y=0,b=[],x=n(479);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return i(n,e),function(t){for(var a=[],o=0;o0?90:-90),t.lat_ts=t.lat1)}var o=n(487),s=n(488),l=.017453292519943295;e.a=function(t){var e=n.i(o.a)(t),i=e.shift(),r=e.shift();e.unshift(["name",r]),e.unshift(["type",i]);var l={};return n.i(s.a)(e,l),a(l),l}},function(t,e,n){t.exports=n.p+"assets/3WNj6QfIN0cgE7u5icG0Zx.png"},function(t,e,n){t.exports=n.p+"assets/ZzXs2hkPaGeWT_N6FgGOx.png"},function(t,e,n){t.exports=n.p+"assets/13lPmuYsGizUIj_HGNYM82.png"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(465),x=i(b),_=n(169),w=i(_),M=n(170),S=i(M),E=n(171),k=i(E),T=n(180),C=i(T),P=n(192),O=i(P),A=n(16),R=i(A),L=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.handleDrag=n.handleDrag.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleDrag",value:function(t){this.props.store.options.showPNCMonitor&&this.props.store.updateWidthInPercentage(Math.min(1,t/window.innerWidth))}},{key:"componentWillMount",value:function(){this.props.store.updateDimension()}},{key:"componentDidMount",value:function(){var t=this;R.default.initialize(),A.MAP_WS.initialize(),A.POINT_CLOUD_WS.initialize(),window.addEventListener("resize",function(){t.props.store.updateDimension()})}},{key:"render",value:function(){var t=this.props.store,e=(t.isInitialized,t.dimension),n=(t.sceneDimension,t.options);t.hmi;return v.default.createElement("div",null,v.default.createElement(w.default,null),v.default.createElement("div",{className:"pane-container"},v.default.createElement(x.default,{split:"vertical",size:e.width,onChange:this.handleDrag,allowResize:n.showPNCMonitor},v.default.createElement("div",{className:"left-pane"},v.default.createElement(O.default,null),v.default.createElement("div",{className:"dreamview-body"},v.default.createElement(S.default,null),v.default.createElement(k.default,null))),v.default.createElement("div",{className:"right-pane"},n.showPNCMonitor&&v.default.createElement(C.default,null)))))}}]),e}(v.default.Component))||a)||a;e.default=L},function(t,e,n){var i=n(235);"string"==typeof i&&(i=[[t.i,i,""]]);var r={};r.transform=void 0;n(158)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=n(46),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),o=n(2),s=i(o),l=n(8);n(164);var u=n(15),c=i(u),h=n(163),d=i(h);a.render(s.default.createElement(l.Provider,{store:c.default},s.default.createElement(d.default,null)),document.getElementById("root"))},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(16),x=i(b),_=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={event_msg:""},n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleChange",value:function(t){this.setState({event_msg:t.target.value})}},{key:"handleSubmit",value:function(){var t=this.props,e=t.event_time_ms,n=t.hide_func;x.default.submitDriveEvent(e,this.state.event_msg),n()}},{key:"render",value:function(){var t=this.props,e=t.event_time_ms,n=t.hide_func;return v.default.createElement("div",{className:"card drive-event-card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Adding New DriveEvent")),v.default.createElement("div",{className:"card-content-column"},v.default.createElement("table",null,v.default.createElement("tbody",null,v.default.createElement("tr",null,v.default.createElement("td",null,"Event time"),v.default.createElement("td",null,e)),v.default.createElement("tr",null,v.default.createElement("td",null,"Message"),v.default.createElement("td",null,v.default.createElement("input",{type:"text",className:"drive-event-msg",value:this.state.event_msg,onChange:this.handleChange}))))),v.default.createElement("table",{className:"toolbar"},v.default.createElement("tbody",null,v.default.createElement("tr",null,v.default.createElement("td",null,v.default.createElement("button",{onClick:n},"Cancel")),v.default.createElement("td",null,v.default.createElement("button",{onClick:this.handleSubmit},"Submit")))))))}}]),e}(v.default.Component),w=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={newDriveEventTimeMs:0,showDriveEvent:!1},n.handleNewDriveEvent=n.handleNewDriveEvent.bind(n),n.hideDriveEventEditor=n.hideDriveEventEditor.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleNewDriveEvent",value:function(){this.setState({newDriveEventTimeMs:(new Date).getTime(),showDriveEvent:!0})}},{key:"hideDriveEventEditor",value:function(){this.setState({showDriveEvent:!1})}},{key:"render",value:function(){return v.default.createElement("div",{className:"data-recorder"},v.default.createElement("div",{className:"card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Operations")),v.default.createElement("div",{className:"card-content-column"},v.default.createElement("button",{onClick:this.handleNewDriveEvent},"New DriveEvent"))),this.state.showDriveEvent&&v.default.createElement(_,{event_time_ms:this.state.newDriveEventTimeMs,hide_func:this.hideDriveEventEditor}))}}]),e}(v.default.Component))||a)||a;e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(32),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(28),w=(i(_),n(168)),M=i(w),S=n(16),E=i(S),k=(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store.hmi,n=e.modes,i=e.currentMode,r=e.maps,a=e.currentMap,o=e.vehicles,l=e.currentVehicle;return b.default.createElement("div",{className:"header"},b.default.createElement(M.default,{name:"setup mode",options:(0,s.default)(n).sort(),currentOption:i,onChange:function(e){t.props.store.hmi.currentMode=e.target.value,E.default.changeSetupMode(e.target.value)}}),b.default.createElement(M.default,{name:"vehicle",options:o,currentOption:l,onChange:function(t){E.default.changeVehicle(t.target.value)}}),b.default.createElement(M.default,{name:"map",options:r,currentOption:a,onChange:function(t){E.default.changeMap(t.target.value)}}))}}]),e}(b.default.Component))||a)||a;e.default=k},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(16),v=(i(g),function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={name:t.name,value:t.currentOption},n.onChangeHandler=n.onChangeHandler.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"onChangeHandler",value:function(t){this.setState({value:t.target.value}),this.props.onChange(t)}},{key:"componentWillReceiveProps",value:function(t){t.currentOption!==this.props.currentOption&&this.setState({value:t.currentOption})}},{key:"render",value:function(){var t=this.props;t.name,t.options,t.currentOption,t.onChange;return this.entries=this.props.options.map(function(t){return m.default.createElement("option",{value:t,key:t},t)}),this.entries.unshift(m.default.createElement("option",{key:"none",value:"none",disabled:!0},"-- "+this.state.name+" --")),m.default.createElement("div",{className:"selector"},m.default.createElement("span",{className:"arrow"}),m.default.createElement("select",{onChange:this.onChangeHandler,value:this.state.value},this.entries))}}]),e}(m.default.Component));e.default=v},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(205),v=i(g),y=n(162),b=i(y),x=n(167),_=i(x),w=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){return m.default.createElement("header",{className:"header"},m.default.createElement(v.default,{image:b.default,className:"apollo-logo"}),m.default.createElement(_.default,null))}}]),e}(m.default.Component);e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o,s,l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(177),w=i(_),M=n(185),S=i(M),E=n(199),k=i(E),T=n(187),C=i(T),P=n(206),O=i(P),A=n(183),R=(i(A),function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){return b.default.createElement("div",{className:"video"},b.default.createElement("img",{src:"/image"}))}}]),e}(b.default.Component)),L=(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this.props.store,e=t.sceneDimension,n=t.meters,i=t.monitor,r=t.options,a=t.trafficSignal,o=(t.video,t.hmi);return b.default.createElement("div",{className:"main-view",style:{height:e.height}},b.default.createElement(C.default,{width:e.width,height:e.height,options:r,invisible:!1}),r.showRouteEditingBar?b.default.createElement(S.default,null):b.default.createElement(k.default,{meters:n,trafficSignal:a,showNotification:!r.showTasks,monitor:i}),r.showVideo&&b.default.createElement(R,null),!1,o.inNavigationMode&&b.default.createElement(w.default,{viewHeight:e.height,viewWidth:e.width}))}}]),e}(b.default.Component))||a)||a,I=(o=(0,x.inject)("store"))(s=(0,x.observer)(s=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this.props.store,e=t.isInitialized,n=t.sceneDimension;return e?b.default.createElement(L,null):b.default.createElement(O.default,{height:n.height})}}]),e}(b.default.Component))||s)||s;e.default=I},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(166),x=i(b),_=n(173),w=i(_),M=n(189),S=i(M),E=n(190),k=i(E),T=n(204),C=i(T),P=n(58),O=(i(P),(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props.store,e=t.options,n=t.routeEditingManager,i=t.hmi;return v.default.createElement("div",{className:"tools"},e.showTasks&&v.default.createElement(C.default,null),e.showModuleController&&v.default.createElement(w.default,null),e.showMenu&&v.default.createElement(S.default,{options:e}),e.showPOI&&v.default.createElement(k.default,{routeEditingManager:n,options:e,inNavigationMode:i.inNavigationMode}),e.showDataRecorder&&v.default.createElement(x.default,null))}}]),e}(v.default.Component))||a)||a);e.default=O},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y={OK:"#1C9063",NOT_READY:"#B43131",NOT_PRESENT:"#B43131",ERR:"#B43131",UNDEF:"#B43131"},b=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.title,n=t.status;return g.default.createElement("div",{className:"status-display"},g.default.createElement("div",{className:"name"},e),g.default.createElement("div",{className:"status"},g.default.createElement("span",null,n.replace("_"," ")),g.default.createElement("span",{className:"status-icon",style:{backgroundColor:y[n]}})))}}]),e}(g.default.Component))||r;e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(237),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(114),w=i(_),M=n(172),S=i(M),E=n(16),k=(i(E),(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store.hmi,n=e.modes,i=e.currentMode,r=e.moduleStatus,a=e.hardwareStatus,o=e.displayName,l="none"!==i?n[i].liveModules:(0,s.default)(r.keys()),u="none"!==i?n[i].liveHardware:(0,s.default)(a.keys()),c=l.sort().map(function(e){return b.default.createElement(w.default,{key:e,id:e,title:o[e],disabled:!1,isChecked:r.get(e),onClick:function(){t.props.store.hmi.toggleModule(e)},extraClasses:"controller"})}),h=u.map(function(t){return b.default.createElement(S.default,{key:t,title:o[t],status:a.get(t)})});return b.default.createElement("div",{className:"module-controller"},b.default.createElement("div",{className:"card"},b.default.createElement("div",{className:"card-header"},b.default.createElement("span",null,"Hardware")),b.default.createElement("div",{className:"card-content-column"},h)),b.default.createElement("div",{className:"card"},b.default.createElement("div",{className:"card-header"},b.default.createElement("span",null,"Modules")),b.default.createElement("div",{className:"card-content-row"},c)))}}]),e}(b.default.Component))||a)||a);e.default=k},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(5),s=i(o),l=n(4),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=function(){function t(){(0,h.default)(this,t),this.map=null,this.controls=[]}return(0,f.default)(t,[{key:"isInitialized",value:function(){return null!==this.map}},{key:"loadMap",value:function(t,e){this.map=new BMap.Map(e,{enableMapClick:!1}),this.map.centerAndZoom(t,19),this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.MapTypeControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_SMALL})),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL,enableGeolocation:!1}))}},{key:"setCenter",value:function(t){this.map.setCenter(t)}},{key:"setZoom",value:function(t){this.map.setZoom(t)}},{key:"addEventHandler",value:function(t,e){this.map.addEventListener(t,function(t){var n=t.point;e(n)})}},{key:"createPoint",value:function(t){var e=t.lat,n=t.lng;return new BMap.Point(n,e)}},{key:"createMarker",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=null;e&&(i=new BMap.Label(e,{point:t,offset:new BMap.Size(15,-15)}));var r=new BMap.Marker(t,{label:i,enableDragging:n,rotation:5});return r.setLabel(i),this.map.addOverlay(r),r}},{key:"createPolyline",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,r={geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:i},a=new BMap.Polyline(t,r);return this.map.addOverlay(a),a}},{key:"createControl",value:function(t){var e=t.text,n=t.tip,i=t.color,r=t.offsetX,a=t.offsetY,o=t.onClickHandler,s=new m(e,n,i,new BMap.Size(r,a),o);this.map.addControl(s),this.controls.push(s)}},{key:"disableControls",value:function(){var t=this;this.controls.forEach(function(e){t.map.removeControl(e)})}},{key:"enableControls",value:function(){var t=this;this.controls.forEach(function(e){t.map.addControl(e)})}},{key:"getMarkerPosition",value:function(t){return t.getPosition()}},{key:"updatePolyline",value:function(t,e){t.setPath(e)}},{key:"removePolyline",value:function(t){this.map.removeOverlay(t)}}]),t}();e.default=p;var m=function(t){function e(t,n,i,r,o){var l;(0,h.default)(this,e);for(var u=arguments.length,c=Array(u>5?u-5:0),d=5;d2&&void 0!==arguments[2])||arguments[2];return new google.maps.Marker({position:t,label:e,draggable:n,map:this.map})}},{key:"createPolyline",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return new google.maps.Polyline({path:t,geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:i,map:this.map})}},{key:"createControl",value:function(t){var e=t.text,n=t.tip,i=t.color,r=(t.offsetX,t.offsetY,t.onClickHandler),a=document.createElement("div"),o=document.createElement("div");o.style.backgroundColor=i,o.style.border="2px solid #fff",o.style.borderRadius="3px",o.style.boxShadow="0 2px 6px rgba(0,0,0,.3)",o.style.cursor="pointer",o.style.marginBottom="22px",o.style.textAlign="center",o.title=n,a.appendChild(o);var s=document.createElement("div");s.style.color="rgb(25,25,25)",s.style.fontFamily="Roboto,Arial,sans-serif",s.style.fontSize="16px",s.style.lineHeight="38px",s.style.paddingLeft="5px",s.style.paddingRight="5px",s.innerHTML=e,o.appendChild(s),o.addEventListener("click",function(){r(s)}),this.map.controls[google.maps.ControlPosition.TOP_CENTER].push(a),this.controls.push(a)}},{key:"disableControls",value:function(){this.controls.forEach(function(t){t.style.display="none"})}},{key:"enableControls",value:function(){this.controls.forEach(function(t){t.style.display="block"})}},{key:"getMarkerPosition",value:function(t){var e=t.getPosition();return{lat:e.lat(),lng:e.lng()}}},{key:"updatePolyline",value:function(t,e){t.setPath(e)}},{key:"removePolyline",value:function(t){t.setMap(null)}}]),t}();e.default=l},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"getMaximizingIcon",value:function(){return m.default.createElement("svg",{viewBox:"0 0 20 20"},m.default.createElement("defs",null,m.default.createElement("path",{d:"M20 0L0 20h20V0z",id:"a"}),m.default.createElement("path",{d:"M11.53 18.5l-.03-7h7",id:"b"}),m.default.createElement("path",{d:"M12 12l7 7",id:"c"})),m.default.createElement("use",{xlinkHref:"#a",opacity:".6",fill:"#549BFF"}),m.default.createElement("use",{xlinkHref:"#b",fillOpacity:"0",stroke:"#006AFF",strokeWidth:"2"}),m.default.createElement("use",{xlinkHref:"#c",fillOpacity:"0",stroke:"#006AFF",strokeWidth:"2"}))}},{key:"getMinimizingIcon",value:function(){return m.default.createElement("svg",{viewBox:"0 0 20 20"},m.default.createElement("defs",null,m.default.createElement("path",{d:"M20 0L0 20h20V0z",id:"a"}),m.default.createElement("path",{d:"M18.47 11.5l.03 7h-7",id:"b"}),m.default.createElement("path",{d:"M11 11l7 7",id:"c"})),m.default.createElement("use",{xlinkHref:"#a",opacity:".6",fill:"#549BFF"}),m.default.createElement("use",{xlinkHref:"#b",fillOpacity:"0",stroke:"#006AFF",strokeWidth:"2"}),m.default.createElement("use",{xlinkHref:"#c",fillOpacity:"0",stroke:"#006AFF",strokeWidth:"2"}))}},{key:"render",value:function(){var t=this.props,e=t.type,n=t.onClick,i=null;switch(e){case"minimizing":i=this.getMinimizingIcon();break;case"maximizing":i=this.getMaximizingIcon()}return m.default.createElement("div",{className:"window-resize-control",onClick:n},i)}}]),e}(m.default.PureComponent);e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(28),v=i(g),y=n(176),b=i(y),x=n(58),_=i(x),w=n(174),M=i(w),S=n(175),E=i(S),k=n(16),T=i(k),C=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={routingView:!1},n.onClickHandler=n.onClickHandler.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"onClickHandler",value:function(){var t=!this.state.routingView;t?_.default.enableControls():_.default.disableControls(),this.setState({routingView:t})}},{key:"componentDidMount",value:function(){var t="GoogleMap"===v.default.navigation.map?new E.default:new M.default;_.default.initialize(T.default,t),_.default.disableControls()}},{key:"componentWillUnmount",value:function(){_.default.reset()}},{key:"render",value:function(){var t=this.props,e=t.viewHeight,n=t.viewWidth,i=0,r=0,a=n,o=e,s="maximizing";return this.state.routingView||(i=10,r=20,a=Math.min(.3*n,250),o=Math.min(.5*e,300),s="minimizing"),m.default.createElement("div",{displayname:"navigation",className:"navigation-view",style:{width:a,height:o,top:i,left:r}},m.default.createElement("div",{id:"map_canvas"}),m.default.createElement(b.default,{type:s,onClick:this.onClickHandler}))}}]),e}(m.default.Component);e.default=C},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(539),x=i(b),_=n(113),w=i(_),M=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"generateScatterGraph",value:function(t,e){return void 0===x.default[t]?(console.error("Graph setting not found: ",t),null):v.default.createElement(w.default,{title:x.default[t].title,options:x.default[t].options,properties:x.default[t].properties,data:e})}},{key:"render",value:function(){var t=this.props.store.controlData,e=t.lastUpdatedTime,n=t.data;return e?v.default.createElement("div",null,this.generateScatterGraph("trajectoryGraph",n.trajectoryGraph),this.generateScatterGraph("speedGraph",n.speedGraph),this.generateScatterGraph("accelerationGraph",n.accelerationGraph),this.generateScatterGraph("curvatureGraph",n.curvatureGraph),this.generateScatterGraph("stationErrorGraph",n.stationErrorGraph)):null}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(40),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(540),w=i(_),M=n(113),S=i(M),E=(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"generateStGraph",value:function(t){var e=[],n=["DpStSpeedOptimizer","QpSplineStSpeedOptimizer"],i=!0,r=!1,a=void 0;try{for(var o,l=(0,s.default)(n);!(i=(o=l.next()).done);i=!0){var u=o.value,c=t[u],h=c?c.obstaclesBoundary:[];e.push(b.default.createElement(S.default,{key:"stGraph_"+u,title:u,options:w.default.stGraph.options,properties:w.default.stGraph.properties,data:c,boxes:h}))}}catch(t){r=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}return e}},{key:"generateScatterGraph",value:function(t,e){return void 0===w.default[t]?(console.error("Graph setting not found: ",t),null):b.default.createElement(S.default,{title:w.default[t].title,options:w.default[t].options,properties:w.default[t].properties,data:e})}},{key:"render",value:function(){var t=this.props.store.planningData,e=t.planningTime,n=t.data,i=t.latencyGraph;return e?b.default.createElement("div",null,this.generateScatterGraph("speedGraph",n.speedGraph),this.generateScatterGraph("accelerationGraph",n.accelerationGraph),this.generateScatterGraph("thetaGraph",n.thetaGraph),this.generateScatterGraph("kappaGraph",n.kappaGraph),this.generateScatterGraph("dpPolyGraph",n.dpPolyGraph),this.generateStGraph(n.stGraph),this.generateScatterGraph("stSpeedGraph",n.stSpeedGraph.QpSplineStSpeedOptimizer),this.generateScatterGraph("latencyGraph",i),this.generateScatterGraph("dkappaGraph",n.dkappaGraph)):null}}]),e}(b.default.Component))||a)||a;e.default=E},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(475),v=n(179),y=i(v),b=n(178),x=i(b),_=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){return m.default.createElement("div",{className:"pnc-monitor"},m.default.createElement(g.Tabs,null,m.default.createElement(g.TabList,null,m.default.createElement(g.Tab,null,"Planning"),m.default.createElement(g.Tab,null,"Control")),m.default.createElement(g.TabPanel,null,m.default.createElement(y.default,null)),m.default.createElement(g.TabPanel,null,m.default.createElement(x.default,null))))}}]),e}(m.default.Component);e.default=_},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 10 10",onClick:t},m.default.createElement("polygon",{className:"play",points:"0 0, 10 5, 0 10"}))}}]),e}(m.default.Component),b=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 100 100",onClick:t},m.default.createElement("path",{className:"replay",d:"M0.166,49.438C0.166,75.152,20.744,96,46.125,96 c12.096,0,23.1-4.731,31.306-12.469 c2.144-2.021-8.776-12.227-10.269-10.84 c-5.54,5.146-12.926,8.286-21.037,8.286 c-17.193,0-31.133-14.122-31.133-31.544s13.939-31.545,31.133-31.545 c17.197,0,31.135,11.108,31.135,28.5 c0,0.007,0.021,0.062,0.049,0.069 L75.778,48c-3.484,0-5.931,0-5.931,0l14.826,18.023 L99.5,48 c0,0-2.447,0-5.931,0l-1.531-1.514 c0.017-0.006,0.05-0.015,0.05-0.021 c0-25.716-20.578-43.574-45.963-43.574 C20.744,2.891,0.166,23.723,0.166,49.438 z M78.743,44.933 l0.115,0.023l-0.089,0.086 C78.754,44.977,78.743,44.933,78.743,44.933 z"}))}}]),e}(m.default.Component),x=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 20 20",onClick:t},m.default.createElement("polygon",{className:"pause",points:"4 0, 6 0, 6 20, 4 20"}),m.default.createElement("polygon",{className:"pause",points:"13 0, 15 0, 15 20, 13 20"}))}}]),e}(m.default.Component),_=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 70 70"},m.default.createElement("path",{className:"fullscreen",d:"M0 25 V0 H25 M0 45 V70 H25 M45 0 H70 V25 M45 70 H70 V45"}))}}]),e}(m.default.Component),w=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 70 70"},m.default.createElement("path",{className:"exit-fullscreen",d:"M0 25 H25 V0 M0 45 H25 V70 M45 0 V25 H70 M45 70 V45 H70"}))}}]),e}(m.default.Component),M=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.type,n=t.onClick,i=t.extraClasses,r=null;switch(e){case"replay":r=m.default.createElement(b,null);break;case"pause":r=m.default.createElement(x,null);break;case"play":r=m.default.createElement(y,null);break;case"fullscreen":r=m.default.createElement(_,null);break;case"normalscreen":r=m.default.createElement(w,null)}return m.default.createElement("div",{className:(0,v.default)(i),onClick:n},r)}}]),e}(m.default.Component);e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(463),v=i(g),y=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={frame:-1},n.updatingSeekingTime=!1,n.handleSliderChange=n.handleSliderChange.bind(n),n.handleSliderChangeComplete=n.handleSliderChangeComplete.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"getTimeFromFrame",value:function(t,e){return(Math.max(0,e-1)/t).toFixed(1)}},{key:"handleSliderChange",value:function(t){this.setState({frame:t}),this.updatingSeekingTime=!0}},{key:"handleSliderChangeComplete",value:function(){this.props.handleFrameSeek(this.state.frame),this.updatingSeekingTime=!1}},{key:"componentWillReceiveProps",value:function(t){this.updatingSeekingTime||t.isSeeking||this.setState({frame:t.currentFrame})}},{key:"render",value:function(){var t=this.props,e=t.numFrames,n=t.currentFrame,i=t.fps,r=(t.isSeeking,t.handleFrameSeek,this.getTimeFromFrame(i,e)),a=this.getTimeFromFrame(i,n);return m.default.createElement("div",{className:"time-controls"},m.default.createElement(v.default,{tooltip:!1,min:1,max:e,value:this.state.frame,onChange:this.handleSliderChange,onChangeComplete:this.handleSliderChangeComplete}),m.default.createElement("div",{className:"time-display"},a+" / "+r+" s"))}}]),e}(m.default.Component);e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(181),x=i(b),_=n(182),w=i(_),M=n(16),S=i(M),E=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={rate:1,isPlaying:!1,nextScreenMode:"normalscreen"},n.nextAction="play",n.handleRateChange=n.handleRateChange.bind(n),n.handleFrameSeek=n.handleFrameSeek.bind(n),n.handleActionChange=n.handleActionChange.bind(n),n.handleScreenModeChange=n.handleScreenModeChange.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleRateChange",value:function(t){var e=this.props.store.playback,n=parseFloat(t.target.value);this.setState({rate:n}),e.setPlayRate(n),this.state.isPlaying&&S.default.startPlayback(e.msPerFrame)}},{key:"handleActionChange",value:function(){var t=this.props.store.playback,e=!this.state.isPlaying;switch(t.setPlayAction(e),this.setState({isPlaying:e}),this.nextAction){case"play":S.default.startPlayback(t.msPerFrame);break;case"pause":S.default.pausePlayback();break;case"replay":t.resetFrame(),S.default.startPlayback(t.msPerFrame)}}},{key:"handleScreenModeChange",value:function(){var t=this.props.store.options;switch(this.state.nextScreenMode){case"fullscreen":t.showMenu=!1,this.setState({nextScreenMode:"normalscreen"});break;case"normalscreen":t.showMenu=!0,this.setState({nextScreenMode:"fullscreen"})}}},{key:"handleFrameSeek",value:function(t){var e=this.props.store.playback;e.seekFrame(t),this.state.isPlaying?S.default.requestTimer||S.default.startPlayback(e.msPerFrame):S.default.requestSimulationWorld(e.jobId,t)}},{key:"componentWillUpdate",value:function(t,e){var n=this.props.store.playback;n.replayComplete&&this.state.isPlaying&&(n.setPlayAction(!1),this.setState({isPlaying:!1})),n.replayComplete&&!n.isSeeking?this.nextAction="replay":e.isPlaying?this.nextAction="pause":this.nextAction="play"}},{key:"render",value:function(){var t=this.props.store.playback;return v.default.createElement("div",{className:"playback-controls"},v.default.createElement(x.default,{extraClasses:"left-controls",onClick:this.handleActionChange,type:this.nextAction}),v.default.createElement("div",{className:"rate-selector"},v.default.createElement("select",{onChange:this.handleRateChange,value:this.state.rate},v.default.createElement("option",{value:.25},"x 0.25"),v.default.createElement("option",{value:.5},"x 0.5"),v.default.createElement("option",{value:1},"x 1.0"),v.default.createElement("option",{value:2},"x 2.0")),v.default.createElement("span",{className:"arrow"})),v.default.createElement(w.default,{numFrames:t.numFrames,currentFrame:t.currentFrame,fps:t.FPS,isSeeking:t.isSeeking,handleFrameSeek:this.handleFrameSeek}),v.default.createElement(x.default,{extraClasses:"right-controls",onClick:this.handleScreenModeChange,type:this.state.nextScreenMode}))}}]),e}(v.default.Component))||a)||a;e.default=E},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(46),v=i(g),y=n(13),b=i(y),x=n(517),_=i(x),w=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={active:!1,hover:!1},n.toggle=n.toggle.bind(n),n.handleMouseIn=n.handleMouseIn.bind(n),n.handleMouseOut=n.handleMouseOut.bind(n),n.text="For Desktop device:\n • To zoom the map: use mouse wheel\n • To move around the map: right-click and drag your mouse,\n or use arrow keys\n • To add a routing point: left-click mouse\n\nFor Mobile device:\n • To zoom the map: pinch the screen with two fingers\n • To move around the map: swipe with three fingers\n • To add a routing point: tap with one finger",n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"toggle",value:function(){v.default.findDOMNode(this);this.setState({active:!this.state.active})}},{key:"handleMouseIn",value:function(){this.setState({hover:!0})}},{key:"handleMouseOut",value:function(){this.setState({hover:!1})}},{key:"render",value:function(){var t={display:this.state.active?"block":"none"};return m.default.createElement("button",{className:(0,b.default)({"editing-tip":!0,button:!0,active:this.state.active||this.state.hover}),onClick:this.toggle,onMouseOver:this.handleMouseIn,onMouseOut:this.handleMouseOut},m.default.createElement("img",{src:_.default}),m.default.createElement("p",{style:t},this.text))}}]),e}(m.default.Component);e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(184),x=i(b),_=n(527),w=i(_),M=n(528),S=i(M),E=n(529),k=i(E),T=n(525),C=i(T),P=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props,e=t.label,n=t.icon,i=t.onClick;return v.default.createElement("button",{onClick:i,className:"button"},v.default.createElement("img",{src:n}),v.default.createElement("span",null,e))}}]),e}(v.default.Component),O=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store,n=e.routeEditingManager,i=e.options;return v.default.createElement("div",{className:"route-editing-bar"},v.default.createElement("div",{className:"editing-panel"},v.default.createElement(P,{label:"Add Point of Interest",icon:C.default,onClick:function(){t.props.store.handleOptionToggle("showPOI")}}),v.default.createElement(P,{label:"Remove Last Point",icon:S.default,onClick:function(){n.removeLastRoutingPoint()}}),v.default.createElement(P,{label:"Remove All Points",icon:w.default,onClick:function(){n.removeAllRoutingPoints()}}),v.default.createElement(P,{label:"Send Routing Request",icon:k.default,onClick:function(){n.sendRoutingRequest(!1)&&(i.showRouteEditingBar=!1)}}),v.default.createElement(x.default,null)))}}]),e}(v.default.Component))||a)||a;e.default=O},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props.store.geolocation,e=t.x?t.x.toFixed(2):"?",n=t.y?t.y.toFixed(2):"?";return v.default.createElement("div",{className:"geolocation"},"( ",e,", ",n," )")}}]),e}(v.default.Component))||a)||a;e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),x=i(b),_=n(186),w=i(_),M=n(35),S=i(M),E=n(15),k=i(E),T=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"componentDidMount",value:function(){S.default.initialize("canvas",this.props.width,this.props.height,this.props.options)}},{key:"componentWillUpdate",value:function(t){S.default.updateDimension(t.width,t.height)}},{key:"render",value:function(){var t=this.props,e=t.invisible,n=t.options;return v.default.createElement("div",{id:"canvas",className:(0,x.default)({"dreamview-canvas":!0,hidden:e}),onMouseMove:function(t){var e=S.default.getGeolocation(t);k.default.setGeolocation(e)}},n.showGeo&&v.default.createElement(w.default,null))}}]),e}(v.default.Component))||a)||a;e.default=T},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=(n(8),n(13)),v=i(g),y=n(534),b=i(y),x=n(532),_=i(x),w=n(531),M=i(w),S=n(533),E=i(S),k=n(530),T=i(k),C=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.disabled,n=t.onClick,i=t.active,r=t.label,a=t.extraClasses,o=t.iconSrc;return m.default.createElement("button",{onClick:n,disabled:e,className:(0,v.default)({button:!0,"button-active":i},a)},m.default.createElement("img",{src:o,className:"icon"}),m.default.createElement("div",{className:"label"},r))}}]),e}(m.default.PureComponent),P=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.enableHMIButtonsOnly,n=t.inNavigationMode,i=t.onTasks,r=t.showTasks,a=t.onModuleController,o=t.showModuleController,s=t.onMenu,l=t.showMenu,u=t.onRouteEditingBar,c=t.showRouteEditingBar,h=t.onDataRecorder,d=t.showDataRecorder;return m.default.createElement("div",{className:"main-panel"},m.default.createElement(C,{label:"Tasks",disabled:!1,iconSrc:b.default,onClick:i,active:r}),m.default.createElement(C,{label:"Module Controller",disabled:!1,iconSrc:_.default,onClick:a,active:o}),m.default.createElement(C,{label:"Layer Menu",disabled:e,iconSrc:M.default,onClick:s,active:l}),m.default.createElement(C,{label:"Route Editing",disabled:e||n,iconSrc:E.default,onClick:u,active:c}),m.default.createElement(C,{label:"Data Recorder",disabled:e,iconSrc:T.default,onClick:h,active:d}))}}]),e}(m.default.PureComponent);e.default=P},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o,s=n(32),l=i(s),u=n(3),c=i(u),h=n(0),d=i(h),f=n(1),p=i(f),m=n(5),g=i(m),v=n(4),y=i(v),b=n(2),x=i(b),_=n(8),w=n(13),M=(i(w),n(115)),S=i(M),E=n(220),k=i(E),T=n(520),C=i(T),P=n(523),O=i(P),A=n(524),R=i(A),L=n(519),I=i(L),D=n(521),N=i(D),z=n(522),B=i(z),F=n(16),U={perception:C.default,prediction:O.default,routing:R.default,decision:I.default,planning:N.default,camera:B.default},j={perceptionPointCloud:"showPointCloud",perceptionVehicle:"showObstaclesVehicle",perceptionPedestrian:"showObstaclesPedestrian",perceptionBicycle:"showObstaclesBicycle",perceptionUnknownMovable:"showObstaclesUnknownMovable",perceptionUnknownUnmovable:"showObstaclesUnknownUnmovable",perceptionUnknown:"showObstaclesUnknown",perceptionVirtual:"showObstaclesVirtual",perceptionVelocity:"showObstaclesVelocity",perceptionHeading:"showObstaclesHeading",perceptionId:"showObstaclesId",predictionMajor:"showPredictionMajor",predictionMinor:"showPredictionMinor",routing:"showRouting",decisionMain:"showDecisionMain",decisionObstacle:"showDecisionObstacle",planningCar:"showPlanningCar",planningReference:"showPlanningReference",planningDpOptimizer:"showPlanningDpOptimizer",planningQpOptimizer:"showPlanningQpOptimizer",planningLine:"showPlanning",positionLocalization:"showPositionLocalization",positionGps:"showPositionGps",mapCrosswalk:"showMapCrosswalk",mapClearArea:"showMapClearArea",mapJunction:"showMapJunction",mapLane:"showMapLane",mapRoad:"showMapRoad",mapSignal:"showMapSignal",mapStopSign:"showMapStopSign"},W=(0,_.observer)(r=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:"render",value:function(){var t=this.props,e=t.id,n=t.title,i=t.options;return x.default.createElement("ul",null,x.default.createElement("li",{id:e,onClick:function(){i.toggle(j[e]),"perceptionPointCloud"===e&&F.POINT_CLOUD_WS.togglePointCloud(i.showPointCloud)}},x.default.createElement("div",{className:"switch"},x.default.createElement("input",{type:"checkbox",name:e,className:"toggle-switch",id:e,checked:i[j[e]],readOnly:!0}),x.default.createElement("label",{className:"toggle-switch-label",htmlFor:e})),x.default.createElement("span",null,n)))}}]),e}(x.default.Component))||r,G=(0,_.observer)(a=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:"render",value:function(){var t=this.props,e=t.tabId,n=t.tabTitle,i=t.tabType,r=t.data,a=t.options,o=null;return"checkbox"===i?o=(0,l.default)(r).map(function(t){var e=r[t];return a.hideOptionToggle[t]?null:x.default.createElement(W,{key:t,id:t,title:e,options:a})}):"radio"===i&&(o=(0,l.default)(r).map(function(t){var n=r[t];return a.hideOptionToggle[t]?null:x.default.createElement(S.default,{key:e+"_"+t,id:e,onClick:function(){a.selectCamera(n)},checked:a.cameraAngle===n,title:n,options:a})})),x.default.createElement("div",{className:"card"},x.default.createElement("div",{className:"card-header summary"},x.default.createElement("span",null,x.default.createElement("img",{src:U[e]}),n)),x.default.createElement("div",{className:"card-content-column"},o))}}]),e}(x.default.Component))||a,V=(0,_.observer)(o=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:"render",value:function(){var t=this.props.options,e=(0,l.default)(k.default).map(function(e){var n=k.default[e];return x.default.createElement(G,{key:n.id,tabId:n.id,tabTitle:n.title,tabType:n.type,data:n.data,options:t})});return x.default.createElement("div",{className:"nav-side-menu",id:"layer-menu"},e)}}]),e}(x.default.Component))||o;e.default=V},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(32),o=i(a),s=n(3),l=i(s),u=n(0),c=i(u),h=n(1),d=i(h),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),x=n(13),_=(i(x),n(115)),w=i(_),M=(0,b.observer)(r=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:"render",value:function(){var t=this.props,e=t.routeEditingManager,n=t.options,i=t.inNavigationMode,r=(0,o.default)(e.defaultRoutingEndPoint).map(function(t){return y.default.createElement(w.default,{extraClasses:["poi-button"],key:"poi_"+t,id:"poi",title:t,onClick:function(){e.addDefaultEndPoint(t,i),n.showRouteEditingBar||e.sendRoutingRequest(i),n.showPOI=!1},checked:!1})});return y.default.createElement("div",{className:"nav-side-menu",id:"poi-list"},y.default.createElement("div",{className:"card"},y.default.createElement("div",{className:"card-header"},y.default.createElement("span",null,"Point of Interest")),y.default.createElement("div",{className:"card-content-row"},r)))}}]),e}(y.default.Component))||r;e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=(n(8),n(13)),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.disabled,n=t.onClick,i=t.active,r=t.label,a=t.extraClasses;t.iconSrc;return m.default.createElement("button",{onClick:n,disabled:e,className:(0,v.default)({"sub-button":!0,"sub-button-active":i},a)},m.default.createElement("div",{className:"label"},r))}}]),e}(m.default.Component),b=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.enablePOI,n=t.onPOI,i=t.showPOI;return m.default.createElement("div",null,m.default.createElement(y,{label:"Default Routing",disabled:!e,onClick:n,active:i}))}}]),e}(m.default.Component);e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(188),x=i(b),_=n(191),w=i(_),M=n(16),S=(i(M),(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store,n=e.options,i=e.enableHMIButtonsOnly,r=e.hmi;return v.default.createElement("div",{className:"side-bar"},v.default.createElement(x.default,{enableHMIButtonsOnly:i,inNavigationMode:r.inNavigationMode,onTasks:function(){t.props.store.handleOptionToggle("showTasks")},showTasks:n.showTasks,onModuleController:function(){t.props.store.handleOptionToggle("showModuleController")},showModuleController:n.showModuleController,onMenu:function(){t.props.store.handleOptionToggle("showMenu")},showMenu:n.showMenu,onRouteEditingBar:function(){t.props.store.handleOptionToggle("showRouteEditingBar")},showRouteEditingBar:n.showRouteEditingBar,onDataRecorder:function(){t.props.store.handleOptionToggle("showDataRecorder")},showDataRecorder:n.showDataRecorder}),v.default.createElement(w.default,{enablePOI:!i&&!n.showRouteEditingBar,onPOI:function(){t.props.store.handleOptionToggle("showPOI")},showPOI:!n.showRouteEditingBar&&n.showPOI}))}}]),e}(v.default.Component))||a)||a);e.default=S},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(196),b=i(y),x=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.label,n=t.percentage,i=t.meterColor,r=t.background;return g.default.createElement("div",{className:"meter-container"},g.default.createElement("div",{className:"meter-label"},e),g.default.createElement("span",{className:"meter-head",style:{borderColor:i}}),g.default.createElement("div",{className:"meter-background",style:{backgroundColor:r}},g.default.createElement("span",{style:{backgroundColor:i,width:n+"%"}})))}}]),e}(g.default.Component),_=(0,v.observer)(r=function(t){function e(t){(0,l.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t));return n.setting={brake:{label:"Brake",meterColor:"#B43131",background:"#382626"},accelerator:{label:"Accelerator",meterColor:"#006AFF",background:"#2D3B50"}},n}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.throttlePercent,n=t.brakePercent,i=t.speed;return g.default.createElement("div",{className:"auto-meter"},g.default.createElement(b.default,{meterPerSecond:i}),g.default.createElement("div",{className:"brake-panel"},g.default.createElement(x,{label:this.setting.brake.label,percentage:n,meterColor:this.setting.brake.meterColor,background:this.setting.brake.background})),g.default.createElement("div",{className:"throttle-panel"},g.default.createElement(x,{label:this.setting.accelerator.label,percentage:e,meterColor:this.setting.accelerator.meterColor,background:this.setting.accelerator.background})))}}]),e}(g.default.Component))||r;e.default=_},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.utterance=window.speechSynthesis?new SpeechSynthesisUtterance:null,n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"componentWillUpdate",value:function(){this.utterance&&window.speechSynthesis.cancel()}},{key:"render",value:function(){var t=this.props,e=t.drivingMode,n=t.isAutoMode;return this.utterance&&(this.utterance.text="Entering to "+e+" mode",window.speechSynthesis.speak(this.utterance)),m.default.createElement("div",{className:(0,v.default)({"driving-mode":!0,"auto-mode":n,"manual-mode":!n})},m.default.createElement("span",{className:"text"},e))}}]),e}(m.default.PureComponent);e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(13),b=i(y),x=n(161),_=i(x),w=n(160),M=i(w),S=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props.monitor;if(!t.hasActiveNotification)return null;if(0===t.items.length)return null;var e=t.items[0],n="ERROR"===e.logLevel||"FATAL"===e.logLevel?"alert":"warn",i="alert"===n?M.default:_.default;return g.default.createElement("div",{className:"notification-"+n},g.default.createElement("img",{src:i,className:"icon"}),g.default.createElement("span",{className:(0,b.default)("text",n)},e.msg))}}]),e}(g.default.Component))||r;e.default=S},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=[{name:"km/h",conversionFromMeterPerSecond:3.6},{name:"m/s",conversionFromMeterPerSecond:1},{name:"mph",conversionFromMeterPerSecond:2.23694}],v=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={unit:0},n.changeUnit=n.changeUnit.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"changeUnit",value:function(){this.setState({unit:(this.state.unit+1)%g.length})}},{key:"render",value:function(){var t=this.props.meterPerSecond,e=g[this.state.unit],n=e.name,i=Math.round(t*e.conversionFromMeterPerSecond);return m.default.createElement("span",{onClick:this.changeUnit},m.default.createElement("span",{className:"speed-read"},i),m.default.createElement("span",{className:"speed-unit"},n))}}]),e}(m.default.Component);e.default=v},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g={GREEN:"rgba(79, 198, 105, 0.8)",YELLOW:"rgba(239, 255, 0, 0.8)",RED:"rgba(180, 49, 49, 0.8)",BLACK:"rgba(30, 30, 30, 0.8)",UNKNOWN:"rgba(30, 30, 30, 0.8)","":null},v=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props.colorName,e=g[t],n=t||"NO SIGNAL";return m.default.createElement("div",{className:"traffic-light"},e&&m.default.createElement("svg",{className:"symbol",viewBox:"0 0 30 30",height:"28",width:"28"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:e})),m.default.createElement("div",{className:"text"},n))}}]),e}(m.default.PureComponent);e.default=v},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props.steeringAngle;return g.default.createElement("svg",{className:"wheel",viewBox:"0 0 100 100",height:"80",width:"80"},g.default.createElement("circle",{className:"wheel-background",cx:"50",cy:"50",r:"45"}),g.default.createElement("g",{className:"wheel-arm",transform:"rotate("+t+" 50 50)"},g.default.createElement("rect",{x:"45",y:"7",height:"10",width:"10"}),g.default.createElement("line",{x1:"50",y1:"50",x2:"50",y2:"5"})))}}]),e}(g.default.Component),b=(0,v.observer)(r=function(t){function e(t){(0,l.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t));return n.signalColor={off:"#30435E",on:"#006AFF"},n}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.steeringPercentage,n=t.steeringAngle,i=t.turnSignal,r="LEFT"===i||"EMERGENCY"===i?this.signalColor.on:this.signalColor.off,a="RIGHT"===i||"EMERGENCY"===i?this.signalColor.on:this.signalColor.off;return g.default.createElement("div",{className:"wheel-panel"},g.default.createElement("div",{className:"steerangle-read"},e),g.default.createElement("div",{className:"steerangle-unit"},"%"),g.default.createElement("div",{className:"left-arrow",style:{borderRightColor:r}}),g.default.createElement(y,{steeringAngle:n}),g.default.createElement("div",{className:"right-arrow",style:{borderLeftColor:a}}))}}]),e}(g.default.Component))||r;e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(193),b=i(y),x=n(195),_=i(x),w=n(197),M=i(w),S=n(194),E=i(S),k=n(198),T=i(k),C=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.meters,n=t.trafficSignal,i=t.showNotification,r=t.monitor;return g.default.createElement("div",{className:"status-bar"},i&&g.default.createElement(_.default,{monitor:r}),g.default.createElement(b.default,{throttlePercent:e.throttlePercent,brakePercent:e.brakePercent,speed:e.speed}),g.default.createElement(T.default,{steeringPercentage:e.steeringPercentage,steeringAngle:e.steeringAngle,turnSignal:e.turnSignal}),g.default.createElement("div",{className:"traffic-light-and-driving-mode"},g.default.createElement(M.default,{colorName:n.color}),g.default.createElement(E.default,{drivingMode:e.drivingMode,isAutoMode:e.isAutoMode})))}}]),e}(g.default.Component))||r;e.default=C},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o,s=n(3),l=i(s),u=n(0),c=i(u),h=n(1),d=i(h),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),x=n(13),_=i(x),w=n(161),M=i(w),S=n(160),E=i(S),k=(0,b.observer)(r=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:"render",value:function(){var t=this.props,e=t.level,n=t.text,i="ERROR"===e||"FATAL"===e?"alert":"warn",r="alert"===i?E.default:M.default;return y.default.createElement("li",{className:"monitor-item"},y.default.createElement("img",{src:r,className:"icon"}),y.default.createElement("span",{className:(0,_.default)("text",i)},n))}}]),e}(y.default.Component))||r,T=(a=(0,b.inject)("store"))(o=(0,b.observer)(o=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:"render",value:function(){var t=this.props.store.monitor;return y.default.createElement("div",{className:"card"},y.default.createElement("div",{className:"card-header"},y.default.createElement("span",null,"Console")),y.default.createElement("div",{className:"card-content-column"},y.default.createElement("ul",{className:"console"},t.items.map(function(t,e){return y.default.createElement(k,{key:e,text:t.msg,level:t.logLevel})}))))}}]),e}(y.default.Component))||o)||o;e.default=T},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),x=i(b),_=n(77),w=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props,e=t.time,n=t.warning,i="-"===e?e:(0,_.millisecondsToTime)(0|e);return v.default.createElement("div",{className:(0,x.default)({value:!0,warning:n})},i)}}]),e}(v.default.PureComponent),M=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props.store.moduleDelay,e=t.keys().sort().map(function(e){var n=t.get(e),i=n.delay>2e3&&"TrafficLight"!==n.name;return v.default.createElement("div",{className:"delay-item",key:"delay_"+e},v.default.createElement("div",{className:"name"},n.name),v.default.createElement(w,{time:n.delay,warning:i}))});return v.default.createElement("div",{className:"delay card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Module Delay")),v.default.createElement("div",{className:"card-content-column"},e))}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(114),x=i(b),_=n(16),w=i(_),M=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store,n=e.options,i=e.enableHMIButtonsOnly,r=i||n.tasksPanelLocked;return v.default.createElement("div",{className:"others card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Others")),v.default.createElement("div",{className:"card-content-column"},v.default.createElement("button",{disabled:r,onClick:function(){w.default.resetBackend()}},"Reset Backend Data"),v.default.createElement("button",{disabled:r,onClick:function(){w.default.dumpMessages()}},"Dump Message"),v.default.createElement(x.default,{id:"showPNCMonitor",title:"PNC Monitor",isChecked:n.showPNCMonitor,disabled:r,onClick:function(){t.props.store.handleOptionToggle("showPNCMonitor")}}),v.default.createElement(x.default,{id:"toggleSimControl",title:"SimControl",isChecked:n.simControlEnabled,disabled:!1,onClick:function(){w.default.toggleSimControl(!n.simControlEnabled),t.props.store.handleOptionToggle("simControlEnabled")}}),v.default.createElement(x.default,{id:"showVideo",title:"Camera Sensor",isChecked:n.showVideo,disabled:r,onClick:function(){t.props.store.handleOptionToggle("showVideo")}}),v.default.createElement(x.default,{id:"panelLock",title:"Lock Task Panel",isChecked:n.tasksPanelLocked,disabled:!1,onClick:function(){t.props.store.handleOptionToggle("tasksPanelLocked")}})))}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(32),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(13),w=i(_),M=n(16),S=i(M),E=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this.props,e=t.name,n=t.commands,i=t.disabled,r=t.extraCommandClass,a=t.extraButtonClass,o=(0,s.default)(n).map(function(t){return b.default.createElement("button",{className:a,disabled:i,key:t,onClick:n[t]},t)}),l=e?b.default.createElement("span",{className:"name"},e+":"):null;return b.default.createElement("div",{className:(0,w.default)("command-group",r)},l,o)}}]),e}(b.default.Component),k=(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(t){(0,h.default)(this,e);var n=(0,m.default)(this,(e.__proto__||(0,u.default)(e)).call(this,t));return n.utterance=window.speechSynthesis?new SpeechSynthesisUtterance:null,n.rtKRecord={Start:function(){S.default.executeToolCommand("rtk_record_replay","start_recorder"),n.speechSynthesis("Start RTK recorder")},Stop:function(){S.default.executeToolCommand("rtk_record_replay","stop_recorder"),n.speechSynthesis("Stop RTK recorder")}},n.rtkReplay={Start:function(){S.default.executeToolCommand("rtk_record_replay","start_player"),n.speechSynthesis("Start RTK replay")},Stop:function(){S.default.executeToolCommand("rtk_record_replay","stop_player"),n.speechSynthesis("Stop RTK replay")}},n.setup={Setup:function(){S.default.executeModeCommand("start"),n.speechSynthesis("Setup")}},n.reset={"Reset All":function(){S.default.executeModeCommand("stop"),n.speechSynthesis("Reset All")}},n.auto={"Start Auto":function(){S.default.changeDrivingMode("COMPLETE_AUTO_DRIVE"),n.speechSynthesis("Start Auto")}},n.version={Version:function(){alert(n.props.store.hmi.dockerImage)}},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentWillUpdate",value:function(){this.utterance&&window.speechSynthesis.cancel()}},{key:"speechSynthesis",value:function(t){this.utterance&&(this.utterance.text=t,window.speechSynthesis.speak(this.utterance))}},{key:"render",value:function(){var t=this.props.store.hmi,e=this.props.store.options.tasksPanelLocked;return b.default.createElement("div",{className:"card"},b.default.createElement("div",{className:"card-header"},b.default.createElement("span",null,"Quick Start")),b.default.createElement("div",{className:"card-content-column"},b.default.createElement(E,{disabled:!1,commands:this.version}),b.default.createElement(E,{disabled:e,commands:this.setup}),b.default.createElement(E,{disabled:e,commands:this.reset}),b.default.createElement(E,{disabled:!t.enableStartAuto||e,commands:this.auto,extraButtonClass:"start-auto-button",extraCommandClass:"start-auto-command"}),t.showRTKCommands&&b.default.createElement(E,{name:"Record",disabled:e,commands:this.rtKRecord}),t.showRTKCommands&&b.default.createElement(E,{name:"Replay",disabled:e,commands:this.rtkReplay})))}}]),e}(b.default.Component))||a)||a;e.default=k},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(203),v=i(g),y=n(202),b=i(y),x=n(201),_=i(x),w=n(200),M=i(w),S=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){return m.default.createElement("div",{className:"tasks"},m.default.createElement(v.default,null),m.default.createElement(b.default,null),m.default.createElement(_.default,null),m.default.createElement(M.default,null))}}]),e}(m.default.Component);e.default=S},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(117),a=i(r),o=n(246),s=i(o),l=n(2),u=i(l),c=n(24),h=i(c),d=function(t){var e=t.image,n=t.style,i=t.className,r=((0,s.default)(t,["image","style","className"]),(0,a.default)({},n||{},{backgroundImage:"url("+e+")",backgroundSize:"cover"})),o=i?i+" dreamview-image":"dreamview-image";return u.default.createElement("div",{className:o,style:r})};d.propTypes={image:h.default.string.isRequired,style:h.default.object},e.default=d},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=n(35),b=(i(y),n(162)),x=i(b),_=n(518),w=(i(_),function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.height,n=t.extraClasses,i=x.default;return m.default.createElement("div",{className:"loader",style:{height:e}},m.default.createElement("div",{className:(0,v.default)("img-container",n)},m.default.createElement("img",{src:i,alt:"Loader"}),m.default.createElement("div",{className:"status-message"},"Please send car initial position and map data.")))}}]),e}(m.default.Component));e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(15),u=i(l),c=n(489),h=i(c),d=n(490),f=i(d),p=n(59),m={adc:{menuOptionName:"showPositionLocalization",carMaterial:h.default},plannigAdc:{menuOptionName:"showPlanningCar",carMaterial:null}},g=function(){function t(e,n){var i=this;(0,a.default)(this,t),this.mesh=null,this.name=e;var r=m[e];if(!r)return void console.error("Car properties not found for car:",e);(0,p.loadObject)(r.carMaterial,f.default,{x:1,y:1,z:1},function(t){i.mesh=t,i.mesh.rotation.x=Math.PI/2,i.mesh.visible=u.default.options[r.menuOptionName],n.add(i.mesh)})}return(0,s.default)(t,[{key:"update",value:function(t,e){if(this.mesh&&e){var n=m[this.name].menuOptionName;this.mesh.visible=u.default.options[n];var i=t.applyOffset({x:e.positionX,y:e.positionY});null!==i&&(this.mesh.position.set(i.x,i.y,0),this.mesh.rotation.y=e.heading)}}}]),t}();e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=function(){function t(){(0,a.default)(this,t),this.systemName="ENU",this.offset=null}return(0,s.default)(t,[{key:"isInitialized",value:function(){return null!==this.offset}},{key:"initialize",value:function(t,e){this.offset={x:t,y:e},console.log("Offset is set to x:"+t+", y:"+e)}},{key:"setSystem",value:function(t){this.systemName=t}},{key:"applyOffset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?(console.error("Offset is not set."),null):isNaN(this.offset.x)||isNaN(this.offset.y)?(console.error("Offset contains NaN!"),null):isNaN(t.x)||isNaN(t.y)?(console.warn("Point contains NaN!"),null):isNaN(t.z)?new u.Vector2(e?t.x+this.offset.x:t.x-this.offset.x,e?t.y+this.offset.y:t.y-this.offset.y):new u.Vector3(e?t.x+this.offset.x:t.x-this.offset.x,e?t.y+this.offset.y:t.y-this.offset.y,t.z)}},{key:"applyOffsetToArray",value:function(t){var e=this;return t.map(function(t){return e.applyOffset(t)})}}]),t}();e.default=c},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(15),h=i(c),d=n(505),f=i(d),p=n(509),m=i(p),g=n(507),v=i(g),y=n(510),b=i(y),x=n(508),_=i(x),w=n(499),M=i(w),S=n(502),E=i(S),k=n(500),T=i(k),C=n(503),P=i(C),O=n(501),A=i(O),R=n(504),L=i(R),I=n(497),D=i(I),N=n(512),z=i(N),B=n(511),F=i(B),U=n(513),j=i(U),W=n(514),G=i(W),V=n(515),H=i(V),Y=n(495),q=i(Y),X=n(496),Z=i(X),K=n(498),Q=i(K),J=n(506),$=i(J),tt=n(77),et=n(31),nt=n(39),it={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},rt={STOP_REASON_HEAD_VEHICLE:L.default,STOP_REASON_DESTINATION:D.default,STOP_REASON_PEDESTRIAN:z.default,STOP_REASON_OBSTACLE:F.default,STOP_REASON_SIGNAL:j.default,STOP_REASON_STOP_SIGN:G.default,STOP_REASON_YIELD_SIGN:H.default,STOP_REASON_CLEAR_ZONE:q.default,STOP_REASON_CROSSWALK:Z.default,STOP_REASON_EMERGENCY:Q.default,STOP_REASON_NOT_READY:$.default},at=function(){function t(){(0,a.default)(this,t),this.markers={STOP:[],FOLLOW:[],YIELD:[],OVERTAKE:[]},this.nudges=[],this.mainDecision=this.getMainDecision(),this.mainDecisionAddedToScene=!1}return(0,s.default)(t,[{key:"update",value:function(t,e,n){var i=this;this.nudges.forEach(function(t){n.remove(t),t.geometry.dispose(),t.material.dispose()}),this.nudges=[];var r=t.mainStop;if(!h.default.options.showDecisionMain||nt.isEmpty(r))this.mainDecision.visible=!1;else{this.mainDecision.visible=!0,this.mainDecisionAddedToScene||(n.add(this.mainDecision),this.mainDecisionAddedToScene=!0),(0,tt.copyProperty)(this.mainDecision.position,e.applyOffset(new u.Vector3(r.positionX,r.positionY,.2))),this.mainDecision.rotation.set(Math.PI/2,r.heading-Math.PI/2,0);var a=nt.attempt(function(){return r.decision[0].stopReason});if(!nt.isError(a)&&a){var o=null;for(o in rt)this.mainDecision[o].visible=!1;this.mainDecision[a].visible=!0}}var s=t.object;if(h.default.options.showDecisionObstacle&&!nt.isEmpty(s)){for(var l={STOP:0,FOLLOW:0,YIELD:0,OVERTAKE:0},c=0;c=i.markers[a].length?(o=i.getObstacleDecision(a),i.markers[a].push(o),n.add(o)):o=i.markers[a][l[a]];var h=e.applyOffset(new u.Vector3(r.positionX,r.positionY,0));if(null===h)return"continue";if(o.position.set(h.x,h.y,.2),o.rotation.set(Math.PI/2,r.heading-Math.PI/2,0),o.visible=!0,l[a]++,"YIELD"===a||"OVERTAKE"===a){var f=o.connect;f.geometry.vertices[0].set(s[c].positionX-r.positionX,s[c].positionY-r.positionY,0),f.geometry.verticesNeedUpdate=!0,f.geometry.computeLineDistances(),f.geometry.lineDistancesNeedUpdate=!0,f.rotation.set(Math.PI/-2,0,Math.PI/2-r.heading)}}else if("NUDGE"===a){var p=(0,et.drawShapeFromPoints)(e.applyOffsetToArray(r.polygonPoint),new u.MeshBasicMaterial({color:16744192}),!1,2);i.nudges.push(p),n.add(p)}})(f)}}var p=null;for(p in it)(0,tt.hideArrayObjects)(this.markers[p],l[p])}else{var m=null;for(m in it)(0,tt.hideArrayObjects)(this.markers[m])}}},{key:"getMainDecision",value:function(){var t=this.getFence("MAIN_STOP"),e=null;for(e in rt){var n=(0,et.drawImage)(rt[e],1,1,4.1,3.5,0);t.add(n),t[e]=n}return t.visible=!1,t}},{key:"getObstacleDecision",value:function(t){var e=this.getFence(t);if("YIELD"===t||"OVERTAKE"===t){var n=it[t],i=(0,et.drawDashedLineFromPoints)([new u.Vector3(1,1,0),new u.Vector3(0,0,0)],n,2,2,1,30);e.add(i),e.connect=i}return e.visible=!1,e}},{key:"getFence",value:function(t){var e=new u.Object3D;switch(t){case"STOP":var n=(0,et.drawImage)(E.default,11.625,3,0,1.5,0);e.add(n);var i=(0,et.drawImage)(m.default,1,1,3,3.6,0);e.add(i);break;case"FOLLOW":n=(0,et.drawImage)(T.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(v.default,1,1,3,3.6,0),e.add(i);break;case"YIELD":n=(0,et.drawImage)(P.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(b.default,1,1,3,3.6,0),e.add(i);break;case"OVERTAKE":n=(0,et.drawImage)(A.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(_.default,1,1,3,3.6,0),e.add(i);break;case"MAIN_STOP":n=(0,et.drawImage)(M.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(f.default,1,1,3,3.6,0),e.add(i)}return e}}]),t}();e.default=at},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(15),h=i(c),d=n(31),f=function(){function t(){(0,a.default)(this,t),this.circle=null,this.base=null}return(0,s.default)(t,[{key:"update",value:function(t,e,n){if(t.gps&&t.autoDrivingCar){if(!this.circle){var i=new u.MeshBasicMaterial({color:27391,transparent:!1,opacity:.5});this.circle=(0,d.drawCircle)(.2,i),n.add(this.circle)}this.base||(this.base=(0,d.drawSegmentsFromPoints)([new u.Vector3(3.89,-1.05,0),new u.Vector3(3.89,1.06,0),new u.Vector3(-1.04,1.06,0),new u.Vector3(-1.04,-1.05,0),new u.Vector3(3.89,-1.05,0)],27391,2,5),n.add(this.base));var r=h.default.options.showPositionGps,a=e.applyOffset({x:t.gps.positionX,y:t.gps.positionY,z:0});this.circle.position.set(a.x,a.y,a.z),this.circle.visible=r,this.base.position.set(a.x,a.y,a.z),this.base.rotation.set(0,0,t.gps.heading),this.base.visible=r}}}]),t}();e.default=f},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(59),h=n(516),d=i(h),f=n(28),p=i(f),m=function(){function t(){var e=this;(0,a.default)(this,t),this.type="default",this.loadedMap=null,this.updateMap=null,this.mesh=null,this.geometry=null,this.initialized=!1,(0,c.loadTexture)(d.default,function(t){e.geometry=new u.PlaneGeometry(1,1),e.mesh=new u.Mesh(e.geometry,new u.MeshBasicMaterial({map:t}))})}return(0,s.default)(t,[{key:"initialize",value:function(t){return!!this.mesh&&(!(this.loadedMap===this.updateMap&&!this.render(t))&&(this.initialized=!0,!0))}},{key:"update",value:function(t,e,n){var i=this;if(!0===this.initialized&&this.loadedMap!==this.updateMap){var r=this.titleCaseToSnakeCase(this.updateMap),a=window.location,o=a.protocol+"//"+a.hostname+":"+p.default.server.port,s=o+"/assets/map_data/"+r+"/background.jpg";(0,c.loadTexture)(s,function(t){console.log("updating ground image with "+r),i.mesh.material.map=t,i.mesh.type="reflection",i.render(e,r)},function(t){console.log("using grid as ground image..."),(0,c.loadTexture)(d.default,function(t){i.mesh.material.map=t,i.mesh.type="grid",i.render(e)})}),this.loadedMap=this.updateMap}else if(this.initialized&&"grid"===this.mesh.type){var l=t.autoDrivingCar,u=e.applyOffset({x:l.positionX,y:l.positionY});this.mesh.position.set(u.x,u.y,0)}}},{key:"updateImage",value:function(t){this.updateMap=t}},{key:"render",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaults";console.log("rendering ground image...");var n=p.default.ground[e],i=n.xres,r=n.yres,a=n.mpp,o=n.xorigin,s=n.yorigin,l=t.applyOffset({x:o,y:s});return null===l?(console.warn("Cannot find position for ground mesh!"),!1):("defaults"===e&&(l={x:0,y:0}),this.mesh.position.set(l.x,l.y,0),this.mesh.scale.set(i*a,r*a,1),this.mesh.material.needsUpdate=!0,this.mesh.overdraw=!1,!0)}},{key:"titleCaseToSnakeCase",value:function(t){return t.replace(/\s/g,"_").toLowerCase()}}]),t}();e.default=m},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(32),a=i(r),o=n(117),s=i(o),l=n(40),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(12),m=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(p),g=n(15),v=i(g),y=n(16),b=n(31),x=n(491),w=i(x),M=n(492),S=i(M),E=n(493),k=i(E),T=n(494),C=i(T),P=n(59),O={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256},A={x:.006,y:.006,z:.006},R={x:2,y:2,z:2},L=function(){function t(){(0,h.default)(this,t),(0,P.loadObject)(k.default,C.default,A),(0,P.loadObject)(w.default,S.default,R),this.hash=-1,this.data={},this.laneHeading={},this.overlapMap={},this.initialized=!1,this.elementKindsDrawn=""}return(0,f.default)(t,[{key:"diffMapElements",value:function(t,e){var n=this,i={},r=!0;for(var a in t){(function(a){if(!n.shouldDrawThisElementKind(a))return"continue";i[a]=[];for(var o=t[a],s=e[a],l=0;l=2){var i=Math.atan2(e[n-1].y-e[0].y,e[n-1].x-e[0].x);return 1.5*Math.PI+i}return NaN}},{key:"getSignalPositionAndHeading",value:function(t,e){var n=[];if(t.subsignal.forEach(function(t){t.location&&n.push(t.location)}),0===n.length&&(console.warn("Subsignal locations not found, use signal boundary instead."),n.push(t.boundary.point)),0===n.length)return console.warn("Unable to determine signal location, skip."),null;var i=void 0,r=t.overlapId.length;if(r>0){var a=t.overlapId[r-1].id;i=this.laneHeading[this.overlapMap[a]]}if(i||(console.warn("Unable to get traffic light heading, use orthogonal direction of StopLine."),i=this.getHeadingFromStopLine(t)),isNaN(i))return console.error("Error loading traffic light. Unable to determine heading."),null;var o=new m.Vector3(0,0,0);return o.x=_.meanBy(_.values(n),function(t){return t.x}),o.y=_.meanBy(_.values(n),function(t){return t.y}),o=e.applyOffset(o),{pos:o,heading:i}}},{key:"drawStopLine",value:function(t,e,n,i){t.forEach(function(t){t.segment.forEach(function(t){var r=n.applyOffsetToArray(t.lineSegment.point),a=(0,b.drawSegmentsFromPoints)(r,O.PURE_WHITE,5,3,!1);i.add(a),e.push(a)})})}},{key:"addTrafficLight",value:function(t,e,n){var i=[],r=this.getSignalPositionAndHeading(t,e);return r&&(0,P.loadObject)(k.default,C.default,A,function(t){t.rotation.x=Math.PI/2,t.rotation.y=r.heading,t.position.set(r.pos.x,r.pos.y,0),t.matrixAutoUpdate=!1,t.updateMatrix(),n.add(t),i.push(t)}),this.drawStopLine(t.stopLine,i,e,n),i}},{key:"getStopSignPositionAndHeading",value:function(t,e){var n=void 0;if(t.overlapId.length>0){var i=t.overlapId[0].id;n=this.laneHeading[this.overlapMap[i]]}if(n||(console.warn("Unable to get stop sign heading, use orthogonal direction of StopLine."),n=this.getHeadingFromStopLine(t)),isNaN(n))return console.error("Error loading stop sign. Unable to determine heading."),null;var r=t.stopLine[0].segment[0].lineSegment.point[0],a=new m.Vector3(r.x,r.y,0);return a=e.applyOffset(a),{pos:a,heading:n}}},{key:"addStopSign",value:function(t,e,n){var i=[],r=this.getStopSignPositionAndHeading(t,e);return r&&(0,P.loadObject)(w.default,S.default,R,function(t){t.rotation.x=Math.PI/2,t.rotation.y=r.heading+Math.PI/2,t.position.set(r.pos.x,r.pos.y,0),t.matrixAutoUpdate=!1,t.updateMatrix(),n.add(t),i.push(t)}),this.drawStopLine(t.stopLine,i,e,n),i}},{key:"removeDrewObjects",value:function(t,e){t&&t.forEach(function(t){e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()})}},{key:"removeAllElements",value:function(t){this.removeExpiredElements([],t)}},{key:"removeExpiredElements",value:function(t,e){var n=this,i={};for(var r in this.data)!function(r){var a=n.shouldDrawThisElementKind(r);i[r]=[];var o=n.data[r],s=t[r];o.forEach(function(t){a&&s&&s.includes(t.id.id)?i[r].push(t):("overlap"!==r&&n.removeDrewObjects(t.drewObjects,e),"lane"===r&&delete n.laneHeading[t.id.id],"overlap"===r&&delete n.overlapMap[t.id.id])})}(r);this.data=i}},{key:"appendMapData",value:function(t,e,n){var i=["overlap","lane","junction","road","clearArea","signal","stopSign","crosswalk"],r=!0,a=!1,o=void 0;try{for(var l,c=(0,u.default)(i);!(r=(l=c.next()).done);r=!0){var h=l.value;if(t[h]){this.data[h]||(this.data[h]=[]);for(var d=0;d.2&&(v-=.7)})}}))}},{key:"getPredCircle",value:function(){var t=new u.MeshBasicMaterial({color:16777215,transparent:!1,opacity:.5}),e=(0,f.drawCircle)(.2,t);return this.predCircles.push(e),e}}]),t}();e.default=m},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(l),n(15)),c=i(u),h=n(31),d=(n(39),function(){function t(){(0,a.default)(this,t),this.routePaths=[],this.lastRoutingTime=-1}return(0,s.default)(t,[{key:"update",value:function(t,e,n,i){var r=this;this.routePaths.forEach(function(t){t.visible=c.default.options.showRouting}),this.lastRoutingTime!==t&&void 0!==e&&(this.lastRoutingTime=t,this.routePaths.forEach(function(t){i.remove(t),t.material.dispose(),t.geometry.dispose()}),e.forEach(function(t){var e=n.applyOffsetToArray(t.point),a=(0,h.drawThickBandFromPoints)(e,.3,16711680,.6,5);a.visible=c.default.options.showRouting,i.add(a),r.routePaths.push(a)}))}}]),t}());e.default=d},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12);!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(l);n(538);var u=n(526),c=i(u),h=n(28),d=i(h),f=n(15),p=(i(f),n(16)),m=i(p),g=n(31),v=function(){function t(){(0,a.default)(this,t),this.routePoints=[],this.inEditingMode=!1}return(0,s.default)(t,[{key:"isInEditingMode",value:function(){return this.inEditingMode}},{key:"enableEditingMode",value:function(t,e){this.inEditingMode=!0;t.fov=d.default.camera.Map.fov,t.near=d.default.camera.Map.near,t.far=d.default.camera.Map.far,t.updateProjectionMatrix(),m.default.requestMapElementIdsByRadius(this.EDITING_MAP_RADIUS)}},{key:"disableEditingMode",value:function(t){this.inEditingMode=!1,this.removeAllRoutePoints(t)}},{key:"addRoutingPoint",value:function(t,e,n){var i=e.applyOffset({x:t.x,y:t.y}),r=(0,g.drawImage)(c.default,3.5,3.5,i.x,i.y,.3);this.routePoints.push(r),n.add(r)}},{key:"removeLastRoutingPoint",value:function(t){var e=this.routePoints.pop();e&&(t.remove(e),e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose())}},{key:"removeAllRoutePoints",value:function(t){this.routePoints.forEach(function(e){t.remove(e),e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose()}),this.routePoints=[]}},{key:"sendRoutingRequest",value:function(t,e){if(0===this.routePoints.length)return alert("Please provide at least an end point."),!1;var n=this.routePoints.map(function(t){return t.position.z=0,e.applyOffset(t.position,!0)}),i=n.length>1?n[0]:e.applyOffset(t,!0),r=n[n.length-1],a=n.length>1?n.slice(1,-1):[];return m.default.requestRoute(i,a,r),!0}}]),t}();e.default=v,v.prototype.EDITING_MAP_RADIUS=1500},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(39),h={},d=!1,f=new u.FontLoader,p="fonts/gentilis_bold.typeface.json";f.load(p,function(t){h.gentilis_bold=t,d=!0},function(t){console.log(p+t.loaded/t.total*100+"% loaded")},function(t){console.log("An error happened when loading "+p)});var m=function(){function t(){(0,a.default)(this,t),this.charMeshes={},this.charPointers={}}return(0,s.default)(t,[{key:"reset",value:function(){this.charPointers={}}},{key:"composeText",value:function(t){if(!d)return null;for(var e=c.map(t,function(t){return t.charCodeAt(0)-32}),n=new u.Object3D,i=0;i0?this.charMeshes[r][0].clone():this.drawChar3D(t[i]),this.charMeshes[r].push(o)),o.position.set(.4*(i-e.length/2),0,0),this.charPointers[r]++,n.add(o)}return n}},{key:"drawChar3D",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.gentilis_bold,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16771584,a=new u.TextGeometry(t,{font:e,size:n,height:i}),o=new u.MeshBasicMaterial({color:r});return new u.Mesh(a,o)}}]),t}();e.default=m},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=new d.default(t);for(var i in e)n.delete(i);return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(40),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(243),d=i(h),f=n(12),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(f),m=n(28),g=i(m),v=n(16),y=(i(v),n(59)),b=function(){function t(){(0,l.default)(this,t),this.mesh=!0,this.type="tile",this.hash=-1,this.currentTiles={},this.initialized=!1,this.range=g.default.ground.tileRange,this.metadata=null,this.mapId=null,this.mapUrlPrefix=null}return(0,c.default)(t,[{key:"initialize",value:function(t,e){this.metadata={tileLength:e.tile*e.mpp,left:e.left,top:e.top,numCols:e.wnum,numRows:e.hnum,mpp:e.mpp,tile:e.tile,imageUrl:e.image_url},this.mapId=e.mapid,this.mapUrlPrefix=this.metadata.imageUrl?this.metadata.imageUrl+"/"+this.mapId:t+"/map/getMapPic",this.initialized=!0}},{key:"removeDrewObject",value:function(t,e){var n=this.currentTiles[t];n&&(e.remove(n),n.geometry&&n.geometry.dispose(),n.material&&n.material.dispose()),delete this.currentTiles[t]}},{key:"appendTiles",value:function(t,e,n,i,r){var a=this;if(!(e<0||e>this.metadata.numCols||t<0||t>this.metadata.numRows)){var o=this.metadata.imageUrl?this.mapUrlPrefix+"/"+this.metadata.mpp+"_"+t+"_"+e+"_"+this.metadata.tile+".png":this.mapUrlPrefix+"?mapId="+this.mapId+"&i="+t+"&j="+e,s=i.applyOffset({x:this.metadata.left+(t+.5)*this.metadata.tileLength,y:this.metadata.top-(e+.5)*this.metadata.tileLength,z:0});(0,y.loadTexture)(o,function(t){var e=new p.Mesh(new p.PlaneGeometry(1,1),new p.MeshBasicMaterial({map:t}));e.position.set(s.x,s.y,s.z),e.scale.set(a.metadata.tileLength,a.metadata.tileLength,1),e.overdraw=!1,a.currentTiles[n]=e,r.add(e)})}}},{key:"removeExpiredTiles",value:function(t,e){for(var n in this.currentTiles)t.has(n)||this.removeDrewObject(n,e)}},{key:"updateIndex",value:function(t,e,n,i){if(t!==this.hash){this.hash=t,this.removeExpiredTiles(e,i);var a=r(e,this.currentTiles);if(!_.isEmpty(a)||!this.initialized){var s=!0,l=!1,u=void 0;try{for(var c,h=(0,o.default)(a);!(s=(c=h.next()).done);s=!0){var d=c.value;this.currentTiles[d]=null;var f=d.split(","),p=parseInt(f[0]),m=parseInt(f[1]);this.appendTiles(p,m,d,n,i)}}catch(t){l=!0,u=t}finally{try{!s&&h.return&&h.return()}finally{if(l)throw u}}}}}},{key:"update",value:function(t,e,n){if(e.isInitialized()&&this.initialized){for(var i=t.autoDrivingCar.positionX,r=t.autoDrivingCar.positionY,a=Math.floor((i-this.metadata.left)/this.metadata.tileLength),o=Math.floor((this.metadata.top-r)/this.metadata.tileLength),s=new d.default,l="",u=a-this.range;u<=a+this.range;u++)for(var c=o-this.range;c<=o+this.range;c++){var h=u+","+c;s.add(h),l+=h}this.updateIndex(l,s,e,n)}}}]),t}();e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!t)return[];for(var n=[],i=0;i0){if(Math.abs(n[n.length-1].x-a.x)+Math.abs(n[n.length-1].y-a.y)0&&n=80;i?e.error=[]:r&&e.error.shift();(0===e.error.length||n!==e.error[e.error.length-1].x)&&e.error.push({x:n,y:t.stationError})}}},{key:"updateSteerCurve",value:function(t,e){var n=e.steeringAngle/e.steeringRatio,i=null;i=Math.abs(Math.tan(n))>1e-4?e.length/Math.tan(n):1e5;var r=e.heading,a=Math.abs(i),o=7200/(2*Math.PI*a)*Math.PI/180,s=null,l=null,u=null,c=null;i>=0?(u=Math.PI/2+r,c=r-Math.PI/2,s=0,l=o):(u=r-Math.PI/2,c=Math.PI/2+r,s=-o,l=0);var h=e.positionX+Math.cos(u)*a,d=e.positionY+Math.sin(u)*a,f=new v.EllipseCurve(h,d,a,a,s,l,!1,c);t.steerCurve=f.getPoints(25)}},{key:"interpolateValueByCurrentTime",value:function(t,e,n){if("timestampSec"===n)return e;var i=t.map(function(t){return t.timestampSec}),r=t.map(function(t){return t[n]});return new v.LinearInterpolant(i,r,1,[]).evaluate(e)[0]}},{key:"updateGraph",value:function(t,e,n,i,r){var a=n.timestampSec,o=t.target.length>0&&a=80;if(o?(t.target=[],t.real=[],t.autoModeZone=[]):s&&(t.target.shift(),t.real.shift(),t.autoModeZone.shift()),0===t.target.length||a!==t.target[t.target.length-1].t){t.plan=e.map(function(t){return{x:t[i],y:t[r]}}),t.target.push({x:this.interpolateValueByCurrentTime(e,a,i),y:this.interpolateValueByCurrentTime(e,a,r),t:a}),t.real.push({x:n[i],y:n[r]});var l="DISENGAGE_NONE"===n.disengageType;t.autoModeZone.push({x:n[i],y:l?n[r]:void 0})}}},{key:"update",value:function(t){var e=t.planningTrajectory,n=t.autoDrivingCar;e&&n&&(this.updateGraph(this.data.speedGraph,e,n,"timestampSec","speed"),this.updateGraph(this.data.accelerationGraph,e,n,"timestampSec","speedAcceleration"),this.updateGraph(this.data.curvatureGraph,e,n,"timestampSec","kappa"),this.updateGraph(this.data.trajectoryGraph,e,n,"positionX","positionY"),this.updateSteerCurve(this.data.trajectoryGraph,n),this.data.trajectoryGraph.pose[0].x=n.positionX,this.data.trajectoryGraph.pose[0].y=n.positionY,this.data.trajectoryGraph.pose[0].rotation=n.heading,this.updateTime(t.planningTime)),t.controlData&&this.updateStationErrorGraph(t.controlData)}}]),t}(),s=a(o.prototype,"lastUpdatedTime",[g.observable],{enumerable:!0,initializer:function(){return null}}),a(o.prototype,"updateTime",[g.action],(0,h.default)(o.prototype,"updateTime"),o.prototype),o);e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,m.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,s,l,u,c,h,d,f,p=n(19),m=i(p),g=n(25),v=i(g),y=n(32),b=i(y),x=n(0),_=i(x),w=n(1),M=i(w),S=n(23),E=n(16),k=i(E),T=(o=function(){function t(){(0,_.default)(this,t),this.modes={},r(this,"currentMode",s,this),this.vehicles=[],r(this,"currentVehicle",l,this),this.maps=[],r(this,"currentMap",u,this),r(this,"moduleStatus",c,this),r(this,"hardwareStatus",h,this),r(this,"enableStartAuto",d,this),this.displayName={},r(this,"dockerImage",f,this)}return(0,M.default)(t,[{key:"initialize",value:function(t){var e=this;t.dockerImage&&(this.dockerImage=t.dockerImage),t.modes&&(this.modes=t.modes),this.vehicles=(0,b.default)(t.availableVehicles).sort().map(function(t){return t}),this.maps=(0,b.default)(t.availableMaps).sort().map(function(t){return t}),(0,b.default)(t.modules).forEach(function(n){e.moduleStatus.set(n,!1),e.displayName[n]=t.modules[n].displayName}),(0,b.default)(t.hardware).forEach(function(n){e.hardwareStatus.set(n,"NOT_READY"),e.displayName[n]=t.hardware[n].displayName})}},{key:"updateStatus",value:function(t){if(t.currentMode&&(this.currentMode=t.currentMode),t.currentMap&&(this.currentMap=t.currentMap),t.currentVehicle&&(this.currentVehicle=t.currentVehicle),t.systemStatus){if(t.systemStatus.modules)for(var e in t.systemStatus.modules)this.moduleStatus.set(e,t.systemStatus.modules[e].processStatus.running);if(t.systemStatus.hardware)for(var n in t.systemStatus.hardware)this.hardwareStatus.set(n,t.systemStatus.hardware[n].summary)}}},{key:"update",value:function(t){this.enableStartAuto="READY_TO_ENGAGE"===t.engageAdvice}},{key:"toggleModule",value:function(t){this.moduleStatus.set(t,!this.moduleStatus.get(t));var e=this.moduleStatus.get(t)?"start":"stop";k.default.executeModuleCommand(t,e)}},{key:"showRTKCommands",get:function(){return"RTK Record / Replay"===this.currentMode}},{key:"inNavigationMode",get:function(){return"Navigation"===this.currentMode}}]),t}(),s=a(o.prototype,"currentMode",[S.observable],{enumerable:!0,initializer:function(){return"none"}}),l=a(o.prototype,"currentVehicle",[S.observable],{enumerable:!0,initializer:function(){return"none"}}),u=a(o.prototype,"currentMap",[S.observable],{enumerable:!0,initializer:function(){return"none"}}),c=a(o.prototype,"moduleStatus",[S.observable],{enumerable:!0,initializer:function(){return S.observable.map()}}),h=a(o.prototype,"hardwareStatus",[S.observable],{enumerable:!0,initializer:function(){return S.observable.map()}}),d=a(o.prototype,"enableStartAuto",[S.observable],{enumerable:!0,initializer:function(){return!1}}),f=a(o.prototype,"dockerImage",[S.observable],{enumerable:!0,initializer:function(){return""}}),a(o.prototype,"initialize",[S.action],(0,v.default)(o.prototype,"initialize"),o.prototype),a(o.prototype,"updateStatus",[S.action],(0,v.default)(o.prototype,"updateStatus"),o.prototype),a(o.prototype,"update",[S.action],(0,v.default)(o.prototype,"update"),o.prototype),a(o.prototype,"toggleModule",[S.action],(0,v.default)(o.prototype,"toggleModule"),o.prototype),a(o.prototype,"showRTKCommands",[S.computed],(0,v.default)(o.prototype,"showRTKCommands"),o.prototype),a(o.prototype,"inNavigationMode",[S.computed],(0,v.default)(o.prototype,"inNavigationMode"),o.prototype),o);e.default=T},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,b.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}function o(t){return 10*Math.round(t/10)}function s(t){switch(t){case"DISENGAGE_MANUAL":return"MANUAL";case"DISENGAGE_NONE":return"AUTO";case"DISENGAGE_EMERGENCY":return"DISENGAGED";case"DISENGAGE_AUTO_STEER_ONLY":return"AUTO STEER";case"DISENGAGE_AUTO_SPEED_ONLY":return"AUTO SPEED";case"DISENGAGE_CHASSIS_ERROR":return"CHASSIS ERROR";default:return"?"}}function l(t){return"DISENGAGE_NONE"===t||"DISENGAGE_AUTO_STEER_ONLY"===t||"DISENGAGE_AUTO_SPEED_ONLY"===t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u,c,h,d,f,p,m,g,v,y=n(19),b=i(y),x=n(25),_=i(x),w=n(0),M=i(w),S=n(1),E=i(S),k=n(23),T=(u=function(){function t(){(0,M.default)(this,t),r(this,"throttlePercent",c,this),r(this,"brakePercent",h,this),r(this,"speed",d,this),r(this,"steeringAngle",f,this),r(this,"steeringPercentage",p,this),r(this,"drivingMode",m,this),r(this,"isAutoMode",g,this),r(this,"turnSignal",v,this)}return(0,E.default)(t,[{key:"update",value:function(t){t.autoDrivingCar&&(void 0!==t.autoDrivingCar.throttlePercentage&&(this.throttlePercent=o(t.autoDrivingCar.throttlePercentage)),void 0!==t.autoDrivingCar.brakePercentage&&(this.brakePercent=o(t.autoDrivingCar.brakePercentage)),void 0!==t.autoDrivingCar.speed&&(this.speed=t.autoDrivingCar.speed),void 0===t.autoDrivingCar.steeringPercentage||isNaN(t.autoDrivingCar.steeringPercentage)||(this.steeringPercentage=Math.round(t.autoDrivingCar.steeringPercentage)),void 0===t.autoDrivingCar.steeringAngle||isNaN(t.autoDrivingCar.steeringAngle)||(this.steeringAngle=-Math.round(180*t.autoDrivingCar.steeringAngle/Math.PI)),void 0!==t.autoDrivingCar.disengageType&&(this.drivingMode=s(t.autoDrivingCar.disengageType),this.isAutoMode=l(t.autoDrivingCar.disengageType)),void 0!==t.autoDrivingCar.currentSignal&&(this.turnSignal=t.autoDrivingCar.currentSignal))}}]),t}(),c=a(u.prototype,"throttlePercent",[k.observable],{enumerable:!0,initializer:function(){return 0}}),h=a(u.prototype,"brakePercent",[k.observable],{enumerable:!0,initializer:function(){return 0}}),d=a(u.prototype,"speed",[k.observable],{enumerable:!0,initializer:function(){return 0}}),f=a(u.prototype,"steeringAngle",[k.observable],{enumerable:!0,initializer:function(){return 0}}),p=a(u.prototype,"steeringPercentage",[k.observable],{enumerable:!0,initializer:function(){return 0}}),m=a(u.prototype,"drivingMode",[k.observable],{enumerable:!0,initializer:function(){return"?"}}),g=a(u.prototype,"isAutoMode",[k.observable],{enumerable:!0,initializer:function(){return!1}}),v=a(u.prototype,"turnSignal",[k.observable],{enumerable:!0,initializer:function(){return""}}),a(u.prototype,"update",[k.action],(0,_.default)(u.prototype,"update"),u.prototype),u);e.default=T},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,h.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,s,l,u,c=n(19),h=i(c),d=n(25),f=i(d),p=n(0),m=i(p),g=n(1),v=i(g),y=n(23),b=(o=function(){function t(){(0,m.default)(this,t),r(this,"lastUpdateTimestamp",s,this),r(this,"hasActiveNotification",l,this),r(this,"items",u,this),this.refreshTimer=null}return(0,v.default)(t,[{key:"startRefresh",value:function(){var t=this;this.clearRefreshTimer(),this.refreshTimer=setInterval(function(){Date.now()-t.lastUpdateTimestamp>6e3&&(t.setHasActiveNotification(!1),t.clearRefreshTimer())},500)}},{key:"clearRefreshTimer",value:function(){null!==this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}},{key:"setHasActiveNotification",value:function(t){this.hasActiveNotification=t}},{key:"update",value:function(t){if(t.monitor){var e=t.monitor,n=e.item,i=e.header,r=Math.floor(1e3*i.timestampSec);r>this.lastUpdateTimestamp&&(this.hasActiveNotification=!0,this.lastUpdateTimestamp=r,this.items.replace(n),this.startRefresh())}}},{key:"insert",value:function(t,e,n){var i=[];i.push({msg:e,logLevel:t});for(var r=0;r10||t<-10?100*t/Math.abs(t):t}},{key:"extractDataPoints",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!t)return[];var a=t.map(function(t){return{x:t[e]+r,y:t[n]}});return i&&t.length&&a.push({x:t[0][e],y:t[0][n]}),a}},{key:"updateSLFrame",value:function(t){var e=this.data.slGraph,n=t[0].sampledS;e.mapLowerBound=this.generateDataPoints(n,t[0].mapLowerBound,this.transformMapBound),e.mapUpperBound=this.generateDataPoints(n,t[0].mapUpperBound,this.transformMapBound),e.staticObstacleLowerBound=this.generateDataPoints(n,t[0].staticObstacleLowerBound),e.staticObstacleUpperBound=this.generateDataPoints(n,t[0].staticObstacleUpperBound),e.dynamicObstacleLowerBound=this.generateDataPoints(n,t[0].dynamicObstacleLowerBound),e.dynamicObstacleUpperBound=this.generateDataPoints(n,t[0].dynamicObstacleUpperBound),e.pathLine=this.extractDataPoints(t[0].slPath,"s","l");var i=t[1].aggregatedBoundaryS;e.aggregatedBoundaryLow=this.generateDataPoints(i,t[1].aggregatedBoundaryLow),e.aggregatedBoundaryHigh=this.generateDataPoints(i,t[1].aggregatedBoundaryHigh)}},{key:"updateSTGraph",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value;this.data.stGraph[o.name]={obstaclesBoundary:{}};var s=this.data.stGraph[o.name];if(o.boundary){var l=!0,u=!1,c=void 0;try{for(var h,d=(0,f.default)(o.boundary);!(l=(h=d.next()).done);l=!0){var p=h.value,m=p.type.substring("ST_BOUNDARY_TYPE_".length),g=p.name+"_"+m;s.obstaclesBoundary[g]=this.extractDataPoints(p.point,"t","s",!0)}}catch(t){u=!0,c=t}finally{try{!l&&d.return&&d.return()}finally{if(u)throw c}}}s.curveLine=this.extractDataPoints(o.speedProfile,"t","s"),o.kernelCruiseRef&&(s.kernelCruise=this.generateDataPoints(o.kernelCruiseRef.t,o.kernelCruiseRef.cruiseLineS)),o.kernelFollowRef&&(s.kernelFollow=this.generateDataPoints(o.kernelFollowRef.t,o.kernelFollowRef.followLineS))}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"updateSTSpeedGraph",value:function(t){var e=this,n=!0,i=!1,r=void 0;try{for(var a,o=(0,f.default)(t);!(n=(a=o.next()).done);n=!0){var s=a.value;this.data.stSpeedGraph[s.name]={};var l=this.data.stSpeedGraph[s.name];l.limit=this.extractDataPoints(s.speedLimit,"s","v"),l.planned=this.extractDataPoints(s.speedProfile,"s","v"),s.speedConstraint&&function(){var t=s.speedProfile.map(function(t){return t.t}),n=s.speedProfile.map(function(t){return t.s}),i=new b.LinearInterpolant(t,n,1,[]),r=s.speedConstraint.t.map(function(t){return i.evaluate(t)[0]});l.lowerConstraint=e.generateDataPoints(r,s.speedConstraint.lowerBound),l.upperConstraint=e.generateDataPoints(r,s.speedConstraint.upperBound)}()}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}},{key:"updateSpeed",value:function(t,e){var n=this.data.speedGraph;if(t){var i=!0,r=!1,a=void 0;try{for(var o,s=(0,f.default)(t);!(i=(o=s.next()).done);i=!0){var l=o.value;n[l.name]=this.extractDataPoints(l.speedPoint,"t","v")}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}}e&&(n.finalSpeed=this.extractDataPoints(e,"timestampSec","speed",!1,-this.planningTime))}},{key:"updateAccelerationGraph",value:function(t){var e=this.data.accelerationGraph;t&&(e.acceleration=this.extractDataPoints(t,"timestampSec","speedAcceleration",!1,-this.planningTime))}},{key:"updateThetaGraph",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s="planning_reference_line"===o.name?"ReferenceLine":o.name;this.data.thetaGraph[s]=this.extractDataPoints(o.pathPoint,"s","theta")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"updateKappaGraph",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s="planning_reference_line"===o.name?"ReferenceLine":o.name;this.data.kappaGraph[s]=this.extractDataPoints(o.pathPoint,"s","kappa")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"updateDkappaGraph",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s="planning_reference_line"===o.name?"ReferenceLine":o.name;this.data.dkappaGraph[s]=this.extractDataPoints(o.pathPoint,"s","dkappa")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"updateLatencyGraph",value:function(t,e){for(var n in this.latencyGraph){var i=this.latencyGraph[n];if(i.length>0){var r=i[0].x,a=i[i.length-1].x,o=t-r;t3e5&&i.shift()}0!==i.length&&i[i.length-1].x===t||i.push({x:t,y:e.planning})}}},{key:"updateDpPolyGraph",value:function(t){var e=this.data.dpPolyGraph;if(t.sampleLayer){e.sampleLayer=[];var n=!0,i=!1,r=void 0;try{for(var a,o=(0,f.default)(t.sampleLayer);!(n=(a=o.next()).done);n=!0){a.value.slPoint.map(function(t){var n=t.s,i=t.l;e.sampleLayer.push({x:n,y:i})})}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}t.minCostPoint&&(e.minCostPoint=this.extractDataPoints(t.minCostPoint,"s","l"))}},{key:"update",value:function(t){var e=t.planningData;if(e){if(this.planningTime===t.planningTime)return;this.data=this.initData(),e.slFrame&&e.slFrame.length>=2&&this.updateSLFrame(e.slFrame),e.stGraph&&(this.updateSTGraph(e.stGraph),this.updateSTSpeedGraph(e.stGraph)),e.speedPlan&&t.planningTrajectory&&this.updateSpeed(e.speedPlan,t.planningTrajectory),t.planningTrajectory&&this.updateAccelerationGraph(t.planningTrajectory),e.path&&(this.updateKappaGraph(e.path),this.updateDkappaGraph(e.path),this.updateThetaGraph(e.path)),e.dpPolyGraph&&this.updateDpPolyGraph(e.dpPolyGraph),t.latency&&this.updateLatencyGraph(t.planningTime,t.latency),this.updatePlanningTime(t.planningTime)}}}]),t}(),s=a(o.prototype,"planningTime",[y.observable],{enumerable:!0,initializer:function(){return null}}),a(o.prototype,"updatePlanningTime",[y.action],(0,h.default)(o.prototype,"updatePlanningTime"),o.prototype),o);e.default=x},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,p.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,s,l,u,c,h,d,f=n(19),p=i(f),m=n(25),g=i(m),v=n(0),y=i(v),b=n(1),x=i(b),_=n(23);n(542);var w=(o=function(){function t(){(0,y.default)(this,t),this.FPS=10,this.msPerFrame=100,this.jobId=null,this.mapId=null,r(this,"numFrames",s,this),r(this,"requestedFrame",l,this),r(this,"retrievedFrame",u,this),r(this,"isPlaying",c,this),r(this,"isSeeking",h,this),r(this,"seekingFrame",d,this)}return(0,x.default)(t,[{key:"setMapId",value:function(t){this.mapId=t}},{key:"setJobId",value:function(t){this.jobId=t}},{key:"setNumFrames",value:function(t){this.numFrames=parseInt(t)}},{key:"setPlayRate",value:function(t){if("number"==typeof t&&t>0){var e=1/this.FPS*1e3;this.msPerFrame=e/t}}},{key:"initialized",value:function(){return this.numFrames&&null!==this.jobId&&null!==this.mapId}},{key:"hasNext",value:function(){return this.initialized()&&this.requestedFrame0&&t<=this.numFrames&&(this.seekingFrame=t,this.requestedFrame=t-1,this.isSeeking=!0)}},{key:"resetFrame",value:function(){this.requestedFrame=0,this.retrievedFrame=0,this.seekingFrame=1}},{key:"shouldProcessFrame",value:function(t){return!(!t||!t.sequenceNum||this.seekingFrame!==t.sequenceNum||!this.isPlaying&&!this.isSeeking)&&(this.retrievedFrame=t.sequenceNum,this.isSeeking=!1,this.seekingFrame++,!0)}},{key:"currentFrame",get:function(){return this.retrievedFrame}},{key:"replayComplete",get:function(){return this.seekingFrame>this.numFrames}}]),t}(),s=a(o.prototype,"numFrames",[_.observable],{enumerable:!0,initializer:function(){return 0}}),l=a(o.prototype,"requestedFrame",[_.observable],{enumerable:!0,initializer:function(){return 0}}),u=a(o.prototype,"retrievedFrame",[_.observable],{enumerable:!0,initializer:function(){return 0}}),c=a(o.prototype,"isPlaying",[_.observable],{enumerable:!0,initializer:function(){return!1}}),h=a(o.prototype,"isSeeking",[_.observable],{enumerable:!0,initializer:function(){return!0}}),d=a(o.prototype,"seekingFrame",[_.observable],{enumerable:!0,initializer:function(){return 1}}),a(o.prototype,"next",[_.action],(0,g.default)(o.prototype,"next"),o.prototype),a(o.prototype,"currentFrame",[_.computed],(0,g.default)(o.prototype,"currentFrame"),o.prototype),a(o.prototype,"replayComplete",[_.computed],(0,g.default)(o.prototype,"replayComplete"),o.prototype),a(o.prototype,"setPlayAction",[_.action],(0,g.default)(o.prototype,"setPlayAction"),o.prototype),a(o.prototype,"seekFrame",[_.action],(0,g.default)(o.prototype,"seekFrame"),o.prototype),a(o.prototype,"resetFrame",[_.action],(0,g.default)(o.prototype,"resetFrame"),o.prototype),a(o.prototype,"shouldProcessFrame",[_.action],(0,g.default)(o.prototype,"shouldProcessFrame"),o.prototype),o);e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,c.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,s,l,u=n(19),c=i(u),h=n(25),d=i(h),f=n(0),p=i(f),m=n(1),g=i(m),v=n(23),y=n(35),b=i(y),x=n(58),w=i(x),M=(o=function(){function t(){(0,p.default)(this,t),r(this,"defaultRoutingEndPoint",s,this),r(this,"currentPOI",l,this)}return(0,g.default)(t,[{key:"updateDefaultRoutingEndPoint",value:function(t){if(void 0!==t.poi){this.defaultRoutingEndPoint={};for(var e=0;e150&&console.log("Last sim_world_update took "+(t.timestamp-this.lastUpdateTimestamp)+"ms"),this.lastUpdateTimestamp=t.timestamp,-1!==this.lastSeqNum&&t.world.sequenceNum>this.lastSeqNum+1&&console.debug("Last seq: "+this.lastSeqNum+". New seq: "+t.world.sequenceNum+"."),this.lastSeqNum=t.world.sequenceNum}},{key:"startPlayback",value:function(t){var e=this;clearInterval(this.requestTimer),this.requestTimer=setInterval(function(){e.websocket.readyState===e.websocket.OPEN&&h.default.playback.initialized()&&(e.requestSimulationWorld(h.default.playback.jobId,h.default.playback.next()),h.default.playback.hasNext()||(clearInterval(e.requestTimer),e.requestTimer=null))},t/2),clearInterval(this.processTimer),this.processTimer=setInterval(function(){if(h.default.playback.initialized()){var t=100*h.default.playback.seekingFrame;t in e.frameData&&e.processSimWorld(e.frameData[t]),h.default.playback.replayComplete&&(clearInterval(e.processTimer),e.processTimer=null)}},t)}},{key:"pausePlayback",value:function(){clearInterval(this.requestTimer),clearInterval(this.processTimer),this.requestTimer=null,this.processTimer=null}},{key:"requestGroundMeta",value:function(t){this.websocket.send((0,a.default)({type:"RetrieveGroundMeta",mapId:t}))}},{key:"processSimWorld",value:function(t){var e="string"==typeof t.world?JSON.parse(t.world):t.world;h.default.playback.shouldProcessFrame(e)&&(h.default.updateTimestamp(t.timestamp),f.default.maybeInitializeOffest(e.autoDrivingCar.positionX,e.autoDrivingCar.positionY),f.default.updateWorld(e,t.planningData),h.default.meters.update(e),h.default.monitor.update(e),h.default.trafficSignal.update(e))}},{key:"requstFrameCount",value:function(t){this.websocket.send((0,a.default)({type:"RetrieveFrameCount",jobId:t}))}},{key:"requestSimulationWorld",value:function(t,e){var n=100*e;n in this.frameData?h.default.playback.isSeeking&&this.processSimWorld(this.frameData[n]):this.websocket.send((0,a.default)({type:"RequestSimulationWorld",jobId:t,frameId:e}))}}]),t}();e.default=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(60),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(15),h=i(c),d=n(35),f=i(d),p=n(78),m=i(p),g=function(){function t(e){(0,s.default)(this,t),this.serverAddr=e,this.websocket=null,this.worker=new m.default}return(0,u.default)(t,[{key:"initialize",value:function(){var t=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType="arraybuffer"}catch(e){return console.error("Failed to establish a connection: "+e),void setTimeout(function(){t.initialize()},1e3)}this.websocket.onmessage=function(e){t.worker.postMessage({source:"point_cloud",data:e.data})},this.websocket.onclose=function(e){console.log("WebSocket connection closed with code: "+e.code),t.initialize()},this.worker.onmessage=function(t){"PointCloudStatus"===t.data.type?(h.default.setOptionStatus("showPointCloud",t.data.enabled),!1===h.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})):!0===h.default.options.showPointCloud&&void 0!==t.data.num&&f.default.updatePointCloud(t.data)},clearInterval(this.timer),this.timer=setInterval(function(){t.websocket.readyState===t.websocket.OPEN&&!0===h.default.options.showPointCloud&&t.websocket.send((0,a.default)({type:"RequestPointCloud"}))},100)}},{key:"togglePointCloud",value:function(t){this.websocket.send((0,a.default)({type:"TogglePointCloud",enable:t})),!1===h.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})}}]),t}();e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(60),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(15),h=i(c),d=n(35),f=i(d),p=n(58),m=i(p),g=n(78),v=i(g),y=function(){function t(e){(0,s.default)(this,t),this.serverAddr=e,this.websocket=null,this.simWorldUpdatePeriodMs=100,this.simWorldLastUpdateTimestamp=0,this.mapUpdatePeriodMs=1e3,this.mapLastUpdateTimestamp=0,this.updatePOI=!0,this.routingTime=void 0,this.currentMode=null,this.worker=new v.default}return(0,u.default)(t,[{key:"initialize",value:function(){var t=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType="arraybuffer"}catch(e){return console.error("Failed to establish a connection: "+e),void setTimeout(function(){t.initialize()},1e3)}this.websocket.onmessage=function(e){t.worker.postMessage({source:"realtime",data:e.data})},this.worker.onmessage=function(e){var n=e.data;switch(n.type){case"HMIConfig":h.default.hmi.initialize(n.data);break;case"HMIStatus":h.default.hmi.updateStatus(n.data),f.default.updateGroundImage(h.default.hmi.currentMap);break;case"SimControlStatus":h.default.setOptionStatus("simControlEnabled",n.enabled);break;case"SimWorldUpdate":t.checkMessage(n);var i=t.currentMode!==h.default.hmi.currentMode;t.currentMode=h.default.hmi.currentMode,h.default.hmi.inNavigationMode?(m.default.isInitialized()&&m.default.update(n),n.autoDrivingCar.positionX=0,n.autoDrivingCar.positionY=0,n.autoDrivingCar.heading=0,f.default.coordinates.setSystem("FLU"),t.mapUpdatePeriodMs=100):(f.default.coordinates.setSystem("ENU"),t.mapUpdatePeriodMs=1e3),h.default.updateTimestamp(n.timestamp),h.default.updateModuleDelay(n),f.default.maybeInitializeOffest(n.autoDrivingCar.positionX,n.autoDrivingCar.positionY,i),h.default.meters.update(n),h.default.monitor.update(n),h.default.trafficSignal.update(n),h.default.hmi.update(n),f.default.updateWorld(n),t.updateMapIndex(n),h.default.options.showPNCMonitor&&(h.default.planningData.update(n),h.default.controlData.update(n)),t.routingTime!==n.routingTime&&(t.requestRoutePath(),t.routingTime=n.routingTime);break;case"MapElementIds":f.default.updateMapIndex(n.mapHash,n.mapElementIds,n.mapRadius);break;case"DefaultEndPoint":h.default.routeEditingManager.updateDefaultRoutingEndPoint(n);break;case"RoutePath":f.default.updateRouting(n.routingTime,n.routePath)}},this.websocket.onclose=function(e){console.log("WebSocket connection closed, close_code: "+e.code),t.initialize()},clearInterval(this.timer),this.timer=setInterval(function(){if(t.websocket.readyState===t.websocket.OPEN){t.updatePOI&&(t.requestDefaultRoutingEndPoint(),t.updatePOI=!1);var e=h.default.options.showPNCMonitor;t.websocket.send((0,a.default)({type:"RequestSimulationWorld",planning:e}))}},this.simWorldUpdatePeriodMs)}},{key:"updateMapIndex",value:function(t){var e=new Date,n=e-this.mapLastUpdateTimestamp;t.mapHash&&n>=this.mapUpdatePeriodMs&&(f.default.updateMapIndex(t.mapHash,t.mapElementIds,t.mapRadius),this.mapLastUpdateTimestamp=e)}},{key:"checkMessage",value:function(t){var e=(new Date).getTime(),n=e-this.simWorldLastUpdateTimestamp;0!==this.simWorldLastUpdateTimestamp&&n>250&&console.log("Last sim_world_update took "+n+"ms"),this.simWorldLastUpdateTimestamp=e}},{key:"requestMapElementIdsByRadius",value:function(t){this.websocket.send((0,a.default)({type:"RetrieveMapElementIdsByRadius",radius:t}))}},{key:"requestRoute",value:function(t,e,n){this.websocket.send((0,a.default)({type:"SendRoutingRequest",start:t,end:n,waypoint:e}))}},{key:"requestDefaultRoutingEndPoint",value:function(){this.websocket.send((0,a.default)({type:"GetDefaultEndPoint"}))}},{key:"resetBackend",value:function(){this.websocket.send((0,a.default)({type:"Reset"}))}},{key:"dumpMessages",value:function(){this.websocket.send((0,a.default)({type:"Dump"}))}},{key:"changeSetupMode",value:function(t){this.websocket.send((0,a.default)({type:"ChangeMode",new_mode:t}))}},{key:"changeMap",value:function(t){this.websocket.send((0,a.default)({type:"ChangeMap",new_map:t})),this.updatePOI=!0}},{key:"changeVehicle",value:function(t){this.websocket.send((0,a.default)({type:"ChangeVehicle",new_vehicle:t}))}},{key:"executeModeCommand",value:function(t){this.websocket.send((0,a.default)({type:"ExecuteModeCommand",command:t}))}},{key:"executeModuleCommand",value:function(t,e){this.websocket.send((0,a.default)({type:"ExecuteModuleCommand",module:t,command:e}))}},{key:"executeToolCommand",value:function(t,e){this.websocket.send((0,a.default)({type:"ExecuteToolCommand",tool:t,command:e}))}},{key:"changeDrivingMode",value:function(t){this.websocket.send((0,a.default)({type:"ChangeDrivingMode",new_mode:t}))}},{key:"submitDriveEvent",value:function(t,e){this.websocket.send((0,a.default)({type:"SubmitDriveEvent",event_time_ms:t,event_msg:e}))}},{key:"toggleSimControl",value:function(t){this.websocket.send((0,a.default)({type:"ToggleSimControl",enable:t}))}},{key:"requestRoutePath",value:function(){this.websocket.send((0,a.default)({type:"RequestRoutePath"}))}},{key:"publishNavigationInfo",value:function(t){this.websocket.send(t)}}]),t}();e.default=y},function(t,e,n){"use strict";function i(t,e){return(0,o.default)(s,l,[e,t])}function r(t,e){return(0,o.default)(l,s,[t,e])}Object.defineProperty(e,"__esModule",{value:!0}),e.WGS84ToUTM=i,e.UTMToWGS84=r;var a=n(427),o=function(t){return t&&t.__esModule?t:{default:t}}(a),s="+proj=longlat +ellps=WGS84",l="+proj=utm +zone=10 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "},function(t,e,n){e=t.exports=n(140)(!1),e.push([t.i,'body{margin:0;overflow:hidden;background-color:#14171a!important;font:14px Lucida Grande,Helvetica,Arial,sans-serif;color:#fff}::-webkit-scrollbar{width:4px;height:8px;opacity:.3;background-color:#fff}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#555}::-webkit-scrollbar-thumb{opacity:.8;background-color:#30a5ff}::-webkit-scrollbar-thumb:active{background-color:#30a5ff}.header{display:flex;align-items:center;z-index:100;position:relative;top:0;left:0;height:60px;background:#000;color:#fff;font-size:16px;text-align:left}@media (max-height:800px){.header{height:55px;font-size:14px}}.header .apollo-logo{flex:0 0 auto;top:40px;left:40px;height:40px;width:121px;margin:10px auto 5px 18px}@media (max-height:800px){.header .apollo-logo{top:15px;left:25px;height:25px;width:80px;margin-top:5px}}.header .selector{flex:0 0 auto;position:relative;margin:5px;border:1px solid #383838}.header .selector select{display:block;border:none;padding:.5em 3em .5em .5em;background:#000;color:#fff;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header .selector .arrow{position:absolute;top:0;right:0;width:30px;height:100%;border-left:1px solid #383838;background:#181818;pointer-events:none}.header .selector .arrow:before{position:absolute;top:55%;right:7px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:"";pointer-events:none}.pane-container{position:absolute;width:100%;height:calc(100% - 60px)}@media (max-height:800px){.pane-container{height:calc(100% - 55px)}}.pane-container .left-pane{display:flex;flex-flow:row nowrap;align-items:stretch;position:absolute;bottom:0;top:0;width:100%}.pane-container .left-pane .dreamview-body{display:flex;flex-flow:column nowrap;flex:1 1 auto;overflow:hidden}.pane-container .left-pane .dreamview-body .main-view{flex:0 0 auto;position:relative;min-width:600px}.pane-container .right-pane{position:absolute;right:0;width:100%;height:100%;overflow:hidden}.pane-container .right-pane ::-webkit-scrollbar{width:6px}.pane-container .SplitPane .Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.pane-container .SplitPane .Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.pane-container .SplitPane .Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.pane-container .SplitPane .Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.pane-container .SplitPane .Resizer.disabled{cursor:auto}.pane-container .SplitPane .Resizer.disabled:hover{border-color:transparent}.offlineview{display:flex;flex-flow:column nowrap;position:absolute;width:100%;height:100%}.offlineview .main-view{flex:0 0 auto;position:relative}.dreamview-canvas{z-index:1;position:absolute}.dreamview-canvas .geolocation{z-index:10;position:absolute;bottom:10px;right:10px;color:#fff}.hidden{display:none}.tools{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;margin-top:3px;overflow:hidden}.tools .card{flex:1 1 auto;border-right:3px solid #000;padding:25px 10px 25px 20px;background:#1d2226}@media (max-height:800px){.tools .card{padding:15px 5px 15px 15px}}.tools .card .card-header{width:100%;padding-bottom:15px;font-size:18px}.tools .card .card-header span{width:200px;border-bottom:1px solid #999;padding:10px 10px 10px 0}@media (max-height:800px){.tools .card .card-header{font-size:16px}}.tools .card .card-content-row{display:flex;flex-flow:row wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto;height:85%}.tools .card .card-content-column{display:flex;flex-flow:column nowrap;overflow-x:hidden;overflow-y:auto;height:85%}.tools ul{flex:0 0 auto;margin:0 2px 0 0;padding-left:0;padding-right:5px;background-color:#1d2226;color:#999;list-style:none;cursor:pointer;font-size:12px}.tools ul li{line-height:40px}.tools ul li span{padding-left:20px}.tools ul li:hover{color:#fff;background-color:#2a3238}.tools .switch{display:inline-block;position:relative;width:40px;transform:translate(35%,25%)}.tools .switch .toggle-switch{display:none}.tools .switch .toggle-switch-label{display:block;overflow:hidden;cursor:pointer;height:20px;padding:0;line-height:20px;border:0;background-color:#3f4548;transition:background-color .2s ease-in}.tools .switch .toggle-switch-label:before{content:"";display:block;width:16px;margin:2px;background:#a0a0a0;position:absolute;top:0;bottom:0;right:20px;transition:all .2s ease-in}.tools .switch .toggle-switch:checked+.toggle-switch-label{background-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label,.tools .switch .toggle-switch:checked+.toggle-switch-label:before{border-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label:before{right:0;background-color:#30a5ff}.tools .switch .toggle-switch:disabled+.toggle-switch-label,.tools .switch .toggle-switch:disabled+.toggle-switch-label:before{cursor:not-allowed}.tools .nav-side-menu{display:flex;flex-flow:row nowrap;align-items:stretch;flex:2 1 auto;z-index:10!important;margin-right:3px;overflow-y:hidden;overflow-x:auto;background:#1d2226;font-size:14px;color:#fff;text-align:left;white-space:nowrap}.tools .nav-side-menu .summary{line-height:50px}@media (max-height:800px){.tools .nav-side-menu .summary{line-height:25px}}.tools .nav-side-menu .summary img{position:relative;width:30px;height:30px;transform:translate(-30%,25%)}@media (max-height:800px){.tools .nav-side-menu .summary img{width:15px;height:15px;transform:translate(-50%,10%)}}.tools .nav-side-menu .summary span{padding-left:10px}.tools .nav-side-menu input[type=radio]{display:none}.tools .nav-side-menu .radio-selector-label{display:inline-block;position:relative;transform:translate(65%,30%);box-sizing:border-box;-webkit-box-sizing:border-box;width:25px;height:25px;margin-right:6px;border-radius:50%;-webkit-border-radius:50%;background-color:#a0a0a0;box-shadow:inset 1px 0 #a0a0a0;border:7px solid #3f4548}.tools .nav-side-menu input[type=radio]:checked+.radio-selector-label{border:7px solid #0e3d62;background-color:#30a5ff}.tools .console{z-index:10;position:relative;min-width:230px;margin:0;border:none;padding:0;overflow-y:auto;overflow-x:hidden}.tools .console .monitor-item{display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default}.tools .console .monitor-item .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.tools .console .monitor-item .icon{height:15px;width:15px}}.tools .console .monitor-item .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.tools .console .monitor-item .alert{color:#d7466f}.tools .console .monitor-item .warn{color:#a3842d}.tools .poi-button{min-width:250px}.side-bar{display:flex;flex-direction:column;flex:0 0 auto;z-index:100;background:#1d2226;border-right:3px solid #000;overflow-y:auto;overflow-x:hidden}.side-bar .main-panel{margin-bottom:auto}.side-bar button:focus{outline:0}.side-bar .button{display:block;width:90px;border:none;padding:20px 10px;font-size:14px;text-align:center;background:#1d2226;color:#fff;opacity:.6;cursor:pointer}@media (max-height:800px){.side-bar .button{font-size:12px;width:80px;padding-top:10px}}.side-bar .button .icon{width:30px;height:30px;margin:auto}.side-bar .button .label{padding-top:10px}@media (max-height:800px){.side-bar .button .label{padding-top:4px}}.side-bar .button:first-child{padding-top:25px}@media (max-height:800px){.side-bar .button:first-child{padding-top:10px}}.side-bar .button:disabled{color:#414141;cursor:not-allowed}.side-bar .button:disabled .icon{opacity:.2}.side-bar .button-active{background:#2a3238;opacity:1;color:#fff}.side-bar .sub-button{display:block;width:90px;height:80px;border:none;padding:20px;font-size:14px;text-align:center;background:#3e4041;color:#999;cursor:pointer}@media (max-height:800px){.side-bar .sub-button{font-size:12px;width:80px;height:60px}}.side-bar .sub-button:disabled{cursor:not-allowed;opacity:.3}.side-bar .sub-button-active{background:#30a5ff;color:#fff}.status-bar{z-index:10;position:absolute;top:0;left:0;width:100%}.status-bar .auto-meter{position:absolute;width:224px;height:112px;top:10px;right:20px;background:rgba(0,0,0,.8)}.status-bar .auto-meter .speed-read{position:absolute;top:27px;left:15px;font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .auto-meter .speed-unit{position:absolute;top:66px;left:17px;color:#fff;font-size:15px}.status-bar .auto-meter .brake-panel{position:absolute;top:21px;right:2px}.status-bar .auto-meter .throttle-panel{position:absolute;top:61px;right:2px}.status-bar .auto-meter .meter-container .meter-label{font-size:13px;color:#fff}.status-bar .auto-meter .meter-container .meter-head{display:inline-block;position:absolute;margin:5px 0 0;border-width:4px;border-style:solid}.status-bar .auto-meter .meter-container .meter-background{position:relative;display:block;height:2px;width:120px;margin:8px}.status-bar .auto-meter .meter-container .meter-background span{position:relative;overflow:hidden;display:block;height:100%}.status-bar .wheel-panel{display:flex;flex-direction:row;justify-content:left;align-items:center;position:absolute;top:128px;right:20px;width:187px;height:92px;padding:10px 22px 10px 15px;background:rgba(0,0,0,.8)}.status-bar .wheel-panel .steerangle-read{font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .wheel-panel .steerangle-unit{padding:20px 10px 0 3px;color:#fff;font-size:13px}.status-bar .wheel-panel .left-arrow{position:absolute;top:45px;right:115px;width:0;height:0;border-style:solid;border-width:12px 15px 12px 0;border-color:transparent}.status-bar .wheel-panel .right-arrow{position:absolute;top:45px;right:15px;width:0;height:0;border-style:solid;border-width:12px 0 12px 15px;border-color:transparent transparent transparent #30435e}.status-bar .wheel-panel .wheel{position:absolute;top:15px;right:33px}.status-bar .wheel-panel .wheel-background{stroke-width:3px;stroke:#006aff}.status-bar .wheel-panel .wheel-arm{stroke-width:3px;stroke:#006aff;fill:#006aff}.status-bar .traffic-light-and-driving-mode{position:absolute;top:246px;right:20px;width:224px;height:35px;font-size:14px}.status-bar .traffic-light-and-driving-mode .traffic-light{position:absolute;width:116px;height:35px;background:rgba(0,0,0,.8)}.status-bar .traffic-light-and-driving-mode .traffic-light .symbol{position:relative;top:4px;left:4px;width:28px;height:28px}.status-bar .traffic-light-and-driving-mode .traffic-light .text{position:absolute;top:10px;right:8px;color:#fff}.status-bar .traffic-light-and-driving-mode .driving-mode{position:absolute;top:0;right:0;width:105px;height:35px}.status-bar .traffic-light-and-driving-mode .driving-mode .text{position:absolute;top:50%;left:50%;float:right;transform:translate(-50%,-50%);text-align:center}.status-bar .traffic-light-and-driving-mode .auto-mode{background:linear-gradient(90deg,rgba(17,30,48,.8),rgba(7,42,94,.8));border-right:1px solid #006aff;color:#006aff}.status-bar .traffic-light-and-driving-mode .manual-mode{background:linear-gradient(90deg,rgba(30,17,17,.8),rgba(71,36,36,.8));color:#b43131;border-right:1px solid #b43131}.status-bar .notification-warn{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #a3842d;background-color:rgba(52,39,5,.3)}.status-bar .notification-warn .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.status-bar .notification-warn .icon{height:15px;width:15px}}.status-bar .notification-warn .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.status-bar .notification-warn .alert{color:#d7466f}.status-bar .notification-warn .warn{color:#a3842d}.status-bar .notification-alert{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #d7466f;background-color:rgba(74,5,24,.3)}.status-bar .notification-alert .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.status-bar .notification-alert .icon{height:15px;width:15px}}.status-bar .notification-alert .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.status-bar .notification-alert .alert{color:#d7466f}.status-bar .notification-alert .warn{color:#a3842d}.tasks{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.tasks .command-group{display:flex;flex-flow:row nowrap;justify-content:flex-start;flex:1 1 0;min-height:45px;min-width:130px}.tasks .command-group .name{width:40px;padding:15px}.tasks .start-auto-command{flex:2 2 0}.tasks .start-auto-command .start-auto-button{max-height:unset}.tasks .others{min-width:165px;max-width:260px}.tasks .delay{min-width:265px;line-height:26px}.tasks .delay .delay-item{position:relative;margin:0 10px;font-size:16px}.tasks .delay .delay-item .name{display:inline-block;min-width:140px;color:#1c9063}.tasks .delay .delay-item .value{display:inline-block;position:absolute;right:0;min-width:70px;text-align:right}.tasks .delay .delay-item .warning{color:#b43131}.tasks button{flex:1 1 0;margin:5px;border:0;min-width:75px;min-height:40px;max-height:60px;color:#999;border-bottom:2px solid #1c9063;background:linear-gradient(#000,#111f1d);outline:none;cursor:pointer}.tasks button:hover{color:#fff;background:#151e1b}.tasks button:active{background:rgba(35,51,45,.6)}.tasks button:disabled{color:#999;border-color:#555;background:linear-gradient(rgba(0,0,0,.8),rgba(9,17,16,.8));cursor:not-allowed}.tasks .disabled{cursor:not-allowed}.module-controller{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow:hidden}.module-controller .controller{min-width:180px}.module-controller .modules-container{flex-flow:column wrap}.module-controller .status-display{min-width:250px;padding:5px 20px 5px 5px}.module-controller .status-display .name{display:inline-block;padding:10px;min-width:80px}.module-controller .status-display .status{display:inline-block;position:relative;width:130px;padding:10px;background:#000;white-space:nowrap}.module-controller .status-display .status .status-icon{position:absolute;right:10px;width:15px;height:15px;background-color:#b43131}.route-editing-bar{z-index:10;position:absolute;top:0;left:0;right:0;min-height:90px;border-bottom:3px solid #000;padding-left:10px;background:#1d2226}@media (max-height:800px){.route-editing-bar{min-height:60px}}.route-editing-bar .editing-panel{display:flex;justify-content:center;align-items:center;overflow:hidden;white-space:nowrap}.route-editing-bar .editing-panel .button{height:90px;border:none;padding:10px 15px;background:#1d2226;outline:none;color:#999}@media (max-height:800px){.route-editing-bar .editing-panel .button{height:60px;padding:5px 10px}}.route-editing-bar .editing-panel .button img{display:block;top:23px;margin:15px auto}@media (max-height:800px){.route-editing-bar .editing-panel .button img{top:13px;margin:7px auto}}.route-editing-bar .editing-panel .button span{font-family:PingFangSC-Light;font-size:14px;color:#d8d8d8;text-align:center}@media (max-height:800px){.route-editing-bar .editing-panel .button span{font-size:12px}}.route-editing-bar .editing-panel .button:hover{background:#2a3238}.route-editing-bar .editing-panel .active{color:#fff;background:#2a3238}.route-editing-bar .editing-panel .editing-tip{height:90px;width:90px;margin-left:auto;border:none;color:#d8d8d8;font-size:35px}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip{height:60px;width:60px;font-size:20px}}.route-editing-bar .editing-panel .editing-tip p{position:absolute;top:120%;right:15px;width:400px;border-radius:3px;padding:20px;background-color:#fff;color:#999;font-size:14px;text-align:left;white-space:pre-wrap}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip p{right:5px}}.route-editing-bar .editing-panel .editing-tip p:before{position:absolute;top:-20px;right:13px;content:"";border-style:solid;border-width:0 20px 20px;border-color:transparent transparent #fff}@-moz-document url-prefix(){.route-editing-bar .editing-panel .editing-tip p:before{top:-38px}}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip p:before{right:8px}}.data-recorder{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.data-recorder .drive-event-card table{width:100%;text-align:center}.data-recorder .drive-event-card .drive-event-msg{width:100%}.data-recorder .drive-event-card .toolbar button{width:200px}.loader{flex:0 0 auto;position:relative;width:100%;height:100%;background-color:#000c17}.loader .img-container{position:relative;top:50%;left:50%;width:40%;transform:translate(-50%,-50%)}.loader .img-container img{width:100%;height:auto}.loader .img-container .status-message{margin-top:10px;font-size:18px;font-size:1.7vw;color:#fff;text-align:center;animation-name:flash;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running}@keyframes flash{0%{color:#fff}to{color:#000c17}}.loader .offline-loader{width:60%;max-width:650px}.loader .offline-loader .status-message{position:relative;top:-70px;top:-4.5vw;font-size:3vw}.video{z-index:1;position:absolute;top:0;left:0}.video img{position:relative;min-width:100px;min-height:20px;max-width:380px;max-height:300px;padding:1px;border:1px solid #383838}@media (max-height:800px){.video img{max-width:300px;max-height:200px}}.dashcam-player{z-index:1;position:absolute;top:0;left:0;color:#fff}.dashcam-player video{max-width:380px;max-height:300px}@media (max-height:800px){.dashcam-player video{max-width:300px;max-height:200px}}.dashcam-player .controls{display:flex;justify-content:flex-end;z-index:10;position:absolute;right:0}.dashcam-player .controls button{width:27px;height:27px;border:none;background-color:#000;opacity:.6;color:#fff}.dashcam-player .controls button img{width:15px}.dashcam-player .controls button:hover{opacity:.9}.dashcam-player .controls .close{font-size:20px}.dashcam-player .controls .syncup{padding-top:.5em}.pnc-monitor{height:100%;border:1px solid #000;box-sizing:border-box;background-color:#1d2226;overflow:auto}.pnc-monitor .scatter-graph{margin:0;border:1px #000;border-style:solid none}.pnc-monitor .react-tabs__tab-list{display:table;width:100%;margin:0;border-bottom:1px solid #000;padding:0}.pnc-monitor .react-tabs__tab{display:table-cell;position:relative;border:1px solid transparent;border-bottom:none;padding:6px 12px;background:#1d2226;color:#999;list-style:none;cursor:pointer}.pnc-monitor .react-tabs__tab--selected{background:#2a3238;color:#fff}.pnc-monitor .react-tabs__tab-panel{display:none}.pnc-monitor .react-tabs__tab-panel--selected{display:block}.navigation-view{z-index:20;position:relative}.navigation-view #map_canvas{width:100%;height:100%;background:rgba(0,0,0,.8)}.navigation-view .window-resize-control{position:absolute;bottom:0;right:0;width:30px;height:30px}',""])},function(t,e,n){e=t.exports=n(140)(!1),e.push([t.i,'.playback-controls{z-index:100;position:absolute;width:100%;height:40px;bottom:0;background:#1d2226;font-size:16px;min-width:550px}@media (max-height:800px){.playback-controls{font-size:14px}}.playback-controls .icon{display:inline-block;width:20px;height:20px;padding:10px;cursor:pointer}.playback-controls .icon .play{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#1d2226}.playback-controls .icon .pause,.playback-controls .icon .replay{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#006aff}.playback-controls .icon .replay{top:2px}.playback-controls .icon .exit-fullscreen,.playback-controls .icon .fullscreen{stroke-linejoin:round;stroke-width:10px;stroke:#006aff;fill:#1d2226}.playback-controls .left-controls{display:inline-block;float:left}.playback-controls .right-controls{display:inline-block;float:right}.playback-controls .rate-selector{position:absolute;left:40px}.playback-controls .rate-selector select{display:block;border:none;padding:11px 23px 0 5px;color:#fff;background:#1d2226;outline:none;cursor:pointer;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.playback-controls .rate-selector .arrow{position:absolute;top:5px;right:0;width:10px;height:100%;pointer-events:none}.playback-controls .rate-selector .arrow:before{position:absolute;top:16px;right:1px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:"";pointer-events:none}.playback-controls .time-controls{position:absolute;min-width:300px;height:100%;left:125px;right:50px}.playback-controls .time-controls .rangeslider{position:absolute;top:7px;left:10px;right:115px;margin:10px 0;height:7px;border-radius:10px;background:#2d3b50;-ms-touch-action:none;touch-action:none}.playback-controls .time-controls .rangeslider .rangeslider__fill{display:block;height:100%;border-radius:10px;background-color:#006aff;background:#006aff}.playback-controls .time-controls .rangeslider .rangeslider__handle{display:inline-block;position:absolute;height:16px;width:16px;top:50%;transform:translate3d(-50%,-50%,0);border:1px solid #006aff;border-radius:100%;background:#006aff;cursor:pointer;box-shadow:none}.playback-controls .time-controls .time-display{position:absolute;top:12px;right:0;color:#fff}',""])},function(t,e,n){t.exports={default:n(297),__esModule:!0}},function(t,e,n){t.exports={default:n(299),__esModule:!0}},function(t,e,n){t.exports={default:n(301),__esModule:!0}},function(t,e,n){t.exports={default:n(303),__esModule:!0}},function(t,e,n){t.exports={default:n(308),__esModule:!0}},function(t,e,n){t.exports={default:n(309),__esModule:!0}},function(t,e,n){t.exports={default:n(310),__esModule:!0}},function(t,e,n){t.exports={default:n(311),__esModule:!0}},function(t,e,n){t.exports={default:n(312),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(238),a=i(r),o=n(40),s=i(o);e.default=function(){function t(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,l=(0,s.default)(t);!(i=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,a.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){/*! +var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=i(t),u=1;u1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e}},function(t,e,n){"use strict";function i(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),a=e.toLowerCase().replace(r,""),o=-1;++o0?1:-1,d=Math.tan(s)*h,f=h*c.x,p=d*c.y,m=Math.atan2(p,f),g=o.data[0],v=g.tooltipPosition();t.ctx.font=x.default.helpers.fontString(20,"normal","Helvetica Neue"),t.ctx.translate(v.x,v.y),t.ctx.rotate(-m),t.ctx.fillText("►",0,0),t.ctx.restore()}})}}),x.default.defaults.global.defaultFontColor="#FFFFFF";var _=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"initializeCanvas",value:function(t,e){this.name2idx={};var n={title:{display:t&&t.length>0,text:t},legend:{display:e.legend.display},tooltips:{enable:!0,mode:"nearest",intersect:!1}};if(e.axes){n.scales||(n.scales={});for(var i in e.axes){var r=i+"Axes",a=e.axes[i],o={id:i+"-axis-0",scaleLabel:{display:!0,labelString:a.labelString},ticks:{min:a.min,max:a.max},gridLines:{color:"rgba(153, 153, 153, 0.5)",zeroLineColor:"rgba(153, 153, 153, 0.7)"}};n.scales[r]||(n.scales[r]=[]),n.scales[r].push(o)}}var s=this.canvasElement.getContext("2d");this.chart=new x.default(s,{type:"scatter",options:n})}},{key:"updateData",value:function(t,e,n,i){var r=e.substring(0,5);if(void 0===this.chart.data.datasets[t]){var a={label:r,showText:n.showLabel,text:e,backgroundColor:n.color,borderColor:n.color,data:i};for(var o in n)a[o]=n[o];this.chart.data.datasets.push(a)}else this.chart.data.datasets[t].text=e,this.chart.data.datasets[t].data=i}},{key:"updateChart",value:function(t){for(var e in t.properties.lines){void 0===this.name2idx[e]&&(this.name2idx[e]=this.chart.data.datasets.length);var n=this.name2idx[e],i=t.properties.lines[e],r=t.data?t.data[e]:[];this.updateData(n,e,i,r)}var o=(0,a.default)(this.name2idx).length;if(t.boxes)for(var s in t.boxes){var l=t.boxes[s];this.updateData(o,s,t.properties.box,l),o++}this.chart.data.datasets.splice(o,this.chart.data.datasets.length-o),this.chart.update(0)}},{key:"componentDidMount",value:function(){var t=this.props,e=t.title,n=t.options;this.initializeCanvas(e,n),this.updateChart(this.props)}},{key:"componentWillUnmount",value:function(){this.chart.destroy()}},{key:"componentWillReceiveProps",value:function(t){this.updateChart(t)}},{key:"render",value:function(){var t=this,e=this.props;e.data,e.properties,e.options,e.boxes;return v.default.createElement("div",{className:"scatter-graph"},v.default.createElement("canvas",{ref:function(e){t.canvasElement=e}}))}}]),e}(v.default.Component);e.default=_},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.id,n=t.title,i=t.isChecked,r=t.onClick,a=t.disabled,o=t.extraClasses;return m.default.createElement("ul",{className:(0,v.default)({disabled:a},o)},m.default.createElement("li",{id:e,onClick:function(){a||r()}},m.default.createElement("div",{className:"switch"},m.default.createElement("input",{type:"checkbox",className:"toggle-switch",name:e,checked:i,disabled:a,readOnly:!0}),m.default.createElement("label",{className:"toggle-switch-label",htmlFor:e})),m.default.createElement("span",null,n)))}}]),e}(m.default.Component);e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.id,n=t.title,i=(t.options,t.onClick),r=t.checked,a=t.extraClasses;return m.default.createElement("ul",{className:a},m.default.createElement("li",{onClick:i},m.default.createElement("input",{type:"radio",name:e,checked:r,readOnly:!0}),m.default.createElement("label",{className:"radio-selector-label",htmlFor:n}),m.default.createElement("span",null,n)))}}]),e}(m.default.Component);e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ObstacleColorMapping=e.DEFAULT_COLOR=void 0;var r=n(239),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(12),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c),d=n(15),f=i(d),p=n(217),m=i(p),g=n(77),v=n(31),y=n(39),b=e.DEFAULT_COLOR=16711932,x=e.ObstacleColorMapping={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608},_=function(){function t(){(0,s.default)(this,t),this.textRender=new m.default,this.arrows=[],this.ids=[],this.solidCubes=[],this.dashedCubes=[],this.extrusionSolidFaces=[],this.extrusionDashedFaces=[]}return(0,u.default)(t,[{key:"update",value:function(t,e,n){y.isEmpty(this.ids)||(this.ids.forEach(function(t){t.children.forEach(function(t){return t.visible=!1}),n.remove(t)}),this.ids=[]),this.textRender.reset();var i=t.object;if(y.isEmpty(i))return(0,g.hideArrayObjects)(this.arrows),(0,g.hideArrayObjects)(this.solidCubes),(0,g.hideArrayObjects)(this.dashedCubes),(0,g.hideArrayObjects)(this.extrusionSolidFaces),void(0,g.hideArrayObjects)(this.extrusionDashedFaces);for(var r=e.applyOffset({x:t.autoDrivingCar.positionX,y:t.autoDrivingCar.positionY}),o=0,s=0,l=0,u=0;u.5){var m=this.updateArrow(d,c.speedHeading,p,o++,n),v=1+(0,a.default)(c.speed);m.scale.set(v,v,v),m.visible=!0}if(f.default.options.showObstaclesHeading){var _=this.updateArrow(d,c.heading,16777215,o++,n);_.scale.set(1,1,1),_.visible=!0}f.default.options.showObstaclesId&&this.updateIdAndDistance(c.id,new h.Vector3(d.x,d.y,c.height),r.distanceTo(d).toFixed(1),n);var w=c.confidence;w=Math.max(0,w),w=Math.min(1,w);var M=c.polygonPoint;void 0!==M&&M.length>0?(this.updatePolygon(M,c.height,p,e,w,l,n),l+=M.length):c.length&&c.width&&c.height&&this.updateCube(c.length,c.width,c.height,d,c.heading,p,w,s++,n)}}(0,g.hideArrayObjects)(this.arrows,o),(0,g.hideArrayObjects)(this.solidCubes,s),(0,g.hideArrayObjects)(this.dashedCubes,s),(0,g.hideArrayObjects)(this.extrusionSolidFaces,l),(0,g.hideArrayObjects)(this.extrusionDashedFaces,l)}},{key:"updateArrow",value:function(t,e,n,i,r){var a=this.getArrow(i,r);return(0,g.copyProperty)(a.position,t),a.material.color.setHex(n),a.rotation.set(0,0,-(Math.PI/2-e)),a}},{key:"updateIdAndDistance",value:function(t,e,n,i){var r=this.textRender.composeText(t+" D:"+n);if(null!==r){r.position.set(e.x,e.y+.5,e.z||3);var a=i.getObjectByName("camera");void 0!==a&&r.quaternion.copy(a.quaternion),r.children.forEach(function(t){return t.visible=!0}),r.visible=!0,r.name="id_"+t,this.ids.push(r),i.add(r)}}},{key:"updatePolygon",value:function(t,e,n,i,r,a,o){for(var s=0;s0){var u=this.getCube(s,l,!0);u.position.set(i.x,i.y,i.z+n*(o-1)/2),u.scale.set(t,e,n*o),u.material.color.setHex(a),u.rotation.set(0,0,r),u.visible=!0}if(o<1){var c=this.getCube(s,l,!1);c.position.set(i.x,i.y,i.z+n*o/2),c.scale.set(t,e,n*(1-o)),c.material.color.setHex(a),c.rotation.set(0,0,r),c.visible=!0}}},{key:"getArrow",value:function(t,e){if(t2&&void 0!==arguments[2])||arguments[2],i=n?this.extrusionSolidFaces:this.extrusionDashedFaces;if(t2&&void 0!==arguments[2])||arguments[2],i=n?this.solidCubes:this.dashedCubes;if(t0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!1})},point:function(t,e){return a(t,i(e,t))},nearest:function(t,e,n){var r=i(e,t);n.axis=n.axis||"xy";var a=s(n.axis),l=o(t,r,n.intersect,a);return l.length>1&&l.sort(function(t,e){var n=t.getArea(),i=e.getArea(),r=n-i;return 0===r&&(r=t._datasetIndex-e._datasetIndex),r}),l.slice(0,1)},x:function(t,e,n){var a=i(e,t),o=[],s=!1;return r(t,function(t){t.inXRange(a.x)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o},y:function(t,e,n){var a=i(e,t),o=[],s=!1;return r(t,function(t){t.inYRange(a.y)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o}}}},function(t,e,n){"use strict";var i=n(6),r=n(281),a=n(282),o=a._enabled?a:r;t.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},o)},function(t,e,n){var i=n(294),r=n(292),a=function(t){if(t instanceof a)return t;if(!(this instanceof a))return new a(t);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;"string"==typeof t?(e=r.getRgba(t),e?this.setValues("rgb",e):(e=r.getHsla(t))?this.setValues("hsl",e):(e=r.getHwb(t))&&this.setValues("hwb",e)):"object"==typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e))};a.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=t<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,r=void 0===e?.5:e,a=2*r-1,o=n.alpha()-i.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new a,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(t=i[o],e={}.toString.call(t),"[object Array]"===e?r[o]=t.slice(0):"[object Number]"===e?r[o]=t:console.error("unexpected color value:",t));return n}},a.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},a.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a.prototype.getValues=function(t){for(var e=this.values,n={},i=0;il;)i(s,n=e[l++])&&(~a(u,n)||u.push(n));return u}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(26),r=n(21),a=n(86);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports=n(34)},function(t,e,n){"use strict";var i=n(18),r=n(11),a=n(22),o=n(27),s=n(17)("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];o&&e&&!e[s]&&a.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(26),r=n(48),a=n(17)("species");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},function(t,e,n){var i,r,a,o=n(29),s=n(324),l=n(122),u=n(81),c=n(18),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},i(g),g},f=function(t){delete v[t]},"process"==n(49)(h)?i=function(t){h.nextTick(o(y,t,1))}:m&&m.now?i=function(t){m.now(o(y,t,1))}:p?(r=new p,a=r.port2,r.port1.onmessage=b,i=o(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):i="onreadystatechange"in u("script")?function(t){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e,n){var i=n(21);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";function i(t){return(0,a.default)(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(371),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var a=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([a]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r=56&&d<64&&f>=3&&f<12&&(h=32),d>=72&&d<84&&(f>=0&&f<9?h=31:f>=9&&f<21?h=33:f>=21&&f<33?h=35:f>=33&&f<42&&(h=37)),e=6*(h-1)-180+3,u=o(e),n=.006739496752268451,i=p/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),r=Math.tan(m)*Math.tan(m),a=n*Math.cos(m)*Math.cos(m),s=Math.cos(m)*(g-u),l=p*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var v=.9996*i*(s+(1-r+a)*s*s*s/6+(5-18*r+r*r+72*a-58*n)*s*s*s*s*s/120)+5e5,y=.9996*(l+i*Math.tan(m)*(s*s/2+(5-r+9*a+4*a*a)*s*s*s*s/24+(61-58*r+r*r+600*a-330*n)*s*s*s*s*s*s/720));return d<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:h,zoneLetter:c(d)}}function u(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var a,o,l,c,h,d,f,p,m,g,v=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),b=n-5e5,x=e;i<"N"&&(x-=1e7),p=6*(r-1)-180+3,a=.006739496752268451,f=x/.9996,m=f/6367449.145945056,g=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),o=v/Math.sqrt(1-.00669438*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),c=a*Math.cos(g)*Math.cos(g),h=.99330562*v/Math.pow(1-.00669438*Math.sin(g)*Math.sin(g),1.5),d=b/(.9996*o);var _=g-o*Math.tan(g)/h*(d*d/2-(5+3*l+10*c-4*c*c-9*a)*d*d*d*d/24+(61+90*l+298*c+45*l*l-252*a-3*c*c)*d*d*d*d*d*d/720);_=s(_);var w=(d-(1+2*l+c)*d*d*d/6+(5-2*c+28*l-3*c*c+8*a+24*l*l)*d*d*d*d*d/120)/Math.cos(g);w=p+s(w);var M;if(t.accuracy){var S=u({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});M={top:S.lat,right:S.lon,bottom:_,left:w}}else M={lat:_,lon:w};return M}function c(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function h(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+d(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function d(t,e,n){var i=f(n);return p(Math.floor(t/1e5),Math.floor(e/1e5)%20,i)}function f(t){var e=t%b;return 0===e&&(e=b),e}function p(t,e,n){var i=n-1,r=x.charCodeAt(i),a=_.charCodeAt(i),o=r+t-1,s=a+e,l=!1;return o>k&&(o=o-k+w-1,l=!0),(o===M||rM||(o>M||rS||(o>S||rk&&(o=o-k+w-1),s>E?(s=s-E+w-1,l=!0):l=!1,(s===M||aM||(s>M||aS||(s>S||aE&&(s=s-E+w-1),String.fromCharCode(o)+String.fromCharCode(s)}function m(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,i=null,r="",a=0;!/[A-Z]/.test(e=t.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,a++}var o=parseInt(r,10);if(0===a||a+3>n)throw"MGRSPoint bad conversion from: "+t;var s=t.charAt(a++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+t;i=t.substring(a,a+=2);for(var l=f(o),u=g(i.charAt(0),l),c=v(i.charAt(1),l);c0&&(d=1e5/Math.pow(10,_),p=t.substring(a,a+_),w=parseFloat(p)*d,m=t.substring(a+_),M=parseFloat(m)*d),b=w+u,x=M+c,{easting:b,northing:x,zoneLetter:s,zoneNumber:o,accuracy:d}}function g(t,e){for(var n=x.charCodeAt(e-1),i=1e5,r=!1;n!==t.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>k){if(r)throw"Bad character: "+t;n=w,r=!0}i+=1e5}return i}function v(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var n=_.charCodeAt(e-1),i=0,r=!1;n!==t.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>E){if(r)throw"Bad character: "+t;n=w,r=!0}i+=1e5}return i}function y(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}e.c=i,e.b=a;var b=6,x="AJSAJS",_="AFAFAF",w=65,M=73,S=79,E=86,k=90;e.a={forward:i,inverse:r,toPoint:a}},function(t,e,n){"use strict";e.a=function(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}},function(t,e,n){"use strict";var i=.01068115234375;e.a=function(t){var e=[];e[0]=1-t*(.25+t*(.046875+t*(.01953125+t*i))),e[1]=t*(.75-t*(.046875+t*(.01953125+t*i)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}},function(t,e,n){"use strict";var i=n(105),r=n(7);e.a=function(t,e,a){for(var o=1/(1-e),s=t,l=20;l;--l){var u=Math.sin(s),c=1-e*u*u;if(c=(n.i(i.a)(s,u,Math.cos(s),a)-t)*(c*Math.sqrt(c))*o,s-=c,Math.abs(c)2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}},function(t,e,n){"use strict";function i(t){var e=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?i[t]=n.i(a.a)(arguments[1]):i[t]=n.i(o.a)(arguments[1]):i[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?i.apply(e,t):i(t)});if("string"==typeof t){if(t in i)return i[t]}else"EPSG"in t?i["EPSG:"+t.EPSG]=t:"ESRI"in t?i["ESRI:"+t.ESRI]=t:"IAU2000"in t?i["IAU2000:"+t.IAU2000]=t:console.log(t);return}}var r=n(426),a=n(152),o=n(159);n.i(r.a)(i),e.a=i},function(t,e,n){"use strict";var i=n(7),r=n(418),a=n(419),o=n(107);e.a=function(t){var e,s,l,u={},c=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),h={proj:"projName",datum:"datumCode",rf:function(t){u.rf=parseFloat(t)},lat_0:function(t){u.lat0=t*i.g},lat_1:function(t){u.lat1=t*i.g},lat_2:function(t){u.lat2=t*i.g},lat_ts:function(t){u.lat_ts=t*i.g},lon_0:function(t){u.long0=t*i.g},lon_1:function(t){u.long1=t*i.g},lon_2:function(t){u.long2=t*i.g},alpha:function(t){u.alpha=parseFloat(t)*i.g},lonc:function(t){u.longc=t*i.g},x_0:function(t){u.x0=parseFloat(t)},y_0:function(t){u.y0=parseFloat(t)},k_0:function(t){u.k0=parseFloat(t)},k:function(t){u.k0=parseFloat(t)},a:function(t){u.a=parseFloat(t)},b:function(t){u.b=parseFloat(t)},r_a:function(){u.R_A=!0},zone:function(t){u.zone=parseInt(t,10)},south:function(){u.utmSouth=!0},towgs84:function(t){u.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){u.to_meter=parseFloat(t)},units:function(t){u.units=t;var e=n.i(o.a)(a.a,t);e&&(u.to_meter=e.to_meter)},from_greenwich:function(t){u.from_greenwich=t*i.g},pm:function(t){var e=n.i(o.a)(r.a,t);u.from_greenwich=(e||parseFloat(t))*i.g},nadgrids:function(t){"@null"===t?u.datumCode="none":u.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(u.axis=t)}};for(e in c)s=c[e],e in h?(l=h[e],"function"==typeof l?l(s):u[l]=s):u[e]=s;return"string"==typeof u.datumCode&&"WGS84"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(t,e,n){"use strict";function i(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),i*=e,this.cgb[1]=i*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i*=e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),i*=e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(e*(-24832/14175)-2.4)),i*=e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i*=e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(.25+i*(1/64+i/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),i*=e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i*=e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i*=e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i*=e,this.utg[5]=-.03233083094085698*i,this.gtu[5]=.6650675310896665*i;var r=n.i(u.a)(this.cbg,this.lat0);this.Zb=-this.Qn*(r+n.i(c.a)(this.gtu,2*r))}function r(t){var e=n.i(d.a)(t.x-this.long0),i=t.y;i=n.i(u.a)(this.cbg,i);var r=Math.sin(i),a=Math.cos(i),o=Math.sin(e),c=Math.cos(e);i=Math.atan2(r,c*a),e=Math.atan2(o*a,n.i(s.a)(r,a*c)),e=n.i(l.a)(Math.tan(e));var f=n.i(h.a)(this.gtu,2*i,2*e);i+=f[0],e+=f[1];var p,m;return Math.abs(e)<=2.623395162778?(p=this.a*(this.Qn*e)+this.x0,m=this.a*(this.Qn*i+this.Zb)+this.y0):(p=1/0,m=1/0),t.x=p,t.y=m,t}function a(t){var e=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,e/=this.Qn;var r,a;if(Math.abs(e)<=2.623395162778){var l=n.i(h.a)(this.utg,2*i,2*e);i+=l[0],e+=l[1],e=Math.atan(n.i(o.a)(e));var c=Math.sin(i),f=Math.cos(i),p=Math.sin(e),m=Math.cos(e);i=Math.atan2(c*m,n.i(s.a)(p,m*f)),e=Math.atan2(p,m*f),r=n.i(d.a)(e+this.long0),a=n.i(u.a)(this.cgb,i)}else r=1/0,a=1/0;return t.x=r,t.y=a,t}var o=n(149),s=n(146),l=n(408),u=n(412),c=n(409),h=n(410),d=n(10),f=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"];e.a={init:i,forward:r,inverse:a,names:f}},function(t,e,n){"use strict";function i(t,e){return(t.datum.datum_type===a.h||t.datum.datum_type===a.i)&&"WGS84"!==e.datumCode||(e.datum.datum_type===a.h||e.datum.datum_type===a.i)&&"WGS84"!==t.datumCode}function r(t,e,h){var d;return Array.isArray(h)&&(h=n.i(u.a)(h)),n.i(c.a)(h),t.datum&&e.datum&&i(t,e)&&(d=new l.a("WGS84"),h=r(t,d,h),t=d),"enu"!==t.axis&&(h=n.i(s.a)(t,!1,h)),"longlat"===t.projName?h={x:h.x*a.g,y:h.y*a.g}:(t.to_meter&&(h={x:h.x*t.to_meter,y:h.y*t.to_meter}),h=t.inverse(h)),t.from_greenwich&&(h.x+=t.from_greenwich),h=n.i(o.a)(t.datum,e.datum,h),e.from_greenwich&&(h={x:h.x-e.from_greenwich,y:h.y}),"longlat"===e.projName?h={x:h.x*a.j,y:h.y*a.j}:(h=e.forward(h),e.to_meter&&(h={x:h.x/e.to_meter,y:h.y/e.to_meter})),"enu"!==e.axis?n.i(s.a)(e,!0,h):h}e.a=r;var a=n(7),o=n(423),s=n(405),l=n(102),u=n(150),c=n(406)},function(t,e,n){"use strict";function i(t){var e=0;return n.i(a.b)(t,function(t){n.i(o.b)(t)&&e++}),e}function r(t){var e=0;return n.i(a.b)(t,function(t){n.i(o.c)(t)&&e++}),e}e.a=i,e.b=r;var a=n(109),o=n(76)},function(t,e,n){"use strict";n(109),n(76)},function(t,e,n){"use strict";function i(){return"react-tabs-"+a++}function r(){a=0}e.b=i,e.a=r;var a=0},function(t,e,n){function i(t,e){for(var n=0;n=0&&b.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),a(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),a(t,e),e}function u(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function c(t,e){var n,i,r,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var u=y++;n=v||(v=s(e)),i=h.bind(null,n,u,!1),r=h.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(e),i=f.bind(null,n,e),r=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=d.bind(null,n),r=function(){o(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function h(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function d(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function f(t,e,n){var i=n.css,r=n.sourceMap,a=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||a)&&(i=x(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var p={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),v=null,y=0,b=[],x=n(479);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return i(n,e),function(t){for(var a=[],o=0;o0?90:-90),t.lat_ts=t.lat1)}var o=n(487),s=n(488),l=.017453292519943295;e.a=function(t){var e=n.i(o.a)(t),i=e.shift(),r=e.shift();e.unshift(["name",r]),e.unshift(["type",i]);var l={};return n.i(s.a)(e,l),a(l),l}},function(t,e,n){t.exports=n.p+"assets/3WNj6QfIN0cgE7u5icG0Zx.png"},function(t,e,n){t.exports=n.p+"assets/ZzXs2hkPaGeWT_N6FgGOx.png"},function(t,e,n){t.exports=n.p+"assets/13lPmuYsGizUIj_HGNYM82.png"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(465),x=i(b),_=n(169),w=i(_),M=n(170),S=i(M),E=n(171),k=i(E),T=n(180),C=i(T),P=n(192),O=i(P),A=n(16),R=i(A),L=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.handleDrag=n.handleDrag.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleDrag",value:function(t){this.props.store.options.showPNCMonitor&&this.props.store.updateWidthInPercentage(Math.min(1,t/window.innerWidth))}},{key:"componentWillMount",value:function(){this.props.store.updateDimension()}},{key:"componentDidMount",value:function(){var t=this;R.default.initialize(),A.MAP_WS.initialize(),A.POINT_CLOUD_WS.initialize(),window.addEventListener("resize",function(){t.props.store.updateDimension()})}},{key:"render",value:function(){var t=this.props.store,e=(t.isInitialized,t.dimension),n=(t.sceneDimension,t.options);t.hmi;return v.default.createElement("div",null,v.default.createElement(w.default,null),v.default.createElement("div",{className:"pane-container"},v.default.createElement(x.default,{split:"vertical",size:e.width,onChange:this.handleDrag,allowResize:n.showPNCMonitor},v.default.createElement("div",{className:"left-pane"},v.default.createElement(O.default,null),v.default.createElement("div",{className:"dreamview-body"},v.default.createElement(S.default,null),v.default.createElement(k.default,null))),v.default.createElement("div",{className:"right-pane"},n.showPNCMonitor&&v.default.createElement(C.default,null)))))}}]),e}(v.default.Component))||a)||a;e.default=L},function(t,e,n){var i=n(235);"string"==typeof i&&(i=[[t.i,i,""]]);var r={};r.transform=void 0;n(158)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var r=n(46),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),o=n(2),s=i(o),l=n(8);n(164);var u=n(15),c=i(u),h=n(163),d=i(h);a.render(s.default.createElement(l.Provider,{store:c.default},s.default.createElement(d.default,null)),document.getElementById("root"))},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(16),x=i(b),_=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={event_msg:""},n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleChange",value:function(t){this.setState({event_msg:t.target.value})}},{key:"handleSubmit",value:function(){var t=this.props,e=t.event_time_ms,n=t.hide_func;x.default.submitDriveEvent(e,this.state.event_msg),n()}},{key:"render",value:function(){var t=this.props,e=t.event_time_ms,n=t.hide_func;return v.default.createElement("div",{className:"card drive-event-card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Adding New DriveEvent")),v.default.createElement("div",{className:"card-content-column"},v.default.createElement("table",null,v.default.createElement("tbody",null,v.default.createElement("tr",null,v.default.createElement("td",null,"Event time"),v.default.createElement("td",null,e)),v.default.createElement("tr",null,v.default.createElement("td",null,"Message"),v.default.createElement("td",null,v.default.createElement("input",{type:"text",className:"drive-event-msg",value:this.state.event_msg,onChange:this.handleChange}))))),v.default.createElement("table",{className:"toolbar"},v.default.createElement("tbody",null,v.default.createElement("tr",null,v.default.createElement("td",null,v.default.createElement("button",{onClick:n},"Cancel")),v.default.createElement("td",null,v.default.createElement("button",{onClick:this.handleSubmit},"Submit")))))))}}]),e}(v.default.Component),w=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={newDriveEventTimeMs:0,showDriveEvent:!1},n.handleNewDriveEvent=n.handleNewDriveEvent.bind(n),n.hideDriveEventEditor=n.hideDriveEventEditor.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleNewDriveEvent",value:function(){this.setState({newDriveEventTimeMs:(new Date).getTime(),showDriveEvent:!0})}},{key:"hideDriveEventEditor",value:function(){this.setState({showDriveEvent:!1})}},{key:"render",value:function(){return v.default.createElement("div",{className:"data-recorder"},v.default.createElement("div",{className:"card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Operations")),v.default.createElement("div",{className:"card-content-column"},v.default.createElement("button",{onClick:this.handleNewDriveEvent},"New DriveEvent"))),this.state.showDriveEvent&&v.default.createElement(_,{event_time_ms:this.state.newDriveEventTimeMs,hide_func:this.hideDriveEventEditor}))}}]),e}(v.default.Component))||a)||a;e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(32),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(28),w=(i(_),n(168)),M=i(w),S=n(16),E=i(S),k=(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store.hmi,n=e.modes,i=e.currentMode,r=e.maps,a=e.currentMap,o=e.vehicles,l=e.currentVehicle;return b.default.createElement("div",{className:"header"},b.default.createElement(M.default,{name:"setup mode",options:(0,s.default)(n).sort(),currentOption:i,onChange:function(e){t.props.store.hmi.currentMode=e.target.value,E.default.changeSetupMode(e.target.value)}}),b.default.createElement(M.default,{name:"vehicle",options:o,currentOption:l,onChange:function(t){E.default.changeVehicle(t.target.value)}}),b.default.createElement(M.default,{name:"map",options:r,currentOption:a,onChange:function(t){E.default.changeMap(t.target.value)}}))}}]),e}(b.default.Component))||a)||a;e.default=k},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(16),v=(i(g),function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={name:t.name,value:t.currentOption},n.onChangeHandler=n.onChangeHandler.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"onChangeHandler",value:function(t){this.setState({value:t.target.value}),this.props.onChange(t)}},{key:"componentWillReceiveProps",value:function(t){t.currentOption!==this.props.currentOption&&this.setState({value:t.currentOption})}},{key:"render",value:function(){var t=this.props;t.name,t.options,t.currentOption,t.onChange;return this.entries=this.props.options.map(function(t){return m.default.createElement("option",{value:t,key:t},t)}),this.entries.unshift(m.default.createElement("option",{key:"none",value:"none",disabled:!0},"-- "+this.state.name+" --")),m.default.createElement("div",{className:"selector"},m.default.createElement("span",{className:"arrow"}),m.default.createElement("select",{onChange:this.onChangeHandler,value:this.state.value},this.entries))}}]),e}(m.default.Component));e.default=v},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(205),v=i(g),y=n(162),b=i(y),x=n(167),_=i(x),w=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){return m.default.createElement("header",{className:"header"},m.default.createElement(v.default,{image:b.default,className:"apollo-logo"}),m.default.createElement(_.default,null))}}]),e}(m.default.Component);e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o,s,l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(177),w=i(_),M=n(185),S=i(M),E=n(199),k=i(E),T=n(187),C=i(T),P=n(206),O=i(P),A=n(183),R=(i(A),function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){return b.default.createElement("div",{className:"video"},b.default.createElement("img",{src:"/image"}))}}]),e}(b.default.Component)),L=(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this.props.store,e=t.sceneDimension,n=t.meters,i=t.monitor,r=t.options,a=t.trafficSignal,o=(t.video,t.hmi);return b.default.createElement("div",{className:"main-view",style:{height:e.height}},b.default.createElement(C.default,{width:e.width,height:e.height,options:r,invisible:!1}),r.showRouteEditingBar?b.default.createElement(S.default,null):b.default.createElement(k.default,{meters:n,trafficSignal:a,showNotification:!r.showTasks,monitor:i}),r.showVideo&&b.default.createElement(R,null),!1,o.inNavigationMode&&b.default.createElement(w.default,{viewHeight:e.height,viewWidth:e.width}))}}]),e}(b.default.Component))||a)||a,I=(o=(0,x.inject)("store"))(s=(0,x.observer)(s=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this.props.store,e=t.isInitialized,n=t.sceneDimension;return e?b.default.createElement(L,null):b.default.createElement(O.default,{height:n.height})}}]),e}(b.default.Component))||s)||s;e.default=I},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(166),x=i(b),_=n(173),w=i(_),M=n(189),S=i(M),E=n(190),k=i(E),T=n(204),C=i(T),P=n(58),O=(i(P),(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props.store,e=t.options,n=t.routeEditingManager,i=t.hmi;return v.default.createElement("div",{className:"tools"},e.showTasks&&v.default.createElement(C.default,null),e.showModuleController&&v.default.createElement(w.default,null),e.showMenu&&v.default.createElement(S.default,{options:e}),e.showPOI&&v.default.createElement(k.default,{routeEditingManager:n,options:e,inNavigationMode:i.inNavigationMode}),e.showDataRecorder&&v.default.createElement(x.default,null))}}]),e}(v.default.Component))||a)||a);e.default=O},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y={OK:"#1C9063",NOT_READY:"#B43131",NOT_PRESENT:"#B43131",ERR:"#B43131",UNDEF:"#B43131"},b=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.title,n=t.status;return g.default.createElement("div",{className:"status-display"},g.default.createElement("div",{className:"name"},e),g.default.createElement("div",{className:"status"},g.default.createElement("span",null,n.replace("_"," ")),g.default.createElement("span",{className:"status-icon",style:{backgroundColor:y[n]}})))}}]),e}(g.default.Component))||r;e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(237),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(114),w=i(_),M=n(172),S=i(M),E=n(16),k=(i(E),(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store.hmi,n=e.modes,i=e.currentMode,r=e.moduleStatus,a=e.hardwareStatus,o=e.displayName,l="none"!==i?n[i].liveModules:(0,s.default)(r.keys()),u="none"!==i?n[i].liveHardware:(0,s.default)(a.keys()),c=l.sort().map(function(e){return b.default.createElement(w.default,{key:e,id:e,title:o[e],disabled:!1,isChecked:r.get(e),onClick:function(){t.props.store.hmi.toggleModule(e)},extraClasses:"controller"})}),h=u.map(function(t){return b.default.createElement(S.default,{key:t,title:o[t],status:a.get(t)})});return b.default.createElement("div",{className:"module-controller"},b.default.createElement("div",{className:"card"},b.default.createElement("div",{className:"card-header"},b.default.createElement("span",null,"Hardware")),b.default.createElement("div",{className:"card-content-column"},h)),b.default.createElement("div",{className:"card"},b.default.createElement("div",{className:"card-header"},b.default.createElement("span",null,"Modules")),b.default.createElement("div",{className:"card-content-row"},c)))}}]),e}(b.default.Component))||a)||a);e.default=k},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(5),s=i(o),l=n(4),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=function(){function t(){(0,h.default)(this,t),this.map=null,this.controls=[]}return(0,f.default)(t,[{key:"isInitialized",value:function(){return null!==this.map}},{key:"loadMap",value:function(t,e){this.map=new BMap.Map(e,{enableMapClick:!1}),this.map.centerAndZoom(t,19),this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.MapTypeControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_SMALL})),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL,enableGeolocation:!1}))}},{key:"setCenter",value:function(t){this.map.setCenter(t)}},{key:"setZoom",value:function(t){this.map.setZoom(t)}},{key:"addEventHandler",value:function(t,e){this.map.addEventListener(t,function(t){var n=t.point;e(n)})}},{key:"createPoint",value:function(t){var e=t.lat,n=t.lng;return new BMap.Point(n,e)}},{key:"createMarker",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=null;e&&(i=new BMap.Label(e,{point:t,offset:new BMap.Size(15,-15)}));var r=new BMap.Marker(t,{label:i,enableDragging:n,rotation:5});return r.setLabel(i),this.map.addOverlay(r),r}},{key:"createPolyline",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,r={geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:i},a=new BMap.Polyline(t,r);return this.map.addOverlay(a),a}},{key:"createControl",value:function(t){var e=t.text,n=t.tip,i=t.color,r=t.offsetX,a=t.offsetY,o=t.onClickHandler,s=new m(e,n,i,new BMap.Size(r,a),o);this.map.addControl(s),this.controls.push(s)}},{key:"disableControls",value:function(){var t=this;this.controls.forEach(function(e){t.map.removeControl(e)})}},{key:"enableControls",value:function(){var t=this;this.controls.forEach(function(e){t.map.addControl(e)})}},{key:"getMarkerPosition",value:function(t){return t.getPosition()}},{key:"updatePolyline",value:function(t,e){t.setPath(e)}},{key:"removePolyline",value:function(t){this.map.removeOverlay(t)}}]),t}();e.default=p;var m=function(t){function e(t,n,i,r,o){var l;(0,h.default)(this,e);for(var u=arguments.length,c=Array(u>5?u-5:0),d=5;d2&&void 0!==arguments[2])||arguments[2];return new google.maps.Marker({position:t,label:e,draggable:n,map:this.map})}},{key:"createPolyline",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return new google.maps.Polyline({path:t,geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:i,map:this.map})}},{key:"createControl",value:function(t){var e=t.text,n=t.tip,i=t.color,r=(t.offsetX,t.offsetY,t.onClickHandler),a=document.createElement("div"),o=document.createElement("div");o.style.backgroundColor=i,o.style.border="2px solid #fff",o.style.borderRadius="3px",o.style.boxShadow="0 2px 6px rgba(0,0,0,.3)",o.style.cursor="pointer",o.style.marginBottom="22px",o.style.textAlign="center",o.title=n,a.appendChild(o);var s=document.createElement("div");s.style.color="rgb(25,25,25)",s.style.fontFamily="Roboto,Arial,sans-serif",s.style.fontSize="16px",s.style.lineHeight="38px",s.style.paddingLeft="5px",s.style.paddingRight="5px",s.innerHTML=e,o.appendChild(s),o.addEventListener("click",function(){r(s)}),this.map.controls[google.maps.ControlPosition.TOP_CENTER].push(a),this.controls.push(a)}},{key:"disableControls",value:function(){this.controls.forEach(function(t){t.style.display="none"})}},{key:"enableControls",value:function(){this.controls.forEach(function(t){t.style.display="block"})}},{key:"getMarkerPosition",value:function(t){var e=t.getPosition();return{lat:e.lat(),lng:e.lng()}}},{key:"updatePolyline",value:function(t,e){t.setPath(e)}},{key:"removePolyline",value:function(t){t.setMap(null)}}]),t}();e.default=l},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"getMaximizingIcon",value:function(){return m.default.createElement("svg",{viewBox:"0 0 20 20"},m.default.createElement("defs",null,m.default.createElement("path",{d:"M20 0L0 20h20V0z",id:"a"}),m.default.createElement("path",{d:"M11.53 18.5l-.03-7h7",id:"b"}),m.default.createElement("path",{d:"M12 12l7 7",id:"c"})),m.default.createElement("use",{xlinkHref:"#a",opacity:".6",fill:"#549BFF"}),m.default.createElement("use",{xlinkHref:"#b",fillOpacity:"0",stroke:"#006AFF",strokeWidth:"2"}),m.default.createElement("use",{xlinkHref:"#c",fillOpacity:"0",stroke:"#006AFF",strokeWidth:"2"}))}},{key:"getMinimizingIcon",value:function(){return m.default.createElement("svg",{viewBox:"0 0 20 20"},m.default.createElement("defs",null,m.default.createElement("path",{d:"M20 0L0 20h20V0z",id:"a"}),m.default.createElement("path",{d:"M18.47 11.5l.03 7h-7",id:"b"}),m.default.createElement("path",{d:"M11 11l7 7",id:"c"})),m.default.createElement("use",{xlinkHref:"#a",opacity:".6",fill:"#549BFF"}),m.default.createElement("use",{xlinkHref:"#b",fillOpacity:"0",stroke:"#006AFF",strokeWidth:"2"}),m.default.createElement("use",{xlinkHref:"#c",fillOpacity:"0",stroke:"#006AFF",strokeWidth:"2"}))}},{key:"render",value:function(){var t=this.props,e=t.type,n=t.onClick,i=null;switch(e){case"minimizing":i=this.getMinimizingIcon();break;case"maximizing":i=this.getMaximizingIcon()}return m.default.createElement("div",{className:"window-resize-control",onClick:n},i)}}]),e}(m.default.PureComponent);e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(28),v=i(g),y=n(176),b=i(y),x=n(58),_=i(x),w=n(174),M=i(w),S=n(175),E=i(S),k=n(16),T=i(k),C=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={routingView:!1},n.onClickHandler=n.onClickHandler.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"onClickHandler",value:function(){var t=!this.state.routingView;t?_.default.enableControls():_.default.disableControls(),this.setState({routingView:t})}},{key:"componentDidMount",value:function(){var t="GoogleMap"===v.default.navigation.map?new E.default:new M.default;_.default.initialize(T.default,t),_.default.disableControls()}},{key:"componentWillUnmount",value:function(){_.default.reset()}},{key:"render",value:function(){var t=this.props,e=t.viewHeight,n=t.viewWidth,i=0,r=0,a=n,o=e,s="maximizing";return this.state.routingView||(i=10,r=20,a=Math.min(.3*n,250),o=Math.min(.5*e,300),s="minimizing"),m.default.createElement("div",{displayname:"navigation",className:"navigation-view",style:{width:a,height:o,top:i,left:r}},m.default.createElement("div",{id:"map_canvas"}),m.default.createElement(b.default,{type:s,onClick:this.onClickHandler}))}}]),e}(m.default.Component);e.default=C},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(541),x=i(b),_=n(113),w=i(_),M=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"generateScatterGraph",value:function(t,e){return void 0===x.default[t]?(console.error("Graph setting not found: ",t),null):v.default.createElement(w.default,{title:x.default[t].title,options:x.default[t].options,properties:x.default[t].properties,data:e})}},{key:"render",value:function(){var t=this.props.store.controlData,e=t.lastUpdatedTime,n=t.data;return e?v.default.createElement("div",null,this.generateScatterGraph("trajectoryGraph",n.trajectoryGraph),this.generateScatterGraph("speedGraph",n.speedGraph),this.generateScatterGraph("accelerationGraph",n.accelerationGraph),this.generateScatterGraph("curvatureGraph",n.curvatureGraph),this.generateScatterGraph("stationErrorGraph",n.stationErrorGraph)):null}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(40),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(542),w=i(_),M=n(113),S=i(M),E=(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"generateStGraph",value:function(t){var e=[],n=["DpStSpeedOptimizer","QpSplineStSpeedOptimizer"],i=!0,r=!1,a=void 0;try{for(var o,l=(0,s.default)(n);!(i=(o=l.next()).done);i=!0){var u=o.value,c=t[u],h=c?c.obstaclesBoundary:[];e.push(b.default.createElement(S.default,{key:"stGraph_"+u,title:u,options:w.default.stGraph.options,properties:w.default.stGraph.properties,data:c,boxes:h}))}}catch(t){r=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}return e}},{key:"generateScatterGraph",value:function(t,e){return void 0===w.default[t]?(console.error("Graph setting not found: ",t),null):b.default.createElement(S.default,{title:w.default[t].title,options:w.default[t].options,properties:w.default[t].properties,data:e})}},{key:"render",value:function(){var t=this.props.store.planningData,e=t.planningTime,n=t.data,i=t.latencyGraph;return e?b.default.createElement("div",null,this.generateScatterGraph("speedGraph",n.speedGraph),this.generateScatterGraph("accelerationGraph",n.accelerationGraph),this.generateScatterGraph("thetaGraph",n.thetaGraph),this.generateScatterGraph("kappaGraph",n.kappaGraph),this.generateScatterGraph("dpPolyGraph",n.dpPolyGraph),this.generateStGraph(n.stGraph),this.generateScatterGraph("stSpeedGraph",n.stSpeedGraph.QpSplineStSpeedOptimizer),this.generateScatterGraph("latencyGraph",i),this.generateScatterGraph("dkappaGraph",n.dkappaGraph)):null}}]),e}(b.default.Component))||a)||a;e.default=E},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(475),v=n(179),y=i(v),b=n(178),x=i(b),_=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){return m.default.createElement("div",{className:"pnc-monitor"},m.default.createElement(g.Tabs,null,m.default.createElement(g.TabList,null,m.default.createElement(g.Tab,null,"Planning"),m.default.createElement(g.Tab,null,"Control")),m.default.createElement(g.TabPanel,null,m.default.createElement(y.default,null)),m.default.createElement(g.TabPanel,null,m.default.createElement(x.default,null))))}}]),e}(m.default.Component);e.default=_},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 10 10",onClick:t},m.default.createElement("polygon",{className:"play",points:"0 0, 10 5, 0 10"}))}}]),e}(m.default.Component),b=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 100 100",onClick:t},m.default.createElement("path",{className:"replay",d:"M0.166,49.438C0.166,75.152,20.744,96,46.125,96 c12.096,0,23.1-4.731,31.306-12.469 c2.144-2.021-8.776-12.227-10.269-10.84 c-5.54,5.146-12.926,8.286-21.037,8.286 c-17.193,0-31.133-14.122-31.133-31.544s13.939-31.545,31.133-31.545 c17.197,0,31.135,11.108,31.135,28.5 c0,0.007,0.021,0.062,0.049,0.069 L75.778,48c-3.484,0-5.931,0-5.931,0l14.826,18.023 L99.5,48 c0,0-2.447,0-5.931,0l-1.531-1.514 c0.017-0.006,0.05-0.015,0.05-0.021 c0-25.716-20.578-43.574-45.963-43.574 C20.744,2.891,0.166,23.723,0.166,49.438 z M78.743,44.933 l0.115,0.023l-0.089,0.086 C78.754,44.977,78.743,44.933,78.743,44.933 z"}))}}]),e}(m.default.Component),x=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 20 20",onClick:t},m.default.createElement("polygon",{className:"pause",points:"4 0, 6 0, 6 20, 4 20"}),m.default.createElement("polygon",{className:"pause",points:"13 0, 15 0, 15 20, 13 20"}))}}]),e}(m.default.Component),_=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 70 70"},m.default.createElement("path",{className:"fullscreen",d:"M0 25 V0 H25 M0 45 V70 H25 M45 0 H70 V25 M45 70 H70 V45"}))}}]),e}(m.default.Component),w=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){this.props.onClick;return m.default.createElement("svg",{className:"icon",viewBox:"0 0 70 70"},m.default.createElement("path",{className:"exit-fullscreen",d:"M0 25 H25 V0 M0 45 H25 V70 M45 0 V25 H70 M45 70 V45 H70"}))}}]),e}(m.default.Component),M=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.type,n=t.onClick,i=t.extraClasses,r=null;switch(e){case"replay":r=m.default.createElement(b,null);break;case"pause":r=m.default.createElement(x,null);break;case"play":r=m.default.createElement(y,null);break;case"fullscreen":r=m.default.createElement(_,null);break;case"normalscreen":r=m.default.createElement(w,null)}return m.default.createElement("div",{className:(0,v.default)(i),onClick:n},r)}}]),e}(m.default.Component);e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(463),v=i(g),y=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={frame:-1},n.updatingSeekingTime=!1,n.handleSliderChange=n.handleSliderChange.bind(n),n.handleSliderChangeComplete=n.handleSliderChangeComplete.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"getTimeFromFrame",value:function(t,e){return(Math.max(0,e-1)/t).toFixed(1)}},{key:"handleSliderChange",value:function(t){this.setState({frame:t}),this.updatingSeekingTime=!0}},{key:"handleSliderChangeComplete",value:function(){this.props.handleFrameSeek(this.state.frame),this.updatingSeekingTime=!1}},{key:"componentWillReceiveProps",value:function(t){this.updatingSeekingTime||t.isSeeking||this.setState({frame:t.currentFrame})}},{key:"render",value:function(){var t=this.props,e=t.numFrames,n=t.currentFrame,i=t.fps,r=(t.isSeeking,t.handleFrameSeek,this.getTimeFromFrame(i,e)),a=this.getTimeFromFrame(i,n);return m.default.createElement("div",{className:"time-controls"},m.default.createElement(v.default,{tooltip:!1,min:1,max:e,value:this.state.frame,onChange:this.handleSliderChange,onChangeComplete:this.handleSliderChangeComplete}),m.default.createElement("div",{className:"time-display"},a+" / "+r+" s"))}}]),e}(m.default.Component);e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(181),x=i(b),_=n(182),w=i(_),M=n(16),S=i(M),E=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={rate:1,isPlaying:!1,nextScreenMode:"normalscreen"},n.nextAction="play",n.handleRateChange=n.handleRateChange.bind(n),n.handleFrameSeek=n.handleFrameSeek.bind(n),n.handleActionChange=n.handleActionChange.bind(n),n.handleScreenModeChange=n.handleScreenModeChange.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:"handleRateChange",value:function(t){var e=this.props.store.playback,n=parseFloat(t.target.value);this.setState({rate:n}),e.setPlayRate(n),this.state.isPlaying&&S.default.startPlayback(e.msPerFrame)}},{key:"handleActionChange",value:function(){var t=this.props.store.playback,e=!this.state.isPlaying;switch(t.setPlayAction(e),this.setState({isPlaying:e}),this.nextAction){case"play":S.default.startPlayback(t.msPerFrame);break;case"pause":S.default.pausePlayback();break;case"replay":t.resetFrame(),S.default.startPlayback(t.msPerFrame)}}},{key:"handleScreenModeChange",value:function(){var t=this.props.store.options;switch(this.state.nextScreenMode){case"fullscreen":t.showMenu=!1,this.setState({nextScreenMode:"normalscreen"});break;case"normalscreen":t.showMenu=!0,this.setState({nextScreenMode:"fullscreen"})}}},{key:"handleFrameSeek",value:function(t){var e=this.props.store.playback;e.seekFrame(t),this.state.isPlaying?S.default.requestTimer||S.default.startPlayback(e.msPerFrame):S.default.requestSimulationWorld(e.jobId,t)}},{key:"componentWillUpdate",value:function(t,e){var n=this.props.store.playback;n.replayComplete&&this.state.isPlaying&&(n.setPlayAction(!1),this.setState({isPlaying:!1})),n.replayComplete&&!n.isSeeking?this.nextAction="replay":e.isPlaying?this.nextAction="pause":this.nextAction="play"}},{key:"render",value:function(){var t=this.props.store.playback;return v.default.createElement("div",{className:"playback-controls"},v.default.createElement(x.default,{extraClasses:"left-controls",onClick:this.handleActionChange,type:this.nextAction}),v.default.createElement("div",{className:"rate-selector"},v.default.createElement("select",{onChange:this.handleRateChange,value:this.state.rate},v.default.createElement("option",{value:.25},"x 0.25"),v.default.createElement("option",{value:.5},"x 0.5"),v.default.createElement("option",{value:1},"x 1.0"),v.default.createElement("option",{value:2},"x 2.0")),v.default.createElement("span",{className:"arrow"})),v.default.createElement(w.default,{numFrames:t.numFrames,currentFrame:t.currentFrame,fps:t.FPS,isSeeking:t.isSeeking,handleFrameSeek:this.handleFrameSeek}),v.default.createElement(x.default,{extraClasses:"right-controls",onClick:this.handleScreenModeChange,type:this.state.nextScreenMode}))}}]),e}(v.default.Component))||a)||a;e.default=E},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(46),v=i(g),y=n(13),b=i(y),x=n(517),_=i(x),w=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={active:!1,hover:!1},n.toggle=n.toggle.bind(n),n.handleMouseIn=n.handleMouseIn.bind(n),n.handleMouseOut=n.handleMouseOut.bind(n),n.text="For Desktop device:\n • To zoom the map: use mouse wheel\n • To move around the map: right-click and drag your mouse,\n or use arrow keys\n • To add a routing point: left-click mouse\n\nFor Mobile device:\n • To zoom the map: pinch the screen with two fingers\n • To move around the map: swipe with three fingers\n • To add a routing point: tap with one finger",n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"toggle",value:function(){v.default.findDOMNode(this);this.setState({active:!this.state.active})}},{key:"handleMouseIn",value:function(){this.setState({hover:!0})}},{key:"handleMouseOut",value:function(){this.setState({hover:!1})}},{key:"render",value:function(){var t={display:this.state.active?"block":"none"};return m.default.createElement("button",{className:(0,b.default)({"editing-tip":!0,button:!0,active:this.state.active||this.state.hover}),onClick:this.toggle,onMouseOver:this.handleMouseIn,onMouseOut:this.handleMouseOut},m.default.createElement("img",{src:_.default}),m.default.createElement("p",{style:t},this.text))}}]),e}(m.default.Component);e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(184),x=i(b),_=n(529),w=i(_),M=n(530),S=i(M),E=n(531),k=i(E),T=n(527),C=i(T),P=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props,e=t.label,n=t.icon,i=t.onClick;return v.default.createElement("button",{onClick:i,className:"button"},v.default.createElement("img",{src:n}),v.default.createElement("span",null,e))}}]),e}(v.default.Component),O=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store,n=e.routeEditingManager,i=e.options;return v.default.createElement("div",{className:"route-editing-bar"},v.default.createElement("div",{className:"editing-panel"},v.default.createElement(P,{label:"Add Point of Interest",icon:C.default,onClick:function(){t.props.store.handleOptionToggle("showPOI")}}),v.default.createElement(P,{label:"Remove Last Point",icon:S.default,onClick:function(){n.removeLastRoutingPoint()}}),v.default.createElement(P,{label:"Remove All Points",icon:w.default,onClick:function(){n.removeAllRoutingPoints()}}),v.default.createElement(P,{label:"Send Routing Request",icon:k.default,onClick:function(){n.sendRoutingRequest(!1)&&(i.showRouteEditingBar=!1)}}),v.default.createElement(x.default,null)))}}]),e}(v.default.Component))||a)||a;e.default=O},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props.store.geolocation,e=t.x?t.x.toFixed(2):"?",n=t.y?t.y.toFixed(2):"?";return v.default.createElement("div",{className:"geolocation"},"( ",e,", ",n," )")}}]),e}(v.default.Component))||a)||a;e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),x=i(b),_=n(186),w=i(_),M=n(35),S=i(M),E=n(15),k=i(E),T=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"componentDidMount",value:function(){S.default.initialize("canvas",this.props.width,this.props.height,this.props.options)}},{key:"componentWillUpdate",value:function(t){S.default.updateDimension(t.width,t.height)}},{key:"render",value:function(){var t=this.props,e=t.invisible,n=t.options;return v.default.createElement("div",{id:"canvas",className:(0,x.default)({"dreamview-canvas":!0,hidden:e}),onMouseMove:function(t){var e=S.default.getGeolocation(t);k.default.setGeolocation(e)}},n.showGeo&&v.default.createElement(w.default,null))}}]),e}(v.default.Component))||a)||a;e.default=T},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=(n(8),n(13)),v=i(g),y=n(536),b=i(y),x=n(534),_=i(x),w=n(533),M=i(w),S=n(535),E=i(S),k=n(532),T=i(k),C=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.disabled,n=t.onClick,i=t.active,r=t.label,a=t.extraClasses,o=t.iconSrc;return m.default.createElement("button",{onClick:n,disabled:e,className:(0,v.default)({button:!0,"button-active":i},a)},m.default.createElement("img",{src:o,className:"icon"}),m.default.createElement("div",{className:"label"},r))}}]),e}(m.default.PureComponent),P=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.enableHMIButtonsOnly,n=t.inNavigationMode,i=t.onTasks,r=t.showTasks,a=t.onModuleController,o=t.showModuleController,s=t.onMenu,l=t.showMenu,u=t.onRouteEditingBar,c=t.showRouteEditingBar,h=t.onDataRecorder,d=t.showDataRecorder;return m.default.createElement("div",{className:"main-panel"},m.default.createElement(C,{label:"Tasks",disabled:!1,iconSrc:b.default,onClick:i,active:r}),m.default.createElement(C,{label:"Module Controller",disabled:!1,iconSrc:_.default,onClick:a,active:o}),m.default.createElement(C,{label:"Layer Menu",disabled:e,iconSrc:M.default,onClick:s,active:l}),m.default.createElement(C,{label:"Route Editing",disabled:e||n,iconSrc:E.default,onClick:u,active:c}),m.default.createElement(C,{label:"Data Recorder",disabled:e,iconSrc:T.default,onClick:h,active:d}))}}]),e}(m.default.PureComponent);e.default=P},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o,s=n(32),l=i(s),u=n(3),c=i(u),h=n(0),d=i(h),f=n(1),p=i(f),m=n(5),g=i(m),v=n(4),y=i(v),b=n(2),x=i(b),_=n(8),w=n(13),M=(i(w),n(115)),S=i(M),E=n(220),k=i(E),T=n(521),C=i(T),P=n(525),O=i(P),A=n(526),R=i(A),L=n(519),I=i(L),D=n(522),N=i(D),z=n(523),B=i(z),F=n(524),U=i(F),j=n(520),W=i(j),G=n(16),V={perception:C.default,prediction:O.default,routing:R.default,decision:I.default,planning:N.default,camera:B.default,position:U.default,map:W.default},H={perceptionPointCloud:"showPointCloud",perceptionVehicle:"showObstaclesVehicle",perceptionPedestrian:"showObstaclesPedestrian",perceptionBicycle:"showObstaclesBicycle",perceptionUnknownMovable:"showObstaclesUnknownMovable",perceptionUnknownUnmovable:"showObstaclesUnknownUnmovable",perceptionUnknown:"showObstaclesUnknown",perceptionVirtual:"showObstaclesVirtual",perceptionVelocity:"showObstaclesVelocity",perceptionHeading:"showObstaclesHeading",perceptionId:"showObstaclesId",predictionMajor:"showPredictionMajor",predictionMinor:"showPredictionMinor",routing:"showRouting",decisionMain:"showDecisionMain",decisionObstacle:"showDecisionObstacle",planningCar:"showPlanningCar",planningReference:"showPlanningReference",planningDpOptimizer:"showPlanningDpOptimizer",planningQpOptimizer:"showPlanningQpOptimizer",planningLine:"showPlanning",positionLocalization:"showPositionLocalization",positionGps:"showPositionGps",mapCrosswalk:"showMapCrosswalk",mapClearArea:"showMapClearArea",mapJunction:"showMapJunction",mapLane:"showMapLane",mapRoad:"showMapRoad",mapSignal:"showMapSignal",mapStopSign:"showMapStopSign"},q=(0,_.observer)(r=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:"render",value:function(){var t=this.props,e=t.id,n=t.title,i=t.options;return x.default.createElement("ul",null,x.default.createElement("li",{id:e,onClick:function(){i.toggle(H[e]),"perceptionPointCloud"===e&&G.POINT_CLOUD_WS.togglePointCloud(i.showPointCloud)}},x.default.createElement("div",{className:"switch"},x.default.createElement("input",{type:"checkbox",name:e,className:"toggle-switch",id:e,checked:i[H[e]],readOnly:!0}),x.default.createElement("label",{className:"toggle-switch-label",htmlFor:e})),x.default.createElement("span",null,n)))}}]),e}(x.default.Component))||r,Y=(0,_.observer)(a=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:"render",value:function(){var t=this.props,e=t.tabId,n=t.tabTitle,i=t.tabType,r=t.data,a=t.options,o=null;return"checkbox"===i?o=(0,l.default)(r).map(function(t){var e=r[t];return a.hideOptionToggle[t]?null:x.default.createElement(q,{key:t,id:t,title:e,options:a})}):"radio"===i&&(o=(0,l.default)(r).map(function(t){var n=r[t];return a.hideOptionToggle[t]?null:x.default.createElement(S.default,{key:e+"_"+t,id:e,onClick:function(){a.selectCamera(n)},checked:a.cameraAngle===n,title:n,options:a})})),x.default.createElement("div",{className:"card"},x.default.createElement("div",{className:"card-header summary"},x.default.createElement("span",null,x.default.createElement("img",{src:V[e]}),n)),x.default.createElement("div",{className:"card-content-column"},o))}}]),e}(x.default.Component))||a,X=(0,_.observer)(o=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:"render",value:function(){var t=this.props.options,e=(0,l.default)(k.default).map(function(e){var n=k.default[e];return x.default.createElement(Y,{key:n.id,tabId:n.id,tabTitle:n.title,tabType:n.type,data:n.data,options:t})});return x.default.createElement("div",{className:"tool-view-menu",id:"layer-menu"},e)}}]),e}(x.default.Component))||o;e.default=X},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(32),o=i(a),s=n(3),l=i(s),u=n(0),c=i(u),h=n(1),d=i(h),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),x=n(13),_=(i(x),n(115)),w=i(_),M=(0,b.observer)(r=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:"render",value:function(){var t=this.props,e=t.routeEditingManager,n=t.options,i=t.inNavigationMode,r=(0,o.default)(e.defaultRoutingEndPoint).map(function(t){return y.default.createElement(w.default,{extraClasses:["poi-button"],key:"poi_"+t,id:"poi",title:t,onClick:function(){e.addDefaultEndPoint(t,i),n.showRouteEditingBar||e.sendRoutingRequest(i),n.showPOI=!1},checked:!1})});return y.default.createElement("div",{className:"tool-view-menu",id:"poi-list"},y.default.createElement("div",{className:"card"},y.default.createElement("div",{className:"card-header"},y.default.createElement("span",null,"Point of Interest")),y.default.createElement("div",{className:"card-content-row"},r)))}}]),e}(y.default.Component))||r;e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=(n(8),n(13)),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.disabled,n=t.onClick,i=t.active,r=t.label,a=t.extraClasses;t.iconSrc;return m.default.createElement("button",{onClick:n,disabled:e,className:(0,v.default)({"sub-button":!0,"sub-button-active":i},a)},m.default.createElement("div",{className:"label"},r))}}]),e}(m.default.Component),b=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.enablePOI,n=t.onPOI,i=t.showPOI;return m.default.createElement("div",null,m.default.createElement(y,{label:"Default Routing",disabled:!e,onClick:n,active:i}))}}]),e}(m.default.Component);e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(188),x=i(b),_=n(191),w=i(_),M=n(16),S=(i(M),(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store,n=e.options,i=e.enableHMIButtonsOnly,r=e.hmi;return v.default.createElement("div",{className:"side-bar"},v.default.createElement(x.default,{enableHMIButtonsOnly:i,inNavigationMode:r.inNavigationMode,onTasks:function(){t.props.store.handleOptionToggle("showTasks")},showTasks:n.showTasks,onModuleController:function(){t.props.store.handleOptionToggle("showModuleController")},showModuleController:n.showModuleController,onMenu:function(){t.props.store.handleOptionToggle("showMenu")},showMenu:n.showMenu,onRouteEditingBar:function(){t.props.store.handleOptionToggle("showRouteEditingBar")},showRouteEditingBar:n.showRouteEditingBar,onDataRecorder:function(){t.props.store.handleOptionToggle("showDataRecorder")},showDataRecorder:n.showDataRecorder}),v.default.createElement(w.default,{enablePOI:!i&&!n.showRouteEditingBar,onPOI:function(){t.props.store.handleOptionToggle("showPOI")},showPOI:!n.showRouteEditingBar&&n.showPOI}))}}]),e}(v.default.Component))||a)||a);e.default=S},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(196),b=i(y),x=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.label,n=t.percentage,i=t.meterColor,r=t.background;return g.default.createElement("div",{className:"meter-container"},g.default.createElement("div",{className:"meter-label"},e),g.default.createElement("span",{className:"meter-head",style:{borderColor:i}}),g.default.createElement("div",{className:"meter-background",style:{backgroundColor:r}},g.default.createElement("span",{style:{backgroundColor:i,width:n+"%"}})))}}]),e}(g.default.Component),_=(0,v.observer)(r=function(t){function e(t){(0,l.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t));return n.setting={brake:{label:"Brake",meterColor:"#B43131",background:"#382626"},accelerator:{label:"Accelerator",meterColor:"#006AFF",background:"#2D3B50"}},n}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.throttlePercent,n=t.brakePercent,i=t.speed;return g.default.createElement("div",{className:"auto-meter"},g.default.createElement(b.default,{meterPerSecond:i}),g.default.createElement("div",{className:"brake-panel"},g.default.createElement(x,{label:this.setting.brake.label,percentage:n,meterColor:this.setting.brake.meterColor,background:this.setting.brake.background})),g.default.createElement("div",{className:"throttle-panel"},g.default.createElement(x,{label:this.setting.accelerator.label,percentage:e,meterColor:this.setting.accelerator.meterColor,background:this.setting.accelerator.background})))}}]),e}(g.default.Component))||r;e.default=_},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.utterance=window.speechSynthesis?new SpeechSynthesisUtterance:null,n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"componentWillUpdate",value:function(){this.utterance&&window.speechSynthesis.cancel()}},{key:"render",value:function(){var t=this.props,e=t.drivingMode,n=t.isAutoMode;return this.utterance&&(this.utterance.text="Entering to "+e+" mode",window.speechSynthesis.speak(this.utterance)),m.default.createElement("div",{className:(0,v.default)({"driving-mode":!0,"auto-mode":n,"manual-mode":!n})},m.default.createElement("span",{className:"text"},e))}}]),e}(m.default.PureComponent);e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(13),b=i(y),x=n(161),_=i(x),w=n(160),M=i(w),S=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props.monitor;if(!t.hasActiveNotification)return null;if(0===t.items.length)return null;var e=t.items[0],n="ERROR"===e.logLevel||"FATAL"===e.logLevel?"alert":"warn",i="alert"===n?M.default:_.default;return g.default.createElement("div",{className:"notification-"+n},g.default.createElement("img",{src:i,className:"icon"}),g.default.createElement("span",{className:(0,b.default)("text",n)},e.msg))}}]),e}(g.default.Component))||r;e.default=S},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=[{name:"km/h",conversionFromMeterPerSecond:3.6},{name:"m/s",conversionFromMeterPerSecond:1},{name:"mph",conversionFromMeterPerSecond:2.23694}],v=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={unit:0},n.changeUnit=n.changeUnit.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"changeUnit",value:function(){this.setState({unit:(this.state.unit+1)%g.length})}},{key:"render",value:function(){var t=this.props.meterPerSecond,e=g[this.state.unit],n=e.name,i=Math.round(t*e.conversionFromMeterPerSecond);return m.default.createElement("span",{onClick:this.changeUnit},m.default.createElement("span",{className:"speed-read"},i),m.default.createElement("span",{className:"speed-unit"},n))}}]),e}(m.default.Component);e.default=v},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g={GREEN:"rgba(79, 198, 105, 0.8)",YELLOW:"rgba(239, 255, 0, 0.8)",RED:"rgba(180, 49, 49, 0.8)",BLACK:"rgba(30, 30, 30, 0.8)",UNKNOWN:"rgba(30, 30, 30, 0.8)","":null},v=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props.colorName,e=g[t],n=t||"NO SIGNAL";return m.default.createElement("div",{className:"traffic-light"},e&&m.default.createElement("svg",{className:"symbol",viewBox:"0 0 30 30",height:"28",width:"28"},m.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:e})),m.default.createElement("div",{className:"text"},n))}}]),e}(m.default.PureComponent);e.default=v},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props.steeringAngle;return g.default.createElement("svg",{className:"wheel",viewBox:"0 0 100 100",height:"80",width:"80"},g.default.createElement("circle",{className:"wheel-background",cx:"50",cy:"50",r:"45"}),g.default.createElement("g",{className:"wheel-arm",transform:"rotate("+t+" 50 50)"},g.default.createElement("rect",{x:"45",y:"7",height:"10",width:"10"}),g.default.createElement("line",{x1:"50",y1:"50",x2:"50",y2:"5"})))}}]),e}(g.default.Component),b=(0,v.observer)(r=function(t){function e(t){(0,l.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t));return n.signalColor={off:"#30435E",on:"#006AFF"},n}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.steeringPercentage,n=t.steeringAngle,i=t.turnSignal,r="LEFT"===i||"EMERGENCY"===i?this.signalColor.on:this.signalColor.off,a="RIGHT"===i||"EMERGENCY"===i?this.signalColor.on:this.signalColor.off;return g.default.createElement("div",{className:"wheel-panel"},g.default.createElement("div",{className:"steerangle-read"},e),g.default.createElement("div",{className:"steerangle-unit"},"%"),g.default.createElement("div",{className:"left-arrow",style:{borderRightColor:r}}),g.default.createElement(y,{steeringAngle:n}),g.default.createElement("div",{className:"right-arrow",style:{borderLeftColor:a}}))}}]),e}(g.default.Component))||r;e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(193),b=i(y),x=n(195),_=i(x),w=n(197),M=i(w),S=n(194),E=i(S),k=n(198),T=i(k),C=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:"render",value:function(){var t=this.props,e=t.meters,n=t.trafficSignal,i=t.showNotification,r=t.monitor;return g.default.createElement("div",{className:"status-bar"},i&&g.default.createElement(_.default,{monitor:r}),g.default.createElement(b.default,{throttlePercent:e.throttlePercent,brakePercent:e.brakePercent,speed:e.speed}),g.default.createElement(T.default,{steeringPercentage:e.steeringPercentage,steeringAngle:e.steeringAngle,turnSignal:e.turnSignal}),g.default.createElement("div",{className:"traffic-light-and-driving-mode"},g.default.createElement(M.default,{colorName:n.color}),g.default.createElement(E.default,{drivingMode:e.drivingMode,isAutoMode:e.isAutoMode})))}}]),e}(g.default.Component))||r;e.default=C},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o,s=n(3),l=i(s),u=n(0),c=i(u),h=n(1),d=i(h),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),x=n(13),_=i(x),w=n(161),M=i(w),S=n(160),E=i(S),k=(0,b.observer)(r=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:"render",value:function(){var t=this.props,e=t.level,n=t.text,i="ERROR"===e||"FATAL"===e?"alert":"warn",r="alert"===i?E.default:M.default;return y.default.createElement("li",{className:"monitor-item"},y.default.createElement("img",{src:r,className:"icon"}),y.default.createElement("span",{className:(0,_.default)("text",i)},n))}}]),e}(y.default.Component))||r,T=(a=(0,b.inject)("store"))(o=(0,b.observer)(o=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:"render",value:function(){var t=this.props.store.monitor;return y.default.createElement("div",{className:"card"},y.default.createElement("div",{className:"card-header"},y.default.createElement("span",null,"Console")),y.default.createElement("div",{className:"card-content-column"},y.default.createElement("ul",{className:"console"},t.items.map(function(t,e){return y.default.createElement(k,{key:e,text:t.msg,level:t.logLevel})}))))}}]),e}(y.default.Component))||o)||o;e.default=T},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),x=i(b),_=n(77),w=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props,e=t.time,n=t.warning,i="-"===e?e:(0,_.millisecondsToTime)(0|e);return v.default.createElement("div",{className:(0,x.default)({value:!0,warning:n})},i)}}]),e}(v.default.PureComponent),M=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this.props.store.moduleDelay,e=t.keys().sort().map(function(e){var n=t.get(e),i=n.delay>2e3&&"TrafficLight"!==n.name;return v.default.createElement("div",{className:"delay-item",key:"delay_"+e},v.default.createElement("div",{className:"name"},n.name),v.default.createElement(w,{time:n.delay,warning:i}))});return v.default.createElement("div",{className:"delay card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Module Delay")),v.default.createElement("div",{className:"card-content-column"},e))}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(114),x=i(b),_=n(16),w=i(_),M=(r=(0,y.inject)("store"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:"render",value:function(){var t=this,e=this.props.store,n=e.options,i=e.enableHMIButtonsOnly,r=i||n.tasksPanelLocked;return v.default.createElement("div",{className:"others card"},v.default.createElement("div",{className:"card-header"},v.default.createElement("span",null,"Others")),v.default.createElement("div",{className:"card-content-column"},v.default.createElement("button",{disabled:r,onClick:function(){w.default.resetBackend()}},"Reset Backend Data"),v.default.createElement("button",{disabled:r,onClick:function(){w.default.dumpMessages()}},"Dump Message"),v.default.createElement(x.default,{id:"showPNCMonitor",title:"PNC Monitor",isChecked:n.showPNCMonitor,disabled:r,onClick:function(){t.props.store.handleOptionToggle("showPNCMonitor")}}),v.default.createElement(x.default,{id:"toggleSimControl",title:"SimControl",isChecked:n.simControlEnabled,disabled:!1,onClick:function(){w.default.toggleSimControl(!n.simControlEnabled),t.props.store.handleOptionToggle("simControlEnabled")}}),v.default.createElement(x.default,{id:"showVideo",title:"Camera Sensor",isChecked:n.showVideo,disabled:r,onClick:function(){t.props.store.handleOptionToggle("showVideo")}}),v.default.createElement(x.default,{id:"panelLock",title:"Lock Task Panel",isChecked:n.tasksPanelLocked,disabled:!1,onClick:function(){t.props.store.handleOptionToggle("tasksPanelLocked")}})))}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=n(32),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(13),w=i(_),M=n(16),S=i(M),E=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this.props,e=t.name,n=t.commands,i=t.disabled,r=t.extraCommandClass,a=t.extraButtonClass,o=(0,s.default)(n).map(function(t){return b.default.createElement("button",{className:a,disabled:i,key:t,onClick:n[t]},t)}),l=e?b.default.createElement("span",{className:"name"},e+":"):null;return b.default.createElement("div",{className:(0,w.default)("command-group",r)},l,o)}}]),e}(b.default.Component),k=(r=(0,x.inject)("store"))(a=(0,x.observer)(a=function(t){function e(t){(0,h.default)(this,e);var n=(0,m.default)(this,(e.__proto__||(0,u.default)(e)).call(this,t));return n.utterance=window.speechSynthesis?new SpeechSynthesisUtterance:null,n.rtKRecord={Start:function(){S.default.executeToolCommand("rtk_record_replay","start_recorder"),n.speechSynthesis("Start RTK recorder")},Stop:function(){S.default.executeToolCommand("rtk_record_replay","stop_recorder"),n.speechSynthesis("Stop RTK recorder")}},n.rtkReplay={Start:function(){S.default.executeToolCommand("rtk_record_replay","start_player"),n.speechSynthesis("Start RTK replay")},Stop:function(){S.default.executeToolCommand("rtk_record_replay","stop_player"),n.speechSynthesis("Stop RTK replay")}},n.setup={Setup:function(){S.default.executeModeCommand("start"),n.speechSynthesis("Setup")}},n.reset={"Reset All":function(){S.default.executeModeCommand("stop"),n.speechSynthesis("Reset All")}},n.auto={"Start Auto":function(){S.default.changeDrivingMode("COMPLETE_AUTO_DRIVE"),n.speechSynthesis("Start Auto")}},n.version={Version:function(){alert(n.props.store.hmi.dockerImage)}},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:"componentWillUpdate",value:function(){this.utterance&&window.speechSynthesis.cancel()}},{key:"speechSynthesis",value:function(t){this.utterance&&(this.utterance.text=t,window.speechSynthesis.speak(this.utterance))}},{key:"render",value:function(){var t=this.props.store.hmi,e=this.props.store.options.tasksPanelLocked;return b.default.createElement("div",{className:"card"},b.default.createElement("div",{className:"card-header"},b.default.createElement("span",null,"Quick Start")),b.default.createElement("div",{className:"card-content-column"},b.default.createElement(E,{disabled:!1,commands:this.version}),b.default.createElement(E,{disabled:e,commands:this.setup}),b.default.createElement(E,{disabled:e,commands:this.reset}),b.default.createElement(E,{disabled:!t.enableStartAuto||e,commands:this.auto,extraButtonClass:"start-auto-button",extraCommandClass:"start-auto-command"}),t.showRTKCommands&&b.default.createElement(E,{name:"Record",disabled:e,commands:this.rtKRecord}),t.showRTKCommands&&b.default.createElement(E,{name:"Replay",disabled:e,commands:this.rtkReplay})))}}]),e}(b.default.Component))||a)||a;e.default=k},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(203),v=i(g),y=n(202),b=i(y),x=n(201),_=i(x),w=n(200),M=i(w),S=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){return m.default.createElement("div",{className:"tasks"},m.default.createElement(v.default,null),m.default.createElement(b.default,null),m.default.createElement(_.default,null),m.default.createElement(M.default,null))}}]),e}(m.default.Component);e.default=S},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(117),a=i(r),o=n(246),s=i(o),l=n(2),u=i(l),c=n(24),h=i(c),d=function(t){var e=t.image,n=t.style,i=t.className,r=((0,s.default)(t,["image","style","className"]),(0,a.default)({},n||{},{backgroundImage:"url("+e+")",backgroundSize:"cover"})),o=i?i+" dreamview-image":"dreamview-image";return u.default.createElement("div",{className:o,style:r})};d.propTypes={image:h.default.string.isRequired,style:h.default.object},e.default=d},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=n(35),b=(i(y),n(162)),x=i(b),_=n(518),w=(i(_),function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this.props,e=t.height,n=t.extraClasses,i=x.default;return m.default.createElement("div",{className:"loader",style:{height:e}},m.default.createElement("div",{className:(0,v.default)("img-container",n)},m.default.createElement("img",{src:i,alt:"Loader"}),m.default.createElement("div",{className:"status-message"},"Please send car initial position and map data.")))}}]),e}(m.default.Component));e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(15),u=i(l),c=n(489),h=i(c),d=n(490),f=i(d),p=n(59),m={adc:{menuOptionName:"showPositionLocalization",carMaterial:h.default},plannigAdc:{menuOptionName:"showPlanningCar",carMaterial:null}},g=function(){function t(e,n){var i=this;(0,a.default)(this,t),this.mesh=null,this.name=e;var r=m[e];if(!r)return void console.error("Car properties not found for car:",e);(0,p.loadObject)(r.carMaterial,f.default,{x:1,y:1,z:1},function(t){i.mesh=t,i.mesh.rotation.x=Math.PI/2,i.mesh.visible=u.default.options[r.menuOptionName],n.add(i.mesh)})}return(0,s.default)(t,[{key:"update",value:function(t,e){if(this.mesh&&e){var n=m[this.name].menuOptionName;this.mesh.visible=u.default.options[n];var i=t.applyOffset({x:e.positionX,y:e.positionY});null!==i&&(this.mesh.position.set(i.x,i.y,0),this.mesh.rotation.y=e.heading)}}}]),t}();e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=function(){function t(){(0,a.default)(this,t),this.systemName="ENU",this.offset=null}return(0,s.default)(t,[{key:"isInitialized",value:function(){return null!==this.offset}},{key:"initialize",value:function(t,e){this.offset={x:t,y:e},console.log("Offset is set to x:"+t+", y:"+e)}},{key:"setSystem",value:function(t){this.systemName=t}},{key:"applyOffset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?(console.error("Offset is not set."),null):isNaN(this.offset.x)||isNaN(this.offset.y)?(console.error("Offset contains NaN!"),null):isNaN(t.x)||isNaN(t.y)?(console.warn("Point contains NaN!"),null):isNaN(t.z)?new u.Vector2(e?t.x+this.offset.x:t.x-this.offset.x,e?t.y+this.offset.y:t.y-this.offset.y):new u.Vector3(e?t.x+this.offset.x:t.x-this.offset.x,e?t.y+this.offset.y:t.y-this.offset.y,t.z)}},{key:"applyOffsetToArray",value:function(t){var e=this;return t.map(function(t){return e.applyOffset(t)})}}]),t}();e.default=c},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(15),h=i(c),d=n(505),f=i(d),p=n(509),m=i(p),g=n(507),v=i(g),y=n(510),b=i(y),x=n(508),_=i(x),w=n(499),M=i(w),S=n(502),E=i(S),k=n(500),T=i(k),C=n(503),P=i(C),O=n(501),A=i(O),R=n(504),L=i(R),I=n(497),D=i(I),N=n(512),z=i(N),B=n(511),F=i(B),U=n(513),j=i(U),W=n(514),G=i(W),V=n(515),H=i(V),q=n(495),Y=i(q),X=n(496),Z=i(X),K=n(498),Q=i(K),J=n(506),$=i(J),tt=n(77),et=n(31),nt=n(39),it={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},rt={STOP_REASON_HEAD_VEHICLE:L.default,STOP_REASON_DESTINATION:D.default,STOP_REASON_PEDESTRIAN:z.default,STOP_REASON_OBSTACLE:F.default,STOP_REASON_SIGNAL:j.default,STOP_REASON_STOP_SIGN:G.default,STOP_REASON_YIELD_SIGN:H.default,STOP_REASON_CLEAR_ZONE:Y.default,STOP_REASON_CROSSWALK:Z.default,STOP_REASON_EMERGENCY:Q.default,STOP_REASON_NOT_READY:$.default},at=function(){function t(){(0,a.default)(this,t),this.markers={STOP:[],FOLLOW:[],YIELD:[],OVERTAKE:[]},this.nudges=[],this.mainDecision=this.getMainDecision(),this.mainDecisionAddedToScene=!1}return(0,s.default)(t,[{key:"update",value:function(t,e,n){var i=this;this.nudges.forEach(function(t){n.remove(t),t.geometry.dispose(),t.material.dispose()}),this.nudges=[];var r=t.mainStop;if(!h.default.options.showDecisionMain||nt.isEmpty(r))this.mainDecision.visible=!1;else{this.mainDecision.visible=!0,this.mainDecisionAddedToScene||(n.add(this.mainDecision),this.mainDecisionAddedToScene=!0),(0,tt.copyProperty)(this.mainDecision.position,e.applyOffset(new u.Vector3(r.positionX,r.positionY,.2))),this.mainDecision.rotation.set(Math.PI/2,r.heading-Math.PI/2,0);var a=nt.attempt(function(){return r.decision[0].stopReason});if(!nt.isError(a)&&a){var o=null;for(o in rt)this.mainDecision[o].visible=!1;this.mainDecision[a].visible=!0}}var s=t.object;if(h.default.options.showDecisionObstacle&&!nt.isEmpty(s)){for(var l={STOP:0,FOLLOW:0,YIELD:0,OVERTAKE:0},c=0;c=i.markers[a].length?(o=i.getObstacleDecision(a),i.markers[a].push(o),n.add(o)):o=i.markers[a][l[a]];var h=e.applyOffset(new u.Vector3(r.positionX,r.positionY,0));if(null===h)return"continue";if(o.position.set(h.x,h.y,.2),o.rotation.set(Math.PI/2,r.heading-Math.PI/2,0),o.visible=!0,l[a]++,"YIELD"===a||"OVERTAKE"===a){var f=o.connect;f.geometry.vertices[0].set(s[c].positionX-r.positionX,s[c].positionY-r.positionY,0),f.geometry.verticesNeedUpdate=!0,f.geometry.computeLineDistances(),f.geometry.lineDistancesNeedUpdate=!0,f.rotation.set(Math.PI/-2,0,Math.PI/2-r.heading)}}else if("NUDGE"===a){var p=(0,et.drawShapeFromPoints)(e.applyOffsetToArray(r.polygonPoint),new u.MeshBasicMaterial({color:16744192}),!1,2);i.nudges.push(p),n.add(p)}})(f)}}var p=null;for(p in it)(0,tt.hideArrayObjects)(this.markers[p],l[p])}else{var m=null;for(m in it)(0,tt.hideArrayObjects)(this.markers[m])}}},{key:"getMainDecision",value:function(){var t=this.getFence("MAIN_STOP"),e=null;for(e in rt){var n=(0,et.drawImage)(rt[e],1,1,4.1,3.5,0);t.add(n),t[e]=n}return t.visible=!1,t}},{key:"getObstacleDecision",value:function(t){var e=this.getFence(t);if("YIELD"===t||"OVERTAKE"===t){var n=it[t],i=(0,et.drawDashedLineFromPoints)([new u.Vector3(1,1,0),new u.Vector3(0,0,0)],n,2,2,1,30);e.add(i),e.connect=i}return e.visible=!1,e}},{key:"getFence",value:function(t){var e=new u.Object3D;switch(t){case"STOP":var n=(0,et.drawImage)(E.default,11.625,3,0,1.5,0);e.add(n);var i=(0,et.drawImage)(m.default,1,1,3,3.6,0);e.add(i);break;case"FOLLOW":n=(0,et.drawImage)(T.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(v.default,1,1,3,3.6,0),e.add(i);break;case"YIELD":n=(0,et.drawImage)(P.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(b.default,1,1,3,3.6,0),e.add(i);break;case"OVERTAKE":n=(0,et.drawImage)(A.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(_.default,1,1,3,3.6,0),e.add(i);break;case"MAIN_STOP":n=(0,et.drawImage)(M.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(f.default,1,1,3,3.6,0),e.add(i)}return e}}]),t}();e.default=at},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(15),h=i(c),d=n(31),f=function(){function t(){(0,a.default)(this,t),this.circle=null,this.base=null}return(0,s.default)(t,[{key:"update",value:function(t,e,n){if(t.gps&&t.autoDrivingCar){if(!this.circle){var i=new u.MeshBasicMaterial({color:27391,transparent:!1,opacity:.5});this.circle=(0,d.drawCircle)(.2,i),n.add(this.circle)}this.base||(this.base=(0,d.drawSegmentsFromPoints)([new u.Vector3(3.89,-1.05,0),new u.Vector3(3.89,1.06,0),new u.Vector3(-1.04,1.06,0),new u.Vector3(-1.04,-1.05,0),new u.Vector3(3.89,-1.05,0)],27391,2,5),n.add(this.base));var r=h.default.options.showPositionGps,a=e.applyOffset({x:t.gps.positionX,y:t.gps.positionY,z:0});this.circle.position.set(a.x,a.y,a.z),this.circle.visible=r,this.base.position.set(a.x,a.y,a.z),this.base.rotation.set(0,0,t.gps.heading),this.base.visible=r}}}]),t}();e.default=f},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(59),h=n(516),d=i(h),f=n(28),p=i(f),m=function(){function t(){var e=this;(0,a.default)(this,t),this.type="default",this.loadedMap=null,this.updateMap=null,this.mesh=null,this.geometry=null,this.initialized=!1,(0,c.loadTexture)(d.default,function(t){e.geometry=new u.PlaneGeometry(1,1),e.mesh=new u.Mesh(e.geometry,new u.MeshBasicMaterial({map:t}))})}return(0,s.default)(t,[{key:"initialize",value:function(t){return!!this.mesh&&(!(this.loadedMap===this.updateMap&&!this.render(t))&&(this.initialized=!0,!0))}},{key:"update",value:function(t,e,n){var i=this;if(!0===this.initialized&&this.loadedMap!==this.updateMap){var r=this.titleCaseToSnakeCase(this.updateMap),a=window.location,o=a.protocol+"//"+a.hostname+":"+p.default.server.port,s=o+"/assets/map_data/"+r+"/background.jpg";(0,c.loadTexture)(s,function(t){console.log("updating ground image with "+r),i.mesh.material.map=t,i.mesh.type="reflection",i.render(e,r)},function(t){console.log("using grid as ground image..."),(0,c.loadTexture)(d.default,function(t){i.mesh.material.map=t,i.mesh.type="grid",i.render(e)})}),this.loadedMap=this.updateMap}else if(this.initialized&&"grid"===this.mesh.type){var l=t.autoDrivingCar,u=e.applyOffset({x:l.positionX,y:l.positionY});this.mesh.position.set(u.x,u.y,0)}}},{key:"updateImage",value:function(t){this.updateMap=t}},{key:"render",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaults";console.log("rendering ground image...");var n=p.default.ground[e],i=n.xres,r=n.yres,a=n.mpp,o=n.xorigin,s=n.yorigin,l=t.applyOffset({x:o,y:s});return null===l?(console.warn("Cannot find position for ground mesh!"),!1):("defaults"===e&&(l={x:0,y:0}),this.mesh.position.set(l.x,l.y,0),this.mesh.scale.set(i*a,r*a,1),this.mesh.material.needsUpdate=!0,this.mesh.overdraw=!1,!0)}},{key:"titleCaseToSnakeCase",value:function(t){return t.replace(/\s/g,"_").toLowerCase()}}]),t}();e.default=m},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(32),a=i(r),o=n(117),s=i(o),l=n(40),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(12),m=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(p),g=n(15),v=i(g),y=n(16),b=n(31),x=n(491),w=i(x),M=n(492),S=i(M),E=n(493),k=i(E),T=n(494),C=i(T),P=n(59),O={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256},A={x:.006,y:.006,z:.006},R={x:2,y:2,z:2},L=function(){function t(){(0,h.default)(this,t),(0,P.loadObject)(k.default,C.default,A),(0,P.loadObject)(w.default,S.default,R),this.hash=-1,this.data={},this.laneHeading={},this.overlapMap={},this.initialized=!1,this.elementKindsDrawn=""}return(0,f.default)(t,[{key:"diffMapElements",value:function(t,e){var n=this,i={},r=!0;for(var a in t){(function(a){if(!n.shouldDrawThisElementKind(a))return"continue";i[a]=[];for(var o=t[a],s=e[a],l=0;l=2){var i=Math.atan2(e[n-1].y-e[0].y,e[n-1].x-e[0].x);return 1.5*Math.PI+i}return NaN}},{key:"getSignalPositionAndHeading",value:function(t,e){var n=[];if(t.subsignal.forEach(function(t){t.location&&n.push(t.location)}),0===n.length&&(console.warn("Subsignal locations not found, use signal boundary instead."),n.push(t.boundary.point)),0===n.length)return console.warn("Unable to determine signal location, skip."),null;var i=void 0,r=t.overlapId.length;if(r>0){var a=t.overlapId[r-1].id;i=this.laneHeading[this.overlapMap[a]]}if(i||(console.warn("Unable to get traffic light heading, use orthogonal direction of StopLine."),i=this.getHeadingFromStopLine(t)),isNaN(i))return console.error("Error loading traffic light. Unable to determine heading."),null;var o=new m.Vector3(0,0,0);return o.x=_.meanBy(_.values(n),function(t){return t.x}),o.y=_.meanBy(_.values(n),function(t){return t.y}),o=e.applyOffset(o),{pos:o,heading:i}}},{key:"drawStopLine",value:function(t,e,n,i){t.forEach(function(t){t.segment.forEach(function(t){var r=n.applyOffsetToArray(t.lineSegment.point),a=(0,b.drawSegmentsFromPoints)(r,O.PURE_WHITE,5,3,!1);i.add(a),e.push(a)})})}},{key:"addTrafficLight",value:function(t,e,n){var i=[],r=this.getSignalPositionAndHeading(t,e);return r&&(0,P.loadObject)(k.default,C.default,A,function(t){t.rotation.x=Math.PI/2,t.rotation.y=r.heading,t.position.set(r.pos.x,r.pos.y,0),t.matrixAutoUpdate=!1,t.updateMatrix(),n.add(t),i.push(t)}),this.drawStopLine(t.stopLine,i,e,n),i}},{key:"getStopSignPositionAndHeading",value:function(t,e){var n=void 0;if(t.overlapId.length>0){var i=t.overlapId[0].id;n=this.laneHeading[this.overlapMap[i]]}if(n||(console.warn("Unable to get stop sign heading, use orthogonal direction of StopLine."),n=this.getHeadingFromStopLine(t)),isNaN(n))return console.error("Error loading stop sign. Unable to determine heading."),null;var r=t.stopLine[0].segment[0].lineSegment.point[0],a=new m.Vector3(r.x,r.y,0);return a=e.applyOffset(a),{pos:a,heading:n}}},{key:"addStopSign",value:function(t,e,n){var i=[],r=this.getStopSignPositionAndHeading(t,e);return r&&(0,P.loadObject)(w.default,S.default,R,function(t){t.rotation.x=Math.PI/2,t.rotation.y=r.heading+Math.PI/2,t.position.set(r.pos.x,r.pos.y,0),t.matrixAutoUpdate=!1,t.updateMatrix(),n.add(t),i.push(t)}),this.drawStopLine(t.stopLine,i,e,n),i}},{key:"removeDrewObjects",value:function(t,e){t&&t.forEach(function(t){e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()})}},{key:"removeAllElements",value:function(t){this.removeExpiredElements([],t)}},{key:"removeExpiredElements",value:function(t,e){var n=this,i={};for(var r in this.data)!function(r){var a=n.shouldDrawThisElementKind(r);i[r]=[];var o=n.data[r],s=t[r];o.forEach(function(t){a&&s&&s.includes(t.id.id)?i[r].push(t):("overlap"!==r&&n.removeDrewObjects(t.drewObjects,e),"lane"===r&&delete n.laneHeading[t.id.id],"overlap"===r&&delete n.overlapMap[t.id.id])})}(r);this.data=i}},{key:"appendMapData",value:function(t,e,n){var i=["overlap","lane","junction","road","clearArea","signal","stopSign","crosswalk"],r=!0,a=!1,o=void 0;try{for(var l,c=(0,u.default)(i);!(r=(l=c.next()).done);r=!0){var h=l.value;if(t[h]){this.data[h]||(this.data[h]=[]);for(var d=0;d.2&&(v-=.7)})}}))}},{key:"getPredCircle",value:function(){var t=new u.MeshBasicMaterial({color:16777215,transparent:!1,opacity:.5}),e=(0,f.drawCircle)(.2,t);return this.predCircles.push(e),e}}]),t}();e.default=m},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(l),n(15)),c=i(u),h=n(31),d=(n(39),function(){function t(){(0,a.default)(this,t),this.routePaths=[],this.lastRoutingTime=-1}return(0,s.default)(t,[{key:"update",value:function(t,e,n,i){var r=this;this.routePaths.forEach(function(t){t.visible=c.default.options.showRouting}),this.lastRoutingTime!==t&&void 0!==e&&(this.lastRoutingTime=t,this.routePaths.forEach(function(t){i.remove(t),t.material.dispose(),t.geometry.dispose()}),e.forEach(function(t){var e=n.applyOffsetToArray(t.point),a=(0,h.drawThickBandFromPoints)(e,.3,16711680,.6,5);a.visible=c.default.options.showRouting,i.add(a),r.routePaths.push(a)}))}}]),t}());e.default=d},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12);!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(l);n(540);var u=n(528),c=i(u),h=n(28),d=i(h),f=n(15),p=(i(f),n(16)),m=i(p),g=n(31),v=function(){function t(){(0,a.default)(this,t),this.routePoints=[],this.inEditingMode=!1}return(0,s.default)(t,[{key:"isInEditingMode",value:function(){return this.inEditingMode}},{key:"enableEditingMode",value:function(t,e){this.inEditingMode=!0;t.fov=d.default.camera.Map.fov,t.near=d.default.camera.Map.near,t.far=d.default.camera.Map.far,t.updateProjectionMatrix(),m.default.requestMapElementIdsByRadius(this.EDITING_MAP_RADIUS)}},{key:"disableEditingMode",value:function(t){this.inEditingMode=!1,this.removeAllRoutePoints(t)}},{key:"addRoutingPoint",value:function(t,e,n){var i=e.applyOffset({x:t.x,y:t.y}),r=(0,g.drawImage)(c.default,3.5,3.5,i.x,i.y,.3);this.routePoints.push(r),n.add(r)}},{key:"removeLastRoutingPoint",value:function(t){var e=this.routePoints.pop();e&&(t.remove(e),e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose())}},{key:"removeAllRoutePoints",value:function(t){this.routePoints.forEach(function(e){t.remove(e),e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose()}),this.routePoints=[]}},{key:"sendRoutingRequest",value:function(t,e){if(0===this.routePoints.length)return alert("Please provide at least an end point."),!1;var n=this.routePoints.map(function(t){return t.position.z=0,e.applyOffset(t.position,!0)}),i=n.length>1?n[0]:e.applyOffset(t,!0),r=n[n.length-1],a=n.length>1?n.slice(1,-1):[];return m.default.requestRoute(i,a,r),!0}}]),t}();e.default=v,v.prototype.EDITING_MAP_RADIUS=1500},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(39),h={},d=!1,f=new u.FontLoader,p="fonts/gentilis_bold.typeface.json";f.load(p,function(t){h.gentilis_bold=t,d=!0},function(t){console.log(p+t.loaded/t.total*100+"% loaded")},function(t){console.log("An error happened when loading "+p)});var m=function(){function t(){(0,a.default)(this,t),this.charMeshes={},this.charPointers={}}return(0,s.default)(t,[{key:"reset",value:function(){this.charPointers={}}},{key:"composeText",value:function(t){if(!d)return null;for(var e=c.map(t,function(t){return t.charCodeAt(0)-32}),n=new u.Object3D,i=0;i0?this.charMeshes[r][0].clone():this.drawChar3D(t[i]),this.charMeshes[r].push(o)),o.position.set(.4*(i-e.length/2),0,0),this.charPointers[r]++,n.add(o)}return n}},{key:"drawChar3D",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.gentilis_bold,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16771584,a=new u.TextGeometry(t,{font:e,size:n,height:i}),o=new u.MeshBasicMaterial({color:r});return new u.Mesh(a,o)}}]),t}();e.default=m},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=new d.default(t);for(var i in e)n.delete(i);return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(40),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(243),d=i(h),f=n(12),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(f),m=n(28),g=i(m),v=n(16),y=(i(v),n(59)),b=function(){function t(){(0,l.default)(this,t),this.mesh=!0,this.type="tile",this.hash=-1,this.currentTiles={},this.initialized=!1,this.range=g.default.ground.tileRange,this.metadata=null,this.mapId=null,this.mapUrlPrefix=null}return(0,c.default)(t,[{key:"initialize",value:function(t,e){this.metadata={tileLength:e.tile*e.mpp,left:e.left,top:e.top,numCols:e.wnum,numRows:e.hnum,mpp:e.mpp,tile:e.tile,imageUrl:e.image_url},this.mapId=e.mapid,this.mapUrlPrefix=this.metadata.imageUrl?this.metadata.imageUrl+"/"+this.mapId:t+"/map/getMapPic",this.initialized=!0}},{key:"removeDrewObject",value:function(t,e){var n=this.currentTiles[t];n&&(e.remove(n),n.geometry&&n.geometry.dispose(),n.material&&n.material.dispose()),delete this.currentTiles[t]}},{key:"appendTiles",value:function(t,e,n,i,r){var a=this;if(!(e<0||e>this.metadata.numCols||t<0||t>this.metadata.numRows)){var o=this.metadata.imageUrl?this.mapUrlPrefix+"/"+this.metadata.mpp+"_"+t+"_"+e+"_"+this.metadata.tile+".png":this.mapUrlPrefix+"?mapId="+this.mapId+"&i="+t+"&j="+e,s=i.applyOffset({x:this.metadata.left+(t+.5)*this.metadata.tileLength,y:this.metadata.top-(e+.5)*this.metadata.tileLength,z:0});(0,y.loadTexture)(o,function(t){var e=new p.Mesh(new p.PlaneGeometry(1,1),new p.MeshBasicMaterial({map:t}));e.position.set(s.x,s.y,s.z),e.scale.set(a.metadata.tileLength,a.metadata.tileLength,1),e.overdraw=!1,a.currentTiles[n]=e,r.add(e)})}}},{key:"removeExpiredTiles",value:function(t,e){for(var n in this.currentTiles)t.has(n)||this.removeDrewObject(n,e)}},{key:"updateIndex",value:function(t,e,n,i){if(t!==this.hash){this.hash=t,this.removeExpiredTiles(e,i);var a=r(e,this.currentTiles);if(!_.isEmpty(a)||!this.initialized){var s=!0,l=!1,u=void 0;try{for(var c,h=(0,o.default)(a);!(s=(c=h.next()).done);s=!0){var d=c.value;this.currentTiles[d]=null;var f=d.split(","),p=parseInt(f[0]),m=parseInt(f[1]);this.appendTiles(p,m,d,n,i)}}catch(t){l=!0,u=t}finally{try{!s&&h.return&&h.return()}finally{if(l)throw u}}}}}},{key:"update",value:function(t,e,n){if(e.isInitialized()&&this.initialized){for(var i=t.autoDrivingCar.positionX,r=t.autoDrivingCar.positionY,a=Math.floor((i-this.metadata.left)/this.metadata.tileLength),o=Math.floor((this.metadata.top-r)/this.metadata.tileLength),s=new d.default,l="",u=a-this.range;u<=a+this.range;u++)for(var c=o-this.range;c<=o+this.range;c++){var h=u+","+c;s.add(h),l+=h}this.updateIndex(l,s,e,n)}}}]),t}();e.default=b},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!t)return[];for(var n=[],i=0;i0){if(Math.abs(n[n.length-1].x-a.x)+Math.abs(n[n.length-1].y-a.y)0&&n=80;i?e.error=[]:r&&e.error.shift();(0===e.error.length||n!==e.error[e.error.length-1].x)&&e.error.push({x:n,y:t.stationError})}}},{key:"updateSteerCurve",value:function(t,e){var n=e.steeringAngle/e.steeringRatio,i=null;i=Math.abs(Math.tan(n))>1e-4?e.length/Math.tan(n):1e5;var r=e.heading,a=Math.abs(i),o=7200/(2*Math.PI*a)*Math.PI/180,s=null,l=null,u=null,c=null;i>=0?(u=Math.PI/2+r,c=r-Math.PI/2,s=0,l=o):(u=r-Math.PI/2,c=Math.PI/2+r,s=-o,l=0);var h=e.positionX+Math.cos(u)*a,d=e.positionY+Math.sin(u)*a,f=new v.EllipseCurve(h,d,a,a,s,l,!1,c);t.steerCurve=f.getPoints(25)}},{key:"interpolateValueByCurrentTime",value:function(t,e,n){if("timestampSec"===n)return e;var i=t.map(function(t){return t.timestampSec}),r=t.map(function(t){return t[n]});return new v.LinearInterpolant(i,r,1,[]).evaluate(e)[0]}},{key:"updateGraph",value:function(t,e,n,i,r){var a=n.timestampSec,o=t.target.length>0&&a=80;if(o?(t.target=[],t.real=[],t.autoModeZone=[]):s&&(t.target.shift(),t.real.shift(),t.autoModeZone.shift()),0===t.target.length||a!==t.target[t.target.length-1].t){t.plan=e.map(function(t){return{x:t[i],y:t[r]}}),t.target.push({x:this.interpolateValueByCurrentTime(e,a,i),y:this.interpolateValueByCurrentTime(e,a,r),t:a}),t.real.push({x:n[i],y:n[r]});var l="DISENGAGE_NONE"===n.disengageType;t.autoModeZone.push({x:n[i],y:l?n[r]:void 0})}}},{key:"update",value:function(t){var e=t.planningTrajectory,n=t.autoDrivingCar;e&&n&&(this.updateGraph(this.data.speedGraph,e,n,"timestampSec","speed"),this.updateGraph(this.data.accelerationGraph,e,n,"timestampSec","speedAcceleration"),this.updateGraph(this.data.curvatureGraph,e,n,"timestampSec","kappa"),this.updateGraph(this.data.trajectoryGraph,e,n,"positionX","positionY"),this.updateSteerCurve(this.data.trajectoryGraph,n),this.data.trajectoryGraph.pose[0].x=n.positionX,this.data.trajectoryGraph.pose[0].y=n.positionY,this.data.trajectoryGraph.pose[0].rotation=n.heading,this.updateTime(t.planningTime)),t.controlData&&this.updateStationErrorGraph(t.controlData)}}]),t}(),s=a(o.prototype,"lastUpdatedTime",[g.observable],{enumerable:!0,initializer:function(){return null}}),a(o.prototype,"updateTime",[g.action],(0,h.default)(o.prototype,"updateTime"),o.prototype),o);e.default=y},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,m.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,s,l,u,c,h,d,f,p=n(19),m=i(p),g=n(25),v=i(g),y=n(32),b=i(y),x=n(0),_=i(x),w=n(1),M=i(w),S=n(23),E=n(16),k=i(E),T=(o=function(){function t(){(0,_.default)(this,t),this.modes={},r(this,"currentMode",s,this),this.vehicles=[],r(this,"currentVehicle",l,this),this.maps=[],r(this,"currentMap",u,this),r(this,"moduleStatus",c,this),r(this,"hardwareStatus",h,this),r(this,"enableStartAuto",d,this),this.displayName={},r(this,"dockerImage",f,this)}return(0,M.default)(t,[{key:"initialize",value:function(t){var e=this;t.dockerImage&&(this.dockerImage=t.dockerImage),t.modes&&(this.modes=t.modes),this.vehicles=(0,b.default)(t.availableVehicles).sort().map(function(t){return t}),this.maps=(0,b.default)(t.availableMaps).sort().map(function(t){return t}),(0,b.default)(t.modules).forEach(function(n){e.moduleStatus.set(n,!1),e.displayName[n]=t.modules[n].displayName}),(0,b.default)(t.hardware).forEach(function(n){e.hardwareStatus.set(n,"NOT_READY"),e.displayName[n]=t.hardware[n].displayName})}},{key:"updateStatus",value:function(t){if(t.currentMode&&(this.currentMode=t.currentMode),t.currentMap&&(this.currentMap=t.currentMap),t.currentVehicle&&(this.currentVehicle=t.currentVehicle),t.systemStatus){if(t.systemStatus.modules)for(var e in t.systemStatus.modules)this.moduleStatus.set(e,t.systemStatus.modules[e].processStatus.running);if(t.systemStatus.hardware)for(var n in t.systemStatus.hardware)this.hardwareStatus.set(n,t.systemStatus.hardware[n].summary)}}},{key:"update",value:function(t){this.enableStartAuto="READY_TO_ENGAGE"===t.engageAdvice}},{key:"toggleModule",value:function(t){this.moduleStatus.set(t,!this.moduleStatus.get(t));var e=this.moduleStatus.get(t)?"start":"stop";k.default.executeModuleCommand(t,e)}},{key:"showRTKCommands",get:function(){return"RTK Record / Replay"===this.currentMode}},{key:"inNavigationMode",get:function(){return"Navigation"===this.currentMode}}]),t}(),s=a(o.prototype,"currentMode",[S.observable],{enumerable:!0,initializer:function(){return"none"}}),l=a(o.prototype,"currentVehicle",[S.observable],{enumerable:!0,initializer:function(){return"none"}}),u=a(o.prototype,"currentMap",[S.observable],{enumerable:!0,initializer:function(){return"none"}}),c=a(o.prototype,"moduleStatus",[S.observable],{enumerable:!0,initializer:function(){return S.observable.map()}}),h=a(o.prototype,"hardwareStatus",[S.observable],{enumerable:!0,initializer:function(){return S.observable.map()}}),d=a(o.prototype,"enableStartAuto",[S.observable],{enumerable:!0,initializer:function(){return!1}}),f=a(o.prototype,"dockerImage",[S.observable],{enumerable:!0,initializer:function(){return""}}),a(o.prototype,"initialize",[S.action],(0,v.default)(o.prototype,"initialize"),o.prototype),a(o.prototype,"updateStatus",[S.action],(0,v.default)(o.prototype,"updateStatus"),o.prototype),a(o.prototype,"update",[S.action],(0,v.default)(o.prototype,"update"),o.prototype),a(o.prototype,"toggleModule",[S.action],(0,v.default)(o.prototype,"toggleModule"),o.prototype),a(o.prototype,"showRTKCommands",[S.computed],(0,v.default)(o.prototype,"showRTKCommands"),o.prototype),a(o.prototype,"inNavigationMode",[S.computed],(0,v.default)(o.prototype,"inNavigationMode"),o.prototype),o);e.default=T},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,b.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}function o(t){return 10*Math.round(t/10)}function s(t){switch(t){case"DISENGAGE_MANUAL":return"MANUAL";case"DISENGAGE_NONE":return"AUTO";case"DISENGAGE_EMERGENCY":return"DISENGAGED";case"DISENGAGE_AUTO_STEER_ONLY":return"AUTO STEER";case"DISENGAGE_AUTO_SPEED_ONLY":return"AUTO SPEED";case"DISENGAGE_CHASSIS_ERROR":return"CHASSIS ERROR";default:return"?"}}function l(t){return"DISENGAGE_NONE"===t||"DISENGAGE_AUTO_STEER_ONLY"===t||"DISENGAGE_AUTO_SPEED_ONLY"===t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u,c,h,d,f,p,m,g,v,y=n(19),b=i(y),x=n(25),_=i(x),w=n(0),M=i(w),S=n(1),E=i(S),k=n(23),T=(u=function(){function t(){(0,M.default)(this,t),r(this,"throttlePercent",c,this),r(this,"brakePercent",h,this),r(this,"speed",d,this),r(this,"steeringAngle",f,this),r(this,"steeringPercentage",p,this),r(this,"drivingMode",m,this),r(this,"isAutoMode",g,this),r(this,"turnSignal",v,this)}return(0,E.default)(t,[{key:"update",value:function(t){t.autoDrivingCar&&(void 0!==t.autoDrivingCar.throttlePercentage&&(this.throttlePercent=o(t.autoDrivingCar.throttlePercentage)),void 0!==t.autoDrivingCar.brakePercentage&&(this.brakePercent=o(t.autoDrivingCar.brakePercentage)),void 0!==t.autoDrivingCar.speed&&(this.speed=t.autoDrivingCar.speed),void 0===t.autoDrivingCar.steeringPercentage||isNaN(t.autoDrivingCar.steeringPercentage)||(this.steeringPercentage=Math.round(t.autoDrivingCar.steeringPercentage)),void 0===t.autoDrivingCar.steeringAngle||isNaN(t.autoDrivingCar.steeringAngle)||(this.steeringAngle=-Math.round(180*t.autoDrivingCar.steeringAngle/Math.PI)),void 0!==t.autoDrivingCar.disengageType&&(this.drivingMode=s(t.autoDrivingCar.disengageType),this.isAutoMode=l(t.autoDrivingCar.disengageType)),void 0!==t.autoDrivingCar.currentSignal&&(this.turnSignal=t.autoDrivingCar.currentSignal))}}]),t}(),c=a(u.prototype,"throttlePercent",[k.observable],{enumerable:!0,initializer:function(){return 0}}),h=a(u.prototype,"brakePercent",[k.observable],{enumerable:!0,initializer:function(){return 0}}),d=a(u.prototype,"speed",[k.observable],{enumerable:!0,initializer:function(){return 0}}),f=a(u.prototype,"steeringAngle",[k.observable],{enumerable:!0,initializer:function(){return 0}}),p=a(u.prototype,"steeringPercentage",[k.observable],{enumerable:!0,initializer:function(){return 0}}),m=a(u.prototype,"drivingMode",[k.observable],{enumerable:!0,initializer:function(){return"?"}}),g=a(u.prototype,"isAutoMode",[k.observable],{enumerable:!0,initializer:function(){return!1}}),v=a(u.prototype,"turnSignal",[k.observable],{enumerable:!0,initializer:function(){return""}}),a(u.prototype,"update",[k.action],(0,_.default)(u.prototype,"update"),u.prototype),u);e.default=T},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,h.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,s,l,u,c=n(19),h=i(c),d=n(25),f=i(d),p=n(0),m=i(p),g=n(1),v=i(g),y=n(23),b=(o=function(){function t(){(0,m.default)(this,t),r(this,"lastUpdateTimestamp",s,this),r(this,"hasActiveNotification",l,this),r(this,"items",u,this),this.refreshTimer=null}return(0,v.default)(t,[{key:"startRefresh",value:function(){var t=this;this.clearRefreshTimer(),this.refreshTimer=setInterval(function(){Date.now()-t.lastUpdateTimestamp>6e3&&(t.setHasActiveNotification(!1),t.clearRefreshTimer())},500)}},{key:"clearRefreshTimer",value:function(){null!==this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}},{key:"setHasActiveNotification",value:function(t){this.hasActiveNotification=t}},{key:"update",value:function(t){if(t.monitor){var e=t.monitor,n=e.item,i=e.header,r=Math.floor(1e3*i.timestampSec);r>this.lastUpdateTimestamp&&(this.hasActiveNotification=!0,this.lastUpdateTimestamp=r,this.items.replace(n),this.startRefresh())}}},{key:"insert",value:function(t,e,n){var i=[];i.push({msg:e,logLevel:t});for(var r=0;r10||t<-10?100*t/Math.abs(t):t}},{key:"extractDataPoints",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!t)return[];var a=t.map(function(t){return{x:t[e]+r,y:t[n]}});return i&&t.length&&a.push({x:t[0][e],y:t[0][n]}),a}},{key:"updateSLFrame",value:function(t){var e=this.data.slGraph,n=t[0].sampledS;e.mapLowerBound=this.generateDataPoints(n,t[0].mapLowerBound,this.transformMapBound),e.mapUpperBound=this.generateDataPoints(n,t[0].mapUpperBound,this.transformMapBound),e.staticObstacleLowerBound=this.generateDataPoints(n,t[0].staticObstacleLowerBound),e.staticObstacleUpperBound=this.generateDataPoints(n,t[0].staticObstacleUpperBound),e.dynamicObstacleLowerBound=this.generateDataPoints(n,t[0].dynamicObstacleLowerBound),e.dynamicObstacleUpperBound=this.generateDataPoints(n,t[0].dynamicObstacleUpperBound),e.pathLine=this.extractDataPoints(t[0].slPath,"s","l");var i=t[1].aggregatedBoundaryS;e.aggregatedBoundaryLow=this.generateDataPoints(i,t[1].aggregatedBoundaryLow),e.aggregatedBoundaryHigh=this.generateDataPoints(i,t[1].aggregatedBoundaryHigh)}},{key:"updateSTGraph",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value;this.data.stGraph[o.name]={obstaclesBoundary:{}};var s=this.data.stGraph[o.name];if(o.boundary){var l=!0,u=!1,c=void 0;try{for(var h,d=(0,f.default)(o.boundary);!(l=(h=d.next()).done);l=!0){var p=h.value,m=p.type.substring("ST_BOUNDARY_TYPE_".length),g=p.name+"_"+m;s.obstaclesBoundary[g]=this.extractDataPoints(p.point,"t","s",!0)}}catch(t){u=!0,c=t}finally{try{!l&&d.return&&d.return()}finally{if(u)throw c}}}s.curveLine=this.extractDataPoints(o.speedProfile,"t","s"),o.kernelCruiseRef&&(s.kernelCruise=this.generateDataPoints(o.kernelCruiseRef.t,o.kernelCruiseRef.cruiseLineS)),o.kernelFollowRef&&(s.kernelFollow=this.generateDataPoints(o.kernelFollowRef.t,o.kernelFollowRef.followLineS))}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"updateSTSpeedGraph",value:function(t){var e=this,n=!0,i=!1,r=void 0;try{for(var a,o=(0,f.default)(t);!(n=(a=o.next()).done);n=!0){var s=a.value;this.data.stSpeedGraph[s.name]={};var l=this.data.stSpeedGraph[s.name];l.limit=this.extractDataPoints(s.speedLimit,"s","v"),l.planned=this.extractDataPoints(s.speedProfile,"s","v"),s.speedConstraint&&function(){var t=s.speedProfile.map(function(t){return t.t}),n=s.speedProfile.map(function(t){return t.s}),i=new b.LinearInterpolant(t,n,1,[]),r=s.speedConstraint.t.map(function(t){return i.evaluate(t)[0]});l.lowerConstraint=e.generateDataPoints(r,s.speedConstraint.lowerBound),l.upperConstraint=e.generateDataPoints(r,s.speedConstraint.upperBound)}()}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}},{key:"updateSpeed",value:function(t,e){var n=this.data.speedGraph;if(t){var i=!0,r=!1,a=void 0;try{for(var o,s=(0,f.default)(t);!(i=(o=s.next()).done);i=!0){var l=o.value;n[l.name]=this.extractDataPoints(l.speedPoint,"t","v")}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}}e&&(n.finalSpeed=this.extractDataPoints(e,"timestampSec","speed",!1,-this.planningTime))}},{key:"updateAccelerationGraph",value:function(t){var e=this.data.accelerationGraph;t&&(e.acceleration=this.extractDataPoints(t,"timestampSec","speedAcceleration",!1,-this.planningTime))}},{key:"updateThetaGraph",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s="planning_reference_line"===o.name?"ReferenceLine":o.name;this.data.thetaGraph[s]=this.extractDataPoints(o.pathPoint,"s","theta")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"updateKappaGraph",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s="planning_reference_line"===o.name?"ReferenceLine":o.name;this.data.kappaGraph[s]=this.extractDataPoints(o.pathPoint,"s","kappa")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"updateDkappaGraph",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s="planning_reference_line"===o.name?"ReferenceLine":o.name;this.data.dkappaGraph[s]=this.extractDataPoints(o.pathPoint,"s","dkappa")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:"updateLatencyGraph",value:function(t,e){for(var n in this.latencyGraph){var i=this.latencyGraph[n];if(i.length>0){var r=i[0].x,a=i[i.length-1].x,o=t-r;t3e5&&i.shift()}0!==i.length&&i[i.length-1].x===t||i.push({x:t,y:e.planning})}}},{key:"updateDpPolyGraph",value:function(t){var e=this.data.dpPolyGraph;if(t.sampleLayer){e.sampleLayer=[];var n=!0,i=!1,r=void 0;try{for(var a,o=(0,f.default)(t.sampleLayer);!(n=(a=o.next()).done);n=!0){a.value.slPoint.map(function(t){var n=t.s,i=t.l;e.sampleLayer.push({x:n,y:i})})}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}t.minCostPoint&&(e.minCostPoint=this.extractDataPoints(t.minCostPoint,"s","l"))}},{key:"update",value:function(t){var e=t.planningData;if(e){if(this.planningTime===t.planningTime)return;this.data=this.initData(),e.slFrame&&e.slFrame.length>=2&&this.updateSLFrame(e.slFrame),e.stGraph&&(this.updateSTGraph(e.stGraph),this.updateSTSpeedGraph(e.stGraph)),e.speedPlan&&t.planningTrajectory&&this.updateSpeed(e.speedPlan,t.planningTrajectory),t.planningTrajectory&&this.updateAccelerationGraph(t.planningTrajectory),e.path&&(this.updateKappaGraph(e.path),this.updateDkappaGraph(e.path),this.updateThetaGraph(e.path)),e.dpPolyGraph&&this.updateDpPolyGraph(e.dpPolyGraph),t.latency&&this.updateLatencyGraph(t.planningTime,t.latency),this.updatePlanningTime(t.planningTime)}}}]),t}(),s=a(o.prototype,"planningTime",[y.observable],{enumerable:!0,initializer:function(){return null}}),a(o.prototype,"updatePlanningTime",[y.action],(0,h.default)(o.prototype,"updatePlanningTime"),o.prototype),o);e.default=x},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,p.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,s,l,u,c,h,d,f=n(19),p=i(f),m=n(25),g=i(m),v=n(0),y=i(v),b=n(1),x=i(b),_=n(23);n(544);var w=(o=function(){function t(){(0,y.default)(this,t),this.FPS=10,this.msPerFrame=100,this.jobId=null,this.mapId=null,r(this,"numFrames",s,this),r(this,"requestedFrame",l,this),r(this,"retrievedFrame",u,this),r(this,"isPlaying",c,this),r(this,"isSeeking",h,this),r(this,"seekingFrame",d,this)}return(0,x.default)(t,[{key:"setMapId",value:function(t){this.mapId=t}},{key:"setJobId",value:function(t){this.jobId=t}},{key:"setNumFrames",value:function(t){this.numFrames=parseInt(t)}},{key:"setPlayRate",value:function(t){if("number"==typeof t&&t>0){var e=1/this.FPS*1e3;this.msPerFrame=e/t}}},{key:"initialized",value:function(){return this.numFrames&&null!==this.jobId&&null!==this.mapId}},{key:"hasNext",value:function(){return this.initialized()&&this.requestedFrame0&&t<=this.numFrames&&(this.seekingFrame=t,this.requestedFrame=t-1,this.isSeeking=!0)}},{key:"resetFrame",value:function(){this.requestedFrame=0,this.retrievedFrame=0,this.seekingFrame=1}},{key:"shouldProcessFrame",value:function(t){return!(!t||!t.sequenceNum||this.seekingFrame!==t.sequenceNum||!this.isPlaying&&!this.isSeeking)&&(this.retrievedFrame=t.sequenceNum,this.isSeeking=!1,this.seekingFrame++,!0)}},{key:"currentFrame",get:function(){return this.retrievedFrame}},{key:"replayComplete",get:function(){return this.seekingFrame>this.numFrames}}]),t}(),s=a(o.prototype,"numFrames",[_.observable],{enumerable:!0,initializer:function(){return 0}}),l=a(o.prototype,"requestedFrame",[_.observable],{enumerable:!0,initializer:function(){return 0}}),u=a(o.prototype,"retrievedFrame",[_.observable],{enumerable:!0,initializer:function(){return 0}}),c=a(o.prototype,"isPlaying",[_.observable],{enumerable:!0,initializer:function(){return!1}}),h=a(o.prototype,"isSeeking",[_.observable],{enumerable:!0,initializer:function(){return!0}}),d=a(o.prototype,"seekingFrame",[_.observable],{enumerable:!0,initializer:function(){return 1}}),a(o.prototype,"next",[_.action],(0,g.default)(o.prototype,"next"),o.prototype),a(o.prototype,"currentFrame",[_.computed],(0,g.default)(o.prototype,"currentFrame"),o.prototype),a(o.prototype,"replayComplete",[_.computed],(0,g.default)(o.prototype,"replayComplete"),o.prototype),a(o.prototype,"setPlayAction",[_.action],(0,g.default)(o.prototype,"setPlayAction"),o.prototype),a(o.prototype,"seekFrame",[_.action],(0,g.default)(o.prototype,"seekFrame"),o.prototype),a(o.prototype,"resetFrame",[_.action],(0,g.default)(o.prototype,"resetFrame"),o.prototype),a(o.prototype,"shouldProcessFrame",[_.action],(0,g.default)(o.prototype,"shouldProcessFrame"),o.prototype),o);e.default=w},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,c.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,s,l,u=n(19),c=i(u),h=n(25),d=i(h),f=n(0),p=i(f),m=n(1),g=i(m),v=n(23),y=n(35),b=i(y),x=n(58),w=i(x),M=(o=function(){function t(){(0,p.default)(this,t),r(this,"defaultRoutingEndPoint",s,this),r(this,"currentPOI",l,this)}return(0,g.default)(t,[{key:"updateDefaultRoutingEndPoint",value:function(t){if(void 0!==t.poi){this.defaultRoutingEndPoint={};for(var e=0;e150&&console.log("Last sim_world_update took "+(t.timestamp-this.lastUpdateTimestamp)+"ms"),this.lastUpdateTimestamp=t.timestamp,-1!==this.lastSeqNum&&t.world.sequenceNum>this.lastSeqNum+1&&console.debug("Last seq: "+this.lastSeqNum+". New seq: "+t.world.sequenceNum+"."),this.lastSeqNum=t.world.sequenceNum}},{key:"startPlayback",value:function(t){var e=this;clearInterval(this.requestTimer),this.requestTimer=setInterval(function(){e.websocket.readyState===e.websocket.OPEN&&h.default.playback.initialized()&&(e.requestSimulationWorld(h.default.playback.jobId,h.default.playback.next()),h.default.playback.hasNext()||(clearInterval(e.requestTimer),e.requestTimer=null))},t/2),clearInterval(this.processTimer),this.processTimer=setInterval(function(){if(h.default.playback.initialized()){var t=100*h.default.playback.seekingFrame;t in e.frameData&&e.processSimWorld(e.frameData[t]),h.default.playback.replayComplete&&(clearInterval(e.processTimer),e.processTimer=null)}},t)}},{key:"pausePlayback",value:function(){clearInterval(this.requestTimer),clearInterval(this.processTimer),this.requestTimer=null,this.processTimer=null}},{key:"requestGroundMeta",value:function(t){this.websocket.send((0,a.default)({type:"RetrieveGroundMeta",mapId:t}))}},{key:"processSimWorld",value:function(t){var e="string"==typeof t.world?JSON.parse(t.world):t.world;h.default.playback.shouldProcessFrame(e)&&(h.default.updateTimestamp(t.timestamp),f.default.maybeInitializeOffest(e.autoDrivingCar.positionX,e.autoDrivingCar.positionY),f.default.updateWorld(e,t.planningData),h.default.meters.update(e),h.default.monitor.update(e),h.default.trafficSignal.update(e))}},{key:"requstFrameCount",value:function(t){this.websocket.send((0,a.default)({type:"RetrieveFrameCount",jobId:t}))}},{key:"requestSimulationWorld",value:function(t,e){var n=100*e;n in this.frameData?h.default.playback.isSeeking&&this.processSimWorld(this.frameData[n]):this.websocket.send((0,a.default)({type:"RequestSimulationWorld",jobId:t,frameId:e}))}}]),t}();e.default=p},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(60),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(15),h=i(c),d=n(35),f=i(d),p=n(78),m=i(p),g=function(){function t(e){(0,s.default)(this,t),this.serverAddr=e,this.websocket=null,this.worker=new m.default}return(0,u.default)(t,[{key:"initialize",value:function(){var t=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType="arraybuffer"}catch(e){return console.error("Failed to establish a connection: "+e),void setTimeout(function(){t.initialize()},1e3)}this.websocket.onmessage=function(e){t.worker.postMessage({source:"point_cloud",data:e.data})},this.websocket.onclose=function(e){console.log("WebSocket connection closed with code: "+e.code),t.initialize()},this.worker.onmessage=function(t){"PointCloudStatus"===t.data.type?(h.default.setOptionStatus("showPointCloud",t.data.enabled),!1===h.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})):!0===h.default.options.showPointCloud&&void 0!==t.data.num&&f.default.updatePointCloud(t.data)},clearInterval(this.timer),this.timer=setInterval(function(){t.websocket.readyState===t.websocket.OPEN&&!0===h.default.options.showPointCloud&&t.websocket.send((0,a.default)({type:"RequestPointCloud"}))},100)}},{key:"togglePointCloud",value:function(t){this.websocket.send((0,a.default)({type:"TogglePointCloud",enable:t})),!1===h.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})}}]),t}();e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(60),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(15),h=i(c),d=n(35),f=i(d),p=n(58),m=i(p),g=n(78),v=i(g),y=function(){function t(e){(0,s.default)(this,t),this.serverAddr=e,this.websocket=null,this.simWorldUpdatePeriodMs=100,this.simWorldLastUpdateTimestamp=0,this.mapUpdatePeriodMs=1e3,this.mapLastUpdateTimestamp=0,this.updatePOI=!0,this.routingTime=void 0,this.currentMode=null,this.worker=new v.default}return(0,u.default)(t,[{key:"initialize",value:function(){var t=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType="arraybuffer"}catch(e){return console.error("Failed to establish a connection: "+e),void setTimeout(function(){t.initialize()},1e3)}this.websocket.onmessage=function(e){t.worker.postMessage({source:"realtime",data:e.data})},this.worker.onmessage=function(e){var n=e.data;switch(n.type){case"HMIConfig":h.default.hmi.initialize(n.data);break;case"HMIStatus":h.default.hmi.updateStatus(n.data),f.default.updateGroundImage(h.default.hmi.currentMap);break;case"SimControlStatus":h.default.setOptionStatus("simControlEnabled",n.enabled);break;case"SimWorldUpdate":t.checkMessage(n);var i=t.currentMode!==h.default.hmi.currentMode;t.currentMode=h.default.hmi.currentMode,h.default.hmi.inNavigationMode?(m.default.isInitialized()&&m.default.update(n),n.autoDrivingCar.positionX=0,n.autoDrivingCar.positionY=0,n.autoDrivingCar.heading=0,f.default.coordinates.setSystem("FLU"),t.mapUpdatePeriodMs=100):(f.default.coordinates.setSystem("ENU"),t.mapUpdatePeriodMs=1e3),h.default.updateTimestamp(n.timestamp),h.default.updateModuleDelay(n),f.default.maybeInitializeOffest(n.autoDrivingCar.positionX,n.autoDrivingCar.positionY,i),h.default.meters.update(n),h.default.monitor.update(n),h.default.trafficSignal.update(n),h.default.hmi.update(n),f.default.updateWorld(n),t.updateMapIndex(n),h.default.options.showPNCMonitor&&(h.default.planningData.update(n),h.default.controlData.update(n)),t.routingTime!==n.routingTime&&(t.requestRoutePath(),t.routingTime=n.routingTime);break;case"MapElementIds":f.default.updateMapIndex(n.mapHash,n.mapElementIds,n.mapRadius);break;case"DefaultEndPoint":h.default.routeEditingManager.updateDefaultRoutingEndPoint(n);break;case"RoutePath":f.default.updateRouting(n.routingTime,n.routePath)}},this.websocket.onclose=function(e){console.log("WebSocket connection closed, close_code: "+e.code),t.initialize()},clearInterval(this.timer),this.timer=setInterval(function(){if(t.websocket.readyState===t.websocket.OPEN){t.updatePOI&&(t.requestDefaultRoutingEndPoint(),t.updatePOI=!1);var e=h.default.options.showPNCMonitor;t.websocket.send((0,a.default)({type:"RequestSimulationWorld",planning:e}))}},this.simWorldUpdatePeriodMs)}},{key:"updateMapIndex",value:function(t){var e=new Date,n=e-this.mapLastUpdateTimestamp;t.mapHash&&n>=this.mapUpdatePeriodMs&&(f.default.updateMapIndex(t.mapHash,t.mapElementIds,t.mapRadius),this.mapLastUpdateTimestamp=e)}},{key:"checkMessage",value:function(t){var e=(new Date).getTime(),n=e-this.simWorldLastUpdateTimestamp;0!==this.simWorldLastUpdateTimestamp&&n>250&&console.log("Last sim_world_update took "+n+"ms"),this.simWorldLastUpdateTimestamp=e}},{key:"requestMapElementIdsByRadius",value:function(t){this.websocket.send((0,a.default)({type:"RetrieveMapElementIdsByRadius",radius:t}))}},{key:"requestRoute",value:function(t,e,n){this.websocket.send((0,a.default)({type:"SendRoutingRequest",start:t,end:n,waypoint:e}))}},{key:"requestDefaultRoutingEndPoint",value:function(){this.websocket.send((0,a.default)({type:"GetDefaultEndPoint"}))}},{key:"resetBackend",value:function(){this.websocket.send((0,a.default)({type:"Reset"}))}},{key:"dumpMessages",value:function(){this.websocket.send((0,a.default)({type:"Dump"}))}},{key:"changeSetupMode",value:function(t){this.websocket.send((0,a.default)({type:"ChangeMode",new_mode:t}))}},{key:"changeMap",value:function(t){this.websocket.send((0,a.default)({type:"ChangeMap",new_map:t})),this.updatePOI=!0}},{key:"changeVehicle",value:function(t){this.websocket.send((0,a.default)({type:"ChangeVehicle",new_vehicle:t}))}},{key:"executeModeCommand",value:function(t){this.websocket.send((0,a.default)({type:"ExecuteModeCommand",command:t}))}},{key:"executeModuleCommand",value:function(t,e){this.websocket.send((0,a.default)({type:"ExecuteModuleCommand",module:t,command:e}))}},{key:"executeToolCommand",value:function(t,e){this.websocket.send((0,a.default)({type:"ExecuteToolCommand",tool:t,command:e}))}},{key:"changeDrivingMode",value:function(t){this.websocket.send((0,a.default)({type:"ChangeDrivingMode",new_mode:t}))}},{key:"submitDriveEvent",value:function(t,e){this.websocket.send((0,a.default)({type:"SubmitDriveEvent",event_time_ms:t,event_msg:e}))}},{key:"toggleSimControl",value:function(t){this.websocket.send((0,a.default)({type:"ToggleSimControl",enable:t}))}},{key:"requestRoutePath",value:function(){this.websocket.send((0,a.default)({type:"RequestRoutePath"}))}},{key:"publishNavigationInfo",value:function(t){this.websocket.send(t)}}]),t}();e.default=y},function(t,e,n){"use strict";function i(t,e){return(0,o.default)(s,l,[e,t])}function r(t,e){return(0,o.default)(l,s,[t,e])}Object.defineProperty(e,"__esModule",{value:!0}),e.WGS84ToUTM=i,e.UTMToWGS84=r;var a=n(427),o=function(t){return t&&t.__esModule?t:{default:t}}(a),s="+proj=longlat +ellps=WGS84",l="+proj=utm +zone=10 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs "},function(t,e,n){e=t.exports=n(140)(!1),e.push([t.i,'body{margin:0;overflow:hidden;background-color:#14171a!important;font:14px Lucida Grande,Helvetica,Arial,sans-serif;color:#fff}::-webkit-scrollbar{width:4px;height:8px;opacity:.3;background-color:#fff}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#555}::-webkit-scrollbar-thumb{opacity:.8;background-color:#30a5ff}::-webkit-scrollbar-thumb:active{background-color:#30a5ff}.header{display:flex;align-items:center;z-index:100;position:relative;top:0;left:0;height:60px;background:#000;color:#fff;font-size:16px;text-align:left}@media (max-height:800px){.header{height:55px;font-size:14px}}.header .apollo-logo{flex:0 0 auto;top:40px;left:40px;height:40px;width:121px;margin:10px auto 5px 18px}@media (max-height:800px){.header .apollo-logo{top:15px;left:25px;height:25px;width:80px;margin-top:5px}}.header .selector{flex:0 0 auto;position:relative;margin:5px;border:1px solid #383838}.header .selector select{display:block;border:none;padding:.5em 3em .5em .5em;background:#000;color:#fff;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header .selector .arrow{position:absolute;top:0;right:0;width:30px;height:100%;border-left:1px solid #383838;background:#181818;pointer-events:none}.header .selector .arrow:before{position:absolute;top:55%;right:7px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:"";pointer-events:none}.pane-container{position:absolute;width:100%;height:calc(100% - 60px)}@media (max-height:800px){.pane-container{height:calc(100% - 55px)}}.pane-container .left-pane{display:flex;flex-flow:row nowrap;align-items:stretch;position:absolute;bottom:0;top:0;width:100%}.pane-container .left-pane .dreamview-body{display:flex;flex-flow:column nowrap;flex:1 1 auto;overflow:hidden}.pane-container .left-pane .dreamview-body .main-view{flex:0 0 auto;position:relative;min-width:600px}.pane-container .right-pane{position:absolute;right:0;width:100%;height:100%;overflow:hidden}.pane-container .right-pane ::-webkit-scrollbar{width:6px}.pane-container .SplitPane .Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.pane-container .SplitPane .Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.pane-container .SplitPane .Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.pane-container .SplitPane .Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.pane-container .SplitPane .Resizer.disabled{cursor:auto}.pane-container .SplitPane .Resizer.disabled:hover{border-color:transparent}.offlineview{display:flex;flex-flow:column nowrap;position:absolute;width:100%;height:100%}.offlineview .main-view{flex:0 0 auto;position:relative}.dreamview-canvas{z-index:1;position:absolute}.dreamview-canvas .geolocation{z-index:10;position:absolute;bottom:10px;right:10px;color:#fff}.hidden{display:none}.tools{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;margin-top:3px;overflow:hidden}.tools .card{flex:1 1 auto;border-right:3px solid #000;padding:15px 10px 25px 20px;background:#1d2226}@media (max-height:800px){.tools .card{padding:15px 5px 15px 15px}}.tools .card .card-header{width:100%;padding-bottom:15px;font-size:18px}.tools .card .card-header span{width:200px;border-bottom:1px solid #999;padding:10px 10px 10px 0}@media (max-height:800px){.tools .card .card-header{font-size:16px}}.tools .card .card-content-row{display:flex;flex-flow:row wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto;height:85%}.tools .card .card-content-column{display:flex;flex-flow:column nowrap;overflow-x:hidden;overflow-y:auto;height:85%}.tools ul{flex:0 0 auto;margin:0 2px 0 0;padding-left:0;padding-right:5px;background-color:#1d2226;color:#999;list-style:none;cursor:pointer;font-size:12px}.tools ul li{line-height:40px}.tools ul li span{padding-left:20px}.tools ul li:hover{color:#fff;background-color:#2a3238}.tools .switch{display:inline-block;position:relative;width:40px;transform:translate(35%,25%)}.tools .switch .toggle-switch{display:none}.tools .switch .toggle-switch-label{display:block;overflow:hidden;cursor:pointer;height:20px;padding:0;line-height:20px;border:0;background-color:#3f4548;transition:background-color .2s ease-in}.tools .switch .toggle-switch-label:before{content:"";display:block;width:16px;margin:2px;background:#a0a0a0;position:absolute;top:0;bottom:0;right:20px;transition:all .2s ease-in}.tools .switch .toggle-switch:checked+.toggle-switch-label{background-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label,.tools .switch .toggle-switch:checked+.toggle-switch-label:before{border-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label:before{right:0;background-color:#30a5ff}.tools .switch .toggle-switch:disabled+.toggle-switch-label,.tools .switch .toggle-switch:disabled+.toggle-switch-label:before{cursor:not-allowed}.tools .tool-view-menu{display:flex;flex-flow:row nowrap;align-items:stretch;flex:2 1 auto;z-index:10!important;margin-right:3px;overflow-y:hidden;overflow-x:auto;background:#1d2226;font-size:14px;color:#fff;text-align:left;white-space:nowrap}.tools .tool-view-menu .summary{line-height:50px}@media (max-height:800px){.tools .tool-view-menu .summary{line-height:25px}}.tools .tool-view-menu .summary img{position:relative;width:30px;height:30px;transform:translate(-30%,25%)}@media (max-height:800px){.tools .tool-view-menu .summary img{width:20px;height:20px;transform:translate(-50%,10%)}}.tools .tool-view-menu .summary span{padding-left:10px}.tools .tool-view-menu input[type=radio]{display:none}.tools .tool-view-menu .radio-selector-label{display:inline-block;position:relative;transform:translate(65%,30%);box-sizing:border-box;-webkit-box-sizing:border-box;width:25px;height:25px;margin-right:6px;border-radius:50%;-webkit-border-radius:50%;background-color:#a0a0a0;box-shadow:inset 1px 0 #a0a0a0;border:7px solid #3f4548}.tools .tool-view-menu input[type=radio]:checked+.radio-selector-label{border:7px solid #0e3d62;background-color:#30a5ff}.tools .console{z-index:10;position:relative;min-width:230px;margin:0;border:none;padding:0;overflow-y:auto;overflow-x:hidden}.tools .console .monitor-item{display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default}.tools .console .monitor-item .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.tools .console .monitor-item .icon{height:15px;width:15px}}.tools .console .monitor-item .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.tools .console .monitor-item .alert{color:#d7466f}.tools .console .monitor-item .warn{color:#a3842d}.tools .poi-button{min-width:250px}.side-bar{display:flex;flex-direction:column;flex:0 0 auto;z-index:100;background:#1d2226;border-right:3px solid #000;overflow-y:auto;overflow-x:hidden}.side-bar .main-panel{margin-bottom:auto}.side-bar button:focus{outline:0}.side-bar .button{display:block;width:90px;border:none;padding:20px 10px;font-size:14px;text-align:center;background:#1d2226;color:#fff;opacity:.6;cursor:pointer}@media (max-height:800px){.side-bar .button{font-size:12px;width:80px;padding-top:10px}}.side-bar .button .icon{width:40px;height:40px;margin:auto}@media (max-height:800px){.side-bar .button .icon{width:30px;height:30px}}.side-bar .button .label{padding-top:10px}@media (max-height:800px){.side-bar .button .label{padding-top:4px}}.side-bar .button:first-child{padding-top:25px}@media (max-height:800px){.side-bar .button:first-child{padding-top:10px}}.side-bar .button:disabled{color:#414141;cursor:not-allowed}.side-bar .button:disabled .icon{opacity:.2}.side-bar .button-active{background:#2a3238;opacity:1;color:#fff}.side-bar .sub-button{display:block;width:90px;height:80px;border:none;padding:20px;font-size:14px;text-align:center;background:#3e4041;color:#999;cursor:pointer}@media (max-height:800px){.side-bar .sub-button{font-size:12px;width:80px;height:60px}}.side-bar .sub-button:disabled{cursor:not-allowed;opacity:.3}.side-bar .sub-button-active{background:#30a5ff;color:#fff}.status-bar{z-index:10;position:absolute;top:0;left:0;width:100%}.status-bar .auto-meter{position:absolute;width:224px;height:112px;top:10px;right:20px;background:rgba(0,0,0,.8)}.status-bar .auto-meter .speed-read{position:absolute;top:27px;left:15px;font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .auto-meter .speed-unit{position:absolute;top:66px;left:17px;color:#fff;font-size:15px}.status-bar .auto-meter .brake-panel{position:absolute;top:21px;right:2px}.status-bar .auto-meter .throttle-panel{position:absolute;top:61px;right:2px}.status-bar .auto-meter .meter-container .meter-label{font-size:13px;color:#fff}.status-bar .auto-meter .meter-container .meter-head{display:inline-block;position:absolute;margin:5px 0 0;border-width:4px;border-style:solid}.status-bar .auto-meter .meter-container .meter-background{position:relative;display:block;height:2px;width:120px;margin:8px}.status-bar .auto-meter .meter-container .meter-background span{position:relative;overflow:hidden;display:block;height:100%}.status-bar .wheel-panel{display:flex;flex-direction:row;justify-content:left;align-items:center;position:absolute;top:128px;right:20px;width:187px;height:92px;padding:10px 22px 10px 15px;background:rgba(0,0,0,.8)}.status-bar .wheel-panel .steerangle-read{font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .wheel-panel .steerangle-unit{padding:20px 10px 0 3px;color:#fff;font-size:13px}.status-bar .wheel-panel .left-arrow{position:absolute;top:45px;right:115px;width:0;height:0;border-style:solid;border-width:12px 15px 12px 0;border-color:transparent}.status-bar .wheel-panel .right-arrow{position:absolute;top:45px;right:15px;width:0;height:0;border-style:solid;border-width:12px 0 12px 15px;border-color:transparent transparent transparent #30435e}.status-bar .wheel-panel .wheel{position:absolute;top:15px;right:33px}.status-bar .wheel-panel .wheel-background{stroke-width:3px;stroke:#006aff}.status-bar .wheel-panel .wheel-arm{stroke-width:3px;stroke:#006aff;fill:#006aff}.status-bar .traffic-light-and-driving-mode{position:absolute;top:246px;right:20px;width:224px;height:35px;font-size:14px}.status-bar .traffic-light-and-driving-mode .traffic-light{position:absolute;width:116px;height:35px;background:rgba(0,0,0,.8)}.status-bar .traffic-light-and-driving-mode .traffic-light .symbol{position:relative;top:4px;left:4px;width:28px;height:28px}.status-bar .traffic-light-and-driving-mode .traffic-light .text{position:absolute;top:10px;right:8px;color:#fff}.status-bar .traffic-light-and-driving-mode .driving-mode{position:absolute;top:0;right:0;width:105px;height:35px}.status-bar .traffic-light-and-driving-mode .driving-mode .text{position:absolute;top:50%;left:50%;float:right;transform:translate(-50%,-50%);text-align:center}.status-bar .traffic-light-and-driving-mode .auto-mode{background:linear-gradient(90deg,rgba(17,30,48,.8),rgba(7,42,94,.8));border-right:1px solid #006aff;color:#006aff}.status-bar .traffic-light-and-driving-mode .manual-mode{background:linear-gradient(90deg,rgba(30,17,17,.8),rgba(71,36,36,.8));color:#b43131;border-right:1px solid #b43131}.status-bar .notification-warn{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #a3842d;background-color:rgba(52,39,5,.3)}.status-bar .notification-warn .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.status-bar .notification-warn .icon{height:15px;width:15px}}.status-bar .notification-warn .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.status-bar .notification-warn .alert{color:#d7466f}.status-bar .notification-warn .warn{color:#a3842d}.status-bar .notification-alert{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #d7466f;background-color:rgba(74,5,24,.3)}.status-bar .notification-alert .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.status-bar .notification-alert .icon{height:15px;width:15px}}.status-bar .notification-alert .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.status-bar .notification-alert .alert{color:#d7466f}.status-bar .notification-alert .warn{color:#a3842d}.tasks{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.tasks .command-group{display:flex;flex-flow:row nowrap;justify-content:flex-start;flex:1 1 0;min-height:45px;min-width:130px}.tasks .command-group .name{width:40px;padding:15px}.tasks .start-auto-command{flex:2 2 0}.tasks .start-auto-command .start-auto-button{max-height:unset}.tasks .others{min-width:165px;max-width:260px}.tasks .delay{min-width:265px;line-height:26px}.tasks .delay .delay-item{position:relative;margin:0 10px;font-size:16px}.tasks .delay .delay-item .name{display:inline-block;min-width:140px;color:#1c9063}.tasks .delay .delay-item .value{display:inline-block;position:absolute;right:0;min-width:70px;text-align:right}.tasks .delay .delay-item .warning{color:#b43131}.tasks button{flex:1 1 0;margin:5px;border:0;min-width:75px;min-height:40px;max-height:60px;color:#999;border-bottom:2px solid #1c9063;background:linear-gradient(#000,#111f1d);outline:none;cursor:pointer}.tasks button:hover{color:#fff;background:#151e1b}.tasks button:active{background:rgba(35,51,45,.6)}.tasks button:disabled{color:#999;border-color:#555;background:linear-gradient(rgba(0,0,0,.8),rgba(9,17,16,.8));cursor:not-allowed}.tasks .disabled{cursor:not-allowed}.module-controller{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow:hidden}.module-controller .controller{min-width:180px}.module-controller .modules-container{flex-flow:column wrap}.module-controller .status-display{min-width:250px;padding:5px 20px 5px 5px}.module-controller .status-display .name{display:inline-block;padding:10px;min-width:80px}.module-controller .status-display .status{display:inline-block;position:relative;width:130px;padding:10px;background:#000;white-space:nowrap}.module-controller .status-display .status .status-icon{position:absolute;right:10px;width:15px;height:15px;background-color:#b43131}.route-editing-bar{z-index:10;position:absolute;top:0;left:0;right:0;min-height:90px;border-bottom:3px solid #000;padding-left:10px;background:#1d2226}@media (max-height:800px){.route-editing-bar{min-height:60px}}.route-editing-bar .editing-panel{display:flex;justify-content:center;align-items:center;overflow:hidden;white-space:nowrap}.route-editing-bar .editing-panel .button{height:90px;border:none;padding:10px 15px;background:#1d2226;outline:none;color:#999}@media (max-height:800px){.route-editing-bar .editing-panel .button{height:60px;padding:5px 10px}}.route-editing-bar .editing-panel .button img{display:block;top:23px;margin:15px auto}@media (max-height:800px){.route-editing-bar .editing-panel .button img{top:13px;margin:7px auto}}.route-editing-bar .editing-panel .button span{font-family:PingFangSC-Light;font-size:14px;color:#d8d8d8;text-align:center}@media (max-height:800px){.route-editing-bar .editing-panel .button span{font-size:12px}}.route-editing-bar .editing-panel .button:hover{background:#2a3238}.route-editing-bar .editing-panel .active{color:#fff;background:#2a3238}.route-editing-bar .editing-panel .editing-tip{height:90px;width:90px;margin-left:auto;border:none;color:#d8d8d8;font-size:35px}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip{height:60px;width:60px;font-size:20px}}.route-editing-bar .editing-panel .editing-tip p{position:absolute;top:120%;right:15px;width:400px;border-radius:3px;padding:20px;background-color:#fff;color:#999;font-size:14px;text-align:left;white-space:pre-wrap}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip p{right:5px}}.route-editing-bar .editing-panel .editing-tip p:before{position:absolute;top:-20px;right:13px;content:"";border-style:solid;border-width:0 20px 20px;border-color:transparent transparent #fff}@-moz-document url-prefix(){.route-editing-bar .editing-panel .editing-tip p:before{top:-38px}}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip p:before{right:8px}}.data-recorder{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.data-recorder .drive-event-card table{width:100%;text-align:center}.data-recorder .drive-event-card .drive-event-msg{width:100%}.data-recorder .drive-event-card .toolbar button{width:200px}.loader{flex:0 0 auto;position:relative;width:100%;height:100%;background-color:#000c17}.loader .img-container{position:relative;top:50%;left:50%;width:40%;transform:translate(-50%,-50%)}.loader .img-container img{width:100%;height:auto}.loader .img-container .status-message{margin-top:10px;font-size:18px;font-size:1.7vw;color:#fff;text-align:center;animation-name:flash;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running}@keyframes flash{0%{color:#fff}to{color:#000c17}}.loader .offline-loader{width:60%;max-width:650px}.loader .offline-loader .status-message{position:relative;top:-70px;top:-4.5vw;font-size:3vw}.video{z-index:1;position:absolute;top:0;left:0}.video img{position:relative;min-width:100px;min-height:20px;max-width:380px;max-height:300px;padding:1px;border:1px solid #383838}@media (max-height:800px){.video img{max-width:300px;max-height:200px}}.dashcam-player{z-index:1;position:absolute;top:0;left:0;color:#fff}.dashcam-player video{max-width:380px;max-height:300px}@media (max-height:800px){.dashcam-player video{max-width:300px;max-height:200px}}.dashcam-player .controls{display:flex;justify-content:flex-end;z-index:10;position:absolute;right:0}.dashcam-player .controls button{width:27px;height:27px;border:none;background-color:#000;opacity:.6;color:#fff}.dashcam-player .controls button img{width:15px}.dashcam-player .controls button:hover{opacity:.9}.dashcam-player .controls .close{font-size:20px}.dashcam-player .controls .syncup{padding-top:.5em}.pnc-monitor{height:100%;border:1px solid #000;box-sizing:border-box;background-color:#1d2226;overflow:auto}.pnc-monitor .scatter-graph{margin:0;border:1px #000;border-style:solid none}.pnc-monitor .react-tabs__tab-list{display:table;width:100%;margin:0;border-bottom:1px solid #000;padding:0}.pnc-monitor .react-tabs__tab{display:table-cell;position:relative;border:1px solid transparent;border-bottom:none;padding:6px 12px;background:#1d2226;color:#999;list-style:none;cursor:pointer}.pnc-monitor .react-tabs__tab--selected{background:#2a3238;color:#fff}.pnc-monitor .react-tabs__tab-panel{display:none}.pnc-monitor .react-tabs__tab-panel--selected{display:block}.navigation-view{z-index:20;position:relative}.navigation-view #map_canvas{width:100%;height:100%;background:rgba(0,0,0,.8)}.navigation-view .window-resize-control{position:absolute;bottom:0;right:0;width:30px;height:30px}',""])},function(t,e,n){e=t.exports=n(140)(!1),e.push([t.i,'.playback-controls{z-index:100;position:absolute;width:100%;height:40px;bottom:0;background:#1d2226;font-size:16px;min-width:550px}@media (max-height:800px){.playback-controls{font-size:14px}}.playback-controls .icon{display:inline-block;width:20px;height:20px;padding:10px;cursor:pointer}.playback-controls .icon .play{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#1d2226}.playback-controls .icon .pause,.playback-controls .icon .replay{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#006aff}.playback-controls .icon .replay{top:2px}.playback-controls .icon .exit-fullscreen,.playback-controls .icon .fullscreen{stroke-linejoin:round;stroke-width:10px;stroke:#006aff;fill:#1d2226}.playback-controls .left-controls{display:inline-block;float:left}.playback-controls .right-controls{display:inline-block;float:right}.playback-controls .rate-selector{position:absolute;left:40px}.playback-controls .rate-selector select{display:block;border:none;padding:11px 23px 0 5px;color:#fff;background:#1d2226;outline:none;cursor:pointer;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.playback-controls .rate-selector .arrow{position:absolute;top:5px;right:0;width:10px;height:100%;pointer-events:none}.playback-controls .rate-selector .arrow:before{position:absolute;top:16px;right:1px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:"";pointer-events:none}.playback-controls .time-controls{position:absolute;min-width:300px;height:100%;left:125px;right:50px}.playback-controls .time-controls .rangeslider{position:absolute;top:7px;left:10px;right:115px;margin:10px 0;height:7px;border-radius:10px;background:#2d3b50;-ms-touch-action:none;touch-action:none}.playback-controls .time-controls .rangeslider .rangeslider__fill{display:block;height:100%;border-radius:10px;background-color:#006aff;background:#006aff}.playback-controls .time-controls .rangeslider .rangeslider__handle{display:inline-block;position:absolute;height:16px;width:16px;top:50%;transform:translate3d(-50%,-50%,0);border:1px solid #006aff;border-radius:100%;background:#006aff;cursor:pointer;box-shadow:none}.playback-controls .time-controls .time-display{position:absolute;top:12px;right:0;color:#fff}',""])},function(t,e,n){t.exports={default:n(297),__esModule:!0}},function(t,e,n){t.exports={default:n(299),__esModule:!0}},function(t,e,n){t.exports={default:n(301),__esModule:!0}},function(t,e,n){t.exports={default:n(303),__esModule:!0}},function(t,e,n){t.exports={default:n(308),__esModule:!0}},function(t,e,n){t.exports={default:n(309),__esModule:!0}},function(t,e,n){t.exports={default:n(310),__esModule:!0}},function(t,e,n){t.exports={default:n(311),__esModule:!0}},function(t,e,n){t.exports={default:n(312),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(238),a=i(r),o=n(40),s=i(o);e.default=function(){function t(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,l=(0,s.default)(t);!(i=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,a.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){/*! * Bowser - a browser detector * https://github.com/ded/bowser * MIT License | (c) Dustin Diaz 2015 */ -!function(e,i,r){void 0!==t&&t.exports?t.exports=r():n(543)("bowser",r)}(0,0,function(){function t(t){function e(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function n(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var i,r=e(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(t),s=!a&&/android/i.test(t),l=/nexus\s*[0-6]\s*/i.test(t),u=!l&&/nexus\s*[0-9]+/i.test(t),c=/CrOS/.test(t),h=/silk/i.test(t),d=/sailfish/i.test(t),f=/tizen/i.test(t),p=/(web|hpw)os/i.test(t),m=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),v=!r&&!h&&/macintosh/i.test(t),y=!s&&!d&&!f&&!p&&/linux/i.test(t),b=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),x=e(/version\/(\d+(\.\d+)?)/i),_=/tablet/i.test(t)&&!/tablet pc/i.test(t),w=!_&&/[^-]mobi/i.test(t),M=/xbox/i.test(t);/opera/i.test(t)?i={name:"Opera",opera:o,version:x||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:o,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||x}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:o,version:x||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:o,version:x||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:o,version:x||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:o,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:o,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:o,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:o,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:o,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:o,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:o},b?(i.msedge=o,i.version=b):(i.msie=o,i.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:o,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?i={name:"Chrome",osname:"Chrome OS",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:o,version:b}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:o,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||x}:d?i={name:"Sailfish",osname:"Sailfish OS",sailfish:o,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:o,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=o,i.osname="Firefox OS")):h?i={name:"Amazon Silk",silk:o,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:o,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:o,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:o,version:x||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:p?(i={name:"WebOS",osname:"WebOS",webos:o,version:x||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=o)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:o,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:f?i={name:"Tizen",osname:"Tizen",tizen:o,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||x}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:o,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||x}:/chromium/i.test(t)?i={name:"Chromium",chromium:o,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||x}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?i={name:"Android",version:x}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:o},x&&(i.version=x)):r?(i={name:"iphone"==r?"iPhone":"ipad"==r?"iPad":"iPod"},x&&(i.version=x)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:o,version:e(/googlebot\/(\d+(\.\d+))/i)||x}:{name:e(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=o):(i.name=i.name||"Webkit",i.webkit=o),!i.version&&x&&(i.version=x)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=o,i.version=i.version||e(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!s&&!i.silk?!i.windowsphone&&r?(i[r]=o,i.ios=o,i.osname="iOS"):v?(i.mac=o,i.osname="macOS"):M?(i.xbox=o,i.osname="Xbox"):g?(i.windows=o,i.osname="Windows"):y&&(i.linux=o,i.osname="Linux"):(i.android=o,i.osname="Android");var S="";i.windows?S=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?S=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?(S=e(/Mac OS X (\d+([_\.\s]\d+)*)/i),S=S.replace(/[_\s]/g,".")):r?(S=e(/os (\d+([_\s]\d+)*) like mac os x/i),S=S.replace(/[_\s]/g,".")):s?S=e(/android[ \/-](\d+(\.\d+)*)/i):i.webos?S=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?S=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?S=e(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(S=e(/tizen[\/\s](\d+(\.\d+)*)/i)),S&&(i.osversion=S);var E=!i.windows&&S.split(".")[0];return _||u||"ipad"==r||s&&(3==E||E>=4&&!w)||i.silk?i.tablet=o:(w||"iphone"==r||"ipod"==r||s||l||i.blackberry||i.webos||i.bada)&&(i.mobile=o),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=o:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=o:i.x=o,i}function e(t){return t.split(".").length}function n(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(e,n,r){var a=s;"string"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(a=t(r));var o=""+a.version;for(var l in e)if(e.hasOwnProperty(l)&&a[l]){if("string"!=typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return i([o,e[l]])<0}return n}function a(t,e,n){return!r(t,e,n)}var o=!0,s=t("undefined"!=typeof navigator?navigator.userAgent||"":"");return s.test=function(t){for(var e=0;e0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&r>0)&&(g+=r));return a=h.getPixelForValue(g),o=h.getPixelForValue(g+f),s=(o-a)/2,{size:s,base:a,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,n){var i,r,o,s,l,u,c=this,h=n.scale.options,d=c.getStackIndex(t),f=n.pixels,p=f[e],m=f.length,g=n.start,v=n.end;return 1===m?(i=p>g?p-g:v-p,r=p0&&(i=(p-f[e-1])/2,e===m-1&&(r=i)),e');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[i],l=s&&s.custom||{},u=a.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,c.borderWidth),hidden:isNaN(o.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0);var m=p+f,g={x:Math.cos(p),y:Math.sin(p)},v={x:Math.cos(m),y:Math.sin(m)},y=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,b=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,x=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,_=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,w=d/100,M={x:x?-1:Math.min(g.x*(g.x<0?1:w),v.x*(v.x<0?1:w)),y:_?-1:Math.min(g.y*(g.y<0?1:w),v.y*(v.y<0?1:w))},S={x:y?1:Math.max(g.x*(g.x>0?1:w),v.x*(v.x>0?1:w)),y:b?1:Math.max(g.y*(g.y>0?1:w),v.y*(v.y>0?1:w))},E={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(s/E.width,l/E.height),c={x:-.5*(S.x+M.x),y:-.5*(S.y+M.y)}}n.borderWidth=e.getMaxBorderWidth(h.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,h.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),a.each(h.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,r=i.chart,o=r.chartArea,s=r.options,l=s.animation,u=(o.left+o.right)/2,c=(o.top+o.bottom)/2,h=s.rotation,d=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,g=n&&l.animateScale?0:i.outerRadius,v=a.valueAtIndexOrDefault;a.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+r.offsetX,y:c+r.offsetY,startAngle:h,endAngle:d,circumference:p,outerRadius:g,innerRadius:m,label:v(f.label,e,r.data.labels[e])}});var y=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(y.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return a.each(n.data,function(n,r){t=e.data[r],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,r=this.index,a=t.length,o=0;oi?e:i,i=n>i?n:i;return i}})}},function(t,e,n){"use strict";var i=n(9),r=n(33),a=n(6);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),t.exports=function(t){function e(t,e){return a.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(t){var n,i,r,o=this,s=o.getMeta(),l=s.dataset,u=s.data||[],c=o.chart.options,h=c.elements.line,d=o.getScaleForId(s.yAxisID),f=o.getDataset(),p=e(f,c);for(p&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=d,l._datasetIndex=o.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:r.tension?r.tension:a.valueOrDefault(f.lineTension,h.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||h.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||h.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||h.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||h.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||h.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||h.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||h.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:h.fill,steppedLine:r.steppedLine?r.steppedLine:a.valueOrDefault(f.steppedLine,h.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:a.valueOrDefault(f.cubicInterpolationMode,h.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[i],l=s.custom||{},u=a.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,c.borderWidth),hidden:isNaN(o.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e,n){"use strict";var i=n(9),r=n(33),a=n(6);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),t.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,linkScales:a.noop,update:function(t){var e=this,n=e.getMeta(),i=n.dataset,r=n.data,o=i.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),a.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:r,_loop:!0,_model:{tension:o.tension?o.tension:a.valueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),a.each(r,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,r=t.custom||{},o=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),a.extend(t,{_datasetIndex:i.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:r.tension?r.tension:a.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:r.radius?r.radius:a.valueAtIndexOrDefault(o.pointRadius,e,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:a.valueAtIndexOrDefault(o.pointBackgroundColor,e,l.backgroundColor),borderColor:r.borderColor?r.borderColor:a.valueAtIndexOrDefault(o.pointBorderColor,e,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:a.valueAtIndexOrDefault(o.pointBorderWidth,e,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:a.valueAtIndexOrDefault(o.pointStyle,e,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:a.valueAtIndexOrDefault(o.pointHitRadius,e,l.hitRadius)}}),t._model.skip=r.skip?r.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();a.each(e.data,function(n,i){var r=n._model,o=a.splineCurve(a.previousItem(e.data,i,!0)._model,r,a.nextItem(e.data,i,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),r.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),r.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),r.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model;r.radius=n.hoverRadius?n.hoverRadius:a.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:a.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,a.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:a.valueAtIndexOrDefault(e.pointHoverBorderColor,i,a.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:a.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,r.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model,o=this.chart.options.elements.point;r.radius=n.radius?n.radius:a.valueAtIndexOrDefault(e.pointRadius,i,o.radius),r.backgroundColor=n.backgroundColor?n.backgroundColor:a.valueAtIndexOrDefault(e.pointBackgroundColor,i,o.backgroundColor),r.borderColor=n.borderColor?n.borderColor:a.valueAtIndexOrDefault(e.pointBorderColor,i,o.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:a.valueAtIndexOrDefault(e.pointBorderWidth,i,o.borderWidth)}})}},function(t,e,n){"use strict";n(9)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),t.exports=function(t){t.controllers.scatter=t.controllers.line}},function(t,e,n){"use strict";var i=n(9),r=n(20),a=n(6);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:a.noop,onComplete:a.noop}}),t.exports=function(t){t.Animation=r.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var r,a,o=this.animations;for(e.chart=t,i||(t.animating=!0),r=0,a=o.length;r1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,r=0;r=e.numSteps?(a.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(r,1)):++r}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},function(t,e,n){"use strict";var i=n(9),r=n(6),a=n(119),o=n(120);t.exports=function(t){function e(t){t=t||{};var e=t.data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=r.configMerge(i.global,i[t.type],t.options||{}),t}function n(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function s(t){return"top"===t||"bottom"===t}var l=t.plugins;t.types={},t.instances={},t.controllers={},r.extend(t.prototype,{construct:function(n,i){var a=this;i=e(i);var s=o.acquireContext(n,i),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(a.id=r.uid(),a.ctx=s,a.canvas=l,a.config=i,a.width=c,a.height=u,a.aspectRatio=u?c/u:null,a.options=i.options,a._bufferedRender=!1,a.chart=a,a.controller=a,t.instances[a.id]=a,Object.defineProperty(a,"data",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),!s||!l)return void console.error("Failed to create chart: can't acquire context from the given item");a.initialize(),a.update()},initialize:function(){var t=this;return l.notify(t,"beforeInit"),r.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return r.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(r.getMaximumWidth(i))),s=Math.max(0,Math.floor(a?o/a:r.getMaximumHeight(i)));if((e.width!==o||e.height!==s)&&(i.width=e.width=o,i.height=e.height=s,i.style.width=o+"px",i.style.height=s+"px",r.retinaScale(e,n.devicePixelRatio),!t)){var u={width:o,height:s};l.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;r.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),r.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,i=e.scales={},a=[];n.scales&&(a=a.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),n.scale&&a.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),r.each(a,function(n){var a=n.options,o=r.valueOrDefault(a.type,n.dtype),l=t.scaleService.getScaleConstructor(o);if(l){s(a.position)!==s(n.dposition)&&(a.position=n.dposition);var u=new l({id:a.id,options:a,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return r.each(e.data.datasets,function(r,a){var o=e.getDatasetMeta(a),s=r.type||e.config.type;if(o.type&&o.type!==s&&(e.destroyDatasetMeta(a),o=e.getDatasetMeta(a)),o.type=s,n.push(o.type),o.controller)o.controller.updateIndex(a);else{var l=t.controllers[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(e,a),i.push(o.controller)}},e),i},resetElements:function(){var t=this;r.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n(e),!1!==l.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var i=e.buildOrUpdateControllers();r.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()},e),e.updateLayout(),r.each(i,function(t){t.reset()}),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],l.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==l.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),l.notify(e,"afterScaleUpdate"),l.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==l.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),r={meta:i,index:t,easingValue:e};!1!==l.notify(n,"beforeDatasetDraw",[r])&&(i.controller.draw(e),l.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(t){var e=this,n=e.tooltip,i={tooltip:n,easingValue:t};!1!==l.notify(e,"beforeTooltipDraw",[i])&&(n.draw(),l.notify(e,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return a.modes.single(this,t)},getElementsAtEvent:function(t){return a.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return a.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=a.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return a.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(r.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),r=n.getDataset().data||[],a=i.data;for(t=0,e=r.length;ti&&t.insertElements(i,r-i)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][o].type||l.type&&l.type!==n[e][o].type?a.merge(n[e][o],[t.scaleService.getScaleDefaults(s),l]):a.merge(n[e][o],l)}else a._merger(e,n,i,r)}})},a.where=function(t,e){if(a.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return a.each(t,function(t){e(t)&&n.push(t)}),n},a.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,r=t.length;i=0;i--){var r=t[i];if(e(r))return r}},a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,n){return Math.abs(t-e)t},a.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},a.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},a.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2==0?0:.5},a.splineCurve=function(t,e,n,i){var r=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;var h=i*u,d=i*c;return{previous:{x:a.x-h*(o.x-r.x),y:a.y-h*(o.y-r.y)},next:{x:a.x+d*(o.x-r.x),y:a.y+d*(o.y-r.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,n,i,r,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,(r=e0?o[e-1]:null,r=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var n=Math.floor(a.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},a.requestAnimFrame=function(){return"undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),a.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=r.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=r.clientX,i=r.clientY);var u=parseFloat(a.getStyle(o,"padding-left")),c=parseFloat(a.getStyle(o,"padding-top")),h=parseFloat(a.getStyle(o,"padding-right")),d=parseFloat(a.getStyle(o,"padding-bottom")),f=s.right-s.left-u-h,p=s.bottom-s.top-c-d;return n=Math.round((n-s.left-u)/f*o.width/e.currentDevicePixelRatio),i=Math.round((i-s.top-c)/p*o.height/e.currentDevicePixelRatio),{x:n,y:i}},a.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},a.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},a.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(a.getStyle(e,"padding-left"),10),i=parseInt(a.getStyle(e,"padding-right"),10),r=e.clientWidth-n-i,o=a.getConstraintWidth(t);return isNaN(o)?r:Math.min(r,o)},a.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(a.getStyle(e,"padding-top"),10),i=parseInt(a.getStyle(e,"padding-bottom"),10),r=e.clientHeight-n-i,o=a.getConstraintHeight(t);return isNaN(o)?r:Math.min(r,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},a.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,r=t.height,a=t.width;i.height=r*n,i.width=a*n,t.ctx.scale(n,n),i.style.height=r+"px",i.style.width=a+"px"}},a.fontString=function(t,e,n){return e+" "+t+"px "+n},a.longestText=function(t,e,n,i){i=i||{};var r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),t.font=e;var s=0;a.each(n,function(e){void 0!==e&&null!==e&&!0!==a.isArray(e)?s=a.measureText(t,r,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,r,o,s,e))})});var l=o.length/2;if(l>n.length){for(var u=0;ui&&(i=a),i},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.color=i?function(t){return t instanceof CanvasGradient&&(t=r.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},a.getHoverColor=function(t){return t instanceof CanvasPattern?t:a.color(t).saturate(.5).darken(.1).rgbString()}}},function(t,e,n){"use strict";n(9)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),t.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},function(t,e,n){"use strict";var i=n(6);t.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,r=e?t:n;return i.weight===r.weight?i._tmpIndex_-r._tmpIndex_:i.weight-r.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,r=["fullWidth","position","weight"],a=r.length,o=0;od&&lt.maxHeight){l--;break}l++,h=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,r=t.minSize={width:0,height:0},a=i(t._ticks),o=t.options,u=o.ticks,c=o.scaleLabel,h=o.gridLines,d=o.display,f=t.isHorizontal(),p=n(u),m=o.gridLines.tickMarkLength;if(r.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:d&&h.drawTicks?m:0,r.height=f?d&&h.drawTicks?m:0:t.maxHeight,c.display&&d){var g=l(c),v=s.options.toPadding(c.padding),y=g+v.height;f?r.height+=y:r.width+=y}if(u.display&&d){var b=s.longestText(t.ctx,p.font,a,t.longestTextCache),x=s.numberOfLabelLines(a),_=.5*p.size,w=t.options.ticks.padding;if(f){t.longestLabelWidth=b;var M=s.toRadians(t.labelRotation),S=Math.cos(M),E=Math.sin(M),k=E*b+p.size*x+_*(x-1)+_;r.height=Math.min(t.maxHeight,r.height+k+w),t.ctx.font=p.font;var T=e(t.ctx,a[0],p.font),C=e(t.ctx,a[a.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===o.position?S*T+3:S*_+3,t.paddingRight="bottom"===o.position?S*_+3:S*C+3):(t.paddingLeft=T/2+3,t.paddingRight=C/2+3)}else u.mirror?b=0:b+=w+_,r.width=Math.min(t.maxWidth,r.width+b),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=r.width,t.height=r.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),r=i/Math.max(e._ticks.length-(n?0:1),1),a=r*t+e.paddingLeft;n&&(a+=r/2);var o=e.left+Math.round(a);return o+=e.isFullWidth()?e.margins.left:0}var s=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(s/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=e.width-(e.paddingLeft+e.paddingRight),i=n*t+e.paddingLeft,r=e.left+Math.round(i);return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,r,a,o=this,l=o.isHorizontal(),u=o.options.ticks.minor,c=t.length,h=s.toRadians(o.labelRotation),d=Math.cos(h),f=o.longestLabelWidth*d,p=[];for(u.maxTicksLimit&&(a=u.maxTicksLimit),l&&(e=!1,(f+u.autoSkipPadding)*c>o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((f+u.autoSkipPadding)*c/(o.width-(o.paddingLeft+o.paddingRight)))),a&&c>a&&(e=Math.max(e,Math.floor(c/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=c,r&&n!==c-1&&delete i.label,p.push(i);return p},draw:function(t){var e=this,i=e.options;if(i.display){var o=e.ctx,u=a.global,c=i.ticks.minor,h=i.ticks.major||c,d=i.gridLines,f=i.scaleLabel,p=0!==e.labelRotation,m=e.isHorizontal(),g=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=s.valueOrDefault(c.fontColor,u.defaultFontColor),y=n(c),b=s.valueOrDefault(h.fontColor,u.defaultFontColor),x=n(h),_=d.drawTicks?d.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),M=n(f),S=s.options.toPadding(f.padding),E=s.toRadians(e.labelRotation),k=[],T="right"===i.position?e.left:e.right-_,C="right"===i.position?e.left+_:e.right,P="bottom"===i.position?e.top:e.bottom-_,O="bottom"===i.position?e.top+_:e.bottom;if(s.each(g,function(n,a){if(!s.isNullOrUndef(n.label)){var o,l,h,f,v=n.label;a===e.zeroLineIndex&&i.offset===d.offsetGridLines?(o=d.zeroLineWidth,l=d.zeroLineColor,h=d.zeroLineBorderDash,f=d.zeroLineBorderDashOffset):(o=s.valueAtIndexOrDefault(d.lineWidth,a),l=s.valueAtIndexOrDefault(d.color,a),h=s.valueOrDefault(d.borderDash,u.borderDash),f=s.valueOrDefault(d.borderDashOffset,u.borderDashOffset));var y,b,x,w,M,S,A,R,L,I,D="middle",N="middle",z=c.padding;if(m){var B=_+z;"bottom"===i.position?(N=p?"middle":"top",D=p?"right":"center",I=e.top+B):(N=p?"middle":"bottom",D=p?"left":"center",I=e.bottom-B);var F=r(e,a,d.offsetGridLines&&g.length>1);F1);W0){var a=t[0];a.xLabel?n=a.xLabel:r>0&&a.indexi.height-e.height&&(o="bottom");var s,l,u,c,h,d=(r.left+r.right)/2,f=(r.top+r.bottom)/2;"center"===o?(s=function(t){return t<=d},l=function(t){return t>d}):(s=function(t){return t<=e.width/2},l=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},c=function(t){return t-e.width<0},h=function(t){return t<=f?"top":"bottom"},s(n.x)?(a="left",u(n.x)&&(a="center",o=h(n.y))):l(n.x)&&(a="right",c(n.x)&&(a="center",o=h(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:a,yAlign:p.yAlign?p.yAlign:o}}function c(t,e,n){var i=t.x,r=t.y,a=t.caretSize,o=t.caretPadding,s=t.cornerRadius,l=n.xAlign,u=n.yAlign,c=a+o,h=s+o;return"right"===l?i-=e.width:"center"===l&&(i-=e.width/2),"top"===u?r+=c:r-="bottom"===u?e.height+c:e.height/2,"center"===u?"left"===l?i+=c:"right"===l&&(i-=c):"left"===l?i-=h:"right"===l&&(i+=h),{x:i,y:r}}t.Tooltip=r.extend({initialize:function(){this._model=s(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,i=e.callbacks,r=i.beforeTitle.apply(t,arguments),a=i.title.apply(t,arguments),o=i.afterTitle.apply(t,arguments),s=[];return s=n(s,r),s=n(s,a),s=n(s,o)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,r=i._options.callbacks,o=[];return a.each(t,function(t){var a={before:[],lines:[],after:[]};n(a.before,r.beforeLabel.call(i,t,e)),n(a.lines,r.label.call(i,t,e)),n(a.after,r.afterLabel.call(i,t,e)),o.push(a)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,i=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),a=e.afterFooter.apply(t,arguments),o=[];return o=n(o,i),o=n(o,r),o=n(o,a)},update:function(e){var n,i,r=this,h=r._options,d=r._model,f=r._model=s(h),p=r._active,m=r._data,g={xAlign:d.xAlign,yAlign:d.yAlign},v={x:d.x,y:d.y},y={width:d.width,height:d.height},b={x:d.caretX,y:d.caretY};if(p.length){f.opacity=1;var x=[],_=[];b=t.Tooltip.positioners[h.position].call(r,p,r._eventPosition);var w=[];for(n=0,i=p.length;n0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,a=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&a&&(this.drawBackground(i,e,t,n,r),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,r),this.drawBody(i,e,t,r),this.drawFooter(i,e,t,r))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(i=!a.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var r=e._model;e.update(!0),e.pivot(),i|=r.x!==e._model.x||r.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,r=0,a=0;for(e=0,n=t.length;el;)r-=2*Math.PI;for(;r=s&&r<=l,c=o>=n.innerRadius&&o<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},function(t,e,n){"use strict";var i=n(9),r=n(20),a=n(6),o=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:o.defaultColor,borderWidth:3,borderColor:o.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),t.exports=r.extend({draw:function(){var t,e,n,i,r=this,s=r._view,l=r._chart.ctx,u=s.spanGaps,c=r._children.slice(),h=o.elements.line,d=-1;for(r._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||h.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||h.borderDash),l.lineDashOffset=s.borderDashOffset||h.borderDashOffset,l.lineJoin=s.borderJoinStyle||h.borderJoinStyle,l.lineWidth=s.borderWidth||h.borderWidth,l.strokeStyle=s.borderColor||o.defaultColor,l.beginPath(),d=-1,t=0;te?1:-1,o=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=u.base,a=1,o=r>i?1:-1,s=u.borderSkipped||"bottom"),c){var h=Math.min(Math.abs(e-n),Math.abs(i-r));c=c>h?h:c;var d=c/2,f=e+("left"!==s?d*a:0),p=n+("right"!==s?-d*a:0),m=i+("top"!==s?d*o:0),g=r+("bottom"!==s?-d*o:0);f!==p&&(i=m,r=g),m!==g&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var v=[[e,r],[e,i],[n,i],[n,r]],y=["bottom","left","top","right"],b=y.indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var _=1;_<4;_++)x=t(_),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=r(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var a=r(n);return i(n)?t>=a.left&&t<=a.right:e>=a.top&&e<=a.bottom},inXRange:function(t){var e=r(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=r(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return i(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},function(t,e,n){"use strict";var i=n(61),e=t.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,r,a){if(a){var o=Math.min(a,i/2),s=Math.min(a,r/2);t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+s),t.lineTo(e+i,n+r-s),t.quadraticCurveTo(e+i,n+r,e+i-o,n+r),t.lineTo(e+o,n+r),t.quadraticCurveTo(e,n+r,e,n+r-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+o,n)}else t.rect(e,n,i,r)},drawPoint:function(t,e,n,i,r){var a,o,s,l,u,c;if(e&&"object"==typeof e&&("[object HTMLImageElement]"===(a=e.toString())||"[object HTMLCanvasElement]"===a))return void t.drawImage(e,i-e.width/2,r-e.height/2,e.width,e.height);if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,r,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),o=3*n/Math.sqrt(3),u=o*Math.sqrt(3)/2,t.moveTo(i-o/2,r+u/3),t.lineTo(i+o/2,r+u/3),t.lineTo(i,r-2*u/3),t.closePath(),t.fill();break;case"rect":c=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-c,r-c,2*c,2*c),t.strokeRect(i-c,r-c,2*c,2*c);break;case"rectRounded":var h=n/Math.SQRT2,d=i-h,f=r-h,p=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,f,p,p,n/2),t.closePath(),t.fill();break;case"rectRot":c=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-c,r),t.lineTo(i,r+c),t.lineTo(i+c,r),t.lineTo(i,r-c),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,r),t.lineTo(i+n,r),t.closePath()}t.stroke()}},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){return n.steppedLine?("after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y)):n.tension?void t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):void t.lineTo(n.x,n.y)}};i.clear=e.clear,i.drawRoundedRectangle=function(t){t.beginPath(),e.roundedRect.apply(e,arguments),t.closePath()}},function(t,e,n){"use strict";var i=n(61),r={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-r.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*r.easeInBounce(2*t):.5*r.easeOutBounce(2*t-1)+.5}};t.exports={effects:r},i.easingEffects=r},function(t,e,n){"use strict";var i=n(61);t.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,r,a;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,r=+t.bottom||0,a=+t.left||0):e=n=r=a=+t||0,{top:e,right:n,bottom:r,left:a,height:e+r,width:a+n}},resolve:function(t,e,n){var r,a,o;for(r=0,a=t.length;r
';var r=e.childNodes[0],o=e.childNodes[1];e._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var s=function(){e._reset(),t()};return a(r,"scroll",s.bind(r,"expand")),a(o,"scroll",s.bind(o,"shrink")),e}function h(t,e){var n=t[v]||(t[v]={}),i=n.renderProxy=function(t){t.animationName===x&&e()};g.each(_,function(e){a(t,e,i)}),n.reflow=!!t.offsetParent,t.classList.add(b)}function d(t){var e=t[v]||{},n=e.renderProxy;n&&(g.each(_,function(e){o(t,e,n)}),delete e.renderProxy),t.classList.remove(b)}function f(t,e,n){var i=t[v]||(t[v]={}),r=i.resizer=c(u(function(){if(i.resizer)return e(s("resize",n))}));h(t,function(){if(i.resizer){var e=t.parentNode;e&&e!==r.parentNode&&e.insertBefore(r,e.firstChild),r._reset()}})}function p(t){var e=t[v]||{},n=e.resizer;delete e.resizer,d(t),n&&n.parentNode&&n.parentNode.removeChild(n)}function m(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}var g=n(6),v="$chartjs",y="chartjs-",b=y+"render-monitor",x=y+"render-animation",_=["animationstart","webkitAnimationStart"],w={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},M=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}(),S=!!M&&{passive:!0};t.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";m(this,"@-webkit-keyframes "+x+"{"+t+"}@keyframes "+x+"{"+t+"}."+b+"{-webkit-animation:"+x+" 0.001s;animation:"+x+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(r(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[v]){var n=e[v].initial;["height","width"].forEach(function(t){var i=n[t];g.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)}),g.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[v]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"===e)return void f(i,n,t);var r=n[v]||(n[v]={});a(i,e,(r.proxies||(r.proxies={}))[t.id+"_"+e]=function(e){n(l(e,t))})},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"===e)return void p(i);var r=n[v]||{},a=r.proxies||{},s=a[t.id+"_"+e];s&&o(i,e,s)}},g.addEvent=a,g.removeEvent=o},function(t,e,n){"use strict";var i=n(9),r=n(33),a=n(6);i._set("global",{plugins:{filler:{propagate:!0}}}),t.exports=function(){function t(t,e,n){var i,r=t._model||{},a=r.fill;if(void 0===a&&(a=!!r.backgroundColor),!1===a||null===a)return!1;if(!0===a)return"origin";if(i=parseFloat(a,10),isFinite(i)&&Math.floor(i)===i)return"-"!==a[0]&&"+"!==a[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function e(t){var e,n=t.el._model||{},i=t.el._scale||{},r=t.fill,a=null;if(isFinite(r))return null;if("start"===r?a=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?a=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:i.getBasePosition?a=i.getBasePosition():i.getBasePixel&&(a=i.getBasePixel()),void 0!==a&&null!==a){if(void 0!==a.x&&void 0!==a.y)return a;if("number"==typeof a&&isFinite(a))return e=i.isHorizontal(),{x:e?a:null,y:e?null:a}}return null}function n(t,e,n){var i,r=t[e],a=r.fill,o=[e];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;o.push(a),a=i.fill}return!1}function o(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,i,r){var o;if(i&&r){for(t.moveTo(e[0].x,e[0].y),o=1;o0;--o)a.canvas.lineTo(t,n[o],n[o-1],!0)}}function u(t,e,n,i,r,a){var o,u,c,h,d,f,p,m=e.length,g=i.spanGaps,v=[],y=[],b=0,x=0;for(t.beginPath(),o=0,u=m+!!a;o');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),t.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var i=new t.Legend({ctx:e.ctx,options:n,chart:e});o.configure(e,i,n),o.addBox(e,i),e.legend=i}var o=t.layoutService,s=a.noop;return t.Legend=r.extend({initialize:function(t){a.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=a.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,r=n.labels,o=n.display,s=t.ctx,l=i.global,u=a.valueOrDefault,c=u(r.fontSize,l.defaultFontSize),h=u(r.fontStyle,l.defaultFontStyle),d=u(r.fontFamily,l.defaultFontFamily),f=a.fontString(c,h,d),p=t.legendHitBoxes=[],m=t.minSize,g=t.isHorizontal();if(g?(m.width=t.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=t.maxHeight),o)if(s.font=f,g){var v=t.lineWidths=[0],y=t.legendItems.length?c+r.padding:0;s.textAlign="left",s.textBaseline="top",a.each(t.legendItems,function(n,i){var a=e(r,c),o=a+c/2+s.measureText(n.text).width;v[v.length-1]+o+r.padding>=t.width&&(y+=c+r.padding,v[v.length]=t.left),p[i]={left:0,top:0,width:o,height:c},v[v.length-1]+=o+r.padding}),m.height+=y}else{var b=r.padding,x=t.columnWidths=[],_=r.padding,w=0,M=0,S=c+b;a.each(t.legendItems,function(t,n){var i=e(r,c),a=i+c/2+s.measureText(t.text).width;M+S>m.height&&(_+=w+r.padding,x.push(w),w=0,M=0),w=Math.max(w,a),M+=S,p[n]={left:0,top:0,width:a,height:c}}),_+=w,x.push(w),m.width+=_}t.width=m.width,t.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,r=n.labels,o=i.global,s=o.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,h=t.ctx,d=a.valueOrDefault,f=d(r.fontColor,o.defaultFontColor),p=d(r.fontSize,o.defaultFontSize),m=d(r.fontStyle,o.defaultFontStyle),g=d(r.fontFamily,o.defaultFontFamily),v=a.fontString(p,m,g);h.textAlign="left",h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=v;var y=e(r,p),b=t.legendHitBoxes,x=function(t,e,i){if(!(isNaN(y)||y<=0)){h.save(),h.fillStyle=d(i.fillStyle,o.defaultColor),h.lineCap=d(i.lineCap,s.borderCapStyle),h.lineDashOffset=d(i.lineDashOffset,s.borderDashOffset),h.lineJoin=d(i.lineJoin,s.borderJoinStyle),h.lineWidth=d(i.lineWidth,s.borderWidth),h.strokeStyle=d(i.strokeStyle,o.defaultColor);var r=0===d(i.lineWidth,s.borderWidth);if(h.setLineDash&&h.setLineDash(d(i.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;a.canvas.drawPoint(h,i.pointStyle,l,c,f)}else r||h.strokeRect(t,e,y,p),h.fillRect(t,e,y,p);h.restore()}},_=function(t,e,n,i){var r=p/2,a=y+r+t,o=e+r;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(a+i,o),h.stroke())},w=t.isHorizontal();c=w?{x:t.left+(l-u[0])/2,y:t.top+r.padding,line:0}:{x:t.left+r.padding,y:t.top+r.padding,line:0};var M=p+r.padding;a.each(t.legendItems,function(e,n){var i=h.measureText(e.text).width,a=y+p/2+i,o=c.x,s=c.y;w?o+a>=l&&(s=c.y+=M,c.line++,o=c.x=t.left+(l-u[c.line])/2):s+M>t.bottom&&(o=c.x=o+t.columnWidths[c.line]+r.padding,s=c.y=t.top+r.padding,c.line++),x(o,s,e),b[n].left=o,b[n].top=s,_(o,s,e,i),w?c.x+=a+r.padding:c.y+=M})}},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,r=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var a=t.x,o=t.y;if(a>=e.left&&a<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&a<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),r=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),r=!0;break}}}return r}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,r=t.legend;e?(a.mergeIf(e,i.global.legend),r?(o.configure(t,r,e),r.options=e):n(t,e)):r&&(o.removeBox(t,r),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},function(t,e,n){"use strict";var i=n(9),r=n(20),a=n(6);i._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),t.exports=function(t){function e(e,i){var r=new t.Title({ctx:e.ctx,options:i,chart:e});n.configure(e,r,i),n.addBox(e,r),e.titleBlock=r}var n=t.layoutService,o=a.noop;return t.Title=r.extend({initialize:function(t){var e=this;a.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:o,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:o,afterBuildLabels:o,beforeFit:o,fit:function(){var t=this,e=a.valueOrDefault,n=t.options,r=n.display,o=e(n.fontSize,i.global.defaultFontSize),s=t.minSize,l=a.isArray(n.text)?n.text.length:1,u=a.options.toLineHeight(n.lineHeight,o),c=r?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:o,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=a.valueOrDefault,r=t.options,o=i.global;if(r.display){var s,l,u,c=n(r.fontSize,o.defaultFontSize),h=n(r.fontStyle,o.defaultFontStyle),d=n(r.fontFamily,o.defaultFontFamily),f=a.fontString(c,h,d),p=a.options.toLineHeight(r.lineHeight,c),m=p/2+r.padding,g=0,v=t.top,y=t.left,b=t.bottom,x=t.right;e.fillStyle=n(r.fontColor,o.defaultFontColor),e.font=f,t.isHorizontal()?(l=y+(x-y)/2,u=v+m,s=x-y):(l="left"===r.position?y+m:x-m,u=v+(b-v)/2,s=b-v,g=Math.PI*("left"===r.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(g),e.textAlign="center",e.textBaseline="middle";var _=r.text;if(a.isArray(_))for(var w=0,M=0;M<_.length;++M)e.fillText(_[M],0,w,s),w+=p;else e.fillText(_,0,0,s);e.restore()}}}),{id:"title",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(r){var o=r.options.title,s=r.titleBlock;o?(a.mergeIf(o,i.global.title),s?(n.configure(r,s,o),s.options=o):e(r,o)):s&&(t.layoutService.removeBox(r,s),delete r.titleBlock)}}}},function(t,e,n){"use strict";t.exports=function(t){var e={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,e=t.getLabels();t.minIndex=0,t.maxIndex=e.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=e[t.minIndex],t.max=e[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,r=n.isHorizontal();return i.yLabels&&!r?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,i=this,r=i.options.offset,a=Math.max(i.maxIndex+1-i.minIndex-(r?0:1),1);if(void 0!==t&&null!==t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var o=i.getLabels();t=n||t;var s=o.indexOf(t);e=-1!==s?s:e}if(i.isHorizontal()){var l=i.width/a,u=l*(e-i.minIndex);return r&&(u+=l/2),i.left+Math.round(u)}var c=i.height/a,h=c*(e-i.minIndex);return r&&(h+=c/2),i.top+Math.round(h)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,i=Math.max(e._ticks.length-(n?0:1),1),r=e.isHorizontal(),a=(r?e.width:e.height)/i;return t-=r?e.left:e.top,n&&(t-=a/2),(t<=0?0:Math.round(t/a))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,e)}},function(t,e,n){"use strict";var i=n(9),r=n(6),a=n(47);t.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,i=e.chart,a=i.data,o=a.datasets,s=e.isHorizontal();e.min=null,e.max=null;var l=n.stacked;if(void 0===l&&r.each(o,function(e,n){if(!l){var r=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(r)&&void 0!==r.stack&&(l=!0)}}),n.stacked||l){var u={};r.each(o,function(a,o){var s=i.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===u[l]&&(u[l]={positiveValues:[],negativeValues:[]});var c=u[l].positiveValues,h=u[l].negativeValues;i.isDatasetVisible(o)&&t(s)&&r.each(a.data,function(t,i){var r=+e.getRightValue(t);isNaN(r)||s.data[i].hidden||(c[i]=c[i]||0,h[i]=h[i]||0,n.relativePoints?c[i]=100:r<0?h[i]+=r:c[i]+=r)})}),r.each(u,function(t){var n=t.positiveValues.concat(t.negativeValues),i=r.min(n),a=r.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?a:Math.max(e.max,a)})}else r.each(o,function(n,a){var o=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(o)&&r.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var a=r.valueOrDefault(n.fontSize,i.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*a)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,r=+n.getRightValue(t),a=n.end-i;return n.isHorizontal()?(e=n.left+n.width/a*(r-i),Math.round(e)):(e=n.bottom-n.height/a*(r-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,r=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},function(t,e,n){"use strict";var i=n(6),r=n(47);t.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options,n=e.ticks;if(n.beginAtZero){var r=i.sign(t.min),a=i.sign(t.max);r<0&&a<0?t.max=0:r>0&&a>0&&(t.min=0)}var o=void 0!==n.min||void 0!==n.suggestedMin,s=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(null===t.min?t.min=n.suggestedMin:t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(null===t.max?t.max=n.suggestedMax:t.max=Math.max(t.max,n.suggestedMax)),o!==s&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options,n=e.ticks,a=t.getTickLimit();a=Math.max(2,a);var o={maxTicks:a,min:n.min,max:n.max,stepSize:i.valueOrDefault(n.fixedStepSize,n.stepSize)},s=t.ticks=r.generators.linear(o,t);t.handleDirectionalChanges(),t.max=i.max(s),t.min=i.min(s),n.reverse?(s.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},function(t,e,n){"use strict";var i=n(6),r=n(47);t.exports=function(t){var e={position:"left",ticks:{callback:r.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return u?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,r=n.ticks,a=e.chart,o=a.data,s=o.datasets,l=i.valueOrDefault,u=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var c=n.stacked;if(void 0===c&&i.each(s,function(e,n){if(!c){var i=a.getDatasetMeta(n);a.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(c=!0)}}),n.stacked||c){var h={};i.each(s,function(r,o){var s=a.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:"",s.stack].join(".");a.isDatasetVisible(o)&&t(s)&&(void 0===h[l]&&(h[l]=[]),i.each(r.data,function(t,i){var r=h[l],a=+e.getRightValue(t);isNaN(a)||s.data[i].hidden||(r[i]=r[i]||0,n.relativePoints?r[i]=100:r[i]+=a)}))}),i.each(h,function(t){var n=i.min(t),r=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?r:Math.max(e.max,r)})}else i.each(s,function(n,r){var o=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(o)&&i.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i),0!==i&&(null===e.minNotZero||ir?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){var i,a,l,u=n(t),c=Math.min(t.height/2,t.width/2),h={r:t.width,l:0,t:t.height,b:0},d={};t.ctx.font=u.font,t._pointLabelSizes=[];var f=e(t);for(i=0;ih.r&&(h.r=g.end,d.r=p),v.starth.b&&(h.b=v.end,d.b=p)}t.setReductions(c,h,d)}function u(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function c(t){return 0===t||180===t?"center":t<180?"left":"right"}function h(t,e,n,i){if(r.isArray(e))for(var a=n.y,o=1.5*i,s=0;s270||t<90)&&(n.y-=e.h)}function f(t){var i=t.ctx,a=r.valueOrDefault,o=t.options,s=o.angleLines,l=o.pointLabels;i.lineWidth=s.lineWidth,i.strokeStyle=s.color;var u=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max),f=n(t);i.textBaseline="top";for(var p=e(t)-1;p>=0;p--){if(s.display){var m=t.getPointPosition(p,u);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(m.x,m.y),i.stroke(),i.closePath()}if(l.display){var v=t.getPointPosition(p,u+5),y=a(l.fontColor,g.defaultFontColor);i.font=f.font,i.fillStyle=y;var b=t.getIndexAngle(p),x=r.toDegrees(b);i.textAlign=c(x),d(x,t._pointLabelSizes[p],v),h(i,t.pointLabels[p]||"",v,f.size)}}}function p(t,n,i,a){var o=t.ctx;if(o.strokeStyle=r.valueAtIndexOrDefault(n.color,a-1),o.lineWidth=r.valueAtIndexOrDefault(n.lineWidth,a-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var s=e(t);if(0===s)return;o.beginPath();var l=t.getPointPosition(0,i);o.moveTo(l.x,l.y);for(var u=1;u0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,a=r.valueOrDefault;if(e.display){var o=t.ctx,s=this.getIndexAngle(0),l=a(i.fontSize,g.defaultFontSize),u=a(i.fontStyle,g.defaultFontStyle),c=a(i.fontFamily,g.defaultFontFamily),h=r.fontString(l,u,c);r.each(t.ticks,function(e,r){if(r>0||i.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[r]);if(n.display&&0!==r&&p(t,n,u,r),i.display){var c=a(i.fontColor,g.defaultFontColor);if(o.font=h,o.save(),o.translate(t.xCenter,t.yCenter),o.rotate(s),i.showLabelBackdrop){var d=o.measureText(e).width;o.fillStyle=i.backdropColor,o.fillRect(-d/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,d+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}o.textAlign="center",o.textBaseline="middle",o.fillStyle=c,o.fillText(e,0,-u),o.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&f(t)}}});t.scaleService.registerScaleType("radialLinear",y,v)}},function(t,e,n){"use strict";function i(t,e){return t-e}function r(t){var e,n,i,r={},a=[];for(e=0,n=t.length;ee&&s=0&&o<=s;){if(i=o+s>>1,r=t[i-1]||null,a=t[i],!r)return{lo:null,hi:a};if(a[e]n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}function s(t,e,n,i){var r=o(t,e,n),a=r.lo?r.hi?r.lo:t[t.length-2]:t[0],s=r.lo?r.hi?r.hi:t[t.length-1]:t[1],l=s[e]-a[e],u=l?(n-a[e])/l:0,c=(s[i]-a[i])*u;return a[i]+c}function l(t,e){var n=e.parser,i=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof i?v(t,i):(t instanceof v||(t=v(t)),t.isValid()?t:"function"==typeof i?i(t):t)}function u(t,e){if(b.isNullOrUndef(t))return null;var n=e.options.time,i=l(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function c(t,e,n,i){var r,a,o,s=e-t,l=w[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/((i||1)*u));for(r=0,a=c.length;r=M.indexOf(e);r--)if(a=M[r],w[a].common&&o.as(a)>=t.length)return a;return M[e?M.indexOf(e):0]}function f(t){for(var e=M.indexOf(t)+1,n=M.length;e1?e[1]:i,o=e[0],l=(s(t,"time",a,"pos")-s(t,"time",o,"pos"))/2),r.time.max||(a=e[e.length-1],o=e.length>1?e[e.length-2]:n,u=(s(t,"time",a,"pos")-s(t,"time",o,"pos"))/2)),{left:l,right:u}}function g(t,e){var n,i,r,a,o=[];for(n=0,i=t.length;n=r&&n<=o&&h.push(n);return i.min=r,i.max=o,i._unit=l.unit||d(h,l.minUnit,i.min,i.max),i._majorUnit=f(i._unit),i._table=a(i._timestamps.data,r,o,s.distribution),i._offsets=m(i._table,h,r,o,s),g(h,i._majorUnit)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,r=n.options.time,a=i.labels&&t=0&&t.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,[100*(.4124*e+.3576*n+.1805*i),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function u(t){var e,n,i,r=l(t),a=r[0],o=r[1],s=r[2];return a/=95.047,o/=100,s/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,n=500*(a-o),i=200*(o-s),[e,n,i]}function c(t){return z(u(t))}function h(t){var e,n,i,r,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return a=255*l,[a,a,a];n=l<.5?l*(1+s):l+s-l*s,e=2*l-n,r=[0,0,0];for(var u=0;u<3;u++)i=o+1/3*-(u-1),i<0&&i++,i>1&&i--,a=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[u]=255*a;return r}function d(t){var e,n,i=t[0],r=t[1]/100,a=t[2]/100;return 0===a?[0,0,0]:(a*=2,r*=a<=1?a:2-a,n=(a+r)/2,e=2*r/(a+r),[i,100*e,100*n])}function f(t){return a(h(t))}function p(t){return o(h(t))}function m(t){return s(h(t))}function v(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,r=Math.floor(e)%6,a=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*a),l=255*i*(1-n*(1-a)),i=255*i;switch(r){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}}function y(t){var e,n,i=t[0],r=t[1]/100,a=t[2]/100;return n=(2-r)*a,e=r*a,e/=n<=1?n:2-n,e=e||0,n/=2,[i,100*e,100*n]}function x(t){return a(v(t))}function _(t){return o(v(t))}function w(t){return s(v(t))}function M(t){var e,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),e=Math.floor(6*o),n=1-l,i=6*o-e,0!=(1&e)&&(i=1-i),a=s+i*(n-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function S(t){return n(M(t))}function E(t){return i(M(t))}function k(t){return o(M(t))}function T(t){return s(M(t))}function C(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,r*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),i=1-Math.min(1,o*(1-s)+s),[255*e,255*n,255*i]}function P(t){return n(C(t))}function O(t){return i(C(t))}function A(t){return a(C(t))}function R(t){return s(C(t))}function L(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100;return e=3.2406*r+-1.5372*a+-.4986*o,n=-.9689*r+1.8758*a+.0415*o,i=.0557*r+-.204*a+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*e,255*n,255*i]}function I(t){var e,n,i,r=t[0],a=t[1],o=t[2];return r/=95.047,a/=100,o/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,n=500*(r-a),i=200*(a-o),[e,n,i]}function D(t){return z(I(t))}function N(t){var e,n,i,r,a=t[0],o=t[1],s=t[2];return a<=8?(n=100*a/903.3,r=n/100*7.787+16/116):(n=100*Math.pow((a+16)/116,3),r=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+r-16/116)/7.787:95.047*Math.pow(o/500+r,3),i=i/108.883<=.008859?i=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3),[e,n,i]}function z(t){var e,n,i,r=t[0],a=t[1],o=t[2];return e=Math.atan2(o,a),n=360*e/2/Math.PI,n<0&&(n+=360),i=Math.sqrt(a*a+o*o),[r,i,n]}function B(t){return L(N(t))}function F(t){var e,n,i,r=t[0],a=t[1],o=t[2];return i=o/360*2*Math.PI,e=a*Math.cos(i),n=a*Math.sin(i),[r,e,n]}function U(t){return N(F(t))}function j(t){return B(F(t))}function W(t){return Z[t]}function G(t){return n(W(t))}function V(t){return i(W(t))}function H(t){return a(W(t))}function Y(t){return o(W(t))}function q(t){return u(W(t))}function X(t){return l(W(t))}t.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:c,hsl2rgb:h,hsl2hsv:d,hsl2hwb:f,hsl2cmyk:p,hsl2keyword:m,hsv2rgb:v,hsv2hsl:y,hsv2hwb:x,hsv2cmyk:_,hsv2keyword:w,hwb2rgb:M,hwb2hsl:S,hwb2hsv:E,hwb2cmyk:k,hwb2keyword:T,cmyk2rgb:C,cmyk2hsl:P,cmyk2hsv:O,cmyk2hwb:A,cmyk2keyword:R,keyword2rgb:W,keyword2hsl:G,keyword2hsv:V,keyword2hwb:H,keyword2cmyk:Y,keyword2lab:q,keyword2xyz:X,xyz2rgb:L,xyz2lab:I,xyz2lch:D,lab2xyz:N,lab2rgb:B,lab2lch:z,lch2lab:F,lch2xyz:U,lch2rgb:j};var Z={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},K={};for(var Q in Z)K[JSON.stringify(Z[Q])]=Q},function(t,e,n){var i=n(293),r=function(){return new u};for(var a in i){r[a+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(a);var o=/(\w+)2(\w+)/.exec(a),s=o[1],l=o[2];r[s]=r[s]||{},r[s][l]=r[a]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if("string"==typeof n||void 0===n)return n;for(var r=0;r2){if(!l(n))throw new TypeError("polynomial()::invalid input argument. Options argument must be an object. Value: `"+n+"`.");if(n.hasOwnProperty("copy")&&(m=n.copy,!u(m)))throw new TypeError("polynomial()::invalid option. Copy option must be a boolean primitive. Option: `"+m+"`.");if(n.hasOwnProperty("accessor")&&(r=n.accessor,!c(r)))throw new TypeError("polynomial()::invalid option. Accessor must be a function. Option: `"+r+"`.")}if(h=e.length,d=m?new Array(h):e,r)for(p=0;pc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(29),r=n(83),a=n(42),o=n(66),s=n(318);t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var m,g,v=a(e),y=r(v),b=i(s,p,3),x=o(y.length),_=0,w=n?f(e,x):l?f(e,0):void 0;x>_;_++)if((d||_ in y)&&(m=y[_],g=b(m,_,v),t))if(n)w[_]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:w.push(m)}else if(c)return!1;return h?-1:u||c?c:w}}},function(t,e,n){var i=n(21),r=n(125),a=n(17)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var i=n(317);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){"use strict";var i=n(22).f,r=n(64),a=n(90),o=n(29),s=n(79),l=n(50),u=n(84),c=n(128),h=n(135),d=n(27),f=n(85).fastKey,p=n(138),m=d?"_s":"size",g=function(t,e){var n,i=f(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var c=t(function(t,i){s(t,c,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&l(i,n,t[u],t)});return a(c.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),i=g(n,t);if(i){var r=i.n,a=i.p;delete n._i[i.i],i.r=!0,a&&(a.n=r),r&&(r.p=a),n._f==i&&(n._f=r),n._l==i&&(n._l=a),n[m]--}return!!i},forEach:function(t){p(this,e);for(var n,i=o(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&i(c.prototype,"size",{get:function(){return p(this,e)[m]}}),c},def:function(t,e,n){var i,r,a=g(t,e);return a?a.v=n:(t._l=a={i:r=f(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=a),i&&(i.n=a),t[m]++,"F"!==r&&(t._i[r]=a)),t},getEntry:g,setStrong:function(t,e,n){u(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?c(0,n.k):"values"==e?c(0,n.v):c(0,[n.k,n.v]):(t._t=void 0,c(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){var i=n(62),r=n(314);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,n){"use strict";var i=n(18),r=n(14),a=n(85),o=n(36),s=n(34),l=n(90),u=n(50),c=n(79),h=n(21),d=n(53),f=n(22).f,p=n(316)(0),m=n(27);t.exports=function(t,e,n,g,v,y){var b=i[t],x=b,_=v?"set":"add",w=x&&x.prototype,M={};return m&&"function"==typeof x&&(y||w.forEach&&!o(function(){(new x).entries().next()}))?(x=e(function(e,n){c(e,x,t,"_c"),e._c=new b,void 0!=n&&u(n,v,e[_],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in w&&(!y||"clear"!=t)&&s(x.prototype,t,function(n,i){if(c(this,x,t),!e&&y&&!h(n))return"get"==t&&void 0;var r=this._c[t](0===n?0:n,i);return e?this:r})}),y||f(x.prototype,"size",{get:function(){return this._c.size}})):(x=g.getConstructor(e,t,v,_),l(x.prototype,n),a.NEED=!0),d(x,t),M[t]=x,r(r.G+r.W+r.F,M),y||g.setStrong(x,t,v),x}},function(t,e,n){"use strict";var i=n(22),r=n(52);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(51),r=n(88),a=n(65);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var o,s=n(t),l=a.f,u=0;s.length>u;)l.call(t,o=s[u++])&&e.push(o);return e}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){"use strict";var i=n(64),r=n(52),a=n(53),o={};n(34)(o,n(17)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:r(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var i=n(18),r=n(137).set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,l="process"==n(49)(o);t.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=o.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){o.nextTick(u)};else if(!a||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve();n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var h=!0,d=document.createTextNode("");new a(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e,n){"use strict";var i=n(51),r=n(88),a=n(65),o=n(42),s=n(83),l=Object.assign;t.exports=!l||n(36)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){for(var n=o(t),l=arguments.length,u=1,c=r.f,h=a.f;l>u;)for(var d,f=s(arguments[u++]),p=c?i(f).concat(c(f)):i(f),m=p.length,g=0;m>g;)h.call(f,d=p[g++])&&(n[d]=f[d]);return n}:l},function(t,e,n){var i=n(22),r=n(26),a=n(51);t.exports=n(27)?Object.defineProperties:function(t,e){r(t);for(var n,o=a(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],e[n]);return t}},function(t,e,n){var i=n(38),r=n(129).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==a.call(t)?s(t):r(i(t))}},function(t,e,n){"use strict";var i=n(14),r=n(48),a=n(29),o=n(50);t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,s,l=arguments[1];return r(this),e=void 0!==l,e&&r(l),void 0==t?new this:(n=[],e?(i=0,s=a(l,arguments[2],2),o(t,!1,function(t){n.push(s(t,i++))})):o(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var i=n(14);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){var i=n(21),r=n(26),a=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(29)(Function.call,n(87).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:a}},function(t,e,n){var i=n(93),r=n(80);t.exports=function(t){return function(e,n){var a,o,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):a:t?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},function(t,e,n){var i=n(93),r=Math.max,a=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):a(t,e)}},function(t,e,n){var i=n(26),r=n(97);t.exports=n(11).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,n){var i=n(62),r=n(17)("iterator"),a=n(41);t.exports=n(11).isIterable=function(t){var e=Object(t);return void 0!==e[r]||"@@iterator"in e||a.hasOwnProperty(i(e))}},function(t,e,n){"use strict";var i=n(29),r=n(14),a=n(42),o=n(126),s=n(124),l=n(66),u=n(322),c=n(97);r(r.S+r.F*!n(127)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,h,d=a(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(d);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(e=l(d.length),n=new f(e);e>v;v++)u(n,v,g?m(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(r=h.next()).done;v++)u(n,v,g?o(h,m,[r.value,v],!0):r.value);return n.length=v,n}})},function(t,e,n){"use strict";var i=n(313),r=n(128),a=n(41),o=n(38);t.exports=n(84)(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(14);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var i=n(14);i(i.S+i.F,"Object",{assign:n(327)})},function(t,e,n){var i=n(14);i(i.S,"Object",{create:n(64)})},function(t,e,n){var i=n(14);i(i.S+i.F*!n(27),"Object",{defineProperty:n(22).f})},function(t,e,n){var i=n(38),r=n(87).f;n(89)("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},function(t,e,n){var i=n(42),r=n(130);n(89)("getPrototypeOf",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(42),r=n(51);n(89)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(14);i(i.S,"Object",{setPrototypeOf:n(332).set})},function(t,e,n){"use strict";var i,r,a,o,s=n(63),l=n(18),u=n(29),c=n(62),h=n(14),d=n(21),f=n(48),p=n(79),m=n(50),g=n(136),v=n(137).set,y=n(326)(),b=n(86),x=n(132),_=n(133),w=l.TypeError,M=l.process,S=l.Promise,E="process"==c(M),k=function(){},T=r=b.f,C=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(17)("species")]=function(t){t(k,k)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),P=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,r=1==t._s,a=0;n.length>a;)!function(e){var n,a,o=r?e.ok:e.fail,s=e.resolve,l=e.reject,u=e.domain;try{o?(r||(2==t._h&&L(t),t._h=1),!0===o?n=i:(u&&u.enter(),n=o(i),u&&u.exit()),n===e.promise?l(w("Promise-chain cycle")):(a=P(n))?a.call(n,s,l):s(n)):l(i)}catch(t){l(t)}}(n[a++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){v.call(l,function(){var e,n,i,r=t._v,a=R(t);if(a&&(e=x(function(){E?M.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=E||R(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){v.call(l,function(){var e;E?M.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w("Promise can't be resolved itself");(e=P(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,u(D,i,1),u(I,i,1))}catch(t){I.call(i,t)}}):(n._v=t,n._s=1,O(n,!1))}catch(t){I.call({_w:n,_d:!1},t)}}};C||(S=function(t){p(this,S,"Promise","_h"),f(t),i.call(this);try{t(u(D,this,1),u(I,this,1))}catch(t){I.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(90)(S.prototype,{then:function(t,e){var n=T(g(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=u(D,t,1),this.reject=u(I,t,1)},b.f=T=function(t){return t===S||t===o?new a(t):r(t)}),h(h.G+h.W+h.F*!C,{Promise:S}),n(53)(S,"Promise"),n(135)("Promise"),o=n(11).Promise,h(h.S+h.F*!C,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!C),"Promise",{resolve:function(t){return _(s&&this===o?S:this,t)}}),h(h.S+h.F*!(C&&n(127)(function(t){S.all(t).catch(k)})),"Promise",{all:function(t){var e=this,n=T(e),i=n.resolve,r=n.reject,a=x(function(){var n=[],a=0,o=1;m(t,!1,function(t){var s=a++,l=!1;n.push(void 0),o++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--o||i(n))},r)}),--o||i(n)});return a.e&&r(a.v),n.promise},race:function(t){var e=this,n=T(e),i=n.reject,r=x(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(t,e,n){"use strict";var i=n(319),r=n(138);t.exports=n(321)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";var i=n(18),r=n(37),a=n(27),o=n(14),s=n(134),l=n(85).KEY,u=n(36),c=n(92),h=n(53),d=n(67),f=n(17),p=n(96),m=n(95),g=n(323),v=n(125),y=n(26),b=n(21),x=n(38),_=n(94),w=n(52),M=n(64),S=n(329),E=n(87),k=n(22),T=n(51),C=E.f,P=k.f,O=S.f,A=i.Symbol,R=i.JSON,L=R&&R.stringify,I=f("_hidden"),D=f("toPrimitive"),N={}.propertyIsEnumerable,z=c("symbol-registry"),B=c("symbols"),F=c("op-symbols"),U=Object.prototype,j="function"==typeof A,W=i.QObject,G=!W||!W.prototype||!W.prototype.findChild,V=a&&u(function(){return 7!=M(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=C(U,e);i&&delete U[e],P(t,e,n),i&&t!==U&&P(U,e,i)}:P,H=function(t){var e=B[t]=M(A.prototype);return e._k=t,e},Y=j&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},q=function(t,e,n){return t===U&&q(F,e,n),y(t),e=_(e,!0),y(n),r(B,e)?(n.enumerable?(r(t,I)&&t[I][e]&&(t[I][e]=!1),n=M(n,{enumerable:w(0,!1)})):(r(t,I)||P(t,I,w(1,{})),t[I][e]=!0),V(t,e,n)):P(t,e,n)},X=function(t,e){y(t);for(var n,i=g(e=x(e)),r=0,a=i.length;a>r;)q(t,n=i[r++],e[n]);return t},Z=function(t,e){return void 0===e?M(t):X(M(t),e)},K=function(t){var e=N.call(this,t=_(t,!0));return!(this===U&&r(B,t)&&!r(F,t))&&(!(e||!r(this,t)||!r(B,t)||r(this,I)&&this[I][t])||e)},Q=function(t,e){if(t=x(t),e=_(e,!0),t!==U||!r(B,e)||r(F,e)){var n=C(t,e);return!n||!r(B,e)||r(t,I)&&t[I][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=O(x(t)),i=[],a=0;n.length>a;)r(B,e=n[a++])||e==I||e==l||i.push(e);return i},$=function(t){for(var e,n=t===U,i=O(n?F:x(t)),a=[],o=0;i.length>o;)!r(B,e=i[o++])||n&&!r(U,e)||a.push(B[e]);return a};j||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(F,n),r(this,I)&&r(this[I],t)&&(this[I][t]=!1),V(this,t,w(1,n))};return a&&G&&V(U,t,{configurable:!0,set:e}),H(t)},s(A.prototype,"toString",function(){return this._k}),E.f=Q,k.f=q,n(129).f=S.f=J,n(65).f=K,n(88).f=$,a&&!n(63)&&s(U,"propertyIsEnumerable",K,!0),p.f=function(t){return H(f(t))}),o(o.G+o.W+o.F*!j,{Symbol:A});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)f(tt[et++]);for(var nt=T(f.store),it=0;nt.length>it;)m(nt[it++]);o(o.S+o.F*!j,"Symbol",{for:function(t){return r(z,t+="")?z[t]:z[t]=A(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!j,"Object",{create:Z,defineProperty:q,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:$}),R&&o(o.S+o.F*(!j||u(function(){var t=A();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!Y(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),i[1]=e,L.apply(R,i)}}),A.prototype[D]||n(34)(A.prototype,D,A.prototype.valueOf),h(A,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,e,n){"use strict";var i=n(14),r=n(11),a=n(18),o=n(136),s=n(133);i(i.P+i.R,"Promise",{finally:function(t){var e=o(this,r.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var i=n(14),r=n(86),a=n(132);i(i.S,"Promise",{try:function(t){var e=r.f(this),n=a(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(330)("Set")},function(t,e,n){n(331)("Set")},function(t,e,n){var i=n(14);i(i.P+i.R,"Set",{toJSON:n(320)("Set")})},function(t,e,n){n(95)("asyncIterator")},function(t,e,n){n(95)("observable")},function(t,e,n){"use strict";var i=n(68),r={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:i}},registerDefault:function(){}};t.exports=r},function(t,e,n){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=r},function(t,e,n){"use strict";function i(t,e){return!(!t||!e)&&(t===e||!r(t)&&(r(e)?i(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var r=n(364);t.exports=i},function(t,e,n){"use strict";function i(t){try{t.focus()}catch(t){}}t.exports=i},function(t,e,n){"use strict";function i(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i,a,o,s,l){if(r(e),!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,a,o,s,l],h=0;u=new Error(e.replace(/%s/g,function(){return c[h++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var r=function(t){};t.exports=i},function(t,e,n){"use strict";function i(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=i},function(t,e,n){"use strict";function i(t){return r(t)&&3==t.nodeType}var r=n(363);t.exports=i},function(t,e,n){"use strict";function i(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function r(t,e){if(i(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t}t.exports=n},function(t,e){function n(t,e,n){return t[0]=e,t[1]=n,t}t.exports=n},function(t,e){function n(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}t.exports=n},function(t,e,n){"use strict";function i(t){return t in o?o[t]:o[t]=t.replace(r,"-$&").toLowerCase().replace(a,"-ms-")}var r=/[A-Z]/g,a=/^ms-/,o={};t.exports=i},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t){var e=t.prefixMap,n=t.plugins,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t);var i="undefined"!=typeof navigator?navigator.userAgent:void 0;if(this._userAgent=n.userAgent||i,this._keepUnprefixed=n.keepUnprefixed||!1,this._userAgent&&(this._browserInfo=(0,l.default)(this._userAgent)),!this._browserInfo||!this._browserInfo.cssPrefix)return this._useFallback=!0,!1;this.prefixedKeyframes=(0,c.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);var a=this._browserInfo.browserName&&e[this._browserInfo.browserName];if(a){this._requiresPrefix={};for(var o in a)a[o]>=this._browserInfo.browserVersion&&(this._requiresPrefix[o]=!0);this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return o(t,[{key:"prefix",value:function(t){return this._useFallback?i(t):this._hasPropsRequiringPrefix?this._prefixStyle(t):t}},{key:"_prefixStyle",value:function(t){for(var e in t){var i=t[e];if((0,g.default)(i))t[e]=this.prefix(i);else if(Array.isArray(i)){for(var r=[],a=0,o=i.length;a0&&(t[e]=r)}else{var l=(0,y.default)(n,e,i,t,this._metaData);l&&(t[e]=l),this._requiresPrefix.hasOwnProperty(e)&&(t[this._browserInfo.jsPrefix+(0,d.default)(e)]=i,this._keepUnprefixed||delete t[e])}}return t}}],[{key:"prefixAll",value:function(t){return i(t)}}]),t}()}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n-1&&("chrome"===r||"opera"===r||"and_chr"===r||("ios_saf"===r||"safari"===r)&&o<10))return(0,a.default)(e.replace(/cross-fade\(/g,s+"cross-fade("),e,l)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,l=i.browserVersion,u=i.cssPrefix,c=i.keepUnprefixed;return"cursor"!==t||!o[e]||"firefox"!==r&&"chrome"!==r&&"safari"!==r&&"opera"!==r?"cursor"===t&&s[e]&&("firefox"===r&&l<24||"chrome"===r&&l<37||"safari"===r&&l<9||"opera"===r&&l<24)?(0,a.default)(u+e,e,c):void 0:(0,a.default)(u+e,e,c)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={grab:!0,grabbing:!0},s={"zoom-in":!0,"zoom-out":!0};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,o=i.browserVersion,s=i.cssPrefix,l=i.keepUnprefixed;if("string"==typeof e&&e.indexOf("filter(")>-1&&("ios_saf"===r||"safari"===r&&o<9.1))return(0,a.default)(e.replace(/filter\(/g,s+"filter("),e,l)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if("display"===t&&o[e]&&("chrome"===r&&s<29&&s>20||("safari"===r||"ios_saf"===r)&&s<9&&s>6||"opera"===r&&(15===s||16===s)))return(0,a.default)(l+e,e,u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={flex:!0,"inline-flex":!0};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,l=i.browserVersion,c=i.cssPrefix,h=i.keepUnprefixed,d=i.requiresPrefix;if((u.indexOf(t)>-1||"display"===t&&"string"==typeof e&&e.indexOf("flex")>-1)&&("firefox"===r&&l<22||"chrome"===r&&l<21||("safari"===r||"ios_saf"===r)&&l<=6.1||"android"===r&&l<4.4||"and_uc"===r)){if(delete d[t],h||Array.isArray(n[t])||delete n[t],"flexDirection"===t&&"string"==typeof e&&(e.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",e.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal"),"display"===t&&o.hasOwnProperty(e))return(0,a.default)(c+o[e],e,h);s.hasOwnProperty(t)&&(n[s[t]]=o[e]||e)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},s={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"},l=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],u=Object.keys(s).concat(l);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if("string"==typeof e&&o.test(e)&&("firefox"===r&&s<16||"chrome"===r&&s<26||("safari"===r||"ios_saf"===r)&&s<7||("opera"===r||"op_mini"===r)&&s<12.1||"android"===r&&s<4.4||"and_uc"===r))return(0,a.default)(l+e,e,u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,o=i.cssPrefix,s=i.keepUnprefixed;if("string"==typeof e&&e.indexOf("image-set(")>-1&&("chrome"===r||"opera"===r||"and_chr"===r||"and_uc"===r||"ios_saf"===r||"safari"===r))return(0,a.default)(e.replace(/image-set\(/g,o+"image-set("),e,s)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,o=i.cssPrefix,s=i.keepUnprefixed;if("position"===t&&"sticky"===e&&("safari"===r||"ios_saf"===r))return(0,a.default)(o+e,e,s)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.cssPrefix,l=i.keepUnprefixed;if(o.hasOwnProperty(t)&&s.hasOwnProperty(e))return(0,a.default)(r+e,e,l)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},s={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.cssPrefix,l=i.keepUnprefixed,u=i.requiresPrefix;if("string"==typeof e&&o.hasOwnProperty(t)){s||(s=Object.keys(u).map(function(t){return(0,a.default)(t)}));var c=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return s.forEach(function(t){c.forEach(function(e,n){e.indexOf(t)>-1&&"order"!==t&&(c[n]=e.replace(t,r+t)+(l?","+e:""))})}),c.join(",")}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(139),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s=void 0;t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){function e(t){for(var r in t){var a=t[r];if((0,d.default)(a))t[r]=e(a);else if(Array.isArray(a)){for(var s=[],u=0,h=a.length;u0&&(t[r]=s)}else{var p=(0,l.default)(i,r,a,t,n);p&&(t[r]=p),(0,o.default)(n,r,t)}}return t}var n=t.prefixMap,i=t.plugins;return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var a=n(400),o=i(a),s=n(144),l=i(s),u=n(142),c=i(u),h=n(143),d=i(h);t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(385),a=i(r),o=n(397),s=i(o),l=n(388),u=i(l),c=n(387),h=i(c),d=n(389),f=i(d),p=n(390),m=i(p),g=n(391),v=i(g),y=n(392),b=i(y),x=n(393),_=i(x),w=n(394),M=i(w),S=n(395),E=i(S),k=n(396),T=i(k),C=[h.default,u.default,f.default,v.default,b.default,_.default,M.default,E.default,T.default,m.default];e.default=(0,a.default)({prefixMap:s.default.prefixMap,plugins:C}),t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("string"==typeof e&&!(0,a.default)(e)&&e.indexOf("cross-fade(")>-1)return o.map(function(t){return e.replace(/cross-fade\(/g,t+"cross-fade(")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("cursor"===t&&a.hasOwnProperty(e))return r.map(function(t){return t+e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=["-webkit-","-moz-",""],a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("string"==typeof e&&!(0,a.default)(e)&&e.indexOf("filter(")>-1)return o.map(function(t){return e.replace(/filter\(/g,t+"filter(")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("display"===t&&r.hasOwnProperty(e))return r[e]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n){"flexDirection"===t&&"string"==typeof e&&(e.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",e.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal"),a.hasOwnProperty(t)&&(n[a[t]]=r[e]||e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},a={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("string"==typeof e&&!(0,a.default)(e)&&s.test(e))return o.map(function(t){return t+e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["-webkit-","-moz-",""],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("string"==typeof e&&!(0,a.default)(e)&&e.indexOf("image-set(")>-1)return o.map(function(t){return e.replace(/image-set\(/g,t+"image-set(")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("position"===t&&"sticky"===e)return["-webkit-sticky","sticky"]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if(a.hasOwnProperty(t)&&o.hasOwnProperty(e))return r.map(function(t){return t+e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=["-webkit-","-moz-",""],a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if((0,u.default)(t))return t;for(var n=t.split(/,(?![^()]*(?:\([^()]*\))?\))/g),i=0,r=n.length;i-1&&"order"!==c)for(var h=e[l],d=0,p=h.length;d-1)return o;var s=a.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(t){return!/-webkit-|-ms-/.test(t)}).join(",");return t.indexOf("Moz")>-1?s:(n["Webkit"+(0,h.default)(t)]=o,n["Moz"+(0,h.default)(t)]=s,a)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=n(139),s=i(o),l=n(55),u=i(l),c=n(100),h=i(c),d={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},f={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=["Webkit"],r=["Moz"],a=["ms"],o=["Webkit","Moz"],s=["Webkit","ms"],l=["Webkit","Moz","ms"];e.default={plugins:[],prefixMap:{appearance:o,userSelect:l,textEmphasisPosition:i,textEmphasis:i,textEmphasisStyle:i,textEmphasisColor:i,boxDecorationBreak:i,clipPath:i,maskImage:i,maskMode:i,maskRepeat:i,maskPosition:i,maskClip:i,maskOrigin:i,maskSize:i,maskComposite:i,mask:i,maskBorderSource:i,maskBorderMode:i,maskBorderSlice:i,maskBorderWidth:i,maskBorderOutset:i,maskBorderRepeat:i,maskBorder:i,maskType:i,textDecorationStyle:i,textDecorationSkip:i,textDecorationLine:i,textDecorationColor:i,filter:i,fontFeatureSettings:i,breakAfter:l,breakBefore:l,breakInside:l,columnCount:o,columnFill:o,columnGap:o,columnRule:o,columnRuleColor:o,columnRuleStyle:o,columnRuleWidth:o,columns:o,columnSpan:o,columnWidth:o,writingMode:s,flex:i,flexBasis:i,flexDirection:i,flexGrow:i,flexFlow:i,flexShrink:i,flexWrap:i,alignContent:i,alignItems:i,alignSelf:i,justifyContent:i,order:i,transform:i,transformOrigin:i,transformOriginX:i,transformOriginY:i,backfaceVisibility:i,perspective:i,perspectiveOrigin:i,transformStyle:i,transformOriginZ:i,animation:i,animationDelay:i,animationDirection:i,animationFillMode:i,animationDuration:i,animationIterationCount:i,animationName:i,animationPlayState:i,animationTimingFunction:i,backdropFilter:i,fontKerning:i,scrollSnapType:s,scrollSnapPointsX:s,scrollSnapPointsY:s,scrollSnapDestination:s,scrollSnapCoordinate:s,shapeImageThreshold:i,shapeImageMargin:i,shapeImageOutside:i,hyphens:l,flowInto:s,flowFrom:s,regionFragment:s,textAlignLast:r,tabSize:r,wrapFlow:a,wrapThrough:a,wrapMargin:a,gridTemplateColumns:a,gridTemplateRows:a,gridTemplateAreas:a,gridTemplate:a,gridAutoColumns:a,gridAutoRows:a,gridAutoFlow:a,grid:a,gridRowStart:a,gridColumnStart:a,gridRowEnd:a,gridRow:a,gridColumn:a,gridColumnEnd:a,gridColumnGap:a,gridRowGap:a,gridArea:a,gridGap:a,textSizeAdjust:s,borderImage:i,borderImageOutset:i,borderImageRepeat:i,borderImageSlice:i,borderImageSource:i,borderImageWidth:i,transitionDelay:i,transitionDuration:i,transitionProperty:i,transitionTimingFunction:i}},t.exports=e.default},function(t,e,n){"use strict";function i(t){if(t.firefox)return"firefox";if(t.mobile||t.tablet){if(t.ios)return"ios_saf";if(t.android)return"android";if(t.opera)return"op_mini"}for(var e in l)if(t.hasOwnProperty(e))return l[e]}function r(t){var e=o.default._detect(t);e.yandexbrowser&&(e=o.default._detect(t.replace(/YaBrowser\/[0-9.]*/,"")));for(var n in s)if(e.hasOwnProperty(n)){var r=s[n];e.jsPrefix=r,e.cssPrefix="-"+r.toLowerCase()+"-";break}return e.browserName=i(e),e.version?e.browserVersion=parseFloat(e.version):e.browserVersion=parseInt(parseFloat(e.osversion),10),e.osVersion=parseFloat(e.osversion),"ios_saf"===e.browserName&&e.browserVersion>e.osVersion&&(e.browserVersion=e.osVersion),"android"===e.browserName&&e.chrome&&e.browserVersion>37&&(e.browserName="and_chr"),"android"===e.browserName&&e.osVersion<5&&(e.browserVersion=e.osVersion),"android"===e.browserName&&e.samsungBrowser&&(e.browserName="and_chr",e.browserVersion=44),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var a=n(248),o=function(t){return t&&t.__esModule?t:{default:t}}(a),s={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},l={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n){return"chrome"===t&&e<43||("safari"===t||"ios_saf"===t)&&e<9||"opera"===t&&e<30||"android"===t&&e<=4.4||"and_uc"===t?n+"keyframes":"keyframes"}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n){if(t.hasOwnProperty(e))for(var i=t[e],r=0,o=i.length;r0)for(n=0;n0?"future":"past"];return E(n)?n(e):n.replace(/%s/i,e)}function D(t,e){var n=t.toLowerCase();Ri[n]=Ri[n+"s"]=Ri[e]=t}function N(t){return"string"==typeof t?Ri[t]||Ri[t.toLowerCase()]:void 0}function z(t){var e,n,i={};for(n in t)u(t,n)&&(e=N(n))&&(i[e]=t[n]);return i}function B(t,e){Li[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Li[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function U(t,n){return function(i){return null!=i?(W(this,t,i),e.updateOffset(this,n),this):j(this,t)}}function j(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function W(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function G(t){return t=N(t),E(this[t])?this[t]():this}function V(t,e){if("object"==typeof t){t=z(t);for(var n=F(t),i=0;i=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function Y(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(zi[t]=r),e&&(zi[e[0]]=function(){return H(r.apply(this,arguments),e[1],e[2])}),n&&(zi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function q(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function X(t){var e,n,i=t.match(Ii);for(e=0,n=i.length;e=0&&Di.test(t);)t=t.replace(Di,n),Di.lastIndex=0,i-=1;return t}function Q(t,e,n){er[t]=E(e)?e:function(t,i){return t&&n?n:e}}function J(t,e){return u(er,t)?er[t](e._strict,e._locale):new RegExp($(t))}function $(t){return tt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}function tt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function et(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),o(e)&&(i=function(t,n){n[e]=x(t)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function xt(t,e,n){var i=7+e-n;return-(7+bt(t,0,i).getUTCDay()-e)%7+i-1}function _t(t,e,n,i,r){var a,o,s=(7+n-i)%7,l=xt(t,i,r),u=1+7*(e-1)+s+l;return u<=0?(a=t-1,o=mt(a)+u):u>mt(t)?(a=t+1,o=u-mt(t)):(a=t,o=u),{year:a,dayOfYear:o}}function wt(t,e,n){var i,r,a=xt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?(r=t.year()-1,i=o+Mt(r,e,n)):o>Mt(t.year(),e,n)?(i=o-Mt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Mt(t,e,n){var i=xt(t,e,n),r=xt(t+1,e,n);return(mt(t)-i+r)/7}function St(t){return wt(t,this._week.dow,this._week.doy).week}function Et(){return this._week.dow}function kt(){return this._week.doy}function Tt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ct(t){var e=wt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function At(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Rt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Lt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function It(t,e,n){var i,r,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?(r=dr.call(this._weekdaysParse,o),-1!==r?r:null):"ddd"===e?(r=dr.call(this._shortWeekdaysParse,o),-1!==r?r:null):(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):"dddd"===e?-1!==(r=dr.call(this._weekdaysParse,o))?r:-1!==(r=dr.call(this._shortWeekdaysParse,o))?r:(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):"ddd"===e?-1!==(r=dr.call(this._shortWeekdaysParse,o))?r:-1!==(r=dr.call(this._weekdaysParse,o))?r:(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):-1!==(r=dr.call(this._minWeekdaysParse,o))?r:-1!==(r=dr.call(this._weekdaysParse,o))?r:(r=dr.call(this._shortWeekdaysParse,o),-1!==r?r:null)}function Dt(t,e,n){var i,r,a;if(this._weekdaysParseExact)return It.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,"d")):e}function zt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Bt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ft(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ut(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sr),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Er),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wt(){function t(t,e){return e.length-t.length}var e,n,i,r,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);for(o.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=tt(s[e]),l[e]=tt(l[e]),u[e]=tt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Gt(){return this.hours()%12||12}function Vt(){return this.hours()||24}function Ht(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Yt(t,e){return e._meridiemParse}function qt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Xt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function Kt(t){for(var e,n,i,r,a=0;a0;){if(i=Qt(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&_(r,n,!0)>=e-1)break;e--}a++}return null}function Qt(e){var n=null;if(!Or[e]&&void 0!==t&&t&&t.exports)try{n=kr._abbr,function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Jt(n)}catch(t){}return Or[e]}function Jt(t,e){var n;return t&&(n=a(e)?ee(t):$t(t,e))&&(kr=n),kr._abbr}function $t(t,e){if(null!==e){var n=Pr;if(e.abbr=t,null!=Or[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Or[t]._config;else if(null!=e.parentLocale){if(null==Or[e.parentLocale])return Ar[e.parentLocale]||(Ar[e.parentLocale]=[]),Ar[e.parentLocale].push({name:t,config:e}),null;n=Or[e.parentLocale]._config}return Or[t]=new C(T(n,e)),Ar[t]&&Ar[t].forEach(function(t){$t(t.name,t.config)}),Jt(t),Or[t]}return delete Or[t],null}function te(t,e){if(null!=e){var n,i=Pr;null!=Or[t]&&(i=Or[t]._config),e=T(i,e),n=new C(e),n.parentLocale=Or[t],Or[t]=n,Jt(t)}else null!=Or[t]&&(null!=Or[t].parentLocale?Or[t]=Or[t].parentLocale:null!=Or[t]&&delete Or[t]);return Or[t]}function ee(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return kr;if(!n(t)){if(e=Qt(t))return e;t=[t]}return Kt(t)}function ne(){return Ti(Or)}function ie(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[rr]<0||n[rr]>11?rr:n[ar]<1||n[ar]>rt(n[ir],n[rr])?ar:n[or]<0||n[or]>24||24===n[or]&&(0!==n[sr]||0!==n[lr]||0!==n[ur])?or:n[sr]<0||n[sr]>59?sr:n[lr]<0||n[lr]>59?lr:n[ur]<0||n[ur]>999?ur:-1,f(t)._overflowDayOfYear&&(ear)&&(e=ar),f(t)._overflowWeeks&&-1===e&&(e=cr),f(t)._overflowWeekday&&-1===e&&(e=hr),f(t).overflow=e),t}function re(t){var e,n,i,r,a,o,s=t._i,l=Rr.exec(s)||Lr.exec(s);if(l){for(f(t).iso=!0,e=0,n=Dr.length;e10?"YYYY ":"YY "),a="HH:mm"+(n[4]?":ss":""),n[1]){var h=new Date(n[2]),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][h.getDay()];if(n[1].substr(0,3)!==d)return f(t).weekdayMismatch=!0,void(t._isValid=!1)}switch(n[5].length){case 2:0===l?s=" +0000":(l=c.indexOf(n[5][1].toUpperCase())-12,s=(l<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=u[n[5]];break;default:s=u[" GMT"]}n[5]=s,t._i=n.splice(1).join(""),o=" ZZ",t._f=i+r+a+o,he(t),f(t).rfc2822=!0}else t._isValid=!1}function oe(t){var n=zr.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));re(t),!1===t._isValid&&(delete t._isValid,ae(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function se(t,e,n){return null!=t?t:null!=e?e:n}function le(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ue(t){var e,n,i,r,a=[];if(!t._d){for(i=le(t),t._w&&null==t._a[ar]&&null==t._a[rr]&&ce(t),null!=t._dayOfYear&&(r=se(t._a[ir],i[ir]),(t._dayOfYear>mt(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=bt(r,0,t._dayOfYear),t._a[rr]=n.getUTCMonth(),t._a[ar]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[or]&&0===t._a[sr]&&0===t._a[lr]&&0===t._a[ur]&&(t._nextDay=!0,t._a[or]=0),t._d=(t._useUTC?bt:yt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[or]=24)}}function ce(t){var e,n,i,r,a,o,s,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)a=1,o=4,n=se(e.GG,t._a[ir],wt(be(),1,4).year),i=se(e.W,1),((r=se(e.E,1))<1||r>7)&&(l=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var u=wt(be(),a,o);n=se(e.gg,t._a[ir],u.year),i=se(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+a,(e.e<0||e.e>6)&&(l=!0)):r=a}i<1||i>Mt(n,a,o)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=_t(n,i,r,a,o),t._a[ir]=s.year,t._dayOfYear=s.dayOfYear)}function he(t){if(t._f===e.ISO_8601)return void re(t);if(t._f===e.RFC_2822)return void ae(t);t._a=[],f(t).empty=!0;var n,i,r,a,o,s=""+t._i,l=s.length,u=0;for(r=K(t._f,t._locale).match(Ii)||[],n=0;n0&&f(t).unusedInput.push(o),s=s.slice(s.indexOf(i)+i.length),u+=i.length),zi[a]?(i?f(t).empty=!1:f(t).unusedTokens.push(a),it(a,i,t)):t._strict&&!i&&f(t).unusedTokens.push(a);f(t).charsLeftOver=l-u,s.length>0&&f(t).unusedInput.push(s),t._a[or]<=12&&!0===f(t).bigHour&&t._a[or]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[or]=de(t._locale,t._a[or],t._meridiem),ue(t),ie(t)}function de(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function fe(t){var e,n,i,r,a;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ue(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=ge(t),t._a){var e=t._isUTC?h(t._a):be(t._a);this._isDSTShifted=this.isValid()&&_(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function je(){return!!this.isValid()&&!this._isUTC}function We(){return!!this.isValid()&&this._isUTC}function Ge(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ve(t,e){var n,i,r,a=t,s=null;return Te(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(a={},e?a[e]=t:a.milliseconds=t):(s=Vr.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:x(s[ar])*n,h:x(s[or])*n,m:x(s[sr])*n,s:x(s[lr])*n,ms:x(Ce(1e3*s[ur]))*n}):(s=Hr.exec(t))?(n="-"===s[1]?-1:1,a={y:He(s[2],n),M:He(s[3],n),w:He(s[4],n),d:He(s[5],n),h:He(s[6],n),m:He(s[7],n),s:He(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=qe(be(a.from),be(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new ke(a),Te(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function He(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ye(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function qe(t,e){var n;return t.isValid()&&e.isValid()?(e=Ae(e,t),t.isBefore(e)?n=Ye(t,e):(n=Ye(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Xe(t,e){return function(n,i){var r,a;return null===i||isNaN(+i)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=i,i=a),n="string"==typeof n?+n:n,r=Ve(n,i),Ze(this,r,t),this}}function Ze(t,n,i,r){var a=n._milliseconds,o=Ce(n._days),s=Ce(n._months);t.isValid()&&(r=null==r||r,a&&t._d.setTime(t._d.valueOf()+a*i),o&&W(t,"Date",j(t,"Date")+o*i),s&&ut(t,j(t,"Month")+s*i),r&&e.updateOffset(t,o||s))}function Ke(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qe(t,n){var i=t||be(),r=Ae(i,this).startOf("day"),a=e.calendarFormat(this,r)||"sameElse",o=n&&(E(n[a])?n[a].call(this,i):n[a]);return this.format(o||this.localeData().calendar(a,this,be(i)))}function Je(){return new v(this)}function $e(t,e){var n=y(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&(e=N(a(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()9999?Z(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):E(Date.prototype.toISOString)?this.toDate().toISOString():Z(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function cn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)}function hn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=Z(this,t);return this.localeData().postformat(n)}function dn(t,e){return this.isValid()&&(y(t)&&t.isValid()||be(t).isValid())?Ve({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fn(t){return this.from(be(),t)}function pn(t,e){return this.isValid()&&(y(t)&&t.isValid()||be(t).isValid())?Ve({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mn(t){return this.to(be(),t)}function gn(t){var e;return void 0===t?this._locale._abbr:(e=ee(t),null!=e&&(this._locale=e),this)}function vn(){return this._locale}function yn(t){switch(t=N(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function bn(t){return void 0===(t=N(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function xn(){return this._d.valueOf()-6e4*(this._offset||0)}function _n(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function Mn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Sn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function En(){return this.isValid()?this.toISOString():null}function kn(){return p(this)}function Tn(){return c({},f(this))}function Cn(){return f(this).overflow}function Pn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function On(t,e){Y(0,[t,t.length],0,e)}function An(t){return Dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Rn(t){return Dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Mt(this.year(),1,4)}function In(){var t=this.localeData()._week;return Mt(this.year(),t.dow,t.doy)}function Dn(t,e,n,i,r){var a;return null==t?wt(this,i,r).year:(a=Mt(t,i,r),e>a&&(e=a),Nn.call(this,t,e,n,i,r))}function Nn(t,e,n,i,r){var a=_t(t,e,n,i,r),o=bt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function zn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Bn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Fn(t,e){e[ur]=x(1e3*("0."+t))}function Un(){return this._isUTC?"UTC":""}function jn(){return this._isUTC?"Coordinated Universal Time":""}function Wn(t){return be(1e3*t)}function Gn(){return be.apply(null,arguments).parseZone()}function Vn(t){return t}function Hn(t,e,n,i){var r=ee(),a=h().set(i,e);return r[n](a,t)}function Yn(t,e,n){if(o(t)&&(e=t,t=void 0),t=t||"",null!=e)return Hn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Hn(t,i,n,"month");return r}function qn(t,e,n,i){"boolean"==typeof t?(o(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,o(e)&&(n=e,e=void 0),e=e||"");var r=ee(),a=t?r._week.dow:0;if(null!=n)return Hn(e,(n+a)%7,i,"day");var s,l=[];for(s=0;s<7;s++)l[s]=Hn(e,(s+a)%7,i,"day");return l}function Xn(t,e){return Yn(t,e,"months")}function Zn(t,e){return Yn(t,e,"monthsShort")}function Kn(t,e,n){return qn(t,e,n,"weekdays")}function Qn(t,e,n){return qn(t,e,n,"weekdaysShort")}function Jn(t,e,n){return qn(t,e,n,"weekdaysMin")}function $n(){var t=this._data;return this._milliseconds=na(this._milliseconds),this._days=na(this._days),this._months=na(this._months),t.milliseconds=na(t.milliseconds),t.seconds=na(t.seconds),t.minutes=na(t.minutes),t.hours=na(t.hours),t.months=na(t.months),t.years=na(t.years),this}function ti(t,e,n,i){var r=Ve(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function ei(t,e){return ti(this,t,e,1)}function ni(t,e){return ti(this,t,e,-1)}function ii(t){return t<0?Math.floor(t):Math.ceil(t)}function ri(){var t,e,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*ii(oi(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=b(a/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,n=b(e/60),l.hours=n%24,o+=b(n/24),r=b(ai(o)),s+=r,o-=ii(oi(r)),i=b(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function ai(t){return 4800*t/146097}function oi(t){return 146097*t/4800}function si(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=N(t))||"year"===t)return e=this._days+i/864e5,n=this._months+ai(e),"month"===t?n:n/12;switch(e=this._days+Math.round(oi(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function ui(t){return function(){return this.as(t)}}function ci(t){return t=N(t),this.isValid()?this[t+"s"]():NaN}function hi(t){return function(){return this.isValid()?this._data[t]:NaN}}function di(){return b(this.days()/7)}function fi(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function pi(t,e,n){var i=Ve(t).abs(),r=ya(i.as("s")),a=ya(i.as("m")),o=ya(i.as("h")),s=ya(i.as("d")),l=ya(i.as("M")),u=ya(i.as("y")),c=r<=ba.ss&&["s",r]||r0,c[4]=n,fi.apply(null,c)}function mi(t){return void 0===t?ya:"function"==typeof t&&(ya=t,!0)}function gi(t,e){return void 0!==ba[t]&&(void 0===e?ba[t]:(ba[t]=e,"s"===t&&(ba.ss=e-1),!0))}function vi(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pi(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function yi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=xa(this._milliseconds)/1e3,r=xa(this._days),a=xa(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60,n=b(a/12),a%=12;var o=n,s=a,l=r,u=e,c=t,h=i,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(u||c||h?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(h?h+"S":""):"P0D"}var bi,xi;xi=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i68?1900:2e3)};var yr=U("FullYear",!0);Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),B("week",5),B("isoWeek",5),Q("w",Gi),Q("ww",Gi,Fi),Q("W",Gi),Q("WW",Gi,Fi),nt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=x(t)});var br={dow:0,doy:6};Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),Q("d",Gi),Q("e",Gi),Q("E",Gi),Q("dd",function(t,e){return e.weekdaysMinRegex(t)}),Q("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Q("dddd",function(t,e){return e.weekdaysRegex(t)}),nt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t}),nt(["d","e","E"],function(t,e,n,i){e[i]=x(t)});var xr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_r="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mr=tr,Sr=tr,Er=tr;Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Gt),Y("k",["kk",2],0,Vt),Y("hmm",0,0,function(){return""+Gt.apply(this)+H(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Gt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),Ht("a",!0),Ht("A",!1),D("hour","h"),B("hour",13),Q("a",Yt),Q("A",Yt),Q("H",Gi),Q("h",Gi),Q("k",Gi),Q("HH",Gi,Fi),Q("hh",Gi,Fi),Q("kk",Gi,Fi),Q("hmm",Vi),Q("hmmss",Hi),Q("Hmm",Vi),Q("Hmmss",Hi),et(["H","HH"],or),et(["k","kk"],function(t,e,n){var i=x(t);e[or]=24===i?0:i}),et(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),et(["h","hh"],function(t,e,n){e[or]=x(t),f(n).bigHour=!0}),et("hmm",function(t,e,n){var i=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i)),f(n).bigHour=!0}),et("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i,2)),e[lr]=x(t.substr(r)),f(n).bigHour=!0}),et("Hmm",function(t,e,n){var i=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i))}),et("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i,2)),e[lr]=x(t.substr(r))});var kr,Tr=/[ap]\.?m?\.?/i,Cr=U("Hours",!0),Pr={calendar:Ci,longDateFormat:Pi,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Oi,relativeTime:Ai,months:pr,monthsShort:mr,week:br,weekdays:xr,weekdaysMin:wr,weekdaysShort:_r,meridiemParse:Tr},Or={},Ar={},Rr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ir=/Z|[+-]\d\d(?::?\d\d)?/,Dr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Nr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zr=/^\/?Date\((\-?\d+)/i,Br=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Fr=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?tthis?this:t:m()}),jr=function(){return Date.now?Date.now():+new Date},Wr=["year","quarter","month","week","day","hour","minute","second","millisecond"];Pe("Z",":"),Pe("ZZ",""),Q("Z",Ji),Q("ZZ",Ji),et(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Oe(Ji,t)});var Gr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Vr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Hr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ve.fn=ke.prototype,Ve.invalid=Ee;var Yr=Xe(1,"add"),qr=Xe(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xr=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),On("gggg","weekYear"),On("ggggg","weekYear"),On("GGGG","isoWeekYear"),On("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),Q("G",Ki),Q("g",Ki),Q("GG",Gi,Fi),Q("gg",Gi,Fi),Q("GGGG",qi,ji),Q("gggg",qi,ji),Q("GGGGG",Xi,Wi),Q("ggggg",Xi,Wi),nt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=x(t)}),nt(["gg","GG"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),D("quarter","Q"),B("quarter",7),Q("Q",Bi),et("Q",function(t,e){e[rr]=3*(x(t)-1)}),Y("D",["DD",2],"Do","date"),D("date","D"),B("date",9),Q("D",Gi),Q("DD",Gi,Fi),Q("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),et(["D","DD"],ar),et("Do",function(t,e){e[ar]=x(t.match(Gi)[0],10)});var Zr=U("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),B("dayOfYear",4),Q("DDD",Yi),Q("DDDD",Ui),et(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),Y("m",["mm",2],0,"minute"),D("minute","m"),B("minute",14),Q("m",Gi),Q("mm",Gi,Fi),et(["m","mm"],sr);var Kr=U("Minutes",!1);Y("s",["ss",2],0,"second"),D("second","s"),B("second",15),Q("s",Gi),Q("ss",Gi,Fi),et(["s","ss"],lr);var Qr=U("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),B("millisecond",16),Q("S",Yi,Bi),Q("SS",Yi,Fi),Q("SSS",Yi,Ui);var Jr;for(Jr="SSSS";Jr.length<=9;Jr+="S")Q(Jr,Zi);for(Jr="S";Jr.length<=9;Jr+="S")et(Jr,Fn);var $r=U("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var ta=v.prototype;ta.add=Yr,ta.calendar=Qe,ta.clone=Je,ta.diff=on,ta.endOf=bn,ta.format=hn,ta.from=dn,ta.fromNow=fn,ta.to=pn,ta.toNow=mn,ta.get=G,ta.invalidAt=Cn,ta.isAfter=$e,ta.isBefore=tn,ta.isBetween=en,ta.isSame=nn,ta.isSameOrAfter=rn,ta.isSameOrBefore=an,ta.isValid=kn,ta.lang=Xr,ta.locale=gn,ta.localeData=vn,ta.max=Ur,ta.min=Fr,ta.parsingFlags=Tn,ta.set=V,ta.startOf=yn,ta.subtract=qr,ta.toArray=Mn,ta.toObject=Sn,ta.toDate=wn,ta.toISOString=un,ta.inspect=cn,ta.toJSON=En,ta.toString=ln,ta.unix=_n,ta.valueOf=xn,ta.creationData=Pn,ta.year=yr,ta.isLeapYear=vt,ta.weekYear=An,ta.isoWeekYear=Rn,ta.quarter=ta.quarters=zn,ta.month=ct,ta.daysInMonth=ht,ta.week=ta.weeks=Tt,ta.isoWeek=ta.isoWeeks=Ct,ta.weeksInYear=In,ta.isoWeeksInYear=Ln,ta.date=Zr,ta.day=ta.days=Nt,ta.weekday=zt,ta.isoWeekday=Bt,ta.dayOfYear=Bn,ta.hour=ta.hours=Cr,ta.minute=ta.minutes=Kr,ta.second=ta.seconds=Qr,ta.millisecond=ta.milliseconds=$r,ta.utcOffset=Le,ta.utc=De,ta.local=Ne,ta.parseZone=ze,ta.hasAlignedHourOffset=Be,ta.isDST=Fe,ta.isLocal=je,ta.isUtcOffset=We,ta.isUtc=Ge,ta.isUTC=Ge,ta.zoneAbbr=Un,ta.zoneName=jn,ta.dates=M("dates accessor is deprecated. Use date instead.",Zr),ta.months=M("months accessor is deprecated. Use month instead",ct),ta.years=M("years accessor is deprecated. Use year instead",yr),ta.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ie),ta.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ue);var ea=C.prototype;ea.calendar=P,ea.longDateFormat=O,ea.invalidDate=A,ea.ordinal=R,ea.preparse=Vn,ea.postformat=Vn,ea.relativeTime=L,ea.pastFuture=I,ea.set=k,ea.months=at,ea.monthsShort=ot,ea.monthsParse=lt,ea.monthsRegex=ft,ea.monthsShortRegex=dt,ea.week=St,ea.firstDayOfYear=kt,ea.firstDayOfWeek=Et,ea.weekdays=At,ea.weekdaysMin=Lt,ea.weekdaysShort=Rt,ea.weekdaysParse=Dt,ea.weekdaysRegex=Ft,ea.weekdaysShortRegex=Ut,ea.weekdaysMinRegex=jt,ea.isPM=qt,ea.meridiem=Xt,Jt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=M("moment.lang is deprecated. Use moment.locale instead.",Jt),e.langData=M("moment.langData is deprecated. Use moment.localeData instead.",ee);var na=Math.abs,ia=ui("ms"),ra=ui("s"),aa=ui("m"),oa=ui("h"),sa=ui("d"),la=ui("w"),ua=ui("M"),ca=ui("y"),ha=hi("milliseconds"),da=hi("seconds"),fa=hi("minutes"),pa=hi("hours"),ma=hi("days"),ga=hi("months"),va=hi("years"),ya=Math.round,ba={ss:44,s:45,m:45,h:22,d:26,M:11},xa=Math.abs,_a=ke.prototype;return _a.isValid=Se,_a.abs=$n,_a.add=ei,_a.subtract=ni,_a.as=si,_a.asMilliseconds=ia,_a.asSeconds=ra,_a.asMinutes=aa,_a.asHours=oa,_a.asDays=sa,_a.asWeeks=la,_a.asMonths=ua,_a.asYears=ca,_a.valueOf=li,_a._bubble=ri,_a.get=ci,_a.milliseconds=ha,_a.seconds=da,_a.minutes=fa,_a.hours=pa,_a.days=ma,_a.weeks=di,_a.months=ga,_a.years=va,_a.humanize=vi,_a.toISOString=yi,_a.toString=yi,_a.toJSON=yi,_a.locale=gn,_a.localeData=vn,_a.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",yi),_a.lang=Xr,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),Q("x",Ki),Q("X",$i),et("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),et("x",function(t,e,n){n._d=new Date(x(t))}),e.version="2.18.1",function(t){bi=t}(be),e.fn=ta,e.min=_e,e.max=we,e.now=jr,e.utc=h,e.unix=Wn,e.months=Xn,e.isDate=s,e.locale=Jt,e.invalid=m,e.duration=Ve,e.isMoment=y,e.weekdays=Kn,e.parseZone=Gn,e.localeData=ee,e.isDuration=Te,e.monthsShort=Zn,e.weekdaysMin=Jn,e.defineLocale=$t,e.updateLocale=te,e.locales=ne,e.weekdaysShort=Qn,e.normalizeUnits=N,e.relativeTimeRounding=mi,e.relativeTimeThreshold=gi,e.calendarFormat=Ke,e.prototype=ta,e})}).call(e,n(112)(t))},function(t,e,n){var i=n(366),r=n(369),a=n(368),o=n(370),s=n(367),l=[0,0];t.exports.computeMiter=function(t,e,n,o,u){return i(t,n,o),a(t,t),r(e,-t[1],t[0]),r(l,-n[1],n[0]),u/s(e,l)},t.exports.normal=function(t,e){return r(t,-e[1],e[0]),t},t.exports.direction=function(t,e,n){return o(t,e,n),a(t,t),t}},function(t,e,n){function i(t,e,n){t.push([[e[0],e[1]],n])}var r=n(402),a=[0,0],o=[0,0],s=[0,0],l=[0,0];t.exports=function(t,e){var n=null,u=[];e&&(t=t.slice(),t.push(t[0]));for(var c=t.length,h=1;h2&&e){var g=t[c-2],v=t[0],y=t[1];r.direction(a,v,g),r.direction(o,y,v),r.normal(n,a);var b=r.computeMiter(s,l,a,o,1);u[0][0]=l.slice(),u[c-1][0]=l.slice(),u[0][1]=b,u[c-1][1]=b,u.pop()}return u}},function(t,e,n){"use strict";function i(t,e,n){if(!(this instanceof i))return new i(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var r=t.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}var r=n(145);i.fromMGRS=function(t){return new i(n.i(r.b)(t))},i.prototype.toMGRS=function(t){return n.i(r.c)([this.x,this.y],t)},e.a=i},function(t,e,n){"use strict";e.a=function(t,e,n){var i,r,a,o=n.x,s=n.y,l=n.z||0,u={};for(a=0;a<3;a++)if(!e||2!==a||void 0!==n.z)switch(0===a?(i=o,r="x"):1===a?(i=s,r="y"):(i=l,r="z"),t.axis[a]){case"e":u[r]=i;break;case"w":u[r]=-i;break;case"n":u[r]=i;break;case"s":u[r]=-i;break;case"u":void 0!==n[r]&&(u.z=i);break;case"d":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}},function(t,e,n){"use strict";function i(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}e.a=function(t){i(t.x),i(t.y)}},function(t,e,n){"use strict";var i=n(10);e.a=function(t,e){if(void 0===t){if((t=Math.floor(30*(n.i(i.a)(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}},function(t,e,n){"use strict";var i=n(146),r=n(414);e.a=function(t){var e=Math.abs(t);return e=n.i(r.a)(e*(1+e/(n.i(i.a)(1,e)+1))),t<0?-e:e}},function(t,e,n){"use strict";e.a=function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,a=t[r],o=0;--r>=0;)n=i*a-o+t[r],o=a,a=n;return Math.sin(e)*n}},function(t,e,n){"use strict";var i=n(149),r=n(411);e.a=function(t,e,a){for(var o,s,l=Math.sin(e),u=Math.cos(e),c=n.i(i.a)(a),h=n.i(r.a)(a),d=2*u*h,f=-2*l*c,p=t.length-1,m=t[p],g=0,v=0,y=0;--p>=0;)o=v,s=g,v=m,g=y,m=d*v-o-f*g+t[p],y=f*v-s+d*g;return d=l*h,f=u*c,[d*m-f*y,d*y+f*m]}},function(t,e,n){"use strict";e.a=function(t){var e=Math.exp(t);return e=(e+1/e)/2}},function(t,e,n){"use strict";e.a=function(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,a=t[r],o=0;--r>=0;)n=i*a-o+t[r],o=a,a=n;return e+n*Math.sin(2*e)}},function(t,e,n){"use strict";var i=n(7);e.a=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*i.a:i.a;for(var r,a,o,s,l=Math.asin(.5*e),u=0;u<30;u++)if(a=Math.sin(l),o=Math.cos(l),s=t*a,r=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-a/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),l+=r,Math.abs(r)<=1e-10)return l;return NaN}},function(t,e,n){"use strict";e.a=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}},function(t,e,n){"use strict";e.a=function(t,e){return Math.pow((1-t)/(1+t),e)}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i={};i.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},i.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},i.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},i.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},i.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},i.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},i.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},i.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},i.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},i.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},i.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},i.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},i.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},i.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},i.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},i.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},i.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i={};i.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},i.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},i.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},i.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},i.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},i.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},i.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},i.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},i.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},i.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},i.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},i.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},i.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},i.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},i.hough={a:6378270,rf:297,ellipseName:"Hough"},i.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},i.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},i.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},i.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},i.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},i.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},i.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},i.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},i.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var r=i.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};i.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i={};i.greenwich=0,i.lisbon=-9.131906111111,i.paris=2.337229166667,i.bogota=-74.080916666667,i.madrid=-3.687938888889,i.rome=12.452333333333,i.bern=7.439583333333,i.jakarta=106.807719444444,i.ferro=-17.666666666667,i.brussels=4.367975,i.stockholm=18.058277777778,i.athens=23.7163375,i.oslo=10.722916666667},function(t,e,n){"use strict";e.a={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}},function(t,e,n){"use strict";function i(t,e,i){var r,a,o;return Array.isArray(i)?(r=n.i(s.a)(t,e,i),3===i.length?[r.x,r.y,r.z]:[r.x,r.y]):(a=n.i(s.a)(t,e,i),o=Object.keys(i),2===o.length?a:(o.forEach(function(t){"x"!==t&&"y"!==t&&(a[t]=i[t])}),a))}function r(t){return t instanceof o.a?t:t.oProj?t.oProj:n.i(o.a)(t)}function a(t,e,n){t=r(t);var a,o=!1;return void 0===e?(e=t,t=l,o=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,e=t,t=l,o=!0),e=r(e),n?i(t,e,n):(a={forward:function(n){return i(t,e,n)},inverse:function(n){return i(e,t,n)}},o&&(a.oProj=e),a)}var o=n(102),s=n(154),l=n.i(o.a)("WGS84");e.a=a},function(t,e,n){"use strict";function i(t,e,n,i,a,o){var s={};return s.datum_type=void 0===t||"none"===t?r.k:r.l,e&&(s.datum_params=e.map(parseFloat),0===s.datum_params[0]&&0===s.datum_params[1]&&0===s.datum_params[2]||(s.datum_type=r.h),s.datum_params.length>3&&(0===s.datum_params[3]&&0===s.datum_params[4]&&0===s.datum_params[5]&&0===s.datum_params[6]||(s.datum_type=r.i,s.datum_params[3]*=r.f,s.datum_params[4]*=r.f,s.datum_params[5]*=r.f,s.datum_params[6]=s.datum_params[6]/1e6+1))),s.a=n,s.b=i,s.es=a,s.ep2=o,s}var r=n(7);e.a=i},function(t,e,n){"use strict";function i(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(t.datum_type===l.h?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==l.i||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function r(t,e,n){var i,r,a,o,s=t.x,u=t.y,c=t.z?t.z:0;if(u<-l.a&&u>-1.001*l.a)u=-l.a;else if(u>l.a&&u<1.001*l.a)u=l.a;else if(u<-l.a||u>l.a)return null;return s>Math.PI&&(s-=2*Math.PI),r=Math.sin(u),o=Math.cos(u),a=r*r,i=n/Math.sqrt(1-e*a),{x:(i+c)*o*Math.cos(s),y:(i+c)*o*Math.sin(s),z:(i*(1-e)+c)*r}}function a(t,e,n,i){var r,a,o,s,u,c,h,d,f,p,m,g,v,y,b,x,_=t.x,w=t.y,M=t.z?t.z:0;if(r=Math.sqrt(_*_+w*w),a=Math.sqrt(_*_+w*w+M*M),r/n<1e-12){if(y=0,a/n<1e-12)return b=l.a,x=-i,{x:t.x,y:t.y,z:t.z}}else y=Math.atan2(w,_);o=M/a,s=r/a,u=1/Math.sqrt(1-e*(2-e)*s*s),d=s*(1-e)*u,f=o*u,v=0;do{v++,h=n/Math.sqrt(1-e*f*f),x=r*d+M*f-h*(1-e*f*f),c=e*h/(h+x),u=1/Math.sqrt(1-c*(2-c)*s*s),p=s*(1-c)*u,m=o*u,g=m*d-p*f,d=p,f=m}while(g*g>1e-24&&v<30);return b=Math.atan(m/Math.abs(p)),{x:y,y:b,z:x}}function o(t,e,n){if(e===l.h)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(e===l.i){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6];return{x:c*(t.x-u*t.y+s*t.z)+i,y:c*(u*t.x+t.y-o*t.z)+r,z:c*(-s*t.x+o*t.y+t.z)+a}}}function s(t,e,n){if(e===l.h)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(e===l.i){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6],h=(t.x-i)/c,d=(t.y-r)/c,f=(t.z-a)/c;return{x:h+u*d-s*f,y:-u*h+d+o*f,z:s*h-o*d+f}}}e.a=i,e.b=r,e.e=a,e.c=o,e.d=s;var l=n(7)},function(t,e,n){"use strict";function i(t){return t===r.h||t===r.i}var r=n(7),a=n(422);e.a=function(t,e,o){return n.i(a.a)(t,e)?o:t.datum_type===r.k||e.datum_type===r.k?o:t.es!==e.es||t.a!==e.a||i(t.datum_type)||i(e.datum_type)?(o=n.i(a.b)(o,t.es,t.a),i(t.datum_type)&&(o=n.i(a.c)(o,t.datum_type,t.datum_params)),i(e.datum_type)&&(o=n.i(a.d)(o,e.datum_type,e.datum_params)),n.i(a.e)(o,e.es,e.a,e.b)):o}},function(t,e,n){"use strict";function i(t,e,n,i){var r=t*t,o=e*e,s=(r-o)/r,l=0;return i?(t*=1-s*(a.m+s*(a.n+s*a.o)),r=t*t,s=0):l=Math.sqrt(s),{es:s,e:l,ep2:(r-o)/o}}function r(t,e,i,r,l){if(!t){var u=n.i(s.a)(o.a,r);u||(u=o.b),t=u.a,e=u.b,i=u.rf}return i&&!e&&(e=(1-1/i)*t),(0===i||Math.abs(t-e)-1})}function o(t){return"+"===t[0]}function s(t){return i(t)?r(t)?l.a[t]:a(t)?n.i(u.a)(t):o(t)?n.i(c.a)(t):void 0:t}var l=n(151),u=n(159),c=n(152),h=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];e.a=s},function(t,e,n){"use strict";function i(t,e){var n=c.length;return t.names?(c[n]=t,t.names.forEach(function(t){u[t.toLowerCase()]=n}),this):(console.log(e),!0)}function r(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==u[e]&&c[u[e]]?c[u[e]]:void 0}function a(){l.forEach(i)}var o=n(442),s=n(441),l=[o.a,s.a],u={},c=[];e.a={start:a,add:i,get:r}},function(t,e,n){"use strict";function i(){Math.abs(this.lat1+this.lat2)h.d?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function r(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var r=n.i(l.a)(this.e3,this.sin_phi,this.cos_phi),a=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*n.i(u.a)(e-this.long0),s=a*Math.sin(o)+this.x0,c=this.rh-a*Math.cos(o)+this.y0;return t.x=s,t.y=c,t}function a(t){var e,i,r,a,o,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),r=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),r=-1),a=0,0!==e&&(a=Math.atan2(r*t.x,r*t.y)),r=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(i=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,i)),o=n.i(u.a)(a/this.ns0+this.long0),t.x=o,t.y=s,t}function o(t,e){var i,r,a,o,s,l=n.i(c.a)(.5*e);if(t2*s.a*this.a)return;return i=e/this.a,r=Math.sin(i),a=Math.cos(i),g=this.long0,Math.abs(e)<=s.d?v=this.lat0:(v=n.i(p.a)(a*this.sin_p12+t.y*r*this.cos_p12/e),y=Math.abs(this.lat0)-s.a,g=Math.abs(y)<=s.d?this.lat0>=0?n.i(o.a)(this.long0+Math.atan2(t.x,-t.y)):n.i(o.a)(this.long0-Math.atan2(-t.x,t.y)):n.i(o.a)(this.long0+Math.atan2(t.x*r,e*this.cos_p12*a-t.y*this.sin_p12*r))),t.x=g,t.y=v,t}return b=n.i(u.a)(this.es),x=n.i(c.a)(this.es),_=n.i(h.a)(this.es),w=n.i(d.a)(this.es),Math.abs(this.sin_p12-1)<=s.d?(M=this.a*n.i(l.a)(b,x,_,w,s.a),e=Math.sqrt(t.x*t.x+t.y*t.y),S=M-e,v=n.i(m.a)(S/this.a,b,x,_,w),g=n.i(o.a)(this.long0+Math.atan2(t.x,-1*t.y)),t.x=g,t.y=v,t):Math.abs(this.sin_p12+1)<=s.d?(M=this.a*n.i(l.a)(b,x,_,w,s.a),e=Math.sqrt(t.x*t.x+t.y*t.y),S=e-M,v=n.i(m.a)(S/this.a,b,x,_,w),g=n.i(o.a)(this.long0+Math.atan2(t.x,t.y)),t.x=g,t.y=v,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),T=Math.atan2(t.x,t.y),E=n.i(f.a)(this.a,this.e,this.sin_p12),C=Math.cos(T),P=this.e*this.cos_p12*C,O=-P*P/(1-this.es),A=3*this.es*(1-O)*this.sin_p12*this.cos_p12*C/(1-this.es),R=e/E,L=R-O*(1+O)*Math.pow(R,3)/6-A*(1+3*O)*Math.pow(R,4)/24,I=1-O*L*L/2-R*L*L*L/6,k=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*C),g=n.i(o.a)(this.long0+Math.asin(Math.sin(T)*Math.sin(L)/Math.cos(k))),v=Math.atan((1-this.es*I*this.sin_p12/Math.sin(k))*Math.tan(k)/(1-this.es)),t.x=g,t.y=v,t)}var o=n(10),s=n(7),l=n(73),u=n(69),c=n(70),h=n(71),d=n(72),f=n(103),p=n(44),m=n(104),g=["Azimuthal_Equidistant","aeqd"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){"use strict";function i(){this.sphere||(this.e0=n.i(s.a)(this.es),this.e1=n.i(l.a)(this.es),this.e2=n.i(u.a)(this.es),this.e3=n.i(c.a)(this.es),this.ml0=this.a*n.i(o.a)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function r(t){var e,i,r=t.x,a=t.y;if(r=n.i(d.a)(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(a)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(a),Math.cos(r))-this.lat0);else{var s=Math.sin(a),l=Math.cos(a),u=n.i(h.a)(this.a,this.e,s),c=Math.tan(a)*Math.tan(a),f=r*Math.cos(a),p=f*f,m=this.es*l*l/(1-this.es),g=this.a*n.i(o.a)(this.e0,this.e1,this.e2,this.e3,a);e=u*f*(1-p*c*(1/6-(8-c+8*m)*p/120)),i=g-this.ml0+u*s/l*p*(.5+(5-c+6*m)*p/24)}return t.x=e+this.x0,t.y=i+this.y0,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i,r=t.x/this.a,a=t.y/this.a;if(this.sphere){var o=a+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(r)),i=Math.atan2(Math.tan(r),Math.cos(o))}else{var s=this.ml0/this.a+a,l=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-m.a)<=m.d)return t.x=this.long0,t.y=m.a,a<0&&(t.y*=-1),t;var u=n.i(h.a)(this.a,this.e,Math.sin(l)),c=u*u*u/this.a/this.a*(1-this.es),g=Math.pow(Math.tan(l),2),v=r*this.a/u,y=v*v;e=l-u*Math.tan(l)/c*v*v*(.5-(1+3*g)*v*v/24),i=v*(1-y*(g/3+(1+3*g)*g*y/15))/Math.cos(l)}return t.x=n.i(d.a)(i+this.long0),t.y=n.i(f.a)(e),t}var o=n(73),s=n(69),l=n(70),u=n(71),c=n(72),h=n(103),d=n(10),f=n(56),p=n(104),m=n(7),g=["Cassini","Cassini_Soldner","cass"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){"use strict";function i(){this.sphere||(this.k0=n.i(l.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function r(t){var e,i,r=t.x,a=t.y,l=n.i(o.a)(r-this.long0);if(this.sphere)e=this.x0+this.a*l*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var u=n.i(s.a)(this.e,Math.sin(a));e=this.x0+this.a*this.k0*l,i=this.y0+this.a*u*.5/this.k0}return t.x=e,t.y=i,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=n.i(o.a)(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=n.i(u.a)(this.e,2*t.y*this.k0/this.a),e=n.i(o.a)(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t}var o=n(10),s=n(106),l=n(45),u=n(413),c=["cea"];e.a={init:i,forward:r,inverse:a,names:c}},function(t,e,n){"use strict";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function r(t){var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=n.i(s.a)(i-this.lat0);return t.x=this.x0+this.a*r*this.rc,t.y=this.y0+this.a*a,t}function a(t){var e=t.x,i=t.y;return t.x=n.i(o.a)(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=n.i(s.a)(this.lat0+(i-this.y0)/this.a),t}var o=n(10),s=n(56),l=["Equirectangular","Equidistant_Cylindrical","eqc"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){"use strict";function i(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;if(0!==i&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return a=n.i(d.a)(this.long0+o/this.ns),r=n.i(f.a)(this.g-i/this.a),t.x=a,t.y=r,t;var s=this.g-i/this.a;return r=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3),a=n.i(d.a)(this.long0+o/this.ns),t.x=a,t.y=r,t}var o=n(69),s=n(70),l=n(71),u=n(72),c=n(45),h=n(73),d=n(10),f=n(56),p=n(104),m=n(7),g=["Equidistant_Conic","eqdc"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){"use strict";function i(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+s.b)/(Math.pow(Math.tan(.5*this.lat0+s.b),this.C)*n.i(o.a)(this.e*t,this.ratexp))}function r(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+s.b),this.C)*n.i(o.a)(this.e*Math.sin(i),this.ratexp))-s.a,t.x=this.C*e,t}function a(t){for(var e=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+s.b)/this.K,1/this.C),a=l;a>0&&(i=2*Math.atan(r*n.i(o.a)(this.e*Math.sin(t.y),-.5*this.e))-s.a,!(Math.abs(i-t.y)<1e-14));--a)t.y=i;return a?(t.x=e,t.y=i,t):null}var o=n(415),s=n(7),l=20,u=["gauss"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){"use strict";function i(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function r(t){var e,i,r,a,s,u,c,h,d=t.x,f=t.y;return r=n.i(o.a)(d-this.long0),e=Math.sin(f),i=Math.cos(f),a=Math.cos(r),u=this.sin_p14*e+this.cos_p14*i*a,s=1,u>0||Math.abs(u)<=l.d?(c=this.x0+this.a*s*i*Math.sin(r)/u,h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*a)/u):(c=this.x0+this.infinity_dist*i*Math.sin(r),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*a)),t.x=c,t.y=h,t}function a(t){var e,i,r,a,l,u;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(a=Math.atan2(e,this.rc),i=Math.sin(a),r=Math.cos(a),u=n.i(s.a)(r*this.sin_p14+t.y*i*this.cos_p14/e),l=Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),l=n.i(o.a)(this.long0+l)):(u=this.phic0,l=0),t.x=l,t.y=u,t}var o=n(10),s=n(44),l=n(7),u=["gnom"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){"use strict";function i(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function r(t){var e,i,r,a,s,l,u,c=t.x,h=t.y,d=n.i(o.a)(c-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),r=-d*this.alfa,a=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),s=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(a)),l=this.n*s,u=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(a/2+this.s45),this.n),t.y=u*Math.cos(l)/1,t.x=u*Math.sin(l)/1,this.czech||(t.y*=-1,t.x*=-1),t}function a(t){var e,n,i,r,a,o,s,l,u=t.x;t.x=t.y,t.y=u,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),a=Math.atan2(t.y,t.x),r=a/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,s=e,l=0;var c=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-t.y)<1e-10&&(l=1),s=t.y,c+=1}while(0===l&&c<15);return c>=15?null:t}var o=n(10),s=["Krovak","krovak"];e.a={init:i,forward:r,inverse:a,names:s}},function(t,e,n){"use strict";function i(){var t=Math.abs(this.lat0);if(Math.abs(t-l.a)0){var e;switch(this.qp=n.i(u.a)(this.e,1),this.mmf=.5/(1-this.es),this.apa=o(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=n.i(u.a)(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function r(t){var e,i,r,a,o,s,h,d,f,p,m=t.x,g=t.y;if(m=n.i(c.a)(m-this.long0),this.sphere){if(o=Math.sin(g),p=Math.cos(g),r=Math.cos(m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+p*r:1+this.sinph0*o+this.cosph0*p*r)<=l.d)return null;i=Math.sqrt(2/i),e=i*p*Math.sin(m),i*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*p*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.phi0)=0?(e=(f=Math.sqrt(s))*a,i=r*(this.mode===this.S_POLE?f:-f)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i,r,a,o,u,h,d=t.x/this.a,f=t.y/this.a;if(this.sphere){var p,m=0,g=0;if(p=Math.sqrt(d*d+f*f),(i=.5*p)>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(i),m=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(p)<=l.d?0:Math.asin(f*g/p),d*=g,f=m*p;break;case this.OBLIQ:i=Math.abs(p)<=l.d?this.phi0:Math.asin(m*this.sinph0+f*g*this.cosph0/p),d*=g*this.cosph0,f=(m-Math.sin(i)*this.sinph0)*p;break;case this.N_POLE:f=-f,i=l.a-i;break;case this.S_POLE:i-=l.a}e=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(d,f):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(d/=this.dd,f*=this.dd,(u=Math.sqrt(d*d+f*f))h.d?this.ns=Math.log(r/c)/Math.log(a/d):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=r/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(f,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function r(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=h.d&&(i=n.i(l.a)(i)*(h.a-2*h.d));var r,a,o=Math.abs(Math.abs(i)-h.a);if(o>h.d)r=n.i(s.a)(this.e,i,Math.sin(i)),a=this.a*this.f0*Math.pow(r,this.ns);else{if((o=i*this.ns)<=0)return null;a=0}var c=this.ns*n.i(u.a)(e-this.long0);return t.x=this.k0*(a*Math.sin(c))+this.x0,t.y=this.k0*(this.rh-a*Math.cos(c))+this.y0,t}function a(t){var e,i,r,a,o,s=(t.x-this.x0)/this.k0,l=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+l*l),i=1):(e=-Math.sqrt(s*s+l*l),i=-1);var d=0;if(0!==e&&(d=Math.atan2(i*s,i*l)),0!==e||this.ns>0){if(i=1/this.ns,r=Math.pow(e/(this.a*this.f0),i),-9999===(a=n.i(c.a)(this.e,r)))return null}else a=-h.a;return o=n.i(u.a)(d/this.ns+this.long0),t.x=o,t.y=a,t}var o=n(45),s=n(75),l=n(57),u=n(10),c=n(74),h=n(7),d=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"];e.a={init:i,forward:r,inverse:a,names:d}},function(t,e,n){"use strict";function i(){}function r(t){return t}var a=["longlat","identity"];e.a={init:i,forward:r,inverse:r,names:a}},function(t,e,n){"use strict";function i(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=n.i(o.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function r(t){var e=t.x,i=t.y;if(i*c.j>90&&i*c.j<-90&&e*c.j>180&&e*c.j<-180)return null;var r,a;if(Math.abs(Math.abs(i)-c.a)<=c.d)return null;if(this.sphere)r=this.x0+this.a*this.k0*n.i(s.a)(e-this.long0),a=this.y0+this.a*this.k0*Math.log(Math.tan(c.b+.5*i));else{var o=Math.sin(i),u=n.i(l.a)(this.e,i,o);r=this.x0+this.a*this.k0*n.i(s.a)(e-this.long0),a=this.y0-this.a*this.k0*Math.log(u)}return t.x=r,t.y=a,t}function a(t){var e,i,r=t.x-this.x0,a=t.y-this.y0;if(this.sphere)i=c.a-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var o=Math.exp(-a/(this.a*this.k0));if(-9999===(i=n.i(u.a)(this.e,o)))return null}return e=n.i(s.a)(this.long0+r/(this.a*this.k0)),t.x=e,t.y=i,t}var o=n(45),s=n(10),l=n(75),u=n(74),c=n(7),h=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];e.a={init:i,forward:r,inverse:a,names:h}},function(t,e,n){"use strict";function i(){}function r(t){var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=this.x0+this.a*r,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=a,t.y=s,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e=n.i(o.a)(this.long0+t.x/this.a),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t}var o=n(10),s=["Miller_Cylindrical","mill"];e.a={init:i,forward:r,inverse:a,names:s}},function(t,e,n){"use strict";function i(){}function r(t){for(var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=i,l=Math.PI*Math.sin(i);;){var u=-(a+Math.sin(a)-l)/(1+Math.cos(a));if(a+=u,Math.abs(u).999999999999&&(i=.999999999999),e=Math.asin(i);var r=n.i(o.a)(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var a=Math.asin(i);return t.x=r,t.y=a,t}var o=n(10),s=n(7),l=["Mollweide","moll"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){"use strict";function i(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function r(t){var e,n=t.x,i=t.y,r=i-this.lat0,a=n-this.long0,s=r/o.f*1e-5,l=a,u=1,c=0;for(e=1;e<=10;e++)u*=s,c+=this.A[e]*u;var h,d,f=c,p=l,m=1,g=0,v=0,y=0;for(e=1;e<=6;e++)h=m*f-g*p,d=g*f+m*p,m=h,g=d,v=v+this.B_re[e]*m-this.B_im[e]*g,y=y+this.B_im[e]*m+this.B_re[e]*g;return t.x=y*this.a+this.x0,t.y=v*this.a+this.y0,t}function a(t){var e,n,i,r=t.x,a=t.y,s=r-this.x0,l=a-this.y0,u=l/this.a,c=s/this.a,h=1,d=0,f=0,p=0;for(e=1;e<=6;e++)n=h*u-d*c,i=d*u+h*c,h=n,d=i,f=f+this.C_re[e]*h-this.C_im[e]*d,p=p+this.C_im[e]*h+this.C_re[e]*d;for(var m=0;m=0?this.el=(a+Math.sqrt(a*a-1))*Math.pow(r,this.bl):this.el=(a-Math.sqrt(a*a-1))*Math.pow(r,this.bl);var d=Math.pow(c,this.bl),f=Math.pow(h,this.bl);l=this.el/d,u=.5*(l-1/l);var p=(this.el*this.el-f*d)/(this.el*this.el+f*d),m=(f-d)/(f+d),g=n.i(s.a)(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(p*Math.tan(.5*this.bl*g)/m)/this.bl,this.long0=n.i(s.a)(this.long0);var v=n.i(s.a)(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*v)/u),this.alpha=Math.asin(a*Math.sin(this.gamma0))}else l=this.lat0>=0?a+Math.sqrt(a*a-1):a-Math.sqrt(a*a-1),this.el=l*Math.pow(r,this.bl),u=.5*(l-1/l),this.gamma0=Math.asin(Math.sin(this.alpha)/a),this.long0=this.longc-Math.asin(u*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha))}function r(t){var e,i,r,a=t.x,l=t.y,c=n.i(s.a)(a-this.long0);if(Math.abs(Math.abs(l)-u.a)<=u.d)r=l>0?-1:1,i=this.al/this.bl*Math.log(Math.tan(u.b+r*this.gamma0*.5)),e=-1*r*u.a*this.al/this.bl;else{var h=n.i(o.a)(this.e,l,Math.sin(l)),d=this.el/Math.pow(h,this.bl),f=.5*(d-1/d),p=.5*(d+1/d),m=Math.sin(this.bl*c),g=(f*Math.sin(this.gamma0)-m*Math.cos(this.gamma0))/p;i=Math.abs(Math.abs(g)-1)<=u.d?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-g)/(1+g))/this.bl,e=Math.abs(Math.cos(this.bl*c))<=u.d?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+m*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+i):(e-=this.uc,t.x=this.x0+i*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-i*Math.sin(this.alpha)),t}function a(t){var e,i;this.no_rot?(i=t.y-this.y0,e=t.x-this.x0):(i=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var r=Math.exp(-1*this.bl*i/this.al),a=.5*(r-1/r),o=.5*(r+1/r),c=Math.sin(this.bl*e/this.al),h=(c*Math.cos(this.gamma0)+a*Math.sin(this.gamma0))/o,d=Math.pow(this.el/Math.sqrt((1+h)/(1-h)),1/this.bl);return Math.abs(h-1)0||Math.abs(u)<=l.d)&&(c=this.a*s*i*Math.sin(r),h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*a)),t.x=c,t.y=h,t}function a(t){var e,i,r,a,u,c,h;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=n.i(s.a)(e/this.a),r=Math.sin(i),a=Math.cos(i),c=this.long0,Math.abs(e)<=l.d?(h=this.lat0,t.x=c,t.y=h,t):(h=n.i(s.a)(a*this.sin_p14+t.y*r*this.cos_p14/e),u=Math.abs(this.lat0)-l.a,Math.abs(u)<=l.d?(c=this.lat0>=0?n.i(o.a)(this.long0+Math.atan2(t.x,-t.y)):n.i(o.a)(this.long0-Math.atan2(-t.x,t.y)),t.x=c,t.y=h,t):(c=n.i(o.a)(this.long0+Math.atan2(t.x*r,e*this.cos_p14*a-t.y*this.sin_p14*r)),t.x=c,t.y=h,t))}var o=n(10),s=n(44),l=n(7),u=["ortho"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){"use strict";function i(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n.i(o.a)(this.es),this.e1=n.i(s.a)(this.es),this.e2=n.i(l.a)(this.es),this.e3=n.i(u.a)(this.es),this.ml0=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function r(t){var e,i,r,a=t.x,o=t.y,s=n.i(c.a)(a-this.long0);if(r=s*Math.sin(o),this.sphere)Math.abs(o)<=f.d?(e=this.a*s,i=-1*this.a*this.lat0):(e=this.a*Math.sin(r)/Math.tan(o),i=this.a*(n.i(h.a)(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=f.d)e=this.a*s,i=-1*this.ml0;else{var l=n.i(p.a)(this.a,this.e,Math.sin(o))/Math.tan(o);e=l*Math.sin(r),i=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+l*(1-Math.cos(r))}return t.x=e+this.x0,t.y=i+this.y0,t}function a(t){var e,i,r,a,o,s,l,u,h;if(r=t.x-this.x0,a=t.y-this.y0,this.sphere)if(Math.abs(a+this.a*this.lat0)<=f.d)e=n.i(c.a)(r/this.a+this.long0),i=0;else{s=this.lat0+a/this.a,l=r*r/this.a/this.a+s*s,u=s;var p;for(o=m;o;--o)if(p=Math.tan(u),h=-1*(s*(u*p+1)-u-.5*(u*u+l)*p)/((u-s)/p-1),u+=h,Math.abs(h)<=f.d){i=u;break}e=n.i(c.a)(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(i))}else if(Math.abs(a+this.ml0)<=f.d)i=0,e=n.i(c.a)(this.long0+r/this.a);else{s=(this.ml0+a)/this.a,l=r*r/this.a/this.a+s*s,u=s;var g,v,y,b,x;for(o=m;o;--o)if(x=this.e*Math.sin(u),g=Math.sqrt(1-x*x)*Math.tan(u),v=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,u),y=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=v/this.a,h=(s*(g*b+1)-b-.5*g*(b*b+l))/(this.es*Math.sin(2*u)*(b*b+l-2*s*b)/(4*g)+(s-b)*(g*y-2/Math.sin(2*u))-y),u-=h,Math.abs(h)<=f.d){i=u;break}g=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=n.i(c.a)(this.long0+Math.asin(r*g/this.a)/Math.sin(i))}return t.x=e,t.y=i,t}var o=n(69),s=n(70),l=n(71),u=n(72),c=n(10),h=n(56),d=n(73),f=n(7),p=n(103),m=20,g=["Polyconic","poly"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){"use strict";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=l.a-l.b/2?this.face=u.TOP:this.lat0<=-(l.a-l.b/2)?this.face=u.BOTTOM:Math.abs(this.long0)<=l.b?this.face=u.FRONT:Math.abs(this.long0)<=l.a+l.b?this.face=this.long0>0?u.RIGHT:u.LEFT:this.face=u.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function r(t){var e,n,i,r,a,h,d={x:0,y:0},f={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===u.TOP)r=l.a-e,n>=l.b&&n<=l.a+l.b?(f.value=c.AREA_0,i=n-l.a):n>l.a+l.b||n<=-(l.a+l.b)?(f.value=c.AREA_1,i=n>0?n-l.c:n+l.c):n>-(l.a+l.b)&&n<=-l.b?(f.value=c.AREA_2,i=n+l.a):(f.value=c.AREA_3,i=n);else if(this.face===u.BOTTOM)r=l.a+e,n>=l.b&&n<=l.a+l.b?(f.value=c.AREA_0,i=-n+l.a):n=-l.b?(f.value=c.AREA_1,i=-n):n<-l.b&&n>=-(l.a+l.b)?(f.value=c.AREA_2,i=-n-l.a):(f.value=c.AREA_3,i=n>0?-n+l.c:-n-l.c);else{var p,m,g,v,y,b,x;this.face===u.RIGHT?n=s(n,+l.a):this.face===u.BACK?n=s(n,+l.c):this.face===u.LEFT&&(n=s(n,-l.a)),v=Math.sin(e),y=Math.cos(e),b=Math.sin(n),x=Math.cos(n),p=y*x,m=y*b,g=v,this.face===u.FRONT?(r=Math.acos(p),i=o(r,g,m,f)):this.face===u.RIGHT?(r=Math.acos(m),i=o(r,g,-p,f)):this.face===u.BACK?(r=Math.acos(-p),i=o(r,g,-m,f)):this.face===u.LEFT?(r=Math.acos(-m),i=o(r,g,p,f)):(r=i=0,f.value=c.AREA_0)}return h=Math.atan(12/l.c*(i+Math.acos(Math.sin(i)*Math.cos(l.b))-l.a)),a=Math.sqrt((1-Math.cos(r))/(Math.cos(h)*Math.cos(h))/(1-Math.cos(Math.atan(1/Math.cos(i))))),f.value===c.AREA_1?h+=l.a:f.value===c.AREA_2?h+=l.c:f.value===c.AREA_3&&(h+=1.5*l.c),d.x=a*Math.cos(h),d.y=a*Math.sin(h),d.x=d.x*this.a+this.x0,d.y=d.y*this.a+this.y0,t.x=d.x,t.y=d.y,t}function a(t){var e,n,i,r,a,o,h,d,f,p={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=c.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=c.AREA_1,e-=l.a):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=c.AREA_2,e=e<0?e+l.c:e-l.c):(m.value=c.AREA_3,e+=l.a),f=l.c/12*Math.tan(e),a=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),o=Math.atan(a),i=Math.cos(e),r=Math.tan(n),h=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),h<-1?h=-1:h>1&&(h=1),this.face===u.TOP)d=Math.acos(h),p.phi=l.a-d,m.value===c.AREA_0?p.lam=o+l.a:m.value===c.AREA_1?p.lam=o<0?o+l.c:o-l.c:m.value===c.AREA_2?p.lam=o-l.a:p.lam=o;else if(this.face===u.BOTTOM)d=Math.acos(h),p.phi=d-l.a,m.value===c.AREA_0?p.lam=-o+l.a:m.value===c.AREA_1?p.lam=-o:m.value===c.AREA_2?p.lam=-o-l.a:p.lam=o<0?-o-l.c:-o+l.c;else{var g,v,y;g=h,f=g*g,y=f>=1?0:Math.sqrt(1-f)*Math.sin(o),f+=y*y,v=f>=1?0:Math.sqrt(1-f),m.value===c.AREA_1?(f=v,v=-y,y=f):m.value===c.AREA_2?(v=-v,y=-y):m.value===c.AREA_3&&(f=v,v=y,y=-f),this.face===u.RIGHT?(f=g,g=-v,v=f):this.face===u.BACK?(g=-g,v=-v):this.face===u.LEFT&&(f=g,g=v,v=-f),p.phi=Math.acos(-y)-l.a,p.lam=Math.atan2(v,g),this.face===u.RIGHT?p.lam=s(p.lam,-l.a):this.face===u.BACK?p.lam=s(p.lam,-l.c):this.face===u.LEFT&&(p.lam=s(p.lam,+l.a))}if(0!==this.es){var b,x,_;b=p.phi<0?1:0,x=Math.tan(p.phi),_=this.b/Math.sqrt(x*x+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),b&&(p.phi=-p.phi)}return p.lam+=this.long0,t.x=p.lam,t.y=p.phi,t}function o(t,e,n,i){var r;return tl.b&&r<=l.a+l.b?(i.value=c.AREA_1,r-=l.a):r>l.a+l.b||r<=-(l.a+l.b)?(i.value=c.AREA_2,r=r>=0?r-l.c:r+l.c):(i.value=c.AREA_3,r+=l.a)),r}function s(t,e){var n=t+e;return n<-l.c?n+=l.e:n>+l.c&&(n-=l.e),n}var l=n(7),u={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},c={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4},h=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];e.a={init:i,forward:r,inverse:a,names:h}},function(t,e,n){"use strict";function i(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=n.i(l.a)(this.es)}function r(t){var e,i,r=t.x,a=t.y;if(r=n.i(o.a)(r-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(a),l=f;l;--l){var c=(this.m*a+Math.sin(a)-s)/(this.m+Math.cos(a));if(a-=c,Math.abs(c)1e-7;){if(++h>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=u,t}var o=["somerc"];e.a={init:i,forward:r,inverse:a,names:o}},function(t,e,n){"use strict";function i(t,e,n){return e*=n,Math.tan(.5*(s.a+t))*Math.pow((1-e)/(1+e),.5*n)}function r(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.d&&(this.k0=.5*(1+n.i(l.a)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s.d&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.d&&(this.k0=.5*this.cons*n.i(u.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/n.i(c.a)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=n.i(u.a)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-s.a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function a(t){var e,i,r,a,o,l,u=t.x,h=t.y,f=Math.sin(h),p=Math.cos(h),m=n.i(d.a)(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=s.d&&Math.abs(h+this.lat0)<=s.d?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*f+this.coslat0*p*Math.cos(m)),t.x=this.a*e*p*Math.sin(m)+this.x0,t.y=this.a*e*(this.coslat0*f-this.sinlat0*p*Math.cos(m))+this.y0,t):(i=2*Math.atan(this.ssfn_(h,f,this.e))-s.a,a=Math.cos(i),r=Math.sin(i),Math.abs(this.coslat0)<=s.d?(o=n.i(c.a)(this.e,h*this.con,this.con*f),l=2*this.a*this.k0*o/this.cons,t.x=this.x0+l*Math.sin(u-this.long0),t.y=this.y0-this.con*l*Math.cos(u-this.long0),t):(Math.abs(this.sinlat0)0?n.i(d.a)(this.long0+Math.atan2(t.x,-1*t.y)):n.i(d.a)(this.long0+Math.atan2(t.x,t.y)):n.i(d.a)(this.long0+Math.atan2(t.x*Math.sin(u),l*this.coslat0*Math.cos(u)-t.y*this.sinlat0*Math.sin(u))),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)<=s.d){if(l<=s.d)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,r=l*this.cons/(2*this.a*this.k0),i=this.con*n.i(h.a)(this.e,r),e=this.con*n.i(d.a)(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else a=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,l<=s.d?o=this.X0:(o=Math.asin(Math.cos(a)*this.sinX0+t.y*Math.sin(a)*this.cosX0/l),e=n.i(d.a)(this.long0+Math.atan2(t.x*Math.sin(a),l*this.cosX0*Math.cos(a)-t.y*this.sinX0*Math.sin(a)))),i=-1*n.i(h.a)(this.e,Math.tan(.5*(s.a+o)));return t.x=e,t.y=i,t}var s=n(7),l=n(57),u=n(45),c=n(75),h=n(74),d=n(10),f=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"];e.a={init:r,forward:a,inverse:o,names:f,ssfn_:i}},function(t,e,n){"use strict";function i(){o.a.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function r(t){var e,i,r,a;return t.x=n.i(s.a)(t.x-this.long0),o.a.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),r=Math.cos(t.x),a=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*r),t.x=a*i*Math.sin(t.x),t.y=a*(this.cosc0*e-this.sinc0*i*r),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function a(t){var e,i,r,a,l;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,l=Math.sqrt(t.x*t.x+t.y*t.y)){var u=2*Math.atan2(l,this.R2);e=Math.sin(u),i=Math.cos(u),a=Math.asin(i*this.sinc0+t.y*e*this.cosc0/l),r=Math.atan2(t.x*e,l*this.cosc0*i-t.y*this.sinc0*e)}else a=this.phic0,r=0;return t.x=r,t.y=a,o.a.inverse.apply(this,[t]),t.x=n.i(s.a)(t.x+this.long0),t}var o=n(436),s=n(10),l=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){"use strict";function i(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=n.i(o.a)(this.es),this.ml0=n.i(s.a)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function r(t){var e,i,r,a=t.x,o=t.y,l=n.i(u.a)(a-this.long0),h=Math.sin(o),d=Math.cos(o);if(this.es){var f=d*l,p=Math.pow(f,2),m=this.ep2*Math.pow(d,2),g=Math.pow(m,2),v=Math.abs(d)>c.d?Math.tan(o):0,y=Math.pow(v,2),b=Math.pow(y,2);e=1-this.es*Math.pow(h,2),f/=Math.sqrt(e);var x=n.i(s.a)(o,h,d,this.en);i=this.a*(this.k0*f*(1+p/6*(1-y+m+p/20*(5-18*y+b+14*m-58*y*m+p/42*(61+179*b-b*y-479*y)))))+this.x0,r=this.a*(this.k0*(x-this.ml0+h*l*f/2*(1+p/12*(5-y+9*m+4*g+p/30*(61+b-58*y+270*m-330*y*m+p/56*(1385+543*b-b*y-3111*y))))))+this.y0}else{var _=d*Math.sin(l);if(Math.abs(Math.abs(_)-1)=1){if(_-1>c.d)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return t.x=i,t.y=r,t}function a(t){var e,i,r,a,o=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+s/this.k0,i=n.i(l.a)(e,this.es,this.en),Math.abs(i)c.d?Math.tan(i):0,m=this.ep2*Math.pow(f,2),g=Math.pow(m,2),v=Math.pow(p,2),y=Math.pow(v,2);e=1-this.es*Math.pow(d,2);var b=o*Math.sqrt(e)/this.k0,x=Math.pow(b,2);e*=p,r=i-e*x/(1-this.es)*.5*(1-x/12*(5+3*v-9*m*v+m-4*g-x/30*(61+90*v-252*m*v+45*y+46*m-x/56*(1385+3633*v+4095*y+1574*y*v)))),a=n.i(u.a)(this.long0+b*(1-x/6*(1+2*v+m-x/20*(5+28*v+24*y+8*m*v+6*m-x/42*(61+662*v+1320*y+720*y*v))))/f)}else r=c.a*n.i(h.a)(s),a=0;else{var _=Math.exp(o/this.k0),w=.5*(_-1/_),M=this.lat0+s/this.k0,S=Math.cos(M);e=Math.sqrt((1-Math.pow(S,2))/(1+Math.pow(w,2))),r=Math.asin(e),s<0&&(r=-r),a=0===w&&0===S?0:n.i(u.a)(Math.atan2(w,S)+this.long0)}return t.x=a,t.y=r,t}var o=n(147),s=n(105),l=n(148),u=n(10),c=n(7),h=n(57),d=["Transverse_Mercator","Transverse Mercator","tmerc"];e.a={init:i,forward:r,inverse:a,names:d}},function(t,e,n){"use strict";function i(){var t=n.i(r.a)(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*o.g,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,a.a.init.apply(this),this.forward=a.a.forward,this.inverse=a.a.inverse}var r=n(407),a=n(153),o=n(7),s=["Universal Transverse Mercator System","utm"];e.a={init:i,names:s,dependsOn:"etmerc"}},function(t,e,n){"use strict";function i(){this.R=this.a}function r(t){var e,i,r=t.x,a=t.y,u=n.i(o.a)(r-this.long0);Math.abs(a)<=s.d&&(e=this.x0+this.R*u,i=this.y0);var c=n.i(l.a)(2*Math.abs(a/Math.PI));(Math.abs(u)<=s.d||Math.abs(Math.abs(a)-s.a)<=s.d)&&(e=this.x0,i=a>=0?this.y0+Math.PI*this.R*Math.tan(.5*c):this.y0+Math.PI*this.R*-Math.tan(.5*c));var h=.5*Math.abs(Math.PI/u-u/Math.PI),d=h*h,f=Math.sin(c),p=Math.cos(c),m=p/(f+p-1),g=m*m,v=m*(2/f-1),y=v*v,b=Math.PI*this.R*(h*(m-y)+Math.sqrt(d*(m-y)*(m-y)-(y+d)*(g-y)))/(y+d);u<0&&(b=-b),e=this.x0+b;var x=d+m;return b=Math.PI*this.R*(v*x-h*Math.sqrt((y+d)*(d+1)-x*x))/(y+d),i=a>=0?this.y0+b:this.y0-b,t.x=e,t.y=i,t}function a(t){var e,i,r,a,l,u,c,h,d,f,p,m,g;return t.x-=this.x0,t.y-=this.y0,p=Math.PI*this.R,r=t.x/p,a=t.y/p,l=r*r+a*a,u=-Math.abs(a)*(1+l),c=u-2*a*a+r*r,h=-2*u+1+2*a*a+l*l,g=a*a/h+(2*c*c*c/h/h/h-9*u*c/h/h)/27,d=(u-c*c/3/h)/h,f=2*Math.sqrt(-d/3),p=3*g/d/f,Math.abs(p)>1&&(p=p>=0?1:-1),m=Math.acos(p)/3,i=t.y>=0?(-f*Math.cos(m+Math.PI/3)-c/3/h)*Math.PI:-(-f*Math.cos(m+Math.PI/3)-c/3/h)*Math.PI,e=Math.abs(r)this.eventPool.length&&this.eventPool.push(t)}function W(t){t.eventPool=[],t.getPooled=U,t.release=j}function G(t,e,n,i){return F.call(this,t,e,n,i)}function V(t,e,n,i){return F.call(this,t,e,n,i)}function H(t,e){switch(t){case"topKeyUp":return-1!==fi.indexOf(e.keyCode);case"topKeyDown":return 229!==e.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Y(t){return t=t.detail,"object"==typeof t&&"data"in t?t.data:null}function q(t,e){switch(t){case"topCompositionEnd":return Y(e);case"topKeyPress":return 32!==e.which?null:(Mi=!0,_i);case"topTextInput":return t=e.data,t===_i&&Mi?null:t;default:return null}}function X(t,e){if(Si)return"topCompositionEnd"===t||!pi&&H(t,e)?(t=z(),ci._root=null,ci._startText=null,ci._fallbackText=null,Si=!1,t):null;switch(t){case"topPaste":return null;case"topKeyPress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1Wi.length&&Wi.push(t)}}}function Lt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function It(t){if(qi[t])return qi[t];if(!Yi[t])return t;var e,n=Yi[t];for(e in n)if(n.hasOwnProperty(e)&&e in Xi)return qi[t]=n[e];return""}function Dt(t){return Object.prototype.hasOwnProperty.call(t,Ji)||(t[Ji]=Qi++,Ki[t[Ji]]={}),Ki[t[Ji]]}function Nt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zt(t,e){var n=Nt(t);t=0;for(var i;n;){if(3===n.nodeType){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Nt(n)}}function Bt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)}function Ft(t,e){if(rr||null==er||er!==Sn())return null;var n=er;return"selectionStart"in n&&Bt(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ir&&En(ir,n)?null:(ir=n,t=F.getPooled(tr.select,nr,t,e),t.type="select",t.target=er,I(t),t)}function Ut(t,e,n,i){return F.call(this,t,e,n,i)}function jt(t,e,n,i){return F.call(this,t,e,n,i)}function Wt(t,e,n,i){return F.call(this,t,e,n,i)}function Gt(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,32<=t||13===t?t:0}function Vt(t,e,n,i){return F.call(this,t,e,n,i)}function Ht(t,e,n,i){return F.call(this,t,e,n,i)}function Yt(t,e,n,i){return F.call(this,t,e,n,i)}function qt(t,e,n,i){return F.call(this,t,e,n,i)}function Xt(t,e,n,i){return F.call(this,t,e,n,i)}function Zt(t){0>dr||(t.current=hr[dr],hr[dr]=null,dr--)}function Kt(t,e){dr++,hr[dr]=t.current,t.current=e}function Qt(t){return $t(t)?mr:fr.current}function Jt(t,e){var n=t.type.contextTypes;if(!n)return Cn;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=e[r];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function $t(t){return 2===t.tag&&null!=t.type.childContextTypes}function te(t){$t(t)&&(Zt(pr,t),Zt(fr,t))}function ee(t,e,n){null!=fr.cursor&&i("168"),Kt(fr,e,t),Kt(pr,n,t)}function ne(t,e){var n=t.stateNode,r=t.type.childContextTypes;if("function"!=typeof n.getChildContext)return e;n=n.getChildContext();for(var a in n)a in r||i("108",_t(t)||"Unknown",a);return _n({},e,n)}function ie(t){if(!$t(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Cn,mr=fr.current,Kt(fr,e,t),Kt(pr,pr.current,t),!0}function re(t,e){var n=t.stateNode;if(n||i("169"),e){var r=ne(t,mr);n.__reactInternalMemoizedMergedChildContext=r,Zt(pr,t),Zt(fr,t),Kt(fr,r,t)}else Zt(pr,t);Kt(pr,e,t)}function ae(t,e,n){this.tag=t,this.key=e,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function oe(t,e,n){var i=t.alternate;return null===i?(i=new ae(t.tag,t.key,t.internalContextTag),i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.effectTag=0,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null),i.expirationTime=n,i.pendingProps=e,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function se(t,e,n){var r=void 0,a=t.type,o=t.key;return"function"==typeof a?(r=a.prototype&&a.prototype.isReactComponent?new ae(2,o,e):new ae(0,o,e),r.type=a,r.pendingProps=t.props):"string"==typeof a?(r=new ae(5,o,e),r.type=a,r.pendingProps=t.props):"object"==typeof a&&null!==a&&"number"==typeof a.tag?(r=a,r.pendingProps=t.props):i("130",null==a?a:typeof a,""),r.expirationTime=n,r}function le(t,e,n,i){return e=new ae(10,i,e),e.pendingProps=t,e.expirationTime=n,e}function ue(t,e,n){return e=new ae(6,null,e),e.pendingProps=t,e.expirationTime=n,e}function ce(t,e,n){return e=new ae(7,t.key,e),e.type=t.handler,e.pendingProps=t,e.expirationTime=n,e}function he(t,e,n){return t=new ae(9,null,e),t.expirationTime=n,t}function de(t,e,n){return e=new ae(4,t.key,e),e.pendingProps=t.children||[],e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function fe(t){return function(e){try{return t(e)}catch(t){}}}function pe(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);gr=fe(function(t){return e.onCommitFiberRoot(n,t)}),vr=fe(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function me(t){"function"==typeof gr&&gr(t)}function ge(t){"function"==typeof vr&&vr(t)}function ve(t){return{baseState:t,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function ye(t,e){null===t.last?t.first=t.last=e:(t.last.next=e,t.last=e),(0===t.expirationTime||t.expirationTime>e.expirationTime)&&(t.expirationTime=e.expirationTime)}function be(t,e){var n=t.alternate,i=t.updateQueue;null===i&&(i=t.updateQueue=ve(null)),null!==n?null===(t=n.updateQueue)&&(t=n.updateQueue=ve(null)):t=null,t=t!==i?t:null,null===t?ye(i,e):null===i.last||null===t.last?(ye(i,e),ye(t,e)):(ye(i,e),t.last=e)}function xe(t,e,n,i){return t=t.partialState,"function"==typeof t?t.call(e,n,i):t}function _e(t,e,n,i,r,a){null!==t&&t.updateQueue===n&&(n=e.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?t=n.baseState:(t=n.baseState=e.memoizedState,n.isInitialized=!0);for(var o=!0,s=n.first,l=!1;null!==s;){var u=s.expirationTime;if(u>a){var c=n.expirationTime;(0===c||c>u)&&(n.expirationTime=u),l||(l=!0,n.baseState=t)}else l||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(t=xe(s,i,t,r),o=!0):(u=xe(s,i,t,r))&&(t=o?_n({},t,u):_n(t,u),o=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(u=n.callbackList,null===u&&(u=n.callbackList=[]),u.push(s));s=s.next}return null!==n.callbackList?e.effectTag|=32:null!==n.first||n.hasForceUpdate||(e.updateQueue=null),l||(n.baseState=t),t}function we(t,e){var n=t.callbackList;if(null!==n)for(t.callbackList=null,t=0;td?(f=h,h=null):f=h.sibling;var v=m(i,h,s[d],l);if(null===v){null===h&&(h=f);break}t&&h&&null===v.alternate&&e(i,h),a=o(v,a,d),null===c?u=v:c.sibling=v,c=v,h=f}if(d===s.length)return n(i,h),u;if(null===h){for(;df?(v=d,d=null):v=d.sibling;var b=m(a,d,y.value,u);if(null===b){d||(d=v);break}t&&d&&null===b.alternate&&e(a,d),s=o(b,s,f),null===h?c=b:h.sibling=b,h=b,d=v}if(y.done)return n(a,d),c;if(null===d){for(;!y.done;f++,y=l.next())null!==(y=p(a,y.value,u))&&(s=o(y,s,f),null===h?c=y:h.sibling=y,h=y);return c}for(d=r(a,d);!y.done;f++,y=l.next())null!==(y=g(d,a,f,y.value,u))&&(t&&null!==y.alternate&&d.delete(null===y.key?f:y.key),s=o(y,s,f),null===h?c=y:h.sibling=y,h=y);return t&&d.forEach(function(t){return e(a,t)}),c}return function(t,r,o,l){"object"==typeof o&&null!==o&&o.type===Mr&&null===o.key&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case br:t:{var c=o.key;for(u=r;null!==u;){if(u.key===c){if(10===u.tag?o.type===Mr:u.type===o.type){n(t,u.sibling),r=a(u,o.type===Mr?o.props.children:o.props,l),r.ref=Ee(u,o),r.return=t,t=r;break t}n(t,u);break}e(t,u),u=u.sibling}o.type===Mr?(r=le(o.props.children,t.internalContextTag,l,o.key),r.return=t,t=r):(l=se(o,t.internalContextTag,l),l.ref=Ee(r,o),l.return=t,t=l)}return s(t);case xr:t:{for(u=o.key;null!==r;){if(r.key===u){if(7===r.tag){n(t,r.sibling),r=a(r,o,l),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=ce(o,t.internalContextTag,l),r.return=t,t=r}return s(t);case _r:t:{if(null!==r){if(9===r.tag){n(t,r.sibling),r=a(r,null,l),r.type=o.value,r.return=t,t=r;break t}n(t,r)}r=he(o,t.internalContextTag,l),r.type=o.value,r.return=t,t=r}return s(t);case wr:t:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),r=a(r,o.children||[],l),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=de(o,t.internalContextTag,l),r.return=t,t=r}return s(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),r=a(r,o,l)):(n(t,r),r=ue(o,t.internalContextTag,l)),r.return=t,t=r,s(t);if(Er(o))return v(t,r,o,l);if(Se(o))return y(t,r,o,l);if(u&&ke(t,o),void 0===o)switch(t.tag){case 2:case 1:l=t.type,i("152",l.displayName||l.name||"Component")}return n(t,r)}}function Ce(t,e,n,r,a){function o(t,e,n){var i=e.expirationTime;e.child=null===t?Tr(e,null,n,i):kr(e,t.child,n,i)}function s(t,e){var n=e.ref;null===n||t&&t.ref===n||(e.effectTag|=128)}function l(t,e,n,i){if(s(t,e),!n)return i&&re(e,!1),c(t,e);n=e.stateNode,ji.current=e;var r=n.render();return e.effectTag|=1,o(t,e,r),e.memoizedState=n.state,e.memoizedProps=n.props,i&&re(e,!0),e.child}function u(t){var e=t.stateNode;e.pendingContext?ee(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ee(t,e.context,!1),g(t,e.containerInfo)}function c(t,e){if(null!==t&&e.child!==t.child&&i("153"),null!==e.child){t=e.child;var n=oe(t,t.pendingProps,t.expirationTime);for(e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=oe(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}function h(t,e){switch(e.tag){case 3:u(e);break;case 2:ie(e);break;case 4:g(e,e.stateNode.containerInfo)}return null}var d=t.shouldSetTextContent,f=t.useSyncScheduling,p=t.shouldDeprioritizeSubtree,m=e.pushHostContext,g=e.pushHostContainer,v=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;t=Me(r,a,function(t,e){t.memoizedProps=e},function(t,e){t.memoizedState=e});var x=t.adoptClassInstance,_=t.constructClassInstance,w=t.mountClassInstance,M=t.updateClassInstance;return{beginWork:function(t,e,n){if(0===e.expirationTime||e.expirationTime>n)return h(t,e);switch(e.tag){case 0:null!==t&&i("155");var r=e.type,a=e.pendingProps,S=Qt(e);return S=Jt(e,S),r=r(a,S),e.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render?(e.tag=2,a=ie(e),x(e,r),w(e,n),e=l(t,e,!0,a)):(e.tag=1,o(t,e,r),e.memoizedProps=a,e=e.child),e;case 1:t:{if(a=e.type,n=e.pendingProps,r=e.memoizedProps,pr.current)null===n&&(n=r);else if(null===n||r===n){e=c(t,e);break t}r=Qt(e),r=Jt(e,r),a=a(n,r),e.effectTag|=1,o(t,e,a),e.memoizedProps=n,e=e.child}return e;case 2:return a=ie(e),r=void 0,null===t?e.stateNode?i("153"):(_(e,e.pendingProps),w(e,n),r=!0):r=M(t,e,n),l(t,e,r,a);case 3:return u(e),a=e.updateQueue,null!==a?(r=e.memoizedState,a=_e(t,e,a,null,null,n),r===a?(y(),e=c(t,e)):(r=a.element,S=e.stateNode,(null===t||null===t.child)&&S.hydrate&&v(e)?(e.effectTag|=2,e.child=Tr(e,null,r,n)):(y(),o(t,e,r)),e.memoizedState=a,e=e.child)):(y(),e=c(t,e)),e;case 5:m(e),null===t&&b(e),a=e.type;var E=e.memoizedProps;return r=e.pendingProps,null===r&&null===(r=E)&&i("154"),S=null!==t?t.memoizedProps:null,pr.current||null!==r&&E!==r?(E=r.children,d(a,r)?E=null:S&&d(a,S)&&(e.effectTag|=16),s(t,e),2147483647!==n&&!f&&p(a,r)?(e.expirationTime=2147483647,e=null):(o(t,e,E),e.memoizedProps=r,e=e.child)):e=c(t,e),e;case 6:return null===t&&b(e),t=e.pendingProps,null===t&&(t=e.memoizedProps),e.memoizedProps=t,null;case 8:e.tag=7;case 7:return a=e.pendingProps,pr.current?null===a&&null===(a=t&&t.memoizedProps)&&i("154"):null!==a&&e.memoizedProps!==a||(a=e.memoizedProps),r=a.children,e.stateNode=null===t?Tr(e,e.stateNode,r,n):kr(e,e.stateNode,r,n),e.memoizedProps=a,e.stateNode;case 9:return null;case 4:t:{if(g(e,e.stateNode.containerInfo),a=e.pendingProps,pr.current)null===a&&null==(a=t&&t.memoizedProps)&&i("154");else if(null===a||e.memoizedProps===a){e=c(t,e);break t}null===t?e.child=kr(e,null,a,n):o(t,e,a),e.memoizedProps=a,e=e.child}return e;case 10:t:{if(n=e.pendingProps,pr.current)null===n&&(n=e.memoizedProps);else if(null===n||e.memoizedProps===n){e=c(t,e);break t}o(t,e,n),e.memoizedProps=n,e=e.child}return e;default:i("156")}},beginFailedWork:function(t,e,n){switch(e.tag){case 2:ie(e);break;case 3:u(e);break;default:i("157")}return e.effectTag|=64,null===t?e.child=null:e.child!==t.child&&(e.child=t.child),0===e.expirationTime||e.expirationTime>n?h(t,e):(e.firstEffect=null,e.lastEffect=null,e.child=null===t?Tr(e,null,null,n):kr(e,t.child,null,n),2===e.tag&&(t=e.stateNode,e.memoizedProps=t.props,e.memoizedState=t.state),e.child)}}}function Pe(t,e,n){function r(t){t.effectTag|=4}var a=t.createInstance,o=t.createTextInstance,s=t.appendInitialChild,l=t.finalizeInitialChildren,u=t.prepareUpdate,c=t.persistence,h=e.getRootHostContainer,d=e.popHostContext,f=e.getHostContext,p=e.popHostContainer,m=n.prepareToHydrateHostInstance,g=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,y=void 0,b=void 0,x=void 0;return t.mutation?(y=function(){},b=function(t,e,n){(e.updateQueue=n)&&r(e)},x=function(t,e,n,i){n!==i&&r(e)}):i(c?"235":"236"),{completeWork:function(t,e,n){var c=e.pendingProps;switch(null===c?c=e.memoizedProps:2147483647===e.expirationTime&&2147483647!==n||(e.pendingProps=null),e.tag){case 1:return null;case 2:return te(e),null;case 3:return p(e),Zt(pr,e),Zt(fr,e),c=e.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==t&&null!==t.child||(v(e),e.effectTag&=-3),y(e),null;case 5:d(e),n=h();var _=e.type;if(null!==t&&null!=e.stateNode){var w=t.memoizedProps,M=e.stateNode,S=f();M=u(M,_,w,c,n,S),b(t,e,M,_,w,c,n),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!c)return null===e.stateNode&&i("166"),null;if(t=f(),v(e))m(e,n,t)&&r(e);else{t=a(_,c,n,t,e);t:for(w=e.child;null!==w;){if(5===w.tag||6===w.tag)s(t,w.stateNode);else if(4!==w.tag&&null!==w.child){w.child.return=w,w=w.child;continue}if(w===e)break;for(;null===w.sibling;){if(null===w.return||w.return===e)break t;w=w.return}w.sibling.return=w.return,w=w.sibling}l(t,_,c,n)&&r(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)x(t,e,t.memoizedProps,c);else{if("string"!=typeof c)return null===e.stateNode&&i("166"),null;t=h(),n=f(),v(e)?g(e)&&r(e):e.stateNode=o(c,t,n,e)}return null;case 7:(c=e.memoizedProps)||i("165"),e.tag=8,_=[];t:for((w=e.stateNode)&&(w.return=e);null!==w;){if(5===w.tag||6===w.tag||4===w.tag)i("247");else if(9===w.tag)_.push(w.type);else if(null!==w.child){w.child.return=w,w=w.child;continue}for(;null===w.sibling;){if(null===w.return||w.return===e)break t;w=w.return}w.sibling.return=w.return,w=w.sibling}return w=c.handler,c=w(c.props,_),e.child=kr(e,null!==t?t.child:null,c,n),e.child;case 8:return e.tag=7,null;case 9:case 10:return null;case 4:return p(e),y(e),null;case 0:i("167");default:i("156")}}}}function Oe(t,e){function n(t){var n=t.ref;if(null!==n)try{n(null)}catch(n){e(t,n)}}function r(t){switch("function"==typeof ge&&ge(t),t.tag){case 2:n(t);var i=t.stateNode;if("function"==typeof i.componentWillUnmount)try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(n){e(t,n)}break;case 5:n(t);break;case 7:a(t.stateNode);break;case 4:u&&s(t)}}function a(t){for(var e=t;;)if(r(e),null===e.child||u&&4===e.tag){if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}else e.child.return=e,e=e.child}function o(t){return 5===t.tag||3===t.tag||4===t.tag}function s(t){for(var e=t,n=!1,o=void 0,s=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&i("160"),n.tag){case 5:o=n.stateNode,s=!1;break t;case 3:case 4:o=n.stateNode.containerInfo,s=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag)a(e),s?b(o,e.stateNode):y(o,e.stateNode);else if(4===e.tag?o=e.stateNode.containerInfo:r(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return,4===e.tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}var l=t.getPublicInstance,u=t.mutation;t=t.persistence,u||i(t?"235":"236");var c=u.commitMount,h=u.commitUpdate,d=u.resetTextContent,f=u.commitTextUpdate,p=u.appendChild,m=u.appendChildToContainer,g=u.insertBefore,v=u.insertInContainerBefore,y=u.removeChild,b=u.removeChildFromContainer;return{commitResetTextContent:function(t){d(t.stateNode)},commitPlacement:function(t){t:{for(var e=t.return;null!==e;){if(o(e)){var n=e;break t}e=e.return}i("160"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:i("161")}16&n.effectTag&&(d(e),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var a=t;;){if(5===a.tag||6===a.tag)n?r?v(e,a.stateNode,n):g(e,a.stateNode,n):r?m(e,a.stateNode):p(e,a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},commitDeletion:function(t){s(t),t.return=null,t.child=null,t.alternate&&(t.alternate.child=null,t.alternate.return=null)},commitWork:function(t,e){switch(e.tag){case 2:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps;t=null!==t?t.memoizedProps:r;var a=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&h(n,o,a,t,r,e)}break;case 6:null===e.stateNode&&i("162"),n=e.memoizedProps,f(e.stateNode,null!==t?t.memoizedProps:n,n);break;case 3:break;default:i("163")}},commitLifeCycles:function(t,e){switch(e.tag){case 2:var n=e.stateNode;if(4&e.effectTag)if(null===t)n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidMount();else{var r=t.memoizedProps;t=t.memoizedState,n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidUpdate(r,t)}e=e.updateQueue,null!==e&&we(e,n);break;case 3:n=e.updateQueue,null!==n&&we(n,null!==e.child?e.child.stateNode:null);break;case 5:n=e.stateNode,null===t&&4&e.effectTag&&c(n,e.type,e.memoizedProps,e);break;case 6:case 4:break;default:i("163")}},commitAttachRef:function(t){var e=t.ref;if(null!==e){var n=t.stateNode;switch(t.tag){case 5:e(l(n));break;default:e(n)}}},commitDetachRef:function(t){null!==(t=t.ref)&&t(null)}}}function Ae(t){function e(t){return t===Cr&&i("174"),t}var n=t.getChildHostContext,r=t.getRootHostContext,a={current:Cr},o={current:Cr},s={current:Cr};return{getHostContext:function(){return e(a.current)},getRootHostContainer:function(){return e(s.current)},popHostContainer:function(t){Zt(a,t),Zt(o,t),Zt(s,t)},popHostContext:function(t){o.current===t&&(Zt(a,t),Zt(o,t))},pushHostContainer:function(t,e){Kt(s,e,t),e=r(e),Kt(o,t,t),Kt(a,e,t)},pushHostContext:function(t){var i=e(s.current),r=e(a.current);i=n(r,t.type,i),r!==i&&(Kt(o,t,t),Kt(a,i,t))},resetHostContainer:function(){a.current=Cr,s.current=Cr}}}function Re(t){function e(t,e){var n=new ae(5,null,0);n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function n(t,e){switch(t.tag){case 5:return null!==(e=o(e,t.type,t.pendingProps))&&(t.stateNode=e,!0);case 6:return null!==(e=s(e,t.pendingProps))&&(t.stateNode=e,!0);default:return!1}}function r(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;d=t}var a=t.shouldSetTextContent;if(!(t=t.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){i("175")},prepareToHydrateHostTextInstance:function(){i("176")},popHydrationState:function(){return!1}};var o=t.canHydrateInstance,s=t.canHydrateTextInstance,l=t.getNextHydratableSibling,u=t.getFirstHydratableChild,c=t.hydrateInstance,h=t.hydrateTextInstance,d=null,f=null,p=!1;return{enterHydrationState:function(t){return f=u(t.stateNode.containerInfo),d=t,p=!0},resetHydrationState:function(){f=d=null,p=!1},tryToClaimNextHydratableInstance:function(t){if(p){var i=f;if(i){if(!n(t,i)){if(!(i=l(i))||!n(t,i))return t.effectTag|=2,p=!1,void(d=t);e(d,f)}d=t,f=u(i)}else t.effectTag|=2,p=!1,d=t}},prepareToHydrateHostInstance:function(t,e,n){return e=c(t.stateNode,t.type,t.memoizedProps,e,n,t),t.updateQueue=e,null!==e},prepareToHydrateHostTextInstance:function(t){return h(t.stateNode,t.memoizedProps,t)},popHydrationState:function(t){if(t!==d)return!1;if(!p)return r(t),p=!0,!1;var n=t.type;if(5!==t.tag||"head"!==n&&"body"!==n&&!a(n,t.memoizedProps))for(n=f;n;)e(t,n),n=l(n);return r(t),f=d?l(t.stateNode):null,!0}}}function Le(t){function e(t){at=Z=!0;var e=t.stateNode;if(e.current===t&&i("177"),e.isReadyForCommit=!1,ji.current=null,1o.expirationTime)&&(a=o.expirationTime),o=o.sibling;r.expirationTime=a}if(null!==e)return e;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1t))if(J<=q)for(;null!==K;)K=u(K)?a(K):r(K);else for(;null!==K&&!w();)K=u(K)?a(K):r(K)}else if(!(0===J||J>t))if(J<=q)for(;null!==K;)K=r(K);else for(;null!==K&&!w();)K=r(K)}function s(t,e){if(Z&&i("243"),Z=!0,t.isReadyForCommit=!1,t!==Q||e!==J||null===K){for(;-1e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var n=t.stateNode;!Z&&n===Q&&ext&&i("185"),null===r.nextScheduledRoot)r.remainingExpirationTime=a,null===lt?(st=lt=r,r.nextScheduledRoot=r):(lt=lt.nextScheduledRoot=r,lt.nextScheduledRoot=st);else{var o=r.remainingExpirationTime;(0===o||aut)return;W(ct)}var e=U()-Y;ut=t,ct=j(b,{timeout:10*(t-2)-e})}function y(){var t=0,e=null;if(null!==lt)for(var n=lt,r=st;null!==r;){var a=r.remainingExpirationTime;if(0===a){if((null===n||null===lt)&&i("244"),r===r.nextScheduledRoot){st=lt=r.nextScheduledRoot=null;break}if(r===st)st=a=r.nextScheduledRoot,lt.nextScheduledRoot=a,r.nextScheduledRoot=null;else{if(r===lt){lt=n,lt.nextScheduledRoot=st,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===t||aMt)&&(pt=!0)}function M(t){null===dt&&i("246"),dt.remainingExpirationTime=0,mt||(mt=!0,gt=t)}var S=Ae(t),E=Re(t),k=S.popHostContainer,T=S.popHostContext,C=S.resetHostContainer,P=Ce(t,S,E,f,d),O=P.beginWork,A=P.beginFailedWork,R=Pe(t,S,E).completeWork;S=Oe(t,l);var L=S.commitResetTextContent,I=S.commitPlacement,D=S.commitDeletion,N=S.commitWork,z=S.commitLifeCycles,B=S.commitAttachRef,F=S.commitDetachRef,U=t.now,j=t.scheduleDeferredCallback,W=t.cancelDeferredCallback,G=t.useSyncScheduling,V=t.prepareForCommit,H=t.resetAfterCommit,Y=U(),q=2,X=0,Z=!1,K=null,Q=null,J=0,$=null,tt=null,et=null,nt=null,it=null,rt=!1,at=!1,ot=!1,st=null,lt=null,ut=0,ct=-1,ht=!1,dt=null,ft=0,pt=!1,mt=!1,gt=null,vt=null,yt=!1,bt=!1,xt=1e3,wt=0,Mt=1;return{computeAsyncExpiration:h,computeExpirationForFiber:d,scheduleWork:f,batchedUpdates:function(t,e){var n=yt;yt=!0;try{return t(e)}finally{(yt=n)||ht||x(1,null)}},unbatchedUpdates:function(t){if(yt&&!bt){bt=!0;try{return t()}finally{bt=!1}}return t()},flushSync:function(t){var e=yt;yt=!0;try{t:{var n=X;X=1;try{var r=t();break t}finally{X=n}r=void 0}return r}finally{yt=e,ht&&i("187"),x(1,null)}},deferredUpdates:function(t){var e=X;X=h();try{return t()}finally{X=e}}}}function Ie(t){function e(t){return t=kt(t),null===t?null:t.stateNode}var n=t.getPublicInstance;t=Le(t);var r=t.computeAsyncExpiration,a=t.computeExpirationForFiber,o=t.scheduleWork;return{createContainer:function(t,e){var n=new ae(3,null,0);return t={current:n,containerInfo:t,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:e,nextScheduledRoot:null},n.stateNode=t},updateContainer:function(t,e,n,s){var l=e.current;if(n){n=n._reactInternalFiber;var u;t:{for(2===wt(n)&&2===n.tag||i("170"),u=n;3!==u.tag;){if($t(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}(u=u.return)||i("171")}u=u.stateNode.context}n=$t(n)?ne(n,u):u}else n=Cn;null===e.context?e.context=n:e.pendingContext=n,e=s,e=void 0===e?null:e,s=null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent?r():a(l),be(l,{expirationTime:s,partialState:{element:t},callback:e,isReplace:!1,isForced:!1,nextCallback:null,next:null}),o(l,s)},batchedUpdates:t.batchedUpdates,unbatchedUpdates:t.unbatchedUpdates,deferredUpdates:t.deferredUpdates,flushSync:t.flushSync,getPublicRootInstance:function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return n(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:e,findHostInstanceWithNoPortals:function(t){return t=Tt(t),null===t?null:t.stateNode},injectIntoDevTools:function(t){var n=t.findFiberByHostInstance;return pe(_n({},t,{findHostInstanceByFiber:function(t){return e(t)},findFiberByHostInstance:function(t){return n?n(t):null}}))}}}function De(t,e,n){var i=3n||i.hasOverloadedBooleanValue&&!1===n?Fe(t,e):i.mustUseProperty?t[i.propertyName]=n:(e=i.attributeName,(r=i.attributeNamespace)?t.setAttributeNS(r,e,""+n):i.hasBooleanValue||i.hasOverloadedBooleanValue&&!0===n?t.setAttribute(e,""):t.setAttribute(e,""+n))}else Be(t,e,a(e,n)?n:null)}function Be(t,e,n){Ne(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,""+n))}function Fe(t,e){var n=o(e);n?(e=n.mutationMethod)?e(t,void 0):n.mustUseProperty?t[n.propertyName]=!n.hasBooleanValue&&"":t.removeAttribute(n.attributeName):t.removeAttribute(e)}function Ue(t,e){var n=e.value,i=e.checked;return _n({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:t._wrapperState.initialValue,checked:null!=i?i:t._wrapperState.initialChecked})}function je(t,e){var n=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function We(t,e){null!=(e=e.checked)&&ze(t,"checked",e)}function Ge(t,e){We(t,e);var n=e.value;null!=n?0===n&&""===t.value?t.value="0":"number"===e.type?(e=parseFloat(t.value)||0,(n!=e||n==e&&t.value!=n)&&(t.value=""+n)):t.value!==""+n&&(t.value=""+n):(null==e.value&&null!=e.defaultValue&&t.defaultValue!==""+e.defaultValue&&(t.defaultValue=""+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked))}function Ve(t,e){switch(e.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":t.value="",t.value=t.defaultValue;break;default:t.value=t.value}e=t.name,""!==e&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function He(t){var e="";return bn.Children.forEach(t,function(t){null==t||"string"!=typeof t&&"number"!=typeof t||(e+=t)}),e}function Ye(t,e){return t=_n({children:void 0},e),(e=He(e.children))&&(t.children=e),t}function qe(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r=e.length||i("93"),e=e[0]),n=""+e),null==n&&(n="")),t._wrapperState={initialValue:""+n}}function Qe(t,e){var n=e.value;null!=n&&(n=""+n,n!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function Je(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function $e(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tn(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?$e(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}function en(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function nn(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=n,a=e[n];r=null==a||"boolean"==typeof a||""===a?"":i||"number"!=typeof a||0===a||Jr.hasOwnProperty(r)&&Jr[r]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}function rn(t,e,n){e&&(ta[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&i("137",t,n()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&i("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||i("61")),null!=e.style&&"object"!=typeof e.style&&i("62",n()))}function an(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function on(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var n=Dt(t);e=Kn[e];for(var i=0;i<\/script>",t=t.removeChild(t.firstChild)):t="string"==typeof e.is?n.createElement(t,{is:e.is}):n.createElement(t):t=n.createElementNS(i,t),t}function ln(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function un(t,e,n,i){var r=an(e,n);switch(e){case"iframe":case"object":Ot("topLoad","load",t);var a=n;break;case"video":case"audio":for(a in ia)ia.hasOwnProperty(a)&&Ot(a,ia[a],t);a=n;break;case"source":Ot("topError","error",t),a=n;break;case"img":case"image":Ot("topError","error",t),Ot("topLoad","load",t),a=n;break;case"form":Ot("topReset","reset",t),Ot("topSubmit","submit",t),a=n;break;case"details":Ot("topToggle","toggle",t),a=n;break;case"input":je(t,n),a=Ue(t,n),Ot("topInvalid","invalid",t),on(i,"onChange");break;case"option":a=Ye(t,n);break;case"select":Xe(t,n),a=_n({},n,{value:void 0}),Ot("topInvalid","invalid",t),on(i,"onChange");break;case"textarea":Ke(t,n),a=Ze(t,n),Ot("topInvalid","invalid",t),on(i,"onChange");break;default:a=n}rn(e,a,na);var o,s=a;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?nn(t,l,na):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&Qr(t,l):"children"===o?"string"==typeof l?("textarea"!==e||""!==l)&&en(t,l):"number"==typeof l&&en(t,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(Zn.hasOwnProperty(o)?null!=l&&on(i,o):r?Be(t,o,l):null!=l&&ze(t,o,l))}switch(e){case"input":at(t),Ve(t,n);break;case"textarea":at(t),Je(t,n);break;case"option":null!=n.value&&t.setAttribute("value",n.value);break;case"select":t.multiple=!!n.multiple,e=n.value,null!=e?qe(t,!!n.multiple,e,!1):null!=n.defaultValue&&qe(t,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(t.onclick=wn)}}function cn(t,e,n,i,r){var a=null;switch(e){case"input":n=Ue(t,n),i=Ue(t,i),a=[];break;case"option":n=Ye(t,n),i=Ye(t,i),a=[];break;case"select":n=_n({},n,{value:void 0}),i=_n({},i,{value:void 0}),a=[];break;case"textarea":n=Ze(t,n),i=Ze(t,i),a=[];break;default:"function"!=typeof n.onClick&&"function"==typeof i.onClick&&(t.onclick=wn)}rn(e,i,na);var o,s;t=null;for(o in n)if(!i.hasOwnProperty(o)&&n.hasOwnProperty(o)&&null!=n[o])if("style"===o)for(s in e=n[o])e.hasOwnProperty(s)&&(t||(t={}),t[s]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(Zn.hasOwnProperty(o)?a||(a=[]):(a=a||[]).push(o,null));for(o in i){var l=i[o];if(e=null!=n?n[o]:void 0,i.hasOwnProperty(o)&&l!==e&&(null!=l||null!=e))if("style"===o)if(e){for(s in e)!e.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(t||(t={}),t[s]="");for(s in l)l.hasOwnProperty(s)&&e[s]!==l[s]&&(t||(t={}),t[s]=l[s])}else t||(a||(a=[]),a.push(o,t)),t=l;else"dangerouslySetInnerHTML"===o?(l=l?l.__html:void 0,e=e?e.__html:void 0,null!=l&&e!==l&&(a=a||[]).push(o,""+l)):"children"===o?e===l||"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(o,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(Zn.hasOwnProperty(o)?(null!=l&&on(r,o),a||e===l||(a=[])):(a=a||[]).push(o,l))}return t&&(a=a||[]).push("style",t),a}function hn(t,e,n,i,r){"input"===n&&"radio"===r.type&&null!=r.name&&We(t,r),an(n,i),i=an(n,r);for(var a=0;a1&&n[1]||""}function n(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var i,r=e(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(t),s=!a&&/android/i.test(t),l=/nexus\s*[0-6]\s*/i.test(t),u=!l&&/nexus\s*[0-9]+/i.test(t),c=/CrOS/.test(t),h=/silk/i.test(t),d=/sailfish/i.test(t),f=/tizen/i.test(t),p=/(web|hpw)os/i.test(t),m=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),v=!r&&!h&&/macintosh/i.test(t),y=!s&&!d&&!f&&!p&&/linux/i.test(t),b=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),x=e(/version\/(\d+(\.\d+)?)/i),_=/tablet/i.test(t)&&!/tablet pc/i.test(t),w=!_&&/[^-]mobi/i.test(t),M=/xbox/i.test(t);/opera/i.test(t)?i={name:"Opera",opera:o,version:x||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:o,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||x}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:o,version:x||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:o,version:x||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:o,version:x||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:o,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:o,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:o,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:o,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:o,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:o,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:o},b?(i.msedge=o,i.version=b):(i.msie=o,i.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:o,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?i={name:"Chrome",osname:"Chrome OS",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:o,version:b}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:o,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||x}:d?i={name:"Sailfish",osname:"Sailfish OS",sailfish:o,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:o,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=o,i.osname="Firefox OS")):h?i={name:"Amazon Silk",silk:o,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:o,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:o,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:o,version:x||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:p?(i={name:"WebOS",osname:"WebOS",webos:o,version:x||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=o)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:o,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:f?i={name:"Tizen",osname:"Tizen",tizen:o,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||x}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:o,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||x}:/chromium/i.test(t)?i={name:"Chromium",chromium:o,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||x}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?i={name:"Android",version:x}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:o},x&&(i.version=x)):r?(i={name:"iphone"==r?"iPhone":"ipad"==r?"iPad":"iPod"},x&&(i.version=x)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:o,version:e(/googlebot\/(\d+(\.\d+))/i)||x}:{name:e(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=o):(i.name=i.name||"Webkit",i.webkit=o),!i.version&&x&&(i.version=x)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=o,i.version=i.version||e(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!s&&!i.silk?!i.windowsphone&&r?(i[r]=o,i.ios=o,i.osname="iOS"):v?(i.mac=o,i.osname="macOS"):M?(i.xbox=o,i.osname="Xbox"):g?(i.windows=o,i.osname="Windows"):y&&(i.linux=o,i.osname="Linux"):(i.android=o,i.osname="Android");var S="";i.windows?S=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?S=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?(S=e(/Mac OS X (\d+([_\.\s]\d+)*)/i),S=S.replace(/[_\s]/g,".")):r?(S=e(/os (\d+([_\s]\d+)*) like mac os x/i),S=S.replace(/[_\s]/g,".")):s?S=e(/android[ \/-](\d+(\.\d+)*)/i):i.webos?S=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?S=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?S=e(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(S=e(/tizen[\/\s](\d+(\.\d+)*)/i)),S&&(i.osversion=S);var E=!i.windows&&S.split(".")[0];return _||u||"ipad"==r||s&&(3==E||E>=4&&!w)||i.silk?i.tablet=o:(w||"iphone"==r||"ipod"==r||s||l||i.blackberry||i.webos||i.bada)&&(i.mobile=o),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=o:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=o:i.x=o,i}function e(t){return t.split(".").length}function n(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(e,n,r){var a=s;"string"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(a=t(r));var o=""+a.version;for(var l in e)if(e.hasOwnProperty(l)&&a[l]){if("string"!=typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return i([o,e[l]])<0}return n}function a(t,e,n){return!r(t,e,n)}var o=!0,s=t("undefined"!=typeof navigator?navigator.userAgent||"":"");return s.test=function(t){for(var e=0;e0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&r>0)&&(g+=r));return a=h.getPixelForValue(g),o=h.getPixelForValue(g+f),s=(o-a)/2,{size:s,base:a,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,n){var i,r,o,s,l,u,c=this,h=n.scale.options,d=c.getStackIndex(t),f=n.pixels,p=f[e],m=f.length,g=n.start,v=n.end;return 1===m?(i=p>g?p-g:v-p,r=p0&&(i=(p-f[e-1])/2,e===m-1&&(r=i)),e');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[i],l=s&&s.custom||{},u=a.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,c.borderWidth),hidden:isNaN(o.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0);var m=p+f,g={x:Math.cos(p),y:Math.sin(p)},v={x:Math.cos(m),y:Math.sin(m)},y=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,b=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,x=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,_=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,w=d/100,M={x:x?-1:Math.min(g.x*(g.x<0?1:w),v.x*(v.x<0?1:w)),y:_?-1:Math.min(g.y*(g.y<0?1:w),v.y*(v.y<0?1:w))},S={x:y?1:Math.max(g.x*(g.x>0?1:w),v.x*(v.x>0?1:w)),y:b?1:Math.max(g.y*(g.y>0?1:w),v.y*(v.y>0?1:w))},E={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(s/E.width,l/E.height),c={x:-.5*(S.x+M.x),y:-.5*(S.y+M.y)}}n.borderWidth=e.getMaxBorderWidth(h.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,h.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),a.each(h.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,r=i.chart,o=r.chartArea,s=r.options,l=s.animation,u=(o.left+o.right)/2,c=(o.top+o.bottom)/2,h=s.rotation,d=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,g=n&&l.animateScale?0:i.outerRadius,v=a.valueAtIndexOrDefault;a.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+r.offsetX,y:c+r.offsetY,startAngle:h,endAngle:d,circumference:p,outerRadius:g,innerRadius:m,label:v(f.label,e,r.data.labels[e])}});var y=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(y.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return a.each(n.data,function(n,r){t=e.data[r],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,r=this.index,a=t.length,o=0;oi?e:i,i=n>i?n:i;return i}})}},function(t,e,n){"use strict";var i=n(9),r=n(33),a=n(6);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),t.exports=function(t){function e(t,e){return a.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(t){var n,i,r,o=this,s=o.getMeta(),l=s.dataset,u=s.data||[],c=o.chart.options,h=c.elements.line,d=o.getScaleForId(s.yAxisID),f=o.getDataset(),p=e(f,c);for(p&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=d,l._datasetIndex=o.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:r.tension?r.tension:a.valueOrDefault(f.lineTension,h.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||h.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||h.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||h.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||h.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||h.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||h.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||h.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:h.fill,steppedLine:r.steppedLine?r.steppedLine:a.valueOrDefault(f.steppedLine,h.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:a.valueOrDefault(f.cubicInterpolationMode,h.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[i],l=s.custom||{},u=a.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,c.borderWidth),hidden:isNaN(o.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e,n){"use strict";var i=n(9),r=n(33),a=n(6);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),t.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,linkScales:a.noop,update:function(t){var e=this,n=e.getMeta(),i=n.dataset,r=n.data,o=i.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),a.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:r,_loop:!0,_model:{tension:o.tension?o.tension:a.valueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),a.each(r,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,r=t.custom||{},o=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),a.extend(t,{_datasetIndex:i.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:r.tension?r.tension:a.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:r.radius?r.radius:a.valueAtIndexOrDefault(o.pointRadius,e,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:a.valueAtIndexOrDefault(o.pointBackgroundColor,e,l.backgroundColor),borderColor:r.borderColor?r.borderColor:a.valueAtIndexOrDefault(o.pointBorderColor,e,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:a.valueAtIndexOrDefault(o.pointBorderWidth,e,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:a.valueAtIndexOrDefault(o.pointStyle,e,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:a.valueAtIndexOrDefault(o.pointHitRadius,e,l.hitRadius)}}),t._model.skip=r.skip?r.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();a.each(e.data,function(n,i){var r=n._model,o=a.splineCurve(a.previousItem(e.data,i,!0)._model,r,a.nextItem(e.data,i,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),r.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),r.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),r.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model;r.radius=n.hoverRadius?n.hoverRadius:a.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:a.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,a.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:a.valueAtIndexOrDefault(e.pointHoverBorderColor,i,a.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:a.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,r.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model,o=this.chart.options.elements.point;r.radius=n.radius?n.radius:a.valueAtIndexOrDefault(e.pointRadius,i,o.radius),r.backgroundColor=n.backgroundColor?n.backgroundColor:a.valueAtIndexOrDefault(e.pointBackgroundColor,i,o.backgroundColor),r.borderColor=n.borderColor?n.borderColor:a.valueAtIndexOrDefault(e.pointBorderColor,i,o.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:a.valueAtIndexOrDefault(e.pointBorderWidth,i,o.borderWidth)}})}},function(t,e,n){"use strict";n(9)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),t.exports=function(t){t.controllers.scatter=t.controllers.line}},function(t,e,n){"use strict";var i=n(9),r=n(20),a=n(6);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:a.noop,onComplete:a.noop}}),t.exports=function(t){t.Animation=r.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var r,a,o=this.animations;for(e.chart=t,i||(t.animating=!0),r=0,a=o.length;r1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,r=0;r=e.numSteps?(a.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(r,1)):++r}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},function(t,e,n){"use strict";var i=n(9),r=n(6),a=n(119),o=n(120);t.exports=function(t){function e(t){t=t||{};var e=t.data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=r.configMerge(i.global,i[t.type],t.options||{}),t}function n(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function s(t){return"top"===t||"bottom"===t}var l=t.plugins;t.types={},t.instances={},t.controllers={},r.extend(t.prototype,{construct:function(n,i){var a=this;i=e(i);var s=o.acquireContext(n,i),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(a.id=r.uid(),a.ctx=s,a.canvas=l,a.config=i,a.width=c,a.height=u,a.aspectRatio=u?c/u:null,a.options=i.options,a._bufferedRender=!1,a.chart=a,a.controller=a,t.instances[a.id]=a,Object.defineProperty(a,"data",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),!s||!l)return void console.error("Failed to create chart: can't acquire context from the given item");a.initialize(),a.update()},initialize:function(){var t=this;return l.notify(t,"beforeInit"),r.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return r.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(r.getMaximumWidth(i))),s=Math.max(0,Math.floor(a?o/a:r.getMaximumHeight(i)));if((e.width!==o||e.height!==s)&&(i.width=e.width=o,i.height=e.height=s,i.style.width=o+"px",i.style.height=s+"px",r.retinaScale(e,n.devicePixelRatio),!t)){var u={width:o,height:s};l.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;r.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),r.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,i=e.scales={},a=[];n.scales&&(a=a.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),n.scale&&a.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),r.each(a,function(n){var a=n.options,o=r.valueOrDefault(a.type,n.dtype),l=t.scaleService.getScaleConstructor(o);if(l){s(a.position)!==s(n.dposition)&&(a.position=n.dposition);var u=new l({id:a.id,options:a,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return r.each(e.data.datasets,function(r,a){var o=e.getDatasetMeta(a),s=r.type||e.config.type;if(o.type&&o.type!==s&&(e.destroyDatasetMeta(a),o=e.getDatasetMeta(a)),o.type=s,n.push(o.type),o.controller)o.controller.updateIndex(a);else{var l=t.controllers[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(e,a),i.push(o.controller)}},e),i},resetElements:function(){var t=this;r.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n(e),!1!==l.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var i=e.buildOrUpdateControllers();r.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()},e),e.updateLayout(),r.each(i,function(t){t.reset()}),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],l.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==l.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),l.notify(e,"afterScaleUpdate"),l.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==l.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),r={meta:i,index:t,easingValue:e};!1!==l.notify(n,"beforeDatasetDraw",[r])&&(i.controller.draw(e),l.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(t){var e=this,n=e.tooltip,i={tooltip:n,easingValue:t};!1!==l.notify(e,"beforeTooltipDraw",[i])&&(n.draw(),l.notify(e,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return a.modes.single(this,t)},getElementsAtEvent:function(t){return a.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return a.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=a.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return a.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(r.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),r=n.getDataset().data||[],a=i.data;for(t=0,e=r.length;ti&&t.insertElements(i,r-i)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][o].type||l.type&&l.type!==n[e][o].type?a.merge(n[e][o],[t.scaleService.getScaleDefaults(s),l]):a.merge(n[e][o],l)}else a._merger(e,n,i,r)}})},a.where=function(t,e){if(a.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return a.each(t,function(t){e(t)&&n.push(t)}),n},a.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,r=t.length;i=0;i--){var r=t[i];if(e(r))return r}},a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,n){return Math.abs(t-e)t},a.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},a.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},a.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2==0?0:.5},a.splineCurve=function(t,e,n,i){var r=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;var h=i*u,d=i*c;return{previous:{x:a.x-h*(o.x-r.x),y:a.y-h*(o.y-r.y)},next:{x:a.x+d*(o.x-r.x),y:a.y+d*(o.y-r.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,n,i,r,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,(r=e0?o[e-1]:null,r=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var n=Math.floor(a.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},a.requestAnimFrame=function(){return"undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),a.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=r.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=r.clientX,i=r.clientY);var u=parseFloat(a.getStyle(o,"padding-left")),c=parseFloat(a.getStyle(o,"padding-top")),h=parseFloat(a.getStyle(o,"padding-right")),d=parseFloat(a.getStyle(o,"padding-bottom")),f=s.right-s.left-u-h,p=s.bottom-s.top-c-d;return n=Math.round((n-s.left-u)/f*o.width/e.currentDevicePixelRatio),i=Math.round((i-s.top-c)/p*o.height/e.currentDevicePixelRatio),{x:n,y:i}},a.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},a.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},a.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(a.getStyle(e,"padding-left"),10),i=parseInt(a.getStyle(e,"padding-right"),10),r=e.clientWidth-n-i,o=a.getConstraintWidth(t);return isNaN(o)?r:Math.min(r,o)},a.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(a.getStyle(e,"padding-top"),10),i=parseInt(a.getStyle(e,"padding-bottom"),10),r=e.clientHeight-n-i,o=a.getConstraintHeight(t);return isNaN(o)?r:Math.min(r,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},a.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,r=t.height,a=t.width;i.height=r*n,i.width=a*n,t.ctx.scale(n,n),i.style.height=r+"px",i.style.width=a+"px"}},a.fontString=function(t,e,n){return e+" "+t+"px "+n},a.longestText=function(t,e,n,i){i=i||{};var r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),t.font=e;var s=0;a.each(n,function(e){void 0!==e&&null!==e&&!0!==a.isArray(e)?s=a.measureText(t,r,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,r,o,s,e))})});var l=o.length/2;if(l>n.length){for(var u=0;ui&&(i=a),i},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.color=i?function(t){return t instanceof CanvasGradient&&(t=r.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},a.getHoverColor=function(t){return t instanceof CanvasPattern?t:a.color(t).saturate(.5).darken(.1).rgbString()}}},function(t,e,n){"use strict";n(9)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),t.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},function(t,e,n){"use strict";var i=n(6);t.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,r=e?t:n;return i.weight===r.weight?i._tmpIndex_-r._tmpIndex_:i.weight-r.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,r=["fullWidth","position","weight"],a=r.length,o=0;od&&lt.maxHeight){l--;break}l++,h=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,r=t.minSize={width:0,height:0},a=i(t._ticks),o=t.options,u=o.ticks,c=o.scaleLabel,h=o.gridLines,d=o.display,f=t.isHorizontal(),p=n(u),m=o.gridLines.tickMarkLength;if(r.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:d&&h.drawTicks?m:0,r.height=f?d&&h.drawTicks?m:0:t.maxHeight,c.display&&d){var g=l(c),v=s.options.toPadding(c.padding),y=g+v.height;f?r.height+=y:r.width+=y}if(u.display&&d){var b=s.longestText(t.ctx,p.font,a,t.longestTextCache),x=s.numberOfLabelLines(a),_=.5*p.size,w=t.options.ticks.padding;if(f){t.longestLabelWidth=b;var M=s.toRadians(t.labelRotation),S=Math.cos(M),E=Math.sin(M),k=E*b+p.size*x+_*(x-1)+_;r.height=Math.min(t.maxHeight,r.height+k+w),t.ctx.font=p.font;var T=e(t.ctx,a[0],p.font),C=e(t.ctx,a[a.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===o.position?S*T+3:S*_+3,t.paddingRight="bottom"===o.position?S*_+3:S*C+3):(t.paddingLeft=T/2+3,t.paddingRight=C/2+3)}else u.mirror?b=0:b+=w+_,r.width=Math.min(t.maxWidth,r.width+b),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=r.width,t.height=r.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),r=i/Math.max(e._ticks.length-(n?0:1),1),a=r*t+e.paddingLeft;n&&(a+=r/2);var o=e.left+Math.round(a);return o+=e.isFullWidth()?e.margins.left:0}var s=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(s/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=e.width-(e.paddingLeft+e.paddingRight),i=n*t+e.paddingLeft,r=e.left+Math.round(i);return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,r,a,o=this,l=o.isHorizontal(),u=o.options.ticks.minor,c=t.length,h=s.toRadians(o.labelRotation),d=Math.cos(h),f=o.longestLabelWidth*d,p=[];for(u.maxTicksLimit&&(a=u.maxTicksLimit),l&&(e=!1,(f+u.autoSkipPadding)*c>o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((f+u.autoSkipPadding)*c/(o.width-(o.paddingLeft+o.paddingRight)))),a&&c>a&&(e=Math.max(e,Math.floor(c/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=c,r&&n!==c-1&&delete i.label,p.push(i);return p},draw:function(t){var e=this,i=e.options;if(i.display){var o=e.ctx,u=a.global,c=i.ticks.minor,h=i.ticks.major||c,d=i.gridLines,f=i.scaleLabel,p=0!==e.labelRotation,m=e.isHorizontal(),g=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=s.valueOrDefault(c.fontColor,u.defaultFontColor),y=n(c),b=s.valueOrDefault(h.fontColor,u.defaultFontColor),x=n(h),_=d.drawTicks?d.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),M=n(f),S=s.options.toPadding(f.padding),E=s.toRadians(e.labelRotation),k=[],T="right"===i.position?e.left:e.right-_,C="right"===i.position?e.left+_:e.right,P="bottom"===i.position?e.top:e.bottom-_,O="bottom"===i.position?e.top+_:e.bottom;if(s.each(g,function(n,a){if(!s.isNullOrUndef(n.label)){var o,l,h,f,v=n.label;a===e.zeroLineIndex&&i.offset===d.offsetGridLines?(o=d.zeroLineWidth,l=d.zeroLineColor,h=d.zeroLineBorderDash,f=d.zeroLineBorderDashOffset):(o=s.valueAtIndexOrDefault(d.lineWidth,a),l=s.valueAtIndexOrDefault(d.color,a),h=s.valueOrDefault(d.borderDash,u.borderDash),f=s.valueOrDefault(d.borderDashOffset,u.borderDashOffset));var y,b,x,w,M,S,A,R,L,I,D="middle",N="middle",z=c.padding;if(m){var B=_+z;"bottom"===i.position?(N=p?"middle":"top",D=p?"right":"center",I=e.top+B):(N=p?"middle":"bottom",D=p?"left":"center",I=e.bottom-B);var F=r(e,a,d.offsetGridLines&&g.length>1);F1);W0){var a=t[0];a.xLabel?n=a.xLabel:r>0&&a.indexi.height-e.height&&(o="bottom");var s,l,u,c,h,d=(r.left+r.right)/2,f=(r.top+r.bottom)/2;"center"===o?(s=function(t){return t<=d},l=function(t){return t>d}):(s=function(t){return t<=e.width/2},l=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},c=function(t){return t-e.width<0},h=function(t){return t<=f?"top":"bottom"},s(n.x)?(a="left",u(n.x)&&(a="center",o=h(n.y))):l(n.x)&&(a="right",c(n.x)&&(a="center",o=h(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:a,yAlign:p.yAlign?p.yAlign:o}}function c(t,e,n){var i=t.x,r=t.y,a=t.caretSize,o=t.caretPadding,s=t.cornerRadius,l=n.xAlign,u=n.yAlign,c=a+o,h=s+o;return"right"===l?i-=e.width:"center"===l&&(i-=e.width/2),"top"===u?r+=c:r-="bottom"===u?e.height+c:e.height/2,"center"===u?"left"===l?i+=c:"right"===l&&(i-=c):"left"===l?i-=h:"right"===l&&(i+=h),{x:i,y:r}}t.Tooltip=r.extend({initialize:function(){this._model=s(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,i=e.callbacks,r=i.beforeTitle.apply(t,arguments),a=i.title.apply(t,arguments),o=i.afterTitle.apply(t,arguments),s=[];return s=n(s,r),s=n(s,a),s=n(s,o)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,r=i._options.callbacks,o=[];return a.each(t,function(t){var a={before:[],lines:[],after:[]};n(a.before,r.beforeLabel.call(i,t,e)),n(a.lines,r.label.call(i,t,e)),n(a.after,r.afterLabel.call(i,t,e)),o.push(a)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,i=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),a=e.afterFooter.apply(t,arguments),o=[];return o=n(o,i),o=n(o,r),o=n(o,a)},update:function(e){var n,i,r=this,h=r._options,d=r._model,f=r._model=s(h),p=r._active,m=r._data,g={xAlign:d.xAlign,yAlign:d.yAlign},v={x:d.x,y:d.y},y={width:d.width,height:d.height},b={x:d.caretX,y:d.caretY};if(p.length){f.opacity=1;var x=[],_=[];b=t.Tooltip.positioners[h.position].call(r,p,r._eventPosition);var w=[];for(n=0,i=p.length;n0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,a=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&a&&(this.drawBackground(i,e,t,n,r),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,r),this.drawBody(i,e,t,r),this.drawFooter(i,e,t,r))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(i=!a.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var r=e._model;e.update(!0),e.pivot(),i|=r.x!==e._model.x||r.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,r=0,a=0;for(e=0,n=t.length;el;)r-=2*Math.PI;for(;r=s&&r<=l,c=o>=n.innerRadius&&o<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},function(t,e,n){"use strict";var i=n(9),r=n(20),a=n(6),o=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:o.defaultColor,borderWidth:3,borderColor:o.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),t.exports=r.extend({draw:function(){var t,e,n,i,r=this,s=r._view,l=r._chart.ctx,u=s.spanGaps,c=r._children.slice(),h=o.elements.line,d=-1;for(r._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||h.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||h.borderDash),l.lineDashOffset=s.borderDashOffset||h.borderDashOffset,l.lineJoin=s.borderJoinStyle||h.borderJoinStyle,l.lineWidth=s.borderWidth||h.borderWidth,l.strokeStyle=s.borderColor||o.defaultColor,l.beginPath(),d=-1,t=0;te?1:-1,o=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=u.base,a=1,o=r>i?1:-1,s=u.borderSkipped||"bottom"),c){var h=Math.min(Math.abs(e-n),Math.abs(i-r));c=c>h?h:c;var d=c/2,f=e+("left"!==s?d*a:0),p=n+("right"!==s?-d*a:0),m=i+("top"!==s?d*o:0),g=r+("bottom"!==s?-d*o:0);f!==p&&(i=m,r=g),m!==g&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var v=[[e,r],[e,i],[n,i],[n,r]],y=["bottom","left","top","right"],b=y.indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var _=1;_<4;_++)x=t(_),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=r(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var a=r(n);return i(n)?t>=a.left&&t<=a.right:e>=a.top&&e<=a.bottom},inXRange:function(t){var e=r(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=r(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return i(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},function(t,e,n){"use strict";var i=n(61),e=t.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,r,a){if(a){var o=Math.min(a,i/2),s=Math.min(a,r/2);t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+s),t.lineTo(e+i,n+r-s),t.quadraticCurveTo(e+i,n+r,e+i-o,n+r),t.lineTo(e+o,n+r),t.quadraticCurveTo(e,n+r,e,n+r-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+o,n)}else t.rect(e,n,i,r)},drawPoint:function(t,e,n,i,r){var a,o,s,l,u,c;if(e&&"object"==typeof e&&("[object HTMLImageElement]"===(a=e.toString())||"[object HTMLCanvasElement]"===a))return void t.drawImage(e,i-e.width/2,r-e.height/2,e.width,e.height);if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,r,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),o=3*n/Math.sqrt(3),u=o*Math.sqrt(3)/2,t.moveTo(i-o/2,r+u/3),t.lineTo(i+o/2,r+u/3),t.lineTo(i,r-2*u/3),t.closePath(),t.fill();break;case"rect":c=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-c,r-c,2*c,2*c),t.strokeRect(i-c,r-c,2*c,2*c);break;case"rectRounded":var h=n/Math.SQRT2,d=i-h,f=r-h,p=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,f,p,p,n/2),t.closePath(),t.fill();break;case"rectRot":c=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-c,r),t.lineTo(i,r+c),t.lineTo(i+c,r),t.lineTo(i,r-c),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,r),t.lineTo(i+n,r),t.closePath()}t.stroke()}},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){return n.steppedLine?("after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y)):n.tension?void t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):void t.lineTo(n.x,n.y)}};i.clear=e.clear,i.drawRoundedRectangle=function(t){t.beginPath(),e.roundedRect.apply(e,arguments),t.closePath()}},function(t,e,n){"use strict";var i=n(61),r={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-r.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*r.easeInBounce(2*t):.5*r.easeOutBounce(2*t-1)+.5}};t.exports={effects:r},i.easingEffects=r},function(t,e,n){"use strict";var i=n(61);t.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,r,a;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,r=+t.bottom||0,a=+t.left||0):e=n=r=a=+t||0,{top:e,right:n,bottom:r,left:a,height:e+r,width:a+n}},resolve:function(t,e,n){var r,a,o;for(r=0,a=t.length;r
';var r=e.childNodes[0],o=e.childNodes[1];e._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var s=function(){e._reset(),t()};return a(r,"scroll",s.bind(r,"expand")),a(o,"scroll",s.bind(o,"shrink")),e}function h(t,e){var n=t[v]||(t[v]={}),i=n.renderProxy=function(t){t.animationName===x&&e()};g.each(_,function(e){a(t,e,i)}),n.reflow=!!t.offsetParent,t.classList.add(b)}function d(t){var e=t[v]||{},n=e.renderProxy;n&&(g.each(_,function(e){o(t,e,n)}),delete e.renderProxy),t.classList.remove(b)}function f(t,e,n){var i=t[v]||(t[v]={}),r=i.resizer=c(u(function(){if(i.resizer)return e(s("resize",n))}));h(t,function(){if(i.resizer){var e=t.parentNode;e&&e!==r.parentNode&&e.insertBefore(r,e.firstChild),r._reset()}})}function p(t){var e=t[v]||{},n=e.resizer;delete e.resizer,d(t),n&&n.parentNode&&n.parentNode.removeChild(n)}function m(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}var g=n(6),v="$chartjs",y="chartjs-",b=y+"render-monitor",x=y+"render-animation",_=["animationstart","webkitAnimationStart"],w={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},M=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}(),S=!!M&&{passive:!0};t.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";m(this,"@-webkit-keyframes "+x+"{"+t+"}@keyframes "+x+"{"+t+"}."+b+"{-webkit-animation:"+x+" 0.001s;animation:"+x+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(r(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[v]){var n=e[v].initial;["height","width"].forEach(function(t){var i=n[t];g.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)}),g.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[v]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"===e)return void f(i,n,t);var r=n[v]||(n[v]={});a(i,e,(r.proxies||(r.proxies={}))[t.id+"_"+e]=function(e){n(l(e,t))})},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"===e)return void p(i);var r=n[v]||{},a=r.proxies||{},s=a[t.id+"_"+e];s&&o(i,e,s)}},g.addEvent=a,g.removeEvent=o},function(t,e,n){"use strict";var i=n(9),r=n(33),a=n(6);i._set("global",{plugins:{filler:{propagate:!0}}}),t.exports=function(){function t(t,e,n){var i,r=t._model||{},a=r.fill;if(void 0===a&&(a=!!r.backgroundColor),!1===a||null===a)return!1;if(!0===a)return"origin";if(i=parseFloat(a,10),isFinite(i)&&Math.floor(i)===i)return"-"!==a[0]&&"+"!==a[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function e(t){var e,n=t.el._model||{},i=t.el._scale||{},r=t.fill,a=null;if(isFinite(r))return null;if("start"===r?a=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?a=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:i.getBasePosition?a=i.getBasePosition():i.getBasePixel&&(a=i.getBasePixel()),void 0!==a&&null!==a){if(void 0!==a.x&&void 0!==a.y)return a;if("number"==typeof a&&isFinite(a))return e=i.isHorizontal(),{x:e?a:null,y:e?null:a}}return null}function n(t,e,n){var i,r=t[e],a=r.fill,o=[e];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;o.push(a),a=i.fill}return!1}function o(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,i,r){var o;if(i&&r){for(t.moveTo(e[0].x,e[0].y),o=1;o0;--o)a.canvas.lineTo(t,n[o],n[o-1],!0)}}function u(t,e,n,i,r,a){var o,u,c,h,d,f,p,m=e.length,g=i.spanGaps,v=[],y=[],b=0,x=0;for(t.beginPath(),o=0,u=m+!!a;o');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),t.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var i=new t.Legend({ctx:e.ctx,options:n,chart:e});o.configure(e,i,n),o.addBox(e,i),e.legend=i}var o=t.layoutService,s=a.noop;return t.Legend=r.extend({initialize:function(t){a.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=a.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,r=n.labels,o=n.display,s=t.ctx,l=i.global,u=a.valueOrDefault,c=u(r.fontSize,l.defaultFontSize),h=u(r.fontStyle,l.defaultFontStyle),d=u(r.fontFamily,l.defaultFontFamily),f=a.fontString(c,h,d),p=t.legendHitBoxes=[],m=t.minSize,g=t.isHorizontal();if(g?(m.width=t.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=t.maxHeight),o)if(s.font=f,g){var v=t.lineWidths=[0],y=t.legendItems.length?c+r.padding:0;s.textAlign="left",s.textBaseline="top",a.each(t.legendItems,function(n,i){var a=e(r,c),o=a+c/2+s.measureText(n.text).width;v[v.length-1]+o+r.padding>=t.width&&(y+=c+r.padding,v[v.length]=t.left),p[i]={left:0,top:0,width:o,height:c},v[v.length-1]+=o+r.padding}),m.height+=y}else{var b=r.padding,x=t.columnWidths=[],_=r.padding,w=0,M=0,S=c+b;a.each(t.legendItems,function(t,n){var i=e(r,c),a=i+c/2+s.measureText(t.text).width;M+S>m.height&&(_+=w+r.padding,x.push(w),w=0,M=0),w=Math.max(w,a),M+=S,p[n]={left:0,top:0,width:a,height:c}}),_+=w,x.push(w),m.width+=_}t.width=m.width,t.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,r=n.labels,o=i.global,s=o.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,h=t.ctx,d=a.valueOrDefault,f=d(r.fontColor,o.defaultFontColor),p=d(r.fontSize,o.defaultFontSize),m=d(r.fontStyle,o.defaultFontStyle),g=d(r.fontFamily,o.defaultFontFamily),v=a.fontString(p,m,g);h.textAlign="left",h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=v;var y=e(r,p),b=t.legendHitBoxes,x=function(t,e,i){if(!(isNaN(y)||y<=0)){h.save(),h.fillStyle=d(i.fillStyle,o.defaultColor),h.lineCap=d(i.lineCap,s.borderCapStyle),h.lineDashOffset=d(i.lineDashOffset,s.borderDashOffset),h.lineJoin=d(i.lineJoin,s.borderJoinStyle),h.lineWidth=d(i.lineWidth,s.borderWidth),h.strokeStyle=d(i.strokeStyle,o.defaultColor);var r=0===d(i.lineWidth,s.borderWidth);if(h.setLineDash&&h.setLineDash(d(i.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;a.canvas.drawPoint(h,i.pointStyle,l,c,f)}else r||h.strokeRect(t,e,y,p),h.fillRect(t,e,y,p);h.restore()}},_=function(t,e,n,i){var r=p/2,a=y+r+t,o=e+r;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(a+i,o),h.stroke())},w=t.isHorizontal();c=w?{x:t.left+(l-u[0])/2,y:t.top+r.padding,line:0}:{x:t.left+r.padding,y:t.top+r.padding,line:0};var M=p+r.padding;a.each(t.legendItems,function(e,n){var i=h.measureText(e.text).width,a=y+p/2+i,o=c.x,s=c.y;w?o+a>=l&&(s=c.y+=M,c.line++,o=c.x=t.left+(l-u[c.line])/2):s+M>t.bottom&&(o=c.x=o+t.columnWidths[c.line]+r.padding,s=c.y=t.top+r.padding,c.line++),x(o,s,e),b[n].left=o,b[n].top=s,_(o,s,e,i),w?c.x+=a+r.padding:c.y+=M})}},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,r=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var a=t.x,o=t.y;if(a>=e.left&&a<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&a<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),r=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),r=!0;break}}}return r}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,r=t.legend;e?(a.mergeIf(e,i.global.legend),r?(o.configure(t,r,e),r.options=e):n(t,e)):r&&(o.removeBox(t,r),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},function(t,e,n){"use strict";var i=n(9),r=n(20),a=n(6);i._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),t.exports=function(t){function e(e,i){var r=new t.Title({ctx:e.ctx,options:i,chart:e});n.configure(e,r,i),n.addBox(e,r),e.titleBlock=r}var n=t.layoutService,o=a.noop;return t.Title=r.extend({initialize:function(t){var e=this;a.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:o,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:o,afterBuildLabels:o,beforeFit:o,fit:function(){var t=this,e=a.valueOrDefault,n=t.options,r=n.display,o=e(n.fontSize,i.global.defaultFontSize),s=t.minSize,l=a.isArray(n.text)?n.text.length:1,u=a.options.toLineHeight(n.lineHeight,o),c=r?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:o,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=a.valueOrDefault,r=t.options,o=i.global;if(r.display){var s,l,u,c=n(r.fontSize,o.defaultFontSize),h=n(r.fontStyle,o.defaultFontStyle),d=n(r.fontFamily,o.defaultFontFamily),f=a.fontString(c,h,d),p=a.options.toLineHeight(r.lineHeight,c),m=p/2+r.padding,g=0,v=t.top,y=t.left,b=t.bottom,x=t.right;e.fillStyle=n(r.fontColor,o.defaultFontColor),e.font=f,t.isHorizontal()?(l=y+(x-y)/2,u=v+m,s=x-y):(l="left"===r.position?y+m:x-m,u=v+(b-v)/2,s=b-v,g=Math.PI*("left"===r.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(g),e.textAlign="center",e.textBaseline="middle";var _=r.text;if(a.isArray(_))for(var w=0,M=0;M<_.length;++M)e.fillText(_[M],0,w,s),w+=p;else e.fillText(_,0,0,s);e.restore()}}}),{id:"title",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(r){var o=r.options.title,s=r.titleBlock;o?(a.mergeIf(o,i.global.title),s?(n.configure(r,s,o),s.options=o):e(r,o)):s&&(t.layoutService.removeBox(r,s),delete r.titleBlock)}}}},function(t,e,n){"use strict";t.exports=function(t){var e={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,e=t.getLabels();t.minIndex=0,t.maxIndex=e.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=e[t.minIndex],t.max=e[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,r=n.isHorizontal();return i.yLabels&&!r?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,i=this,r=i.options.offset,a=Math.max(i.maxIndex+1-i.minIndex-(r?0:1),1);if(void 0!==t&&null!==t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var o=i.getLabels();t=n||t;var s=o.indexOf(t);e=-1!==s?s:e}if(i.isHorizontal()){var l=i.width/a,u=l*(e-i.minIndex);return r&&(u+=l/2),i.left+Math.round(u)}var c=i.height/a,h=c*(e-i.minIndex);return r&&(h+=c/2),i.top+Math.round(h)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,i=Math.max(e._ticks.length-(n?0:1),1),r=e.isHorizontal(),a=(r?e.width:e.height)/i;return t-=r?e.left:e.top,n&&(t-=a/2),(t<=0?0:Math.round(t/a))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,e)}},function(t,e,n){"use strict";var i=n(9),r=n(6),a=n(47);t.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,i=e.chart,a=i.data,o=a.datasets,s=e.isHorizontal();e.min=null,e.max=null;var l=n.stacked;if(void 0===l&&r.each(o,function(e,n){if(!l){var r=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(r)&&void 0!==r.stack&&(l=!0)}}),n.stacked||l){var u={};r.each(o,function(a,o){var s=i.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===u[l]&&(u[l]={positiveValues:[],negativeValues:[]});var c=u[l].positiveValues,h=u[l].negativeValues;i.isDatasetVisible(o)&&t(s)&&r.each(a.data,function(t,i){var r=+e.getRightValue(t);isNaN(r)||s.data[i].hidden||(c[i]=c[i]||0,h[i]=h[i]||0,n.relativePoints?c[i]=100:r<0?h[i]+=r:c[i]+=r)})}),r.each(u,function(t){var n=t.positiveValues.concat(t.negativeValues),i=r.min(n),a=r.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?a:Math.max(e.max,a)})}else r.each(o,function(n,a){var o=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(o)&&r.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var a=r.valueOrDefault(n.fontSize,i.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*a)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,r=+n.getRightValue(t),a=n.end-i;return n.isHorizontal()?(e=n.left+n.width/a*(r-i),Math.round(e)):(e=n.bottom-n.height/a*(r-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,r=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},function(t,e,n){"use strict";var i=n(6),r=n(47);t.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options,n=e.ticks;if(n.beginAtZero){var r=i.sign(t.min),a=i.sign(t.max);r<0&&a<0?t.max=0:r>0&&a>0&&(t.min=0)}var o=void 0!==n.min||void 0!==n.suggestedMin,s=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(null===t.min?t.min=n.suggestedMin:t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(null===t.max?t.max=n.suggestedMax:t.max=Math.max(t.max,n.suggestedMax)),o!==s&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options,n=e.ticks,a=t.getTickLimit();a=Math.max(2,a);var o={maxTicks:a,min:n.min,max:n.max,stepSize:i.valueOrDefault(n.fixedStepSize,n.stepSize)},s=t.ticks=r.generators.linear(o,t);t.handleDirectionalChanges(),t.max=i.max(s),t.min=i.min(s),n.reverse?(s.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},function(t,e,n){"use strict";var i=n(6),r=n(47);t.exports=function(t){var e={position:"left",ticks:{callback:r.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return u?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,r=n.ticks,a=e.chart,o=a.data,s=o.datasets,l=i.valueOrDefault,u=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var c=n.stacked;if(void 0===c&&i.each(s,function(e,n){if(!c){var i=a.getDatasetMeta(n);a.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(c=!0)}}),n.stacked||c){var h={};i.each(s,function(r,o){var s=a.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:"",s.stack].join(".");a.isDatasetVisible(o)&&t(s)&&(void 0===h[l]&&(h[l]=[]),i.each(r.data,function(t,i){var r=h[l],a=+e.getRightValue(t);isNaN(a)||s.data[i].hidden||(r[i]=r[i]||0,n.relativePoints?r[i]=100:r[i]+=a)}))}),i.each(h,function(t){var n=i.min(t),r=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?r:Math.max(e.max,r)})}else i.each(s,function(n,r){var o=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(o)&&i.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i),0!==i&&(null===e.minNotZero||ir?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){var i,a,l,u=n(t),c=Math.min(t.height/2,t.width/2),h={r:t.width,l:0,t:t.height,b:0},d={};t.ctx.font=u.font,t._pointLabelSizes=[];var f=e(t);for(i=0;ih.r&&(h.r=g.end,d.r=p),v.starth.b&&(h.b=v.end,d.b=p)}t.setReductions(c,h,d)}function u(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function c(t){return 0===t||180===t?"center":t<180?"left":"right"}function h(t,e,n,i){if(r.isArray(e))for(var a=n.y,o=1.5*i,s=0;s270||t<90)&&(n.y-=e.h)}function f(t){var i=t.ctx,a=r.valueOrDefault,o=t.options,s=o.angleLines,l=o.pointLabels;i.lineWidth=s.lineWidth,i.strokeStyle=s.color;var u=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max),f=n(t);i.textBaseline="top";for(var p=e(t)-1;p>=0;p--){if(s.display){var m=t.getPointPosition(p,u);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(m.x,m.y),i.stroke(),i.closePath()}if(l.display){var v=t.getPointPosition(p,u+5),y=a(l.fontColor,g.defaultFontColor);i.font=f.font,i.fillStyle=y;var b=t.getIndexAngle(p),x=r.toDegrees(b);i.textAlign=c(x),d(x,t._pointLabelSizes[p],v),h(i,t.pointLabels[p]||"",v,f.size)}}}function p(t,n,i,a){var o=t.ctx;if(o.strokeStyle=r.valueAtIndexOrDefault(n.color,a-1),o.lineWidth=r.valueAtIndexOrDefault(n.lineWidth,a-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var s=e(t);if(0===s)return;o.beginPath();var l=t.getPointPosition(0,i);o.moveTo(l.x,l.y);for(var u=1;u0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,a=r.valueOrDefault;if(e.display){var o=t.ctx,s=this.getIndexAngle(0),l=a(i.fontSize,g.defaultFontSize),u=a(i.fontStyle,g.defaultFontStyle),c=a(i.fontFamily,g.defaultFontFamily),h=r.fontString(l,u,c);r.each(t.ticks,function(e,r){if(r>0||i.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[r]);if(n.display&&0!==r&&p(t,n,u,r),i.display){var c=a(i.fontColor,g.defaultFontColor);if(o.font=h,o.save(),o.translate(t.xCenter,t.yCenter),o.rotate(s),i.showLabelBackdrop){var d=o.measureText(e).width;o.fillStyle=i.backdropColor,o.fillRect(-d/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,d+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}o.textAlign="center",o.textBaseline="middle",o.fillStyle=c,o.fillText(e,0,-u),o.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&f(t)}}});t.scaleService.registerScaleType("radialLinear",y,v)}},function(t,e,n){"use strict";function i(t,e){return t-e}function r(t){var e,n,i,r={},a=[];for(e=0,n=t.length;ee&&s=0&&o<=s;){if(i=o+s>>1,r=t[i-1]||null,a=t[i],!r)return{lo:null,hi:a};if(a[e]n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}function s(t,e,n,i){var r=o(t,e,n),a=r.lo?r.hi?r.lo:t[t.length-2]:t[0],s=r.lo?r.hi?r.hi:t[t.length-1]:t[1],l=s[e]-a[e],u=l?(n-a[e])/l:0,c=(s[i]-a[i])*u;return a[i]+c}function l(t,e){var n=e.parser,i=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof i?v(t,i):(t instanceof v||(t=v(t)),t.isValid()?t:"function"==typeof i?i(t):t)}function u(t,e){if(b.isNullOrUndef(t))return null;var n=e.options.time,i=l(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function c(t,e,n,i){var r,a,o,s=e-t,l=w[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/((i||1)*u));for(r=0,a=c.length;r=M.indexOf(e);r--)if(a=M[r],w[a].common&&o.as(a)>=t.length)return a;return M[e?M.indexOf(e):0]}function f(t){for(var e=M.indexOf(t)+1,n=M.length;e1?e[1]:i,o=e[0],l=(s(t,"time",a,"pos")-s(t,"time",o,"pos"))/2),r.time.max||(a=e[e.length-1],o=e.length>1?e[e.length-2]:n,u=(s(t,"time",a,"pos")-s(t,"time",o,"pos"))/2)),{left:l,right:u}}function g(t,e){var n,i,r,a,o=[];for(n=0,i=t.length;n=r&&n<=o&&h.push(n);return i.min=r,i.max=o,i._unit=l.unit||d(h,l.minUnit,i.min,i.max),i._majorUnit=f(i._unit),i._table=a(i._timestamps.data,r,o,s.distribution),i._offsets=m(i._table,h,r,o,s),g(h,i._majorUnit)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,r=n.options.time,a=i.labels&&t=0&&t.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,[100*(.4124*e+.3576*n+.1805*i),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function u(t){var e,n,i,r=l(t),a=r[0],o=r[1],s=r[2];return a/=95.047,o/=100,s/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,n=500*(a-o),i=200*(o-s),[e,n,i]}function c(t){return z(u(t))}function h(t){var e,n,i,r,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return a=255*l,[a,a,a];n=l<.5?l*(1+s):l+s-l*s,e=2*l-n,r=[0,0,0];for(var u=0;u<3;u++)i=o+1/3*-(u-1),i<0&&i++,i>1&&i--,a=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[u]=255*a;return r}function d(t){var e,n,i=t[0],r=t[1]/100,a=t[2]/100;return 0===a?[0,0,0]:(a*=2,r*=a<=1?a:2-a,n=(a+r)/2,e=2*r/(a+r),[i,100*e,100*n])}function f(t){return a(h(t))}function p(t){return o(h(t))}function m(t){return s(h(t))}function v(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,r=Math.floor(e)%6,a=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*a),l=255*i*(1-n*(1-a)),i=255*i;switch(r){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}}function y(t){var e,n,i=t[0],r=t[1]/100,a=t[2]/100;return n=(2-r)*a,e=r*a,e/=n<=1?n:2-n,e=e||0,n/=2,[i,100*e,100*n]}function x(t){return a(v(t))}function _(t){return o(v(t))}function w(t){return s(v(t))}function M(t){var e,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),e=Math.floor(6*o),n=1-l,i=6*o-e,0!=(1&e)&&(i=1-i),a=s+i*(n-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function S(t){return n(M(t))}function E(t){return i(M(t))}function k(t){return o(M(t))}function T(t){return s(M(t))}function C(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,r*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),i=1-Math.min(1,o*(1-s)+s),[255*e,255*n,255*i]}function P(t){return n(C(t))}function O(t){return i(C(t))}function A(t){return a(C(t))}function R(t){return s(C(t))}function L(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100;return e=3.2406*r+-1.5372*a+-.4986*o,n=-.9689*r+1.8758*a+.0415*o,i=.0557*r+-.204*a+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*e,255*n,255*i]}function I(t){var e,n,i,r=t[0],a=t[1],o=t[2];return r/=95.047,a/=100,o/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,n=500*(r-a),i=200*(a-o),[e,n,i]}function D(t){return z(I(t))}function N(t){var e,n,i,r,a=t[0],o=t[1],s=t[2];return a<=8?(n=100*a/903.3,r=n/100*7.787+16/116):(n=100*Math.pow((a+16)/116,3),r=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+r-16/116)/7.787:95.047*Math.pow(o/500+r,3),i=i/108.883<=.008859?i=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3),[e,n,i]}function z(t){var e,n,i,r=t[0],a=t[1],o=t[2];return e=Math.atan2(o,a),n=360*e/2/Math.PI,n<0&&(n+=360),i=Math.sqrt(a*a+o*o),[r,i,n]}function B(t){return L(N(t))}function F(t){var e,n,i,r=t[0],a=t[1],o=t[2];return i=o/360*2*Math.PI,e=a*Math.cos(i),n=a*Math.sin(i),[r,e,n]}function U(t){return N(F(t))}function j(t){return B(F(t))}function W(t){return Z[t]}function G(t){return n(W(t))}function V(t){return i(W(t))}function H(t){return a(W(t))}function q(t){return o(W(t))}function Y(t){return u(W(t))}function X(t){return l(W(t))}t.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:c,hsl2rgb:h,hsl2hsv:d,hsl2hwb:f,hsl2cmyk:p,hsl2keyword:m,hsv2rgb:v,hsv2hsl:y,hsv2hwb:x,hsv2cmyk:_,hsv2keyword:w,hwb2rgb:M,hwb2hsl:S,hwb2hsv:E,hwb2cmyk:k,hwb2keyword:T,cmyk2rgb:C,cmyk2hsl:P,cmyk2hsv:O,cmyk2hwb:A,cmyk2keyword:R,keyword2rgb:W,keyword2hsl:G,keyword2hsv:V,keyword2hwb:H,keyword2cmyk:q,keyword2lab:Y,keyword2xyz:X,xyz2rgb:L,xyz2lab:I,xyz2lch:D,lab2xyz:N,lab2rgb:B,lab2lch:z,lch2lab:F,lch2xyz:U,lch2rgb:j};var Z={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},K={};for(var Q in Z)K[JSON.stringify(Z[Q])]=Q},function(t,e,n){var i=n(293),r=function(){return new u};for(var a in i){r[a+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(a);var o=/(\w+)2(\w+)/.exec(a),s=o[1],l=o[2];r[s]=r[s]||{},r[s][l]=r[a]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if("string"==typeof n||void 0===n)return n;for(var r=0;r2){if(!l(n))throw new TypeError("polynomial()::invalid input argument. Options argument must be an object. Value: `"+n+"`.");if(n.hasOwnProperty("copy")&&(m=n.copy,!u(m)))throw new TypeError("polynomial()::invalid option. Copy option must be a boolean primitive. Option: `"+m+"`.");if(n.hasOwnProperty("accessor")&&(r=n.accessor,!c(r)))throw new TypeError("polynomial()::invalid option. Accessor must be a function. Option: `"+r+"`.")}if(h=e.length,d=m?new Array(h):e,r)for(p=0;pc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(29),r=n(83),a=n(42),o=n(66),s=n(318);t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var m,g,v=a(e),y=r(v),b=i(s,p,3),x=o(y.length),_=0,w=n?f(e,x):l?f(e,0):void 0;x>_;_++)if((d||_ in y)&&(m=y[_],g=b(m,_,v),t))if(n)w[_]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:w.push(m)}else if(c)return!1;return h?-1:u||c?c:w}}},function(t,e,n){var i=n(21),r=n(125),a=n(17)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var i=n(317);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){"use strict";var i=n(22).f,r=n(64),a=n(90),o=n(29),s=n(79),l=n(50),u=n(84),c=n(128),h=n(135),d=n(27),f=n(85).fastKey,p=n(138),m=d?"_s":"size",g=function(t,e){var n,i=f(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var c=t(function(t,i){s(t,c,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&l(i,n,t[u],t)});return a(c.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),i=g(n,t);if(i){var r=i.n,a=i.p;delete n._i[i.i],i.r=!0,a&&(a.n=r),r&&(r.p=a),n._f==i&&(n._f=r),n._l==i&&(n._l=a),n[m]--}return!!i},forEach:function(t){p(this,e);for(var n,i=o(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&i(c.prototype,"size",{get:function(){return p(this,e)[m]}}),c},def:function(t,e,n){var i,r,a=g(t,e);return a?a.v=n:(t._l=a={i:r=f(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=a),i&&(i.n=a),t[m]++,"F"!==r&&(t._i[r]=a)),t},getEntry:g,setStrong:function(t,e,n){u(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?c(0,n.k):"values"==e?c(0,n.v):c(0,[n.k,n.v]):(t._t=void 0,c(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){var i=n(62),r=n(314);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,n){"use strict";var i=n(18),r=n(14),a=n(85),o=n(36),s=n(34),l=n(90),u=n(50),c=n(79),h=n(21),d=n(53),f=n(22).f,p=n(316)(0),m=n(27);t.exports=function(t,e,n,g,v,y){var b=i[t],x=b,_=v?"set":"add",w=x&&x.prototype,M={};return m&&"function"==typeof x&&(y||w.forEach&&!o(function(){(new x).entries().next()}))?(x=e(function(e,n){c(e,x,t,"_c"),e._c=new b,void 0!=n&&u(n,v,e[_],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in w&&(!y||"clear"!=t)&&s(x.prototype,t,function(n,i){if(c(this,x,t),!e&&y&&!h(n))return"get"==t&&void 0;var r=this._c[t](0===n?0:n,i);return e?this:r})}),y||f(x.prototype,"size",{get:function(){return this._c.size}})):(x=g.getConstructor(e,t,v,_),l(x.prototype,n),a.NEED=!0),d(x,t),M[t]=x,r(r.G+r.W+r.F,M),y||g.setStrong(x,t,v),x}},function(t,e,n){"use strict";var i=n(22),r=n(52);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(51),r=n(88),a=n(65);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var o,s=n(t),l=a.f,u=0;s.length>u;)l.call(t,o=s[u++])&&e.push(o);return e}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){"use strict";var i=n(64),r=n(52),a=n(53),o={};n(34)(o,n(17)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:r(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var i=n(18),r=n(137).set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,l="process"==n(49)(o);t.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=o.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){o.nextTick(u)};else if(!a||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve();n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var h=!0,d=document.createTextNode("");new a(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e,n){"use strict";var i=n(51),r=n(88),a=n(65),o=n(42),s=n(83),l=Object.assign;t.exports=!l||n(36)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){for(var n=o(t),l=arguments.length,u=1,c=r.f,h=a.f;l>u;)for(var d,f=s(arguments[u++]),p=c?i(f).concat(c(f)):i(f),m=p.length,g=0;m>g;)h.call(f,d=p[g++])&&(n[d]=f[d]);return n}:l},function(t,e,n){var i=n(22),r=n(26),a=n(51);t.exports=n(27)?Object.defineProperties:function(t,e){r(t);for(var n,o=a(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],e[n]);return t}},function(t,e,n){var i=n(38),r=n(129).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==a.call(t)?s(t):r(i(t))}},function(t,e,n){"use strict";var i=n(14),r=n(48),a=n(29),o=n(50);t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,s,l=arguments[1];return r(this),e=void 0!==l,e&&r(l),void 0==t?new this:(n=[],e?(i=0,s=a(l,arguments[2],2),o(t,!1,function(t){n.push(s(t,i++))})):o(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var i=n(14);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){var i=n(21),r=n(26),a=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(29)(Function.call,n(87).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:a}},function(t,e,n){var i=n(93),r=n(80);t.exports=function(t){return function(e,n){var a,o,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):a:t?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},function(t,e,n){var i=n(93),r=Math.max,a=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):a(t,e)}},function(t,e,n){var i=n(26),r=n(97);t.exports=n(11).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,n){var i=n(62),r=n(17)("iterator"),a=n(41);t.exports=n(11).isIterable=function(t){var e=Object(t);return void 0!==e[r]||"@@iterator"in e||a.hasOwnProperty(i(e))}},function(t,e,n){"use strict";var i=n(29),r=n(14),a=n(42),o=n(126),s=n(124),l=n(66),u=n(322),c=n(97);r(r.S+r.F*!n(127)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,h,d=a(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(d);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(e=l(d.length),n=new f(e);e>v;v++)u(n,v,g?m(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(r=h.next()).done;v++)u(n,v,g?o(h,m,[r.value,v],!0):r.value);return n.length=v,n}})},function(t,e,n){"use strict";var i=n(313),r=n(128),a=n(41),o=n(38);t.exports=n(84)(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(14);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var i=n(14);i(i.S+i.F,"Object",{assign:n(327)})},function(t,e,n){var i=n(14);i(i.S,"Object",{create:n(64)})},function(t,e,n){var i=n(14);i(i.S+i.F*!n(27),"Object",{defineProperty:n(22).f})},function(t,e,n){var i=n(38),r=n(87).f;n(89)("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},function(t,e,n){var i=n(42),r=n(130);n(89)("getPrototypeOf",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(42),r=n(51);n(89)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(14);i(i.S,"Object",{setPrototypeOf:n(332).set})},function(t,e,n){"use strict";var i,r,a,o,s=n(63),l=n(18),u=n(29),c=n(62),h=n(14),d=n(21),f=n(48),p=n(79),m=n(50),g=n(136),v=n(137).set,y=n(326)(),b=n(86),x=n(132),_=n(133),w=l.TypeError,M=l.process,S=l.Promise,E="process"==c(M),k=function(){},T=r=b.f,C=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(17)("species")]=function(t){t(k,k)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),P=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,r=1==t._s,a=0;n.length>a;)!function(e){var n,a,o=r?e.ok:e.fail,s=e.resolve,l=e.reject,u=e.domain;try{o?(r||(2==t._h&&L(t),t._h=1),!0===o?n=i:(u&&u.enter(),n=o(i),u&&u.exit()),n===e.promise?l(w("Promise-chain cycle")):(a=P(n))?a.call(n,s,l):s(n)):l(i)}catch(t){l(t)}}(n[a++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){v.call(l,function(){var e,n,i,r=t._v,a=R(t);if(a&&(e=x(function(){E?M.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=E||R(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){v.call(l,function(){var e;E?M.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w("Promise can't be resolved itself");(e=P(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,u(D,i,1),u(I,i,1))}catch(t){I.call(i,t)}}):(n._v=t,n._s=1,O(n,!1))}catch(t){I.call({_w:n,_d:!1},t)}}};C||(S=function(t){p(this,S,"Promise","_h"),f(t),i.call(this);try{t(u(D,this,1),u(I,this,1))}catch(t){I.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(90)(S.prototype,{then:function(t,e){var n=T(g(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=u(D,t,1),this.reject=u(I,t,1)},b.f=T=function(t){return t===S||t===o?new a(t):r(t)}),h(h.G+h.W+h.F*!C,{Promise:S}),n(53)(S,"Promise"),n(135)("Promise"),o=n(11).Promise,h(h.S+h.F*!C,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!C),"Promise",{resolve:function(t){return _(s&&this===o?S:this,t)}}),h(h.S+h.F*!(C&&n(127)(function(t){S.all(t).catch(k)})),"Promise",{all:function(t){var e=this,n=T(e),i=n.resolve,r=n.reject,a=x(function(){var n=[],a=0,o=1;m(t,!1,function(t){var s=a++,l=!1;n.push(void 0),o++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--o||i(n))},r)}),--o||i(n)});return a.e&&r(a.v),n.promise},race:function(t){var e=this,n=T(e),i=n.reject,r=x(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(t,e,n){"use strict";var i=n(319),r=n(138);t.exports=n(321)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";var i=n(18),r=n(37),a=n(27),o=n(14),s=n(134),l=n(85).KEY,u=n(36),c=n(92),h=n(53),d=n(67),f=n(17),p=n(96),m=n(95),g=n(323),v=n(125),y=n(26),b=n(21),x=n(38),_=n(94),w=n(52),M=n(64),S=n(329),E=n(87),k=n(22),T=n(51),C=E.f,P=k.f,O=S.f,A=i.Symbol,R=i.JSON,L=R&&R.stringify,I=f("_hidden"),D=f("toPrimitive"),N={}.propertyIsEnumerable,z=c("symbol-registry"),B=c("symbols"),F=c("op-symbols"),U=Object.prototype,j="function"==typeof A,W=i.QObject,G=!W||!W.prototype||!W.prototype.findChild,V=a&&u(function(){return 7!=M(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=C(U,e);i&&delete U[e],P(t,e,n),i&&t!==U&&P(U,e,i)}:P,H=function(t){var e=B[t]=M(A.prototype);return e._k=t,e},q=j&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},Y=function(t,e,n){return t===U&&Y(F,e,n),y(t),e=_(e,!0),y(n),r(B,e)?(n.enumerable?(r(t,I)&&t[I][e]&&(t[I][e]=!1),n=M(n,{enumerable:w(0,!1)})):(r(t,I)||P(t,I,w(1,{})),t[I][e]=!0),V(t,e,n)):P(t,e,n)},X=function(t,e){y(t);for(var n,i=g(e=x(e)),r=0,a=i.length;a>r;)Y(t,n=i[r++],e[n]);return t},Z=function(t,e){return void 0===e?M(t):X(M(t),e)},K=function(t){var e=N.call(this,t=_(t,!0));return!(this===U&&r(B,t)&&!r(F,t))&&(!(e||!r(this,t)||!r(B,t)||r(this,I)&&this[I][t])||e)},Q=function(t,e){if(t=x(t),e=_(e,!0),t!==U||!r(B,e)||r(F,e)){var n=C(t,e);return!n||!r(B,e)||r(t,I)&&t[I][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=O(x(t)),i=[],a=0;n.length>a;)r(B,e=n[a++])||e==I||e==l||i.push(e);return i},$=function(t){for(var e,n=t===U,i=O(n?F:x(t)),a=[],o=0;i.length>o;)!r(B,e=i[o++])||n&&!r(U,e)||a.push(B[e]);return a};j||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(F,n),r(this,I)&&r(this[I],t)&&(this[I][t]=!1),V(this,t,w(1,n))};return a&&G&&V(U,t,{configurable:!0,set:e}),H(t)},s(A.prototype,"toString",function(){return this._k}),E.f=Q,k.f=Y,n(129).f=S.f=J,n(65).f=K,n(88).f=$,a&&!n(63)&&s(U,"propertyIsEnumerable",K,!0),p.f=function(t){return H(f(t))}),o(o.G+o.W+o.F*!j,{Symbol:A});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)f(tt[et++]);for(var nt=T(f.store),it=0;nt.length>it;)m(nt[it++]);o(o.S+o.F*!j,"Symbol",{for:function(t){return r(z,t+="")?z[t]:z[t]=A(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!j,"Object",{create:Z,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:$}),R&&o(o.S+o.F*(!j||u(function(){var t=A();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!q(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,L.apply(R,i)}}),A.prototype[D]||n(34)(A.prototype,D,A.prototype.valueOf),h(A,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,e,n){"use strict";var i=n(14),r=n(11),a=n(18),o=n(136),s=n(133);i(i.P+i.R,"Promise",{finally:function(t){var e=o(this,r.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var i=n(14),r=n(86),a=n(132);i(i.S,"Promise",{try:function(t){var e=r.f(this),n=a(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(330)("Set")},function(t,e,n){n(331)("Set")},function(t,e,n){var i=n(14);i(i.P+i.R,"Set",{toJSON:n(320)("Set")})},function(t,e,n){n(95)("asyncIterator")},function(t,e,n){n(95)("observable")},function(t,e,n){"use strict";var i=n(68),r={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:i}},registerDefault:function(){}};t.exports=r},function(t,e,n){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=r},function(t,e,n){"use strict";function i(t,e){return!(!t||!e)&&(t===e||!r(t)&&(r(e)?i(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var r=n(364);t.exports=i},function(t,e,n){"use strict";function i(t){try{t.focus()}catch(t){}}t.exports=i},function(t,e,n){"use strict";function i(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i,a,o,s,l){if(r(e),!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,a,o,s,l],h=0;u=new Error(e.replace(/%s/g,function(){return c[h++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var r=function(t){};t.exports=i},function(t,e,n){"use strict";function i(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=i},function(t,e,n){"use strict";function i(t){return r(t)&&3==t.nodeType}var r=n(363);t.exports=i},function(t,e,n){"use strict";function i(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function r(t,e){if(i(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t}t.exports=n},function(t,e){function n(t,e,n){return t[0]=e,t[1]=n,t}t.exports=n},function(t,e){function n(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}t.exports=n},function(t,e,n){"use strict";function i(t){return t in o?o[t]:o[t]=t.replace(r,"-$&").toLowerCase().replace(a,"-ms-")}var r=/[A-Z]/g,a=/^ms-/,o={};t.exports=i},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t){var e=t.prefixMap,n=t.plugins,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t);var i="undefined"!=typeof navigator?navigator.userAgent:void 0;if(this._userAgent=n.userAgent||i,this._keepUnprefixed=n.keepUnprefixed||!1,this._userAgent&&(this._browserInfo=(0,l.default)(this._userAgent)),!this._browserInfo||!this._browserInfo.cssPrefix)return this._useFallback=!0,!1;this.prefixedKeyframes=(0,c.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);var a=this._browserInfo.browserName&&e[this._browserInfo.browserName];if(a){this._requiresPrefix={};for(var o in a)a[o]>=this._browserInfo.browserVersion&&(this._requiresPrefix[o]=!0);this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return o(t,[{key:"prefix",value:function(t){return this._useFallback?i(t):this._hasPropsRequiringPrefix?this._prefixStyle(t):t}},{key:"_prefixStyle",value:function(t){for(var e in t){var i=t[e];if((0,g.default)(i))t[e]=this.prefix(i);else if(Array.isArray(i)){for(var r=[],a=0,o=i.length;a0&&(t[e]=r)}else{var l=(0,y.default)(n,e,i,t,this._metaData);l&&(t[e]=l),this._requiresPrefix.hasOwnProperty(e)&&(t[this._browserInfo.jsPrefix+(0,d.default)(e)]=i,this._keepUnprefixed||delete t[e])}}return t}}],[{key:"prefixAll",value:function(t){return i(t)}}]),t}()}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n-1&&("chrome"===r||"opera"===r||"and_chr"===r||("ios_saf"===r||"safari"===r)&&o<10))return(0,a.default)(e.replace(/cross-fade\(/g,s+"cross-fade("),e,l)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,l=i.browserVersion,u=i.cssPrefix,c=i.keepUnprefixed;return"cursor"!==t||!o[e]||"firefox"!==r&&"chrome"!==r&&"safari"!==r&&"opera"!==r?"cursor"===t&&s[e]&&("firefox"===r&&l<24||"chrome"===r&&l<37||"safari"===r&&l<9||"opera"===r&&l<24)?(0,a.default)(u+e,e,c):void 0:(0,a.default)(u+e,e,c)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={grab:!0,grabbing:!0},s={"zoom-in":!0,"zoom-out":!0};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,o=i.browserVersion,s=i.cssPrefix,l=i.keepUnprefixed;if("string"==typeof e&&e.indexOf("filter(")>-1&&("ios_saf"===r||"safari"===r&&o<9.1))return(0,a.default)(e.replace(/filter\(/g,s+"filter("),e,l)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if("display"===t&&o[e]&&("chrome"===r&&s<29&&s>20||("safari"===r||"ios_saf"===r)&&s<9&&s>6||"opera"===r&&(15===s||16===s)))return(0,a.default)(l+e,e,u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={flex:!0,"inline-flex":!0};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,l=i.browserVersion,c=i.cssPrefix,h=i.keepUnprefixed,d=i.requiresPrefix;if((u.indexOf(t)>-1||"display"===t&&"string"==typeof e&&e.indexOf("flex")>-1)&&("firefox"===r&&l<22||"chrome"===r&&l<21||("safari"===r||"ios_saf"===r)&&l<=6.1||"android"===r&&l<4.4||"and_uc"===r)){if(delete d[t],h||Array.isArray(n[t])||delete n[t],"flexDirection"===t&&"string"==typeof e&&(e.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",e.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal"),"display"===t&&o.hasOwnProperty(e))return(0,a.default)(c+o[e],e,h);s.hasOwnProperty(t)&&(n[s[t]]=o[e]||e)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},s={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"},l=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],u=Object.keys(s).concat(l);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if("string"==typeof e&&o.test(e)&&("firefox"===r&&s<16||"chrome"===r&&s<26||("safari"===r||"ios_saf"===r)&&s<7||("opera"===r||"op_mini"===r)&&s<12.1||"android"===r&&s<4.4||"and_uc"===r))return(0,a.default)(l+e,e,u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,o=i.cssPrefix,s=i.keepUnprefixed;if("string"==typeof e&&e.indexOf("image-set(")>-1&&("chrome"===r||"opera"===r||"and_chr"===r||"and_uc"===r||"ios_saf"===r||"safari"===r))return(0,a.default)(e.replace(/image-set\(/g,o+"image-set("),e,s)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.browserName,o=i.cssPrefix,s=i.keepUnprefixed;if("position"===t&&"sticky"===e&&("safari"===r||"ios_saf"===r))return(0,a.default)(o+e,e,s)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.cssPrefix,l=i.keepUnprefixed;if(o.hasOwnProperty(t)&&s.hasOwnProperty(e))return(0,a.default)(r+e,e,l)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},s={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n,i){var r=i.cssPrefix,l=i.keepUnprefixed,u=i.requiresPrefix;if("string"==typeof e&&o.hasOwnProperty(t)){s||(s=Object.keys(u).map(function(t){return(0,a.default)(t)}));var c=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return s.forEach(function(t){c.forEach(function(e,n){e.indexOf(t)>-1&&"order"!==t&&(c[n]=e.replace(t,r+t)+(l?","+e:""))})}),c.join(",")}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(139),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s=void 0;t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){function e(t){for(var r in t){var a=t[r];if((0,d.default)(a))t[r]=e(a);else if(Array.isArray(a)){for(var s=[],u=0,h=a.length;u0&&(t[r]=s)}else{var p=(0,l.default)(i,r,a,t,n);p&&(t[r]=p),(0,o.default)(n,r,t)}}return t}var n=t.prefixMap,i=t.plugins;return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var a=n(400),o=i(a),s=n(144),l=i(s),u=n(142),c=i(u),h=n(143),d=i(h);t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(385),a=i(r),o=n(397),s=i(o),l=n(388),u=i(l),c=n(387),h=i(c),d=n(389),f=i(d),p=n(390),m=i(p),g=n(391),v=i(g),y=n(392),b=i(y),x=n(393),_=i(x),w=n(394),M=i(w),S=n(395),E=i(S),k=n(396),T=i(k),C=[h.default,u.default,f.default,v.default,b.default,_.default,M.default,E.default,T.default,m.default];e.default=(0,a.default)({prefixMap:s.default.prefixMap,plugins:C}),t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("string"==typeof e&&!(0,a.default)(e)&&e.indexOf("cross-fade(")>-1)return o.map(function(t){return e.replace(/cross-fade\(/g,t+"cross-fade(")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("cursor"===t&&a.hasOwnProperty(e))return r.map(function(t){return t+e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=["-webkit-","-moz-",""],a={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("string"==typeof e&&!(0,a.default)(e)&&e.indexOf("filter(")>-1)return o.map(function(t){return e.replace(/filter\(/g,t+"filter(")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("display"===t&&r.hasOwnProperty(e))return r[e]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n){"flexDirection"===t&&"string"==typeof e&&(e.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",e.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal"),a.hasOwnProperty(t)&&(n[a[t]]=r[e]||e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},a={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("string"==typeof e&&!(0,a.default)(e)&&s.test(e))return o.map(function(t){return t+e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["-webkit-","-moz-",""],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("string"==typeof e&&!(0,a.default)(e)&&e.indexOf("image-set(")>-1)return o.map(function(t){return e.replace(/image-set\(/g,t+"image-set(")})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["-webkit-",""];t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if("position"===t&&"sticky"===e)return["-webkit-sticky","sticky"]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){"use strict";function i(t,e){if(a.hasOwnProperty(t)&&o.hasOwnProperty(e))return r.map(function(t){return t+e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=["-webkit-","-moz-",""],a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};t.exports=e.default},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if((0,u.default)(t))return t;for(var n=t.split(/,(?![^()]*(?:\([^()]*\))?\))/g),i=0,r=n.length;i-1&&"order"!==c)for(var h=e[l],d=0,p=h.length;d-1)return o;var s=a.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(t){return!/-webkit-|-ms-/.test(t)}).join(",");return t.indexOf("Moz")>-1?s:(n["Webkit"+(0,h.default)(t)]=o,n["Moz"+(0,h.default)(t)]=s,a)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var o=n(139),s=i(o),l=n(55),u=i(l),c=n(100),h=i(c),d={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},f={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=["Webkit"],r=["Moz"],a=["ms"],o=["Webkit","Moz"],s=["Webkit","ms"],l=["Webkit","Moz","ms"];e.default={plugins:[],prefixMap:{appearance:o,userSelect:l,textEmphasisPosition:i,textEmphasis:i,textEmphasisStyle:i,textEmphasisColor:i,boxDecorationBreak:i,clipPath:i,maskImage:i,maskMode:i,maskRepeat:i,maskPosition:i,maskClip:i,maskOrigin:i,maskSize:i,maskComposite:i,mask:i,maskBorderSource:i,maskBorderMode:i,maskBorderSlice:i,maskBorderWidth:i,maskBorderOutset:i,maskBorderRepeat:i,maskBorder:i,maskType:i,textDecorationStyle:i,textDecorationSkip:i,textDecorationLine:i,textDecorationColor:i,filter:i,fontFeatureSettings:i,breakAfter:l,breakBefore:l,breakInside:l,columnCount:o,columnFill:o,columnGap:o,columnRule:o,columnRuleColor:o,columnRuleStyle:o,columnRuleWidth:o,columns:o,columnSpan:o,columnWidth:o,writingMode:s,flex:i,flexBasis:i,flexDirection:i,flexGrow:i,flexFlow:i,flexShrink:i,flexWrap:i,alignContent:i,alignItems:i,alignSelf:i,justifyContent:i,order:i,transform:i,transformOrigin:i,transformOriginX:i,transformOriginY:i,backfaceVisibility:i,perspective:i,perspectiveOrigin:i,transformStyle:i,transformOriginZ:i,animation:i,animationDelay:i,animationDirection:i,animationFillMode:i,animationDuration:i,animationIterationCount:i,animationName:i,animationPlayState:i,animationTimingFunction:i,backdropFilter:i,fontKerning:i,scrollSnapType:s,scrollSnapPointsX:s,scrollSnapPointsY:s,scrollSnapDestination:s,scrollSnapCoordinate:s,shapeImageThreshold:i,shapeImageMargin:i,shapeImageOutside:i,hyphens:l,flowInto:s,flowFrom:s,regionFragment:s,textAlignLast:r,tabSize:r,wrapFlow:a,wrapThrough:a,wrapMargin:a,gridTemplateColumns:a,gridTemplateRows:a,gridTemplateAreas:a,gridTemplate:a,gridAutoColumns:a,gridAutoRows:a,gridAutoFlow:a,grid:a,gridRowStart:a,gridColumnStart:a,gridRowEnd:a,gridRow:a,gridColumn:a,gridColumnEnd:a,gridColumnGap:a,gridRowGap:a,gridArea:a,gridGap:a,textSizeAdjust:s,borderImage:i,borderImageOutset:i,borderImageRepeat:i,borderImageSlice:i,borderImageSource:i,borderImageWidth:i,transitionDelay:i,transitionDuration:i,transitionProperty:i,transitionTimingFunction:i}},t.exports=e.default},function(t,e,n){"use strict";function i(t){if(t.firefox)return"firefox";if(t.mobile||t.tablet){if(t.ios)return"ios_saf";if(t.android)return"android";if(t.opera)return"op_mini"}for(var e in l)if(t.hasOwnProperty(e))return l[e]}function r(t){var e=o.default._detect(t);e.yandexbrowser&&(e=o.default._detect(t.replace(/YaBrowser\/[0-9.]*/,"")));for(var n in s)if(e.hasOwnProperty(n)){var r=s[n];e.jsPrefix=r,e.cssPrefix="-"+r.toLowerCase()+"-";break}return e.browserName=i(e),e.version?e.browserVersion=parseFloat(e.version):e.browserVersion=parseInt(parseFloat(e.osversion),10),e.osVersion=parseFloat(e.osversion),"ios_saf"===e.browserName&&e.browserVersion>e.osVersion&&(e.browserVersion=e.osVersion),"android"===e.browserName&&e.chrome&&e.browserVersion>37&&(e.browserName="and_chr"),"android"===e.browserName&&e.osVersion<5&&(e.browserVersion=e.osVersion),"android"===e.browserName&&e.samsungBrowser&&(e.browserName="and_chr",e.browserVersion=44),e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var a=n(248),o=function(t){return t&&t.__esModule?t:{default:t}}(a),s={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},l={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n){return"chrome"===t&&e<43||("safari"===t||"ios_saf"===t)&&e<9||"opera"===t&&e<30||"android"===t&&e<=4.4||"and_uc"===t?n+"keyframes":"keyframes"}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){"use strict";function i(t,e,n){if(t.hasOwnProperty(e))for(var i=t[e],r=0,o=i.length;r0)for(n=0;n0?"future":"past"];return E(n)?n(e):n.replace(/%s/i,e)}function D(t,e){var n=t.toLowerCase();Ri[n]=Ri[n+"s"]=Ri[e]=t}function N(t){return"string"==typeof t?Ri[t]||Ri[t.toLowerCase()]:void 0}function z(t){var e,n,i={};for(n in t)u(t,n)&&(e=N(n))&&(i[e]=t[n]);return i}function B(t,e){Li[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Li[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function U(t,n){return function(i){return null!=i?(W(this,t,i),e.updateOffset(this,n),this):j(this,t)}}function j(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function W(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function G(t){return t=N(t),E(this[t])?this[t]():this}function V(t,e){if("object"==typeof t){t=z(t);for(var n=F(t),i=0;i=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function q(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(zi[t]=r),e&&(zi[e[0]]=function(){return H(r.apply(this,arguments),e[1],e[2])}),n&&(zi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Y(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function X(t){var e,n,i=t.match(Ii);for(e=0,n=i.length;e=0&&Di.test(t);)t=t.replace(Di,n),Di.lastIndex=0,i-=1;return t}function Q(t,e,n){er[t]=E(e)?e:function(t,i){return t&&n?n:e}}function J(t,e){return u(er,t)?er[t](e._strict,e._locale):new RegExp($(t))}function $(t){return tt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}function tt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function et(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),o(e)&&(i=function(t,n){n[e]=x(t)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function xt(t,e,n){var i=7+e-n;return-(7+bt(t,0,i).getUTCDay()-e)%7+i-1}function _t(t,e,n,i,r){var a,o,s=(7+n-i)%7,l=xt(t,i,r),u=1+7*(e-1)+s+l;return u<=0?(a=t-1,o=mt(a)+u):u>mt(t)?(a=t+1,o=u-mt(t)):(a=t,o=u),{year:a,dayOfYear:o}}function wt(t,e,n){var i,r,a=xt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?(r=t.year()-1,i=o+Mt(r,e,n)):o>Mt(t.year(),e,n)?(i=o-Mt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Mt(t,e,n){var i=xt(t,e,n),r=xt(t+1,e,n);return(mt(t)-i+r)/7}function St(t){return wt(t,this._week.dow,this._week.doy).week}function Et(){return this._week.dow}function kt(){return this._week.doy}function Tt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ct(t){var e=wt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function At(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Rt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Lt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function It(t,e,n){var i,r,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?(r=dr.call(this._weekdaysParse,o),-1!==r?r:null):"ddd"===e?(r=dr.call(this._shortWeekdaysParse,o),-1!==r?r:null):(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):"dddd"===e?-1!==(r=dr.call(this._weekdaysParse,o))?r:-1!==(r=dr.call(this._shortWeekdaysParse,o))?r:(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):"ddd"===e?-1!==(r=dr.call(this._shortWeekdaysParse,o))?r:-1!==(r=dr.call(this._weekdaysParse,o))?r:(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):-1!==(r=dr.call(this._minWeekdaysParse,o))?r:-1!==(r=dr.call(this._weekdaysParse,o))?r:(r=dr.call(this._shortWeekdaysParse,o),-1!==r?r:null)}function Dt(t,e,n){var i,r,a;if(this._weekdaysParseExact)return It.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,"d")):e}function zt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Bt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ft(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ut(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sr),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jt(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Er),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wt(){function t(t,e){return e.length-t.length}var e,n,i,r,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);for(o.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=tt(s[e]),l[e]=tt(l[e]),u[e]=tt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Gt(){return this.hours()%12||12}function Vt(){return this.hours()||24}function Ht(t,e){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function qt(t,e){return e._meridiemParse}function Yt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Xt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function Kt(t){for(var e,n,i,r,a=0;a0;){if(i=Qt(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&_(r,n,!0)>=e-1)break;e--}a++}return null}function Qt(e){var n=null;if(!Or[e]&&void 0!==t&&t&&t.exports)try{n=kr._abbr,function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Jt(n)}catch(t){}return Or[e]}function Jt(t,e){var n;return t&&(n=a(e)?ee(t):$t(t,e))&&(kr=n),kr._abbr}function $t(t,e){if(null!==e){var n=Pr;if(e.abbr=t,null!=Or[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Or[t]._config;else if(null!=e.parentLocale){if(null==Or[e.parentLocale])return Ar[e.parentLocale]||(Ar[e.parentLocale]=[]),Ar[e.parentLocale].push({name:t,config:e}),null;n=Or[e.parentLocale]._config}return Or[t]=new C(T(n,e)),Ar[t]&&Ar[t].forEach(function(t){$t(t.name,t.config)}),Jt(t),Or[t]}return delete Or[t],null}function te(t,e){if(null!=e){var n,i=Pr;null!=Or[t]&&(i=Or[t]._config),e=T(i,e),n=new C(e),n.parentLocale=Or[t],Or[t]=n,Jt(t)}else null!=Or[t]&&(null!=Or[t].parentLocale?Or[t]=Or[t].parentLocale:null!=Or[t]&&delete Or[t]);return Or[t]}function ee(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return kr;if(!n(t)){if(e=Qt(t))return e;t=[t]}return Kt(t)}function ne(){return Ti(Or)}function ie(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[rr]<0||n[rr]>11?rr:n[ar]<1||n[ar]>rt(n[ir],n[rr])?ar:n[or]<0||n[or]>24||24===n[or]&&(0!==n[sr]||0!==n[lr]||0!==n[ur])?or:n[sr]<0||n[sr]>59?sr:n[lr]<0||n[lr]>59?lr:n[ur]<0||n[ur]>999?ur:-1,f(t)._overflowDayOfYear&&(ear)&&(e=ar),f(t)._overflowWeeks&&-1===e&&(e=cr),f(t)._overflowWeekday&&-1===e&&(e=hr),f(t).overflow=e),t}function re(t){var e,n,i,r,a,o,s=t._i,l=Rr.exec(s)||Lr.exec(s);if(l){for(f(t).iso=!0,e=0,n=Dr.length;e10?"YYYY ":"YY "),a="HH:mm"+(n[4]?":ss":""),n[1]){var h=new Date(n[2]),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][h.getDay()];if(n[1].substr(0,3)!==d)return f(t).weekdayMismatch=!0,void(t._isValid=!1)}switch(n[5].length){case 2:0===l?s=" +0000":(l=c.indexOf(n[5][1].toUpperCase())-12,s=(l<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=u[n[5]];break;default:s=u[" GMT"]}n[5]=s,t._i=n.splice(1).join(""),o=" ZZ",t._f=i+r+a+o,he(t),f(t).rfc2822=!0}else t._isValid=!1}function oe(t){var n=zr.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));re(t),!1===t._isValid&&(delete t._isValid,ae(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function se(t,e,n){return null!=t?t:null!=e?e:n}function le(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ue(t){var e,n,i,r,a=[];if(!t._d){for(i=le(t),t._w&&null==t._a[ar]&&null==t._a[rr]&&ce(t),null!=t._dayOfYear&&(r=se(t._a[ir],i[ir]),(t._dayOfYear>mt(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=bt(r,0,t._dayOfYear),t._a[rr]=n.getUTCMonth(),t._a[ar]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[or]&&0===t._a[sr]&&0===t._a[lr]&&0===t._a[ur]&&(t._nextDay=!0,t._a[or]=0),t._d=(t._useUTC?bt:yt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[or]=24)}}function ce(t){var e,n,i,r,a,o,s,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)a=1,o=4,n=se(e.GG,t._a[ir],wt(be(),1,4).year),i=se(e.W,1),((r=se(e.E,1))<1||r>7)&&(l=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var u=wt(be(),a,o);n=se(e.gg,t._a[ir],u.year),i=se(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+a,(e.e<0||e.e>6)&&(l=!0)):r=a}i<1||i>Mt(n,a,o)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=_t(n,i,r,a,o),t._a[ir]=s.year,t._dayOfYear=s.dayOfYear)}function he(t){if(t._f===e.ISO_8601)return void re(t);if(t._f===e.RFC_2822)return void ae(t);t._a=[],f(t).empty=!0;var n,i,r,a,o,s=""+t._i,l=s.length,u=0;for(r=K(t._f,t._locale).match(Ii)||[],n=0;n0&&f(t).unusedInput.push(o),s=s.slice(s.indexOf(i)+i.length),u+=i.length),zi[a]?(i?f(t).empty=!1:f(t).unusedTokens.push(a),it(a,i,t)):t._strict&&!i&&f(t).unusedTokens.push(a);f(t).charsLeftOver=l-u,s.length>0&&f(t).unusedInput.push(s),t._a[or]<=12&&!0===f(t).bigHour&&t._a[or]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[or]=de(t._locale,t._a[or],t._meridiem),ue(t),ie(t)}function de(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function fe(t){var e,n,i,r,a;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ue(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=ge(t),t._a){var e=t._isUTC?h(t._a):be(t._a);this._isDSTShifted=this.isValid()&&_(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function je(){return!!this.isValid()&&!this._isUTC}function We(){return!!this.isValid()&&this._isUTC}function Ge(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ve(t,e){var n,i,r,a=t,s=null;return Te(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(a={},e?a[e]=t:a.milliseconds=t):(s=Vr.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:x(s[ar])*n,h:x(s[or])*n,m:x(s[sr])*n,s:x(s[lr])*n,ms:x(Ce(1e3*s[ur]))*n}):(s=Hr.exec(t))?(n="-"===s[1]?-1:1,a={y:He(s[2],n),M:He(s[3],n),w:He(s[4],n),d:He(s[5],n),h:He(s[6],n),m:He(s[7],n),s:He(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Ye(be(a.from),be(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new ke(a),Te(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function He(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ye(t,e){var n;return t.isValid()&&e.isValid()?(e=Ae(e,t),t.isBefore(e)?n=qe(t,e):(n=qe(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Xe(t,e){return function(n,i){var r,a;return null===i||isNaN(+i)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=i,i=a),n="string"==typeof n?+n:n,r=Ve(n,i),Ze(this,r,t),this}}function Ze(t,n,i,r){var a=n._milliseconds,o=Ce(n._days),s=Ce(n._months);t.isValid()&&(r=null==r||r,a&&t._d.setTime(t._d.valueOf()+a*i),o&&W(t,"Date",j(t,"Date")+o*i),s&&ut(t,j(t,"Month")+s*i),r&&e.updateOffset(t,o||s))}function Ke(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qe(t,n){var i=t||be(),r=Ae(i,this).startOf("day"),a=e.calendarFormat(this,r)||"sameElse",o=n&&(E(n[a])?n[a].call(this,i):n[a]);return this.format(o||this.localeData().calendar(a,this,be(i)))}function Je(){return new v(this)}function $e(t,e){var n=y(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&(e=N(a(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()9999?Z(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):E(Date.prototype.toISOString)?this.toDate().toISOString():Z(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function cn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)}function hn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=Z(this,t);return this.localeData().postformat(n)}function dn(t,e){return this.isValid()&&(y(t)&&t.isValid()||be(t).isValid())?Ve({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fn(t){return this.from(be(),t)}function pn(t,e){return this.isValid()&&(y(t)&&t.isValid()||be(t).isValid())?Ve({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mn(t){return this.to(be(),t)}function gn(t){var e;return void 0===t?this._locale._abbr:(e=ee(t),null!=e&&(this._locale=e),this)}function vn(){return this._locale}function yn(t){switch(t=N(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function bn(t){return void 0===(t=N(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function xn(){return this._d.valueOf()-6e4*(this._offset||0)}function _n(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function Mn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Sn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function En(){return this.isValid()?this.toISOString():null}function kn(){return p(this)}function Tn(){return c({},f(this))}function Cn(){return f(this).overflow}function Pn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function On(t,e){q(0,[t,t.length],0,e)}function An(t){return Dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Rn(t){return Dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Mt(this.year(),1,4)}function In(){var t=this.localeData()._week;return Mt(this.year(),t.dow,t.doy)}function Dn(t,e,n,i,r){var a;return null==t?wt(this,i,r).year:(a=Mt(t,i,r),e>a&&(e=a),Nn.call(this,t,e,n,i,r))}function Nn(t,e,n,i,r){var a=_t(t,e,n,i,r),o=bt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function zn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Bn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Fn(t,e){e[ur]=x(1e3*("0."+t))}function Un(){return this._isUTC?"UTC":""}function jn(){return this._isUTC?"Coordinated Universal Time":""}function Wn(t){return be(1e3*t)}function Gn(){return be.apply(null,arguments).parseZone()}function Vn(t){return t}function Hn(t,e,n,i){var r=ee(),a=h().set(i,e);return r[n](a,t)}function qn(t,e,n){if(o(t)&&(e=t,t=void 0),t=t||"",null!=e)return Hn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Hn(t,i,n,"month");return r}function Yn(t,e,n,i){"boolean"==typeof t?(o(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,o(e)&&(n=e,e=void 0),e=e||"");var r=ee(),a=t?r._week.dow:0;if(null!=n)return Hn(e,(n+a)%7,i,"day");var s,l=[];for(s=0;s<7;s++)l[s]=Hn(e,(s+a)%7,i,"day");return l}function Xn(t,e){return qn(t,e,"months")}function Zn(t,e){return qn(t,e,"monthsShort")}function Kn(t,e,n){return Yn(t,e,n,"weekdays")}function Qn(t,e,n){return Yn(t,e,n,"weekdaysShort")}function Jn(t,e,n){return Yn(t,e,n,"weekdaysMin")}function $n(){var t=this._data;return this._milliseconds=na(this._milliseconds),this._days=na(this._days),this._months=na(this._months),t.milliseconds=na(t.milliseconds),t.seconds=na(t.seconds),t.minutes=na(t.minutes),t.hours=na(t.hours),t.months=na(t.months),t.years=na(t.years),this}function ti(t,e,n,i){var r=Ve(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function ei(t,e){return ti(this,t,e,1)}function ni(t,e){return ti(this,t,e,-1)}function ii(t){return t<0?Math.floor(t):Math.ceil(t)}function ri(){var t,e,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*ii(oi(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=b(a/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,n=b(e/60),l.hours=n%24,o+=b(n/24),r=b(ai(o)),s+=r,o-=ii(oi(r)),i=b(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function ai(t){return 4800*t/146097}function oi(t){return 146097*t/4800}function si(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=N(t))||"year"===t)return e=this._days+i/864e5,n=this._months+ai(e),"month"===t?n:n/12;switch(e=this._days+Math.round(oi(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function ui(t){return function(){return this.as(t)}}function ci(t){return t=N(t),this.isValid()?this[t+"s"]():NaN}function hi(t){return function(){return this.isValid()?this._data[t]:NaN}}function di(){return b(this.days()/7)}function fi(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function pi(t,e,n){var i=Ve(t).abs(),r=ya(i.as("s")),a=ya(i.as("m")),o=ya(i.as("h")),s=ya(i.as("d")),l=ya(i.as("M")),u=ya(i.as("y")),c=r<=ba.ss&&["s",r]||r0,c[4]=n,fi.apply(null,c)}function mi(t){return void 0===t?ya:"function"==typeof t&&(ya=t,!0)}function gi(t,e){return void 0!==ba[t]&&(void 0===e?ba[t]:(ba[t]=e,"s"===t&&(ba.ss=e-1),!0))}function vi(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pi(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function yi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=xa(this._milliseconds)/1e3,r=xa(this._days),a=xa(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60,n=b(a/12),a%=12;var o=n,s=a,l=r,u=e,c=t,h=i,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(u||c||h?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(h?h+"S":""):"P0D"}var bi,xi;xi=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i68?1900:2e3)};var yr=U("FullYear",!0);q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),B("week",5),B("isoWeek",5),Q("w",Gi),Q("ww",Gi,Fi),Q("W",Gi),Q("WW",Gi,Fi),nt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=x(t)});var br={dow:0,doy:6};q("d",0,"do","day"),q("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),Q("d",Gi),Q("e",Gi),Q("E",Gi),Q("dd",function(t,e){return e.weekdaysMinRegex(t)}),Q("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Q("dddd",function(t,e){return e.weekdaysRegex(t)}),nt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t}),nt(["d","e","E"],function(t,e,n,i){e[i]=x(t)});var xr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_r="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mr=tr,Sr=tr,Er=tr;q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Gt),q("k",["kk",2],0,Vt),q("hmm",0,0,function(){return""+Gt.apply(this)+H(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Gt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),Ht("a",!0),Ht("A",!1),D("hour","h"),B("hour",13),Q("a",qt),Q("A",qt),Q("H",Gi),Q("h",Gi),Q("k",Gi),Q("HH",Gi,Fi),Q("hh",Gi,Fi),Q("kk",Gi,Fi),Q("hmm",Vi),Q("hmmss",Hi),Q("Hmm",Vi),Q("Hmmss",Hi),et(["H","HH"],or),et(["k","kk"],function(t,e,n){var i=x(t);e[or]=24===i?0:i}),et(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),et(["h","hh"],function(t,e,n){e[or]=x(t),f(n).bigHour=!0}),et("hmm",function(t,e,n){var i=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i)),f(n).bigHour=!0}),et("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i,2)),e[lr]=x(t.substr(r)),f(n).bigHour=!0}),et("Hmm",function(t,e,n){var i=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i))}),et("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i,2)),e[lr]=x(t.substr(r))});var kr,Tr=/[ap]\.?m?\.?/i,Cr=U("Hours",!0),Pr={calendar:Ci,longDateFormat:Pi,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Oi,relativeTime:Ai,months:pr,monthsShort:mr,week:br,weekdays:xr,weekdaysMin:wr,weekdaysShort:_r,meridiemParse:Tr},Or={},Ar={},Rr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ir=/Z|[+-]\d\d(?::?\d\d)?/,Dr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Nr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zr=/^\/?Date\((\-?\d+)/i,Br=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Fr=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?tthis?this:t:m()}),jr=function(){return Date.now?Date.now():+new Date},Wr=["year","quarter","month","week","day","hour","minute","second","millisecond"];Pe("Z",":"),Pe("ZZ",""),Q("Z",Ji),Q("ZZ",Ji),et(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Oe(Ji,t)});var Gr=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Vr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Hr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ve.fn=ke.prototype,Ve.invalid=Ee;var qr=Xe(1,"add"),Yr=Xe(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xr=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),On("gggg","weekYear"),On("ggggg","weekYear"),On("GGGG","isoWeekYear"),On("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),Q("G",Ki),Q("g",Ki),Q("GG",Gi,Fi),Q("gg",Gi,Fi),Q("GGGG",Yi,ji),Q("gggg",Yi,ji),Q("GGGGG",Xi,Wi),Q("ggggg",Xi,Wi),nt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=x(t)}),nt(["gg","GG"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),D("quarter","Q"),B("quarter",7),Q("Q",Bi),et("Q",function(t,e){e[rr]=3*(x(t)-1)}),q("D",["DD",2],"Do","date"),D("date","D"),B("date",9),Q("D",Gi),Q("DD",Gi,Fi),Q("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),et(["D","DD"],ar),et("Do",function(t,e){e[ar]=x(t.match(Gi)[0],10)});var Zr=U("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),B("dayOfYear",4),Q("DDD",qi),Q("DDDD",Ui),et(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),q("m",["mm",2],0,"minute"),D("minute","m"),B("minute",14),Q("m",Gi),Q("mm",Gi,Fi),et(["m","mm"],sr);var Kr=U("Minutes",!1);q("s",["ss",2],0,"second"),D("second","s"),B("second",15),Q("s",Gi),Q("ss",Gi,Fi),et(["s","ss"],lr);var Qr=U("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),B("millisecond",16),Q("S",qi,Bi),Q("SS",qi,Fi),Q("SSS",qi,Ui);var Jr;for(Jr="SSSS";Jr.length<=9;Jr+="S")Q(Jr,Zi);for(Jr="S";Jr.length<=9;Jr+="S")et(Jr,Fn);var $r=U("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var ta=v.prototype;ta.add=qr,ta.calendar=Qe,ta.clone=Je,ta.diff=on,ta.endOf=bn,ta.format=hn,ta.from=dn,ta.fromNow=fn,ta.to=pn,ta.toNow=mn,ta.get=G,ta.invalidAt=Cn,ta.isAfter=$e,ta.isBefore=tn,ta.isBetween=en,ta.isSame=nn,ta.isSameOrAfter=rn,ta.isSameOrBefore=an,ta.isValid=kn,ta.lang=Xr,ta.locale=gn,ta.localeData=vn,ta.max=Ur,ta.min=Fr,ta.parsingFlags=Tn,ta.set=V,ta.startOf=yn,ta.subtract=Yr,ta.toArray=Mn,ta.toObject=Sn,ta.toDate=wn,ta.toISOString=un,ta.inspect=cn,ta.toJSON=En,ta.toString=ln,ta.unix=_n,ta.valueOf=xn,ta.creationData=Pn,ta.year=yr,ta.isLeapYear=vt,ta.weekYear=An,ta.isoWeekYear=Rn,ta.quarter=ta.quarters=zn,ta.month=ct,ta.daysInMonth=ht,ta.week=ta.weeks=Tt,ta.isoWeek=ta.isoWeeks=Ct,ta.weeksInYear=In,ta.isoWeeksInYear=Ln,ta.date=Zr,ta.day=ta.days=Nt,ta.weekday=zt,ta.isoWeekday=Bt,ta.dayOfYear=Bn,ta.hour=ta.hours=Cr,ta.minute=ta.minutes=Kr,ta.second=ta.seconds=Qr,ta.millisecond=ta.milliseconds=$r,ta.utcOffset=Le,ta.utc=De,ta.local=Ne,ta.parseZone=ze,ta.hasAlignedHourOffset=Be,ta.isDST=Fe,ta.isLocal=je,ta.isUtcOffset=We,ta.isUtc=Ge,ta.isUTC=Ge,ta.zoneAbbr=Un,ta.zoneName=jn,ta.dates=M("dates accessor is deprecated. Use date instead.",Zr),ta.months=M("months accessor is deprecated. Use month instead",ct),ta.years=M("years accessor is deprecated. Use year instead",yr),ta.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ie),ta.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ue);var ea=C.prototype;ea.calendar=P,ea.longDateFormat=O,ea.invalidDate=A,ea.ordinal=R,ea.preparse=Vn,ea.postformat=Vn,ea.relativeTime=L,ea.pastFuture=I,ea.set=k,ea.months=at,ea.monthsShort=ot,ea.monthsParse=lt,ea.monthsRegex=ft,ea.monthsShortRegex=dt,ea.week=St,ea.firstDayOfYear=kt,ea.firstDayOfWeek=Et,ea.weekdays=At,ea.weekdaysMin=Lt,ea.weekdaysShort=Rt,ea.weekdaysParse=Dt,ea.weekdaysRegex=Ft,ea.weekdaysShortRegex=Ut,ea.weekdaysMinRegex=jt,ea.isPM=Yt,ea.meridiem=Xt,Jt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=M("moment.lang is deprecated. Use moment.locale instead.",Jt),e.langData=M("moment.langData is deprecated. Use moment.localeData instead.",ee);var na=Math.abs,ia=ui("ms"),ra=ui("s"),aa=ui("m"),oa=ui("h"),sa=ui("d"),la=ui("w"),ua=ui("M"),ca=ui("y"),ha=hi("milliseconds"),da=hi("seconds"),fa=hi("minutes"),pa=hi("hours"),ma=hi("days"),ga=hi("months"),va=hi("years"),ya=Math.round,ba={ss:44,s:45,m:45,h:22,d:26,M:11},xa=Math.abs,_a=ke.prototype;return _a.isValid=Se,_a.abs=$n,_a.add=ei,_a.subtract=ni,_a.as=si,_a.asMilliseconds=ia,_a.asSeconds=ra,_a.asMinutes=aa,_a.asHours=oa,_a.asDays=sa,_a.asWeeks=la,_a.asMonths=ua,_a.asYears=ca,_a.valueOf=li,_a._bubble=ri,_a.get=ci,_a.milliseconds=ha,_a.seconds=da,_a.minutes=fa,_a.hours=pa,_a.days=ma,_a.weeks=di,_a.months=ga,_a.years=va,_a.humanize=vi,_a.toISOString=yi,_a.toString=yi,_a.toJSON=yi,_a.locale=gn,_a.localeData=vn,_a.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",yi),_a.lang=Xr,q("X",0,0,"unix"),q("x",0,0,"valueOf"),Q("x",Ki),Q("X",$i),et("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),et("x",function(t,e,n){n._d=new Date(x(t))}),e.version="2.18.1",function(t){bi=t}(be),e.fn=ta,e.min=_e,e.max=we,e.now=jr,e.utc=h,e.unix=Wn,e.months=Xn,e.isDate=s,e.locale=Jt,e.invalid=m,e.duration=Ve,e.isMoment=y,e.weekdays=Kn,e.parseZone=Gn,e.localeData=ee,e.isDuration=Te,e.monthsShort=Zn,e.weekdaysMin=Jn,e.defineLocale=$t,e.updateLocale=te,e.locales=ne,e.weekdaysShort=Qn,e.normalizeUnits=N,e.relativeTimeRounding=mi,e.relativeTimeThreshold=gi,e.calendarFormat=Ke,e.prototype=ta,e})}).call(e,n(112)(t))},function(t,e,n){var i=n(366),r=n(369),a=n(368),o=n(370),s=n(367),l=[0,0];t.exports.computeMiter=function(t,e,n,o,u){return i(t,n,o),a(t,t),r(e,-t[1],t[0]),r(l,-n[1],n[0]),u/s(e,l)},t.exports.normal=function(t,e){return r(t,-e[1],e[0]),t},t.exports.direction=function(t,e,n){return o(t,e,n),a(t,t),t}},function(t,e,n){function i(t,e,n){t.push([[e[0],e[1]],n])}var r=n(402),a=[0,0],o=[0,0],s=[0,0],l=[0,0];t.exports=function(t,e){var n=null,u=[];e&&(t=t.slice(),t.push(t[0]));for(var c=t.length,h=1;h2&&e){var g=t[c-2],v=t[0],y=t[1];r.direction(a,v,g),r.direction(o,y,v),r.normal(n,a);var b=r.computeMiter(s,l,a,o,1);u[0][0]=l.slice(),u[c-1][0]=l.slice(),u[0][1]=b,u[c-1][1]=b,u.pop()}return u}},function(t,e,n){"use strict";function i(t,e,n){if(!(this instanceof i))return new i(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var r=t.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}var r=n(145);i.fromMGRS=function(t){return new i(n.i(r.b)(t))},i.prototype.toMGRS=function(t){return n.i(r.c)([this.x,this.y],t)},e.a=i},function(t,e,n){"use strict";e.a=function(t,e,n){var i,r,a,o=n.x,s=n.y,l=n.z||0,u={};for(a=0;a<3;a++)if(!e||2!==a||void 0!==n.z)switch(0===a?(i=o,r="x"):1===a?(i=s,r="y"):(i=l,r="z"),t.axis[a]){case"e":u[r]=i;break;case"w":u[r]=-i;break;case"n":u[r]=i;break;case"s":u[r]=-i;break;case"u":void 0!==n[r]&&(u.z=i);break;case"d":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}},function(t,e,n){"use strict";function i(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!==t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}e.a=function(t){i(t.x),i(t.y)}},function(t,e,n){"use strict";var i=n(10);e.a=function(t,e){if(void 0===t){if((t=Math.floor(30*(n.i(i.a)(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}},function(t,e,n){"use strict";var i=n(146),r=n(414);e.a=function(t){var e=Math.abs(t);return e=n.i(r.a)(e*(1+e/(n.i(i.a)(1,e)+1))),t<0?-e:e}},function(t,e,n){"use strict";e.a=function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,a=t[r],o=0;--r>=0;)n=i*a-o+t[r],o=a,a=n;return Math.sin(e)*n}},function(t,e,n){"use strict";var i=n(149),r=n(411);e.a=function(t,e,a){for(var o,s,l=Math.sin(e),u=Math.cos(e),c=n.i(i.a)(a),h=n.i(r.a)(a),d=2*u*h,f=-2*l*c,p=t.length-1,m=t[p],g=0,v=0,y=0;--p>=0;)o=v,s=g,v=m,g=y,m=d*v-o-f*g+t[p],y=f*v-s+d*g;return d=l*h,f=u*c,[d*m-f*y,d*y+f*m]}},function(t,e,n){"use strict";e.a=function(t){var e=Math.exp(t);return e=(e+1/e)/2}},function(t,e,n){"use strict";e.a=function(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,a=t[r],o=0;--r>=0;)n=i*a-o+t[r],o=a,a=n;return e+n*Math.sin(2*e)}},function(t,e,n){"use strict";var i=n(7);e.a=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*i.a:i.a;for(var r,a,o,s,l=Math.asin(.5*e),u=0;u<30;u++)if(a=Math.sin(l),o=Math.cos(l),s=t*a,r=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-a/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),l+=r,Math.abs(r)<=1e-10)return l;return NaN}},function(t,e,n){"use strict";e.a=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}},function(t,e,n){"use strict";e.a=function(t,e){return Math.pow((1-t)/(1+t),e)}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i={};i.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},i.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},i.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},i.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},i.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},i.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},i.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},i.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},i.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},i.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},i.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},i.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},i.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},i.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},i.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},i.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},i.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i={};i.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},i.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},i.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},i.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},i.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},i.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},i.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},i.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},i.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},i.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},i.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},i.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},i.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},i.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},i.hough={a:6378270,rf:297,ellipseName:"Hough"},i.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},i.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},i.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},i.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},i.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},i.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},i.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},i.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},i.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var r=i.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};i.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i={};i.greenwich=0,i.lisbon=-9.131906111111,i.paris=2.337229166667,i.bogota=-74.080916666667,i.madrid=-3.687938888889,i.rome=12.452333333333,i.bern=7.439583333333,i.jakarta=106.807719444444,i.ferro=-17.666666666667,i.brussels=4.367975,i.stockholm=18.058277777778,i.athens=23.7163375,i.oslo=10.722916666667},function(t,e,n){"use strict";e.a={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}},function(t,e,n){"use strict";function i(t,e,i){var r,a,o;return Array.isArray(i)?(r=n.i(s.a)(t,e,i),3===i.length?[r.x,r.y,r.z]:[r.x,r.y]):(a=n.i(s.a)(t,e,i),o=Object.keys(i),2===o.length?a:(o.forEach(function(t){"x"!==t&&"y"!==t&&(a[t]=i[t])}),a))}function r(t){return t instanceof o.a?t:t.oProj?t.oProj:n.i(o.a)(t)}function a(t,e,n){t=r(t);var a,o=!1;return void 0===e?(e=t,t=l,o=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,e=t,t=l,o=!0),e=r(e),n?i(t,e,n):(a={forward:function(n){return i(t,e,n)},inverse:function(n){return i(e,t,n)}},o&&(a.oProj=e),a)}var o=n(102),s=n(154),l=n.i(o.a)("WGS84");e.a=a},function(t,e,n){"use strict";function i(t,e,n,i,a,o){var s={};return s.datum_type=void 0===t||"none"===t?r.k:r.l,e&&(s.datum_params=e.map(parseFloat),0===s.datum_params[0]&&0===s.datum_params[1]&&0===s.datum_params[2]||(s.datum_type=r.h),s.datum_params.length>3&&(0===s.datum_params[3]&&0===s.datum_params[4]&&0===s.datum_params[5]&&0===s.datum_params[6]||(s.datum_type=r.i,s.datum_params[3]*=r.f,s.datum_params[4]*=r.f,s.datum_params[5]*=r.f,s.datum_params[6]=s.datum_params[6]/1e6+1))),s.a=n,s.b=i,s.es=a,s.ep2=o,s}var r=n(7);e.a=i},function(t,e,n){"use strict";function i(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(t.datum_type===l.h?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==l.i||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function r(t,e,n){var i,r,a,o,s=t.x,u=t.y,c=t.z?t.z:0;if(u<-l.a&&u>-1.001*l.a)u=-l.a;else if(u>l.a&&u<1.001*l.a)u=l.a;else if(u<-l.a||u>l.a)return null;return s>Math.PI&&(s-=2*Math.PI),r=Math.sin(u),o=Math.cos(u),a=r*r,i=n/Math.sqrt(1-e*a),{x:(i+c)*o*Math.cos(s),y:(i+c)*o*Math.sin(s),z:(i*(1-e)+c)*r}}function a(t,e,n,i){var r,a,o,s,u,c,h,d,f,p,m,g,v,y,b,x,_=t.x,w=t.y,M=t.z?t.z:0;if(r=Math.sqrt(_*_+w*w),a=Math.sqrt(_*_+w*w+M*M),r/n<1e-12){if(y=0,a/n<1e-12)return b=l.a,x=-i,{x:t.x,y:t.y,z:t.z}}else y=Math.atan2(w,_);o=M/a,s=r/a,u=1/Math.sqrt(1-e*(2-e)*s*s),d=s*(1-e)*u,f=o*u,v=0;do{v++,h=n/Math.sqrt(1-e*f*f),x=r*d+M*f-h*(1-e*f*f),c=e*h/(h+x),u=1/Math.sqrt(1-c*(2-c)*s*s),p=s*(1-c)*u,m=o*u,g=m*d-p*f,d=p,f=m}while(g*g>1e-24&&v<30);return b=Math.atan(m/Math.abs(p)),{x:y,y:b,z:x}}function o(t,e,n){if(e===l.h)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(e===l.i){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6];return{x:c*(t.x-u*t.y+s*t.z)+i,y:c*(u*t.x+t.y-o*t.z)+r,z:c*(-s*t.x+o*t.y+t.z)+a}}}function s(t,e,n){if(e===l.h)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(e===l.i){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6],h=(t.x-i)/c,d=(t.y-r)/c,f=(t.z-a)/c;return{x:h+u*d-s*f,y:-u*h+d+o*f,z:s*h-o*d+f}}}e.a=i,e.b=r,e.e=a,e.c=o,e.d=s;var l=n(7)},function(t,e,n){"use strict";function i(t){return t===r.h||t===r.i}var r=n(7),a=n(422);e.a=function(t,e,o){return n.i(a.a)(t,e)?o:t.datum_type===r.k||e.datum_type===r.k?o:t.es!==e.es||t.a!==e.a||i(t.datum_type)||i(e.datum_type)?(o=n.i(a.b)(o,t.es,t.a),i(t.datum_type)&&(o=n.i(a.c)(o,t.datum_type,t.datum_params)),i(e.datum_type)&&(o=n.i(a.d)(o,e.datum_type,e.datum_params)),n.i(a.e)(o,e.es,e.a,e.b)):o}},function(t,e,n){"use strict";function i(t,e,n,i){var r=t*t,o=e*e,s=(r-o)/r,l=0;return i?(t*=1-s*(a.m+s*(a.n+s*a.o)),r=t*t,s=0):l=Math.sqrt(s),{es:s,e:l,ep2:(r-o)/o}}function r(t,e,i,r,l){if(!t){var u=n.i(s.a)(o.a,r);u||(u=o.b),t=u.a,e=u.b,i=u.rf}return i&&!e&&(e=(1-1/i)*t),(0===i||Math.abs(t-e)-1})}function o(t){return"+"===t[0]}function s(t){return i(t)?r(t)?l.a[t]:a(t)?n.i(u.a)(t):o(t)?n.i(c.a)(t):void 0:t}var l=n(151),u=n(159),c=n(152),h=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];e.a=s},function(t,e,n){"use strict";function i(t,e){var n=c.length;return t.names?(c[n]=t,t.names.forEach(function(t){u[t.toLowerCase()]=n}),this):(console.log(e),!0)}function r(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==u[e]&&c[u[e]]?c[u[e]]:void 0}function a(){l.forEach(i)}var o=n(442),s=n(441),l=[o.a,s.a],u={},c=[];e.a={start:a,add:i,get:r}},function(t,e,n){"use strict";function i(){Math.abs(this.lat1+this.lat2)h.d?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function r(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var r=n.i(l.a)(this.e3,this.sin_phi,this.cos_phi),a=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*n.i(u.a)(e-this.long0),s=a*Math.sin(o)+this.x0,c=this.rh-a*Math.cos(o)+this.y0;return t.x=s,t.y=c,t}function a(t){var e,i,r,a,o,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),r=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),r=-1),a=0,0!==e&&(a=Math.atan2(r*t.x,r*t.y)),r=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(i=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,i)),o=n.i(u.a)(a/this.ns0+this.long0),t.x=o,t.y=s,t}function o(t,e){var i,r,a,o,s,l=n.i(c.a)(.5*e);if(t2*s.a*this.a)return;return i=e/this.a,r=Math.sin(i),a=Math.cos(i),g=this.long0,Math.abs(e)<=s.d?v=this.lat0:(v=n.i(p.a)(a*this.sin_p12+t.y*r*this.cos_p12/e),y=Math.abs(this.lat0)-s.a,g=Math.abs(y)<=s.d?this.lat0>=0?n.i(o.a)(this.long0+Math.atan2(t.x,-t.y)):n.i(o.a)(this.long0-Math.atan2(-t.x,t.y)):n.i(o.a)(this.long0+Math.atan2(t.x*r,e*this.cos_p12*a-t.y*this.sin_p12*r))),t.x=g,t.y=v,t}return b=n.i(u.a)(this.es),x=n.i(c.a)(this.es),_=n.i(h.a)(this.es),w=n.i(d.a)(this.es),Math.abs(this.sin_p12-1)<=s.d?(M=this.a*n.i(l.a)(b,x,_,w,s.a),e=Math.sqrt(t.x*t.x+t.y*t.y),S=M-e,v=n.i(m.a)(S/this.a,b,x,_,w),g=n.i(o.a)(this.long0+Math.atan2(t.x,-1*t.y)),t.x=g,t.y=v,t):Math.abs(this.sin_p12+1)<=s.d?(M=this.a*n.i(l.a)(b,x,_,w,s.a),e=Math.sqrt(t.x*t.x+t.y*t.y),S=e-M,v=n.i(m.a)(S/this.a,b,x,_,w),g=n.i(o.a)(this.long0+Math.atan2(t.x,t.y)),t.x=g,t.y=v,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),T=Math.atan2(t.x,t.y),E=n.i(f.a)(this.a,this.e,this.sin_p12),C=Math.cos(T),P=this.e*this.cos_p12*C,O=-P*P/(1-this.es),A=3*this.es*(1-O)*this.sin_p12*this.cos_p12*C/(1-this.es),R=e/E,L=R-O*(1+O)*Math.pow(R,3)/6-A*(1+3*O)*Math.pow(R,4)/24,I=1-O*L*L/2-R*L*L*L/6,k=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*C),g=n.i(o.a)(this.long0+Math.asin(Math.sin(T)*Math.sin(L)/Math.cos(k))),v=Math.atan((1-this.es*I*this.sin_p12/Math.sin(k))*Math.tan(k)/(1-this.es)),t.x=g,t.y=v,t)}var o=n(10),s=n(7),l=n(73),u=n(69),c=n(70),h=n(71),d=n(72),f=n(103),p=n(44),m=n(104),g=["Azimuthal_Equidistant","aeqd"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){"use strict";function i(){this.sphere||(this.e0=n.i(s.a)(this.es),this.e1=n.i(l.a)(this.es),this.e2=n.i(u.a)(this.es),this.e3=n.i(c.a)(this.es),this.ml0=this.a*n.i(o.a)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function r(t){var e,i,r=t.x,a=t.y;if(r=n.i(d.a)(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(a)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(a),Math.cos(r))-this.lat0);else{var s=Math.sin(a),l=Math.cos(a),u=n.i(h.a)(this.a,this.e,s),c=Math.tan(a)*Math.tan(a),f=r*Math.cos(a),p=f*f,m=this.es*l*l/(1-this.es),g=this.a*n.i(o.a)(this.e0,this.e1,this.e2,this.e3,a);e=u*f*(1-p*c*(1/6-(8-c+8*m)*p/120)),i=g-this.ml0+u*s/l*p*(.5+(5-c+6*m)*p/24)}return t.x=e+this.x0,t.y=i+this.y0,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i,r=t.x/this.a,a=t.y/this.a;if(this.sphere){var o=a+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(r)),i=Math.atan2(Math.tan(r),Math.cos(o))}else{var s=this.ml0/this.a+a,l=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-m.a)<=m.d)return t.x=this.long0,t.y=m.a,a<0&&(t.y*=-1),t;var u=n.i(h.a)(this.a,this.e,Math.sin(l)),c=u*u*u/this.a/this.a*(1-this.es),g=Math.pow(Math.tan(l),2),v=r*this.a/u,y=v*v;e=l-u*Math.tan(l)/c*v*v*(.5-(1+3*g)*v*v/24),i=v*(1-y*(g/3+(1+3*g)*g*y/15))/Math.cos(l)}return t.x=n.i(d.a)(i+this.long0),t.y=n.i(f.a)(e),t}var o=n(73),s=n(69),l=n(70),u=n(71),c=n(72),h=n(103),d=n(10),f=n(56),p=n(104),m=n(7),g=["Cassini","Cassini_Soldner","cass"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){"use strict";function i(){this.sphere||(this.k0=n.i(l.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function r(t){var e,i,r=t.x,a=t.y,l=n.i(o.a)(r-this.long0);if(this.sphere)e=this.x0+this.a*l*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var u=n.i(s.a)(this.e,Math.sin(a));e=this.x0+this.a*this.k0*l,i=this.y0+this.a*u*.5/this.k0}return t.x=e,t.y=i,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=n.i(o.a)(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=n.i(u.a)(this.e,2*t.y*this.k0/this.a),e=n.i(o.a)(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t}var o=n(10),s=n(106),l=n(45),u=n(413),c=["cea"];e.a={init:i,forward:r,inverse:a,names:c}},function(t,e,n){"use strict";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function r(t){var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=n.i(s.a)(i-this.lat0);return t.x=this.x0+this.a*r*this.rc,t.y=this.y0+this.a*a,t}function a(t){var e=t.x,i=t.y;return t.x=n.i(o.a)(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=n.i(s.a)(this.lat0+(i-this.y0)/this.a),t}var o=n(10),s=n(56),l=["Equirectangular","Equidistant_Cylindrical","eqc"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){"use strict";function i(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;if(0!==i&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return a=n.i(d.a)(this.long0+o/this.ns),r=n.i(f.a)(this.g-i/this.a),t.x=a,t.y=r,t;var s=this.g-i/this.a;return r=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3),a=n.i(d.a)(this.long0+o/this.ns),t.x=a,t.y=r,t}var o=n(69),s=n(70),l=n(71),u=n(72),c=n(45),h=n(73),d=n(10),f=n(56),p=n(104),m=n(7),g=["Equidistant_Conic","eqdc"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){"use strict";function i(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+s.b)/(Math.pow(Math.tan(.5*this.lat0+s.b),this.C)*n.i(o.a)(this.e*t,this.ratexp))}function r(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+s.b),this.C)*n.i(o.a)(this.e*Math.sin(i),this.ratexp))-s.a,t.x=this.C*e,t}function a(t){for(var e=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+s.b)/this.K,1/this.C),a=l;a>0&&(i=2*Math.atan(r*n.i(o.a)(this.e*Math.sin(t.y),-.5*this.e))-s.a,!(Math.abs(i-t.y)<1e-14));--a)t.y=i;return a?(t.x=e,t.y=i,t):null}var o=n(415),s=n(7),l=20,u=["gauss"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){"use strict";function i(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function r(t){var e,i,r,a,s,u,c,h,d=t.x,f=t.y;return r=n.i(o.a)(d-this.long0),e=Math.sin(f),i=Math.cos(f),a=Math.cos(r),u=this.sin_p14*e+this.cos_p14*i*a,s=1,u>0||Math.abs(u)<=l.d?(c=this.x0+this.a*s*i*Math.sin(r)/u,h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*a)/u):(c=this.x0+this.infinity_dist*i*Math.sin(r),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*a)),t.x=c,t.y=h,t}function a(t){var e,i,r,a,l,u;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(a=Math.atan2(e,this.rc),i=Math.sin(a),r=Math.cos(a),u=n.i(s.a)(r*this.sin_p14+t.y*i*this.cos_p14/e),l=Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),l=n.i(o.a)(this.long0+l)):(u=this.phic0,l=0),t.x=l,t.y=u,t}var o=n(10),s=n(44),l=n(7),u=["gnom"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){"use strict";function i(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function r(t){var e,i,r,a,s,l,u,c=t.x,h=t.y,d=n.i(o.a)(c-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),r=-d*this.alfa,a=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),s=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(a)),l=this.n*s,u=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(a/2+this.s45),this.n),t.y=u*Math.cos(l)/1,t.x=u*Math.sin(l)/1,this.czech||(t.y*=-1,t.x*=-1),t}function a(t){var e,n,i,r,a,o,s,l,u=t.x;t.x=t.y,t.y=u,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),a=Math.atan2(t.y,t.x),r=a/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,s=e,l=0;var c=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-t.y)<1e-10&&(l=1),s=t.y,c+=1}while(0===l&&c<15);return c>=15?null:t}var o=n(10),s=["Krovak","krovak"];e.a={init:i,forward:r,inverse:a,names:s}},function(t,e,n){"use strict";function i(){var t=Math.abs(this.lat0);if(Math.abs(t-l.a)0){var e;switch(this.qp=n.i(u.a)(this.e,1),this.mmf=.5/(1-this.es),this.apa=o(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=n.i(u.a)(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function r(t){var e,i,r,a,o,s,h,d,f,p,m=t.x,g=t.y;if(m=n.i(c.a)(m-this.long0),this.sphere){if(o=Math.sin(g),p=Math.cos(g),r=Math.cos(m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+p*r:1+this.sinph0*o+this.cosph0*p*r)<=l.d)return null;i=Math.sqrt(2/i),e=i*p*Math.sin(m),i*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*p*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.phi0)=0?(e=(f=Math.sqrt(s))*a,i=r*(this.mode===this.S_POLE?f:-f)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i,r,a,o,u,h,d=t.x/this.a,f=t.y/this.a;if(this.sphere){var p,m=0,g=0;if(p=Math.sqrt(d*d+f*f),(i=.5*p)>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(i),m=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(p)<=l.d?0:Math.asin(f*g/p),d*=g,f=m*p;break;case this.OBLIQ:i=Math.abs(p)<=l.d?this.phi0:Math.asin(m*this.sinph0+f*g*this.cosph0/p),d*=g*this.cosph0,f=(m-Math.sin(i)*this.sinph0)*p;break;case this.N_POLE:f=-f,i=l.a-i;break;case this.S_POLE:i-=l.a}e=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(d,f):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(d/=this.dd,f*=this.dd,(u=Math.sqrt(d*d+f*f))h.d?this.ns=Math.log(r/c)/Math.log(a/d):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=r/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(f,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function r(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=h.d&&(i=n.i(l.a)(i)*(h.a-2*h.d));var r,a,o=Math.abs(Math.abs(i)-h.a);if(o>h.d)r=n.i(s.a)(this.e,i,Math.sin(i)),a=this.a*this.f0*Math.pow(r,this.ns);else{if((o=i*this.ns)<=0)return null;a=0}var c=this.ns*n.i(u.a)(e-this.long0);return t.x=this.k0*(a*Math.sin(c))+this.x0,t.y=this.k0*(this.rh-a*Math.cos(c))+this.y0,t}function a(t){var e,i,r,a,o,s=(t.x-this.x0)/this.k0,l=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+l*l),i=1):(e=-Math.sqrt(s*s+l*l),i=-1);var d=0;if(0!==e&&(d=Math.atan2(i*s,i*l)),0!==e||this.ns>0){if(i=1/this.ns,r=Math.pow(e/(this.a*this.f0),i),-9999===(a=n.i(c.a)(this.e,r)))return null}else a=-h.a;return o=n.i(u.a)(d/this.ns+this.long0),t.x=o,t.y=a,t}var o=n(45),s=n(75),l=n(57),u=n(10),c=n(74),h=n(7),d=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"];e.a={init:i,forward:r,inverse:a,names:d}},function(t,e,n){"use strict";function i(){}function r(t){return t}var a=["longlat","identity"];e.a={init:i,forward:r,inverse:r,names:a}},function(t,e,n){"use strict";function i(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=n.i(o.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function r(t){var e=t.x,i=t.y;if(i*c.j>90&&i*c.j<-90&&e*c.j>180&&e*c.j<-180)return null;var r,a;if(Math.abs(Math.abs(i)-c.a)<=c.d)return null;if(this.sphere)r=this.x0+this.a*this.k0*n.i(s.a)(e-this.long0),a=this.y0+this.a*this.k0*Math.log(Math.tan(c.b+.5*i));else{var o=Math.sin(i),u=n.i(l.a)(this.e,i,o);r=this.x0+this.a*this.k0*n.i(s.a)(e-this.long0),a=this.y0-this.a*this.k0*Math.log(u)}return t.x=r,t.y=a,t}function a(t){var e,i,r=t.x-this.x0,a=t.y-this.y0;if(this.sphere)i=c.a-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var o=Math.exp(-a/(this.a*this.k0));if(-9999===(i=n.i(u.a)(this.e,o)))return null}return e=n.i(s.a)(this.long0+r/(this.a*this.k0)),t.x=e,t.y=i,t}var o=n(45),s=n(10),l=n(75),u=n(74),c=n(7),h=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];e.a={init:i,forward:r,inverse:a,names:h}},function(t,e,n){"use strict";function i(){}function r(t){var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=this.x0+this.a*r,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=a,t.y=s,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e=n.i(o.a)(this.long0+t.x/this.a),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t}var o=n(10),s=["Miller_Cylindrical","mill"];e.a={init:i,forward:r,inverse:a,names:s}},function(t,e,n){"use strict";function i(){}function r(t){for(var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=i,l=Math.PI*Math.sin(i);;){var u=-(a+Math.sin(a)-l)/(1+Math.cos(a));if(a+=u,Math.abs(u).999999999999&&(i=.999999999999),e=Math.asin(i);var r=n.i(o.a)(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var a=Math.asin(i);return t.x=r,t.y=a,t}var o=n(10),s=n(7),l=["Mollweide","moll"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){"use strict";function i(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function r(t){var e,n=t.x,i=t.y,r=i-this.lat0,a=n-this.long0,s=r/o.f*1e-5,l=a,u=1,c=0;for(e=1;e<=10;e++)u*=s,c+=this.A[e]*u;var h,d,f=c,p=l,m=1,g=0,v=0,y=0;for(e=1;e<=6;e++)h=m*f-g*p,d=g*f+m*p,m=h,g=d,v=v+this.B_re[e]*m-this.B_im[e]*g,y=y+this.B_im[e]*m+this.B_re[e]*g;return t.x=y*this.a+this.x0,t.y=v*this.a+this.y0,t}function a(t){var e,n,i,r=t.x,a=t.y,s=r-this.x0,l=a-this.y0,u=l/this.a,c=s/this.a,h=1,d=0,f=0,p=0;for(e=1;e<=6;e++)n=h*u-d*c,i=d*u+h*c,h=n,d=i,f=f+this.C_re[e]*h-this.C_im[e]*d,p=p+this.C_im[e]*h+this.C_re[e]*d;for(var m=0;m=0?this.el=(a+Math.sqrt(a*a-1))*Math.pow(r,this.bl):this.el=(a-Math.sqrt(a*a-1))*Math.pow(r,this.bl);var d=Math.pow(c,this.bl),f=Math.pow(h,this.bl);l=this.el/d,u=.5*(l-1/l);var p=(this.el*this.el-f*d)/(this.el*this.el+f*d),m=(f-d)/(f+d),g=n.i(s.a)(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(p*Math.tan(.5*this.bl*g)/m)/this.bl,this.long0=n.i(s.a)(this.long0);var v=n.i(s.a)(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*v)/u),this.alpha=Math.asin(a*Math.sin(this.gamma0))}else l=this.lat0>=0?a+Math.sqrt(a*a-1):a-Math.sqrt(a*a-1),this.el=l*Math.pow(r,this.bl),u=.5*(l-1/l),this.gamma0=Math.asin(Math.sin(this.alpha)/a),this.long0=this.longc-Math.asin(u*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha))}function r(t){var e,i,r,a=t.x,l=t.y,c=n.i(s.a)(a-this.long0);if(Math.abs(Math.abs(l)-u.a)<=u.d)r=l>0?-1:1,i=this.al/this.bl*Math.log(Math.tan(u.b+r*this.gamma0*.5)),e=-1*r*u.a*this.al/this.bl;else{var h=n.i(o.a)(this.e,l,Math.sin(l)),d=this.el/Math.pow(h,this.bl),f=.5*(d-1/d),p=.5*(d+1/d),m=Math.sin(this.bl*c),g=(f*Math.sin(this.gamma0)-m*Math.cos(this.gamma0))/p;i=Math.abs(Math.abs(g)-1)<=u.d?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-g)/(1+g))/this.bl,e=Math.abs(Math.cos(this.bl*c))<=u.d?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+m*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+i):(e-=this.uc,t.x=this.x0+i*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-i*Math.sin(this.alpha)),t}function a(t){var e,i;this.no_rot?(i=t.y-this.y0,e=t.x-this.x0):(i=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var r=Math.exp(-1*this.bl*i/this.al),a=.5*(r-1/r),o=.5*(r+1/r),c=Math.sin(this.bl*e/this.al),h=(c*Math.cos(this.gamma0)+a*Math.sin(this.gamma0))/o,d=Math.pow(this.el/Math.sqrt((1+h)/(1-h)),1/this.bl);return Math.abs(h-1)0||Math.abs(u)<=l.d)&&(c=this.a*s*i*Math.sin(r),h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*a)),t.x=c,t.y=h,t}function a(t){var e,i,r,a,u,c,h;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=n.i(s.a)(e/this.a),r=Math.sin(i),a=Math.cos(i),c=this.long0,Math.abs(e)<=l.d?(h=this.lat0,t.x=c,t.y=h,t):(h=n.i(s.a)(a*this.sin_p14+t.y*r*this.cos_p14/e),u=Math.abs(this.lat0)-l.a,Math.abs(u)<=l.d?(c=this.lat0>=0?n.i(o.a)(this.long0+Math.atan2(t.x,-t.y)):n.i(o.a)(this.long0-Math.atan2(-t.x,t.y)),t.x=c,t.y=h,t):(c=n.i(o.a)(this.long0+Math.atan2(t.x*r,e*this.cos_p14*a-t.y*this.sin_p14*r)),t.x=c,t.y=h,t))}var o=n(10),s=n(44),l=n(7),u=["ortho"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){"use strict";function i(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n.i(o.a)(this.es),this.e1=n.i(s.a)(this.es),this.e2=n.i(l.a)(this.es),this.e3=n.i(u.a)(this.es),this.ml0=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function r(t){var e,i,r,a=t.x,o=t.y,s=n.i(c.a)(a-this.long0);if(r=s*Math.sin(o),this.sphere)Math.abs(o)<=f.d?(e=this.a*s,i=-1*this.a*this.lat0):(e=this.a*Math.sin(r)/Math.tan(o),i=this.a*(n.i(h.a)(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=f.d)e=this.a*s,i=-1*this.ml0;else{var l=n.i(p.a)(this.a,this.e,Math.sin(o))/Math.tan(o);e=l*Math.sin(r),i=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+l*(1-Math.cos(r))}return t.x=e+this.x0,t.y=i+this.y0,t}function a(t){var e,i,r,a,o,s,l,u,h;if(r=t.x-this.x0,a=t.y-this.y0,this.sphere)if(Math.abs(a+this.a*this.lat0)<=f.d)e=n.i(c.a)(r/this.a+this.long0),i=0;else{s=this.lat0+a/this.a,l=r*r/this.a/this.a+s*s,u=s;var p;for(o=m;o;--o)if(p=Math.tan(u),h=-1*(s*(u*p+1)-u-.5*(u*u+l)*p)/((u-s)/p-1),u+=h,Math.abs(h)<=f.d){i=u;break}e=n.i(c.a)(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(i))}else if(Math.abs(a+this.ml0)<=f.d)i=0,e=n.i(c.a)(this.long0+r/this.a);else{s=(this.ml0+a)/this.a,l=r*r/this.a/this.a+s*s,u=s;var g,v,y,b,x;for(o=m;o;--o)if(x=this.e*Math.sin(u),g=Math.sqrt(1-x*x)*Math.tan(u),v=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,u),y=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=v/this.a,h=(s*(g*b+1)-b-.5*g*(b*b+l))/(this.es*Math.sin(2*u)*(b*b+l-2*s*b)/(4*g)+(s-b)*(g*y-2/Math.sin(2*u))-y),u-=h,Math.abs(h)<=f.d){i=u;break}g=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=n.i(c.a)(this.long0+Math.asin(r*g/this.a)/Math.sin(i))}return t.x=e,t.y=i,t}var o=n(69),s=n(70),l=n(71),u=n(72),c=n(10),h=n(56),d=n(73),f=n(7),p=n(103),m=20,g=["Polyconic","poly"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){"use strict";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=l.a-l.b/2?this.face=u.TOP:this.lat0<=-(l.a-l.b/2)?this.face=u.BOTTOM:Math.abs(this.long0)<=l.b?this.face=u.FRONT:Math.abs(this.long0)<=l.a+l.b?this.face=this.long0>0?u.RIGHT:u.LEFT:this.face=u.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function r(t){var e,n,i,r,a,h,d={x:0,y:0},f={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===u.TOP)r=l.a-e,n>=l.b&&n<=l.a+l.b?(f.value=c.AREA_0,i=n-l.a):n>l.a+l.b||n<=-(l.a+l.b)?(f.value=c.AREA_1,i=n>0?n-l.c:n+l.c):n>-(l.a+l.b)&&n<=-l.b?(f.value=c.AREA_2,i=n+l.a):(f.value=c.AREA_3,i=n);else if(this.face===u.BOTTOM)r=l.a+e,n>=l.b&&n<=l.a+l.b?(f.value=c.AREA_0,i=-n+l.a):n=-l.b?(f.value=c.AREA_1,i=-n):n<-l.b&&n>=-(l.a+l.b)?(f.value=c.AREA_2,i=-n-l.a):(f.value=c.AREA_3,i=n>0?-n+l.c:-n-l.c);else{var p,m,g,v,y,b,x;this.face===u.RIGHT?n=s(n,+l.a):this.face===u.BACK?n=s(n,+l.c):this.face===u.LEFT&&(n=s(n,-l.a)),v=Math.sin(e),y=Math.cos(e),b=Math.sin(n),x=Math.cos(n),p=y*x,m=y*b,g=v,this.face===u.FRONT?(r=Math.acos(p),i=o(r,g,m,f)):this.face===u.RIGHT?(r=Math.acos(m),i=o(r,g,-p,f)):this.face===u.BACK?(r=Math.acos(-p),i=o(r,g,-m,f)):this.face===u.LEFT?(r=Math.acos(-m),i=o(r,g,p,f)):(r=i=0,f.value=c.AREA_0)}return h=Math.atan(12/l.c*(i+Math.acos(Math.sin(i)*Math.cos(l.b))-l.a)),a=Math.sqrt((1-Math.cos(r))/(Math.cos(h)*Math.cos(h))/(1-Math.cos(Math.atan(1/Math.cos(i))))),f.value===c.AREA_1?h+=l.a:f.value===c.AREA_2?h+=l.c:f.value===c.AREA_3&&(h+=1.5*l.c),d.x=a*Math.cos(h),d.y=a*Math.sin(h),d.x=d.x*this.a+this.x0,d.y=d.y*this.a+this.y0,t.x=d.x,t.y=d.y,t}function a(t){var e,n,i,r,a,o,h,d,f,p={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=c.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=c.AREA_1,e-=l.a):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=c.AREA_2,e=e<0?e+l.c:e-l.c):(m.value=c.AREA_3,e+=l.a),f=l.c/12*Math.tan(e),a=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),o=Math.atan(a),i=Math.cos(e),r=Math.tan(n),h=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),h<-1?h=-1:h>1&&(h=1),this.face===u.TOP)d=Math.acos(h),p.phi=l.a-d,m.value===c.AREA_0?p.lam=o+l.a:m.value===c.AREA_1?p.lam=o<0?o+l.c:o-l.c:m.value===c.AREA_2?p.lam=o-l.a:p.lam=o;else if(this.face===u.BOTTOM)d=Math.acos(h),p.phi=d-l.a,m.value===c.AREA_0?p.lam=-o+l.a:m.value===c.AREA_1?p.lam=-o:m.value===c.AREA_2?p.lam=-o-l.a:p.lam=o<0?-o-l.c:-o+l.c;else{var g,v,y;g=h,f=g*g,y=f>=1?0:Math.sqrt(1-f)*Math.sin(o),f+=y*y,v=f>=1?0:Math.sqrt(1-f),m.value===c.AREA_1?(f=v,v=-y,y=f):m.value===c.AREA_2?(v=-v,y=-y):m.value===c.AREA_3&&(f=v,v=y,y=-f),this.face===u.RIGHT?(f=g,g=-v,v=f):this.face===u.BACK?(g=-g,v=-v):this.face===u.LEFT&&(f=g,g=v,v=-f),p.phi=Math.acos(-y)-l.a,p.lam=Math.atan2(v,g),this.face===u.RIGHT?p.lam=s(p.lam,-l.a):this.face===u.BACK?p.lam=s(p.lam,-l.c):this.face===u.LEFT&&(p.lam=s(p.lam,+l.a))}if(0!==this.es){var b,x,_;b=p.phi<0?1:0,x=Math.tan(p.phi),_=this.b/Math.sqrt(x*x+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),b&&(p.phi=-p.phi)}return p.lam+=this.long0,t.x=p.lam,t.y=p.phi,t}function o(t,e,n,i){var r;return tl.b&&r<=l.a+l.b?(i.value=c.AREA_1,r-=l.a):r>l.a+l.b||r<=-(l.a+l.b)?(i.value=c.AREA_2,r=r>=0?r-l.c:r+l.c):(i.value=c.AREA_3,r+=l.a)),r}function s(t,e){var n=t+e;return n<-l.c?n+=l.e:n>+l.c&&(n-=l.e),n}var l=n(7),u={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},c={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4},h=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];e.a={init:i,forward:r,inverse:a,names:h}},function(t,e,n){"use strict";function i(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=n.i(l.a)(this.es)}function r(t){var e,i,r=t.x,a=t.y;if(r=n.i(o.a)(r-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(a),l=f;l;--l){var c=(this.m*a+Math.sin(a)-s)/(this.m+Math.cos(a));if(a-=c,Math.abs(c)1e-7;){if(++h>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=u,t}var o=["somerc"];e.a={init:i,forward:r,inverse:a,names:o}},function(t,e,n){"use strict";function i(t,e,n){return e*=n,Math.tan(.5*(s.a+t))*Math.pow((1-e)/(1+e),.5*n)}function r(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.d&&(this.k0=.5*(1+n.i(l.a)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s.d&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.d&&(this.k0=.5*this.cons*n.i(u.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/n.i(c.a)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=n.i(u.a)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-s.a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function a(t){var e,i,r,a,o,l,u=t.x,h=t.y,f=Math.sin(h),p=Math.cos(h),m=n.i(d.a)(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=s.d&&Math.abs(h+this.lat0)<=s.d?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*f+this.coslat0*p*Math.cos(m)),t.x=this.a*e*p*Math.sin(m)+this.x0,t.y=this.a*e*(this.coslat0*f-this.sinlat0*p*Math.cos(m))+this.y0,t):(i=2*Math.atan(this.ssfn_(h,f,this.e))-s.a,a=Math.cos(i),r=Math.sin(i),Math.abs(this.coslat0)<=s.d?(o=n.i(c.a)(this.e,h*this.con,this.con*f),l=2*this.a*this.k0*o/this.cons,t.x=this.x0+l*Math.sin(u-this.long0),t.y=this.y0-this.con*l*Math.cos(u-this.long0),t):(Math.abs(this.sinlat0)0?n.i(d.a)(this.long0+Math.atan2(t.x,-1*t.y)):n.i(d.a)(this.long0+Math.atan2(t.x,t.y)):n.i(d.a)(this.long0+Math.atan2(t.x*Math.sin(u),l*this.coslat0*Math.cos(u)-t.y*this.sinlat0*Math.sin(u))),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)<=s.d){if(l<=s.d)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,r=l*this.cons/(2*this.a*this.k0),i=this.con*n.i(h.a)(this.e,r),e=this.con*n.i(d.a)(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else a=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,l<=s.d?o=this.X0:(o=Math.asin(Math.cos(a)*this.sinX0+t.y*Math.sin(a)*this.cosX0/l),e=n.i(d.a)(this.long0+Math.atan2(t.x*Math.sin(a),l*this.cosX0*Math.cos(a)-t.y*this.sinX0*Math.sin(a)))),i=-1*n.i(h.a)(this.e,Math.tan(.5*(s.a+o)));return t.x=e,t.y=i,t}var s=n(7),l=n(57),u=n(45),c=n(75),h=n(74),d=n(10),f=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"];e.a={init:r,forward:a,inverse:o,names:f,ssfn_:i}},function(t,e,n){"use strict";function i(){o.a.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function r(t){var e,i,r,a;return t.x=n.i(s.a)(t.x-this.long0),o.a.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),r=Math.cos(t.x),a=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*r),t.x=a*i*Math.sin(t.x),t.y=a*(this.cosc0*e-this.sinc0*i*r),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function a(t){var e,i,r,a,l;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,l=Math.sqrt(t.x*t.x+t.y*t.y)){var u=2*Math.atan2(l,this.R2);e=Math.sin(u),i=Math.cos(u),a=Math.asin(i*this.sinc0+t.y*e*this.cosc0/l),r=Math.atan2(t.x*e,l*this.cosc0*i-t.y*this.sinc0*e)}else a=this.phic0,r=0;return t.x=r,t.y=a,o.a.inverse.apply(this,[t]),t.x=n.i(s.a)(t.x+this.long0),t}var o=n(436),s=n(10),l=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){"use strict";function i(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=n.i(o.a)(this.es),this.ml0=n.i(s.a)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function r(t){var e,i,r,a=t.x,o=t.y,l=n.i(u.a)(a-this.long0),h=Math.sin(o),d=Math.cos(o);if(this.es){var f=d*l,p=Math.pow(f,2),m=this.ep2*Math.pow(d,2),g=Math.pow(m,2),v=Math.abs(d)>c.d?Math.tan(o):0,y=Math.pow(v,2),b=Math.pow(y,2);e=1-this.es*Math.pow(h,2),f/=Math.sqrt(e);var x=n.i(s.a)(o,h,d,this.en);i=this.a*(this.k0*f*(1+p/6*(1-y+m+p/20*(5-18*y+b+14*m-58*y*m+p/42*(61+179*b-b*y-479*y)))))+this.x0,r=this.a*(this.k0*(x-this.ml0+h*l*f/2*(1+p/12*(5-y+9*m+4*g+p/30*(61+b-58*y+270*m-330*y*m+p/56*(1385+543*b-b*y-3111*y))))))+this.y0}else{var _=d*Math.sin(l);if(Math.abs(Math.abs(_)-1)=1){if(_-1>c.d)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return t.x=i,t.y=r,t}function a(t){var e,i,r,a,o=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+s/this.k0,i=n.i(l.a)(e,this.es,this.en),Math.abs(i)c.d?Math.tan(i):0,m=this.ep2*Math.pow(f,2),g=Math.pow(m,2),v=Math.pow(p,2),y=Math.pow(v,2);e=1-this.es*Math.pow(d,2);var b=o*Math.sqrt(e)/this.k0,x=Math.pow(b,2);e*=p,r=i-e*x/(1-this.es)*.5*(1-x/12*(5+3*v-9*m*v+m-4*g-x/30*(61+90*v-252*m*v+45*y+46*m-x/56*(1385+3633*v+4095*y+1574*y*v)))),a=n.i(u.a)(this.long0+b*(1-x/6*(1+2*v+m-x/20*(5+28*v+24*y+8*m*v+6*m-x/42*(61+662*v+1320*y+720*y*v))))/f)}else r=c.a*n.i(h.a)(s),a=0;else{var _=Math.exp(o/this.k0),w=.5*(_-1/_),M=this.lat0+s/this.k0,S=Math.cos(M);e=Math.sqrt((1-Math.pow(S,2))/(1+Math.pow(w,2))),r=Math.asin(e),s<0&&(r=-r),a=0===w&&0===S?0:n.i(u.a)(Math.atan2(w,S)+this.long0)}return t.x=a,t.y=r,t}var o=n(147),s=n(105),l=n(148),u=n(10),c=n(7),h=n(57),d=["Transverse_Mercator","Transverse Mercator","tmerc"];e.a={init:i,forward:r,inverse:a,names:d}},function(t,e,n){"use strict";function i(){var t=n.i(r.a)(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*o.g,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,a.a.init.apply(this),this.forward=a.a.forward,this.inverse=a.a.inverse}var r=n(407),a=n(153),o=n(7),s=["Universal Transverse Mercator System","utm"];e.a={init:i,names:s,dependsOn:"etmerc"}},function(t,e,n){"use strict";function i(){this.R=this.a}function r(t){var e,i,r=t.x,a=t.y,u=n.i(o.a)(r-this.long0);Math.abs(a)<=s.d&&(e=this.x0+this.R*u,i=this.y0);var c=n.i(l.a)(2*Math.abs(a/Math.PI));(Math.abs(u)<=s.d||Math.abs(Math.abs(a)-s.a)<=s.d)&&(e=this.x0,i=a>=0?this.y0+Math.PI*this.R*Math.tan(.5*c):this.y0+Math.PI*this.R*-Math.tan(.5*c));var h=.5*Math.abs(Math.PI/u-u/Math.PI),d=h*h,f=Math.sin(c),p=Math.cos(c),m=p/(f+p-1),g=m*m,v=m*(2/f-1),y=v*v,b=Math.PI*this.R*(h*(m-y)+Math.sqrt(d*(m-y)*(m-y)-(y+d)*(g-y)))/(y+d);u<0&&(b=-b),e=this.x0+b;var x=d+m;return b=Math.PI*this.R*(v*x-h*Math.sqrt((y+d)*(d+1)-x*x))/(y+d),i=a>=0?this.y0+b:this.y0-b,t.x=e,t.y=i,t}function a(t){var e,i,r,a,l,u,c,h,d,f,p,m,g;return t.x-=this.x0,t.y-=this.y0,p=Math.PI*this.R,r=t.x/p,a=t.y/p,l=r*r+a*a,u=-Math.abs(a)*(1+l),c=u-2*a*a+r*r,h=-2*u+1+2*a*a+l*l,g=a*a/h+(2*c*c*c/h/h/h-9*u*c/h/h)/27,d=(u-c*c/3/h)/h,f=2*Math.sqrt(-d/3),p=3*g/d/f,Math.abs(p)>1&&(p=p>=0?1:-1),m=Math.acos(p)/3,i=t.y>=0?(-f*Math.cos(m+Math.PI/3)-c/3/h)*Math.PI:-(-f*Math.cos(m+Math.PI/3)-c/3/h)*Math.PI,e=Math.abs(r)this.eventPool.length&&this.eventPool.push(t)}function W(t){t.eventPool=[],t.getPooled=U,t.release=j}function G(t,e,n,i){return F.call(this,t,e,n,i)}function V(t,e,n,i){return F.call(this,t,e,n,i)}function H(t,e){switch(t){case"topKeyUp":return-1!==fi.indexOf(e.keyCode);case"topKeyDown":return 229!==e.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function q(t){return t=t.detail,"object"==typeof t&&"data"in t?t.data:null}function Y(t,e){switch(t){case"topCompositionEnd":return q(e);case"topKeyPress":return 32!==e.which?null:(Mi=!0,_i);case"topTextInput":return t=e.data,t===_i&&Mi?null:t;default:return null}}function X(t,e){if(Si)return"topCompositionEnd"===t||!pi&&H(t,e)?(t=z(),ci._root=null,ci._startText=null,ci._fallbackText=null,Si=!1,t):null;switch(t){case"topPaste":return null;case"topKeyPress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1Wi.length&&Wi.push(t)}}}function Lt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function It(t){if(Yi[t])return Yi[t];if(!qi[t])return t;var e,n=qi[t];for(e in n)if(n.hasOwnProperty(e)&&e in Xi)return Yi[t]=n[e];return""}function Dt(t){return Object.prototype.hasOwnProperty.call(t,Ji)||(t[Ji]=Qi++,Ki[t[Ji]]={}),Ki[t[Ji]]}function Nt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zt(t,e){var n=Nt(t);t=0;for(var i;n;){if(3===n.nodeType){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Nt(n)}}function Bt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)}function Ft(t,e){if(rr||null==er||er!==Sn())return null;var n=er;return"selectionStart"in n&&Bt(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ir&&En(ir,n)?null:(ir=n,t=F.getPooled(tr.select,nr,t,e),t.type="select",t.target=er,I(t),t)}function Ut(t,e,n,i){return F.call(this,t,e,n,i)}function jt(t,e,n,i){return F.call(this,t,e,n,i)}function Wt(t,e,n,i){return F.call(this,t,e,n,i)}function Gt(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,32<=t||13===t?t:0}function Vt(t,e,n,i){return F.call(this,t,e,n,i)}function Ht(t,e,n,i){return F.call(this,t,e,n,i)}function qt(t,e,n,i){return F.call(this,t,e,n,i)}function Yt(t,e,n,i){return F.call(this,t,e,n,i)}function Xt(t,e,n,i){return F.call(this,t,e,n,i)}function Zt(t){0>dr||(t.current=hr[dr],hr[dr]=null,dr--)}function Kt(t,e){dr++,hr[dr]=t.current,t.current=e}function Qt(t){return $t(t)?mr:fr.current}function Jt(t,e){var n=t.type.contextTypes;if(!n)return Cn;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=e[r];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function $t(t){return 2===t.tag&&null!=t.type.childContextTypes}function te(t){$t(t)&&(Zt(pr,t),Zt(fr,t))}function ee(t,e,n){null!=fr.cursor&&i("168"),Kt(fr,e,t),Kt(pr,n,t)}function ne(t,e){var n=t.stateNode,r=t.type.childContextTypes;if("function"!=typeof n.getChildContext)return e;n=n.getChildContext();for(var a in n)a in r||i("108",_t(t)||"Unknown",a);return _n({},e,n)}function ie(t){if(!$t(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Cn,mr=fr.current,Kt(fr,e,t),Kt(pr,pr.current,t),!0}function re(t,e){var n=t.stateNode;if(n||i("169"),e){var r=ne(t,mr);n.__reactInternalMemoizedMergedChildContext=r,Zt(pr,t),Zt(fr,t),Kt(fr,r,t)}else Zt(pr,t);Kt(pr,e,t)}function ae(t,e,n){this.tag=t,this.key=e,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function oe(t,e,n){var i=t.alternate;return null===i?(i=new ae(t.tag,t.key,t.internalContextTag),i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.effectTag=0,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null),i.expirationTime=n,i.pendingProps=e,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function se(t,e,n){var r=void 0,a=t.type,o=t.key;return"function"==typeof a?(r=a.prototype&&a.prototype.isReactComponent?new ae(2,o,e):new ae(0,o,e),r.type=a,r.pendingProps=t.props):"string"==typeof a?(r=new ae(5,o,e),r.type=a,r.pendingProps=t.props):"object"==typeof a&&null!==a&&"number"==typeof a.tag?(r=a,r.pendingProps=t.props):i("130",null==a?a:typeof a,""),r.expirationTime=n,r}function le(t,e,n,i){return e=new ae(10,i,e),e.pendingProps=t,e.expirationTime=n,e}function ue(t,e,n){return e=new ae(6,null,e),e.pendingProps=t,e.expirationTime=n,e}function ce(t,e,n){return e=new ae(7,t.key,e),e.type=t.handler,e.pendingProps=t,e.expirationTime=n,e}function he(t,e,n){return t=new ae(9,null,e),t.expirationTime=n,t}function de(t,e,n){return e=new ae(4,t.key,e),e.pendingProps=t.children||[],e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function fe(t){return function(e){try{return t(e)}catch(t){}}}function pe(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);gr=fe(function(t){return e.onCommitFiberRoot(n,t)}),vr=fe(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function me(t){"function"==typeof gr&&gr(t)}function ge(t){"function"==typeof vr&&vr(t)}function ve(t){return{baseState:t,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function ye(t,e){null===t.last?t.first=t.last=e:(t.last.next=e,t.last=e),(0===t.expirationTime||t.expirationTime>e.expirationTime)&&(t.expirationTime=e.expirationTime)}function be(t,e){var n=t.alternate,i=t.updateQueue;null===i&&(i=t.updateQueue=ve(null)),null!==n?null===(t=n.updateQueue)&&(t=n.updateQueue=ve(null)):t=null,t=t!==i?t:null,null===t?ye(i,e):null===i.last||null===t.last?(ye(i,e),ye(t,e)):(ye(i,e),t.last=e)}function xe(t,e,n,i){return t=t.partialState,"function"==typeof t?t.call(e,n,i):t}function _e(t,e,n,i,r,a){null!==t&&t.updateQueue===n&&(n=e.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?t=n.baseState:(t=n.baseState=e.memoizedState,n.isInitialized=!0);for(var o=!0,s=n.first,l=!1;null!==s;){var u=s.expirationTime;if(u>a){var c=n.expirationTime;(0===c||c>u)&&(n.expirationTime=u),l||(l=!0,n.baseState=t)}else l||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(t=xe(s,i,t,r),o=!0):(u=xe(s,i,t,r))&&(t=o?_n({},t,u):_n(t,u),o=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(u=n.callbackList,null===u&&(u=n.callbackList=[]),u.push(s));s=s.next}return null!==n.callbackList?e.effectTag|=32:null!==n.first||n.hasForceUpdate||(e.updateQueue=null),l||(n.baseState=t),t}function we(t,e){var n=t.callbackList;if(null!==n)for(t.callbackList=null,t=0;td?(f=h,h=null):f=h.sibling;var v=m(i,h,s[d],l);if(null===v){null===h&&(h=f);break}t&&h&&null===v.alternate&&e(i,h),a=o(v,a,d),null===c?u=v:c.sibling=v,c=v,h=f}if(d===s.length)return n(i,h),u;if(null===h){for(;df?(v=d,d=null):v=d.sibling;var b=m(a,d,y.value,u);if(null===b){d||(d=v);break}t&&d&&null===b.alternate&&e(a,d),s=o(b,s,f),null===h?c=b:h.sibling=b,h=b,d=v}if(y.done)return n(a,d),c;if(null===d){for(;!y.done;f++,y=l.next())null!==(y=p(a,y.value,u))&&(s=o(y,s,f),null===h?c=y:h.sibling=y,h=y);return c}for(d=r(a,d);!y.done;f++,y=l.next())null!==(y=g(d,a,f,y.value,u))&&(t&&null!==y.alternate&&d.delete(null===y.key?f:y.key),s=o(y,s,f),null===h?c=y:h.sibling=y,h=y);return t&&d.forEach(function(t){return e(a,t)}),c}return function(t,r,o,l){"object"==typeof o&&null!==o&&o.type===Mr&&null===o.key&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case br:t:{var c=o.key;for(u=r;null!==u;){if(u.key===c){if(10===u.tag?o.type===Mr:u.type===o.type){n(t,u.sibling),r=a(u,o.type===Mr?o.props.children:o.props,l),r.ref=Ee(u,o),r.return=t,t=r;break t}n(t,u);break}e(t,u),u=u.sibling}o.type===Mr?(r=le(o.props.children,t.internalContextTag,l,o.key),r.return=t,t=r):(l=se(o,t.internalContextTag,l),l.ref=Ee(r,o),l.return=t,t=l)}return s(t);case xr:t:{for(u=o.key;null!==r;){if(r.key===u){if(7===r.tag){n(t,r.sibling),r=a(r,o,l),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=ce(o,t.internalContextTag,l),r.return=t,t=r}return s(t);case _r:t:{if(null!==r){if(9===r.tag){n(t,r.sibling),r=a(r,null,l),r.type=o.value,r.return=t,t=r;break t}n(t,r)}r=he(o,t.internalContextTag,l),r.type=o.value,r.return=t,t=r}return s(t);case wr:t:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),r=a(r,o.children||[],l),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=de(o,t.internalContextTag,l),r.return=t,t=r}return s(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),r=a(r,o,l)):(n(t,r),r=ue(o,t.internalContextTag,l)),r.return=t,t=r,s(t);if(Er(o))return v(t,r,o,l);if(Se(o))return y(t,r,o,l);if(u&&ke(t,o),void 0===o)switch(t.tag){case 2:case 1:l=t.type,i("152",l.displayName||l.name||"Component")}return n(t,r)}}function Ce(t,e,n,r,a){function o(t,e,n){var i=e.expirationTime;e.child=null===t?Tr(e,null,n,i):kr(e,t.child,n,i)}function s(t,e){var n=e.ref;null===n||t&&t.ref===n||(e.effectTag|=128)}function l(t,e,n,i){if(s(t,e),!n)return i&&re(e,!1),c(t,e);n=e.stateNode,ji.current=e;var r=n.render();return e.effectTag|=1,o(t,e,r),e.memoizedState=n.state,e.memoizedProps=n.props,i&&re(e,!0),e.child}function u(t){var e=t.stateNode;e.pendingContext?ee(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ee(t,e.context,!1),g(t,e.containerInfo)}function c(t,e){if(null!==t&&e.child!==t.child&&i("153"),null!==e.child){t=e.child;var n=oe(t,t.pendingProps,t.expirationTime);for(e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=oe(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}function h(t,e){switch(e.tag){case 3:u(e);break;case 2:ie(e);break;case 4:g(e,e.stateNode.containerInfo)}return null}var d=t.shouldSetTextContent,f=t.useSyncScheduling,p=t.shouldDeprioritizeSubtree,m=e.pushHostContext,g=e.pushHostContainer,v=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;t=Me(r,a,function(t,e){t.memoizedProps=e},function(t,e){t.memoizedState=e});var x=t.adoptClassInstance,_=t.constructClassInstance,w=t.mountClassInstance,M=t.updateClassInstance;return{beginWork:function(t,e,n){if(0===e.expirationTime||e.expirationTime>n)return h(t,e);switch(e.tag){case 0:null!==t&&i("155");var r=e.type,a=e.pendingProps,S=Qt(e);return S=Jt(e,S),r=r(a,S),e.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render?(e.tag=2,a=ie(e),x(e,r),w(e,n),e=l(t,e,!0,a)):(e.tag=1,o(t,e,r),e.memoizedProps=a,e=e.child),e;case 1:t:{if(a=e.type,n=e.pendingProps,r=e.memoizedProps,pr.current)null===n&&(n=r);else if(null===n||r===n){e=c(t,e);break t}r=Qt(e),r=Jt(e,r),a=a(n,r),e.effectTag|=1,o(t,e,a),e.memoizedProps=n,e=e.child}return e;case 2:return a=ie(e),r=void 0,null===t?e.stateNode?i("153"):(_(e,e.pendingProps),w(e,n),r=!0):r=M(t,e,n),l(t,e,r,a);case 3:return u(e),a=e.updateQueue,null!==a?(r=e.memoizedState,a=_e(t,e,a,null,null,n),r===a?(y(),e=c(t,e)):(r=a.element,S=e.stateNode,(null===t||null===t.child)&&S.hydrate&&v(e)?(e.effectTag|=2,e.child=Tr(e,null,r,n)):(y(),o(t,e,r)),e.memoizedState=a,e=e.child)):(y(),e=c(t,e)),e;case 5:m(e),null===t&&b(e),a=e.type;var E=e.memoizedProps;return r=e.pendingProps,null===r&&null===(r=E)&&i("154"),S=null!==t?t.memoizedProps:null,pr.current||null!==r&&E!==r?(E=r.children,d(a,r)?E=null:S&&d(a,S)&&(e.effectTag|=16),s(t,e),2147483647!==n&&!f&&p(a,r)?(e.expirationTime=2147483647,e=null):(o(t,e,E),e.memoizedProps=r,e=e.child)):e=c(t,e),e;case 6:return null===t&&b(e),t=e.pendingProps,null===t&&(t=e.memoizedProps),e.memoizedProps=t,null;case 8:e.tag=7;case 7:return a=e.pendingProps,pr.current?null===a&&null===(a=t&&t.memoizedProps)&&i("154"):null!==a&&e.memoizedProps!==a||(a=e.memoizedProps),r=a.children,e.stateNode=null===t?Tr(e,e.stateNode,r,n):kr(e,e.stateNode,r,n),e.memoizedProps=a,e.stateNode;case 9:return null;case 4:t:{if(g(e,e.stateNode.containerInfo),a=e.pendingProps,pr.current)null===a&&null==(a=t&&t.memoizedProps)&&i("154");else if(null===a||e.memoizedProps===a){e=c(t,e);break t}null===t?e.child=kr(e,null,a,n):o(t,e,a),e.memoizedProps=a,e=e.child}return e;case 10:t:{if(n=e.pendingProps,pr.current)null===n&&(n=e.memoizedProps);else if(null===n||e.memoizedProps===n){e=c(t,e);break t}o(t,e,n),e.memoizedProps=n,e=e.child}return e;default:i("156")}},beginFailedWork:function(t,e,n){switch(e.tag){case 2:ie(e);break;case 3:u(e);break;default:i("157")}return e.effectTag|=64,null===t?e.child=null:e.child!==t.child&&(e.child=t.child),0===e.expirationTime||e.expirationTime>n?h(t,e):(e.firstEffect=null,e.lastEffect=null,e.child=null===t?Tr(e,null,null,n):kr(e,t.child,null,n),2===e.tag&&(t=e.stateNode,e.memoizedProps=t.props,e.memoizedState=t.state),e.child)}}}function Pe(t,e,n){function r(t){t.effectTag|=4}var a=t.createInstance,o=t.createTextInstance,s=t.appendInitialChild,l=t.finalizeInitialChildren,u=t.prepareUpdate,c=t.persistence,h=e.getRootHostContainer,d=e.popHostContext,f=e.getHostContext,p=e.popHostContainer,m=n.prepareToHydrateHostInstance,g=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,y=void 0,b=void 0,x=void 0;return t.mutation?(y=function(){},b=function(t,e,n){(e.updateQueue=n)&&r(e)},x=function(t,e,n,i){n!==i&&r(e)}):i(c?"235":"236"),{completeWork:function(t,e,n){var c=e.pendingProps;switch(null===c?c=e.memoizedProps:2147483647===e.expirationTime&&2147483647!==n||(e.pendingProps=null),e.tag){case 1:return null;case 2:return te(e),null;case 3:return p(e),Zt(pr,e),Zt(fr,e),c=e.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==t&&null!==t.child||(v(e),e.effectTag&=-3),y(e),null;case 5:d(e),n=h();var _=e.type;if(null!==t&&null!=e.stateNode){var w=t.memoizedProps,M=e.stateNode,S=f();M=u(M,_,w,c,n,S),b(t,e,M,_,w,c,n),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!c)return null===e.stateNode&&i("166"),null;if(t=f(),v(e))m(e,n,t)&&r(e);else{t=a(_,c,n,t,e);t:for(w=e.child;null!==w;){if(5===w.tag||6===w.tag)s(t,w.stateNode);else if(4!==w.tag&&null!==w.child){w.child.return=w,w=w.child;continue}if(w===e)break;for(;null===w.sibling;){if(null===w.return||w.return===e)break t;w=w.return}w.sibling.return=w.return,w=w.sibling}l(t,_,c,n)&&r(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)x(t,e,t.memoizedProps,c);else{if("string"!=typeof c)return null===e.stateNode&&i("166"),null;t=h(),n=f(),v(e)?g(e)&&r(e):e.stateNode=o(c,t,n,e)}return null;case 7:(c=e.memoizedProps)||i("165"),e.tag=8,_=[];t:for((w=e.stateNode)&&(w.return=e);null!==w;){if(5===w.tag||6===w.tag||4===w.tag)i("247");else if(9===w.tag)_.push(w.type);else if(null!==w.child){w.child.return=w,w=w.child;continue}for(;null===w.sibling;){if(null===w.return||w.return===e)break t;w=w.return}w.sibling.return=w.return,w=w.sibling}return w=c.handler,c=w(c.props,_),e.child=kr(e,null!==t?t.child:null,c,n),e.child;case 8:return e.tag=7,null;case 9:case 10:return null;case 4:return p(e),y(e),null;case 0:i("167");default:i("156")}}}}function Oe(t,e){function n(t){var n=t.ref;if(null!==n)try{n(null)}catch(n){e(t,n)}}function r(t){switch("function"==typeof ge&&ge(t),t.tag){case 2:n(t);var i=t.stateNode;if("function"==typeof i.componentWillUnmount)try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(n){e(t,n)}break;case 5:n(t);break;case 7:a(t.stateNode);break;case 4:u&&s(t)}}function a(t){for(var e=t;;)if(r(e),null===e.child||u&&4===e.tag){if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}else e.child.return=e,e=e.child}function o(t){return 5===t.tag||3===t.tag||4===t.tag}function s(t){for(var e=t,n=!1,o=void 0,s=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&i("160"),n.tag){case 5:o=n.stateNode,s=!1;break t;case 3:case 4:o=n.stateNode.containerInfo,s=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag)a(e),s?b(o,e.stateNode):y(o,e.stateNode);else if(4===e.tag?o=e.stateNode.containerInfo:r(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return,4===e.tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}var l=t.getPublicInstance,u=t.mutation;t=t.persistence,u||i(t?"235":"236");var c=u.commitMount,h=u.commitUpdate,d=u.resetTextContent,f=u.commitTextUpdate,p=u.appendChild,m=u.appendChildToContainer,g=u.insertBefore,v=u.insertInContainerBefore,y=u.removeChild,b=u.removeChildFromContainer;return{commitResetTextContent:function(t){d(t.stateNode)},commitPlacement:function(t){t:{for(var e=t.return;null!==e;){if(o(e)){var n=e;break t}e=e.return}i("160"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:i("161")}16&n.effectTag&&(d(e),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var a=t;;){if(5===a.tag||6===a.tag)n?r?v(e,a.stateNode,n):g(e,a.stateNode,n):r?m(e,a.stateNode):p(e,a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},commitDeletion:function(t){s(t),t.return=null,t.child=null,t.alternate&&(t.alternate.child=null,t.alternate.return=null)},commitWork:function(t,e){switch(e.tag){case 2:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps;t=null!==t?t.memoizedProps:r;var a=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&h(n,o,a,t,r,e)}break;case 6:null===e.stateNode&&i("162"),n=e.memoizedProps,f(e.stateNode,null!==t?t.memoizedProps:n,n);break;case 3:break;default:i("163")}},commitLifeCycles:function(t,e){switch(e.tag){case 2:var n=e.stateNode;if(4&e.effectTag)if(null===t)n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidMount();else{var r=t.memoizedProps;t=t.memoizedState,n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidUpdate(r,t)}e=e.updateQueue,null!==e&&we(e,n);break;case 3:n=e.updateQueue,null!==n&&we(n,null!==e.child?e.child.stateNode:null);break;case 5:n=e.stateNode,null===t&&4&e.effectTag&&c(n,e.type,e.memoizedProps,e);break;case 6:case 4:break;default:i("163")}},commitAttachRef:function(t){var e=t.ref;if(null!==e){var n=t.stateNode;switch(t.tag){case 5:e(l(n));break;default:e(n)}}},commitDetachRef:function(t){null!==(t=t.ref)&&t(null)}}}function Ae(t){function e(t){return t===Cr&&i("174"),t}var n=t.getChildHostContext,r=t.getRootHostContext,a={current:Cr},o={current:Cr},s={current:Cr};return{getHostContext:function(){return e(a.current)},getRootHostContainer:function(){return e(s.current)},popHostContainer:function(t){Zt(a,t),Zt(o,t),Zt(s,t)},popHostContext:function(t){o.current===t&&(Zt(a,t),Zt(o,t))},pushHostContainer:function(t,e){Kt(s,e,t),e=r(e),Kt(o,t,t),Kt(a,e,t)},pushHostContext:function(t){var i=e(s.current),r=e(a.current);i=n(r,t.type,i),r!==i&&(Kt(o,t,t),Kt(a,i,t))},resetHostContainer:function(){a.current=Cr,s.current=Cr}}}function Re(t){function e(t,e){var n=new ae(5,null,0);n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function n(t,e){switch(t.tag){case 5:return null!==(e=o(e,t.type,t.pendingProps))&&(t.stateNode=e,!0);case 6:return null!==(e=s(e,t.pendingProps))&&(t.stateNode=e,!0);default:return!1}}function r(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;d=t}var a=t.shouldSetTextContent;if(!(t=t.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){i("175")},prepareToHydrateHostTextInstance:function(){i("176")},popHydrationState:function(){return!1}};var o=t.canHydrateInstance,s=t.canHydrateTextInstance,l=t.getNextHydratableSibling,u=t.getFirstHydratableChild,c=t.hydrateInstance,h=t.hydrateTextInstance,d=null,f=null,p=!1;return{enterHydrationState:function(t){return f=u(t.stateNode.containerInfo),d=t,p=!0},resetHydrationState:function(){f=d=null,p=!1},tryToClaimNextHydratableInstance:function(t){if(p){var i=f;if(i){if(!n(t,i)){if(!(i=l(i))||!n(t,i))return t.effectTag|=2,p=!1,void(d=t);e(d,f)}d=t,f=u(i)}else t.effectTag|=2,p=!1,d=t}},prepareToHydrateHostInstance:function(t,e,n){return e=c(t.stateNode,t.type,t.memoizedProps,e,n,t),t.updateQueue=e,null!==e},prepareToHydrateHostTextInstance:function(t){return h(t.stateNode,t.memoizedProps,t)},popHydrationState:function(t){if(t!==d)return!1;if(!p)return r(t),p=!0,!1;var n=t.type;if(5!==t.tag||"head"!==n&&"body"!==n&&!a(n,t.memoizedProps))for(n=f;n;)e(t,n),n=l(n);return r(t),f=d?l(t.stateNode):null,!0}}}function Le(t){function e(t){at=Z=!0;var e=t.stateNode;if(e.current===t&&i("177"),e.isReadyForCommit=!1,ji.current=null,1o.expirationTime)&&(a=o.expirationTime),o=o.sibling;r.expirationTime=a}if(null!==e)return e;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1t))if(J<=Y)for(;null!==K;)K=u(K)?a(K):r(K);else for(;null!==K&&!w();)K=u(K)?a(K):r(K)}else if(!(0===J||J>t))if(J<=Y)for(;null!==K;)K=r(K);else for(;null!==K&&!w();)K=r(K)}function s(t,e){if(Z&&i("243"),Z=!0,t.isReadyForCommit=!1,t!==Q||e!==J||null===K){for(;-1e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var n=t.stateNode;!Z&&n===Q&&ext&&i("185"),null===r.nextScheduledRoot)r.remainingExpirationTime=a,null===lt?(st=lt=r,r.nextScheduledRoot=r):(lt=lt.nextScheduledRoot=r,lt.nextScheduledRoot=st);else{var o=r.remainingExpirationTime;(0===o||aut)return;W(ct)}var e=U()-q;ut=t,ct=j(b,{timeout:10*(t-2)-e})}function y(){var t=0,e=null;if(null!==lt)for(var n=lt,r=st;null!==r;){var a=r.remainingExpirationTime;if(0===a){if((null===n||null===lt)&&i("244"),r===r.nextScheduledRoot){st=lt=r.nextScheduledRoot=null;break}if(r===st)st=a=r.nextScheduledRoot,lt.nextScheduledRoot=a,r.nextScheduledRoot=null;else{if(r===lt){lt=n,lt.nextScheduledRoot=st,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===t||aMt)&&(pt=!0)}function M(t){null===dt&&i("246"),dt.remainingExpirationTime=0,mt||(mt=!0,gt=t)}var S=Ae(t),E=Re(t),k=S.popHostContainer,T=S.popHostContext,C=S.resetHostContainer,P=Ce(t,S,E,f,d),O=P.beginWork,A=P.beginFailedWork,R=Pe(t,S,E).completeWork;S=Oe(t,l);var L=S.commitResetTextContent,I=S.commitPlacement,D=S.commitDeletion,N=S.commitWork,z=S.commitLifeCycles,B=S.commitAttachRef,F=S.commitDetachRef,U=t.now,j=t.scheduleDeferredCallback,W=t.cancelDeferredCallback,G=t.useSyncScheduling,V=t.prepareForCommit,H=t.resetAfterCommit,q=U(),Y=2,X=0,Z=!1,K=null,Q=null,J=0,$=null,tt=null,et=null,nt=null,it=null,rt=!1,at=!1,ot=!1,st=null,lt=null,ut=0,ct=-1,ht=!1,dt=null,ft=0,pt=!1,mt=!1,gt=null,vt=null,yt=!1,bt=!1,xt=1e3,wt=0,Mt=1;return{computeAsyncExpiration:h,computeExpirationForFiber:d,scheduleWork:f,batchedUpdates:function(t,e){var n=yt;yt=!0;try{return t(e)}finally{(yt=n)||ht||x(1,null)}},unbatchedUpdates:function(t){if(yt&&!bt){bt=!0;try{return t()}finally{bt=!1}}return t()},flushSync:function(t){var e=yt;yt=!0;try{t:{var n=X;X=1;try{var r=t();break t}finally{X=n}r=void 0}return r}finally{yt=e,ht&&i("187"),x(1,null)}},deferredUpdates:function(t){var e=X;X=h();try{return t()}finally{X=e}}}}function Ie(t){function e(t){return t=kt(t),null===t?null:t.stateNode}var n=t.getPublicInstance;t=Le(t);var r=t.computeAsyncExpiration,a=t.computeExpirationForFiber,o=t.scheduleWork;return{createContainer:function(t,e){var n=new ae(3,null,0);return t={current:n,containerInfo:t,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:e,nextScheduledRoot:null},n.stateNode=t},updateContainer:function(t,e,n,s){var l=e.current;if(n){n=n._reactInternalFiber;var u;t:{for(2===wt(n)&&2===n.tag||i("170"),u=n;3!==u.tag;){if($t(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}(u=u.return)||i("171")}u=u.stateNode.context}n=$t(n)?ne(n,u):u}else n=Cn;null===e.context?e.context=n:e.pendingContext=n,e=s,e=void 0===e?null:e,s=null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent?r():a(l),be(l,{expirationTime:s,partialState:{element:t},callback:e,isReplace:!1,isForced:!1,nextCallback:null,next:null}),o(l,s)},batchedUpdates:t.batchedUpdates,unbatchedUpdates:t.unbatchedUpdates,deferredUpdates:t.deferredUpdates,flushSync:t.flushSync,getPublicRootInstance:function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return n(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:e,findHostInstanceWithNoPortals:function(t){return t=Tt(t),null===t?null:t.stateNode},injectIntoDevTools:function(t){var n=t.findFiberByHostInstance;return pe(_n({},t,{findHostInstanceByFiber:function(t){return e(t)},findFiberByHostInstance:function(t){return n?n(t):null}}))}}}function De(t,e,n){var i=3n||i.hasOverloadedBooleanValue&&!1===n?Fe(t,e):i.mustUseProperty?t[i.propertyName]=n:(e=i.attributeName,(r=i.attributeNamespace)?t.setAttributeNS(r,e,""+n):i.hasBooleanValue||i.hasOverloadedBooleanValue&&!0===n?t.setAttribute(e,""):t.setAttribute(e,""+n))}else Be(t,e,a(e,n)?n:null)}function Be(t,e,n){Ne(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,""+n))}function Fe(t,e){var n=o(e);n?(e=n.mutationMethod)?e(t,void 0):n.mustUseProperty?t[n.propertyName]=!n.hasBooleanValue&&"":t.removeAttribute(n.attributeName):t.removeAttribute(e)}function Ue(t,e){var n=e.value,i=e.checked;return _n({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:t._wrapperState.initialValue,checked:null!=i?i:t._wrapperState.initialChecked})}function je(t,e){var n=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function We(t,e){null!=(e=e.checked)&&ze(t,"checked",e)}function Ge(t,e){We(t,e);var n=e.value;null!=n?0===n&&""===t.value?t.value="0":"number"===e.type?(e=parseFloat(t.value)||0,(n!=e||n==e&&t.value!=n)&&(t.value=""+n)):t.value!==""+n&&(t.value=""+n):(null==e.value&&null!=e.defaultValue&&t.defaultValue!==""+e.defaultValue&&(t.defaultValue=""+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked))}function Ve(t,e){switch(e.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":t.value="",t.value=t.defaultValue;break;default:t.value=t.value}e=t.name,""!==e&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function He(t){var e="";return bn.Children.forEach(t,function(t){null==t||"string"!=typeof t&&"number"!=typeof t||(e+=t)}),e}function qe(t,e){return t=_n({children:void 0},e),(e=He(e.children))&&(t.children=e),t}function Ye(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r=e.length||i("93"),e=e[0]),n=""+e),null==n&&(n="")),t._wrapperState={initialValue:""+n}}function Qe(t,e){var n=e.value;null!=n&&(n=""+n,n!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function Je(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function $e(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tn(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?$e(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}function en(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function nn(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=n,a=e[n];r=null==a||"boolean"==typeof a||""===a?"":i||"number"!=typeof a||0===a||Jr.hasOwnProperty(r)&&Jr[r]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}function rn(t,e,n){e&&(ta[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&i("137",t,n()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&i("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||i("61")),null!=e.style&&"object"!=typeof e.style&&i("62",n()))}function an(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function on(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var n=Dt(t);e=Kn[e];for(var i=0;i<\/script>",t=t.removeChild(t.firstChild)):t="string"==typeof e.is?n.createElement(t,{is:e.is}):n.createElement(t):t=n.createElementNS(i,t),t}function ln(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function un(t,e,n,i){var r=an(e,n);switch(e){case"iframe":case"object":Ot("topLoad","load",t);var a=n;break;case"video":case"audio":for(a in ia)ia.hasOwnProperty(a)&&Ot(a,ia[a],t);a=n;break;case"source":Ot("topError","error",t),a=n;break;case"img":case"image":Ot("topError","error",t),Ot("topLoad","load",t),a=n;break;case"form":Ot("topReset","reset",t),Ot("topSubmit","submit",t),a=n;break;case"details":Ot("topToggle","toggle",t),a=n;break;case"input":je(t,n),a=Ue(t,n),Ot("topInvalid","invalid",t),on(i,"onChange");break;case"option":a=qe(t,n);break;case"select":Xe(t,n),a=_n({},n,{value:void 0}),Ot("topInvalid","invalid",t),on(i,"onChange");break;case"textarea":Ke(t,n),a=Ze(t,n),Ot("topInvalid","invalid",t),on(i,"onChange");break;default:a=n}rn(e,a,na);var o,s=a;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?nn(t,l,na):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&Qr(t,l):"children"===o?"string"==typeof l?("textarea"!==e||""!==l)&&en(t,l):"number"==typeof l&&en(t,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(Zn.hasOwnProperty(o)?null!=l&&on(i,o):r?Be(t,o,l):null!=l&&ze(t,o,l))}switch(e){case"input":at(t),Ve(t,n);break;case"textarea":at(t),Je(t,n);break;case"option":null!=n.value&&t.setAttribute("value",n.value);break;case"select":t.multiple=!!n.multiple,e=n.value,null!=e?Ye(t,!!n.multiple,e,!1):null!=n.defaultValue&&Ye(t,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(t.onclick=wn)}}function cn(t,e,n,i,r){var a=null;switch(e){case"input":n=Ue(t,n),i=Ue(t,i),a=[];break;case"option":n=qe(t,n),i=qe(t,i),a=[];break;case"select":n=_n({},n,{value:void 0}),i=_n({},i,{value:void 0}),a=[];break;case"textarea":n=Ze(t,n),i=Ze(t,i),a=[];break;default:"function"!=typeof n.onClick&&"function"==typeof i.onClick&&(t.onclick=wn)}rn(e,i,na);var o,s;t=null;for(o in n)if(!i.hasOwnProperty(o)&&n.hasOwnProperty(o)&&null!=n[o])if("style"===o)for(s in e=n[o])e.hasOwnProperty(s)&&(t||(t={}),t[s]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(Zn.hasOwnProperty(o)?a||(a=[]):(a=a||[]).push(o,null));for(o in i){var l=i[o];if(e=null!=n?n[o]:void 0,i.hasOwnProperty(o)&&l!==e&&(null!=l||null!=e))if("style"===o)if(e){for(s in e)!e.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(t||(t={}),t[s]="");for(s in l)l.hasOwnProperty(s)&&e[s]!==l[s]&&(t||(t={}),t[s]=l[s])}else t||(a||(a=[]),a.push(o,t)),t=l;else"dangerouslySetInnerHTML"===o?(l=l?l.__html:void 0,e=e?e.__html:void 0,null!=l&&e!==l&&(a=a||[]).push(o,""+l)):"children"===o?e===l||"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(o,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(Zn.hasOwnProperty(o)?(null!=l&&on(r,o),a||e===l||(a=[])):(a=a||[]).push(o,l))}return t&&(a=a||[]).push("style",t),a}function hn(t,e,n,i,r){"input"===n&&"radio"===r.type&&null!=r.name&&We(t,r),an(n,i),i=an(n,r);for(var a=0;a=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue||i("50",s),o.hasOwnProperty(s)&&(l.attributeName=o[s]),a.hasOwnProperty(s)&&(l.attributeNamespace=a[s]),t.hasOwnProperty(s)&&(l.mutationMethod=t[s]),An[s]=l}}},An={},Rn=On,Ln=Rn.MUST_USE_PROPERTY,In=Rn.HAS_BOOLEAN_VALUE,Dn=Rn.HAS_NUMERIC_VALUE,Nn=Rn.HAS_POSITIVE_NUMERIC_VALUE,zn=Rn.HAS_OVERLOADED_BOOLEAN_VALUE,Bn=Rn.HAS_STRING_BOOLEAN_VALUE,Fn={Properties:{allowFullScreen:In,async:In,autoFocus:In,autoPlay:In,capture:zn,checked:Ln|In,cols:Nn,contentEditable:Bn,controls:In,default:In,defer:In,disabled:In,download:zn,draggable:Bn,formNoValidate:In,hidden:In,loop:In,multiple:Ln|In,muted:Ln|In,noValidate:In,open:In,playsInline:In,readOnly:In,required:In,reversed:In,rows:Nn,rowSpan:Dn,scoped:In,seamless:In,selected:Ln|In,size:Nn,start:Dn,span:Nn,spellCheck:Bn,style:0,tabIndex:0,itemScope:In,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Bn},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute("value");"number"!==t.type||!1===t.hasAttribute("value")?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e)}}},Un=Rn.HAS_STRING_BOOLEAN_VALUE,jn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Wn={Properties:{autoReverse:Un,externalResourcesRequired:Un,preserveAlpha:Un},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:jn.xlink,xlinkArcrole:jn.xlink,xlinkHref:jn.xlink,xlinkRole:jn.xlink,xlinkShow:jn.xlink,xlinkTitle:jn.xlink,xlinkType:jn.xlink,xmlBase:jn.xml,xmlLang:jn.xml,xmlSpace:jn.xml}},Gn=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(t){var e=t.replace(Gn,s);Wn.Properties[e]=0,Wn.DOMAttributeNames[e]=t}),Rn.injectDOMPropertyConfig(Fn),Rn.injectDOMPropertyConfig(Wn);var Vn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(t){"function"!=typeof t.invokeGuardedCallback&&i("197"),l=t.invokeGuardedCallback}},invokeGuardedCallback:function(t,e,n,i,r,a,o,s,u){l.apply(Vn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,n,i,r,a,o,s,l){if(Vn.invokeGuardedCallback.apply(this,arguments),Vn.hasCaughtError()){var u=Vn.clearCaughtError();Vn._hasRethrowError||(Vn._hasRethrowError=!0,Vn._rethrowError=u)}},rethrowCaughtError:function(){return u.apply(Vn,arguments)},hasCaughtError:function(){return Vn._hasCaughtError},clearCaughtError:function(){if(Vn._hasCaughtError){var t=Vn._caughtError;return Vn._caughtError=null,Vn._hasCaughtError=!1,t}i("198")}},Hn=null,Yn={},qn=[],Xn={},Zn={},Kn={},Qn=Object.freeze({plugins:qn,eventNameDispatchConfigs:Xn,registrationNameModules:Zn,registrationNameDependencies:Kn,possibleRegistrationNames:null,injectEventPluginOrder:d,injectEventPluginsByName:f}),Jn=null,$n=null,ti=null,ei=null,ni={injectEventPluginOrder:d,injectEventPluginsByName:f},ii=Object.freeze({injection:ni,getListener:x,extractEvents:_,enqueueEvents:w,processEventQueue:M}),ri=Math.random().toString(36).slice(2),ai="__reactInternalInstance$"+ri,oi="__reactEventHandlers$"+ri,si=Object.freeze({precacheFiberNode:function(t,e){e[ai]=t},getClosestInstanceFromNode:S,getInstanceFromNode:function(t){return t=t[ai],!t||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:E,getFiberCurrentPropsFromNode:k,updateFiberProps:function(t,e){t[oi]=e}}),li=Object.freeze({accumulateTwoPhaseDispatches:I,accumulateTwoPhaseDispatchesSkipTarget:function(t){g(t,A)},accumulateEnterLeaveDispatches:D,accumulateDirectDispatches:function(t){g(t,L)}}),ui=null,ci={_root:null,_startText:null,_fallbackText:null},hi="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),di={type:null,target:null,currentTarget:wn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};_n(F.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=wn.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=wn.thatReturnsTrue)},persist:function(){this.isPersistent=wn.thatReturnsTrue},isPersistent:wn.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e=parseInt(vi.version(),10))}var yi,bi=gi,xi=xn.canUseDOM&&(!pi||mi&&8=mi),_i=String.fromCharCode(32),wi={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Mi=!1,Si=!1,Ei={eventTypes:wi,extractEvents:function(t,e,n,i){var r;if(pi)t:{switch(t){case"topCompositionStart":var a=wi.compositionStart;break t;case"topCompositionEnd":a=wi.compositionEnd;break t;case"topCompositionUpdate":a=wi.compositionUpdate;break t}a=void 0}else Si?H(t,n)&&(a=wi.compositionEnd):"topKeyDown"===t&&229===n.keyCode&&(a=wi.compositionStart);return a?(xi&&(Si||a!==wi.compositionStart?a===wi.compositionEnd&&Si&&(r=z()):(ci._root=i,ci._startText=B(),Si=!0)),a=G.getPooled(a,e,n,i),r?a.data=r:null!==(r=Y(n))&&(a.data=r),I(a),r=a):r=null,(t=bi?q(t,n):X(t,n))?(e=V.getPooled(wi.beforeInput,e,n,i),e.data=t,I(e)):e=null,[r,e]}},ki=null,Ti=null,Ci=null,Pi={injectFiberControlledHostComponent:function(t){ki=t}},Oi=Object.freeze({injection:Pi,enqueueStateRestore:K,restoreStateIfNeeded:Q}),Ai=!1,Ri={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};xn.canUseDOM&&(yi=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Li={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Ii=null,Di=null,Ni=!1;xn.canUseDOM&&(Ni=nt("input")&&(!document.documentMode||9=document.documentMode,tr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},er=null,nr=null,ir=null,rr=!1,ar={eventTypes:tr,extractEvents:function(t,e,n,i){var r,a=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(r=!a)){t:{a=Dt(a),r=Kn.onSelect;for(var o=0;o=jr-t){if(!(-1!==Fr&&Fr<=t))return void(Ur||(Ur=!0,requestAnimationFrame(Hr)));Nr.didTimeout=!0}else Nr.didTimeout=!1;Fr=-1,t=zr,zr=null,null!==t&&t(Nr)}},!1);var Hr=function(t){Ur=!1;var e=t-jr+Gr;ee&&(e=8),Gr=e"+e+"",e=Kr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),Jr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$r=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(t){$r.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Jr[e]=Jr[t]})});var ta=_n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ea=Zr.html,na=wn.thatReturns(""),ia={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ra=Object.freeze({createElement:sn,createTextNode:ln,setInitialProperties:un,diffProperties:cn,updateProperties:hn,diffHydratedProperties:dn,diffHydratedText:fn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,n){switch(e){case"input":if(Ge(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;ei&&(r=i,i=t,t=r),r=zt(n,t);var a=zt(n,i);if(r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)){var o=document.createRange();o.setStart(r.node,r.offset),e.removeAllRanges(),t>i?(e.addRange(o),e.extend(a.node,a.offset)):(o.setEnd(a.node,a.offset),e.addRange(o))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(Tn(n),n=0;no?o:r+s,l&&l(u,t);break;case 37:case 40:u=r-s0){S=S.sort(function(t,e){return s?t-e:e-t});var E=!0,k=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(E=(C=P.next()).done);E=!0){var O=C.value,A=this.getPositionFromValue(O),R=this.coordinates(A),L=r({},g,R.label+"px");M.push(d.default.createElement("li",{key:O,className:(0,c.default)("rangeslider__label-item"),"data-value":O,onMouseDown:this.handleDrag,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,style:L},this.props.labels[O]))}}catch(t){k=!0,T=t}finally{try{!E&&P.return&&P.return()}finally{if(k)throw T}}}return d.default.createElement("div",{ref:function(e){t.slider=e},className:(0,c.default)("rangeslider","rangeslider-"+i,{"rangeslider-reverse":s},a),onMouseDown:this.handleDrag,onMouseUp:this.handleEnd,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,"aria-valuemin":u,"aria-valuemax":h,"aria-valuenow":n,"aria-orientation":i},d.default.createElement("div",{className:"rangeslider__fill",style:x}),d.default.createElement("div",{ref:function(e){t.handle=e},className:"rangeslider__handle",onMouseDown:this.handleStart,onTouchMove:this.handleDrag,onTouchEnd:this.handleEnd,onKeyDown:this.handleKeyDown,style:_,tabIndex:0},w?d.default.createElement("div",{ref:function(e){t.tooltip=e},className:"rangeslider__handle-tooltip"},d.default.createElement("span",null,this.handleFormat(n))):null,d.default.createElement("div",{className:"rangeslider__handle-label"},f)),l?this.renderLabels(M):null)}}]),e}(h.Component);b.propTypes={min:p.default.number,max:p.default.number,step:p.default.number,value:p.default.number,orientation:p.default.string,tooltip:p.default.bool,reverse:p.default.bool,labels:p.default.object,handleLabel:p.default.string,format:p.default.func,onChangeStart:p.default.func,onChange:p.default.func,onChangeComplete:p.default.func},b.defaultProps={min:0,max:100,step:1,value:0,orientation:"horizontal",tooltip:!0,reverse:!1,labels:{},handleLabel:""},e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(462),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default},function(t,e,n){"use strict";function i(t){return t.charAt(0).toUpperCase()+t.substr(1)}function r(t,e,n){return Math.min(Math.max(t,e),n)}Object.defineProperty(e,"__esModule",{value:!0}),e.capitalize=i,e.clamp=r},function(t,e,n){var i=n(468);t.exports=i},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;eparseInt(window.getComputedStyle(v).order)&&(M=-M);var S=i;if(void 0!==i&&i<=0){var E=this.splitPane;S="vertical"===o?E.getBoundingClientRect().width+i:E.getBoundingClientRect().height+i}var k=_-M,T=h-w;kS?k=S:this.setState({position:T,resized:!0}),a&&a(k),this.setState({draggedSize:k}),f.setState({size:k})}}}}},{key:"onMouseUp",value:function(){var t=this.props,e=t.allowResize,n=t.onDragFinished,i=this.state,r=i.active,a=i.draggedSize;e&&r&&("function"==typeof n&&n(a),this.setState({active:!1}))}},{key:"setSize",value:function(t,e){var n="first"===t.primary,i=n?this.pane1:this.pane2,r=n?this.pane2:this.pane1,a=void 0;i&&(a=t.size||e&&e.draggedSize||t.defaultSize||t.minSize,i.setState({size:a}),t.size!==e.draggedSize&&this.setState({draggedSize:a})),r&&t.primary!==this.props.primary&&r.setState({size:void 0})}},{key:"render",value:function(){var t=this,e=this.props,n=e.allowResize,i=e.children,r=e.className,a=e.defaultSize,o=e.minSize,s=e.onResizerClick,u=e.onResizerDoubleClick,c=e.paneClassName,d=e.pane1ClassName,f=e.pane2ClassName,p=e.paneStyle,m=e.pane1Style,g=e.pane2Style,v=e.primary,y=e.prefixer,b=e.resizerClassName,x=e.resizerStyle,S=e.size,E=e.split,k=e.style,T=n?"":"disabled",C=b?b+" "+w.RESIZER_DEFAULT_CLASSNAME:b,P=l({},{display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},k||{});"vertical"===E?l(P,{flexDirection:"row",left:0,right:0}):l(P,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var O=["SplitPane",r,E,T],A=y.prefix(l({},p||{},m||{})),R=y.prefix(l({},p||{},g||{})),L=["Pane1",c,d].join(" "),I=["Pane2",c,f].join(" ");return h.default.createElement("div",{className:O.join(" "),ref:function(e){t.splitPane=e},style:y.prefix(P)},h.default.createElement(_.default,{className:L,key:"pane1",ref:function(e){t.pane1=e},size:"first"===v?S||a||o:void 0,split:E,style:A},i[0]),h.default.createElement(M.default,{className:T,onClick:s,onDoubleClick:u,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",ref:function(e){t.resizer=e},resizerClassName:C,split:E,style:x||{}}),h.default.createElement(_.default,{className:I,key:"pane2",ref:function(e){t.pane2=e},size:"second"===v?S||a||o:void 0,split:E,style:R},i[1]))}}]),e}(h.default.Component);E.propTypes={allowResize:f.default.bool,children:f.default.arrayOf(f.default.node).isRequired,className:f.default.string,primary:f.default.oneOf(["first","second"]),minSize:f.default.oneOfType([f.default.string,f.default.number]),maxSize:f.default.oneOfType([f.default.string,f.default.number]),defaultSize:f.default.oneOfType([f.default.string,f.default.number]),size:f.default.oneOfType([f.default.string,f.default.number]),split:f.default.oneOf(["vertical","horizontal"]),onDragStarted:f.default.func,onDragFinished:f.default.func,onChange:f.default.func,onResizerClick:f.default.func,onResizerDoubleClick:f.default.func,prefixer:f.default.instanceOf(v.default).isRequired,style:b.default,resizerStyle:b.default,paneClassName:f.default.string,pane1ClassName:f.default.string,pane2ClassName:f.default.string,paneStyle:b.default,pane1Style:b.default,pane2Style:b.default,resizerClassName:f.default.string,step:f.default.number},E.defaultProps={allowResize:!0,minSize:50,prefixer:new v.default({userAgent:S}),primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},e.default=E,t.exports=e.default},function(t,e){t.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var n=e.prototype;return n.componentDidMount=function(){this.checkFocus()},n.componentDidUpdate=function(){this.checkFocus()},n.checkFocus=function(){this.props.selected&&this.props.focus&&this.node.focus()},n.render=function(){var t,e=this,n=this.props,a=n.children,o=n.className,s=n.disabled,u=n.disabledClassName,h=(n.focus,n.id),d=n.panelId,f=n.selected,p=n.selectedClassName,m=n.tabIndex,g=n.tabRef,v=r(n,["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"]);return l.a.createElement("li",i({},v,{className:c()(o,(t={},t[p]=f,t[u]=s,t)),ref:function(t){e.node=t,g&&g(t)},role:"tab",id:h,"aria-selected":f?"true":"false","aria-disabled":s?"true":"false","aria-controls":d,tabIndex:m||(f?"0":null)}),a)},e}(s.Component);h.defaultProps={className:"react-tabs__tab",disabledClassName:"react-tabs__tab--disabled",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:"react-tabs__tab--selected"},h.propTypes={},h.tabsRole="Tab"},function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.className,a=r(t,["children","className"]);return l.a.createElement("ul",i({},a,{className:c()(n),role:"tablist"}),e)},e}(s.Component);h.defaultProps={className:"react-tabs__tab-list"},h.propTypes={},h.tabsRole="TabList"},function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t,e=this.props,n=e.children,a=e.className,o=e.forceRender,s=e.id,u=e.selected,h=e.selectedClassName,d=e.tabId,f=r(e,["children","className","forceRender","id","selected","selectedClassName","tabId"]);return l.a.createElement("div",i({},f,{className:c()(a,(t={},t[h]=u,t)),role:"tabpanel",id:s,"aria-labelledby":d}),o||u?n:null)},e}(s.Component);h.defaultProps={className:"react-tabs__tab-panel",forceRender:!1,selectedClassName:"react-tabs__tab-panel--selected"},h.propTypes={},h.tabsRole="TabPanel"},function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return c});var a=n(24),o=(n.n(a),n(2)),s=n.n(o),l=(n(156),n(474)),u=n(155),c=function(t){function e(n){var i;return i=t.call(this,n)||this,i.handleSelected=function(t,n,r){if("function"!=typeof i.props.onSelect||!1!==i.props.onSelect(t,n,r)){var a={focus:"keydown"===r.type};e.inUncontrolledMode(i.props)&&(a.selectedIndex=t),i.setState(a)}},i.state=e.copyPropsToState(i.props,{},i.props.defaultFocus),i}r(e,t);var a=e.prototype;return a.componentWillReceiveProps=function(t){this.setState(function(n){return e.copyPropsToState(t,n)})},e.inUncontrolledMode=function(t){return null===t.selectedIndex},e.copyPropsToState=function(t,i,r){void 0===r&&(r=!1);var a={focus:r};if(e.inUncontrolledMode(t)){var o=n.i(u.a)(t.children)-1,s=null;s=null!=i.selectedIndex?Math.min(i.selectedIndex,o):t.defaultIndex||0,a.selectedIndex=s}return a},a.render=function(){var t=this.props,e=t.children,n=(t.defaultIndex,t.defaultFocus,i(t,["children","defaultIndex","defaultFocus"]));return n.focus=this.state.focus,n.onSelect=this.handleSelected,null!=this.state.selectedIndex&&(n.selectedIndex=this.state.selectedIndex),s.a.createElement(l.a,n,e)},e}(o.Component);c.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},c.propTypes={},c.tabsRole="Tabs"},function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(t){return"getAttribute"in t&&"tab"===t.getAttribute("role")}function s(t){return"true"===t.getAttribute("aria-disabled")}n.d(e,"a",function(){return y});var l,u=n(24),c=(n.n(u),n(2)),h=n.n(c),d=n(13),f=n.n(d),p=n(157),m=(n(156),n(155)),g=n(109),v=n(76);try{l=!("undefined"==typeof window||!window.document||!window.document.activeElement)}catch(t){l=!1}var y=function(t){function e(){for(var e,n,i=arguments.length,r=new Array(i),a=0;a=this.getTabsCount()||this.props.onSelect(t,this.props.selectedIndex,e)},u.getNextTab=function(t){for(var e=this.getTabsCount(),n=t+1;nt;)if(!s(this.getTab(e)))return e;return t},u.getTabsCount=function(){return n.i(m.a)(this.props.children)},u.getPanelsCount=function(){return n.i(m.b)(this.props.children)},u.getTab=function(t){return this.tabNodes["tabs-"+t]},u.getChildren=function(){var t=this,e=0,i=this.props,r=i.children,a=i.disabledTabClassName,o=i.focus,s=i.forceRenderTabPanel,u=i.selectedIndex,d=i.selectedTabClassName,f=i.selectedTabPanelClassName;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var m=this.tabIds.length-this.getTabsCount();m++<0;)this.tabIds.push(n.i(p.b)()),this.panelIds.push(n.i(p.b)());return n.i(g.a)(r,function(i){var r=i;if(n.i(v.a)(i)){var p=0,m=!1;l&&(m=h.a.Children.toArray(i.props.children).filter(v.b).some(function(e,n){return document.activeElement===t.getTab(n)})),r=n.i(c.cloneElement)(i,{children:n.i(g.a)(i.props.children,function(e){var i="tabs-"+p,r=u===p,s={tabRef:function(e){t.tabNodes[i]=e},id:t.tabIds[p],panelId:t.panelIds[p],selected:r,focus:r&&(o||m)};return d&&(s.selectedClassName=d),a&&(s.disabledClassName=a),p++,n.i(c.cloneElement)(e,s)})})}else if(n.i(v.c)(i)){var y={id:t.panelIds[e],tabId:t.tabIds[e],selected:u===e};s&&(y.forceRender=s),f&&(y.selectedClassName=f),e++,r=n.i(c.cloneElement)(i,y)}return r})},u.isTabFromContainer=function(t){if(!o(t))return!1;var e=t.parentElement;do{if(e===this.node)return!0;if(e.getAttribute("data-tabs"))break;e=e.parentElement}while(e);return!1},u.render=function(){var t=this,e=this.props,n=(e.children,e.className),a=(e.disabledTabClassName,e.domRef),o=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,r(e,["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName"]));return h.a.createElement("div",i({},o,{className:f()(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(e){t.node=e,a&&a(e)},"data-tabs":!0}),this.getChildren())},e}(c.Component);y.defaultProps={className:"react-tabs",focus:!1},y.propTypes={}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(473),r=n(471),a=n(470),o=n(472),s=n(157);n.d(e,"Tab",function(){return a.a}),n.d(e,"TabList",function(){return r.a}),n.d(e,"TabPanel",function(){return o.a}),n.d(e,"Tabs",function(){return i.a}),n.d(e,"resetIdCounter",function(){return s.a})},function(t,e,n){"use strict";function i(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,i=0;iD.length&&D.push(t)}function f(t,e,n,r){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var o=!1;if(null===t)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case w:case M:case S:case E:o=!0}}if(o)return n(r,t,""===e?"."+p(t,0):e),1;if(o=0,e=""===e?".":e+":",Array.isArray(t))for(var s=0;s=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue||i("50",s),o.hasOwnProperty(s)&&(l.attributeName=o[s]),a.hasOwnProperty(s)&&(l.attributeNamespace=a[s]),t.hasOwnProperty(s)&&(l.mutationMethod=t[s]),An[s]=l}}},An={},Rn=On,Ln=Rn.MUST_USE_PROPERTY,In=Rn.HAS_BOOLEAN_VALUE,Dn=Rn.HAS_NUMERIC_VALUE,Nn=Rn.HAS_POSITIVE_NUMERIC_VALUE,zn=Rn.HAS_OVERLOADED_BOOLEAN_VALUE,Bn=Rn.HAS_STRING_BOOLEAN_VALUE,Fn={Properties:{allowFullScreen:In,async:In,autoFocus:In,autoPlay:In,capture:zn,checked:Ln|In,cols:Nn,contentEditable:Bn,controls:In,default:In,defer:In,disabled:In,download:zn,draggable:Bn,formNoValidate:In,hidden:In,loop:In,multiple:Ln|In,muted:Ln|In,noValidate:In,open:In,playsInline:In,readOnly:In,required:In,reversed:In,rows:Nn,rowSpan:Dn,scoped:In,seamless:In,selected:Ln|In,size:Nn,start:Dn,span:Nn,spellCheck:Bn,style:0,tabIndex:0,itemScope:In,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Bn},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute("value");"number"!==t.type||!1===t.hasAttribute("value")?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e)}}},Un=Rn.HAS_STRING_BOOLEAN_VALUE,jn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Wn={Properties:{autoReverse:Un,externalResourcesRequired:Un,preserveAlpha:Un},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:jn.xlink,xlinkArcrole:jn.xlink,xlinkHref:jn.xlink,xlinkRole:jn.xlink,xlinkShow:jn.xlink,xlinkTitle:jn.xlink,xlinkType:jn.xlink,xmlBase:jn.xml,xmlLang:jn.xml,xmlSpace:jn.xml}},Gn=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(t){var e=t.replace(Gn,s);Wn.Properties[e]=0,Wn.DOMAttributeNames[e]=t}),Rn.injectDOMPropertyConfig(Fn),Rn.injectDOMPropertyConfig(Wn);var Vn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(t){"function"!=typeof t.invokeGuardedCallback&&i("197"),l=t.invokeGuardedCallback}},invokeGuardedCallback:function(t,e,n,i,r,a,o,s,u){l.apply(Vn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,n,i,r,a,o,s,l){if(Vn.invokeGuardedCallback.apply(this,arguments),Vn.hasCaughtError()){var u=Vn.clearCaughtError();Vn._hasRethrowError||(Vn._hasRethrowError=!0,Vn._rethrowError=u)}},rethrowCaughtError:function(){return u.apply(Vn,arguments)},hasCaughtError:function(){return Vn._hasCaughtError},clearCaughtError:function(){if(Vn._hasCaughtError){var t=Vn._caughtError;return Vn._caughtError=null,Vn._hasCaughtError=!1,t}i("198")}},Hn=null,qn={},Yn=[],Xn={},Zn={},Kn={},Qn=Object.freeze({plugins:Yn,eventNameDispatchConfigs:Xn,registrationNameModules:Zn,registrationNameDependencies:Kn,possibleRegistrationNames:null,injectEventPluginOrder:d,injectEventPluginsByName:f}),Jn=null,$n=null,ti=null,ei=null,ni={injectEventPluginOrder:d,injectEventPluginsByName:f},ii=Object.freeze({injection:ni,getListener:x,extractEvents:_,enqueueEvents:w,processEventQueue:M}),ri=Math.random().toString(36).slice(2),ai="__reactInternalInstance$"+ri,oi="__reactEventHandlers$"+ri,si=Object.freeze({precacheFiberNode:function(t,e){e[ai]=t},getClosestInstanceFromNode:S,getInstanceFromNode:function(t){return t=t[ai],!t||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:E,getFiberCurrentPropsFromNode:k,updateFiberProps:function(t,e){t[oi]=e}}),li=Object.freeze({accumulateTwoPhaseDispatches:I,accumulateTwoPhaseDispatchesSkipTarget:function(t){g(t,A)},accumulateEnterLeaveDispatches:D,accumulateDirectDispatches:function(t){g(t,L)}}),ui=null,ci={_root:null,_startText:null,_fallbackText:null},hi="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),di={type:null,target:null,currentTarget:wn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};_n(F.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=wn.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=wn.thatReturnsTrue)},persist:function(){this.isPersistent=wn.thatReturnsTrue},isPersistent:wn.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e=parseInt(vi.version(),10))}var yi,bi=gi,xi=xn.canUseDOM&&(!pi||mi&&8=mi),_i=String.fromCharCode(32),wi={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Mi=!1,Si=!1,Ei={eventTypes:wi,extractEvents:function(t,e,n,i){var r;if(pi)t:{switch(t){case"topCompositionStart":var a=wi.compositionStart;break t;case"topCompositionEnd":a=wi.compositionEnd;break t;case"topCompositionUpdate":a=wi.compositionUpdate;break t}a=void 0}else Si?H(t,n)&&(a=wi.compositionEnd):"topKeyDown"===t&&229===n.keyCode&&(a=wi.compositionStart);return a?(xi&&(Si||a!==wi.compositionStart?a===wi.compositionEnd&&Si&&(r=z()):(ci._root=i,ci._startText=B(),Si=!0)),a=G.getPooled(a,e,n,i),r?a.data=r:null!==(r=q(n))&&(a.data=r),I(a),r=a):r=null,(t=bi?Y(t,n):X(t,n))?(e=V.getPooled(wi.beforeInput,e,n,i),e.data=t,I(e)):e=null,[r,e]}},ki=null,Ti=null,Ci=null,Pi={injectFiberControlledHostComponent:function(t){ki=t}},Oi=Object.freeze({injection:Pi,enqueueStateRestore:K,restoreStateIfNeeded:Q}),Ai=!1,Ri={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};xn.canUseDOM&&(yi=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Li={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Ii=null,Di=null,Ni=!1;xn.canUseDOM&&(Ni=nt("input")&&(!document.documentMode||9=document.documentMode,tr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},er=null,nr=null,ir=null,rr=!1,ar={eventTypes:tr,extractEvents:function(t,e,n,i){var r,a=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(r=!a)){t:{a=Dt(a),r=Kn.onSelect;for(var o=0;o=jr-t){if(!(-1!==Fr&&Fr<=t))return void(Ur||(Ur=!0,requestAnimationFrame(Hr)));Nr.didTimeout=!0}else Nr.didTimeout=!1;Fr=-1,t=zr,zr=null,null!==t&&t(Nr)}},!1);var Hr=function(t){Ur=!1;var e=t-jr+Gr;ee&&(e=8),Gr=e"+e+"",e=Kr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),Jr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$r=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(t){$r.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Jr[e]=Jr[t]})});var ta=_n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ea=Zr.html,na=wn.thatReturns(""),ia={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ra=Object.freeze({createElement:sn,createTextNode:ln,setInitialProperties:un,diffProperties:cn,updateProperties:hn,diffHydratedProperties:dn,diffHydratedText:fn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,n){switch(e){case"input":if(Ge(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;ei&&(r=i,i=t,t=r),r=zt(n,t);var a=zt(n,i);if(r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)){var o=document.createRange();o.setStart(r.node,r.offset),e.removeAllRanges(),t>i?(e.addRange(o),e.extend(a.node,a.offset)):(o.setEnd(a.node,a.offset),e.addRange(o))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(Tn(n),n=0;no?o:r+s,l&&l(u,t);break;case 37:case 40:u=r-s0){S=S.sort(function(t,e){return s?t-e:e-t});var E=!0,k=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(E=(C=P.next()).done);E=!0){var O=C.value,A=this.getPositionFromValue(O),R=this.coordinates(A),L=r({},g,R.label+"px");M.push(d.default.createElement("li",{key:O,className:(0,c.default)("rangeslider__label-item"),"data-value":O,onMouseDown:this.handleDrag,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,style:L},this.props.labels[O]))}}catch(t){k=!0,T=t}finally{try{!E&&P.return&&P.return()}finally{if(k)throw T}}}return d.default.createElement("div",{ref:function(e){t.slider=e},className:(0,c.default)("rangeslider","rangeslider-"+i,{"rangeslider-reverse":s},a),onMouseDown:this.handleDrag,onMouseUp:this.handleEnd,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,"aria-valuemin":u,"aria-valuemax":h,"aria-valuenow":n,"aria-orientation":i},d.default.createElement("div",{className:"rangeslider__fill",style:x}),d.default.createElement("div",{ref:function(e){t.handle=e},className:"rangeslider__handle",onMouseDown:this.handleStart,onTouchMove:this.handleDrag,onTouchEnd:this.handleEnd,onKeyDown:this.handleKeyDown,style:_,tabIndex:0},w?d.default.createElement("div",{ref:function(e){t.tooltip=e},className:"rangeslider__handle-tooltip"},d.default.createElement("span",null,this.handleFormat(n))):null,d.default.createElement("div",{className:"rangeslider__handle-label"},f)),l?this.renderLabels(M):null)}}]),e}(h.Component);b.propTypes={min:p.default.number,max:p.default.number,step:p.default.number,value:p.default.number,orientation:p.default.string,tooltip:p.default.bool,reverse:p.default.bool,labels:p.default.object,handleLabel:p.default.string,format:p.default.func,onChangeStart:p.default.func,onChange:p.default.func,onChangeComplete:p.default.func},b.defaultProps={min:0,max:100,step:1,value:0,orientation:"horizontal",tooltip:!0,reverse:!1,labels:{},handleLabel:""},e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(462),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default},function(t,e,n){"use strict";function i(t){return t.charAt(0).toUpperCase()+t.substr(1)}function r(t,e,n){return Math.min(Math.max(t,e),n)}Object.defineProperty(e,"__esModule",{value:!0}),e.capitalize=i,e.clamp=r},function(t,e,n){var i=n(468);t.exports=i},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;eparseInt(window.getComputedStyle(v).order)&&(M=-M);var S=i;if(void 0!==i&&i<=0){var E=this.splitPane;S="vertical"===o?E.getBoundingClientRect().width+i:E.getBoundingClientRect().height+i}var k=_-M,T=h-w;kS?k=S:this.setState({position:T,resized:!0}),a&&a(k),this.setState({draggedSize:k}),f.setState({size:k})}}}}},{key:"onMouseUp",value:function(){var t=this.props,e=t.allowResize,n=t.onDragFinished,i=this.state,r=i.active,a=i.draggedSize;e&&r&&("function"==typeof n&&n(a),this.setState({active:!1}))}},{key:"setSize",value:function(t,e){var n="first"===t.primary,i=n?this.pane1:this.pane2,r=n?this.pane2:this.pane1,a=void 0;i&&(a=t.size||e&&e.draggedSize||t.defaultSize||t.minSize,i.setState({size:a}),t.size!==e.draggedSize&&this.setState({draggedSize:a})),r&&t.primary!==this.props.primary&&r.setState({size:void 0})}},{key:"render",value:function(){var t=this,e=this.props,n=e.allowResize,i=e.children,r=e.className,a=e.defaultSize,o=e.minSize,s=e.onResizerClick,u=e.onResizerDoubleClick,c=e.paneClassName,d=e.pane1ClassName,f=e.pane2ClassName,p=e.paneStyle,m=e.pane1Style,g=e.pane2Style,v=e.primary,y=e.prefixer,b=e.resizerClassName,x=e.resizerStyle,S=e.size,E=e.split,k=e.style,T=n?"":"disabled",C=b?b+" "+w.RESIZER_DEFAULT_CLASSNAME:b,P=l({},{display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},k||{});"vertical"===E?l(P,{flexDirection:"row",left:0,right:0}):l(P,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var O=["SplitPane",r,E,T],A=y.prefix(l({},p||{},m||{})),R=y.prefix(l({},p||{},g||{})),L=["Pane1",c,d].join(" "),I=["Pane2",c,f].join(" ");return h.default.createElement("div",{className:O.join(" "),ref:function(e){t.splitPane=e},style:y.prefix(P)},h.default.createElement(_.default,{className:L,key:"pane1",ref:function(e){t.pane1=e},size:"first"===v?S||a||o:void 0,split:E,style:A},i[0]),h.default.createElement(M.default,{className:T,onClick:s,onDoubleClick:u,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",ref:function(e){t.resizer=e},resizerClassName:C,split:E,style:x||{}}),h.default.createElement(_.default,{className:I,key:"pane2",ref:function(e){t.pane2=e},size:"second"===v?S||a||o:void 0,split:E,style:R},i[1]))}}]),e}(h.default.Component);E.propTypes={allowResize:f.default.bool,children:f.default.arrayOf(f.default.node).isRequired,className:f.default.string,primary:f.default.oneOf(["first","second"]),minSize:f.default.oneOfType([f.default.string,f.default.number]),maxSize:f.default.oneOfType([f.default.string,f.default.number]),defaultSize:f.default.oneOfType([f.default.string,f.default.number]),size:f.default.oneOfType([f.default.string,f.default.number]),split:f.default.oneOf(["vertical","horizontal"]),onDragStarted:f.default.func,onDragFinished:f.default.func,onChange:f.default.func,onResizerClick:f.default.func,onResizerDoubleClick:f.default.func,prefixer:f.default.instanceOf(v.default).isRequired,style:b.default,resizerStyle:b.default,paneClassName:f.default.string,pane1ClassName:f.default.string,pane2ClassName:f.default.string,paneStyle:b.default,pane1Style:b.default,pane2Style:b.default,resizerClassName:f.default.string,step:f.default.number},E.defaultProps={allowResize:!0,minSize:50,prefixer:new v.default({userAgent:S}),primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},e.default=E,t.exports=e.default},function(t,e){t.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var n=e.prototype;return n.componentDidMount=function(){this.checkFocus()},n.componentDidUpdate=function(){this.checkFocus()},n.checkFocus=function(){this.props.selected&&this.props.focus&&this.node.focus()},n.render=function(){var t,e=this,n=this.props,a=n.children,o=n.className,s=n.disabled,u=n.disabledClassName,h=(n.focus,n.id),d=n.panelId,f=n.selected,p=n.selectedClassName,m=n.tabIndex,g=n.tabRef,v=r(n,["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"]);return l.a.createElement("li",i({},v,{className:c()(o,(t={},t[p]=f,t[u]=s,t)),ref:function(t){e.node=t,g&&g(t)},role:"tab",id:h,"aria-selected":f?"true":"false","aria-disabled":s?"true":"false","aria-controls":d,tabIndex:m||(f?"0":null)}),a)},e}(s.Component);h.defaultProps={className:"react-tabs__tab",disabledClassName:"react-tabs__tab--disabled",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:"react-tabs__tab--selected"},h.propTypes={},h.tabsRole="Tab"},function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.className,a=r(t,["children","className"]);return l.a.createElement("ul",i({},a,{className:c()(n),role:"tablist"}),e)},e}(s.Component);h.defaultProps={className:"react-tabs__tab-list"},h.propTypes={},h.tabsRole="TabList"},function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t,e=this.props,n=e.children,a=e.className,o=e.forceRender,s=e.id,u=e.selected,h=e.selectedClassName,d=e.tabId,f=r(e,["children","className","forceRender","id","selected","selectedClassName","tabId"]);return l.a.createElement("div",i({},f,{className:c()(a,(t={},t[h]=u,t)),role:"tabpanel",id:s,"aria-labelledby":d}),o||u?n:null)},e}(s.Component);h.defaultProps={className:"react-tabs__tab-panel",forceRender:!1,selectedClassName:"react-tabs__tab-panel--selected"},h.propTypes={},h.tabsRole="TabPanel"},function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",function(){return c});var a=n(24),o=(n.n(a),n(2)),s=n.n(o),l=(n(156),n(474)),u=n(155),c=function(t){function e(n){var i;return i=t.call(this,n)||this,i.handleSelected=function(t,n,r){if("function"!=typeof i.props.onSelect||!1!==i.props.onSelect(t,n,r)){var a={focus:"keydown"===r.type};e.inUncontrolledMode(i.props)&&(a.selectedIndex=t),i.setState(a)}},i.state=e.copyPropsToState(i.props,{},i.props.defaultFocus),i}r(e,t);var a=e.prototype;return a.componentWillReceiveProps=function(t){this.setState(function(n){return e.copyPropsToState(t,n)})},e.inUncontrolledMode=function(t){return null===t.selectedIndex},e.copyPropsToState=function(t,i,r){void 0===r&&(r=!1);var a={focus:r};if(e.inUncontrolledMode(t)){var o=n.i(u.a)(t.children)-1,s=null;s=null!=i.selectedIndex?Math.min(i.selectedIndex,o):t.defaultIndex||0,a.selectedIndex=s}return a},a.render=function(){var t=this.props,e=t.children,n=(t.defaultIndex,t.defaultFocus,i(t,["children","defaultIndex","defaultFocus"]));return n.focus=this.state.focus,n.onSelect=this.handleSelected,null!=this.state.selectedIndex&&(n.selectedIndex=this.state.selectedIndex),s.a.createElement(l.a,n,e)},e}(o.Component);c.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},c.propTypes={},c.tabsRole="Tabs"},function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(t){return"getAttribute"in t&&"tab"===t.getAttribute("role")}function s(t){return"true"===t.getAttribute("aria-disabled")}n.d(e,"a",function(){return y});var l,u=n(24),c=(n.n(u),n(2)),h=n.n(c),d=n(13),f=n.n(d),p=n(157),m=(n(156),n(155)),g=n(109),v=n(76);try{l=!("undefined"==typeof window||!window.document||!window.document.activeElement)}catch(t){l=!1}var y=function(t){function e(){for(var e,n,i=arguments.length,r=new Array(i),a=0;a=this.getTabsCount()||this.props.onSelect(t,this.props.selectedIndex,e)},u.getNextTab=function(t){for(var e=this.getTabsCount(),n=t+1;nt;)if(!s(this.getTab(e)))return e;return t},u.getTabsCount=function(){return n.i(m.a)(this.props.children)},u.getPanelsCount=function(){return n.i(m.b)(this.props.children)},u.getTab=function(t){return this.tabNodes["tabs-"+t]},u.getChildren=function(){var t=this,e=0,i=this.props,r=i.children,a=i.disabledTabClassName,o=i.focus,s=i.forceRenderTabPanel,u=i.selectedIndex,d=i.selectedTabClassName,f=i.selectedTabPanelClassName;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var m=this.tabIds.length-this.getTabsCount();m++<0;)this.tabIds.push(n.i(p.b)()),this.panelIds.push(n.i(p.b)());return n.i(g.a)(r,function(i){var r=i;if(n.i(v.a)(i)){var p=0,m=!1;l&&(m=h.a.Children.toArray(i.props.children).filter(v.b).some(function(e,n){return document.activeElement===t.getTab(n)})),r=n.i(c.cloneElement)(i,{children:n.i(g.a)(i.props.children,function(e){var i="tabs-"+p,r=u===p,s={tabRef:function(e){t.tabNodes[i]=e},id:t.tabIds[p],panelId:t.panelIds[p],selected:r,focus:r&&(o||m)};return d&&(s.selectedClassName=d),a&&(s.disabledClassName=a),p++,n.i(c.cloneElement)(e,s)})})}else if(n.i(v.c)(i)){var y={id:t.panelIds[e],tabId:t.tabIds[e],selected:u===e};s&&(y.forceRender=s),f&&(y.selectedClassName=f),e++,r=n.i(c.cloneElement)(i,y)}return r})},u.isTabFromContainer=function(t){if(!o(t))return!1;var e=t.parentElement;do{if(e===this.node)return!0;if(e.getAttribute("data-tabs"))break;e=e.parentElement}while(e);return!1},u.render=function(){var t=this,e=this.props,n=(e.children,e.className),a=(e.disabledTabClassName,e.domRef),o=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,r(e,["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName"]));return h.a.createElement("div",i({},o,{className:f()(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(e){t.node=e,a&&a(e)},"data-tabs":!0}),this.getChildren())},e}(c.Component);y.defaultProps={className:"react-tabs",focus:!1},y.propTypes={}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(473),r=n(471),a=n(470),o=n(472),s=n(157);n.d(e,"Tab",function(){return a.a}),n.d(e,"TabList",function(){return r.a}),n.d(e,"TabPanel",function(){return o.a}),n.d(e,"Tabs",function(){return i.a}),n.d(e,"resetIdCounter",function(){return s.a})},function(t,e,n){"use strict";function i(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,i=0;iD.length&&D.push(t)}function f(t,e,n,r){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var o=!1;if(null===t)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case w:case M:case S:case E:o=!0}}if(o)return n(r,t,""===e?"."+p(t,0):e),1;if(o=0,e=""===e?".":e+":",Array.isArray(t))for(var s=0;s0;)e[i]=arguments[i+1];return e.reduce(function(e,i){return e+n(t["border-"+i+"-width"])},0)}function r(t){for(var e=["top","right","bottom","left"],i={},r=0,a=e;r0},b.prototype.connect_=function(){d&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},b.prototype.disconnect_=function(){d&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},b.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),v.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},b.getInstance=function(){return this.instance_||(this.instance_=new b),this.instance_},b.instance_=null;var x=function(t,e){for(var n=0,i=Object.keys(e);n0};var T="undefined"!=typeof WeakMap?new WeakMap:new h,C=function(t){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=b.getInstance(),n=new k(t,e,this);T.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){C.prototype[t]=function(){return(e=T.get(this))[t].apply(e,arguments);var e}});var P=function(){return void 0!==f.ResizeObserver?f.ResizeObserver:C}();e.default=P}.call(e,n(111))},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){var t=function(){function e(t){return r.appendChild(t.dom),t}function n(t){for(var e=0;eo+1e3&&(l.update(1e3*s/(t-o),100),o=t,s=0,c)){var e=performance.memory;c.update(e.usedJSHeapSize/1048576,e.jsHeapSizeLimit/1048576)}return t},update:function(){a=this.end()},domElement:r,setMode:n}};return t.Panel=function(t,e,n){var i=1/0,r=0,a=Math.round,o=a(window.devicePixelRatio||1),s=80*o,l=48*o,u=3*o,c=2*o,h=3*o,d=15*o,f=74*o,p=30*o,m=document.createElement("canvas");m.width=s,m.height=l,m.style.cssText="width:80px;height:48px";var g=m.getContext("2d");return g.font="bold "+9*o+"px Helvetica,Arial,sans-serif",g.textBaseline="top",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=e,g.fillText(t,u,c),g.fillRect(h,d,f,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h,d,f,p),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,d),g.fillStyle=e,g.fillText(a(l)+" "+t+" ("+a(i)+"-"+a(r)+")",u,c),g.drawImage(m,h+o,d,f-o,p,h,d,f-o,p),g.fillRect(h+f-o,d,o,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h+f-o,d,o,a((1-l/v)*p))}}},t})},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r))return t;var a;return a=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(a)+")"})}},function(t,e,n){var i=n(372),r=n(403);t.exports=function(t){function e(n,i){if(!(this instanceof e))return new e(n,i);t.BufferGeometry.call(this),Array.isArray(n)?i=i||{}:"object"==typeof n&&(i=n,n=[]),i=i||{},this.addAttribute("position",new t.BufferAttribute(void 0,3)),this.addAttribute("lineNormal",new t.BufferAttribute(void 0,2)),this.addAttribute("lineMiter",new t.BufferAttribute(void 0,1)),i.distances&&this.addAttribute("lineDistance",new t.BufferAttribute(void 0,1)),"function"==typeof this.setIndex?this.setIndex(new t.BufferAttribute(void 0,1)):this.addAttribute("index",new t.BufferAttribute(void 0,1)),this.update(n,i.closed)}return i(e,t.BufferGeometry),e.prototype.update=function(t,e){t=t||[];var n=r(t,e);e&&(t=t.slice(),t.push(t[0]),n.push(n[0]));var i=this.getAttribute("position"),a=this.getAttribute("lineNormal"),o=this.getAttribute("lineMiter"),s=this.getAttribute("lineDistance"),l="function"==typeof this.getIndex?this.getIndex():this.getAttribute("index"),u=Math.max(0,6*(t.length-1));if(!i.array||t.length!==i.array.length/3/2){var c=2*t.length;i.array=new Float32Array(3*c),a.array=new Float32Array(2*c),o.array=new Float32Array(c),l.array=new Uint16Array(u),s&&(s.array=new Float32Array(c))}void 0!==i.count&&(i.count=c),i.needsUpdate=!0,void 0!==a.count&&(a.count=c),a.needsUpdate=!0,void 0!==o.count&&(o.count=c),o.needsUpdate=!0,void 0!==l.count&&(l.count=u),l.needsUpdate=!0,s&&(void 0!==s.count&&(s.count=c),s.needsUpdate=!0);var h=0,d=0,f=0,p=l.array;t.forEach(function(t,e,n){var r=h;if(p[d++]=r+0,p[d++]=r+1,p[d++]=r+2,p[d++]=r+2,p[d++]=r+1,p[d++]=r+3,i.setXYZ(h++,t[0],t[1],0),i.setXYZ(h++,t[0],t[1],0),s){var a=e/(n.length-1);s.setX(f++,a),s.setX(f++,a)}});var m=0,g=0;n.forEach(function(t){var e=t[0],n=t[1];a.setXY(m++,e[0],e[1]),a.setXY(m++,e[0],e[1]),o.setX(g++,-n),o.setX(g++,n)})},e}},function(t,e,n){var i=n(101);t.exports=function(t){return function(e){e=e||{};var n="number"==typeof e.thickness?e.thickness:.1,r="number"==typeof e.opacity?e.opacity:1,a=null!==e.diffuse?e.diffuse:16777215;delete e.thickness,delete e.opacity,delete e.diffuse,delete e.precision;var o=i({uniforms:{thickness:{type:"f",value:n},opacity:{type:"f",value:r},diffuse:{type:"c",value:new t.Color(a)}},vertexShader:["uniform float thickness;","attribute float lineMiter;","attribute vec2 lineNormal;","void main() {","vec3 pointPos = position.xyz + vec3(lineNormal * thickness / 2.0 * lineMiter, 0.0);","gl_Position = projectionMatrix * modelViewMatrix * vec4(pointPos, 1.0);","}"].join("\n"),fragmentShader:["uniform vec3 diffuse;","uniform float opacity;","void main() {","gl_FragColor = vec4(diffuse, opacity);","}"].join("\n")},e);return(0|(parseInt(t.REVISION,10)||0))<72&&(o.attributes={lineMiter:{type:"f",value:0},lineNormal:{type:"v2",value:new t.Vector2}}),o}}},function(t,e,n){"use strict";function i(t){return!0===t||!1===t}t.exports=i},function(t,e,n){"use strict";function i(t){return"function"==typeof t}t.exports=i},function(t,e,n){"use strict";function i(t){var e,n;if(!r(t))return!1;if(!(e=t.length))return!1;for(var i=0;i=this.text.length)return;t=this.text[this.place++]}switch(this.state){case a:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},i.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(u.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},i.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=a)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=a,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},i.prototype.number=function(t){if(c.test(t))return void(this.word+=t);if(u.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)},i.prototype.quoted=function(t){if('"'===t)return void(this.state=5);this.word+=t},i.prototype.keyword=function(t){if(l.test(t))return void(this.word+=t);if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=a)}if(u.test(t))return void this.afterItem(t);throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place)},i.prototype.neutral=function(t){if(s.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(c.test(t))return this.word=t,void(this.state=3);if(u.test(t))return void this.afterItem(t);throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place)},i.prototype.output=function(){for(;this.place0?s(r()):tt.y<0&&l(r()),J.copy($),I.update()}function p(t){K.set(t.clientX,t.clientY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function m(t){}function g(t){t.deltaY<0?l(r()):t.deltaY>0&&s(r()),I.update()}function v(t){switch(t.keyCode){case I.keys.UP:it(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:it(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:it(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:it(-I.keyPanSpeed,0),I.update()}}function y(t){Y.set(t.touches[0].pageX,t.touches[0].pageY)}function b(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);J.set(0,i)}function x(t){Z.set(t.touches[0].pageX,t.touches[0].pageY)}function _(t){q.set(t.touches[0].pageX,t.touches[0].pageY),X.subVectors(q,Y);var e=I.domElement===document?I.domElement.body:I.domElement;a(2*Math.PI*X.x/e.clientWidth*I.rotateSpeed),o(2*Math.PI*X.y/e.clientHeight*I.rotateSpeed),Y.copy(q),I.update()}function w(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);$.set(0,i),tt.subVectors($,J),tt.y>0?l(r()):tt.y<0&&s(r()),J.copy($),I.update()}function M(t){K.set(t.touches[0].pageX,t.touches[0].pageY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function S(t){}function E(t){if(!1!==I.enabled){if(t.preventDefault(),t.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(t),F=B.ROTATE}else if(t.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(t),F=B.DOLLY}else if(t.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;h(t),F=B.PAN}F!==B.NONE&&(document.addEventListener("mousemove",k,!1),document.addEventListener("mouseup",T,!1),I.dispatchEvent(N))}}function k(t){if(!1!==I.enabled)if(t.preventDefault(),F===B.ROTATE){if(!1===I.enableRotate)return;d(t)}else if(F===B.DOLLY){if(!1===I.enableZoom)return;f(t)}else if(F===B.PAN){if(!1===I.enablePan)return;p(t)}}function T(t){!1!==I.enabled&&(m(t),document.removeEventListener("mousemove",k,!1),document.removeEventListener("mouseup",T,!1),I.dispatchEvent(z),F=B.NONE)}function C(t){!1===I.enabled||!1===I.enableZoom||F!==B.NONE&&F!==B.ROTATE||(t.preventDefault(),t.stopPropagation(),g(t),I.dispatchEvent(N),I.dispatchEvent(z))}function P(t){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(t)}function O(t){if(!1!==I.enabled){switch(t.touches.length){case 1:if(!1===I.enableRotate)return;y(t),F=B.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(t),F=B.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;x(t),F=B.TOUCH_PAN;break;default:F=B.NONE}F!==B.NONE&&I.dispatchEvent(N)}}function A(t){if(!1!==I.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==B.TOUCH_ROTATE)return;_(t);break;case 2:if(!1===I.enableZoom)return;if(F!==B.TOUCH_DOLLY)return;w(t);break;case 3:if(!1===I.enablePan)return;if(F!==B.TOUCH_PAN)return;M(t);break;default:F=B.NONE}}function R(t){!1!==I.enabled&&(S(t),I.dispatchEvent(z),F=B.NONE)}function L(t){t.preventDefault()}this.object=t,this.domElement=void 0!==e?e:document,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=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return j.phi},this.getAzimuthalAngle=function(){return j.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=B.NONE},this.update=function(){var e=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),o=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var t=I.object.position;return e.copy(t).sub(I.target),e.applyQuaternion(r),j.setFromVector3(e),I.autoRotate&&F===B.NONE&&a(n()),j.theta+=W.theta,j.phi+=W.phi,j.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,j.theta)),j.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,j.phi)),j.makeSafe(),j.radius*=G,j.radius=Math.max(I.minDistance,Math.min(I.maxDistance,j.radius)),I.target.add(V),e.setFromSpherical(j),e.applyQuaternion(o),t.copy(I.target).add(e),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>U||8*(1-l.dot(I.object.quaternion))>U)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener("contextmenu",L,!1),I.domElement.removeEventListener("mousedown",E,!1),I.domElement.removeEventListener("wheel",C,!1),I.domElement.removeEventListener("touchstart",O,!1),I.domElement.removeEventListener("touchend",R,!1),I.domElement.removeEventListener("touchmove",A,!1),document.removeEventListener("mousemove",k,!1),document.removeEventListener("mouseup",T,!1),window.removeEventListener("keydown",P,!1)};var I=this,D={type:"change"},N={type:"start"},z={type:"end"},B={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=B.NONE,U=1e-6,j=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,Y=new i.Vector2,q=new i.Vector2,X=new i.Vector2,Z=new i.Vector2,K=new i.Vector2,Q=new i.Vector2,J=new i.Vector2,$=new i.Vector2,tt=new i.Vector2,et=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),V.add(t)}}(),nt=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),V.add(t)}}(),it=function(){var t=new i.Vector3;return function(e,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var a=I.object.position;t.copy(a).sub(I.target);var o=t.length();o*=Math.tan(I.object.fov/2*Math.PI/180),et(2*e*o/r.clientHeight,I.object.matrix),nt(2*n*o/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(et(e*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),nt(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),I.enablePan=!1)}}();I.domElement.addEventListener("contextmenu",L,!1),I.domElement.addEventListener("mousedown",E,!1),I.domElement.addEventListener("wheel",C,!1),I.domElement.addEventListener("touchstart",O,!1),I.domElement.addEventListener("touchend",R,!1),I.domElement.addEventListener("touchmove",A,!1),window.addEventListener("keydown",P,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(t){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!t}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(t){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!t}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(t){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!t}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(t){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!t}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(t){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!t}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(t){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=t}}})},function(t,e,n){var i=n(12);i.MTLLoader=function(t){this.manager=void 0!==t?t:i.DefaultLoadingManager},i.MTLLoader.prototype={constructor:i.MTLLoader,load:function(t,e,n,r){var a=this,o=new i.FileLoader(this.manager);o.setPath(this.path),o.load(t,function(t){e(a.parse(t))},n,r)},setPath:function(t){this.path=t},setTexturePath:function(t){this.texturePath=t},setBaseUrl:function(t){console.warn("THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead."),this.setTexturePath(t)},setCrossOrigin:function(t){this.crossOrigin=t},setMaterialOptions:function(t){this.materialOptions=t},parse:function(t){for(var e=t.split("\n"),n={},r=/\s+/,a={},o=0;o=0?s.substring(0,l):s;u=u.toLowerCase();var c=l>=0?s.substring(l+1):"";if(c=c.trim(),"newmtl"===u)n={name:c},a[c]=n;else if(n)if("ka"===u||"kd"===u||"ks"===u){var h=c.split(r,3);n[u]=[parseFloat(h[0]),parseFloat(h[1]),parseFloat(h[2])]}else n[u]=c}}var d=new i.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return d.setCrossOrigin(this.crossOrigin),d.setManager(this.manager),d.setMaterials(a),d}},i.MTLLoader.MaterialCreator=function(t,e){this.baseUrl=t||"",this.options=e,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:i.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:i.RepeatWrapping},i.MTLLoader.MaterialCreator.prototype={constructor:i.MTLLoader.MaterialCreator,setCrossOrigin:function(t){this.crossOrigin=t},setManager:function(t){this.manager=t},setMaterials:function(t){this.materialsInfo=this.convert(t),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(t){if(!this.options)return t;var e={};for(var n in t){var i=t[n],r={};e[n]=r;for(var a in i){var o=!0,s=i[a],l=a.toLowerCase();switch(l){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(o=!1)}o&&(r[l]=s)}}return e},preload:function(){for(var t in this.materialsInfo)this.create(t)},getIndex:function(t){return this.nameLookup[t]},getAsArray:function(){var t=0;for(var e in this.materialsInfo)this.materialsArray[t]=this.create(e),this.nameLookup[e]=t,t++;return this.materialsArray},create:function(t){return void 0===this.materials[t]&&this.createMaterial_(t),this.materials[t]},createMaterial_:function(t){function e(t,e){return"string"!=typeof e||""===e?"":/^https?:\/\//i.test(e)?e:t+e}function n(t,n){if(!o[t]){var i=r.getTextureParams(n,o),a=r.loadTexture(e(r.baseUrl,i.url));a.repeat.copy(i.scale),a.offset.copy(i.offset),a.wrapS=r.wrap,a.wrapT=r.wrap,o[t]=a}}var r=this,a=this.materialsInfo[t],o={name:t,side:this.side};for(var s in a){var l=a[s];if(""!==l)switch(s.toLowerCase()){case"kd":o.color=(new i.Color).fromArray(l);break;case"ks":o.specular=(new i.Color).fromArray(l);break;case"map_kd":n("map",l);break;case"map_ks":n("specularMap",l);break;case"map_bump":case"bump":n("bumpMap",l);break;case"ns":o.shininess=parseFloat(l);break;case"d":l<1&&(o.opacity=l,o.transparent=!0);break;case"Tr":l>0&&(o.opacity=1-l,o.transparent=!0)}}return this.materials[t]=new i.MeshPhongMaterial(o),this.materials[t]},getTextureParams:function(t,e){var n,r={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},a=t.split(/\s+/);return n=a.indexOf("-bm"),n>=0&&(e.bumpScale=parseFloat(a[n+1]),a.splice(n,2)),n=a.indexOf("-s"),n>=0&&(r.scale.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),n=a.indexOf("-o"),n>=0&&(r.offset.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),r.url=a.join(" ").trim(),r},loadTexture:function(t,e,n,r,a){var o,s=i.Loader.Handlers.get(t),l=void 0!==this.manager?this.manager:i.DefaultLoadingManager;return null===s&&(s=new i.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),o=s.load(t,n,r,a),void 0!==e&&(o.mapping=e),o}}},function(t,e,n){var i=n(12);i.OBJLoader=function(t){this.manager=void 0!==t?t:i.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,normal_pattern:/^vn\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,uv_pattern:/^vt\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,face_vertex:/^f\s+(-?\d+)\s+(-?\d+)\s+(-?\d+)(?:\s+(-?\d+))?/,face_vertex_uv:/^f\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+))?/,face_vertex_uv_normal:/^f\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+)\/(-?\d+))?/,face_vertex_normal:/^f\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)(?:\s+(-?\d+)\/\/(-?\d+))?/,object_pattern:/^[og]\s*(.+)?/,smoothing_pattern:/^s\s+(\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}},i.OBJLoader.prototype={constructor:i.OBJLoader,load:function(t,e,n,r){var a=this,o=new i.FileLoader(a.manager);o.setPath(this.path),o.load(t,function(t){e(a.parse(t))},n,r)},setPath:function(t){this.path=t},setMaterials:function(t){this.materials=t},_createParserState:function(){var t={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);var n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(t,e){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var i={index:this.materials.length,name:t||"",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){var e={index:"number"==typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){var e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return t&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),e}},n&&n.name&&"function"==typeof n.clone){var i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseNormalIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseUVIndex:function(t,e){var n=parseInt(t,10);return 2*(n>=0?n-1:n+e/2)},addVertex:function(t,e,n){var i=this.vertices,r=this.object.geometry.vertices;r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addVertexLine:function(t){var e=this.vertices,n=this.object.geometry.vertices;n.push(e[t+0]),n.push(e[t+1]),n.push(e[t+2])},addNormal:function(t,e,n){var i=this.normals,r=this.object.geometry.normals;r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addUV:function(t,e,n){var i=this.uvs,r=this.object.geometry.uvs;r.push(i[t+0]),r.push(i[t+1]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[n+0]),r.push(i[n+1])},addUVLine:function(t){var e=this.uvs,n=this.object.geometry.uvs;n.push(e[t+0]),n.push(e[t+1])},addFace:function(t,e,n,i,r,a,o,s,l,u,c,h){var d,f=this.vertices.length,p=this.parseVertexIndex(t,f),m=this.parseVertexIndex(e,f),g=this.parseVertexIndex(n,f);if(void 0===i?this.addVertex(p,m,g):(d=this.parseVertexIndex(i,f),this.addVertex(p,m,d),this.addVertex(m,g,d)),void 0!==r){var v=this.uvs.length;p=this.parseUVIndex(r,v),m=this.parseUVIndex(a,v),g=this.parseUVIndex(o,v),void 0===i?this.addUV(p,m,g):(d=this.parseUVIndex(s,v),this.addUV(p,m,d),this.addUV(m,g,d))}if(void 0!==l){var y=this.normals.length;p=this.parseNormalIndex(l,y),m=l===u?p:this.parseNormalIndex(u,y),g=l===c?p:this.parseNormalIndex(c,y),void 0===i?this.addNormal(p,m,g):(d=this.parseNormalIndex(h,y),this.addNormal(p,m,d),this.addNormal(m,g,d))}},addLineGeometry:function(t,e){this.object.geometry.type="Line";for(var n=this.vertices.length,i=this.uvs.length,r=0,a=t.length;r0?E.addAttribute("normal",new i.BufferAttribute(new Float32Array(w.normals),3)):E.computeVertexNormals(),w.uvs.length>0&&E.addAttribute("uv",new i.BufferAttribute(new Float32Array(w.uvs),2));for(var k=[],T=0,C=M.length;T1){for(var T=0,C=M.length;T0?s(r()):tt.y<0&&l(r()),J.copy($),I.update()}function p(t){K.set(t.clientX,t.clientY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function m(t){}function g(t){t.deltaY<0?l(r()):t.deltaY>0&&s(r()),I.update()}function v(t){switch(t.keyCode){case I.keys.UP:it(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:it(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:it(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:it(-I.keyPanSpeed,0),I.update()}}function y(t){Y.set(t.touches[0].pageX,t.touches[0].pageY)}function b(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);J.set(0,i)}function x(t){Z.set(t.touches[0].pageX,t.touches[0].pageY)}function _(t){q.set(t.touches[0].pageX,t.touches[0].pageY),X.subVectors(q,Y);var e=I.domElement===document?I.domElement.body:I.domElement;a(2*Math.PI*X.x/e.clientWidth*I.rotateSpeed),o(2*Math.PI*X.y/e.clientHeight*I.rotateSpeed),Y.copy(q),I.update()}function w(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);$.set(0,i),tt.subVectors($,J),tt.y>0?l(r()):tt.y<0&&s(r()),J.copy($),I.update()}function M(t){K.set(t.touches[0].pageX,t.touches[0].pageY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function S(t){}function E(t){if(!1!==I.enabled){if(t.preventDefault(),t.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(t),F=B.ROTATE}else if(t.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(t),F=B.DOLLY}else if(t.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;h(t),F=B.PAN}F!==B.NONE&&(document.addEventListener("mousemove",k,!1),document.addEventListener("mouseup",T,!1),I.dispatchEvent(N))}}function k(t){if(!1!==I.enabled)if(t.preventDefault(),F===B.ROTATE){if(!1===I.enableRotate)return;d(t)}else if(F===B.DOLLY){if(!1===I.enableZoom)return;f(t)}else if(F===B.PAN){if(!1===I.enablePan)return;p(t)}}function T(t){!1!==I.enabled&&(m(t),document.removeEventListener("mousemove",k,!1),document.removeEventListener("mouseup",T,!1),I.dispatchEvent(z),F=B.NONE)}function C(t){!1===I.enabled||!1===I.enableZoom||F!==B.NONE&&F!==B.ROTATE||(t.preventDefault(),t.stopPropagation(),g(t),I.dispatchEvent(N),I.dispatchEvent(z))}function P(t){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(t)}function O(t){if(!1!==I.enabled){switch(t.touches.length){case 1:if(!1===I.enableRotate)return;y(t),F=B.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(t),F=B.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;x(t),F=B.TOUCH_PAN;break;default:F=B.NONE}F!==B.NONE&&I.dispatchEvent(N)}}function A(t){if(!1!==I.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==B.TOUCH_ROTATE)return;_(t);break;case 2:if(!1===I.enableZoom)return;if(F!==B.TOUCH_DOLLY)return;w(t);break;case 3:if(!1===I.enablePan)return;if(F!==B.TOUCH_PAN)return;M(t);break;default:F=B.NONE}}function R(t){!1!==I.enabled&&(S(t),I.dispatchEvent(z),F=B.NONE)}function L(t){t.preventDefault()}this.object=t,this.domElement=void 0!==e?e:document,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=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return j.phi},this.getAzimuthalAngle=function(){return j.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=B.NONE},this.update=function(){var e=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),o=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var t=I.object.position;return e.copy(t).sub(I.target),e.applyQuaternion(r),j.setFromVector3(e),I.autoRotate&&F===B.NONE&&a(n()),j.theta+=W.theta,j.phi+=W.phi,j.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,j.theta)),j.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,j.phi)),j.makeSafe(),j.radius*=G,j.radius=Math.max(I.minDistance,Math.min(I.maxDistance,j.radius)),I.target.add(V),e.setFromSpherical(j),e.applyQuaternion(o),t.copy(I.target).add(e),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>U||8*(1-l.dot(I.object.quaternion))>U)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener("contextmenu",L,!1),I.domElement.removeEventListener("mousedown",E,!1),I.domElement.removeEventListener("wheel",C,!1),I.domElement.removeEventListener("touchstart",O,!1),I.domElement.removeEventListener("touchend",R,!1),I.domElement.removeEventListener("touchmove",A,!1),document.removeEventListener("mousemove",k,!1),document.removeEventListener("mouseup",T,!1),window.removeEventListener("keydown",P,!1)};var I=this,D={type:"change"},N={type:"start"},z={type:"end"},B={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=B.NONE,U=1e-6,j=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,Y=new i.Vector2,q=new i.Vector2,X=new i.Vector2,Z=new i.Vector2,K=new i.Vector2,Q=new i.Vector2,J=new i.Vector2,$=new i.Vector2,tt=new i.Vector2,et=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),V.add(t)}}(),nt=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),V.add(t)}}(),it=function(){var t=new i.Vector3;return function(e,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var a=I.object.position;t.copy(a).sub(I.target);var o=t.length();o*=Math.tan(I.object.fov/2*Math.PI/180),et(2*e*o/r.clientHeight,I.object.matrix),nt(2*n*o/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(et(e*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),nt(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),I.enablePan=!1)}}();I.domElement.addEventListener("contextmenu",L,!1),I.domElement.addEventListener("mousedown",E,!1),I.domElement.addEventListener("wheel",C,!1),I.domElement.addEventListener("touchstart",O,!1),I.domElement.addEventListener("touchend",R,!1),I.domElement.addEventListener("touchmove",A,!1),window.addEventListener("keydown",P,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(t){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!t}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(t){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!t}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(t){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!t}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(t){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!t}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(t){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!t}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(t){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=t}}})},function(t,e){t.exports={trajectoryGraph:{title:"Trajectory",options:{legend:{display:!0},axes:{x:{labelString:"x (m)"},y:{labelString:"y (m)"}}},properties:{lines:{pose:{color:"rgba(0, 255, 0, 1)",borderWidth:0,pointRadius:0,specialMarker:"car"},real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},steerCurve:{color:"rgba(255, 206, 86, 1)",borderWidth:1,pointRadius:0,fill:!1,showLine:!0},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},speedGraph:{title:"Speed",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"speed (m/s)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},curvatureGraph:{title:"Curvature",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"Curvature (m-1)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},accelerationGraph:{title:"Acceleration",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"acceleration (m/s^2)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},stationErrorGraph:{title:"Station Error",options:{legend:{display:!1},axes:{x:{labelString:"t (second)"},y:{labelString:"error (m)"}}},properties:{lines:{error:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}}}},function(t,e){t.exports={slGraph:{title:"QP Path - sl graph",options:{legend:{display:!1},axes:{x:{min:0,max:200,labelString:"s - ref_line (m)"},y:{min:-5,max:5,labelString:"l (m)"}}},properties:{lines:{aggregatedBoundaryLow:{color:"rgba(48, 165, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},aggregatedBoundaryHigh:{color:"rgba(48, 165, 255, 1)",borderWidth:2,pointRadius:0,lineTension:0,fill:!1,showLine:!0},pathLine:{color:"rgba(225, 225, 225, 0.7)",borderWidth:2,pointRadius:.5,fill:!1,showLine:!1},mapLowerBound:{color:"rgba(54, 162, 235, 0.4)",borderWidth:2,pointRadius:0,fill:"start",showLine:!0},mapUpperBound:{color:"rgba(54, 162, 235, 0.4)",borderWidth:2,pointRadius:0,fill:"end",showLine:!0},staticObstacleLowerBound:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:"start",showLine:!0},staticObstacleUpperBound:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:"end",showLine:!0},dynamicObstacleLowerBound:{color:"rgba(255, 206, 86, 0.2)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},dynamicObstacleUpperBound:{color:"rgba(255, 206, 86, 0.2)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},stGraph:{options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-10,max:220,labelString:"s (m)"}}},properties:{box:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0,showText:!0,cubicInterpolationMode:"monotone",lineTension:0},lines:{curveLine:{color:"rgba(225, 225, 225, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelCruise:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelFollow:{color:"rgba(255, 206, 86, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1}}}},stSpeedGraph:{title:"QP Speed - sv graph",options:{legend:{display:!0},axes:{x:{min:-10,max:220,labelString:"s - qp_path(m)"},y:{min:-1,max:40,labelString:"v (m/s)"}}},properties:{lines:{upperConstraint:{color:"rgba(54, 162, 235, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},lowerConstraint:{color:"rgba(54, 162, 235, 1)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},planned:{color:"rgba(225, 225, 225, 0.5)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},limit:{color:"rgba(255, 0, 0, 0.5)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0}}}},speedGraph:{title:"Planning Speed",options:{legend:{display:!0},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-1,max:40,labelString:"speed (m/s)"}}},properties:{lines:{finalSpeed:{color:"rgba(255, 0, 0, 0.8)",borderWidth:1,pointRadius:1,fill:!1,showLine:!1},DpStSpeedOptimizer:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplineStSpeedOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},accelerationGraph:{title:"Planning Acceleration",options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-4,max:3.5,labelString:"acceleration (m/s^2)"}}},properties:{lines:{acceleration:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},kappaGraph:{title:"Planning Kappa",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{min:-.2,max:.2,labelString:"kappa"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},DpPolyPathOptimizer:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},dkappaGraph:{title:"Planning Dkappa",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{min:-.02,max:.02,labelString:"dkappa"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},thetaGraph:{title:"Planning theta",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{labelString:"theta"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},dpPolyGraph:{title:"DP Path",options:{legend:{display:!1},axes:{x:{labelString:"s (m)"},y:{labelString:"l (m)"}}},properties:{lines:{minCostPoint:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:2,fill:!1,showLine:!0},sampleLayer:{color:"rgba(225, 225, 225, 0.5)",borderWidth:0,pointRadius:4,fill:!1,showLine:!1}}}},latencyGraph:{title:"Latency",options:{legend:{display:!1},axes:{x:{labelString:"timestampe (sec)"},y:{labelString:"latency (ms)"}}},properties:{lines:{planning:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}}}},function(t,e){t.exports={name:"proj4",version:"2.4.4",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"dist/proj4-src.js",module:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{build:"grunt","build:tmerc":"grunt build:tmerc",test:"npm run build && istanbul test _mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},author:"",license:"MIT",devDependencies:{chai:"~1.8.1",curl:"git://github.com/cujojs/curl.git",grunt:"^1.0.1","grunt-cli":"~0.1.13","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~1.1.0","grunt-contrib-uglify":"~0.11.1","grunt-mocha-phantomjs":"~0.4.0","grunt-rollup":"^1.0.1",istanbul:"~0.2.4",mocha:"~1.17.1",rollup:"^0.41.4","rollup-plugin-json":"^2.0.1","rollup-plugin-node-resolve":"^2.0.0",tin:"~0.4.0"},dependencies:{mgrs:"1.0.0","wkt-parser":"^1.2.0"}}},function(t,e,n){var i=n(236);"string"==typeof i&&(i=[[t.i,i,""]]);var r={};r.transform=void 0;n(158)(i,r);i.locals&&(t.exports=i.locals)},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}}]); +var y=n(101),b=n(141),x=n(68),_="function"==typeof Symbol&&Symbol.for,w=_?Symbol.for("react.element"):60103,M=_?Symbol.for("react.call"):60104,S=_?Symbol.for("react.return"):60105,E=_?Symbol.for("react.portal"):60106,k=_?Symbol.for("react.fragment"):60107,T="function"==typeof Symbol&&Symbol.iterator,C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&i("85"),this.updater.enqueueSetState(this,t,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},o.prototype=r.prototype;var P=a.prototype=new o;P.constructor=a,y(P,r.prototype),P.isPureReactComponent=!0;var O=s.prototype=new o;O.constructor=s,y(O,r.prototype),O.unstable_isAsyncReactComponent=!0,O.render=function(){return this.props.children};var A={current:null},R=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0},I=/\/+/g,D=[],N={Children:{map:function(t,e,n){if(null==t)return t;var i=[];return v(t,i,null,e,n),i},forEach:function(t,e,n){if(null==t)return t;e=h(null,null,e,n),null==t||f(t,"",m,e),d(e)},count:function(t){return null==t?0:f(t,"",x.thatReturnsNull,null)},toArray:function(t){var e=[];return v(t,e,null,x.thatReturnsArgument),e},only:function(t){return u(t)||i("143"),t}},Component:r,PureComponent:a,unstable_AsyncComponent:s,Fragment:k,createElement:l,cloneElement:function(t,e,n){var i=y({},t.props),r=t.key,a=t.ref,o=t._owner;if(null!=e){if(void 0!==e.ref&&(a=e.ref,o=A.current),void 0!==e.key&&(r=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(l in e)R.call(e,l)&&!L.hasOwnProperty(l)&&(i[l]=void 0===e[l]&&void 0!==s?s[l]:e[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(10;)e[i]=arguments[i+1];return e.reduce(function(e,i){return e+n(t["border-"+i+"-width"])},0)}function r(t){for(var e=["top","right","bottom","left"],i={},r=0,a=e;r0},b.prototype.connect_=function(){d&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},b.prototype.disconnect_=function(){d&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},b.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),v.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},b.getInstance=function(){return this.instance_||(this.instance_=new b),this.instance_},b.instance_=null;var x=function(t,e){for(var n=0,i=Object.keys(e);n0};var T="undefined"!=typeof WeakMap?new WeakMap:new h,C=function(t){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=b.getInstance(),n=new k(t,e,this);T.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){C.prototype[t]=function(){return(e=T.get(this))[t].apply(e,arguments);var e}});var P=function(){return void 0!==f.ResizeObserver?f.ResizeObserver:C}();e.default=P}.call(e,n(111))},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){var t=function(){function e(t){return r.appendChild(t.dom),t}function n(t){for(var e=0;eo+1e3&&(l.update(1e3*s/(t-o),100),o=t,s=0,c)){var e=performance.memory;c.update(e.usedJSHeapSize/1048576,e.jsHeapSizeLimit/1048576)}return t},update:function(){a=this.end()},domElement:r,setMode:n}};return t.Panel=function(t,e,n){var i=1/0,r=0,a=Math.round,o=a(window.devicePixelRatio||1),s=80*o,l=48*o,u=3*o,c=2*o,h=3*o,d=15*o,f=74*o,p=30*o,m=document.createElement("canvas");m.width=s,m.height=l,m.style.cssText="width:80px;height:48px";var g=m.getContext("2d");return g.font="bold "+9*o+"px Helvetica,Arial,sans-serif",g.textBaseline="top",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=e,g.fillText(t,u,c),g.fillRect(h,d,f,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h,d,f,p),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,d),g.fillStyle=e,g.fillText(a(l)+" "+t+" ("+a(i)+"-"+a(r)+")",u,c),g.drawImage(m,h+o,d,f-o,p,h,d,f-o,p),g.fillRect(h+f-o,d,o,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h+f-o,d,o,a((1-l/v)*p))}}},t})},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(r))return t;var a;return a=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:i+r.replace(/^\.\//,""),"url("+JSON.stringify(a)+")"})}},function(t,e,n){var i=n(372),r=n(403);t.exports=function(t){function e(n,i){if(!(this instanceof e))return new e(n,i);t.BufferGeometry.call(this),Array.isArray(n)?i=i||{}:"object"==typeof n&&(i=n,n=[]),i=i||{},this.addAttribute("position",new t.BufferAttribute(void 0,3)),this.addAttribute("lineNormal",new t.BufferAttribute(void 0,2)),this.addAttribute("lineMiter",new t.BufferAttribute(void 0,1)),i.distances&&this.addAttribute("lineDistance",new t.BufferAttribute(void 0,1)),"function"==typeof this.setIndex?this.setIndex(new t.BufferAttribute(void 0,1)):this.addAttribute("index",new t.BufferAttribute(void 0,1)),this.update(n,i.closed)}return i(e,t.BufferGeometry),e.prototype.update=function(t,e){t=t||[];var n=r(t,e);e&&(t=t.slice(),t.push(t[0]),n.push(n[0]));var i=this.getAttribute("position"),a=this.getAttribute("lineNormal"),o=this.getAttribute("lineMiter"),s=this.getAttribute("lineDistance"),l="function"==typeof this.getIndex?this.getIndex():this.getAttribute("index"),u=Math.max(0,6*(t.length-1));if(!i.array||t.length!==i.array.length/3/2){var c=2*t.length;i.array=new Float32Array(3*c),a.array=new Float32Array(2*c),o.array=new Float32Array(c),l.array=new Uint16Array(u),s&&(s.array=new Float32Array(c))}void 0!==i.count&&(i.count=c),i.needsUpdate=!0,void 0!==a.count&&(a.count=c),a.needsUpdate=!0,void 0!==o.count&&(o.count=c),o.needsUpdate=!0,void 0!==l.count&&(l.count=u),l.needsUpdate=!0,s&&(void 0!==s.count&&(s.count=c),s.needsUpdate=!0);var h=0,d=0,f=0,p=l.array;t.forEach(function(t,e,n){var r=h;if(p[d++]=r+0,p[d++]=r+1,p[d++]=r+2,p[d++]=r+2,p[d++]=r+1,p[d++]=r+3,i.setXYZ(h++,t[0],t[1],0),i.setXYZ(h++,t[0],t[1],0),s){var a=e/(n.length-1);s.setX(f++,a),s.setX(f++,a)}});var m=0,g=0;n.forEach(function(t){var e=t[0],n=t[1];a.setXY(m++,e[0],e[1]),a.setXY(m++,e[0],e[1]),o.setX(g++,-n),o.setX(g++,n)})},e}},function(t,e,n){var i=n(101);t.exports=function(t){return function(e){e=e||{};var n="number"==typeof e.thickness?e.thickness:.1,r="number"==typeof e.opacity?e.opacity:1,a=null!==e.diffuse?e.diffuse:16777215;delete e.thickness,delete e.opacity,delete e.diffuse,delete e.precision;var o=i({uniforms:{thickness:{type:"f",value:n},opacity:{type:"f",value:r},diffuse:{type:"c",value:new t.Color(a)}},vertexShader:["uniform float thickness;","attribute float lineMiter;","attribute vec2 lineNormal;","void main() {","vec3 pointPos = position.xyz + vec3(lineNormal * thickness / 2.0 * lineMiter, 0.0);","gl_Position = projectionMatrix * modelViewMatrix * vec4(pointPos, 1.0);","}"].join("\n"),fragmentShader:["uniform vec3 diffuse;","uniform float opacity;","void main() {","gl_FragColor = vec4(diffuse, opacity);","}"].join("\n")},e);return(0|(parseInt(t.REVISION,10)||0))<72&&(o.attributes={lineMiter:{type:"f",value:0},lineNormal:{type:"v2",value:new t.Vector2}}),o}}},function(t,e,n){"use strict";function i(t){return!0===t||!1===t}t.exports=i},function(t,e,n){"use strict";function i(t){return"function"==typeof t}t.exports=i},function(t,e,n){"use strict";function i(t){var e,n;if(!r(t))return!1;if(!(e=t.length))return!1;for(var i=0;i=this.text.length)return;t=this.text[this.place++]}switch(this.state){case a:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},i.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(u.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},i.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=a)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=a,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},i.prototype.number=function(t){if(c.test(t))return void(this.word+=t);if(u.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)},i.prototype.quoted=function(t){if('"'===t)return void(this.state=5);this.word+=t},i.prototype.keyword=function(t){if(l.test(t))return void(this.word+=t);if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=a)}if(u.test(t))return void this.afterItem(t);throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place)},i.prototype.neutral=function(t){if(s.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(c.test(t))return this.word=t,void(this.state=3);if(u.test(t))return void this.afterItem(t);throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place)},i.prototype.output=function(){for(;this.place0?s(r()):tt.y<0&&l(r()),J.copy($),I.update()}function p(t){K.set(t.clientX,t.clientY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function m(t){}function g(t){t.deltaY<0?l(r()):t.deltaY>0&&s(r()),I.update()}function v(t){switch(t.keyCode){case I.keys.UP:it(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:it(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:it(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:it(-I.keyPanSpeed,0),I.update()}}function y(t){q.set(t.touches[0].pageX,t.touches[0].pageY)}function b(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);J.set(0,i)}function x(t){Z.set(t.touches[0].pageX,t.touches[0].pageY)}function _(t){Y.set(t.touches[0].pageX,t.touches[0].pageY),X.subVectors(Y,q);var e=I.domElement===document?I.domElement.body:I.domElement;a(2*Math.PI*X.x/e.clientWidth*I.rotateSpeed),o(2*Math.PI*X.y/e.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);$.set(0,i),tt.subVectors($,J),tt.y>0?l(r()):tt.y<0&&s(r()),J.copy($),I.update()}function M(t){K.set(t.touches[0].pageX,t.touches[0].pageY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function S(t){}function E(t){if(!1!==I.enabled){if(t.preventDefault(),t.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(t),F=B.ROTATE}else if(t.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(t),F=B.DOLLY}else if(t.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;h(t),F=B.PAN}F!==B.NONE&&(document.addEventListener("mousemove",k,!1),document.addEventListener("mouseup",T,!1),I.dispatchEvent(N))}}function k(t){if(!1!==I.enabled)if(t.preventDefault(),F===B.ROTATE){if(!1===I.enableRotate)return;d(t)}else if(F===B.DOLLY){if(!1===I.enableZoom)return;f(t)}else if(F===B.PAN){if(!1===I.enablePan)return;p(t)}}function T(t){!1!==I.enabled&&(m(t),document.removeEventListener("mousemove",k,!1),document.removeEventListener("mouseup",T,!1),I.dispatchEvent(z),F=B.NONE)}function C(t){!1===I.enabled||!1===I.enableZoom||F!==B.NONE&&F!==B.ROTATE||(t.preventDefault(),t.stopPropagation(),g(t),I.dispatchEvent(N),I.dispatchEvent(z))}function P(t){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(t)}function O(t){if(!1!==I.enabled){switch(t.touches.length){case 1:if(!1===I.enableRotate)return;y(t),F=B.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(t),F=B.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;x(t),F=B.TOUCH_PAN;break;default:F=B.NONE}F!==B.NONE&&I.dispatchEvent(N)}}function A(t){if(!1!==I.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==B.TOUCH_ROTATE)return;_(t);break;case 2:if(!1===I.enableZoom)return;if(F!==B.TOUCH_DOLLY)return;w(t);break;case 3:if(!1===I.enablePan)return;if(F!==B.TOUCH_PAN)return;M(t);break;default:F=B.NONE}}function R(t){!1!==I.enabled&&(S(t),I.dispatchEvent(z),F=B.NONE)}function L(t){t.preventDefault()}this.object=t,this.domElement=void 0!==e?e:document,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=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return j.phi},this.getAzimuthalAngle=function(){return j.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=B.NONE},this.update=function(){var e=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),o=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var t=I.object.position;return e.copy(t).sub(I.target),e.applyQuaternion(r),j.setFromVector3(e),I.autoRotate&&F===B.NONE&&a(n()),j.theta+=W.theta,j.phi+=W.phi,j.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,j.theta)),j.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,j.phi)),j.makeSafe(),j.radius*=G,j.radius=Math.max(I.minDistance,Math.min(I.maxDistance,j.radius)),I.target.add(V),e.setFromSpherical(j),e.applyQuaternion(o),t.copy(I.target).add(e),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>U||8*(1-l.dot(I.object.quaternion))>U)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener("contextmenu",L,!1),I.domElement.removeEventListener("mousedown",E,!1),I.domElement.removeEventListener("wheel",C,!1),I.domElement.removeEventListener("touchstart",O,!1),I.domElement.removeEventListener("touchend",R,!1),I.domElement.removeEventListener("touchmove",A,!1),document.removeEventListener("mousemove",k,!1),document.removeEventListener("mouseup",T,!1),window.removeEventListener("keydown",P,!1)};var I=this,D={type:"change"},N={type:"start"},z={type:"end"},B={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=B.NONE,U=1e-6,j=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,Z=new i.Vector2,K=new i.Vector2,Q=new i.Vector2,J=new i.Vector2,$=new i.Vector2,tt=new i.Vector2,et=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),V.add(t)}}(),nt=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),V.add(t)}}(),it=function(){var t=new i.Vector3;return function(e,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var a=I.object.position;t.copy(a).sub(I.target);var o=t.length();o*=Math.tan(I.object.fov/2*Math.PI/180),et(2*e*o/r.clientHeight,I.object.matrix),nt(2*n*o/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(et(e*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),nt(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),I.enablePan=!1)}}();I.domElement.addEventListener("contextmenu",L,!1),I.domElement.addEventListener("mousedown",E,!1),I.domElement.addEventListener("wheel",C,!1),I.domElement.addEventListener("touchstart",O,!1),I.domElement.addEventListener("touchend",R,!1),I.domElement.addEventListener("touchmove",A,!1),window.addEventListener("keydown",P,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(t){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!t}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(t){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!t}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(t){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!t}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(t){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!t}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(t){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!t}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(t){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=t}}})},function(t,e,n){var i=n(12);i.MTLLoader=function(t){this.manager=void 0!==t?t:i.DefaultLoadingManager},i.MTLLoader.prototype={constructor:i.MTLLoader,load:function(t,e,n,r){var a=this,o=new i.FileLoader(this.manager);o.setPath(this.path),o.load(t,function(t){e(a.parse(t))},n,r)},setPath:function(t){this.path=t},setTexturePath:function(t){this.texturePath=t},setBaseUrl:function(t){console.warn("THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead."),this.setTexturePath(t)},setCrossOrigin:function(t){this.crossOrigin=t},setMaterialOptions:function(t){this.materialOptions=t},parse:function(t){for(var e=t.split("\n"),n={},r=/\s+/,a={},o=0;o=0?s.substring(0,l):s;u=u.toLowerCase();var c=l>=0?s.substring(l+1):"";if(c=c.trim(),"newmtl"===u)n={name:c},a[c]=n;else if(n)if("ka"===u||"kd"===u||"ks"===u){var h=c.split(r,3);n[u]=[parseFloat(h[0]),parseFloat(h[1]),parseFloat(h[2])]}else n[u]=c}}var d=new i.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return d.setCrossOrigin(this.crossOrigin),d.setManager(this.manager),d.setMaterials(a),d}},i.MTLLoader.MaterialCreator=function(t,e){this.baseUrl=t||"",this.options=e,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:i.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:i.RepeatWrapping},i.MTLLoader.MaterialCreator.prototype={constructor:i.MTLLoader.MaterialCreator,setCrossOrigin:function(t){this.crossOrigin=t},setManager:function(t){this.manager=t},setMaterials:function(t){this.materialsInfo=this.convert(t),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(t){if(!this.options)return t;var e={};for(var n in t){var i=t[n],r={};e[n]=r;for(var a in i){var o=!0,s=i[a],l=a.toLowerCase();switch(l){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(o=!1)}o&&(r[l]=s)}}return e},preload:function(){for(var t in this.materialsInfo)this.create(t)},getIndex:function(t){return this.nameLookup[t]},getAsArray:function(){var t=0;for(var e in this.materialsInfo)this.materialsArray[t]=this.create(e),this.nameLookup[e]=t,t++;return this.materialsArray},create:function(t){return void 0===this.materials[t]&&this.createMaterial_(t),this.materials[t]},createMaterial_:function(t){function e(t,e){return"string"!=typeof e||""===e?"":/^https?:\/\//i.test(e)?e:t+e}function n(t,n){if(!o[t]){var i=r.getTextureParams(n,o),a=r.loadTexture(e(r.baseUrl,i.url));a.repeat.copy(i.scale),a.offset.copy(i.offset),a.wrapS=r.wrap,a.wrapT=r.wrap,o[t]=a}}var r=this,a=this.materialsInfo[t],o={name:t,side:this.side};for(var s in a){var l=a[s];if(""!==l)switch(s.toLowerCase()){case"kd":o.color=(new i.Color).fromArray(l);break;case"ks":o.specular=(new i.Color).fromArray(l);break;case"map_kd":n("map",l);break;case"map_ks":n("specularMap",l);break;case"map_bump":case"bump":n("bumpMap",l);break;case"ns":o.shininess=parseFloat(l);break;case"d":l<1&&(o.opacity=l,o.transparent=!0);break;case"Tr":l>0&&(o.opacity=1-l,o.transparent=!0)}}return this.materials[t]=new i.MeshPhongMaterial(o),this.materials[t]},getTextureParams:function(t,e){var n,r={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},a=t.split(/\s+/);return n=a.indexOf("-bm"),n>=0&&(e.bumpScale=parseFloat(a[n+1]),a.splice(n,2)),n=a.indexOf("-s"),n>=0&&(r.scale.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),n=a.indexOf("-o"),n>=0&&(r.offset.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),r.url=a.join(" ").trim(),r},loadTexture:function(t,e,n,r,a){var o,s=i.Loader.Handlers.get(t),l=void 0!==this.manager?this.manager:i.DefaultLoadingManager;return null===s&&(s=new i.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),o=s.load(t,n,r,a),void 0!==e&&(o.mapping=e),o}}},function(t,e,n){var i=n(12);i.OBJLoader=function(t){this.manager=void 0!==t?t:i.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,normal_pattern:/^vn\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,uv_pattern:/^vt\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/,face_vertex:/^f\s+(-?\d+)\s+(-?\d+)\s+(-?\d+)(?:\s+(-?\d+))?/,face_vertex_uv:/^f\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+))?/,face_vertex_uv_normal:/^f\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)\s+(-?\d+)\/(-?\d+)\/(-?\d+)(?:\s+(-?\d+)\/(-?\d+)\/(-?\d+))?/,face_vertex_normal:/^f\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)\s+(-?\d+)\/\/(-?\d+)(?:\s+(-?\d+)\/\/(-?\d+))?/,object_pattern:/^[og]\s*(.+)?/,smoothing_pattern:/^s\s+(\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}},i.OBJLoader.prototype={constructor:i.OBJLoader,load:function(t,e,n,r){var a=this,o=new i.FileLoader(a.manager);o.setPath(this.path),o.load(t,function(t){e(a.parse(t))},n,r)},setPath:function(t){this.path=t},setMaterials:function(t){this.materials=t},_createParserState:function(){var t={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);var n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(t,e){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var i={index:this.materials.length,name:t||"",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){var e={index:"number"==typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){var e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return t&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),e}},n&&n.name&&"function"==typeof n.clone){var i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseNormalIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseUVIndex:function(t,e){var n=parseInt(t,10);return 2*(n>=0?n-1:n+e/2)},addVertex:function(t,e,n){var i=this.vertices,r=this.object.geometry.vertices;r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addVertexLine:function(t){var e=this.vertices,n=this.object.geometry.vertices;n.push(e[t+0]),n.push(e[t+1]),n.push(e[t+2])},addNormal:function(t,e,n){var i=this.normals,r=this.object.geometry.normals;r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addUV:function(t,e,n){var i=this.uvs,r=this.object.geometry.uvs;r.push(i[t+0]),r.push(i[t+1]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[n+0]),r.push(i[n+1])},addUVLine:function(t){var e=this.uvs,n=this.object.geometry.uvs;n.push(e[t+0]),n.push(e[t+1])},addFace:function(t,e,n,i,r,a,o,s,l,u,c,h){var d,f=this.vertices.length,p=this.parseVertexIndex(t,f),m=this.parseVertexIndex(e,f),g=this.parseVertexIndex(n,f);if(void 0===i?this.addVertex(p,m,g):(d=this.parseVertexIndex(i,f),this.addVertex(p,m,d),this.addVertex(m,g,d)),void 0!==r){var v=this.uvs.length;p=this.parseUVIndex(r,v),m=this.parseUVIndex(a,v),g=this.parseUVIndex(o,v),void 0===i?this.addUV(p,m,g):(d=this.parseUVIndex(s,v),this.addUV(p,m,d),this.addUV(m,g,d))}if(void 0!==l){var y=this.normals.length;p=this.parseNormalIndex(l,y),m=l===u?p:this.parseNormalIndex(u,y),g=l===c?p:this.parseNormalIndex(c,y),void 0===i?this.addNormal(p,m,g):(d=this.parseNormalIndex(h,y),this.addNormal(p,m,d),this.addNormal(m,g,d))}},addLineGeometry:function(t,e){this.object.geometry.type="Line";for(var n=this.vertices.length,i=this.uvs.length,r=0,a=t.length;r0?E.addAttribute("normal",new i.BufferAttribute(new Float32Array(w.normals),3)):E.computeVertexNormals(),w.uvs.length>0&&E.addAttribute("uv",new i.BufferAttribute(new Float32Array(w.uvs),2));for(var k=[],T=0,C=M.length;T1){for(var T=0,C=M.length;T0?s(r()):tt.y<0&&l(r()),J.copy($),I.update()}function p(t){K.set(t.clientX,t.clientY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function m(t){}function g(t){t.deltaY<0?l(r()):t.deltaY>0&&s(r()),I.update()}function v(t){switch(t.keyCode){case I.keys.UP:it(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:it(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:it(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:it(-I.keyPanSpeed,0),I.update()}}function y(t){q.set(t.touches[0].pageX,t.touches[0].pageY)}function b(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);J.set(0,i)}function x(t){Z.set(t.touches[0].pageX,t.touches[0].pageY)}function _(t){Y.set(t.touches[0].pageX,t.touches[0].pageY),X.subVectors(Y,q);var e=I.domElement===document?I.domElement.body:I.domElement;a(2*Math.PI*X.x/e.clientWidth*I.rotateSpeed),o(2*Math.PI*X.y/e.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);$.set(0,i),tt.subVectors($,J),tt.y>0?l(r()):tt.y<0&&s(r()),J.copy($),I.update()}function M(t){K.set(t.touches[0].pageX,t.touches[0].pageY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function S(t){}function E(t){if(!1!==I.enabled){if(t.preventDefault(),t.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(t),F=B.ROTATE}else if(t.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(t),F=B.DOLLY}else if(t.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;h(t),F=B.PAN}F!==B.NONE&&(document.addEventListener("mousemove",k,!1),document.addEventListener("mouseup",T,!1),I.dispatchEvent(N))}}function k(t){if(!1!==I.enabled)if(t.preventDefault(),F===B.ROTATE){if(!1===I.enableRotate)return;d(t)}else if(F===B.DOLLY){if(!1===I.enableZoom)return;f(t)}else if(F===B.PAN){if(!1===I.enablePan)return;p(t)}}function T(t){!1!==I.enabled&&(m(t),document.removeEventListener("mousemove",k,!1),document.removeEventListener("mouseup",T,!1),I.dispatchEvent(z),F=B.NONE)}function C(t){!1===I.enabled||!1===I.enableZoom||F!==B.NONE&&F!==B.ROTATE||(t.preventDefault(),t.stopPropagation(),g(t),I.dispatchEvent(N),I.dispatchEvent(z))}function P(t){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(t)}function O(t){if(!1!==I.enabled){switch(t.touches.length){case 1:if(!1===I.enableRotate)return;y(t),F=B.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(t),F=B.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;x(t),F=B.TOUCH_PAN;break;default:F=B.NONE}F!==B.NONE&&I.dispatchEvent(N)}}function A(t){if(!1!==I.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==B.TOUCH_ROTATE)return;_(t);break;case 2:if(!1===I.enableZoom)return;if(F!==B.TOUCH_DOLLY)return;w(t);break;case 3:if(!1===I.enablePan)return;if(F!==B.TOUCH_PAN)return;M(t);break;default:F=B.NONE}}function R(t){!1!==I.enabled&&(S(t),I.dispatchEvent(z),F=B.NONE)}function L(t){t.preventDefault()}this.object=t,this.domElement=void 0!==e?e:document,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=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return j.phi},this.getAzimuthalAngle=function(){return j.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=B.NONE},this.update=function(){var e=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),o=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var t=I.object.position;return e.copy(t).sub(I.target),e.applyQuaternion(r),j.setFromVector3(e),I.autoRotate&&F===B.NONE&&a(n()),j.theta+=W.theta,j.phi+=W.phi,j.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,j.theta)),j.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,j.phi)),j.makeSafe(),j.radius*=G,j.radius=Math.max(I.minDistance,Math.min(I.maxDistance,j.radius)),I.target.add(V),e.setFromSpherical(j),e.applyQuaternion(o),t.copy(I.target).add(e),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>U||8*(1-l.dot(I.object.quaternion))>U)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener("contextmenu",L,!1),I.domElement.removeEventListener("mousedown",E,!1),I.domElement.removeEventListener("wheel",C,!1),I.domElement.removeEventListener("touchstart",O,!1),I.domElement.removeEventListener("touchend",R,!1),I.domElement.removeEventListener("touchmove",A,!1),document.removeEventListener("mousemove",k,!1),document.removeEventListener("mouseup",T,!1),window.removeEventListener("keydown",P,!1)};var I=this,D={type:"change"},N={type:"start"},z={type:"end"},B={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=B.NONE,U=1e-6,j=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,Z=new i.Vector2,K=new i.Vector2,Q=new i.Vector2,J=new i.Vector2,$=new i.Vector2,tt=new i.Vector2,et=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),V.add(t)}}(),nt=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),V.add(t)}}(),it=function(){var t=new i.Vector3;return function(e,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var a=I.object.position;t.copy(a).sub(I.target);var o=t.length();o*=Math.tan(I.object.fov/2*Math.PI/180),et(2*e*o/r.clientHeight,I.object.matrix),nt(2*n*o/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(et(e*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),nt(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),I.enablePan=!1)}}();I.domElement.addEventListener("contextmenu",L,!1),I.domElement.addEventListener("mousedown",E,!1),I.domElement.addEventListener("wheel",C,!1),I.domElement.addEventListener("touchstart",O,!1),I.domElement.addEventListener("touchend",R,!1),I.domElement.addEventListener("touchmove",A,!1),window.addEventListener("keydown",P,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target}},noZoom:{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(t){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!t}},noRotate:{get:function(){return console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),!this.enableRotate},set:function(t){console.warn("THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead."),this.enableRotate=!t}},noPan:{get:function(){return console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),!this.enablePan},set:function(t){console.warn("THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead."),this.enablePan=!t}},noKeys:{get:function(){return console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),!this.enableKeys},set:function(t){console.warn("THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead."),this.enableKeys=!t}},staticMoving:{get:function(){return console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),!this.enableDamping},set:function(t){console.warn("THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead."),this.enableDamping=!t}},dynamicDampingFactor:{get:function(){return console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor},set:function(t){console.warn("THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead."),this.dampingFactor=t}}})},function(t,e){t.exports={trajectoryGraph:{title:"Trajectory",options:{legend:{display:!0},axes:{x:{labelString:"x (m)"},y:{labelString:"y (m)"}}},properties:{lines:{pose:{color:"rgba(0, 255, 0, 1)",borderWidth:0,pointRadius:0,specialMarker:"car"},real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},steerCurve:{color:"rgba(255, 206, 86, 1)",borderWidth:1,pointRadius:0,fill:!1,showLine:!0},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},speedGraph:{title:"Speed",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"speed (m/s)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},curvatureGraph:{title:"Curvature",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"Curvature (m-1)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},accelerationGraph:{title:"Acceleration",options:{legend:{display:!0},axes:{x:{labelString:"t (second)"},y:{labelString:"acceleration (m/s^2)"}}},properties:{lines:{real:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"},plan:{color:"rgba(1, 209, 193, 0.65)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:"rgba(180, 255, 180, 0.7)",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:"rgba(224, 224, 224, 0.15)",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},stationErrorGraph:{title:"Station Error",options:{legend:{display:!1},axes:{x:{labelString:"t (second)"},y:{labelString:"error (m)"}}},properties:{lines:{error:{color:"rgba(0, 106, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}}}},function(t,e){t.exports={slGraph:{title:"QP Path - sl graph",options:{legend:{display:!1},axes:{x:{min:0,max:200,labelString:"s - ref_line (m)"},y:{min:-5,max:5,labelString:"l (m)"}}},properties:{lines:{aggregatedBoundaryLow:{color:"rgba(48, 165, 255, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},aggregatedBoundaryHigh:{color:"rgba(48, 165, 255, 1)",borderWidth:2,pointRadius:0,lineTension:0,fill:!1,showLine:!0},pathLine:{color:"rgba(225, 225, 225, 0.7)",borderWidth:2,pointRadius:.5,fill:!1,showLine:!1},mapLowerBound:{color:"rgba(54, 162, 235, 0.4)",borderWidth:2,pointRadius:0,fill:"start",showLine:!0},mapUpperBound:{color:"rgba(54, 162, 235, 0.4)",borderWidth:2,pointRadius:0,fill:"end",showLine:!0},staticObstacleLowerBound:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:"start",showLine:!0},staticObstacleUpperBound:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:"end",showLine:!0},dynamicObstacleLowerBound:{color:"rgba(255, 206, 86, 0.2)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},dynamicObstacleUpperBound:{color:"rgba(255, 206, 86, 0.2)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},stGraph:{options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-10,max:220,labelString:"s (m)"}}},properties:{box:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0,showText:!0,cubicInterpolationMode:"monotone",lineTension:0},lines:{curveLine:{color:"rgba(225, 225, 225, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelCruise:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelFollow:{color:"rgba(255, 206, 86, 0.5)",borderWidth:2,pointRadius:1,fill:!1,showLine:!1}}}},stSpeedGraph:{title:"QP Speed - sv graph",options:{legend:{display:!0},axes:{x:{min:-10,max:220,labelString:"s - qp_path(m)"},y:{min:-1,max:40,labelString:"v (m/s)"}}},properties:{lines:{upperConstraint:{color:"rgba(54, 162, 235, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},lowerConstraint:{color:"rgba(54, 162, 235, 1)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},planned:{color:"rgba(225, 225, 225, 0.5)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},limit:{color:"rgba(255, 0, 0, 0.5)",borderWidth:4,pointRadius:0,fill:!1,showLine:!0}}}},speedGraph:{title:"Planning Speed",options:{legend:{display:!0},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-1,max:40,labelString:"speed (m/s)"}}},properties:{lines:{finalSpeed:{color:"rgba(255, 0, 0, 0.8)",borderWidth:1,pointRadius:1,fill:!1,showLine:!1},DpStSpeedOptimizer:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplineStSpeedOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},accelerationGraph:{title:"Planning Acceleration",options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:"t (second)"},y:{min:-4,max:3.5,labelString:"acceleration (m/s^2)"}}},properties:{lines:{acceleration:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:"ture"}}}},kappaGraph:{title:"Planning Kappa",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{min:-.2,max:.2,labelString:"kappa"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},DpPolyPathOptimizer:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},dkappaGraph:{title:"Planning Dkappa",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{min:-.02,max:.02,labelString:"dkappa"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:"rgba(54, 162, 235, 1)",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},thetaGraph:{title:"Planning theta",options:{legend:{display:!0},axes:{x:{labelString:"s (m)"},y:{labelString:"theta"}}},properties:{lines:{ReferenceLine:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},dpPolyGraph:{title:"DP Path",options:{legend:{display:!1},axes:{x:{labelString:"s (m)"},y:{labelString:"l (m)"}}},properties:{lines:{minCostPoint:{color:"rgba(255, 0, 0, 0.8)",borderWidth:2,pointRadius:2,fill:!1,showLine:!0},sampleLayer:{color:"rgba(225, 225, 225, 0.5)",borderWidth:0,pointRadius:4,fill:!1,showLine:!1}}}},latencyGraph:{title:"Latency",options:{legend:{display:!1},axes:{x:{labelString:"timestampe (sec)"},y:{labelString:"latency (ms)"}}},properties:{lines:{planning:{color:"rgba(27, 249, 105, 0.5)",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}}}},function(t,e){t.exports={name:"proj4",version:"2.4.4",description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",main:"dist/proj4-src.js",module:"lib/index.js",directories:{test:"test",doc:"docs"},scripts:{build:"grunt","build:tmerc":"grunt build:tmerc",test:"npm run build && istanbul test _mocha test/test.js"},repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},author:"",license:"MIT",devDependencies:{chai:"~1.8.1",curl:"git://github.com/cujojs/curl.git",grunt:"^1.0.1","grunt-cli":"~0.1.13","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~1.1.0","grunt-contrib-uglify":"~0.11.1","grunt-mocha-phantomjs":"~0.4.0","grunt-rollup":"^1.0.1",istanbul:"~0.2.4",mocha:"~1.17.1",rollup:"^0.41.4","rollup-plugin-json":"^2.0.1","rollup-plugin-node-resolve":"^2.0.0",tin:"~0.4.0"},dependencies:{mgrs:"1.0.0","wkt-parser":"^1.2.0"}}},function(t,e,n){var i=n(236);"string"==typeof i&&(i=[[t.i,i,""]]);var r={};r.transform=void 0;n(158)(i,r);i.locals&&(t.exports=i.locals)},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}}]); //# sourceMappingURL=app.bundle.js.map \ No newline at end of file diff --git a/modules/dreamview/frontend/dist/app.bundle.js.map b/modules/dreamview/frontend/dist/app.bundle.js.map index 9a7e9fd86e..ce52b7207a 100644 --- a/modules/dreamview/frontend/dist/app.bundle.js.map +++ b/modules/dreamview/frontend/dist/app.bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"app.bundle.js","sources":["webpack:///app.bundle.js"],"sourcesContent":["!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"/\",e(e.s=165)}([function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}},function(t,e,n){\"use strict\";e.__esModule=!0;var i=n(19),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var n=0;n6?l-6:0),c=6;c>\",s=s||r,null==i[r]){if(e){var n=null===i[r]?\"null\":\"undefined\";return new Error(\"The \"+o+\" `\"+s+\"` is marked as required in `\"+a+\"`, but its value is `\"+n+\"`.\")}return null}return t.apply(void 0,[i,r,a,o,s].concat(u))})}var i=e.bind(null,!1);return i.isRequired=e.bind(null,!0),i}function r(t,e){return\"symbol\"===t||(\"Symbol\"===e[\"@@toStringTag\"]||\"function\"==typeof Symbol&&e instanceof Symbol)}function a(t){var e=void 0===t?\"undefined\":k(t);return Array.isArray(t)?\"array\":t instanceof RegExp?\"object\":r(e,t)?\"symbol\":e}function o(t){var e=a(t);if(\"object\"===e){if(t instanceof Date)return\"date\";if(t instanceof RegExp)return\"regexp\"}return e}function s(t,e){return i(function(i,r,s,l,u){return n.i(w.untracked)(function(){if(t&&a(i[r])===e.toLowerCase())return null;var n=void 0;switch(e){case\"Array\":n=w.isObservableArray;break;case\"Object\":n=w.isObservableObject;break;case\"Map\":n=w.isObservableMap;break;default:throw new Error(\"Unexpected mobxType: \"+e)}var l=i[r];if(!n(l)){var c=o(l),h=t?\" or javascript `\"+e.toLowerCase()+\"`\":\"\";return new Error(\"Invalid prop `\"+u+\"` of type `\"+c+\"` supplied to `\"+s+\"`, expected `mobx.Observable\"+e+\"`\"+h+\".\")}return null})})}function l(t,e){return i(function(i,r,a,o,l){for(var u=arguments.length,c=Array(u>5?u-5:0),h=5;h2&&void 0!==arguments[2]&&arguments[2],i=t[e],r=it[e],a=i?!0===n?function(){r.apply(this,arguments),i.apply(this,arguments)}:function(){i.apply(this,arguments),r.apply(this,arguments)}:r;t[e]=a}function y(t,e){if(b(t,e))return!0;if(\"object\"!==(void 0===t?\"undefined\":k(t))||null===t||\"object\"!==(void 0===e?\"undefined\":k(e))||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var r=0;r\",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,r=!1,a=!1;t.call(this,\"props\"),t.call(this,\"state\");var o=this.render.bind(this),s=null,l=!1,u=function(){return s=new w.Reaction(n+\"#\"+i+\".render()\",function(){if(!l&&(l=!0,\"function\"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{a=!0,r||M.Component.prototype.forceUpdate.call(e),t=!1}finally{a=!1,t&&s.dispose()}}}),s.reactComponent=e,c.$mobx=s,e.render=c,c()},c=function(){l=!1;var t=void 0,n=void 0;if(s.track(function(){Q&&(e.__$mobRenderStart=Date.now());try{n=w.extras.allowStateChanges(!1,o)}catch(e){t=e}Q&&(e.__$mobRenderEnd=Date.now())}),t)throw nt.emit(t),t;return n};this.render=u}},componentWillUnmount:function(){if(!0!==J&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,Q)){var t=f(this);t&&tt&&tt.delete(t),et.emit({event:\"destroy\",component:this,node:t})}},componentDidMount:function(){Q&&p(this)},componentDidUpdate:function(){Q&&p(this)},shouldComponentUpdate:function(t,e){return J&&console.warn(\"[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side.\"),this.state!==e||!y(this.props,t)}},rt=x(function(t){var e=t.children,n=t.inject,i=t.render,r=e||i;if(void 0===r)return null;if(!n)return r();var a=d(n)(r);return S.a.createElement(a,null)});rt.displayName=\"Observer\";var at=function(t,e,n,i,r){var a=\"children\"===e?\"render\":\"children\";if(\"function\"==typeof t[e]&&\"function\"==typeof t[a])return new Error(\"Invalid prop,do not use children and render in the same time in`\"+n);if(\"function\"!=typeof t[e]&&\"function\"!=typeof t[a])return new Error(\"Invalid prop `\"+r+\"` of type `\"+k(t[e])+\"` supplied to `\"+n+\"`, expected `function`.\")};rt.propTypes={render:at,children:at};var ot,st,lt={children:!0,key:!0,ref:!0},ut=(st=ot=function(t){function e(){return T(this,e),O(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return P(e,t),C(e,[{key:\"render\",value:function(){return M.Children.only(this.props.children)}},{key:\"getChildContext\",value:function(){var t={},e=this.context.mobxStores;if(e)for(var n in e)t[n]=e[n];for(var i in this.props)lt[i]||\"suppressChangedStoreWarning\"===i||(t[i]=this.props[i]);return{mobxStores:t}}},{key:\"componentWillReceiveProps\",value:function(t){if(Object.keys(t).length!==Object.keys(this.props).length&&console.warn(\"MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children\"),!t.suppressChangedStoreWarning)for(var e in t)lt[e]||this.props[e]===t[e]||console.warn(\"MobX Provider: Provided store '\"+e+\"' has changed. Please avoid replacing stores as the change might not propagate to all children\")}}]),e}(M.Component),ot.contextTypes={mobxStores:q},ot.childContextTypes={mobxStores:q.isRequired},st);if(!M.Component)throw new Error(\"mobx-react requires React to be available\");if(!w.extras)throw new Error(\"mobx-react requires mobx to be available\");\"function\"==typeof E.unstable_batchedUpdates&&w.extras.setReactionScheduler(E.unstable_batchedUpdates);var ct=function(t){return nt.on(t)};if(\"object\"===(\"undefined\"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?\"undefined\":k(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var ht={spy:w.spy,extras:w.extras},dt={renderReporter:et,componentByNodeRegistery:tt,trackComponents:m};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(dt,ht)}},function(t,e,n){\"use strict\";var i=n(6);t.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},function(t,e,n){\"use strict\";var i=n(7),r=n(57);e.a=function(t){return Math.abs(t)<=i.c?t:t-n.i(r.a)(t)*i.e}},function(t,e){var n=t.exports={version:\"2.5.3\"};\"number\"==typeof __e&&(__e=n)},function(t,e,n){\"use strict\";function i(){}function r(t,e){this.x=t||0,this.y=e||0}function a(t,e,n,i,o,s,l,u,c,h){Object.defineProperty(this,\"id\",{value:ps++}),this.uuid=fs.generateUUID(),this.name=\"\",this.image=void 0!==t?t:a.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:a.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:so,this.wrapT=void 0!==i?i:so,this.magFilter=void 0!==o?o:fo,this.minFilter=void 0!==s?s:mo,this.anisotropy=void 0!==c?c:1,this.format=void 0!==l?l:Oo,this.type=void 0!==u?u:go,this.offset=new r(0,0),this.repeat=new r(1,1),this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==h?h:is,this.version=0,this.onUpdate=null}function o(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1}function s(t,e,n){this.uuid=fs.generateUUID(),this.width=t,this.height=e,this.scissor=new o(0,0,t,e),this.scissorTest=!1,this.viewport=new o(0,0,t,e),n=n||{},void 0===n.minFilter&&(n.minFilter=fo),this.texture=new a(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),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 l(t,e,n){s.call(this,t,e,n),this.activeCubeFace=0,this.activeMipMapLevel=0}function u(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1}function c(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function h(){this.elements=new Float32Array([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 d(t,e,n,i,r,o,s,l,u,c){t=void 0!==t?t:[],e=void 0!==e?e:$a,a.call(this,t,e,n,i,r,o,s,l,u,c),this.flipY=!1}function f(){this.seq=[],this.map={}}function p(t,e,n){var i=t[0];if(i<=0||i>0)return t;var r=e*n,a=vs[r];if(void 0===a&&(a=new Float32Array(r),vs[r]=a),0!==e){i.toArray(a,0);for(var o=1,s=0;o!==e;++o)s+=n,t[o].toArray(a,s)}return a}function m(t,e){var n=ys[e];void 0===n&&(n=new Int32Array(e),ys[e]=n);for(var i=0;i!==e;++i)n[i]=t.allocTextureUnit();return n}function g(t,e){t.uniform1f(this.addr,e)}function v(t,e){t.uniform1i(this.addr,e)}function y(t,e){void 0===e.x?t.uniform2fv(this.addr,e):t.uniform2f(this.addr,e.x,e.y)}function b(t,e){void 0!==e.x?t.uniform3f(this.addr,e.x,e.y,e.z):void 0!==e.r?t.uniform3f(this.addr,e.r,e.g,e.b):t.uniform3fv(this.addr,e)}function x(t,e){void 0===e.x?t.uniform4fv(this.addr,e):t.uniform4f(this.addr,e.x,e.y,e.z,e.w)}function _(t,e){t.uniformMatrix2fv(this.addr,!1,e.elements||e)}function w(t,e){t.uniformMatrix3fv(this.addr,!1,e.elements||e)}function M(t,e){t.uniformMatrix4fv(this.addr,!1,e.elements||e)}function S(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),n.setTexture2D(e||ms,i)}function E(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),n.setTextureCube(e||gs,i)}function k(t,e){t.uniform2iv(this.addr,e)}function T(t,e){t.uniform3iv(this.addr,e)}function C(t,e){t.uniform4iv(this.addr,e)}function P(t){switch(t){case 5126:return g;case 35664:return y;case 35665:return b;case 35666:return x;case 35674:return _;case 35675:return w;case 35676:return M;case 35678:return S;case 35680:return E;case 5124:case 35670:return v;case 35667:case 35671:return k;case 35668:case 35672:return T;case 35669:case 35673:return C}}function O(t,e){t.uniform1fv(this.addr,e)}function A(t,e){t.uniform1iv(this.addr,e)}function R(t,e){t.uniform2fv(this.addr,p(e,this.size,2))}function L(t,e){t.uniform3fv(this.addr,p(e,this.size,3))}function I(t,e){t.uniform4fv(this.addr,p(e,this.size,4))}function D(t,e){t.uniformMatrix2fv(this.addr,!1,p(e,this.size,4))}function N(t,e){t.uniformMatrix3fv(this.addr,!1,p(e,this.size,9))}function z(t,e){t.uniformMatrix4fv(this.addr,!1,p(e,this.size,16))}function B(t,e,n){var i=e.length,r=m(n,i);t.uniform1iv(this.addr,r);for(var a=0;a!==i;++a)n.setTexture2D(e[a]||ms,r[a])}function F(t,e,n){var i=e.length,r=m(n,i);t.uniform1iv(this.addr,r);for(var a=0;a!==i;++a)n.setTextureCube(e[a]||gs,r[a])}function U(t){switch(t){case 5126:return O;case 35664:return R;case 35665:return L;case 35666:return I;case 35674:return D;case 35675:return N;case 35676:return z;case 35678:return B;case 35680:return F;case 5124:case 35670:return A;case 35667:case 35671:return k;case 35668:case 35672:return T;case 35669:case 35673:return C}}function j(t,e,n){this.id=t,this.addr=n,this.setValue=P(e.type)}function W(t,e,n){this.id=t,this.addr=n,this.size=e.size,this.setValue=U(e.type)}function G(t){this.id=t,f.call(this)}function V(t,e){t.seq.push(e),t.map[e.id]=e}function H(t,e,n){var i=t.name,r=i.length;for(bs.lastIndex=0;;){var a=bs.exec(i),o=bs.lastIndex,s=a[1],l=\"]\"===a[2],u=a[3];if(l&&(s|=0),void 0===u||\"[\"===u&&o+2===r){V(n,void 0===u?new j(s,t,e):new W(s,t,e));break}var c=n.map,h=c[s];void 0===h&&(h=new G(s),V(n,h)),n=h}}function Y(t,e,n){f.call(this),this.renderer=n;for(var i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),r=0;r.001&&A.scale>.001&&(M.x=A.x,M.y=A.y,M.z=A.z,_=A.size*A.scale/g.w,w.x=_*y,w.y=_,p.uniform3f(h.screenPosition,M.x,M.y,M.z),p.uniform2f(h.scale,w.x,w.y),p.uniform1f(h.rotation,A.rotation),p.uniform1f(h.opacity,A.opacity),p.uniform3f(h.color,A.color.r,A.color.g,A.color.b),m.setBlending(A.blending,A.blendEquation,A.blendSrc,A.blendDst),t.setTexture2D(A.texture,1),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0))}}}m.enable(p.CULL_FACE),m.enable(p.DEPTH_TEST),m.setDepthWrite(!0),t.resetGLState()}}}function Q(t,e){function n(){var t=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),e=new Uint16Array([0,1,2,0,2,3]);o=p.createBuffer(),s=p.createBuffer(),p.bindBuffer(p.ARRAY_BUFFER,o),p.bufferData(p.ARRAY_BUFFER,t,p.STATIC_DRAW),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.bufferData(p.ELEMENT_ARRAY_BUFFER,e,p.STATIC_DRAW),l=i(),h={position:p.getAttribLocation(l,\"position\"),uv:p.getAttribLocation(l,\"uv\")},d={uvOffset:p.getUniformLocation(l,\"uvOffset\"),uvScale:p.getUniformLocation(l,\"uvScale\"),rotation:p.getUniformLocation(l,\"rotation\"),scale:p.getUniformLocation(l,\"scale\"),color:p.getUniformLocation(l,\"color\"),map:p.getUniformLocation(l,\"map\"),opacity:p.getUniformLocation(l,\"opacity\"),modelViewMatrix:p.getUniformLocation(l,\"modelViewMatrix\"),projectionMatrix:p.getUniformLocation(l,\"projectionMatrix\"),fogType:p.getUniformLocation(l,\"fogType\"),fogDensity:p.getUniformLocation(l,\"fogDensity\"),fogNear:p.getUniformLocation(l,\"fogNear\"),fogFar:p.getUniformLocation(l,\"fogFar\"),fogColor:p.getUniformLocation(l,\"fogColor\"),alphaTest:p.getUniformLocation(l,\"alphaTest\")};var n=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");n.width=8,n.height=8;var r=n.getContext(\"2d\");r.fillStyle=\"white\",r.fillRect(0,0,8,8),f=new a(n),f.needsUpdate=!0}function i(){var e=p.createProgram(),n=p.createShader(p.VERTEX_SHADER),i=p.createShader(p.FRAGMENT_SHADER);return p.shaderSource(n,[\"precision \"+t.getPrecision()+\" float;\",\"uniform mat4 modelViewMatrix;\",\"uniform mat4 projectionMatrix;\",\"uniform float rotation;\",\"uniform vec2 scale;\",\"uniform vec2 uvOffset;\",\"uniform vec2 uvScale;\",\"attribute vec2 position;\",\"attribute vec2 uv;\",\"varying vec2 vUV;\",\"void main() {\",\"vUV = uvOffset + uv * uvScale;\",\"vec2 alignedPosition = position * scale;\",\"vec2 rotatedPosition;\",\"rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\",\"rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\",\"vec4 finalPosition;\",\"finalPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\",\"finalPosition.xy += rotatedPosition;\",\"finalPosition = projectionMatrix * finalPosition;\",\"gl_Position = finalPosition;\",\"}\"].join(\"\\n\")),p.shaderSource(i,[\"precision \"+t.getPrecision()+\" float;\",\"uniform vec3 color;\",\"uniform sampler2D map;\",\"uniform float opacity;\",\"uniform int fogType;\",\"uniform vec3 fogColor;\",\"uniform float fogDensity;\",\"uniform float fogNear;\",\"uniform float fogFar;\",\"uniform float alphaTest;\",\"varying vec2 vUV;\",\"void main() {\",\"vec4 texture = texture2D( map, vUV );\",\"if ( texture.a < alphaTest ) discard;\",\"gl_FragColor = vec4( color * texture.xyz, texture.a * opacity );\",\"if ( fogType > 0 ) {\",\"float depth = gl_FragCoord.z / gl_FragCoord.w;\",\"float fogFactor = 0.0;\",\"if ( fogType == 1 ) {\",\"fogFactor = smoothstep( fogNear, fogFar, depth );\",\"} else {\",\"const float LOG2 = 1.442695;\",\"fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );\",\"fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );\",\"}\",\"gl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );\",\"}\",\"}\"].join(\"\\n\")),p.compileShader(n),p.compileShader(i),p.attachShader(e,n),p.attachShader(e,i),p.linkProgram(e),e}function r(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:e.id-t.id}var o,s,l,h,d,f,p=t.context,m=t.state,g=new c,v=new u,y=new c;this.render=function(i,a){if(0!==e.length){void 0===l&&n(),p.useProgram(l),m.initAttributes(),m.enableAttribute(h.position),m.enableAttribute(h.uv),m.disableUnusedAttributes(),m.disable(p.CULL_FACE),m.enable(p.BLEND),p.bindBuffer(p.ARRAY_BUFFER,o),p.vertexAttribPointer(h.position,2,p.FLOAT,!1,16,0),p.vertexAttribPointer(h.uv,2,p.FLOAT,!1,16,8),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.uniformMatrix4fv(d.projectionMatrix,!1,a.projectionMatrix.elements),m.activeTexture(p.TEXTURE0),p.uniform1i(d.map,0);var u=0,c=0,b=i.fog;b?(p.uniform3f(d.fogColor,b.color.r,b.color.g,b.color.b),b.isFog?(p.uniform1f(d.fogNear,b.near),p.uniform1f(d.fogFar,b.far),p.uniform1i(d.fogType,1),u=1,c=1):b.isFogExp2&&(p.uniform1f(d.fogDensity,b.density),p.uniform1i(d.fogType,2),u=2,c=2)):(p.uniform1i(d.fogType,0),u=0,c=0);for(var x=0,_=e.length;x<_;x++){var w=e[x];w.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,w.matrixWorld),w.z=-w.modelViewMatrix.elements[14]}e.sort(r);for(var M=[],x=0,_=e.length;x<_;x++){var w=e[x],S=w.material;if(!1!==S.visible){p.uniform1f(d.alphaTest,S.alphaTest),p.uniformMatrix4fv(d.modelViewMatrix,!1,w.modelViewMatrix.elements),w.matrixWorld.decompose(g,v,y),M[0]=y.x,M[1]=y.y;var E=0;i.fog&&S.fog&&(E=c),u!==E&&(p.uniform1i(d.fogType,E),u=E),null!==S.map?(p.uniform2f(d.uvOffset,S.map.offset.x,S.map.offset.y),p.uniform2f(d.uvScale,S.map.repeat.x,S.map.repeat.y)):(p.uniform2f(d.uvOffset,0,0),p.uniform2f(d.uvScale,1,1)),p.uniform1f(d.opacity,S.opacity),p.uniform3f(d.color,S.color.r,S.color.g,S.color.b),p.uniform1f(d.rotation,S.rotation),p.uniform2fv(d.scale,M),m.setBlending(S.blending,S.blendEquation,S.blendSrc,S.blendDst),m.setDepthTest(S.depthTest),m.setDepthWrite(S.depthWrite),S.map?t.setTexture2D(S.map,0):t.setTexture2D(f,0),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0)}}m.enable(p.CULL_FACE),t.resetGLState()}}}function J(){Object.defineProperty(this,\"id\",{value:Es++}),this.uuid=fs.generateUUID(),this.name=\"\",this.type=\"Material\",this.fog=!0,this.lights=!0,this.blending=ma,this.side=oa,this.shading=ca,this.vertexColors=ha,this.opacity=1,this.transparent=!1,this.blendSrc=Pa,this.blendDst=Oa,this.blendEquation=xa,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=Fa,this.depthTest=!0,this.depthWrite=!0,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.alphaTest=0,this.premultipliedAlpha=!1,this.overdraw=0,this.visible=!0,this._needsUpdate=!0}function $(t){J.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,void 0!==t&&(void 0!==t.attributes&&console.error(\"THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead.\"),this.setValues(t))}function tt(t){J.call(this),this.type=\"MeshDepthMaterial\",this.depthPacking=hs,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(t)}function et(t,e){this.min=void 0!==t?t:new c(1/0,1/0,1/0),this.max=void 0!==e?e:new c(-1/0,-1/0,-1/0)}function nt(t,e){this.center=void 0!==t?t:new c,this.radius=void 0!==e?e:0}function it(){this.elements=new Float32Array([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.\")}function rt(t,e){this.normal=void 0!==t?t:new c(1,0,0),this.constant=void 0!==e?e:0}function at(t,e,n,i,r,a){this.planes=[void 0!==t?t:new rt,void 0!==e?e:new rt,void 0!==n?n:new rt,void 0!==i?i:new rt,void 0!==r?r:new rt,void 0!==a?a:new rt]}function ot(t,e,n,i){function a(e,n,i,r){var a=e.geometry,o=null,s=S,l=e.customDepthMaterial;if(i&&(s=E,l=e.customDistanceMaterial),l)o=l;else{var u=!1;n.morphTargets&&(a&&a.isBufferGeometry?u=a.morphAttributes&&a.morphAttributes.position&&a.morphAttributes.position.length>0:a&&a.isGeometry&&(u=a.morphTargets&&a.morphTargets.length>0));var c=e.isSkinnedMesh&&n.skinning,h=0;u&&(h|=_),c&&(h|=w),o=s[h]}if(t.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var d=o.uuid,f=n.uuid,p=k[d];void 0===p&&(p={},k[d]=p);var m=p[f];void 0===m&&(m=o.clone(),p[f]=m),o=m}o.visible=n.visible,o.wireframe=n.wireframe;var g=n.side;return B.renderSingleSided&&g==la&&(g=oa),B.renderReverseSided&&(g===oa?g=sa:g===sa&&(g=oa)),o.side=g,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,i&&void 0!==o.uniforms.lightPos&&o.uniforms.lightPos.value.copy(r),o}function l(t,e,n){if(!1!==t.visible){if(0!=(t.layers.mask&e.layers.mask)&&(t.isMesh||t.isLine||t.isPoints)&&t.castShadow&&(!1===t.frustumCulled||!0===f.intersectsObject(t))){!0===t.material.visible&&(t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),x.push(t))}for(var i=t.children,r=0,a=i.length;rn&&(n=t[e]);return n}function Tt(){return Ts++}function Ct(){Object.defineProperty(this,\"id\",{value:Tt()}),this.uuid=fs.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 Pt(){Object.defineProperty(this,\"id\",{value:Tt()}),this.uuid=fs.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}}function Ot(t,e){ct.call(this),this.type=\"Mesh\",this.geometry=void 0!==t?t:new Pt,this.material=void 0!==e?e:new pt({color:16777215*Math.random()}),this.drawMode=ts,this.updateMorphTargets()}function At(t,e,n,i,r,a){Ct.call(this),this.type=\"BoxGeometry\",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:a},this.fromBufferGeometry(new Rt(t,e,n,i,r,a)),this.mergeVertices()}function Rt(t,e,n,i,r,a){function o(t,e,n,i,r,a,o,m,g,v,y){var b,x,_=a/g,w=o/v,M=a/2,S=o/2,E=m/2,k=g+1,T=v+1,C=0,P=0,O=new c;for(x=0;x0?1:-1,h.push(O.x,O.y,O.z),d.push(b/g),d.push(1-x/v),C+=1}}for(x=0;x\");return Jt(n)}var n=/#include +<([\\w\\d.]+)>/g;return t.replace(n,e)}function $t(t){function e(t,e,n,i){for(var r=\"\",a=parseInt(e);a0?t.gammaFactor:1,g=qt(a,i,t.extensions),v=Xt(o),y=r.createProgram();n.isRawShaderMaterial?(f=[v,\"\\n\"].filter(Kt).join(\"\\n\"),p=[g,v,\"\\n\"].filter(Kt).join(\"\\n\")):(f=[\"precision \"+i.precision+\" float;\",\"precision \"+i.precision+\" int;\",\"#define SHADER_NAME \"+n.__webglShader.name,v,i.supportsVertexTextures?\"#define VERTEX_TEXTURES\":\"\",\"#define GAMMA_FACTOR \"+m,\"#define MAX_BONES \"+i.maxBones,i.useFog&&i.fog?\"#define USE_FOG\":\"\",i.useFog&&i.fogExp?\"#define FOG_EXP2\":\"\",i.map?\"#define USE_MAP\":\"\",i.envMap?\"#define USE_ENVMAP\":\"\",i.envMap?\"#define \"+h:\"\",i.lightMap?\"#define USE_LIGHTMAP\":\"\",i.aoMap?\"#define USE_AOMAP\":\"\",i.emissiveMap?\"#define USE_EMISSIVEMAP\":\"\",i.bumpMap?\"#define USE_BUMPMAP\":\"\",i.normalMap?\"#define USE_NORMALMAP\":\"\",i.displacementMap&&i.supportsVertexTextures?\"#define USE_DISPLACEMENTMAP\":\"\",i.specularMap?\"#define USE_SPECULARMAP\":\"\",i.roughnessMap?\"#define USE_ROUGHNESSMAP\":\"\",i.metalnessMap?\"#define USE_METALNESSMAP\":\"\",i.alphaMap?\"#define USE_ALPHAMAP\":\"\",i.vertexColors?\"#define USE_COLOR\":\"\",i.flatShading?\"#define FLAT_SHADED\":\"\",i.skinning?\"#define USE_SKINNING\":\"\",i.useVertexTexture?\"#define BONE_TEXTURE\":\"\",i.morphTargets?\"#define USE_MORPHTARGETS\":\"\",i.morphNormals&&!1===i.flatShading?\"#define USE_MORPHNORMALS\":\"\",i.doubleSided?\"#define DOUBLE_SIDED\":\"\",i.flipSided?\"#define FLIP_SIDED\":\"\",\"#define NUM_CLIPPING_PLANES \"+i.numClippingPlanes,i.shadowMapEnabled?\"#define USE_SHADOWMAP\":\"\",i.shadowMapEnabled?\"#define \"+u:\"\",i.sizeAttenuation?\"#define USE_SIZEATTENUATION\":\"\",i.logarithmicDepthBuffer?\"#define USE_LOGDEPTHBUF\":\"\",i.logarithmicDepthBuffer&&t.extensions.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(Kt).join(\"\\n\"),p=[g,\"precision \"+i.precision+\" float;\",\"precision \"+i.precision+\" int;\",\"#define SHADER_NAME \"+n.__webglShader.name,v,i.alphaTest?\"#define ALPHATEST \"+i.alphaTest:\"\",\"#define GAMMA_FACTOR \"+m,i.useFog&&i.fog?\"#define USE_FOG\":\"\",i.useFog&&i.fogExp?\"#define FOG_EXP2\":\"\",i.map?\"#define USE_MAP\":\"\",i.envMap?\"#define USE_ENVMAP\":\"\",i.envMap?\"#define \"+c:\"\",i.envMap?\"#define \"+h:\"\",i.envMap?\"#define \"+d:\"\",i.lightMap?\"#define USE_LIGHTMAP\":\"\",i.aoMap?\"#define USE_AOMAP\":\"\",i.emissiveMap?\"#define USE_EMISSIVEMAP\":\"\",i.bumpMap?\"#define USE_BUMPMAP\":\"\",i.normalMap?\"#define USE_NORMALMAP\":\"\",i.specularMap?\"#define USE_SPECULARMAP\":\"\",i.roughnessMap?\"#define USE_ROUGHNESSMAP\":\"\",i.metalnessMap?\"#define USE_METALNESSMAP\":\"\",i.alphaMap?\"#define USE_ALPHAMAP\":\"\",i.vertexColors?\"#define USE_COLOR\":\"\",i.gradientMap?\"#define USE_GRADIENTMAP\":\"\",i.flatShading?\"#define FLAT_SHADED\":\"\",i.doubleSided?\"#define DOUBLE_SIDED\":\"\",i.flipSided?\"#define FLIP_SIDED\":\"\",\"#define NUM_CLIPPING_PLANES \"+i.numClippingPlanes,\"#define UNION_CLIPPING_PLANES \"+(i.numClippingPlanes-i.numClipIntersection),i.shadowMapEnabled?\"#define USE_SHADOWMAP\":\"\",i.shadowMapEnabled?\"#define \"+u:\"\",i.premultipliedAlpha?\"#define PREMULTIPLIED_ALPHA\":\"\",i.physicallyCorrectLights?\"#define PHYSICALLY_CORRECT_LIGHTS\":\"\",i.logarithmicDepthBuffer?\"#define USE_LOGDEPTHBUF\":\"\",i.logarithmicDepthBuffer&&t.extensions.get(\"EXT_frag_depth\")?\"#define USE_LOGDEPTHBUF_EXT\":\"\",i.envMap&&t.extensions.get(\"EXT_shader_texture_lod\")?\"#define TEXTURE_LOD_EXT\":\"\",\"uniform mat4 viewMatrix;\",\"uniform vec3 cameraPosition;\",i.toneMapping!==qa?\"#define TONE_MAPPING\":\"\",i.toneMapping!==qa?_s.tonemapping_pars_fragment:\"\",i.toneMapping!==qa?Yt(\"toneMapping\",i.toneMapping):\"\",i.outputEncoding||i.mapEncoding||i.envMapEncoding||i.emissiveMapEncoding?_s.encodings_pars_fragment:\"\",i.mapEncoding?Vt(\"mapTexelToLinear\",i.mapEncoding):\"\",i.envMapEncoding?Vt(\"envMapTexelToLinear\",i.envMapEncoding):\"\",i.emissiveMapEncoding?Vt(\"emissiveMapTexelToLinear\",i.emissiveMapEncoding):\"\",i.outputEncoding?Ht(\"linearToOutputTexel\",i.outputEncoding):\"\",i.depthPacking?\"#define DEPTH_PACKING \"+n.depthPacking:\"\",\"\\n\"].filter(Kt).join(\"\\n\")),s=Jt(s,i),s=Qt(s,i),l=Jt(l,i),l=Qt(l,i),n.isShaderMaterial||(s=$t(s),l=$t(l));var b=f+s,x=p+l,_=Wt(r,r.VERTEX_SHADER,b),w=Wt(r,r.FRAGMENT_SHADER,x);r.attachShader(y,_),r.attachShader(y,w),void 0!==n.index0AttributeName?r.bindAttribLocation(y,0,n.index0AttributeName):!0===i.morphTargets&&r.bindAttribLocation(y,0,\"position\"),r.linkProgram(y);var M=r.getProgramInfoLog(y),S=r.getShaderInfoLog(_),E=r.getShaderInfoLog(w),k=!0,T=!0;!1===r.getProgramParameter(y,r.LINK_STATUS)?(k=!1,console.error(\"THREE.WebGLProgram: shader error: \",r.getError(),\"gl.VALIDATE_STATUS\",r.getProgramParameter(y,r.VALIDATE_STATUS),\"gl.getProgramInfoLog\",M,S,E)):\"\"!==M?console.warn(\"THREE.WebGLProgram: gl.getProgramInfoLog()\",M):\"\"!==S&&\"\"!==E||(T=!1),T&&(this.diagnostics={runnable:k,material:n,programLog:M,vertexShader:{log:S,prefix:f},fragmentShader:{log:E,prefix:p}}),r.deleteShader(_),r.deleteShader(w);var C;this.getUniforms=function(){return void 0===C&&(C=new Y(r,y,t)),C};var P;return this.getAttributes=function(){return void 0===P&&(P=Zt(r,y)),P},this.destroy=function(){r.deleteProgram(y),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.id=Cs++,this.code=e,this.usedTimes=1,this.program=y,this.vertexShader=_,this.fragmentShader=w,this}function ee(t,e){function n(t){if(e.floatVertexTextures&&t&&t.skeleton&&t.skeleton.useVertexTexture)return 1024;var n=e.maxVertexUniforms,i=Math.floor((n-20)/4),r=i;return void 0!==t&&t&&t.isSkinnedMesh&&(r=Math.min(t.skeleton.bones.length,r))0,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:r.premultipliedAlpha,alphaTest:r.alphaTest,doubleSided:r.side===la,flipSided:r.side===sa,depthPacking:void 0!==r.depthPacking&&r.depthPacking}},this.getProgramCode=function(t,e){var n=[];if(e.shaderID?n.push(e.shaderID):(n.push(t.fragmentShader),n.push(t.vertexShader)),void 0!==t.defines)for(var i in t.defines)n.push(i),n.push(t.defines[i]);for(var r=0;r65535?wt:xt)(a,1);return r(p,t.ELEMENT_ARRAY_BUFFER),i.wireframe=p,p}var c=new ne(t,e,n);return{getAttributeBuffer:s,getAttributeProperties:l,getWireframeAttribute:u,update:i}}function re(t,e,n,i,r,a,o){function s(t,e){if(t.width>e||t.height>e){var n=e/Math.max(t.width,t.height),i=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");i.width=Math.floor(t.width*n),i.height=Math.floor(t.height*n);return i.getContext(\"2d\").drawImage(t,0,0,t.width,t.height,0,0,i.width,i.height),console.warn(\"THREE.WebGLRenderer: image is too big (\"+t.width+\"x\"+t.height+\"). Resized to \"+i.width+\"x\"+i.height,t),i}return t}function l(t){return fs.isPowerOfTwo(t.width)&&fs.isPowerOfTwo(t.height)}function u(t){if(t instanceof HTMLImageElement||t instanceof HTMLCanvasElement){var e=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");e.width=fs.nearestPowerOfTwo(t.width),e.height=fs.nearestPowerOfTwo(t.height);return e.getContext(\"2d\").drawImage(t,0,0,e.width,e.height),console.warn(\"THREE.WebGLRenderer: image is not power of two (\"+t.width+\"x\"+t.height+\"). Resized to \"+e.width+\"x\"+e.height,t),e}return t}function c(t){return t.wrapS!==so||t.wrapT!==so||t.minFilter!==uo&&t.minFilter!==fo}function h(e){return e===uo||e===co||e===ho?t.NEAREST:t.LINEAR}function d(t){var e=t.target;e.removeEventListener(\"dispose\",d),p(e),T.textures--}function f(t){var e=t.target;e.removeEventListener(\"dispose\",f),m(e),T.textures--}function p(e){var n=i.get(e);if(e.image&&n.__image__webglTextureCube)t.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)return;t.deleteTexture(n.__webglTexture)}i.delete(e)}function m(e){var n=i.get(e),r=i.get(e.texture);if(e){if(void 0!==r.__webglTexture&&t.deleteTexture(r.__webglTexture),e.depthTexture&&e.depthTexture.dispose(),e.isWebGLRenderTargetCube)for(var a=0;a<6;a++)t.deleteFramebuffer(n.__webglFramebuffer[a]),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer[a]);else t.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer);i.delete(e.texture),i.delete(e)}}function g(e,r){var a=i.get(e);if(e.version>0&&a.__version!==e.version){var o=e.image;if(void 0===o)console.warn(\"THREE.WebGLRenderer: Texture marked for update but image is undefined\",e);else{if(!1!==o.complete)return void x(a,e,r);console.warn(\"THREE.WebGLRenderer: Texture marked for update but image is incomplete\",e)}}n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_2D,a.__webglTexture)}function v(e,o){var u=i.get(e);if(6===e.image.length)if(e.version>0&&u.__version!==e.version){u.__image__webglTextureCube||(e.addEventListener(\"dispose\",d),u.__image__webglTextureCube=t.createTexture(),T.textures++),n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_CUBE_MAP,u.__image__webglTextureCube),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e.flipY);for(var c=e&&e.isCompressedTexture,h=e.image[0]&&e.image[0].isDataTexture,f=[],p=0;p<6;p++)f[p]=c||h?h?e.image[p].image:e.image[p]:s(e.image[p],r.maxCubemapSize);var m=f[0],g=l(m),v=a(e.format),y=a(e.type);b(t.TEXTURE_CUBE_MAP,e,g);for(var p=0;p<6;p++)if(c)for(var x,_=f[p].mipmaps,w=0,M=_.length;w-1?n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,x.width,x.height,0,x.data):console.warn(\"THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()\"):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,x.width,x.height,0,v,y,x.data);else h?n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,f[p].width,f[p].height,0,v,y,f[p].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,v,y,f[p]);e.generateMipmaps&&g&&t.generateMipmap(t.TEXTURE_CUBE_MAP),u.__version=e.version,e.onUpdate&&e.onUpdate(e)}else n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_CUBE_MAP,u.__image__webglTextureCube)}function y(e,r){n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_CUBE_MAP,i.get(e).__webglTexture)}function b(n,o,s){var l;if(s?(t.texParameteri(n,t.TEXTURE_WRAP_S,a(o.wrapS)),t.texParameteri(n,t.TEXTURE_WRAP_T,a(o.wrapT)),t.texParameteri(n,t.TEXTURE_MAG_FILTER,a(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,a(o.minFilter))):(t.texParameteri(n,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(n,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),o.wrapS===so&&o.wrapT===so||console.warn(\"THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.\",o),t.texParameteri(n,t.TEXTURE_MAG_FILTER,h(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,h(o.minFilter)),o.minFilter!==uo&&o.minFilter!==fo&&console.warn(\"THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.\",o)),l=e.get(\"EXT_texture_filter_anisotropic\")){if(o.type===wo&&null===e.get(\"OES_texture_float_linear\"))return;if(o.type===Mo&&null===e.get(\"OES_texture_half_float_linear\"))return;(o.anisotropy>1||i.get(o).__currentAnisotropy)&&(t.texParameterf(n,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy)}}function x(e,i,o){void 0===e.__webglInit&&(e.__webglInit=!0,i.addEventListener(\"dispose\",d),e.__webglTexture=t.createTexture(),T.textures++),n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_2D,e.__webglTexture),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,i.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,i.unpackAlignment);var h=s(i.image,r.maxTextureSize);c(i)&&!1===l(h)&&(h=u(h));var f=l(h),p=a(i.format),m=a(i.type);b(t.TEXTURE_2D,i,f);var g,v=i.mipmaps;if(i.isDepthTexture){var y=t.DEPTH_COMPONENT;if(i.type===wo){if(!C)throw new Error(\"Float Depth Texture only supported in WebGL2.0\");y=t.DEPTH_COMPONENT32F}else C&&(y=t.DEPTH_COMPONENT16);i.format===Io&&y===t.DEPTH_COMPONENT&&i.type!==bo&&i.type!==_o&&(console.warn(\"THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.\"),i.type=bo,m=a(i.type)),i.format===Do&&(y=t.DEPTH_STENCIL,i.type!==To&&(console.warn(\"THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture.\"),i.type=To,m=a(i.type))),n.texImage2D(t.TEXTURE_2D,0,y,h.width,h.height,0,p,m,null)}else if(i.isDataTexture)if(v.length>0&&f){for(var x=0,_=v.length;x<_;x++)g=v[x],n.texImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,p,m,g.data);i.generateMipmaps=!1}else n.texImage2D(t.TEXTURE_2D,0,p,h.width,h.height,0,p,m,h.data);else if(i.isCompressedTexture)for(var x=0,_=v.length;x<_;x++)g=v[x],i.format!==Oo&&i.format!==Po?n.getCompressedTextureFormats().indexOf(p)>-1?n.compressedTexImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,g.data):console.warn(\"THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()\"):n.texImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,p,m,g.data);else if(v.length>0&&f){for(var x=0,_=v.length;x<_;x++)g=v[x],n.texImage2D(t.TEXTURE_2D,x,p,p,m,g);i.generateMipmaps=!1}else n.texImage2D(t.TEXTURE_2D,0,p,p,m,h);i.generateMipmaps&&f&&t.generateMipmap(t.TEXTURE_2D),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function _(e,r,o,s){var l=a(r.texture.format),u=a(r.texture.type);n.texImage2D(s,0,l,r.width,r.height,0,l,u,null),t.bindFramebuffer(t.FRAMEBUFFER,e),t.framebufferTexture2D(t.FRAMEBUFFER,o,s,i.get(r.texture).__webglTexture,0),t.bindFramebuffer(t.FRAMEBUFFER,null)}function w(e,n){t.bindRenderbuffer(t.RENDERBUFFER,e),n.depthBuffer&&!n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e)):n.depthBuffer&&n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e)):t.renderbufferStorage(t.RENDERBUFFER,t.RGBA4,n.width,n.height),t.bindRenderbuffer(t.RENDERBUFFER,null)}function M(e,n){if(n&&n.isWebGLRenderTargetCube)throw new Error(\"Depth Texture with cube render targets is not supported!\");if(t.bindFramebuffer(t.FRAMEBUFFER,e),!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===Io)t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,r,0);else{if(n.depthTexture.format!==Do)throw new Error(\"Unknown depthTexture format\");t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,r,0)}}function S(e){var n=i.get(e),r=!0===e.isWebGLRenderTargetCube;if(e.depthTexture){if(r)throw new Error(\"target.depthTexture not supported in Cube render targets\");M(n.__webglFramebuffer,e)}else if(r){n.__webglDepthbuffer=[];for(var a=0;a<6;a++)t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer[a]),n.__webglDepthbuffer[a]=t.createRenderbuffer(),w(n.__webglDepthbuffer[a],e)}else t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer),n.__webglDepthbuffer=t.createRenderbuffer(),w(n.__webglDepthbuffer,e);t.bindFramebuffer(t.FRAMEBUFFER,null)}function E(e){var r=i.get(e),a=i.get(e.texture);e.addEventListener(\"dispose\",f),a.__webglTexture=t.createTexture(),T.textures++;var o=!0===e.isWebGLRenderTargetCube,s=l(e);if(o){r.__webglFramebuffer=[];for(var u=0;u<6;u++)r.__webglFramebuffer[u]=t.createFramebuffer()}else r.__webglFramebuffer=t.createFramebuffer();if(o){n.bindTexture(t.TEXTURE_CUBE_MAP,a.__webglTexture),b(t.TEXTURE_CUBE_MAP,e.texture,s);for(var u=0;u<6;u++)_(r.__webglFramebuffer[u],e,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+u);e.texture.generateMipmaps&&s&&t.generateMipmap(t.TEXTURE_CUBE_MAP),n.bindTexture(t.TEXTURE_CUBE_MAP,null)}else n.bindTexture(t.TEXTURE_2D,a.__webglTexture),b(t.TEXTURE_2D,e.texture,s),_(r.__webglFramebuffer,e,t.COLOR_ATTACHMENT0,t.TEXTURE_2D),e.texture.generateMipmaps&&s&&t.generateMipmap(t.TEXTURE_2D),n.bindTexture(t.TEXTURE_2D,null);e.depthBuffer&&S(e)}function k(e){var r=e.texture;if(r.generateMipmaps&&l(e)&&r.minFilter!==uo&&r.minFilter!==fo){var a=e&&e.isWebGLRenderTargetCube?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,o=i.get(r).__webglTexture;n.bindTexture(a,o),t.generateMipmap(a),n.bindTexture(a,null)}}var T=o.memory,C=\"undefined\"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext;this.setTexture2D=g,this.setTextureCube=v,this.setTextureCubeDynamic=y,this.setupRenderTarget=E,this.updateRenderTargetMipmap=k}function ae(){var t={};return{get:function(e){var n=e.uuid,i=t[n];return void 0===i&&(i={},t[n]=i),i},delete:function(e){delete t[e.uuid]},clear:function(){t={}}}}function oe(t,e,n){function i(){var e=!1,n=new o,i=null,r=new o;return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,a,o,s){!0===s&&(e*=o,i*=o,a*=o),n.set(e,i,a,o),!1===r.equals(n)&&(t.clearColor(e,i,a,o),r.copy(n))},reset:function(){e=!1,i=null,r.set(0,0,0,1)}}}function r(){var e=!1,n=null,i=null,r=null;return{setTest:function(e){e?f(t.DEPTH_TEST):p(t.DEPTH_TEST)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case Na:t.depthFunc(t.NEVER);break;case za:t.depthFunc(t.ALWAYS);break;case Ba:t.depthFunc(t.LESS);break;case Fa:t.depthFunc(t.LEQUAL);break;case Ua:t.depthFunc(t.EQUAL);break;case ja:t.depthFunc(t.GEQUAL);break;case Wa:t.depthFunc(t.GREATER);break;case Ga:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}else t.depthFunc(t.LEQUAL);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}}function a(){var e=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,u=null;return{setTest:function(e){e?f(t.STENCIL_TEST):p(t.STENCIL_TEST)},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,o){i===e&&r===n&&a===o||(t.stencilFunc(e,n,o),i=e,r=n,a=o)},setOp:function(e,n,i){o===e&&s===n&&l===i||(t.stencilOp(e,n,i),o=e,s=n,l=i)},setLocked:function(t){e=t},setClear:function(e){u!==e&&(t.clearStencil(e),u=e)},reset:function(){e=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,u=null}}}function s(e,n,i){var r=new Uint8Array(4),a=t.createTexture();t.bindTexture(e,a),t.texParameteri(e,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(e,t.TEXTURE_MAG_FILTER,t.NEAREST);for(var o=0;o=1,ct=null,ht={},dt=new o,ft=new o,pt={};return pt[t.TEXTURE_2D]=s(t.TEXTURE_2D,t.TEXTURE_2D,1),pt[t.TEXTURE_CUBE_MAP]=s(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),{buffers:{color:B,depth:F,stencil:U},init:l,initAttributes:u,enableAttribute:c,enableAttributeAndDivisor:h,disableUnusedAttributes:d,enable:f,disable:p,getCompressedTextureFormats:m,setBlending:g,setColorWrite:v,setDepthTest:y,setDepthWrite:b,setDepthFunc:x,setStencilTest:_,setStencilWrite:w,setStencilFunc:M,setStencilOp:S,setFlipSided:E,setCullFace:k,setLineWidth:T,setPolygonOffset:C,getScissorTest:P,setScissorTest:O,activeTexture:A,bindTexture:R,compressedTexImage2D:L,texImage2D:I,scissor:D,viewport:N,reset:z}}function se(t,e,n){function i(){if(void 0!==a)return a;var n=e.get(\"EXT_texture_filter_anisotropic\");return a=null!==n?t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}function r(e){if(\"highp\"===e){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return\"highp\";e=\"mediump\"}return\"mediump\"===e&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?\"mediump\":\"lowp\"}var a,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&&!!e.get(\"EXT_frag_depth\"),u=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),c=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_TEXTURE_SIZE),d=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),f=t.getParameter(t.MAX_VERTEX_ATTRIBS),p=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),m=t.getParameter(t.MAX_VARYING_VECTORS),g=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),v=c>0,y=!!e.get(\"OES_texture_float\");return{getMaxAnisotropy:i,getMaxPrecision:r,precision:o,logarithmicDepthBuffer:l,maxTextures:u,maxVertexTextures:c,maxTextureSize:h,maxCubemapSize:d,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:g,vertexTextures:v,floatFragmentTextures:y,floatVertexTextures:v&&y}}function le(t){var e={};return{get:function(n){if(void 0!==e[n])return e[n];var i;switch(n){case\"WEBGL_depth_texture\":i=t.getExtension(\"WEBGL_depth_texture\")||t.getExtension(\"MOZ_WEBGL_depth_texture\")||t.getExtension(\"WEBKIT_WEBGL_depth_texture\");break;case\"EXT_texture_filter_anisotropic\":i=t.getExtension(\"EXT_texture_filter_anisotropic\")||t.getExtension(\"MOZ_EXT_texture_filter_anisotropic\")||t.getExtension(\"WEBKIT_EXT_texture_filter_anisotropic\");break;case\"WEBGL_compressed_texture_s3tc\":i=t.getExtension(\"WEBGL_compressed_texture_s3tc\")||t.getExtension(\"MOZ_WEBGL_compressed_texture_s3tc\")||t.getExtension(\"WEBKIT_WEBGL_compressed_texture_s3tc\");break;case\"WEBGL_compressed_texture_pvrtc\":i=t.getExtension(\"WEBGL_compressed_texture_pvrtc\")||t.getExtension(\"WEBKIT_WEBGL_compressed_texture_pvrtc\");break;case\"WEBGL_compressed_texture_etc1\":i=t.getExtension(\"WEBGL_compressed_texture_etc1\");break;default:i=t.getExtension(n)}return null===i&&console.warn(\"THREE.WebGLRenderer: \"+n+\" extension not supported.\"),e[n]=i,i}}}function ue(){function t(){u.value!==i&&(u.value=i,u.needsUpdate=r>0),n.numPlanes=r,n.numIntersection=0}function e(t,e,i,r){var a=null!==t?t.length:0,o=null;if(0!==a){if(o=u.value,!0!==r||null===o){var c=i+4*a,h=e.matrixWorldInverse;l.getNormalMatrix(h),(null===o||o.length=0){var c=a[l];if(void 0!==c){var h=c.normalized,d=c.itemSize,f=he.getAttributeProperties(c),p=f.__webglBuffer,m=f.type,g=f.bytesPerElement;if(c.isInterleavedBufferAttribute){var v=c.data,y=v.stride,b=c.offset;v&&v.isInstancedInterleavedBuffer?(te.enableAttributeAndDivisor(u,v.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=v.meshPerAttribute*v.count)):te.enableAttribute(u),Kt.bindBuffer(Kt.ARRAY_BUFFER,p),Kt.vertexAttribPointer(u,d,m,h,y*g,(i*y+b)*g)}else c.isInstancedBufferAttribute?(te.enableAttributeAndDivisor(u,c.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=c.meshPerAttribute*c.count)):te.enableAttribute(u),Kt.bindBuffer(Kt.ARRAY_BUFFER,p),Kt.vertexAttribPointer(u,d,m,h,0,i*d*g)}else if(void 0!==s){var x=s[l];if(void 0!==x)switch(x.length){case 2:Kt.vertexAttrib2fv(u,x);break;case 3:Kt.vertexAttrib3fv(u,x);break;case 4:Kt.vertexAttrib4fv(u,x);break;default:Kt.vertexAttrib1fv(u,x)}}}}te.disableUnusedAttributes()}function d(t,e){return Math.abs(e[0])-Math.abs(t[0])}function f(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.material.program&&e.material.program&&t.material.program!==e.material.program?t.material.program.id-e.material.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function p(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function m(t,e,n,i,r){var a,o;n.transparent?(a=it,o=++rt):(a=tt,o=++et);var s=a[o];void 0!==s?(s.id=t.id,s.object=t,s.geometry=e,s.material=n,s.z=Ht.z,s.group=r):(s={id:t.id,object:t,geometry:e,material:n,z:Ht.z,group:r},a.push(s))}function g(t){var e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Gt.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),y(Gt)}function v(t){return Gt.center.set(0,0,0),Gt.radius=.7071067811865476,Gt.applyMatrix4(t.matrixWorld),y(Gt)}function y(t){if(!Lt.intersectsSphere(t))return!1;var e=Dt.numPlanes;if(0===e)return!0;var n=ct.clippingPlanes,i=t.center,r=-t.radius,a=0;do{if(n[a].distanceToPoint(i)=0&&t.numSupportedMorphTargets++}if(t.morphNormals){t.numSupportedMorphNormals=0;for(var d=0;d=0&&t.numSupportedMorphNormals++}var f=i.__webglShader.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(i.numClippingPlanes=Dt.numPlanes,i.numIntersection=Dt.numIntersection,f.clippingPlanes=Dt.uniform),i.fog=e,i.lightsHash=Xt.hash,t.lights&&(f.ambientLightColor.value=Xt.ambient,f.directionalLights.value=Xt.directional,f.spotLights.value=Xt.spot,f.rectAreaLights.value=Xt.rectArea,f.pointLights.value=Xt.point,f.hemisphereLights.value=Xt.hemi,f.directionalShadowMap.value=Xt.directionalShadowMap,f.directionalShadowMatrix.value=Xt.directionalShadowMatrix,f.spotShadowMap.value=Xt.spotShadowMap,f.spotShadowMatrix.value=Xt.spotShadowMatrix,f.pointShadowMap.value=Xt.pointShadowMap,f.pointShadowMatrix.value=Xt.pointShadowMatrix);var p=i.program.getUniforms(),m=Y.seqWithValue(p.seq,f);i.uniformsList=m}function w(t){t.side===la?te.disable(Kt.CULL_FACE):te.enable(Kt.CULL_FACE),te.setFlipSided(t.side===sa),!0===t.transparent?te.setBlending(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha):te.setBlending(pa),te.setDepthFunc(t.depthFunc),te.setDepthTest(t.depthTest),te.setDepthWrite(t.depthWrite),te.setColorWrite(t.colorWrite),te.setPolygonOffset(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits)}function M(t,e,n,i){_t=0;var r=ne.get(n);if(jt&&(Wt||t!==vt)){var a=t===vt&&n.id===mt;Dt.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,t,r,a)}!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==e?n.needsUpdate=!0:n.lights&&r.lightsHash!==Xt.hash?n.needsUpdate=!0:void 0===r.numClippingPlanes||r.numClippingPlanes===Dt.numPlanes&&r.numIntersection===Dt.numIntersection||(n.needsUpdate=!0)),n.needsUpdate&&(_(n,e,i),n.needsUpdate=!1);var o=!1,s=!1,l=!1,u=r.program,c=u.getUniforms(),h=r.__webglShader.uniforms;if(u.id!==ht&&(Kt.useProgram(u.program),ht=u.id,o=!0,s=!0,l=!0),n.id!==mt&&(mt=n.id,s=!0),o||t!==vt){if(c.set(Kt,t,\"projectionMatrix\"),$t.logarithmicDepthBuffer&&c.setValue(Kt,\"logDepthBufFC\",2/(Math.log(t.far+1)/Math.LN2)),t!==vt&&(vt=t,s=!0,l=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var d=c.map.cameraPosition;void 0!==d&&d.setValue(Kt,Ht.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&c.setValue(Kt,\"viewMatrix\",t.matrixWorldInverse),c.set(Kt,ct,\"toneMappingExposure\"),c.set(Kt,ct,\"toneMappingWhitePoint\")}if(n.skinning){c.setOptional(Kt,i,\"bindMatrix\"),c.setOptional(Kt,i,\"bindMatrixInverse\");var f=i.skeleton;f&&($t.floatVertexTextures&&f.useVertexTexture?(c.set(Kt,f,\"boneTexture\"),c.set(Kt,f,\"boneTextureWidth\"),c.set(Kt,f,\"boneTextureHeight\")):c.setOptional(Kt,f,\"boneMatrices\"))}return s&&(n.lights&&D(h,l),e&&n.fog&&C(h,e),(n.isMeshBasicMaterial||n.isMeshLambertMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.isMeshNormalMaterial||n.isMeshDepthMaterial)&&S(h,n),n.isLineBasicMaterial?E(h,n):n.isLineDashedMaterial?(E(h,n),k(h,n)):n.isPointsMaterial?T(h,n):n.isMeshLambertMaterial?P(h,n):n.isMeshToonMaterial?A(h,n):n.isMeshPhongMaterial?O(h,n):n.isMeshPhysicalMaterial?L(h,n):n.isMeshStandardMaterial?R(h,n):n.isMeshDepthMaterial?n.displacementMap&&(h.displacementMap.value=n.displacementMap,h.displacementScale.value=n.displacementScale,h.displacementBias.value=n.displacementBias):n.isMeshNormalMaterial&&I(h,n),void 0!==h.ltcMat&&(h.ltcMat.value=THREE.UniformsLib.LTC_MAT_TEXTURE),void 0!==h.ltcMag&&(h.ltcMag.value=THREE.UniformsLib.LTC_MAG_TEXTURE),Y.upload(Kt,r.uniformsList,h,ct)),c.set(Kt,i,\"modelViewMatrix\"),c.set(Kt,i,\"normalMatrix\"),c.setValue(Kt,\"modelMatrix\",i.matrixWorld),u}function S(t,e){t.opacity.value=e.opacity,t.diffuse.value=e.color,e.emissive&&t.emissive.value.copy(e.emissive).multiplyScalar(e.emissiveIntensity),t.map.value=e.map,t.specularMap.value=e.specularMap,t.alphaMap.value=e.alphaMap,e.lightMap&&(t.lightMap.value=e.lightMap,t.lightMapIntensity.value=e.lightMapIntensity),e.aoMap&&(t.aoMap.value=e.aoMap,t.aoMapIntensity.value=e.aoMapIntensity);var n;if(e.map?n=e.map:e.specularMap?n=e.specularMap:e.displacementMap?n=e.displacementMap:e.normalMap?n=e.normalMap:e.bumpMap?n=e.bumpMap:e.roughnessMap?n=e.roughnessMap:e.metalnessMap?n=e.metalnessMap:e.alphaMap?n=e.alphaMap:e.emissiveMap&&(n=e.emissiveMap),void 0!==n){n.isWebGLRenderTarget&&(n=n.texture);var i=n.offset,r=n.repeat;t.offsetRepeat.value.set(i.x,i.y,r.x,r.y)}t.envMap.value=e.envMap,t.flipEnvMap.value=e.envMap&&e.envMap.isCubeTexture?-1:1,t.reflectivity.value=e.reflectivity,t.refractionRatio.value=e.refractionRatio}function E(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity}function k(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}function T(t,e){if(t.diffuse.value=e.color,t.opacity.value=e.opacity,t.size.value=e.size*kt,t.scale.value=.5*Et,t.map.value=e.map,null!==e.map){var n=e.map.offset,i=e.map.repeat;t.offsetRepeat.value.set(n.x,n.y,i.x,i.y)}}function C(t,e){t.fogColor.value=e.color,e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)}function P(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}function O(t,e){t.specular.value=e.specular,t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function A(t,e){O(t,e),e.gradientMap&&(t.gradientMap.value=e.gradientMap)}function R(t,e){t.roughness.value=e.roughness,t.metalness.value=e.metalness,e.roughnessMap&&(t.roughnessMap.value=e.roughnessMap),e.metalnessMap&&(t.metalnessMap.value=e.metalnessMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),e.envMap&&(t.envMapIntensity.value=e.envMapIntensity)}function L(t,e){t.clearCoat.value=e.clearCoat,t.clearCoatRoughness.value=e.clearCoatRoughness,R(t,e)}function I(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function D(t,e){t.ambientLightColor.needsUpdate=e,t.directionalLights.needsUpdate=e,t.pointLights.needsUpdate=e,t.spotLights.needsUpdate=e,t.rectAreaLights.needsUpdate=e,t.hemisphereLights.needsUpdate=e}function N(t){for(var e=0,n=0,i=t.length;n=$t.maxTextures&&console.warn(\"WebGLRenderer: trying to use \"+t+\" texture units while this GPU supports only \"+$t.maxTextures),_t+=1,t}function F(t){var e;if(t===oo)return Kt.REPEAT;if(t===so)return Kt.CLAMP_TO_EDGE;if(t===lo)return Kt.MIRRORED_REPEAT;if(t===uo)return Kt.NEAREST;if(t===co)return Kt.NEAREST_MIPMAP_NEAREST;if(t===ho)return Kt.NEAREST_MIPMAP_LINEAR;if(t===fo)return Kt.LINEAR;if(t===po)return Kt.LINEAR_MIPMAP_NEAREST;if(t===mo)return Kt.LINEAR_MIPMAP_LINEAR;if(t===go)return Kt.UNSIGNED_BYTE;if(t===So)return Kt.UNSIGNED_SHORT_4_4_4_4;if(t===Eo)return Kt.UNSIGNED_SHORT_5_5_5_1;if(t===ko)return Kt.UNSIGNED_SHORT_5_6_5;if(t===vo)return Kt.BYTE;if(t===yo)return Kt.SHORT;if(t===bo)return Kt.UNSIGNED_SHORT;if(t===xo)return Kt.INT;if(t===_o)return Kt.UNSIGNED_INT;if(t===wo)return Kt.FLOAT;if(t===Mo&&null!==(e=Jt.get(\"OES_texture_half_float\")))return e.HALF_FLOAT_OES;if(t===Co)return Kt.ALPHA;if(t===Po)return Kt.RGB;if(t===Oo)return Kt.RGBA;if(t===Ao)return Kt.LUMINANCE;if(t===Ro)return Kt.LUMINANCE_ALPHA;if(t===Io)return Kt.DEPTH_COMPONENT;if(t===Do)return Kt.DEPTH_STENCIL;if(t===xa)return Kt.FUNC_ADD;if(t===_a)return Kt.FUNC_SUBTRACT;if(t===wa)return Kt.FUNC_REVERSE_SUBTRACT;if(t===Ea)return Kt.ZERO;if(t===ka)return Kt.ONE;if(t===Ta)return Kt.SRC_COLOR;if(t===Ca)return Kt.ONE_MINUS_SRC_COLOR;if(t===Pa)return Kt.SRC_ALPHA;if(t===Oa)return Kt.ONE_MINUS_SRC_ALPHA;if(t===Aa)return Kt.DST_ALPHA;if(t===Ra)return Kt.ONE_MINUS_DST_ALPHA;if(t===La)return Kt.DST_COLOR;if(t===Ia)return Kt.ONE_MINUS_DST_COLOR;if(t===Da)return Kt.SRC_ALPHA_SATURATE;if((t===No||t===zo||t===Bo||t===Fo)&&null!==(e=Jt.get(\"WEBGL_compressed_texture_s3tc\"))){if(t===No)return e.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===zo)return e.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===Bo)return e.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===Fo)return e.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((t===Uo||t===jo||t===Wo||t===Go)&&null!==(e=Jt.get(\"WEBGL_compressed_texture_pvrtc\"))){if(t===Uo)return e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===jo)return e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===Wo)return e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===Go)return e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(t===Vo&&null!==(e=Jt.get(\"WEBGL_compressed_texture_etc1\")))return e.COMPRESSED_RGB_ETC1_WEBGL;if((t===Ma||t===Sa)&&null!==(e=Jt.get(\"EXT_blend_minmax\"))){if(t===Ma)return e.MIN_EXT;if(t===Sa)return e.MAX_EXT}return t===To&&null!==(e=Jt.get(\"WEBGL_depth_texture\"))?e.UNSIGNED_INT_24_8_WEBGL:0}console.log(\"THREE.WebGLRenderer\",Zr),t=t||{};var U=void 0!==t.canvas?t.canvas:document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\"),j=void 0!==t.context?t.context:null,W=void 0!==t.alpha&&t.alpha,G=void 0===t.depth||t.depth,V=void 0===t.stencil||t.stencil,H=void 0!==t.antialias&&t.antialias,X=void 0===t.premultipliedAlpha||t.premultipliedAlpha,Z=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,J=[],tt=[],et=-1,it=[],rt=-1,st=new Float32Array(8),lt=[],ut=[];this.domElement=U,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=Xa,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var ct=this,ht=null,dt=null,ft=null,mt=-1,gt=\"\",vt=null,yt=new o,bt=null,xt=new o,_t=0,wt=new q(0),Mt=0,St=U.width,Et=U.height,kt=1,Tt=new o(0,0,St,Et),Ct=!1,At=new o(0,0,St,Et),Lt=new at,Dt=new ue,jt=!1,Wt=!1,Gt=new nt,Vt=new h,Ht=new c,Yt=new h,qt=new h,Xt={hash:\"\",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],shadows:[]},Zt={calls:0,vertices:0,faces:0,points:0};this.info={render:Zt,memory:{geometries:0,textures:0},programs:null};var Kt;try{var Qt={alpha:W,depth:G,stencil:V,antialias:H,premultipliedAlpha:X,preserveDrawingBuffer:Z};if(null===(Kt=j||U.getContext(\"webgl\",Qt)||U.getContext(\"experimental-webgl\",Qt)))throw null!==U.getContext(\"webgl\")?\"Error creating WebGL context with your selected attributes.\":\"Error creating WebGL context.\";void 0===Kt.getShaderPrecisionFormat&&(Kt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}}),U.addEventListener(\"webglcontextlost\",r,!1)}catch(t){console.error(\"THREE.WebGLRenderer: \"+t)}var Jt=new le(Kt);Jt.get(\"WEBGL_depth_texture\"),Jt.get(\"OES_texture_float\"),Jt.get(\"OES_texture_float_linear\"),Jt.get(\"OES_texture_half_float\"),Jt.get(\"OES_texture_half_float_linear\"),Jt.get(\"OES_standard_derivatives\"),Jt.get(\"ANGLE_instanced_arrays\"),Jt.get(\"OES_element_index_uint\")&&(Pt.MaxIndex=4294967296);var $t=new se(Kt,Jt,t),te=new oe(Kt,Jt,F),ne=new ae,ce=new re(Kt,Jt,te,ne,$t,F,this.info),he=new ie(Kt,ne,this.info),de=new ee(this,$t),fe=new Ut;this.info.programs=de.programs;var pe,me,ge,ve,ye=new Ft(Kt,Jt,Zt),be=new Bt(Kt,Jt,Zt);n(),this.context=Kt,this.capabilities=$t,this.extensions=Jt,this.properties=ne,this.state=te;var xe=new ot(this,Xt,he,$t);this.shadowMap=xe;var _e=new Q(this,lt),we=new K(this,ut);this.getContext=function(){return Kt},this.getContextAttributes=function(){return Kt.getContextAttributes()},this.forceContextLoss=function(){Jt.get(\"WEBGL_lose_context\").loseContext()},this.getMaxAnisotropy=function(){return $t.getMaxAnisotropy()},this.getPrecision=function(){return $t.precision},this.getPixelRatio=function(){return kt},this.setPixelRatio=function(t){void 0!==t&&(kt=t,this.setSize(At.z,At.w,!1))},this.getSize=function(){return{width:St,height:Et}},this.setSize=function(t,e,n){St=t,Et=e,U.width=t*kt,U.height=e*kt,!1!==n&&(U.style.width=t+\"px\",U.style.height=e+\"px\"),this.setViewport(0,0,t,e)},this.setViewport=function(t,e,n,i){te.viewport(At.set(t,e,n,i))},this.setScissor=function(t,e,n,i){te.scissor(Tt.set(t,e,n,i))},this.setScissorTest=function(t){te.setScissorTest(Ct=t)},this.getClearColor=function(){return wt},this.setClearColor=function(t,e){wt.set(t),Mt=void 0!==e?e:1,te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X)},this.getClearAlpha=function(){return Mt},this.setClearAlpha=function(t){Mt=t,te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X)},this.clear=function(t,e,n){var i=0;(void 0===t||t)&&(i|=Kt.COLOR_BUFFER_BIT),(void 0===e||e)&&(i|=Kt.DEPTH_BUFFER_BIT),(void 0===n||n)&&(i|=Kt.STENCIL_BUFFER_BIT),Kt.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.clearTarget=function(t,e,n,i){this.setRenderTarget(t),this.clear(e,n,i)},this.resetGLState=i,this.dispose=function(){it=[],rt=-1,tt=[],et=-1,U.removeEventListener(\"webglcontextlost\",r,!1)},this.renderBufferImmediate=function(t,e,n){te.initAttributes();var i=ne.get(t);t.hasPositions&&!i.position&&(i.position=Kt.createBuffer()),t.hasNormals&&!i.normal&&(i.normal=Kt.createBuffer()),t.hasUvs&&!i.uv&&(i.uv=Kt.createBuffer()),t.hasColors&&!i.color&&(i.color=Kt.createBuffer());var r=e.getAttributes();if(t.hasPositions&&(Kt.bindBuffer(Kt.ARRAY_BUFFER,i.position),Kt.bufferData(Kt.ARRAY_BUFFER,t.positionArray,Kt.DYNAMIC_DRAW),te.enableAttribute(r.position),Kt.vertexAttribPointer(r.position,3,Kt.FLOAT,!1,0,0)),t.hasNormals){if(Kt.bindBuffer(Kt.ARRAY_BUFFER,i.normal),!n.isMeshPhongMaterial&&!n.isMeshStandardMaterial&&!n.isMeshNormalMaterial&&n.shading===ua)for(var a=0,o=3*t.count;a8&&(f.length=8);for(var v=i.morphAttributes,p=0,m=f.length;p0&&S.renderInstances(i,O,R):S.render(O,R)}},this.render=function(t,e,n,i){if(void 0!==e&&!0!==e.isCamera)return void console.error(\"THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.\");gt=\"\",mt=-1,vt=null,!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),e.matrixWorldInverse.getInverse(e.matrixWorld),Vt.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),Lt.setFromMatrix(Vt),J.length=0,et=-1,rt=-1,lt.length=0,ut.length=0,Wt=this.localClippingEnabled,jt=Dt.init(this.clippingPlanes,Wt,e),b(t,e),tt.length=et+1,it.length=rt+1,!0===ct.sortObjects&&(tt.sort(f),it.sort(p)),jt&&Dt.beginShadows(),N(J),xe.render(t,e),z(J,e),jt&&Dt.endShadows(),Zt.calls=0,Zt.vertices=0,Zt.faces=0,Zt.points=0,void 0===n&&(n=null),this.setRenderTarget(n);var r=t.background;if(null===r?te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X):r&&r.isColor&&(te.buffers.color.setClear(r.r,r.g,r.b,1,X),i=!0),(this.autoClear||i)&&this.clear(this.autoClearColor,this.autoClearDepth,this.autoClearStencil),r&&r.isCubeTexture?(void 0===ge&&(ge=new Nt,ve=new Ot(new Rt(5,5,5),new $({uniforms:Ss.cube.uniforms,vertexShader:Ss.cube.vertexShader,fragmentShader:Ss.cube.fragmentShader,side:sa,depthTest:!1,depthWrite:!1,fog:!1}))),ge.projectionMatrix.copy(e.projectionMatrix),ge.matrixWorld.extractRotation(e.matrixWorld),ge.matrixWorldInverse.getInverse(ge.matrixWorld),ve.material.uniforms.tCube.value=r,ve.modelViewMatrix.multiplyMatrices(ge.matrixWorldInverse,ve.matrixWorld),he.update(ve),ct.renderBufferDirect(ge,null,ve.geometry,ve.material,ve,null)):r&&r.isTexture&&(void 0===pe&&(pe=new zt(-1,1,1,-1,0,1),me=new Ot(new It(2,2),new pt({depthTest:!1,depthWrite:!1,fog:!1}))),me.material.map=r,he.update(me),ct.renderBufferDirect(pe,null,me.geometry,me.material,me,null)),t.overrideMaterial){var a=t.overrideMaterial;x(tt,t,e,a),x(it,t,e,a)}else te.setBlending(pa),x(tt,t,e),x(it,t,e);_e.render(t,e),we.render(t,e,xt),n&&ce.updateRenderTargetMipmap(n),te.setDepthTest(!0),te.setDepthWrite(!0),te.setColorWrite(!0)},this.setFaceCulling=function(t,e){te.setCullFace(t),te.setFlipSided(e===ea)},this.allocTextureUnit=B,this.setTexture2D=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTarget&&(t||(console.warn(\"THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead.\"),t=!0),e=e.texture),ce.setTexture2D(e,n)}}(),this.setTexture=function(){var t=!1;return function(e,n){t||(console.warn(\"THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead.\"),t=!0),ce.setTexture2D(e,n)}}(),this.setTextureCube=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTargetCube&&(t||(console.warn(\"THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead.\"),t=!0),e=e.texture),e&&e.isCubeTexture||Array.isArray(e.image)&&6===e.image.length?ce.setTextureCube(e,n):ce.setTextureCubeDynamic(e,n)}}(),this.getCurrentRenderTarget=function(){return dt},this.setRenderTarget=function(t){dt=t,t&&void 0===ne.get(t).__webglFramebuffer&&ce.setupRenderTarget(t);var e,n=t&&t.isWebGLRenderTargetCube;if(t){var i=ne.get(t);e=n?i.__webglFramebuffer[t.activeCubeFace]:i.__webglFramebuffer,yt.copy(t.scissor),bt=t.scissorTest,xt.copy(t.viewport)}else e=null,yt.copy(Tt).multiplyScalar(kt),bt=Ct,xt.copy(At).multiplyScalar(kt);if(ft!==e&&(Kt.bindFramebuffer(Kt.FRAMEBUFFER,e),ft=e),te.scissor(yt),te.setScissorTest(bt),te.viewport(xt),n){var r=ne.get(t.texture);Kt.framebufferTexture2D(Kt.FRAMEBUFFER,Kt.COLOR_ATTACHMENT0,Kt.TEXTURE_CUBE_MAP_POSITIVE_X+t.activeCubeFace,r.__webglTexture,t.activeMipMapLevel)}},this.readRenderTargetPixels=function(t,e,n,i,r,a){if(!1===(t&&t.isWebGLRenderTarget))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.\");var o=ne.get(t).__webglFramebuffer;if(o){var s=!1;o!==ft&&(Kt.bindFramebuffer(Kt.FRAMEBUFFER,o),s=!0);try{var l=t.texture,u=l.format,c=l.type;if(u!==Oo&&F(u)!==Kt.getParameter(Kt.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.\");if(!(c===go||F(c)===Kt.getParameter(Kt.IMPLEMENTATION_COLOR_READ_TYPE)||c===wo&&(Jt.get(\"OES_texture_float\")||Jt.get(\"WEBGL_color_buffer_float\"))||c===Mo&&Jt.get(\"EXT_color_buffer_half_float\")))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.\");Kt.checkFramebufferStatus(Kt.FRAMEBUFFER)===Kt.FRAMEBUFFER_COMPLETE?e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&Kt.readPixels(e,n,i,r,F(u),F(c),a):console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.\")}finally{s&&Kt.bindFramebuffer(Kt.FRAMEBUFFER,ft)}}}}function he(t,e){this.name=\"\",this.color=new q(t),this.density=void 0!==e?e:25e-5}function de(t,e,n){this.name=\"\",this.color=new q(t),this.near=void 0!==e?e:1,this.far=void 0!==n?n:1e3}function fe(){ct.call(this),this.type=\"Scene\",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function pe(t,e,n,i,r){ct.call(this),this.lensFlares=[],this.positionScreen=new c,this.customUpdateCallback=void 0,void 0!==t&&this.add(t,e,n,i,r)}function me(t){J.call(this),this.type=\"SpriteMaterial\",this.color=new q(16777215),this.map=null,this.rotation=0,this.fog=!1,this.lights=!1,this.setValues(t)}function ge(t){ct.call(this),this.type=\"Sprite\",this.material=void 0!==t?t:new me}function ve(){ct.call(this),this.type=\"LOD\",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function ye(t,e,n){if(this.useVertexTexture=void 0===n||n,this.identityMatrix=new h,t=t||[],this.bones=t.slice(0),this.useVertexTexture){var i=Math.sqrt(4*this.bones.length);i=fs.nextPowerOfTwo(Math.ceil(i)),i=Math.max(i,4),this.boneTextureWidth=i,this.boneTextureHeight=i,this.boneMatrices=new Float32Array(this.boneTextureWidth*this.boneTextureHeight*4),this.boneTexture=new X(this.boneMatrices,this.boneTextureWidth,this.boneTextureHeight,Oo,wo)}else this.boneMatrices=new Float32Array(16*this.bones.length);if(void 0===e)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else{console.warn(\"THREE.Skeleton bonInverses is the wrong length.\"),this.boneInverses=[];for(var r=0,a=this.bones.length;r=t.HAVE_CURRENT_DATA&&(h.needsUpdate=!0)}a.call(this,t,e,n,i,r,o,s,l,u),this.generateMipmaps=!1;var h=this;c()}function Ce(t,e,n,i,r,o,s,l,u,c,h,d){a.call(this,null,o,s,l,u,c,i,r,h,d),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}function Pe(t,e,n,i,r,o,s,l,u){a.call(this,t,e,n,i,r,o,s,l,u),this.needsUpdate=!0}function Oe(t,e,n,i,r,o,s,l,u,c){if((c=void 0!==c?c:Io)!==Io&&c!==Do)throw new Error(\"DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat\");void 0===n&&c===Io&&(n=bo),void 0===n&&c===Do&&(n=To),a.call(this,null,i,r,o,s,l,c,n,u),this.image={width:t,height:e},this.magFilter=void 0!==s?s:uo,this.minFilter=void 0!==l?l:uo,this.flipY=!1,this.generateMipmaps=!1}function Ae(t){function e(t,e){return t-e}Pt.call(this),this.type=\"WireframeGeometry\";var n,i,r,a,o,s,l,u,h=[],d=[0,0],f={},p=[\"a\",\"b\",\"c\"];if(t&&t.isGeometry){var m=t.faces;for(n=0,r=m.length;n.9&&a<.1&&(e<.2&&(m[t+0]+=1),n<.2&&(m[t+2]+=1),i<.2&&(m[t+4]+=1))}}function s(t){p.push(t.x,t.y,t.z)}function l(e,n){var i=3*e;n.x=t[i+0],n.y=t[i+1],n.z=t[i+2]}function u(){for(var t=new c,e=new c,n=new c,i=new c,a=new r,o=new r,s=new r,l=0,u=0;l0)&&m.push(w,M,E),(l!==n-1||u0&&u(!0),e>0&&u(!1)),this.setIndex(d),this.addAttribute(\"position\",new Mt(f,3)),this.addAttribute(\"normal\",new Mt(p,3)),this.addAttribute(\"uv\",new Mt(m,2))}function cn(t,e,n,i,r,a,o){ln.call(this,0,t,e,n,i,r,a,o),this.type=\"ConeGeometry\",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function hn(t,e,n,i,r,a,o){un.call(this,0,t,e,n,i,r,a,o),this.type=\"ConeBufferGeometry\",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function dn(t,e,n,i){Ct.call(this),this.type=\"CircleGeometry\",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new fn(t,e,n,i))}function fn(t,e,n,i){Pt.call(this),this.type=\"CircleBufferGeometry\",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},t=t||50,e=void 0!==e?Math.max(3,e):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var a,o,s=[],l=[],u=[],h=[],d=new c,f=new r;for(l.push(0,0,0),u.push(0,0,1),h.push(.5,.5),o=0,a=3;o<=e;o++,a+=3){var p=n+o/e*i;d.x=t*Math.cos(p),d.y=t*Math.sin(p),l.push(d.x,d.y,d.z),u.push(0,0,1),f.x=(l[a]/t+1)/2,f.y=(l[a+1]/t+1)/2,h.push(f.x,f.y)}for(a=1;a<=e;a++)s.push(a,a+1,0);this.setIndex(s),this.addAttribute(\"position\",new Mt(l,3)),this.addAttribute(\"normal\",new Mt(u,3)),this.addAttribute(\"uv\",new Mt(h,2))}function pn(){$.call(this,{uniforms:xs.merge([Ms.lights,{opacity:{value:1}}]),vertexShader:_s.shadow_vert,fragmentShader:_s.shadow_frag}),this.lights=!0,this.transparent=!0,Object.defineProperties(this,{opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}}})}function mn(t){$.call(this,t),this.type=\"RawShaderMaterial\"}function gn(t){this.uuid=fs.generateUUID(),this.type=\"MultiMaterial\",this.materials=Array.isArray(t)?t:[],this.visible=!0}function vn(t){J.call(this),this.defines={STANDARD:\"\"},this.type=\"MeshStandardMaterial\",this.color=new q(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 q(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(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(t)}function yn(t){vn.call(this),this.defines={PHYSICAL:\"\"},this.type=\"MeshPhysicalMaterial\",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(t)}function bn(t){J.call(this),this.type=\"MeshPhongMaterial\",this.color=new q(16777215),this.specular=new q(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new q(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Va,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(t)}function xn(t){bn.call(this),this.defines={TOON:\"\"},this.type=\"MeshToonMaterial\",this.gradientMap=null,this.setValues(t)}function _n(t){J.call(this,t),this.type=\"MeshNormalMaterial\",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(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(t)}function wn(t){J.call(this),this.type=\"MeshLambertMaterial\",this.color=new q(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new q(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Va,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(t)}function Mn(t){J.call(this),this.type=\"LineDashedMaterial\",this.color=new q(16777215),this.linewidth=1,this.scale=1,this.dashSize=3,this.gapSize=1,this.lights=!1,this.setValues(t)}function Sn(t,e,n){var i=this,r=!1,a=0,o=0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){o++,!1===r&&void 0!==i.onStart&&i.onStart(t,a,o),r=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,o),a===o&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)}}function En(t){this.manager=void 0!==t?t:Ls}function kn(t){this.manager=void 0!==t?t:Ls,this._parser=null}function Tn(t){this.manager=void 0!==t?t:Ls,this._parser=null}function Cn(t){this.manager=void 0!==t?t:Ls}function Pn(t){this.manager=void 0!==t?t:Ls}function On(t){this.manager=void 0!==t?t:Ls}function An(t,e){ct.call(this),this.type=\"Light\",this.color=new q(t),this.intensity=void 0!==e?e:1,this.receiveShadow=void 0}function Rn(t,e,n){An.call(this,t,n),this.type=\"HemisphereLight\",this.castShadow=void 0,this.position.copy(ct.DefaultUp),this.updateMatrix(),this.groundColor=new q(e)}function Ln(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new r(512,512),this.map=null,this.matrix=new h}function In(){Ln.call(this,new Nt(50,1,.5,500))}function Dn(t,e,n,i,r,a){An.call(this,t,e),this.type=\"SpotLight\",this.position.copy(ct.DefaultUp),this.updateMatrix(),this.target=new ct,Object.defineProperty(this,\"power\",{get:function(){return this.intensity*Math.PI},set:function(t){this.intensity=t/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 In}function Nn(t,e,n,i){An.call(this,t,e),this.type=\"PointLight\",Object.defineProperty(this,\"power\",{get:function(){return 4*this.intensity*Math.PI},set:function(t){this.intensity=t/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new Ln(new Nt(90,1,.5,500))}function zn(){Ln.call(this,new zt(-5,5,5,-5,.5,500))}function Bn(t,e){An.call(this,t,e),this.type=\"DirectionalLight\",this.position.copy(ct.DefaultUp),this.updateMatrix(),this.target=new ct,this.shadow=new zn}function Fn(t,e){An.call(this,t,e),this.type=\"AmbientLight\",this.castShadow=void 0}function Un(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function jn(t,e,n,i){Un.call(this,t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Wn(t,e,n,i){Un.call(this,t,e,n,i)}function Gn(t,e,n,i){Un.call(this,t,e,n,i)}function Vn(t,e,n,i){if(void 0===t)throw new Error(\"track name is undefined\");if(void 0===e||0===e.length)throw new Error(\"no keyframes in track named \"+t);this.name=t,this.times=Is.convertArray(e,this.TimeBufferType),this.values=Is.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation),this.validate(),this.optimize()}function Hn(t,e,n,i){Vn.call(this,t,e,n,i)}function Yn(t,e,n,i){Un.call(this,t,e,n,i)}function qn(t,e,n,i){Vn.call(this,t,e,n,i)}function Xn(t,e,n,i){Vn.call(this,t,e,n,i)}function Zn(t,e,n,i){Vn.call(this,t,e,n,i)}function Kn(t,e,n){Vn.call(this,t,e,n)}function Qn(t,e,n,i){Vn.call(this,t,e,n,i)}function Jn(t,e,n,i){Vn.apply(this,arguments)}function $n(t,e,n){this.name=t,this.tracks=n,this.duration=void 0!==e?e:-1,this.uuid=fs.generateUUID(),this.duration<0&&this.resetDuration(),this.optimize()}function ti(t){this.manager=void 0!==t?t:Ls,this.textures={}}function ei(t){this.manager=void 0!==t?t:Ls}function ni(){this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){}}function ii(t){\"boolean\"==typeof t&&(console.warn(\"THREE.JSONLoader: showStatus parameter has been removed from constructor.\"),t=void 0),this.manager=void 0!==t?t:Ls,this.withCredentials=!1}function ri(t){this.manager=void 0!==t?t:Ls,this.texturePath=\"\"}function ai(t,e,n,i,r){var a=.5*(i-e),o=.5*(r-n),s=t*t;return(2*n-2*i+a+o)*(t*s)+(-3*n+3*i-2*a-o)*s+a*t+n}function oi(t,e){var n=1-t;return n*n*e}function si(t,e){return 2*(1-t)*t*e}function li(t,e){return t*t*e}function ui(t,e,n,i){return oi(t,e)+si(t,n)+li(t,i)}function ci(t,e){var n=1-t;return n*n*n*e}function hi(t,e){var n=1-t;return 3*n*n*t*e}function di(t,e){return 3*(1-t)*t*t*e}function fi(t,e){return t*t*t*e}function pi(t,e,n,i,r){return ci(t,e)+hi(t,n)+di(t,i)+fi(t,r)}function mi(){}function gi(t,e){this.v1=t,this.v2=e}function vi(){this.curves=[],this.autoClose=!1}function yi(t,e,n,i,r,a,o,s){this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s||0}function bi(t){this.points=void 0===t?[]:t}function xi(t,e,n,i){this.v0=t,this.v1=e,this.v2=n,this.v3=i}function _i(t,e,n){this.v0=t,this.v1=e,this.v2=n}function wi(t){vi.call(this),this.currentPoint=new r,t&&this.fromPoints(t)}function Mi(){wi.apply(this,arguments),this.holes=[]}function Si(){this.subPaths=[],this.currentPath=null}function Ei(t){this.data=t}function ki(t){this.manager=void 0!==t?t:Ls}function Ti(t){this.manager=void 0!==t?t:Ls}function Ci(t,e,n,i){An.call(this,t,e),this.type=\"RectAreaLight\",this.position.set(0,1,0),this.updateMatrix(),this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function Pi(){this.type=\"StereoCamera\",this.aspect=1,this.eyeSep=.064,this.cameraL=new Nt,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Nt,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function Oi(t,e,n){ct.call(this),this.type=\"CubeCamera\";var i=new Nt(90,1,t,e);i.up.set(0,-1,0),i.lookAt(new c(1,0,0)),this.add(i);var r=new Nt(90,1,t,e);r.up.set(0,-1,0),r.lookAt(new c(-1,0,0)),this.add(r);var a=new Nt(90,1,t,e);a.up.set(0,0,1),a.lookAt(new c(0,1,0)),this.add(a);var o=new Nt(90,1,t,e);o.up.set(0,0,-1),o.lookAt(new c(0,-1,0)),this.add(o);var s=new Nt(90,1,t,e);s.up.set(0,-1,0),s.lookAt(new c(0,0,1)),this.add(s);var u=new Nt(90,1,t,e);u.up.set(0,-1,0),u.lookAt(new c(0,0,-1)),this.add(u);var h={format:Po,magFilter:fo,minFilter:fo};this.renderTarget=new l(n,n,h),this.updateCubeMap=function(t,e){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,l=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,t.render(e,i,n),n.activeCubeFace=1,t.render(e,r,n),n.activeCubeFace=2,t.render(e,a,n),n.activeCubeFace=3,t.render(e,o,n),n.activeCubeFace=4,t.render(e,s,n),n.texture.generateMipmaps=l,n.activeCubeFace=5,t.render(e,u,n),t.setRenderTarget(null)}}function Ai(){ct.call(this),this.type=\"AudioListener\",this.context=Bs.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null}function Ri(t){ct.call(this),this.type=\"Audio\",this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType=\"empty\",this.filters=[]}function Li(t){Ri.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Ii(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=void 0!==e?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function Di(t,e,n){this.binding=t,this.valueSize=n;var i,r=Float64Array;switch(e){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}function Ni(t,e,n){this.path=e,this.parsedPath=n||Ni.parseTrackName(e),this.node=Ni.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function zi(t){this.uuid=fs.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var e={};this._indicesByUUID=e;for(var n=0,i=arguments.length;n!==i;++n)e[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}}function Bi(t,e,n){this._mixer=t,this._clip=e,this._localRoot=n||null;for(var i=e.tracks,r=i.length,a=new Array(r),o={endingStart:Qo,endingEnd:Qo},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=Yo,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 Fi(t){this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function Ui(t){\"string\"==typeof t&&(console.warn(\"THREE.Uniform: Type parameter is no longer needed.\"),t=arguments[1]),this.value=t}function ji(){Pt.call(this),this.type=\"InstancedBufferGeometry\",this.maxInstancedCount=void 0}function Wi(t,e,n,i){this.uuid=fs.generateUUID(),this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}function Gi(t,e){this.uuid=fs.generateUUID(),this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.onUploadCallback=function(){},this.version=0}function Vi(t,e,n){Gi.call(this,t,e),this.meshPerAttribute=n||1}function Hi(t,e,n){mt.call(this,t,e),this.meshPerAttribute=n||1}function Yi(t,e,n,i){this.ray=new st(t,e),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 qi(t,e){return t.distance-e.distance}function Xi(t,e,n,i){if(!1!==t.visible&&(t.raycast(e,n),!0===i))for(var r=t.children,a=0,o=r.length;a0?1:+t}),void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,\"name\",{get:function(){return this.toString().match(/^\\s*function\\s*([^\\(\\s]*)/)[1]}}),void 0===Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError(\"Cannot convert undefined or null to object\");for(var e=Object(t),n=1;n>=4,n[r]=e[19===r?3&t|8:t]);return n.join(\"\")}}(),clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*fs.DEG2RAD},radToDeg:function(t){return t*fs.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}};r.prototype={constructor:r,isVector2:!0,get width(){return this.x},set width(t){this.x=t},get height(){return this.y},set height(t){this.y=t},set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error(\"index is out of range: \"+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error(\"index is out of range: \"+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new r,e=new r),t.set(n,n),e.set(i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/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(t){return this.x*t.x+this.y*t.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length())},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},distanceToManhattan:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn(\"THREE.Vector2: offset has been removed from .fromBufferAttribute().\"),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,a=this.y-t.y;return this.x=r*n-a*i+t.x,this.y=r*i+a*n+t.y,this}};var ps=0;a.DEFAULT_IMAGE=void 0,a.DEFAULT_MAPPING=Ja,a.prototype={constructor:a,isTexture:!0,set needsUpdate(t){!0===t&&this.version++},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){if(void 0!==t.textures[this.uuid])return t.textures[this.uuid];var e={metadata:{version:4.4,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],wrap:[this.wrapS,this.wrapT],minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(void 0!==this.image){var n=this.image;void 0===n.uuid&&(n.uuid=fs.generateUUID()),void 0===t.images[n.uuid]&&(t.images[n.uuid]={uuid:n.uuid,url:function(t){var e;return void 0!==t.toDataURL?e=t:(e=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\"),e.width=t.width,e.height=t.height,e.getContext(\"2d\").drawImage(t,0,0,t.width,t.height)),e.width>2048||e.height>2048?e.toDataURL(\"image/jpeg\",.6):e.toDataURL(\"image/png\")}(n)}),e.image=n.uuid}return t.textures[this.uuid]=e,e},dispose:function(){this.dispatchEvent({type:\"dispose\"})},transformUv:function(t){if(this.mapping===Ja){if(t.multiply(this.repeat),t.add(this.offset),t.x<0||t.x>1)switch(this.wrapS){case oo:t.x=t.x-Math.floor(t.x);break;case so:t.x=t.x<0?0:1;break;case lo:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case oo:t.y=t.y-Math.floor(t.y);break;case so:t.y=t.y<0?0:1;break;case lo:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}this.flipY&&(t.y=1-t.y)}}},Object.assign(a.prototype,i.prototype),o.prototype={constructor:o,isVector4:!0,set:function(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error(\"index is out of range: \"+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error(\"index is out of range: \"+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this},add:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t,this.w*=t):(this.x=0,this.y=0,this.z=0,this.w=0),this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=this.w,a=t.elements;return this.x=a[0]*e+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*e+a[5]*n+a[9]*i+a[13]*r,this.z=a[2]*e+a[6]*n+a[10]*i+a[14]*r,this.w=a[3]*e+a[7]*n+a[11]*i+a[15]*r,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e,n,i,r,a=t.elements,o=a[0],s=a[4],l=a[8],u=a[1],c=a[5],h=a[9],d=a[2],f=a[6],p=a[10];if(Math.abs(s-u)<.01&&Math.abs(l-d)<.01&&Math.abs(h-f)<.01){if(Math.abs(s+u)<.1&&Math.abs(l+d)<.1&&Math.abs(h+f)<.1&&Math.abs(o+c+p-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;var m=(o+1)/2,g=(c+1)/2,v=(p+1)/2,y=(s+u)/4,b=(l+d)/4,x=(h+f)/4;return m>g&&m>v?m<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(m),i=y/n,r=b/n):g>v?g<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(g),n=y/i,r=x/i):v<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=b/r,i=x/r),this.set(n,i,r,e),this}var _=Math.sqrt((f-h)*(f-h)+(l-d)*(l-d)+(u-s)*(u-s));return Math.abs(_)<.001&&(_=1),this.x=(f-h)/_,this.y=(l-d)/_,this.z=(u-s)/_,this.w=Math.acos((o+c+p-1)/2),this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new o,e=new o),t.set(n,n,n,n),e.set(i,i,i,i),this.clamp(t,e)}}(),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(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan: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())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn(\"THREE.Vector4: offset has been removed from .fromBufferAttribute().\"),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}},s.prototype={constructor:s,isWebGLRenderTarget:!0,setSize:function(t,e){this.width===t&&this.height===e||(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:\"dispose\"})}},Object.assign(s.prototype,i.prototype),l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.isWebGLRenderTargetCube=!0,u.prototype={constructor:u,get x(){return this._x},set x(t){this._x=t,this.onChangeCallback()},get y(){return this._y},set y(t){this._y=t,this.onChangeCallback()},get z(){return this._z},set z(t){this._z=t,this.onChangeCallback()},get w(){return this._w},set w(t){this._w=t,this.onChangeCallback()},set:function(t,e,n,i){return this._x=t,this._y=e,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(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!1===(t&&t.isEuler))throw new Error(\"THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.\");var n=Math.cos(t._x/2),i=Math.cos(t._y/2),r=Math.cos(t._z/2),a=Math.sin(t._x/2),o=Math.sin(t._y/2),s=Math.sin(t._z/2),l=t.order;return\"XYZ\"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r-a*o*s):\"YXZ\"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r+a*o*s):\"ZXY\"===l?(this._x=a*i*r-n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r-a*o*s):\"ZYX\"===l?(this._x=a*i*r-n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r+a*o*s):\"YZX\"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r-a*o*s):\"XZY\"===l&&(this._x=a*i*r-n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r+a*o*s),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e,n=t.elements,i=n[0],r=n[4],a=n[8],o=n[1],s=n[5],l=n[9],u=n[2],c=n[6],h=n[10],d=i+s+h;return d>0?(e=.5/Math.sqrt(d+1),this._w=.25/e,this._x=(c-l)*e,this._y=(a-u)*e,this._z=(o-r)*e):i>s&&i>h?(e=2*Math.sqrt(1+i-s-h),this._w=(c-l)/e,this._x=.25*e,this._y=(r+o)/e,this._z=(a+u)/e):s>h?(e=2*Math.sqrt(1+s-i-h),this._w=(a-u)/e,this._x=(r+o)/e,this._y=.25*e,this._z=(l+c)/e):(e=2*Math.sqrt(1+h-i-s),this._w=(o-r)/e,this._x=(a+u)/e,this._y=(l+c)/e,this._z=.25*e),this.onChangeCallback(),this},setFromUnitVectors:function(){var t,e;return function(n,i){return void 0===t&&(t=new c),e=n.dot(i)+1,e<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()}}(),inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this.onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn(\"THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead.\"),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,i=t._y,r=t._z,a=t._w,o=e._x,s=e._y,l=e._z,u=e._w;return this._x=n*u+a*o+i*l-r*s,this._y=i*u+a*s+r*o-n*l,this._z=r*u+a*l+n*s-i*o,this._w=a*u-n*o-i*s-r*l,this.onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var n=this._x,i=this._y,r=this._z,a=this._w,o=a*t._w+n*t._x+i*t._y+r*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=n,this._y=i,this._z=r,this;var s=Math.sqrt(1-o*o);if(Math.abs(s)<.001)return this._w=.5*(a+this._w),this._x=.5*(n+this._x),this._y=.5*(i+this._y),this._z=.5*(r+this._z),this;var l=Math.atan2(s,o),u=Math.sin((1-e)*l)/s,c=Math.sin(e*l)/s;return this._w=a*u+this._w*c,this._x=n*u+this._x*c,this._y=i*u+this._y*c,this._z=r*u+this._z*c,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},Object.assign(u,{slerp:function(t,e,n,i){return n.copy(t).slerp(e,i)},slerpFlat:function(t,e,n,i,r,a,o){var s=n[i+0],l=n[i+1],u=n[i+2],c=n[i+3],h=r[a+0],d=r[a+1],f=r[a+2],p=r[a+3];if(c!==p||s!==h||l!==d||u!==f){var m=1-o,g=s*h+l*d+u*f+c*p,v=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,g*v);m=Math.sin(m*x)/b,o=Math.sin(o*x)/b}var _=o*v;if(s=s*m+h*_,l=l*m+d*_,u=u*m+f*_,c=c*m+p*_,m===1-o){var w=1/Math.sqrt(s*s+l*l+u*u+c*c);s*=w,l*=w,u*=w,c*=w}}t[e]=s,t[e+1]=l,t[e+2]=u,t[e+3]=c}}),c.prototype={constructor:c,isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error(\"index is out of range: \"+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error(\"index is out of range: \"+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.\"),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t;return function(e){return!1===(e&&e.isEuler)&&console.error(\"THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.\"),void 0===t&&(t=new u),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t;return function(e,n){return void 0===t&&(t=new u),this.applyQuaternion(t.setFromAxisAngle(e,n))}}(),applyMatrix3:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;this.x=r[0]*e+r[4]*n+r[8]*i+r[12],this.y=r[1]*e+r[5]*n+r[9]*i+r[13],this.z=r[2]*e+r[6]*n+r[10]*i+r[14];var a=r[3]*e+r[7]*n+r[11]*i+r[15];return this.divideScalar(a)},applyQuaternion:function(t){var e=this.x,n=this.y,i=this.z,r=t.x,a=t.y,o=t.z,s=t.w,l=s*e+a*i-o*n,u=s*n+o*e-r*i,c=s*i+r*n-a*e,h=-r*e-a*n-o*i;return this.x=l*s+h*-r+u*-o-c*-a,this.y=u*s+h*-a+c*-r-l*-o,this.z=c*s+h*-o+l*-a-u*-r,this},project:function(){var t;return function(e){return void 0===t&&(t=new h),t.multiplyMatrices(e.projectionMatrix,t.getInverse(e.matrixWorld)),this.applyMatrix4(t)}}(),unproject:function(){var t;return function(e){return void 0===t&&(t=new h),t.multiplyMatrices(e.matrixWorld,t.getInverse(e.projectionMatrix)),this.applyMatrix4(t)}}(),transformDirection:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new c,e=new c),t.set(n,n,n),e.set(i,i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/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(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){if(void 0!==e)return console.warn(\"THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.\"),this.crossVectors(t,e);var n=this.x,i=this.y,r=this.z;return this.x=i*t.z-r*t.y,this.y=r*t.x-n*t.z,this.z=n*t.y-i*t.x,this},crossVectors:function(t,e){var n=t.x,i=t.y,r=t.z,a=e.x,o=e.y,s=e.z;return this.x=i*s-r*o,this.y=r*a-n*s,this.z=n*o-i*a,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t;return function(e){return void 0===t&&(t=new c),t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t;return function(e){return void 0===t&&(t=new c),this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){var e=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq());return Math.acos(fs.clamp(e,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i},distanceToManhattan:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){var e=Math.sin(t.phi)*t.radius;return this.x=e*Math.sin(t.theta),this.y=Math.cos(t.phi)*t.radius,this.z=e*Math.cos(t.theta),this},setFromCylindrical:function(t){return this.x=t.radius*Math.sin(t.theta),this.y=t.y,this.z=t.radius*Math.cos(t.theta),this},setFromMatrixPosition:function(t){return this.setFromMatrixColumn(t,3)},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this},setFromMatrixColumn:function(t,e){if(\"number\"==typeof t){console.warn(\"THREE.Vector3: setFromMatrixColumn now expects ( matrix, index ).\");var n=t;t=e,e=n}return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn(\"THREE.Vector3: offset has been removed from .fromBufferAttribute().\"),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}},h.prototype={constructor:h,isMatrix4:!0,set:function(t,e,n,i,r,a,o,s,l,u,c,h,d,f,p,m){var g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=a,g[9]=o,g[13]=s,g[2]=l,g[6]=u,g[10]=c,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[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 h).fromArray(this.elements)},copy:function(t){return this.elements.set(t.elements),this},copyPosition:function(t){var e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this},extractRotation:function(){var t;return function(e){void 0===t&&(t=new c);var n=this.elements,i=e.elements,r=1/t.setFromMatrixColumn(e,0).length(),a=1/t.setFromMatrixColumn(e,1).length(),o=1/t.setFromMatrixColumn(e,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[4]=i[4]*a,n[5]=i[5]*a,n[6]=i[6]*a,n[8]=i[8]*o,n[9]=i[9]*o,n[10]=i[10]*o,this}}(),makeRotationFromEuler:function(t){!1===(t&&t.isEuler)&&console.error(\"THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.\");var e=this.elements,n=t.x,i=t.y,r=t.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(i),l=Math.sin(i),u=Math.cos(r),c=Math.sin(r);if(\"XYZ\"===t.order){var h=a*u,d=a*c,f=o*u,p=o*c;e[0]=s*u,e[4]=-s*c,e[8]=l,e[1]=d+f*l,e[5]=h-p*l,e[9]=-o*s,e[2]=p-h*l,e[6]=f+d*l,e[10]=a*s}else if(\"YXZ\"===t.order){var m=s*u,g=s*c,v=l*u,y=l*c;e[0]=m+y*o,e[4]=v*o-g,e[8]=a*l,e[1]=a*c,e[5]=a*u,e[9]=-o,e[2]=g*o-v,e[6]=y+m*o,e[10]=a*s}else if(\"ZXY\"===t.order){var m=s*u,g=s*c,v=l*u,y=l*c;e[0]=m-y*o,e[4]=-a*c,e[8]=v+g*o,e[1]=g+v*o,e[5]=a*u,e[9]=y-m*o,e[2]=-a*l,e[6]=o,e[10]=a*s}else if(\"ZYX\"===t.order){var h=a*u,d=a*c,f=o*u,p=o*c;e[0]=s*u,e[4]=f*l-d,e[8]=h*l+p,e[1]=s*c,e[5]=p*l+h,e[9]=d*l-f,e[2]=-l,e[6]=o*s,e[10]=a*s}else if(\"YZX\"===t.order){var b=a*s,x=a*l,_=o*s,w=o*l;e[0]=s*u,e[4]=w-b*c,e[8]=_*c+x,e[1]=c,e[5]=a*u,e[9]=-o*u,e[2]=-l*u,e[6]=x*c+_,e[10]=b-w*c}else if(\"XZY\"===t.order){var b=a*s,x=a*l,_=o*s,w=o*l;e[0]=s*u,e[4]=-c,e[8]=l*u,e[1]=b*c+w,e[5]=a*u,e[9]=x*c-_,e[2]=_*c-x,e[6]=o*u,e[10]=w*c+b}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(t){var e=this.elements,n=t.x,i=t.y,r=t.z,a=t.w,o=n+n,s=i+i,l=r+r,u=n*o,c=n*s,h=n*l,d=i*s,f=i*l,p=r*l,m=a*o,g=a*s,v=a*l;return e[0]=1-(d+p),e[4]=c-v,e[8]=h+g,e[1]=c+v,e[5]=1-(u+p),e[9]=f-m,e[2]=h-g,e[6]=f+m,e[10]=1-(u+d),e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},lookAt:function(){var t,e,n;return function(i,r,a){void 0===t&&(t=new c,e=new c,n=new c);var o=this.elements;return n.subVectors(i,r).normalize(),0===n.lengthSq()&&(n.z=1),t.crossVectors(a,n).normalize(),0===t.lengthSq()&&(n.z+=1e-4,t.crossVectors(a,n).normalize()),e.crossVectors(n,t),o[0]=t.x,o[4]=e.x,o[8]=n.x,o[1]=t.y,o[5]=e.y,o[9]=n.y,o[2]=t.z,o[6]=e.z,o[10]=n.z,this}}(),multiply:function(t,e){return void 0!==e?(console.warn(\"THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.\"),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,i=e.elements,r=this.elements,a=n[0],o=n[4],s=n[8],l=n[12],u=n[1],c=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],_=i[0],w=i[4],M=i[8],S=i[12],E=i[1],k=i[5],T=i[9],C=i[13],P=i[2],O=i[6],A=i[10],R=i[14],L=i[3],I=i[7],D=i[11],N=i[15];return r[0]=a*_+o*E+s*P+l*L,r[4]=a*w+o*k+s*O+l*I,r[8]=a*M+o*T+s*A+l*D,r[12]=a*S+o*C+s*R+l*N,r[1]=u*_+c*E+h*P+d*L,r[5]=u*w+c*k+h*O+d*I,r[9]=u*M+c*T+h*A+d*D,r[13]=u*S+c*C+h*R+d*N,r[2]=f*_+p*E+m*P+g*L,r[6]=f*w+p*k+m*O+g*I,r[10]=f*M+p*T+m*A+g*D,r[14]=f*S+p*C+m*R+g*N,r[3]=v*_+y*E+b*P+x*L,r[7]=v*w+y*k+b*O+x*I,r[11]=v*M+y*T+b*A+x*D,r[15]=v*S+y*C+b*R+x*N,this},multiplyToArray:function(t,e,n){var i=this.elements;return this.multiplyMatrices(t,e),n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t;return function(e){void 0===t&&(t=new c);for(var n=0,i=e.count;n 0.0 ) {\\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\\n\\t\\t\\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\\n\\t\\t\\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\\n\\t\\t\\treturn distanceFalloff * maxDistanceCutoffFactor;\\n#else\\n\\t\\t\\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\\n#endif\\n\\t\\t}\\n\\t\\treturn 1.0;\\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 ltcTextureCoords( const in GeometricContext geometry, 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\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 P = geometry.position;\\n\\tfloat theta = acos( dot( N, V ) );\\n\\tvec2 uv = vec2(\\n\\t\\tsqrt( saturate( roughness ) ),\\n\\t\\tsaturate( theta / ( 0.5 * PI ) ) );\\n\\tuv = uv * LUT_SCALE + LUT_BIAS;\\n\\treturn uv;\\n}\\nvoid clipQuadToHorizon( inout vec3 L[5], out int n ) {\\n\\tint config = 0;\\n\\tif ( L[0].z > 0.0 ) config += 1;\\n\\tif ( L[1].z > 0.0 ) config += 2;\\n\\tif ( L[2].z > 0.0 ) config += 4;\\n\\tif ( L[3].z > 0.0 ) config += 8;\\n\\tn = 0;\\n\\tif ( config == 0 ) {\\n\\t} else if ( config == 1 ) {\\n\\t\\tn = 3;\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t\\tL[2] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t} else if ( config == 2 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t} else if ( config == 3 ) {\\n\\t\\tn = 4;\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t\\tL[3] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t} else if ( config == 4 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t\\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t} else if ( config == 5 ) {\\n\\t\\tn = 0;\\n\\t} else if ( config == 6 ) {\\n\\t\\tn = 4;\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t\\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t} else if ( config == 7 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t\\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t} else if ( config == 8 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t\\tL[1] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t\\tL[2] = L[3];\\n\\t} else if ( config == 9 ) {\\n\\t\\tn = 4;\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t\\tL[2] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t} else if ( config == 10 ) {\\n\\t\\tn = 0;\\n\\t} else if ( config == 11 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = L[3];\\n\\t\\tL[3] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t} else if ( config == 12 ) {\\n\\t\\tn = 4;\\n\\t\\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t\\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t} else if ( config == 13 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = L[3];\\n\\t\\tL[3] = L[2];\\n\\t\\tL[2] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t} else if ( config == 14 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t} else if ( config == 15 ) {\\n\\t\\tn = 4;\\n\\t}\\n\\tif ( n == 3 )\\n\\t\\tL[3] = L[0];\\n\\tif ( n == 4 )\\n\\t\\tL[4] = L[0];\\n}\\nfloat integrateLtcBrdfOverRectEdge( vec3 v1, vec3 v2 ) {\\n\\tfloat cosTheta = dot( v1, v2 );\\n\\tfloat theta = acos( cosTheta );\\n\\tfloat res = cross( v1, v2 ).z * ( ( theta > 0.001 ) ? theta / sin( theta ) : 1.0 );\\n\\treturn res;\\n}\\nvoid initRectPoints( const in vec3 pos, const in vec3 halfWidth, const in vec3 halfHeight, out vec3 rectPoints[4] ) {\\n\\trectPoints[0] = pos - halfWidth - halfHeight;\\n\\trectPoints[1] = pos + halfWidth - halfHeight;\\n\\trectPoints[2] = pos + halfWidth + halfHeight;\\n\\trectPoints[3] = pos - halfWidth + halfHeight;\\n}\\nvec3 integrateLtcBrdfOverRect( const in GeometricContext geometry, const in mat3 brdfMat, const in vec3 rectPoints[4] ) {\\n\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 P = geometry.position;\\n\\tvec3 T1, T2;\\n\\tT1 = normalize(V - N * dot( V, N ));\\n\\tT2 = - cross( N, T1 );\\n\\tmat3 brdfWrtSurface = brdfMat * transpose( mat3( T1, T2, N ) );\\n\\tvec3 clippedRect[5];\\n\\tclippedRect[0] = brdfWrtSurface * ( rectPoints[0] - P );\\n\\tclippedRect[1] = brdfWrtSurface * ( rectPoints[1] - P );\\n\\tclippedRect[2] = brdfWrtSurface * ( rectPoints[2] - P );\\n\\tclippedRect[3] = brdfWrtSurface * ( rectPoints[3] - P );\\n\\tint n;\\n\\tclipQuadToHorizon(clippedRect, n);\\n\\tif ( n == 0 )\\n\\t\\treturn vec3( 0, 0, 0 );\\n\\tclippedRect[0] = normalize( clippedRect[0] );\\n\\tclippedRect[1] = normalize( clippedRect[1] );\\n\\tclippedRect[2] = normalize( clippedRect[2] );\\n\\tclippedRect[3] = normalize( clippedRect[3] );\\n\\tclippedRect[4] = normalize( clippedRect[4] );\\n\\tfloat sum = 0.0;\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[0], clippedRect[1] );\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[1], clippedRect[2] );\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[2], clippedRect[3] );\\n\\tif (n >= 4)\\n\\t\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[3], clippedRect[4] );\\n\\tif (n == 5)\\n\\t\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[4], clippedRect[0] );\\n\\tsum = max( 0.0, sum );\\n\\tvec3 Lo_i = vec3( sum, sum, sum );\\n\\treturn Lo_i;\\n}\\nvec3 Rect_Area_Light_Specular_Reflectance(\\n\\t\\tconst in GeometricContext geometry,\\n\\t\\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight,\\n\\t\\tconst in float roughness,\\n\\t\\tconst in sampler2D ltcMat, const in sampler2D ltcMag ) {\\n\\tvec3 rectPoints[4];\\n\\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\\n\\tvec2 uv = ltcTextureCoords( geometry, roughness );\\n\\tvec4 brdfLtcApproxParams, t;\\n\\tbrdfLtcApproxParams = texture2D( ltcMat, uv );\\n\\tt = texture2D( ltcMat, uv );\\n\\tfloat brdfLtcScalar = texture2D( ltcMag, uv ).a;\\n\\tmat3 brdfLtcApproxMat = mat3(\\n\\t\\tvec3( 1, 0, t.y ),\\n\\t\\tvec3( 0, t.z, 0 ),\\n\\t\\tvec3( t.w, 0, t.x )\\n\\t);\\n\\tvec3 specularReflectance = integrateLtcBrdfOverRect( geometry, brdfLtcApproxMat, rectPoints );\\n\\tspecularReflectance *= brdfLtcScalar;\\n\\treturn specularReflectance;\\n}\\nvec3 Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\tconst in GeometricContext geometry,\\n\\t\\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight ) {\\n\\tvec3 rectPoints[4];\\n\\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\\n\\tmat3 diffuseBrdfMat = mat3(1);\\n\\tvec3 diffuseReflectance = integrateLtcBrdfOverRect( geometry, diffuseBrdfMat, rectPoints );\\n\\treturn diffuseReflectance;\\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 = dFdx( surf_pos );\\n\\t\\tvec3 vSigmaY = dFdy( surf_pos );\\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\\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\\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; ++ i ) {\\n\\t\\tvec4 plane = clippingPlanes[ i ];\\n\\t\\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\\n\\t}\\n\\t\\t\\n\\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\\n\\t\\tbool clipped = true;\\n\\t\\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; ++ i ) {\\n\\t\\t\\tvec4 plane = clippingPlanes[ i ];\\n\\t\\t\\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\\n\\t\\t}\\n\\t\\tif ( clipped ) discard;\\n\\t\\n\\t#endif\\n#endif\\n\",clipping_planes_pars_fragment:\"#if NUM_CLIPPING_PLANES > 0\\n\\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\\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 )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n\",clipping_planes_vertex:\"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\\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 transpose( const in mat3 v ) {\\n\\tmat3 tmp;\\n\\ttmp[0] = vec3(v[0].x, v[1].x, v[2].x);\\n\\ttmp[1] = vec3(v[0].y, v[1].y, v[2].y);\\n\\ttmp[2] = vec3(v[0].z, v[1].z, v[2].z);\\n\\treturn tmp;\\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(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:\"#ifdef FLIP_SIDED\\n\\tobjectNormal = -objectNormal;\\n#endif\\nvec3 transformedNormal = normalMatrix * objectNormal;\\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 += normal * ( 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.xyz, vec3( gammaFactor ) ), value.w );\\n}\\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\\n\\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\\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.w );\\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.w );\\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.xyz * value.w * maxRange, 1.0 );\\n}\\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\\n\\tfloat maxRGB = max( value.x, 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.x, 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, flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\\n\\t#elif defined( ENVMAP_TYPE_EQUIREC )\\n\\t\\tvec2 sampleUV;\\n\\t\\tsampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );\\n\\t\\tsampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\\n\\t\\tvec4 envColor = texture2D( envMap, sampleUV );\\n\\t#elif defined( ENVMAP_TYPE_SPHERE )\\n\\t\\tvec3 reflectView = flipNormal * 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\\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_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:\"\\n#ifdef USE_FOG\\nfogDepth = -mvPosition.z;\\n#endif\",fog_pars_vertex:\"#ifdef USE_FOG\\n varying 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\\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\\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\\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\\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:\"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};\\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 ltcMat;\\tuniform sampler2D ltcMag;\\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#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( 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(queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent));\\n\\t\\t#elif defined( ENVMAP_TYPE_EQUIREC )\\n\\t\\t\\tvec2 sampleUV;\\n\\t\\t\\tsampleUV.y = saturate( reflectVec.y * 0.5 + 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\",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};\\n#if NUM_RECT_AREA_LIGHTS > 0\\n\\tvoid RE_Direct_RectArea_BlinnPhong( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t\\tvec3 matDiffColor = material.diffuseColor;\\n\\t\\tvec3 matSpecColor = material.specularColor;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = BlinnExponentToGGXRoughness( material.specularShininess );\\n\\t\\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\\n\\t\\t\\t\\troughness,\\n\\t\\t\\t\\tltcMat, ltcMag );\\n\\t\\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\\n\\t\\treflectedLight.directSpecular += lightColor * matSpecColor * spec / PI2;\\n\\t\\treflectedLight.directDiffuse += lightColor * matDiffColor * diff / PI2;\\n\\t}\\n#endif\\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_Direct_RectArea\\t\\tRE_Direct_RectArea_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 matDiffColor = material.diffuseColor;\\n\\t\\tvec3 matSpecColor = material.specularColor;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = material.specularRoughness;\\n\\t\\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\\n\\t\\t\\t\\troughness,\\n\\t\\t\\t\\tltcMat, ltcMag );\\n\\t\\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\\n\\t\\treflectedLight.directSpecular += lightColor * matSpecColor * spec;\\n\\t\\treflectedLight.directDiffuse += lightColor * matDiffColor * diff;\\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_template:\"\\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\\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 ] ) : 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\\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\\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\\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#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 ( NUM_HEMI_LIGHTS > 0 )\\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\\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\tirradiance += getLightProbeIndirectIrradiance( geometry, 8 );\\n\\t#endif\\n\\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\\n#endif\\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\\n\\tvec3 radiance = getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), 8 );\\n\\t#ifndef STANDARD\\n\\t\\tvec3 clearCoatRadiance = getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), 8 );\\n\\t#else\\n\\t\\tvec3 clearCoatRadiance = vec3( 0.0 );\\n\\t#endif\\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:\"#ifdef USE_LOGDEPTHBUF\\n\\tuniform float logDepthBufFC;\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t#endif\\n#endif\\n\",logdepthbuf_pars_vertex:\"#ifdef USE_LOGDEPTHBUF\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t#endif\\n\\tuniform float logDepthBufFC;\\n#endif\",logdepthbuf_vertex:\"#ifdef USE_LOGDEPTHBUF\\n\\tgl_Position.z = log2(max( EPSILON, gl_Position.w + 1.0 )) * logDepthBufFC;\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvFragDepth = 1.0 + gl_Position.w;\\n\\t#else\\n\\t\\tgl_Position.z = (gl_Position.z - 1.0) * 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\\tvec4 mapTexel = texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) * offsetRepeat.zw + offsetRepeat.xy );\\n\\tdiffuseColor *= mapTexelToLinear( mapTexel );\\n#endif\\n\",map_particle_pars_fragment:\"#ifdef USE_MAP\\n\\tuniform vec4 offsetRepeat;\\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.r;\\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_flip:\"#ifdef DOUBLE_SIDED\\n\\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n#else\\n\\tfloat flipNormal = 1.0;\\n#endif\\n\",normal_fragment:\"#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 ) * flipNormal;\\n#endif\\n#ifdef USE_NORMALMAP\\n\\tnormal = perturbNormal2Arb( -vViewPosition, normal );\\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\\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\\n\\t\\tvec3 q0 = dFdx( eye_pos.xyz );\\n\\t\\tvec3 q1 = dFdy( eye_pos.xyz );\\n\\t\\tvec2 st0 = dFdx( vUv.st );\\n\\t\\tvec2 st1 = dFdy( vUv.st );\\n\\t\\tvec3 S = normalize( q0 * st1.t - q1 * st0.t );\\n\\t\\tvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\\n\\t\\tvec3 N = normalize( surf_norm );\\n\\t\\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\\n\\t\\tmapN.xy = normalScale * mapN.xy;\\n\\t\\tmat3 tsn = mat3( S, T, N );\\n\\t\\treturn normalize( tsn * mapN );\\n\\t}\\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 1.0 - 2.0 * rgb.xyz;\\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:\"#ifdef USE_SKINNING\\n\\tvec4 mvPosition = modelViewMatrix * skinned;\\n#else\\n\\tvec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\\n#endif\\ngl_Position = projectionMatrix * mvPosition;\\n\",roughnessmap_fragment:\"float roughnessFactor = roughness;\\n#ifdef USE_ROUGHNESSMAP\\n\\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\\n\\troughnessFactor *= texelRoughness.r;\\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\\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\\treturn (\\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\\treturn (\\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\\treturn texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\\n\\t\\t#endif\\n\\t\\t}\\n\\t\\treturn 1.0;\\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 ) {\\n\\t\\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\\n\\t\\tvec3 lightToPosition = shadowCoord.xyz;\\n\\t\\tvec3 bd3D = normalize( lightToPosition );\\n\\t\\tfloat dp = ( length( lightToPosition ) - shadowBias ) / 1000.0;\\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\\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\\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\\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\\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\\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\\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 ] ) : 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 boneTextureWidth;\\n\\t\\tuniform int boneTextureHeight;\\n\\t\\tmat4 getBoneMatrix( const in float i ) {\\n\\t\\t\\tfloat j = i * 4.0;\\n\\t\\t\\tfloat x = mod( j, float( boneTextureWidth ) );\\n\\t\\t\\tfloat y = floor( j / float( boneTextureWidth ) );\\n\\t\\t\\tfloat dx = 1.0 / float( boneTextureWidth );\\n\\t\\t\\tfloat dy = 1.0 / float( boneTextureHeight );\\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\\tskinned = bindMatrixInverse * skinned;\\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:\"#define saturate(a) clamp( a, 0.0, 1.0 )\\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 vec4 offsetRepeat;\\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 = uv * offsetRepeat.zw + offsetRepeat.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( PHONG ) || defined( PHYSICAL ) || defined( LAMBERT ) || defined ( USE_SHADOWMAP )\\n\\t#ifdef USE_SKINNING\\n\\t\\tvec4 worldPosition = modelMatrix * skinned;\\n\\t#else\\n\\t\\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\\n\\t#endif\\n#endif\\n\",cube_frag:\"uniform samplerCube tCube;\\nuniform float tFlip;\\nuniform float opacity;\\nvarying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\\n\\tgl_FragColor.a *= opacity;\\n}\\n\",cube_vert:\"varying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvWorldPosition = transformDirection( position, modelMatrix );\\n\\t#include \\n\\t#include \\n}\\n\",depth_frag:\"#if DEPTH_PACKING == 3200\\n\\tuniform float opacity;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( 1.0 );\\n\\t#if DEPTH_PACKING == 3200\\n\\t\\tdiffuseColor.a = opacity;\\n\\t#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#if DEPTH_PACKING == 3200\\n\\t\\tgl_FragColor = vec4( vec3( 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 \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",distanceRGBA_frag:\"uniform vec3 lightPos;\\nvarying vec4 vWorldPosition;\\n#include \\n#include \\n#include \\nvoid main () {\\n\\t#include \\n\\tgl_FragColor = packDepthToRGBA( length( vWorldPosition.xyz - lightPos.xyz ) / 1000.0 );\\n}\\n\",distanceRGBA_vert:\"varying vec4 vWorldPosition;\\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvWorldPosition = worldPosition;\\n}\\n\",equirect_frag:\"uniform sampler2D tEquirect;\\nuniform float tFlip;\\nvarying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvec3 direction = normalize( vWorldPosition );\\n\\tvec2 sampleUV;\\n\\tsampleUV.y = saturate( tFlip * direction.y * -0.5 + 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 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvWorldPosition = transformDirection( position, modelMatrix );\\n\\t#include \\n\\t#include \\n}\\n\",linedashed_frag:\"uniform vec3 diffuse;\\nuniform float opacity;\\nuniform float dashSize;\\nuniform float totalSize;\\nvarying float vLineDistance;\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\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 \\n\\t#include \\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",linedashed_vert:\"uniform float scale;\\nattribute float lineDistance;\\nvarying float vLineDistance;\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvLineDistance = scale * lineDistance;\\n\\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\\n\\tgl_Position = projectionMatrix * mvPosition;\\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshbasic_frag:\"uniform vec3 diffuse;\\nuniform float opacity;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\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 \\n\\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\\n\\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshbasic_vert:\"#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#ifdef USE_ENVMAP\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\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 \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\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 \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\\n\\t#include \\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 \\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshlambert_vert:\"#define LAMBERT\\nvarying vec3 vLightFront;\\n#ifdef DOUBLE_SIDED\\n\\tvarying vec3 vLightBack;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphong_frag:\"#define PHONG\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform vec3 specular;\\nuniform float shininess;\\nuniform float opacity;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\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 \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphong_vert:\"#define PHONG\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvViewPosition = - mvPosition.xyz;\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\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 \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\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 \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphysical_vert:\"#define PHYSICAL\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvViewPosition = - mvPosition.xyz;\\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",normal_frag:\"#define NORMAL\\nuniform float opacity;\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\\n}\\n\",normal_vert:\"#define NORMAL\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvViewPosition = - mvPosition.xyz;\\n#endif\\n}\\n\",points_frag:\"uniform vec3 diffuse;\\nuniform float opacity;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",points_vert:\"uniform float size;\\nuniform float scale;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#ifdef USE_SIZEATTENUATION\\n\\t\\tgl_PointSize = size * ( scale / - mvPosition.z );\\n\\t#else\\n\\t\\tgl_PointSize = size;\\n\\t#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",shadow_frag:\"uniform float opacity;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\tgl_FragColor = vec4( 0.0, 0.0, 0.0, opacity * ( 1.0 - getShadowMask() ) );\\n}\\n\",shadow_vert:\"#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\"};q.prototype={constructor:q,isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):\"number\"==typeof t?this.setHex(t):\"string\"==typeof t&&this.setStyle(t),this},setScalar:function(t){return this.r=t,this.g=t,this.b=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(){function t(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}return function(e,n,i){if(e=fs.euclideanModulo(e,1),n=fs.clamp(n,0,1),i=fs.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=t(a,r,e+1/3),this.g=t(a,r,e),this.b=t(a,r,e-1/3)}return this}}(),setStyle:function(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn(\"THREE.Color: Alpha component of \"+t+\" will be ignored.\")}var n;if(n=/^((?:rgb|hsl)a?)\\(\\s*([^\\)]*)\\)/.exec(t)){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,e(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,e(i[5]),this;break;case\"hsl\":case\"hsla\":if(i=/^([0-9]*\\.?[0-9]+)\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(a)){var o=parseFloat(i[1])/360,s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(o,s,l)}}}else if(n=/^\\#([A-Fa-f0-9]+)$/.exec(t)){var u=n[1],c=u.length;if(3===c)return this.r=parseInt(u.charAt(0)+u.charAt(0),16)/255,this.g=parseInt(u.charAt(1)+u.charAt(1),16)/255,this.b=parseInt(u.charAt(2)+u.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(u.charAt(0)+u.charAt(1),16)/255,this.g=parseInt(u.charAt(2)+u.charAt(3),16)/255,this.b=parseInt(u.charAt(4)+u.charAt(5),16)/255,this}if(t&&t.length>0){var u=ws[t];void 0!==u?this.setHex(u):console.warn(\"THREE.Color: Unknown color \"+t)}return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return void 0===e&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){void 0===e&&(e=2);var n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this},convertGammaToLinear:function(){var t=this.r,e=this.g,n=this.b;return this.r=t*t,this.g=e*e,this.b=n*n,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return(\"000000\"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){var e,n,i=t||{h:0,s:0,l:0},r=this.r,a=this.g,o=this.b,s=Math.max(r,a,o),l=Math.min(r,a,o),u=(l+s)/2;if(l===s)e=0,n=0;else{var c=s-l;switch(n=u<=.5?c/(s+l):c/(2-s-l),s){case r:e=(a-o)/c+(athis.max.x||t.ythis.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return(e||new r).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y)},clampPoint:function(t,e){return(e||new r).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new r;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}};var Es=0;J.prototype={constructor:J,isMaterial:!0,get needsUpdate(){return this._needsUpdate},set needsUpdate(t){!0===t&&this.update(),this._needsUpdate=t},setValues:function(t){if(void 0!==t)for(var e in t){var n=t[e];if(void 0!==n){var i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=\"overdraw\"===e?Number(n):n:console.warn(\"THREE.\"+this.type+\": '\"+e+\"' is not a property of this material.\")}else console.warn(\"THREE.Material: '\"+e+\"' parameter is undefined.\")}},toJSON:function(t){function e(t){var e=[];for(var n in t){var i=t[n];delete i.metadata,e.push(i)}return e}var n=void 0===t;n&&(t={textures:{},images:{}});var i={metadata:{version:4.4,type:\"Material\",generator:\"Material.toJSON\"}};if(i.uuid=this.uuid,i.type=this.type,\"\"!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearCoat&&(i.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(i.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,i.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(i.size=this.size),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==ma&&(i.blending=this.blending),this.shading!==ca&&(i.shading=this.shading),this.side!==oa&&(i.side=this.side),this.vertexColors!==ha&&(i.vertexColors=this.vertexColors),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),\"round\"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),\"round\"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),i.skinning=this.skinning,i.morphTargets=this.morphTargets,n){var r=e(t.textures),a=e(t.images);r.length>0&&(i.textures=r),a.length>0&&(i.images=a)}return i},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.shading=t.shading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.overdraw=t.overdraw,this.visible=t.visible,this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,n=null;if(null!==e){var i=e.length;n=new Array(i);for(var r=0;r!==i;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this},update:function(){this.dispatchEvent({type:\"update\"})},dispose:function(){this.dispatchEvent({type:\"dispose\"})}},Object.assign(J.prototype,i.prototype),$.prototype=Object.create(J.prototype),$.prototype.constructor=$,$.prototype.isShaderMaterial=!0,$.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=xs.clone(t.uniforms),this.defines=t.defines,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},$.prototype.toJSON=function(t){var e=J.prototype.toJSON.call(this,t);return e.uniforms=this.uniforms,e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},tt.prototype=Object.create(J.prototype),tt.prototype.constructor=tt,tt.prototype.isMeshDepthMaterial=!0,tt.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},et.prototype={constructor:et,isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=t.length;sr&&(r=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=t.count;sr&&(r=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return(e||new c).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)},intersectsSphere:function(){var t;return function(e){return void 0===t&&(t=new c),this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){var e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=t.constant&&n>=t.constant},clampPoint:function(t,e){return(e||new c).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new c;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new c;return function(e){var n=e||new nt;return this.getCenter(n.center),n.radius=.5*this.getSize(t).length(),n}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(){var t=[new c,new c,new c,new c,new c,new c,new c,new c];return function(e){return this.isEmpty()?this:(t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(t),this)}}(),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},nt.prototype={constructor:nt,set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t;return function(e,n){void 0===t&&(t=new et);var i=this.center;void 0!==n?i.copy(n):t.setFromPoints(e).getCenter(i);for(var r=0,a=0,o=e.length;athis.radius*this.radius&&(i.sub(this.center).normalize(),i.multiplyScalar(this.radius).add(this.center)),i},getBoundingBox:function(t){var e=t||new et;return e.set(this.center,this.center),e.expandByScalar(this.radius),e},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}},it.prototype={constructor:it,isMatrix3:!0,set:function(t,e,n,i,r,a,o,s,l){var u=this.elements;return u[0]=t,u[1]=i,u[2]=o,u[3]=e,u[4]=r,u[5]=s,u[6]=n,u[7]=a,u[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(t){var e=t.elements;return this.set(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8]),this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},applyToBufferAttribute:function(){var t;return function(e){void 0===t&&(t=new c);for(var n=0,i=e.count;n1))return i.copy(r).multiplyScalar(o).add(e.start)}else if(0===this.distanceToPoint(e.start))return i.copy(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return(t||new c).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new c,e=new it;return function(n,i){var r=this.coplanarPoint(t).applyMatrix4(n),a=i||e.getNormalMatrix(n),o=this.normal.applyMatrix3(a).normalize();return this.constant=-r.dot(o),this}}(),translate:function(t){return this.constant=this.constant-t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}},at.prototype={constructor:at,set:function(t,e,n,i,r,a){var o=this.planes;return o[0].copy(t),o[1].copy(e),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(t){for(var e=this.planes,n=0;n<6;n++)e[n].copy(t.planes[n]);return this},setFromMatrix:function(t){var e=this.planes,n=t.elements,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return e[0].setComponents(o-i,c-s,p-h,y-m).normalize(),e[1].setComponents(o+i,c+s,p+h,y+m).normalize(),e[2].setComponents(o+r,c+l,p+d,y+g).normalize(),e[3].setComponents(o-r,c-l,p-d,y-g).normalize(),e[4].setComponents(o-a,c-u,p-f,y-v).normalize(),e[5].setComponents(o+a,c+u,p+f,y+v).normalize(),this},intersectsObject:function(){var t=new nt;return function(e){var n=e.geometry;return null===n.boundingSphere&&n.computeBoundingSphere(),t.copy(n.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new nt;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){for(var e=this.planes,n=t.center,i=-t.radius,r=0;r<6;r++){if(e[r].distanceToPoint(n)0?n.min.x:n.max.x,e.x=a.normal.x>0?n.max.x:n.min.x,t.y=a.normal.y>0?n.min.y:n.max.y,e.y=a.normal.y>0?n.max.y:n.min.y,t.z=a.normal.z>0?n.min.z:n.max.z,e.z=a.normal.z>0?n.max.z:n.min.z;var o=a.distanceToPoint(t),s=a.distanceToPoint(e);if(o<0&&s<0)return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}},st.prototype={constructor:st,set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return(e||new c).copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new c;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){var n=e||new c;n.subVectors(t,this.origin);var i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.direction).multiplyScalar(i).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new c;return function(e){var n=t.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(n).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new c,e=new c,n=new c;return function(i,r,a,o){t.copy(i).add(r).multiplyScalar(.5),e.copy(r).sub(i).normalize(),n.copy(this.origin).sub(t);var s,l,u,c,h=.5*i.distanceTo(r),d=-this.direction.dot(e),f=n.dot(this.direction),p=-n.dot(e),m=n.lengthSq(),g=Math.abs(1-d*d);if(g>0)if(s=d*p-f,l=d*f-p,c=h*g,s>=0)if(l>=-c)if(l<=c){var v=1/g;s*=v,l*=v,u=s*(s+d*l+2*f)+l*(d*s+l+2*p)+m}else l=h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;else l=-h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;else l<=-c?(s=Math.max(0,-(-d*h+f)),l=s>0?-h:Math.min(Math.max(-h,-p),h),u=-s*s+l*(l+2*p)+m):l<=c?(s=0,l=Math.min(Math.max(-h,-p),h),u=l*(l+2*p)+m):(s=Math.max(0,-(d*h+f)),l=s>0?h:Math.min(Math.max(-h,-p),h),u=-s*s+l*(l+2*p)+m);else l=d>0?-h:h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;return a&&a.copy(this.direction).multiplyScalar(s).add(this.origin),o&&o.copy(e).multiplyScalar(l).add(t),u}}(),intersectSphere:function(){var t=new c;return function(e,n){t.subVectors(e.center,this.origin);var i=t.dot(this.direction),r=t.dot(t)-i*i,a=e.radius*e.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(t){return this.distanceToPoint(t.center)<=t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null},intersectPlane:function(t,e){var n=this.distanceToPlane(t);return null===n?null:this.at(n,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0},intersectBox:function(t,e){var n,i,r,a,o,s,l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,h=this.origin;return l>=0?(n=(t.min.x-h.x)*l,i=(t.max.x-h.x)*l):(n=(t.max.x-h.x)*l,i=(t.min.x-h.x)*l),u>=0?(r=(t.min.y-h.y)*u,a=(t.max.y-h.y)*u):(r=(t.max.y-h.y)*u,a=(t.min.y-h.y)*u),n>a||r>i?null:((r>n||n!==n)&&(n=r),(a=0?(o=(t.min.z-h.z)*c,s=(t.max.z-h.z)*c):(o=(t.max.z-h.z)*c,s=(t.min.z-h.z)*c),n>s||o>i?null:((o>n||n!==n)&&(n=o),(s=0?n:i,e)))},intersectsBox:function(){var t=new c;return function(e){return null!==this.intersectBox(e,t)}}(),intersectTriangle:function(){var t=new c,e=new c,n=new c,i=new c;return function(r,a,o,s,l){e.subVectors(a,r),n.subVectors(o,r),i.crossVectors(e,n);var u,c=this.direction.dot(i);if(c>0){if(s)return null;u=1}else{if(!(c<0))return null;u=-1,c=-c}t.subVectors(this.origin,r);var h=u*this.direction.dot(n.crossVectors(t,n));if(h<0)return null;var d=u*this.direction.dot(e.cross(t));if(d<0)return null;if(h+d>c)return null;var f=-u*t.dot(i);return f<0?null:this.at(f/c,l)}}(),applyMatrix4:function(t){return this.direction.add(this.origin).applyMatrix4(t),this.origin.applyMatrix4(t),this.direction.sub(this.origin),this.direction.normalize(),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},lt.RotationOrders=[\"XYZ\",\"YZX\",\"ZXY\",\"XZY\",\"YXZ\",\"ZYX\"],lt.DefaultOrder=\"XYZ\",lt.prototype={constructor:lt,isEuler:!0,get x(){return this._x},set x(t){this._x=t,this.onChangeCallback()},get y(){return this._y},set y(t){this._y=t,this.onChangeCallback()},get z(){return this._z},set z(t){this._z=t,this.onChangeCallback()},get order(){return this._order},set order(t){this._order=t,this.onChangeCallback()},set:function(t,e,n,i){return this._x=t,this._y=e,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(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var i=fs.clamp,r=t.elements,a=r[0],o=r[4],s=r[8],l=r[1],u=r[5],c=r[9],h=r[2],d=r[6],f=r[10];return e=e||this._order,\"XYZ\"===e?(this._y=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-c,f),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(d,u),this._z=0)):\"YXZ\"===e?(this._x=Math.asin(-i(c,-1,1)),Math.abs(c)<.99999?(this._y=Math.atan2(s,f),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,a),this._z=0)):\"ZXY\"===e?(this._x=Math.asin(i(d,-1,1)),Math.abs(d)<.99999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,a))):\"ZYX\"===e?(this._y=Math.asin(-i(h,-1,1)),Math.abs(h)<.99999?(this._x=Math.atan2(d,f),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,u))):\"YZX\"===e?(this._z=Math.asin(i(l,-1,1)),Math.abs(l)<.99999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(s,f))):\"XZY\"===e?(this._z=Math.asin(-i(o,-1,1)),Math.abs(o)<.99999?(this._x=Math.atan2(d,u),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-c,f),this._y=0)):console.warn(\"THREE.Euler: .setFromRotationMatrix() given unsupported order: \"+e),this._order=e,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,n,i)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new u;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new c(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},ut.prototype={constructor:ut,set:function(t){this.mask=1<1){for(var e=0;e1)for(var e=0;e0){r.children=[];for(var a=0;a0&&(i.geometries=o),s.length>0&&(i.materials=s),l.length>0&&(i.textures=l),u.length>0&&(i.images=u)}return i.object=r,i},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e){if(void 0===e&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(var n=0;n0?a.multiplyScalar(1/Math.sqrt(o)):a.set(0,0,0)}}(),dt.barycoordFromPoint=function(){var t=new c,e=new c,n=new c;return function(i,r,a,o,s){t.subVectors(o,r),e.subVectors(a,r),n.subVectors(i,r);var l=t.dot(t),u=t.dot(e),h=t.dot(n),d=e.dot(e),f=e.dot(n),p=l*d-u*u,m=s||new c;if(0===p)return m.set(-2,-1,-1);var g=1/p,v=(d*h-u*f)*g,y=(l*f-u*h)*g;return m.set(1-v-y,y,v)}}(),dt.containsPoint=function(){var t=new c;return function(e,n,i,r){var a=dt.barycoordFromPoint(e,n,i,r,t);return a.x>=0&&a.y>=0&&a.x+a.y<=1}}(),dt.prototype={constructor:dt,set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},area:function(){var t=new c,e=new c;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),midpoint:function(t){return(t||new c).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(t){return dt.normal(this.a,this.b,this.c,t)},plane:function(t){return(t||new rt).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(t,e){return dt.barycoordFromPoint(t,this.a,this.b,this.c,e)},containsPoint:function(t){return dt.containsPoint(t,this.a,this.b,this.c)},closestPointToPoint:function(){var t,e,n,i;return function(r,a){void 0===t&&(t=new rt,e=[new ht,new ht,new ht],n=new c,i=new c);var o=a||new c,s=1/0;if(t.setFromCoplanarPoints(this.a,this.b,this.c),t.projectPoint(r,n),!0===this.containsPoint(n))o.copy(n);else{e[0].set(this.a,this.b),e[1].set(this.b,this.c),e[2].set(this.c,this.a);for(var l=0;l0,s=a[1]&&a[1].length>0,l=t.morphTargets,u=l.length;if(u>0){e=[];for(var c=0;c0){h=[];for(var c=0;c0)for(var m=0;m0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t,e,n;for(this.computeFaceNormals(),t=0,e=this.faces.length;t0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n,i,r;for(n=0,i=this.faces.length;n0&&(t+=e[n].distanceTo(e[n-1])),this.lineDistances[n]=t},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new et),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new nt),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(!1===(t&&t.isGeometry))return void console.error(\"THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.\",t);var i,r=this.vertices.length,a=this.vertices,o=t.vertices,s=this.faces,l=t.faces,u=this.faceVertexUvs[0],c=t.faceVertexUvs[0],h=this.colors,d=t.colors;void 0===n&&(n=0),void 0!==e&&(i=(new it).getNormalMatrix(e));for(var f=0,p=o.length;f=0;n--){var p=d[n];for(this.faces.splice(p,1),o=0,s=this.faceVertexUvs.length;o0,x=v.vertexNormals.length>0,_=1!==v.color.r||1!==v.color.g||1!==v.color.b,w=v.vertexColors.length>0,M=0;if(M=t(M,0,0),M=t(M,1,!0),M=t(M,2,!1),M=t(M,3,y),M=t(M,4,b),M=t(M,5,x),M=t(M,6,_),M=t(M,7,w),c.push(M),c.push(v.a,v.b,v.c),c.push(v.materialIndex),y){var S=this.faceVertexUvs[0][l];c.push(i(S[0]),i(S[1]),i(S[2]))}if(b&&c.push(e(v.normal)),x){var E=v.vertexNormals;c.push(e(E[0]),e(E[1]),e(E[2]))}if(_&&c.push(n(v.color)),w){var k=v.vertexColors;c.push(n(k[0]),n(k[1]),n(k[2]))}}return r.data={},r.data.vertices=s,r.data.normals=h,f.length>0&&(r.data.colors=f),m.length>0&&(r.data.uvs=[m]),r.data.faces=c,r},clone:function(){return(new Ct).copy(this)},copy:function(t){var e,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=t.name;var s=t.vertices;for(e=0,n=s.length;e65535?wt:xt)(t,1):this.index=t},addAttribute:function(t,e){return!1===(e&&e.isBufferAttribute)&&!1===(e&&e.isInterleavedBufferAttribute)?(console.warn(\"THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).\"),void this.addAttribute(t,new mt(arguments[1],arguments[2]))):\"index\"===t?(console.warn(\"THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.\"),void this.setIndex(e)):(this.attributes[t]=e,this)},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;void 0!==e&&(t.applyToBufferAttribute(e),e.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){(new it).getNormalMatrix(t).applyToBufferAttribute(n),n.needsUpdate=!0}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeTranslation(e,n,i),this.applyMatrix(t),this}}(),scale:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeScale(e,n,i),this.applyMatrix(t),this}}(),lookAt:function(){var t;return function(e){void 0===t&&(t=new ct),t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){this.computeBoundingBox();var t=this.boundingBox.getCenter().negate();return this.translate(t.x,t.y,t.z),t},setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){var n=new Mt(3*e.vertices.length,3),i=new Mt(3*e.colors.length,3);if(this.addAttribute(\"position\",n.copyVector3sArray(e.vertices)),this.addAttribute(\"color\",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){var r=new Mt(e.lineDistances.length,1);this.addAttribute(\"lineDistance\",r.copyArray(e.lineDistances))}null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var n=e.__directGeometry;if(!0===e.elementsNeedUpdate&&(n=void 0,e.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(e);n.verticesNeedUpdate=e.verticesNeedUpdate,n.normalsNeedUpdate=e.normalsNeedUpdate,n.colorsNeedUpdate=e.colorsNeedUpdate,n.uvsNeedUpdate=e.uvsNeedUpdate,n.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=n}var i;return!0===e.verticesNeedUpdate&&(i=this.attributes.position,void 0!==i&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),!0===e.normalsNeedUpdate&&(i=this.attributes.normal,void 0!==i&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),!0===e.colorsNeedUpdate&&(i=this.attributes.color,void 0!==i&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,void 0!==i&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,void 0!==i&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new Et).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);if(this.addAttribute(\"position\",new mt(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){var n=new Float32Array(3*t.normals.length);this.addAttribute(\"normal\",new mt(n,3).copyVector3sArray(t.normals))}if(t.colors.length>0){var i=new Float32Array(3*t.colors.length);this.addAttribute(\"color\",new mt(i,3).copyColorsArray(t.colors))}if(t.uvs.length>0){var r=new Float32Array(2*t.uvs.length);this.addAttribute(\"uv\",new mt(r,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){var a=new Float32Array(2*t.uvs2.length);this.addAttribute(\"uv2\",new mt(a,2).copyVector2sArray(t.uvs2))}if(t.indices.length>0){var o=kt(t.indices)>65535?Uint32Array:Uint16Array,s=new o(3*t.indices.length);this.setIndex(new mt(s,1).copyIndicesArray(t.indices))}this.groups=t.groups;for(var l in t.morphTargets){for(var u=[],c=t.morphTargets[l],h=0,d=c.length;h0){var m=new Mt(4*t.skinIndices.length,4);this.addAttribute(\"skinIndex\",m.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){var g=new Mt(4*t.skinWeights.length,4);this.addAttribute(\"skinWeight\",g.copyVector4sArray(t.skinWeights))}return null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new et);var t=this.attributes.position;void 0!==t?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new et,e=new c;return function(){null===this.boundingSphere&&(this.boundingSphere=new nt);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;t.setFromBufferAttribute(n),t.getCenter(i);for(var r=0,a=0,o=n.count;a0&&(t.data.groups=JSON.parse(JSON.stringify(s)));var l=this.boundingSphere;return null!==l&&(t.data.boundingSphere={center:l.center.toArray(),radius:l.radius}),t},clone:function(){return(new Pt).copy(this)},copy:function(t){var e,n,i;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var r=t.index;null!==r&&this.setIndex(r.clone());var a=t.attributes;for(e in a){var o=a[e];this.addAttribute(e,o.clone())}var s=t.morphAttributes;for(e in s){var l=[],u=s[e];for(n=0,i=u.length;n0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var e=0,n=t.length;ee.far?null:{distance:l,point:x.clone(),object:t}}function n(n,i,r,a,o,c,h,d){s.fromBufferAttribute(a,c),l.fromBufferAttribute(a,h),u.fromBufferAttribute(a,d);var f=e(n,i,r,s,l,u,b);return f&&(o&&(m.fromBufferAttribute(o,c),g.fromBufferAttribute(o,h),v.fromBufferAttribute(o,d),f.uv=t(b,s,l,u,m,g,v)),f.face=new ft(c,h,d,dt.normal(s,l,u)),f.faceIndex=c),f}var i=new h,a=new st,o=new nt,s=new c,l=new c,u=new c,d=new c,f=new c,p=new c,m=new r,g=new r,v=new r,y=new c,b=new c,x=new c;return function(r,c){var h=this.geometry,y=this.material,x=this.matrixWorld;if(void 0!==y&&(null===h.boundingSphere&&h.computeBoundingSphere(),o.copy(h.boundingSphere),o.applyMatrix4(x),!1!==r.ray.intersectsSphere(o)&&(i.getInverse(x),a.copy(r.ray).applyMatrix4(i),null===h.boundingBox||!1!==a.intersectsBox(h.boundingBox)))){var _;if(h.isBufferGeometry){var w,M,S,E,k,T=h.index,C=h.attributes.position,P=h.attributes.uv;if(null!==T)for(E=0,k=T.count;E0&&(L=B);for(var F=0,U=z.length;Fthis.scale.x*this.scale.y/4||n.push({distance:Math.sqrt(i),point:this.position,face:null,object:this})}}(),clone:function(){return new this.constructor(this.material).copy(this)}}),ve.prototype=Object.assign(Object.create(ct.prototype),{constructor:ve,copy:function(t){ct.prototype.copy.call(this,t,!1);for(var e=t.levels,n=0,i=e.length;n1){t.setFromMatrixPosition(n.matrixWorld),e.setFromMatrixPosition(this.matrixWorld);var r=t.distanceTo(e);i[0].object.visible=!0;for(var a=1,o=i.length;a=i[a].distance;a++)i[a-1].object.visible=!1,i[a].object.visible=!0;for(;ao)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}else for(var b=0,x=v.length/3-1;bo)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}else if(s.isGeometry)for(var E=s.vertices,k=E.length,b=0;bo)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Me.prototype=Object.assign(Object.create(we.prototype),{constructor:Me,isLineSegments:!0}),Se.prototype=Object.create(J.prototype),Se.prototype.constructor=Se,Se.prototype.isPointsMaterial=!0,Se.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this},Ee.prototype=Object.assign(Object.create(ct.prototype),{constructor:Ee,isPoints:!0,raycast:function(){var t=new h,e=new st,n=new nt;return function(i,r){function a(t,n){var a=e.distanceSqToPoint(t);if(ai.far)return;r.push({distance:u,distanceToRay:Math.sqrt(a),point:s.clone(),index:n,face:null,object:o})}}var o=this,s=this.geometry,l=this.matrixWorld,u=i.params.Points.threshold;if(null===s.boundingSphere&&s.computeBoundingSphere(),n.copy(s.boundingSphere),n.applyMatrix4(l),!1!==i.ray.intersectsSphere(n)){t.getInverse(l),e.copy(i.ray).applyMatrix4(t);var h=u/((this.scale.x+this.scale.y+this.scale.z)/3),d=h*h,f=new c;if(s.isBufferGeometry){var p=s.index,m=s.attributes,g=m.position.array;if(null!==p)for(var v=p.array,y=0,b=v.length;y=-Number.EPSILON&&C>=-Number.EPSILON&&T>=-Number.EPSILON))return!1;return!0}return function(e,n){var i=e.length;if(i<3)return null;var r,a,o,s=[],l=[],u=[];if(Ps.area(e)>0)for(a=0;a2;){if(h--<=0)return console.warn(\"THREE.ShapeUtils: Unable to triangulate polygon! in triangulate()\"),n?u:s;if(r=a,c<=r&&(r=0),a=r+1,c<=a&&(a=0),o=a+1,c<=o&&(o=0),t(e,r,a,o,c,l)){var d,f,p,m,g;for(d=l[r],f=l[a],p=l[o],s.push([e[d],e[f],e[p]]),u.push([l[r],l[a],l[o]]),m=a,g=a+1;g2&&t[e-1].equals(t[0])&&t.pop()}function i(t,e,n){return t.x!==e.x?t.xNumber.EPSILON){var p;if(d>0){if(f<0||f>d)return[];if((p=u*c-l*h)<0||p>d)return[]}else{if(f>0||f0||pE?[]:x===E?a?[]:[y]:_<=E?[y,b]:[y,M]}function a(t,e,n,i){var r=e.x-t.x,a=e.y-t.y,o=n.x-t.x,s=n.y-t.y,l=i.x-t.x,u=i.y-t.y,c=r*s-a*o,h=r*u-a*l;if(Math.abs(c)>Number.EPSILON){var d=l*s-u*o;return c>0?h>=0&&d>=0:h>=0||d>=0}return h>0}n(t),e.forEach(n);for(var o,s,l,u,c,h,d={},f=t.concat(),p=0,m=e.length;p0;){if(--_<0){console.log(\"Infinite Loop! Holes left:\"+g.length+\", Probably Hole outside Shape!\");break}for(o=x;oi&&(o=0);var s=a(m[t],m[r],m[o],n[e]);if(!s)return!1;var l=n.length-1,u=e-1;u<0&&(u=l);var c=e+1;return c>l&&(c=0),!!(s=a(n[e],n[u],n[c],m[t]))}(o,w)&&!function(t,e){var n,i,a;for(n=0;n0)return!0;return!1}(s,l)&&!function(t,n){var i,a,o,s,l;for(i=0;i0)return!0;return!1}(s,l)){i=w,g.splice(y,1),h=m.slice(0,o+1),d=m.slice(o),f=n.slice(i),p=n.slice(0,i+1),m=h.concat(f).concat(p).concat(d),x=o;break}if(i>=0)break;v[c]=!0}if(i>=0)break}}return m}(t,e),v=Ps.triangulate(g,!1);for(o=0,s=v.length;oNumber.EPSILON){var f=Math.sqrt(h),p=Math.sqrt(u*u+c*c),m=e.x-l/f,g=e.y+s/f,v=n.x-c/p,y=n.y+u/p,b=((v-m)*c-(y-g)*u)/(s*c-l*u);i=m+s*b-t.x,a=g+l*b-t.y;var x=i*i+a*a;if(x<=2)return new r(i,a);o=Math.sqrt(x/2)}else{var _=!1;s>Number.EPSILON?u>Number.EPSILON&&(_=!0):s<-Number.EPSILON?u<-Number.EPSILON&&(_=!0):Math.sign(l)===Math.sign(c)&&(_=!0),_?(i=-l,a=s,o=Math.sqrt(h)):(i=s,a=l,o=Math.sqrt(h/2))}return new r(i/o,a/o)}function a(t,e){var n,i;for(H=t.length;--H>=0;){n=H,i=H-1,i<0&&(i=t.length-1);var r=0,a=_+2*y;for(r=0;r=0;N--){for(B=N/y,F=g*Math.cos(B*Math.PI/2),z=v*Math.sin(B*Math.PI/2),H=0,Y=D.length;H0||0===t.search(/^data\\:image\\/jpeg/);r.format=i?Po:Oo,r.image=n,r.needsUpdate=!0,void 0!==e&&e(r)},n,i),r},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),An.prototype=Object.assign(Object.create(ct.prototype),{constructor:An,isLight:!0,copy:function(t){return ct.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){var e=ct.prototype.toJSON.call(this,t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}),Rn.prototype=Object.assign(Object.create(An.prototype),{constructor:Rn,isHemisphereLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(Ln.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var t={};return 0!==this.bias&&(t.bias=this.bias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),In.prototype=Object.assign(Object.create(Ln.prototype),{constructor:In,isSpotLightShadow:!0,update:function(t){var e=2*fs.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height,i=t.distance||500,r=this.camera;e===r.fov&&n===r.aspect&&i===r.far||(r.fov=e,r.aspect=n,r.far=i,r.updateProjectionMatrix())}}),Dn.prototype=Object.assign(Object.create(An.prototype),{constructor:Dn,isSpotLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Nn.prototype=Object.assign(Object.create(An.prototype),{constructor:Nn,isPointLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),zn.prototype=Object.assign(Object.create(Ln.prototype),{constructor:zn}),Bn.prototype=Object.assign(Object.create(An.prototype),{constructor:Bn,isDirectionalLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Fn.prototype=Object.assign(Object.create(An.prototype),{constructor:Fn,isAmbientLight:!0});var Is={arraySlice:function(t,e,n){return Is.isTypedArray(t)?new t.constructor(t.subarray(e,n)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:\"number\"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){function e(e,n){return t[e]-t[n]}for(var n=t.length,i=new Array(n),r=0;r!==n;++r)i[r]=r;return i.sort(e),i},sortedArray:function(t,e,n){for(var i=t.length,r=new t.constructor(i),a=0,o=0;o!==i;++a)for(var s=n[a]*e,l=0;l!==e;++l)r[o++]=t[s+l];return r},flattenJSON:function(t,e,n,i){for(var r=1,a=t[0];void 0!==a&&void 0===a[i];)a=t[r++];if(void 0!==a){var o=a[i];if(void 0!==o)if(Array.isArray(o))do{o=a[i],void 0!==o&&(e.push(a.time),n.push.apply(n,o)),a=t[r++]}while(void 0!==a);else if(void 0!==o.toArray)do{o=a[i],void 0!==o&&(e.push(a.time),o.toArray(n,n.length)),a=t[r++]}while(void 0!==a);else do{o=a[i],void 0!==o&&(e.push(a.time),n.push(o)),a=t[r++]}while(void 0!==a)}}};Un.prototype={constructor:Un,evaluate:function(t){var e=this.parameterPositions,n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{var a;n:{i:if(!(t=r)break t;var s=e[1];t=r)break e}a=n,n=0}}for(;n>>1;te;)--a;if(++a,0!==r||a!==i){r>=a&&(a=Math.max(a,1),r=a-1);var o=this.getValueSize();this.times=Is.arraySlice(n,r,a),this.values=Is.arraySlice(this.values,r*o,a*o)}return this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error(\"invalid value size in track\",this),t=!1);var n=this.times,i=this.values,r=n.length;0===r&&(console.error(\"track is empty\",this),t=!1);for(var a=null,o=0;o!==r;o++){var s=n[o];if(\"number\"==typeof s&&isNaN(s)){console.error(\"time is not a valid number\",this,o,s),t=!1;break}if(null!==a&&a>s){console.error(\"out of order keys\",this,o,s,a),t=!1;break}a=s}if(void 0!==i&&Is.isTypedArray(i))for(var o=0,l=i.length;o!==l;++o){var u=i[o];if(isNaN(u)){console.error(\"value is not a valid number\",this,o,u),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,n=this.getValueSize(),i=this.getInterpolation()===Ko,r=1,a=t.length-1,o=1;o0){t[r]=t[a];for(var p=a*n,m=r*n,d=0;d!==n;++d)e[m+d]=e[p+d];++r}return r!==t.length&&(this.times=Is.arraySlice(t,0,r),this.values=Is.arraySlice(e,0,r*n)),this}},Hn.prototype=Object.assign(Object.create(Ds),{constructor:Hn,ValueTypeName:\"vector\"}),Yn.prototype=Object.assign(Object.create(Un.prototype),{constructor:Yn,interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,l=(n-e)/(i-e),c=s+o;s!==c;s+=4)u.slerpFlat(r,0,a,s-o,a,s,l);return r}}),qn.prototype=Object.assign(Object.create(Ds),{constructor:qn,ValueTypeName:\"quaternion\",DefaultInterpolation:Zo,InterpolantFactoryMethodLinear:function(t){return new Yn(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Xn.prototype=Object.assign(Object.create(Ds),{constructor:Xn,ValueTypeName:\"number\"}),Zn.prototype=Object.assign(Object.create(Ds),{constructor:Zn,ValueTypeName:\"string\",ValueBufferType:Array,DefaultInterpolation:Xo,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Kn.prototype=Object.assign(Object.create(Ds),{constructor:Kn,ValueTypeName:\"bool\",ValueBufferType:Array,DefaultInterpolation:Xo,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Qn.prototype=Object.assign(Object.create(Ds),{constructor:Qn,ValueTypeName:\"color\"}),Jn.prototype=Ds,Ds.constructor=Jn,Object.assign(Jn,{parse:function(t){if(void 0===t.type)throw new Error(\"track type undefined, can not parse\");var e=Jn._getTrackTypeForValueTypeName(t.type);if(void 0===t.times){var n=[],i=[];Is.flattenJSON(t.keys,n,i,\"value\"),t.times=n,t.values=i}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)},toJSON:function(t){var e,n=t.constructor;if(void 0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:Is.convertArray(t.times,Array),values:Is.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e},_getTrackTypeForValueTypeName:function(t){switch(t.toLowerCase()){case\"scalar\":case\"double\":case\"float\":case\"number\":case\"integer\":return Xn;case\"vector\":case\"vector2\":case\"vector3\":case\"vector4\":return Hn;case\"color\":return Qn;case\"quaternion\":return qn;case\"bool\":case\"boolean\":return Kn;case\"string\":return Zn}throw new Error(\"Unsupported typeName: \"+t)}}),$n.prototype={constructor:$n,resetDuration:function(){for(var t=this.tracks,e=0,n=0,i=t.length;n!==i;++n){var r=this.tracks[n];e=Math.max(e,r.times[r.times.length-1])}this.duration=e},trim:function(){for(var t=0;t1){var u=l[1],c=i[u];c||(i[u]=c=[]),c.push(s)}}var h=[];for(var u in i)h.push($n.CreateFromMorphTargetSequence(u,i[u],e,n));return h},parseAnimation:function(t,e){if(!t)return console.error(\" no animation in JSONLoader data\"),null;for(var n=function(t,e,n,i,r){if(0!==n.length){var a=[],o=[];Is.flattenJSON(n,a,o,i),0!==a.length&&r.push(new t(e,a,o))}},i=[],r=t.name||\"default\",a=t.length||-1,o=t.fps||30,s=t.hierarchy||[],l=0;l1?t.skinWeights[i+1]:0,l=e>2?t.skinWeights[i+2]:0,u=e>3?t.skinWeights[i+3]:0;n.skinWeights.push(new o(a,s,l,u))}if(t.skinIndices)for(var i=0,r=t.skinIndices.length;i1?t.skinIndices[i+1]:0,d=e>2?t.skinIndices[i+2]:0,f=e>3?t.skinIndices[i+3]:0;n.skinIndices.push(new o(c,h,d,f))}n.bones=t.bones,n.bones&&n.bones.length>0&&(n.skinWeights.length!==n.skinIndices.length||n.skinIndices.length!==n.vertices.length)&&console.warn(\"When skinning, number of vertices (\"+n.vertices.length+\"), skinIndices (\"+n.skinIndices.length+\"), and skinWeights (\"+n.skinWeights.length+\") should match.\")}(),function(e){if(void 0!==t.morphTargets)for(var i=0,r=t.morphTargets.length;i0){console.warn('THREE.JSONLoader: \"morphColors\" no longer supported. Using them as face colors.');for(var h=n.faces,d=t.morphColors[0].colors,i=0,r=h.length;i0&&(n.animations=e)}(),n.computeFaceNormals(),n.computeBoundingSphere(),void 0===t.materials||0===t.materials.length)return{geometry:n};var a=ni.prototype.initMaterials(t.materials,e,this.crossOrigin);return{geometry:n,materials:a}}}),Object.assign(ri.prototype,{load:function(t,e,n,i){\"\"===this.texturePath&&(this.texturePath=t.substring(0,t.lastIndexOf(\"/\")+1));var r=this;new En(r.manager).load(t,function(n){var a=null;try{a=JSON.parse(n)}catch(e){return void 0!==i&&i(e),void console.error(\"THREE:ObjectLoader: Can't parse \"+t+\".\",e.message)}var o=a.metadata;if(void 0===o||void 0===o.type||\"geometry\"===o.type.toLowerCase())return void console.error(\"THREE.ObjectLoader: Can't load \"+t+\". Use THREE.JSONLoader instead.\");r.parse(a,e)},n,i)},setTexturePath:function(t){this.texturePath=t},setCrossOrigin:function(t){this.crossOrigin=t},parse:function(t,e){var n=this.parseGeometries(t.geometries),i=this.parseImages(t.images,function(){void 0!==e&&e(o)}),r=this.parseTextures(t.textures,i),a=this.parseMaterials(t.materials,r),o=this.parseObject(t.object,n,a);return t.animations&&(o.animations=this.parseAnimations(t.animations)),void 0!==t.images&&0!==t.images.length||void 0!==e&&e(o),o},parseGeometries:function(t){var e={};if(void 0!==t)for(var n=new ii,i=new ei,r=0,a=t.length;r0){var r=new Sn(e),a=new Cn(r);a.setCrossOrigin(this.crossOrigin);for(var o=0,s=t.length;o0?new xe(s,l):new Ot(s,l);break;case\"LOD\":o=new ve;break;case\"Line\":o=new we(r(e.geometry),a(e.material),e.mode);break;case\"LineSegments\":o=new Me(r(e.geometry),a(e.material));break;case\"PointCloud\":case\"Points\":o=new Ee(r(e.geometry),a(e.material));break;case\"Sprite\":o=new ge(a(e.material));break;case\"Group\":o=new ke;break;case\"SkinnedMesh\":console.warn(\"THREE.ObjectLoader.parseObject() does not support SkinnedMesh type. Instantiates Object3D instead.\");default:o=new ct}if(o.uuid=e.uuid,void 0!==e.name&&(o.name=e.name),void 0!==e.matrix?(t.fromArray(e.matrix),t.decompose(o.position,o.quaternion,o.scale)):(void 0!==e.position&&o.position.fromArray(e.position),void 0!==e.rotation&&o.rotation.fromArray(e.rotation),void 0!==e.quaternion&&o.quaternion.fromArray(e.quaternion),void 0!==e.scale&&o.scale.fromArray(e.scale)),void 0!==e.castShadow&&(o.castShadow=e.castShadow),void 0!==e.receiveShadow&&(o.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(o.shadow.bias=e.shadow.bias),void 0!==e.shadow.radius&&(o.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&o.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(o.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(o.visible=e.visible),void 0!==e.userData&&(o.userData=e.userData),void 0!==e.children)for(var u in e.children)o.add(this.parseObject(e.children[u],n,i));if(\"LOD\"===e.type)for(var c=e.levels,h=0;h0)){l=r;break}l=r-1}if(r=l,i[r]===n){var u=r/(a-1);return u}var c=i[r],h=i[r+1],d=h-c,f=(n-c)/d,u=(r+f)/(a-1);return u},getTangent:function(t){var e=t-1e-4,n=t+1e-4;e<0&&(e=0),n>1&&(n=1);var i=this.getPoint(e);return this.getPoint(n).clone().sub(i).normalize()},getTangentAt:function(t){var e=this.getUtoTmapping(t);return this.getTangent(e)},computeFrenetFrames:function(t,e){var n,i,r,a=new c,o=[],s=[],l=[],u=new c,d=new h;for(n=0;n<=t;n++)i=n/t,o[n]=this.getTangentAt(i),o[n].normalize();s[0]=new c,l[0]=new c;var f=Number.MAX_VALUE,p=Math.abs(o[0].x),m=Math.abs(o[0].y),g=Math.abs(o[0].z);for(p<=f&&(f=p,a.set(1,0,0)),m<=f&&(f=m,a.set(0,1,0)),g<=f&&a.set(0,0,1),u.crossVectors(o[0],a).normalize(),s[0].crossVectors(o[0],u),l[0].crossVectors(o[0],s[0]),n=1;n<=t;n++)s[n]=s[n-1].clone(),l[n]=l[n-1].clone(),u.crossVectors(o[n-1],o[n]),u.length()>Number.EPSILON&&(u.normalize(),r=Math.acos(fs.clamp(o[n-1].dot(o[n]),-1,1)),s[n].applyMatrix4(d.makeRotationAxis(u,r))),l[n].crossVectors(o[n],s[n]);if(!0===e)for(r=Math.acos(fs.clamp(s[0].dot(s[t]),-1,1)),r/=t,o[0].dot(u.crossVectors(s[0],s[t]))>0&&(r=-r),n=1;n<=t;n++)s[n].applyMatrix4(d.makeRotationAxis(o[n],r*n)),l[n].crossVectors(o[n],s[n]);return{tangents:o,normals:s,binormals:l}}},gi.prototype=Object.create(mi.prototype),gi.prototype.constructor=gi,gi.prototype.isLineCurve=!0,gi.prototype.getPoint=function(t){if(1===t)return this.v2.clone();var e=this.v2.clone().sub(this.v1);return e.multiplyScalar(t).add(this.v1),e},gi.prototype.getPointAt=function(t){return this.getPoint(t)},gi.prototype.getTangent=function(t){return this.v2.clone().sub(this.v1).normalize()},vi.prototype=Object.assign(Object.create(mi.prototype),{constructor:vi,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new gi(e,t))},getPoint:function(t){for(var e=t*this.getLength(),n=this.getCurveLengths(),i=0;i=e){var r=n[i]-e,a=this.curves[i],o=a.getLength(),s=0===o?0:1-r/o;return a.getPointAt(s)}i++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,n=0,i=this.curves.length;n1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},createPointsGeometry:function(t){var e=this.getPoints(t);return this.createGeometry(e)},createSpacedPointsGeometry:function(t){var e=this.getSpacedPoints(t);return this.createGeometry(e)},createGeometry:function(t){for(var e=new Ct,n=0,i=t.length;ne;)n-=e;ne.length-2?e.length-1:i+1],u=e[i>e.length-3?e.length-1:i+2];return new r(ai(a,o.x,s.x,l.x,u.x),ai(a,o.y,s.y,l.y,u.y))},xi.prototype=Object.create(mi.prototype),xi.prototype.constructor=xi,xi.prototype.getPoint=function(t){var e=this.v0,n=this.v1,i=this.v2,a=this.v3;return new r(pi(t,e.x,n.x,i.x,a.x),pi(t,e.y,n.y,i.y,a.y))},_i.prototype=Object.create(mi.prototype),_i.prototype.constructor=_i,_i.prototype.getPoint=function(t){var e=this.v0,n=this.v1,i=this.v2;return new r(ui(t,e.x,n.x,i.x),ui(t,e.y,n.y,i.y))};var Ns=Object.assign(Object.create(vi.prototype),{fromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,n=t.length;e0){var u=l.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(l);var c=l.getPoint(1);this.currentPoint.copy(c)}});wi.prototype=Ns,Ns.constructor=wi,Mi.prototype=Object.assign(Object.create(Ns),{constructor:Mi,getPointsHoles:function(t){for(var e=[],n=0,i=this.holes.length;n1){for(var v=!1,y=[],b=0,x=d.length;bNumber.EPSILON){if(u<0&&(o=e[a],l=-l,s=e[r],u=-u),t.ys.y)continue;if(t.y===o.y){if(t.x===o.x)return!0}else{var c=u*(t.x-o.x)-l*(t.y-o.y);if(0===c)return!0;if(c<0)continue;i=!i}}else{if(t.y!==o.y)continue;if(s.x<=t.x&&t.x<=o.x||o.x<=t.x&&t.x<=s.x)return!0}}return i})(M.p,d[E].p)&&(b!==E&&y.push({froms:b,tos:E,hole:w}),S?(S=!1,h[E].push(M)):v=!0);S&&h[b].push(M)}y.length>0&&(v||(f=h))}for(var k,m=0,T=d.length;m0){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t0){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t=.5)for(var a=0;a!==r;++a)t[e+a]=t[n+a]},_slerp:function(t,e,n,i,r){u.slerpFlat(t,e,t,e,t,n,i)},_lerp:function(t,e,n,i,r){for(var a=1-i,o=0;o!==r;++o){var s=e+o;t[s]=t[s]*a+t[n+o]*i}}},Ni.prototype={constructor:Ni,getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,n=e.objectName,i=e.propertyName,r=e.propertyIndex;if(t||(t=Ni.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error(\" trying to update node for track: \"+this.path+\" but it wasn't found.\");if(n){var a=e.objectIndex;switch(n){case\"materials\":if(!t.material)return void console.error(\" can not bind to material as node does not have a material\",this);if(!t.material.materials)return void console.error(\" can not bind to material.materials as node.material does not have a materials array\",this);t=t.material.materials;break;case\"bones\":if(!t.skeleton)return void console.error(\" can not bind to bones as node does not have a skeleton\",this);t=t.skeleton.bones;for(var o=0;o=n){var h=n++,d=e[h];i[d.uuid]=c,e[c]=d,i[u]=h,e[h]=l;for(var f=0,p=a;f!==p;++f){var m=r[f],g=m[h],v=m[c];m[c]=g,m[h]=v}}}this.nCachedObjects_=n},uncache:function(t){for(var e=this._objects,n=e.length,i=this.nCachedObjects_,r=this._indicesByUUID,a=this._bindings,o=a.length,s=0,l=arguments.length;s!==l;++s){var u=arguments[s],c=u.uuid,h=r[c];if(void 0!==h)if(delete r[c],h0)for(var l=this._interpolants,u=this._propertyBindings,c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulate(i,s)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n){e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e},_updateTime:function(t){var e=this.time+t;if(0===t)return e;var n=this._clip.duration,i=this.loop,r=this._loopCount;if(i===Ho){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(e>=n)e=n;else{if(!(e<0))break t;e=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:\"finished\",action:this,direction:t<0?-1:1})}}else{var a=i===qo;if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),e>=n||e<0){var o=Math.floor(e/n);e-=n*o,r+=Math.abs(o);var s=this.repetitions-r;if(s<0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=t>0?n:0,this._mixer.dispatchEvent({type:\"finished\",action:this,direction:t>0?1:-1});else{if(0===s){var l=t<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=e,n-e}return this.time=e,e},_setEndings:function(t,e,n){var i=this._interpolantSettings;n?(i.endingStart=Jo,i.endingEnd=Jo):(i.endingStart=t?this.zeroSlopeAtStart?Jo:Qo:$o,i.endingEnd=e?this.zeroSlopeAtEnd?Jo:Qo:$o)},_scheduleFading:function(t,e,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]=e,o[1]=r+t,s[1]=n,this}},Fi.prototype={constructor:Fi,clipAction:function(t,e){var n=e||this._root,i=n.uuid,r=\"string\"==typeof t?$n.findByName(n,t):t,a=null!==r?r.uuid:t,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 u=new Bi(this,r,e);return this._bindAction(u,s),this._addInactiveAction(u,a,i),u},existingAction:function(t,e){var n=e||this._root,i=n.uuid,r=\"string\"==typeof t?$n.findByName(n,t):t,a=r?r.uuid:t,o=this._actionsByClip[a];return void 0!==o?o.actionByRoot[i]||null:null},stopAllAction:function(){var t=this._actions,e=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var r=0;r!==e;++r)t[r].reset();for(var r=0;r!==i;++r)n[r].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),a=this._accuIndex^=1,o=0;o!==n;++o){var s=e[o];s.enabled&&s._update(i,t,r,a)}for(var l=this._bindings,u=this._nActiveBindings,o=0;o!==u;++o)l[o].apply(a);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions,n=t.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 u=l._cacheIndex,c=e[e.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,c._cacheIndex=u,e[u]=c,e.pop(),this._removeInactiveBindingsForAction(l)}delete i[n]}},uncacheRoot:function(t){var e=t.uuid,n=this._actionsByClip;for(var i in n){var r=n[i].actionByRoot,a=r[e];void 0!==a&&(this._deactivateAction(a),this._removeInactiveAction(a))}var o=this._bindingsByRootAndName,s=o[e];if(void 0!==s)for(var l in s){var u=s[l];u.restoreOriginalState(),this._removeInactiveBinding(u)}},uncacheAction:function(t,e){var n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}},Object.assign(Fi.prototype,{_bindAction:function(t,e){var n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,a=t._propertyBindings,o=t._interpolants,s=n.uuid,l=this._bindingsByRootAndName,u=l[s];void 0===u&&(u={},l[s]=u);for(var c=0;c!==r;++c){var h=i[c],d=h.name,f=u[d];if(void 0!==f)a[c]=f;else{if(void 0!==(f=a[c])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,s,d));continue}var p=e&&e._propertyBindings[c].binding.parsedPath;f=new Di(Ni.create(n,d,p),h.ValueTypeName,h.getValueSize()),++f.referenceCount,this._addInactiveBinding(f,s,d),a[c]=f}o[c].resultBuffer=f.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){var e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}for(var r=t._propertyBindings,a=0,o=r.length;a!==o;++a){var s=r[a];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){var e=t._cacheIndex;return null!==e&&e1){var u=l[1];i[u]||(i[u]={start:1/0,end:-1/0});var c=i[u];ac.end&&(c.end=a),e||(e=u)}}for(var u in i){var c=i[u];this.createAnimation(u,c.start,c.end,t)}this.firstAnimation=e},Ji.prototype.setAnimationDirectionForward=function(t){var e=this.animationsMap[t];e&&(e.direction=1,e.directionBackwards=!1)},Ji.prototype.setAnimationDirectionBackward=function(t){var e=this.animationsMap[t];e&&(e.direction=-1,e.directionBackwards=!0)},Ji.prototype.setAnimationFPS=function(t,e){var n=this.animationsMap[t];n&&(n.fps=e,n.duration=(n.end-n.start)/n.fps)},Ji.prototype.setAnimationDuration=function(t,e){var n=this.animationsMap[t];n&&(n.duration=e,n.fps=(n.end-n.start)/n.duration)},Ji.prototype.setAnimationWeight=function(t,e){var n=this.animationsMap[t];n&&(n.weight=e)},Ji.prototype.setAnimationTime=function(t,e){var n=this.animationsMap[t];n&&(n.time=e)},Ji.prototype.getAnimationTime=function(t){var e=0,n=this.animationsMap[t];return n&&(e=n.time),e},Ji.prototype.getAnimationDuration=function(t){var e=-1,n=this.animationsMap[t];return n&&(e=n.duration),e},Ji.prototype.playAnimation=function(t){var e=this.animationsMap[t];e?(e.time=0,e.active=!0):console.warn(\"THREE.MorphBlendMesh: animation[\"+t+\"] undefined in .playAnimation()\")},Ji.prototype.stopAnimation=function(t){var e=this.animationsMap[t];e&&(e.active=!1)},Ji.prototype.update=function(t){for(var e=0,n=this.animationsList.length;ei.duration||i.time<0)&&(i.direction*=-1,i.time>i.duration&&(i.time=i.duration,i.directionBackwards=!0),i.time<0&&(i.time=0,i.directionBackwards=!1)):(i.time=i.time%i.duration,i.time<0&&(i.time+=i.duration));var a=i.start+fs.clamp(Math.floor(i.time/r),0,i.length-1),o=i.weight;a!==i.currentFrame&&(this.morphTargetInfluences[i.lastFrame]=0,this.morphTargetInfluences[i.currentFrame]=1*o,this.morphTargetInfluences[a]=0,i.lastFrame=i.currentFrame,i.currentFrame=a);var s=i.time%r/r;i.directionBackwards&&(s=1-s),i.currentFrame!==i.lastFrame?(this.morphTargetInfluences[i.currentFrame]=s*o,this.morphTargetInfluences[i.lastFrame]=(1-s)*o):this.morphTargetInfluences[i.currentFrame]=o}}},$i.prototype=Object.create(ct.prototype),$i.prototype.constructor=$i,$i.prototype.isImmediateRenderObject=!0,tr.prototype=Object.create(Me.prototype),tr.prototype.constructor=tr,tr.prototype.update=function(){var t=new c,e=new c,n=new it;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,u=0,c=0,h=l.length;c.99999?this.quaternion.set(0,0,0,1):n.y<-.99999?this.quaternion.set(1,0,0,0):(e.set(n.z,0,-n.x).normalize(),t=Math.acos(n.y),this.quaternion.setFromAxisAngle(e,t))}}(),dr.prototype.setLength=function(t,e,n){void 0===e&&(e=.2*t),void 0===n&&(n=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()},dr.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},fr.prototype=Object.create(Me.prototype),fr.prototype.constructor=fr;var js=new c,Ws=new pr,Gs=new pr,Vs=new pr;mr.prototype=Object.create(mi.prototype),mr.prototype.constructor=mr,mr.prototype.getPoint=function(t){var e=this.points,n=e.length;n<2&&console.log(\"duh, you need at least 2 points\");var i=(n-(this.closed?0:1))*t,r=Math.floor(i),a=i-r;this.closed?r+=r>0?0:(Math.floor(Math.abs(r)/e.length)+1)*e.length:0===a&&r===n-1&&(r=n-2,a=1);var o,s,l,u;if(this.closed||r>0?o=e[(r-1)%n]:(js.subVectors(e[0],e[1]).add(e[0]),o=js),s=e[r%n],l=e[(r+1)%n],this.closed||r+20}function a(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),St(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function o(t,e){var n=Me();try{var i=t.interceptors;if(i)for(var r=0,a=i.length;r0}function l(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),St(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function u(t,e){var n=Me(),i=t.changeListeners;if(i){i=i.slice();for(var r=0,a=i.length;r=this.length,value:e0,\"actions should have valid names, got: '\"+t+\"'\");var n=function(){return S(t,e,this,arguments)};return n.originalFn=e,n.isMobxAction=!0,n}function S(t,e,n,i){var r=E(t,e,n,i);try{return e.apply(n,i)}finally{k(r)}}function E(t,e,n,i){var r=c()&&!!t,a=0;if(r){a=Date.now();var o=i&&i.length||0,s=new Array(o);if(o>0)for(var l=0;l\",r=\"function\"==typeof t?t:e,a=\"function\"==typeof t?e:n;return wt(\"function\"==typeof r,w(\"m002\")),wt(0===r.length,w(\"m003\")),wt(\"string\"==typeof i&&i.length>0,\"actions should have valid names, got: '\"+i+\"'\"),S(i,r,a,void 0)}function B(t){return\"function\"==typeof t&&!0===t.isMobxAction}function F(t,e,n){var i=function(){return S(e,n,t,arguments)};i.isMobxAction=!0,At(t,e,i)}function U(t,e){return t===e}function j(t,e){return Nt(t,e)}function W(t,e){return Bt(t,e)||U(t,e)}function G(t,e,n){function i(){a(s)}var r,a,o;\"string\"==typeof t?(r=t,a=e,o=n):(r=t.name||\"Autorun@\"+xt(),a=t,o=e),wt(\"function\"==typeof a,w(\"m004\")),wt(!1===B(a),w(\"m005\")),o&&(a=a.bind(o));var s=new Kn(r,function(){this.track(i)});return s.schedule(),s.getDisposer()}function V(t,e,n,i){var r,a,o,s;return\"string\"==typeof t?(r=t,a=e,o=n,s=i):(r=\"When@\"+xt(),a=t,o=e,s=n),G(r,function(t){if(a.call(s)){t.dispose();var e=Me();o.call(s),Se(e)}})}function H(t,e,n,i){function r(){o(c)}var a,o,s,l;\"string\"==typeof t?(a=t,o=e,s=n,l=i):(a=t.name||\"AutorunAsync@\"+xt(),o=t,s=e,l=n),wt(!1===B(o),w(\"m006\")),void 0===s&&(s=1),l&&(o=o.bind(l));var u=!1,c=new Kn(a,function(){u||(u=!0,setTimeout(function(){u=!1,c.isDisposed||c.track(r)},s))});return c.schedule(),c.getDisposer()}function Y(t,e,n){function i(){if(!u.isDisposed){var n=!1;u.track(function(){var e=t(u);n=o||!l(a,e),a=e}),o&&r.fireImmediately&&e(a,u),o||!0!==n||e(a,u),o&&(o=!1)}}arguments.length>3&&_t(w(\"m007\")),ct(t)&&_t(w(\"m008\"));var r;r=\"object\"==typeof n?n:{},r.name=r.name||t.name||e.name||\"Reaction@\"+xt(),r.fireImmediately=!0===n||!0===r.fireImmediately,r.delay=r.delay||0,r.compareStructural=r.compareStructural||r.struct||!1,e=yn(r.name,r.context?e.bind(r.context):e),r.context&&(t=t.bind(r.context));var a,o=!0,s=!1,l=r.equals?r.equals:r.compareStructural||r.struct?bn.structural:bn.default,u=new Kn(r.name,function(){o||r.delay<1?i():s||(s=!0,setTimeout(function(){s=!1,i()},r.delay))});return u.schedule(),u.getDisposer()}function q(t,e){if(nt(t)&&t.hasOwnProperty(\"$mobx\"))return t.$mobx;wt(Object.isExtensible(t),w(\"m035\")),Ct(t)||(e=(t.constructor.name||\"ObservableObject\")+\"@\"+xt()),e||(e=\"ObservableObject@\"+xt());var n=new wn(t,e);return Rt(t,\"$mobx\",n),n}function X(t,e,n,i){if(t.values[e]&&!_n(t.values[e]))return wt(\"value\"in n,\"The property \"+e+\" in \"+t.name+\" is already observable, cannot redefine it as computed property\"),void(t.target[e]=n.value);if(\"value\"in n)if(ct(n.value)){var r=n.value;Z(t,e,r.initialValue,r.enhancer)}else B(n.value)&&!0===n.value.autoBind?F(t.target,e,n.value.originalFn):_n(n.value)?Q(t,e,n.value):Z(t,e,n.value,i);else K(t,e,n.get,n.set,bn.default,!0)}function Z(t,e,n,i){if(It(t.target,e),r(t)){var a=o(t,{object:t.target,name:e,type:\"add\",newValue:n});if(!a)return;n=a.newValue}n=(t.values[e]=new fn(n,i,t.name+\".\"+e,!1)).value,Object.defineProperty(t.target,e,J(e)),et(t,t.target,e,n)}function K(t,e,n,i,r,a){a&&It(t.target,e),t.values[e]=new xn(n,t.target,r,t.name+\".\"+e,i),a&&Object.defineProperty(t.target,e,$(e))}function Q(t,e,n){var i=t.name+\".\"+e;n.name=i,n.scope||(n.scope=t.target),t.values[e]=n,Object.defineProperty(t.target,e,$(e))}function J(t){return Mn[t]||(Mn[t]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[t].get()},set:function(e){tt(this,t,e)}})}function $(t){return Sn[t]||(Sn[t]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[t].get()},set:function(e){return this.$mobx.values[t].set(e)}})}function tt(t,e,n){var i=t.$mobx,a=i.values[e];if(r(i)){var l=o(i,{type:\"update\",object:t,name:e,newValue:n});if(!l)return;n=l.newValue}if((n=a.prepareNewValue(n))!==dn){var h=s(i),p=c(),l=h||p?{type:\"update\",object:t,oldValue:a.value,name:e,newValue:n}:null;p&&d(l),a.setNewValue(n),h&&u(i,l),p&&f()}}function et(t,e,n,i){var r=s(t),a=c(),o=r||a?{type:\"add\",object:e,name:n,newValue:i}:null;a&&d(o),r&&u(t,o),a&&f()}function nt(t){return!!Tt(t)&&(I(t),En(t.$mobx))}function it(t,e){if(null===t||void 0===t)return!1;if(void 0!==e){if(_(t)||Dn(t))throw new Error(w(\"m019\"));if(nt(t)){var n=t.$mobx;return n.values&&!!n.values[e]}return!1}return nt(t)||!!t.$mobx||en(t)||$n(t)||_n(t)}function rt(t){return wt(!!t,\":(\"),R(function(e,n,i,r,a){It(e,n),wt(!a||!a.get,w(\"m022\")),Z(q(e,void 0),n,i,t)},function(t){var e=this.$mobx.values[t];if(void 0!==e)return e.get()},function(t,e){tt(this,t,e)},!0,!1)}function at(t){for(var e=[],n=1;n=2,w(\"m014\")),wt(\"object\"==typeof t,w(\"m015\")),wt(!Dn(t),w(\"m016\")),n.forEach(function(t){wt(\"object\"==typeof t,w(\"m017\")),wt(!it(t),w(\"m018\"))});for(var i=q(t),r={},a=n.length-1;a>=0;a--){var o=n[a];for(var s in o)if(!0!==r[s]&&Ot(o,s)){if(r[s]=!0,t===o&&!Lt(t,s))continue;var l=Object.getOwnPropertyDescriptor(o,s);X(i,s,l,e)}}return t}function lt(t){if(void 0===t&&(t=void 0),\"string\"==typeof arguments[1])return kn.apply(null,arguments);if(wt(arguments.length<=1,w(\"m021\")),wt(!ct(t),w(\"m020\")),it(t))return t;var e=dt(t,void 0,void 0);return e!==t?e:Rn.box(t)}function ut(t){_t(\"Expected one or two arguments to observable.\"+t+\". Did you accidentally try to use observable.\"+t+\" as decorator?\")}function ct(t){return\"object\"==typeof t&&null!==t&&!0===t.isMobxModifierDescriptor}function ht(t,e){return wt(!ct(e),\"Modifiers cannot be nested\"),{isMobxModifierDescriptor:!0,initialValue:e,enhancer:t}}function dt(t,e,n){return ct(t)&&_t(\"You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it\"),it(t)?t:Array.isArray(t)?Rn.array(t,n):Ct(t)?Rn.object(t,n):jt(t)?Rn.map(t,n):t}function ft(t,e,n){return ct(t)&&_t(\"You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it\"),void 0===t||null===t?t:nt(t)||_(t)||Dn(t)?t:Array.isArray(t)?Rn.shallowArray(t,n):Ct(t)?Rn.shallowObject(t,n):jt(t)?Rn.shallowMap(t,n):_t(\"The shallow modifier / decorator can only used in combination with arrays, objects and maps\")}function pt(t){return t}function mt(t,e,n){if(Nt(t,e))return e;if(it(t))return t;if(Array.isArray(t))return new un(t,mt,n);if(jt(t))return new In(t,mt,n);if(Ct(t)){var i={};return q(i,n),st(i,mt,[t]),i}return t}function gt(t,e,n){return Nt(t,e)?e:t}function vt(t,e){void 0===e&&(e=void 0),se();try{return t.apply(e)}finally{le()}}function yt(t){return Mt(\"`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead\"),Rn.map(t)}function bt(){return\"undefined\"!=typeof window?window:t}function xt(){return++Wn.mobxGuid}function _t(t,e){throw wt(!1,t,e),\"X\"}function wt(t,e,n){if(!t)throw new Error(\"[mobx] Invariant failed: \"+e+(n?\" in '\"+n+\"'\":\"\"))}function Mt(t){return-1===zn.indexOf(t)&&(zn.push(t),console.error(\"[mobx] Deprecated: \"+t),!0)}function St(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}function Et(t){var e=[];return t.forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),e}function kt(t,e,n){return void 0===e&&(e=100),void 0===n&&(n=\" - \"),t?t.slice(0,e).join(n)+(t.length>e?\" (... and \"+(t.length-e)+\"more)\":\"\"):\"\"}function Tt(t){return null!==t&&\"object\"==typeof t}function Ct(t){if(null===t||\"object\"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function Pt(){for(var t=arguments[0],e=1,n=arguments.length;e=0;r--)if(!Nt(t[r],e[r]))return!1;return!0}if(i){if(t.size!==e.size)return!1;var a=!0;return t.forEach(function(t,n){a=a&&Nt(e.get(n),t)}),a}if(\"object\"==typeof t&&\"object\"==typeof e){if(null===t||null===e)return!1;if(Ut(t)&&Ut(e))return t.size===e.size&&Nt(Rn.shallowMap(t).entries(),Rn.shallowMap(e).entries());if(Dt(t).length!==Dt(e).length)return!1;for(var o in t){if(!(o in e))return!1;if(!Nt(t[o],e[o]))return!1}return!0}return!1}function zt(t,e){var n=\"isMobX\"+t;return e.prototype[n]=!0,function(t){return Tt(t)&&!0===t[n]}}function Bt(t,e){return\"number\"==typeof t&&\"number\"==typeof e&&isNaN(t)&&isNaN(e)}function Ft(t){return Array.isArray(t)||_(t)}function Ut(t){return jt(t)||Dn(t)}function jt(t){return void 0!==bt().Map&&t instanceof bt().Map}function Wt(t){var e;return Ct(t)?e=Object.keys(t):Array.isArray(t)?e=t.map(function(t){return t[0]}):Ut(t)?e=Array.from(t.keys()):_t(\"Cannot get keys from \"+t),e}function Gt(){return\"function\"==typeof Symbol&&Symbol.toPrimitive||\"@@toPrimitive\"}function Vt(t){return null===t?null:\"object\"==typeof t?\"\"+t:t}function Ht(){Vn=!0,bt().__mobxInstanceCount--}function Yt(){Mt(\"Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details.\"),Gn=!0;var t=bt(),e=Wn;if(t.__mobservableTrackingStack||t.__mobservableViewStack)throw new Error(\"[mobx] An incompatible version of mobservable is already loaded.\");if(t.__mobxGlobal&&t.__mobxGlobal.version!==e.version)throw new Error(\"[mobx] An incompatible version of mobx is already loaded.\");t.__mobxGlobal?Wn=t.__mobxGlobal:t.__mobxGlobal=e}function qt(){return Wn}function Xt(){Wn.resetId++;var t=new jn;for(var e in t)-1===Un.indexOf(e)&&(Wn[e]=t[e]);Wn.allowStateChanges=!Wn.strictMode}function Zt(t,e){if(\"object\"==typeof t&&null!==t){if(_(t))return wt(void 0===e,w(\"m036\")),t.$mobx.atom;if(Dn(t)){var n=t;if(void 0===e)return Zt(n._keys);var i=n._data[e]||n._hasMap[e];return wt(!!i,\"the entry '\"+e+\"' does not exist in the observable map '\"+Qt(t)+\"'\"),i}if(I(t),e&&!t.$mobx&&t[e],nt(t)){if(!e)return _t(\"please specify a property\");var i=t.$mobx.values[e];return wt(!!i,\"no observable property '\"+e+\"' found on the observable object '\"+Qt(t)+\"'\"),i}if(en(t)||_n(t)||$n(t))return t}else if(\"function\"==typeof t&&$n(t.$mobx))return t.$mobx;return _t(\"Cannot obtain atom from \"+t)}function Kt(t,e){return wt(t,\"Expecting some object\"),void 0!==e?Kt(Zt(t,e)):en(t)||_n(t)||$n(t)?t:Dn(t)?t:(I(t),t.$mobx?t.$mobx:void wt(!1,\"Cannot obtain administration from \"+t))}function Qt(t,e){var n;return n=void 0!==e?Zt(t,e):nt(t)||Dn(t)?Kt(t):Zt(t),n.name}function Jt(t,e){return $t(Zt(t,e))}function $t(t){var e={name:t.name};return t.observing&&t.observing.length>0&&(e.dependencies=Et(t.observing).map($t)),e}function te(t,e){return ee(Zt(t,e))}function ee(t){var e={name:t.name};return ne(t)&&(e.observers=ie(t).map(ee)),e}function ne(t){return t.observers&&t.observers.length>0}function ie(t){return t.observers}function re(t,e){var n=t.observers.length;n&&(t.observersIndexes[e.__mapid]=n),t.observers[n]=e,t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function ae(t,e){if(1===t.observers.length)t.observers.length=0,oe(t);else{var n=t.observers,i=t.observersIndexes,r=n.pop();if(r!==e){var a=i[e.__mapid]||0;a?i[r.__mapid]=a:delete i[r.__mapid],n[a]=r}delete i[e.__mapid]}}function oe(t){t.isPendingUnobservation||(t.isPendingUnobservation=!0,Wn.pendingUnobservations.push(t))}function se(){Wn.inBatch++}function le(){if(0==--Wn.inBatch){Re();for(var t=Wn.pendingUnobservations,e=0;e=1e3)return void e.push(\"(and many more)\");e.push(\"\"+new Array(n).join(\"\\t\")+t.name),t.dependencies&&t.dependencies.forEach(function(t){return pe(t,e,n+1)})}function me(t){return t instanceof Zn}function ge(t){switch(t.dependenciesState){case qn.UP_TO_DATE:return!1;case qn.NOT_TRACKING:case qn.STALE:return!0;case qn.POSSIBLY_STALE:for(var e=Me(),n=t.observing,i=n.length,r=0;r0;Wn.computationDepth>0&&e&&_t(w(\"m031\")+t.name),!Wn.allowStateChanges&&e&&_t(w(Wn.strictMode?\"m030a\":\"m030b\")+t.name)}function be(t,e,n){Ee(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Wn.runId;var i=Wn.trackingDerivation;Wn.trackingDerivation=t;var r;try{r=e.call(n)}catch(t){r=new Zn(t)}return Wn.trackingDerivation=i,xe(t),r}function xe(t){for(var e=t.observing,n=t.observing=t.newObserving,i=qn.UP_TO_DATE,r=0,a=t.unboundDepsCount,o=0;oi&&(i=s.dependenciesState)}for(n.length=r,t.newObserving=null,a=e.length;a--;){var s=e[a];0===s.diffValue&&ae(s,t),s.diffValue=0}for(;r--;){var s=n[r];1===s.diffValue&&(s.diffValue=0,re(s,t))}i!==qn.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function _e(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)ae(e[n],t);t.dependenciesState=qn.NOT_TRACKING}function we(t){var e=Me(),n=t();return Se(e),n}function Me(){var t=Wn.trackingDerivation;return Wn.trackingDerivation=null,t}function Se(t){Wn.trackingDerivation=t}function Ee(t){if(t.dependenciesState!==qn.UP_TO_DATE){t.dependenciesState=qn.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=qn.UP_TO_DATE}}function ke(t){return console.log(t),t}function Te(t,e){return Mt(\"`whyRun` is deprecated in favor of `trace`\"),t=Pe(arguments),t?_n(t)||$n(t)?ke(t.whyRun()):_t(w(\"m025\")):ke(w(\"m024\"))}function Ce(){for(var t=[],e=0;e=0&&Wn.globalReactionErrorHandlers.splice(e,1)}}function Re(){Wn.inBatch>0||Wn.isRunningReactions||Jn(Le)}function Le(){Wn.isRunningReactions=!0;for(var t=Wn.pendingReactions,e=0;t.length>0;){++e===Qn&&(console.error(\"Reaction doesn't converge to a stable state after \"+Qn+\" iterations. Probably there is a cycle in the reactive function: \"+t[0]),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;ie){for(var n=new Array(t-e),i=0;i0&&t+e+1>on&&x(t+e+1)},t.prototype.spliceWithArray=function(t,e,n){var i=this;ye(this.atom);var a=this.values.length;if(void 0===t?t=0:t>a?t=a:t<0&&(t=Math.max(0,a+t)),e=1===arguments.length?a-t:void 0===e||null===e?0:Math.max(0,Math.min(e,a-t)),void 0===n&&(n=[]),r(this)){var s=o(this,{object:this.array,type:\"splice\",index:t,removedCount:e,added:n});if(!s)return Nn;e=s.removedCount,n=s.added}n=n.map(function(t){return i.enhancer(t,void 0)});var l=n.length-e;this.updateArrayLength(a,l);var u=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(t,e,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[t,e].concat(n));var i=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),i;var r},t.prototype.notifyArrayChildUpdate=function(t,e,n){var i=!this.owned&&c(),r=s(this),a=r||i?{object:this.array,type:\"update\",index:t,newValue:e,oldValue:n}:null;i&&d(a),this.atom.reportChanged(),r&&u(this,a),i&&f()},t.prototype.notifyArraySplice=function(t,e,n){var i=!this.owned&&c(),r=s(this),a=r||i?{object:this.array,type:\"splice\",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;i&&d(a),this.atom.reportChanged(),r&&u(this,a),i&&f()},t}(),un=function(t){function e(e,n,i,r){void 0===i&&(i=\"ObservableArray@\"+xt()),void 0===r&&(r=!1);var a=t.call(this)||this,o=new ln(i,n,a,r);return Rt(a,\"$mobx\",o),e&&e.length&&a.spliceWithArray(0,0,e),an&&Object.defineProperty(o.array,\"0\",cn),a}return i(e,t),e.prototype.intercept=function(t){return this.$mobx.intercept(t)},e.prototype.observe=function(t,e){return void 0===e&&(e=!1),this.$mobx.observe(t,e)},e.prototype.clear=function(){return this.splice(0)},e.prototype.concat=function(){for(var t=[],e=0;e-1&&(this.splice(e,1),!0)},e.prototype.move=function(t,e){function n(t){if(t<0)throw new Error(\"[mobx.array] Index out of bounds: \"+t+\" is negative\");var e=this.$mobx.values.length;if(t>=e)throw new Error(\"[mobx.array] Index out of bounds: \"+t+\" is not smaller than \"+e)}if(n.call(this,t),n.call(this,e),t!==e){var i,r=this.$mobx.values;i=t\";At(t,e,yn(a,n))},function(t){return this[t]},function(){wt(!1,w(\"m001\"))},!1,!0),vn=R(function(t,e,n){F(t,e,n)},function(t){return this[t]},function(){wt(!1,w(\"m001\"))},!1,!1),yn=function(t,e,n,i){return 1===arguments.length&&\"function\"==typeof t?M(t.name||\"\",t):2===arguments.length&&\"function\"==typeof e?M(t,e):1===arguments.length&&\"string\"==typeof t?N(t):N(e).apply(null,arguments)};yn.bound=function(t,e,n){if(\"function\"==typeof t){var i=M(\"\",t);return i.autoBind=!0,i}return vn.apply(null,arguments)};var bn={identity:U,structural:j,default:W},xn=function(){function t(t,e,n,i,r){this.derivation=t,this.scope=e,this.equals=n,this.dependenciesState=qn.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=qn.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid=\"#\"+xt(),this.value=new Zn(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Xn.NONE,this.name=i||\"ComputedValue@\"+xt(),r&&(this.setter=M(i+\"-setter\",r))}return t.prototype.onBecomeStale=function(){de(this)},t.prototype.onBecomeUnobserved=function(){_e(this),this.value=void 0},t.prototype.get=function(){wt(!this.isComputing,\"Cycle detected in computation \"+this.name,this.derivation),0===Wn.inBatch?(se(),ge(this)&&(this.isTracing!==Xn.NONE&&console.log(\"[mobx.trace] '\"+this.name+\"' is being read outside a reactive context and doing a full recompute\"),this.value=this.computeValue(!1)),le()):(ue(this),ge(this)&&this.trackAndCompute()&&he(this));var t=this.value;if(me(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(me(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){wt(!this.isRunningSetter,\"The setter of computed value '\"+this.name+\"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?\"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else wt(!1,\"[ComputedValue '\"+this.name+\"'] It is not possible to assign a new value to a computed value.\")},t.prototype.trackAndCompute=function(){c()&&h({object:this.scope,type:\"compute\",fn:this.derivation});var t=this.value,e=this.dependenciesState===qn.NOT_TRACKING,n=this.value=this.computeValue(!0);return e||me(t)||me(n)||!this.equals(t,n)},t.prototype.computeValue=function(t){this.isComputing=!0,Wn.computationDepth++;var e;if(t)e=be(this,this.derivation,this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new Zn(t)}return Wn.computationDepth--,this.isComputing=!1,e},t.prototype.observe=function(t,e){var n=this,i=!0,r=void 0;return G(function(){var a=n.get();if(!i||e){var o=Me();t({type:\"update\",object:n,newValue:a,oldValue:r}),Se(o)}i=!1,r=a})},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+\"[\"+this.derivation.toString()+\"]\"},t.prototype.valueOf=function(){return Vt(this.get())},t.prototype.whyRun=function(){var t=Boolean(Wn.trackingDerivation),e=Et(this.isComputing?this.newObserving:this.observing).map(function(t){return t.name}),n=Et(ie(this).map(function(t){return t.name}));return\"\\nWhyRun? computation '\"+this.name+\"':\\n * Running because: \"+(t?\"[active] the value of this computation is needed by a reaction\":this.isComputing?\"[get] The value of this computed was requested outside a reaction\":\"[idle] not running at the moment\")+\"\\n\"+(this.dependenciesState===qn.NOT_TRACKING?w(\"m032\"):\" * This computation will re-run if any of the following observables changes:\\n \"+kt(e)+\"\\n \"+(this.isComputing&&t?\" (... or any observable accessed during the remainder of the current run)\":\"\")+\"\\n \"+w(\"m038\")+\"\\n\\n * If the outcome of this computation changes, the following observers will be re-run:\\n \"+kt(n)+\"\\n\")},t}();xn.prototype[Gt()]=xn.prototype.valueOf;var _n=zt(\"ComputedValue\",xn),wn=function(){function t(t,e){this.target=t,this.name=e,this.values={},this.changeListeners=null,this.interceptors=null}return t.prototype.observe=function(t,e){return wt(!0!==e,\"`observe` doesn't support the fire immediately property for observable objects.\"),l(this,t)},t.prototype.intercept=function(t){return a(this,t)},t}(),Mn={},Sn={},En=zt(\"ObservableObjectAdministration\",wn),kn=rt(dt),Tn=rt(ft),Cn=rt(pt),Pn=rt(mt),On=rt(gt),An={box:function(t,e){return arguments.length>2&&ut(\"box\"),new fn(t,dt,e)},shallowBox:function(t,e){return arguments.length>2&&ut(\"shallowBox\"),new fn(t,pt,e)},array:function(t,e){return arguments.length>2&&ut(\"array\"),new un(t,dt,e)},shallowArray:function(t,e){return arguments.length>2&&ut(\"shallowArray\"),new un(t,pt,e)},map:function(t,e){return arguments.length>2&&ut(\"map\"),new In(t,dt,e)},shallowMap:function(t,e){return arguments.length>2&&ut(\"shallowMap\"),new In(t,pt,e)},object:function(t,e){arguments.length>2&&ut(\"object\");var n={};return q(n,e),at(n,t),n},shallowObject:function(t,e){arguments.length>2&&ut(\"shallowObject\");var n={};return q(n,e),ot(n,t),n},ref:function(){return arguments.length<2?ht(pt,arguments[0]):Cn.apply(null,arguments)},shallow:function(){return arguments.length<2?ht(ft,arguments[0]):Tn.apply(null,arguments)},deep:function(){return arguments.length<2?ht(dt,arguments[0]):kn.apply(null,arguments)},struct:function(){return arguments.length<2?ht(mt,arguments[0]):Pn.apply(null,arguments)}},Rn=lt;Object.keys(An).forEach(function(t){return Rn[t]=An[t]}),Rn.deep.struct=Rn.struct,Rn.ref.struct=function(){return arguments.length<2?ht(gt,arguments[0]):On.apply(null,arguments)};var Ln={},In=function(){function t(t,e,n){void 0===e&&(e=dt),void 0===n&&(n=\"ObservableMap@\"+xt()),this.enhancer=e,this.name=n,this.$mobx=Ln,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new un(void 0,pt,this.name+\".keys()\",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(t)}return t.prototype._has=function(t){return void 0!==this._data[t]},t.prototype.has=function(t){return!!this.isValidKey(t)&&(t=\"\"+t,this._hasMap[t]?this._hasMap[t].get():this._updateHasMapEntry(t,!1).get())},t.prototype.set=function(t,e){this.assertValidKey(t),t=\"\"+t;var n=this._has(t);if(r(this)){var i=o(this,{type:n?\"update\":\"add\",object:this,newValue:e,name:t});if(!i)return this;e=i.newValue}return n?this._updateValue(t,e):this._addValue(t,e),this},t.prototype.delete=function(t){var e=this;if(this.assertValidKey(t),t=\"\"+t,r(this)){var n=o(this,{type:\"delete\",object:this,name:t});if(!n)return!1}if(this._has(t)){var i=c(),a=s(this),n=a||i?{type:\"delete\",object:this,oldValue:this._data[t].value,name:t}:null;return i&&d(n),vt(function(){e._keys.remove(t),e._updateHasMapEntry(t,!1),e._data[t].setNewValue(void 0),e._data[t]=void 0}),a&&u(this,n),i&&f(),!0}return!1},t.prototype._updateHasMapEntry=function(t,e){var n=this._hasMap[t];return n?n.setNewValue(e):n=this._hasMap[t]=new fn(e,pt,this.name+\".\"+t+\"?\",!1),n},t.prototype._updateValue=function(t,e){var n=this._data[t];if((e=n.prepareNewValue(e))!==dn){var i=c(),r=s(this),a=r||i?{type:\"update\",object:this,oldValue:n.value,name:t,newValue:e}:null;i&&d(a),n.setNewValue(e),r&&u(this,a),i&&f()}},t.prototype._addValue=function(t,e){var n=this;vt(function(){var i=n._data[t]=new fn(e,n.enhancer,n.name+\".\"+t,!1);e=i.value,n._updateHasMapEntry(t,!0),n._keys.push(t)});var i=c(),r=s(this),a=r||i?{type:\"add\",object:this,name:t,newValue:e}:null;i&&d(a),r&&u(this,a),i&&f()},t.prototype.get=function(t){return t=\"\"+t,this.has(t)?this.dehanceValue(this._data[t].get()):this.dehanceValue(void 0)},t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.keys=function(){return g(this._keys.slice())},t.prototype.values=function(){return g(this._keys.map(this.get,this))},t.prototype.entries=function(){var t=this;return g(this._keys.map(function(e){return[e,t.get(e)]}))},t.prototype.forEach=function(t,e){var n=this;this.keys().forEach(function(i){return t.call(e,n.get(i),i,n)})},t.prototype.merge=function(t){var e=this;return Dn(t)&&(t=t.toJS()),vt(function(){Ct(t)?Object.keys(t).forEach(function(n){return e.set(n,t[n])}):Array.isArray(t)?t.forEach(function(t){var n=t[0],i=t[1];return e.set(n,i)}):jt(t)?t.forEach(function(t,n){return e.set(n,t)}):null!==t&&void 0!==t&&_t(\"Cannot initialize map from \"+t)}),this},t.prototype.clear=function(){var t=this;vt(function(){we(function(){t.keys().forEach(t.delete,t)})})},t.prototype.replace=function(t){var e=this;return vt(function(){var n=Wt(t);e.keys().filter(function(t){return-1===n.indexOf(t)}).forEach(function(t){return e.delete(t)}),e.merge(t)}),this},Object.defineProperty(t.prototype,\"size\",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.toJS=function(){var t=this,e={};return this.keys().forEach(function(n){return e[n]=t.get(n)}),e},t.prototype.toJSON=function(){return this.toJS()},t.prototype.isValidKey=function(t){return null!==t&&void 0!==t&&(\"string\"==typeof t||\"number\"==typeof t||\"boolean\"==typeof t)},t.prototype.assertValidKey=function(t){if(!this.isValidKey(t))throw new Error(\"[mobx.map] Invalid key: '\"+t+\"', only strings, numbers and booleans are accepted as key in observable maps.\")},t.prototype.toString=function(){var t=this;return this.name+\"[{ \"+this.keys().map(function(e){return e+\": \"+t.get(e)}).join(\", \")+\" }]\"},t.prototype.observe=function(t,e){return wt(!0!==e,w(\"m033\")),l(this,t)},t.prototype.intercept=function(t){return a(this,t)},t}();v(In.prototype,function(){return this.entries()});var Dn=zt(\"ObservableMap\",In),Nn=[];Object.freeze(Nn);var zn=[],Bn=function(){},Fn=Object.prototype.hasOwnProperty,Un=[\"mobxGuid\",\"resetId\",\"spyListeners\",\"strictMode\",\"runId\"],jn=function(){function t(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return t}(),Wn=new jn,Gn=!1,Vn=!1,Hn=!1,Yn=bt();Yn.__mobxInstanceCount?(Yn.__mobxInstanceCount++,setTimeout(function(){Gn||Vn||Hn||(Hn=!0,console.warn(\"[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details.\"))})):Yn.__mobxInstanceCount=1;var qn;!function(t){t[t.NOT_TRACKING=-1]=\"NOT_TRACKING\",t[t.UP_TO_DATE=0]=\"UP_TO_DATE\",t[t.POSSIBLY_STALE=1]=\"POSSIBLY_STALE\",t[t.STALE=2]=\"STALE\"}(qn||(qn={}));var Xn;!function(t){t[t.NONE=0]=\"NONE\",t[t.LOG=1]=\"LOG\",t[t.BREAK=2]=\"BREAK\"}(Xn||(Xn={}));var Zn=function(){function t(t){this.cause=t}return t}(),Kn=function(){function t(t,e){void 0===t&&(t=\"Reaction@\"+xt()),this.name=t,this.onInvalidate=e,this.observing=[],this.newObserving=[],this.dependenciesState=qn.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid=\"#\"+xt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Xn.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Wn.pendingReactions.push(this),Re())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){this.isDisposed||(se(),this._isScheduled=!1,ge(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&c()&&h({object:this,type:\"scheduled-reaction\"})),le())},t.prototype.track=function(t){se();var e,n=c();n&&(e=Date.now(),d({object:this,type:\"reaction\",fn:t})),this._isRunning=!0;var i=be(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&_e(this),me(i)&&this.reportExceptionInDerivation(i.cause),n&&f({time:Date.now()-e}),le()},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)return void this.errorHandler(t,this);var n=\"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '\"+this,i=w(\"m037\");console.error(n||i,t),c()&&h({type:\"error\",message:n,error:t,object:this}),Wn.globalReactionErrorHandlers.forEach(function(n){return n(t,e)})},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(se(),_e(this),le()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t.$mobx=this,t.onError=Oe,t},t.prototype.toString=function(){return\"Reaction[\"+this.name+\"]\"},t.prototype.whyRun=function(){var t=Et(this._isRunning?this.newObserving:this.observing).map(function(t){return t.name});return\"\\nWhyRun? reaction '\"+this.name+\"':\\n * Status: [\"+(this.isDisposed?\"stopped\":this._isRunning?\"running\":this.isScheduled()?\"scheduled\":\"idle\")+\"]\\n * This reaction will re-run if any of the following observables changes:\\n \"+kt(t)+\"\\n \"+(this._isRunning?\" (... or any observable accessed during the remainder of the current run)\":\"\")+\"\\n\\t\"+w(\"m038\")+\"\\n\"},t.prototype.trace=function(t){void 0===t&&(t=!1),Ce(this,t)},t}(),Qn=100,Jn=function(t){return t()},$n=zt(\"Reaction\",Kn),ti=Fe(bn.default),ei=Fe(bn.structural),ni=function(t,e,n){if(\"string\"==typeof e)return ti.apply(null,arguments);wt(\"function\"==typeof t,w(\"m011\")),wt(arguments.length<3,w(\"m012\"));var i=\"object\"==typeof e?e:{};i.setter=\"function\"==typeof e?e:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?bn.structural:bn.default;return new xn(t,i.context,r,i.name||t.name||\"\",i.setter)};ni.struct=ei,ni.equals=Fe;var ii={allowStateChanges:P,deepEqual:Nt,getAtom:Zt,getDebugName:Qt,getDependencyTree:Jt,getAdministration:Kt,getGlobalState:qt,getObserverTree:te,interceptReads:Qe,isComputingDerivation:ve,isSpyEnabled:c,onReactionError:Ae,reserveArrayBuffer:x,resetGlobalState:Xt,isolateGlobalState:Ht,shareGlobalState:Yt,spyReport:h,spyReportEnd:f,spyReportStart:d,setReactionScheduler:Ie},ri={Reaction:Kn,untracked:we,Atom:tn,BaseAtom:$e,useStrict:T,isStrictModeEnabled:C,spy:p,comparer:bn,asReference:De,asFlat:ze,asStructure:Ne,asMap:Be,isModifierDescriptor:ct,isObservableObject:nt,isBoxedObservable:pn,isObservableArray:_,ObservableMap:In,isObservableMap:Dn,map:yt,transaction:vt,observable:Rn,computed:ni,isObservable:it,isComputed:Ue,extendObservable:at,extendShallowObservable:ot,observe:je,intercept:Ve,autorun:G,autorunAsync:H,when:V,reaction:Y,action:yn,isAction:B,runInAction:z,expr:qe,toJS:Xe,createTransformer:Ze,whyRun:Te,isArrayLike:Ft,extras:ii},ai=!1;for(var oi in ri)!function(t){var e=ri[t];Object.defineProperty(ri,t,{get:function(){return ai||(ai=!0,console.warn(\"Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\\nUse `import * as mobx from 'mobx'` instead\")),e}})}(oi);\"object\"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:ii}),e.default=ri}.call(e,n(111))},function(t,e,n){t.exports=n(459)()},function(t,e,n){t.exports={default:n(305),__esModule:!0}},function(t,e,n){var i=n(21);t.exports=function(t){if(!i(t))throw TypeError(t+\" is not an object!\");return t}},function(t,e,n){t.exports=!n(36)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},function(t,e){t.exports={camera:{viewAngle:.65,Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3},laneWidth:4.5,laneWidthToViewDistanceRatio:5},ground:{defaults:{mpp:.125,xres:8192,yres:8192,xorigin:4096,yorigin:4096,type:\"default\",tileRange:4},sunnyvale_big_loop:{mpp:.125,xres:24576,yres:16384,xorigin:587392,yorigin:4140800,type:\"default\",tileRange:4}},planning:{minInterval:.1,defaults:{width:1.4}},options:{defaults:{enableSimControl:!1,showModuleController:!1,showMenu:!1,showPOI:!1,showPNCMonitor:!1,showRouteEditingBar:!1,showDataRecorder:!1,showTasks:!0,showVideo:!1,showPlanningCar:!1,showPlanningReference:!1,showPlaningDpOptimizer:!1,showPlanningQpOptimizer:!1,showPlanning:!0,showDecisionMain:!0,showDecisionObstacle:!0,showRouting:!0,showPredictionMajor:!0,showPredictionMinor:!0,showObstaclesVehicle:!0,showObstaclesPedestrian:!0,showObstaclesBicycle:!0,showObstaclesUnknownMovable:!0,showObstaclesUnknownUnmovable:!0,showObstaclesUnknown:!0,showObstaclesVirtual:!1,showObstaclesVelocity:!0,showObstaclesHeading:!0,showObstaclesId:!0,showPointCloud:!1,showPositionGps:!1,showPositionLocalization:!0,showMapCrosswalk:!0,showMapClearArea:!0,showMapJunction:!1,showMapLane:!0,showMapRoad:!1,showMapSignal:!0,showMapStopSign:!0,cameraAngle:\"Default\"}},navigation:{map:\"GoogleMap\"},debug:{autoMonitorMessage:!1,performanceMonitor:!1},server:{port:8888}}},function(t,e,n){var i=n(48);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){\"use strict\";function i(t,e,n){return n?[t,e]:t}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(e){var n=e*w;t.position.z+=n}}function a(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=new g.MeshBasicMaterial({map:E.load(t),transparent:!0,depthWrite:!1}),s=new g.Mesh(new g.PlaneGeometry(e,n),o);return s.material.side=g.DoubleSide,s.position.set(i,r,a),s.overdraw=!0,s}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=new g.Path,u=l.createGeometry(t);u.computeLineDistances();var c=new g.LineDashedMaterial({color:e,dashSize:i,linewidth:n,gapSize:a}),h=new g.Line(u,c);return r(h,o),h.matrixAutoUpdate=s,s||h.updateMatrix(),h}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=new g.CircleGeometry(t,n);return new g.Mesh(i,e)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16777215,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=M(t.map(function(t){return[t.x,t.y]})),s=new g.ShaderMaterial(S({side:g.DoubleSide,diffuse:n,thickness:e,opacity:i,transparent:!0})),l=new g.Mesh(o,s);return r(l,a),l}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,l=new g.Path,u=l.createGeometry(t),c=new g.LineBasicMaterial({color:e,linewidth:n,transparent:o,opacity:s}),h=new g.Line(u,c);return r(h,i),h.matrixAutoUpdate=a,!1===a&&h.updateMatrix(),h}function c(t,e,n){var i=new g.CubeGeometry(t.x,t.y,t.z),r=new g.MeshBasicMaterial({color:e}),a=new g.Mesh(i,r),o=new g.BoxHelper(a);return o.material.linewidth=n,o}function h(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.01,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.02,a=new g.CubeGeometry(t.x,t.y,t.z);a=new g.EdgesGeometry(a),a=(new g.Geometry).fromBufferGeometry(a),a.computeLineDistances();var o=new g.LineDashedMaterial({color:e,linewidth:n,dashSize:i,gapSize:r});return new g.LineSegments(a,o)}function d(t,e,n,i,r){var a=new g.Vector3(0,t,0);return u([new g.Vector3(0,0,0),a,new g.Vector3(i/2,t-n,0),a,new g.Vector3(-i/2,t-n,0)],r,e,1)}function f(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new g.Shape;if(e){n.moveTo(t[0].x,t[0].y);for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:new g.MeshBasicMaterial({color:16711680}),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=f(t,n),s=new g.Mesh(o,e);return r(s,i),s.matrixAutoUpdate=a,!1===a&&s.updateMatrix(),s}Object.defineProperty(e,\"__esModule\",{value:!0}),e.addOffsetZ=r,e.drawImage=a,e.drawDashedLineFromPoints=o,e.drawCircle=s,e.drawThickBandFromPoints=l,e.drawSegmentsFromPoints=u,e.drawBox=c,e.drawDashedBox=h,e.drawArrow=d,e.getShapeGeometryFromPoints=f,e.drawShapeFromPoints=p;var m=n(12),g=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(m),v=n(480),y=i(v),b=n(481),x=i(b),_=n(39),w=.04,M=(0,y.default)(g),S=(0,x.default)(g),E=new g.TextureLoader},function(t,e,n){t.exports={default:n(307),__esModule:!0}},function(t,e,n){\"use strict\";t.exports={},t.exports.Arc=n(274),t.exports.Line=n(275),t.exports.Point=n(276),t.exports.Rectangle=n(277)},function(t,e,n){var i=n(22),r=n(52);t.exports=n(27)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(535),h=(i(c),n(478)),d=i(h),f=n(28),p=i(f),m=n(208),g=i(m),v=n(207),y=i(v),b=n(211),x=i(b),_=n(218),w=i(_),M=n(212),S=i(M),E=n(219),k=i(E),T=n(116),C=i(T),P=n(209),O=i(P),A=n(214),R=i(A),L=n(215),I=i(L),D=n(216),N=i(D),z=n(210),B=i(z),F=n(213),U=i(F),j=(n(39),function(){function t(){(0,a.default)(this,t);var e=!this.isMobileDevice();this.coordinates=new g.default,this.renderer=new u.WebGLRenderer({antialias:e}),this.scene=new u.Scene,this.scene.background=new u.Color(3095),this.dimension={width:0,height:0},this.ground=\"tile\"===p.default.ground.type?new w.default:new x.default,this.map=new S.default,this.adc=new y.default(\"adc\",this.scene),this.planningAdc=new y.default(\"plannigAdc\",this.scene),this.planningTrajectory=new k.default,this.perceptionObstacles=new C.default,this.decision=new O.default,this.prediction=new R.default,this.routing=new I.default,this.routingEditor=new N.default,this.gnss=new B.default,this.pointCloud=new U.default,this.stats=null,p.default.debug.performanceMonitor&&(this.stats=new d.default,this.stats.showPanel(1),this.stats.domElement.style.position=\"absolute\",this.stats.domElement.style.top=null,this.stats.domElement.style.bottom=\"0px\",document.body.appendChild(this.stats.domElement)),this.geolocation={x:0,y:0}}return(0,s.default)(t,[{key:\"initialize\",value:function(t,e,n,i){this.options=i,this.canvasId=t,this.viewAngle=p.default.camera.viewAngle,this.viewDistance=p.default.camera.laneWidth*p.default.camera.laneWidthToViewDistanceRatio,this.camera=new u.PerspectiveCamera(p.default.camera[this.options.cameraAngle].fov,window.innerWidth/window.innerHeight,p.default.camera[this.options.cameraAngle].near,p.default.camera[this.options.cameraAngle].far),this.camera.name=\"camera\",this.scene.add(this.camera),this.updateDimension(e,n),this.renderer.setPixelRatio(window.devicePixelRatio),document.getElementById(t).appendChild(this.renderer.domElement);var r=new u.AmbientLight(4473924),a=new u.DirectionalLight(16772829);a.position.set(0,0,1).normalize(),this.controls=new u.OrbitControls(this.camera,this.renderer.domElement),this.controls.enable=!1,this.onMouseDownHandler=this.editRoute.bind(this),this.scene.add(r),this.scene.add(a),this.animate()}},{key:\"maybeInitializeOffest\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.coordinates.isInitialized()&&!n||this.coordinates.initialize(t,e)}},{key:\"updateDimension\",value:function(t,e){this.camera.aspect=t/e,this.camera.updateProjectionMatrix(),this.renderer.setSize(t,e),this.dimension.width=t,this.dimension.height=e}},{key:\"enableOrbitControls\",value:function(){var t=this.adc.mesh.position;this.controls.enabled=!0,this.controls.enableRotate=!1,this.controls.reset(),this.controls.minDistance=20,this.controls.maxDistance=1e3,this.controls.target.set(t.x,t.y,0),this.camera.position.set(t.x,t.y,50),\"FLU\"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt(t.x,t.y,0)}},{key:\"adjustCamera\",value:function(t,e){if(!this.routingEditor.isInEditingMode()){switch(this.camera.fov=p.default.camera[e].fov,this.camera.near=p.default.camera[e].near,this.camera.far=p.default.camera[e].far,e){case\"Default\":var n=this.viewDistance*Math.cos(t.rotation.y)*Math.cos(this.viewAngle),i=this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=this.viewDistance*Math.sin(this.viewAngle);this.camera.position.x=t.position.x-n,this.camera.position.y=t.position.y-i,this.camera.position.z=t.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:t.position.x+2*n,y:t.position.y+2*i,z:0}),this.controls.enabled=!1;break;case\"Near\":n=.5*this.viewDistance*Math.cos(t.rotation.y)*Math.cos(this.viewAngle),i=.5*this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=.5*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=t.position.x-n,this.camera.position.y=t.position.y-i,this.camera.position.z=t.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:t.position.x+2*n,y:t.position.y+2*i,z:0}),this.controls.enabled=!1;break;case\"Overhead\":i=.5*this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=2*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=t.position.x,this.camera.position.y=t.position.y+i,this.camera.position.z=2*(t.position.z+r),\"FLU\"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt({x:t.position.x,y:t.position.y+i,z:0}),this.controls.enabled=!1;break;case\"Map\":this.controls.enabled||this.enableOrbitControls()}this.camera.updateProjectionMatrix()}}},{key:\"enableRouteEditing\",value:function(){this.enableOrbitControls(),this.routingEditor.enableEditingMode(this.camera,this.adc),document.getElementById(this.canvasId).addEventListener(\"mousedown\",this.onMouseDownHandler,!1)}},{key:\"disableRouteEditing\",value:function(){this.routingEditor.disableEditingMode(this.scene),document.getElementById(this.canvasId).removeEventListener(\"mousedown\",this.onMouseDownHandler,!1)}},{key:\"addDefaultEndPoint\",value:function(t){for(var e=0;e1&&void 0!==arguments[1]&&arguments[1]&&this.map.removeAllElements(this.scene),this.map.appendMapData(t,this.coordinates,this.scene)}},{key:\"updatePointCloud\",value:function(t){this.coordinates.isInitialized()&&this.adc.mesh&&this.pointCloud.update(t,this.adc.mesh)}},{key:\"updateMapIndex\",value:function(t,e,n){this.routingEditor.isInEditingMode()&&this.routingEditor.EDITING_MAP_RADIUS!==n||this.map.updateIndex(t,e,this.scene)}},{key:\"isMobileDevice\",value:function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)}},{key:\"getGeolocation\",value:function(t){if(this.coordinates.isInitialized()){var e=t.currentTarget.getBoundingClientRect(),n=new u.Vector3((t.clientX-e.left)/this.dimension.width*2-1,-(t.clientY-e.top)/this.dimension.height*2+1,0);n.unproject(this.camera);var i=n.sub(this.camera.position).normalize(),r=-this.camera.position.z/i.z,a=this.camera.position.clone().add(i.multiplyScalar(r));return this.coordinates.applyOffset(a,!0)}}}]),t}()),W=new j;e.default=W},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(83),r=n(80);t.exports=function(t){return i(r(t))}},function(t,e,n){(function(t,i){var r;(function(){function a(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function o(t,e,n,i){for(var r=-1,a=null==t?0:t.length;++r-1}function d(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function z(t,e){for(var n=t.length;n--&&w(e,t[n],0)>-1;);return n}function B(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}function F(t){return\"\\\\\"+kn[t]}function U(t,e){return null==t?it:t[e]}function j(t){return vn.test(t)}function W(t){return yn.test(t)}function G(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function H(t,e){return function(n){return t(e(n))}}function Y(t,e){for(var n=-1,i=t.length,r=0,a=[];++n>>1,Bt=[[\"ary\",wt],[\"bind\",mt],[\"bindKey\",gt],[\"curry\",yt],[\"curryRight\",bt],[\"flip\",St],[\"partial\",xt],[\"partialRight\",_t],[\"rearg\",Mt]],Ft=\"[object Arguments]\",Ut=\"[object Array]\",jt=\"[object AsyncFunction]\",Wt=\"[object Boolean]\",Gt=\"[object Date]\",Vt=\"[object DOMException]\",Ht=\"[object Error]\",Yt=\"[object Function]\",qt=\"[object GeneratorFunction]\",Xt=\"[object Map]\",Zt=\"[object Number]\",Kt=\"[object Null]\",Qt=\"[object Object]\",Jt=\"[object Proxy]\",$t=\"[object RegExp]\",te=\"[object Set]\",ee=\"[object String]\",ne=\"[object Symbol]\",ie=\"[object Undefined]\",re=\"[object WeakMap]\",ae=\"[object WeakSet]\",oe=\"[object ArrayBuffer]\",se=\"[object DataView]\",le=\"[object Float32Array]\",ue=\"[object Float64Array]\",ce=\"[object Int8Array]\",he=\"[object Int16Array]\",de=\"[object Int32Array]\",fe=\"[object Uint8Array]\",pe=\"[object Uint8ClampedArray]\",me=\"[object Uint16Array]\",ge=\"[object Uint32Array]\",ve=/\\b__p \\+= '';/g,ye=/\\b(__p \\+=) '' \\+/g,be=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,_e=/[&<>\"']/g,we=RegExp(xe.source),Me=RegExp(_e.source),Se=/<%-([\\s\\S]+?)%>/g,Ee=/<%([\\s\\S]+?)%>/g,ke=/<%=([\\s\\S]+?)%>/g,Te=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,Ce=/^\\w*$/,Pe=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Oe=/[\\\\^$.*+?()[\\]{}|]/g,Ae=RegExp(Oe.source),Re=/^\\s+|\\s+$/g,Le=/^\\s+/,Ie=/\\s+$/,De=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,Ne=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,ze=/,? & /,Be=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,Fe=/\\\\(\\\\)?/g,Ue=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,je=/\\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ve=/^\\[object .+?Constructor\\]$/,He=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\\d*)$/,qe=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,Xe=/($^)/,Ze=/['\\n\\r\\u2028\\u2029\\\\]/g,Ke=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Qe=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",Je=\"[\"+Qe+\"]\",$e=\"[\"+Ke+\"]\",tn=\"[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]\",en=\"[^\\\\ud800-\\\\udfff\"+Qe+\"\\\\d+\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",nn=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",rn=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",an=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",on=\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",sn=\"(?:\"+tn+\"|\"+en+\")\",ln=\"(?:[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]|\\\\ud83c[\\\\udffb-\\\\udfff])?\",un=\"(?:\\\\u200d(?:\"+[\"[^\\\\ud800-\\\\udfff]\",rn,an].join(\"|\")+\")[\\\\ufe0e\\\\ufe0f]?\"+ln+\")*\",cn=\"[\\\\ufe0e\\\\ufe0f]?\"+ln+un,hn=\"(?:\"+[\"[\\\\u2700-\\\\u27bf]\",rn,an].join(\"|\")+\")\"+cn,dn=\"(?:\"+[\"[^\\\\ud800-\\\\udfff]\"+$e+\"?\",$e,rn,an,\"[\\\\ud800-\\\\udfff]\"].join(\"|\")+\")\",fn=RegExp(\"['’]\",\"g\"),pn=RegExp($e,\"g\"),mn=RegExp(nn+\"(?=\"+nn+\")|\"+dn+cn,\"g\"),gn=RegExp([on+\"?\"+tn+\"+(?:['’](?:d|ll|m|re|s|t|ve))?(?=\"+[Je,on,\"$\"].join(\"|\")+\")\",\"(?:[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]|[^\\\\ud800-\\\\udfff\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\d+\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=\"+[Je,on+sn,\"$\"].join(\"|\")+\")\",on+\"?\"+sn+\"+(?:['’](?:d|ll|m|re|s|t|ve))?\",on+\"+(?:['’](?:D|LL|M|RE|S|T|VE))?\",\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",\"\\\\d+\",hn].join(\"|\"),\"g\"),vn=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\"+Ke+\"\\\\ufe0e\\\\ufe0f]\"),yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bn=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],xn=-1,_n={};_n[le]=_n[ue]=_n[ce]=_n[he]=_n[de]=_n[fe]=_n[pe]=_n[me]=_n[ge]=!0,_n[Ft]=_n[Ut]=_n[oe]=_n[Wt]=_n[se]=_n[Gt]=_n[Ht]=_n[Yt]=_n[Xt]=_n[Zt]=_n[Qt]=_n[$t]=_n[te]=_n[ee]=_n[re]=!1;var wn={};wn[Ft]=wn[Ut]=wn[oe]=wn[se]=wn[Wt]=wn[Gt]=wn[le]=wn[ue]=wn[ce]=wn[he]=wn[de]=wn[Xt]=wn[Zt]=wn[Qt]=wn[$t]=wn[te]=wn[ee]=wn[ne]=wn[fe]=wn[pe]=wn[me]=wn[ge]=!0,wn[Ht]=wn[Yt]=wn[re]=!1;var Mn={\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"Ç\":\"C\",\"ç\":\"c\",\"Ð\":\"D\",\"ð\":\"d\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"Ñ\":\"N\",\"ñ\":\"n\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"Ý\":\"Y\",\"ý\":\"y\",\"ÿ\":\"y\",\"Æ\":\"Ae\",\"æ\":\"ae\",\"Þ\":\"Th\",\"þ\":\"th\",\"ß\":\"ss\",\"Ā\":\"A\",\"Ă\":\"A\",\"Ą\":\"A\",\"ā\":\"a\",\"ă\":\"a\",\"ą\":\"a\",\"Ć\":\"C\",\"Ĉ\":\"C\",\"Ċ\":\"C\",\"Č\":\"C\",\"ć\":\"c\",\"ĉ\":\"c\",\"ċ\":\"c\",\"č\":\"c\",\"Ď\":\"D\",\"Đ\":\"D\",\"ď\":\"d\",\"đ\":\"d\",\"Ē\":\"E\",\"Ĕ\":\"E\",\"Ė\":\"E\",\"Ę\":\"E\",\"Ě\":\"E\",\"ē\":\"e\",\"ĕ\":\"e\",\"ė\":\"e\",\"ę\":\"e\",\"ě\":\"e\",\"Ĝ\":\"G\",\"Ğ\":\"G\",\"Ġ\":\"G\",\"Ģ\":\"G\",\"ĝ\":\"g\",\"ğ\":\"g\",\"ġ\":\"g\",\"ģ\":\"g\",\"Ĥ\":\"H\",\"Ħ\":\"H\",\"ĥ\":\"h\",\"ħ\":\"h\",\"Ĩ\":\"I\",\"Ī\":\"I\",\"Ĭ\":\"I\",\"Į\":\"I\",\"İ\":\"I\",\"ĩ\":\"i\",\"ī\":\"i\",\"ĭ\":\"i\",\"į\":\"i\",\"ı\":\"i\",\"Ĵ\":\"J\",\"ĵ\":\"j\",\"Ķ\":\"K\",\"ķ\":\"k\",\"ĸ\":\"k\",\"Ĺ\":\"L\",\"Ļ\":\"L\",\"Ľ\":\"L\",\"Ŀ\":\"L\",\"Ł\":\"L\",\"ĺ\":\"l\",\"ļ\":\"l\",\"ľ\":\"l\",\"ŀ\":\"l\",\"ł\":\"l\",\"Ń\":\"N\",\"Ņ\":\"N\",\"Ň\":\"N\",\"Ŋ\":\"N\",\"ń\":\"n\",\"ņ\":\"n\",\"ň\":\"n\",\"ŋ\":\"n\",\"Ō\":\"O\",\"Ŏ\":\"O\",\"Ő\":\"O\",\"ō\":\"o\",\"ŏ\":\"o\",\"ő\":\"o\",\"Ŕ\":\"R\",\"Ŗ\":\"R\",\"Ř\":\"R\",\"ŕ\":\"r\",\"ŗ\":\"r\",\"ř\":\"r\",\"Ś\":\"S\",\"Ŝ\":\"S\",\"Ş\":\"S\",\"Š\":\"S\",\"ś\":\"s\",\"ŝ\":\"s\",\"ş\":\"s\",\"š\":\"s\",\"Ţ\":\"T\",\"Ť\":\"T\",\"Ŧ\":\"T\",\"ţ\":\"t\",\"ť\":\"t\",\"ŧ\":\"t\",\"Ũ\":\"U\",\"Ū\":\"U\",\"Ŭ\":\"U\",\"Ů\":\"U\",\"Ű\":\"U\",\"Ų\":\"U\",\"ũ\":\"u\",\"ū\":\"u\",\"ŭ\":\"u\",\"ů\":\"u\",\"ű\":\"u\",\"ų\":\"u\",\"Ŵ\":\"W\",\"ŵ\":\"w\",\"Ŷ\":\"Y\",\"ŷ\":\"y\",\"Ÿ\":\"Y\",\"Ź\":\"Z\",\"Ż\":\"Z\",\"Ž\":\"Z\",\"ź\":\"z\",\"ż\":\"z\",\"ž\":\"z\",\"IJ\":\"IJ\",\"ij\":\"ij\",\"Œ\":\"Oe\",\"œ\":\"oe\",\"ʼn\":\"'n\",\"ſ\":\"s\"},Sn={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"},En={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\"},kn={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Tn=parseFloat,Cn=parseInt,Pn=\"object\"==typeof t&&t&&t.Object===Object&&t,On=\"object\"==typeof self&&self&&self.Object===Object&&self,An=Pn||On||Function(\"return this\")(),Rn=\"object\"==typeof e&&e&&!e.nodeType&&e,Ln=Rn&&\"object\"==typeof i&&i&&!i.nodeType&&i,In=Ln&&Ln.exports===Rn,Dn=In&&Pn.process,Nn=function(){try{return Dn&&Dn.binding&&Dn.binding(\"util\")}catch(t){}}(),zn=Nn&&Nn.isArrayBuffer,Bn=Nn&&Nn.isDate,Fn=Nn&&Nn.isMap,Un=Nn&&Nn.isRegExp,jn=Nn&&Nn.isSet,Wn=Nn&&Nn.isTypedArray,Gn=k(\"length\"),Vn=T(Mn),Hn=T(Sn),Yn=T(En),qn=function t(e){function n(t){if(el(t)&&!dd(t)&&!(t instanceof y)){if(t instanceof r)return t;if(dc.call(t,\"__wrapped__\"))return Qa(t)}return new r(t)}function i(){}function r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function y(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dt,this.__views__=[]}function T(){var t=new y(this.__wrapped__);return t.__actions__=Lr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lr(this.__views__),t}function K(){if(this.__filtered__){var t=new y(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function tt(){var t=this.__wrapped__.value(),e=this.__dir__,n=dd(t),i=e<0,r=n?t.length:0,a=wa(0,r,this.__views__),o=a.start,s=a.end,l=s-o,u=i?s:o-1,c=this.__iteratees__,h=c.length,d=0,f=Wc(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return gr(t,this.__actions__);var p=[];t:for(;l--&&d-1}function on(t,e){var n=this.__data__,i=Xn(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function sn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ei(t,e,n,i,r,a){var o,l=e&ct,u=e&ht,c=e&dt;if(n&&(o=r?n(t,i,r,a):n(t)),o!==it)return o;if(!tl(t))return t;var h=dd(t);if(h){if(o=Ea(t),!l)return Lr(t,o)}else{var d=wh(t),f=d==Yt||d==qt;if(pd(t))return Mr(t,l);if(d==Qt||d==Ft||f&&!r){if(o=u||f?{}:ka(t),!l)return u?Nr(t,Qn(o,t)):Dr(t,Kn(o,t))}else{if(!wn[d])return r?t:{};o=Ta(t,d,l)}}a||(a=new yn);var p=a.get(t);if(p)return p;if(a.set(t,o),yd(t))return t.forEach(function(i){o.add(ei(i,e,n,i,t,a))}),o;if(gd(t))return t.forEach(function(i,r){o.set(r,ei(i,e,n,r,t,a))}),o;var m=c?u?pa:fa:u?zl:Nl,g=h?it:m(t);return s(g||t,function(i,r){g&&(r=i,i=t[r]),Gn(o,r,ei(i,e,n,r,t,a))}),o}function ni(t){var e=Nl(t);return function(n){return ii(n,t,e)}}function ii(t,e,n){var i=n.length;if(null==t)return!i;for(t=ic(t);i--;){var r=n[i],a=e[r],o=t[r];if(o===it&&!(r in t)||!a(o))return!1}return!0}function ri(t,e,n){if(\"function\"!=typeof t)throw new oc(ot);return Eh(function(){t.apply(it,n)},e)}function ai(t,e,n,i){var r=-1,a=h,o=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=f(e,L(n))),i?(a=d,o=!1):e.length>=rt&&(a=D,o=!1,e=new mn(e));t:for(;++rr?0:r+n),i=i===it||i>r?r:yl(i),i<0&&(i+=r),i=n>i?0:bl(i);n0&&n(s)?e>1?ci(s,e-1,n,i,r):p(r,s):i||(r[r.length]=s)}return r}function hi(t,e){return t&&dh(t,e,Nl)}function di(t,e){return t&&fh(t,e,Nl)}function fi(t,e){return c(e,function(e){return Qs(t[e])})}function pi(t,e){e=_r(e,t);for(var n=0,i=e.length;null!=t&&ne}function yi(t,e){return null!=t&&dc.call(t,e)}function bi(t,e){return null!=t&&e in ic(t)}function xi(t,e,n){return t>=Wc(e,n)&&t=120&&c.length>=120)?new mn(o&&c):it}c=t[0];var p=-1,m=s[0];t:for(;++p-1;)s!==t&&kc.call(s,l,1),kc.call(t,l,1);return t}function Ki(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==a){var a=r;Oa(r)?kc.call(t,r,1):fr(t,r)}}return t}function Qi(t,e){return t+Dc(Hc()*(e-t+1))}function Ji(t,e,n,i){for(var r=-1,a=jc(Ic((e-t)/(n||1)),0),o=Ju(a);a--;)o[i?a:++r]=t,t+=n;return o}function $i(t,e){var n=\"\";if(!t||e<1||e>Rt)return n;do{e%2&&(n+=t),(e=Dc(e/2))&&(t+=t)}while(e);return n}function tr(t,e){return kh(Wa(t,e,ku),t+\"\")}function er(t){return Rn(Zl(t))}function nr(t,e){var n=Zl(t);return qa(n,ti(e,0,n.length))}function ir(t,e,n,i){if(!tl(t))return t;e=_r(e,t);for(var r=-1,a=e.length,o=a-1,s=t;null!=s&&++rr?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var a=Ju(r);++i>>1,o=t[a];null!==o&&!dl(o)&&(n?o<=e:o=rt){var u=e?null:yh(t);if(u)return X(u);o=!1,r=D,l=new mn}else l=e?[]:s;t:for(;++i=i?t:ar(t,e,n)}function Mr(t,e){if(e)return t.slice();var n=t.length,i=wc?wc(n):new t.constructor(n);return t.copy(i),i}function Sr(t){var e=new t.constructor(t.byteLength);return new _c(e).set(new _c(t)),e}function Er(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function kr(t){var e=new t.constructor(t.source,je.exec(t));return e.lastIndex=t.lastIndex,e}function Tr(t){return sh?ic(sh.call(t)):{}}function Cr(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Pr(t,e){if(t!==e){var n=t!==it,i=null===t,r=t===t,a=dl(t),o=e!==it,s=null===e,l=e===e,u=dl(e);if(!s&&!u&&!a&&t>e||a&&o&&l&&!s&&!u||i&&o&&l||!n&&l||!r)return 1;if(!i&&!a&&!u&&t=s)return l;return l*(\"desc\"==n[i]?-1:1)}}return t.index-e.index}function Ar(t,e,n,i){for(var r=-1,a=t.length,o=n.length,s=-1,l=e.length,u=jc(a-o,0),c=Ju(l+u),h=!i;++s1?n[r-1]:it,o=r>2?n[2]:it;for(a=t.length>3&&\"function\"==typeof a?(r--,a):it,o&&Aa(n[0],n[1],o)&&(a=r<3?it:a,r=1),e=ic(e);++i-1?r[a?e[o]:o]:it}}function qr(t){return da(function(e){var n=e.length,i=n,a=r.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if(\"function\"!=typeof o)throw new oc(ot);if(a&&!s&&\"wrapper\"==ma(o))var s=new r([],!0)}for(i=s?i:n;++i1&&y.reverse(),h&&ls))return!1;var u=a.get(t);if(u&&a.get(e))return u==e;var c=-1,h=!0,d=n&pt?new mn:it;for(a.set(t,e),a.set(e,t);++c1?\"& \":\"\")+e[i],e=e.join(n>2?\", \":\" \"),t.replace(De,\"{\\n/* [wrapped with \"+e+\"] */\\n\")}function Pa(t){return dd(t)||hd(t)||!!(Tc&&t&&t[Tc])}function Oa(t,e){var n=typeof t;return!!(e=null==e?Rt:e)&&(\"number\"==n||\"symbol\"!=n&&Ye.test(t))&&t>-1&&t%1==0&&t0){if(++e>=Tt)return arguments[0]}else e=0;return t.apply(it,arguments)}}function qa(t,e){var n=-1,i=t.length,r=i-1;for(e=e===it?i:e;++n=this.__values__.length;return{done:t,value:t?it:this.__values__[this.__index__++]}}function Jo(){return this}function $o(t){for(var e,n=this;n instanceof i;){var r=Qa(n);r.__index__=0,r.__values__=it,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e}function ts(){var t=this.__wrapped__;if(t instanceof y){var e=t;return this.__actions__.length&&(e=new y(this)),e=e.reverse(),e.__actions__.push({func:Xo,args:[So],thisArg:it}),new r(e,this.__chain__)}return this.thru(So)}function es(){return gr(this.__wrapped__,this.__actions__)}function ns(t,e,n){var i=dd(t)?u:oi;return n&&Aa(t,e,n)&&(e=it),i(t,va(e,3))}function is(t,e){return(dd(t)?c:ui)(t,va(e,3))}function rs(t,e){return ci(cs(t,e),1)}function as(t,e){return ci(cs(t,e),At)}function os(t,e,n){return n=n===it?1:yl(n),ci(cs(t,e),n)}function ss(t,e){return(dd(t)?s:ch)(t,va(e,3))}function ls(t,e){return(dd(t)?l:hh)(t,va(e,3))}function us(t,e,n,i){t=Ws(t)?t:Zl(t),n=n&&!i?yl(n):0;var r=t.length;return n<0&&(n=jc(r+n,0)),hl(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&w(t,e,n)>-1}function cs(t,e){return(dd(t)?f:Fi)(t,va(e,3))}function hs(t,e,n,i){return null==t?[]:(dd(e)||(e=null==e?[]:[e]),n=i?it:n,dd(n)||(n=null==n?[]:[n]),Hi(t,e,n))}function ds(t,e,n){var i=dd(t)?m:C,r=arguments.length<3;return i(t,va(e,4),n,r,ch)}function fs(t,e,n){var i=dd(t)?g:C,r=arguments.length<3;return i(t,va(e,4),n,r,hh)}function ps(t,e){return(dd(t)?c:ui)(t,Cs(va(e,3)))}function ms(t){return(dd(t)?Rn:er)(t)}function gs(t,e,n){return e=(n?Aa(t,e,n):e===it)?1:yl(e),(dd(t)?Ln:nr)(t,e)}function vs(t){return(dd(t)?Dn:rr)(t)}function ys(t){if(null==t)return 0;if(Ws(t))return hl(t)?J(t):t.length;var e=wh(t);return e==Xt||e==te?t.size:Ni(t).length}function bs(t,e,n){var i=dd(t)?v:or;return n&&Aa(t,e,n)&&(e=it),i(t,va(e,3))}function xs(t,e){if(\"function\"!=typeof e)throw new oc(ot);return t=yl(t),function(){if(--t<1)return e.apply(this,arguments)}}function _s(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,aa(t,wt,it,it,it,it,e)}function ws(t,e){var n;if(\"function\"!=typeof e)throw new oc(ot);return t=yl(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Ms(t,e,n){e=n?it:e;var i=aa(t,yt,it,it,it,it,it,e);return i.placeholder=Ms.placeholder,i}function Ss(t,e,n){e=n?it:e;var i=aa(t,bt,it,it,it,it,it,e);return i.placeholder=Ss.placeholder,i}function Es(t,e,n){function i(e){var n=d,i=f;return d=f=it,y=e,m=t.apply(i,n)}function r(t){return y=t,g=Eh(s,e),b?i(t):m}function a(t){var n=t-v,i=t-y,r=e-n;return x?Wc(r,p-i):r}function o(t){var n=t-v,i=t-y;return v===it||n>=e||n<0||x&&i>=p}function s(){var t=td();if(o(t))return l(t);g=Eh(s,a(t))}function l(t){return g=it,_&&d?i(t):(d=f=it,m)}function u(){g!==it&&vh(g),y=0,d=v=f=g=it}function c(){return g===it?m:l(td())}function h(){var t=td(),n=o(t);if(d=arguments,f=this,v=t,n){if(g===it)return r(v);if(x)return g=Eh(s,e),i(v)}return g===it&&(g=Eh(s,e)),m}var d,f,p,m,g,v,y=0,b=!1,x=!1,_=!0;if(\"function\"!=typeof t)throw new oc(ot);return e=xl(e)||0,tl(n)&&(b=!!n.leading,x=\"maxWait\"in n,p=x?jc(xl(n.maxWait)||0,e):p,_=\"trailing\"in n?!!n.trailing:_),h.cancel=u,h.flush=c,h}function ks(t){return aa(t,St)}function Ts(t,e){if(\"function\"!=typeof t||null!=e&&\"function\"!=typeof e)throw new oc(ot);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=t.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(Ts.Cache||sn),n}function Cs(t){if(\"function\"!=typeof t)throw new oc(ot);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ps(t){return ws(2,t)}function Os(t,e){if(\"function\"!=typeof t)throw new oc(ot);return e=e===it?e:yl(e),tr(t,e)}function As(t,e){if(\"function\"!=typeof t)throw new oc(ot);return e=null==e?0:jc(yl(e),0),tr(function(n){var i=n[e],r=wr(n,0,e);return i&&p(r,i),a(t,this,r)})}function Rs(t,e,n){var i=!0,r=!0;if(\"function\"!=typeof t)throw new oc(ot);return tl(n)&&(i=\"leading\"in n?!!n.leading:i,r=\"trailing\"in n?!!n.trailing:r),Es(t,e,{leading:i,maxWait:e,trailing:r})}function Ls(t){return _s(t,1)}function Is(t,e){return od(xr(e),t)}function Ds(){if(!arguments.length)return[];var t=arguments[0];return dd(t)?t:[t]}function Ns(t){return ei(t,dt)}function zs(t,e){return e=\"function\"==typeof e?e:it,ei(t,dt,e)}function Bs(t){return ei(t,ct|dt)}function Fs(t,e){return e=\"function\"==typeof e?e:it,ei(t,ct|dt,e)}function Us(t,e){return null==e||ii(t,e,Nl(e))}function js(t,e){return t===e||t!==t&&e!==e}function Ws(t){return null!=t&&$s(t.length)&&!Qs(t)}function Gs(t){return el(t)&&Ws(t)}function Vs(t){return!0===t||!1===t||el(t)&&gi(t)==Wt}function Hs(t){return el(t)&&1===t.nodeType&&!ul(t)}function Ys(t){if(null==t)return!0;if(Ws(t)&&(dd(t)||\"string\"==typeof t||\"function\"==typeof t.splice||pd(t)||bd(t)||hd(t)))return!t.length;var e=wh(t);if(e==Xt||e==te)return!t.size;if(Na(t))return!Ni(t).length;for(var n in t)if(dc.call(t,n))return!1;return!0}function qs(t,e){return Ti(t,e)}function Xs(t,e,n){n=\"function\"==typeof n?n:it;var i=n?n(t,e):it;return i===it?Ti(t,e,it,n):!!i}function Zs(t){if(!el(t))return!1;var e=gi(t);return e==Ht||e==Vt||\"string\"==typeof t.message&&\"string\"==typeof t.name&&!ul(t)}function Ks(t){return\"number\"==typeof t&&Bc(t)}function Qs(t){if(!tl(t))return!1;var e=gi(t);return e==Yt||e==qt||e==jt||e==Jt}function Js(t){return\"number\"==typeof t&&t==yl(t)}function $s(t){return\"number\"==typeof t&&t>-1&&t%1==0&&t<=Rt}function tl(t){var e=typeof t;return null!=t&&(\"object\"==e||\"function\"==e)}function el(t){return null!=t&&\"object\"==typeof t}function nl(t,e){return t===e||Oi(t,e,ba(e))}function il(t,e,n){return n=\"function\"==typeof n?n:it,Oi(t,e,ba(e),n)}function rl(t){return ll(t)&&t!=+t}function al(t){if(Mh(t))throw new tc(at);return Ai(t)}function ol(t){return null===t}function sl(t){return null==t}function ll(t){return\"number\"==typeof t||el(t)&&gi(t)==Zt}function ul(t){if(!el(t)||gi(t)!=Qt)return!1;var e=Mc(t);if(null===e)return!0;var n=dc.call(e,\"constructor\")&&e.constructor;return\"function\"==typeof n&&n instanceof n&&hc.call(n)==gc}function cl(t){return Js(t)&&t>=-Rt&&t<=Rt}function hl(t){return\"string\"==typeof t||!dd(t)&&el(t)&&gi(t)==ee}function dl(t){return\"symbol\"==typeof t||el(t)&&gi(t)==ne}function fl(t){return t===it}function pl(t){return el(t)&&wh(t)==re}function ml(t){return el(t)&&gi(t)==ae}function gl(t){if(!t)return[];if(Ws(t))return hl(t)?$(t):Lr(t);if(Cc&&t[Cc])return G(t[Cc]());var e=wh(t);return(e==Xt?V:e==te?X:Zl)(t)}function vl(t){if(!t)return 0===t?t:0;if((t=xl(t))===At||t===-At){return(t<0?-1:1)*Lt}return t===t?t:0}function yl(t){var e=vl(t),n=e%1;return e===e?n?e-n:e:0}function bl(t){return t?ti(yl(t),0,Dt):0}function xl(t){if(\"number\"==typeof t)return t;if(dl(t))return It;if(tl(t)){var e=\"function\"==typeof t.valueOf?t.valueOf():t;t=tl(e)?e+\"\":e}if(\"string\"!=typeof t)return 0===t?t:+t;t=t.replace(Re,\"\");var n=Ge.test(t);return n||He.test(t)?Cn(t.slice(2),n?2:8):We.test(t)?It:+t}function _l(t){return Ir(t,zl(t))}function wl(t){return t?ti(yl(t),-Rt,Rt):0===t?t:0}function Ml(t){return null==t?\"\":hr(t)}function Sl(t,e){var n=uh(t);return null==e?n:Kn(n,e)}function El(t,e){return x(t,va(e,3),hi)}function kl(t,e){return x(t,va(e,3),di)}function Tl(t,e){return null==t?t:dh(t,va(e,3),zl)}function Cl(t,e){return null==t?t:fh(t,va(e,3),zl)}function Pl(t,e){return t&&hi(t,va(e,3))}function Ol(t,e){return t&&di(t,va(e,3))}function Al(t){return null==t?[]:fi(t,Nl(t))}function Rl(t){return null==t?[]:fi(t,zl(t))}function Ll(t,e,n){var i=null==t?it:pi(t,e);return i===it?n:i}function Il(t,e){return null!=t&&Sa(t,e,yi)}function Dl(t,e){return null!=t&&Sa(t,e,bi)}function Nl(t){return Ws(t)?On(t):Ni(t)}function zl(t){return Ws(t)?On(t,!0):zi(t)}function Bl(t,e){var n={};return e=va(e,3),hi(t,function(t,i,r){Jn(n,e(t,i,r),t)}),n}function Fl(t,e){var n={};return e=va(e,3),hi(t,function(t,i,r){Jn(n,i,e(t,i,r))}),n}function Ul(t,e){return jl(t,Cs(va(e)))}function jl(t,e){if(null==t)return{};var n=f(pa(t),function(t){return[t]});return e=va(e),qi(t,n,function(t,n){return e(t,n[0])})}function Wl(t,e,n){e=_r(e,t);var i=-1,r=e.length;for(r||(r=1,t=it);++ie){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Hc();return Wc(t+r*(e-t+Tn(\"1e-\"+((r+\"\").length-1))),e)}return Qi(t,e)}function tu(t){return Hd(Ml(t).toLowerCase())}function eu(t){return(t=Ml(t))&&t.replace(qe,Vn).replace(pn,\"\")}function nu(t,e,n){t=Ml(t),e=hr(e);var i=t.length;n=n===it?i:ti(yl(n),0,i);var r=n;return(n-=e.length)>=0&&t.slice(n,r)==e}function iu(t){return t=Ml(t),t&&Me.test(t)?t.replace(_e,Hn):t}function ru(t){return t=Ml(t),t&&Ae.test(t)?t.replace(Oe,\"\\\\$&\"):t}function au(t,e,n){t=Ml(t),e=yl(e);var i=e?J(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Jr(Dc(r),n)+t+Jr(Ic(r),n)}function ou(t,e,n){t=Ml(t),e=yl(e);var i=e?J(t):0;return e&&i>>0)?(t=Ml(t),t&&(\"string\"==typeof e||null!=e&&!vd(e))&&!(e=hr(e))&&j(t)?wr($(t),0,n):t.split(e,n)):[]}function du(t,e,n){return t=Ml(t),n=null==n?0:ti(yl(n),0,t.length),e=hr(e),t.slice(n,n+e.length)==e}function fu(t,e,i){var r=n.templateSettings;i&&Aa(t,e,i)&&(e=it),t=Ml(t),e=Sd({},e,r,oa);var a,o,s=Sd({},e.imports,r.imports,oa),l=Nl(s),u=I(s,l),c=0,h=e.interpolate||Xe,d=\"__p += '\",f=rc((e.escape||Xe).source+\"|\"+h.source+\"|\"+(h===ke?Ue:Xe).source+\"|\"+(e.evaluate||Xe).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(\"sourceURL\"in e?e.sourceURL:\"lodash.templateSources[\"+ ++xn+\"]\")+\"\\n\";t.replace(f,function(e,n,i,r,s,l){return i||(i=r),d+=t.slice(c,l).replace(Ze,F),n&&(a=!0,d+=\"' +\\n__e(\"+n+\") +\\n'\"),s&&(o=!0,d+=\"';\\n\"+s+\";\\n__p += '\"),i&&(d+=\"' +\\n((__t = (\"+i+\")) == null ? '' : __t) +\\n'\"),c=l+e.length,e}),d+=\"';\\n\";var m=e.variable;m||(d=\"with (obj) {\\n\"+d+\"\\n}\\n\"),d=(o?d.replace(ve,\"\"):d).replace(ye,\"$1\").replace(be,\"$1;\"),d=\"function(\"+(m||\"obj\")+\") {\\n\"+(m?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(a?\", __e = _.escape\":\"\")+(o?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+d+\"return __p\\n}\";var g=Yd(function(){return ec(l,p+\"return \"+d).apply(it,u)});if(g.source=d,Zs(g))throw g;return g}function pu(t){return Ml(t).toLowerCase()}function mu(t){return Ml(t).toUpperCase()}function gu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Re,\"\");if(!t||!(e=hr(e)))return t;var i=$(t),r=$(e);return wr(i,N(i,r),z(i,r)+1).join(\"\")}function vu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Ie,\"\");if(!t||!(e=hr(e)))return t;var i=$(t);return wr(i,0,z(i,$(e))+1).join(\"\")}function yu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Le,\"\");if(!t||!(e=hr(e)))return t;var i=$(t);return wr(i,N(i,$(e))).join(\"\")}function bu(t,e){var n=Et,i=kt;if(tl(e)){var r=\"separator\"in e?e.separator:r;n=\"length\"in e?yl(e.length):n,i=\"omission\"in e?hr(e.omission):i}t=Ml(t);var a=t.length;if(j(t)){var o=$(t);a=o.length}if(n>=a)return t;var s=n-J(i);if(s<1)return i;var l=o?wr(o,0,s).join(\"\"):t.slice(0,s);if(r===it)return l+i;if(o&&(s+=l.length-s),vd(r)){if(t.slice(s).search(r)){var u,c=l;for(r.global||(r=rc(r.source,Ml(je.exec(r))+\"g\")),r.lastIndex=0;u=r.exec(c);)var h=u.index;l=l.slice(0,h===it?s:h)}}else if(t.indexOf(hr(r),s)!=s){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+i}function xu(t){return t=Ml(t),t&&we.test(t)?t.replace(xe,Yn):t}function _u(t,e,n){return t=Ml(t),e=n?it:e,e===it?W(t)?nt(t):b(t):t.match(e)||[]}function wu(t){var e=null==t?0:t.length,n=va();return t=e?f(t,function(t){if(\"function\"!=typeof t[1])throw new oc(ot);return[n(t[0]),t[1]]}):[],tr(function(n){for(var i=-1;++iRt)return[];var n=Dt,i=Wc(t,Dt);e=va(e),t-=Dt;for(var r=A(i,e);++n1?t[e-1]:it;return n=\"function\"==typeof n?(t.pop(),n):it,Go(t,n)}),Hh=da(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,a=function(e){return $n(e,t)};return!(e>1||this.__actions__.length)&&i instanceof y&&Oa(n)?(i=i.slice(n,+n+(e?1:0)),i.__actions__.push({func:Xo,args:[a],thisArg:it}),new r(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(a)}),Yh=zr(function(t,e,n){dc.call(t,n)?++t[n]:Jn(t,n,1)}),qh=Yr(oo),Xh=Yr(so),Zh=zr(function(t,e,n){dc.call(t,n)?t[n].push(e):Jn(t,n,[e])}),Kh=tr(function(t,e,n){var i=-1,r=\"function\"==typeof e,o=Ws(t)?Ju(t.length):[];return ch(t,function(t){o[++i]=r?a(e,t,n):Mi(t,e,n)}),o}),Qh=zr(function(t,e,n){Jn(t,n,e)}),Jh=zr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),$h=tr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Aa(t,e[0],e[1])?e=[]:n>2&&Aa(e[0],e[1],e[2])&&(e=[e[0]]),Hi(t,ci(e,1),[])}),td=Rc||function(){return An.Date.now()},ed=tr(function(t,e,n){var i=mt;if(n.length){var r=Y(n,ga(ed));i|=xt}return aa(t,i,e,n,r)}),nd=tr(function(t,e,n){var i=mt|gt;if(n.length){var r=Y(n,ga(nd));i|=xt}return aa(e,i,t,n,r)}),id=tr(function(t,e){return ri(t,1,e)}),rd=tr(function(t,e,n){return ri(t,xl(e)||0,n)});Ts.Cache=sn;var ad=gh(function(t,e){e=1==e.length&&dd(e[0])?f(e[0],L(va())):f(ci(e,1),L(va()));var n=e.length;return tr(function(i){for(var r=-1,o=Wc(i.length,n);++r=e}),hd=Si(function(){return arguments}())?Si:function(t){return el(t)&&dc.call(t,\"callee\")&&!Ec.call(t,\"callee\")},dd=Ju.isArray,fd=zn?L(zn):Ei,pd=zc||zu,md=Bn?L(Bn):ki,gd=Fn?L(Fn):Pi,vd=Un?L(Un):Ri,yd=jn?L(jn):Li,bd=Wn?L(Wn):Ii,xd=ea(Bi),_d=ea(function(t,e){return t<=e}),wd=Br(function(t,e){if(Na(e)||Ws(e))return void Ir(e,Nl(e),t);for(var n in e)dc.call(e,n)&&Gn(t,n,e[n])}),Md=Br(function(t,e){Ir(e,zl(e),t)}),Sd=Br(function(t,e,n,i){Ir(e,zl(e),t,i)}),Ed=Br(function(t,e,n,i){Ir(e,Nl(e),t,i)}),kd=da($n),Td=tr(function(t,e){t=ic(t);var n=-1,i=e.length,r=i>2?e[2]:it;for(r&&Aa(e[0],e[1],r)&&(i=1);++n1),e}),Ir(t,pa(t),n),i&&(n=ei(n,ct|ht|dt,la));for(var r=e.length;r--;)fr(n,e[r]);return n}),Dd=da(function(t,e){return null==t?{}:Yi(t,e)}),Nd=ra(Nl),zd=ra(zl),Bd=Gr(function(t,e,n){return e=e.toLowerCase(),t+(n?tu(e):e)}),Fd=Gr(function(t,e,n){return t+(n?\"-\":\"\")+e.toLowerCase()}),Ud=Gr(function(t,e,n){return t+(n?\" \":\"\")+e.toLowerCase()}),jd=Wr(\"toLowerCase\"),Wd=Gr(function(t,e,n){return t+(n?\"_\":\"\")+e.toLowerCase()}),Gd=Gr(function(t,e,n){return t+(n?\" \":\"\")+Hd(e)}),Vd=Gr(function(t,e,n){return t+(n?\" \":\"\")+e.toUpperCase()}),Hd=Wr(\"toUpperCase\"),Yd=tr(function(t,e){try{return a(t,it,e)}catch(t){return Zs(t)?t:new tc(t)}}),qd=da(function(t,e){return s(e,function(e){e=Xa(e),Jn(t,e,ed(t[e],t))}),t}),Xd=qr(),Zd=qr(!0),Kd=tr(function(t,e){return function(n){return Mi(n,t,e)}}),Qd=tr(function(t,e){return function(n){return Mi(t,n,e)}}),Jd=Qr(f),$d=Qr(u),tf=Qr(v),ef=ta(),nf=ta(!0),rf=Kr(function(t,e){return t+e},0),af=ia(\"ceil\"),of=Kr(function(t,e){return t/e},1),sf=ia(\"floor\"),lf=Kr(function(t,e){return t*e},1),uf=ia(\"round\"),cf=Kr(function(t,e){return t-e},0);return n.after=xs,n.ary=_s,n.assign=wd,n.assignIn=Md,n.assignInWith=Sd,n.assignWith=Ed,n.at=kd,n.before=ws,n.bind=ed,n.bindAll=qd,n.bindKey=nd,n.castArray=Ds,n.chain=Yo,n.chunk=Ja,n.compact=$a,n.concat=to,n.cond=wu,n.conforms=Mu,n.constant=Su,n.countBy=Yh,n.create=Sl,n.curry=Ms,n.curryRight=Ss,n.debounce=Es,n.defaults=Td,n.defaultsDeep=Cd,n.defer=id,n.delay=rd,n.difference=Ch,n.differenceBy=Ph,n.differenceWith=Oh,n.drop=eo,n.dropRight=no,n.dropRightWhile=io,n.dropWhile=ro,n.fill=ao,n.filter=is,n.flatMap=rs,n.flatMapDeep=as,n.flatMapDepth=os,n.flatten=lo,n.flattenDeep=uo,n.flattenDepth=co,n.flip=ks,n.flow=Xd,n.flowRight=Zd,n.fromPairs=ho,n.functions=Al,n.functionsIn=Rl,n.groupBy=Zh,n.initial=mo,n.intersection=Ah,n.intersectionBy=Rh,n.intersectionWith=Lh,n.invert=Pd,n.invertBy=Od,n.invokeMap=Kh,n.iteratee=Tu,n.keyBy=Qh,n.keys=Nl,n.keysIn=zl,n.map=cs,n.mapKeys=Bl,n.mapValues=Fl,n.matches=Cu,n.matchesProperty=Pu,n.memoize=Ts,n.merge=Rd,n.mergeWith=Ld,n.method=Kd,n.methodOf=Qd,n.mixin=Ou,n.negate=Cs,n.nthArg=Lu,n.omit=Id,n.omitBy=Ul,n.once=Ps,n.orderBy=hs,n.over=Jd,n.overArgs=ad,n.overEvery=$d,n.overSome=tf,n.partial=od,n.partialRight=sd,n.partition=Jh,n.pick=Dd,n.pickBy=jl,n.property=Iu,n.propertyOf=Du,n.pull=Ih,n.pullAll=xo,n.pullAllBy=_o,n.pullAllWith=wo,n.pullAt=Dh,n.range=ef,n.rangeRight=nf,n.rearg=ld,n.reject=ps,n.remove=Mo,n.rest=Os,n.reverse=So,n.sampleSize=gs,n.set=Gl,n.setWith=Vl,n.shuffle=vs,n.slice=Eo,n.sortBy=$h,n.sortedUniq=Ro,n.sortedUniqBy=Lo,n.split=hu,n.spread=As,n.tail=Io,n.take=Do,n.takeRight=No,n.takeRightWhile=zo,n.takeWhile=Bo,n.tap=qo,n.throttle=Rs,n.thru=Xo,n.toArray=gl,n.toPairs=Nd,n.toPairsIn=zd,n.toPath=Wu,n.toPlainObject=_l,n.transform=Hl,n.unary=Ls,n.union=Nh,n.unionBy=zh,n.unionWith=Bh,n.uniq=Fo,n.uniqBy=Uo,n.uniqWith=jo,n.unset=Yl,n.unzip=Wo,n.unzipWith=Go,n.update=ql,n.updateWith=Xl,n.values=Zl,n.valuesIn=Kl,n.without=Fh,n.words=_u,n.wrap=Is,n.xor=Uh,n.xorBy=jh,n.xorWith=Wh,n.zip=Gh,n.zipObject=Vo,n.zipObjectDeep=Ho,n.zipWith=Vh,n.entries=Nd,n.entriesIn=zd,n.extend=Md,n.extendWith=Sd,Ou(n,n),n.add=rf,n.attempt=Yd,n.camelCase=Bd,n.capitalize=tu,n.ceil=af,n.clamp=Ql,n.clone=Ns,n.cloneDeep=Bs,n.cloneDeepWith=Fs,n.cloneWith=zs,n.conformsTo=Us,n.deburr=eu,n.defaultTo=Eu,n.divide=of,n.endsWith=nu,n.eq=js,n.escape=iu,n.escapeRegExp=ru,n.every=ns,n.find=qh,n.findIndex=oo,n.findKey=El,n.findLast=Xh,n.findLastIndex=so,n.findLastKey=kl,n.floor=sf,n.forEach=ss,n.forEachRight=ls,n.forIn=Tl,n.forInRight=Cl,n.forOwn=Pl,n.forOwnRight=Ol,n.get=Ll,n.gt=ud,n.gte=cd,n.has=Il,n.hasIn=Dl,n.head=fo,n.identity=ku,n.includes=us,n.indexOf=po,n.inRange=Jl,n.invoke=Ad,n.isArguments=hd,n.isArray=dd,n.isArrayBuffer=fd,n.isArrayLike=Ws,n.isArrayLikeObject=Gs,n.isBoolean=Vs,n.isBuffer=pd,n.isDate=md,n.isElement=Hs,n.isEmpty=Ys,n.isEqual=qs,n.isEqualWith=Xs,n.isError=Zs,n.isFinite=Ks,n.isFunction=Qs,n.isInteger=Js,n.isLength=$s,n.isMap=gd,n.isMatch=nl,n.isMatchWith=il,n.isNaN=rl,n.isNative=al,n.isNil=sl,n.isNull=ol,n.isNumber=ll,n.isObject=tl,n.isObjectLike=el,n.isPlainObject=ul,n.isRegExp=vd,n.isSafeInteger=cl,n.isSet=yd,n.isString=hl,n.isSymbol=dl,n.isTypedArray=bd,n.isUndefined=fl,n.isWeakMap=pl,n.isWeakSet=ml,n.join=go,n.kebabCase=Fd,n.last=vo,n.lastIndexOf=yo,n.lowerCase=Ud,n.lowerFirst=jd,n.lt=xd,n.lte=_d,n.max=Vu,n.maxBy=Hu,n.mean=Yu,n.meanBy=qu,n.min=Xu,n.minBy=Zu,n.stubArray=Nu,n.stubFalse=zu,n.stubObject=Bu,n.stubString=Fu,n.stubTrue=Uu,n.multiply=lf,n.nth=bo,n.noConflict=Au,n.noop=Ru,n.now=td,n.pad=au,n.padEnd=ou,n.padStart=su,n.parseInt=lu,n.random=$l,n.reduce=ds,n.reduceRight=fs,n.repeat=uu,n.replace=cu,n.result=Wl,n.round=uf,n.runInContext=t,n.sample=ms,n.size=ys,n.snakeCase=Wd,n.some=bs,n.sortedIndex=ko,n.sortedIndexBy=To,n.sortedIndexOf=Co,n.sortedLastIndex=Po,n.sortedLastIndexBy=Oo,n.sortedLastIndexOf=Ao,n.startCase=Gd,n.startsWith=du,n.subtract=cf,n.sum=Ku,n.sumBy=Qu,n.template=fu,n.times=ju,n.toFinite=vl,n.toInteger=yl,n.toLength=bl,n.toLower=pu,n.toNumber=xl,n.toSafeInteger=wl,n.toString=Ml,n.toUpper=mu,n.trim=gu,n.trimEnd=vu,n.trimStart=yu,n.truncate=bu,n.unescape=xu,n.uniqueId=Gu,n.upperCase=Vd,n.upperFirst=Hd,n.each=ss,n.eachRight=ls,n.first=fo,Ou(n,function(){var t={};return hi(n,function(e,i){dc.call(n.prototype,i)||(t[i]=e)}),t}(),{chain:!1}),n.VERSION=\"4.17.5\",s([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(t){n[t].placeholder=n}),s([\"drop\",\"take\"],function(t,e){y.prototype[t]=function(n){n=n===it?1:jc(yl(n),0);var i=this.__filtered__&&!e?new y(this):this.clone();return i.__filtered__?i.__takeCount__=Wc(n,i.__takeCount__):i.__views__.push({size:Wc(n,Dt),type:t+(i.__dir__<0?\"Right\":\"\")}),i},y.prototype[t+\"Right\"]=function(e){return this.reverse()[t](e).reverse()}}),s([\"filter\",\"map\",\"takeWhile\"],function(t,e){var n=e+1,i=n==Pt||3==n;y.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:va(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),s([\"head\",\"last\"],function(t,e){var n=\"take\"+(e?\"Right\":\"\");y.prototype[t]=function(){return this[n](1).value()[0]}}),s([\"initial\",\"tail\"],function(t,e){var n=\"drop\"+(e?\"\":\"Right\");y.prototype[t]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(ku)},y.prototype.find=function(t){return this.filter(t).head()},y.prototype.findLast=function(t){return this.reverse().find(t)},y.prototype.invokeMap=tr(function(t,e){return\"function\"==typeof t?new y(this):this.map(function(n){return Mi(n,t,e)})}),y.prototype.reject=function(t){return this.filter(Cs(va(t)))},y.prototype.slice=function(t,e){t=yl(t);var n=this;return n.__filtered__&&(t>0||e<0)?new y(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=yl(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},y.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},y.prototype.toArray=function(){return this.take(Dt)},hi(y.prototype,function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),a=/^(?:head|last)$/.test(e),o=n[a?\"take\"+(\"last\"==e?\"Right\":\"\"):e],s=a||/^find/.test(e);o&&(n.prototype[e]=function(){var e=this.__wrapped__,l=a?[1]:arguments,u=e instanceof y,c=l[0],h=u||dd(e),d=function(t){var e=o.apply(n,p([t],l));return a&&f?e[0]:e};h&&i&&\"function\"==typeof c&&1!=c.length&&(u=h=!1);var f=this.__chain__,m=!!this.__actions__.length,g=s&&!f,v=u&&!m;if(!s&&h){e=v?e:new y(this);var b=t.apply(e,l);return b.__actions__.push({func:Xo,args:[d],thisArg:it}),new r(b,f)}return g&&v?t.apply(this,l):(b=this.thru(d),g?a?b.value()[0]:b.value():b)})}),s([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=sc[t],i=/^(?:push|sort|unshift)$/.test(t)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var n=this.value();return e.apply(dd(n)?n:[],t)}return this[i](function(n){return e.apply(dd(n)?n:[],t)})}}),hi(y.prototype,function(t,e){var i=n[e];if(i){var r=i.name+\"\";(th[r]||(th[r]=[])).push({name:e,func:i})}}),th[Xr(it,gt).name]=[{name:\"wrapper\",func:it}],y.prototype.clone=T,y.prototype.reverse=K,y.prototype.value=tt,n.prototype.at=Hh,n.prototype.chain=Zo,n.prototype.commit=Ko,n.prototype.next=Qo,n.prototype.plant=$o,n.prototype.reverse=ts,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=es,n.prototype.first=n.prototype.head,Cc&&(n.prototype[Cc]=Jo),n}();An._=qn,(r=function(){return qn}.call(e,n,e,i))!==it&&(i.exports=r)}).call(this)}).call(e,n(111),n(112)(t))},function(t,e,n){t.exports={default:n(298),__esModule:!0}},function(t,e){t.exports={}},function(t,e,n){var i=n(80);t.exports=function(t){return Object(i(t))}},function(t,e,n){\"use strict\";var i=n(333)(!0);n(84)(String,\"String\",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){\"use strict\";e.a=function(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}},function(t,e,n){\"use strict\";e.a=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}},function(t,e,n){\"use strict\";function i(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(t){console.error(t)}}i(),t.exports=n(461)},function(t,e,n){\"use strict\";var i=n(6);t.exports={generators:{linear:function(t,e){var n,r=[];if(t.stepSize&&t.stepSize>0)n=t.stepSize;else{var a=i.niceNum(e.max-e.min,!1);n=i.niceNum(a/(t.maxTicks-1),!0)}var o=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(o=t.min,s=t.max);var l=(s-o)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),r.push(void 0!==t.min?t.min:o);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var a=i.log10(Math.abs(r)),o=\"\";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o=\"0\";return o},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?\"0\":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():\"\"}}}},function(t,e){t.exports=function(t){if(\"function\"!=typeof t)throw TypeError(t+\" is not a function!\");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(29),r=n(126),a=n(124),o=n(26),s=n(66),l=n(97),u={},c={},e=t.exports=function(t,e,n,h,d){var f,p,m,g,v=d?function(){return t}:l(t),y=i(n,h,e?2:1),b=0;if(\"function\"!=typeof v)throw TypeError(t+\" is not iterable!\");if(a(v)){for(f=s(t.length);f>b;b++)if((g=e?y(o(p=t[b])[0],p[1]):y(t[b]))===u||g===c)return g}else for(m=v.call(t);!(p=m.next()).done;)if((g=r(m,y,p.value,e))===u||g===c)return g};e.BREAK=u,e.RETURN=c},function(t,e,n){var i=n(131),r=n(82);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(22).f,r=n(37),a=n(17)(\"toStringTag\");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){n(338);for(var i=n(18),r=n(34),a=n(41),o=n(17)(\"toStringTag\"),s=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),l=0;ln.length)for(;this.routingPaths.length>n.length;)this.mapAdapter.removePolyline(this.routingPaths[this.routingPaths.length-1]),this.routingPaths.pop();this.routingPaths.forEach(function(t,i){e.mapAdapter.updatePolyline(t,n[i])})}}},{key:\"requestRoute\",value:function(t,e,n,i){var r=this;if(t&&e&&n&&i){var a=\"http://navi-env.axty8vi3ic.us-west-2.elasticbeanstalk.com/dreamview/navigation?origin=\"+t+\",\"+e+\"&destination=\"+n+\",\"+i+\"&heading=0\";fetch(encodeURI(a),{method:\"GET\",mode:\"cors\"}).then(function(t){return t.arrayBuffer()}).then(function(t){if(!t.byteLength)return void alert(\"No navigation info received.\");r.WS.publishNavigationInfo(t)}).catch(function(t){console.error(\"Failed to retrieve navigation data:\",t)})}}},{key:\"sendRoutingRequest\",value:function(){if(this.routingRequestPoints){var t=this.routingRequestPoints.length>1?this.routingRequestPoints[0]:this.mapAdapter.getMarkerPosition(this.vehicleMarker),e=this.routingRequestPoints[this.routingRequestPoints.length-1];return this.routingRequestPoints=[],this.requestRoute(t.lat,t.lng,e.lat,e.lng),!0}return alert(\"Please select a route\"),!1}},{key:\"addDefaultEndPoint\",value:function(t){var e=this;t.forEach(function(t){var n=(0,d.UTMToWGS84)(t.x,t.y),i=(0,a.default)(n,2),r=i[0],o=i[1];e.routingRequestPoints.push({lat:o,lng:r})})}}]),t}(),p=new f;e.default=p},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){function r(t){if(i){var e=t.clone();i(e)}}p[e]?r(p[e]):new s.default(function(e,n){t?d.load(t,function(t){t.preload(),e(t)}):e(null)}).then(function(t){var i=new u.OBJLoader;t&&i.setMaterials(t),i.load(e,function(t){t.name=e,t.scale.set(n.x,n.y,n.z),p[e]=t,r(t)})}).catch(function(){console.error(\"Failed to load object.\")})}function a(t,e,n){f.load(t,e,void 0,n)}Object.defineProperty(e,\"__esModule\",{value:!0});var o=n(242),s=i(o);e.loadObject=r,e.loadTexture=a;var l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(537),h=(i(c),n(536)),d=(i(h),new u.MTLLoader),f=new u.TextureLoader;u.TextureLoader.prototype.crossOrigin=\"\";var p={}},function(t,e,n){t.exports={default:n(300),__esModule:!0}},function(t,e,n){\"use strict\";var i={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||void 0===t},isArray:Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&\"[object Object]\"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return i.valueOrDefault(i.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&\"function\"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,r){var a,o,s;if(i.isArray(t))if(o=t.length,r)for(a=o-1;a>=0;a--)e.call(n,t[a],a);else for(a=0;adocument.F=Object<\\/script>\"),t.close(),l=t.F;i--;)delete l.prototype[a[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[o]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(93),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+i).toString(36))}},function(t,e,n){\"use strict\";function i(t){return function(){return t}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){\"use strict\";e.a=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))}},function(t,e,n){\"use strict\";e.a=function(t){return.375*t*(1+.25*t*(1+.46875*t))}},function(t,e,n){\"use strict\";e.a=function(t){return.05859375*t*t*(1+.75*t)}},function(t,e,n){\"use strict\";e.a=function(t){return t*t*t*(35/3072)}},function(t,e,n){\"use strict\";e.a=function(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}},function(t,e,n){\"use strict\";var i=n(7);e.a=function(t,e){for(var n,r,a=.5*t,o=i.a-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),r=i.a-2*Math.atan(e*Math.pow((1-n)/(1+n),a))-o,o+=r,Math.abs(r)<=1e-10)return o;return-9999}},function(t,e,n){\"use strict\";var i=n(7);e.a=function(t,e,n){var r=t*n,a=.5*t;return r=Math.pow((1-r)/(1+r),a),Math.tan(.5*(i.a-e))/r}},function(t,e,n){\"use strict\";function i(t){return t.type&&\"Tab\"===t.type.tabsRole}function r(t){return t.type&&\"TabPanel\"===t.type.tabsRole}function a(t){return t.type&&\"TabList\"===t.type.tabsRole}e.b=i,e.c=r,e.a=a},function(t,e,n){\"use strict\";function i(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t.constructor===Array&&t.length>0)for(;e0?i:n)(t)}},function(t,e,n){var i=n(21);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&\"function\"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if(\"function\"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&\"function\"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError(\"Can't convert object to primitive value\")}},function(t,e,n){var i=n(18),r=n(11),a=n(63),o=n(96),s=n(22).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},function(t,e,n){e.f=n(17)},function(t,e,n){var i=n(62),r=n(17)(\"iterator\"),a=n(41);t.exports=n(11).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t[\"@@iterator\"]||a[i(t)]}},function(t,e){},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(373),a=i(r),o=n(376),s=i(o),l=n(375),u=i(l),c=n(377),h=i(c),d=n(378),f=i(d),p=n(379),m=i(p),g=n(380),v=i(g),y=n(381),b=i(y),x=n(382),_=i(x),w=n(383),M=i(w),S=n(384),E=i(S),k=n(386),T=i(k),C=n(374),P=i(C),O=[u.default,s.default,h.default,m.default,v.default,b.default,_.default,M.default,E.default,f.default],A=(0,a.default)({prefixMap:P.default.prefixMap,plugins:O},T.default);e.default=A,t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){\"use strict\";function i(t){if(null===t||void 0===t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\nvar r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var i={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){i[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},i)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=i(t),u=1;u1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e}},function(t,e,n){\"use strict\";function i(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),a=e.toLowerCase().replace(r,\"\"),o=-1;++o0?1:-1,d=Math.tan(s)*h,f=h*c.x,p=d*c.y,m=Math.atan2(p,f),g=o.data[0],v=g.tooltipPosition();t.ctx.font=x.default.helpers.fontString(20,\"normal\",\"Helvetica Neue\"),t.ctx.translate(v.x,v.y),t.ctx.rotate(-m),t.ctx.fillText(\"►\",0,0),t.ctx.restore()}})}}),x.default.defaults.global.defaultFontColor=\"#FFFFFF\";var _=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"initializeCanvas\",value:function(t,e){this.name2idx={};var n={title:{display:t&&t.length>0,text:t},legend:{display:e.legend.display},tooltips:{enable:!0,mode:\"nearest\",intersect:!1}};if(e.axes){n.scales||(n.scales={});for(var i in e.axes){var r=i+\"Axes\",a=e.axes[i],o={id:i+\"-axis-0\",scaleLabel:{display:!0,labelString:a.labelString},ticks:{min:a.min,max:a.max},gridLines:{color:\"rgba(153, 153, 153, 0.5)\",zeroLineColor:\"rgba(153, 153, 153, 0.7)\"}};n.scales[r]||(n.scales[r]=[]),n.scales[r].push(o)}}var s=this.canvasElement.getContext(\"2d\");this.chart=new x.default(s,{type:\"scatter\",options:n})}},{key:\"updateData\",value:function(t,e,n,i){var r=e.substring(0,5);if(void 0===this.chart.data.datasets[t]){var a={label:r,showText:n.showLabel,text:e,backgroundColor:n.color,borderColor:n.color,data:i};for(var o in n)a[o]=n[o];this.chart.data.datasets.push(a)}else this.chart.data.datasets[t].text=e,this.chart.data.datasets[t].data=i}},{key:\"updateChart\",value:function(t){for(var e in t.properties.lines){void 0===this.name2idx[e]&&(this.name2idx[e]=this.chart.data.datasets.length);var n=this.name2idx[e],i=t.properties.lines[e],r=t.data?t.data[e]:[];this.updateData(n,e,i,r)}var o=(0,a.default)(this.name2idx).length;if(t.boxes)for(var s in t.boxes){var l=t.boxes[s];this.updateData(o,s,t.properties.box,l),o++}this.chart.data.datasets.splice(o,this.chart.data.datasets.length-o),this.chart.update(0)}},{key:\"componentDidMount\",value:function(){var t=this.props,e=t.title,n=t.options;this.initializeCanvas(e,n),this.updateChart(this.props)}},{key:\"componentWillUnmount\",value:function(){this.chart.destroy()}},{key:\"componentWillReceiveProps\",value:function(t){this.updateChart(t)}},{key:\"render\",value:function(){var t=this,e=this.props;e.data,e.properties,e.options,e.boxes;return v.default.createElement(\"div\",{className:\"scatter-graph\"},v.default.createElement(\"canvas\",{ref:function(e){t.canvasElement=e}}))}}]),e}(v.default.Component);e.default=_},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.id,n=t.title,i=t.isChecked,r=t.onClick,a=t.disabled,o=t.extraClasses;return m.default.createElement(\"ul\",{className:(0,v.default)({disabled:a},o)},m.default.createElement(\"li\",{id:e,onClick:function(){a||r()}},m.default.createElement(\"div\",{className:\"switch\"},m.default.createElement(\"input\",{type:\"checkbox\",className:\"toggle-switch\",name:e,checked:i,disabled:a,readOnly:!0}),m.default.createElement(\"label\",{className:\"toggle-switch-label\",htmlFor:e})),m.default.createElement(\"span\",null,n)))}}]),e}(m.default.Component);e.default=y},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.id,n=t.title,i=(t.options,t.onClick),r=t.checked,a=t.extraClasses;return m.default.createElement(\"ul\",{className:a},m.default.createElement(\"li\",{onClick:i},m.default.createElement(\"input\",{type:\"radio\",name:e,checked:r,readOnly:!0}),m.default.createElement(\"label\",{className:\"radio-selector-label\",htmlFor:n}),m.default.createElement(\"span\",null,n)))}}]),e}(m.default.Component);e.default=g},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.ObstacleColorMapping=e.DEFAULT_COLOR=void 0;var r=n(239),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(12),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c),d=n(15),f=i(d),p=n(217),m=i(p),g=n(77),v=n(31),y=n(39),b=e.DEFAULT_COLOR=16711932,x=e.ObstacleColorMapping={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608},_=function(){function t(){(0,s.default)(this,t),this.textRender=new m.default,this.arrows=[],this.ids=[],this.solidCubes=[],this.dashedCubes=[],this.extrusionSolidFaces=[],this.extrusionDashedFaces=[]}return(0,u.default)(t,[{key:\"update\",value:function(t,e,n){y.isEmpty(this.ids)||(this.ids.forEach(function(t){t.children.forEach(function(t){return t.visible=!1}),n.remove(t)}),this.ids=[]),this.textRender.reset();var i=t.object;if(y.isEmpty(i))return(0,g.hideArrayObjects)(this.arrows),(0,g.hideArrayObjects)(this.solidCubes),(0,g.hideArrayObjects)(this.dashedCubes),(0,g.hideArrayObjects)(this.extrusionSolidFaces),void(0,g.hideArrayObjects)(this.extrusionDashedFaces);for(var r=e.applyOffset({x:t.autoDrivingCar.positionX,y:t.autoDrivingCar.positionY}),o=0,s=0,l=0,u=0;u.5){var m=this.updateArrow(d,c.speedHeading,p,o++,n),v=1+(0,a.default)(c.speed);m.scale.set(v,v,v),m.visible=!0}if(f.default.options.showObstaclesHeading){var _=this.updateArrow(d,c.heading,16777215,o++,n);_.scale.set(1,1,1),_.visible=!0}f.default.options.showObstaclesId&&this.updateIdAndDistance(c.id,new h.Vector3(d.x,d.y,c.height),r.distanceTo(d).toFixed(1),n);var w=c.confidence;w=Math.max(0,w),w=Math.min(1,w);var M=c.polygonPoint;void 0!==M&&M.length>0?(this.updatePolygon(M,c.height,p,e,w,l,n),l+=M.length):c.length&&c.width&&c.height&&this.updateCube(c.length,c.width,c.height,d,c.heading,p,w,s++,n)}}(0,g.hideArrayObjects)(this.arrows,o),(0,g.hideArrayObjects)(this.solidCubes,s),(0,g.hideArrayObjects)(this.dashedCubes,s),(0,g.hideArrayObjects)(this.extrusionSolidFaces,l),(0,g.hideArrayObjects)(this.extrusionDashedFaces,l)}},{key:\"updateArrow\",value:function(t,e,n,i,r){var a=this.getArrow(i,r);return(0,g.copyProperty)(a.position,t),a.material.color.setHex(n),a.rotation.set(0,0,-(Math.PI/2-e)),a}},{key:\"updateIdAndDistance\",value:function(t,e,n,i){var r=this.textRender.composeText(t+\" D:\"+n);if(null!==r){r.position.set(e.x,e.y+.5,e.z||3);var a=i.getObjectByName(\"camera\");void 0!==a&&r.quaternion.copy(a.quaternion),r.children.forEach(function(t){return t.visible=!0}),r.visible=!0,r.name=\"id_\"+t,this.ids.push(r),i.add(r)}}},{key:\"updatePolygon\",value:function(t,e,n,i,r,a,o){for(var s=0;s0){var u=this.getCube(s,l,!0);u.position.set(i.x,i.y,i.z+n*(o-1)/2),u.scale.set(t,e,n*o),u.material.color.setHex(a),u.rotation.set(0,0,r),u.visible=!0}if(o<1){var c=this.getCube(s,l,!1);c.position.set(i.x,i.y,i.z+n*o/2),c.scale.set(t,e,n*(1-o)),c.material.color.setHex(a),c.rotation.set(0,0,r),c.visible=!0}}},{key:\"getArrow\",value:function(t,e){if(t2&&void 0!==arguments[2])||arguments[2],i=n?this.extrusionSolidFaces:this.extrusionDashedFaces;if(t2&&void 0!==arguments[2])||arguments[2],i=n?this.solidCubes:this.dashedCubes;if(t0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},\"x-axis\":function(t,e){return l(t,e,{intersect:!1})},point:function(t,e){return a(t,i(e,t))},nearest:function(t,e,n){var r=i(e,t);n.axis=n.axis||\"xy\";var a=s(n.axis),l=o(t,r,n.intersect,a);return l.length>1&&l.sort(function(t,e){var n=t.getArea(),i=e.getArea(),r=n-i;return 0===r&&(r=t._datasetIndex-e._datasetIndex),r}),l.slice(0,1)},x:function(t,e,n){var a=i(e,t),o=[],s=!1;return r(t,function(t){t.inXRange(a.x)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o},y:function(t,e,n){var a=i(e,t),o=[],s=!1;return r(t,function(t){t.inYRange(a.y)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o}}}},function(t,e,n){\"use strict\";var i=n(6),r=n(281),a=n(282),o=a._enabled?a:r;t.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},o)},function(t,e,n){var i=n(294),r=n(292),a=function(t){if(t instanceof a)return t;if(!(this instanceof a))return new a(t);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;\"string\"==typeof t?(e=r.getRgba(t),e?this.setValues(\"rgb\",e):(e=r.getHsla(t))?this.setValues(\"hsl\",e):(e=r.getHwb(t))&&this.setValues(\"hwb\",e)):\"object\"==typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues(\"rgb\",e):void 0!==e.l||void 0!==e.lightness?this.setValues(\"hsl\",e):void 0!==e.v||void 0!==e.value?this.setValues(\"hsv\",e):void 0!==e.w||void 0!==e.whiteness?this.setValues(\"hwb\",e):void 0===e.c&&void 0===e.cyan||this.setValues(\"cmyk\",e))};a.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace(\"rgb\",arguments)},hsl:function(){return this.setSpace(\"hsl\",arguments)},hsv:function(){return this.setSpace(\"hsv\",arguments)},hwb:function(){return this.setSpace(\"hwb\",arguments)},cmyk:function(){return this.setSpace(\"cmyk\",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues(\"alpha\",t),this)},red:function(t){return this.setChannel(\"rgb\",0,t)},green:function(t){return this.setChannel(\"rgb\",1,t)},blue:function(t){return this.setChannel(\"rgb\",2,t)},hue:function(t){return t&&(t%=360,t=t<0?360+t:t),this.setChannel(\"hsl\",0,t)},saturation:function(t){return this.setChannel(\"hsl\",1,t)},lightness:function(t){return this.setChannel(\"hsl\",2,t)},saturationv:function(t){return this.setChannel(\"hsv\",1,t)},whiteness:function(t){return this.setChannel(\"hwb\",1,t)},blackness:function(t){return this.setChannel(\"hwb\",2,t)},value:function(t){return this.setChannel(\"hsv\",2,t)},cyan:function(t){return this.setChannel(\"cmyk\",0,t)},magenta:function(t){return this.setChannel(\"cmyk\",1,t)},yellow:function(t){return this.setChannel(\"cmyk\",2,t)},black:function(t){return this.setChannel(\"cmyk\",3,t)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?\"AAA\":e>=4.5?\"AA\":\"\"},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues(\"rgb\",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues(\"hsl\",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues(\"hsl\",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues(\"hsl\",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues(\"hsl\",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues(\"hwb\",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues(\"hwb\",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues(\"rgb\",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues(\"alpha\",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues(\"alpha\",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues(\"hsl\",e),this},mix:function(t,e){var n=this,i=t,r=void 0===e?.5:e,a=2*r-1,o=n.alpha()-i.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new a,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(t=i[o],e={}.toString.call(t),\"[object Array]\"===e?r[o]=t.slice(0):\"[object Number]\"===e?r[o]=t:console.error(\"unexpected color value:\",t));return n}},a.prototype.spaces={rgb:[\"red\",\"green\",\"blue\"],hsl:[\"hue\",\"saturation\",\"lightness\"],hsv:[\"hue\",\"saturation\",\"value\"],hwb:[\"hue\",\"whiteness\",\"blackness\"],cmyk:[\"cyan\",\"magenta\",\"yellow\",\"black\"]},a.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a.prototype.getValues=function(t){for(var e=this.values,n={},i=0;il;)i(s,n=e[l++])&&(~a(u,n)||u.push(n));return u}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(26),r=n(21),a=n(86);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports=n(34)},function(t,e,n){\"use strict\";var i=n(18),r=n(11),a=n(22),o=n(27),s=n(17)(\"species\");t.exports=function(t){var e=\"function\"==typeof r[t]?r[t]:i[t];o&&e&&!e[s]&&a.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(26),r=n(48),a=n(17)(\"species\");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},function(t,e,n){var i,r,a,o=n(29),s=n(324),l=n(122),u=n(81),c=n(18),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s(\"function\"==typeof t?t:Function(t),e)},i(g),g},f=function(t){delete v[t]},\"process\"==n(49)(h)?i=function(t){h.nextTick(o(y,t,1))}:m&&m.now?i=function(t){m.now(o(y,t,1))}:p?(r=new p,a=r.port2,r.port1.onmessage=b,i=o(a.postMessage,a,1)):c.addEventListener&&\"function\"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+\"\",\"*\")},c.addEventListener(\"message\",b,!1)):i=\"onreadystatechange\"in u(\"script\")?function(t){l.appendChild(u(\"script\")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e,n){var i=n(21);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError(\"Incompatible receiver, \"+e+\" required!\");return t}},function(t,e,n){\"use strict\";function i(t){return(0,a.default)(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(371),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e){function n(t,e){var n=t[1]||\"\",r=t[3];if(!r)return n;if(e&&\"function\"==typeof btoa){var a=i(r);return[n].concat(r.sources.map(function(t){return\"/*# sourceURL=\"+r.sourceRoot+t+\" */\"})).concat([a]).join(\"\\n\")}return[n].join(\"\\n\")}function i(t){return\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+\" */\"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?\"@media \"+e[2]+\"{\"+i+\"}\":i}).join(\"\")},e.i=function(t,n){\"string\"==typeof t&&(t=[[null,t,\"\"]]);for(var i={},r=0;r=56&&d<64&&f>=3&&f<12&&(h=32),d>=72&&d<84&&(f>=0&&f<9?h=31:f>=9&&f<21?h=33:f>=21&&f<33?h=35:f>=33&&f<42&&(h=37)),e=6*(h-1)-180+3,u=o(e),n=.006739496752268451,i=p/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),r=Math.tan(m)*Math.tan(m),a=n*Math.cos(m)*Math.cos(m),s=Math.cos(m)*(g-u),l=p*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var v=.9996*i*(s+(1-r+a)*s*s*s/6+(5-18*r+r*r+72*a-58*n)*s*s*s*s*s/120)+5e5,y=.9996*(l+i*Math.tan(m)*(s*s/2+(5-r+9*a+4*a*a)*s*s*s*s/24+(61-58*r+r*r+600*a-330*n)*s*s*s*s*s*s/720));return d<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:h,zoneLetter:c(d)}}function u(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var a,o,l,c,h,d,f,p,m,g,v=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),b=n-5e5,x=e;i<\"N\"&&(x-=1e7),p=6*(r-1)-180+3,a=.006739496752268451,f=x/.9996,m=f/6367449.145945056,g=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),o=v/Math.sqrt(1-.00669438*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),c=a*Math.cos(g)*Math.cos(g),h=.99330562*v/Math.pow(1-.00669438*Math.sin(g)*Math.sin(g),1.5),d=b/(.9996*o);var _=g-o*Math.tan(g)/h*(d*d/2-(5+3*l+10*c-4*c*c-9*a)*d*d*d*d/24+(61+90*l+298*c+45*l*l-252*a-3*c*c)*d*d*d*d*d*d/720);_=s(_);var w=(d-(1+2*l+c)*d*d*d/6+(5-2*c+28*l-3*c*c+8*a+24*l*l)*d*d*d*d*d/120)/Math.cos(g);w=p+s(w);var M;if(t.accuracy){var S=u({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});M={top:S.lat,right:S.lon,bottom:_,left:w}}else M={lat:_,lon:w};return M}function c(t){var e=\"Z\";return 84>=t&&t>=72?e=\"X\":72>t&&t>=64?e=\"W\":64>t&&t>=56?e=\"V\":56>t&&t>=48?e=\"U\":48>t&&t>=40?e=\"T\":40>t&&t>=32?e=\"S\":32>t&&t>=24?e=\"R\":24>t&&t>=16?e=\"Q\":16>t&&t>=8?e=\"P\":8>t&&t>=0?e=\"N\":0>t&&t>=-8?e=\"M\":-8>t&&t>=-16?e=\"L\":-16>t&&t>=-24?e=\"K\":-24>t&&t>=-32?e=\"J\":-32>t&&t>=-40?e=\"H\":-40>t&&t>=-48?e=\"G\":-48>t&&t>=-56?e=\"F\":-56>t&&t>=-64?e=\"E\":-64>t&&t>=-72?e=\"D\":-72>t&&t>=-80&&(e=\"C\"),e}function h(t,e){var n=\"00000\"+t.easting,i=\"00000\"+t.northing;return t.zoneNumber+t.zoneLetter+d(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function d(t,e,n){var i=f(n);return p(Math.floor(t/1e5),Math.floor(e/1e5)%20,i)}function f(t){var e=t%b;return 0===e&&(e=b),e}function p(t,e,n){var i=n-1,r=x.charCodeAt(i),a=_.charCodeAt(i),o=r+t-1,s=a+e,l=!1;return o>k&&(o=o-k+w-1,l=!0),(o===M||rM||(o>M||rS||(o>S||rk&&(o=o-k+w-1),s>E?(s=s-E+w-1,l=!0):l=!1,(s===M||aM||(s>M||aS||(s>S||aE&&(s=s-E+w-1),String.fromCharCode(o)+String.fromCharCode(s)}function m(t){if(t&&0===t.length)throw\"MGRSPoint coverting from nothing\";for(var e,n=t.length,i=null,r=\"\",a=0;!/[A-Z]/.test(e=t.charAt(a));){if(a>=2)throw\"MGRSPoint bad conversion from: \"+t;r+=e,a++}var o=parseInt(r,10);if(0===a||a+3>n)throw\"MGRSPoint bad conversion from: \"+t;var s=t.charAt(a++);if(s<=\"A\"||\"B\"===s||\"Y\"===s||s>=\"Z\"||\"I\"===s||\"O\"===s)throw\"MGRSPoint zone letter \"+s+\" not handled: \"+t;i=t.substring(a,a+=2);for(var l=f(o),u=g(i.charAt(0),l),c=v(i.charAt(1),l);c0&&(d=1e5/Math.pow(10,_),p=t.substring(a,a+_),w=parseFloat(p)*d,m=t.substring(a+_),M=parseFloat(m)*d),b=w+u,x=M+c,{easting:b,northing:x,zoneLetter:s,zoneNumber:o,accuracy:d}}function g(t,e){for(var n=x.charCodeAt(e-1),i=1e5,r=!1;n!==t.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>k){if(r)throw\"Bad character: \"+t;n=w,r=!0}i+=1e5}return i}function v(t,e){if(t>\"V\")throw\"MGRSPoint given invalid Northing \"+t;for(var n=_.charCodeAt(e-1),i=0,r=!1;n!==t.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>E){if(r)throw\"Bad character: \"+t;n=w,r=!0}i+=1e5}return i}function y(t){var e;switch(t){case\"C\":e=11e5;break;case\"D\":e=2e6;break;case\"E\":e=28e5;break;case\"F\":e=37e5;break;case\"G\":e=46e5;break;case\"H\":e=55e5;break;case\"J\":e=64e5;break;case\"K\":e=73e5;break;case\"L\":e=82e5;break;case\"M\":e=91e5;break;case\"N\":e=0;break;case\"P\":e=8e5;break;case\"Q\":e=17e5;break;case\"R\":e=26e5;break;case\"S\":e=35e5;break;case\"T\":e=44e5;break;case\"U\":e=53e5;break;case\"V\":e=62e5;break;case\"W\":e=7e6;break;case\"X\":e=79e5;break;default:e=-1}if(e>=0)return e;throw\"Invalid zone letter: \"+t}e.c=i,e.b=a;var b=6,x=\"AJSAJS\",_=\"AFAFAF\",w=65,M=73,S=79,E=86,k=90;e.a={forward:i,inverse:r,toPoint:a}},function(t,e,n){\"use strict\";e.a=function(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}},function(t,e,n){\"use strict\";var i=.01068115234375;e.a=function(t){var e=[];e[0]=1-t*(.25+t*(.046875+t*(.01953125+t*i))),e[1]=t*(.75-t*(.046875+t*(.01953125+t*i)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}},function(t,e,n){\"use strict\";var i=n(105),r=n(7);e.a=function(t,e,a){for(var o=1/(1-e),s=t,l=20;l;--l){var u=Math.sin(s),c=1-e*u*u;if(c=(n.i(i.a)(s,u,Math.cos(s),a)-t)*(c*Math.sqrt(c))*o,s-=c,Math.abs(c)2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}},function(t,e,n){\"use strict\";function i(t){var e=this;if(2===arguments.length){var r=arguments[1];\"string\"==typeof r?\"+\"===r.charAt(0)?i[t]=n.i(a.a)(arguments[1]):i[t]=n.i(o.a)(arguments[1]):i[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?i.apply(e,t):i(t)});if(\"string\"==typeof t){if(t in i)return i[t]}else\"EPSG\"in t?i[\"EPSG:\"+t.EPSG]=t:\"ESRI\"in t?i[\"ESRI:\"+t.ESRI]=t:\"IAU2000\"in t?i[\"IAU2000:\"+t.IAU2000]=t:console.log(t);return}}var r=n(426),a=n(152),o=n(159);n.i(r.a)(i),e.a=i},function(t,e,n){\"use strict\";var i=n(7),r=n(418),a=n(419),o=n(107);e.a=function(t){var e,s,l,u={},c=t.split(\"+\").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split(\"=\");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),h={proj:\"projName\",datum:\"datumCode\",rf:function(t){u.rf=parseFloat(t)},lat_0:function(t){u.lat0=t*i.g},lat_1:function(t){u.lat1=t*i.g},lat_2:function(t){u.lat2=t*i.g},lat_ts:function(t){u.lat_ts=t*i.g},lon_0:function(t){u.long0=t*i.g},lon_1:function(t){u.long1=t*i.g},lon_2:function(t){u.long2=t*i.g},alpha:function(t){u.alpha=parseFloat(t)*i.g},lonc:function(t){u.longc=t*i.g},x_0:function(t){u.x0=parseFloat(t)},y_0:function(t){u.y0=parseFloat(t)},k_0:function(t){u.k0=parseFloat(t)},k:function(t){u.k0=parseFloat(t)},a:function(t){u.a=parseFloat(t)},b:function(t){u.b=parseFloat(t)},r_a:function(){u.R_A=!0},zone:function(t){u.zone=parseInt(t,10)},south:function(){u.utmSouth=!0},towgs84:function(t){u.datum_params=t.split(\",\").map(function(t){return parseFloat(t)})},to_meter:function(t){u.to_meter=parseFloat(t)},units:function(t){u.units=t;var e=n.i(o.a)(a.a,t);e&&(u.to_meter=e.to_meter)},from_greenwich:function(t){u.from_greenwich=t*i.g},pm:function(t){var e=n.i(o.a)(r.a,t);u.from_greenwich=(e||parseFloat(t))*i.g},nadgrids:function(t){\"@null\"===t?u.datumCode=\"none\":u.nadgrids=t},axis:function(t){var e=\"ewnsud\";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(u.axis=t)}};for(e in c)s=c[e],e in h?(l=h[e],\"function\"==typeof l?l(s):u[l]=s):u[e]=s;return\"string\"==typeof u.datumCode&&\"WGS84\"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(t,e,n){\"use strict\";function i(){if(void 0===this.es||this.es<=0)throw new Error(\"incorrect elliptical usage\");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),i*=e,this.cgb[1]=i*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i*=e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),i*=e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(e*(-24832/14175)-2.4)),i*=e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i*=e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(.25+i*(1/64+i/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),i*=e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i*=e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i*=e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i*=e,this.utg[5]=-.03233083094085698*i,this.gtu[5]=.6650675310896665*i;var r=n.i(u.a)(this.cbg,this.lat0);this.Zb=-this.Qn*(r+n.i(c.a)(this.gtu,2*r))}function r(t){var e=n.i(d.a)(t.x-this.long0),i=t.y;i=n.i(u.a)(this.cbg,i);var r=Math.sin(i),a=Math.cos(i),o=Math.sin(e),c=Math.cos(e);i=Math.atan2(r,c*a),e=Math.atan2(o*a,n.i(s.a)(r,a*c)),e=n.i(l.a)(Math.tan(e));var f=n.i(h.a)(this.gtu,2*i,2*e);i+=f[0],e+=f[1];var p,m;return Math.abs(e)<=2.623395162778?(p=this.a*(this.Qn*e)+this.x0,m=this.a*(this.Qn*i+this.Zb)+this.y0):(p=1/0,m=1/0),t.x=p,t.y=m,t}function a(t){var e=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,e/=this.Qn;var r,a;if(Math.abs(e)<=2.623395162778){var l=n.i(h.a)(this.utg,2*i,2*e);i+=l[0],e+=l[1],e=Math.atan(n.i(o.a)(e));var c=Math.sin(i),f=Math.cos(i),p=Math.sin(e),m=Math.cos(e);i=Math.atan2(c*m,n.i(s.a)(p,m*f)),e=Math.atan2(p,m*f),r=n.i(d.a)(e+this.long0),a=n.i(u.a)(this.cgb,i)}else r=1/0,a=1/0;return t.x=r,t.y=a,t}var o=n(149),s=n(146),l=n(408),u=n(412),c=n(409),h=n(410),d=n(10),f=[\"Extended_Transverse_Mercator\",\"Extended Transverse Mercator\",\"etmerc\"];e.a={init:i,forward:r,inverse:a,names:f}},function(t,e,n){\"use strict\";function i(t,e){return(t.datum.datum_type===a.h||t.datum.datum_type===a.i)&&\"WGS84\"!==e.datumCode||(e.datum.datum_type===a.h||e.datum.datum_type===a.i)&&\"WGS84\"!==t.datumCode}function r(t,e,h){var d;return Array.isArray(h)&&(h=n.i(u.a)(h)),n.i(c.a)(h),t.datum&&e.datum&&i(t,e)&&(d=new l.a(\"WGS84\"),h=r(t,d,h),t=d),\"enu\"!==t.axis&&(h=n.i(s.a)(t,!1,h)),\"longlat\"===t.projName?h={x:h.x*a.g,y:h.y*a.g}:(t.to_meter&&(h={x:h.x*t.to_meter,y:h.y*t.to_meter}),h=t.inverse(h)),t.from_greenwich&&(h.x+=t.from_greenwich),h=n.i(o.a)(t.datum,e.datum,h),e.from_greenwich&&(h={x:h.x-e.from_greenwich,y:h.y}),\"longlat\"===e.projName?h={x:h.x*a.j,y:h.y*a.j}:(h=e.forward(h),e.to_meter&&(h={x:h.x/e.to_meter,y:h.y/e.to_meter})),\"enu\"!==e.axis?n.i(s.a)(e,!0,h):h}e.a=r;var a=n(7),o=n(423),s=n(405),l=n(102),u=n(150),c=n(406)},function(t,e,n){\"use strict\";function i(t){var e=0;return n.i(a.b)(t,function(t){n.i(o.b)(t)&&e++}),e}function r(t){var e=0;return n.i(a.b)(t,function(t){n.i(o.c)(t)&&e++}),e}e.a=i,e.b=r;var a=n(109),o=n(76)},function(t,e,n){\"use strict\";n(109),n(76)},function(t,e,n){\"use strict\";function i(){return\"react-tabs-\"+a++}function r(){a=0}e.b=i,e.a=r;var a=0},function(t,e,n){function i(t,e){for(var n=0;n=0&&b.splice(e,1)}function s(t){var e=document.createElement(\"style\");return t.attrs.type=\"text/css\",u(e,t.attrs),a(t,e),e}function l(t){var e=document.createElement(\"link\");return t.attrs.type=\"text/css\",t.attrs.rel=\"stylesheet\",u(e,t.attrs),a(t,e),e}function u(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function c(t,e){var n,i,r,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var u=y++;n=v||(v=s(e)),i=h.bind(null,n,u,!1),r=h.bind(null,n,u,!0)}else t.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=l(e),i=f.bind(null,n,e),r=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=d.bind(null,n),r=function(){o(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function h(t,e,n,i){var r=n?\"\":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function d(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute(\"media\",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function f(t,e,n){var i=n.css,r=n.sourceMap,a=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||a)&&(i=x(i)),r&&(i+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+\" */\");var o=new Blob([i],{type:\"text/css\"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var p={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),v=null,y=0,b=[],x=n(479);t.exports=function(t,e){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");e=e||{},e.attrs=\"object\"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto=\"head\"),e.insertAt||(e.insertAt=\"bottom\");var n=r(t,e);return i(n,e),function(t){for(var a=[],o=0;o0?90:-90),t.lat_ts=t.lat1)}var o=n(487),s=n(488),l=.017453292519943295;e.a=function(t){var e=n.i(o.a)(t),i=e.shift(),r=e.shift();e.unshift([\"name\",r]),e.unshift([\"type\",i]);var l={};return n.i(s.a)(e,l),a(l),l}},function(t,e,n){t.exports=n.p+\"assets/3WNj6QfIN0cgE7u5icG0Zx.png\"},function(t,e,n){t.exports=n.p+\"assets/ZzXs2hkPaGeWT_N6FgGOx.png\"},function(t,e,n){t.exports=n.p+\"assets/13lPmuYsGizUIj_HGNYM82.png\"},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(465),x=i(b),_=n(169),w=i(_),M=n(170),S=i(M),E=n(171),k=i(E),T=n(180),C=i(T),P=n(192),O=i(P),A=n(16),R=i(A),L=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.handleDrag=n.handleDrag.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"handleDrag\",value:function(t){this.props.store.options.showPNCMonitor&&this.props.store.updateWidthInPercentage(Math.min(1,t/window.innerWidth))}},{key:\"componentWillMount\",value:function(){this.props.store.updateDimension()}},{key:\"componentDidMount\",value:function(){var t=this;R.default.initialize(),A.MAP_WS.initialize(),A.POINT_CLOUD_WS.initialize(),window.addEventListener(\"resize\",function(){t.props.store.updateDimension()})}},{key:\"render\",value:function(){var t=this.props.store,e=(t.isInitialized,t.dimension),n=(t.sceneDimension,t.options);t.hmi;return v.default.createElement(\"div\",null,v.default.createElement(w.default,null),v.default.createElement(\"div\",{className:\"pane-container\"},v.default.createElement(x.default,{split:\"vertical\",size:e.width,onChange:this.handleDrag,allowResize:n.showPNCMonitor},v.default.createElement(\"div\",{className:\"left-pane\"},v.default.createElement(O.default,null),v.default.createElement(\"div\",{className:\"dreamview-body\"},v.default.createElement(S.default,null),v.default.createElement(k.default,null))),v.default.createElement(\"div\",{className:\"right-pane\"},n.showPNCMonitor&&v.default.createElement(C.default,null)))))}}]),e}(v.default.Component))||a)||a;e.default=L},function(t,e,n){var i=n(235);\"string\"==typeof i&&(i=[[t.i,i,\"\"]]);var r={};r.transform=void 0;n(158)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}var r=n(46),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),o=n(2),s=i(o),l=n(8);n(164);var u=n(15),c=i(u),h=n(163),d=i(h);a.render(s.default.createElement(l.Provider,{store:c.default},s.default.createElement(d.default,null)),document.getElementById(\"root\"))},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(16),x=i(b),_=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={event_msg:\"\"},n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"handleChange\",value:function(t){this.setState({event_msg:t.target.value})}},{key:\"handleSubmit\",value:function(){var t=this.props,e=t.event_time_ms,n=t.hide_func;x.default.submitDriveEvent(e,this.state.event_msg),n()}},{key:\"render\",value:function(){var t=this.props,e=t.event_time_ms,n=t.hide_func;return v.default.createElement(\"div\",{className:\"card drive-event-card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Adding New DriveEvent\")),v.default.createElement(\"div\",{className:\"card-content-column\"},v.default.createElement(\"table\",null,v.default.createElement(\"tbody\",null,v.default.createElement(\"tr\",null,v.default.createElement(\"td\",null,\"Event time\"),v.default.createElement(\"td\",null,e)),v.default.createElement(\"tr\",null,v.default.createElement(\"td\",null,\"Message\"),v.default.createElement(\"td\",null,v.default.createElement(\"input\",{type:\"text\",className:\"drive-event-msg\",value:this.state.event_msg,onChange:this.handleChange}))))),v.default.createElement(\"table\",{className:\"toolbar\"},v.default.createElement(\"tbody\",null,v.default.createElement(\"tr\",null,v.default.createElement(\"td\",null,v.default.createElement(\"button\",{onClick:n},\"Cancel\")),v.default.createElement(\"td\",null,v.default.createElement(\"button\",{onClick:this.handleSubmit},\"Submit\")))))))}}]),e}(v.default.Component),w=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={newDriveEventTimeMs:0,showDriveEvent:!1},n.handleNewDriveEvent=n.handleNewDriveEvent.bind(n),n.hideDriveEventEditor=n.hideDriveEventEditor.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"handleNewDriveEvent\",value:function(){this.setState({newDriveEventTimeMs:(new Date).getTime(),showDriveEvent:!0})}},{key:\"hideDriveEventEditor\",value:function(){this.setState({showDriveEvent:!1})}},{key:\"render\",value:function(){return v.default.createElement(\"div\",{className:\"data-recorder\"},v.default.createElement(\"div\",{className:\"card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Operations\")),v.default.createElement(\"div\",{className:\"card-content-column\"},v.default.createElement(\"button\",{onClick:this.handleNewDriveEvent},\"New DriveEvent\"))),this.state.showDriveEvent&&v.default.createElement(_,{event_time_ms:this.state.newDriveEventTimeMs,hide_func:this.hideDriveEventEditor}))}}]),e}(v.default.Component))||a)||a;e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(32),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(28),w=(i(_),n(168)),M=i(w),S=n(16),E=i(S),k=(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store.hmi,n=e.modes,i=e.currentMode,r=e.maps,a=e.currentMap,o=e.vehicles,l=e.currentVehicle;return b.default.createElement(\"div\",{className:\"header\"},b.default.createElement(M.default,{name:\"setup mode\",options:(0,s.default)(n).sort(),currentOption:i,onChange:function(e){t.props.store.hmi.currentMode=e.target.value,E.default.changeSetupMode(e.target.value)}}),b.default.createElement(M.default,{name:\"vehicle\",options:o,currentOption:l,onChange:function(t){E.default.changeVehicle(t.target.value)}}),b.default.createElement(M.default,{name:\"map\",options:r,currentOption:a,onChange:function(t){E.default.changeMap(t.target.value)}}))}}]),e}(b.default.Component))||a)||a;e.default=k},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(16),v=(i(g),function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={name:t.name,value:t.currentOption},n.onChangeHandler=n.onChangeHandler.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"onChangeHandler\",value:function(t){this.setState({value:t.target.value}),this.props.onChange(t)}},{key:\"componentWillReceiveProps\",value:function(t){t.currentOption!==this.props.currentOption&&this.setState({value:t.currentOption})}},{key:\"render\",value:function(){var t=this.props;t.name,t.options,t.currentOption,t.onChange;return this.entries=this.props.options.map(function(t){return m.default.createElement(\"option\",{value:t,key:t},t)}),this.entries.unshift(m.default.createElement(\"option\",{key:\"none\",value:\"none\",disabled:!0},\"-- \"+this.state.name+\" --\")),m.default.createElement(\"div\",{className:\"selector\"},m.default.createElement(\"span\",{className:\"arrow\"}),m.default.createElement(\"select\",{onChange:this.onChangeHandler,value:this.state.value},this.entries))}}]),e}(m.default.Component));e.default=v},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(205),v=i(g),y=n(162),b=i(y),x=n(167),_=i(x),w=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){return m.default.createElement(\"header\",{className:\"header\"},m.default.createElement(v.default,{image:b.default,className:\"apollo-logo\"}),m.default.createElement(_.default,null))}}]),e}(m.default.Component);e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o,s,l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(177),w=i(_),M=n(185),S=i(M),E=n(199),k=i(E),T=n(187),C=i(T),P=n(206),O=i(P),A=n(183),R=(i(A),function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){return b.default.createElement(\"div\",{className:\"video\"},b.default.createElement(\"img\",{src:\"/image\"}))}}]),e}(b.default.Component)),L=(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this.props.store,e=t.sceneDimension,n=t.meters,i=t.monitor,r=t.options,a=t.trafficSignal,o=(t.video,t.hmi);return b.default.createElement(\"div\",{className:\"main-view\",style:{height:e.height}},b.default.createElement(C.default,{width:e.width,height:e.height,options:r,invisible:!1}),r.showRouteEditingBar?b.default.createElement(S.default,null):b.default.createElement(k.default,{meters:n,trafficSignal:a,showNotification:!r.showTasks,monitor:i}),r.showVideo&&b.default.createElement(R,null),!1,o.inNavigationMode&&b.default.createElement(w.default,{viewHeight:e.height,viewWidth:e.width}))}}]),e}(b.default.Component))||a)||a,I=(o=(0,x.inject)(\"store\"))(s=(0,x.observer)(s=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this.props.store,e=t.isInitialized,n=t.sceneDimension;return e?b.default.createElement(L,null):b.default.createElement(O.default,{height:n.height})}}]),e}(b.default.Component))||s)||s;e.default=I},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(166),x=i(b),_=n(173),w=i(_),M=n(189),S=i(M),E=n(190),k=i(E),T=n(204),C=i(T),P=n(58),O=(i(P),(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props.store,e=t.options,n=t.routeEditingManager,i=t.hmi;return v.default.createElement(\"div\",{className:\"tools\"},e.showTasks&&v.default.createElement(C.default,null),e.showModuleController&&v.default.createElement(w.default,null),e.showMenu&&v.default.createElement(S.default,{options:e}),e.showPOI&&v.default.createElement(k.default,{routeEditingManager:n,options:e,inNavigationMode:i.inNavigationMode}),e.showDataRecorder&&v.default.createElement(x.default,null))}}]),e}(v.default.Component))||a)||a);e.default=O},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y={OK:\"#1C9063\",NOT_READY:\"#B43131\",NOT_PRESENT:\"#B43131\",ERR:\"#B43131\",UNDEF:\"#B43131\"},b=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.title,n=t.status;return g.default.createElement(\"div\",{className:\"status-display\"},g.default.createElement(\"div\",{className:\"name\"},e),g.default.createElement(\"div\",{className:\"status\"},g.default.createElement(\"span\",null,n.replace(\"_\",\" \")),g.default.createElement(\"span\",{className:\"status-icon\",style:{backgroundColor:y[n]}})))}}]),e}(g.default.Component))||r;e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(237),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(114),w=i(_),M=n(172),S=i(M),E=n(16),k=(i(E),(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store.hmi,n=e.modes,i=e.currentMode,r=e.moduleStatus,a=e.hardwareStatus,o=e.displayName,l=\"none\"!==i?n[i].liveModules:(0,s.default)(r.keys()),u=\"none\"!==i?n[i].liveHardware:(0,s.default)(a.keys()),c=l.sort().map(function(e){return b.default.createElement(w.default,{key:e,id:e,title:o[e],disabled:!1,isChecked:r.get(e),onClick:function(){t.props.store.hmi.toggleModule(e)},extraClasses:\"controller\"})}),h=u.map(function(t){return b.default.createElement(S.default,{key:t,title:o[t],status:a.get(t)})});return b.default.createElement(\"div\",{className:\"module-controller\"},b.default.createElement(\"div\",{className:\"card\"},b.default.createElement(\"div\",{className:\"card-header\"},b.default.createElement(\"span\",null,\"Hardware\")),b.default.createElement(\"div\",{className:\"card-content-column\"},h)),b.default.createElement(\"div\",{className:\"card\"},b.default.createElement(\"div\",{className:\"card-header\"},b.default.createElement(\"span\",null,\"Modules\")),b.default.createElement(\"div\",{className:\"card-content-row\"},c)))}}]),e}(b.default.Component))||a)||a);e.default=k},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(5),s=i(o),l=n(4),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=function(){function t(){(0,h.default)(this,t),this.map=null,this.controls=[]}return(0,f.default)(t,[{key:\"isInitialized\",value:function(){return null!==this.map}},{key:\"loadMap\",value:function(t,e){this.map=new BMap.Map(e,{enableMapClick:!1}),this.map.centerAndZoom(t,19),this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.MapTypeControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_SMALL})),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL,enableGeolocation:!1}))}},{key:\"setCenter\",value:function(t){this.map.setCenter(t)}},{key:\"setZoom\",value:function(t){this.map.setZoom(t)}},{key:\"addEventHandler\",value:function(t,e){this.map.addEventListener(t,function(t){var n=t.point;e(n)})}},{key:\"createPoint\",value:function(t){var e=t.lat,n=t.lng;return new BMap.Point(n,e)}},{key:\"createMarker\",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=null;e&&(i=new BMap.Label(e,{point:t,offset:new BMap.Size(15,-15)}));var r=new BMap.Marker(t,{label:i,enableDragging:n,rotation:5});return r.setLabel(i),this.map.addOverlay(r),r}},{key:\"createPolyline\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,r={geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:i},a=new BMap.Polyline(t,r);return this.map.addOverlay(a),a}},{key:\"createControl\",value:function(t){var e=t.text,n=t.tip,i=t.color,r=t.offsetX,a=t.offsetY,o=t.onClickHandler,s=new m(e,n,i,new BMap.Size(r,a),o);this.map.addControl(s),this.controls.push(s)}},{key:\"disableControls\",value:function(){var t=this;this.controls.forEach(function(e){t.map.removeControl(e)})}},{key:\"enableControls\",value:function(){var t=this;this.controls.forEach(function(e){t.map.addControl(e)})}},{key:\"getMarkerPosition\",value:function(t){return t.getPosition()}},{key:\"updatePolyline\",value:function(t,e){t.setPath(e)}},{key:\"removePolyline\",value:function(t){this.map.removeOverlay(t)}}]),t}();e.default=p;var m=function(t){function e(t,n,i,r,o){var l;(0,h.default)(this,e);for(var u=arguments.length,c=Array(u>5?u-5:0),d=5;d2&&void 0!==arguments[2])||arguments[2];return new google.maps.Marker({position:t,label:e,draggable:n,map:this.map})}},{key:\"createPolyline\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return new google.maps.Polyline({path:t,geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:i,map:this.map})}},{key:\"createControl\",value:function(t){var e=t.text,n=t.tip,i=t.color,r=(t.offsetX,t.offsetY,t.onClickHandler),a=document.createElement(\"div\"),o=document.createElement(\"div\");o.style.backgroundColor=i,o.style.border=\"2px solid #fff\",o.style.borderRadius=\"3px\",o.style.boxShadow=\"0 2px 6px rgba(0,0,0,.3)\",o.style.cursor=\"pointer\",o.style.marginBottom=\"22px\",o.style.textAlign=\"center\",o.title=n,a.appendChild(o);var s=document.createElement(\"div\");s.style.color=\"rgb(25,25,25)\",s.style.fontFamily=\"Roboto,Arial,sans-serif\",s.style.fontSize=\"16px\",s.style.lineHeight=\"38px\",s.style.paddingLeft=\"5px\",s.style.paddingRight=\"5px\",s.innerHTML=e,o.appendChild(s),o.addEventListener(\"click\",function(){r(s)}),this.map.controls[google.maps.ControlPosition.TOP_CENTER].push(a),this.controls.push(a)}},{key:\"disableControls\",value:function(){this.controls.forEach(function(t){t.style.display=\"none\"})}},{key:\"enableControls\",value:function(){this.controls.forEach(function(t){t.style.display=\"block\"})}},{key:\"getMarkerPosition\",value:function(t){var e=t.getPosition();return{lat:e.lat(),lng:e.lng()}}},{key:\"updatePolyline\",value:function(t,e){t.setPath(e)}},{key:\"removePolyline\",value:function(t){t.setMap(null)}}]),t}();e.default=l},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"getMaximizingIcon\",value:function(){return m.default.createElement(\"svg\",{viewBox:\"0 0 20 20\"},m.default.createElement(\"defs\",null,m.default.createElement(\"path\",{d:\"M20 0L0 20h20V0z\",id:\"a\"}),m.default.createElement(\"path\",{d:\"M11.53 18.5l-.03-7h7\",id:\"b\"}),m.default.createElement(\"path\",{d:\"M12 12l7 7\",id:\"c\"})),m.default.createElement(\"use\",{xlinkHref:\"#a\",opacity:\".6\",fill:\"#549BFF\"}),m.default.createElement(\"use\",{xlinkHref:\"#b\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}),m.default.createElement(\"use\",{xlinkHref:\"#c\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}))}},{key:\"getMinimizingIcon\",value:function(){return m.default.createElement(\"svg\",{viewBox:\"0 0 20 20\"},m.default.createElement(\"defs\",null,m.default.createElement(\"path\",{d:\"M20 0L0 20h20V0z\",id:\"a\"}),m.default.createElement(\"path\",{d:\"M18.47 11.5l.03 7h-7\",id:\"b\"}),m.default.createElement(\"path\",{d:\"M11 11l7 7\",id:\"c\"})),m.default.createElement(\"use\",{xlinkHref:\"#a\",opacity:\".6\",fill:\"#549BFF\"}),m.default.createElement(\"use\",{xlinkHref:\"#b\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}),m.default.createElement(\"use\",{xlinkHref:\"#c\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}))}},{key:\"render\",value:function(){var t=this.props,e=t.type,n=t.onClick,i=null;switch(e){case\"minimizing\":i=this.getMinimizingIcon();break;case\"maximizing\":i=this.getMaximizingIcon()}return m.default.createElement(\"div\",{className:\"window-resize-control\",onClick:n},i)}}]),e}(m.default.PureComponent);e.default=g},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(28),v=i(g),y=n(176),b=i(y),x=n(58),_=i(x),w=n(174),M=i(w),S=n(175),E=i(S),k=n(16),T=i(k),C=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={routingView:!1},n.onClickHandler=n.onClickHandler.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"onClickHandler\",value:function(){var t=!this.state.routingView;t?_.default.enableControls():_.default.disableControls(),this.setState({routingView:t})}},{key:\"componentDidMount\",value:function(){var t=\"GoogleMap\"===v.default.navigation.map?new E.default:new M.default;_.default.initialize(T.default,t),_.default.disableControls()}},{key:\"componentWillUnmount\",value:function(){_.default.reset()}},{key:\"render\",value:function(){var t=this.props,e=t.viewHeight,n=t.viewWidth,i=0,r=0,a=n,o=e,s=\"maximizing\";return this.state.routingView||(i=10,r=20,a=Math.min(.3*n,250),o=Math.min(.5*e,300),s=\"minimizing\"),m.default.createElement(\"div\",{displayname:\"navigation\",className:\"navigation-view\",style:{width:a,height:o,top:i,left:r}},m.default.createElement(\"div\",{id:\"map_canvas\"}),m.default.createElement(b.default,{type:s,onClick:this.onClickHandler}))}}]),e}(m.default.Component);e.default=C},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(539),x=i(b),_=n(113),w=i(_),M=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"generateScatterGraph\",value:function(t,e){return void 0===x.default[t]?(console.error(\"Graph setting not found: \",t),null):v.default.createElement(w.default,{title:x.default[t].title,options:x.default[t].options,properties:x.default[t].properties,data:e})}},{key:\"render\",value:function(){var t=this.props.store.controlData,e=t.lastUpdatedTime,n=t.data;return e?v.default.createElement(\"div\",null,this.generateScatterGraph(\"trajectoryGraph\",n.trajectoryGraph),this.generateScatterGraph(\"speedGraph\",n.speedGraph),this.generateScatterGraph(\"accelerationGraph\",n.accelerationGraph),this.generateScatterGraph(\"curvatureGraph\",n.curvatureGraph),this.generateScatterGraph(\"stationErrorGraph\",n.stationErrorGraph)):null}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(40),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(540),w=i(_),M=n(113),S=i(M),E=(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"generateStGraph\",value:function(t){var e=[],n=[\"DpStSpeedOptimizer\",\"QpSplineStSpeedOptimizer\"],i=!0,r=!1,a=void 0;try{for(var o,l=(0,s.default)(n);!(i=(o=l.next()).done);i=!0){var u=o.value,c=t[u],h=c?c.obstaclesBoundary:[];e.push(b.default.createElement(S.default,{key:\"stGraph_\"+u,title:u,options:w.default.stGraph.options,properties:w.default.stGraph.properties,data:c,boxes:h}))}}catch(t){r=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}return e}},{key:\"generateScatterGraph\",value:function(t,e){return void 0===w.default[t]?(console.error(\"Graph setting not found: \",t),null):b.default.createElement(S.default,{title:w.default[t].title,options:w.default[t].options,properties:w.default[t].properties,data:e})}},{key:\"render\",value:function(){var t=this.props.store.planningData,e=t.planningTime,n=t.data,i=t.latencyGraph;return e?b.default.createElement(\"div\",null,this.generateScatterGraph(\"speedGraph\",n.speedGraph),this.generateScatterGraph(\"accelerationGraph\",n.accelerationGraph),this.generateScatterGraph(\"thetaGraph\",n.thetaGraph),this.generateScatterGraph(\"kappaGraph\",n.kappaGraph),this.generateScatterGraph(\"dpPolyGraph\",n.dpPolyGraph),this.generateStGraph(n.stGraph),this.generateScatterGraph(\"stSpeedGraph\",n.stSpeedGraph.QpSplineStSpeedOptimizer),this.generateScatterGraph(\"latencyGraph\",i),this.generateScatterGraph(\"dkappaGraph\",n.dkappaGraph)):null}}]),e}(b.default.Component))||a)||a;e.default=E},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(475),v=n(179),y=i(v),b=n(178),x=i(b),_=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){return m.default.createElement(\"div\",{className:\"pnc-monitor\"},m.default.createElement(g.Tabs,null,m.default.createElement(g.TabList,null,m.default.createElement(g.Tab,null,\"Planning\"),m.default.createElement(g.Tab,null,\"Control\")),m.default.createElement(g.TabPanel,null,m.default.createElement(y.default,null)),m.default.createElement(g.TabPanel,null,m.default.createElement(x.default,null))))}}]),e}(m.default.Component);e.default=_},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 10 10\",onClick:t},m.default.createElement(\"polygon\",{className:\"play\",points:\"0 0, 10 5, 0 10\"}))}}]),e}(m.default.Component),b=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 100 100\",onClick:t},m.default.createElement(\"path\",{className:\"replay\",d:\"M0.166,49.438C0.166,75.152,20.744,96,46.125,96 c12.096,0,23.1-4.731,31.306-12.469 c2.144-2.021-8.776-12.227-10.269-10.84 c-5.54,5.146-12.926,8.286-21.037,8.286 c-17.193,0-31.133-14.122-31.133-31.544s13.939-31.545,31.133-31.545 c17.197,0,31.135,11.108,31.135,28.5 c0,0.007,0.021,0.062,0.049,0.069 L75.778,48c-3.484,0-5.931,0-5.931,0l14.826,18.023 L99.5,48 c0,0-2.447,0-5.931,0l-1.531-1.514 c0.017-0.006,0.05-0.015,0.05-0.021 c0-25.716-20.578-43.574-45.963-43.574 C20.744,2.891,0.166,23.723,0.166,49.438 z M78.743,44.933 l0.115,0.023l-0.089,0.086 C78.754,44.977,78.743,44.933,78.743,44.933 z\"}))}}]),e}(m.default.Component),x=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 20 20\",onClick:t},m.default.createElement(\"polygon\",{className:\"pause\",points:\"4 0, 6 0, 6 20, 4 20\"}),m.default.createElement(\"polygon\",{className:\"pause\",points:\"13 0, 15 0, 15 20, 13 20\"}))}}]),e}(m.default.Component),_=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 70 70\"},m.default.createElement(\"path\",{className:\"fullscreen\",d:\"M0 25 V0 H25 M0 45 V70 H25 M45 0 H70 V25 M45 70 H70 V45\"}))}}]),e}(m.default.Component),w=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 70 70\"},m.default.createElement(\"path\",{className:\"exit-fullscreen\",d:\"M0 25 H25 V0 M0 45 H25 V70 M45 0 V25 H70 M45 70 V45 H70\"}))}}]),e}(m.default.Component),M=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.type,n=t.onClick,i=t.extraClasses,r=null;switch(e){case\"replay\":r=m.default.createElement(b,null);break;case\"pause\":r=m.default.createElement(x,null);break;case\"play\":r=m.default.createElement(y,null);break;case\"fullscreen\":r=m.default.createElement(_,null);break;case\"normalscreen\":r=m.default.createElement(w,null)}return m.default.createElement(\"div\",{className:(0,v.default)(i),onClick:n},r)}}]),e}(m.default.Component);e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(463),v=i(g),y=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={frame:-1},n.updatingSeekingTime=!1,n.handleSliderChange=n.handleSliderChange.bind(n),n.handleSliderChangeComplete=n.handleSliderChangeComplete.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"getTimeFromFrame\",value:function(t,e){return(Math.max(0,e-1)/t).toFixed(1)}},{key:\"handleSliderChange\",value:function(t){this.setState({frame:t}),this.updatingSeekingTime=!0}},{key:\"handleSliderChangeComplete\",value:function(){this.props.handleFrameSeek(this.state.frame),this.updatingSeekingTime=!1}},{key:\"componentWillReceiveProps\",value:function(t){this.updatingSeekingTime||t.isSeeking||this.setState({frame:t.currentFrame})}},{key:\"render\",value:function(){var t=this.props,e=t.numFrames,n=t.currentFrame,i=t.fps,r=(t.isSeeking,t.handleFrameSeek,this.getTimeFromFrame(i,e)),a=this.getTimeFromFrame(i,n);return m.default.createElement(\"div\",{className:\"time-controls\"},m.default.createElement(v.default,{tooltip:!1,min:1,max:e,value:this.state.frame,onChange:this.handleSliderChange,onChangeComplete:this.handleSliderChangeComplete}),m.default.createElement(\"div\",{className:\"time-display\"},a+\" / \"+r+\" s\"))}}]),e}(m.default.Component);e.default=y},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(181),x=i(b),_=n(182),w=i(_),M=n(16),S=i(M),E=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={rate:1,isPlaying:!1,nextScreenMode:\"normalscreen\"},n.nextAction=\"play\",n.handleRateChange=n.handleRateChange.bind(n),n.handleFrameSeek=n.handleFrameSeek.bind(n),n.handleActionChange=n.handleActionChange.bind(n),n.handleScreenModeChange=n.handleScreenModeChange.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"handleRateChange\",value:function(t){var e=this.props.store.playback,n=parseFloat(t.target.value);this.setState({rate:n}),e.setPlayRate(n),this.state.isPlaying&&S.default.startPlayback(e.msPerFrame)}},{key:\"handleActionChange\",value:function(){var t=this.props.store.playback,e=!this.state.isPlaying;switch(t.setPlayAction(e),this.setState({isPlaying:e}),this.nextAction){case\"play\":S.default.startPlayback(t.msPerFrame);break;case\"pause\":S.default.pausePlayback();break;case\"replay\":t.resetFrame(),S.default.startPlayback(t.msPerFrame)}}},{key:\"handleScreenModeChange\",value:function(){var t=this.props.store.options;switch(this.state.nextScreenMode){case\"fullscreen\":t.showMenu=!1,this.setState({nextScreenMode:\"normalscreen\"});break;case\"normalscreen\":t.showMenu=!0,this.setState({nextScreenMode:\"fullscreen\"})}}},{key:\"handleFrameSeek\",value:function(t){var e=this.props.store.playback;e.seekFrame(t),this.state.isPlaying?S.default.requestTimer||S.default.startPlayback(e.msPerFrame):S.default.requestSimulationWorld(e.jobId,t)}},{key:\"componentWillUpdate\",value:function(t,e){var n=this.props.store.playback;n.replayComplete&&this.state.isPlaying&&(n.setPlayAction(!1),this.setState({isPlaying:!1})),n.replayComplete&&!n.isSeeking?this.nextAction=\"replay\":e.isPlaying?this.nextAction=\"pause\":this.nextAction=\"play\"}},{key:\"render\",value:function(){var t=this.props.store.playback;return v.default.createElement(\"div\",{className:\"playback-controls\"},v.default.createElement(x.default,{extraClasses:\"left-controls\",onClick:this.handleActionChange,type:this.nextAction}),v.default.createElement(\"div\",{className:\"rate-selector\"},v.default.createElement(\"select\",{onChange:this.handleRateChange,value:this.state.rate},v.default.createElement(\"option\",{value:.25},\"x 0.25\"),v.default.createElement(\"option\",{value:.5},\"x 0.5\"),v.default.createElement(\"option\",{value:1},\"x 1.0\"),v.default.createElement(\"option\",{value:2},\"x 2.0\")),v.default.createElement(\"span\",{className:\"arrow\"})),v.default.createElement(w.default,{numFrames:t.numFrames,currentFrame:t.currentFrame,fps:t.FPS,isSeeking:t.isSeeking,handleFrameSeek:this.handleFrameSeek}),v.default.createElement(x.default,{extraClasses:\"right-controls\",onClick:this.handleScreenModeChange,type:this.state.nextScreenMode}))}}]),e}(v.default.Component))||a)||a;e.default=E},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(46),v=i(g),y=n(13),b=i(y),x=n(517),_=i(x),w=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={active:!1,hover:!1},n.toggle=n.toggle.bind(n),n.handleMouseIn=n.handleMouseIn.bind(n),n.handleMouseOut=n.handleMouseOut.bind(n),n.text=\"For Desktop device:\\n • To zoom the map: use mouse wheel\\n • To move around the map: right-click and drag your mouse,\\n or use arrow keys\\n • To add a routing point: left-click mouse\\n\\nFor Mobile device:\\n • To zoom the map: pinch the screen with two fingers\\n • To move around the map: swipe with three fingers\\n • To add a routing point: tap with one finger\",n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"toggle\",value:function(){v.default.findDOMNode(this);this.setState({active:!this.state.active})}},{key:\"handleMouseIn\",value:function(){this.setState({hover:!0})}},{key:\"handleMouseOut\",value:function(){this.setState({hover:!1})}},{key:\"render\",value:function(){var t={display:this.state.active?\"block\":\"none\"};return m.default.createElement(\"button\",{className:(0,b.default)({\"editing-tip\":!0,button:!0,active:this.state.active||this.state.hover}),onClick:this.toggle,onMouseOver:this.handleMouseIn,onMouseOut:this.handleMouseOut},m.default.createElement(\"img\",{src:_.default}),m.default.createElement(\"p\",{style:t},this.text))}}]),e}(m.default.Component);e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(184),x=i(b),_=n(527),w=i(_),M=n(528),S=i(M),E=n(529),k=i(E),T=n(525),C=i(T),P=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.label,n=t.icon,i=t.onClick;return v.default.createElement(\"button\",{onClick:i,className:\"button\"},v.default.createElement(\"img\",{src:n}),v.default.createElement(\"span\",null,e))}}]),e}(v.default.Component),O=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store,n=e.routeEditingManager,i=e.options;return v.default.createElement(\"div\",{className:\"route-editing-bar\"},v.default.createElement(\"div\",{className:\"editing-panel\"},v.default.createElement(P,{label:\"Add Point of Interest\",icon:C.default,onClick:function(){t.props.store.handleOptionToggle(\"showPOI\")}}),v.default.createElement(P,{label:\"Remove Last Point\",icon:S.default,onClick:function(){n.removeLastRoutingPoint()}}),v.default.createElement(P,{label:\"Remove All Points\",icon:w.default,onClick:function(){n.removeAllRoutingPoints()}}),v.default.createElement(P,{label:\"Send Routing Request\",icon:k.default,onClick:function(){n.sendRoutingRequest(!1)&&(i.showRouteEditingBar=!1)}}),v.default.createElement(x.default,null)))}}]),e}(v.default.Component))||a)||a;e.default=O},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props.store.geolocation,e=t.x?t.x.toFixed(2):\"?\",n=t.y?t.y.toFixed(2):\"?\";return v.default.createElement(\"div\",{className:\"geolocation\"},\"( \",e,\", \",n,\" )\")}}]),e}(v.default.Component))||a)||a;e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),x=i(b),_=n(186),w=i(_),M=n(35),S=i(M),E=n(15),k=i(E),T=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"componentDidMount\",value:function(){S.default.initialize(\"canvas\",this.props.width,this.props.height,this.props.options)}},{key:\"componentWillUpdate\",value:function(t){S.default.updateDimension(t.width,t.height)}},{key:\"render\",value:function(){var t=this.props,e=t.invisible,n=t.options;return v.default.createElement(\"div\",{id:\"canvas\",className:(0,x.default)({\"dreamview-canvas\":!0,hidden:e}),onMouseMove:function(t){var e=S.default.getGeolocation(t);k.default.setGeolocation(e)}},n.showGeo&&v.default.createElement(w.default,null))}}]),e}(v.default.Component))||a)||a;e.default=T},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=(n(8),n(13)),v=i(g),y=n(534),b=i(y),x=n(532),_=i(x),w=n(531),M=i(w),S=n(533),E=i(S),k=n(530),T=i(k),C=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.disabled,n=t.onClick,i=t.active,r=t.label,a=t.extraClasses,o=t.iconSrc;return m.default.createElement(\"button\",{onClick:n,disabled:e,className:(0,v.default)({button:!0,\"button-active\":i},a)},m.default.createElement(\"img\",{src:o,className:\"icon\"}),m.default.createElement(\"div\",{className:\"label\"},r))}}]),e}(m.default.PureComponent),P=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.enableHMIButtonsOnly,n=t.inNavigationMode,i=t.onTasks,r=t.showTasks,a=t.onModuleController,o=t.showModuleController,s=t.onMenu,l=t.showMenu,u=t.onRouteEditingBar,c=t.showRouteEditingBar,h=t.onDataRecorder,d=t.showDataRecorder;return m.default.createElement(\"div\",{className:\"main-panel\"},m.default.createElement(C,{label:\"Tasks\",disabled:!1,iconSrc:b.default,onClick:i,active:r}),m.default.createElement(C,{label:\"Module Controller\",disabled:!1,iconSrc:_.default,onClick:a,active:o}),m.default.createElement(C,{label:\"Layer Menu\",disabled:e,iconSrc:M.default,onClick:s,active:l}),m.default.createElement(C,{label:\"Route Editing\",disabled:e||n,iconSrc:E.default,onClick:u,active:c}),m.default.createElement(C,{label:\"Data Recorder\",disabled:e,iconSrc:T.default,onClick:h,active:d}))}}]),e}(m.default.PureComponent);e.default=P},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o,s=n(32),l=i(s),u=n(3),c=i(u),h=n(0),d=i(h),f=n(1),p=i(f),m=n(5),g=i(m),v=n(4),y=i(v),b=n(2),x=i(b),_=n(8),w=n(13),M=(i(w),n(115)),S=i(M),E=n(220),k=i(E),T=n(520),C=i(T),P=n(523),O=i(P),A=n(524),R=i(A),L=n(519),I=i(L),D=n(521),N=i(D),z=n(522),B=i(z),F=n(16),U={perception:C.default,prediction:O.default,routing:R.default,decision:I.default,planning:N.default,camera:B.default},j={perceptionPointCloud:\"showPointCloud\",perceptionVehicle:\"showObstaclesVehicle\",perceptionPedestrian:\"showObstaclesPedestrian\",perceptionBicycle:\"showObstaclesBicycle\",perceptionUnknownMovable:\"showObstaclesUnknownMovable\",perceptionUnknownUnmovable:\"showObstaclesUnknownUnmovable\",perceptionUnknown:\"showObstaclesUnknown\",perceptionVirtual:\"showObstaclesVirtual\",perceptionVelocity:\"showObstaclesVelocity\",perceptionHeading:\"showObstaclesHeading\",perceptionId:\"showObstaclesId\",predictionMajor:\"showPredictionMajor\",predictionMinor:\"showPredictionMinor\",routing:\"showRouting\",decisionMain:\"showDecisionMain\",decisionObstacle:\"showDecisionObstacle\",planningCar:\"showPlanningCar\",planningReference:\"showPlanningReference\",planningDpOptimizer:\"showPlanningDpOptimizer\",planningQpOptimizer:\"showPlanningQpOptimizer\",planningLine:\"showPlanning\",positionLocalization:\"showPositionLocalization\",positionGps:\"showPositionGps\",mapCrosswalk:\"showMapCrosswalk\",mapClearArea:\"showMapClearArea\",mapJunction:\"showMapJunction\",mapLane:\"showMapLane\",mapRoad:\"showMapRoad\",mapSignal:\"showMapSignal\",mapStopSign:\"showMapStopSign\"},W=(0,_.observer)(r=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.id,n=t.title,i=t.options;return x.default.createElement(\"ul\",null,x.default.createElement(\"li\",{id:e,onClick:function(){i.toggle(j[e]),\"perceptionPointCloud\"===e&&F.POINT_CLOUD_WS.togglePointCloud(i.showPointCloud)}},x.default.createElement(\"div\",{className:\"switch\"},x.default.createElement(\"input\",{type:\"checkbox\",name:e,className:\"toggle-switch\",id:e,checked:i[j[e]],readOnly:!0}),x.default.createElement(\"label\",{className:\"toggle-switch-label\",htmlFor:e})),x.default.createElement(\"span\",null,n)))}}]),e}(x.default.Component))||r,G=(0,_.observer)(a=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.tabId,n=t.tabTitle,i=t.tabType,r=t.data,a=t.options,o=null;return\"checkbox\"===i?o=(0,l.default)(r).map(function(t){var e=r[t];return a.hideOptionToggle[t]?null:x.default.createElement(W,{key:t,id:t,title:e,options:a})}):\"radio\"===i&&(o=(0,l.default)(r).map(function(t){var n=r[t];return a.hideOptionToggle[t]?null:x.default.createElement(S.default,{key:e+\"_\"+t,id:e,onClick:function(){a.selectCamera(n)},checked:a.cameraAngle===n,title:n,options:a})})),x.default.createElement(\"div\",{className:\"card\"},x.default.createElement(\"div\",{className:\"card-header summary\"},x.default.createElement(\"span\",null,x.default.createElement(\"img\",{src:U[e]}),n)),x.default.createElement(\"div\",{className:\"card-content-column\"},o))}}]),e}(x.default.Component))||a,V=(0,_.observer)(o=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:\"render\",value:function(){var t=this.props.options,e=(0,l.default)(k.default).map(function(e){var n=k.default[e];return x.default.createElement(G,{key:n.id,tabId:n.id,tabTitle:n.title,tabType:n.type,data:n.data,options:t})});return x.default.createElement(\"div\",{className:\"nav-side-menu\",id:\"layer-menu\"},e)}}]),e}(x.default.Component))||o;e.default=V},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(32),o=i(a),s=n(3),l=i(s),u=n(0),c=i(u),h=n(1),d=i(h),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),x=n(13),_=(i(x),n(115)),w=i(_),M=(0,b.observer)(r=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.routeEditingManager,n=t.options,i=t.inNavigationMode,r=(0,o.default)(e.defaultRoutingEndPoint).map(function(t){return y.default.createElement(w.default,{extraClasses:[\"poi-button\"],key:\"poi_\"+t,id:\"poi\",title:t,onClick:function(){e.addDefaultEndPoint(t,i),n.showRouteEditingBar||e.sendRoutingRequest(i),n.showPOI=!1},checked:!1})});return y.default.createElement(\"div\",{className:\"nav-side-menu\",id:\"poi-list\"},y.default.createElement(\"div\",{className:\"card\"},y.default.createElement(\"div\",{className:\"card-header\"},y.default.createElement(\"span\",null,\"Point of Interest\")),y.default.createElement(\"div\",{className:\"card-content-row\"},r)))}}]),e}(y.default.Component))||r;e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=(n(8),n(13)),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.disabled,n=t.onClick,i=t.active,r=t.label,a=t.extraClasses;t.iconSrc;return m.default.createElement(\"button\",{onClick:n,disabled:e,className:(0,v.default)({\"sub-button\":!0,\"sub-button-active\":i},a)},m.default.createElement(\"div\",{className:\"label\"},r))}}]),e}(m.default.Component),b=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.enablePOI,n=t.onPOI,i=t.showPOI;return m.default.createElement(\"div\",null,m.default.createElement(y,{label:\"Default Routing\",disabled:!e,onClick:n,active:i}))}}]),e}(m.default.Component);e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(188),x=i(b),_=n(191),w=i(_),M=n(16),S=(i(M),(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store,n=e.options,i=e.enableHMIButtonsOnly,r=e.hmi;return v.default.createElement(\"div\",{className:\"side-bar\"},v.default.createElement(x.default,{enableHMIButtonsOnly:i,inNavigationMode:r.inNavigationMode,onTasks:function(){t.props.store.handleOptionToggle(\"showTasks\")},showTasks:n.showTasks,onModuleController:function(){t.props.store.handleOptionToggle(\"showModuleController\")},showModuleController:n.showModuleController,onMenu:function(){t.props.store.handleOptionToggle(\"showMenu\")},showMenu:n.showMenu,onRouteEditingBar:function(){t.props.store.handleOptionToggle(\"showRouteEditingBar\")},showRouteEditingBar:n.showRouteEditingBar,onDataRecorder:function(){t.props.store.handleOptionToggle(\"showDataRecorder\")},showDataRecorder:n.showDataRecorder}),v.default.createElement(w.default,{enablePOI:!i&&!n.showRouteEditingBar,onPOI:function(){t.props.store.handleOptionToggle(\"showPOI\")},showPOI:!n.showRouteEditingBar&&n.showPOI}))}}]),e}(v.default.Component))||a)||a);e.default=S},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(196),b=i(y),x=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.label,n=t.percentage,i=t.meterColor,r=t.background;return g.default.createElement(\"div\",{className:\"meter-container\"},g.default.createElement(\"div\",{className:\"meter-label\"},e),g.default.createElement(\"span\",{className:\"meter-head\",style:{borderColor:i}}),g.default.createElement(\"div\",{className:\"meter-background\",style:{backgroundColor:r}},g.default.createElement(\"span\",{style:{backgroundColor:i,width:n+\"%\"}})))}}]),e}(g.default.Component),_=(0,v.observer)(r=function(t){function e(t){(0,l.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t));return n.setting={brake:{label:\"Brake\",meterColor:\"#B43131\",background:\"#382626\"},accelerator:{label:\"Accelerator\",meterColor:\"#006AFF\",background:\"#2D3B50\"}},n}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.throttlePercent,n=t.brakePercent,i=t.speed;return g.default.createElement(\"div\",{className:\"auto-meter\"},g.default.createElement(b.default,{meterPerSecond:i}),g.default.createElement(\"div\",{className:\"brake-panel\"},g.default.createElement(x,{label:this.setting.brake.label,percentage:n,meterColor:this.setting.brake.meterColor,background:this.setting.brake.background})),g.default.createElement(\"div\",{className:\"throttle-panel\"},g.default.createElement(x,{label:this.setting.accelerator.label,percentage:e,meterColor:this.setting.accelerator.meterColor,background:this.setting.accelerator.background})))}}]),e}(g.default.Component))||r;e.default=_},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.utterance=window.speechSynthesis?new SpeechSynthesisUtterance:null,n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"componentWillUpdate\",value:function(){this.utterance&&window.speechSynthesis.cancel()}},{key:\"render\",value:function(){var t=this.props,e=t.drivingMode,n=t.isAutoMode;return this.utterance&&(this.utterance.text=\"Entering to \"+e+\" mode\",window.speechSynthesis.speak(this.utterance)),m.default.createElement(\"div\",{className:(0,v.default)({\"driving-mode\":!0,\"auto-mode\":n,\"manual-mode\":!n})},m.default.createElement(\"span\",{className:\"text\"},e))}}]),e}(m.default.PureComponent);e.default=y},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(13),b=i(y),x=n(161),_=i(x),w=n(160),M=i(w),S=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props.monitor;if(!t.hasActiveNotification)return null;if(0===t.items.length)return null;var e=t.items[0],n=\"ERROR\"===e.logLevel||\"FATAL\"===e.logLevel?\"alert\":\"warn\",i=\"alert\"===n?M.default:_.default;return g.default.createElement(\"div\",{className:\"notification-\"+n},g.default.createElement(\"img\",{src:i,className:\"icon\"}),g.default.createElement(\"span\",{className:(0,b.default)(\"text\",n)},e.msg))}}]),e}(g.default.Component))||r;e.default=S},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=[{name:\"km/h\",conversionFromMeterPerSecond:3.6},{name:\"m/s\",conversionFromMeterPerSecond:1},{name:\"mph\",conversionFromMeterPerSecond:2.23694}],v=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={unit:0},n.changeUnit=n.changeUnit.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"changeUnit\",value:function(){this.setState({unit:(this.state.unit+1)%g.length})}},{key:\"render\",value:function(){var t=this.props.meterPerSecond,e=g[this.state.unit],n=e.name,i=Math.round(t*e.conversionFromMeterPerSecond);return m.default.createElement(\"span\",{onClick:this.changeUnit},m.default.createElement(\"span\",{className:\"speed-read\"},i),m.default.createElement(\"span\",{className:\"speed-unit\"},n))}}]),e}(m.default.Component);e.default=v},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g={GREEN:\"rgba(79, 198, 105, 0.8)\",YELLOW:\"rgba(239, 255, 0, 0.8)\",RED:\"rgba(180, 49, 49, 0.8)\",BLACK:\"rgba(30, 30, 30, 0.8)\",UNKNOWN:\"rgba(30, 30, 30, 0.8)\",\"\":null},v=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props.colorName,e=g[t],n=t||\"NO SIGNAL\";return m.default.createElement(\"div\",{className:\"traffic-light\"},e&&m.default.createElement(\"svg\",{className:\"symbol\",viewBox:\"0 0 30 30\",height:\"28\",width:\"28\"},m.default.createElement(\"circle\",{cx:\"15\",cy:\"15\",r:\"15\",fill:e})),m.default.createElement(\"div\",{className:\"text\"},n))}}]),e}(m.default.PureComponent);e.default=v},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props.steeringAngle;return g.default.createElement(\"svg\",{className:\"wheel\",viewBox:\"0 0 100 100\",height:\"80\",width:\"80\"},g.default.createElement(\"circle\",{className:\"wheel-background\",cx:\"50\",cy:\"50\",r:\"45\"}),g.default.createElement(\"g\",{className:\"wheel-arm\",transform:\"rotate(\"+t+\" 50 50)\"},g.default.createElement(\"rect\",{x:\"45\",y:\"7\",height:\"10\",width:\"10\"}),g.default.createElement(\"line\",{x1:\"50\",y1:\"50\",x2:\"50\",y2:\"5\"})))}}]),e}(g.default.Component),b=(0,v.observer)(r=function(t){function e(t){(0,l.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t));return n.signalColor={off:\"#30435E\",on:\"#006AFF\"},n}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.steeringPercentage,n=t.steeringAngle,i=t.turnSignal,r=\"LEFT\"===i||\"EMERGENCY\"===i?this.signalColor.on:this.signalColor.off,a=\"RIGHT\"===i||\"EMERGENCY\"===i?this.signalColor.on:this.signalColor.off;return g.default.createElement(\"div\",{className:\"wheel-panel\"},g.default.createElement(\"div\",{className:\"steerangle-read\"},e),g.default.createElement(\"div\",{className:\"steerangle-unit\"},\"%\"),g.default.createElement(\"div\",{className:\"left-arrow\",style:{borderRightColor:r}}),g.default.createElement(y,{steeringAngle:n}),g.default.createElement(\"div\",{className:\"right-arrow\",style:{borderLeftColor:a}}))}}]),e}(g.default.Component))||r;e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(193),b=i(y),x=n(195),_=i(x),w=n(197),M=i(w),S=n(194),E=i(S),k=n(198),T=i(k),C=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.meters,n=t.trafficSignal,i=t.showNotification,r=t.monitor;return g.default.createElement(\"div\",{className:\"status-bar\"},i&&g.default.createElement(_.default,{monitor:r}),g.default.createElement(b.default,{throttlePercent:e.throttlePercent,brakePercent:e.brakePercent,speed:e.speed}),g.default.createElement(T.default,{steeringPercentage:e.steeringPercentage,steeringAngle:e.steeringAngle,turnSignal:e.turnSignal}),g.default.createElement(\"div\",{className:\"traffic-light-and-driving-mode\"},g.default.createElement(M.default,{colorName:n.color}),g.default.createElement(E.default,{drivingMode:e.drivingMode,isAutoMode:e.isAutoMode})))}}]),e}(g.default.Component))||r;e.default=C},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o,s=n(3),l=i(s),u=n(0),c=i(u),h=n(1),d=i(h),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),x=n(13),_=i(x),w=n(161),M=i(w),S=n(160),E=i(S),k=(0,b.observer)(r=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.level,n=t.text,i=\"ERROR\"===e||\"FATAL\"===e?\"alert\":\"warn\",r=\"alert\"===i?E.default:M.default;return y.default.createElement(\"li\",{className:\"monitor-item\"},y.default.createElement(\"img\",{src:r,className:\"icon\"}),y.default.createElement(\"span\",{className:(0,_.default)(\"text\",i)},n))}}]),e}(y.default.Component))||r,T=(a=(0,b.inject)(\"store\"))(o=(0,b.observer)(o=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:\"render\",value:function(){var t=this.props.store.monitor;return y.default.createElement(\"div\",{className:\"card\"},y.default.createElement(\"div\",{className:\"card-header\"},y.default.createElement(\"span\",null,\"Console\")),y.default.createElement(\"div\",{className:\"card-content-column\"},y.default.createElement(\"ul\",{className:\"console\"},t.items.map(function(t,e){return y.default.createElement(k,{key:e,text:t.msg,level:t.logLevel})}))))}}]),e}(y.default.Component))||o)||o;e.default=T},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),x=i(b),_=n(77),w=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.time,n=t.warning,i=\"-\"===e?e:(0,_.millisecondsToTime)(0|e);return v.default.createElement(\"div\",{className:(0,x.default)({value:!0,warning:n})},i)}}]),e}(v.default.PureComponent),M=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props.store.moduleDelay,e=t.keys().sort().map(function(e){var n=t.get(e),i=n.delay>2e3&&\"TrafficLight\"!==n.name;return v.default.createElement(\"div\",{className:\"delay-item\",key:\"delay_\"+e},v.default.createElement(\"div\",{className:\"name\"},n.name),v.default.createElement(w,{time:n.delay,warning:i}))});return v.default.createElement(\"div\",{className:\"delay card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Module Delay\")),v.default.createElement(\"div\",{className:\"card-content-column\"},e))}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(114),x=i(b),_=n(16),w=i(_),M=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store,n=e.options,i=e.enableHMIButtonsOnly,r=i||n.tasksPanelLocked;return v.default.createElement(\"div\",{className:\"others card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Others\")),v.default.createElement(\"div\",{className:\"card-content-column\"},v.default.createElement(\"button\",{disabled:r,onClick:function(){w.default.resetBackend()}},\"Reset Backend Data\"),v.default.createElement(\"button\",{disabled:r,onClick:function(){w.default.dumpMessages()}},\"Dump Message\"),v.default.createElement(x.default,{id:\"showPNCMonitor\",title:\"PNC Monitor\",isChecked:n.showPNCMonitor,disabled:r,onClick:function(){t.props.store.handleOptionToggle(\"showPNCMonitor\")}}),v.default.createElement(x.default,{id:\"toggleSimControl\",title:\"SimControl\",isChecked:n.simControlEnabled,disabled:!1,onClick:function(){w.default.toggleSimControl(!n.simControlEnabled),t.props.store.handleOptionToggle(\"simControlEnabled\")}}),v.default.createElement(x.default,{id:\"showVideo\",title:\"Camera Sensor\",isChecked:n.showVideo,disabled:r,onClick:function(){t.props.store.handleOptionToggle(\"showVideo\")}}),v.default.createElement(x.default,{id:\"panelLock\",title:\"Lock Task Panel\",isChecked:n.tasksPanelLocked,disabled:!1,onClick:function(){t.props.store.handleOptionToggle(\"tasksPanelLocked\")}})))}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(32),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(13),w=i(_),M=n(16),S=i(M),E=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.name,n=t.commands,i=t.disabled,r=t.extraCommandClass,a=t.extraButtonClass,o=(0,s.default)(n).map(function(t){return b.default.createElement(\"button\",{className:a,disabled:i,key:t,onClick:n[t]},t)}),l=e?b.default.createElement(\"span\",{className:\"name\"},e+\":\"):null;return b.default.createElement(\"div\",{className:(0,w.default)(\"command-group\",r)},l,o)}}]),e}(b.default.Component),k=(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(t){(0,h.default)(this,e);var n=(0,m.default)(this,(e.__proto__||(0,u.default)(e)).call(this,t));return n.utterance=window.speechSynthesis?new SpeechSynthesisUtterance:null,n.rtKRecord={Start:function(){S.default.executeToolCommand(\"rtk_record_replay\",\"start_recorder\"),n.speechSynthesis(\"Start RTK recorder\")},Stop:function(){S.default.executeToolCommand(\"rtk_record_replay\",\"stop_recorder\"),n.speechSynthesis(\"Stop RTK recorder\")}},n.rtkReplay={Start:function(){S.default.executeToolCommand(\"rtk_record_replay\",\"start_player\"),n.speechSynthesis(\"Start RTK replay\")},Stop:function(){S.default.executeToolCommand(\"rtk_record_replay\",\"stop_player\"),n.speechSynthesis(\"Stop RTK replay\")}},n.setup={Setup:function(){S.default.executeModeCommand(\"start\"),n.speechSynthesis(\"Setup\")}},n.reset={\"Reset All\":function(){S.default.executeModeCommand(\"stop\"),n.speechSynthesis(\"Reset All\")}},n.auto={\"Start Auto\":function(){S.default.changeDrivingMode(\"COMPLETE_AUTO_DRIVE\"),n.speechSynthesis(\"Start Auto\")}},n.version={Version:function(){alert(n.props.store.hmi.dockerImage)}},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"componentWillUpdate\",value:function(){this.utterance&&window.speechSynthesis.cancel()}},{key:\"speechSynthesis\",value:function(t){this.utterance&&(this.utterance.text=t,window.speechSynthesis.speak(this.utterance))}},{key:\"render\",value:function(){var t=this.props.store.hmi,e=this.props.store.options.tasksPanelLocked;return b.default.createElement(\"div\",{className:\"card\"},b.default.createElement(\"div\",{className:\"card-header\"},b.default.createElement(\"span\",null,\"Quick Start\")),b.default.createElement(\"div\",{className:\"card-content-column\"},b.default.createElement(E,{disabled:!1,commands:this.version}),b.default.createElement(E,{disabled:e,commands:this.setup}),b.default.createElement(E,{disabled:e,commands:this.reset}),b.default.createElement(E,{disabled:!t.enableStartAuto||e,commands:this.auto,extraButtonClass:\"start-auto-button\",extraCommandClass:\"start-auto-command\"}),t.showRTKCommands&&b.default.createElement(E,{name:\"Record\",disabled:e,commands:this.rtKRecord}),t.showRTKCommands&&b.default.createElement(E,{name:\"Replay\",disabled:e,commands:this.rtkReplay})))}}]),e}(b.default.Component))||a)||a;e.default=k},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(203),v=i(g),y=n(202),b=i(y),x=n(201),_=i(x),w=n(200),M=i(w),S=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){return m.default.createElement(\"div\",{className:\"tasks\"},m.default.createElement(v.default,null),m.default.createElement(b.default,null),m.default.createElement(_.default,null),m.default.createElement(M.default,null))}}]),e}(m.default.Component);e.default=S},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(117),a=i(r),o=n(246),s=i(o),l=n(2),u=i(l),c=n(24),h=i(c),d=function(t){var e=t.image,n=t.style,i=t.className,r=((0,s.default)(t,[\"image\",\"style\",\"className\"]),(0,a.default)({},n||{},{backgroundImage:\"url(\"+e+\")\",backgroundSize:\"cover\"})),o=i?i+\" dreamview-image\":\"dreamview-image\";return u.default.createElement(\"div\",{className:o,style:r})};d.propTypes={image:h.default.string.isRequired,style:h.default.object},e.default=d},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=n(35),b=(i(y),n(162)),x=i(b),_=n(518),w=(i(_),function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.height,n=t.extraClasses,i=x.default;return m.default.createElement(\"div\",{className:\"loader\",style:{height:e}},m.default.createElement(\"div\",{className:(0,v.default)(\"img-container\",n)},m.default.createElement(\"img\",{src:i,alt:\"Loader\"}),m.default.createElement(\"div\",{className:\"status-message\"},\"Please send car initial position and map data.\")))}}]),e}(m.default.Component));e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(15),u=i(l),c=n(489),h=i(c),d=n(490),f=i(d),p=n(59),m={adc:{menuOptionName:\"showPositionLocalization\",carMaterial:h.default},plannigAdc:{menuOptionName:\"showPlanningCar\",carMaterial:null}},g=function(){function t(e,n){var i=this;(0,a.default)(this,t),this.mesh=null,this.name=e;var r=m[e];if(!r)return void console.error(\"Car properties not found for car:\",e);(0,p.loadObject)(r.carMaterial,f.default,{x:1,y:1,z:1},function(t){i.mesh=t,i.mesh.rotation.x=Math.PI/2,i.mesh.visible=u.default.options[r.menuOptionName],n.add(i.mesh)})}return(0,s.default)(t,[{key:\"update\",value:function(t,e){if(this.mesh&&e){var n=m[this.name].menuOptionName;this.mesh.visible=u.default.options[n];var i=t.applyOffset({x:e.positionX,y:e.positionY});null!==i&&(this.mesh.position.set(i.x,i.y,0),this.mesh.rotation.y=e.heading)}}}]),t}();e.default=g},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=function(){function t(){(0,a.default)(this,t),this.systemName=\"ENU\",this.offset=null}return(0,s.default)(t,[{key:\"isInitialized\",value:function(){return null!==this.offset}},{key:\"initialize\",value:function(t,e){this.offset={x:t,y:e},console.log(\"Offset is set to x:\"+t+\", y:\"+e)}},{key:\"setSystem\",value:function(t){this.systemName=t}},{key:\"applyOffset\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?(console.error(\"Offset is not set.\"),null):isNaN(this.offset.x)||isNaN(this.offset.y)?(console.error(\"Offset contains NaN!\"),null):isNaN(t.x)||isNaN(t.y)?(console.warn(\"Point contains NaN!\"),null):isNaN(t.z)?new u.Vector2(e?t.x+this.offset.x:t.x-this.offset.x,e?t.y+this.offset.y:t.y-this.offset.y):new u.Vector3(e?t.x+this.offset.x:t.x-this.offset.x,e?t.y+this.offset.y:t.y-this.offset.y,t.z)}},{key:\"applyOffsetToArray\",value:function(t){var e=this;return t.map(function(t){return e.applyOffset(t)})}}]),t}();e.default=c},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(15),h=i(c),d=n(505),f=i(d),p=n(509),m=i(p),g=n(507),v=i(g),y=n(510),b=i(y),x=n(508),_=i(x),w=n(499),M=i(w),S=n(502),E=i(S),k=n(500),T=i(k),C=n(503),P=i(C),O=n(501),A=i(O),R=n(504),L=i(R),I=n(497),D=i(I),N=n(512),z=i(N),B=n(511),F=i(B),U=n(513),j=i(U),W=n(514),G=i(W),V=n(515),H=i(V),Y=n(495),q=i(Y),X=n(496),Z=i(X),K=n(498),Q=i(K),J=n(506),$=i(J),tt=n(77),et=n(31),nt=n(39),it={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},rt={STOP_REASON_HEAD_VEHICLE:L.default,STOP_REASON_DESTINATION:D.default,STOP_REASON_PEDESTRIAN:z.default,STOP_REASON_OBSTACLE:F.default,STOP_REASON_SIGNAL:j.default,STOP_REASON_STOP_SIGN:G.default,STOP_REASON_YIELD_SIGN:H.default,STOP_REASON_CLEAR_ZONE:q.default,STOP_REASON_CROSSWALK:Z.default,STOP_REASON_EMERGENCY:Q.default,STOP_REASON_NOT_READY:$.default},at=function(){function t(){(0,a.default)(this,t),this.markers={STOP:[],FOLLOW:[],YIELD:[],OVERTAKE:[]},this.nudges=[],this.mainDecision=this.getMainDecision(),this.mainDecisionAddedToScene=!1}return(0,s.default)(t,[{key:\"update\",value:function(t,e,n){var i=this;this.nudges.forEach(function(t){n.remove(t),t.geometry.dispose(),t.material.dispose()}),this.nudges=[];var r=t.mainStop;if(!h.default.options.showDecisionMain||nt.isEmpty(r))this.mainDecision.visible=!1;else{this.mainDecision.visible=!0,this.mainDecisionAddedToScene||(n.add(this.mainDecision),this.mainDecisionAddedToScene=!0),(0,tt.copyProperty)(this.mainDecision.position,e.applyOffset(new u.Vector3(r.positionX,r.positionY,.2))),this.mainDecision.rotation.set(Math.PI/2,r.heading-Math.PI/2,0);var a=nt.attempt(function(){return r.decision[0].stopReason});if(!nt.isError(a)&&a){var o=null;for(o in rt)this.mainDecision[o].visible=!1;this.mainDecision[a].visible=!0}}var s=t.object;if(h.default.options.showDecisionObstacle&&!nt.isEmpty(s)){for(var l={STOP:0,FOLLOW:0,YIELD:0,OVERTAKE:0},c=0;c=i.markers[a].length?(o=i.getObstacleDecision(a),i.markers[a].push(o),n.add(o)):o=i.markers[a][l[a]];var h=e.applyOffset(new u.Vector3(r.positionX,r.positionY,0));if(null===h)return\"continue\";if(o.position.set(h.x,h.y,.2),o.rotation.set(Math.PI/2,r.heading-Math.PI/2,0),o.visible=!0,l[a]++,\"YIELD\"===a||\"OVERTAKE\"===a){var f=o.connect;f.geometry.vertices[0].set(s[c].positionX-r.positionX,s[c].positionY-r.positionY,0),f.geometry.verticesNeedUpdate=!0,f.geometry.computeLineDistances(),f.geometry.lineDistancesNeedUpdate=!0,f.rotation.set(Math.PI/-2,0,Math.PI/2-r.heading)}}else if(\"NUDGE\"===a){var p=(0,et.drawShapeFromPoints)(e.applyOffsetToArray(r.polygonPoint),new u.MeshBasicMaterial({color:16744192}),!1,2);i.nudges.push(p),n.add(p)}})(f)}}var p=null;for(p in it)(0,tt.hideArrayObjects)(this.markers[p],l[p])}else{var m=null;for(m in it)(0,tt.hideArrayObjects)(this.markers[m])}}},{key:\"getMainDecision\",value:function(){var t=this.getFence(\"MAIN_STOP\"),e=null;for(e in rt){var n=(0,et.drawImage)(rt[e],1,1,4.1,3.5,0);t.add(n),t[e]=n}return t.visible=!1,t}},{key:\"getObstacleDecision\",value:function(t){var e=this.getFence(t);if(\"YIELD\"===t||\"OVERTAKE\"===t){var n=it[t],i=(0,et.drawDashedLineFromPoints)([new u.Vector3(1,1,0),new u.Vector3(0,0,0)],n,2,2,1,30);e.add(i),e.connect=i}return e.visible=!1,e}},{key:\"getFence\",value:function(t){var e=new u.Object3D;switch(t){case\"STOP\":var n=(0,et.drawImage)(E.default,11.625,3,0,1.5,0);e.add(n);var i=(0,et.drawImage)(m.default,1,1,3,3.6,0);e.add(i);break;case\"FOLLOW\":n=(0,et.drawImage)(T.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(v.default,1,1,3,3.6,0),e.add(i);break;case\"YIELD\":n=(0,et.drawImage)(P.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(b.default,1,1,3,3.6,0),e.add(i);break;case\"OVERTAKE\":n=(0,et.drawImage)(A.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(_.default,1,1,3,3.6,0),e.add(i);break;case\"MAIN_STOP\":n=(0,et.drawImage)(M.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(f.default,1,1,3,3.6,0),e.add(i)}return e}}]),t}();e.default=at},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(15),h=i(c),d=n(31),f=function(){function t(){(0,a.default)(this,t),this.circle=null,this.base=null}return(0,s.default)(t,[{key:\"update\",value:function(t,e,n){if(t.gps&&t.autoDrivingCar){if(!this.circle){var i=new u.MeshBasicMaterial({color:27391,transparent:!1,opacity:.5});this.circle=(0,d.drawCircle)(.2,i),n.add(this.circle)}this.base||(this.base=(0,d.drawSegmentsFromPoints)([new u.Vector3(3.89,-1.05,0),new u.Vector3(3.89,1.06,0),new u.Vector3(-1.04,1.06,0),new u.Vector3(-1.04,-1.05,0),new u.Vector3(3.89,-1.05,0)],27391,2,5),n.add(this.base));var r=h.default.options.showPositionGps,a=e.applyOffset({x:t.gps.positionX,y:t.gps.positionY,z:0});this.circle.position.set(a.x,a.y,a.z),this.circle.visible=r,this.base.position.set(a.x,a.y,a.z),this.base.rotation.set(0,0,t.gps.heading),this.base.visible=r}}}]),t}();e.default=f},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(59),h=n(516),d=i(h),f=n(28),p=i(f),m=function(){function t(){var e=this;(0,a.default)(this,t),this.type=\"default\",this.loadedMap=null,this.updateMap=null,this.mesh=null,this.geometry=null,this.initialized=!1,(0,c.loadTexture)(d.default,function(t){e.geometry=new u.PlaneGeometry(1,1),e.mesh=new u.Mesh(e.geometry,new u.MeshBasicMaterial({map:t}))})}return(0,s.default)(t,[{key:\"initialize\",value:function(t){return!!this.mesh&&(!(this.loadedMap===this.updateMap&&!this.render(t))&&(this.initialized=!0,!0))}},{key:\"update\",value:function(t,e,n){var i=this;if(!0===this.initialized&&this.loadedMap!==this.updateMap){var r=this.titleCaseToSnakeCase(this.updateMap),a=window.location,o=a.protocol+\"//\"+a.hostname+\":\"+p.default.server.port,s=o+\"/assets/map_data/\"+r+\"/background.jpg\";(0,c.loadTexture)(s,function(t){console.log(\"updating ground image with \"+r),i.mesh.material.map=t,i.mesh.type=\"reflection\",i.render(e,r)},function(t){console.log(\"using grid as ground image...\"),(0,c.loadTexture)(d.default,function(t){i.mesh.material.map=t,i.mesh.type=\"grid\",i.render(e)})}),this.loadedMap=this.updateMap}else if(this.initialized&&\"grid\"===this.mesh.type){var l=t.autoDrivingCar,u=e.applyOffset({x:l.positionX,y:l.positionY});this.mesh.position.set(u.x,u.y,0)}}},{key:\"updateImage\",value:function(t){this.updateMap=t}},{key:\"render\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"defaults\";console.log(\"rendering ground image...\");var n=p.default.ground[e],i=n.xres,r=n.yres,a=n.mpp,o=n.xorigin,s=n.yorigin,l=t.applyOffset({x:o,y:s});return null===l?(console.warn(\"Cannot find position for ground mesh!\"),!1):(\"defaults\"===e&&(l={x:0,y:0}),this.mesh.position.set(l.x,l.y,0),this.mesh.scale.set(i*a,r*a,1),this.mesh.material.needsUpdate=!0,this.mesh.overdraw=!1,!0)}},{key:\"titleCaseToSnakeCase\",value:function(t){return t.replace(/\\s/g,\"_\").toLowerCase()}}]),t}();e.default=m},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(32),a=i(r),o=n(117),s=i(o),l=n(40),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(12),m=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(p),g=n(15),v=i(g),y=n(16),b=n(31),x=n(491),w=i(x),M=n(492),S=i(M),E=n(493),k=i(E),T=n(494),C=i(T),P=n(59),O={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256},A={x:.006,y:.006,z:.006},R={x:2,y:2,z:2},L=function(){function t(){(0,h.default)(this,t),(0,P.loadObject)(k.default,C.default,A),(0,P.loadObject)(w.default,S.default,R),this.hash=-1,this.data={},this.laneHeading={},this.overlapMap={},this.initialized=!1,this.elementKindsDrawn=\"\"}return(0,f.default)(t,[{key:\"diffMapElements\",value:function(t,e){var n=this,i={},r=!0;for(var a in t){(function(a){if(!n.shouldDrawThisElementKind(a))return\"continue\";i[a]=[];for(var o=t[a],s=e[a],l=0;l=2){var i=Math.atan2(e[n-1].y-e[0].y,e[n-1].x-e[0].x);return 1.5*Math.PI+i}return NaN}},{key:\"getSignalPositionAndHeading\",value:function(t,e){var n=[];if(t.subsignal.forEach(function(t){t.location&&n.push(t.location)}),0===n.length&&(console.warn(\"Subsignal locations not found, use signal boundary instead.\"),n.push(t.boundary.point)),0===n.length)return console.warn(\"Unable to determine signal location, skip.\"),null;var i=void 0,r=t.overlapId.length;if(r>0){var a=t.overlapId[r-1].id;i=this.laneHeading[this.overlapMap[a]]}if(i||(console.warn(\"Unable to get traffic light heading, use orthogonal direction of StopLine.\"),i=this.getHeadingFromStopLine(t)),isNaN(i))return console.error(\"Error loading traffic light. Unable to determine heading.\"),null;var o=new m.Vector3(0,0,0);return o.x=_.meanBy(_.values(n),function(t){return t.x}),o.y=_.meanBy(_.values(n),function(t){return t.y}),o=e.applyOffset(o),{pos:o,heading:i}}},{key:\"drawStopLine\",value:function(t,e,n,i){t.forEach(function(t){t.segment.forEach(function(t){var r=n.applyOffsetToArray(t.lineSegment.point),a=(0,b.drawSegmentsFromPoints)(r,O.PURE_WHITE,5,3,!1);i.add(a),e.push(a)})})}},{key:\"addTrafficLight\",value:function(t,e,n){var i=[],r=this.getSignalPositionAndHeading(t,e);return r&&(0,P.loadObject)(k.default,C.default,A,function(t){t.rotation.x=Math.PI/2,t.rotation.y=r.heading,t.position.set(r.pos.x,r.pos.y,0),t.matrixAutoUpdate=!1,t.updateMatrix(),n.add(t),i.push(t)}),this.drawStopLine(t.stopLine,i,e,n),i}},{key:\"getStopSignPositionAndHeading\",value:function(t,e){var n=void 0;if(t.overlapId.length>0){var i=t.overlapId[0].id;n=this.laneHeading[this.overlapMap[i]]}if(n||(console.warn(\"Unable to get stop sign heading, use orthogonal direction of StopLine.\"),n=this.getHeadingFromStopLine(t)),isNaN(n))return console.error(\"Error loading stop sign. Unable to determine heading.\"),null;var r=t.stopLine[0].segment[0].lineSegment.point[0],a=new m.Vector3(r.x,r.y,0);return a=e.applyOffset(a),{pos:a,heading:n}}},{key:\"addStopSign\",value:function(t,e,n){var i=[],r=this.getStopSignPositionAndHeading(t,e);return r&&(0,P.loadObject)(w.default,S.default,R,function(t){t.rotation.x=Math.PI/2,t.rotation.y=r.heading+Math.PI/2,t.position.set(r.pos.x,r.pos.y,0),t.matrixAutoUpdate=!1,t.updateMatrix(),n.add(t),i.push(t)}),this.drawStopLine(t.stopLine,i,e,n),i}},{key:\"removeDrewObjects\",value:function(t,e){t&&t.forEach(function(t){e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()})}},{key:\"removeAllElements\",value:function(t){this.removeExpiredElements([],t)}},{key:\"removeExpiredElements\",value:function(t,e){var n=this,i={};for(var r in this.data)!function(r){var a=n.shouldDrawThisElementKind(r);i[r]=[];var o=n.data[r],s=t[r];o.forEach(function(t){a&&s&&s.includes(t.id.id)?i[r].push(t):(\"overlap\"!==r&&n.removeDrewObjects(t.drewObjects,e),\"lane\"===r&&delete n.laneHeading[t.id.id],\"overlap\"===r&&delete n.overlapMap[t.id.id])})}(r);this.data=i}},{key:\"appendMapData\",value:function(t,e,n){var i=[\"overlap\",\"lane\",\"junction\",\"road\",\"clearArea\",\"signal\",\"stopSign\",\"crosswalk\"],r=!0,a=!1,o=void 0;try{for(var l,c=(0,u.default)(i);!(r=(l=c.next()).done);r=!0){var h=l.value;if(t[h]){this.data[h]||(this.data[h]=[]);for(var d=0;d.2&&(v-=.7)})}}))}},{key:\"getPredCircle\",value:function(){var t=new u.MeshBasicMaterial({color:16777215,transparent:!1,opacity:.5}),e=(0,f.drawCircle)(.2,t);return this.predCircles.push(e),e}}]),t}();e.default=m},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(l),n(15)),c=i(u),h=n(31),d=(n(39),function(){function t(){(0,a.default)(this,t),this.routePaths=[],this.lastRoutingTime=-1}return(0,s.default)(t,[{key:\"update\",value:function(t,e,n,i){var r=this;this.routePaths.forEach(function(t){t.visible=c.default.options.showRouting}),this.lastRoutingTime!==t&&void 0!==e&&(this.lastRoutingTime=t,this.routePaths.forEach(function(t){i.remove(t),t.material.dispose(),t.geometry.dispose()}),e.forEach(function(t){var e=n.applyOffsetToArray(t.point),a=(0,h.drawThickBandFromPoints)(e,.3,16711680,.6,5);a.visible=c.default.options.showRouting,i.add(a),r.routePaths.push(a)}))}}]),t}());e.default=d},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12);!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(l);n(538);var u=n(526),c=i(u),h=n(28),d=i(h),f=n(15),p=(i(f),n(16)),m=i(p),g=n(31),v=function(){function t(){(0,a.default)(this,t),this.routePoints=[],this.inEditingMode=!1}return(0,s.default)(t,[{key:\"isInEditingMode\",value:function(){return this.inEditingMode}},{key:\"enableEditingMode\",value:function(t,e){this.inEditingMode=!0;t.fov=d.default.camera.Map.fov,t.near=d.default.camera.Map.near,t.far=d.default.camera.Map.far,t.updateProjectionMatrix(),m.default.requestMapElementIdsByRadius(this.EDITING_MAP_RADIUS)}},{key:\"disableEditingMode\",value:function(t){this.inEditingMode=!1,this.removeAllRoutePoints(t)}},{key:\"addRoutingPoint\",value:function(t,e,n){var i=e.applyOffset({x:t.x,y:t.y}),r=(0,g.drawImage)(c.default,3.5,3.5,i.x,i.y,.3);this.routePoints.push(r),n.add(r)}},{key:\"removeLastRoutingPoint\",value:function(t){var e=this.routePoints.pop();e&&(t.remove(e),e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose())}},{key:\"removeAllRoutePoints\",value:function(t){this.routePoints.forEach(function(e){t.remove(e),e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose()}),this.routePoints=[]}},{key:\"sendRoutingRequest\",value:function(t,e){if(0===this.routePoints.length)return alert(\"Please provide at least an end point.\"),!1;var n=this.routePoints.map(function(t){return t.position.z=0,e.applyOffset(t.position,!0)}),i=n.length>1?n[0]:e.applyOffset(t,!0),r=n[n.length-1],a=n.length>1?n.slice(1,-1):[];return m.default.requestRoute(i,a,r),!0}}]),t}();e.default=v,v.prototype.EDITING_MAP_RADIUS=1500},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(39),h={},d=!1,f=new u.FontLoader,p=\"fonts/gentilis_bold.typeface.json\";f.load(p,function(t){h.gentilis_bold=t,d=!0},function(t){console.log(p+t.loaded/t.total*100+\"% loaded\")},function(t){console.log(\"An error happened when loading \"+p)});var m=function(){function t(){(0,a.default)(this,t),this.charMeshes={},this.charPointers={}}return(0,s.default)(t,[{key:\"reset\",value:function(){this.charPointers={}}},{key:\"composeText\",value:function(t){if(!d)return null;for(var e=c.map(t,function(t){return t.charCodeAt(0)-32}),n=new u.Object3D,i=0;i0?this.charMeshes[r][0].clone():this.drawChar3D(t[i]),this.charMeshes[r].push(o)),o.position.set(.4*(i-e.length/2),0,0),this.charPointers[r]++,n.add(o)}return n}},{key:\"drawChar3D\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.gentilis_bold,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16771584,a=new u.TextGeometry(t,{font:e,size:n,height:i}),o=new u.MeshBasicMaterial({color:r});return new u.Mesh(a,o)}}]),t}();e.default=m},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=new d.default(t);for(var i in e)n.delete(i);return n}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var a=n(40),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(243),d=i(h),f=n(12),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(f),m=n(28),g=i(m),v=n(16),y=(i(v),n(59)),b=function(){function t(){(0,l.default)(this,t),this.mesh=!0,this.type=\"tile\",this.hash=-1,this.currentTiles={},this.initialized=!1,this.range=g.default.ground.tileRange,this.metadata=null,this.mapId=null,this.mapUrlPrefix=null}return(0,c.default)(t,[{key:\"initialize\",value:function(t,e){this.metadata={tileLength:e.tile*e.mpp,left:e.left,top:e.top,numCols:e.wnum,numRows:e.hnum,mpp:e.mpp,tile:e.tile,imageUrl:e.image_url},this.mapId=e.mapid,this.mapUrlPrefix=this.metadata.imageUrl?this.metadata.imageUrl+\"/\"+this.mapId:t+\"/map/getMapPic\",this.initialized=!0}},{key:\"removeDrewObject\",value:function(t,e){var n=this.currentTiles[t];n&&(e.remove(n),n.geometry&&n.geometry.dispose(),n.material&&n.material.dispose()),delete this.currentTiles[t]}},{key:\"appendTiles\",value:function(t,e,n,i,r){var a=this;if(!(e<0||e>this.metadata.numCols||t<0||t>this.metadata.numRows)){var o=this.metadata.imageUrl?this.mapUrlPrefix+\"/\"+this.metadata.mpp+\"_\"+t+\"_\"+e+\"_\"+this.metadata.tile+\".png\":this.mapUrlPrefix+\"?mapId=\"+this.mapId+\"&i=\"+t+\"&j=\"+e,s=i.applyOffset({x:this.metadata.left+(t+.5)*this.metadata.tileLength,y:this.metadata.top-(e+.5)*this.metadata.tileLength,z:0});(0,y.loadTexture)(o,function(t){var e=new p.Mesh(new p.PlaneGeometry(1,1),new p.MeshBasicMaterial({map:t}));e.position.set(s.x,s.y,s.z),e.scale.set(a.metadata.tileLength,a.metadata.tileLength,1),e.overdraw=!1,a.currentTiles[n]=e,r.add(e)})}}},{key:\"removeExpiredTiles\",value:function(t,e){for(var n in this.currentTiles)t.has(n)||this.removeDrewObject(n,e)}},{key:\"updateIndex\",value:function(t,e,n,i){if(t!==this.hash){this.hash=t,this.removeExpiredTiles(e,i);var a=r(e,this.currentTiles);if(!_.isEmpty(a)||!this.initialized){var s=!0,l=!1,u=void 0;try{for(var c,h=(0,o.default)(a);!(s=(c=h.next()).done);s=!0){var d=c.value;this.currentTiles[d]=null;var f=d.split(\",\"),p=parseInt(f[0]),m=parseInt(f[1]);this.appendTiles(p,m,d,n,i)}}catch(t){l=!0,u=t}finally{try{!s&&h.return&&h.return()}finally{if(l)throw u}}}}}},{key:\"update\",value:function(t,e,n){if(e.isInitialized()&&this.initialized){for(var i=t.autoDrivingCar.positionX,r=t.autoDrivingCar.positionY,a=Math.floor((i-this.metadata.left)/this.metadata.tileLength),o=Math.floor((this.metadata.top-r)/this.metadata.tileLength),s=new d.default,l=\"\",u=a-this.range;u<=a+this.range;u++)for(var c=o-this.range;c<=o+this.range;c++){var h=u+\",\"+c;s.add(h),l+=h}this.updateIndex(l,s,e,n)}}}]),t}();e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!t)return[];for(var n=[],i=0;i0){if(Math.abs(n[n.length-1].x-a.x)+Math.abs(n[n.length-1].y-a.y)0&&n=80;i?e.error=[]:r&&e.error.shift();(0===e.error.length||n!==e.error[e.error.length-1].x)&&e.error.push({x:n,y:t.stationError})}}},{key:\"updateSteerCurve\",value:function(t,e){var n=e.steeringAngle/e.steeringRatio,i=null;i=Math.abs(Math.tan(n))>1e-4?e.length/Math.tan(n):1e5;var r=e.heading,a=Math.abs(i),o=7200/(2*Math.PI*a)*Math.PI/180,s=null,l=null,u=null,c=null;i>=0?(u=Math.PI/2+r,c=r-Math.PI/2,s=0,l=o):(u=r-Math.PI/2,c=Math.PI/2+r,s=-o,l=0);var h=e.positionX+Math.cos(u)*a,d=e.positionY+Math.sin(u)*a,f=new v.EllipseCurve(h,d,a,a,s,l,!1,c);t.steerCurve=f.getPoints(25)}},{key:\"interpolateValueByCurrentTime\",value:function(t,e,n){if(\"timestampSec\"===n)return e;var i=t.map(function(t){return t.timestampSec}),r=t.map(function(t){return t[n]});return new v.LinearInterpolant(i,r,1,[]).evaluate(e)[0]}},{key:\"updateGraph\",value:function(t,e,n,i,r){var a=n.timestampSec,o=t.target.length>0&&a=80;if(o?(t.target=[],t.real=[],t.autoModeZone=[]):s&&(t.target.shift(),t.real.shift(),t.autoModeZone.shift()),0===t.target.length||a!==t.target[t.target.length-1].t){t.plan=e.map(function(t){return{x:t[i],y:t[r]}}),t.target.push({x:this.interpolateValueByCurrentTime(e,a,i),y:this.interpolateValueByCurrentTime(e,a,r),t:a}),t.real.push({x:n[i],y:n[r]});var l=\"DISENGAGE_NONE\"===n.disengageType;t.autoModeZone.push({x:n[i],y:l?n[r]:void 0})}}},{key:\"update\",value:function(t){var e=t.planningTrajectory,n=t.autoDrivingCar;e&&n&&(this.updateGraph(this.data.speedGraph,e,n,\"timestampSec\",\"speed\"),this.updateGraph(this.data.accelerationGraph,e,n,\"timestampSec\",\"speedAcceleration\"),this.updateGraph(this.data.curvatureGraph,e,n,\"timestampSec\",\"kappa\"),this.updateGraph(this.data.trajectoryGraph,e,n,\"positionX\",\"positionY\"),this.updateSteerCurve(this.data.trajectoryGraph,n),this.data.trajectoryGraph.pose[0].x=n.positionX,this.data.trajectoryGraph.pose[0].y=n.positionY,this.data.trajectoryGraph.pose[0].rotation=n.heading,this.updateTime(t.planningTime)),t.controlData&&this.updateStationErrorGraph(t.controlData)}}]),t}(),s=a(o.prototype,\"lastUpdatedTime\",[g.observable],{enumerable:!0,initializer:function(){return null}}),a(o.prototype,\"updateTime\",[g.action],(0,h.default)(o.prototype,\"updateTime\"),o.prototype),o);e.default=y},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,m.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o,s,l,u,c,h,d,f,p=n(19),m=i(p),g=n(25),v=i(g),y=n(32),b=i(y),x=n(0),_=i(x),w=n(1),M=i(w),S=n(23),E=n(16),k=i(E),T=(o=function(){function t(){(0,_.default)(this,t),this.modes={},r(this,\"currentMode\",s,this),this.vehicles=[],r(this,\"currentVehicle\",l,this),this.maps=[],r(this,\"currentMap\",u,this),r(this,\"moduleStatus\",c,this),r(this,\"hardwareStatus\",h,this),r(this,\"enableStartAuto\",d,this),this.displayName={},r(this,\"dockerImage\",f,this)}return(0,M.default)(t,[{key:\"initialize\",value:function(t){var e=this;t.dockerImage&&(this.dockerImage=t.dockerImage),t.modes&&(this.modes=t.modes),this.vehicles=(0,b.default)(t.availableVehicles).sort().map(function(t){return t}),this.maps=(0,b.default)(t.availableMaps).sort().map(function(t){return t}),(0,b.default)(t.modules).forEach(function(n){e.moduleStatus.set(n,!1),e.displayName[n]=t.modules[n].displayName}),(0,b.default)(t.hardware).forEach(function(n){e.hardwareStatus.set(n,\"NOT_READY\"),e.displayName[n]=t.hardware[n].displayName})}},{key:\"updateStatus\",value:function(t){if(t.currentMode&&(this.currentMode=t.currentMode),t.currentMap&&(this.currentMap=t.currentMap),t.currentVehicle&&(this.currentVehicle=t.currentVehicle),t.systemStatus){if(t.systemStatus.modules)for(var e in t.systemStatus.modules)this.moduleStatus.set(e,t.systemStatus.modules[e].processStatus.running);if(t.systemStatus.hardware)for(var n in t.systemStatus.hardware)this.hardwareStatus.set(n,t.systemStatus.hardware[n].summary)}}},{key:\"update\",value:function(t){this.enableStartAuto=\"READY_TO_ENGAGE\"===t.engageAdvice}},{key:\"toggleModule\",value:function(t){this.moduleStatus.set(t,!this.moduleStatus.get(t));var e=this.moduleStatus.get(t)?\"start\":\"stop\";k.default.executeModuleCommand(t,e)}},{key:\"showRTKCommands\",get:function(){return\"RTK Record / Replay\"===this.currentMode}},{key:\"inNavigationMode\",get:function(){return\"Navigation\"===this.currentMode}}]),t}(),s=a(o.prototype,\"currentMode\",[S.observable],{enumerable:!0,initializer:function(){return\"none\"}}),l=a(o.prototype,\"currentVehicle\",[S.observable],{enumerable:!0,initializer:function(){return\"none\"}}),u=a(o.prototype,\"currentMap\",[S.observable],{enumerable:!0,initializer:function(){return\"none\"}}),c=a(o.prototype,\"moduleStatus\",[S.observable],{enumerable:!0,initializer:function(){return S.observable.map()}}),h=a(o.prototype,\"hardwareStatus\",[S.observable],{enumerable:!0,initializer:function(){return S.observable.map()}}),d=a(o.prototype,\"enableStartAuto\",[S.observable],{enumerable:!0,initializer:function(){return!1}}),f=a(o.prototype,\"dockerImage\",[S.observable],{enumerable:!0,initializer:function(){return\"\"}}),a(o.prototype,\"initialize\",[S.action],(0,v.default)(o.prototype,\"initialize\"),o.prototype),a(o.prototype,\"updateStatus\",[S.action],(0,v.default)(o.prototype,\"updateStatus\"),o.prototype),a(o.prototype,\"update\",[S.action],(0,v.default)(o.prototype,\"update\"),o.prototype),a(o.prototype,\"toggleModule\",[S.action],(0,v.default)(o.prototype,\"toggleModule\"),o.prototype),a(o.prototype,\"showRTKCommands\",[S.computed],(0,v.default)(o.prototype,\"showRTKCommands\"),o.prototype),a(o.prototype,\"inNavigationMode\",[S.computed],(0,v.default)(o.prototype,\"inNavigationMode\"),o.prototype),o);e.default=T},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,b.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}function o(t){return 10*Math.round(t/10)}function s(t){switch(t){case\"DISENGAGE_MANUAL\":return\"MANUAL\";case\"DISENGAGE_NONE\":return\"AUTO\";case\"DISENGAGE_EMERGENCY\":return\"DISENGAGED\";case\"DISENGAGE_AUTO_STEER_ONLY\":return\"AUTO STEER\";case\"DISENGAGE_AUTO_SPEED_ONLY\":return\"AUTO SPEED\";case\"DISENGAGE_CHASSIS_ERROR\":return\"CHASSIS ERROR\";default:return\"?\"}}function l(t){return\"DISENGAGE_NONE\"===t||\"DISENGAGE_AUTO_STEER_ONLY\"===t||\"DISENGAGE_AUTO_SPEED_ONLY\"===t}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var u,c,h,d,f,p,m,g,v,y=n(19),b=i(y),x=n(25),_=i(x),w=n(0),M=i(w),S=n(1),E=i(S),k=n(23),T=(u=function(){function t(){(0,M.default)(this,t),r(this,\"throttlePercent\",c,this),r(this,\"brakePercent\",h,this),r(this,\"speed\",d,this),r(this,\"steeringAngle\",f,this),r(this,\"steeringPercentage\",p,this),r(this,\"drivingMode\",m,this),r(this,\"isAutoMode\",g,this),r(this,\"turnSignal\",v,this)}return(0,E.default)(t,[{key:\"update\",value:function(t){t.autoDrivingCar&&(void 0!==t.autoDrivingCar.throttlePercentage&&(this.throttlePercent=o(t.autoDrivingCar.throttlePercentage)),void 0!==t.autoDrivingCar.brakePercentage&&(this.brakePercent=o(t.autoDrivingCar.brakePercentage)),void 0!==t.autoDrivingCar.speed&&(this.speed=t.autoDrivingCar.speed),void 0===t.autoDrivingCar.steeringPercentage||isNaN(t.autoDrivingCar.steeringPercentage)||(this.steeringPercentage=Math.round(t.autoDrivingCar.steeringPercentage)),void 0===t.autoDrivingCar.steeringAngle||isNaN(t.autoDrivingCar.steeringAngle)||(this.steeringAngle=-Math.round(180*t.autoDrivingCar.steeringAngle/Math.PI)),void 0!==t.autoDrivingCar.disengageType&&(this.drivingMode=s(t.autoDrivingCar.disengageType),this.isAutoMode=l(t.autoDrivingCar.disengageType)),void 0!==t.autoDrivingCar.currentSignal&&(this.turnSignal=t.autoDrivingCar.currentSignal))}}]),t}(),c=a(u.prototype,\"throttlePercent\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),h=a(u.prototype,\"brakePercent\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),d=a(u.prototype,\"speed\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),f=a(u.prototype,\"steeringAngle\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),p=a(u.prototype,\"steeringPercentage\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),m=a(u.prototype,\"drivingMode\",[k.observable],{enumerable:!0,initializer:function(){return\"?\"}}),g=a(u.prototype,\"isAutoMode\",[k.observable],{enumerable:!0,initializer:function(){return!1}}),v=a(u.prototype,\"turnSignal\",[k.observable],{enumerable:!0,initializer:function(){return\"\"}}),a(u.prototype,\"update\",[k.action],(0,_.default)(u.prototype,\"update\"),u.prototype),u);e.default=T},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,h.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o,s,l,u,c=n(19),h=i(c),d=n(25),f=i(d),p=n(0),m=i(p),g=n(1),v=i(g),y=n(23),b=(o=function(){function t(){(0,m.default)(this,t),r(this,\"lastUpdateTimestamp\",s,this),r(this,\"hasActiveNotification\",l,this),r(this,\"items\",u,this),this.refreshTimer=null}return(0,v.default)(t,[{key:\"startRefresh\",value:function(){var t=this;this.clearRefreshTimer(),this.refreshTimer=setInterval(function(){Date.now()-t.lastUpdateTimestamp>6e3&&(t.setHasActiveNotification(!1),t.clearRefreshTimer())},500)}},{key:\"clearRefreshTimer\",value:function(){null!==this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}},{key:\"setHasActiveNotification\",value:function(t){this.hasActiveNotification=t}},{key:\"update\",value:function(t){if(t.monitor){var e=t.monitor,n=e.item,i=e.header,r=Math.floor(1e3*i.timestampSec);r>this.lastUpdateTimestamp&&(this.hasActiveNotification=!0,this.lastUpdateTimestamp=r,this.items.replace(n),this.startRefresh())}}},{key:\"insert\",value:function(t,e,n){var i=[];i.push({msg:e,logLevel:t});for(var r=0;r10||t<-10?100*t/Math.abs(t):t}},{key:\"extractDataPoints\",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!t)return[];var a=t.map(function(t){return{x:t[e]+r,y:t[n]}});return i&&t.length&&a.push({x:t[0][e],y:t[0][n]}),a}},{key:\"updateSLFrame\",value:function(t){var e=this.data.slGraph,n=t[0].sampledS;e.mapLowerBound=this.generateDataPoints(n,t[0].mapLowerBound,this.transformMapBound),e.mapUpperBound=this.generateDataPoints(n,t[0].mapUpperBound,this.transformMapBound),e.staticObstacleLowerBound=this.generateDataPoints(n,t[0].staticObstacleLowerBound),e.staticObstacleUpperBound=this.generateDataPoints(n,t[0].staticObstacleUpperBound),e.dynamicObstacleLowerBound=this.generateDataPoints(n,t[0].dynamicObstacleLowerBound),e.dynamicObstacleUpperBound=this.generateDataPoints(n,t[0].dynamicObstacleUpperBound),e.pathLine=this.extractDataPoints(t[0].slPath,\"s\",\"l\");var i=t[1].aggregatedBoundaryS;e.aggregatedBoundaryLow=this.generateDataPoints(i,t[1].aggregatedBoundaryLow),e.aggregatedBoundaryHigh=this.generateDataPoints(i,t[1].aggregatedBoundaryHigh)}},{key:\"updateSTGraph\",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value;this.data.stGraph[o.name]={obstaclesBoundary:{}};var s=this.data.stGraph[o.name];if(o.boundary){var l=!0,u=!1,c=void 0;try{for(var h,d=(0,f.default)(o.boundary);!(l=(h=d.next()).done);l=!0){var p=h.value,m=p.type.substring(\"ST_BOUNDARY_TYPE_\".length),g=p.name+\"_\"+m;s.obstaclesBoundary[g]=this.extractDataPoints(p.point,\"t\",\"s\",!0)}}catch(t){u=!0,c=t}finally{try{!l&&d.return&&d.return()}finally{if(u)throw c}}}s.curveLine=this.extractDataPoints(o.speedProfile,\"t\",\"s\"),o.kernelCruiseRef&&(s.kernelCruise=this.generateDataPoints(o.kernelCruiseRef.t,o.kernelCruiseRef.cruiseLineS)),o.kernelFollowRef&&(s.kernelFollow=this.generateDataPoints(o.kernelFollowRef.t,o.kernelFollowRef.followLineS))}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:\"updateSTSpeedGraph\",value:function(t){var e=this,n=!0,i=!1,r=void 0;try{for(var a,o=(0,f.default)(t);!(n=(a=o.next()).done);n=!0){var s=a.value;this.data.stSpeedGraph[s.name]={};var l=this.data.stSpeedGraph[s.name];l.limit=this.extractDataPoints(s.speedLimit,\"s\",\"v\"),l.planned=this.extractDataPoints(s.speedProfile,\"s\",\"v\"),s.speedConstraint&&function(){var t=s.speedProfile.map(function(t){return t.t}),n=s.speedProfile.map(function(t){return t.s}),i=new b.LinearInterpolant(t,n,1,[]),r=s.speedConstraint.t.map(function(t){return i.evaluate(t)[0]});l.lowerConstraint=e.generateDataPoints(r,s.speedConstraint.lowerBound),l.upperConstraint=e.generateDataPoints(r,s.speedConstraint.upperBound)}()}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}},{key:\"updateSpeed\",value:function(t,e){var n=this.data.speedGraph;if(t){var i=!0,r=!1,a=void 0;try{for(var o,s=(0,f.default)(t);!(i=(o=s.next()).done);i=!0){var l=o.value;n[l.name]=this.extractDataPoints(l.speedPoint,\"t\",\"v\")}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}}e&&(n.finalSpeed=this.extractDataPoints(e,\"timestampSec\",\"speed\",!1,-this.planningTime))}},{key:\"updateAccelerationGraph\",value:function(t){var e=this.data.accelerationGraph;t&&(e.acceleration=this.extractDataPoints(t,\"timestampSec\",\"speedAcceleration\",!1,-this.planningTime))}},{key:\"updateThetaGraph\",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s=\"planning_reference_line\"===o.name?\"ReferenceLine\":o.name;this.data.thetaGraph[s]=this.extractDataPoints(o.pathPoint,\"s\",\"theta\")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:\"updateKappaGraph\",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s=\"planning_reference_line\"===o.name?\"ReferenceLine\":o.name;this.data.kappaGraph[s]=this.extractDataPoints(o.pathPoint,\"s\",\"kappa\")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:\"updateDkappaGraph\",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s=\"planning_reference_line\"===o.name?\"ReferenceLine\":o.name;this.data.dkappaGraph[s]=this.extractDataPoints(o.pathPoint,\"s\",\"dkappa\")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:\"updateLatencyGraph\",value:function(t,e){for(var n in this.latencyGraph){var i=this.latencyGraph[n];if(i.length>0){var r=i[0].x,a=i[i.length-1].x,o=t-r;t3e5&&i.shift()}0!==i.length&&i[i.length-1].x===t||i.push({x:t,y:e.planning})}}},{key:\"updateDpPolyGraph\",value:function(t){var e=this.data.dpPolyGraph;if(t.sampleLayer){e.sampleLayer=[];var n=!0,i=!1,r=void 0;try{for(var a,o=(0,f.default)(t.sampleLayer);!(n=(a=o.next()).done);n=!0){a.value.slPoint.map(function(t){var n=t.s,i=t.l;e.sampleLayer.push({x:n,y:i})})}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}t.minCostPoint&&(e.minCostPoint=this.extractDataPoints(t.minCostPoint,\"s\",\"l\"))}},{key:\"update\",value:function(t){var e=t.planningData;if(e){if(this.planningTime===t.planningTime)return;this.data=this.initData(),e.slFrame&&e.slFrame.length>=2&&this.updateSLFrame(e.slFrame),e.stGraph&&(this.updateSTGraph(e.stGraph),this.updateSTSpeedGraph(e.stGraph)),e.speedPlan&&t.planningTrajectory&&this.updateSpeed(e.speedPlan,t.planningTrajectory),t.planningTrajectory&&this.updateAccelerationGraph(t.planningTrajectory),e.path&&(this.updateKappaGraph(e.path),this.updateDkappaGraph(e.path),this.updateThetaGraph(e.path)),e.dpPolyGraph&&this.updateDpPolyGraph(e.dpPolyGraph),t.latency&&this.updateLatencyGraph(t.planningTime,t.latency),this.updatePlanningTime(t.planningTime)}}}]),t}(),s=a(o.prototype,\"planningTime\",[y.observable],{enumerable:!0,initializer:function(){return null}}),a(o.prototype,\"updatePlanningTime\",[y.action],(0,h.default)(o.prototype,\"updatePlanningTime\"),o.prototype),o);e.default=x},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,p.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o,s,l,u,c,h,d,f=n(19),p=i(f),m=n(25),g=i(m),v=n(0),y=i(v),b=n(1),x=i(b),_=n(23);n(542);var w=(o=function(){function t(){(0,y.default)(this,t),this.FPS=10,this.msPerFrame=100,this.jobId=null,this.mapId=null,r(this,\"numFrames\",s,this),r(this,\"requestedFrame\",l,this),r(this,\"retrievedFrame\",u,this),r(this,\"isPlaying\",c,this),r(this,\"isSeeking\",h,this),r(this,\"seekingFrame\",d,this)}return(0,x.default)(t,[{key:\"setMapId\",value:function(t){this.mapId=t}},{key:\"setJobId\",value:function(t){this.jobId=t}},{key:\"setNumFrames\",value:function(t){this.numFrames=parseInt(t)}},{key:\"setPlayRate\",value:function(t){if(\"number\"==typeof t&&t>0){var e=1/this.FPS*1e3;this.msPerFrame=e/t}}},{key:\"initialized\",value:function(){return this.numFrames&&null!==this.jobId&&null!==this.mapId}},{key:\"hasNext\",value:function(){return this.initialized()&&this.requestedFrame0&&t<=this.numFrames&&(this.seekingFrame=t,this.requestedFrame=t-1,this.isSeeking=!0)}},{key:\"resetFrame\",value:function(){this.requestedFrame=0,this.retrievedFrame=0,this.seekingFrame=1}},{key:\"shouldProcessFrame\",value:function(t){return!(!t||!t.sequenceNum||this.seekingFrame!==t.sequenceNum||!this.isPlaying&&!this.isSeeking)&&(this.retrievedFrame=t.sequenceNum,this.isSeeking=!1,this.seekingFrame++,!0)}},{key:\"currentFrame\",get:function(){return this.retrievedFrame}},{key:\"replayComplete\",get:function(){return this.seekingFrame>this.numFrames}}]),t}(),s=a(o.prototype,\"numFrames\",[_.observable],{enumerable:!0,initializer:function(){return 0}}),l=a(o.prototype,\"requestedFrame\",[_.observable],{enumerable:!0,initializer:function(){return 0}}),u=a(o.prototype,\"retrievedFrame\",[_.observable],{enumerable:!0,initializer:function(){return 0}}),c=a(o.prototype,\"isPlaying\",[_.observable],{enumerable:!0,initializer:function(){return!1}}),h=a(o.prototype,\"isSeeking\",[_.observable],{enumerable:!0,initializer:function(){return!0}}),d=a(o.prototype,\"seekingFrame\",[_.observable],{enumerable:!0,initializer:function(){return 1}}),a(o.prototype,\"next\",[_.action],(0,g.default)(o.prototype,\"next\"),o.prototype),a(o.prototype,\"currentFrame\",[_.computed],(0,g.default)(o.prototype,\"currentFrame\"),o.prototype),a(o.prototype,\"replayComplete\",[_.computed],(0,g.default)(o.prototype,\"replayComplete\"),o.prototype),a(o.prototype,\"setPlayAction\",[_.action],(0,g.default)(o.prototype,\"setPlayAction\"),o.prototype),a(o.prototype,\"seekFrame\",[_.action],(0,g.default)(o.prototype,\"seekFrame\"),o.prototype),a(o.prototype,\"resetFrame\",[_.action],(0,g.default)(o.prototype,\"resetFrame\"),o.prototype),a(o.prototype,\"shouldProcessFrame\",[_.action],(0,g.default)(o.prototype,\"shouldProcessFrame\"),o.prototype),o);e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,c.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o,s,l,u=n(19),c=i(u),h=n(25),d=i(h),f=n(0),p=i(f),m=n(1),g=i(m),v=n(23),y=n(35),b=i(y),x=n(58),w=i(x),M=(o=function(){function t(){(0,p.default)(this,t),r(this,\"defaultRoutingEndPoint\",s,this),r(this,\"currentPOI\",l,this)}return(0,g.default)(t,[{key:\"updateDefaultRoutingEndPoint\",value:function(t){if(void 0!==t.poi){this.defaultRoutingEndPoint={};for(var e=0;e150&&console.log(\"Last sim_world_update took \"+(t.timestamp-this.lastUpdateTimestamp)+\"ms\"),this.lastUpdateTimestamp=t.timestamp,-1!==this.lastSeqNum&&t.world.sequenceNum>this.lastSeqNum+1&&console.debug(\"Last seq: \"+this.lastSeqNum+\". New seq: \"+t.world.sequenceNum+\".\"),this.lastSeqNum=t.world.sequenceNum}},{key:\"startPlayback\",value:function(t){var e=this;clearInterval(this.requestTimer),this.requestTimer=setInterval(function(){e.websocket.readyState===e.websocket.OPEN&&h.default.playback.initialized()&&(e.requestSimulationWorld(h.default.playback.jobId,h.default.playback.next()),h.default.playback.hasNext()||(clearInterval(e.requestTimer),e.requestTimer=null))},t/2),clearInterval(this.processTimer),this.processTimer=setInterval(function(){if(h.default.playback.initialized()){var t=100*h.default.playback.seekingFrame;t in e.frameData&&e.processSimWorld(e.frameData[t]),h.default.playback.replayComplete&&(clearInterval(e.processTimer),e.processTimer=null)}},t)}},{key:\"pausePlayback\",value:function(){clearInterval(this.requestTimer),clearInterval(this.processTimer),this.requestTimer=null,this.processTimer=null}},{key:\"requestGroundMeta\",value:function(t){this.websocket.send((0,a.default)({type:\"RetrieveGroundMeta\",mapId:t}))}},{key:\"processSimWorld\",value:function(t){var e=\"string\"==typeof t.world?JSON.parse(t.world):t.world;h.default.playback.shouldProcessFrame(e)&&(h.default.updateTimestamp(t.timestamp),f.default.maybeInitializeOffest(e.autoDrivingCar.positionX,e.autoDrivingCar.positionY),f.default.updateWorld(e,t.planningData),h.default.meters.update(e),h.default.monitor.update(e),h.default.trafficSignal.update(e))}},{key:\"requstFrameCount\",value:function(t){this.websocket.send((0,a.default)({type:\"RetrieveFrameCount\",jobId:t}))}},{key:\"requestSimulationWorld\",value:function(t,e){var n=100*e;n in this.frameData?h.default.playback.isSeeking&&this.processSimWorld(this.frameData[n]):this.websocket.send((0,a.default)({type:\"RequestSimulationWorld\",jobId:t,frameId:e}))}}]),t}();e.default=p},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(60),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(15),h=i(c),d=n(35),f=i(d),p=n(78),m=i(p),g=function(){function t(e){(0,s.default)(this,t),this.serverAddr=e,this.websocket=null,this.worker=new m.default}return(0,u.default)(t,[{key:\"initialize\",value:function(){var t=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType=\"arraybuffer\"}catch(e){return console.error(\"Failed to establish a connection: \"+e),void setTimeout(function(){t.initialize()},1e3)}this.websocket.onmessage=function(e){t.worker.postMessage({source:\"point_cloud\",data:e.data})},this.websocket.onclose=function(e){console.log(\"WebSocket connection closed with code: \"+e.code),t.initialize()},this.worker.onmessage=function(t){\"PointCloudStatus\"===t.data.type?(h.default.setOptionStatus(\"showPointCloud\",t.data.enabled),!1===h.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})):!0===h.default.options.showPointCloud&&void 0!==t.data.num&&f.default.updatePointCloud(t.data)},clearInterval(this.timer),this.timer=setInterval(function(){t.websocket.readyState===t.websocket.OPEN&&!0===h.default.options.showPointCloud&&t.websocket.send((0,a.default)({type:\"RequestPointCloud\"}))},100)}},{key:\"togglePointCloud\",value:function(t){this.websocket.send((0,a.default)({type:\"TogglePointCloud\",enable:t})),!1===h.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})}}]),t}();e.default=g},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(60),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(15),h=i(c),d=n(35),f=i(d),p=n(58),m=i(p),g=n(78),v=i(g),y=function(){function t(e){(0,s.default)(this,t),this.serverAddr=e,this.websocket=null,this.simWorldUpdatePeriodMs=100,this.simWorldLastUpdateTimestamp=0,this.mapUpdatePeriodMs=1e3,this.mapLastUpdateTimestamp=0,this.updatePOI=!0,this.routingTime=void 0,this.currentMode=null,this.worker=new v.default}return(0,u.default)(t,[{key:\"initialize\",value:function(){var t=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType=\"arraybuffer\"}catch(e){return console.error(\"Failed to establish a connection: \"+e),void setTimeout(function(){t.initialize()},1e3)}this.websocket.onmessage=function(e){t.worker.postMessage({source:\"realtime\",data:e.data})},this.worker.onmessage=function(e){var n=e.data;switch(n.type){case\"HMIConfig\":h.default.hmi.initialize(n.data);break;case\"HMIStatus\":h.default.hmi.updateStatus(n.data),f.default.updateGroundImage(h.default.hmi.currentMap);break;case\"SimControlStatus\":h.default.setOptionStatus(\"simControlEnabled\",n.enabled);break;case\"SimWorldUpdate\":t.checkMessage(n);var i=t.currentMode!==h.default.hmi.currentMode;t.currentMode=h.default.hmi.currentMode,h.default.hmi.inNavigationMode?(m.default.isInitialized()&&m.default.update(n),n.autoDrivingCar.positionX=0,n.autoDrivingCar.positionY=0,n.autoDrivingCar.heading=0,f.default.coordinates.setSystem(\"FLU\"),t.mapUpdatePeriodMs=100):(f.default.coordinates.setSystem(\"ENU\"),t.mapUpdatePeriodMs=1e3),h.default.updateTimestamp(n.timestamp),h.default.updateModuleDelay(n),f.default.maybeInitializeOffest(n.autoDrivingCar.positionX,n.autoDrivingCar.positionY,i),h.default.meters.update(n),h.default.monitor.update(n),h.default.trafficSignal.update(n),h.default.hmi.update(n),f.default.updateWorld(n),t.updateMapIndex(n),h.default.options.showPNCMonitor&&(h.default.planningData.update(n),h.default.controlData.update(n)),t.routingTime!==n.routingTime&&(t.requestRoutePath(),t.routingTime=n.routingTime);break;case\"MapElementIds\":f.default.updateMapIndex(n.mapHash,n.mapElementIds,n.mapRadius);break;case\"DefaultEndPoint\":h.default.routeEditingManager.updateDefaultRoutingEndPoint(n);break;case\"RoutePath\":f.default.updateRouting(n.routingTime,n.routePath)}},this.websocket.onclose=function(e){console.log(\"WebSocket connection closed, close_code: \"+e.code),t.initialize()},clearInterval(this.timer),this.timer=setInterval(function(){if(t.websocket.readyState===t.websocket.OPEN){t.updatePOI&&(t.requestDefaultRoutingEndPoint(),t.updatePOI=!1);var e=h.default.options.showPNCMonitor;t.websocket.send((0,a.default)({type:\"RequestSimulationWorld\",planning:e}))}},this.simWorldUpdatePeriodMs)}},{key:\"updateMapIndex\",value:function(t){var e=new Date,n=e-this.mapLastUpdateTimestamp;t.mapHash&&n>=this.mapUpdatePeriodMs&&(f.default.updateMapIndex(t.mapHash,t.mapElementIds,t.mapRadius),this.mapLastUpdateTimestamp=e)}},{key:\"checkMessage\",value:function(t){var e=(new Date).getTime(),n=e-this.simWorldLastUpdateTimestamp;0!==this.simWorldLastUpdateTimestamp&&n>250&&console.log(\"Last sim_world_update took \"+n+\"ms\"),this.simWorldLastUpdateTimestamp=e}},{key:\"requestMapElementIdsByRadius\",value:function(t){this.websocket.send((0,a.default)({type:\"RetrieveMapElementIdsByRadius\",radius:t}))}},{key:\"requestRoute\",value:function(t,e,n){this.websocket.send((0,a.default)({type:\"SendRoutingRequest\",start:t,end:n,waypoint:e}))}},{key:\"requestDefaultRoutingEndPoint\",value:function(){this.websocket.send((0,a.default)({type:\"GetDefaultEndPoint\"}))}},{key:\"resetBackend\",value:function(){this.websocket.send((0,a.default)({type:\"Reset\"}))}},{key:\"dumpMessages\",value:function(){this.websocket.send((0,a.default)({type:\"Dump\"}))}},{key:\"changeSetupMode\",value:function(t){this.websocket.send((0,a.default)({type:\"ChangeMode\",new_mode:t}))}},{key:\"changeMap\",value:function(t){this.websocket.send((0,a.default)({type:\"ChangeMap\",new_map:t})),this.updatePOI=!0}},{key:\"changeVehicle\",value:function(t){this.websocket.send((0,a.default)({type:\"ChangeVehicle\",new_vehicle:t}))}},{key:\"executeModeCommand\",value:function(t){this.websocket.send((0,a.default)({type:\"ExecuteModeCommand\",command:t}))}},{key:\"executeModuleCommand\",value:function(t,e){this.websocket.send((0,a.default)({type:\"ExecuteModuleCommand\",module:t,command:e}))}},{key:\"executeToolCommand\",value:function(t,e){this.websocket.send((0,a.default)({type:\"ExecuteToolCommand\",tool:t,command:e}))}},{key:\"changeDrivingMode\",value:function(t){this.websocket.send((0,a.default)({type:\"ChangeDrivingMode\",new_mode:t}))}},{key:\"submitDriveEvent\",value:function(t,e){this.websocket.send((0,a.default)({type:\"SubmitDriveEvent\",event_time_ms:t,event_msg:e}))}},{key:\"toggleSimControl\",value:function(t){this.websocket.send((0,a.default)({type:\"ToggleSimControl\",enable:t}))}},{key:\"requestRoutePath\",value:function(){this.websocket.send((0,a.default)({type:\"RequestRoutePath\"}))}},{key:\"publishNavigationInfo\",value:function(t){this.websocket.send(t)}}]),t}();e.default=y},function(t,e,n){\"use strict\";function i(t,e){return(0,o.default)(s,l,[e,t])}function r(t,e){return(0,o.default)(l,s,[t,e])}Object.defineProperty(e,\"__esModule\",{value:!0}),e.WGS84ToUTM=i,e.UTMToWGS84=r;var a=n(427),o=function(t){return t&&t.__esModule?t:{default:t}}(a),s=\"+proj=longlat +ellps=WGS84\",l=\"+proj=utm +zone=10 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs \"},function(t,e,n){e=t.exports=n(140)(!1),e.push([t.i,'body{margin:0;overflow:hidden;background-color:#14171a!important;font:14px Lucida Grande,Helvetica,Arial,sans-serif;color:#fff}::-webkit-scrollbar{width:4px;height:8px;opacity:.3;background-color:#fff}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#555}::-webkit-scrollbar-thumb{opacity:.8;background-color:#30a5ff}::-webkit-scrollbar-thumb:active{background-color:#30a5ff}.header{display:flex;align-items:center;z-index:100;position:relative;top:0;left:0;height:60px;background:#000;color:#fff;font-size:16px;text-align:left}@media (max-height:800px){.header{height:55px;font-size:14px}}.header .apollo-logo{flex:0 0 auto;top:40px;left:40px;height:40px;width:121px;margin:10px auto 5px 18px}@media (max-height:800px){.header .apollo-logo{top:15px;left:25px;height:25px;width:80px;margin-top:5px}}.header .selector{flex:0 0 auto;position:relative;margin:5px;border:1px solid #383838}.header .selector select{display:block;border:none;padding:.5em 3em .5em .5em;background:#000;color:#fff;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header .selector .arrow{position:absolute;top:0;right:0;width:30px;height:100%;border-left:1px solid #383838;background:#181818;pointer-events:none}.header .selector .arrow:before{position:absolute;top:55%;right:7px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:\"\";pointer-events:none}.pane-container{position:absolute;width:100%;height:calc(100% - 60px)}@media (max-height:800px){.pane-container{height:calc(100% - 55px)}}.pane-container .left-pane{display:flex;flex-flow:row nowrap;align-items:stretch;position:absolute;bottom:0;top:0;width:100%}.pane-container .left-pane .dreamview-body{display:flex;flex-flow:column nowrap;flex:1 1 auto;overflow:hidden}.pane-container .left-pane .dreamview-body .main-view{flex:0 0 auto;position:relative;min-width:600px}.pane-container .right-pane{position:absolute;right:0;width:100%;height:100%;overflow:hidden}.pane-container .right-pane ::-webkit-scrollbar{width:6px}.pane-container .SplitPane .Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.pane-container .SplitPane .Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.pane-container .SplitPane .Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.pane-container .SplitPane .Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.pane-container .SplitPane .Resizer.disabled{cursor:auto}.pane-container .SplitPane .Resizer.disabled:hover{border-color:transparent}.offlineview{display:flex;flex-flow:column nowrap;position:absolute;width:100%;height:100%}.offlineview .main-view{flex:0 0 auto;position:relative}.dreamview-canvas{z-index:1;position:absolute}.dreamview-canvas .geolocation{z-index:10;position:absolute;bottom:10px;right:10px;color:#fff}.hidden{display:none}.tools{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;margin-top:3px;overflow:hidden}.tools .card{flex:1 1 auto;border-right:3px solid #000;padding:25px 10px 25px 20px;background:#1d2226}@media (max-height:800px){.tools .card{padding:15px 5px 15px 15px}}.tools .card .card-header{width:100%;padding-bottom:15px;font-size:18px}.tools .card .card-header span{width:200px;border-bottom:1px solid #999;padding:10px 10px 10px 0}@media (max-height:800px){.tools .card .card-header{font-size:16px}}.tools .card .card-content-row{display:flex;flex-flow:row wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto;height:85%}.tools .card .card-content-column{display:flex;flex-flow:column nowrap;overflow-x:hidden;overflow-y:auto;height:85%}.tools ul{flex:0 0 auto;margin:0 2px 0 0;padding-left:0;padding-right:5px;background-color:#1d2226;color:#999;list-style:none;cursor:pointer;font-size:12px}.tools ul li{line-height:40px}.tools ul li span{padding-left:20px}.tools ul li:hover{color:#fff;background-color:#2a3238}.tools .switch{display:inline-block;position:relative;width:40px;transform:translate(35%,25%)}.tools .switch .toggle-switch{display:none}.tools .switch .toggle-switch-label{display:block;overflow:hidden;cursor:pointer;height:20px;padding:0;line-height:20px;border:0;background-color:#3f4548;transition:background-color .2s ease-in}.tools .switch .toggle-switch-label:before{content:\"\";display:block;width:16px;margin:2px;background:#a0a0a0;position:absolute;top:0;bottom:0;right:20px;transition:all .2s ease-in}.tools .switch .toggle-switch:checked+.toggle-switch-label{background-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label,.tools .switch .toggle-switch:checked+.toggle-switch-label:before{border-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label:before{right:0;background-color:#30a5ff}.tools .switch .toggle-switch:disabled+.toggle-switch-label,.tools .switch .toggle-switch:disabled+.toggle-switch-label:before{cursor:not-allowed}.tools .nav-side-menu{display:flex;flex-flow:row nowrap;align-items:stretch;flex:2 1 auto;z-index:10!important;margin-right:3px;overflow-y:hidden;overflow-x:auto;background:#1d2226;font-size:14px;color:#fff;text-align:left;white-space:nowrap}.tools .nav-side-menu .summary{line-height:50px}@media (max-height:800px){.tools .nav-side-menu .summary{line-height:25px}}.tools .nav-side-menu .summary img{position:relative;width:30px;height:30px;transform:translate(-30%,25%)}@media (max-height:800px){.tools .nav-side-menu .summary img{width:15px;height:15px;transform:translate(-50%,10%)}}.tools .nav-side-menu .summary span{padding-left:10px}.tools .nav-side-menu input[type=radio]{display:none}.tools .nav-side-menu .radio-selector-label{display:inline-block;position:relative;transform:translate(65%,30%);box-sizing:border-box;-webkit-box-sizing:border-box;width:25px;height:25px;margin-right:6px;border-radius:50%;-webkit-border-radius:50%;background-color:#a0a0a0;box-shadow:inset 1px 0 #a0a0a0;border:7px solid #3f4548}.tools .nav-side-menu input[type=radio]:checked+.radio-selector-label{border:7px solid #0e3d62;background-color:#30a5ff}.tools .console{z-index:10;position:relative;min-width:230px;margin:0;border:none;padding:0;overflow-y:auto;overflow-x:hidden}.tools .console .monitor-item{display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default}.tools .console .monitor-item .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.tools .console .monitor-item .icon{height:15px;width:15px}}.tools .console .monitor-item .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.tools .console .monitor-item .alert{color:#d7466f}.tools .console .monitor-item .warn{color:#a3842d}.tools .poi-button{min-width:250px}.side-bar{display:flex;flex-direction:column;flex:0 0 auto;z-index:100;background:#1d2226;border-right:3px solid #000;overflow-y:auto;overflow-x:hidden}.side-bar .main-panel{margin-bottom:auto}.side-bar button:focus{outline:0}.side-bar .button{display:block;width:90px;border:none;padding:20px 10px;font-size:14px;text-align:center;background:#1d2226;color:#fff;opacity:.6;cursor:pointer}@media (max-height:800px){.side-bar .button{font-size:12px;width:80px;padding-top:10px}}.side-bar .button .icon{width:30px;height:30px;margin:auto}.side-bar .button .label{padding-top:10px}@media (max-height:800px){.side-bar .button .label{padding-top:4px}}.side-bar .button:first-child{padding-top:25px}@media (max-height:800px){.side-bar .button:first-child{padding-top:10px}}.side-bar .button:disabled{color:#414141;cursor:not-allowed}.side-bar .button:disabled .icon{opacity:.2}.side-bar .button-active{background:#2a3238;opacity:1;color:#fff}.side-bar .sub-button{display:block;width:90px;height:80px;border:none;padding:20px;font-size:14px;text-align:center;background:#3e4041;color:#999;cursor:pointer}@media (max-height:800px){.side-bar .sub-button{font-size:12px;width:80px;height:60px}}.side-bar .sub-button:disabled{cursor:not-allowed;opacity:.3}.side-bar .sub-button-active{background:#30a5ff;color:#fff}.status-bar{z-index:10;position:absolute;top:0;left:0;width:100%}.status-bar .auto-meter{position:absolute;width:224px;height:112px;top:10px;right:20px;background:rgba(0,0,0,.8)}.status-bar .auto-meter .speed-read{position:absolute;top:27px;left:15px;font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .auto-meter .speed-unit{position:absolute;top:66px;left:17px;color:#fff;font-size:15px}.status-bar .auto-meter .brake-panel{position:absolute;top:21px;right:2px}.status-bar .auto-meter .throttle-panel{position:absolute;top:61px;right:2px}.status-bar .auto-meter .meter-container .meter-label{font-size:13px;color:#fff}.status-bar .auto-meter .meter-container .meter-head{display:inline-block;position:absolute;margin:5px 0 0;border-width:4px;border-style:solid}.status-bar .auto-meter .meter-container .meter-background{position:relative;display:block;height:2px;width:120px;margin:8px}.status-bar .auto-meter .meter-container .meter-background span{position:relative;overflow:hidden;display:block;height:100%}.status-bar .wheel-panel{display:flex;flex-direction:row;justify-content:left;align-items:center;position:absolute;top:128px;right:20px;width:187px;height:92px;padding:10px 22px 10px 15px;background:rgba(0,0,0,.8)}.status-bar .wheel-panel .steerangle-read{font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .wheel-panel .steerangle-unit{padding:20px 10px 0 3px;color:#fff;font-size:13px}.status-bar .wheel-panel .left-arrow{position:absolute;top:45px;right:115px;width:0;height:0;border-style:solid;border-width:12px 15px 12px 0;border-color:transparent}.status-bar .wheel-panel .right-arrow{position:absolute;top:45px;right:15px;width:0;height:0;border-style:solid;border-width:12px 0 12px 15px;border-color:transparent transparent transparent #30435e}.status-bar .wheel-panel .wheel{position:absolute;top:15px;right:33px}.status-bar .wheel-panel .wheel-background{stroke-width:3px;stroke:#006aff}.status-bar .wheel-panel .wheel-arm{stroke-width:3px;stroke:#006aff;fill:#006aff}.status-bar .traffic-light-and-driving-mode{position:absolute;top:246px;right:20px;width:224px;height:35px;font-size:14px}.status-bar .traffic-light-and-driving-mode .traffic-light{position:absolute;width:116px;height:35px;background:rgba(0,0,0,.8)}.status-bar .traffic-light-and-driving-mode .traffic-light .symbol{position:relative;top:4px;left:4px;width:28px;height:28px}.status-bar .traffic-light-and-driving-mode .traffic-light .text{position:absolute;top:10px;right:8px;color:#fff}.status-bar .traffic-light-and-driving-mode .driving-mode{position:absolute;top:0;right:0;width:105px;height:35px}.status-bar .traffic-light-and-driving-mode .driving-mode .text{position:absolute;top:50%;left:50%;float:right;transform:translate(-50%,-50%);text-align:center}.status-bar .traffic-light-and-driving-mode .auto-mode{background:linear-gradient(90deg,rgba(17,30,48,.8),rgba(7,42,94,.8));border-right:1px solid #006aff;color:#006aff}.status-bar .traffic-light-and-driving-mode .manual-mode{background:linear-gradient(90deg,rgba(30,17,17,.8),rgba(71,36,36,.8));color:#b43131;border-right:1px solid #b43131}.status-bar .notification-warn{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #a3842d;background-color:rgba(52,39,5,.3)}.status-bar .notification-warn .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.status-bar .notification-warn .icon{height:15px;width:15px}}.status-bar .notification-warn .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.status-bar .notification-warn .alert{color:#d7466f}.status-bar .notification-warn .warn{color:#a3842d}.status-bar .notification-alert{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #d7466f;background-color:rgba(74,5,24,.3)}.status-bar .notification-alert .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.status-bar .notification-alert .icon{height:15px;width:15px}}.status-bar .notification-alert .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.status-bar .notification-alert .alert{color:#d7466f}.status-bar .notification-alert .warn{color:#a3842d}.tasks{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.tasks .command-group{display:flex;flex-flow:row nowrap;justify-content:flex-start;flex:1 1 0;min-height:45px;min-width:130px}.tasks .command-group .name{width:40px;padding:15px}.tasks .start-auto-command{flex:2 2 0}.tasks .start-auto-command .start-auto-button{max-height:unset}.tasks .others{min-width:165px;max-width:260px}.tasks .delay{min-width:265px;line-height:26px}.tasks .delay .delay-item{position:relative;margin:0 10px;font-size:16px}.tasks .delay .delay-item .name{display:inline-block;min-width:140px;color:#1c9063}.tasks .delay .delay-item .value{display:inline-block;position:absolute;right:0;min-width:70px;text-align:right}.tasks .delay .delay-item .warning{color:#b43131}.tasks button{flex:1 1 0;margin:5px;border:0;min-width:75px;min-height:40px;max-height:60px;color:#999;border-bottom:2px solid #1c9063;background:linear-gradient(#000,#111f1d);outline:none;cursor:pointer}.tasks button:hover{color:#fff;background:#151e1b}.tasks button:active{background:rgba(35,51,45,.6)}.tasks button:disabled{color:#999;border-color:#555;background:linear-gradient(rgba(0,0,0,.8),rgba(9,17,16,.8));cursor:not-allowed}.tasks .disabled{cursor:not-allowed}.module-controller{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow:hidden}.module-controller .controller{min-width:180px}.module-controller .modules-container{flex-flow:column wrap}.module-controller .status-display{min-width:250px;padding:5px 20px 5px 5px}.module-controller .status-display .name{display:inline-block;padding:10px;min-width:80px}.module-controller .status-display .status{display:inline-block;position:relative;width:130px;padding:10px;background:#000;white-space:nowrap}.module-controller .status-display .status .status-icon{position:absolute;right:10px;width:15px;height:15px;background-color:#b43131}.route-editing-bar{z-index:10;position:absolute;top:0;left:0;right:0;min-height:90px;border-bottom:3px solid #000;padding-left:10px;background:#1d2226}@media (max-height:800px){.route-editing-bar{min-height:60px}}.route-editing-bar .editing-panel{display:flex;justify-content:center;align-items:center;overflow:hidden;white-space:nowrap}.route-editing-bar .editing-panel .button{height:90px;border:none;padding:10px 15px;background:#1d2226;outline:none;color:#999}@media (max-height:800px){.route-editing-bar .editing-panel .button{height:60px;padding:5px 10px}}.route-editing-bar .editing-panel .button img{display:block;top:23px;margin:15px auto}@media (max-height:800px){.route-editing-bar .editing-panel .button img{top:13px;margin:7px auto}}.route-editing-bar .editing-panel .button span{font-family:PingFangSC-Light;font-size:14px;color:#d8d8d8;text-align:center}@media (max-height:800px){.route-editing-bar .editing-panel .button span{font-size:12px}}.route-editing-bar .editing-panel .button:hover{background:#2a3238}.route-editing-bar .editing-panel .active{color:#fff;background:#2a3238}.route-editing-bar .editing-panel .editing-tip{height:90px;width:90px;margin-left:auto;border:none;color:#d8d8d8;font-size:35px}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip{height:60px;width:60px;font-size:20px}}.route-editing-bar .editing-panel .editing-tip p{position:absolute;top:120%;right:15px;width:400px;border-radius:3px;padding:20px;background-color:#fff;color:#999;font-size:14px;text-align:left;white-space:pre-wrap}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip p{right:5px}}.route-editing-bar .editing-panel .editing-tip p:before{position:absolute;top:-20px;right:13px;content:\"\";border-style:solid;border-width:0 20px 20px;border-color:transparent transparent #fff}@-moz-document url-prefix(){.route-editing-bar .editing-panel .editing-tip p:before{top:-38px}}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip p:before{right:8px}}.data-recorder{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.data-recorder .drive-event-card table{width:100%;text-align:center}.data-recorder .drive-event-card .drive-event-msg{width:100%}.data-recorder .drive-event-card .toolbar button{width:200px}.loader{flex:0 0 auto;position:relative;width:100%;height:100%;background-color:#000c17}.loader .img-container{position:relative;top:50%;left:50%;width:40%;transform:translate(-50%,-50%)}.loader .img-container img{width:100%;height:auto}.loader .img-container .status-message{margin-top:10px;font-size:18px;font-size:1.7vw;color:#fff;text-align:center;animation-name:flash;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running}@keyframes flash{0%{color:#fff}to{color:#000c17}}.loader .offline-loader{width:60%;max-width:650px}.loader .offline-loader .status-message{position:relative;top:-70px;top:-4.5vw;font-size:3vw}.video{z-index:1;position:absolute;top:0;left:0}.video img{position:relative;min-width:100px;min-height:20px;max-width:380px;max-height:300px;padding:1px;border:1px solid #383838}@media (max-height:800px){.video img{max-width:300px;max-height:200px}}.dashcam-player{z-index:1;position:absolute;top:0;left:0;color:#fff}.dashcam-player video{max-width:380px;max-height:300px}@media (max-height:800px){.dashcam-player video{max-width:300px;max-height:200px}}.dashcam-player .controls{display:flex;justify-content:flex-end;z-index:10;position:absolute;right:0}.dashcam-player .controls button{width:27px;height:27px;border:none;background-color:#000;opacity:.6;color:#fff}.dashcam-player .controls button img{width:15px}.dashcam-player .controls button:hover{opacity:.9}.dashcam-player .controls .close{font-size:20px}.dashcam-player .controls .syncup{padding-top:.5em}.pnc-monitor{height:100%;border:1px solid #000;box-sizing:border-box;background-color:#1d2226;overflow:auto}.pnc-monitor .scatter-graph{margin:0;border:1px #000;border-style:solid none}.pnc-monitor .react-tabs__tab-list{display:table;width:100%;margin:0;border-bottom:1px solid #000;padding:0}.pnc-monitor .react-tabs__tab{display:table-cell;position:relative;border:1px solid transparent;border-bottom:none;padding:6px 12px;background:#1d2226;color:#999;list-style:none;cursor:pointer}.pnc-monitor .react-tabs__tab--selected{background:#2a3238;color:#fff}.pnc-monitor .react-tabs__tab-panel{display:none}.pnc-monitor .react-tabs__tab-panel--selected{display:block}.navigation-view{z-index:20;position:relative}.navigation-view #map_canvas{width:100%;height:100%;background:rgba(0,0,0,.8)}.navigation-view .window-resize-control{position:absolute;bottom:0;right:0;width:30px;height:30px}',\"\"])},function(t,e,n){e=t.exports=n(140)(!1),e.push([t.i,'.playback-controls{z-index:100;position:absolute;width:100%;height:40px;bottom:0;background:#1d2226;font-size:16px;min-width:550px}@media (max-height:800px){.playback-controls{font-size:14px}}.playback-controls .icon{display:inline-block;width:20px;height:20px;padding:10px;cursor:pointer}.playback-controls .icon .play{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#1d2226}.playback-controls .icon .pause,.playback-controls .icon .replay{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#006aff}.playback-controls .icon .replay{top:2px}.playback-controls .icon .exit-fullscreen,.playback-controls .icon .fullscreen{stroke-linejoin:round;stroke-width:10px;stroke:#006aff;fill:#1d2226}.playback-controls .left-controls{display:inline-block;float:left}.playback-controls .right-controls{display:inline-block;float:right}.playback-controls .rate-selector{position:absolute;left:40px}.playback-controls .rate-selector select{display:block;border:none;padding:11px 23px 0 5px;color:#fff;background:#1d2226;outline:none;cursor:pointer;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.playback-controls .rate-selector .arrow{position:absolute;top:5px;right:0;width:10px;height:100%;pointer-events:none}.playback-controls .rate-selector .arrow:before{position:absolute;top:16px;right:1px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:\"\";pointer-events:none}.playback-controls .time-controls{position:absolute;min-width:300px;height:100%;left:125px;right:50px}.playback-controls .time-controls .rangeslider{position:absolute;top:7px;left:10px;right:115px;margin:10px 0;height:7px;border-radius:10px;background:#2d3b50;-ms-touch-action:none;touch-action:none}.playback-controls .time-controls .rangeslider .rangeslider__fill{display:block;height:100%;border-radius:10px;background-color:#006aff;background:#006aff}.playback-controls .time-controls .rangeslider .rangeslider__handle{display:inline-block;position:absolute;height:16px;width:16px;top:50%;transform:translate3d(-50%,-50%,0);border:1px solid #006aff;border-radius:100%;background:#006aff;cursor:pointer;box-shadow:none}.playback-controls .time-controls .time-display{position:absolute;top:12px;right:0;color:#fff}',\"\"])},function(t,e,n){t.exports={default:n(297),__esModule:!0}},function(t,e,n){t.exports={default:n(299),__esModule:!0}},function(t,e,n){t.exports={default:n(301),__esModule:!0}},function(t,e,n){t.exports={default:n(303),__esModule:!0}},function(t,e,n){t.exports={default:n(308),__esModule:!0}},function(t,e,n){t.exports={default:n(309),__esModule:!0}},function(t,e,n){t.exports={default:n(310),__esModule:!0}},function(t,e,n){t.exports={default:n(311),__esModule:!0}},function(t,e,n){t.exports={default:n(312),__esModule:!0}},function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(238),a=i(r),o=n(40),s=i(o);e.default=function(){function t(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,l=(0,s.default)(t);!(i=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,a.default)(Object(e)))return t(e,n);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}()},function(t,e,n){/*!\n * Bowser - a browser detector\n * https://github.com/ded/bowser\n * MIT License | (c) Dustin Diaz 2015\n */\n!function(e,i,r){void 0!==t&&t.exports?t.exports=r():n(543)(\"bowser\",r)}(0,0,function(){function t(t){function e(e){var n=t.match(e);return n&&n.length>1&&n[1]||\"\"}function n(e){var n=t.match(e);return n&&n.length>1&&n[2]||\"\"}var i,r=e(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(t),s=!a&&/android/i.test(t),l=/nexus\\s*[0-6]\\s*/i.test(t),u=!l&&/nexus\\s*[0-9]+/i.test(t),c=/CrOS/.test(t),h=/silk/i.test(t),d=/sailfish/i.test(t),f=/tizen/i.test(t),p=/(web|hpw)os/i.test(t),m=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),v=!r&&!h&&/macintosh/i.test(t),y=!s&&!d&&!f&&!p&&/linux/i.test(t),b=n(/edg([ea]|ios)\\/(\\d+(\\.\\d+)?)/i),x=e(/version\\/(\\d+(\\.\\d+)?)/i),_=/tablet/i.test(t)&&!/tablet pc/i.test(t),w=!_&&/[^-]mobi/i.test(t),M=/xbox/i.test(t);/opera/i.test(t)?i={name:\"Opera\",opera:o,version:x||e(/(?:opera|opr|opios)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/opr\\/|opios/i.test(t)?i={name:\"Opera\",opera:o,version:e(/(?:opr|opios)[\\s\\/](\\d+(\\.\\d+)?)/i)||x}:/SamsungBrowser/i.test(t)?i={name:\"Samsung Internet for Android\",samsungBrowser:o,version:x||e(/(?:SamsungBrowser)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/coast/i.test(t)?i={name:\"Opera Coast\",coast:o,version:x||e(/(?:coast)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/yabrowser/i.test(t)?i={name:\"Yandex Browser\",yandexbrowser:o,version:x||e(/(?:yabrowser)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:\"UC Browser\",ucbrowser:o,version:e(/(?:ucbrowser)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/mxios/i.test(t)?i={name:\"Maxthon\",maxthon:o,version:e(/(?:mxios)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/epiphany/i.test(t)?i={name:\"Epiphany\",epiphany:o,version:e(/(?:epiphany)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/puffin/i.test(t)?i={name:\"Puffin\",puffin:o,version:e(/(?:puffin)[\\s\\/](\\d+(?:\\.\\d+)?)/i)}:/sleipnir/i.test(t)?i={name:\"Sleipnir\",sleipnir:o,version:e(/(?:sleipnir)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/k-meleon/i.test(t)?i={name:\"K-Meleon\",kMeleon:o,version:e(/(?:k-meleon)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:m?(i={name:\"Windows Phone\",osname:\"Windows Phone\",windowsphone:o},b?(i.msedge=o,i.version=b):(i.msie=o,i.version=e(/iemobile\\/(\\d+(\\.\\d+)?)/i))):/msie|trident/i.test(t)?i={name:\"Internet Explorer\",msie:o,version:e(/(?:msie |rv:)(\\d+(\\.\\d+)?)/i)}:c?i={name:\"Chrome\",osname:\"Chrome OS\",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\\/(\\d+(\\.\\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:\"Microsoft Edge\",msedge:o,version:b}:/vivaldi/i.test(t)?i={name:\"Vivaldi\",vivaldi:o,version:e(/vivaldi\\/(\\d+(\\.\\d+)?)/i)||x}:d?i={name:\"Sailfish\",osname:\"Sailfish OS\",sailfish:o,version:e(/sailfish\\s?browser\\/(\\d+(\\.\\d+)?)/i)}:/seamonkey\\//i.test(t)?i={name:\"SeaMonkey\",seamonkey:o,version:e(/seamonkey\\/(\\d+(\\.\\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:\"Firefox\",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \\/](\\d+(\\.\\d+)?)/i)},/\\((mobile|tablet);[^\\)]*rv:[\\d\\.]+\\)/i.test(t)&&(i.firefoxos=o,i.osname=\"Firefox OS\")):h?i={name:\"Amazon Silk\",silk:o,version:e(/silk\\/(\\d+(\\.\\d+)?)/i)}:/phantom/i.test(t)?i={name:\"PhantomJS\",phantom:o,version:e(/phantomjs\\/(\\d+(\\.\\d+)?)/i)}:/slimerjs/i.test(t)?i={name:\"SlimerJS\",slimer:o,version:e(/slimerjs\\/(\\d+(\\.\\d+)?)/i)}:/blackberry|\\bbb\\d+/i.test(t)||/rim\\stablet/i.test(t)?i={name:\"BlackBerry\",osname:\"BlackBerry OS\",blackberry:o,version:x||e(/blackberry[\\d]+\\/(\\d+(\\.\\d+)?)/i)}:p?(i={name:\"WebOS\",osname:\"WebOS\",webos:o,version:x||e(/w(?:eb)?osbrowser\\/(\\d+(\\.\\d+)?)/i)},/touchpad\\//i.test(t)&&(i.touchpad=o)):/bada/i.test(t)?i={name:\"Bada\",osname:\"Bada\",bada:o,version:e(/dolfin\\/(\\d+(\\.\\d+)?)/i)}:f?i={name:\"Tizen\",osname:\"Tizen\",tizen:o,version:e(/(?:tizen\\s?)?browser\\/(\\d+(\\.\\d+)?)/i)||x}:/qupzilla/i.test(t)?i={name:\"QupZilla\",qupzilla:o,version:e(/(?:qupzilla)[\\s\\/](\\d+(?:\\.\\d+)+)/i)||x}:/chromium/i.test(t)?i={name:\"Chromium\",chromium:o,version:e(/(?:chromium)[\\s\\/](\\d+(?:\\.\\d+)?)/i)||x}:/chrome|crios|crmo/i.test(t)?i={name:\"Chrome\",chrome:o,version:e(/(?:chrome|crios|crmo)\\/(\\d+(\\.\\d+)?)/i)}:s?i={name:\"Android\",version:x}:/safari|applewebkit/i.test(t)?(i={name:\"Safari\",safari:o},x&&(i.version=x)):r?(i={name:\"iphone\"==r?\"iPhone\":\"ipad\"==r?\"iPad\":\"iPod\"},x&&(i.version=x)):i=/googlebot/i.test(t)?{name:\"Googlebot\",googlebot:o,version:e(/googlebot\\/(\\d+(\\.\\d+))/i)||x}:{name:e(/^(.*)\\/(.*) /),version:n(/^(.*)\\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\\/537\\.36/i.test(t)?(i.name=i.name||\"Blink\",i.blink=o):(i.name=i.name||\"Webkit\",i.webkit=o),!i.version&&x&&(i.version=x)):!i.opera&&/gecko\\//i.test(t)&&(i.name=i.name||\"Gecko\",i.gecko=o,i.version=i.version||e(/gecko\\/(\\d+(\\.\\d+)?)/i)),i.windowsphone||!s&&!i.silk?!i.windowsphone&&r?(i[r]=o,i.ios=o,i.osname=\"iOS\"):v?(i.mac=o,i.osname=\"macOS\"):M?(i.xbox=o,i.osname=\"Xbox\"):g?(i.windows=o,i.osname=\"Windows\"):y&&(i.linux=o,i.osname=\"Linux\"):(i.android=o,i.osname=\"Android\");var S=\"\";i.windows?S=function(t){switch(t){case\"NT\":return\"NT\";case\"XP\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.1\":return\"XP\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}}(e(/Windows ((NT|XP)( \\d\\d?.\\d)?)/i)):i.windowsphone?S=e(/windows phone (?:os)?\\s?(\\d+(\\.\\d+)*)/i):i.mac?(S=e(/Mac OS X (\\d+([_\\.\\s]\\d+)*)/i),S=S.replace(/[_\\s]/g,\".\")):r?(S=e(/os (\\d+([_\\s]\\d+)*) like mac os x/i),S=S.replace(/[_\\s]/g,\".\")):s?S=e(/android[ \\/-](\\d+(\\.\\d+)*)/i):i.webos?S=e(/(?:web|hpw)os\\/(\\d+(\\.\\d+)*)/i):i.blackberry?S=e(/rim\\stablet\\sos\\s(\\d+(\\.\\d+)*)/i):i.bada?S=e(/bada\\/(\\d+(\\.\\d+)*)/i):i.tizen&&(S=e(/tizen[\\/\\s](\\d+(\\.\\d+)*)/i)),S&&(i.osversion=S);var E=!i.windows&&S.split(\".\")[0];return _||u||\"ipad\"==r||s&&(3==E||E>=4&&!w)||i.silk?i.tablet=o:(w||\"iphone\"==r||\"ipod\"==r||s||l||i.blackberry||i.webos||i.bada)&&(i.mobile=o),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(\".\")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=o:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(\".\")[0]<6||i.chromium&&i.version<20?i.c=o:i.x=o,i}function e(t){return t.split(\".\").length}function n(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(e,n,r){var a=s;\"string\"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(a=t(r));var o=\"\"+a.version;for(var l in e)if(e.hasOwnProperty(l)&&a[l]){if(\"string\"!=typeof e[l])throw new Error(\"Browser version in the minVersion map should be a string: \"+l+\": \"+String(e));return i([o,e[l]])<0}return n}function a(t,e,n){return!r(t,e,n)}var o=!0,s=t(\"undefined\"!=typeof navigator?navigator.userAgent||\"\":\"\");return s.test=function(t){for(var e=0;e0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&r>0)&&(g+=r));return a=h.getPixelForValue(g),o=h.getPixelForValue(g+f),s=(o-a)/2,{size:s,base:a,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,n){var i,r,o,s,l,u,c=this,h=n.scale.options,d=c.getStackIndex(t),f=n.pixels,p=f[e],m=f.length,g=n.start,v=n.end;return 1===m?(i=p>g?p-g:v-p,r=p0&&(i=(p-f[e-1])/2,e===m-1&&(r=i)),e');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push(\"\");return e.push(\"\"),e.join(\"\")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[i],l=s&&s.custom||{},u=a.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,c.borderWidth),hidden:isNaN(o.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0);var m=p+f,g={x:Math.cos(p),y:Math.sin(p)},v={x:Math.cos(m),y:Math.sin(m)},y=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,b=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,x=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,_=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,w=d/100,M={x:x?-1:Math.min(g.x*(g.x<0?1:w),v.x*(v.x<0?1:w)),y:_?-1:Math.min(g.y*(g.y<0?1:w),v.y*(v.y<0?1:w))},S={x:y?1:Math.max(g.x*(g.x>0?1:w),v.x*(v.x>0?1:w)),y:b?1:Math.max(g.y*(g.y>0?1:w),v.y*(v.y>0?1:w))},E={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(s/E.width,l/E.height),c={x:-.5*(S.x+M.x),y:-.5*(S.y+M.y)}}n.borderWidth=e.getMaxBorderWidth(h.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,h.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),a.each(h.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,r=i.chart,o=r.chartArea,s=r.options,l=s.animation,u=(o.left+o.right)/2,c=(o.top+o.bottom)/2,h=s.rotation,d=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,g=n&&l.animateScale?0:i.outerRadius,v=a.valueAtIndexOrDefault;a.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+r.offsetX,y:c+r.offsetY,startAngle:h,endAngle:d,circumference:p,outerRadius:g,innerRadius:m,label:v(f.label,e,r.data.labels[e])}});var y=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(y.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return a.each(n.data,function(n,r){t=e.data[r],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,r=this.index,a=t.length,o=0;oi?e:i,i=n>i?n:i;return i}})}},function(t,e,n){\"use strict\";var i=n(9),r=n(33),a=n(6);i._set(\"line\",{showLines:!0,spanGaps:!1,hover:{mode:\"label\"},scales:{xAxes:[{type:\"category\",id:\"x-axis-0\"}],yAxes:[{type:\"linear\",id:\"y-axis-0\"}]}}),t.exports=function(t){function e(t,e){return a.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(t){var n,i,r,o=this,s=o.getMeta(),l=s.dataset,u=s.data||[],c=o.chart.options,h=c.elements.line,d=o.getScaleForId(s.yAxisID),f=o.getDataset(),p=e(f,c);for(p&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=d,l._datasetIndex=o.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:r.tension?r.tension:a.valueOrDefault(f.lineTension,h.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||h.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||h.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||h.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||h.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||h.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||h.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||h.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:h.fill,steppedLine:r.steppedLine?r.steppedLine:a.valueOrDefault(f.steppedLine,h.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:a.valueOrDefault(f.cubicInterpolationMode,h.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push(\"\");return e.push(\"\"),e.join(\"\")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[i],l=s.custom||{},u=a.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,c.borderWidth),hidden:isNaN(o.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e,n){\"use strict\";var i=n(9),r=n(33),a=n(6);i._set(\"radar\",{scale:{type:\"radialLinear\"},elements:{line:{tension:0}}}),t.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,linkScales:a.noop,update:function(t){var e=this,n=e.getMeta(),i=n.dataset,r=n.data,o=i.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),a.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:r,_loop:!0,_model:{tension:o.tension?o.tension:a.valueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),a.each(r,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,r=t.custom||{},o=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),a.extend(t,{_datasetIndex:i.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:r.tension?r.tension:a.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:r.radius?r.radius:a.valueAtIndexOrDefault(o.pointRadius,e,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:a.valueAtIndexOrDefault(o.pointBackgroundColor,e,l.backgroundColor),borderColor:r.borderColor?r.borderColor:a.valueAtIndexOrDefault(o.pointBorderColor,e,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:a.valueAtIndexOrDefault(o.pointBorderWidth,e,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:a.valueAtIndexOrDefault(o.pointStyle,e,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:a.valueAtIndexOrDefault(o.pointHitRadius,e,l.hitRadius)}}),t._model.skip=r.skip?r.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();a.each(e.data,function(n,i){var r=n._model,o=a.splineCurve(a.previousItem(e.data,i,!0)._model,r,a.nextItem(e.data,i,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),r.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),r.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),r.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model;r.radius=n.hoverRadius?n.hoverRadius:a.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:a.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,a.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:a.valueAtIndexOrDefault(e.pointHoverBorderColor,i,a.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:a.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,r.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model,o=this.chart.options.elements.point;r.radius=n.radius?n.radius:a.valueAtIndexOrDefault(e.pointRadius,i,o.radius),r.backgroundColor=n.backgroundColor?n.backgroundColor:a.valueAtIndexOrDefault(e.pointBackgroundColor,i,o.backgroundColor),r.borderColor=n.borderColor?n.borderColor:a.valueAtIndexOrDefault(e.pointBorderColor,i,o.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:a.valueAtIndexOrDefault(e.pointBorderWidth,i,o.borderWidth)}})}},function(t,e,n){\"use strict\";n(9)._set(\"scatter\",{hover:{mode:\"single\"},scales:{xAxes:[{id:\"x-axis-1\",type:\"linear\",position:\"bottom\"}],yAxes:[{id:\"y-axis-1\",type:\"linear\",position:\"left\"}]},showLines:!1,tooltips:{callbacks:{title:function(){return\"\"},label:function(t){return\"(\"+t.xLabel+\", \"+t.yLabel+\")\"}}}}),t.exports=function(t){t.controllers.scatter=t.controllers.line}},function(t,e,n){\"use strict\";var i=n(9),r=n(20),a=n(6);i._set(\"global\",{animation:{duration:1e3,easing:\"easeOutQuart\",onProgress:a.noop,onComplete:a.noop}}),t.exports=function(t){t.Animation=r.extend({chart:null,currentStep:0,numSteps:60,easing:\"\",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var r,a,o=this.animations;for(e.chart=t,i||(t.animating=!0),r=0,a=o.length;r1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,r=0;r=e.numSteps?(a.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(r,1)):++r}},Object.defineProperty(t.Animation.prototype,\"animationObject\",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,\"chartInstance\",{get:function(){return this.chart},set:function(t){this.chart=t}})}},function(t,e,n){\"use strict\";var i=n(9),r=n(6),a=n(119),o=n(120);t.exports=function(t){function e(t){t=t||{};var e=t.data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=r.configMerge(i.global,i[t.type],t.options||{}),t}function n(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function s(t){return\"top\"===t||\"bottom\"===t}var l=t.plugins;t.types={},t.instances={},t.controllers={},r.extend(t.prototype,{construct:function(n,i){var a=this;i=e(i);var s=o.acquireContext(n,i),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(a.id=r.uid(),a.ctx=s,a.canvas=l,a.config=i,a.width=c,a.height=u,a.aspectRatio=u?c/u:null,a.options=i.options,a._bufferedRender=!1,a.chart=a,a.controller=a,t.instances[a.id]=a,Object.defineProperty(a,\"data\",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),!s||!l)return void console.error(\"Failed to create chart: can't acquire context from the given item\");a.initialize(),a.update()},initialize:function(){var t=this;return l.notify(t,\"beforeInit\"),r.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,\"afterInit\"),t},clear:function(){return r.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(r.getMaximumWidth(i))),s=Math.max(0,Math.floor(a?o/a:r.getMaximumHeight(i)));if((e.width!==o||e.height!==s)&&(i.width=e.width=o,i.height=e.height=s,i.style.width=o+\"px\",i.style.height=s+\"px\",r.retinaScale(e,n.devicePixelRatio),!t)){var u={width:o,height:s};l.notify(e,\"resize\",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;r.each(e.xAxes,function(t,e){t.id=t.id||\"x-axis-\"+e}),r.each(e.yAxes,function(t,e){t.id=t.id||\"y-axis-\"+e}),n&&(n.id=n.id||\"scale\")},buildScales:function(){var e=this,n=e.options,i=e.scales={},a=[];n.scales&&(a=a.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:\"category\",dposition:\"bottom\"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:\"linear\",dposition:\"left\"}}))),n.scale&&a.push({options:n.scale,dtype:\"radialLinear\",isDefault:!0,dposition:\"chartArea\"}),r.each(a,function(n){var a=n.options,o=r.valueOrDefault(a.type,n.dtype),l=t.scaleService.getScaleConstructor(o);if(l){s(a.position)!==s(n.dposition)&&(a.position=n.dposition);var u=new l({id:a.id,options:a,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return r.each(e.data.datasets,function(r,a){var o=e.getDatasetMeta(a),s=r.type||e.config.type;if(o.type&&o.type!==s&&(e.destroyDatasetMeta(a),o=e.getDatasetMeta(a)),o.type=s,n.push(o.type),o.controller)o.controller.updateIndex(a);else{var l=t.controllers[o.type];if(void 0===l)throw new Error('\"'+o.type+'\" is not a chart type.');o.controller=new l(e,a),i.push(o.controller)}},e),i},resetElements:function(){var t=this;r.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&\"object\"==typeof t||(t={duration:t,lazy:arguments[1]}),n(e),!1!==l.notify(e,\"beforeUpdate\")){e.tooltip._data=e.data;var i=e.buildOrUpdateControllers();r.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()},e),e.updateLayout(),r.each(i,function(t){t.reset()}),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],l.notify(e,\"afterUpdate\"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==l.notify(e,\"beforeLayout\")&&(t.layoutService.update(this,this.width,this.height),l.notify(e,\"afterScaleUpdate\"),l.notify(e,\"afterLayout\"))},updateDatasets:function(){var t=this;if(!1!==l.notify(t,\"beforeDatasetsUpdate\")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,\"afterDatasetsDraw\",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),r={meta:i,index:t,easingValue:e};!1!==l.notify(n,\"beforeDatasetDraw\",[r])&&(i.controller.draw(e),l.notify(n,\"afterDatasetDraw\",[r]))},_drawTooltip:function(t){var e=this,n=e.tooltip,i={tooltip:n,easingValue:t};!1!==l.notify(e,\"beforeTooltipDraw\",[i])&&(n.draw(),l.notify(e,\"afterTooltipDraw\",[i]))},getElementAtEvent:function(t){return a.modes.single(this,t)},getElementsAtEvent:function(t){return a.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return a.modes[\"x-axis\"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=a.modes[e];return\"function\"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return a.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(r.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=[\"push\",\"pop\",\"shift\",\"splice\",\"unshift\"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),r=n.getDataset().data||[],a=i.data;for(t=0,e=r.length;ti&&t.insertElements(i,r-i)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][o].type||l.type&&l.type!==n[e][o].type?a.merge(n[e][o],[t.scaleService.getScaleDefaults(s),l]):a.merge(n[e][o],l)}else a._merger(e,n,i,r)}})},a.where=function(t,e){if(a.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return a.each(t,function(t){e(t)&&n.push(t)}),n},a.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,r=t.length;i=0;i--){var r=t[i];if(e(r))return r}},a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,n){return Math.abs(t-e)t},a.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},a.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},a.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2==0?0:.5},a.splineCurve=function(t,e,n,i){var r=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;var h=i*u,d=i*c;return{previous:{x:a.x-h*(o.x-r.x),y:a.y-h*(o.y-r.y)},next:{x:a.x+d*(o.x-r.x),y:a.y+d*(o.y-r.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,n,i,r,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,(r=e0?o[e-1]:null,r=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var n=Math.floor(a.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},a.requestAnimFrame=function(){return\"undefined\"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),a.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=r.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=r.clientX,i=r.clientY);var u=parseFloat(a.getStyle(o,\"padding-left\")),c=parseFloat(a.getStyle(o,\"padding-top\")),h=parseFloat(a.getStyle(o,\"padding-right\")),d=parseFloat(a.getStyle(o,\"padding-bottom\")),f=s.right-s.left-u-h,p=s.bottom-s.top-c-d;return n=Math.round((n-s.left-u)/f*o.width/e.currentDevicePixelRatio),i=Math.round((i-s.top-c)/p*o.height/e.currentDevicePixelRatio),{x:n,y:i}},a.getConstraintWidth=function(t){return o(t,\"max-width\",\"clientWidth\")},a.getConstraintHeight=function(t){return o(t,\"max-height\",\"clientHeight\")},a.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(a.getStyle(e,\"padding-left\"),10),i=parseInt(a.getStyle(e,\"padding-right\"),10),r=e.clientWidth-n-i,o=a.getConstraintWidth(t);return isNaN(o)?r:Math.min(r,o)},a.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(a.getStyle(e,\"padding-top\"),10),i=parseInt(a.getStyle(e,\"padding-bottom\"),10),r=e.clientHeight-n-i,o=a.getConstraintHeight(t);return isNaN(o)?r:Math.min(r,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},a.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,r=t.height,a=t.width;i.height=r*n,i.width=a*n,t.ctx.scale(n,n),i.style.height=r+\"px\",i.style.width=a+\"px\"}},a.fontString=function(t,e,n){return e+\" \"+t+\"px \"+n},a.longestText=function(t,e,n,i){i=i||{};var r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),t.font=e;var s=0;a.each(n,function(e){void 0!==e&&null!==e&&!0!==a.isArray(e)?s=a.measureText(t,r,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,r,o,s,e))})});var l=o.length/2;if(l>n.length){for(var u=0;ui&&(i=a),i},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.color=i?function(t){return t instanceof CanvasGradient&&(t=r.global.defaultColor),i(t)}:function(t){return console.error(\"Color.js not found!\"),t},a.getHoverColor=function(t){return t instanceof CanvasPattern?t:a.color(t).saturate(.5).darken(.1).rgbString()}}},function(t,e,n){\"use strict\";n(9)._set(\"global\",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],hover:{onHover:null,mode:\"nearest\",intersect:!0,animationDuration:400},onClick:null,defaultColor:\"rgba(0,0,0,0.1)\",defaultFontColor:\"#666\",defaultFontFamily:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",defaultFontSize:12,defaultFontStyle:\"normal\",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),t.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},function(t,e,n){\"use strict\";var i=n(6);t.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,r=e?t:n;return i.weight===r.weight?i._tmpIndex_-r._tmpIndex_:i.weight-r.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||\"top\",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,r=[\"fullWidth\",\"position\",\"weight\"],a=r.length,o=0;od&&lt.maxHeight){l--;break}l++,h=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,r=t.minSize={width:0,height:0},a=i(t._ticks),o=t.options,u=o.ticks,c=o.scaleLabel,h=o.gridLines,d=o.display,f=t.isHorizontal(),p=n(u),m=o.gridLines.tickMarkLength;if(r.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:d&&h.drawTicks?m:0,r.height=f?d&&h.drawTicks?m:0:t.maxHeight,c.display&&d){var g=l(c),v=s.options.toPadding(c.padding),y=g+v.height;f?r.height+=y:r.width+=y}if(u.display&&d){var b=s.longestText(t.ctx,p.font,a,t.longestTextCache),x=s.numberOfLabelLines(a),_=.5*p.size,w=t.options.ticks.padding;if(f){t.longestLabelWidth=b;var M=s.toRadians(t.labelRotation),S=Math.cos(M),E=Math.sin(M),k=E*b+p.size*x+_*(x-1)+_;r.height=Math.min(t.maxHeight,r.height+k+w),t.ctx.font=p.font;var T=e(t.ctx,a[0],p.font),C=e(t.ctx,a[a.length-1],p.font);0!==t.labelRotation?(t.paddingLeft=\"bottom\"===o.position?S*T+3:S*_+3,t.paddingRight=\"bottom\"===o.position?S*_+3:S*C+3):(t.paddingLeft=T/2+3,t.paddingRight=C/2+3)}else u.mirror?b=0:b+=w+_,r.width=Math.min(t.maxWidth,r.width+b),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=r.width,t.height=r.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if(\"number\"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),r=i/Math.max(e._ticks.length-(n?0:1),1),a=r*t+e.paddingLeft;n&&(a+=r/2);var o=e.left+Math.round(a);return o+=e.isFullWidth()?e.margins.left:0}var s=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(s/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=e.width-(e.paddingLeft+e.paddingRight),i=n*t+e.paddingLeft,r=e.left+Math.round(i);return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,r,a,o=this,l=o.isHorizontal(),u=o.options.ticks.minor,c=t.length,h=s.toRadians(o.labelRotation),d=Math.cos(h),f=o.longestLabelWidth*d,p=[];for(u.maxTicksLimit&&(a=u.maxTicksLimit),l&&(e=!1,(f+u.autoSkipPadding)*c>o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((f+u.autoSkipPadding)*c/(o.width-(o.paddingLeft+o.paddingRight)))),a&&c>a&&(e=Math.max(e,Math.floor(c/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=c,r&&n!==c-1&&delete i.label,p.push(i);return p},draw:function(t){var e=this,i=e.options;if(i.display){var o=e.ctx,u=a.global,c=i.ticks.minor,h=i.ticks.major||c,d=i.gridLines,f=i.scaleLabel,p=0!==e.labelRotation,m=e.isHorizontal(),g=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=s.valueOrDefault(c.fontColor,u.defaultFontColor),y=n(c),b=s.valueOrDefault(h.fontColor,u.defaultFontColor),x=n(h),_=d.drawTicks?d.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),M=n(f),S=s.options.toPadding(f.padding),E=s.toRadians(e.labelRotation),k=[],T=\"right\"===i.position?e.left:e.right-_,C=\"right\"===i.position?e.left+_:e.right,P=\"bottom\"===i.position?e.top:e.bottom-_,O=\"bottom\"===i.position?e.top+_:e.bottom;if(s.each(g,function(n,a){if(!s.isNullOrUndef(n.label)){var o,l,h,f,v=n.label;a===e.zeroLineIndex&&i.offset===d.offsetGridLines?(o=d.zeroLineWidth,l=d.zeroLineColor,h=d.zeroLineBorderDash,f=d.zeroLineBorderDashOffset):(o=s.valueAtIndexOrDefault(d.lineWidth,a),l=s.valueAtIndexOrDefault(d.color,a),h=s.valueOrDefault(d.borderDash,u.borderDash),f=s.valueOrDefault(d.borderDashOffset,u.borderDashOffset));var y,b,x,w,M,S,A,R,L,I,D=\"middle\",N=\"middle\",z=c.padding;if(m){var B=_+z;\"bottom\"===i.position?(N=p?\"middle\":\"top\",D=p?\"right\":\"center\",I=e.top+B):(N=p?\"middle\":\"bottom\",D=p?\"left\":\"center\",I=e.bottom-B);var F=r(e,a,d.offsetGridLines&&g.length>1);F1);W0){var a=t[0];a.xLabel?n=a.xLabel:r>0&&a.indexi.height-e.height&&(o=\"bottom\");var s,l,u,c,h,d=(r.left+r.right)/2,f=(r.top+r.bottom)/2;\"center\"===o?(s=function(t){return t<=d},l=function(t){return t>d}):(s=function(t){return t<=e.width/2},l=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},c=function(t){return t-e.width<0},h=function(t){return t<=f?\"top\":\"bottom\"},s(n.x)?(a=\"left\",u(n.x)&&(a=\"center\",o=h(n.y))):l(n.x)&&(a=\"right\",c(n.x)&&(a=\"center\",o=h(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:a,yAlign:p.yAlign?p.yAlign:o}}function c(t,e,n){var i=t.x,r=t.y,a=t.caretSize,o=t.caretPadding,s=t.cornerRadius,l=n.xAlign,u=n.yAlign,c=a+o,h=s+o;return\"right\"===l?i-=e.width:\"center\"===l&&(i-=e.width/2),\"top\"===u?r+=c:r-=\"bottom\"===u?e.height+c:e.height/2,\"center\"===u?\"left\"===l?i+=c:\"right\"===l&&(i-=c):\"left\"===l?i-=h:\"right\"===l&&(i+=h),{x:i,y:r}}t.Tooltip=r.extend({initialize:function(){this._model=s(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,i=e.callbacks,r=i.beforeTitle.apply(t,arguments),a=i.title.apply(t,arguments),o=i.afterTitle.apply(t,arguments),s=[];return s=n(s,r),s=n(s,a),s=n(s,o)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,r=i._options.callbacks,o=[];return a.each(t,function(t){var a={before:[],lines:[],after:[]};n(a.before,r.beforeLabel.call(i,t,e)),n(a.lines,r.label.call(i,t,e)),n(a.after,r.afterLabel.call(i,t,e)),o.push(a)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,i=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),a=e.afterFooter.apply(t,arguments),o=[];return o=n(o,i),o=n(o,r),o=n(o,a)},update:function(e){var n,i,r=this,h=r._options,d=r._model,f=r._model=s(h),p=r._active,m=r._data,g={xAlign:d.xAlign,yAlign:d.yAlign},v={x:d.x,y:d.y},y={width:d.width,height:d.height},b={x:d.caretX,y:d.caretY};if(p.length){f.opacity=1;var x=[],_=[];b=t.Tooltip.positioners[h.position].call(r,p,r._eventPosition);var w=[];for(n=0,i=p.length;n0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,a=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&a&&(this.drawBackground(i,e,t,n,r),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,r),this.drawBody(i,e,t,r),this.drawFooter(i,e,t,r))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],\"mouseout\"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(i=!a.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var r=e._model;e.update(!0),e.pivot(),i|=r.x!==e._model.x||r.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,r=0,a=0;for(e=0,n=t.length;el;)r-=2*Math.PI;for(;r=s&&r<=l,c=o>=n.innerRadius&&o<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin=\"bevel\",e.borderWidth&&t.stroke()}})},function(t,e,n){\"use strict\";var i=n(9),r=n(20),a=n(6),o=i.global;i._set(\"global\",{elements:{line:{tension:.4,backgroundColor:o.defaultColor,borderWidth:3,borderColor:o.defaultColor,borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",capBezierPoints:!0,fill:!0}}}),t.exports=r.extend({draw:function(){var t,e,n,i,r=this,s=r._view,l=r._chart.ctx,u=s.spanGaps,c=r._children.slice(),h=o.elements.line,d=-1;for(r._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||h.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||h.borderDash),l.lineDashOffset=s.borderDashOffset||h.borderDashOffset,l.lineJoin=s.borderJoinStyle||h.borderJoinStyle,l.lineWidth=s.borderWidth||h.borderWidth,l.strokeStyle=s.borderColor||o.defaultColor,l.beginPath(),d=-1,t=0;te?1:-1,o=1,s=u.borderSkipped||\"left\"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=u.base,a=1,o=r>i?1:-1,s=u.borderSkipped||\"bottom\"),c){var h=Math.min(Math.abs(e-n),Math.abs(i-r));c=c>h?h:c;var d=c/2,f=e+(\"left\"!==s?d*a:0),p=n+(\"right\"!==s?-d*a:0),m=i+(\"top\"!==s?d*o:0),g=r+(\"bottom\"!==s?-d*o:0);f!==p&&(i=m,r=g),m!==g&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var v=[[e,r],[e,i],[n,i],[n,r]],y=[\"bottom\",\"left\",\"top\",\"right\"],b=y.indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var _=1;_<4;_++)x=t(_),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=r(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var a=r(n);return i(n)?t>=a.left&&t<=a.right:e>=a.top&&e<=a.bottom},inXRange:function(t){var e=r(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=r(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return i(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},function(t,e,n){\"use strict\";var i=n(61),e=t.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,r,a){if(a){var o=Math.min(a,i/2),s=Math.min(a,r/2);t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+s),t.lineTo(e+i,n+r-s),t.quadraticCurveTo(e+i,n+r,e+i-o,n+r),t.lineTo(e+o,n+r),t.quadraticCurveTo(e,n+r,e,n+r-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+o,n)}else t.rect(e,n,i,r)},drawPoint:function(t,e,n,i,r){var a,o,s,l,u,c;if(e&&\"object\"==typeof e&&(\"[object HTMLImageElement]\"===(a=e.toString())||\"[object HTMLCanvasElement]\"===a))return void t.drawImage(e,i-e.width/2,r-e.height/2,e.width,e.height);if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,r,n,0,2*Math.PI),t.closePath(),t.fill();break;case\"triangle\":t.beginPath(),o=3*n/Math.sqrt(3),u=o*Math.sqrt(3)/2,t.moveTo(i-o/2,r+u/3),t.lineTo(i+o/2,r+u/3),t.lineTo(i,r-2*u/3),t.closePath(),t.fill();break;case\"rect\":c=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-c,r-c,2*c,2*c),t.strokeRect(i-c,r-c,2*c,2*c);break;case\"rectRounded\":var h=n/Math.SQRT2,d=i-h,f=r-h,p=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,f,p,p,n/2),t.closePath(),t.fill();break;case\"rectRot\":c=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-c,r),t.lineTo(i,r+c),t.lineTo(i+c,r),t.lineTo(i,r-c),t.closePath(),t.fill();break;case\"cross\":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case\"crossRot\":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case\"star\":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case\"line\":t.beginPath(),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case\"dash\":t.beginPath(),t.moveTo(i,r),t.lineTo(i+n,r),t.closePath()}t.stroke()}},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){return n.steppedLine?(\"after\"===n.steppedLine&&!i||\"after\"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y)):n.tension?void t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):void t.lineTo(n.x,n.y)}};i.clear=e.clear,i.drawRoundedRectangle=function(t){t.beginPath(),e.roundedRect.apply(e,arguments),t.closePath()}},function(t,e,n){\"use strict\";var i=n(61),r={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-r.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*r.easeInBounce(2*t):.5*r.easeOutBounce(2*t-1)+.5}};t.exports={effects:r},i.easingEffects=r},function(t,e,n){\"use strict\";var i=n(61);t.exports={toLineHeight:function(t,e){var n=(\"\"+t).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);if(!n||\"normal\"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case\"px\":return t;case\"%\":t/=100}return e*t},toPadding:function(t){var e,n,r,a;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,r=+t.bottom||0,a=+t.left||0):e=n=r=a=+t||0,{top:e,right:n,bottom:r,left:a,height:e+r,width:a+n}},resolve:function(t,e,n){var r,a,o;for(r=0,a=t.length;r
';var r=e.childNodes[0],o=e.childNodes[1];e._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var s=function(){e._reset(),t()};return a(r,\"scroll\",s.bind(r,\"expand\")),a(o,\"scroll\",s.bind(o,\"shrink\")),e}function h(t,e){var n=t[v]||(t[v]={}),i=n.renderProxy=function(t){t.animationName===x&&e()};g.each(_,function(e){a(t,e,i)}),n.reflow=!!t.offsetParent,t.classList.add(b)}function d(t){var e=t[v]||{},n=e.renderProxy;n&&(g.each(_,function(e){o(t,e,n)}),delete e.renderProxy),t.classList.remove(b)}function f(t,e,n){var i=t[v]||(t[v]={}),r=i.resizer=c(u(function(){if(i.resizer)return e(s(\"resize\",n))}));h(t,function(){if(i.resizer){var e=t.parentNode;e&&e!==r.parentNode&&e.insertBefore(r,e.firstChild),r._reset()}})}function p(t){var e=t[v]||{},n=e.resizer;delete e.resizer,d(t),n&&n.parentNode&&n.parentNode.removeChild(n)}function m(t,e){var n=t._style||document.createElement(\"style\");t._style||(t._style=n,e=\"/* Chart.js */\\n\"+e,n.setAttribute(\"type\",\"text/css\"),document.getElementsByTagName(\"head\")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}var g=n(6),v=\"$chartjs\",y=\"chartjs-\",b=y+\"render-monitor\",x=y+\"render-animation\",_=[\"animationstart\",\"webkitAnimationStart\"],w={touchstart:\"mousedown\",touchmove:\"mousemove\",touchend:\"mouseup\",pointerenter:\"mouseenter\",pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointerleave:\"mouseout\",pointerout:\"mouseout\"},M=function(){var t=!1;try{var e=Object.defineProperty({},\"passive\",{get:function(){t=!0}});window.addEventListener(\"e\",null,e)}catch(t){}return t}(),S=!!M&&{passive:!0};t.exports={_enabled:\"undefined\"!=typeof window&&\"undefined\"!=typeof document,initialize:function(){var t=\"from{opacity:0.99}to{opacity:1}\";m(this,\"@-webkit-keyframes \"+x+\"{\"+t+\"}@keyframes \"+x+\"{\"+t+\"}.\"+b+\"{-webkit-animation:\"+x+\" 0.001s;animation:\"+x+\" 0.001s;}\")},acquireContext:function(t,e){\"string\"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext(\"2d\");return n&&n.canvas===t?(r(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[v]){var n=e[v].initial;[\"height\",\"width\"].forEach(function(t){var i=n[t];g.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)}),g.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[v]}},addEventListener:function(t,e,n){var i=t.canvas;if(\"resize\"===e)return void f(i,n,t);var r=n[v]||(n[v]={});a(i,e,(r.proxies||(r.proxies={}))[t.id+\"_\"+e]=function(e){n(l(e,t))})},removeEventListener:function(t,e,n){var i=t.canvas;if(\"resize\"===e)return void p(i);var r=n[v]||{},a=r.proxies||{},s=a[t.id+\"_\"+e];s&&o(i,e,s)}},g.addEvent=a,g.removeEvent=o},function(t,e,n){\"use strict\";var i=n(9),r=n(33),a=n(6);i._set(\"global\",{plugins:{filler:{propagate:!0}}}),t.exports=function(){function t(t,e,n){var i,r=t._model||{},a=r.fill;if(void 0===a&&(a=!!r.backgroundColor),!1===a||null===a)return!1;if(!0===a)return\"origin\";if(i=parseFloat(a,10),isFinite(i)&&Math.floor(i)===i)return\"-\"!==a[0]&&\"+\"!==a[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(a){case\"bottom\":return\"start\";case\"top\":return\"end\";case\"zero\":return\"origin\";case\"origin\":case\"start\":case\"end\":return a;default:return!1}}function e(t){var e,n=t.el._model||{},i=t.el._scale||{},r=t.fill,a=null;if(isFinite(r))return null;if(\"start\"===r?a=void 0===n.scaleBottom?i.bottom:n.scaleBottom:\"end\"===r?a=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:i.getBasePosition?a=i.getBasePosition():i.getBasePixel&&(a=i.getBasePixel()),void 0!==a&&null!==a){if(void 0!==a.x&&void 0!==a.y)return a;if(\"number\"==typeof a&&isFinite(a))return e=i.isHorizontal(),{x:e?a:null,y:e?null:a}}return null}function n(t,e,n){var i,r=t[e],a=r.fill,o=[e];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;o.push(a),a=i.fill}return!1}function o(t){var e=t.fill,n=\"dataset\";return!1===e?null:(isFinite(e)||(n=\"boundary\"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,i,r){var o;if(i&&r){for(t.moveTo(e[0].x,e[0].y),o=1;o0;--o)a.canvas.lineTo(t,n[o],n[o-1],!0)}}function u(t,e,n,i,r,a){var o,u,c,h,d,f,p,m=e.length,g=i.spanGaps,v=[],y=[],b=0,x=0;for(t.beginPath(),o=0,u=m+!!a;o');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push(\"\");return e.push(\"\"),e.join(\"\")}}),t.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var i=new t.Legend({ctx:e.ctx,options:n,chart:e});o.configure(e,i,n),o.addBox(e,i),e.legend=i}var o=t.layoutService,s=a.noop;return t.Legend=r.extend({initialize:function(t){a.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=a.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,r=n.labels,o=n.display,s=t.ctx,l=i.global,u=a.valueOrDefault,c=u(r.fontSize,l.defaultFontSize),h=u(r.fontStyle,l.defaultFontStyle),d=u(r.fontFamily,l.defaultFontFamily),f=a.fontString(c,h,d),p=t.legendHitBoxes=[],m=t.minSize,g=t.isHorizontal();if(g?(m.width=t.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=t.maxHeight),o)if(s.font=f,g){var v=t.lineWidths=[0],y=t.legendItems.length?c+r.padding:0;s.textAlign=\"left\",s.textBaseline=\"top\",a.each(t.legendItems,function(n,i){var a=e(r,c),o=a+c/2+s.measureText(n.text).width;v[v.length-1]+o+r.padding>=t.width&&(y+=c+r.padding,v[v.length]=t.left),p[i]={left:0,top:0,width:o,height:c},v[v.length-1]+=o+r.padding}),m.height+=y}else{var b=r.padding,x=t.columnWidths=[],_=r.padding,w=0,M=0,S=c+b;a.each(t.legendItems,function(t,n){var i=e(r,c),a=i+c/2+s.measureText(t.text).width;M+S>m.height&&(_+=w+r.padding,x.push(w),w=0,M=0),w=Math.max(w,a),M+=S,p[n]={left:0,top:0,width:a,height:c}}),_+=w,x.push(w),m.width+=_}t.width=m.width,t.height=m.height},afterFit:s,isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},draw:function(){var t=this,n=t.options,r=n.labels,o=i.global,s=o.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,h=t.ctx,d=a.valueOrDefault,f=d(r.fontColor,o.defaultFontColor),p=d(r.fontSize,o.defaultFontSize),m=d(r.fontStyle,o.defaultFontStyle),g=d(r.fontFamily,o.defaultFontFamily),v=a.fontString(p,m,g);h.textAlign=\"left\",h.textBaseline=\"middle\",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=v;var y=e(r,p),b=t.legendHitBoxes,x=function(t,e,i){if(!(isNaN(y)||y<=0)){h.save(),h.fillStyle=d(i.fillStyle,o.defaultColor),h.lineCap=d(i.lineCap,s.borderCapStyle),h.lineDashOffset=d(i.lineDashOffset,s.borderDashOffset),h.lineJoin=d(i.lineJoin,s.borderJoinStyle),h.lineWidth=d(i.lineWidth,s.borderWidth),h.strokeStyle=d(i.strokeStyle,o.defaultColor);var r=0===d(i.lineWidth,s.borderWidth);if(h.setLineDash&&h.setLineDash(d(i.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;a.canvas.drawPoint(h,i.pointStyle,l,c,f)}else r||h.strokeRect(t,e,y,p),h.fillRect(t,e,y,p);h.restore()}},_=function(t,e,n,i){var r=p/2,a=y+r+t,o=e+r;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(a+i,o),h.stroke())},w=t.isHorizontal();c=w?{x:t.left+(l-u[0])/2,y:t.top+r.padding,line:0}:{x:t.left+r.padding,y:t.top+r.padding,line:0};var M=p+r.padding;a.each(t.legendItems,function(e,n){var i=h.measureText(e.text).width,a=y+p/2+i,o=c.x,s=c.y;w?o+a>=l&&(s=c.y+=M,c.line++,o=c.x=t.left+(l-u[c.line])/2):s+M>t.bottom&&(o=c.x=o+t.columnWidths[c.line]+r.padding,s=c.y=t.top+r.padding,c.line++),x(o,s,e),b[n].left=o,b[n].top=s,_(o,s,e,i),w?c.x+=a+r.padding:c.y+=M})}},handleEvent:function(t){var e=this,n=e.options,i=\"mouseup\"===t.type?\"click\":t.type,r=!1;if(\"mousemove\"===i){if(!n.onHover)return}else{if(\"click\"!==i)return;if(!n.onClick)return}var a=t.x,o=t.y;if(a>=e.left&&a<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&a<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if(\"click\"===i){n.onClick.call(e,t.native,e.legendItems[l]),r=!0;break}if(\"mousemove\"===i){n.onHover.call(e,t.native,e.legendItems[l]),r=!0;break}}}return r}}),{id:\"legend\",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,r=t.legend;e?(a.mergeIf(e,i.global.legend),r?(o.configure(t,r,e),r.options=e):n(t,e)):r&&(o.removeBox(t,r),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},function(t,e,n){\"use strict\";var i=n(9),r=n(20),a=n(6);i._set(\"global\",{title:{display:!1,fontStyle:\"bold\",fullWidth:!0,lineHeight:1.2,padding:10,position:\"top\",text:\"\",weight:2e3}}),t.exports=function(t){function e(e,i){var r=new t.Title({ctx:e.ctx,options:i,chart:e});n.configure(e,r,i),n.addBox(e,r),e.titleBlock=r}var n=t.layoutService,o=a.noop;return t.Title=r.extend({initialize:function(t){var e=this;a.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:o,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:o,afterBuildLabels:o,beforeFit:o,fit:function(){var t=this,e=a.valueOrDefault,n=t.options,r=n.display,o=e(n.fontSize,i.global.defaultFontSize),s=t.minSize,l=a.isArray(n.text)?n.text.length:1,u=a.options.toLineHeight(n.lineHeight,o),c=r?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:o,isHorizontal:function(){var t=this.options.position;return\"top\"===t||\"bottom\"===t},draw:function(){var t=this,e=t.ctx,n=a.valueOrDefault,r=t.options,o=i.global;if(r.display){var s,l,u,c=n(r.fontSize,o.defaultFontSize),h=n(r.fontStyle,o.defaultFontStyle),d=n(r.fontFamily,o.defaultFontFamily),f=a.fontString(c,h,d),p=a.options.toLineHeight(r.lineHeight,c),m=p/2+r.padding,g=0,v=t.top,y=t.left,b=t.bottom,x=t.right;e.fillStyle=n(r.fontColor,o.defaultFontColor),e.font=f,t.isHorizontal()?(l=y+(x-y)/2,u=v+m,s=x-y):(l=\"left\"===r.position?y+m:x-m,u=v+(b-v)/2,s=b-v,g=Math.PI*(\"left\"===r.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(g),e.textAlign=\"center\",e.textBaseline=\"middle\";var _=r.text;if(a.isArray(_))for(var w=0,M=0;M<_.length;++M)e.fillText(_[M],0,w,s),w+=p;else e.fillText(_,0,0,s);e.restore()}}}),{id:\"title\",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(r){var o=r.options.title,s=r.titleBlock;o?(a.mergeIf(o,i.global.title),s?(n.configure(r,s,o),s.options=o):e(r,o)):s&&(t.layoutService.removeBox(r,s),delete r.titleBlock)}}}},function(t,e,n){\"use strict\";t.exports=function(t){var e={position:\"bottom\"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,e=t.getLabels();t.minIndex=0,t.maxIndex=e.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=e[t.minIndex],t.max=e[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,r=n.isHorizontal();return i.yLabels&&!r?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,i=this,r=i.options.offset,a=Math.max(i.maxIndex+1-i.minIndex-(r?0:1),1);if(void 0!==t&&null!==t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var o=i.getLabels();t=n||t;var s=o.indexOf(t);e=-1!==s?s:e}if(i.isHorizontal()){var l=i.width/a,u=l*(e-i.minIndex);return r&&(u+=l/2),i.left+Math.round(u)}var c=i.height/a,h=c*(e-i.minIndex);return r&&(h+=c/2),i.top+Math.round(h)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,i=Math.max(e._ticks.length-(n?0:1),1),r=e.isHorizontal(),a=(r?e.width:e.height)/i;return t-=r?e.left:e.top,n&&(t-=a/2),(t<=0?0:Math.round(t/a))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType(\"category\",n,e)}},function(t,e,n){\"use strict\";var i=n(9),r=n(6),a=n(47);t.exports=function(t){var e={position:\"left\",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,i=e.chart,a=i.data,o=a.datasets,s=e.isHorizontal();e.min=null,e.max=null;var l=n.stacked;if(void 0===l&&r.each(o,function(e,n){if(!l){var r=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(r)&&void 0!==r.stack&&(l=!0)}}),n.stacked||l){var u={};r.each(o,function(a,o){var s=i.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:\"\",s.stack].join(\".\");void 0===u[l]&&(u[l]={positiveValues:[],negativeValues:[]});var c=u[l].positiveValues,h=u[l].negativeValues;i.isDatasetVisible(o)&&t(s)&&r.each(a.data,function(t,i){var r=+e.getRightValue(t);isNaN(r)||s.data[i].hidden||(c[i]=c[i]||0,h[i]=h[i]||0,n.relativePoints?c[i]=100:r<0?h[i]+=r:c[i]+=r)})}),r.each(u,function(t){var n=t.positiveValues.concat(t.negativeValues),i=r.min(n),a=r.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?a:Math.max(e.max,a)})}else r.each(o,function(n,a){var o=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(o)&&r.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var a=r.valueOrDefault(n.fontSize,i.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*a)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,r=+n.getRightValue(t),a=n.end-i;return n.isHorizontal()?(e=n.left+n.width/a*(r-i),Math.round(e)):(e=n.bottom-n.height/a*(r-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,r=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType(\"linear\",n,e)}},function(t,e,n){\"use strict\";var i=n(6),r=n(47);t.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return\"string\"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options,n=e.ticks;if(n.beginAtZero){var r=i.sign(t.min),a=i.sign(t.max);r<0&&a<0?t.max=0:r>0&&a>0&&(t.min=0)}var o=void 0!==n.min||void 0!==n.suggestedMin,s=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(null===t.min?t.min=n.suggestedMin:t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(null===t.max?t.max=n.suggestedMax:t.max=Math.max(t.max,n.suggestedMax)),o!==s&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options,n=e.ticks,a=t.getTickLimit();a=Math.max(2,a);var o={maxTicks:a,min:n.min,max:n.max,stepSize:i.valueOrDefault(n.fixedStepSize,n.stepSize)},s=t.ticks=r.generators.linear(o,t);t.handleDirectionalChanges(),t.max=i.max(s),t.min=i.min(s),n.reverse?(s.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},function(t,e,n){\"use strict\";var i=n(6),r=n(47);t.exports=function(t){var e={position:\"left\",ticks:{callback:r.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return u?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,r=n.ticks,a=e.chart,o=a.data,s=o.datasets,l=i.valueOrDefault,u=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var c=n.stacked;if(void 0===c&&i.each(s,function(e,n){if(!c){var i=a.getDatasetMeta(n);a.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(c=!0)}}),n.stacked||c){var h={};i.each(s,function(r,o){var s=a.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:\"\",s.stack].join(\".\");a.isDatasetVisible(o)&&t(s)&&(void 0===h[l]&&(h[l]=[]),i.each(r.data,function(t,i){var r=h[l],a=+e.getRightValue(t);isNaN(a)||s.data[i].hidden||(r[i]=r[i]||0,n.relativePoints?r[i]=100:r[i]+=a)}))}),i.each(h,function(t){var n=i.min(t),r=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?r:Math.max(e.max,r)})}else i.each(s,function(n,r){var o=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(o)&&i.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i),0!==i&&(null===e.minNotZero||ir?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){var i,a,l,u=n(t),c=Math.min(t.height/2,t.width/2),h={r:t.width,l:0,t:t.height,b:0},d={};t.ctx.font=u.font,t._pointLabelSizes=[];var f=e(t);for(i=0;ih.r&&(h.r=g.end,d.r=p),v.starth.b&&(h.b=v.end,d.b=p)}t.setReductions(c,h,d)}function u(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function c(t){return 0===t||180===t?\"center\":t<180?\"left\":\"right\"}function h(t,e,n,i){if(r.isArray(e))for(var a=n.y,o=1.5*i,s=0;s270||t<90)&&(n.y-=e.h)}function f(t){var i=t.ctx,a=r.valueOrDefault,o=t.options,s=o.angleLines,l=o.pointLabels;i.lineWidth=s.lineWidth,i.strokeStyle=s.color;var u=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max),f=n(t);i.textBaseline=\"top\";for(var p=e(t)-1;p>=0;p--){if(s.display){var m=t.getPointPosition(p,u);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(m.x,m.y),i.stroke(),i.closePath()}if(l.display){var v=t.getPointPosition(p,u+5),y=a(l.fontColor,g.defaultFontColor);i.font=f.font,i.fillStyle=y;var b=t.getIndexAngle(p),x=r.toDegrees(b);i.textAlign=c(x),d(x,t._pointLabelSizes[p],v),h(i,t.pointLabels[p]||\"\",v,f.size)}}}function p(t,n,i,a){var o=t.ctx;if(o.strokeStyle=r.valueAtIndexOrDefault(n.color,a-1),o.lineWidth=r.valueAtIndexOrDefault(n.lineWidth,a-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var s=e(t);if(0===s)return;o.beginPath();var l=t.getPointPosition(0,i);o.moveTo(l.x,l.y);for(var u=1;u0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,a=r.valueOrDefault;if(e.display){var o=t.ctx,s=this.getIndexAngle(0),l=a(i.fontSize,g.defaultFontSize),u=a(i.fontStyle,g.defaultFontStyle),c=a(i.fontFamily,g.defaultFontFamily),h=r.fontString(l,u,c);r.each(t.ticks,function(e,r){if(r>0||i.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[r]);if(n.display&&0!==r&&p(t,n,u,r),i.display){var c=a(i.fontColor,g.defaultFontColor);if(o.font=h,o.save(),o.translate(t.xCenter,t.yCenter),o.rotate(s),i.showLabelBackdrop){var d=o.measureText(e).width;o.fillStyle=i.backdropColor,o.fillRect(-d/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,d+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}o.textAlign=\"center\",o.textBaseline=\"middle\",o.fillStyle=c,o.fillText(e,0,-u),o.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&f(t)}}});t.scaleService.registerScaleType(\"radialLinear\",y,v)}},function(t,e,n){\"use strict\";function i(t,e){return t-e}function r(t){var e,n,i,r={},a=[];for(e=0,n=t.length;ee&&s=0&&o<=s;){if(i=o+s>>1,r=t[i-1]||null,a=t[i],!r)return{lo:null,hi:a};if(a[e]n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}function s(t,e,n,i){var r=o(t,e,n),a=r.lo?r.hi?r.lo:t[t.length-2]:t[0],s=r.lo?r.hi?r.hi:t[t.length-1]:t[1],l=s[e]-a[e],u=l?(n-a[e])/l:0,c=(s[i]-a[i])*u;return a[i]+c}function l(t,e){var n=e.parser,i=e.parser||e.format;return\"function\"==typeof n?n(t):\"string\"==typeof t&&\"string\"==typeof i?v(t,i):(t instanceof v||(t=v(t)),t.isValid()?t:\"function\"==typeof i?i(t):t)}function u(t,e){if(b.isNullOrUndef(t))return null;var n=e.options.time,i=l(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function c(t,e,n,i){var r,a,o,s=e-t,l=w[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/((i||1)*u));for(r=0,a=c.length;r=M.indexOf(e);r--)if(a=M[r],w[a].common&&o.as(a)>=t.length)return a;return M[e?M.indexOf(e):0]}function f(t){for(var e=M.indexOf(t)+1,n=M.length;e1?e[1]:i,o=e[0],l=(s(t,\"time\",a,\"pos\")-s(t,\"time\",o,\"pos\"))/2),r.time.max||(a=e[e.length-1],o=e.length>1?e[e.length-2]:n,u=(s(t,\"time\",a,\"pos\")-s(t,\"time\",o,\"pos\"))/2)),{left:l,right:u}}function g(t,e){var n,i,r,a,o=[];for(n=0,i=t.length;n=r&&n<=o&&h.push(n);return i.min=r,i.max=o,i._unit=l.unit||d(h,l.minUnit,i.min,i.max),i._majorUnit=f(i._unit),i._table=a(i._timestamps.data,r,o,s.distribution),i._offsets=m(i._table,h,r,o,s),g(h,i._majorUnit)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,r=n.options.time,a=i.labels&&t=0&&t.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,[100*(.4124*e+.3576*n+.1805*i),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function u(t){var e,n,i,r=l(t),a=r[0],o=r[1],s=r[2];return a/=95.047,o/=100,s/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,n=500*(a-o),i=200*(o-s),[e,n,i]}function c(t){return z(u(t))}function h(t){var e,n,i,r,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return a=255*l,[a,a,a];n=l<.5?l*(1+s):l+s-l*s,e=2*l-n,r=[0,0,0];for(var u=0;u<3;u++)i=o+1/3*-(u-1),i<0&&i++,i>1&&i--,a=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[u]=255*a;return r}function d(t){var e,n,i=t[0],r=t[1]/100,a=t[2]/100;return 0===a?[0,0,0]:(a*=2,r*=a<=1?a:2-a,n=(a+r)/2,e=2*r/(a+r),[i,100*e,100*n])}function f(t){return a(h(t))}function p(t){return o(h(t))}function m(t){return s(h(t))}function v(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,r=Math.floor(e)%6,a=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*a),l=255*i*(1-n*(1-a)),i=255*i;switch(r){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}}function y(t){var e,n,i=t[0],r=t[1]/100,a=t[2]/100;return n=(2-r)*a,e=r*a,e/=n<=1?n:2-n,e=e||0,n/=2,[i,100*e,100*n]}function x(t){return a(v(t))}function _(t){return o(v(t))}function w(t){return s(v(t))}function M(t){var e,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),e=Math.floor(6*o),n=1-l,i=6*o-e,0!=(1&e)&&(i=1-i),a=s+i*(n-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function S(t){return n(M(t))}function E(t){return i(M(t))}function k(t){return o(M(t))}function T(t){return s(M(t))}function C(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,r*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),i=1-Math.min(1,o*(1-s)+s),[255*e,255*n,255*i]}function P(t){return n(C(t))}function O(t){return i(C(t))}function A(t){return a(C(t))}function R(t){return s(C(t))}function L(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100;return e=3.2406*r+-1.5372*a+-.4986*o,n=-.9689*r+1.8758*a+.0415*o,i=.0557*r+-.204*a+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*e,255*n,255*i]}function I(t){var e,n,i,r=t[0],a=t[1],o=t[2];return r/=95.047,a/=100,o/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,n=500*(r-a),i=200*(a-o),[e,n,i]}function D(t){return z(I(t))}function N(t){var e,n,i,r,a=t[0],o=t[1],s=t[2];return a<=8?(n=100*a/903.3,r=n/100*7.787+16/116):(n=100*Math.pow((a+16)/116,3),r=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+r-16/116)/7.787:95.047*Math.pow(o/500+r,3),i=i/108.883<=.008859?i=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3),[e,n,i]}function z(t){var e,n,i,r=t[0],a=t[1],o=t[2];return e=Math.atan2(o,a),n=360*e/2/Math.PI,n<0&&(n+=360),i=Math.sqrt(a*a+o*o),[r,i,n]}function B(t){return L(N(t))}function F(t){var e,n,i,r=t[0],a=t[1],o=t[2];return i=o/360*2*Math.PI,e=a*Math.cos(i),n=a*Math.sin(i),[r,e,n]}function U(t){return N(F(t))}function j(t){return B(F(t))}function W(t){return Z[t]}function G(t){return n(W(t))}function V(t){return i(W(t))}function H(t){return a(W(t))}function Y(t){return o(W(t))}function q(t){return u(W(t))}function X(t){return l(W(t))}t.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:c,hsl2rgb:h,hsl2hsv:d,hsl2hwb:f,hsl2cmyk:p,hsl2keyword:m,hsv2rgb:v,hsv2hsl:y,hsv2hwb:x,hsv2cmyk:_,hsv2keyword:w,hwb2rgb:M,hwb2hsl:S,hwb2hsv:E,hwb2cmyk:k,hwb2keyword:T,cmyk2rgb:C,cmyk2hsl:P,cmyk2hsv:O,cmyk2hwb:A,cmyk2keyword:R,keyword2rgb:W,keyword2hsl:G,keyword2hsv:V,keyword2hwb:H,keyword2cmyk:Y,keyword2lab:q,keyword2xyz:X,xyz2rgb:L,xyz2lab:I,xyz2lch:D,lab2xyz:N,lab2rgb:B,lab2lch:z,lch2lab:F,lch2xyz:U,lch2rgb:j};var Z={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},K={};for(var Q in Z)K[JSON.stringify(Z[Q])]=Q},function(t,e,n){var i=n(293),r=function(){return new u};for(var a in i){r[a+\"Raw\"]=function(t){return function(e){return\"number\"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(a);var o=/(\\w+)2(\\w+)/.exec(a),s=o[1],l=o[2];r[s]=r[s]||{},r[s][l]=r[a]=function(t){return function(e){\"number\"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if(\"string\"==typeof n||void 0===n)return n;for(var r=0;r2){if(!l(n))throw new TypeError(\"polynomial()::invalid input argument. Options argument must be an object. Value: `\"+n+\"`.\");if(n.hasOwnProperty(\"copy\")&&(m=n.copy,!u(m)))throw new TypeError(\"polynomial()::invalid option. Copy option must be a boolean primitive. Option: `\"+m+\"`.\");if(n.hasOwnProperty(\"accessor\")&&(r=n.accessor,!c(r)))throw new TypeError(\"polynomial()::invalid option. Accessor must be a function. Option: `\"+r+\"`.\")}if(h=e.length,d=m?new Array(h):e,r)for(p=0;pc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(29),r=n(83),a=n(42),o=n(66),s=n(318);t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var m,g,v=a(e),y=r(v),b=i(s,p,3),x=o(y.length),_=0,w=n?f(e,x):l?f(e,0):void 0;x>_;_++)if((d||_ in y)&&(m=y[_],g=b(m,_,v),t))if(n)w[_]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:w.push(m)}else if(c)return!1;return h?-1:u||c?c:w}}},function(t,e,n){var i=n(21),r=n(125),a=n(17)(\"species\");t.exports=function(t){var e;return r(t)&&(e=t.constructor,\"function\"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var i=n(317);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){\"use strict\";var i=n(22).f,r=n(64),a=n(90),o=n(29),s=n(79),l=n(50),u=n(84),c=n(128),h=n(135),d=n(27),f=n(85).fastKey,p=n(138),m=d?\"_s\":\"size\",g=function(t,e){var n,i=f(e);if(\"F\"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var c=t(function(t,i){s(t,c,e,\"_i\"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&l(i,n,t[u],t)});return a(c.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),i=g(n,t);if(i){var r=i.n,a=i.p;delete n._i[i.i],i.r=!0,a&&(a.n=r),r&&(r.p=a),n._f==i&&(n._f=r),n._l==i&&(n._l=a),n[m]--}return!!i},forEach:function(t){p(this,e);for(var n,i=o(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&i(c.prototype,\"size\",{get:function(){return p(this,e)[m]}}),c},def:function(t,e,n){var i,r,a=g(t,e);return a?a.v=n:(t._l=a={i:r=f(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=a),i&&(i.n=a),t[m]++,\"F\"!==r&&(t._i[r]=a)),t},getEntry:g,setStrong:function(t,e,n){u(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?\"keys\"==e?c(0,n.k):\"values\"==e?c(0,n.v):c(0,[n.k,n.v]):(t._t=void 0,c(1))},n?\"entries\":\"values\",!n,!0),h(e)}}},function(t,e,n){var i=n(62),r=n(314);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+\"#toJSON isn't generic\");return r(this)}}},function(t,e,n){\"use strict\";var i=n(18),r=n(14),a=n(85),o=n(36),s=n(34),l=n(90),u=n(50),c=n(79),h=n(21),d=n(53),f=n(22).f,p=n(316)(0),m=n(27);t.exports=function(t,e,n,g,v,y){var b=i[t],x=b,_=v?\"set\":\"add\",w=x&&x.prototype,M={};return m&&\"function\"==typeof x&&(y||w.forEach&&!o(function(){(new x).entries().next()}))?(x=e(function(e,n){c(e,x,t,\"_c\"),e._c=new b,void 0!=n&&u(n,v,e[_],e)}),p(\"add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON\".split(\",\"),function(t){var e=\"add\"==t||\"set\"==t;t in w&&(!y||\"clear\"!=t)&&s(x.prototype,t,function(n,i){if(c(this,x,t),!e&&y&&!h(n))return\"get\"==t&&void 0;var r=this._c[t](0===n?0:n,i);return e?this:r})}),y||f(x.prototype,\"size\",{get:function(){return this._c.size}})):(x=g.getConstructor(e,t,v,_),l(x.prototype,n),a.NEED=!0),d(x,t),M[t]=x,r(r.G+r.W+r.F,M),y||g.setStrong(x,t,v),x}},function(t,e,n){\"use strict\";var i=n(22),r=n(52);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(51),r=n(88),a=n(65);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var o,s=n(t),l=a.f,u=0;s.length>u;)l.call(t,o=s[u++])&&e.push(o);return e}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){\"use strict\";var i=n(64),r=n(52),a=n(53),o={};n(34)(o,n(17)(\"iterator\"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:r(1,n)}),a(t,e+\" Iterator\")}},function(t,e,n){var i=n(18),r=n(137).set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,l=\"process\"==n(49)(o);t.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=o.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){o.nextTick(u)};else if(!a||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve();n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var h=!0,d=document.createTextNode(\"\");new a(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e,n){\"use strict\";var i=n(51),r=n(88),a=n(65),o=n(42),s=n(83),l=Object.assign;t.exports=!l||n(36)(function(){var t={},e={},n=Symbol(),i=\"abcdefghijklmnopqrst\";return t[n]=7,i.split(\"\").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join(\"\")!=i})?function(t,e){for(var n=o(t),l=arguments.length,u=1,c=r.f,h=a.f;l>u;)for(var d,f=s(arguments[u++]),p=c?i(f).concat(c(f)):i(f),m=p.length,g=0;m>g;)h.call(f,d=p[g++])&&(n[d]=f[d]);return n}:l},function(t,e,n){var i=n(22),r=n(26),a=n(51);t.exports=n(27)?Object.defineProperties:function(t,e){r(t);for(var n,o=a(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],e[n]);return t}},function(t,e,n){var i=n(38),r=n(129).f,a={}.toString,o=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return o.slice()}};t.exports.f=function(t){return o&&\"[object Window]\"==a.call(t)?s(t):r(i(t))}},function(t,e,n){\"use strict\";var i=n(14),r=n(48),a=n(29),o=n(50);t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,s,l=arguments[1];return r(this),e=void 0!==l,e&&r(l),void 0==t?new this:(n=[],e?(i=0,s=a(l,arguments[2],2),o(t,!1,function(t){n.push(s(t,i++))})):o(t,!1,n.push,n),new this(n))}})}},function(t,e,n){\"use strict\";var i=n(14);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){var i=n(21),r=n(26),a=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+\": can't set as prototype!\")};t.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(t,e,i){try{i=n(29)(Function.call,n(87).f(Object.prototype,\"__proto__\").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:a}},function(t,e,n){var i=n(93),r=n(80);t.exports=function(t){return function(e,n){var a,o,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?\"\":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):a:t?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},function(t,e,n){var i=n(93),r=Math.max,a=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):a(t,e)}},function(t,e,n){var i=n(26),r=n(97);t.exports=n(11).getIterator=function(t){var e=r(t);if(\"function\"!=typeof e)throw TypeError(t+\" is not iterable!\");return i(e.call(t))}},function(t,e,n){var i=n(62),r=n(17)(\"iterator\"),a=n(41);t.exports=n(11).isIterable=function(t){var e=Object(t);return void 0!==e[r]||\"@@iterator\"in e||a.hasOwnProperty(i(e))}},function(t,e,n){\"use strict\";var i=n(29),r=n(14),a=n(42),o=n(126),s=n(124),l=n(66),u=n(322),c=n(97);r(r.S+r.F*!n(127)(function(t){Array.from(t)}),\"Array\",{from:function(t){var e,n,r,h,d=a(t),f=\"function\"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(d);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(e=l(d.length),n=new f(e);e>v;v++)u(n,v,g?m(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(r=h.next()).done;v++)u(n,v,g?o(h,m,[r.value,v],!0):r.value);return n.length=v,n}})},function(t,e,n){\"use strict\";var i=n(313),r=n(128),a=n(41),o=n(38);t.exports=n(84)(Array,\"Array\",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):\"keys\"==e?r(0,n):\"values\"==e?r(0,t[n]):r(0,[n,t[n]])},\"values\"),a.Arguments=a.Array,i(\"keys\"),i(\"values\"),i(\"entries\")},function(t,e,n){var i=n(14);i(i.S,\"Math\",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var i=n(14);i(i.S+i.F,\"Object\",{assign:n(327)})},function(t,e,n){var i=n(14);i(i.S,\"Object\",{create:n(64)})},function(t,e,n){var i=n(14);i(i.S+i.F*!n(27),\"Object\",{defineProperty:n(22).f})},function(t,e,n){var i=n(38),r=n(87).f;n(89)(\"getOwnPropertyDescriptor\",function(){return function(t,e){return r(i(t),e)}})},function(t,e,n){var i=n(42),r=n(130);n(89)(\"getPrototypeOf\",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(42),r=n(51);n(89)(\"keys\",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(14);i(i.S,\"Object\",{setPrototypeOf:n(332).set})},function(t,e,n){\"use strict\";var i,r,a,o,s=n(63),l=n(18),u=n(29),c=n(62),h=n(14),d=n(21),f=n(48),p=n(79),m=n(50),g=n(136),v=n(137).set,y=n(326)(),b=n(86),x=n(132),_=n(133),w=l.TypeError,M=l.process,S=l.Promise,E=\"process\"==c(M),k=function(){},T=r=b.f,C=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(17)(\"species\")]=function(t){t(k,k)};return(E||\"function\"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),P=function(t){var e;return!(!d(t)||\"function\"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,r=1==t._s,a=0;n.length>a;)!function(e){var n,a,o=r?e.ok:e.fail,s=e.resolve,l=e.reject,u=e.domain;try{o?(r||(2==t._h&&L(t),t._h=1),!0===o?n=i:(u&&u.enter(),n=o(i),u&&u.exit()),n===e.promise?l(w(\"Promise-chain cycle\")):(a=P(n))?a.call(n,s,l):s(n)):l(i)}catch(t){l(t)}}(n[a++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){v.call(l,function(){var e,n,i,r=t._v,a=R(t);if(a&&(e=x(function(){E?M.emit(\"unhandledRejection\",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error(\"Unhandled promise rejection\",r)}),t._h=E||R(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){v.call(l,function(){var e;E?M.emit(\"rejectionHandled\",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w(\"Promise can't be resolved itself\");(e=P(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,u(D,i,1),u(I,i,1))}catch(t){I.call(i,t)}}):(n._v=t,n._s=1,O(n,!1))}catch(t){I.call({_w:n,_d:!1},t)}}};C||(S=function(t){p(this,S,\"Promise\",\"_h\"),f(t),i.call(this);try{t(u(D,this,1),u(I,this,1))}catch(t){I.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(90)(S.prototype,{then:function(t,e){var n=T(g(this,S));return n.ok=\"function\"!=typeof t||t,n.fail=\"function\"==typeof e&&e,n.domain=E?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=u(D,t,1),this.reject=u(I,t,1)},b.f=T=function(t){return t===S||t===o?new a(t):r(t)}),h(h.G+h.W+h.F*!C,{Promise:S}),n(53)(S,\"Promise\"),n(135)(\"Promise\"),o=n(11).Promise,h(h.S+h.F*!C,\"Promise\",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!C),\"Promise\",{resolve:function(t){return _(s&&this===o?S:this,t)}}),h(h.S+h.F*!(C&&n(127)(function(t){S.all(t).catch(k)})),\"Promise\",{all:function(t){var e=this,n=T(e),i=n.resolve,r=n.reject,a=x(function(){var n=[],a=0,o=1;m(t,!1,function(t){var s=a++,l=!1;n.push(void 0),o++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--o||i(n))},r)}),--o||i(n)});return a.e&&r(a.v),n.promise},race:function(t){var e=this,n=T(e),i=n.reject,r=x(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(t,e,n){\"use strict\";var i=n(319),r=n(138);t.exports=n(321)(\"Set\",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,\"Set\"),t=0===t?0:t,t)}},i)},function(t,e,n){\"use strict\";var i=n(18),r=n(37),a=n(27),o=n(14),s=n(134),l=n(85).KEY,u=n(36),c=n(92),h=n(53),d=n(67),f=n(17),p=n(96),m=n(95),g=n(323),v=n(125),y=n(26),b=n(21),x=n(38),_=n(94),w=n(52),M=n(64),S=n(329),E=n(87),k=n(22),T=n(51),C=E.f,P=k.f,O=S.f,A=i.Symbol,R=i.JSON,L=R&&R.stringify,I=f(\"_hidden\"),D=f(\"toPrimitive\"),N={}.propertyIsEnumerable,z=c(\"symbol-registry\"),B=c(\"symbols\"),F=c(\"op-symbols\"),U=Object.prototype,j=\"function\"==typeof A,W=i.QObject,G=!W||!W.prototype||!W.prototype.findChild,V=a&&u(function(){return 7!=M(P({},\"a\",{get:function(){return P(this,\"a\",{value:7}).a}})).a})?function(t,e,n){var i=C(U,e);i&&delete U[e],P(t,e,n),i&&t!==U&&P(U,e,i)}:P,H=function(t){var e=B[t]=M(A.prototype);return e._k=t,e},Y=j&&\"symbol\"==typeof A.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof A},q=function(t,e,n){return t===U&&q(F,e,n),y(t),e=_(e,!0),y(n),r(B,e)?(n.enumerable?(r(t,I)&&t[I][e]&&(t[I][e]=!1),n=M(n,{enumerable:w(0,!1)})):(r(t,I)||P(t,I,w(1,{})),t[I][e]=!0),V(t,e,n)):P(t,e,n)},X=function(t,e){y(t);for(var n,i=g(e=x(e)),r=0,a=i.length;a>r;)q(t,n=i[r++],e[n]);return t},Z=function(t,e){return void 0===e?M(t):X(M(t),e)},K=function(t){var e=N.call(this,t=_(t,!0));return!(this===U&&r(B,t)&&!r(F,t))&&(!(e||!r(this,t)||!r(B,t)||r(this,I)&&this[I][t])||e)},Q=function(t,e){if(t=x(t),e=_(e,!0),t!==U||!r(B,e)||r(F,e)){var n=C(t,e);return!n||!r(B,e)||r(t,I)&&t[I][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=O(x(t)),i=[],a=0;n.length>a;)r(B,e=n[a++])||e==I||e==l||i.push(e);return i},$=function(t){for(var e,n=t===U,i=O(n?F:x(t)),a=[],o=0;i.length>o;)!r(B,e=i[o++])||n&&!r(U,e)||a.push(B[e]);return a};j||(A=function(){if(this instanceof A)throw TypeError(\"Symbol is not a constructor!\");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(F,n),r(this,I)&&r(this[I],t)&&(this[I][t]=!1),V(this,t,w(1,n))};return a&&G&&V(U,t,{configurable:!0,set:e}),H(t)},s(A.prototype,\"toString\",function(){return this._k}),E.f=Q,k.f=q,n(129).f=S.f=J,n(65).f=K,n(88).f=$,a&&!n(63)&&s(U,\"propertyIsEnumerable\",K,!0),p.f=function(t){return H(f(t))}),o(o.G+o.W+o.F*!j,{Symbol:A});for(var tt=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),et=0;tt.length>et;)f(tt[et++]);for(var nt=T(f.store),it=0;nt.length>it;)m(nt[it++]);o(o.S+o.F*!j,\"Symbol\",{for:function(t){return r(z,t+=\"\")?z[t]:z[t]=A(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+\" is not a symbol!\");for(var e in z)if(z[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!j,\"Object\",{create:Z,defineProperty:q,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:$}),R&&o(o.S+o.F*(!j||u(function(){var t=A();return\"[null]\"!=L([t])||\"{}\"!=L({a:t})||\"{}\"!=L(Object(t))})),\"JSON\",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!Y(t))return v(e)||(e=function(t,e){if(\"function\"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),i[1]=e,L.apply(R,i)}}),A.prototype[D]||n(34)(A.prototype,D,A.prototype.valueOf),h(A,\"Symbol\"),h(Math,\"Math\",!0),h(i.JSON,\"JSON\",!0)},function(t,e,n){\"use strict\";var i=n(14),r=n(11),a=n(18),o=n(136),s=n(133);i(i.P+i.R,\"Promise\",{finally:function(t){var e=o(this,r.Promise||a.Promise),n=\"function\"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){\"use strict\";var i=n(14),r=n(86),a=n(132);i(i.S,\"Promise\",{try:function(t){var e=r.f(this),n=a(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(330)(\"Set\")},function(t,e,n){n(331)(\"Set\")},function(t,e,n){var i=n(14);i(i.P+i.R,\"Set\",{toJSON:n(320)(\"Set\")})},function(t,e,n){n(95)(\"asyncIterator\")},function(t,e,n){n(95)(\"observable\")},function(t,e,n){\"use strict\";var i=n(68),r={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent(\"on\"+e,n),{remove:function(){t.detachEvent(\"on\"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:i}},registerDefault:function(){}};t.exports=r},function(t,e,n){\"use strict\";var i=!(\"undefined\"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:\"undefined\"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=r},function(t,e,n){\"use strict\";function i(t,e){return!(!t||!e)&&(t===e||!r(t)&&(r(e)?i(t,e.parentNode):\"contains\"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var r=n(364);t.exports=i},function(t,e,n){\"use strict\";function i(t){try{t.focus()}catch(t){}}t.exports=i},function(t,e,n){\"use strict\";function i(t){if(void 0===(t=t||(\"undefined\"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=i},function(t,e,n){\"use strict\";function i(t,e,n,i,a,o,s,l){if(r(e),!t){var u;if(void 0===e)u=new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var c=[n,i,a,o,s,l],h=0;u=new Error(e.replace(/%s/g,function(){return c[h++]})),u.name=\"Invariant Violation\"}throw u.framesToPop=1,u}}var r=function(t){};t.exports=i},function(t,e,n){\"use strict\";function i(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!(\"function\"==typeof n.Node?t instanceof n.Node:\"object\"==typeof t&&\"number\"==typeof t.nodeType&&\"string\"==typeof t.nodeName))}t.exports=i},function(t,e,n){\"use strict\";function i(t){return r(t)&&3==t.nodeType}var r=n(363);t.exports=i},function(t,e,n){\"use strict\";function i(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function r(t,e){if(i(t,e))return!0;if(\"object\"!=typeof t||null===t||\"object\"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t}t.exports=n},function(t,e){function n(t,e,n){return t[0]=e,t[1]=n,t}t.exports=n},function(t,e){function n(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}t.exports=n},function(t,e,n){\"use strict\";function i(t){return t in o?o[t]:o[t]=t.replace(r,\"-$&\").toLowerCase().replace(a,\"-ms-\")}var r=/[A-Z]/g,a=/^ms-/,o={};t.exports=i},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function a(t){var e=t.prefixMap,n=t.plugins,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t);var i=\"undefined\"!=typeof navigator?navigator.userAgent:void 0;if(this._userAgent=n.userAgent||i,this._keepUnprefixed=n.keepUnprefixed||!1,this._userAgent&&(this._browserInfo=(0,l.default)(this._userAgent)),!this._browserInfo||!this._browserInfo.cssPrefix)return this._useFallback=!0,!1;this.prefixedKeyframes=(0,c.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);var a=this._browserInfo.browserName&&e[this._browserInfo.browserName];if(a){this._requiresPrefix={};for(var o in a)a[o]>=this._browserInfo.browserVersion&&(this._requiresPrefix[o]=!0);this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return o(t,[{key:\"prefix\",value:function(t){return this._useFallback?i(t):this._hasPropsRequiringPrefix?this._prefixStyle(t):t}},{key:\"_prefixStyle\",value:function(t){for(var e in t){var i=t[e];if((0,g.default)(i))t[e]=this.prefix(i);else if(Array.isArray(i)){for(var r=[],a=0,o=i.length;a0&&(t[e]=r)}else{var l=(0,y.default)(n,e,i,t,this._metaData);l&&(t[e]=l),this._requiresPrefix.hasOwnProperty(e)&&(t[this._browserInfo.jsPrefix+(0,d.default)(e)]=i,this._keepUnprefixed||delete t[e])}}return t}}],[{key:\"prefixAll\",value:function(t){return i(t)}}]),t}()}Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(){function t(t,e){for(var n=0;n-1&&(\"chrome\"===r||\"opera\"===r||\"and_chr\"===r||(\"ios_saf\"===r||\"safari\"===r)&&o<10))return(0,a.default)(e.replace(/cross-fade\\(/g,s+\"cross-fade(\"),e,l)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,l=i.browserVersion,u=i.cssPrefix,c=i.keepUnprefixed;return\"cursor\"!==t||!o[e]||\"firefox\"!==r&&\"chrome\"!==r&&\"safari\"!==r&&\"opera\"!==r?\"cursor\"===t&&s[e]&&(\"firefox\"===r&&l<24||\"chrome\"===r&&l<37||\"safari\"===r&&l<9||\"opera\"===r&&l<24)?(0,a.default)(u+e,e,c):void 0:(0,a.default)(u+e,e,c)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={grab:!0,grabbing:!0},s={\"zoom-in\":!0,\"zoom-out\":!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,o=i.browserVersion,s=i.cssPrefix,l=i.keepUnprefixed;if(\"string\"==typeof e&&e.indexOf(\"filter(\")>-1&&(\"ios_saf\"===r||\"safari\"===r&&o<9.1))return(0,a.default)(e.replace(/filter\\(/g,s+\"filter(\"),e,l)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if(\"display\"===t&&o[e]&&(\"chrome\"===r&&s<29&&s>20||(\"safari\"===r||\"ios_saf\"===r)&&s<9&&s>6||\"opera\"===r&&(15===s||16===s)))return(0,a.default)(l+e,e,u)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={flex:!0,\"inline-flex\":!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,l=i.browserVersion,c=i.cssPrefix,h=i.keepUnprefixed,d=i.requiresPrefix;if((u.indexOf(t)>-1||\"display\"===t&&\"string\"==typeof e&&e.indexOf(\"flex\")>-1)&&(\"firefox\"===r&&l<22||\"chrome\"===r&&l<21||(\"safari\"===r||\"ios_saf\"===r)&&l<=6.1||\"android\"===r&&l<4.4||\"and_uc\"===r)){if(delete d[t],h||Array.isArray(n[t])||delete n[t],\"flexDirection\"===t&&\"string\"==typeof e&&(e.indexOf(\"column\")>-1?n.WebkitBoxOrient=\"vertical\":n.WebkitBoxOrient=\"horizontal\",e.indexOf(\"reverse\")>-1?n.WebkitBoxDirection=\"reverse\":n.WebkitBoxDirection=\"normal\"),\"display\"===t&&o.hasOwnProperty(e))return(0,a.default)(c+o[e],e,h);s.hasOwnProperty(t)&&(n[s[t]]=o[e]||e)}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={\"space-around\":\"justify\",\"space-between\":\"justify\",\"flex-start\":\"start\",\"flex-end\":\"end\",\"wrap-reverse\":\"multiple\",wrap:\"multiple\",flex:\"box\",\"inline-flex\":\"inline-box\"},s={alignItems:\"WebkitBoxAlign\",justifyContent:\"WebkitBoxPack\",flexWrap:\"WebkitBoxLines\"},l=[\"alignContent\",\"alignSelf\",\"order\",\"flexGrow\",\"flexShrink\",\"flexBasis\",\"flexDirection\"],u=Object.keys(s).concat(l);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if(\"string\"==typeof e&&o.test(e)&&(\"firefox\"===r&&s<16||\"chrome\"===r&&s<26||(\"safari\"===r||\"ios_saf\"===r)&&s<7||(\"opera\"===r||\"op_mini\"===r)&&s<12.1||\"android\"===r&&s<4.4||\"and_uc\"===r))return(0,a.default)(l+e,e,u)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,o=i.cssPrefix,s=i.keepUnprefixed;if(\"string\"==typeof e&&e.indexOf(\"image-set(\")>-1&&(\"chrome\"===r||\"opera\"===r||\"and_chr\"===r||\"and_uc\"===r||\"ios_saf\"===r||\"safari\"===r))return(0,a.default)(e.replace(/image-set\\(/g,o+\"image-set(\"),e,s)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,o=i.cssPrefix,s=i.keepUnprefixed;if(\"position\"===t&&\"sticky\"===e&&(\"safari\"===r||\"ios_saf\"===r))return(0,a.default)(o+e,e,s)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.cssPrefix,l=i.keepUnprefixed;if(o.hasOwnProperty(t)&&s.hasOwnProperty(e))return(0,a.default)(r+e,e,l)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},s={\"min-content\":!0,\"max-content\":!0,\"fill-available\":!0,\"fit-content\":!0,\"contain-floats\":!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.cssPrefix,l=i.keepUnprefixed,u=i.requiresPrefix;if(\"string\"==typeof e&&o.hasOwnProperty(t)){s||(s=Object.keys(u).map(function(t){return(0,a.default)(t)}));var c=e.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g);return s.forEach(function(t){c.forEach(function(e,n){e.indexOf(t)>-1&&\"order\"!==t&&(c[n]=e.replace(t,r+t)+(l?\",\"+e:\"\"))})}),c.join(\",\")}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(139),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s=void 0;t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){function e(t){for(var r in t){var a=t[r];if((0,d.default)(a))t[r]=e(a);else if(Array.isArray(a)){for(var s=[],u=0,h=a.length;u0&&(t[r]=s)}else{var p=(0,l.default)(i,r,a,t,n);p&&(t[r]=p),(0,o.default)(n,r,t)}}return t}var n=t.prefixMap,i=t.plugins;return e}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=r;var a=n(400),o=i(a),s=n(144),l=i(s),u=n(142),c=i(u),h=n(143),d=i(h);t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(385),a=i(r),o=n(397),s=i(o),l=n(388),u=i(l),c=n(387),h=i(c),d=n(389),f=i(d),p=n(390),m=i(p),g=n(391),v=i(g),y=n(392),b=i(y),x=n(393),_=i(x),w=n(394),M=i(w),S=n(395),E=i(S),k=n(396),T=i(k),C=[h.default,u.default,f.default,v.default,b.default,_.default,M.default,E.default,T.default,m.default];e.default=(0,a.default)({prefixMap:s.default.prefixMap,plugins:C}),t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"string\"==typeof e&&!(0,a.default)(e)&&e.indexOf(\"cross-fade(\")>-1)return o.map(function(t){return e.replace(/cross-fade\\(/g,t+\"cross-fade(\")})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=[\"-webkit-\",\"\"];t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"cursor\"===t&&a.hasOwnProperty(e))return r.map(function(t){return t+e})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=[\"-webkit-\",\"-moz-\",\"\"],a={\"zoom-in\":!0,\"zoom-out\":!0,grab:!0,grabbing:!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"string\"==typeof e&&!(0,a.default)(e)&&e.indexOf(\"filter(\")>-1)return o.map(function(t){return e.replace(/filter\\(/g,t+\"filter(\")})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=[\"-webkit-\",\"\"];t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"display\"===t&&r.hasOwnProperty(e))return r[e]}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r={flex:[\"-webkit-box\",\"-moz-box\",\"-ms-flexbox\",\"-webkit-flex\",\"flex\"],\"inline-flex\":[\"-webkit-inline-box\",\"-moz-inline-box\",\"-ms-inline-flexbox\",\"-webkit-inline-flex\",\"inline-flex\"]};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n){\"flexDirection\"===t&&\"string\"==typeof e&&(e.indexOf(\"column\")>-1?n.WebkitBoxOrient=\"vertical\":n.WebkitBoxOrient=\"horizontal\",e.indexOf(\"reverse\")>-1?n.WebkitBoxDirection=\"reverse\":n.WebkitBoxDirection=\"normal\"),a.hasOwnProperty(t)&&(n[a[t]]=r[e]||e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r={\"space-around\":\"justify\",\"space-between\":\"justify\",\"flex-start\":\"start\",\"flex-end\":\"end\",\"wrap-reverse\":\"multiple\",wrap:\"multiple\"},a={alignItems:\"WebkitBoxAlign\",justifyContent:\"WebkitBoxPack\",flexWrap:\"WebkitBoxLines\"};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"string\"==typeof e&&!(0,a.default)(e)&&s.test(e))return o.map(function(t){return t+e})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=[\"-webkit-\",\"-moz-\",\"\"],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"string\"==typeof e&&!(0,a.default)(e)&&e.indexOf(\"image-set(\")>-1)return o.map(function(t){return e.replace(/image-set\\(/g,t+\"image-set(\")})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=[\"-webkit-\",\"\"];t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"position\"===t&&\"sticky\"===e)return[\"-webkit-sticky\",\"sticky\"]}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(a.hasOwnProperty(t)&&o.hasOwnProperty(e))return r.map(function(t){return t+e})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=[\"-webkit-\",\"-moz-\",\"\"],a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={\"min-content\":!0,\"max-content\":!0,\"fill-available\":!0,\"fit-content\":!0,\"contain-floats\":!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if((0,u.default)(t))return t;for(var n=t.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g),i=0,r=n.length;i-1&&\"order\"!==c)for(var h=e[l],d=0,p=h.length;d-1)return o;var s=a.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g).filter(function(t){return!/-webkit-|-ms-/.test(t)}).join(\",\");return t.indexOf(\"Moz\")>-1?s:(n[\"Webkit\"+(0,h.default)(t)]=o,n[\"Moz\"+(0,h.default)(t)]=s,a)}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=a;var o=n(139),s=i(o),l=n(55),u=i(l),c=n(100),h=i(c),d={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},f={Webkit:\"-webkit-\",Moz:\"-moz-\",ms:\"-ms-\"};t.exports=e.default},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var i=[\"Webkit\"],r=[\"Moz\"],a=[\"ms\"],o=[\"Webkit\",\"Moz\"],s=[\"Webkit\",\"ms\"],l=[\"Webkit\",\"Moz\",\"ms\"];e.default={plugins:[],prefixMap:{appearance:o,userSelect:l,textEmphasisPosition:i,textEmphasis:i,textEmphasisStyle:i,textEmphasisColor:i,boxDecorationBreak:i,clipPath:i,maskImage:i,maskMode:i,maskRepeat:i,maskPosition:i,maskClip:i,maskOrigin:i,maskSize:i,maskComposite:i,mask:i,maskBorderSource:i,maskBorderMode:i,maskBorderSlice:i,maskBorderWidth:i,maskBorderOutset:i,maskBorderRepeat:i,maskBorder:i,maskType:i,textDecorationStyle:i,textDecorationSkip:i,textDecorationLine:i,textDecorationColor:i,filter:i,fontFeatureSettings:i,breakAfter:l,breakBefore:l,breakInside:l,columnCount:o,columnFill:o,columnGap:o,columnRule:o,columnRuleColor:o,columnRuleStyle:o,columnRuleWidth:o,columns:o,columnSpan:o,columnWidth:o,writingMode:s,flex:i,flexBasis:i,flexDirection:i,flexGrow:i,flexFlow:i,flexShrink:i,flexWrap:i,alignContent:i,alignItems:i,alignSelf:i,justifyContent:i,order:i,transform:i,transformOrigin:i,transformOriginX:i,transformOriginY:i,backfaceVisibility:i,perspective:i,perspectiveOrigin:i,transformStyle:i,transformOriginZ:i,animation:i,animationDelay:i,animationDirection:i,animationFillMode:i,animationDuration:i,animationIterationCount:i,animationName:i,animationPlayState:i,animationTimingFunction:i,backdropFilter:i,fontKerning:i,scrollSnapType:s,scrollSnapPointsX:s,scrollSnapPointsY:s,scrollSnapDestination:s,scrollSnapCoordinate:s,shapeImageThreshold:i,shapeImageMargin:i,shapeImageOutside:i,hyphens:l,flowInto:s,flowFrom:s,regionFragment:s,textAlignLast:r,tabSize:r,wrapFlow:a,wrapThrough:a,wrapMargin:a,gridTemplateColumns:a,gridTemplateRows:a,gridTemplateAreas:a,gridTemplate:a,gridAutoColumns:a,gridAutoRows:a,gridAutoFlow:a,grid:a,gridRowStart:a,gridColumnStart:a,gridRowEnd:a,gridRow:a,gridColumn:a,gridColumnEnd:a,gridColumnGap:a,gridRowGap:a,gridArea:a,gridGap:a,textSizeAdjust:s,borderImage:i,borderImageOutset:i,borderImageRepeat:i,borderImageSlice:i,borderImageSource:i,borderImageWidth:i,transitionDelay:i,transitionDuration:i,transitionProperty:i,transitionTimingFunction:i}},t.exports=e.default},function(t,e,n){\"use strict\";function i(t){if(t.firefox)return\"firefox\";if(t.mobile||t.tablet){if(t.ios)return\"ios_saf\";if(t.android)return\"android\";if(t.opera)return\"op_mini\"}for(var e in l)if(t.hasOwnProperty(e))return l[e]}function r(t){var e=o.default._detect(t);e.yandexbrowser&&(e=o.default._detect(t.replace(/YaBrowser\\/[0-9.]*/,\"\")));for(var n in s)if(e.hasOwnProperty(n)){var r=s[n];e.jsPrefix=r,e.cssPrefix=\"-\"+r.toLowerCase()+\"-\";break}return e.browserName=i(e),e.version?e.browserVersion=parseFloat(e.version):e.browserVersion=parseInt(parseFloat(e.osversion),10),e.osVersion=parseFloat(e.osversion),\"ios_saf\"===e.browserName&&e.browserVersion>e.osVersion&&(e.browserVersion=e.osVersion),\"android\"===e.browserName&&e.chrome&&e.browserVersion>37&&(e.browserName=\"and_chr\"),\"android\"===e.browserName&&e.osVersion<5&&(e.browserVersion=e.osVersion),\"android\"===e.browserName&&e.samsungBrowser&&(e.browserName=\"and_chr\",e.browserVersion=44),e}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=r;var a=n(248),o=function(t){return t&&t.__esModule?t:{default:t}}(a),s={chrome:\"Webkit\",safari:\"Webkit\",ios:\"Webkit\",android:\"Webkit\",phantom:\"Webkit\",opera:\"Webkit\",webos:\"Webkit\",blackberry:\"Webkit\",bada:\"Webkit\",tizen:\"Webkit\",chromium:\"Webkit\",vivaldi:\"Webkit\",firefox:\"Moz\",seamoney:\"Moz\",sailfish:\"Moz\",msie:\"ms\",msedge:\"ms\"},l={chrome:\"chrome\",chromium:\"chrome\",safari:\"safari\",firfox:\"firefox\",msedge:\"edge\",opera:\"opera\",vivaldi:\"opera\",msie:\"ie\"};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n){return\"chrome\"===t&&e<43||(\"safari\"===t||\"ios_saf\"===t)&&e<9||\"opera\"===t&&e<30||\"android\"===t&&e<=4.4||\"and_uc\"===t?n+\"keyframes\":\"keyframes\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n){if(t.hasOwnProperty(e))for(var i=t[e],r=0,o=i.length;r0)for(n=0;n0?\"future\":\"past\"];return E(n)?n(e):n.replace(/%s/i,e)}function D(t,e){var n=t.toLowerCase();Ri[n]=Ri[n+\"s\"]=Ri[e]=t}function N(t){return\"string\"==typeof t?Ri[t]||Ri[t.toLowerCase()]:void 0}function z(t){var e,n,i={};for(n in t)u(t,n)&&(e=N(n))&&(i[e]=t[n]);return i}function B(t,e){Li[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Li[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function U(t,n){return function(i){return null!=i?(W(this,t,i),e.updateOffset(this,n),this):j(this,t)}}function j(t,e){return t.isValid()?t._d[\"get\"+(t._isUTC?\"UTC\":\"\")+e]():NaN}function W(t,e,n){t.isValid()&&t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+e](n)}function G(t){return t=N(t),E(this[t])?this[t]():this}function V(t,e){if(\"object\"==typeof t){t=z(t);for(var n=F(t),i=0;i=0?n?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function Y(t,e,n,i){var r=i;\"string\"==typeof i&&(r=function(){return this[i]()}),t&&(zi[t]=r),e&&(zi[e[0]]=function(){return H(r.apply(this,arguments),e[1],e[2])}),n&&(zi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function q(t){return t.match(/\\[[\\s\\S]/)?t.replace(/^\\[|\\]$/g,\"\"):t.replace(/\\\\/g,\"\")}function X(t){var e,n,i=t.match(Ii);for(e=0,n=i.length;e=0&&Di.test(t);)t=t.replace(Di,n),Di.lastIndex=0,i-=1;return t}function Q(t,e,n){er[t]=E(e)?e:function(t,i){return t&&n?n:e}}function J(t,e){return u(er,t)?er[t](e._strict,e._locale):new RegExp($(t))}function $(t){return tt(t.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}function tt(t){return t.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function et(t,e){var n,i=e;for(\"string\"==typeof t&&(t=[t]),o(e)&&(i=function(t,n){n[e]=x(t)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function xt(t,e,n){var i=7+e-n;return-(7+bt(t,0,i).getUTCDay()-e)%7+i-1}function _t(t,e,n,i,r){var a,o,s=(7+n-i)%7,l=xt(t,i,r),u=1+7*(e-1)+s+l;return u<=0?(a=t-1,o=mt(a)+u):u>mt(t)?(a=t+1,o=u-mt(t)):(a=t,o=u),{year:a,dayOfYear:o}}function wt(t,e,n){var i,r,a=xt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?(r=t.year()-1,i=o+Mt(r,e,n)):o>Mt(t.year(),e,n)?(i=o-Mt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Mt(t,e,n){var i=xt(t,e,n),r=xt(t+1,e,n);return(mt(t)-i+r)/7}function St(t){return wt(t,this._week.dow,this._week.doy).week}function Et(){return this._week.dow}function kt(){return this._week.doy}function Tt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),\"d\")}function Ct(t){var e=wt(this,1,4).week;return null==t?e:this.add(7*(t-e),\"d\")}function Pt(t,e){return\"string\"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),\"number\"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return\"string\"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function At(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?\"format\":\"standalone\"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Rt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Lt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function It(t,e,n){var i,r,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,\"\").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,\"\").toLocaleLowerCase();return n?\"dddd\"===e?(r=dr.call(this._weekdaysParse,o),-1!==r?r:null):\"ddd\"===e?(r=dr.call(this._shortWeekdaysParse,o),-1!==r?r:null):(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):\"dddd\"===e?-1!==(r=dr.call(this._weekdaysParse,o))?r:-1!==(r=dr.call(this._shortWeekdaysParse,o))?r:(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):\"ddd\"===e?-1!==(r=dr.call(this._shortWeekdaysParse,o))?r:-1!==(r=dr.call(this._weekdaysParse,o))?r:(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):-1!==(r=dr.call(this._minWeekdaysParse,o))?r:-1!==(r=dr.call(this._weekdaysParse,o))?r:(r=dr.call(this._shortWeekdaysParse,o),-1!==r?r:null)}function Dt(t,e,n){var i,r,a;if(this._weekdaysParseExact)return It.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp(\"^\"+this.weekdays(r,\"\").replace(\".\",\".?\")+\"$\",\"i\"),this._shortWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysShort(r,\"\").replace(\".\",\".?\")+\"$\",\"i\"),this._minWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysMin(r,\"\").replace(\".\",\".?\")+\"$\",\"i\")),this._weekdaysParse[i]||(a=\"^\"+this.weekdays(r,\"\")+\"|^\"+this.weekdaysShort(r,\"\")+\"|^\"+this.weekdaysMin(r,\"\"),this._weekdaysParse[i]=new RegExp(a.replace(\".\",\"\"),\"i\")),n&&\"dddd\"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&\"ddd\"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&\"dd\"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,\"d\")):e}function zt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,\"d\")}function Bt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ft(t){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,\"_weekdaysRegex\")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ut(t){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=Sr),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jt(t){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=Er),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wt(){function t(t,e){return e.length-t.length}var e,n,i,r,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=this.weekdaysMin(n,\"\"),r=this.weekdaysShort(n,\"\"),a=this.weekdays(n,\"\"),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);for(o.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=tt(s[e]),l[e]=tt(l[e]),u[e]=tt(u[e]);this._weekdaysRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\")}function Gt(){return this.hours()%12||12}function Vt(){return this.hours()||24}function Ht(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Yt(t,e){return e._meridiemParse}function qt(t){return\"p\"===(t+\"\").toLowerCase().charAt(0)}function Xt(t,e,n){return t>11?n?\"pm\":\"PM\":n?\"am\":\"AM\"}function Zt(t){return t?t.toLowerCase().replace(\"_\",\"-\"):t}function Kt(t){for(var e,n,i,r,a=0;a0;){if(i=Qt(r.slice(0,e).join(\"-\")))return i;if(n&&n.length>=e&&_(r,n,!0)>=e-1)break;e--}a++}return null}function Qt(e){var n=null;if(!Or[e]&&void 0!==t&&t&&t.exports)try{n=kr._abbr,function(){var t=new Error('Cannot find module \"./locale\"');throw t.code=\"MODULE_NOT_FOUND\",t}(),Jt(n)}catch(t){}return Or[e]}function Jt(t,e){var n;return t&&(n=a(e)?ee(t):$t(t,e))&&(kr=n),kr._abbr}function $t(t,e){if(null!==e){var n=Pr;if(e.abbr=t,null!=Or[t])S(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),n=Or[t]._config;else if(null!=e.parentLocale){if(null==Or[e.parentLocale])return Ar[e.parentLocale]||(Ar[e.parentLocale]=[]),Ar[e.parentLocale].push({name:t,config:e}),null;n=Or[e.parentLocale]._config}return Or[t]=new C(T(n,e)),Ar[t]&&Ar[t].forEach(function(t){$t(t.name,t.config)}),Jt(t),Or[t]}return delete Or[t],null}function te(t,e){if(null!=e){var n,i=Pr;null!=Or[t]&&(i=Or[t]._config),e=T(i,e),n=new C(e),n.parentLocale=Or[t],Or[t]=n,Jt(t)}else null!=Or[t]&&(null!=Or[t].parentLocale?Or[t]=Or[t].parentLocale:null!=Or[t]&&delete Or[t]);return Or[t]}function ee(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return kr;if(!n(t)){if(e=Qt(t))return e;t=[t]}return Kt(t)}function ne(){return Ti(Or)}function ie(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[rr]<0||n[rr]>11?rr:n[ar]<1||n[ar]>rt(n[ir],n[rr])?ar:n[or]<0||n[or]>24||24===n[or]&&(0!==n[sr]||0!==n[lr]||0!==n[ur])?or:n[sr]<0||n[sr]>59?sr:n[lr]<0||n[lr]>59?lr:n[ur]<0||n[ur]>999?ur:-1,f(t)._overflowDayOfYear&&(ear)&&(e=ar),f(t)._overflowWeeks&&-1===e&&(e=cr),f(t)._overflowWeekday&&-1===e&&(e=hr),f(t).overflow=e),t}function re(t){var e,n,i,r,a,o,s=t._i,l=Rr.exec(s)||Lr.exec(s);if(l){for(f(t).iso=!0,e=0,n=Dr.length;e10?\"YYYY \":\"YY \"),a=\"HH:mm\"+(n[4]?\":ss\":\"\"),n[1]){var h=new Date(n[2]),d=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"][h.getDay()];if(n[1].substr(0,3)!==d)return f(t).weekdayMismatch=!0,void(t._isValid=!1)}switch(n[5].length){case 2:0===l?s=\" +0000\":(l=c.indexOf(n[5][1].toUpperCase())-12,s=(l<0?\" -\":\" +\")+(\"\"+l).replace(/^-?/,\"0\").match(/..$/)[0]+\"00\");break;case 4:s=u[n[5]];break;default:s=u[\" GMT\"]}n[5]=s,t._i=n.splice(1).join(\"\"),o=\" ZZ\",t._f=i+r+a+o,he(t),f(t).rfc2822=!0}else t._isValid=!1}function oe(t){var n=zr.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));re(t),!1===t._isValid&&(delete t._isValid,ae(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function se(t,e,n){return null!=t?t:null!=e?e:n}function le(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ue(t){var e,n,i,r,a=[];if(!t._d){for(i=le(t),t._w&&null==t._a[ar]&&null==t._a[rr]&&ce(t),null!=t._dayOfYear&&(r=se(t._a[ir],i[ir]),(t._dayOfYear>mt(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=bt(r,0,t._dayOfYear),t._a[rr]=n.getUTCMonth(),t._a[ar]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[or]&&0===t._a[sr]&&0===t._a[lr]&&0===t._a[ur]&&(t._nextDay=!0,t._a[or]=0),t._d=(t._useUTC?bt:yt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[or]=24)}}function ce(t){var e,n,i,r,a,o,s,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)a=1,o=4,n=se(e.GG,t._a[ir],wt(be(),1,4).year),i=se(e.W,1),((r=se(e.E,1))<1||r>7)&&(l=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var u=wt(be(),a,o);n=se(e.gg,t._a[ir],u.year),i=se(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+a,(e.e<0||e.e>6)&&(l=!0)):r=a}i<1||i>Mt(n,a,o)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=_t(n,i,r,a,o),t._a[ir]=s.year,t._dayOfYear=s.dayOfYear)}function he(t){if(t._f===e.ISO_8601)return void re(t);if(t._f===e.RFC_2822)return void ae(t);t._a=[],f(t).empty=!0;var n,i,r,a,o,s=\"\"+t._i,l=s.length,u=0;for(r=K(t._f,t._locale).match(Ii)||[],n=0;n0&&f(t).unusedInput.push(o),s=s.slice(s.indexOf(i)+i.length),u+=i.length),zi[a]?(i?f(t).empty=!1:f(t).unusedTokens.push(a),it(a,i,t)):t._strict&&!i&&f(t).unusedTokens.push(a);f(t).charsLeftOver=l-u,s.length>0&&f(t).unusedInput.push(s),t._a[or]<=12&&!0===f(t).bigHour&&t._a[or]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[or]=de(t._locale,t._a[or],t._meridiem),ue(t),ie(t)}function de(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function fe(t){var e,n,i,r,a;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ue(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=ge(t),t._a){var e=t._isUTC?h(t._a):be(t._a);this._isDSTShifted=this.isValid()&&_(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function je(){return!!this.isValid()&&!this._isUTC}function We(){return!!this.isValid()&&this._isUTC}function Ge(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ve(t,e){var n,i,r,a=t,s=null;return Te(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(a={},e?a[e]=t:a.milliseconds=t):(s=Vr.exec(t))?(n=\"-\"===s[1]?-1:1,a={y:0,d:x(s[ar])*n,h:x(s[or])*n,m:x(s[sr])*n,s:x(s[lr])*n,ms:x(Ce(1e3*s[ur]))*n}):(s=Hr.exec(t))?(n=\"-\"===s[1]?-1:1,a={y:He(s[2],n),M:He(s[3],n),w:He(s[4],n),d:He(s[5],n),h:He(s[6],n),m:He(s[7],n),s:He(s[8],n)}):null==a?a={}:\"object\"==typeof a&&(\"from\"in a||\"to\"in a)&&(r=qe(be(a.from),be(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new ke(a),Te(t)&&u(t,\"_locale\")&&(i._locale=t._locale),i}function He(t,e){var n=t&&parseFloat(t.replace(\",\",\".\"));return(isNaN(n)?0:n)*e}function Ye(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,\"M\").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,\"M\"),n}function qe(t,e){var n;return t.isValid()&&e.isValid()?(e=Ae(e,t),t.isBefore(e)?n=Ye(t,e):(n=Ye(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Xe(t,e){return function(n,i){var r,a;return null===i||isNaN(+i)||(S(e,\"moment().\"+e+\"(period, number) is deprecated. Please use moment().\"+e+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),a=n,n=i,i=a),n=\"string\"==typeof n?+n:n,r=Ve(n,i),Ze(this,r,t),this}}function Ze(t,n,i,r){var a=n._milliseconds,o=Ce(n._days),s=Ce(n._months);t.isValid()&&(r=null==r||r,a&&t._d.setTime(t._d.valueOf()+a*i),o&&W(t,\"Date\",j(t,\"Date\")+o*i),s&&ut(t,j(t,\"Month\")+s*i),r&&e.updateOffset(t,o||s))}function Ke(t,e){var n=t.diff(e,\"days\",!0);return n<-6?\"sameElse\":n<-1?\"lastWeek\":n<0?\"lastDay\":n<1?\"sameDay\":n<2?\"nextDay\":n<7?\"nextWeek\":\"sameElse\"}function Qe(t,n){var i=t||be(),r=Ae(i,this).startOf(\"day\"),a=e.calendarFormat(this,r)||\"sameElse\",o=n&&(E(n[a])?n[a].call(this,i):n[a]);return this.format(o||this.localeData().calendar(a,this,be(i)))}function Je(){return new v(this)}function $e(t,e){var n=y(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&(e=N(a(e)?\"millisecond\":e),\"millisecond\"===e?this.valueOf()>n.valueOf():n.valueOf()9999?Z(t,\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\"):E(Date.prototype.toISOString)?this.toDate().toISOString():Z(t,\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")}function cn(){if(!this.isValid())return\"moment.invalid(/* \"+this._i+\" */)\";var t=\"moment\",e=\"\";this.isLocal()||(t=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",e=\"Z\");var n=\"[\"+t+'(\"]',i=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",r=e+'[\")]';return this.format(n+i+\"-MM-DD[T]HH:mm:ss.SSS\"+r)}function hn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=Z(this,t);return this.localeData().postformat(n)}function dn(t,e){return this.isValid()&&(y(t)&&t.isValid()||be(t).isValid())?Ve({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fn(t){return this.from(be(),t)}function pn(t,e){return this.isValid()&&(y(t)&&t.isValid()||be(t).isValid())?Ve({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mn(t){return this.to(be(),t)}function gn(t){var e;return void 0===t?this._locale._abbr:(e=ee(t),null!=e&&(this._locale=e),this)}function vn(){return this._locale}function yn(t){switch(t=N(t)){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":case\"date\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}return\"week\"===t&&this.weekday(0),\"isoWeek\"===t&&this.isoWeekday(1),\"quarter\"===t&&this.month(3*Math.floor(this.month()/3)),this}function bn(t){return void 0===(t=N(t))||\"millisecond\"===t?this:(\"date\"===t&&(t=\"day\"),this.startOf(t).add(1,\"isoWeek\"===t?\"week\":t).subtract(1,\"ms\"))}function xn(){return this._d.valueOf()-6e4*(this._offset||0)}function _n(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function Mn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Sn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function En(){return this.isValid()?this.toISOString():null}function kn(){return p(this)}function Tn(){return c({},f(this))}function Cn(){return f(this).overflow}function Pn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function On(t,e){Y(0,[t,t.length],0,e)}function An(t){return Dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Rn(t){return Dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Mt(this.year(),1,4)}function In(){var t=this.localeData()._week;return Mt(this.year(),t.dow,t.doy)}function Dn(t,e,n,i,r){var a;return null==t?wt(this,i,r).year:(a=Mt(t,i,r),e>a&&(e=a),Nn.call(this,t,e,n,i,r))}function Nn(t,e,n,i,r){var a=_t(t,e,n,i,r),o=bt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function zn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Bn(t){var e=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==t?e:this.add(t-e,\"d\")}function Fn(t,e){e[ur]=x(1e3*(\"0.\"+t))}function Un(){return this._isUTC?\"UTC\":\"\"}function jn(){return this._isUTC?\"Coordinated Universal Time\":\"\"}function Wn(t){return be(1e3*t)}function Gn(){return be.apply(null,arguments).parseZone()}function Vn(t){return t}function Hn(t,e,n,i){var r=ee(),a=h().set(i,e);return r[n](a,t)}function Yn(t,e,n){if(o(t)&&(e=t,t=void 0),t=t||\"\",null!=e)return Hn(t,e,n,\"month\");var i,r=[];for(i=0;i<12;i++)r[i]=Hn(t,i,n,\"month\");return r}function qn(t,e,n,i){\"boolean\"==typeof t?(o(e)&&(n=e,e=void 0),e=e||\"\"):(e=t,n=e,t=!1,o(e)&&(n=e,e=void 0),e=e||\"\");var r=ee(),a=t?r._week.dow:0;if(null!=n)return Hn(e,(n+a)%7,i,\"day\");var s,l=[];for(s=0;s<7;s++)l[s]=Hn(e,(s+a)%7,i,\"day\");return l}function Xn(t,e){return Yn(t,e,\"months\")}function Zn(t,e){return Yn(t,e,\"monthsShort\")}function Kn(t,e,n){return qn(t,e,n,\"weekdays\")}function Qn(t,e,n){return qn(t,e,n,\"weekdaysShort\")}function Jn(t,e,n){return qn(t,e,n,\"weekdaysMin\")}function $n(){var t=this._data;return this._milliseconds=na(this._milliseconds),this._days=na(this._days),this._months=na(this._months),t.milliseconds=na(t.milliseconds),t.seconds=na(t.seconds),t.minutes=na(t.minutes),t.hours=na(t.hours),t.months=na(t.months),t.years=na(t.years),this}function ti(t,e,n,i){var r=Ve(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function ei(t,e){return ti(this,t,e,1)}function ni(t,e){return ti(this,t,e,-1)}function ii(t){return t<0?Math.floor(t):Math.ceil(t)}function ri(){var t,e,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*ii(oi(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=b(a/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,n=b(e/60),l.hours=n%24,o+=b(n/24),r=b(ai(o)),s+=r,o-=ii(oi(r)),i=b(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function ai(t){return 4800*t/146097}function oi(t){return 146097*t/4800}function si(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if(\"month\"===(t=N(t))||\"year\"===t)return e=this._days+i/864e5,n=this._months+ai(e),\"month\"===t?n:n/12;switch(e=this._days+Math.round(oi(this._months)),t){case\"week\":return e/7+i/6048e5;case\"day\":return e+i/864e5;case\"hour\":return 24*e+i/36e5;case\"minute\":return 1440*e+i/6e4;case\"second\":return 86400*e+i/1e3;case\"millisecond\":return Math.floor(864e5*e)+i;default:throw new Error(\"Unknown unit \"+t)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function ui(t){return function(){return this.as(t)}}function ci(t){return t=N(t),this.isValid()?this[t+\"s\"]():NaN}function hi(t){return function(){return this.isValid()?this._data[t]:NaN}}function di(){return b(this.days()/7)}function fi(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function pi(t,e,n){var i=Ve(t).abs(),r=ya(i.as(\"s\")),a=ya(i.as(\"m\")),o=ya(i.as(\"h\")),s=ya(i.as(\"d\")),l=ya(i.as(\"M\")),u=ya(i.as(\"y\")),c=r<=ba.ss&&[\"s\",r]||r0,c[4]=n,fi.apply(null,c)}function mi(t){return void 0===t?ya:\"function\"==typeof t&&(ya=t,!0)}function gi(t,e){return void 0!==ba[t]&&(void 0===e?ba[t]:(ba[t]=e,\"s\"===t&&(ba.ss=e-1),!0))}function vi(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pi(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function yi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=xa(this._milliseconds)/1e3,r=xa(this._days),a=xa(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60,n=b(a/12),a%=12;var o=n,s=a,l=r,u=e,c=t,h=i,d=this.asSeconds();return d?(d<0?\"-\":\"\")+\"P\"+(o?o+\"Y\":\"\")+(s?s+\"M\":\"\")+(l?l+\"D\":\"\")+(u||c||h?\"T\":\"\")+(u?u+\"H\":\"\")+(c?c+\"M\":\"\")+(h?h+\"S\":\"\"):\"P0D\"}var bi,xi;xi=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i68?1900:2e3)};var yr=U(\"FullYear\",!0);Y(\"w\",[\"ww\",2],\"wo\",\"week\"),Y(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),D(\"week\",\"w\"),D(\"isoWeek\",\"W\"),B(\"week\",5),B(\"isoWeek\",5),Q(\"w\",Gi),Q(\"ww\",Gi,Fi),Q(\"W\",Gi),Q(\"WW\",Gi,Fi),nt([\"w\",\"ww\",\"W\",\"WW\"],function(t,e,n,i){e[i.substr(0,1)]=x(t)});var br={dow:0,doy:6};Y(\"d\",0,\"do\",\"day\"),Y(\"dd\",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y(\"ddd\",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y(\"dddd\",0,0,function(t){return this.localeData().weekdays(this,t)}),Y(\"e\",0,0,\"weekday\"),Y(\"E\",0,0,\"isoWeekday\"),D(\"day\",\"d\"),D(\"weekday\",\"e\"),D(\"isoWeekday\",\"E\"),B(\"day\",11),B(\"weekday\",11),B(\"isoWeekday\",11),Q(\"d\",Gi),Q(\"e\",Gi),Q(\"E\",Gi),Q(\"dd\",function(t,e){return e.weekdaysMinRegex(t)}),Q(\"ddd\",function(t,e){return e.weekdaysShortRegex(t)}),Q(\"dddd\",function(t,e){return e.weekdaysRegex(t)}),nt([\"dd\",\"ddd\",\"dddd\"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t}),nt([\"d\",\"e\",\"E\"],function(t,e,n,i){e[i]=x(t)});var xr=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),_r=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),wr=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),Mr=tr,Sr=tr,Er=tr;Y(\"H\",[\"HH\",2],0,\"hour\"),Y(\"h\",[\"hh\",2],0,Gt),Y(\"k\",[\"kk\",2],0,Vt),Y(\"hmm\",0,0,function(){return\"\"+Gt.apply(this)+H(this.minutes(),2)}),Y(\"hmmss\",0,0,function(){return\"\"+Gt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),Y(\"Hmm\",0,0,function(){return\"\"+this.hours()+H(this.minutes(),2)}),Y(\"Hmmss\",0,0,function(){return\"\"+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),Ht(\"a\",!0),Ht(\"A\",!1),D(\"hour\",\"h\"),B(\"hour\",13),Q(\"a\",Yt),Q(\"A\",Yt),Q(\"H\",Gi),Q(\"h\",Gi),Q(\"k\",Gi),Q(\"HH\",Gi,Fi),Q(\"hh\",Gi,Fi),Q(\"kk\",Gi,Fi),Q(\"hmm\",Vi),Q(\"hmmss\",Hi),Q(\"Hmm\",Vi),Q(\"Hmmss\",Hi),et([\"H\",\"HH\"],or),et([\"k\",\"kk\"],function(t,e,n){var i=x(t);e[or]=24===i?0:i}),et([\"a\",\"A\"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),et([\"h\",\"hh\"],function(t,e,n){e[or]=x(t),f(n).bigHour=!0}),et(\"hmm\",function(t,e,n){var i=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i)),f(n).bigHour=!0}),et(\"hmmss\",function(t,e,n){var i=t.length-4,r=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i,2)),e[lr]=x(t.substr(r)),f(n).bigHour=!0}),et(\"Hmm\",function(t,e,n){var i=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i))}),et(\"Hmmss\",function(t,e,n){var i=t.length-4,r=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i,2)),e[lr]=x(t.substr(r))});var kr,Tr=/[ap]\\.?m?\\.?/i,Cr=U(\"Hours\",!0),Pr={calendar:Ci,longDateFormat:Pi,invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:Oi,relativeTime:Ai,months:pr,monthsShort:mr,week:br,weekdays:xr,weekdaysMin:wr,weekdaysShort:_r,meridiemParse:Tr},Or={},Ar={},Rr=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Lr=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Ir=/Z|[+-]\\d\\d(?::?\\d\\d)?/,Dr=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/]],Nr=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],zr=/^\\/?Date\\((\\-?\\d+)/i,Br=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d?\\d\\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(?:\\d\\d)?\\d\\d\\s)(\\d\\d:\\d\\d)(\\:\\d\\d)?(\\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\\d{4}))$/;e.createFromInputFallback=M(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\",function(t){t._d=new Date(t._i+(t._useUTC?\" UTC\":\"\"))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Fr=M(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?tthis?this:t:m()}),jr=function(){return Date.now?Date.now():+new Date},Wr=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];Pe(\"Z\",\":\"),Pe(\"ZZ\",\"\"),Q(\"Z\",Ji),Q(\"ZZ\",Ji),et([\"Z\",\"ZZ\"],function(t,e,n){n._useUTC=!0,n._tzm=Oe(Ji,t)});var Gr=/([\\+\\-]|\\d\\d)/gi;e.updateOffset=function(){};var Vr=/^(\\-)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/,Hr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ve.fn=ke.prototype,Ve.invalid=Ee;var Yr=Xe(1,\"add\"),qr=Xe(-1,\"subtract\");e.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",e.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var Xr=M(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(t){return void 0===t?this.localeData():this.locale(t)});Y(0,[\"gg\",2],0,function(){return this.weekYear()%100}),Y(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100}),On(\"gggg\",\"weekYear\"),On(\"ggggg\",\"weekYear\"),On(\"GGGG\",\"isoWeekYear\"),On(\"GGGGG\",\"isoWeekYear\"),D(\"weekYear\",\"gg\"),D(\"isoWeekYear\",\"GG\"),B(\"weekYear\",1),B(\"isoWeekYear\",1),Q(\"G\",Ki),Q(\"g\",Ki),Q(\"GG\",Gi,Fi),Q(\"gg\",Gi,Fi),Q(\"GGGG\",qi,ji),Q(\"gggg\",qi,ji),Q(\"GGGGG\",Xi,Wi),Q(\"ggggg\",Xi,Wi),nt([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(t,e,n,i){e[i.substr(0,2)]=x(t)}),nt([\"gg\",\"GG\"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),Y(\"Q\",0,\"Qo\",\"quarter\"),D(\"quarter\",\"Q\"),B(\"quarter\",7),Q(\"Q\",Bi),et(\"Q\",function(t,e){e[rr]=3*(x(t)-1)}),Y(\"D\",[\"DD\",2],\"Do\",\"date\"),D(\"date\",\"D\"),B(\"date\",9),Q(\"D\",Gi),Q(\"DD\",Gi,Fi),Q(\"Do\",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),et([\"D\",\"DD\"],ar),et(\"Do\",function(t,e){e[ar]=x(t.match(Gi)[0],10)});var Zr=U(\"Date\",!0);Y(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),D(\"dayOfYear\",\"DDD\"),B(\"dayOfYear\",4),Q(\"DDD\",Yi),Q(\"DDDD\",Ui),et([\"DDD\",\"DDDD\"],function(t,e,n){n._dayOfYear=x(t)}),Y(\"m\",[\"mm\",2],0,\"minute\"),D(\"minute\",\"m\"),B(\"minute\",14),Q(\"m\",Gi),Q(\"mm\",Gi,Fi),et([\"m\",\"mm\"],sr);var Kr=U(\"Minutes\",!1);Y(\"s\",[\"ss\",2],0,\"second\"),D(\"second\",\"s\"),B(\"second\",15),Q(\"s\",Gi),Q(\"ss\",Gi,Fi),et([\"s\",\"ss\"],lr);var Qr=U(\"Seconds\",!1);Y(\"S\",0,0,function(){return~~(this.millisecond()/100)}),Y(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)}),Y(0,[\"SSS\",3],0,\"millisecond\"),Y(0,[\"SSSS\",4],0,function(){return 10*this.millisecond()}),Y(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond()}),Y(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond()}),Y(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond()}),Y(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond()}),Y(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond()}),D(\"millisecond\",\"ms\"),B(\"millisecond\",16),Q(\"S\",Yi,Bi),Q(\"SS\",Yi,Fi),Q(\"SSS\",Yi,Ui);var Jr;for(Jr=\"SSSS\";Jr.length<=9;Jr+=\"S\")Q(Jr,Zi);for(Jr=\"S\";Jr.length<=9;Jr+=\"S\")et(Jr,Fn);var $r=U(\"Milliseconds\",!1);Y(\"z\",0,0,\"zoneAbbr\"),Y(\"zz\",0,0,\"zoneName\");var ta=v.prototype;ta.add=Yr,ta.calendar=Qe,ta.clone=Je,ta.diff=on,ta.endOf=bn,ta.format=hn,ta.from=dn,ta.fromNow=fn,ta.to=pn,ta.toNow=mn,ta.get=G,ta.invalidAt=Cn,ta.isAfter=$e,ta.isBefore=tn,ta.isBetween=en,ta.isSame=nn,ta.isSameOrAfter=rn,ta.isSameOrBefore=an,ta.isValid=kn,ta.lang=Xr,ta.locale=gn,ta.localeData=vn,ta.max=Ur,ta.min=Fr,ta.parsingFlags=Tn,ta.set=V,ta.startOf=yn,ta.subtract=qr,ta.toArray=Mn,ta.toObject=Sn,ta.toDate=wn,ta.toISOString=un,ta.inspect=cn,ta.toJSON=En,ta.toString=ln,ta.unix=_n,ta.valueOf=xn,ta.creationData=Pn,ta.year=yr,ta.isLeapYear=vt,ta.weekYear=An,ta.isoWeekYear=Rn,ta.quarter=ta.quarters=zn,ta.month=ct,ta.daysInMonth=ht,ta.week=ta.weeks=Tt,ta.isoWeek=ta.isoWeeks=Ct,ta.weeksInYear=In,ta.isoWeeksInYear=Ln,ta.date=Zr,ta.day=ta.days=Nt,ta.weekday=zt,ta.isoWeekday=Bt,ta.dayOfYear=Bn,ta.hour=ta.hours=Cr,ta.minute=ta.minutes=Kr,ta.second=ta.seconds=Qr,ta.millisecond=ta.milliseconds=$r,ta.utcOffset=Le,ta.utc=De,ta.local=Ne,ta.parseZone=ze,ta.hasAlignedHourOffset=Be,ta.isDST=Fe,ta.isLocal=je,ta.isUtcOffset=We,ta.isUtc=Ge,ta.isUTC=Ge,ta.zoneAbbr=Un,ta.zoneName=jn,ta.dates=M(\"dates accessor is deprecated. Use date instead.\",Zr),ta.months=M(\"months accessor is deprecated. Use month instead\",ct),ta.years=M(\"years accessor is deprecated. Use year instead\",yr),ta.zone=M(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",Ie),ta.isDSTShifted=M(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",Ue);var ea=C.prototype;ea.calendar=P,ea.longDateFormat=O,ea.invalidDate=A,ea.ordinal=R,ea.preparse=Vn,ea.postformat=Vn,ea.relativeTime=L,ea.pastFuture=I,ea.set=k,ea.months=at,ea.monthsShort=ot,ea.monthsParse=lt,ea.monthsRegex=ft,ea.monthsShortRegex=dt,ea.week=St,ea.firstDayOfYear=kt,ea.firstDayOfWeek=Et,ea.weekdays=At,ea.weekdaysMin=Lt,ea.weekdaysShort=Rt,ea.weekdaysParse=Dt,ea.weekdaysRegex=Ft,ea.weekdaysShortRegex=Ut,ea.weekdaysMinRegex=jt,ea.isPM=qt,ea.meridiem=Xt,Jt(\"en\",{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?\"th\":1===e?\"st\":2===e?\"nd\":3===e?\"rd\":\"th\")}}),e.lang=M(\"moment.lang is deprecated. Use moment.locale instead.\",Jt),e.langData=M(\"moment.langData is deprecated. Use moment.localeData instead.\",ee);var na=Math.abs,ia=ui(\"ms\"),ra=ui(\"s\"),aa=ui(\"m\"),oa=ui(\"h\"),sa=ui(\"d\"),la=ui(\"w\"),ua=ui(\"M\"),ca=ui(\"y\"),ha=hi(\"milliseconds\"),da=hi(\"seconds\"),fa=hi(\"minutes\"),pa=hi(\"hours\"),ma=hi(\"days\"),ga=hi(\"months\"),va=hi(\"years\"),ya=Math.round,ba={ss:44,s:45,m:45,h:22,d:26,M:11},xa=Math.abs,_a=ke.prototype;return _a.isValid=Se,_a.abs=$n,_a.add=ei,_a.subtract=ni,_a.as=si,_a.asMilliseconds=ia,_a.asSeconds=ra,_a.asMinutes=aa,_a.asHours=oa,_a.asDays=sa,_a.asWeeks=la,_a.asMonths=ua,_a.asYears=ca,_a.valueOf=li,_a._bubble=ri,_a.get=ci,_a.milliseconds=ha,_a.seconds=da,_a.minutes=fa,_a.hours=pa,_a.days=ma,_a.weeks=di,_a.months=ga,_a.years=va,_a.humanize=vi,_a.toISOString=yi,_a.toString=yi,_a.toJSON=yi,_a.locale=gn,_a.localeData=vn,_a.toIsoString=M(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",yi),_a.lang=Xr,Y(\"X\",0,0,\"unix\"),Y(\"x\",0,0,\"valueOf\"),Q(\"x\",Ki),Q(\"X\",$i),et(\"X\",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),et(\"x\",function(t,e,n){n._d=new Date(x(t))}),e.version=\"2.18.1\",function(t){bi=t}(be),e.fn=ta,e.min=_e,e.max=we,e.now=jr,e.utc=h,e.unix=Wn,e.months=Xn,e.isDate=s,e.locale=Jt,e.invalid=m,e.duration=Ve,e.isMoment=y,e.weekdays=Kn,e.parseZone=Gn,e.localeData=ee,e.isDuration=Te,e.monthsShort=Zn,e.weekdaysMin=Jn,e.defineLocale=$t,e.updateLocale=te,e.locales=ne,e.weekdaysShort=Qn,e.normalizeUnits=N,e.relativeTimeRounding=mi,e.relativeTimeThreshold=gi,e.calendarFormat=Ke,e.prototype=ta,e})}).call(e,n(112)(t))},function(t,e,n){var i=n(366),r=n(369),a=n(368),o=n(370),s=n(367),l=[0,0];t.exports.computeMiter=function(t,e,n,o,u){return i(t,n,o),a(t,t),r(e,-t[1],t[0]),r(l,-n[1],n[0]),u/s(e,l)},t.exports.normal=function(t,e){return r(t,-e[1],e[0]),t},t.exports.direction=function(t,e,n){return o(t,e,n),a(t,t),t}},function(t,e,n){function i(t,e,n){t.push([[e[0],e[1]],n])}var r=n(402),a=[0,0],o=[0,0],s=[0,0],l=[0,0];t.exports=function(t,e){var n=null,u=[];e&&(t=t.slice(),t.push(t[0]));for(var c=t.length,h=1;h2&&e){var g=t[c-2],v=t[0],y=t[1];r.direction(a,v,g),r.direction(o,y,v),r.normal(n,a);var b=r.computeMiter(s,l,a,o,1);u[0][0]=l.slice(),u[c-1][0]=l.slice(),u[0][1]=b,u[c-1][1]=b,u.pop()}return u}},function(t,e,n){\"use strict\";function i(t,e,n){if(!(this instanceof i))return new i(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if(\"object\"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if(\"string\"==typeof t&&void 0===e){var r=t.split(\",\");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn(\"proj4.Point will be removed in version 3, use proj4.toPoint\")}var r=n(145);i.fromMGRS=function(t){return new i(n.i(r.b)(t))},i.prototype.toMGRS=function(t){return n.i(r.c)([this.x,this.y],t)},e.a=i},function(t,e,n){\"use strict\";e.a=function(t,e,n){var i,r,a,o=n.x,s=n.y,l=n.z||0,u={};for(a=0;a<3;a++)if(!e||2!==a||void 0!==n.z)switch(0===a?(i=o,r=\"x\"):1===a?(i=s,r=\"y\"):(i=l,r=\"z\"),t.axis[a]){case\"e\":u[r]=i;break;case\"w\":u[r]=-i;break;case\"n\":u[r]=i;break;case\"s\":u[r]=-i;break;case\"u\":void 0!==n[r]&&(u.z=i);break;case\"d\":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}},function(t,e,n){\"use strict\";function i(t){if(\"function\"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError(\"coordinates must be finite numbers\")}if(\"number\"!=typeof t||t!==t||!isFinite(t))throw new TypeError(\"coordinates must be finite numbers\")}e.a=function(t){i(t.x),i(t.y)}},function(t,e,n){\"use strict\";var i=n(10);e.a=function(t,e){if(void 0===t){if((t=Math.floor(30*(n.i(i.a)(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}},function(t,e,n){\"use strict\";var i=n(146),r=n(414);e.a=function(t){var e=Math.abs(t);return e=n.i(r.a)(e*(1+e/(n.i(i.a)(1,e)+1))),t<0?-e:e}},function(t,e,n){\"use strict\";e.a=function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,a=t[r],o=0;--r>=0;)n=i*a-o+t[r],o=a,a=n;return Math.sin(e)*n}},function(t,e,n){\"use strict\";var i=n(149),r=n(411);e.a=function(t,e,a){for(var o,s,l=Math.sin(e),u=Math.cos(e),c=n.i(i.a)(a),h=n.i(r.a)(a),d=2*u*h,f=-2*l*c,p=t.length-1,m=t[p],g=0,v=0,y=0;--p>=0;)o=v,s=g,v=m,g=y,m=d*v-o-f*g+t[p],y=f*v-s+d*g;return d=l*h,f=u*c,[d*m-f*y,d*y+f*m]}},function(t,e,n){\"use strict\";e.a=function(t){var e=Math.exp(t);return e=(e+1/e)/2}},function(t,e,n){\"use strict\";e.a=function(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,a=t[r],o=0;--r>=0;)n=i*a-o+t[r],o=a,a=n;return e+n*Math.sin(2*e)}},function(t,e,n){\"use strict\";var i=n(7);e.a=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*i.a:i.a;for(var r,a,o,s,l=Math.asin(.5*e),u=0;u<30;u++)if(a=Math.sin(l),o=Math.cos(l),s=t*a,r=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-a/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),l+=r,Math.abs(r)<=1e-10)return l;return NaN}},function(t,e,n){\"use strict\";e.a=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}},function(t,e,n){\"use strict\";e.a=function(t,e){return Math.pow((1-t)/(1+t),e)}},function(t,e,n){\"use strict\";n.d(e,\"a\",function(){return i});var i={};i.wgs84={towgs84:\"0,0,0\",ellipse:\"WGS84\",datumName:\"WGS84\"},i.ch1903={towgs84:\"674.374,15.056,405.346\",ellipse:\"bessel\",datumName:\"swiss\"},i.ggrs87={towgs84:\"-199.87,74.79,246.62\",ellipse:\"GRS80\",datumName:\"Greek_Geodetic_Reference_System_1987\"},i.nad83={towgs84:\"0,0,0\",ellipse:\"GRS80\",datumName:\"North_American_Datum_1983\"},i.nad27={nadgrids:\"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat\",ellipse:\"clrk66\",datumName:\"North_American_Datum_1927\"},i.potsdam={towgs84:\"606.0,23.0,413.0\",ellipse:\"bessel\",datumName:\"Potsdam Rauenberg 1950 DHDN\"},i.carthage={towgs84:\"-263.0,6.0,431.0\",ellipse:\"clark80\",datumName:\"Carthage 1934 Tunisia\"},i.hermannskogel={towgs84:\"653.0,-212.0,449.0\",ellipse:\"bessel\",datumName:\"Hermannskogel\"},i.osni52={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"airy\",datumName:\"Irish National\"},i.ire65={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"mod_airy\",datumName:\"Ireland 1965\"},i.rassadiran={towgs84:\"-133.63,-157.5,-158.62\",ellipse:\"intl\",datumName:\"Rassadiran\"},i.nzgd49={towgs84:\"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993\",ellipse:\"intl\",datumName:\"New Zealand Geodetic Datum 1949\"},i.osgb36={towgs84:\"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894\",ellipse:\"airy\",datumName:\"Airy 1830\"},i.s_jtsk={towgs84:\"589,76,480\",ellipse:\"bessel\",datumName:\"S-JTSK (Ferro)\"},i.beduaram={towgs84:\"-106,-87,188\",ellipse:\"clrk80\",datumName:\"Beduaram\"},i.gunung_segara={towgs84:\"-403,684,41\",ellipse:\"bessel\",datumName:\"Gunung Segara Jakarta\"},i.rnb72={towgs84:\"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1\",ellipse:\"intl\",datumName:\"Reseau National Belge 1972\"}},function(t,e,n){\"use strict\";n.d(e,\"a\",function(){return i}),n.d(e,\"b\",function(){return r});var i={};i.MERIT={a:6378137,rf:298.257,ellipseName:\"MERIT 1983\"},i.SGS85={a:6378136,rf:298.257,ellipseName:\"Soviet Geodetic System 85\"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:\"GRS 1980(IUGG, 1980)\"},i.IAU76={a:6378140,rf:298.257,ellipseName:\"IAU 1976\"},i.airy={a:6377563.396,b:6356256.91,ellipseName:\"Airy 1830\"},i.APL4={a:6378137,rf:298.25,ellipseName:\"Appl. Physics. 1965\"},i.NWL9D={a:6378145,rf:298.25,ellipseName:\"Naval Weapons Lab., 1965\"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:\"Modified Airy\"},i.andrae={a:6377104.43,rf:300,ellipseName:\"Andrae 1876 (Den., Iclnd.)\"},i.aust_SA={a:6378160,rf:298.25,ellipseName:\"Australian Natl & S. Amer. 1969\"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:\"GRS 67(IUGG 1967)\"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:\"Bessel 1841\"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:\"Bessel 1841 (Namibia)\"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:\"Clarke 1866\"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:\"Clarke 1880 mod.\"},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:\"Clarke 1858\"},i.CPM={a:6375738.7,rf:334.29,ellipseName:\"Comm. des Poids et Mesures 1799\"},i.delmbr={a:6376428,rf:311.5,ellipseName:\"Delambre 1810 (Belgium)\"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:\"Engelis 1985\"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:\"Everest 1830\"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:\"Everest 1948\"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:\"Everest 1956\"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:\"Everest 1969\"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:\"Everest (Sabah & Sarawak)\"},i.fschr60={a:6378166,rf:298.3,ellipseName:\"Fischer (Mercury Datum) 1960\"},i.fschr60m={a:6378155,rf:298.3,ellipseName:\"Fischer 1960\"},i.fschr68={a:6378150,rf:298.3,ellipseName:\"Fischer 1968\"},i.helmert={a:6378200,rf:298.3,ellipseName:\"Helmert 1906\"},i.hough={a:6378270,rf:297,ellipseName:\"Hough\"},i.intl={a:6378388,rf:297,ellipseName:\"International 1909 (Hayford)\"},i.kaula={a:6378163,rf:298.24,ellipseName:\"Kaula 1961\"},i.lerch={a:6378139,rf:298.257,ellipseName:\"Lerch 1979\"},i.mprts={a:6397300,rf:191,ellipseName:\"Maupertius 1738\"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:\"New International 1967\"},i.plessis={a:6376523,rf:6355863,ellipseName:\"Plessis 1817 (France)\"},i.krass={a:6378245,rf:298.3,ellipseName:\"Krassovsky, 1942\"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:\"Southeast Asia\"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:\"Walbeck\"},i.WGS60={a:6378165,rf:298.3,ellipseName:\"WGS 60\"},i.WGS66={a:6378145,rf:298.25,ellipseName:\"WGS 66\"},i.WGS7={a:6378135,rf:298.26,ellipseName:\"WGS 72\"};var r=i.WGS84={a:6378137,rf:298.257223563,ellipseName:\"WGS 84\"};i.sphere={a:6370997,b:6370997,ellipseName:\"Normal Sphere (r=6370997)\"}},function(t,e,n){\"use strict\";n.d(e,\"a\",function(){return i});var i={};i.greenwich=0,i.lisbon=-9.131906111111,i.paris=2.337229166667,i.bogota=-74.080916666667,i.madrid=-3.687938888889,i.rome=12.452333333333,i.bern=7.439583333333,i.jakarta=106.807719444444,i.ferro=-17.666666666667,i.brussels=4.367975,i.stockholm=18.058277777778,i.athens=23.7163375,i.oslo=10.722916666667},function(t,e,n){\"use strict\";e.a={ft:{to_meter:.3048},\"us-ft\":{to_meter:1200/3937}}},function(t,e,n){\"use strict\";function i(t,e,i){var r,a,o;return Array.isArray(i)?(r=n.i(s.a)(t,e,i),3===i.length?[r.x,r.y,r.z]:[r.x,r.y]):(a=n.i(s.a)(t,e,i),o=Object.keys(i),2===o.length?a:(o.forEach(function(t){\"x\"!==t&&\"y\"!==t&&(a[t]=i[t])}),a))}function r(t){return t instanceof o.a?t:t.oProj?t.oProj:n.i(o.a)(t)}function a(t,e,n){t=r(t);var a,o=!1;return void 0===e?(e=t,t=l,o=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,e=t,t=l,o=!0),e=r(e),n?i(t,e,n):(a={forward:function(n){return i(t,e,n)},inverse:function(n){return i(e,t,n)}},o&&(a.oProj=e),a)}var o=n(102),s=n(154),l=n.i(o.a)(\"WGS84\");e.a=a},function(t,e,n){\"use strict\";function i(t,e,n,i,a,o){var s={};return s.datum_type=void 0===t||\"none\"===t?r.k:r.l,e&&(s.datum_params=e.map(parseFloat),0===s.datum_params[0]&&0===s.datum_params[1]&&0===s.datum_params[2]||(s.datum_type=r.h),s.datum_params.length>3&&(0===s.datum_params[3]&&0===s.datum_params[4]&&0===s.datum_params[5]&&0===s.datum_params[6]||(s.datum_type=r.i,s.datum_params[3]*=r.f,s.datum_params[4]*=r.f,s.datum_params[5]*=r.f,s.datum_params[6]=s.datum_params[6]/1e6+1))),s.a=n,s.b=i,s.es=a,s.ep2=o,s}var r=n(7);e.a=i},function(t,e,n){\"use strict\";function i(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(t.datum_type===l.h?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==l.i||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function r(t,e,n){var i,r,a,o,s=t.x,u=t.y,c=t.z?t.z:0;if(u<-l.a&&u>-1.001*l.a)u=-l.a;else if(u>l.a&&u<1.001*l.a)u=l.a;else if(u<-l.a||u>l.a)return null;return s>Math.PI&&(s-=2*Math.PI),r=Math.sin(u),o=Math.cos(u),a=r*r,i=n/Math.sqrt(1-e*a),{x:(i+c)*o*Math.cos(s),y:(i+c)*o*Math.sin(s),z:(i*(1-e)+c)*r}}function a(t,e,n,i){var r,a,o,s,u,c,h,d,f,p,m,g,v,y,b,x,_=t.x,w=t.y,M=t.z?t.z:0;if(r=Math.sqrt(_*_+w*w),a=Math.sqrt(_*_+w*w+M*M),r/n<1e-12){if(y=0,a/n<1e-12)return b=l.a,x=-i,{x:t.x,y:t.y,z:t.z}}else y=Math.atan2(w,_);o=M/a,s=r/a,u=1/Math.sqrt(1-e*(2-e)*s*s),d=s*(1-e)*u,f=o*u,v=0;do{v++,h=n/Math.sqrt(1-e*f*f),x=r*d+M*f-h*(1-e*f*f),c=e*h/(h+x),u=1/Math.sqrt(1-c*(2-c)*s*s),p=s*(1-c)*u,m=o*u,g=m*d-p*f,d=p,f=m}while(g*g>1e-24&&v<30);return b=Math.atan(m/Math.abs(p)),{x:y,y:b,z:x}}function o(t,e,n){if(e===l.h)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(e===l.i){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6];return{x:c*(t.x-u*t.y+s*t.z)+i,y:c*(u*t.x+t.y-o*t.z)+r,z:c*(-s*t.x+o*t.y+t.z)+a}}}function s(t,e,n){if(e===l.h)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(e===l.i){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6],h=(t.x-i)/c,d=(t.y-r)/c,f=(t.z-a)/c;return{x:h+u*d-s*f,y:-u*h+d+o*f,z:s*h-o*d+f}}}e.a=i,e.b=r,e.e=a,e.c=o,e.d=s;var l=n(7)},function(t,e,n){\"use strict\";function i(t){return t===r.h||t===r.i}var r=n(7),a=n(422);e.a=function(t,e,o){return n.i(a.a)(t,e)?o:t.datum_type===r.k||e.datum_type===r.k?o:t.es!==e.es||t.a!==e.a||i(t.datum_type)||i(e.datum_type)?(o=n.i(a.b)(o,t.es,t.a),i(t.datum_type)&&(o=n.i(a.c)(o,t.datum_type,t.datum_params)),i(e.datum_type)&&(o=n.i(a.d)(o,e.datum_type,e.datum_params)),n.i(a.e)(o,e.es,e.a,e.b)):o}},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=t*t,o=e*e,s=(r-o)/r,l=0;return i?(t*=1-s*(a.m+s*(a.n+s*a.o)),r=t*t,s=0):l=Math.sqrt(s),{es:s,e:l,ep2:(r-o)/o}}function r(t,e,i,r,l){if(!t){var u=n.i(s.a)(o.a,r);u||(u=o.b),t=u.a,e=u.b,i=u.rf}return i&&!e&&(e=(1-1/i)*t),(0===i||Math.abs(t-e)-1})}function o(t){return\"+\"===t[0]}function s(t){return i(t)?r(t)?l.a[t]:a(t)?n.i(u.a)(t):o(t)?n.i(c.a)(t):void 0:t}var l=n(151),u=n(159),c=n(152),h=[\"PROJECTEDCRS\",\"PROJCRS\",\"GEOGCS\",\"GEOCCS\",\"PROJCS\",\"LOCAL_CS\",\"GEODCRS\",\"GEODETICCRS\",\"GEODETICDATUM\",\"ENGCRS\",\"ENGINEERINGCRS\"];e.a=s},function(t,e,n){\"use strict\";function i(t,e){var n=c.length;return t.names?(c[n]=t,t.names.forEach(function(t){u[t.toLowerCase()]=n}),this):(console.log(e),!0)}function r(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==u[e]&&c[u[e]]?c[u[e]]:void 0}function a(){l.forEach(i)}var o=n(442),s=n(441),l=[o.a,s.a],u={},c=[];e.a={start:a,add:i,get:r}},function(t,e,n){\"use strict\";function i(){Math.abs(this.lat1+this.lat2)h.d?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function r(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var r=n.i(l.a)(this.e3,this.sin_phi,this.cos_phi),a=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*n.i(u.a)(e-this.long0),s=a*Math.sin(o)+this.x0,c=this.rh-a*Math.cos(o)+this.y0;return t.x=s,t.y=c,t}function a(t){var e,i,r,a,o,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),r=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),r=-1),a=0,0!==e&&(a=Math.atan2(r*t.x,r*t.y)),r=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(i=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,i)),o=n.i(u.a)(a/this.ns0+this.long0),t.x=o,t.y=s,t}function o(t,e){var i,r,a,o,s,l=n.i(c.a)(.5*e);if(t2*s.a*this.a)return;return i=e/this.a,r=Math.sin(i),a=Math.cos(i),g=this.long0,Math.abs(e)<=s.d?v=this.lat0:(v=n.i(p.a)(a*this.sin_p12+t.y*r*this.cos_p12/e),y=Math.abs(this.lat0)-s.a,g=Math.abs(y)<=s.d?this.lat0>=0?n.i(o.a)(this.long0+Math.atan2(t.x,-t.y)):n.i(o.a)(this.long0-Math.atan2(-t.x,t.y)):n.i(o.a)(this.long0+Math.atan2(t.x*r,e*this.cos_p12*a-t.y*this.sin_p12*r))),t.x=g,t.y=v,t}return b=n.i(u.a)(this.es),x=n.i(c.a)(this.es),_=n.i(h.a)(this.es),w=n.i(d.a)(this.es),Math.abs(this.sin_p12-1)<=s.d?(M=this.a*n.i(l.a)(b,x,_,w,s.a),e=Math.sqrt(t.x*t.x+t.y*t.y),S=M-e,v=n.i(m.a)(S/this.a,b,x,_,w),g=n.i(o.a)(this.long0+Math.atan2(t.x,-1*t.y)),t.x=g,t.y=v,t):Math.abs(this.sin_p12+1)<=s.d?(M=this.a*n.i(l.a)(b,x,_,w,s.a),e=Math.sqrt(t.x*t.x+t.y*t.y),S=e-M,v=n.i(m.a)(S/this.a,b,x,_,w),g=n.i(o.a)(this.long0+Math.atan2(t.x,t.y)),t.x=g,t.y=v,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),T=Math.atan2(t.x,t.y),E=n.i(f.a)(this.a,this.e,this.sin_p12),C=Math.cos(T),P=this.e*this.cos_p12*C,O=-P*P/(1-this.es),A=3*this.es*(1-O)*this.sin_p12*this.cos_p12*C/(1-this.es),R=e/E,L=R-O*(1+O)*Math.pow(R,3)/6-A*(1+3*O)*Math.pow(R,4)/24,I=1-O*L*L/2-R*L*L*L/6,k=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*C),g=n.i(o.a)(this.long0+Math.asin(Math.sin(T)*Math.sin(L)/Math.cos(k))),v=Math.atan((1-this.es*I*this.sin_p12/Math.sin(k))*Math.tan(k)/(1-this.es)),t.x=g,t.y=v,t)}var o=n(10),s=n(7),l=n(73),u=n(69),c=n(70),h=n(71),d=n(72),f=n(103),p=n(44),m=n(104),g=[\"Azimuthal_Equidistant\",\"aeqd\"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){\"use strict\";function i(){this.sphere||(this.e0=n.i(s.a)(this.es),this.e1=n.i(l.a)(this.es),this.e2=n.i(u.a)(this.es),this.e3=n.i(c.a)(this.es),this.ml0=this.a*n.i(o.a)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function r(t){var e,i,r=t.x,a=t.y;if(r=n.i(d.a)(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(a)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(a),Math.cos(r))-this.lat0);else{var s=Math.sin(a),l=Math.cos(a),u=n.i(h.a)(this.a,this.e,s),c=Math.tan(a)*Math.tan(a),f=r*Math.cos(a),p=f*f,m=this.es*l*l/(1-this.es),g=this.a*n.i(o.a)(this.e0,this.e1,this.e2,this.e3,a);e=u*f*(1-p*c*(1/6-(8-c+8*m)*p/120)),i=g-this.ml0+u*s/l*p*(.5+(5-c+6*m)*p/24)}return t.x=e+this.x0,t.y=i+this.y0,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i,r=t.x/this.a,a=t.y/this.a;if(this.sphere){var o=a+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(r)),i=Math.atan2(Math.tan(r),Math.cos(o))}else{var s=this.ml0/this.a+a,l=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-m.a)<=m.d)return t.x=this.long0,t.y=m.a,a<0&&(t.y*=-1),t;var u=n.i(h.a)(this.a,this.e,Math.sin(l)),c=u*u*u/this.a/this.a*(1-this.es),g=Math.pow(Math.tan(l),2),v=r*this.a/u,y=v*v;e=l-u*Math.tan(l)/c*v*v*(.5-(1+3*g)*v*v/24),i=v*(1-y*(g/3+(1+3*g)*g*y/15))/Math.cos(l)}return t.x=n.i(d.a)(i+this.long0),t.y=n.i(f.a)(e),t}var o=n(73),s=n(69),l=n(70),u=n(71),c=n(72),h=n(103),d=n(10),f=n(56),p=n(104),m=n(7),g=[\"Cassini\",\"Cassini_Soldner\",\"cass\"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){\"use strict\";function i(){this.sphere||(this.k0=n.i(l.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function r(t){var e,i,r=t.x,a=t.y,l=n.i(o.a)(r-this.long0);if(this.sphere)e=this.x0+this.a*l*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var u=n.i(s.a)(this.e,Math.sin(a));e=this.x0+this.a*this.k0*l,i=this.y0+this.a*u*.5/this.k0}return t.x=e,t.y=i,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=n.i(o.a)(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=n.i(u.a)(this.e,2*t.y*this.k0/this.a),e=n.i(o.a)(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t}var o=n(10),s=n(106),l=n(45),u=n(413),c=[\"cea\"];e.a={init:i,forward:r,inverse:a,names:c}},function(t,e,n){\"use strict\";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||\"Equidistant Cylindrical (Plate Carre)\",this.rc=Math.cos(this.lat_ts)}function r(t){var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=n.i(s.a)(i-this.lat0);return t.x=this.x0+this.a*r*this.rc,t.y=this.y0+this.a*a,t}function a(t){var e=t.x,i=t.y;return t.x=n.i(o.a)(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=n.i(s.a)(this.lat0+(i-this.y0)/this.a),t}var o=n(10),s=n(56),l=[\"Equirectangular\",\"Equidistant_Cylindrical\",\"eqc\"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){\"use strict\";function i(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;if(0!==i&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return a=n.i(d.a)(this.long0+o/this.ns),r=n.i(f.a)(this.g-i/this.a),t.x=a,t.y=r,t;var s=this.g-i/this.a;return r=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3),a=n.i(d.a)(this.long0+o/this.ns),t.x=a,t.y=r,t}var o=n(69),s=n(70),l=n(71),u=n(72),c=n(45),h=n(73),d=n(10),f=n(56),p=n(104),m=n(7),g=[\"Equidistant_Conic\",\"eqdc\"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){\"use strict\";function i(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+s.b)/(Math.pow(Math.tan(.5*this.lat0+s.b),this.C)*n.i(o.a)(this.e*t,this.ratexp))}function r(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+s.b),this.C)*n.i(o.a)(this.e*Math.sin(i),this.ratexp))-s.a,t.x=this.C*e,t}function a(t){for(var e=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+s.b)/this.K,1/this.C),a=l;a>0&&(i=2*Math.atan(r*n.i(o.a)(this.e*Math.sin(t.y),-.5*this.e))-s.a,!(Math.abs(i-t.y)<1e-14));--a)t.y=i;return a?(t.x=e,t.y=i,t):null}var o=n(415),s=n(7),l=20,u=[\"gauss\"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){\"use strict\";function i(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function r(t){var e,i,r,a,s,u,c,h,d=t.x,f=t.y;return r=n.i(o.a)(d-this.long0),e=Math.sin(f),i=Math.cos(f),a=Math.cos(r),u=this.sin_p14*e+this.cos_p14*i*a,s=1,u>0||Math.abs(u)<=l.d?(c=this.x0+this.a*s*i*Math.sin(r)/u,h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*a)/u):(c=this.x0+this.infinity_dist*i*Math.sin(r),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*a)),t.x=c,t.y=h,t}function a(t){var e,i,r,a,l,u;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(a=Math.atan2(e,this.rc),i=Math.sin(a),r=Math.cos(a),u=n.i(s.a)(r*this.sin_p14+t.y*i*this.cos_p14/e),l=Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),l=n.i(o.a)(this.long0+l)):(u=this.phic0,l=0),t.x=l,t.y=u,t}var o=n(10),s=n(44),l=n(7),u=[\"gnom\"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){\"use strict\";function i(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function r(t){var e,i,r,a,s,l,u,c=t.x,h=t.y,d=n.i(o.a)(c-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),r=-d*this.alfa,a=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),s=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(a)),l=this.n*s,u=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(a/2+this.s45),this.n),t.y=u*Math.cos(l)/1,t.x=u*Math.sin(l)/1,this.czech||(t.y*=-1,t.x*=-1),t}function a(t){var e,n,i,r,a,o,s,l,u=t.x;t.x=t.y,t.y=u,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),a=Math.atan2(t.y,t.x),r=a/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,s=e,l=0;var c=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-t.y)<1e-10&&(l=1),s=t.y,c+=1}while(0===l&&c<15);return c>=15?null:t}var o=n(10),s=[\"Krovak\",\"krovak\"];e.a={init:i,forward:r,inverse:a,names:s}},function(t,e,n){\"use strict\";function i(){var t=Math.abs(this.lat0);if(Math.abs(t-l.a)0){var e;switch(this.qp=n.i(u.a)(this.e,1),this.mmf=.5/(1-this.es),this.apa=o(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=n.i(u.a)(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function r(t){var e,i,r,a,o,s,h,d,f,p,m=t.x,g=t.y;if(m=n.i(c.a)(m-this.long0),this.sphere){if(o=Math.sin(g),p=Math.cos(g),r=Math.cos(m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+p*r:1+this.sinph0*o+this.cosph0*p*r)<=l.d)return null;i=Math.sqrt(2/i),e=i*p*Math.sin(m),i*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*p*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.phi0)=0?(e=(f=Math.sqrt(s))*a,i=r*(this.mode===this.S_POLE?f:-f)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i,r,a,o,u,h,d=t.x/this.a,f=t.y/this.a;if(this.sphere){var p,m=0,g=0;if(p=Math.sqrt(d*d+f*f),(i=.5*p)>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(i),m=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(p)<=l.d?0:Math.asin(f*g/p),d*=g,f=m*p;break;case this.OBLIQ:i=Math.abs(p)<=l.d?this.phi0:Math.asin(m*this.sinph0+f*g*this.cosph0/p),d*=g*this.cosph0,f=(m-Math.sin(i)*this.sinph0)*p;break;case this.N_POLE:f=-f,i=l.a-i;break;case this.S_POLE:i-=l.a}e=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(d,f):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(d/=this.dd,f*=this.dd,(u=Math.sqrt(d*d+f*f))h.d?this.ns=Math.log(r/c)/Math.log(a/d):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=r/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(f,this.ns),this.title||(this.title=\"Lambert Conformal Conic\")}}function r(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=h.d&&(i=n.i(l.a)(i)*(h.a-2*h.d));var r,a,o=Math.abs(Math.abs(i)-h.a);if(o>h.d)r=n.i(s.a)(this.e,i,Math.sin(i)),a=this.a*this.f0*Math.pow(r,this.ns);else{if((o=i*this.ns)<=0)return null;a=0}var c=this.ns*n.i(u.a)(e-this.long0);return t.x=this.k0*(a*Math.sin(c))+this.x0,t.y=this.k0*(this.rh-a*Math.cos(c))+this.y0,t}function a(t){var e,i,r,a,o,s=(t.x-this.x0)/this.k0,l=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+l*l),i=1):(e=-Math.sqrt(s*s+l*l),i=-1);var d=0;if(0!==e&&(d=Math.atan2(i*s,i*l)),0!==e||this.ns>0){if(i=1/this.ns,r=Math.pow(e/(this.a*this.f0),i),-9999===(a=n.i(c.a)(this.e,r)))return null}else a=-h.a;return o=n.i(u.a)(d/this.ns+this.long0),t.x=o,t.y=a,t}var o=n(45),s=n(75),l=n(57),u=n(10),c=n(74),h=n(7),d=[\"Lambert Tangential Conformal Conic Projection\",\"Lambert_Conformal_Conic\",\"Lambert_Conformal_Conic_2SP\",\"lcc\"];e.a={init:i,forward:r,inverse:a,names:d}},function(t,e,n){\"use strict\";function i(){}function r(t){return t}var a=[\"longlat\",\"identity\"];e.a={init:i,forward:r,inverse:r,names:a}},function(t,e,n){\"use strict\";function i(){var t=this.b/this.a;this.es=1-t*t,\"x0\"in this||(this.x0=0),\"y0\"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=n.i(o.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function r(t){var e=t.x,i=t.y;if(i*c.j>90&&i*c.j<-90&&e*c.j>180&&e*c.j<-180)return null;var r,a;if(Math.abs(Math.abs(i)-c.a)<=c.d)return null;if(this.sphere)r=this.x0+this.a*this.k0*n.i(s.a)(e-this.long0),a=this.y0+this.a*this.k0*Math.log(Math.tan(c.b+.5*i));else{var o=Math.sin(i),u=n.i(l.a)(this.e,i,o);r=this.x0+this.a*this.k0*n.i(s.a)(e-this.long0),a=this.y0-this.a*this.k0*Math.log(u)}return t.x=r,t.y=a,t}function a(t){var e,i,r=t.x-this.x0,a=t.y-this.y0;if(this.sphere)i=c.a-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var o=Math.exp(-a/(this.a*this.k0));if(-9999===(i=n.i(u.a)(this.e,o)))return null}return e=n.i(s.a)(this.long0+r/(this.a*this.k0)),t.x=e,t.y=i,t}var o=n(45),s=n(10),l=n(75),u=n(74),c=n(7),h=[\"Mercator\",\"Popular Visualisation Pseudo Mercator\",\"Mercator_1SP\",\"Mercator_Auxiliary_Sphere\",\"merc\"];e.a={init:i,forward:r,inverse:a,names:h}},function(t,e,n){\"use strict\";function i(){}function r(t){var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=this.x0+this.a*r,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=a,t.y=s,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e=n.i(o.a)(this.long0+t.x/this.a),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t}var o=n(10),s=[\"Miller_Cylindrical\",\"mill\"];e.a={init:i,forward:r,inverse:a,names:s}},function(t,e,n){\"use strict\";function i(){}function r(t){for(var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=i,l=Math.PI*Math.sin(i);;){var u=-(a+Math.sin(a)-l)/(1+Math.cos(a));if(a+=u,Math.abs(u).999999999999&&(i=.999999999999),e=Math.asin(i);var r=n.i(o.a)(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var a=Math.asin(i);return t.x=r,t.y=a,t}var o=n(10),s=n(7),l=[\"Mollweide\",\"moll\"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){\"use strict\";function i(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function r(t){var e,n=t.x,i=t.y,r=i-this.lat0,a=n-this.long0,s=r/o.f*1e-5,l=a,u=1,c=0;for(e=1;e<=10;e++)u*=s,c+=this.A[e]*u;var h,d,f=c,p=l,m=1,g=0,v=0,y=0;for(e=1;e<=6;e++)h=m*f-g*p,d=g*f+m*p,m=h,g=d,v=v+this.B_re[e]*m-this.B_im[e]*g,y=y+this.B_im[e]*m+this.B_re[e]*g;return t.x=y*this.a+this.x0,t.y=v*this.a+this.y0,t}function a(t){var e,n,i,r=t.x,a=t.y,s=r-this.x0,l=a-this.y0,u=l/this.a,c=s/this.a,h=1,d=0,f=0,p=0;for(e=1;e<=6;e++)n=h*u-d*c,i=d*u+h*c,h=n,d=i,f=f+this.C_re[e]*h-this.C_im[e]*d,p=p+this.C_im[e]*h+this.C_re[e]*d;for(var m=0;m=0?this.el=(a+Math.sqrt(a*a-1))*Math.pow(r,this.bl):this.el=(a-Math.sqrt(a*a-1))*Math.pow(r,this.bl);var d=Math.pow(c,this.bl),f=Math.pow(h,this.bl);l=this.el/d,u=.5*(l-1/l);var p=(this.el*this.el-f*d)/(this.el*this.el+f*d),m=(f-d)/(f+d),g=n.i(s.a)(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(p*Math.tan(.5*this.bl*g)/m)/this.bl,this.long0=n.i(s.a)(this.long0);var v=n.i(s.a)(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*v)/u),this.alpha=Math.asin(a*Math.sin(this.gamma0))}else l=this.lat0>=0?a+Math.sqrt(a*a-1):a-Math.sqrt(a*a-1),this.el=l*Math.pow(r,this.bl),u=.5*(l-1/l),this.gamma0=Math.asin(Math.sin(this.alpha)/a),this.long0=this.longc-Math.asin(u*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha))}function r(t){var e,i,r,a=t.x,l=t.y,c=n.i(s.a)(a-this.long0);if(Math.abs(Math.abs(l)-u.a)<=u.d)r=l>0?-1:1,i=this.al/this.bl*Math.log(Math.tan(u.b+r*this.gamma0*.5)),e=-1*r*u.a*this.al/this.bl;else{var h=n.i(o.a)(this.e,l,Math.sin(l)),d=this.el/Math.pow(h,this.bl),f=.5*(d-1/d),p=.5*(d+1/d),m=Math.sin(this.bl*c),g=(f*Math.sin(this.gamma0)-m*Math.cos(this.gamma0))/p;i=Math.abs(Math.abs(g)-1)<=u.d?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-g)/(1+g))/this.bl,e=Math.abs(Math.cos(this.bl*c))<=u.d?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+m*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+i):(e-=this.uc,t.x=this.x0+i*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-i*Math.sin(this.alpha)),t}function a(t){var e,i;this.no_rot?(i=t.y-this.y0,e=t.x-this.x0):(i=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var r=Math.exp(-1*this.bl*i/this.al),a=.5*(r-1/r),o=.5*(r+1/r),c=Math.sin(this.bl*e/this.al),h=(c*Math.cos(this.gamma0)+a*Math.sin(this.gamma0))/o,d=Math.pow(this.el/Math.sqrt((1+h)/(1-h)),1/this.bl);return Math.abs(h-1)0||Math.abs(u)<=l.d)&&(c=this.a*s*i*Math.sin(r),h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*a)),t.x=c,t.y=h,t}function a(t){var e,i,r,a,u,c,h;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=n.i(s.a)(e/this.a),r=Math.sin(i),a=Math.cos(i),c=this.long0,Math.abs(e)<=l.d?(h=this.lat0,t.x=c,t.y=h,t):(h=n.i(s.a)(a*this.sin_p14+t.y*r*this.cos_p14/e),u=Math.abs(this.lat0)-l.a,Math.abs(u)<=l.d?(c=this.lat0>=0?n.i(o.a)(this.long0+Math.atan2(t.x,-t.y)):n.i(o.a)(this.long0-Math.atan2(-t.x,t.y)),t.x=c,t.y=h,t):(c=n.i(o.a)(this.long0+Math.atan2(t.x*r,e*this.cos_p14*a-t.y*this.sin_p14*r)),t.x=c,t.y=h,t))}var o=n(10),s=n(44),l=n(7),u=[\"ortho\"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){\"use strict\";function i(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n.i(o.a)(this.es),this.e1=n.i(s.a)(this.es),this.e2=n.i(l.a)(this.es),this.e3=n.i(u.a)(this.es),this.ml0=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function r(t){var e,i,r,a=t.x,o=t.y,s=n.i(c.a)(a-this.long0);if(r=s*Math.sin(o),this.sphere)Math.abs(o)<=f.d?(e=this.a*s,i=-1*this.a*this.lat0):(e=this.a*Math.sin(r)/Math.tan(o),i=this.a*(n.i(h.a)(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=f.d)e=this.a*s,i=-1*this.ml0;else{var l=n.i(p.a)(this.a,this.e,Math.sin(o))/Math.tan(o);e=l*Math.sin(r),i=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+l*(1-Math.cos(r))}return t.x=e+this.x0,t.y=i+this.y0,t}function a(t){var e,i,r,a,o,s,l,u,h;if(r=t.x-this.x0,a=t.y-this.y0,this.sphere)if(Math.abs(a+this.a*this.lat0)<=f.d)e=n.i(c.a)(r/this.a+this.long0),i=0;else{s=this.lat0+a/this.a,l=r*r/this.a/this.a+s*s,u=s;var p;for(o=m;o;--o)if(p=Math.tan(u),h=-1*(s*(u*p+1)-u-.5*(u*u+l)*p)/((u-s)/p-1),u+=h,Math.abs(h)<=f.d){i=u;break}e=n.i(c.a)(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(i))}else if(Math.abs(a+this.ml0)<=f.d)i=0,e=n.i(c.a)(this.long0+r/this.a);else{s=(this.ml0+a)/this.a,l=r*r/this.a/this.a+s*s,u=s;var g,v,y,b,x;for(o=m;o;--o)if(x=this.e*Math.sin(u),g=Math.sqrt(1-x*x)*Math.tan(u),v=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,u),y=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=v/this.a,h=(s*(g*b+1)-b-.5*g*(b*b+l))/(this.es*Math.sin(2*u)*(b*b+l-2*s*b)/(4*g)+(s-b)*(g*y-2/Math.sin(2*u))-y),u-=h,Math.abs(h)<=f.d){i=u;break}g=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=n.i(c.a)(this.long0+Math.asin(r*g/this.a)/Math.sin(i))}return t.x=e,t.y=i,t}var o=n(69),s=n(70),l=n(71),u=n(72),c=n(10),h=n(56),d=n(73),f=n(7),p=n(103),m=20,g=[\"Polyconic\",\"poly\"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){\"use strict\";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||\"Quadrilateralized Spherical Cube\",this.lat0>=l.a-l.b/2?this.face=u.TOP:this.lat0<=-(l.a-l.b/2)?this.face=u.BOTTOM:Math.abs(this.long0)<=l.b?this.face=u.FRONT:Math.abs(this.long0)<=l.a+l.b?this.face=this.long0>0?u.RIGHT:u.LEFT:this.face=u.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function r(t){var e,n,i,r,a,h,d={x:0,y:0},f={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===u.TOP)r=l.a-e,n>=l.b&&n<=l.a+l.b?(f.value=c.AREA_0,i=n-l.a):n>l.a+l.b||n<=-(l.a+l.b)?(f.value=c.AREA_1,i=n>0?n-l.c:n+l.c):n>-(l.a+l.b)&&n<=-l.b?(f.value=c.AREA_2,i=n+l.a):(f.value=c.AREA_3,i=n);else if(this.face===u.BOTTOM)r=l.a+e,n>=l.b&&n<=l.a+l.b?(f.value=c.AREA_0,i=-n+l.a):n=-l.b?(f.value=c.AREA_1,i=-n):n<-l.b&&n>=-(l.a+l.b)?(f.value=c.AREA_2,i=-n-l.a):(f.value=c.AREA_3,i=n>0?-n+l.c:-n-l.c);else{var p,m,g,v,y,b,x;this.face===u.RIGHT?n=s(n,+l.a):this.face===u.BACK?n=s(n,+l.c):this.face===u.LEFT&&(n=s(n,-l.a)),v=Math.sin(e),y=Math.cos(e),b=Math.sin(n),x=Math.cos(n),p=y*x,m=y*b,g=v,this.face===u.FRONT?(r=Math.acos(p),i=o(r,g,m,f)):this.face===u.RIGHT?(r=Math.acos(m),i=o(r,g,-p,f)):this.face===u.BACK?(r=Math.acos(-p),i=o(r,g,-m,f)):this.face===u.LEFT?(r=Math.acos(-m),i=o(r,g,p,f)):(r=i=0,f.value=c.AREA_0)}return h=Math.atan(12/l.c*(i+Math.acos(Math.sin(i)*Math.cos(l.b))-l.a)),a=Math.sqrt((1-Math.cos(r))/(Math.cos(h)*Math.cos(h))/(1-Math.cos(Math.atan(1/Math.cos(i))))),f.value===c.AREA_1?h+=l.a:f.value===c.AREA_2?h+=l.c:f.value===c.AREA_3&&(h+=1.5*l.c),d.x=a*Math.cos(h),d.y=a*Math.sin(h),d.x=d.x*this.a+this.x0,d.y=d.y*this.a+this.y0,t.x=d.x,t.y=d.y,t}function a(t){var e,n,i,r,a,o,h,d,f,p={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=c.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=c.AREA_1,e-=l.a):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=c.AREA_2,e=e<0?e+l.c:e-l.c):(m.value=c.AREA_3,e+=l.a),f=l.c/12*Math.tan(e),a=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),o=Math.atan(a),i=Math.cos(e),r=Math.tan(n),h=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),h<-1?h=-1:h>1&&(h=1),this.face===u.TOP)d=Math.acos(h),p.phi=l.a-d,m.value===c.AREA_0?p.lam=o+l.a:m.value===c.AREA_1?p.lam=o<0?o+l.c:o-l.c:m.value===c.AREA_2?p.lam=o-l.a:p.lam=o;else if(this.face===u.BOTTOM)d=Math.acos(h),p.phi=d-l.a,m.value===c.AREA_0?p.lam=-o+l.a:m.value===c.AREA_1?p.lam=-o:m.value===c.AREA_2?p.lam=-o-l.a:p.lam=o<0?-o-l.c:-o+l.c;else{var g,v,y;g=h,f=g*g,y=f>=1?0:Math.sqrt(1-f)*Math.sin(o),f+=y*y,v=f>=1?0:Math.sqrt(1-f),m.value===c.AREA_1?(f=v,v=-y,y=f):m.value===c.AREA_2?(v=-v,y=-y):m.value===c.AREA_3&&(f=v,v=y,y=-f),this.face===u.RIGHT?(f=g,g=-v,v=f):this.face===u.BACK?(g=-g,v=-v):this.face===u.LEFT&&(f=g,g=v,v=-f),p.phi=Math.acos(-y)-l.a,p.lam=Math.atan2(v,g),this.face===u.RIGHT?p.lam=s(p.lam,-l.a):this.face===u.BACK?p.lam=s(p.lam,-l.c):this.face===u.LEFT&&(p.lam=s(p.lam,+l.a))}if(0!==this.es){var b,x,_;b=p.phi<0?1:0,x=Math.tan(p.phi),_=this.b/Math.sqrt(x*x+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),b&&(p.phi=-p.phi)}return p.lam+=this.long0,t.x=p.lam,t.y=p.phi,t}function o(t,e,n,i){var r;return tl.b&&r<=l.a+l.b?(i.value=c.AREA_1,r-=l.a):r>l.a+l.b||r<=-(l.a+l.b)?(i.value=c.AREA_2,r=r>=0?r-l.c:r+l.c):(i.value=c.AREA_3,r+=l.a)),r}function s(t,e){var n=t+e;return n<-l.c?n+=l.e:n>+l.c&&(n-=l.e),n}var l=n(7),u={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},c={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4},h=[\"Quadrilateralized Spherical Cube\",\"Quadrilateralized_Spherical_Cube\",\"qsc\"];e.a={init:i,forward:r,inverse:a,names:h}},function(t,e,n){\"use strict\";function i(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=n.i(l.a)(this.es)}function r(t){var e,i,r=t.x,a=t.y;if(r=n.i(o.a)(r-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(a),l=f;l;--l){var c=(this.m*a+Math.sin(a)-s)/(this.m+Math.cos(a));if(a-=c,Math.abs(c)1e-7;){if(++h>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=u,t}var o=[\"somerc\"];e.a={init:i,forward:r,inverse:a,names:o}},function(t,e,n){\"use strict\";function i(t,e,n){return e*=n,Math.tan(.5*(s.a+t))*Math.pow((1-e)/(1+e),.5*n)}function r(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.d&&(this.k0=.5*(1+n.i(l.a)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s.d&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.d&&(this.k0=.5*this.cons*n.i(u.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/n.i(c.a)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=n.i(u.a)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-s.a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function a(t){var e,i,r,a,o,l,u=t.x,h=t.y,f=Math.sin(h),p=Math.cos(h),m=n.i(d.a)(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=s.d&&Math.abs(h+this.lat0)<=s.d?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*f+this.coslat0*p*Math.cos(m)),t.x=this.a*e*p*Math.sin(m)+this.x0,t.y=this.a*e*(this.coslat0*f-this.sinlat0*p*Math.cos(m))+this.y0,t):(i=2*Math.atan(this.ssfn_(h,f,this.e))-s.a,a=Math.cos(i),r=Math.sin(i),Math.abs(this.coslat0)<=s.d?(o=n.i(c.a)(this.e,h*this.con,this.con*f),l=2*this.a*this.k0*o/this.cons,t.x=this.x0+l*Math.sin(u-this.long0),t.y=this.y0-this.con*l*Math.cos(u-this.long0),t):(Math.abs(this.sinlat0)0?n.i(d.a)(this.long0+Math.atan2(t.x,-1*t.y)):n.i(d.a)(this.long0+Math.atan2(t.x,t.y)):n.i(d.a)(this.long0+Math.atan2(t.x*Math.sin(u),l*this.coslat0*Math.cos(u)-t.y*this.sinlat0*Math.sin(u))),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)<=s.d){if(l<=s.d)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,r=l*this.cons/(2*this.a*this.k0),i=this.con*n.i(h.a)(this.e,r),e=this.con*n.i(d.a)(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else a=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,l<=s.d?o=this.X0:(o=Math.asin(Math.cos(a)*this.sinX0+t.y*Math.sin(a)*this.cosX0/l),e=n.i(d.a)(this.long0+Math.atan2(t.x*Math.sin(a),l*this.cosX0*Math.cos(a)-t.y*this.sinX0*Math.sin(a)))),i=-1*n.i(h.a)(this.e,Math.tan(.5*(s.a+o)));return t.x=e,t.y=i,t}var s=n(7),l=n(57),u=n(45),c=n(75),h=n(74),d=n(10),f=[\"stere\",\"Stereographic_South_Pole\",\"Polar Stereographic (variant B)\"];e.a={init:r,forward:a,inverse:o,names:f,ssfn_:i}},function(t,e,n){\"use strict\";function i(){o.a.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title=\"Oblique Stereographic Alternative\"))}function r(t){var e,i,r,a;return t.x=n.i(s.a)(t.x-this.long0),o.a.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),r=Math.cos(t.x),a=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*r),t.x=a*i*Math.sin(t.x),t.y=a*(this.cosc0*e-this.sinc0*i*r),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function a(t){var e,i,r,a,l;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,l=Math.sqrt(t.x*t.x+t.y*t.y)){var u=2*Math.atan2(l,this.R2);e=Math.sin(u),i=Math.cos(u),a=Math.asin(i*this.sinc0+t.y*e*this.cosc0/l),r=Math.atan2(t.x*e,l*this.cosc0*i-t.y*this.sinc0*e)}else a=this.phic0,r=0;return t.x=r,t.y=a,o.a.inverse.apply(this,[t]),t.x=n.i(s.a)(t.x+this.long0),t}var o=n(436),s=n(10),l=[\"Stereographic_North_Pole\",\"Oblique_Stereographic\",\"Polar_Stereographic\",\"sterea\",\"Oblique Stereographic Alternative\"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){\"use strict\";function i(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=n.i(o.a)(this.es),this.ml0=n.i(s.a)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function r(t){var e,i,r,a=t.x,o=t.y,l=n.i(u.a)(a-this.long0),h=Math.sin(o),d=Math.cos(o);if(this.es){var f=d*l,p=Math.pow(f,2),m=this.ep2*Math.pow(d,2),g=Math.pow(m,2),v=Math.abs(d)>c.d?Math.tan(o):0,y=Math.pow(v,2),b=Math.pow(y,2);e=1-this.es*Math.pow(h,2),f/=Math.sqrt(e);var x=n.i(s.a)(o,h,d,this.en);i=this.a*(this.k0*f*(1+p/6*(1-y+m+p/20*(5-18*y+b+14*m-58*y*m+p/42*(61+179*b-b*y-479*y)))))+this.x0,r=this.a*(this.k0*(x-this.ml0+h*l*f/2*(1+p/12*(5-y+9*m+4*g+p/30*(61+b-58*y+270*m-330*y*m+p/56*(1385+543*b-b*y-3111*y))))))+this.y0}else{var _=d*Math.sin(l);if(Math.abs(Math.abs(_)-1)=1){if(_-1>c.d)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return t.x=i,t.y=r,t}function a(t){var e,i,r,a,o=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+s/this.k0,i=n.i(l.a)(e,this.es,this.en),Math.abs(i)c.d?Math.tan(i):0,m=this.ep2*Math.pow(f,2),g=Math.pow(m,2),v=Math.pow(p,2),y=Math.pow(v,2);e=1-this.es*Math.pow(d,2);var b=o*Math.sqrt(e)/this.k0,x=Math.pow(b,2);e*=p,r=i-e*x/(1-this.es)*.5*(1-x/12*(5+3*v-9*m*v+m-4*g-x/30*(61+90*v-252*m*v+45*y+46*m-x/56*(1385+3633*v+4095*y+1574*y*v)))),a=n.i(u.a)(this.long0+b*(1-x/6*(1+2*v+m-x/20*(5+28*v+24*y+8*m*v+6*m-x/42*(61+662*v+1320*y+720*y*v))))/f)}else r=c.a*n.i(h.a)(s),a=0;else{var _=Math.exp(o/this.k0),w=.5*(_-1/_),M=this.lat0+s/this.k0,S=Math.cos(M);e=Math.sqrt((1-Math.pow(S,2))/(1+Math.pow(w,2))),r=Math.asin(e),s<0&&(r=-r),a=0===w&&0===S?0:n.i(u.a)(Math.atan2(w,S)+this.long0)}return t.x=a,t.y=r,t}var o=n(147),s=n(105),l=n(148),u=n(10),c=n(7),h=n(57),d=[\"Transverse_Mercator\",\"Transverse Mercator\",\"tmerc\"];e.a={init:i,forward:r,inverse:a,names:d}},function(t,e,n){\"use strict\";function i(){var t=n.i(r.a)(this.zone,this.long0);if(void 0===t)throw new Error(\"unknown utm zone\");this.lat0=0,this.long0=(6*Math.abs(t)-183)*o.g,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,a.a.init.apply(this),this.forward=a.a.forward,this.inverse=a.a.inverse}var r=n(407),a=n(153),o=n(7),s=[\"Universal Transverse Mercator System\",\"utm\"];e.a={init:i,names:s,dependsOn:\"etmerc\"}},function(t,e,n){\"use strict\";function i(){this.R=this.a}function r(t){var e,i,r=t.x,a=t.y,u=n.i(o.a)(r-this.long0);Math.abs(a)<=s.d&&(e=this.x0+this.R*u,i=this.y0);var c=n.i(l.a)(2*Math.abs(a/Math.PI));(Math.abs(u)<=s.d||Math.abs(Math.abs(a)-s.a)<=s.d)&&(e=this.x0,i=a>=0?this.y0+Math.PI*this.R*Math.tan(.5*c):this.y0+Math.PI*this.R*-Math.tan(.5*c));var h=.5*Math.abs(Math.PI/u-u/Math.PI),d=h*h,f=Math.sin(c),p=Math.cos(c),m=p/(f+p-1),g=m*m,v=m*(2/f-1),y=v*v,b=Math.PI*this.R*(h*(m-y)+Math.sqrt(d*(m-y)*(m-y)-(y+d)*(g-y)))/(y+d);u<0&&(b=-b),e=this.x0+b;var x=d+m;return b=Math.PI*this.R*(v*x-h*Math.sqrt((y+d)*(d+1)-x*x))/(y+d),i=a>=0?this.y0+b:this.y0-b,t.x=e,t.y=i,t}function a(t){var e,i,r,a,l,u,c,h,d,f,p,m,g;return t.x-=this.x0,t.y-=this.y0,p=Math.PI*this.R,r=t.x/p,a=t.y/p,l=r*r+a*a,u=-Math.abs(a)*(1+l),c=u-2*a*a+r*r,h=-2*u+1+2*a*a+l*l,g=a*a/h+(2*c*c*c/h/h/h-9*u*c/h/h)/27,d=(u-c*c/3/h)/h,f=2*Math.sqrt(-d/3),p=3*g/d/f,Math.abs(p)>1&&(p=p>=0?1:-1),m=Math.acos(p)/3,i=t.y>=0?(-f*Math.cos(m+Math.PI/3)-c/3/h)*Math.PI:-(-f*Math.cos(m+Math.PI/3)-c/3/h)*Math.PI,e=Math.abs(r)this.eventPool.length&&this.eventPool.push(t)}function W(t){t.eventPool=[],t.getPooled=U,t.release=j}function G(t,e,n,i){return F.call(this,t,e,n,i)}function V(t,e,n,i){return F.call(this,t,e,n,i)}function H(t,e){switch(t){case\"topKeyUp\":return-1!==fi.indexOf(e.keyCode);case\"topKeyDown\":return 229!==e.keyCode;case\"topKeyPress\":case\"topMouseDown\":case\"topBlur\":return!0;default:return!1}}function Y(t){return t=t.detail,\"object\"==typeof t&&\"data\"in t?t.data:null}function q(t,e){switch(t){case\"topCompositionEnd\":return Y(e);case\"topKeyPress\":return 32!==e.which?null:(Mi=!0,_i);case\"topTextInput\":return t=e.data,t===_i&&Mi?null:t;default:return null}}function X(t,e){if(Si)return\"topCompositionEnd\"===t||!pi&&H(t,e)?(t=z(),ci._root=null,ci._startText=null,ci._fallbackText=null,Si=!1,t):null;switch(t){case\"topPaste\":return null;case\"topKeyPress\":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1Wi.length&&Wi.push(t)}}}function Lt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n[\"Webkit\"+t]=\"webkit\"+e,n[\"Moz\"+t]=\"moz\"+e,n[\"ms\"+t]=\"MS\"+e,n[\"O\"+t]=\"o\"+e.toLowerCase(),n}function It(t){if(qi[t])return qi[t];if(!Yi[t])return t;var e,n=Yi[t];for(e in n)if(n.hasOwnProperty(e)&&e in Xi)return qi[t]=n[e];return\"\"}function Dt(t){return Object.prototype.hasOwnProperty.call(t,Ji)||(t[Ji]=Qi++,Ki[t[Ji]]={}),Ki[t[Ji]]}function Nt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zt(t,e){var n=Nt(t);t=0;for(var i;n;){if(3===n.nodeType){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Nt(n)}}function Bt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(\"input\"===e&&\"text\"===t.type||\"textarea\"===e||\"true\"===t.contentEditable)}function Ft(t,e){if(rr||null==er||er!==Sn())return null;var n=er;return\"selectionStart\"in n&&Bt(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ir&&En(ir,n)?null:(ir=n,t=F.getPooled(tr.select,nr,t,e),t.type=\"select\",t.target=er,I(t),t)}function Ut(t,e,n,i){return F.call(this,t,e,n,i)}function jt(t,e,n,i){return F.call(this,t,e,n,i)}function Wt(t,e,n,i){return F.call(this,t,e,n,i)}function Gt(t){var e=t.keyCode;return\"charCode\"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,32<=t||13===t?t:0}function Vt(t,e,n,i){return F.call(this,t,e,n,i)}function Ht(t,e,n,i){return F.call(this,t,e,n,i)}function Yt(t,e,n,i){return F.call(this,t,e,n,i)}function qt(t,e,n,i){return F.call(this,t,e,n,i)}function Xt(t,e,n,i){return F.call(this,t,e,n,i)}function Zt(t){0>dr||(t.current=hr[dr],hr[dr]=null,dr--)}function Kt(t,e){dr++,hr[dr]=t.current,t.current=e}function Qt(t){return $t(t)?mr:fr.current}function Jt(t,e){var n=t.type.contextTypes;if(!n)return Cn;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=e[r];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function $t(t){return 2===t.tag&&null!=t.type.childContextTypes}function te(t){$t(t)&&(Zt(pr,t),Zt(fr,t))}function ee(t,e,n){null!=fr.cursor&&i(\"168\"),Kt(fr,e,t),Kt(pr,n,t)}function ne(t,e){var n=t.stateNode,r=t.type.childContextTypes;if(\"function\"!=typeof n.getChildContext)return e;n=n.getChildContext();for(var a in n)a in r||i(\"108\",_t(t)||\"Unknown\",a);return _n({},e,n)}function ie(t){if(!$t(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Cn,mr=fr.current,Kt(fr,e,t),Kt(pr,pr.current,t),!0}function re(t,e){var n=t.stateNode;if(n||i(\"169\"),e){var r=ne(t,mr);n.__reactInternalMemoizedMergedChildContext=r,Zt(pr,t),Zt(fr,t),Kt(fr,r,t)}else Zt(pr,t);Kt(pr,e,t)}function ae(t,e,n){this.tag=t,this.key=e,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function oe(t,e,n){var i=t.alternate;return null===i?(i=new ae(t.tag,t.key,t.internalContextTag),i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.effectTag=0,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null),i.expirationTime=n,i.pendingProps=e,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function se(t,e,n){var r=void 0,a=t.type,o=t.key;return\"function\"==typeof a?(r=a.prototype&&a.prototype.isReactComponent?new ae(2,o,e):new ae(0,o,e),r.type=a,r.pendingProps=t.props):\"string\"==typeof a?(r=new ae(5,o,e),r.type=a,r.pendingProps=t.props):\"object\"==typeof a&&null!==a&&\"number\"==typeof a.tag?(r=a,r.pendingProps=t.props):i(\"130\",null==a?a:typeof a,\"\"),r.expirationTime=n,r}function le(t,e,n,i){return e=new ae(10,i,e),e.pendingProps=t,e.expirationTime=n,e}function ue(t,e,n){return e=new ae(6,null,e),e.pendingProps=t,e.expirationTime=n,e}function ce(t,e,n){return e=new ae(7,t.key,e),e.type=t.handler,e.pendingProps=t,e.expirationTime=n,e}function he(t,e,n){return t=new ae(9,null,e),t.expirationTime=n,t}function de(t,e,n){return e=new ae(4,t.key,e),e.pendingProps=t.children||[],e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function fe(t){return function(e){try{return t(e)}catch(t){}}}function pe(t){if(\"undefined\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);gr=fe(function(t){return e.onCommitFiberRoot(n,t)}),vr=fe(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function me(t){\"function\"==typeof gr&&gr(t)}function ge(t){\"function\"==typeof vr&&vr(t)}function ve(t){return{baseState:t,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function ye(t,e){null===t.last?t.first=t.last=e:(t.last.next=e,t.last=e),(0===t.expirationTime||t.expirationTime>e.expirationTime)&&(t.expirationTime=e.expirationTime)}function be(t,e){var n=t.alternate,i=t.updateQueue;null===i&&(i=t.updateQueue=ve(null)),null!==n?null===(t=n.updateQueue)&&(t=n.updateQueue=ve(null)):t=null,t=t!==i?t:null,null===t?ye(i,e):null===i.last||null===t.last?(ye(i,e),ye(t,e)):(ye(i,e),t.last=e)}function xe(t,e,n,i){return t=t.partialState,\"function\"==typeof t?t.call(e,n,i):t}function _e(t,e,n,i,r,a){null!==t&&t.updateQueue===n&&(n=e.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?t=n.baseState:(t=n.baseState=e.memoizedState,n.isInitialized=!0);for(var o=!0,s=n.first,l=!1;null!==s;){var u=s.expirationTime;if(u>a){var c=n.expirationTime;(0===c||c>u)&&(n.expirationTime=u),l||(l=!0,n.baseState=t)}else l||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(t=xe(s,i,t,r),o=!0):(u=xe(s,i,t,r))&&(t=o?_n({},t,u):_n(t,u),o=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(u=n.callbackList,null===u&&(u=n.callbackList=[]),u.push(s));s=s.next}return null!==n.callbackList?e.effectTag|=32:null!==n.first||n.hasForceUpdate||(e.updateQueue=null),l||(n.baseState=t),t}function we(t,e){var n=t.callbackList;if(null!==n)for(t.callbackList=null,t=0;td?(f=h,h=null):f=h.sibling;var v=m(i,h,s[d],l);if(null===v){null===h&&(h=f);break}t&&h&&null===v.alternate&&e(i,h),a=o(v,a,d),null===c?u=v:c.sibling=v,c=v,h=f}if(d===s.length)return n(i,h),u;if(null===h){for(;df?(v=d,d=null):v=d.sibling;var b=m(a,d,y.value,u);if(null===b){d||(d=v);break}t&&d&&null===b.alternate&&e(a,d),s=o(b,s,f),null===h?c=b:h.sibling=b,h=b,d=v}if(y.done)return n(a,d),c;if(null===d){for(;!y.done;f++,y=l.next())null!==(y=p(a,y.value,u))&&(s=o(y,s,f),null===h?c=y:h.sibling=y,h=y);return c}for(d=r(a,d);!y.done;f++,y=l.next())null!==(y=g(d,a,f,y.value,u))&&(t&&null!==y.alternate&&d.delete(null===y.key?f:y.key),s=o(y,s,f),null===h?c=y:h.sibling=y,h=y);return t&&d.forEach(function(t){return e(a,t)}),c}return function(t,r,o,l){\"object\"==typeof o&&null!==o&&o.type===Mr&&null===o.key&&(o=o.props.children);var u=\"object\"==typeof o&&null!==o;if(u)switch(o.$$typeof){case br:t:{var c=o.key;for(u=r;null!==u;){if(u.key===c){if(10===u.tag?o.type===Mr:u.type===o.type){n(t,u.sibling),r=a(u,o.type===Mr?o.props.children:o.props,l),r.ref=Ee(u,o),r.return=t,t=r;break t}n(t,u);break}e(t,u),u=u.sibling}o.type===Mr?(r=le(o.props.children,t.internalContextTag,l,o.key),r.return=t,t=r):(l=se(o,t.internalContextTag,l),l.ref=Ee(r,o),l.return=t,t=l)}return s(t);case xr:t:{for(u=o.key;null!==r;){if(r.key===u){if(7===r.tag){n(t,r.sibling),r=a(r,o,l),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=ce(o,t.internalContextTag,l),r.return=t,t=r}return s(t);case _r:t:{if(null!==r){if(9===r.tag){n(t,r.sibling),r=a(r,null,l),r.type=o.value,r.return=t,t=r;break t}n(t,r)}r=he(o,t.internalContextTag,l),r.type=o.value,r.return=t,t=r}return s(t);case wr:t:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),r=a(r,o.children||[],l),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=de(o,t.internalContextTag,l),r.return=t,t=r}return s(t)}if(\"string\"==typeof o||\"number\"==typeof o)return o=\"\"+o,null!==r&&6===r.tag?(n(t,r.sibling),r=a(r,o,l)):(n(t,r),r=ue(o,t.internalContextTag,l)),r.return=t,t=r,s(t);if(Er(o))return v(t,r,o,l);if(Se(o))return y(t,r,o,l);if(u&&ke(t,o),void 0===o)switch(t.tag){case 2:case 1:l=t.type,i(\"152\",l.displayName||l.name||\"Component\")}return n(t,r)}}function Ce(t,e,n,r,a){function o(t,e,n){var i=e.expirationTime;e.child=null===t?Tr(e,null,n,i):kr(e,t.child,n,i)}function s(t,e){var n=e.ref;null===n||t&&t.ref===n||(e.effectTag|=128)}function l(t,e,n,i){if(s(t,e),!n)return i&&re(e,!1),c(t,e);n=e.stateNode,ji.current=e;var r=n.render();return e.effectTag|=1,o(t,e,r),e.memoizedState=n.state,e.memoizedProps=n.props,i&&re(e,!0),e.child}function u(t){var e=t.stateNode;e.pendingContext?ee(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ee(t,e.context,!1),g(t,e.containerInfo)}function c(t,e){if(null!==t&&e.child!==t.child&&i(\"153\"),null!==e.child){t=e.child;var n=oe(t,t.pendingProps,t.expirationTime);for(e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=oe(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}function h(t,e){switch(e.tag){case 3:u(e);break;case 2:ie(e);break;case 4:g(e,e.stateNode.containerInfo)}return null}var d=t.shouldSetTextContent,f=t.useSyncScheduling,p=t.shouldDeprioritizeSubtree,m=e.pushHostContext,g=e.pushHostContainer,v=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;t=Me(r,a,function(t,e){t.memoizedProps=e},function(t,e){t.memoizedState=e});var x=t.adoptClassInstance,_=t.constructClassInstance,w=t.mountClassInstance,M=t.updateClassInstance;return{beginWork:function(t,e,n){if(0===e.expirationTime||e.expirationTime>n)return h(t,e);switch(e.tag){case 0:null!==t&&i(\"155\");var r=e.type,a=e.pendingProps,S=Qt(e);return S=Jt(e,S),r=r(a,S),e.effectTag|=1,\"object\"==typeof r&&null!==r&&\"function\"==typeof r.render?(e.tag=2,a=ie(e),x(e,r),w(e,n),e=l(t,e,!0,a)):(e.tag=1,o(t,e,r),e.memoizedProps=a,e=e.child),e;case 1:t:{if(a=e.type,n=e.pendingProps,r=e.memoizedProps,pr.current)null===n&&(n=r);else if(null===n||r===n){e=c(t,e);break t}r=Qt(e),r=Jt(e,r),a=a(n,r),e.effectTag|=1,o(t,e,a),e.memoizedProps=n,e=e.child}return e;case 2:return a=ie(e),r=void 0,null===t?e.stateNode?i(\"153\"):(_(e,e.pendingProps),w(e,n),r=!0):r=M(t,e,n),l(t,e,r,a);case 3:return u(e),a=e.updateQueue,null!==a?(r=e.memoizedState,a=_e(t,e,a,null,null,n),r===a?(y(),e=c(t,e)):(r=a.element,S=e.stateNode,(null===t||null===t.child)&&S.hydrate&&v(e)?(e.effectTag|=2,e.child=Tr(e,null,r,n)):(y(),o(t,e,r)),e.memoizedState=a,e=e.child)):(y(),e=c(t,e)),e;case 5:m(e),null===t&&b(e),a=e.type;var E=e.memoizedProps;return r=e.pendingProps,null===r&&null===(r=E)&&i(\"154\"),S=null!==t?t.memoizedProps:null,pr.current||null!==r&&E!==r?(E=r.children,d(a,r)?E=null:S&&d(a,S)&&(e.effectTag|=16),s(t,e),2147483647!==n&&!f&&p(a,r)?(e.expirationTime=2147483647,e=null):(o(t,e,E),e.memoizedProps=r,e=e.child)):e=c(t,e),e;case 6:return null===t&&b(e),t=e.pendingProps,null===t&&(t=e.memoizedProps),e.memoizedProps=t,null;case 8:e.tag=7;case 7:return a=e.pendingProps,pr.current?null===a&&null===(a=t&&t.memoizedProps)&&i(\"154\"):null!==a&&e.memoizedProps!==a||(a=e.memoizedProps),r=a.children,e.stateNode=null===t?Tr(e,e.stateNode,r,n):kr(e,e.stateNode,r,n),e.memoizedProps=a,e.stateNode;case 9:return null;case 4:t:{if(g(e,e.stateNode.containerInfo),a=e.pendingProps,pr.current)null===a&&null==(a=t&&t.memoizedProps)&&i(\"154\");else if(null===a||e.memoizedProps===a){e=c(t,e);break t}null===t?e.child=kr(e,null,a,n):o(t,e,a),e.memoizedProps=a,e=e.child}return e;case 10:t:{if(n=e.pendingProps,pr.current)null===n&&(n=e.memoizedProps);else if(null===n||e.memoizedProps===n){e=c(t,e);break t}o(t,e,n),e.memoizedProps=n,e=e.child}return e;default:i(\"156\")}},beginFailedWork:function(t,e,n){switch(e.tag){case 2:ie(e);break;case 3:u(e);break;default:i(\"157\")}return e.effectTag|=64,null===t?e.child=null:e.child!==t.child&&(e.child=t.child),0===e.expirationTime||e.expirationTime>n?h(t,e):(e.firstEffect=null,e.lastEffect=null,e.child=null===t?Tr(e,null,null,n):kr(e,t.child,null,n),2===e.tag&&(t=e.stateNode,e.memoizedProps=t.props,e.memoizedState=t.state),e.child)}}}function Pe(t,e,n){function r(t){t.effectTag|=4}var a=t.createInstance,o=t.createTextInstance,s=t.appendInitialChild,l=t.finalizeInitialChildren,u=t.prepareUpdate,c=t.persistence,h=e.getRootHostContainer,d=e.popHostContext,f=e.getHostContext,p=e.popHostContainer,m=n.prepareToHydrateHostInstance,g=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,y=void 0,b=void 0,x=void 0;return t.mutation?(y=function(){},b=function(t,e,n){(e.updateQueue=n)&&r(e)},x=function(t,e,n,i){n!==i&&r(e)}):i(c?\"235\":\"236\"),{completeWork:function(t,e,n){var c=e.pendingProps;switch(null===c?c=e.memoizedProps:2147483647===e.expirationTime&&2147483647!==n||(e.pendingProps=null),e.tag){case 1:return null;case 2:return te(e),null;case 3:return p(e),Zt(pr,e),Zt(fr,e),c=e.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==t&&null!==t.child||(v(e),e.effectTag&=-3),y(e),null;case 5:d(e),n=h();var _=e.type;if(null!==t&&null!=e.stateNode){var w=t.memoizedProps,M=e.stateNode,S=f();M=u(M,_,w,c,n,S),b(t,e,M,_,w,c,n),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!c)return null===e.stateNode&&i(\"166\"),null;if(t=f(),v(e))m(e,n,t)&&r(e);else{t=a(_,c,n,t,e);t:for(w=e.child;null!==w;){if(5===w.tag||6===w.tag)s(t,w.stateNode);else if(4!==w.tag&&null!==w.child){w.child.return=w,w=w.child;continue}if(w===e)break;for(;null===w.sibling;){if(null===w.return||w.return===e)break t;w=w.return}w.sibling.return=w.return,w=w.sibling}l(t,_,c,n)&&r(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)x(t,e,t.memoizedProps,c);else{if(\"string\"!=typeof c)return null===e.stateNode&&i(\"166\"),null;t=h(),n=f(),v(e)?g(e)&&r(e):e.stateNode=o(c,t,n,e)}return null;case 7:(c=e.memoizedProps)||i(\"165\"),e.tag=8,_=[];t:for((w=e.stateNode)&&(w.return=e);null!==w;){if(5===w.tag||6===w.tag||4===w.tag)i(\"247\");else if(9===w.tag)_.push(w.type);else if(null!==w.child){w.child.return=w,w=w.child;continue}for(;null===w.sibling;){if(null===w.return||w.return===e)break t;w=w.return}w.sibling.return=w.return,w=w.sibling}return w=c.handler,c=w(c.props,_),e.child=kr(e,null!==t?t.child:null,c,n),e.child;case 8:return e.tag=7,null;case 9:case 10:return null;case 4:return p(e),y(e),null;case 0:i(\"167\");default:i(\"156\")}}}}function Oe(t,e){function n(t){var n=t.ref;if(null!==n)try{n(null)}catch(n){e(t,n)}}function r(t){switch(\"function\"==typeof ge&&ge(t),t.tag){case 2:n(t);var i=t.stateNode;if(\"function\"==typeof i.componentWillUnmount)try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(n){e(t,n)}break;case 5:n(t);break;case 7:a(t.stateNode);break;case 4:u&&s(t)}}function a(t){for(var e=t;;)if(r(e),null===e.child||u&&4===e.tag){if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}else e.child.return=e,e=e.child}function o(t){return 5===t.tag||3===t.tag||4===t.tag}function s(t){for(var e=t,n=!1,o=void 0,s=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&i(\"160\"),n.tag){case 5:o=n.stateNode,s=!1;break t;case 3:case 4:o=n.stateNode.containerInfo,s=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag)a(e),s?b(o,e.stateNode):y(o,e.stateNode);else if(4===e.tag?o=e.stateNode.containerInfo:r(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return,4===e.tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}var l=t.getPublicInstance,u=t.mutation;t=t.persistence,u||i(t?\"235\":\"236\");var c=u.commitMount,h=u.commitUpdate,d=u.resetTextContent,f=u.commitTextUpdate,p=u.appendChild,m=u.appendChildToContainer,g=u.insertBefore,v=u.insertInContainerBefore,y=u.removeChild,b=u.removeChildFromContainer;return{commitResetTextContent:function(t){d(t.stateNode)},commitPlacement:function(t){t:{for(var e=t.return;null!==e;){if(o(e)){var n=e;break t}e=e.return}i(\"160\"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:i(\"161\")}16&n.effectTag&&(d(e),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var a=t;;){if(5===a.tag||6===a.tag)n?r?v(e,a.stateNode,n):g(e,a.stateNode,n):r?m(e,a.stateNode):p(e,a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},commitDeletion:function(t){s(t),t.return=null,t.child=null,t.alternate&&(t.alternate.child=null,t.alternate.return=null)},commitWork:function(t,e){switch(e.tag){case 2:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps;t=null!==t?t.memoizedProps:r;var a=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&h(n,o,a,t,r,e)}break;case 6:null===e.stateNode&&i(\"162\"),n=e.memoizedProps,f(e.stateNode,null!==t?t.memoizedProps:n,n);break;case 3:break;default:i(\"163\")}},commitLifeCycles:function(t,e){switch(e.tag){case 2:var n=e.stateNode;if(4&e.effectTag)if(null===t)n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidMount();else{var r=t.memoizedProps;t=t.memoizedState,n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidUpdate(r,t)}e=e.updateQueue,null!==e&&we(e,n);break;case 3:n=e.updateQueue,null!==n&&we(n,null!==e.child?e.child.stateNode:null);break;case 5:n=e.stateNode,null===t&&4&e.effectTag&&c(n,e.type,e.memoizedProps,e);break;case 6:case 4:break;default:i(\"163\")}},commitAttachRef:function(t){var e=t.ref;if(null!==e){var n=t.stateNode;switch(t.tag){case 5:e(l(n));break;default:e(n)}}},commitDetachRef:function(t){null!==(t=t.ref)&&t(null)}}}function Ae(t){function e(t){return t===Cr&&i(\"174\"),t}var n=t.getChildHostContext,r=t.getRootHostContext,a={current:Cr},o={current:Cr},s={current:Cr};return{getHostContext:function(){return e(a.current)},getRootHostContainer:function(){return e(s.current)},popHostContainer:function(t){Zt(a,t),Zt(o,t),Zt(s,t)},popHostContext:function(t){o.current===t&&(Zt(a,t),Zt(o,t))},pushHostContainer:function(t,e){Kt(s,e,t),e=r(e),Kt(o,t,t),Kt(a,e,t)},pushHostContext:function(t){var i=e(s.current),r=e(a.current);i=n(r,t.type,i),r!==i&&(Kt(o,t,t),Kt(a,i,t))},resetHostContainer:function(){a.current=Cr,s.current=Cr}}}function Re(t){function e(t,e){var n=new ae(5,null,0);n.type=\"DELETED\",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function n(t,e){switch(t.tag){case 5:return null!==(e=o(e,t.type,t.pendingProps))&&(t.stateNode=e,!0);case 6:return null!==(e=s(e,t.pendingProps))&&(t.stateNode=e,!0);default:return!1}}function r(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;d=t}var a=t.shouldSetTextContent;if(!(t=t.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){i(\"175\")},prepareToHydrateHostTextInstance:function(){i(\"176\")},popHydrationState:function(){return!1}};var o=t.canHydrateInstance,s=t.canHydrateTextInstance,l=t.getNextHydratableSibling,u=t.getFirstHydratableChild,c=t.hydrateInstance,h=t.hydrateTextInstance,d=null,f=null,p=!1;return{enterHydrationState:function(t){return f=u(t.stateNode.containerInfo),d=t,p=!0},resetHydrationState:function(){f=d=null,p=!1},tryToClaimNextHydratableInstance:function(t){if(p){var i=f;if(i){if(!n(t,i)){if(!(i=l(i))||!n(t,i))return t.effectTag|=2,p=!1,void(d=t);e(d,f)}d=t,f=u(i)}else t.effectTag|=2,p=!1,d=t}},prepareToHydrateHostInstance:function(t,e,n){return e=c(t.stateNode,t.type,t.memoizedProps,e,n,t),t.updateQueue=e,null!==e},prepareToHydrateHostTextInstance:function(t){return h(t.stateNode,t.memoizedProps,t)},popHydrationState:function(t){if(t!==d)return!1;if(!p)return r(t),p=!0,!1;var n=t.type;if(5!==t.tag||\"head\"!==n&&\"body\"!==n&&!a(n,t.memoizedProps))for(n=f;n;)e(t,n),n=l(n);return r(t),f=d?l(t.stateNode):null,!0}}}function Le(t){function e(t){at=Z=!0;var e=t.stateNode;if(e.current===t&&i(\"177\"),e.isReadyForCommit=!1,ji.current=null,1o.expirationTime)&&(a=o.expirationTime),o=o.sibling;r.expirationTime=a}if(null!==e)return e;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1t))if(J<=q)for(;null!==K;)K=u(K)?a(K):r(K);else for(;null!==K&&!w();)K=u(K)?a(K):r(K)}else if(!(0===J||J>t))if(J<=q)for(;null!==K;)K=r(K);else for(;null!==K&&!w();)K=r(K)}function s(t,e){if(Z&&i(\"243\"),Z=!0,t.isReadyForCommit=!1,t!==Q||e!==J||null===K){for(;-1e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var n=t.stateNode;!Z&&n===Q&&ext&&i(\"185\"),null===r.nextScheduledRoot)r.remainingExpirationTime=a,null===lt?(st=lt=r,r.nextScheduledRoot=r):(lt=lt.nextScheduledRoot=r,lt.nextScheduledRoot=st);else{var o=r.remainingExpirationTime;(0===o||aut)return;W(ct)}var e=U()-Y;ut=t,ct=j(b,{timeout:10*(t-2)-e})}function y(){var t=0,e=null;if(null!==lt)for(var n=lt,r=st;null!==r;){var a=r.remainingExpirationTime;if(0===a){if((null===n||null===lt)&&i(\"244\"),r===r.nextScheduledRoot){st=lt=r.nextScheduledRoot=null;break}if(r===st)st=a=r.nextScheduledRoot,lt.nextScheduledRoot=a,r.nextScheduledRoot=null;else{if(r===lt){lt=n,lt.nextScheduledRoot=st,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===t||aMt)&&(pt=!0)}function M(t){null===dt&&i(\"246\"),dt.remainingExpirationTime=0,mt||(mt=!0,gt=t)}var S=Ae(t),E=Re(t),k=S.popHostContainer,T=S.popHostContext,C=S.resetHostContainer,P=Ce(t,S,E,f,d),O=P.beginWork,A=P.beginFailedWork,R=Pe(t,S,E).completeWork;S=Oe(t,l);var L=S.commitResetTextContent,I=S.commitPlacement,D=S.commitDeletion,N=S.commitWork,z=S.commitLifeCycles,B=S.commitAttachRef,F=S.commitDetachRef,U=t.now,j=t.scheduleDeferredCallback,W=t.cancelDeferredCallback,G=t.useSyncScheduling,V=t.prepareForCommit,H=t.resetAfterCommit,Y=U(),q=2,X=0,Z=!1,K=null,Q=null,J=0,$=null,tt=null,et=null,nt=null,it=null,rt=!1,at=!1,ot=!1,st=null,lt=null,ut=0,ct=-1,ht=!1,dt=null,ft=0,pt=!1,mt=!1,gt=null,vt=null,yt=!1,bt=!1,xt=1e3,wt=0,Mt=1;return{computeAsyncExpiration:h,computeExpirationForFiber:d,scheduleWork:f,batchedUpdates:function(t,e){var n=yt;yt=!0;try{return t(e)}finally{(yt=n)||ht||x(1,null)}},unbatchedUpdates:function(t){if(yt&&!bt){bt=!0;try{return t()}finally{bt=!1}}return t()},flushSync:function(t){var e=yt;yt=!0;try{t:{var n=X;X=1;try{var r=t();break t}finally{X=n}r=void 0}return r}finally{yt=e,ht&&i(\"187\"),x(1,null)}},deferredUpdates:function(t){var e=X;X=h();try{return t()}finally{X=e}}}}function Ie(t){function e(t){return t=kt(t),null===t?null:t.stateNode}var n=t.getPublicInstance;t=Le(t);var r=t.computeAsyncExpiration,a=t.computeExpirationForFiber,o=t.scheduleWork;return{createContainer:function(t,e){var n=new ae(3,null,0);return t={current:n,containerInfo:t,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:e,nextScheduledRoot:null},n.stateNode=t},updateContainer:function(t,e,n,s){var l=e.current;if(n){n=n._reactInternalFiber;var u;t:{for(2===wt(n)&&2===n.tag||i(\"170\"),u=n;3!==u.tag;){if($t(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}(u=u.return)||i(\"171\")}u=u.stateNode.context}n=$t(n)?ne(n,u):u}else n=Cn;null===e.context?e.context=n:e.pendingContext=n,e=s,e=void 0===e?null:e,s=null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent?r():a(l),be(l,{expirationTime:s,partialState:{element:t},callback:e,isReplace:!1,isForced:!1,nextCallback:null,next:null}),o(l,s)},batchedUpdates:t.batchedUpdates,unbatchedUpdates:t.unbatchedUpdates,deferredUpdates:t.deferredUpdates,flushSync:t.flushSync,getPublicRootInstance:function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return n(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:e,findHostInstanceWithNoPortals:function(t){return t=Tt(t),null===t?null:t.stateNode},injectIntoDevTools:function(t){var n=t.findFiberByHostInstance;return pe(_n({},t,{findHostInstanceByFiber:function(t){return e(t)},findFiberByHostInstance:function(t){return n?n(t):null}}))}}}function De(t,e,n){var i=3n||i.hasOverloadedBooleanValue&&!1===n?Fe(t,e):i.mustUseProperty?t[i.propertyName]=n:(e=i.attributeName,(r=i.attributeNamespace)?t.setAttributeNS(r,e,\"\"+n):i.hasBooleanValue||i.hasOverloadedBooleanValue&&!0===n?t.setAttribute(e,\"\"):t.setAttribute(e,\"\"+n))}else Be(t,e,a(e,n)?n:null)}function Be(t,e,n){Ne(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,\"\"+n))}function Fe(t,e){var n=o(e);n?(e=n.mutationMethod)?e(t,void 0):n.mustUseProperty?t[n.propertyName]=!n.hasBooleanValue&&\"\":t.removeAttribute(n.attributeName):t.removeAttribute(e)}function Ue(t,e){var n=e.value,i=e.checked;return _n({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:t._wrapperState.initialValue,checked:null!=i?i:t._wrapperState.initialChecked})}function je(t,e){var n=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:n,controlled:\"checkbox\"===e.type||\"radio\"===e.type?null!=e.checked:null!=e.value}}function We(t,e){null!=(e=e.checked)&&ze(t,\"checked\",e)}function Ge(t,e){We(t,e);var n=e.value;null!=n?0===n&&\"\"===t.value?t.value=\"0\":\"number\"===e.type?(e=parseFloat(t.value)||0,(n!=e||n==e&&t.value!=n)&&(t.value=\"\"+n)):t.value!==\"\"+n&&(t.value=\"\"+n):(null==e.value&&null!=e.defaultValue&&t.defaultValue!==\"\"+e.defaultValue&&(t.defaultValue=\"\"+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked))}function Ve(t,e){switch(e.type){case\"submit\":case\"reset\":break;case\"color\":case\"date\":case\"datetime\":case\"datetime-local\":case\"month\":case\"time\":case\"week\":t.value=\"\",t.value=t.defaultValue;break;default:t.value=t.value}e=t.name,\"\"!==e&&(t.name=\"\"),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,\"\"!==e&&(t.name=e)}function He(t){var e=\"\";return bn.Children.forEach(t,function(t){null==t||\"string\"!=typeof t&&\"number\"!=typeof t||(e+=t)}),e}function Ye(t,e){return t=_n({children:void 0},e),(e=He(e.children))&&(t.children=e),t}function qe(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r=e.length||i(\"93\"),e=e[0]),n=\"\"+e),null==n&&(n=\"\")),t._wrapperState={initialValue:\"\"+n}}function Qe(t,e){var n=e.value;null!=n&&(n=\"\"+n,n!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function Je(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function $e(t){switch(t){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function tn(t,e){return null==t||\"http://www.w3.org/1999/xhtml\"===t?$e(e):\"http://www.w3.org/2000/svg\"===t&&\"foreignObject\"===e?\"http://www.w3.org/1999/xhtml\":t}function en(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function nn(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=0===n.indexOf(\"--\"),r=n,a=e[n];r=null==a||\"boolean\"==typeof a||\"\"===a?\"\":i||\"number\"!=typeof a||0===a||Jr.hasOwnProperty(r)&&Jr[r]?(\"\"+a).trim():a+\"px\",\"float\"===n&&(n=\"cssFloat\"),i?t.setProperty(n,r):t[n]=r}}function rn(t,e,n){e&&(ta[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&i(\"137\",t,n()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&i(\"60\"),\"object\"==typeof e.dangerouslySetInnerHTML&&\"__html\"in e.dangerouslySetInnerHTML||i(\"61\")),null!=e.style&&\"object\"!=typeof e.style&&i(\"62\",n()))}function an(t,e){if(-1===t.indexOf(\"-\"))return\"string\"==typeof e.is;switch(t){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function on(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var n=Dt(t);e=Kn[e];for(var i=0;i<\\/script>\",t=t.removeChild(t.firstChild)):t=\"string\"==typeof e.is?n.createElement(t,{is:e.is}):n.createElement(t):t=n.createElementNS(i,t),t}function ln(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function un(t,e,n,i){var r=an(e,n);switch(e){case\"iframe\":case\"object\":Ot(\"topLoad\",\"load\",t);var a=n;break;case\"video\":case\"audio\":for(a in ia)ia.hasOwnProperty(a)&&Ot(a,ia[a],t);a=n;break;case\"source\":Ot(\"topError\",\"error\",t),a=n;break;case\"img\":case\"image\":Ot(\"topError\",\"error\",t),Ot(\"topLoad\",\"load\",t),a=n;break;case\"form\":Ot(\"topReset\",\"reset\",t),Ot(\"topSubmit\",\"submit\",t),a=n;break;case\"details\":Ot(\"topToggle\",\"toggle\",t),a=n;break;case\"input\":je(t,n),a=Ue(t,n),Ot(\"topInvalid\",\"invalid\",t),on(i,\"onChange\");break;case\"option\":a=Ye(t,n);break;case\"select\":Xe(t,n),a=_n({},n,{value:void 0}),Ot(\"topInvalid\",\"invalid\",t),on(i,\"onChange\");break;case\"textarea\":Ke(t,n),a=Ze(t,n),Ot(\"topInvalid\",\"invalid\",t),on(i,\"onChange\");break;default:a=n}rn(e,a,na);var o,s=a;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];\"style\"===o?nn(t,l,na):\"dangerouslySetInnerHTML\"===o?null!=(l=l?l.__html:void 0)&&Qr(t,l):\"children\"===o?\"string\"==typeof l?(\"textarea\"!==e||\"\"!==l)&&en(t,l):\"number\"==typeof l&&en(t,\"\"+l):\"suppressContentEditableWarning\"!==o&&\"suppressHydrationWarning\"!==o&&\"autoFocus\"!==o&&(Zn.hasOwnProperty(o)?null!=l&&on(i,o):r?Be(t,o,l):null!=l&&ze(t,o,l))}switch(e){case\"input\":at(t),Ve(t,n);break;case\"textarea\":at(t),Je(t,n);break;case\"option\":null!=n.value&&t.setAttribute(\"value\",n.value);break;case\"select\":t.multiple=!!n.multiple,e=n.value,null!=e?qe(t,!!n.multiple,e,!1):null!=n.defaultValue&&qe(t,!!n.multiple,n.defaultValue,!0);break;default:\"function\"==typeof a.onClick&&(t.onclick=wn)}}function cn(t,e,n,i,r){var a=null;switch(e){case\"input\":n=Ue(t,n),i=Ue(t,i),a=[];break;case\"option\":n=Ye(t,n),i=Ye(t,i),a=[];break;case\"select\":n=_n({},n,{value:void 0}),i=_n({},i,{value:void 0}),a=[];break;case\"textarea\":n=Ze(t,n),i=Ze(t,i),a=[];break;default:\"function\"!=typeof n.onClick&&\"function\"==typeof i.onClick&&(t.onclick=wn)}rn(e,i,na);var o,s;t=null;for(o in n)if(!i.hasOwnProperty(o)&&n.hasOwnProperty(o)&&null!=n[o])if(\"style\"===o)for(s in e=n[o])e.hasOwnProperty(s)&&(t||(t={}),t[s]=\"\");else\"dangerouslySetInnerHTML\"!==o&&\"children\"!==o&&\"suppressContentEditableWarning\"!==o&&\"suppressHydrationWarning\"!==o&&\"autoFocus\"!==o&&(Zn.hasOwnProperty(o)?a||(a=[]):(a=a||[]).push(o,null));for(o in i){var l=i[o];if(e=null!=n?n[o]:void 0,i.hasOwnProperty(o)&&l!==e&&(null!=l||null!=e))if(\"style\"===o)if(e){for(s in e)!e.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(t||(t={}),t[s]=\"\");for(s in l)l.hasOwnProperty(s)&&e[s]!==l[s]&&(t||(t={}),t[s]=l[s])}else t||(a||(a=[]),a.push(o,t)),t=l;else\"dangerouslySetInnerHTML\"===o?(l=l?l.__html:void 0,e=e?e.__html:void 0,null!=l&&e!==l&&(a=a||[]).push(o,\"\"+l)):\"children\"===o?e===l||\"string\"!=typeof l&&\"number\"!=typeof l||(a=a||[]).push(o,\"\"+l):\"suppressContentEditableWarning\"!==o&&\"suppressHydrationWarning\"!==o&&(Zn.hasOwnProperty(o)?(null!=l&&on(r,o),a||e===l||(a=[])):(a=a||[]).push(o,l))}return t&&(a=a||[]).push(\"style\",t),a}function hn(t,e,n,i,r){\"input\"===n&&\"radio\"===r.type&&null!=r.name&&We(t,r),an(n,i),i=an(n,r);for(var a=0;a=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue||i(\"50\",s),o.hasOwnProperty(s)&&(l.attributeName=o[s]),a.hasOwnProperty(s)&&(l.attributeNamespace=a[s]),t.hasOwnProperty(s)&&(l.mutationMethod=t[s]),An[s]=l}}},An={},Rn=On,Ln=Rn.MUST_USE_PROPERTY,In=Rn.HAS_BOOLEAN_VALUE,Dn=Rn.HAS_NUMERIC_VALUE,Nn=Rn.HAS_POSITIVE_NUMERIC_VALUE,zn=Rn.HAS_OVERLOADED_BOOLEAN_VALUE,Bn=Rn.HAS_STRING_BOOLEAN_VALUE,Fn={Properties:{allowFullScreen:In,async:In,autoFocus:In,autoPlay:In,capture:zn,checked:Ln|In,cols:Nn,contentEditable:Bn,controls:In,default:In,defer:In,disabled:In,download:zn,draggable:Bn,formNoValidate:In,hidden:In,loop:In,multiple:Ln|In,muted:Ln|In,noValidate:In,open:In,playsInline:In,readOnly:In,required:In,reversed:In,rows:Nn,rowSpan:Dn,scoped:In,seamless:In,selected:Ln|In,size:Nn,start:Dn,span:Nn,spellCheck:Bn,style:0,tabIndex:0,itemScope:In,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Bn},DOMAttributeNames:{acceptCharset:\"accept-charset\",className:\"class\",htmlFor:\"for\",httpEquiv:\"http-equiv\"},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute(\"value\");\"number\"!==t.type||!1===t.hasAttribute(\"value\")?t.setAttribute(\"value\",\"\"+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute(\"value\",\"\"+e)}}},Un=Rn.HAS_STRING_BOOLEAN_VALUE,jn={xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\"},Wn={Properties:{autoReverse:Un,externalResourcesRequired:Un,preserveAlpha:Un},DOMAttributeNames:{autoReverse:\"autoReverse\",externalResourcesRequired:\"externalResourcesRequired\",preserveAlpha:\"preserveAlpha\"},DOMAttributeNamespaces:{xlinkActuate:jn.xlink,xlinkArcrole:jn.xlink,xlinkHref:jn.xlink,xlinkRole:jn.xlink,xlinkShow:jn.xlink,xlinkTitle:jn.xlink,xlinkType:jn.xlink,xmlBase:jn.xml,xmlLang:jn.xml,xmlSpace:jn.xml}},Gn=/[\\-\\:]([a-z])/g;\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space\".split(\" \").forEach(function(t){var e=t.replace(Gn,s);Wn.Properties[e]=0,Wn.DOMAttributeNames[e]=t}),Rn.injectDOMPropertyConfig(Fn),Rn.injectDOMPropertyConfig(Wn);var Vn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(t){\"function\"!=typeof t.invokeGuardedCallback&&i(\"197\"),l=t.invokeGuardedCallback}},invokeGuardedCallback:function(t,e,n,i,r,a,o,s,u){l.apply(Vn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,n,i,r,a,o,s,l){if(Vn.invokeGuardedCallback.apply(this,arguments),Vn.hasCaughtError()){var u=Vn.clearCaughtError();Vn._hasRethrowError||(Vn._hasRethrowError=!0,Vn._rethrowError=u)}},rethrowCaughtError:function(){return u.apply(Vn,arguments)},hasCaughtError:function(){return Vn._hasCaughtError},clearCaughtError:function(){if(Vn._hasCaughtError){var t=Vn._caughtError;return Vn._caughtError=null,Vn._hasCaughtError=!1,t}i(\"198\")}},Hn=null,Yn={},qn=[],Xn={},Zn={},Kn={},Qn=Object.freeze({plugins:qn,eventNameDispatchConfigs:Xn,registrationNameModules:Zn,registrationNameDependencies:Kn,possibleRegistrationNames:null,injectEventPluginOrder:d,injectEventPluginsByName:f}),Jn=null,$n=null,ti=null,ei=null,ni={injectEventPluginOrder:d,injectEventPluginsByName:f},ii=Object.freeze({injection:ni,getListener:x,extractEvents:_,enqueueEvents:w,processEventQueue:M}),ri=Math.random().toString(36).slice(2),ai=\"__reactInternalInstance$\"+ri,oi=\"__reactEventHandlers$\"+ri,si=Object.freeze({precacheFiberNode:function(t,e){e[ai]=t},getClosestInstanceFromNode:S,getInstanceFromNode:function(t){return t=t[ai],!t||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:E,getFiberCurrentPropsFromNode:k,updateFiberProps:function(t,e){t[oi]=e}}),li=Object.freeze({accumulateTwoPhaseDispatches:I,accumulateTwoPhaseDispatchesSkipTarget:function(t){g(t,A)},accumulateEnterLeaveDispatches:D,accumulateDirectDispatches:function(t){g(t,L)}}),ui=null,ci={_root:null,_startText:null,_fallbackText:null},hi=\"dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances\".split(\" \"),di={type:null,target:null,currentTarget:wn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};_n(F.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():\"unknown\"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=wn.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():\"unknown\"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=wn.thatReturnsTrue)},persist:function(){this.isPersistent=wn.thatReturnsTrue},isPersistent:wn.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e=parseInt(vi.version(),10))}var yi,bi=gi,xi=xn.canUseDOM&&(!pi||mi&&8=mi),_i=String.fromCharCode(32),wi={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"topCompositionEnd\",\"topKeyPress\",\"topTextInput\",\"topPaste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",captured:\"onCompositionStartCapture\"},dependencies:\"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown\".split(\" \")}},Mi=!1,Si=!1,Ei={eventTypes:wi,extractEvents:function(t,e,n,i){var r;if(pi)t:{switch(t){case\"topCompositionStart\":var a=wi.compositionStart;break t;case\"topCompositionEnd\":a=wi.compositionEnd;break t;case\"topCompositionUpdate\":a=wi.compositionUpdate;break t}a=void 0}else Si?H(t,n)&&(a=wi.compositionEnd):\"topKeyDown\"===t&&229===n.keyCode&&(a=wi.compositionStart);return a?(xi&&(Si||a!==wi.compositionStart?a===wi.compositionEnd&&Si&&(r=z()):(ci._root=i,ci._startText=B(),Si=!0)),a=G.getPooled(a,e,n,i),r?a.data=r:null!==(r=Y(n))&&(a.data=r),I(a),r=a):r=null,(t=bi?q(t,n):X(t,n))?(e=V.getPooled(wi.beforeInput,e,n,i),e.data=t,I(e)):e=null,[r,e]}},ki=null,Ti=null,Ci=null,Pi={injectFiberControlledHostComponent:function(t){ki=t}},Oi=Object.freeze({injection:Pi,enqueueStateRestore:K,restoreStateIfNeeded:Q}),Ai=!1,Ri={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};xn.canUseDOM&&(yi=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature(\"\",\"\"));var Li={change:{phasedRegistrationNames:{bubbled:\"onChange\",captured:\"onChangeCapture\"},dependencies:\"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange\".split(\" \")}},Ii=null,Di=null,Ni=!1;xn.canUseDOM&&(Ni=nt(\"input\")&&(!document.documentMode||9=document.documentMode,tr={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange\".split(\" \")}},er=null,nr=null,ir=null,rr=!1,ar={eventTypes:tr,extractEvents:function(t,e,n,i){var r,a=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(r=!a)){t:{a=Dt(a),r=Kn.onSelect;for(var o=0;o=jr-t){if(!(-1!==Fr&&Fr<=t))return void(Ur||(Ur=!0,requestAnimationFrame(Hr)));Nr.didTimeout=!0}else Nr.didTimeout=!1;Fr=-1,t=zr,zr=null,null!==t&&t(Nr)}},!1);var Hr=function(t){Ur=!1;var e=t-jr+Gr;ee&&(e=8),Gr=e\"+e+\"\",e=Kr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),Jr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$r=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(Jr).forEach(function(t){$r.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Jr[e]=Jr[t]})});var ta=_n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ea=Zr.html,na=wn.thatReturns(\"\"),ia={topAbort:\"abort\",topCanPlay:\"canplay\",topCanPlayThrough:\"canplaythrough\",topDurationChange:\"durationchange\",topEmptied:\"emptied\",topEncrypted:\"encrypted\",topEnded:\"ended\",topError:\"error\",topLoadedData:\"loadeddata\",topLoadedMetadata:\"loadedmetadata\",topLoadStart:\"loadstart\",topPause:\"pause\",topPlay:\"play\",topPlaying:\"playing\",topProgress:\"progress\",topRateChange:\"ratechange\",topSeeked:\"seeked\",topSeeking:\"seeking\",topStalled:\"stalled\",topSuspend:\"suspend\",topTimeUpdate:\"timeupdate\",topVolumeChange:\"volumechange\",topWaiting:\"waiting\"},ra=Object.freeze({createElement:sn,createTextNode:ln,setInitialProperties:un,diffProperties:cn,updateProperties:hn,diffHydratedProperties:dn,diffHydratedText:fn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,n){switch(e){case\"input\":if(Ge(t,n),e=n.name,\"radio\"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+e)+'][type=\"radio\"]'),e=0;ei&&(r=i,i=t,t=r),r=zt(n,t);var a=zt(n,i);if(r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)){var o=document.createRange();o.setStart(r.node,r.offset),e.removeAllRanges(),t>i?(e.addRange(o),e.extend(a.node,a.offset)):(o.setEnd(a.node,a.offset),e.addRange(o))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(Tn(n),n=0;no?o:r+s,l&&l(u,t);break;case 37:case 40:u=r-s0){S=S.sort(function(t,e){return s?t-e:e-t});var E=!0,k=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(E=(C=P.next()).done);E=!0){var O=C.value,A=this.getPositionFromValue(O),R=this.coordinates(A),L=r({},g,R.label+\"px\");M.push(d.default.createElement(\"li\",{key:O,className:(0,c.default)(\"rangeslider__label-item\"),\"data-value\":O,onMouseDown:this.handleDrag,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,style:L},this.props.labels[O]))}}catch(t){k=!0,T=t}finally{try{!E&&P.return&&P.return()}finally{if(k)throw T}}}return d.default.createElement(\"div\",{ref:function(e){t.slider=e},className:(0,c.default)(\"rangeslider\",\"rangeslider-\"+i,{\"rangeslider-reverse\":s},a),onMouseDown:this.handleDrag,onMouseUp:this.handleEnd,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,\"aria-valuemin\":u,\"aria-valuemax\":h,\"aria-valuenow\":n,\"aria-orientation\":i},d.default.createElement(\"div\",{className:\"rangeslider__fill\",style:x}),d.default.createElement(\"div\",{ref:function(e){t.handle=e},className:\"rangeslider__handle\",onMouseDown:this.handleStart,onTouchMove:this.handleDrag,onTouchEnd:this.handleEnd,onKeyDown:this.handleKeyDown,style:_,tabIndex:0},w?d.default.createElement(\"div\",{ref:function(e){t.tooltip=e},className:\"rangeslider__handle-tooltip\"},d.default.createElement(\"span\",null,this.handleFormat(n))):null,d.default.createElement(\"div\",{className:\"rangeslider__handle-label\"},f)),l?this.renderLabels(M):null)}}]),e}(h.Component);b.propTypes={min:p.default.number,max:p.default.number,step:p.default.number,value:p.default.number,orientation:p.default.string,tooltip:p.default.bool,reverse:p.default.bool,labels:p.default.object,handleLabel:p.default.string,format:p.default.func,onChangeStart:p.default.func,onChange:p.default.func,onChangeComplete:p.default.func},b.defaultProps={min:0,max:100,step:1,value:0,orientation:\"horizontal\",tooltip:!0,reverse:!1,labels:{},handleLabel:\"\"},e.default=b},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var i=n(462),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default},function(t,e,n){\"use strict\";function i(t){return t.charAt(0).toUpperCase()+t.substr(1)}function r(t,e,n){return Math.min(Math.max(t,e),n)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.capitalize=i,e.clamp=r},function(t,e,n){var i=n(468);t.exports=i},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function a(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function o(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,\"__esModule\",{value:!0});var s=Object.assign||function(t){for(var e=1;eparseInt(window.getComputedStyle(v).order)&&(M=-M);var S=i;if(void 0!==i&&i<=0){var E=this.splitPane;S=\"vertical\"===o?E.getBoundingClientRect().width+i:E.getBoundingClientRect().height+i}var k=_-M,T=h-w;kS?k=S:this.setState({position:T,resized:!0}),a&&a(k),this.setState({draggedSize:k}),f.setState({size:k})}}}}},{key:\"onMouseUp\",value:function(){var t=this.props,e=t.allowResize,n=t.onDragFinished,i=this.state,r=i.active,a=i.draggedSize;e&&r&&(\"function\"==typeof n&&n(a),this.setState({active:!1}))}},{key:\"setSize\",value:function(t,e){var n=\"first\"===t.primary,i=n?this.pane1:this.pane2,r=n?this.pane2:this.pane1,a=void 0;i&&(a=t.size||e&&e.draggedSize||t.defaultSize||t.minSize,i.setState({size:a}),t.size!==e.draggedSize&&this.setState({draggedSize:a})),r&&t.primary!==this.props.primary&&r.setState({size:void 0})}},{key:\"render\",value:function(){var t=this,e=this.props,n=e.allowResize,i=e.children,r=e.className,a=e.defaultSize,o=e.minSize,s=e.onResizerClick,u=e.onResizerDoubleClick,c=e.paneClassName,d=e.pane1ClassName,f=e.pane2ClassName,p=e.paneStyle,m=e.pane1Style,g=e.pane2Style,v=e.primary,y=e.prefixer,b=e.resizerClassName,x=e.resizerStyle,S=e.size,E=e.split,k=e.style,T=n?\"\":\"disabled\",C=b?b+\" \"+w.RESIZER_DEFAULT_CLASSNAME:b,P=l({},{display:\"flex\",flex:1,height:\"100%\",position:\"absolute\",outline:\"none\",overflow:\"hidden\",MozUserSelect:\"text\",WebkitUserSelect:\"text\",msUserSelect:\"text\",userSelect:\"text\"},k||{});\"vertical\"===E?l(P,{flexDirection:\"row\",left:0,right:0}):l(P,{bottom:0,flexDirection:\"column\",minHeight:\"100%\",top:0,width:\"100%\"});var O=[\"SplitPane\",r,E,T],A=y.prefix(l({},p||{},m||{})),R=y.prefix(l({},p||{},g||{})),L=[\"Pane1\",c,d].join(\" \"),I=[\"Pane2\",c,f].join(\" \");return h.default.createElement(\"div\",{className:O.join(\" \"),ref:function(e){t.splitPane=e},style:y.prefix(P)},h.default.createElement(_.default,{className:L,key:\"pane1\",ref:function(e){t.pane1=e},size:\"first\"===v?S||a||o:void 0,split:E,style:A},i[0]),h.default.createElement(M.default,{className:T,onClick:s,onDoubleClick:u,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:\"resizer\",ref:function(e){t.resizer=e},resizerClassName:C,split:E,style:x||{}}),h.default.createElement(_.default,{className:I,key:\"pane2\",ref:function(e){t.pane2=e},size:\"second\"===v?S||a||o:void 0,split:E,style:R},i[1]))}}]),e}(h.default.Component);E.propTypes={allowResize:f.default.bool,children:f.default.arrayOf(f.default.node).isRequired,className:f.default.string,primary:f.default.oneOf([\"first\",\"second\"]),minSize:f.default.oneOfType([f.default.string,f.default.number]),maxSize:f.default.oneOfType([f.default.string,f.default.number]),defaultSize:f.default.oneOfType([f.default.string,f.default.number]),size:f.default.oneOfType([f.default.string,f.default.number]),split:f.default.oneOf([\"vertical\",\"horizontal\"]),onDragStarted:f.default.func,onDragFinished:f.default.func,onChange:f.default.func,onResizerClick:f.default.func,onResizerDoubleClick:f.default.func,prefixer:f.default.instanceOf(v.default).isRequired,style:b.default,resizerStyle:b.default,paneClassName:f.default.string,pane1ClassName:f.default.string,pane2ClassName:f.default.string,paneStyle:b.default,pane1Style:b.default,pane2Style:b.default,resizerClassName:f.default.string,step:f.default.number},E.defaultProps={allowResize:!0,minSize:50,prefixer:new v.default({userAgent:S}),primary:\"first\",split:\"vertical\",paneClassName:\"\",pane1ClassName:\"\",pane2ClassName:\"\"},e.default=E,t.exports=e.default},function(t,e){t.exports=[\"alignContent\",\"MozAlignContent\",\"WebkitAlignContent\",\"MSAlignContent\",\"OAlignContent\",\"alignItems\",\"MozAlignItems\",\"WebkitAlignItems\",\"MSAlignItems\",\"OAlignItems\",\"alignSelf\",\"MozAlignSelf\",\"WebkitAlignSelf\",\"MSAlignSelf\",\"OAlignSelf\",\"all\",\"MozAll\",\"WebkitAll\",\"MSAll\",\"OAll\",\"animation\",\"MozAnimation\",\"WebkitAnimation\",\"MSAnimation\",\"OAnimation\",\"animationDelay\",\"MozAnimationDelay\",\"WebkitAnimationDelay\",\"MSAnimationDelay\",\"OAnimationDelay\",\"animationDirection\",\"MozAnimationDirection\",\"WebkitAnimationDirection\",\"MSAnimationDirection\",\"OAnimationDirection\",\"animationDuration\",\"MozAnimationDuration\",\"WebkitAnimationDuration\",\"MSAnimationDuration\",\"OAnimationDuration\",\"animationFillMode\",\"MozAnimationFillMode\",\"WebkitAnimationFillMode\",\"MSAnimationFillMode\",\"OAnimationFillMode\",\"animationIterationCount\",\"MozAnimationIterationCount\",\"WebkitAnimationIterationCount\",\"MSAnimationIterationCount\",\"OAnimationIterationCount\",\"animationName\",\"MozAnimationName\",\"WebkitAnimationName\",\"MSAnimationName\",\"OAnimationName\",\"animationPlayState\",\"MozAnimationPlayState\",\"WebkitAnimationPlayState\",\"MSAnimationPlayState\",\"OAnimationPlayState\",\"animationTimingFunction\",\"MozAnimationTimingFunction\",\"WebkitAnimationTimingFunction\",\"MSAnimationTimingFunction\",\"OAnimationTimingFunction\",\"backfaceVisibility\",\"MozBackfaceVisibility\",\"WebkitBackfaceVisibility\",\"MSBackfaceVisibility\",\"OBackfaceVisibility\",\"background\",\"MozBackground\",\"WebkitBackground\",\"MSBackground\",\"OBackground\",\"backgroundAttachment\",\"MozBackgroundAttachment\",\"WebkitBackgroundAttachment\",\"MSBackgroundAttachment\",\"OBackgroundAttachment\",\"backgroundBlendMode\",\"MozBackgroundBlendMode\",\"WebkitBackgroundBlendMode\",\"MSBackgroundBlendMode\",\"OBackgroundBlendMode\",\"backgroundClip\",\"MozBackgroundClip\",\"WebkitBackgroundClip\",\"MSBackgroundClip\",\"OBackgroundClip\",\"backgroundColor\",\"MozBackgroundColor\",\"WebkitBackgroundColor\",\"MSBackgroundColor\",\"OBackgroundColor\",\"backgroundImage\",\"MozBackgroundImage\",\"WebkitBackgroundImage\",\"MSBackgroundImage\",\"OBackgroundImage\",\"backgroundOrigin\",\"MozBackgroundOrigin\",\"WebkitBackgroundOrigin\",\"MSBackgroundOrigin\",\"OBackgroundOrigin\",\"backgroundPosition\",\"MozBackgroundPosition\",\"WebkitBackgroundPosition\",\"MSBackgroundPosition\",\"OBackgroundPosition\",\"backgroundRepeat\",\"MozBackgroundRepeat\",\"WebkitBackgroundRepeat\",\"MSBackgroundRepeat\",\"OBackgroundRepeat\",\"backgroundSize\",\"MozBackgroundSize\",\"WebkitBackgroundSize\",\"MSBackgroundSize\",\"OBackgroundSize\",\"blockSize\",\"MozBlockSize\",\"WebkitBlockSize\",\"MSBlockSize\",\"OBlockSize\",\"border\",\"MozBorder\",\"WebkitBorder\",\"MSBorder\",\"OBorder\",\"borderBlockEnd\",\"MozBorderBlockEnd\",\"WebkitBorderBlockEnd\",\"MSBorderBlockEnd\",\"OBorderBlockEnd\",\"borderBlockEndColor\",\"MozBorderBlockEndColor\",\"WebkitBorderBlockEndColor\",\"MSBorderBlockEndColor\",\"OBorderBlockEndColor\",\"borderBlockEndStyle\",\"MozBorderBlockEndStyle\",\"WebkitBorderBlockEndStyle\",\"MSBorderBlockEndStyle\",\"OBorderBlockEndStyle\",\"borderBlockEndWidth\",\"MozBorderBlockEndWidth\",\"WebkitBorderBlockEndWidth\",\"MSBorderBlockEndWidth\",\"OBorderBlockEndWidth\",\"borderBlockStart\",\"MozBorderBlockStart\",\"WebkitBorderBlockStart\",\"MSBorderBlockStart\",\"OBorderBlockStart\",\"borderBlockStartColor\",\"MozBorderBlockStartColor\",\"WebkitBorderBlockStartColor\",\"MSBorderBlockStartColor\",\"OBorderBlockStartColor\",\"borderBlockStartStyle\",\"MozBorderBlockStartStyle\",\"WebkitBorderBlockStartStyle\",\"MSBorderBlockStartStyle\",\"OBorderBlockStartStyle\",\"borderBlockStartWidth\",\"MozBorderBlockStartWidth\",\"WebkitBorderBlockStartWidth\",\"MSBorderBlockStartWidth\",\"OBorderBlockStartWidth\",\"borderBottom\",\"MozBorderBottom\",\"WebkitBorderBottom\",\"MSBorderBottom\",\"OBorderBottom\",\"borderBottomColor\",\"MozBorderBottomColor\",\"WebkitBorderBottomColor\",\"MSBorderBottomColor\",\"OBorderBottomColor\",\"borderBottomLeftRadius\",\"MozBorderBottomLeftRadius\",\"WebkitBorderBottomLeftRadius\",\"MSBorderBottomLeftRadius\",\"OBorderBottomLeftRadius\",\"borderBottomRightRadius\",\"MozBorderBottomRightRadius\",\"WebkitBorderBottomRightRadius\",\"MSBorderBottomRightRadius\",\"OBorderBottomRightRadius\",\"borderBottomStyle\",\"MozBorderBottomStyle\",\"WebkitBorderBottomStyle\",\"MSBorderBottomStyle\",\"OBorderBottomStyle\",\"borderBottomWidth\",\"MozBorderBottomWidth\",\"WebkitBorderBottomWidth\",\"MSBorderBottomWidth\",\"OBorderBottomWidth\",\"borderCollapse\",\"MozBorderCollapse\",\"WebkitBorderCollapse\",\"MSBorderCollapse\",\"OBorderCollapse\",\"borderColor\",\"MozBorderColor\",\"WebkitBorderColor\",\"MSBorderColor\",\"OBorderColor\",\"borderImage\",\"MozBorderImage\",\"WebkitBorderImage\",\"MSBorderImage\",\"OBorderImage\",\"borderImageOutset\",\"MozBorderImageOutset\",\"WebkitBorderImageOutset\",\"MSBorderImageOutset\",\"OBorderImageOutset\",\"borderImageRepeat\",\"MozBorderImageRepeat\",\"WebkitBorderImageRepeat\",\"MSBorderImageRepeat\",\"OBorderImageRepeat\",\"borderImageSlice\",\"MozBorderImageSlice\",\"WebkitBorderImageSlice\",\"MSBorderImageSlice\",\"OBorderImageSlice\",\"borderImageSource\",\"MozBorderImageSource\",\"WebkitBorderImageSource\",\"MSBorderImageSource\",\"OBorderImageSource\",\"borderImageWidth\",\"MozBorderImageWidth\",\"WebkitBorderImageWidth\",\"MSBorderImageWidth\",\"OBorderImageWidth\",\"borderInlineEnd\",\"MozBorderInlineEnd\",\"WebkitBorderInlineEnd\",\"MSBorderInlineEnd\",\"OBorderInlineEnd\",\"borderInlineEndColor\",\"MozBorderInlineEndColor\",\"WebkitBorderInlineEndColor\",\"MSBorderInlineEndColor\",\"OBorderInlineEndColor\",\"borderInlineEndStyle\",\"MozBorderInlineEndStyle\",\"WebkitBorderInlineEndStyle\",\"MSBorderInlineEndStyle\",\"OBorderInlineEndStyle\",\"borderInlineEndWidth\",\"MozBorderInlineEndWidth\",\"WebkitBorderInlineEndWidth\",\"MSBorderInlineEndWidth\",\"OBorderInlineEndWidth\",\"borderInlineStart\",\"MozBorderInlineStart\",\"WebkitBorderInlineStart\",\"MSBorderInlineStart\",\"OBorderInlineStart\",\"borderInlineStartColor\",\"MozBorderInlineStartColor\",\"WebkitBorderInlineStartColor\",\"MSBorderInlineStartColor\",\"OBorderInlineStartColor\",\"borderInlineStartStyle\",\"MozBorderInlineStartStyle\",\"WebkitBorderInlineStartStyle\",\"MSBorderInlineStartStyle\",\"OBorderInlineStartStyle\",\"borderInlineStartWidth\",\"MozBorderInlineStartWidth\",\"WebkitBorderInlineStartWidth\",\"MSBorderInlineStartWidth\",\"OBorderInlineStartWidth\",\"borderLeft\",\"MozBorderLeft\",\"WebkitBorderLeft\",\"MSBorderLeft\",\"OBorderLeft\",\"borderLeftColor\",\"MozBorderLeftColor\",\"WebkitBorderLeftColor\",\"MSBorderLeftColor\",\"OBorderLeftColor\",\"borderLeftStyle\",\"MozBorderLeftStyle\",\"WebkitBorderLeftStyle\",\"MSBorderLeftStyle\",\"OBorderLeftStyle\",\"borderLeftWidth\",\"MozBorderLeftWidth\",\"WebkitBorderLeftWidth\",\"MSBorderLeftWidth\",\"OBorderLeftWidth\",\"borderRadius\",\"MozBorderRadius\",\"WebkitBorderRadius\",\"MSBorderRadius\",\"OBorderRadius\",\"borderRight\",\"MozBorderRight\",\"WebkitBorderRight\",\"MSBorderRight\",\"OBorderRight\",\"borderRightColor\",\"MozBorderRightColor\",\"WebkitBorderRightColor\",\"MSBorderRightColor\",\"OBorderRightColor\",\"borderRightStyle\",\"MozBorderRightStyle\",\"WebkitBorderRightStyle\",\"MSBorderRightStyle\",\"OBorderRightStyle\",\"borderRightWidth\",\"MozBorderRightWidth\",\"WebkitBorderRightWidth\",\"MSBorderRightWidth\",\"OBorderRightWidth\",\"borderSpacing\",\"MozBorderSpacing\",\"WebkitBorderSpacing\",\"MSBorderSpacing\",\"OBorderSpacing\",\"borderStyle\",\"MozBorderStyle\",\"WebkitBorderStyle\",\"MSBorderStyle\",\"OBorderStyle\",\"borderTop\",\"MozBorderTop\",\"WebkitBorderTop\",\"MSBorderTop\",\"OBorderTop\",\"borderTopColor\",\"MozBorderTopColor\",\"WebkitBorderTopColor\",\"MSBorderTopColor\",\"OBorderTopColor\",\"borderTopLeftRadius\",\"MozBorderTopLeftRadius\",\"WebkitBorderTopLeftRadius\",\"MSBorderTopLeftRadius\",\"OBorderTopLeftRadius\",\"borderTopRightRadius\",\"MozBorderTopRightRadius\",\"WebkitBorderTopRightRadius\",\"MSBorderTopRightRadius\",\"OBorderTopRightRadius\",\"borderTopStyle\",\"MozBorderTopStyle\",\"WebkitBorderTopStyle\",\"MSBorderTopStyle\",\"OBorderTopStyle\",\"borderTopWidth\",\"MozBorderTopWidth\",\"WebkitBorderTopWidth\",\"MSBorderTopWidth\",\"OBorderTopWidth\",\"borderWidth\",\"MozBorderWidth\",\"WebkitBorderWidth\",\"MSBorderWidth\",\"OBorderWidth\",\"bottom\",\"MozBottom\",\"WebkitBottom\",\"MSBottom\",\"OBottom\",\"boxDecorationBreak\",\"MozBoxDecorationBreak\",\"WebkitBoxDecorationBreak\",\"MSBoxDecorationBreak\",\"OBoxDecorationBreak\",\"boxShadow\",\"MozBoxShadow\",\"WebkitBoxShadow\",\"MSBoxShadow\",\"OBoxShadow\",\"boxSizing\",\"MozBoxSizing\",\"WebkitBoxSizing\",\"MSBoxSizing\",\"OBoxSizing\",\"breakAfter\",\"MozBreakAfter\",\"WebkitBreakAfter\",\"MSBreakAfter\",\"OBreakAfter\",\"breakBefore\",\"MozBreakBefore\",\"WebkitBreakBefore\",\"MSBreakBefore\",\"OBreakBefore\",\"breakInside\",\"MozBreakInside\",\"WebkitBreakInside\",\"MSBreakInside\",\"OBreakInside\",\"captionSide\",\"MozCaptionSide\",\"WebkitCaptionSide\",\"MSCaptionSide\",\"OCaptionSide\",\"caretColor\",\"MozCaretColor\",\"WebkitCaretColor\",\"MSCaretColor\",\"OCaretColor\",\"ch\",\"MozCh\",\"WebkitCh\",\"MSCh\",\"OCh\",\"clear\",\"MozClear\",\"WebkitClear\",\"MSClear\",\"OClear\",\"clip\",\"MozClip\",\"WebkitClip\",\"MSClip\",\"OClip\",\"clipPath\",\"MozClipPath\",\"WebkitClipPath\",\"MSClipPath\",\"OClipPath\",\"cm\",\"MozCm\",\"WebkitCm\",\"MSCm\",\"OCm\",\"color\",\"MozColor\",\"WebkitColor\",\"MSColor\",\"OColor\",\"columnCount\",\"MozColumnCount\",\"WebkitColumnCount\",\"MSColumnCount\",\"OColumnCount\",\"columnFill\",\"MozColumnFill\",\"WebkitColumnFill\",\"MSColumnFill\",\"OColumnFill\",\"columnGap\",\"MozColumnGap\",\"WebkitColumnGap\",\"MSColumnGap\",\"OColumnGap\",\"columnRule\",\"MozColumnRule\",\"WebkitColumnRule\",\"MSColumnRule\",\"OColumnRule\",\"columnRuleColor\",\"MozColumnRuleColor\",\"WebkitColumnRuleColor\",\"MSColumnRuleColor\",\"OColumnRuleColor\",\"columnRuleStyle\",\"MozColumnRuleStyle\",\"WebkitColumnRuleStyle\",\"MSColumnRuleStyle\",\"OColumnRuleStyle\",\"columnRuleWidth\",\"MozColumnRuleWidth\",\"WebkitColumnRuleWidth\",\"MSColumnRuleWidth\",\"OColumnRuleWidth\",\"columnSpan\",\"MozColumnSpan\",\"WebkitColumnSpan\",\"MSColumnSpan\",\"OColumnSpan\",\"columnWidth\",\"MozColumnWidth\",\"WebkitColumnWidth\",\"MSColumnWidth\",\"OColumnWidth\",\"columns\",\"MozColumns\",\"WebkitColumns\",\"MSColumns\",\"OColumns\",\"content\",\"MozContent\",\"WebkitContent\",\"MSContent\",\"OContent\",\"counterIncrement\",\"MozCounterIncrement\",\"WebkitCounterIncrement\",\"MSCounterIncrement\",\"OCounterIncrement\",\"counterReset\",\"MozCounterReset\",\"WebkitCounterReset\",\"MSCounterReset\",\"OCounterReset\",\"cursor\",\"MozCursor\",\"WebkitCursor\",\"MSCursor\",\"OCursor\",\"deg\",\"MozDeg\",\"WebkitDeg\",\"MSDeg\",\"ODeg\",\"direction\",\"MozDirection\",\"WebkitDirection\",\"MSDirection\",\"ODirection\",\"display\",\"MozDisplay\",\"WebkitDisplay\",\"MSDisplay\",\"ODisplay\",\"dpcm\",\"MozDpcm\",\"WebkitDpcm\",\"MSDpcm\",\"ODpcm\",\"dpi\",\"MozDpi\",\"WebkitDpi\",\"MSDpi\",\"ODpi\",\"dppx\",\"MozDppx\",\"WebkitDppx\",\"MSDppx\",\"ODppx\",\"em\",\"MozEm\",\"WebkitEm\",\"MSEm\",\"OEm\",\"emptyCells\",\"MozEmptyCells\",\"WebkitEmptyCells\",\"MSEmptyCells\",\"OEmptyCells\",\"ex\",\"MozEx\",\"WebkitEx\",\"MSEx\",\"OEx\",\"filter\",\"MozFilter\",\"WebkitFilter\",\"MSFilter\",\"OFilter\",\"flexBasis\",\"MozFlexBasis\",\"WebkitFlexBasis\",\"MSFlexBasis\",\"OFlexBasis\",\"flexDirection\",\"MozFlexDirection\",\"WebkitFlexDirection\",\"MSFlexDirection\",\"OFlexDirection\",\"flexFlow\",\"MozFlexFlow\",\"WebkitFlexFlow\",\"MSFlexFlow\",\"OFlexFlow\",\"flexGrow\",\"MozFlexGrow\",\"WebkitFlexGrow\",\"MSFlexGrow\",\"OFlexGrow\",\"flexShrink\",\"MozFlexShrink\",\"WebkitFlexShrink\",\"MSFlexShrink\",\"OFlexShrink\",\"flexWrap\",\"MozFlexWrap\",\"WebkitFlexWrap\",\"MSFlexWrap\",\"OFlexWrap\",\"float\",\"MozFloat\",\"WebkitFloat\",\"MSFloat\",\"OFloat\",\"font\",\"MozFont\",\"WebkitFont\",\"MSFont\",\"OFont\",\"fontFamily\",\"MozFontFamily\",\"WebkitFontFamily\",\"MSFontFamily\",\"OFontFamily\",\"fontFeatureSettings\",\"MozFontFeatureSettings\",\"WebkitFontFeatureSettings\",\"MSFontFeatureSettings\",\"OFontFeatureSettings\",\"fontKerning\",\"MozFontKerning\",\"WebkitFontKerning\",\"MSFontKerning\",\"OFontKerning\",\"fontLanguageOverride\",\"MozFontLanguageOverride\",\"WebkitFontLanguageOverride\",\"MSFontLanguageOverride\",\"OFontLanguageOverride\",\"fontSize\",\"MozFontSize\",\"WebkitFontSize\",\"MSFontSize\",\"OFontSize\",\"fontSizeAdjust\",\"MozFontSizeAdjust\",\"WebkitFontSizeAdjust\",\"MSFontSizeAdjust\",\"OFontSizeAdjust\",\"fontStretch\",\"MozFontStretch\",\"WebkitFontStretch\",\"MSFontStretch\",\"OFontStretch\",\"fontStyle\",\"MozFontStyle\",\"WebkitFontStyle\",\"MSFontStyle\",\"OFontStyle\",\"fontSynthesis\",\"MozFontSynthesis\",\"WebkitFontSynthesis\",\"MSFontSynthesis\",\"OFontSynthesis\",\"fontVariant\",\"MozFontVariant\",\"WebkitFontVariant\",\"MSFontVariant\",\"OFontVariant\",\"fontVariantAlternates\",\"MozFontVariantAlternates\",\"WebkitFontVariantAlternates\",\"MSFontVariantAlternates\",\"OFontVariantAlternates\",\"fontVariantCaps\",\"MozFontVariantCaps\",\"WebkitFontVariantCaps\",\"MSFontVariantCaps\",\"OFontVariantCaps\",\"fontVariantEastAsian\",\"MozFontVariantEastAsian\",\"WebkitFontVariantEastAsian\",\"MSFontVariantEastAsian\",\"OFontVariantEastAsian\",\"fontVariantLigatures\",\"MozFontVariantLigatures\",\"WebkitFontVariantLigatures\",\"MSFontVariantLigatures\",\"OFontVariantLigatures\",\"fontVariantNumeric\",\"MozFontVariantNumeric\",\"WebkitFontVariantNumeric\",\"MSFontVariantNumeric\",\"OFontVariantNumeric\",\"fontVariantPosition\",\"MozFontVariantPosition\",\"WebkitFontVariantPosition\",\"MSFontVariantPosition\",\"OFontVariantPosition\",\"fontWeight\",\"MozFontWeight\",\"WebkitFontWeight\",\"MSFontWeight\",\"OFontWeight\",\"fr\",\"MozFr\",\"WebkitFr\",\"MSFr\",\"OFr\",\"grad\",\"MozGrad\",\"WebkitGrad\",\"MSGrad\",\"OGrad\",\"grid\",\"MozGrid\",\"WebkitGrid\",\"MSGrid\",\"OGrid\",\"gridArea\",\"MozGridArea\",\"WebkitGridArea\",\"MSGridArea\",\"OGridArea\",\"gridAutoColumns\",\"MozGridAutoColumns\",\"WebkitGridAutoColumns\",\"MSGridAutoColumns\",\"OGridAutoColumns\",\"gridAutoFlow\",\"MozGridAutoFlow\",\"WebkitGridAutoFlow\",\"MSGridAutoFlow\",\"OGridAutoFlow\",\"gridAutoRows\",\"MozGridAutoRows\",\"WebkitGridAutoRows\",\"MSGridAutoRows\",\"OGridAutoRows\",\"gridColumn\",\"MozGridColumn\",\"WebkitGridColumn\",\"MSGridColumn\",\"OGridColumn\",\"gridColumnEnd\",\"MozGridColumnEnd\",\"WebkitGridColumnEnd\",\"MSGridColumnEnd\",\"OGridColumnEnd\",\"gridColumnGap\",\"MozGridColumnGap\",\"WebkitGridColumnGap\",\"MSGridColumnGap\",\"OGridColumnGap\",\"gridColumnStart\",\"MozGridColumnStart\",\"WebkitGridColumnStart\",\"MSGridColumnStart\",\"OGridColumnStart\",\"gridGap\",\"MozGridGap\",\"WebkitGridGap\",\"MSGridGap\",\"OGridGap\",\"gridRow\",\"MozGridRow\",\"WebkitGridRow\",\"MSGridRow\",\"OGridRow\",\"gridRowEnd\",\"MozGridRowEnd\",\"WebkitGridRowEnd\",\"MSGridRowEnd\",\"OGridRowEnd\",\"gridRowGap\",\"MozGridRowGap\",\"WebkitGridRowGap\",\"MSGridRowGap\",\"OGridRowGap\",\"gridRowStart\",\"MozGridRowStart\",\"WebkitGridRowStart\",\"MSGridRowStart\",\"OGridRowStart\",\"gridTemplate\",\"MozGridTemplate\",\"WebkitGridTemplate\",\"MSGridTemplate\",\"OGridTemplate\",\"gridTemplateAreas\",\"MozGridTemplateAreas\",\"WebkitGridTemplateAreas\",\"MSGridTemplateAreas\",\"OGridTemplateAreas\",\"gridTemplateColumns\",\"MozGridTemplateColumns\",\"WebkitGridTemplateColumns\",\"MSGridTemplateColumns\",\"OGridTemplateColumns\",\"gridTemplateRows\",\"MozGridTemplateRows\",\"WebkitGridTemplateRows\",\"MSGridTemplateRows\",\"OGridTemplateRows\",\"height\",\"MozHeight\",\"WebkitHeight\",\"MSHeight\",\"OHeight\",\"hyphens\",\"MozHyphens\",\"WebkitHyphens\",\"MSHyphens\",\"OHyphens\",\"hz\",\"MozHz\",\"WebkitHz\",\"MSHz\",\"OHz\",\"imageOrientation\",\"MozImageOrientation\",\"WebkitImageOrientation\",\"MSImageOrientation\",\"OImageOrientation\",\"imageRendering\",\"MozImageRendering\",\"WebkitImageRendering\",\"MSImageRendering\",\"OImageRendering\",\"imageResolution\",\"MozImageResolution\",\"WebkitImageResolution\",\"MSImageResolution\",\"OImageResolution\",\"imeMode\",\"MozImeMode\",\"WebkitImeMode\",\"MSImeMode\",\"OImeMode\",\"in\",\"MozIn\",\"WebkitIn\",\"MSIn\",\"OIn\",\"inherit\",\"MozInherit\",\"WebkitInherit\",\"MSInherit\",\"OInherit\",\"initial\",\"MozInitial\",\"WebkitInitial\",\"MSInitial\",\"OInitial\",\"inlineSize\",\"MozInlineSize\",\"WebkitInlineSize\",\"MSInlineSize\",\"OInlineSize\",\"isolation\",\"MozIsolation\",\"WebkitIsolation\",\"MSIsolation\",\"OIsolation\",\"justifyContent\",\"MozJustifyContent\",\"WebkitJustifyContent\",\"MSJustifyContent\",\"OJustifyContent\",\"khz\",\"MozKhz\",\"WebkitKhz\",\"MSKhz\",\"OKhz\",\"left\",\"MozLeft\",\"WebkitLeft\",\"MSLeft\",\"OLeft\",\"letterSpacing\",\"MozLetterSpacing\",\"WebkitLetterSpacing\",\"MSLetterSpacing\",\"OLetterSpacing\",\"lineBreak\",\"MozLineBreak\",\"WebkitLineBreak\",\"MSLineBreak\",\"OLineBreak\",\"lineHeight\",\"MozLineHeight\",\"WebkitLineHeight\",\"MSLineHeight\",\"OLineHeight\",\"listStyle\",\"MozListStyle\",\"WebkitListStyle\",\"MSListStyle\",\"OListStyle\",\"listStyleImage\",\"MozListStyleImage\",\"WebkitListStyleImage\",\"MSListStyleImage\",\"OListStyleImage\",\"listStylePosition\",\"MozListStylePosition\",\"WebkitListStylePosition\",\"MSListStylePosition\",\"OListStylePosition\",\"listStyleType\",\"MozListStyleType\",\"WebkitListStyleType\",\"MSListStyleType\",\"OListStyleType\",\"margin\",\"MozMargin\",\"WebkitMargin\",\"MSMargin\",\"OMargin\",\"marginBlockEnd\",\"MozMarginBlockEnd\",\"WebkitMarginBlockEnd\",\"MSMarginBlockEnd\",\"OMarginBlockEnd\",\"marginBlockStart\",\"MozMarginBlockStart\",\"WebkitMarginBlockStart\",\"MSMarginBlockStart\",\"OMarginBlockStart\",\"marginBottom\",\"MozMarginBottom\",\"WebkitMarginBottom\",\"MSMarginBottom\",\"OMarginBottom\",\"marginInlineEnd\",\"MozMarginInlineEnd\",\"WebkitMarginInlineEnd\",\"MSMarginInlineEnd\",\"OMarginInlineEnd\",\"marginInlineStart\",\"MozMarginInlineStart\",\"WebkitMarginInlineStart\",\"MSMarginInlineStart\",\"OMarginInlineStart\",\"marginLeft\",\"MozMarginLeft\",\"WebkitMarginLeft\",\"MSMarginLeft\",\"OMarginLeft\",\"marginRight\",\"MozMarginRight\",\"WebkitMarginRight\",\"MSMarginRight\",\"OMarginRight\",\"marginTop\",\"MozMarginTop\",\"WebkitMarginTop\",\"MSMarginTop\",\"OMarginTop\",\"mask\",\"MozMask\",\"WebkitMask\",\"MSMask\",\"OMask\",\"maskClip\",\"MozMaskClip\",\"WebkitMaskClip\",\"MSMaskClip\",\"OMaskClip\",\"maskComposite\",\"MozMaskComposite\",\"WebkitMaskComposite\",\"MSMaskComposite\",\"OMaskComposite\",\"maskImage\",\"MozMaskImage\",\"WebkitMaskImage\",\"MSMaskImage\",\"OMaskImage\",\"maskMode\",\"MozMaskMode\",\"WebkitMaskMode\",\"MSMaskMode\",\"OMaskMode\",\"maskOrigin\",\"MozMaskOrigin\",\"WebkitMaskOrigin\",\"MSMaskOrigin\",\"OMaskOrigin\",\"maskPosition\",\"MozMaskPosition\",\"WebkitMaskPosition\",\"MSMaskPosition\",\"OMaskPosition\",\"maskRepeat\",\"MozMaskRepeat\",\"WebkitMaskRepeat\",\"MSMaskRepeat\",\"OMaskRepeat\",\"maskSize\",\"MozMaskSize\",\"WebkitMaskSize\",\"MSMaskSize\",\"OMaskSize\",\"maskType\",\"MozMaskType\",\"WebkitMaskType\",\"MSMaskType\",\"OMaskType\",\"maxHeight\",\"MozMaxHeight\",\"WebkitMaxHeight\",\"MSMaxHeight\",\"OMaxHeight\",\"maxWidth\",\"MozMaxWidth\",\"WebkitMaxWidth\",\"MSMaxWidth\",\"OMaxWidth\",\"minBlockSize\",\"MozMinBlockSize\",\"WebkitMinBlockSize\",\"MSMinBlockSize\",\"OMinBlockSize\",\"minHeight\",\"MozMinHeight\",\"WebkitMinHeight\",\"MSMinHeight\",\"OMinHeight\",\"minInlineSize\",\"MozMinInlineSize\",\"WebkitMinInlineSize\",\"MSMinInlineSize\",\"OMinInlineSize\",\"minWidth\",\"MozMinWidth\",\"WebkitMinWidth\",\"MSMinWidth\",\"OMinWidth\",\"mixBlendMode\",\"MozMixBlendMode\",\"WebkitMixBlendMode\",\"MSMixBlendMode\",\"OMixBlendMode\",\"mm\",\"MozMm\",\"WebkitMm\",\"MSMm\",\"OMm\",\"ms\",\"MozMs\",\"WebkitMs\",\"MSMs\",\"OMs\",\"objectFit\",\"MozObjectFit\",\"WebkitObjectFit\",\"MSObjectFit\",\"OObjectFit\",\"objectPosition\",\"MozObjectPosition\",\"WebkitObjectPosition\",\"MSObjectPosition\",\"OObjectPosition\",\"offsetBlockEnd\",\"MozOffsetBlockEnd\",\"WebkitOffsetBlockEnd\",\"MSOffsetBlockEnd\",\"OOffsetBlockEnd\",\"offsetBlockStart\",\"MozOffsetBlockStart\",\"WebkitOffsetBlockStart\",\"MSOffsetBlockStart\",\"OOffsetBlockStart\",\"offsetInlineEnd\",\"MozOffsetInlineEnd\",\"WebkitOffsetInlineEnd\",\"MSOffsetInlineEnd\",\"OOffsetInlineEnd\",\"offsetInlineStart\",\"MozOffsetInlineStart\",\"WebkitOffsetInlineStart\",\"MSOffsetInlineStart\",\"OOffsetInlineStart\",\"opacity\",\"MozOpacity\",\"WebkitOpacity\",\"MSOpacity\",\"OOpacity\",\"order\",\"MozOrder\",\"WebkitOrder\",\"MSOrder\",\"OOrder\",\"orphans\",\"MozOrphans\",\"WebkitOrphans\",\"MSOrphans\",\"OOrphans\",\"outline\",\"MozOutline\",\"WebkitOutline\",\"MSOutline\",\"OOutline\",\"outlineColor\",\"MozOutlineColor\",\"WebkitOutlineColor\",\"MSOutlineColor\",\"OOutlineColor\",\"outlineOffset\",\"MozOutlineOffset\",\"WebkitOutlineOffset\",\"MSOutlineOffset\",\"OOutlineOffset\",\"outlineStyle\",\"MozOutlineStyle\",\"WebkitOutlineStyle\",\"MSOutlineStyle\",\"OOutlineStyle\",\"outlineWidth\",\"MozOutlineWidth\",\"WebkitOutlineWidth\",\"MSOutlineWidth\",\"OOutlineWidth\",\"overflow\",\"MozOverflow\",\"WebkitOverflow\",\"MSOverflow\",\"OOverflow\",\"overflowWrap\",\"MozOverflowWrap\",\"WebkitOverflowWrap\",\"MSOverflowWrap\",\"OOverflowWrap\",\"overflowX\",\"MozOverflowX\",\"WebkitOverflowX\",\"MSOverflowX\",\"OOverflowX\",\"overflowY\",\"MozOverflowY\",\"WebkitOverflowY\",\"MSOverflowY\",\"OOverflowY\",\"padding\",\"MozPadding\",\"WebkitPadding\",\"MSPadding\",\"OPadding\",\"paddingBlockEnd\",\"MozPaddingBlockEnd\",\"WebkitPaddingBlockEnd\",\"MSPaddingBlockEnd\",\"OPaddingBlockEnd\",\"paddingBlockStart\",\"MozPaddingBlockStart\",\"WebkitPaddingBlockStart\",\"MSPaddingBlockStart\",\"OPaddingBlockStart\",\"paddingBottom\",\"MozPaddingBottom\",\"WebkitPaddingBottom\",\"MSPaddingBottom\",\"OPaddingBottom\",\"paddingInlineEnd\",\"MozPaddingInlineEnd\",\"WebkitPaddingInlineEnd\",\"MSPaddingInlineEnd\",\"OPaddingInlineEnd\",\"paddingInlineStart\",\"MozPaddingInlineStart\",\"WebkitPaddingInlineStart\",\"MSPaddingInlineStart\",\"OPaddingInlineStart\",\"paddingLeft\",\"MozPaddingLeft\",\"WebkitPaddingLeft\",\"MSPaddingLeft\",\"OPaddingLeft\",\"paddingRight\",\"MozPaddingRight\",\"WebkitPaddingRight\",\"MSPaddingRight\",\"OPaddingRight\",\"paddingTop\",\"MozPaddingTop\",\"WebkitPaddingTop\",\"MSPaddingTop\",\"OPaddingTop\",\"pageBreakAfter\",\"MozPageBreakAfter\",\"WebkitPageBreakAfter\",\"MSPageBreakAfter\",\"OPageBreakAfter\",\"pageBreakBefore\",\"MozPageBreakBefore\",\"WebkitPageBreakBefore\",\"MSPageBreakBefore\",\"OPageBreakBefore\",\"pageBreakInside\",\"MozPageBreakInside\",\"WebkitPageBreakInside\",\"MSPageBreakInside\",\"OPageBreakInside\",\"pc\",\"MozPc\",\"WebkitPc\",\"MSPc\",\"OPc\",\"perspective\",\"MozPerspective\",\"WebkitPerspective\",\"MSPerspective\",\"OPerspective\",\"perspectiveOrigin\",\"MozPerspectiveOrigin\",\"WebkitPerspectiveOrigin\",\"MSPerspectiveOrigin\",\"OPerspectiveOrigin\",\"pointerEvents\",\"MozPointerEvents\",\"WebkitPointerEvents\",\"MSPointerEvents\",\"OPointerEvents\",\"position\",\"MozPosition\",\"WebkitPosition\",\"MSPosition\",\"OPosition\",\"pt\",\"MozPt\",\"WebkitPt\",\"MSPt\",\"OPt\",\"px\",\"MozPx\",\"WebkitPx\",\"MSPx\",\"OPx\",\"q\",\"MozQ\",\"WebkitQ\",\"MSQ\",\"OQ\",\"quotes\",\"MozQuotes\",\"WebkitQuotes\",\"MSQuotes\",\"OQuotes\",\"rad\",\"MozRad\",\"WebkitRad\",\"MSRad\",\"ORad\",\"rem\",\"MozRem\",\"WebkitRem\",\"MSRem\",\"ORem\",\"resize\",\"MozResize\",\"WebkitResize\",\"MSResize\",\"OResize\",\"revert\",\"MozRevert\",\"WebkitRevert\",\"MSRevert\",\"ORevert\",\"right\",\"MozRight\",\"WebkitRight\",\"MSRight\",\"ORight\",\"rubyAlign\",\"MozRubyAlign\",\"WebkitRubyAlign\",\"MSRubyAlign\",\"ORubyAlign\",\"rubyMerge\",\"MozRubyMerge\",\"WebkitRubyMerge\",\"MSRubyMerge\",\"ORubyMerge\",\"rubyPosition\",\"MozRubyPosition\",\"WebkitRubyPosition\",\"MSRubyPosition\",\"ORubyPosition\",\"s\",\"MozS\",\"WebkitS\",\"MSS\",\"OS\",\"scrollBehavior\",\"MozScrollBehavior\",\"WebkitScrollBehavior\",\"MSScrollBehavior\",\"OScrollBehavior\",\"scrollSnapCoordinate\",\"MozScrollSnapCoordinate\",\"WebkitScrollSnapCoordinate\",\"MSScrollSnapCoordinate\",\"OScrollSnapCoordinate\",\"scrollSnapDestination\",\"MozScrollSnapDestination\",\"WebkitScrollSnapDestination\",\"MSScrollSnapDestination\",\"OScrollSnapDestination\",\"scrollSnapType\",\"MozScrollSnapType\",\"WebkitScrollSnapType\",\"MSScrollSnapType\",\"OScrollSnapType\",\"shapeImageThreshold\",\"MozShapeImageThreshold\",\"WebkitShapeImageThreshold\",\"MSShapeImageThreshold\",\"OShapeImageThreshold\",\"shapeMargin\",\"MozShapeMargin\",\"WebkitShapeMargin\",\"MSShapeMargin\",\"OShapeMargin\",\"shapeOutside\",\"MozShapeOutside\",\"WebkitShapeOutside\",\"MSShapeOutside\",\"OShapeOutside\",\"tabSize\",\"MozTabSize\",\"WebkitTabSize\",\"MSTabSize\",\"OTabSize\",\"tableLayout\",\"MozTableLayout\",\"WebkitTableLayout\",\"MSTableLayout\",\"OTableLayout\",\"textAlign\",\"MozTextAlign\",\"WebkitTextAlign\",\"MSTextAlign\",\"OTextAlign\",\"textAlignLast\",\"MozTextAlignLast\",\"WebkitTextAlignLast\",\"MSTextAlignLast\",\"OTextAlignLast\",\"textCombineUpright\",\"MozTextCombineUpright\",\"WebkitTextCombineUpright\",\"MSTextCombineUpright\",\"OTextCombineUpright\",\"textDecoration\",\"MozTextDecoration\",\"WebkitTextDecoration\",\"MSTextDecoration\",\"OTextDecoration\",\"textDecorationColor\",\"MozTextDecorationColor\",\"WebkitTextDecorationColor\",\"MSTextDecorationColor\",\"OTextDecorationColor\",\"textDecorationLine\",\"MozTextDecorationLine\",\"WebkitTextDecorationLine\",\"MSTextDecorationLine\",\"OTextDecorationLine\",\"textDecorationStyle\",\"MozTextDecorationStyle\",\"WebkitTextDecorationStyle\",\"MSTextDecorationStyle\",\"OTextDecorationStyle\",\"textEmphasis\",\"MozTextEmphasis\",\"WebkitTextEmphasis\",\"MSTextEmphasis\",\"OTextEmphasis\",\"textEmphasisColor\",\"MozTextEmphasisColor\",\"WebkitTextEmphasisColor\",\"MSTextEmphasisColor\",\"OTextEmphasisColor\",\"textEmphasisPosition\",\"MozTextEmphasisPosition\",\"WebkitTextEmphasisPosition\",\"MSTextEmphasisPosition\",\"OTextEmphasisPosition\",\"textEmphasisStyle\",\"MozTextEmphasisStyle\",\"WebkitTextEmphasisStyle\",\"MSTextEmphasisStyle\",\"OTextEmphasisStyle\",\"textIndent\",\"MozTextIndent\",\"WebkitTextIndent\",\"MSTextIndent\",\"OTextIndent\",\"textOrientation\",\"MozTextOrientation\",\"WebkitTextOrientation\",\"MSTextOrientation\",\"OTextOrientation\",\"textOverflow\",\"MozTextOverflow\",\"WebkitTextOverflow\",\"MSTextOverflow\",\"OTextOverflow\",\"textRendering\",\"MozTextRendering\",\"WebkitTextRendering\",\"MSTextRendering\",\"OTextRendering\",\"textShadow\",\"MozTextShadow\",\"WebkitTextShadow\",\"MSTextShadow\",\"OTextShadow\",\"textTransform\",\"MozTextTransform\",\"WebkitTextTransform\",\"MSTextTransform\",\"OTextTransform\",\"textUnderlinePosition\",\"MozTextUnderlinePosition\",\"WebkitTextUnderlinePosition\",\"MSTextUnderlinePosition\",\"OTextUnderlinePosition\",\"top\",\"MozTop\",\"WebkitTop\",\"MSTop\",\"OTop\",\"touchAction\",\"MozTouchAction\",\"WebkitTouchAction\",\"MSTouchAction\",\"OTouchAction\",\"transform\",\"MozTransform\",\"WebkitTransform\",\"msTransform\",\"OTransform\",\"transformBox\",\"MozTransformBox\",\"WebkitTransformBox\",\"MSTransformBox\",\"OTransformBox\",\"transformOrigin\",\"MozTransformOrigin\",\"WebkitTransformOrigin\",\"MSTransformOrigin\",\"OTransformOrigin\",\"transformStyle\",\"MozTransformStyle\",\"WebkitTransformStyle\",\"MSTransformStyle\",\"OTransformStyle\",\"transition\",\"MozTransition\",\"WebkitTransition\",\"MSTransition\",\"OTransition\",\"transitionDelay\",\"MozTransitionDelay\",\"WebkitTransitionDelay\",\"MSTransitionDelay\",\"OTransitionDelay\",\"transitionDuration\",\"MozTransitionDuration\",\"WebkitTransitionDuration\",\"MSTransitionDuration\",\"OTransitionDuration\",\"transitionProperty\",\"MozTransitionProperty\",\"WebkitTransitionProperty\",\"MSTransitionProperty\",\"OTransitionProperty\",\"transitionTimingFunction\",\"MozTransitionTimingFunction\",\"WebkitTransitionTimingFunction\",\"MSTransitionTimingFunction\",\"OTransitionTimingFunction\",\"turn\",\"MozTurn\",\"WebkitTurn\",\"MSTurn\",\"OTurn\",\"unicodeBidi\",\"MozUnicodeBidi\",\"WebkitUnicodeBidi\",\"MSUnicodeBidi\",\"OUnicodeBidi\",\"unset\",\"MozUnset\",\"WebkitUnset\",\"MSUnset\",\"OUnset\",\"verticalAlign\",\"MozVerticalAlign\",\"WebkitVerticalAlign\",\"MSVerticalAlign\",\"OVerticalAlign\",\"vh\",\"MozVh\",\"WebkitVh\",\"MSVh\",\"OVh\",\"visibility\",\"MozVisibility\",\"WebkitVisibility\",\"MSVisibility\",\"OVisibility\",\"vmax\",\"MozVmax\",\"WebkitVmax\",\"MSVmax\",\"OVmax\",\"vmin\",\"MozVmin\",\"WebkitVmin\",\"MSVmin\",\"OVmin\",\"vw\",\"MozVw\",\"WebkitVw\",\"MSVw\",\"OVw\",\"whiteSpace\",\"MozWhiteSpace\",\"WebkitWhiteSpace\",\"MSWhiteSpace\",\"OWhiteSpace\",\"widows\",\"MozWidows\",\"WebkitWidows\",\"MSWidows\",\"OWidows\",\"width\",\"MozWidth\",\"WebkitWidth\",\"MSWidth\",\"OWidth\",\"willChange\",\"MozWillChange\",\"WebkitWillChange\",\"MSWillChange\",\"OWillChange\",\"wordBreak\",\"MozWordBreak\",\"WebkitWordBreak\",\"MSWordBreak\",\"OWordBreak\",\"wordSpacing\",\"MozWordSpacing\",\"WebkitWordSpacing\",\"MSWordSpacing\",\"OWordSpacing\",\"wordWrap\",\"MozWordWrap\",\"WebkitWordWrap\",\"MSWordWrap\",\"OWordWrap\",\"writingMode\",\"MozWritingMode\",\"WebkitWritingMode\",\"MSWritingMode\",\"OWritingMode\",\"zIndex\",\"MozZIndex\",\"WebkitZIndex\",\"MSZIndex\",\"OZIndex\",\"fontSize\",\"MozFontSize\",\"WebkitFontSize\",\"MSFontSize\",\"OFontSize\",\"flex\",\"MozFlex\",\"WebkitFlex\",\"MSFlex\",\"OFlex\",\"fr\",\"MozFr\",\"WebkitFr\",\"MSFr\",\"OFr\",\"overflowScrolling\",\"MozOverflowScrolling\",\"WebkitOverflowScrolling\",\"MSOverflowScrolling\",\"OOverflowScrolling\",\"userSelect\",\"MozUserSelect\",\"WebkitUserSelect\",\"MSUserSelect\",\"OUserSelect\"]},function(t,e,n){\"use strict\";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,\"a\",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var n=e.prototype;return n.componentDidMount=function(){this.checkFocus()},n.componentDidUpdate=function(){this.checkFocus()},n.checkFocus=function(){this.props.selected&&this.props.focus&&this.node.focus()},n.render=function(){var t,e=this,n=this.props,a=n.children,o=n.className,s=n.disabled,u=n.disabledClassName,h=(n.focus,n.id),d=n.panelId,f=n.selected,p=n.selectedClassName,m=n.tabIndex,g=n.tabRef,v=r(n,[\"children\",\"className\",\"disabled\",\"disabledClassName\",\"focus\",\"id\",\"panelId\",\"selected\",\"selectedClassName\",\"tabIndex\",\"tabRef\"]);return l.a.createElement(\"li\",i({},v,{className:c()(o,(t={},t[p]=f,t[u]=s,t)),ref:function(t){e.node=t,g&&g(t)},role:\"tab\",id:h,\"aria-selected\":f?\"true\":\"false\",\"aria-disabled\":s?\"true\":\"false\",\"aria-controls\":d,tabIndex:m||(f?\"0\":null)}),a)},e}(s.Component);h.defaultProps={className:\"react-tabs__tab\",disabledClassName:\"react-tabs__tab--disabled\",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:\"react-tabs__tab--selected\"},h.propTypes={},h.tabsRole=\"Tab\"},function(t,e,n){\"use strict\";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,\"a\",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.className,a=r(t,[\"children\",\"className\"]);return l.a.createElement(\"ul\",i({},a,{className:c()(n),role:\"tablist\"}),e)},e}(s.Component);h.defaultProps={className:\"react-tabs__tab-list\"},h.propTypes={},h.tabsRole=\"TabList\"},function(t,e,n){\"use strict\";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,\"a\",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t,e=this.props,n=e.children,a=e.className,o=e.forceRender,s=e.id,u=e.selected,h=e.selectedClassName,d=e.tabId,f=r(e,[\"children\",\"className\",\"forceRender\",\"id\",\"selected\",\"selectedClassName\",\"tabId\"]);return l.a.createElement(\"div\",i({},f,{className:c()(a,(t={},t[h]=u,t)),role:\"tabpanel\",id:s,\"aria-labelledby\":d}),o||u?n:null)},e}(s.Component);h.defaultProps={className:\"react-tabs__tab-panel\",forceRender:!1,selectedClassName:\"react-tabs__tab-panel--selected\"},h.propTypes={},h.tabsRole=\"TabPanel\"},function(t,e,n){\"use strict\";function i(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,\"a\",function(){return c});var a=n(24),o=(n.n(a),n(2)),s=n.n(o),l=(n(156),n(474)),u=n(155),c=function(t){function e(n){var i;return i=t.call(this,n)||this,i.handleSelected=function(t,n,r){if(\"function\"!=typeof i.props.onSelect||!1!==i.props.onSelect(t,n,r)){var a={focus:\"keydown\"===r.type};e.inUncontrolledMode(i.props)&&(a.selectedIndex=t),i.setState(a)}},i.state=e.copyPropsToState(i.props,{},i.props.defaultFocus),i}r(e,t);var a=e.prototype;return a.componentWillReceiveProps=function(t){this.setState(function(n){return e.copyPropsToState(t,n)})},e.inUncontrolledMode=function(t){return null===t.selectedIndex},e.copyPropsToState=function(t,i,r){void 0===r&&(r=!1);var a={focus:r};if(e.inUncontrolledMode(t)){var o=n.i(u.a)(t.children)-1,s=null;s=null!=i.selectedIndex?Math.min(i.selectedIndex,o):t.defaultIndex||0,a.selectedIndex=s}return a},a.render=function(){var t=this.props,e=t.children,n=(t.defaultIndex,t.defaultFocus,i(t,[\"children\",\"defaultIndex\",\"defaultFocus\"]));return n.focus=this.state.focus,n.onSelect=this.handleSelected,null!=this.state.selectedIndex&&(n.selectedIndex=this.state.selectedIndex),s.a.createElement(l.a,n,e)},e}(o.Component);c.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},c.propTypes={},c.tabsRole=\"Tabs\"},function(t,e,n){\"use strict\";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(t){return\"getAttribute\"in t&&\"tab\"===t.getAttribute(\"role\")}function s(t){return\"true\"===t.getAttribute(\"aria-disabled\")}n.d(e,\"a\",function(){return y});var l,u=n(24),c=(n.n(u),n(2)),h=n.n(c),d=n(13),f=n.n(d),p=n(157),m=(n(156),n(155)),g=n(109),v=n(76);try{l=!(\"undefined\"==typeof window||!window.document||!window.document.activeElement)}catch(t){l=!1}var y=function(t){function e(){for(var e,n,i=arguments.length,r=new Array(i),a=0;a=this.getTabsCount()||this.props.onSelect(t,this.props.selectedIndex,e)},u.getNextTab=function(t){for(var e=this.getTabsCount(),n=t+1;nt;)if(!s(this.getTab(e)))return e;return t},u.getTabsCount=function(){return n.i(m.a)(this.props.children)},u.getPanelsCount=function(){return n.i(m.b)(this.props.children)},u.getTab=function(t){return this.tabNodes[\"tabs-\"+t]},u.getChildren=function(){var t=this,e=0,i=this.props,r=i.children,a=i.disabledTabClassName,o=i.focus,s=i.forceRenderTabPanel,u=i.selectedIndex,d=i.selectedTabClassName,f=i.selectedTabPanelClassName;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var m=this.tabIds.length-this.getTabsCount();m++<0;)this.tabIds.push(n.i(p.b)()),this.panelIds.push(n.i(p.b)());return n.i(g.a)(r,function(i){var r=i;if(n.i(v.a)(i)){var p=0,m=!1;l&&(m=h.a.Children.toArray(i.props.children).filter(v.b).some(function(e,n){return document.activeElement===t.getTab(n)})),r=n.i(c.cloneElement)(i,{children:n.i(g.a)(i.props.children,function(e){var i=\"tabs-\"+p,r=u===p,s={tabRef:function(e){t.tabNodes[i]=e},id:t.tabIds[p],panelId:t.panelIds[p],selected:r,focus:r&&(o||m)};return d&&(s.selectedClassName=d),a&&(s.disabledClassName=a),p++,n.i(c.cloneElement)(e,s)})})}else if(n.i(v.c)(i)){var y={id:t.panelIds[e],tabId:t.tabIds[e],selected:u===e};s&&(y.forceRender=s),f&&(y.selectedClassName=f),e++,r=n.i(c.cloneElement)(i,y)}return r})},u.isTabFromContainer=function(t){if(!o(t))return!1;var e=t.parentElement;do{if(e===this.node)return!0;if(e.getAttribute(\"data-tabs\"))break;e=e.parentElement}while(e);return!1},u.render=function(){var t=this,e=this.props,n=(e.children,e.className),a=(e.disabledTabClassName,e.domRef),o=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,r(e,[\"children\",\"className\",\"disabledTabClassName\",\"domRef\",\"focus\",\"forceRenderTabPanel\",\"onSelect\",\"selectedIndex\",\"selectedTabClassName\",\"selectedTabPanelClassName\"]));return h.a.createElement(\"div\",i({},o,{className:f()(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(e){t.node=e,a&&a(e)},\"data-tabs\":!0}),this.getChildren())},e}(c.Component);y.defaultProps={className:\"react-tabs\",focus:!1},y.propTypes={}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var i=n(473),r=n(471),a=n(470),o=n(472),s=n(157);n.d(e,\"Tab\",function(){return a.a}),n.d(e,\"TabList\",function(){return r.a}),n.d(e,\"TabPanel\",function(){return o.a}),n.d(e,\"Tabs\",function(){return i.a}),n.d(e,\"resetIdCounter\",function(){return s.a})},function(t,e,n){\"use strict\";function i(t){for(var e=arguments.length-1,n=\"Minified React error #\"+t+\"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=\"+t,i=0;iD.length&&D.push(t)}function f(t,e,n,r){var a=typeof t;\"undefined\"!==a&&\"boolean\"!==a||(t=null);var o=!1;if(null===t)o=!0;else switch(a){case\"string\":case\"number\":o=!0;break;case\"object\":switch(t.$$typeof){case w:case M:case S:case E:o=!0}}if(o)return n(r,t,\"\"===e?\".\"+p(t,0):e),1;if(o=0,e=\"\"===e?\".\":e+\":\",Array.isArray(t))for(var s=0;s0;)e[i]=arguments[i+1];return e.reduce(function(e,i){return e+n(t[\"border-\"+i+\"-width\"])},0)}function r(t){for(var e=[\"top\",\"right\",\"bottom\",\"left\"],i={},r=0,a=e;r0},b.prototype.connect_=function(){d&&!this.connected_&&(document.addEventListener(\"transitionend\",this.onTransitionEnd_),window.addEventListener(\"resize\",this.refresh),y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},b.prototype.disconnect_=function(){d&&this.connected_&&(document.removeEventListener(\"transitionend\",this.onTransitionEnd_),window.removeEventListener(\"resize\",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},b.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=\"\"),v.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},b.getInstance=function(){return this.instance_||(this.instance_=new b),this.instance_},b.instance_=null;var x=function(t,e){for(var n=0,i=Object.keys(e);n0};var T=\"undefined\"!=typeof WeakMap?new WeakMap:new h,C=function(t){if(!(this instanceof C))throw new TypeError(\"Cannot call a class as a function.\");if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");var e=b.getInstance(),n=new k(t,e,this);T.set(this,n)};[\"observe\",\"unobserve\",\"disconnect\"].forEach(function(t){C.prototype[t]=function(){return(e=T.get(this))[t].apply(e,arguments);var e}});var P=function(){return void 0!==f.ResizeObserver?f.ResizeObserver:C}();e.default=P}.call(e,n(111))},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){var t=function(){function e(t){return r.appendChild(t.dom),t}function n(t){for(var e=0;eo+1e3&&(l.update(1e3*s/(t-o),100),o=t,s=0,c)){var e=performance.memory;c.update(e.usedJSHeapSize/1048576,e.jsHeapSizeLimit/1048576)}return t},update:function(){a=this.end()},domElement:r,setMode:n}};return t.Panel=function(t,e,n){var i=1/0,r=0,a=Math.round,o=a(window.devicePixelRatio||1),s=80*o,l=48*o,u=3*o,c=2*o,h=3*o,d=15*o,f=74*o,p=30*o,m=document.createElement(\"canvas\");m.width=s,m.height=l,m.style.cssText=\"width:80px;height:48px\";var g=m.getContext(\"2d\");return g.font=\"bold \"+9*o+\"px Helvetica,Arial,sans-serif\",g.textBaseline=\"top\",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=e,g.fillText(t,u,c),g.fillRect(h,d,f,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h,d,f,p),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,d),g.fillStyle=e,g.fillText(a(l)+\" \"+t+\" (\"+a(i)+\"-\"+a(r)+\")\",u,c),g.drawImage(m,h+o,d,f-o,p,h,d,f-o,p),g.fillRect(h+f-o,d,o,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h+f-o,d,o,a((1-l/v)*p))}}},t})},function(t,e){t.exports=function(t){var e=\"undefined\"!=typeof window&&window.location;if(!e)throw new Error(\"fixUrls requires window.location\");if(!t||\"string\"!=typeof t)return t;var n=e.protocol+\"//\"+e.host,i=n+e.pathname.replace(/\\/[^\\/]*$/,\"/\");return t.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi,function(t,e){var r=e.trim().replace(/^\"(.*)\"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/)/i.test(r))return t;var a;return a=0===r.indexOf(\"//\")?r:0===r.indexOf(\"/\")?n+r:i+r.replace(/^\\.\\//,\"\"),\"url(\"+JSON.stringify(a)+\")\"})}},function(t,e,n){var i=n(372),r=n(403);t.exports=function(t){function e(n,i){if(!(this instanceof e))return new e(n,i);t.BufferGeometry.call(this),Array.isArray(n)?i=i||{}:\"object\"==typeof n&&(i=n,n=[]),i=i||{},this.addAttribute(\"position\",new t.BufferAttribute(void 0,3)),this.addAttribute(\"lineNormal\",new t.BufferAttribute(void 0,2)),this.addAttribute(\"lineMiter\",new t.BufferAttribute(void 0,1)),i.distances&&this.addAttribute(\"lineDistance\",new t.BufferAttribute(void 0,1)),\"function\"==typeof this.setIndex?this.setIndex(new t.BufferAttribute(void 0,1)):this.addAttribute(\"index\",new t.BufferAttribute(void 0,1)),this.update(n,i.closed)}return i(e,t.BufferGeometry),e.prototype.update=function(t,e){t=t||[];var n=r(t,e);e&&(t=t.slice(),t.push(t[0]),n.push(n[0]));var i=this.getAttribute(\"position\"),a=this.getAttribute(\"lineNormal\"),o=this.getAttribute(\"lineMiter\"),s=this.getAttribute(\"lineDistance\"),l=\"function\"==typeof this.getIndex?this.getIndex():this.getAttribute(\"index\"),u=Math.max(0,6*(t.length-1));if(!i.array||t.length!==i.array.length/3/2){var c=2*t.length;i.array=new Float32Array(3*c),a.array=new Float32Array(2*c),o.array=new Float32Array(c),l.array=new Uint16Array(u),s&&(s.array=new Float32Array(c))}void 0!==i.count&&(i.count=c),i.needsUpdate=!0,void 0!==a.count&&(a.count=c),a.needsUpdate=!0,void 0!==o.count&&(o.count=c),o.needsUpdate=!0,void 0!==l.count&&(l.count=u),l.needsUpdate=!0,s&&(void 0!==s.count&&(s.count=c),s.needsUpdate=!0);var h=0,d=0,f=0,p=l.array;t.forEach(function(t,e,n){var r=h;if(p[d++]=r+0,p[d++]=r+1,p[d++]=r+2,p[d++]=r+2,p[d++]=r+1,p[d++]=r+3,i.setXYZ(h++,t[0],t[1],0),i.setXYZ(h++,t[0],t[1],0),s){var a=e/(n.length-1);s.setX(f++,a),s.setX(f++,a)}});var m=0,g=0;n.forEach(function(t){var e=t[0],n=t[1];a.setXY(m++,e[0],e[1]),a.setXY(m++,e[0],e[1]),o.setX(g++,-n),o.setX(g++,n)})},e}},function(t,e,n){var i=n(101);t.exports=function(t){return function(e){e=e||{};var n=\"number\"==typeof e.thickness?e.thickness:.1,r=\"number\"==typeof e.opacity?e.opacity:1,a=null!==e.diffuse?e.diffuse:16777215;delete e.thickness,delete e.opacity,delete e.diffuse,delete e.precision;var o=i({uniforms:{thickness:{type:\"f\",value:n},opacity:{type:\"f\",value:r},diffuse:{type:\"c\",value:new t.Color(a)}},vertexShader:[\"uniform float thickness;\",\"attribute float lineMiter;\",\"attribute vec2 lineNormal;\",\"void main() {\",\"vec3 pointPos = position.xyz + vec3(lineNormal * thickness / 2.0 * lineMiter, 0.0);\",\"gl_Position = projectionMatrix * modelViewMatrix * vec4(pointPos, 1.0);\",\"}\"].join(\"\\n\"),fragmentShader:[\"uniform vec3 diffuse;\",\"uniform float opacity;\",\"void main() {\",\"gl_FragColor = vec4(diffuse, opacity);\",\"}\"].join(\"\\n\")},e);return(0|(parseInt(t.REVISION,10)||0))<72&&(o.attributes={lineMiter:{type:\"f\",value:0},lineNormal:{type:\"v2\",value:new t.Vector2}}),o}}},function(t,e,n){\"use strict\";function i(t){return!0===t||!1===t}t.exports=i},function(t,e,n){\"use strict\";function i(t){return\"function\"==typeof t}t.exports=i},function(t,e,n){\"use strict\";function i(t){var e,n;if(!r(t))return!1;if(!(e=t.length))return!1;for(var i=0;i=this.text.length)return;t=this.text[this.place++]}switch(this.state){case a:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},i.prototype.afterquote=function(t){if('\"'===t)return this.word+='\"',void(this.state=4);if(u.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in afterquote yet, index '+this.place)},i.prototype.afterItem=function(t){return\",\"===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=a)):\"]\"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=a,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},i.prototype.number=function(t){if(c.test(t))return void(this.word+=t);if(u.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in number yet, index '+this.place)},i.prototype.quoted=function(t){if('\"'===t)return void(this.state=5);this.word+=t},i.prototype.keyword=function(t){if(l.test(t))return void(this.word+=t);if(\"[\"===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=a)}if(u.test(t))return void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in keyword yet, index '+this.place)},i.prototype.neutral=function(t){if(s.test(t))return this.word=t,void(this.state=2);if('\"'===t)return this.word=\"\",void(this.state=4);if(c.test(t))return this.word=t,void(this.state=3);if(u.test(t))return void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in neutral yet, index '+this.place)},i.prototype.output=function(){for(;this.place0?s(r()):tt.y<0&&l(r()),J.copy($),I.update()}function p(t){K.set(t.clientX,t.clientY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function m(t){}function g(t){t.deltaY<0?l(r()):t.deltaY>0&&s(r()),I.update()}function v(t){switch(t.keyCode){case I.keys.UP:it(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:it(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:it(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:it(-I.keyPanSpeed,0),I.update()}}function y(t){Y.set(t.touches[0].pageX,t.touches[0].pageY)}function b(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);J.set(0,i)}function x(t){Z.set(t.touches[0].pageX,t.touches[0].pageY)}function _(t){q.set(t.touches[0].pageX,t.touches[0].pageY),X.subVectors(q,Y);var e=I.domElement===document?I.domElement.body:I.domElement;a(2*Math.PI*X.x/e.clientWidth*I.rotateSpeed),o(2*Math.PI*X.y/e.clientHeight*I.rotateSpeed),Y.copy(q),I.update()}function w(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);$.set(0,i),tt.subVectors($,J),tt.y>0?l(r()):tt.y<0&&s(r()),J.copy($),I.update()}function M(t){K.set(t.touches[0].pageX,t.touches[0].pageY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function S(t){}function E(t){if(!1!==I.enabled){if(t.preventDefault(),t.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(t),F=B.ROTATE}else if(t.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(t),F=B.DOLLY}else if(t.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;h(t),F=B.PAN}F!==B.NONE&&(document.addEventListener(\"mousemove\",k,!1),document.addEventListener(\"mouseup\",T,!1),I.dispatchEvent(N))}}function k(t){if(!1!==I.enabled)if(t.preventDefault(),F===B.ROTATE){if(!1===I.enableRotate)return;d(t)}else if(F===B.DOLLY){if(!1===I.enableZoom)return;f(t)}else if(F===B.PAN){if(!1===I.enablePan)return;p(t)}}function T(t){!1!==I.enabled&&(m(t),document.removeEventListener(\"mousemove\",k,!1),document.removeEventListener(\"mouseup\",T,!1),I.dispatchEvent(z),F=B.NONE)}function C(t){!1===I.enabled||!1===I.enableZoom||F!==B.NONE&&F!==B.ROTATE||(t.preventDefault(),t.stopPropagation(),g(t),I.dispatchEvent(N),I.dispatchEvent(z))}function P(t){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(t)}function O(t){if(!1!==I.enabled){switch(t.touches.length){case 1:if(!1===I.enableRotate)return;y(t),F=B.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(t),F=B.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;x(t),F=B.TOUCH_PAN;break;default:F=B.NONE}F!==B.NONE&&I.dispatchEvent(N)}}function A(t){if(!1!==I.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==B.TOUCH_ROTATE)return;_(t);break;case 2:if(!1===I.enableZoom)return;if(F!==B.TOUCH_DOLLY)return;w(t);break;case 3:if(!1===I.enablePan)return;if(F!==B.TOUCH_PAN)return;M(t);break;default:F=B.NONE}}function R(t){!1!==I.enabled&&(S(t),I.dispatchEvent(z),F=B.NONE)}function L(t){t.preventDefault()}this.object=t,this.domElement=void 0!==e?e:document,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=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return j.phi},this.getAzimuthalAngle=function(){return j.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=B.NONE},this.update=function(){var e=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),o=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var t=I.object.position;return e.copy(t).sub(I.target),e.applyQuaternion(r),j.setFromVector3(e),I.autoRotate&&F===B.NONE&&a(n()),j.theta+=W.theta,j.phi+=W.phi,j.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,j.theta)),j.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,j.phi)),j.makeSafe(),j.radius*=G,j.radius=Math.max(I.minDistance,Math.min(I.maxDistance,j.radius)),I.target.add(V),e.setFromSpherical(j),e.applyQuaternion(o),t.copy(I.target).add(e),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>U||8*(1-l.dot(I.object.quaternion))>U)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener(\"contextmenu\",L,!1),I.domElement.removeEventListener(\"mousedown\",E,!1),I.domElement.removeEventListener(\"wheel\",C,!1),I.domElement.removeEventListener(\"touchstart\",O,!1),I.domElement.removeEventListener(\"touchend\",R,!1),I.domElement.removeEventListener(\"touchmove\",A,!1),document.removeEventListener(\"mousemove\",k,!1),document.removeEventListener(\"mouseup\",T,!1),window.removeEventListener(\"keydown\",P,!1)};var I=this,D={type:\"change\"},N={type:\"start\"},z={type:\"end\"},B={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=B.NONE,U=1e-6,j=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,Y=new i.Vector2,q=new i.Vector2,X=new i.Vector2,Z=new i.Vector2,K=new i.Vector2,Q=new i.Vector2,J=new i.Vector2,$=new i.Vector2,tt=new i.Vector2,et=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),V.add(t)}}(),nt=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),V.add(t)}}(),it=function(){var t=new i.Vector3;return function(e,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var a=I.object.position;t.copy(a).sub(I.target);var o=t.length();o*=Math.tan(I.object.fov/2*Math.PI/180),et(2*e*o/r.clientHeight,I.object.matrix),nt(2*n*o/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(et(e*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),nt(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn(\"WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.\"),I.enablePan=!1)}}();I.domElement.addEventListener(\"contextmenu\",L,!1),I.domElement.addEventListener(\"mousedown\",E,!1),I.domElement.addEventListener(\"wheel\",C,!1),I.domElement.addEventListener(\"touchstart\",O,!1),I.domElement.addEventListener(\"touchend\",R,!1),I.domElement.addEventListener(\"touchmove\",A,!1),window.addEventListener(\"keydown\",P,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn(\"THREE.OrbitControls: .center has been renamed to .target\"),this.target}},noZoom:{get:function(){return console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),!this.enableZoom},set:function(t){console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),this.enableZoom=!t}},noRotate:{get:function(){return console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),!this.enableRotate},set:function(t){console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),this.enableRotate=!t}},noPan:{get:function(){return console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),!this.enablePan},set:function(t){console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),this.enablePan=!t}},noKeys:{get:function(){return console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),!this.enableKeys},set:function(t){console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),this.enableKeys=!t}},staticMoving:{get:function(){return console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),!this.enableDamping},set:function(t){console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),this.enableDamping=!t}},dynamicDampingFactor:{get:function(){return console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor},set:function(t){console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor=t}}})},function(t,e,n){var i=n(12);i.MTLLoader=function(t){this.manager=void 0!==t?t:i.DefaultLoadingManager},i.MTLLoader.prototype={constructor:i.MTLLoader,load:function(t,e,n,r){var a=this,o=new i.FileLoader(this.manager);o.setPath(this.path),o.load(t,function(t){e(a.parse(t))},n,r)},setPath:function(t){this.path=t},setTexturePath:function(t){this.texturePath=t},setBaseUrl:function(t){console.warn(\"THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead.\"),this.setTexturePath(t)},setCrossOrigin:function(t){this.crossOrigin=t},setMaterialOptions:function(t){this.materialOptions=t},parse:function(t){for(var e=t.split(\"\\n\"),n={},r=/\\s+/,a={},o=0;o=0?s.substring(0,l):s;u=u.toLowerCase();var c=l>=0?s.substring(l+1):\"\";if(c=c.trim(),\"newmtl\"===u)n={name:c},a[c]=n;else if(n)if(\"ka\"===u||\"kd\"===u||\"ks\"===u){var h=c.split(r,3);n[u]=[parseFloat(h[0]),parseFloat(h[1]),parseFloat(h[2])]}else n[u]=c}}var d=new i.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return d.setCrossOrigin(this.crossOrigin),d.setManager(this.manager),d.setMaterials(a),d}},i.MTLLoader.MaterialCreator=function(t,e){this.baseUrl=t||\"\",this.options=e,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:i.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:i.RepeatWrapping},i.MTLLoader.MaterialCreator.prototype={constructor:i.MTLLoader.MaterialCreator,setCrossOrigin:function(t){this.crossOrigin=t},setManager:function(t){this.manager=t},setMaterials:function(t){this.materialsInfo=this.convert(t),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(t){if(!this.options)return t;var e={};for(var n in t){var i=t[n],r={};e[n]=r;for(var a in i){var o=!0,s=i[a],l=a.toLowerCase();switch(l){case\"kd\":case\"ka\":case\"ks\":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(o=!1)}o&&(r[l]=s)}}return e},preload:function(){for(var t in this.materialsInfo)this.create(t)},getIndex:function(t){return this.nameLookup[t]},getAsArray:function(){var t=0;for(var e in this.materialsInfo)this.materialsArray[t]=this.create(e),this.nameLookup[e]=t,t++;return this.materialsArray},create:function(t){return void 0===this.materials[t]&&this.createMaterial_(t),this.materials[t]},createMaterial_:function(t){function e(t,e){return\"string\"!=typeof e||\"\"===e?\"\":/^https?:\\/\\//i.test(e)?e:t+e}function n(t,n){if(!o[t]){var i=r.getTextureParams(n,o),a=r.loadTexture(e(r.baseUrl,i.url));a.repeat.copy(i.scale),a.offset.copy(i.offset),a.wrapS=r.wrap,a.wrapT=r.wrap,o[t]=a}}var r=this,a=this.materialsInfo[t],o={name:t,side:this.side};for(var s in a){var l=a[s];if(\"\"!==l)switch(s.toLowerCase()){case\"kd\":o.color=(new i.Color).fromArray(l);break;case\"ks\":o.specular=(new i.Color).fromArray(l);break;case\"map_kd\":n(\"map\",l);break;case\"map_ks\":n(\"specularMap\",l);break;case\"map_bump\":case\"bump\":n(\"bumpMap\",l);break;case\"ns\":o.shininess=parseFloat(l);break;case\"d\":l<1&&(o.opacity=l,o.transparent=!0);break;case\"Tr\":l>0&&(o.opacity=1-l,o.transparent=!0)}}return this.materials[t]=new i.MeshPhongMaterial(o),this.materials[t]},getTextureParams:function(t,e){var n,r={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},a=t.split(/\\s+/);return n=a.indexOf(\"-bm\"),n>=0&&(e.bumpScale=parseFloat(a[n+1]),a.splice(n,2)),n=a.indexOf(\"-s\"),n>=0&&(r.scale.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),n=a.indexOf(\"-o\"),n>=0&&(r.offset.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),r.url=a.join(\" \").trim(),r},loadTexture:function(t,e,n,r,a){var o,s=i.Loader.Handlers.get(t),l=void 0!==this.manager?this.manager:i.DefaultLoadingManager;return null===s&&(s=new i.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),o=s.load(t,n,r,a),void 0!==e&&(o.mapping=e),o}}},function(t,e,n){var i=n(12);i.OBJLoader=function(t){this.manager=void 0!==t?t:i.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,normal_pattern:/^vn\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,uv_pattern:/^vt\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,face_vertex:/^f\\s+(-?\\d+)\\s+(-?\\d+)\\s+(-?\\d+)(?:\\s+(-?\\d+))?/,face_vertex_uv:/^f\\s+(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)(?:\\s+(-?\\d+)\\/(-?\\d+))?/,face_vertex_uv_normal:/^f\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)(?:\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+))?/,face_vertex_normal:/^f\\s+(-?\\d+)\\/\\/(-?\\d+)\\s+(-?\\d+)\\/\\/(-?\\d+)\\s+(-?\\d+)\\/\\/(-?\\d+)(?:\\s+(-?\\d+)\\/\\/(-?\\d+))?/,object_pattern:/^[og]\\s*(.+)?/,smoothing_pattern:/^s\\s+(\\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}},i.OBJLoader.prototype={constructor:i.OBJLoader,load:function(t,e,n,r){var a=this,o=new i.FileLoader(a.manager);o.setPath(this.path),o.load(t,function(t){e(a.parse(t))},n,r)},setPath:function(t){this.path=t},setMaterials:function(t){this.materials=t},_createParserState:function(){var t={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);var n=this.object&&\"function\"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&\"function\"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||\"\",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(t,e){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var i={index:this.materials.length,name:t||\"\",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:\"\",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){var e={index:\"number\"==typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){var e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return t&&0===this.materials.length&&this.materials.push({name:\"\",smooth:this.smooth}),e}},n&&n.name&&\"function\"==typeof n.clone){var i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&\"function\"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseNormalIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseUVIndex:function(t,e){var n=parseInt(t,10);return 2*(n>=0?n-1:n+e/2)},addVertex:function(t,e,n){var i=this.vertices,r=this.object.geometry.vertices;r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addVertexLine:function(t){var e=this.vertices,n=this.object.geometry.vertices;n.push(e[t+0]),n.push(e[t+1]),n.push(e[t+2])},addNormal:function(t,e,n){var i=this.normals,r=this.object.geometry.normals;r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addUV:function(t,e,n){var i=this.uvs,r=this.object.geometry.uvs;r.push(i[t+0]),r.push(i[t+1]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[n+0]),r.push(i[n+1])},addUVLine:function(t){var e=this.uvs,n=this.object.geometry.uvs;n.push(e[t+0]),n.push(e[t+1])},addFace:function(t,e,n,i,r,a,o,s,l,u,c,h){var d,f=this.vertices.length,p=this.parseVertexIndex(t,f),m=this.parseVertexIndex(e,f),g=this.parseVertexIndex(n,f);if(void 0===i?this.addVertex(p,m,g):(d=this.parseVertexIndex(i,f),this.addVertex(p,m,d),this.addVertex(m,g,d)),void 0!==r){var v=this.uvs.length;p=this.parseUVIndex(r,v),m=this.parseUVIndex(a,v),g=this.parseUVIndex(o,v),void 0===i?this.addUV(p,m,g):(d=this.parseUVIndex(s,v),this.addUV(p,m,d),this.addUV(m,g,d))}if(void 0!==l){var y=this.normals.length;p=this.parseNormalIndex(l,y),m=l===u?p:this.parseNormalIndex(u,y),g=l===c?p:this.parseNormalIndex(c,y),void 0===i?this.addNormal(p,m,g):(d=this.parseNormalIndex(h,y),this.addNormal(p,m,d),this.addNormal(m,g,d))}},addLineGeometry:function(t,e){this.object.geometry.type=\"Line\";for(var n=this.vertices.length,i=this.uvs.length,r=0,a=t.length;r0?E.addAttribute(\"normal\",new i.BufferAttribute(new Float32Array(w.normals),3)):E.computeVertexNormals(),w.uvs.length>0&&E.addAttribute(\"uv\",new i.BufferAttribute(new Float32Array(w.uvs),2));for(var k=[],T=0,C=M.length;T1){for(var T=0,C=M.length;T0?s(r()):tt.y<0&&l(r()),J.copy($),I.update()}function p(t){K.set(t.clientX,t.clientY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function m(t){}function g(t){t.deltaY<0?l(r()):t.deltaY>0&&s(r()),I.update()}function v(t){switch(t.keyCode){case I.keys.UP:it(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:it(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:it(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:it(-I.keyPanSpeed,0),I.update()}}function y(t){Y.set(t.touches[0].pageX,t.touches[0].pageY)}function b(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);J.set(0,i)}function x(t){Z.set(t.touches[0].pageX,t.touches[0].pageY)}function _(t){q.set(t.touches[0].pageX,t.touches[0].pageY),X.subVectors(q,Y);var e=I.domElement===document?I.domElement.body:I.domElement;a(2*Math.PI*X.x/e.clientWidth*I.rotateSpeed),o(2*Math.PI*X.y/e.clientHeight*I.rotateSpeed),Y.copy(q),I.update()}function w(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);$.set(0,i),tt.subVectors($,J),tt.y>0?l(r()):tt.y<0&&s(r()),J.copy($),I.update()}function M(t){K.set(t.touches[0].pageX,t.touches[0].pageY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function S(t){}function E(t){if(!1!==I.enabled){if(t.preventDefault(),t.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(t),F=B.ROTATE}else if(t.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(t),F=B.DOLLY}else if(t.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;h(t),F=B.PAN}F!==B.NONE&&(document.addEventListener(\"mousemove\",k,!1),document.addEventListener(\"mouseup\",T,!1),I.dispatchEvent(N))}}function k(t){if(!1!==I.enabled)if(t.preventDefault(),F===B.ROTATE){if(!1===I.enableRotate)return;d(t)}else if(F===B.DOLLY){if(!1===I.enableZoom)return;f(t)}else if(F===B.PAN){if(!1===I.enablePan)return;p(t)}}function T(t){!1!==I.enabled&&(m(t),document.removeEventListener(\"mousemove\",k,!1),document.removeEventListener(\"mouseup\",T,!1),I.dispatchEvent(z),F=B.NONE)}function C(t){!1===I.enabled||!1===I.enableZoom||F!==B.NONE&&F!==B.ROTATE||(t.preventDefault(),t.stopPropagation(),g(t),I.dispatchEvent(N),I.dispatchEvent(z))}function P(t){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(t)}function O(t){if(!1!==I.enabled){switch(t.touches.length){case 1:if(!1===I.enableRotate)return;y(t),F=B.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(t),F=B.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;x(t),F=B.TOUCH_PAN;break;default:F=B.NONE}F!==B.NONE&&I.dispatchEvent(N)}}function A(t){if(!1!==I.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==B.TOUCH_ROTATE)return;_(t);break;case 2:if(!1===I.enableZoom)return;if(F!==B.TOUCH_DOLLY)return;w(t);break;case 3:if(!1===I.enablePan)return;if(F!==B.TOUCH_PAN)return;M(t);break;default:F=B.NONE}}function R(t){!1!==I.enabled&&(S(t),I.dispatchEvent(z),F=B.NONE)}function L(t){t.preventDefault()}this.object=t,this.domElement=void 0!==e?e:document,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=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return j.phi},this.getAzimuthalAngle=function(){return j.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=B.NONE},this.update=function(){var e=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),o=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var t=I.object.position;return e.copy(t).sub(I.target),e.applyQuaternion(r),j.setFromVector3(e),I.autoRotate&&F===B.NONE&&a(n()),j.theta+=W.theta,j.phi+=W.phi,j.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,j.theta)),j.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,j.phi)),j.makeSafe(),j.radius*=G,j.radius=Math.max(I.minDistance,Math.min(I.maxDistance,j.radius)),I.target.add(V),e.setFromSpherical(j),e.applyQuaternion(o),t.copy(I.target).add(e),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>U||8*(1-l.dot(I.object.quaternion))>U)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener(\"contextmenu\",L,!1),I.domElement.removeEventListener(\"mousedown\",E,!1),I.domElement.removeEventListener(\"wheel\",C,!1),I.domElement.removeEventListener(\"touchstart\",O,!1),I.domElement.removeEventListener(\"touchend\",R,!1),I.domElement.removeEventListener(\"touchmove\",A,!1),document.removeEventListener(\"mousemove\",k,!1),document.removeEventListener(\"mouseup\",T,!1),window.removeEventListener(\"keydown\",P,!1)};var I=this,D={type:\"change\"},N={type:\"start\"},z={type:\"end\"},B={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=B.NONE,U=1e-6,j=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,Y=new i.Vector2,q=new i.Vector2,X=new i.Vector2,Z=new i.Vector2,K=new i.Vector2,Q=new i.Vector2,J=new i.Vector2,$=new i.Vector2,tt=new i.Vector2,et=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),V.add(t)}}(),nt=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),V.add(t)}}(),it=function(){var t=new i.Vector3;return function(e,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var a=I.object.position;t.copy(a).sub(I.target);var o=t.length();o*=Math.tan(I.object.fov/2*Math.PI/180),et(2*e*o/r.clientHeight,I.object.matrix),nt(2*n*o/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(et(e*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),nt(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn(\"WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.\"),I.enablePan=!1)}}();I.domElement.addEventListener(\"contextmenu\",L,!1),I.domElement.addEventListener(\"mousedown\",E,!1),I.domElement.addEventListener(\"wheel\",C,!1),I.domElement.addEventListener(\"touchstart\",O,!1),I.domElement.addEventListener(\"touchend\",R,!1),I.domElement.addEventListener(\"touchmove\",A,!1),window.addEventListener(\"keydown\",P,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn(\"THREE.OrbitControls: .center has been renamed to .target\"),this.target}},noZoom:{get:function(){return console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),!this.enableZoom},set:function(t){console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),this.enableZoom=!t}},noRotate:{get:function(){return console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),!this.enableRotate},set:function(t){console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),this.enableRotate=!t}},noPan:{get:function(){return console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),!this.enablePan},set:function(t){console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),this.enablePan=!t}},noKeys:{get:function(){return console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),!this.enableKeys},set:function(t){console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),this.enableKeys=!t}},staticMoving:{get:function(){return console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),!this.enableDamping},set:function(t){console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),this.enableDamping=!t}},dynamicDampingFactor:{get:function(){return console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor},set:function(t){console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor=t}}})},function(t,e){t.exports={trajectoryGraph:{title:\"Trajectory\",options:{legend:{display:!0},axes:{x:{labelString:\"x (m)\"},y:{labelString:\"y (m)\"}}},properties:{lines:{pose:{color:\"rgba(0, 255, 0, 1)\",borderWidth:0,pointRadius:0,specialMarker:\"car\"},real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},steerCurve:{color:\"rgba(255, 206, 86, 1)\",borderWidth:1,pointRadius:0,fill:!1,showLine:!0},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},speedGraph:{title:\"Speed\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"speed (m/s)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},curvatureGraph:{title:\"Curvature\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"Curvature (m-1)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},accelerationGraph:{title:\"Acceleration\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"acceleration (m/s^2)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},stationErrorGraph:{title:\"Station Error\",options:{legend:{display:!1},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"error (m)\"}}},properties:{lines:{error:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}}}},function(t,e){t.exports={slGraph:{title:\"QP Path - sl graph\",options:{legend:{display:!1},axes:{x:{min:0,max:200,labelString:\"s - ref_line (m)\"},y:{min:-5,max:5,labelString:\"l (m)\"}}},properties:{lines:{aggregatedBoundaryLow:{color:\"rgba(48, 165, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},aggregatedBoundaryHigh:{color:\"rgba(48, 165, 255, 1)\",borderWidth:2,pointRadius:0,lineTension:0,fill:!1,showLine:!0},pathLine:{color:\"rgba(225, 225, 225, 0.7)\",borderWidth:2,pointRadius:.5,fill:!1,showLine:!1},mapLowerBound:{color:\"rgba(54, 162, 235, 0.4)\",borderWidth:2,pointRadius:0,fill:\"start\",showLine:!0},mapUpperBound:{color:\"rgba(54, 162, 235, 0.4)\",borderWidth:2,pointRadius:0,fill:\"end\",showLine:!0},staticObstacleLowerBound:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:\"start\",showLine:!0},staticObstacleUpperBound:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:\"end\",showLine:!0},dynamicObstacleLowerBound:{color:\"rgba(255, 206, 86, 0.2)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},dynamicObstacleUpperBound:{color:\"rgba(255, 206, 86, 0.2)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},stGraph:{options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-10,max:220,labelString:\"s (m)\"}}},properties:{box:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0,showText:!0,cubicInterpolationMode:\"monotone\",lineTension:0},lines:{curveLine:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelCruise:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelFollow:{color:\"rgba(255, 206, 86, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1}}}},stSpeedGraph:{title:\"QP Speed - sv graph\",options:{legend:{display:!0},axes:{x:{min:-10,max:220,labelString:\"s - qp_path(m)\"},y:{min:-1,max:40,labelString:\"v (m/s)\"}}},properties:{lines:{upperConstraint:{color:\"rgba(54, 162, 235, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},lowerConstraint:{color:\"rgba(54, 162, 235, 1)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},planned:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},limit:{color:\"rgba(255, 0, 0, 0.5)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0}}}},speedGraph:{title:\"Planning Speed\",options:{legend:{display:!0},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-1,max:40,labelString:\"speed (m/s)\"}}},properties:{lines:{finalSpeed:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:1,pointRadius:1,fill:!1,showLine:!1},DpStSpeedOptimizer:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplineStSpeedOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},accelerationGraph:{title:\"Planning Acceleration\",options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-4,max:3.5,labelString:\"acceleration (m/s^2)\"}}},properties:{lines:{acceleration:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},kappaGraph:{title:\"Planning Kappa\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{min:-.2,max:.2,labelString:\"kappa\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},DpPolyPathOptimizer:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},dkappaGraph:{title:\"Planning Dkappa\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{min:-.02,max:.02,labelString:\"dkappa\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},thetaGraph:{title:\"Planning theta\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{labelString:\"theta\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},dpPolyGraph:{title:\"DP Path\",options:{legend:{display:!1},axes:{x:{labelString:\"s (m)\"},y:{labelString:\"l (m)\"}}},properties:{lines:{minCostPoint:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:2,fill:!1,showLine:!0},sampleLayer:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!1}}}},latencyGraph:{title:\"Latency\",options:{legend:{display:!1},axes:{x:{labelString:\"timestampe (sec)\"},y:{labelString:\"latency (ms)\"}}},properties:{lines:{planning:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}}}},function(t,e){t.exports={name:\"proj4\",version:\"2.4.4\",description:\"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.\",main:\"dist/proj4-src.js\",module:\"lib/index.js\",directories:{test:\"test\",doc:\"docs\"},scripts:{build:\"grunt\",\"build:tmerc\":\"grunt build:tmerc\",test:\"npm run build && istanbul test _mocha test/test.js\"},repository:{type:\"git\",url:\"git://github.com/proj4js/proj4js.git\"},author:\"\",license:\"MIT\",devDependencies:{chai:\"~1.8.1\",curl:\"git://github.com/cujojs/curl.git\",grunt:\"^1.0.1\",\"grunt-cli\":\"~0.1.13\",\"grunt-contrib-connect\":\"~0.6.0\",\"grunt-contrib-jshint\":\"~1.1.0\",\"grunt-contrib-uglify\":\"~0.11.1\",\"grunt-mocha-phantomjs\":\"~0.4.0\",\"grunt-rollup\":\"^1.0.1\",istanbul:\"~0.2.4\",mocha:\"~1.17.1\",rollup:\"^0.41.4\",\"rollup-plugin-json\":\"^2.0.1\",\"rollup-plugin-node-resolve\":\"^2.0.0\",tin:\"~0.4.0\"},dependencies:{mgrs:\"1.0.0\",\"wkt-parser\":\"^1.2.0\"}}},function(t,e,n){var i=n(236);\"string\"==typeof i&&(i=[[t.i,i,\"\"]]);var r={};r.transform=void 0;n(158)(i,r);i.locals&&(t.exports=i.locals)},function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}}]);\n\n\n// WEBPACK FOOTER //\n// app.bundle.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""} \ No newline at end of file +{"version":3,"file":"app.bundle.js","sources":["webpack:///app.bundle.js"],"sourcesContent":["!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"/\",e(e.s=165)}([function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}},function(t,e,n){\"use strict\";e.__esModule=!0;var i=n(19),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var n=0;n6?l-6:0),c=6;c>\",s=s||r,null==i[r]){if(e){var n=null===i[r]?\"null\":\"undefined\";return new Error(\"The \"+o+\" `\"+s+\"` is marked as required in `\"+a+\"`, but its value is `\"+n+\"`.\")}return null}return t.apply(void 0,[i,r,a,o,s].concat(u))})}var i=e.bind(null,!1);return i.isRequired=e.bind(null,!0),i}function r(t,e){return\"symbol\"===t||(\"Symbol\"===e[\"@@toStringTag\"]||\"function\"==typeof Symbol&&e instanceof Symbol)}function a(t){var e=void 0===t?\"undefined\":k(t);return Array.isArray(t)?\"array\":t instanceof RegExp?\"object\":r(e,t)?\"symbol\":e}function o(t){var e=a(t);if(\"object\"===e){if(t instanceof Date)return\"date\";if(t instanceof RegExp)return\"regexp\"}return e}function s(t,e){return i(function(i,r,s,l,u){return n.i(w.untracked)(function(){if(t&&a(i[r])===e.toLowerCase())return null;var n=void 0;switch(e){case\"Array\":n=w.isObservableArray;break;case\"Object\":n=w.isObservableObject;break;case\"Map\":n=w.isObservableMap;break;default:throw new Error(\"Unexpected mobxType: \"+e)}var l=i[r];if(!n(l)){var c=o(l),h=t?\" or javascript `\"+e.toLowerCase()+\"`\":\"\";return new Error(\"Invalid prop `\"+u+\"` of type `\"+c+\"` supplied to `\"+s+\"`, expected `mobx.Observable\"+e+\"`\"+h+\".\")}return null})})}function l(t,e){return i(function(i,r,a,o,l){for(var u=arguments.length,c=Array(u>5?u-5:0),h=5;h2&&void 0!==arguments[2]&&arguments[2],i=t[e],r=it[e],a=i?!0===n?function(){r.apply(this,arguments),i.apply(this,arguments)}:function(){i.apply(this,arguments),r.apply(this,arguments)}:r;t[e]=a}function y(t,e){if(b(t,e))return!0;if(\"object\"!==(void 0===t?\"undefined\":k(t))||null===t||\"object\"!==(void 0===e?\"undefined\":k(e))||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var r=0;r\",i=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalFiber&&this._reactInternalFiber._debugID,r=!1,a=!1;t.call(this,\"props\"),t.call(this,\"state\");var o=this.render.bind(this),s=null,l=!1,u=function(){return s=new w.Reaction(n+\"#\"+i+\".render()\",function(){if(!l&&(l=!0,\"function\"==typeof e.componentWillReact&&e.componentWillReact(),!0!==e.__$mobxIsUnmounted)){var t=!0;try{a=!0,r||M.Component.prototype.forceUpdate.call(e),t=!1}finally{a=!1,t&&s.dispose()}}}),s.reactComponent=e,c.$mobx=s,e.render=c,c()},c=function(){l=!1;var t=void 0,n=void 0;if(s.track(function(){Q&&(e.__$mobRenderStart=Date.now());try{n=w.extras.allowStateChanges(!1,o)}catch(e){t=e}Q&&(e.__$mobRenderEnd=Date.now())}),t)throw nt.emit(t),t;return n};this.render=u}},componentWillUnmount:function(){if(!0!==J&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,Q)){var t=f(this);t&&tt&&tt.delete(t),et.emit({event:\"destroy\",component:this,node:t})}},componentDidMount:function(){Q&&p(this)},componentDidUpdate:function(){Q&&p(this)},shouldComponentUpdate:function(t,e){return J&&console.warn(\"[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side.\"),this.state!==e||!y(this.props,t)}},rt=x(function(t){var e=t.children,n=t.inject,i=t.render,r=e||i;if(void 0===r)return null;if(!n)return r();var a=d(n)(r);return S.a.createElement(a,null)});rt.displayName=\"Observer\";var at=function(t,e,n,i,r){var a=\"children\"===e?\"render\":\"children\";if(\"function\"==typeof t[e]&&\"function\"==typeof t[a])return new Error(\"Invalid prop,do not use children and render in the same time in`\"+n);if(\"function\"!=typeof t[e]&&\"function\"!=typeof t[a])return new Error(\"Invalid prop `\"+r+\"` of type `\"+k(t[e])+\"` supplied to `\"+n+\"`, expected `function`.\")};rt.propTypes={render:at,children:at};var ot,st,lt={children:!0,key:!0,ref:!0},ut=(st=ot=function(t){function e(){return T(this,e),O(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return P(e,t),C(e,[{key:\"render\",value:function(){return M.Children.only(this.props.children)}},{key:\"getChildContext\",value:function(){var t={},e=this.context.mobxStores;if(e)for(var n in e)t[n]=e[n];for(var i in this.props)lt[i]||\"suppressChangedStoreWarning\"===i||(t[i]=this.props[i]);return{mobxStores:t}}},{key:\"componentWillReceiveProps\",value:function(t){if(Object.keys(t).length!==Object.keys(this.props).length&&console.warn(\"MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children\"),!t.suppressChangedStoreWarning)for(var e in t)lt[e]||this.props[e]===t[e]||console.warn(\"MobX Provider: Provided store '\"+e+\"' has changed. Please avoid replacing stores as the change might not propagate to all children\")}}]),e}(M.Component),ot.contextTypes={mobxStores:Y},ot.childContextTypes={mobxStores:Y.isRequired},st);if(!M.Component)throw new Error(\"mobx-react requires React to be available\");if(!w.extras)throw new Error(\"mobx-react requires mobx to be available\");\"function\"==typeof E.unstable_batchedUpdates&&w.extras.setReactionScheduler(E.unstable_batchedUpdates);var ct=function(t){return nt.on(t)};if(\"object\"===(\"undefined\"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?\"undefined\":k(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var ht={spy:w.spy,extras:w.extras},dt={renderReporter:et,componentByNodeRegistery:tt,trackComponents:m};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(dt,ht)}},function(t,e,n){\"use strict\";var i=n(6);t.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},function(t,e,n){\"use strict\";var i=n(7),r=n(57);e.a=function(t){return Math.abs(t)<=i.c?t:t-n.i(r.a)(t)*i.e}},function(t,e){var n=t.exports={version:\"2.5.3\"};\"number\"==typeof __e&&(__e=n)},function(t,e,n){\"use strict\";function i(){}function r(t,e){this.x=t||0,this.y=e||0}function a(t,e,n,i,o,s,l,u,c,h){Object.defineProperty(this,\"id\",{value:ps++}),this.uuid=fs.generateUUID(),this.name=\"\",this.image=void 0!==t?t:a.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:a.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:so,this.wrapT=void 0!==i?i:so,this.magFilter=void 0!==o?o:fo,this.minFilter=void 0!==s?s:mo,this.anisotropy=void 0!==c?c:1,this.format=void 0!==l?l:Oo,this.type=void 0!==u?u:go,this.offset=new r(0,0),this.repeat=new r(1,1),this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==h?h:is,this.version=0,this.onUpdate=null}function o(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1}function s(t,e,n){this.uuid=fs.generateUUID(),this.width=t,this.height=e,this.scissor=new o(0,0,t,e),this.scissorTest=!1,this.viewport=new o(0,0,t,e),n=n||{},void 0===n.minFilter&&(n.minFilter=fo),this.texture=new a(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),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 l(t,e,n){s.call(this,t,e,n),this.activeCubeFace=0,this.activeMipMapLevel=0}function u(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1}function c(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function h(){this.elements=new Float32Array([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 d(t,e,n,i,r,o,s,l,u,c){t=void 0!==t?t:[],e=void 0!==e?e:$a,a.call(this,t,e,n,i,r,o,s,l,u,c),this.flipY=!1}function f(){this.seq=[],this.map={}}function p(t,e,n){var i=t[0];if(i<=0||i>0)return t;var r=e*n,a=vs[r];if(void 0===a&&(a=new Float32Array(r),vs[r]=a),0!==e){i.toArray(a,0);for(var o=1,s=0;o!==e;++o)s+=n,t[o].toArray(a,s)}return a}function m(t,e){var n=ys[e];void 0===n&&(n=new Int32Array(e),ys[e]=n);for(var i=0;i!==e;++i)n[i]=t.allocTextureUnit();return n}function g(t,e){t.uniform1f(this.addr,e)}function v(t,e){t.uniform1i(this.addr,e)}function y(t,e){void 0===e.x?t.uniform2fv(this.addr,e):t.uniform2f(this.addr,e.x,e.y)}function b(t,e){void 0!==e.x?t.uniform3f(this.addr,e.x,e.y,e.z):void 0!==e.r?t.uniform3f(this.addr,e.r,e.g,e.b):t.uniform3fv(this.addr,e)}function x(t,e){void 0===e.x?t.uniform4fv(this.addr,e):t.uniform4f(this.addr,e.x,e.y,e.z,e.w)}function _(t,e){t.uniformMatrix2fv(this.addr,!1,e.elements||e)}function w(t,e){t.uniformMatrix3fv(this.addr,!1,e.elements||e)}function M(t,e){t.uniformMatrix4fv(this.addr,!1,e.elements||e)}function S(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),n.setTexture2D(e||ms,i)}function E(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),n.setTextureCube(e||gs,i)}function k(t,e){t.uniform2iv(this.addr,e)}function T(t,e){t.uniform3iv(this.addr,e)}function C(t,e){t.uniform4iv(this.addr,e)}function P(t){switch(t){case 5126:return g;case 35664:return y;case 35665:return b;case 35666:return x;case 35674:return _;case 35675:return w;case 35676:return M;case 35678:return S;case 35680:return E;case 5124:case 35670:return v;case 35667:case 35671:return k;case 35668:case 35672:return T;case 35669:case 35673:return C}}function O(t,e){t.uniform1fv(this.addr,e)}function A(t,e){t.uniform1iv(this.addr,e)}function R(t,e){t.uniform2fv(this.addr,p(e,this.size,2))}function L(t,e){t.uniform3fv(this.addr,p(e,this.size,3))}function I(t,e){t.uniform4fv(this.addr,p(e,this.size,4))}function D(t,e){t.uniformMatrix2fv(this.addr,!1,p(e,this.size,4))}function N(t,e){t.uniformMatrix3fv(this.addr,!1,p(e,this.size,9))}function z(t,e){t.uniformMatrix4fv(this.addr,!1,p(e,this.size,16))}function B(t,e,n){var i=e.length,r=m(n,i);t.uniform1iv(this.addr,r);for(var a=0;a!==i;++a)n.setTexture2D(e[a]||ms,r[a])}function F(t,e,n){var i=e.length,r=m(n,i);t.uniform1iv(this.addr,r);for(var a=0;a!==i;++a)n.setTextureCube(e[a]||gs,r[a])}function U(t){switch(t){case 5126:return O;case 35664:return R;case 35665:return L;case 35666:return I;case 35674:return D;case 35675:return N;case 35676:return z;case 35678:return B;case 35680:return F;case 5124:case 35670:return A;case 35667:case 35671:return k;case 35668:case 35672:return T;case 35669:case 35673:return C}}function j(t,e,n){this.id=t,this.addr=n,this.setValue=P(e.type)}function W(t,e,n){this.id=t,this.addr=n,this.size=e.size,this.setValue=U(e.type)}function G(t){this.id=t,f.call(this)}function V(t,e){t.seq.push(e),t.map[e.id]=e}function H(t,e,n){var i=t.name,r=i.length;for(bs.lastIndex=0;;){var a=bs.exec(i),o=bs.lastIndex,s=a[1],l=\"]\"===a[2],u=a[3];if(l&&(s|=0),void 0===u||\"[\"===u&&o+2===r){V(n,void 0===u?new j(s,t,e):new W(s,t,e));break}var c=n.map,h=c[s];void 0===h&&(h=new G(s),V(n,h)),n=h}}function q(t,e,n){f.call(this),this.renderer=n;for(var i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),r=0;r.001&&A.scale>.001&&(M.x=A.x,M.y=A.y,M.z=A.z,_=A.size*A.scale/g.w,w.x=_*y,w.y=_,p.uniform3f(h.screenPosition,M.x,M.y,M.z),p.uniform2f(h.scale,w.x,w.y),p.uniform1f(h.rotation,A.rotation),p.uniform1f(h.opacity,A.opacity),p.uniform3f(h.color,A.color.r,A.color.g,A.color.b),m.setBlending(A.blending,A.blendEquation,A.blendSrc,A.blendDst),t.setTexture2D(A.texture,1),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0))}}}m.enable(p.CULL_FACE),m.enable(p.DEPTH_TEST),m.setDepthWrite(!0),t.resetGLState()}}}function Q(t,e){function n(){var t=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),e=new Uint16Array([0,1,2,0,2,3]);o=p.createBuffer(),s=p.createBuffer(),p.bindBuffer(p.ARRAY_BUFFER,o),p.bufferData(p.ARRAY_BUFFER,t,p.STATIC_DRAW),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.bufferData(p.ELEMENT_ARRAY_BUFFER,e,p.STATIC_DRAW),l=i(),h={position:p.getAttribLocation(l,\"position\"),uv:p.getAttribLocation(l,\"uv\")},d={uvOffset:p.getUniformLocation(l,\"uvOffset\"),uvScale:p.getUniformLocation(l,\"uvScale\"),rotation:p.getUniformLocation(l,\"rotation\"),scale:p.getUniformLocation(l,\"scale\"),color:p.getUniformLocation(l,\"color\"),map:p.getUniformLocation(l,\"map\"),opacity:p.getUniformLocation(l,\"opacity\"),modelViewMatrix:p.getUniformLocation(l,\"modelViewMatrix\"),projectionMatrix:p.getUniformLocation(l,\"projectionMatrix\"),fogType:p.getUniformLocation(l,\"fogType\"),fogDensity:p.getUniformLocation(l,\"fogDensity\"),fogNear:p.getUniformLocation(l,\"fogNear\"),fogFar:p.getUniformLocation(l,\"fogFar\"),fogColor:p.getUniformLocation(l,\"fogColor\"),alphaTest:p.getUniformLocation(l,\"alphaTest\")};var n=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");n.width=8,n.height=8;var r=n.getContext(\"2d\");r.fillStyle=\"white\",r.fillRect(0,0,8,8),f=new a(n),f.needsUpdate=!0}function i(){var e=p.createProgram(),n=p.createShader(p.VERTEX_SHADER),i=p.createShader(p.FRAGMENT_SHADER);return p.shaderSource(n,[\"precision \"+t.getPrecision()+\" float;\",\"uniform mat4 modelViewMatrix;\",\"uniform mat4 projectionMatrix;\",\"uniform float rotation;\",\"uniform vec2 scale;\",\"uniform vec2 uvOffset;\",\"uniform vec2 uvScale;\",\"attribute vec2 position;\",\"attribute vec2 uv;\",\"varying vec2 vUV;\",\"void main() {\",\"vUV = uvOffset + uv * uvScale;\",\"vec2 alignedPosition = position * scale;\",\"vec2 rotatedPosition;\",\"rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\",\"rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\",\"vec4 finalPosition;\",\"finalPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\",\"finalPosition.xy += rotatedPosition;\",\"finalPosition = projectionMatrix * finalPosition;\",\"gl_Position = finalPosition;\",\"}\"].join(\"\\n\")),p.shaderSource(i,[\"precision \"+t.getPrecision()+\" float;\",\"uniform vec3 color;\",\"uniform sampler2D map;\",\"uniform float opacity;\",\"uniform int fogType;\",\"uniform vec3 fogColor;\",\"uniform float fogDensity;\",\"uniform float fogNear;\",\"uniform float fogFar;\",\"uniform float alphaTest;\",\"varying vec2 vUV;\",\"void main() {\",\"vec4 texture = texture2D( map, vUV );\",\"if ( texture.a < alphaTest ) discard;\",\"gl_FragColor = vec4( color * texture.xyz, texture.a * opacity );\",\"if ( fogType > 0 ) {\",\"float depth = gl_FragCoord.z / gl_FragCoord.w;\",\"float fogFactor = 0.0;\",\"if ( fogType == 1 ) {\",\"fogFactor = smoothstep( fogNear, fogFar, depth );\",\"} else {\",\"const float LOG2 = 1.442695;\",\"fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );\",\"fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );\",\"}\",\"gl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );\",\"}\",\"}\"].join(\"\\n\")),p.compileShader(n),p.compileShader(i),p.attachShader(e,n),p.attachShader(e,i),p.linkProgram(e),e}function r(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:e.id-t.id}var o,s,l,h,d,f,p=t.context,m=t.state,g=new c,v=new u,y=new c;this.render=function(i,a){if(0!==e.length){void 0===l&&n(),p.useProgram(l),m.initAttributes(),m.enableAttribute(h.position),m.enableAttribute(h.uv),m.disableUnusedAttributes(),m.disable(p.CULL_FACE),m.enable(p.BLEND),p.bindBuffer(p.ARRAY_BUFFER,o),p.vertexAttribPointer(h.position,2,p.FLOAT,!1,16,0),p.vertexAttribPointer(h.uv,2,p.FLOAT,!1,16,8),p.bindBuffer(p.ELEMENT_ARRAY_BUFFER,s),p.uniformMatrix4fv(d.projectionMatrix,!1,a.projectionMatrix.elements),m.activeTexture(p.TEXTURE0),p.uniform1i(d.map,0);var u=0,c=0,b=i.fog;b?(p.uniform3f(d.fogColor,b.color.r,b.color.g,b.color.b),b.isFog?(p.uniform1f(d.fogNear,b.near),p.uniform1f(d.fogFar,b.far),p.uniform1i(d.fogType,1),u=1,c=1):b.isFogExp2&&(p.uniform1f(d.fogDensity,b.density),p.uniform1i(d.fogType,2),u=2,c=2)):(p.uniform1i(d.fogType,0),u=0,c=0);for(var x=0,_=e.length;x<_;x++){var w=e[x];w.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,w.matrixWorld),w.z=-w.modelViewMatrix.elements[14]}e.sort(r);for(var M=[],x=0,_=e.length;x<_;x++){var w=e[x],S=w.material;if(!1!==S.visible){p.uniform1f(d.alphaTest,S.alphaTest),p.uniformMatrix4fv(d.modelViewMatrix,!1,w.modelViewMatrix.elements),w.matrixWorld.decompose(g,v,y),M[0]=y.x,M[1]=y.y;var E=0;i.fog&&S.fog&&(E=c),u!==E&&(p.uniform1i(d.fogType,E),u=E),null!==S.map?(p.uniform2f(d.uvOffset,S.map.offset.x,S.map.offset.y),p.uniform2f(d.uvScale,S.map.repeat.x,S.map.repeat.y)):(p.uniform2f(d.uvOffset,0,0),p.uniform2f(d.uvScale,1,1)),p.uniform1f(d.opacity,S.opacity),p.uniform3f(d.color,S.color.r,S.color.g,S.color.b),p.uniform1f(d.rotation,S.rotation),p.uniform2fv(d.scale,M),m.setBlending(S.blending,S.blendEquation,S.blendSrc,S.blendDst),m.setDepthTest(S.depthTest),m.setDepthWrite(S.depthWrite),S.map?t.setTexture2D(S.map,0):t.setTexture2D(f,0),p.drawElements(p.TRIANGLES,6,p.UNSIGNED_SHORT,0)}}m.enable(p.CULL_FACE),t.resetGLState()}}}function J(){Object.defineProperty(this,\"id\",{value:Es++}),this.uuid=fs.generateUUID(),this.name=\"\",this.type=\"Material\",this.fog=!0,this.lights=!0,this.blending=ma,this.side=oa,this.shading=ca,this.vertexColors=ha,this.opacity=1,this.transparent=!1,this.blendSrc=Pa,this.blendDst=Oa,this.blendEquation=xa,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=Fa,this.depthTest=!0,this.depthWrite=!0,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.alphaTest=0,this.premultipliedAlpha=!1,this.overdraw=0,this.visible=!0,this._needsUpdate=!0}function $(t){J.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,void 0!==t&&(void 0!==t.attributes&&console.error(\"THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead.\"),this.setValues(t))}function tt(t){J.call(this),this.type=\"MeshDepthMaterial\",this.depthPacking=hs,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(t)}function et(t,e){this.min=void 0!==t?t:new c(1/0,1/0,1/0),this.max=void 0!==e?e:new c(-1/0,-1/0,-1/0)}function nt(t,e){this.center=void 0!==t?t:new c,this.radius=void 0!==e?e:0}function it(){this.elements=new Float32Array([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.\")}function rt(t,e){this.normal=void 0!==t?t:new c(1,0,0),this.constant=void 0!==e?e:0}function at(t,e,n,i,r,a){this.planes=[void 0!==t?t:new rt,void 0!==e?e:new rt,void 0!==n?n:new rt,void 0!==i?i:new rt,void 0!==r?r:new rt,void 0!==a?a:new rt]}function ot(t,e,n,i){function a(e,n,i,r){var a=e.geometry,o=null,s=S,l=e.customDepthMaterial;if(i&&(s=E,l=e.customDistanceMaterial),l)o=l;else{var u=!1;n.morphTargets&&(a&&a.isBufferGeometry?u=a.morphAttributes&&a.morphAttributes.position&&a.morphAttributes.position.length>0:a&&a.isGeometry&&(u=a.morphTargets&&a.morphTargets.length>0));var c=e.isSkinnedMesh&&n.skinning,h=0;u&&(h|=_),c&&(h|=w),o=s[h]}if(t.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var d=o.uuid,f=n.uuid,p=k[d];void 0===p&&(p={},k[d]=p);var m=p[f];void 0===m&&(m=o.clone(),p[f]=m),o=m}o.visible=n.visible,o.wireframe=n.wireframe;var g=n.side;return B.renderSingleSided&&g==la&&(g=oa),B.renderReverseSided&&(g===oa?g=sa:g===sa&&(g=oa)),o.side=g,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,i&&void 0!==o.uniforms.lightPos&&o.uniforms.lightPos.value.copy(r),o}function l(t,e,n){if(!1!==t.visible){if(0!=(t.layers.mask&e.layers.mask)&&(t.isMesh||t.isLine||t.isPoints)&&t.castShadow&&(!1===t.frustumCulled||!0===f.intersectsObject(t))){!0===t.material.visible&&(t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),x.push(t))}for(var i=t.children,r=0,a=i.length;rn&&(n=t[e]);return n}function Tt(){return Ts++}function Ct(){Object.defineProperty(this,\"id\",{value:Tt()}),this.uuid=fs.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 Pt(){Object.defineProperty(this,\"id\",{value:Tt()}),this.uuid=fs.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}}function Ot(t,e){ct.call(this),this.type=\"Mesh\",this.geometry=void 0!==t?t:new Pt,this.material=void 0!==e?e:new pt({color:16777215*Math.random()}),this.drawMode=ts,this.updateMorphTargets()}function At(t,e,n,i,r,a){Ct.call(this),this.type=\"BoxGeometry\",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:a},this.fromBufferGeometry(new Rt(t,e,n,i,r,a)),this.mergeVertices()}function Rt(t,e,n,i,r,a){function o(t,e,n,i,r,a,o,m,g,v,y){var b,x,_=a/g,w=o/v,M=a/2,S=o/2,E=m/2,k=g+1,T=v+1,C=0,P=0,O=new c;for(x=0;x0?1:-1,h.push(O.x,O.y,O.z),d.push(b/g),d.push(1-x/v),C+=1}}for(x=0;x\");return Jt(n)}var n=/#include +<([\\w\\d.]+)>/g;return t.replace(n,e)}function $t(t){function e(t,e,n,i){for(var r=\"\",a=parseInt(e);a0?t.gammaFactor:1,g=Yt(a,i,t.extensions),v=Xt(o),y=r.createProgram();n.isRawShaderMaterial?(f=[v,\"\\n\"].filter(Kt).join(\"\\n\"),p=[g,v,\"\\n\"].filter(Kt).join(\"\\n\")):(f=[\"precision \"+i.precision+\" float;\",\"precision \"+i.precision+\" int;\",\"#define SHADER_NAME \"+n.__webglShader.name,v,i.supportsVertexTextures?\"#define VERTEX_TEXTURES\":\"\",\"#define GAMMA_FACTOR \"+m,\"#define MAX_BONES \"+i.maxBones,i.useFog&&i.fog?\"#define USE_FOG\":\"\",i.useFog&&i.fogExp?\"#define FOG_EXP2\":\"\",i.map?\"#define USE_MAP\":\"\",i.envMap?\"#define USE_ENVMAP\":\"\",i.envMap?\"#define \"+h:\"\",i.lightMap?\"#define USE_LIGHTMAP\":\"\",i.aoMap?\"#define USE_AOMAP\":\"\",i.emissiveMap?\"#define USE_EMISSIVEMAP\":\"\",i.bumpMap?\"#define USE_BUMPMAP\":\"\",i.normalMap?\"#define USE_NORMALMAP\":\"\",i.displacementMap&&i.supportsVertexTextures?\"#define USE_DISPLACEMENTMAP\":\"\",i.specularMap?\"#define USE_SPECULARMAP\":\"\",i.roughnessMap?\"#define USE_ROUGHNESSMAP\":\"\",i.metalnessMap?\"#define USE_METALNESSMAP\":\"\",i.alphaMap?\"#define USE_ALPHAMAP\":\"\",i.vertexColors?\"#define USE_COLOR\":\"\",i.flatShading?\"#define FLAT_SHADED\":\"\",i.skinning?\"#define USE_SKINNING\":\"\",i.useVertexTexture?\"#define BONE_TEXTURE\":\"\",i.morphTargets?\"#define USE_MORPHTARGETS\":\"\",i.morphNormals&&!1===i.flatShading?\"#define USE_MORPHNORMALS\":\"\",i.doubleSided?\"#define DOUBLE_SIDED\":\"\",i.flipSided?\"#define FLIP_SIDED\":\"\",\"#define NUM_CLIPPING_PLANES \"+i.numClippingPlanes,i.shadowMapEnabled?\"#define USE_SHADOWMAP\":\"\",i.shadowMapEnabled?\"#define \"+u:\"\",i.sizeAttenuation?\"#define USE_SIZEATTENUATION\":\"\",i.logarithmicDepthBuffer?\"#define USE_LOGDEPTHBUF\":\"\",i.logarithmicDepthBuffer&&t.extensions.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(Kt).join(\"\\n\"),p=[g,\"precision \"+i.precision+\" float;\",\"precision \"+i.precision+\" int;\",\"#define SHADER_NAME \"+n.__webglShader.name,v,i.alphaTest?\"#define ALPHATEST \"+i.alphaTest:\"\",\"#define GAMMA_FACTOR \"+m,i.useFog&&i.fog?\"#define USE_FOG\":\"\",i.useFog&&i.fogExp?\"#define FOG_EXP2\":\"\",i.map?\"#define USE_MAP\":\"\",i.envMap?\"#define USE_ENVMAP\":\"\",i.envMap?\"#define \"+c:\"\",i.envMap?\"#define \"+h:\"\",i.envMap?\"#define \"+d:\"\",i.lightMap?\"#define USE_LIGHTMAP\":\"\",i.aoMap?\"#define USE_AOMAP\":\"\",i.emissiveMap?\"#define USE_EMISSIVEMAP\":\"\",i.bumpMap?\"#define USE_BUMPMAP\":\"\",i.normalMap?\"#define USE_NORMALMAP\":\"\",i.specularMap?\"#define USE_SPECULARMAP\":\"\",i.roughnessMap?\"#define USE_ROUGHNESSMAP\":\"\",i.metalnessMap?\"#define USE_METALNESSMAP\":\"\",i.alphaMap?\"#define USE_ALPHAMAP\":\"\",i.vertexColors?\"#define USE_COLOR\":\"\",i.gradientMap?\"#define USE_GRADIENTMAP\":\"\",i.flatShading?\"#define FLAT_SHADED\":\"\",i.doubleSided?\"#define DOUBLE_SIDED\":\"\",i.flipSided?\"#define FLIP_SIDED\":\"\",\"#define NUM_CLIPPING_PLANES \"+i.numClippingPlanes,\"#define UNION_CLIPPING_PLANES \"+(i.numClippingPlanes-i.numClipIntersection),i.shadowMapEnabled?\"#define USE_SHADOWMAP\":\"\",i.shadowMapEnabled?\"#define \"+u:\"\",i.premultipliedAlpha?\"#define PREMULTIPLIED_ALPHA\":\"\",i.physicallyCorrectLights?\"#define PHYSICALLY_CORRECT_LIGHTS\":\"\",i.logarithmicDepthBuffer?\"#define USE_LOGDEPTHBUF\":\"\",i.logarithmicDepthBuffer&&t.extensions.get(\"EXT_frag_depth\")?\"#define USE_LOGDEPTHBUF_EXT\":\"\",i.envMap&&t.extensions.get(\"EXT_shader_texture_lod\")?\"#define TEXTURE_LOD_EXT\":\"\",\"uniform mat4 viewMatrix;\",\"uniform vec3 cameraPosition;\",i.toneMapping!==Ya?\"#define TONE_MAPPING\":\"\",i.toneMapping!==Ya?_s.tonemapping_pars_fragment:\"\",i.toneMapping!==Ya?qt(\"toneMapping\",i.toneMapping):\"\",i.outputEncoding||i.mapEncoding||i.envMapEncoding||i.emissiveMapEncoding?_s.encodings_pars_fragment:\"\",i.mapEncoding?Vt(\"mapTexelToLinear\",i.mapEncoding):\"\",i.envMapEncoding?Vt(\"envMapTexelToLinear\",i.envMapEncoding):\"\",i.emissiveMapEncoding?Vt(\"emissiveMapTexelToLinear\",i.emissiveMapEncoding):\"\",i.outputEncoding?Ht(\"linearToOutputTexel\",i.outputEncoding):\"\",i.depthPacking?\"#define DEPTH_PACKING \"+n.depthPacking:\"\",\"\\n\"].filter(Kt).join(\"\\n\")),s=Jt(s,i),s=Qt(s,i),l=Jt(l,i),l=Qt(l,i),n.isShaderMaterial||(s=$t(s),l=$t(l));var b=f+s,x=p+l,_=Wt(r,r.VERTEX_SHADER,b),w=Wt(r,r.FRAGMENT_SHADER,x);r.attachShader(y,_),r.attachShader(y,w),void 0!==n.index0AttributeName?r.bindAttribLocation(y,0,n.index0AttributeName):!0===i.morphTargets&&r.bindAttribLocation(y,0,\"position\"),r.linkProgram(y);var M=r.getProgramInfoLog(y),S=r.getShaderInfoLog(_),E=r.getShaderInfoLog(w),k=!0,T=!0;!1===r.getProgramParameter(y,r.LINK_STATUS)?(k=!1,console.error(\"THREE.WebGLProgram: shader error: \",r.getError(),\"gl.VALIDATE_STATUS\",r.getProgramParameter(y,r.VALIDATE_STATUS),\"gl.getProgramInfoLog\",M,S,E)):\"\"!==M?console.warn(\"THREE.WebGLProgram: gl.getProgramInfoLog()\",M):\"\"!==S&&\"\"!==E||(T=!1),T&&(this.diagnostics={runnable:k,material:n,programLog:M,vertexShader:{log:S,prefix:f},fragmentShader:{log:E,prefix:p}}),r.deleteShader(_),r.deleteShader(w);var C;this.getUniforms=function(){return void 0===C&&(C=new q(r,y,t)),C};var P;return this.getAttributes=function(){return void 0===P&&(P=Zt(r,y)),P},this.destroy=function(){r.deleteProgram(y),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.id=Cs++,this.code=e,this.usedTimes=1,this.program=y,this.vertexShader=_,this.fragmentShader=w,this}function ee(t,e){function n(t){if(e.floatVertexTextures&&t&&t.skeleton&&t.skeleton.useVertexTexture)return 1024;var n=e.maxVertexUniforms,i=Math.floor((n-20)/4),r=i;return void 0!==t&&t&&t.isSkinnedMesh&&(r=Math.min(t.skeleton.bones.length,r))0,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:r.premultipliedAlpha,alphaTest:r.alphaTest,doubleSided:r.side===la,flipSided:r.side===sa,depthPacking:void 0!==r.depthPacking&&r.depthPacking}},this.getProgramCode=function(t,e){var n=[];if(e.shaderID?n.push(e.shaderID):(n.push(t.fragmentShader),n.push(t.vertexShader)),void 0!==t.defines)for(var i in t.defines)n.push(i),n.push(t.defines[i]);for(var r=0;r65535?wt:xt)(a,1);return r(p,t.ELEMENT_ARRAY_BUFFER),i.wireframe=p,p}var c=new ne(t,e,n);return{getAttributeBuffer:s,getAttributeProperties:l,getWireframeAttribute:u,update:i}}function re(t,e,n,i,r,a,o){function s(t,e){if(t.width>e||t.height>e){var n=e/Math.max(t.width,t.height),i=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");i.width=Math.floor(t.width*n),i.height=Math.floor(t.height*n);return i.getContext(\"2d\").drawImage(t,0,0,t.width,t.height,0,0,i.width,i.height),console.warn(\"THREE.WebGLRenderer: image is too big (\"+t.width+\"x\"+t.height+\"). Resized to \"+i.width+\"x\"+i.height,t),i}return t}function l(t){return fs.isPowerOfTwo(t.width)&&fs.isPowerOfTwo(t.height)}function u(t){if(t instanceof HTMLImageElement||t instanceof HTMLCanvasElement){var e=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\");e.width=fs.nearestPowerOfTwo(t.width),e.height=fs.nearestPowerOfTwo(t.height);return e.getContext(\"2d\").drawImage(t,0,0,e.width,e.height),console.warn(\"THREE.WebGLRenderer: image is not power of two (\"+t.width+\"x\"+t.height+\"). Resized to \"+e.width+\"x\"+e.height,t),e}return t}function c(t){return t.wrapS!==so||t.wrapT!==so||t.minFilter!==uo&&t.minFilter!==fo}function h(e){return e===uo||e===co||e===ho?t.NEAREST:t.LINEAR}function d(t){var e=t.target;e.removeEventListener(\"dispose\",d),p(e),T.textures--}function f(t){var e=t.target;e.removeEventListener(\"dispose\",f),m(e),T.textures--}function p(e){var n=i.get(e);if(e.image&&n.__image__webglTextureCube)t.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)return;t.deleteTexture(n.__webglTexture)}i.delete(e)}function m(e){var n=i.get(e),r=i.get(e.texture);if(e){if(void 0!==r.__webglTexture&&t.deleteTexture(r.__webglTexture),e.depthTexture&&e.depthTexture.dispose(),e.isWebGLRenderTargetCube)for(var a=0;a<6;a++)t.deleteFramebuffer(n.__webglFramebuffer[a]),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer[a]);else t.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer);i.delete(e.texture),i.delete(e)}}function g(e,r){var a=i.get(e);if(e.version>0&&a.__version!==e.version){var o=e.image;if(void 0===o)console.warn(\"THREE.WebGLRenderer: Texture marked for update but image is undefined\",e);else{if(!1!==o.complete)return void x(a,e,r);console.warn(\"THREE.WebGLRenderer: Texture marked for update but image is incomplete\",e)}}n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_2D,a.__webglTexture)}function v(e,o){var u=i.get(e);if(6===e.image.length)if(e.version>0&&u.__version!==e.version){u.__image__webglTextureCube||(e.addEventListener(\"dispose\",d),u.__image__webglTextureCube=t.createTexture(),T.textures++),n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_CUBE_MAP,u.__image__webglTextureCube),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e.flipY);for(var c=e&&e.isCompressedTexture,h=e.image[0]&&e.image[0].isDataTexture,f=[],p=0;p<6;p++)f[p]=c||h?h?e.image[p].image:e.image[p]:s(e.image[p],r.maxCubemapSize);var m=f[0],g=l(m),v=a(e.format),y=a(e.type);b(t.TEXTURE_CUBE_MAP,e,g);for(var p=0;p<6;p++)if(c)for(var x,_=f[p].mipmaps,w=0,M=_.length;w-1?n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,x.width,x.height,0,x.data):console.warn(\"THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()\"):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,w,v,x.width,x.height,0,v,y,x.data);else h?n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,f[p].width,f[p].height,0,v,y,f[p].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+p,0,v,v,y,f[p]);e.generateMipmaps&&g&&t.generateMipmap(t.TEXTURE_CUBE_MAP),u.__version=e.version,e.onUpdate&&e.onUpdate(e)}else n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_CUBE_MAP,u.__image__webglTextureCube)}function y(e,r){n.activeTexture(t.TEXTURE0+r),n.bindTexture(t.TEXTURE_CUBE_MAP,i.get(e).__webglTexture)}function b(n,o,s){var l;if(s?(t.texParameteri(n,t.TEXTURE_WRAP_S,a(o.wrapS)),t.texParameteri(n,t.TEXTURE_WRAP_T,a(o.wrapT)),t.texParameteri(n,t.TEXTURE_MAG_FILTER,a(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,a(o.minFilter))):(t.texParameteri(n,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(n,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),o.wrapS===so&&o.wrapT===so||console.warn(\"THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.\",o),t.texParameteri(n,t.TEXTURE_MAG_FILTER,h(o.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,h(o.minFilter)),o.minFilter!==uo&&o.minFilter!==fo&&console.warn(\"THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.\",o)),l=e.get(\"EXT_texture_filter_anisotropic\")){if(o.type===wo&&null===e.get(\"OES_texture_float_linear\"))return;if(o.type===Mo&&null===e.get(\"OES_texture_half_float_linear\"))return;(o.anisotropy>1||i.get(o).__currentAnisotropy)&&(t.texParameterf(n,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy)}}function x(e,i,o){void 0===e.__webglInit&&(e.__webglInit=!0,i.addEventListener(\"dispose\",d),e.__webglTexture=t.createTexture(),T.textures++),n.activeTexture(t.TEXTURE0+o),n.bindTexture(t.TEXTURE_2D,e.__webglTexture),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,i.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,i.unpackAlignment);var h=s(i.image,r.maxTextureSize);c(i)&&!1===l(h)&&(h=u(h));var f=l(h),p=a(i.format),m=a(i.type);b(t.TEXTURE_2D,i,f);var g,v=i.mipmaps;if(i.isDepthTexture){var y=t.DEPTH_COMPONENT;if(i.type===wo){if(!C)throw new Error(\"Float Depth Texture only supported in WebGL2.0\");y=t.DEPTH_COMPONENT32F}else C&&(y=t.DEPTH_COMPONENT16);i.format===Io&&y===t.DEPTH_COMPONENT&&i.type!==bo&&i.type!==_o&&(console.warn(\"THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.\"),i.type=bo,m=a(i.type)),i.format===Do&&(y=t.DEPTH_STENCIL,i.type!==To&&(console.warn(\"THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture.\"),i.type=To,m=a(i.type))),n.texImage2D(t.TEXTURE_2D,0,y,h.width,h.height,0,p,m,null)}else if(i.isDataTexture)if(v.length>0&&f){for(var x=0,_=v.length;x<_;x++)g=v[x],n.texImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,p,m,g.data);i.generateMipmaps=!1}else n.texImage2D(t.TEXTURE_2D,0,p,h.width,h.height,0,p,m,h.data);else if(i.isCompressedTexture)for(var x=0,_=v.length;x<_;x++)g=v[x],i.format!==Oo&&i.format!==Po?n.getCompressedTextureFormats().indexOf(p)>-1?n.compressedTexImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,g.data):console.warn(\"THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()\"):n.texImage2D(t.TEXTURE_2D,x,p,g.width,g.height,0,p,m,g.data);else if(v.length>0&&f){for(var x=0,_=v.length;x<_;x++)g=v[x],n.texImage2D(t.TEXTURE_2D,x,p,p,m,g);i.generateMipmaps=!1}else n.texImage2D(t.TEXTURE_2D,0,p,p,m,h);i.generateMipmaps&&f&&t.generateMipmap(t.TEXTURE_2D),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function _(e,r,o,s){var l=a(r.texture.format),u=a(r.texture.type);n.texImage2D(s,0,l,r.width,r.height,0,l,u,null),t.bindFramebuffer(t.FRAMEBUFFER,e),t.framebufferTexture2D(t.FRAMEBUFFER,o,s,i.get(r.texture).__webglTexture,0),t.bindFramebuffer(t.FRAMEBUFFER,null)}function w(e,n){t.bindRenderbuffer(t.RENDERBUFFER,e),n.depthBuffer&&!n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e)):n.depthBuffer&&n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e)):t.renderbufferStorage(t.RENDERBUFFER,t.RGBA4,n.width,n.height),t.bindRenderbuffer(t.RENDERBUFFER,null)}function M(e,n){if(n&&n.isWebGLRenderTargetCube)throw new Error(\"Depth Texture with cube render targets is not supported!\");if(t.bindFramebuffer(t.FRAMEBUFFER,e),!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===Io)t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,r,0);else{if(n.depthTexture.format!==Do)throw new Error(\"Unknown depthTexture format\");t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,r,0)}}function S(e){var n=i.get(e),r=!0===e.isWebGLRenderTargetCube;if(e.depthTexture){if(r)throw new Error(\"target.depthTexture not supported in Cube render targets\");M(n.__webglFramebuffer,e)}else if(r){n.__webglDepthbuffer=[];for(var a=0;a<6;a++)t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer[a]),n.__webglDepthbuffer[a]=t.createRenderbuffer(),w(n.__webglDepthbuffer[a],e)}else t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer),n.__webglDepthbuffer=t.createRenderbuffer(),w(n.__webglDepthbuffer,e);t.bindFramebuffer(t.FRAMEBUFFER,null)}function E(e){var r=i.get(e),a=i.get(e.texture);e.addEventListener(\"dispose\",f),a.__webglTexture=t.createTexture(),T.textures++;var o=!0===e.isWebGLRenderTargetCube,s=l(e);if(o){r.__webglFramebuffer=[];for(var u=0;u<6;u++)r.__webglFramebuffer[u]=t.createFramebuffer()}else r.__webglFramebuffer=t.createFramebuffer();if(o){n.bindTexture(t.TEXTURE_CUBE_MAP,a.__webglTexture),b(t.TEXTURE_CUBE_MAP,e.texture,s);for(var u=0;u<6;u++)_(r.__webglFramebuffer[u],e,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+u);e.texture.generateMipmaps&&s&&t.generateMipmap(t.TEXTURE_CUBE_MAP),n.bindTexture(t.TEXTURE_CUBE_MAP,null)}else n.bindTexture(t.TEXTURE_2D,a.__webglTexture),b(t.TEXTURE_2D,e.texture,s),_(r.__webglFramebuffer,e,t.COLOR_ATTACHMENT0,t.TEXTURE_2D),e.texture.generateMipmaps&&s&&t.generateMipmap(t.TEXTURE_2D),n.bindTexture(t.TEXTURE_2D,null);e.depthBuffer&&S(e)}function k(e){var r=e.texture;if(r.generateMipmaps&&l(e)&&r.minFilter!==uo&&r.minFilter!==fo){var a=e&&e.isWebGLRenderTargetCube?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,o=i.get(r).__webglTexture;n.bindTexture(a,o),t.generateMipmap(a),n.bindTexture(a,null)}}var T=o.memory,C=\"undefined\"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext;this.setTexture2D=g,this.setTextureCube=v,this.setTextureCubeDynamic=y,this.setupRenderTarget=E,this.updateRenderTargetMipmap=k}function ae(){var t={};return{get:function(e){var n=e.uuid,i=t[n];return void 0===i&&(i={},t[n]=i),i},delete:function(e){delete t[e.uuid]},clear:function(){t={}}}}function oe(t,e,n){function i(){var e=!1,n=new o,i=null,r=new o;return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,a,o,s){!0===s&&(e*=o,i*=o,a*=o),n.set(e,i,a,o),!1===r.equals(n)&&(t.clearColor(e,i,a,o),r.copy(n))},reset:function(){e=!1,i=null,r.set(0,0,0,1)}}}function r(){var e=!1,n=null,i=null,r=null;return{setTest:function(e){e?f(t.DEPTH_TEST):p(t.DEPTH_TEST)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case Na:t.depthFunc(t.NEVER);break;case za:t.depthFunc(t.ALWAYS);break;case Ba:t.depthFunc(t.LESS);break;case Fa:t.depthFunc(t.LEQUAL);break;case Ua:t.depthFunc(t.EQUAL);break;case ja:t.depthFunc(t.GEQUAL);break;case Wa:t.depthFunc(t.GREATER);break;case Ga:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}else t.depthFunc(t.LEQUAL);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}}function a(){var e=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,u=null;return{setTest:function(e){e?f(t.STENCIL_TEST):p(t.STENCIL_TEST)},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,o){i===e&&r===n&&a===o||(t.stencilFunc(e,n,o),i=e,r=n,a=o)},setOp:function(e,n,i){o===e&&s===n&&l===i||(t.stencilOp(e,n,i),o=e,s=n,l=i)},setLocked:function(t){e=t},setClear:function(e){u!==e&&(t.clearStencil(e),u=e)},reset:function(){e=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,u=null}}}function s(e,n,i){var r=new Uint8Array(4),a=t.createTexture();t.bindTexture(e,a),t.texParameteri(e,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(e,t.TEXTURE_MAG_FILTER,t.NEAREST);for(var o=0;o=1,ct=null,ht={},dt=new o,ft=new o,pt={};return pt[t.TEXTURE_2D]=s(t.TEXTURE_2D,t.TEXTURE_2D,1),pt[t.TEXTURE_CUBE_MAP]=s(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),{buffers:{color:B,depth:F,stencil:U},init:l,initAttributes:u,enableAttribute:c,enableAttributeAndDivisor:h,disableUnusedAttributes:d,enable:f,disable:p,getCompressedTextureFormats:m,setBlending:g,setColorWrite:v,setDepthTest:y,setDepthWrite:b,setDepthFunc:x,setStencilTest:_,setStencilWrite:w,setStencilFunc:M,setStencilOp:S,setFlipSided:E,setCullFace:k,setLineWidth:T,setPolygonOffset:C,getScissorTest:P,setScissorTest:O,activeTexture:A,bindTexture:R,compressedTexImage2D:L,texImage2D:I,scissor:D,viewport:N,reset:z}}function se(t,e,n){function i(){if(void 0!==a)return a;var n=e.get(\"EXT_texture_filter_anisotropic\");return a=null!==n?t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}function r(e){if(\"highp\"===e){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return\"highp\";e=\"mediump\"}return\"mediump\"===e&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?\"mediump\":\"lowp\"}var a,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&&!!e.get(\"EXT_frag_depth\"),u=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),c=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_TEXTURE_SIZE),d=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),f=t.getParameter(t.MAX_VERTEX_ATTRIBS),p=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),m=t.getParameter(t.MAX_VARYING_VECTORS),g=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),v=c>0,y=!!e.get(\"OES_texture_float\");return{getMaxAnisotropy:i,getMaxPrecision:r,precision:o,logarithmicDepthBuffer:l,maxTextures:u,maxVertexTextures:c,maxTextureSize:h,maxCubemapSize:d,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:g,vertexTextures:v,floatFragmentTextures:y,floatVertexTextures:v&&y}}function le(t){var e={};return{get:function(n){if(void 0!==e[n])return e[n];var i;switch(n){case\"WEBGL_depth_texture\":i=t.getExtension(\"WEBGL_depth_texture\")||t.getExtension(\"MOZ_WEBGL_depth_texture\")||t.getExtension(\"WEBKIT_WEBGL_depth_texture\");break;case\"EXT_texture_filter_anisotropic\":i=t.getExtension(\"EXT_texture_filter_anisotropic\")||t.getExtension(\"MOZ_EXT_texture_filter_anisotropic\")||t.getExtension(\"WEBKIT_EXT_texture_filter_anisotropic\");break;case\"WEBGL_compressed_texture_s3tc\":i=t.getExtension(\"WEBGL_compressed_texture_s3tc\")||t.getExtension(\"MOZ_WEBGL_compressed_texture_s3tc\")||t.getExtension(\"WEBKIT_WEBGL_compressed_texture_s3tc\");break;case\"WEBGL_compressed_texture_pvrtc\":i=t.getExtension(\"WEBGL_compressed_texture_pvrtc\")||t.getExtension(\"WEBKIT_WEBGL_compressed_texture_pvrtc\");break;case\"WEBGL_compressed_texture_etc1\":i=t.getExtension(\"WEBGL_compressed_texture_etc1\");break;default:i=t.getExtension(n)}return null===i&&console.warn(\"THREE.WebGLRenderer: \"+n+\" extension not supported.\"),e[n]=i,i}}}function ue(){function t(){u.value!==i&&(u.value=i,u.needsUpdate=r>0),n.numPlanes=r,n.numIntersection=0}function e(t,e,i,r){var a=null!==t?t.length:0,o=null;if(0!==a){if(o=u.value,!0!==r||null===o){var c=i+4*a,h=e.matrixWorldInverse;l.getNormalMatrix(h),(null===o||o.length=0){var c=a[l];if(void 0!==c){var h=c.normalized,d=c.itemSize,f=he.getAttributeProperties(c),p=f.__webglBuffer,m=f.type,g=f.bytesPerElement;if(c.isInterleavedBufferAttribute){var v=c.data,y=v.stride,b=c.offset;v&&v.isInstancedInterleavedBuffer?(te.enableAttributeAndDivisor(u,v.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=v.meshPerAttribute*v.count)):te.enableAttribute(u),Kt.bindBuffer(Kt.ARRAY_BUFFER,p),Kt.vertexAttribPointer(u,d,m,h,y*g,(i*y+b)*g)}else c.isInstancedBufferAttribute?(te.enableAttributeAndDivisor(u,c.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=c.meshPerAttribute*c.count)):te.enableAttribute(u),Kt.bindBuffer(Kt.ARRAY_BUFFER,p),Kt.vertexAttribPointer(u,d,m,h,0,i*d*g)}else if(void 0!==s){var x=s[l];if(void 0!==x)switch(x.length){case 2:Kt.vertexAttrib2fv(u,x);break;case 3:Kt.vertexAttrib3fv(u,x);break;case 4:Kt.vertexAttrib4fv(u,x);break;default:Kt.vertexAttrib1fv(u,x)}}}}te.disableUnusedAttributes()}function d(t,e){return Math.abs(e[0])-Math.abs(t[0])}function f(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.material.program&&e.material.program&&t.material.program!==e.material.program?t.material.program.id-e.material.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function p(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function m(t,e,n,i,r){var a,o;n.transparent?(a=it,o=++rt):(a=tt,o=++et);var s=a[o];void 0!==s?(s.id=t.id,s.object=t,s.geometry=e,s.material=n,s.z=Ht.z,s.group=r):(s={id:t.id,object:t,geometry:e,material:n,z:Ht.z,group:r},a.push(s))}function g(t){var e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Gt.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),y(Gt)}function v(t){return Gt.center.set(0,0,0),Gt.radius=.7071067811865476,Gt.applyMatrix4(t.matrixWorld),y(Gt)}function y(t){if(!Lt.intersectsSphere(t))return!1;var e=Dt.numPlanes;if(0===e)return!0;var n=ct.clippingPlanes,i=t.center,r=-t.radius,a=0;do{if(n[a].distanceToPoint(i)=0&&t.numSupportedMorphTargets++}if(t.morphNormals){t.numSupportedMorphNormals=0;for(var d=0;d=0&&t.numSupportedMorphNormals++}var f=i.__webglShader.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(i.numClippingPlanes=Dt.numPlanes,i.numIntersection=Dt.numIntersection,f.clippingPlanes=Dt.uniform),i.fog=e,i.lightsHash=Xt.hash,t.lights&&(f.ambientLightColor.value=Xt.ambient,f.directionalLights.value=Xt.directional,f.spotLights.value=Xt.spot,f.rectAreaLights.value=Xt.rectArea,f.pointLights.value=Xt.point,f.hemisphereLights.value=Xt.hemi,f.directionalShadowMap.value=Xt.directionalShadowMap,f.directionalShadowMatrix.value=Xt.directionalShadowMatrix,f.spotShadowMap.value=Xt.spotShadowMap,f.spotShadowMatrix.value=Xt.spotShadowMatrix,f.pointShadowMap.value=Xt.pointShadowMap,f.pointShadowMatrix.value=Xt.pointShadowMatrix);var p=i.program.getUniforms(),m=q.seqWithValue(p.seq,f);i.uniformsList=m}function w(t){t.side===la?te.disable(Kt.CULL_FACE):te.enable(Kt.CULL_FACE),te.setFlipSided(t.side===sa),!0===t.transparent?te.setBlending(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha):te.setBlending(pa),te.setDepthFunc(t.depthFunc),te.setDepthTest(t.depthTest),te.setDepthWrite(t.depthWrite),te.setColorWrite(t.colorWrite),te.setPolygonOffset(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits)}function M(t,e,n,i){_t=0;var r=ne.get(n);if(jt&&(Wt||t!==vt)){var a=t===vt&&n.id===mt;Dt.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,t,r,a)}!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==e?n.needsUpdate=!0:n.lights&&r.lightsHash!==Xt.hash?n.needsUpdate=!0:void 0===r.numClippingPlanes||r.numClippingPlanes===Dt.numPlanes&&r.numIntersection===Dt.numIntersection||(n.needsUpdate=!0)),n.needsUpdate&&(_(n,e,i),n.needsUpdate=!1);var o=!1,s=!1,l=!1,u=r.program,c=u.getUniforms(),h=r.__webglShader.uniforms;if(u.id!==ht&&(Kt.useProgram(u.program),ht=u.id,o=!0,s=!0,l=!0),n.id!==mt&&(mt=n.id,s=!0),o||t!==vt){if(c.set(Kt,t,\"projectionMatrix\"),$t.logarithmicDepthBuffer&&c.setValue(Kt,\"logDepthBufFC\",2/(Math.log(t.far+1)/Math.LN2)),t!==vt&&(vt=t,s=!0,l=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var d=c.map.cameraPosition;void 0!==d&&d.setValue(Kt,Ht.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&c.setValue(Kt,\"viewMatrix\",t.matrixWorldInverse),c.set(Kt,ct,\"toneMappingExposure\"),c.set(Kt,ct,\"toneMappingWhitePoint\")}if(n.skinning){c.setOptional(Kt,i,\"bindMatrix\"),c.setOptional(Kt,i,\"bindMatrixInverse\");var f=i.skeleton;f&&($t.floatVertexTextures&&f.useVertexTexture?(c.set(Kt,f,\"boneTexture\"),c.set(Kt,f,\"boneTextureWidth\"),c.set(Kt,f,\"boneTextureHeight\")):c.setOptional(Kt,f,\"boneMatrices\"))}return s&&(n.lights&&D(h,l),e&&n.fog&&C(h,e),(n.isMeshBasicMaterial||n.isMeshLambertMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.isMeshNormalMaterial||n.isMeshDepthMaterial)&&S(h,n),n.isLineBasicMaterial?E(h,n):n.isLineDashedMaterial?(E(h,n),k(h,n)):n.isPointsMaterial?T(h,n):n.isMeshLambertMaterial?P(h,n):n.isMeshToonMaterial?A(h,n):n.isMeshPhongMaterial?O(h,n):n.isMeshPhysicalMaterial?L(h,n):n.isMeshStandardMaterial?R(h,n):n.isMeshDepthMaterial?n.displacementMap&&(h.displacementMap.value=n.displacementMap,h.displacementScale.value=n.displacementScale,h.displacementBias.value=n.displacementBias):n.isMeshNormalMaterial&&I(h,n),void 0!==h.ltcMat&&(h.ltcMat.value=THREE.UniformsLib.LTC_MAT_TEXTURE),void 0!==h.ltcMag&&(h.ltcMag.value=THREE.UniformsLib.LTC_MAG_TEXTURE),q.upload(Kt,r.uniformsList,h,ct)),c.set(Kt,i,\"modelViewMatrix\"),c.set(Kt,i,\"normalMatrix\"),c.setValue(Kt,\"modelMatrix\",i.matrixWorld),u}function S(t,e){t.opacity.value=e.opacity,t.diffuse.value=e.color,e.emissive&&t.emissive.value.copy(e.emissive).multiplyScalar(e.emissiveIntensity),t.map.value=e.map,t.specularMap.value=e.specularMap,t.alphaMap.value=e.alphaMap,e.lightMap&&(t.lightMap.value=e.lightMap,t.lightMapIntensity.value=e.lightMapIntensity),e.aoMap&&(t.aoMap.value=e.aoMap,t.aoMapIntensity.value=e.aoMapIntensity);var n;if(e.map?n=e.map:e.specularMap?n=e.specularMap:e.displacementMap?n=e.displacementMap:e.normalMap?n=e.normalMap:e.bumpMap?n=e.bumpMap:e.roughnessMap?n=e.roughnessMap:e.metalnessMap?n=e.metalnessMap:e.alphaMap?n=e.alphaMap:e.emissiveMap&&(n=e.emissiveMap),void 0!==n){n.isWebGLRenderTarget&&(n=n.texture);var i=n.offset,r=n.repeat;t.offsetRepeat.value.set(i.x,i.y,r.x,r.y)}t.envMap.value=e.envMap,t.flipEnvMap.value=e.envMap&&e.envMap.isCubeTexture?-1:1,t.reflectivity.value=e.reflectivity,t.refractionRatio.value=e.refractionRatio}function E(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity}function k(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}function T(t,e){if(t.diffuse.value=e.color,t.opacity.value=e.opacity,t.size.value=e.size*kt,t.scale.value=.5*Et,t.map.value=e.map,null!==e.map){var n=e.map.offset,i=e.map.repeat;t.offsetRepeat.value.set(n.x,n.y,i.x,i.y)}}function C(t,e){t.fogColor.value=e.color,e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)}function P(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}function O(t,e){t.specular.value=e.specular,t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function A(t,e){O(t,e),e.gradientMap&&(t.gradientMap.value=e.gradientMap)}function R(t,e){t.roughness.value=e.roughness,t.metalness.value=e.metalness,e.roughnessMap&&(t.roughnessMap.value=e.roughnessMap),e.metalnessMap&&(t.metalnessMap.value=e.metalnessMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),e.envMap&&(t.envMapIntensity.value=e.envMapIntensity)}function L(t,e){t.clearCoat.value=e.clearCoat,t.clearCoatRoughness.value=e.clearCoatRoughness,R(t,e)}function I(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function D(t,e){t.ambientLightColor.needsUpdate=e,t.directionalLights.needsUpdate=e,t.pointLights.needsUpdate=e,t.spotLights.needsUpdate=e,t.rectAreaLights.needsUpdate=e,t.hemisphereLights.needsUpdate=e}function N(t){for(var e=0,n=0,i=t.length;n=$t.maxTextures&&console.warn(\"WebGLRenderer: trying to use \"+t+\" texture units while this GPU supports only \"+$t.maxTextures),_t+=1,t}function F(t){var e;if(t===oo)return Kt.REPEAT;if(t===so)return Kt.CLAMP_TO_EDGE;if(t===lo)return Kt.MIRRORED_REPEAT;if(t===uo)return Kt.NEAREST;if(t===co)return Kt.NEAREST_MIPMAP_NEAREST;if(t===ho)return Kt.NEAREST_MIPMAP_LINEAR;if(t===fo)return Kt.LINEAR;if(t===po)return Kt.LINEAR_MIPMAP_NEAREST;if(t===mo)return Kt.LINEAR_MIPMAP_LINEAR;if(t===go)return Kt.UNSIGNED_BYTE;if(t===So)return Kt.UNSIGNED_SHORT_4_4_4_4;if(t===Eo)return Kt.UNSIGNED_SHORT_5_5_5_1;if(t===ko)return Kt.UNSIGNED_SHORT_5_6_5;if(t===vo)return Kt.BYTE;if(t===yo)return Kt.SHORT;if(t===bo)return Kt.UNSIGNED_SHORT;if(t===xo)return Kt.INT;if(t===_o)return Kt.UNSIGNED_INT;if(t===wo)return Kt.FLOAT;if(t===Mo&&null!==(e=Jt.get(\"OES_texture_half_float\")))return e.HALF_FLOAT_OES;if(t===Co)return Kt.ALPHA;if(t===Po)return Kt.RGB;if(t===Oo)return Kt.RGBA;if(t===Ao)return Kt.LUMINANCE;if(t===Ro)return Kt.LUMINANCE_ALPHA;if(t===Io)return Kt.DEPTH_COMPONENT;if(t===Do)return Kt.DEPTH_STENCIL;if(t===xa)return Kt.FUNC_ADD;if(t===_a)return Kt.FUNC_SUBTRACT;if(t===wa)return Kt.FUNC_REVERSE_SUBTRACT;if(t===Ea)return Kt.ZERO;if(t===ka)return Kt.ONE;if(t===Ta)return Kt.SRC_COLOR;if(t===Ca)return Kt.ONE_MINUS_SRC_COLOR;if(t===Pa)return Kt.SRC_ALPHA;if(t===Oa)return Kt.ONE_MINUS_SRC_ALPHA;if(t===Aa)return Kt.DST_ALPHA;if(t===Ra)return Kt.ONE_MINUS_DST_ALPHA;if(t===La)return Kt.DST_COLOR;if(t===Ia)return Kt.ONE_MINUS_DST_COLOR;if(t===Da)return Kt.SRC_ALPHA_SATURATE;if((t===No||t===zo||t===Bo||t===Fo)&&null!==(e=Jt.get(\"WEBGL_compressed_texture_s3tc\"))){if(t===No)return e.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===zo)return e.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===Bo)return e.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===Fo)return e.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((t===Uo||t===jo||t===Wo||t===Go)&&null!==(e=Jt.get(\"WEBGL_compressed_texture_pvrtc\"))){if(t===Uo)return e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===jo)return e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===Wo)return e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===Go)return e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(t===Vo&&null!==(e=Jt.get(\"WEBGL_compressed_texture_etc1\")))return e.COMPRESSED_RGB_ETC1_WEBGL;if((t===Ma||t===Sa)&&null!==(e=Jt.get(\"EXT_blend_minmax\"))){if(t===Ma)return e.MIN_EXT;if(t===Sa)return e.MAX_EXT}return t===To&&null!==(e=Jt.get(\"WEBGL_depth_texture\"))?e.UNSIGNED_INT_24_8_WEBGL:0}console.log(\"THREE.WebGLRenderer\",Zr),t=t||{};var U=void 0!==t.canvas?t.canvas:document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\"),j=void 0!==t.context?t.context:null,W=void 0!==t.alpha&&t.alpha,G=void 0===t.depth||t.depth,V=void 0===t.stencil||t.stencil,H=void 0!==t.antialias&&t.antialias,X=void 0===t.premultipliedAlpha||t.premultipliedAlpha,Z=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,J=[],tt=[],et=-1,it=[],rt=-1,st=new Float32Array(8),lt=[],ut=[];this.domElement=U,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=Xa,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var ct=this,ht=null,dt=null,ft=null,mt=-1,gt=\"\",vt=null,yt=new o,bt=null,xt=new o,_t=0,wt=new Y(0),Mt=0,St=U.width,Et=U.height,kt=1,Tt=new o(0,0,St,Et),Ct=!1,At=new o(0,0,St,Et),Lt=new at,Dt=new ue,jt=!1,Wt=!1,Gt=new nt,Vt=new h,Ht=new c,qt=new h,Yt=new h,Xt={hash:\"\",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],shadows:[]},Zt={calls:0,vertices:0,faces:0,points:0};this.info={render:Zt,memory:{geometries:0,textures:0},programs:null};var Kt;try{var Qt={alpha:W,depth:G,stencil:V,antialias:H,premultipliedAlpha:X,preserveDrawingBuffer:Z};if(null===(Kt=j||U.getContext(\"webgl\",Qt)||U.getContext(\"experimental-webgl\",Qt)))throw null!==U.getContext(\"webgl\")?\"Error creating WebGL context with your selected attributes.\":\"Error creating WebGL context.\";void 0===Kt.getShaderPrecisionFormat&&(Kt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}}),U.addEventListener(\"webglcontextlost\",r,!1)}catch(t){console.error(\"THREE.WebGLRenderer: \"+t)}var Jt=new le(Kt);Jt.get(\"WEBGL_depth_texture\"),Jt.get(\"OES_texture_float\"),Jt.get(\"OES_texture_float_linear\"),Jt.get(\"OES_texture_half_float\"),Jt.get(\"OES_texture_half_float_linear\"),Jt.get(\"OES_standard_derivatives\"),Jt.get(\"ANGLE_instanced_arrays\"),Jt.get(\"OES_element_index_uint\")&&(Pt.MaxIndex=4294967296);var $t=new se(Kt,Jt,t),te=new oe(Kt,Jt,F),ne=new ae,ce=new re(Kt,Jt,te,ne,$t,F,this.info),he=new ie(Kt,ne,this.info),de=new ee(this,$t),fe=new Ut;this.info.programs=de.programs;var pe,me,ge,ve,ye=new Ft(Kt,Jt,Zt),be=new Bt(Kt,Jt,Zt);n(),this.context=Kt,this.capabilities=$t,this.extensions=Jt,this.properties=ne,this.state=te;var xe=new ot(this,Xt,he,$t);this.shadowMap=xe;var _e=new Q(this,lt),we=new K(this,ut);this.getContext=function(){return Kt},this.getContextAttributes=function(){return Kt.getContextAttributes()},this.forceContextLoss=function(){Jt.get(\"WEBGL_lose_context\").loseContext()},this.getMaxAnisotropy=function(){return $t.getMaxAnisotropy()},this.getPrecision=function(){return $t.precision},this.getPixelRatio=function(){return kt},this.setPixelRatio=function(t){void 0!==t&&(kt=t,this.setSize(At.z,At.w,!1))},this.getSize=function(){return{width:St,height:Et}},this.setSize=function(t,e,n){St=t,Et=e,U.width=t*kt,U.height=e*kt,!1!==n&&(U.style.width=t+\"px\",U.style.height=e+\"px\"),this.setViewport(0,0,t,e)},this.setViewport=function(t,e,n,i){te.viewport(At.set(t,e,n,i))},this.setScissor=function(t,e,n,i){te.scissor(Tt.set(t,e,n,i))},this.setScissorTest=function(t){te.setScissorTest(Ct=t)},this.getClearColor=function(){return wt},this.setClearColor=function(t,e){wt.set(t),Mt=void 0!==e?e:1,te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X)},this.getClearAlpha=function(){return Mt},this.setClearAlpha=function(t){Mt=t,te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X)},this.clear=function(t,e,n){var i=0;(void 0===t||t)&&(i|=Kt.COLOR_BUFFER_BIT),(void 0===e||e)&&(i|=Kt.DEPTH_BUFFER_BIT),(void 0===n||n)&&(i|=Kt.STENCIL_BUFFER_BIT),Kt.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.clearTarget=function(t,e,n,i){this.setRenderTarget(t),this.clear(e,n,i)},this.resetGLState=i,this.dispose=function(){it=[],rt=-1,tt=[],et=-1,U.removeEventListener(\"webglcontextlost\",r,!1)},this.renderBufferImmediate=function(t,e,n){te.initAttributes();var i=ne.get(t);t.hasPositions&&!i.position&&(i.position=Kt.createBuffer()),t.hasNormals&&!i.normal&&(i.normal=Kt.createBuffer()),t.hasUvs&&!i.uv&&(i.uv=Kt.createBuffer()),t.hasColors&&!i.color&&(i.color=Kt.createBuffer());var r=e.getAttributes();if(t.hasPositions&&(Kt.bindBuffer(Kt.ARRAY_BUFFER,i.position),Kt.bufferData(Kt.ARRAY_BUFFER,t.positionArray,Kt.DYNAMIC_DRAW),te.enableAttribute(r.position),Kt.vertexAttribPointer(r.position,3,Kt.FLOAT,!1,0,0)),t.hasNormals){if(Kt.bindBuffer(Kt.ARRAY_BUFFER,i.normal),!n.isMeshPhongMaterial&&!n.isMeshStandardMaterial&&!n.isMeshNormalMaterial&&n.shading===ua)for(var a=0,o=3*t.count;a8&&(f.length=8);for(var v=i.morphAttributes,p=0,m=f.length;p0&&S.renderInstances(i,O,R):S.render(O,R)}},this.render=function(t,e,n,i){if(void 0!==e&&!0!==e.isCamera)return void console.error(\"THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.\");gt=\"\",mt=-1,vt=null,!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),e.matrixWorldInverse.getInverse(e.matrixWorld),Vt.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),Lt.setFromMatrix(Vt),J.length=0,et=-1,rt=-1,lt.length=0,ut.length=0,Wt=this.localClippingEnabled,jt=Dt.init(this.clippingPlanes,Wt,e),b(t,e),tt.length=et+1,it.length=rt+1,!0===ct.sortObjects&&(tt.sort(f),it.sort(p)),jt&&Dt.beginShadows(),N(J),xe.render(t,e),z(J,e),jt&&Dt.endShadows(),Zt.calls=0,Zt.vertices=0,Zt.faces=0,Zt.points=0,void 0===n&&(n=null),this.setRenderTarget(n);var r=t.background;if(null===r?te.buffers.color.setClear(wt.r,wt.g,wt.b,Mt,X):r&&r.isColor&&(te.buffers.color.setClear(r.r,r.g,r.b,1,X),i=!0),(this.autoClear||i)&&this.clear(this.autoClearColor,this.autoClearDepth,this.autoClearStencil),r&&r.isCubeTexture?(void 0===ge&&(ge=new Nt,ve=new Ot(new Rt(5,5,5),new $({uniforms:Ss.cube.uniforms,vertexShader:Ss.cube.vertexShader,fragmentShader:Ss.cube.fragmentShader,side:sa,depthTest:!1,depthWrite:!1,fog:!1}))),ge.projectionMatrix.copy(e.projectionMatrix),ge.matrixWorld.extractRotation(e.matrixWorld),ge.matrixWorldInverse.getInverse(ge.matrixWorld),ve.material.uniforms.tCube.value=r,ve.modelViewMatrix.multiplyMatrices(ge.matrixWorldInverse,ve.matrixWorld),he.update(ve),ct.renderBufferDirect(ge,null,ve.geometry,ve.material,ve,null)):r&&r.isTexture&&(void 0===pe&&(pe=new zt(-1,1,1,-1,0,1),me=new Ot(new It(2,2),new pt({depthTest:!1,depthWrite:!1,fog:!1}))),me.material.map=r,he.update(me),ct.renderBufferDirect(pe,null,me.geometry,me.material,me,null)),t.overrideMaterial){var a=t.overrideMaterial;x(tt,t,e,a),x(it,t,e,a)}else te.setBlending(pa),x(tt,t,e),x(it,t,e);_e.render(t,e),we.render(t,e,xt),n&&ce.updateRenderTargetMipmap(n),te.setDepthTest(!0),te.setDepthWrite(!0),te.setColorWrite(!0)},this.setFaceCulling=function(t,e){te.setCullFace(t),te.setFlipSided(e===ea)},this.allocTextureUnit=B,this.setTexture2D=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTarget&&(t||(console.warn(\"THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead.\"),t=!0),e=e.texture),ce.setTexture2D(e,n)}}(),this.setTexture=function(){var t=!1;return function(e,n){t||(console.warn(\"THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead.\"),t=!0),ce.setTexture2D(e,n)}}(),this.setTextureCube=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTargetCube&&(t||(console.warn(\"THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead.\"),t=!0),e=e.texture),e&&e.isCubeTexture||Array.isArray(e.image)&&6===e.image.length?ce.setTextureCube(e,n):ce.setTextureCubeDynamic(e,n)}}(),this.getCurrentRenderTarget=function(){return dt},this.setRenderTarget=function(t){dt=t,t&&void 0===ne.get(t).__webglFramebuffer&&ce.setupRenderTarget(t);var e,n=t&&t.isWebGLRenderTargetCube;if(t){var i=ne.get(t);e=n?i.__webglFramebuffer[t.activeCubeFace]:i.__webglFramebuffer,yt.copy(t.scissor),bt=t.scissorTest,xt.copy(t.viewport)}else e=null,yt.copy(Tt).multiplyScalar(kt),bt=Ct,xt.copy(At).multiplyScalar(kt);if(ft!==e&&(Kt.bindFramebuffer(Kt.FRAMEBUFFER,e),ft=e),te.scissor(yt),te.setScissorTest(bt),te.viewport(xt),n){var r=ne.get(t.texture);Kt.framebufferTexture2D(Kt.FRAMEBUFFER,Kt.COLOR_ATTACHMENT0,Kt.TEXTURE_CUBE_MAP_POSITIVE_X+t.activeCubeFace,r.__webglTexture,t.activeMipMapLevel)}},this.readRenderTargetPixels=function(t,e,n,i,r,a){if(!1===(t&&t.isWebGLRenderTarget))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.\");var o=ne.get(t).__webglFramebuffer;if(o){var s=!1;o!==ft&&(Kt.bindFramebuffer(Kt.FRAMEBUFFER,o),s=!0);try{var l=t.texture,u=l.format,c=l.type;if(u!==Oo&&F(u)!==Kt.getParameter(Kt.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.\");if(!(c===go||F(c)===Kt.getParameter(Kt.IMPLEMENTATION_COLOR_READ_TYPE)||c===wo&&(Jt.get(\"OES_texture_float\")||Jt.get(\"WEBGL_color_buffer_float\"))||c===Mo&&Jt.get(\"EXT_color_buffer_half_float\")))return void console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.\");Kt.checkFramebufferStatus(Kt.FRAMEBUFFER)===Kt.FRAMEBUFFER_COMPLETE?e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&Kt.readPixels(e,n,i,r,F(u),F(c),a):console.error(\"THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.\")}finally{s&&Kt.bindFramebuffer(Kt.FRAMEBUFFER,ft)}}}}function he(t,e){this.name=\"\",this.color=new Y(t),this.density=void 0!==e?e:25e-5}function de(t,e,n){this.name=\"\",this.color=new Y(t),this.near=void 0!==e?e:1,this.far=void 0!==n?n:1e3}function fe(){ct.call(this),this.type=\"Scene\",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function pe(t,e,n,i,r){ct.call(this),this.lensFlares=[],this.positionScreen=new c,this.customUpdateCallback=void 0,void 0!==t&&this.add(t,e,n,i,r)}function me(t){J.call(this),this.type=\"SpriteMaterial\",this.color=new Y(16777215),this.map=null,this.rotation=0,this.fog=!1,this.lights=!1,this.setValues(t)}function ge(t){ct.call(this),this.type=\"Sprite\",this.material=void 0!==t?t:new me}function ve(){ct.call(this),this.type=\"LOD\",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function ye(t,e,n){if(this.useVertexTexture=void 0===n||n,this.identityMatrix=new h,t=t||[],this.bones=t.slice(0),this.useVertexTexture){var i=Math.sqrt(4*this.bones.length);i=fs.nextPowerOfTwo(Math.ceil(i)),i=Math.max(i,4),this.boneTextureWidth=i,this.boneTextureHeight=i,this.boneMatrices=new Float32Array(this.boneTextureWidth*this.boneTextureHeight*4),this.boneTexture=new X(this.boneMatrices,this.boneTextureWidth,this.boneTextureHeight,Oo,wo)}else this.boneMatrices=new Float32Array(16*this.bones.length);if(void 0===e)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else{console.warn(\"THREE.Skeleton bonInverses is the wrong length.\"),this.boneInverses=[];for(var r=0,a=this.bones.length;r=t.HAVE_CURRENT_DATA&&(h.needsUpdate=!0)}a.call(this,t,e,n,i,r,o,s,l,u),this.generateMipmaps=!1;var h=this;c()}function Ce(t,e,n,i,r,o,s,l,u,c,h,d){a.call(this,null,o,s,l,u,c,i,r,h,d),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}function Pe(t,e,n,i,r,o,s,l,u){a.call(this,t,e,n,i,r,o,s,l,u),this.needsUpdate=!0}function Oe(t,e,n,i,r,o,s,l,u,c){if((c=void 0!==c?c:Io)!==Io&&c!==Do)throw new Error(\"DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat\");void 0===n&&c===Io&&(n=bo),void 0===n&&c===Do&&(n=To),a.call(this,null,i,r,o,s,l,c,n,u),this.image={width:t,height:e},this.magFilter=void 0!==s?s:uo,this.minFilter=void 0!==l?l:uo,this.flipY=!1,this.generateMipmaps=!1}function Ae(t){function e(t,e){return t-e}Pt.call(this),this.type=\"WireframeGeometry\";var n,i,r,a,o,s,l,u,h=[],d=[0,0],f={},p=[\"a\",\"b\",\"c\"];if(t&&t.isGeometry){var m=t.faces;for(n=0,r=m.length;n.9&&a<.1&&(e<.2&&(m[t+0]+=1),n<.2&&(m[t+2]+=1),i<.2&&(m[t+4]+=1))}}function s(t){p.push(t.x,t.y,t.z)}function l(e,n){var i=3*e;n.x=t[i+0],n.y=t[i+1],n.z=t[i+2]}function u(){for(var t=new c,e=new c,n=new c,i=new c,a=new r,o=new r,s=new r,l=0,u=0;l0)&&m.push(w,M,E),(l!==n-1||u0&&u(!0),e>0&&u(!1)),this.setIndex(d),this.addAttribute(\"position\",new Mt(f,3)),this.addAttribute(\"normal\",new Mt(p,3)),this.addAttribute(\"uv\",new Mt(m,2))}function cn(t,e,n,i,r,a,o){ln.call(this,0,t,e,n,i,r,a,o),this.type=\"ConeGeometry\",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function hn(t,e,n,i,r,a,o){un.call(this,0,t,e,n,i,r,a,o),this.type=\"ConeBufferGeometry\",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:a,thetaLength:o}}function dn(t,e,n,i){Ct.call(this),this.type=\"CircleGeometry\",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new fn(t,e,n,i))}function fn(t,e,n,i){Pt.call(this),this.type=\"CircleBufferGeometry\",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},t=t||50,e=void 0!==e?Math.max(3,e):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var a,o,s=[],l=[],u=[],h=[],d=new c,f=new r;for(l.push(0,0,0),u.push(0,0,1),h.push(.5,.5),o=0,a=3;o<=e;o++,a+=3){var p=n+o/e*i;d.x=t*Math.cos(p),d.y=t*Math.sin(p),l.push(d.x,d.y,d.z),u.push(0,0,1),f.x=(l[a]/t+1)/2,f.y=(l[a+1]/t+1)/2,h.push(f.x,f.y)}for(a=1;a<=e;a++)s.push(a,a+1,0);this.setIndex(s),this.addAttribute(\"position\",new Mt(l,3)),this.addAttribute(\"normal\",new Mt(u,3)),this.addAttribute(\"uv\",new Mt(h,2))}function pn(){$.call(this,{uniforms:xs.merge([Ms.lights,{opacity:{value:1}}]),vertexShader:_s.shadow_vert,fragmentShader:_s.shadow_frag}),this.lights=!0,this.transparent=!0,Object.defineProperties(this,{opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}}})}function mn(t){$.call(this,t),this.type=\"RawShaderMaterial\"}function gn(t){this.uuid=fs.generateUUID(),this.type=\"MultiMaterial\",this.materials=Array.isArray(t)?t:[],this.visible=!0}function vn(t){J.call(this),this.defines={STANDARD:\"\"},this.type=\"MeshStandardMaterial\",this.color=new Y(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 Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(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(t)}function yn(t){vn.call(this),this.defines={PHYSICAL:\"\"},this.type=\"MeshPhysicalMaterial\",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(t)}function bn(t){J.call(this),this.type=\"MeshPhongMaterial\",this.color=new Y(16777215),this.specular=new Y(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Va,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(t)}function xn(t){bn.call(this),this.defines={TOON:\"\"},this.type=\"MeshToonMaterial\",this.gradientMap=null,this.setValues(t)}function _n(t){J.call(this,t),this.type=\"MeshNormalMaterial\",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new r(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(t)}function wn(t){J.call(this),this.type=\"MeshLambertMaterial\",this.color=new Y(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Y(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Va,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(t)}function Mn(t){J.call(this),this.type=\"LineDashedMaterial\",this.color=new Y(16777215),this.linewidth=1,this.scale=1,this.dashSize=3,this.gapSize=1,this.lights=!1,this.setValues(t)}function Sn(t,e,n){var i=this,r=!1,a=0,o=0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){o++,!1===r&&void 0!==i.onStart&&i.onStart(t,a,o),r=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,o),a===o&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)}}function En(t){this.manager=void 0!==t?t:Ls}function kn(t){this.manager=void 0!==t?t:Ls,this._parser=null}function Tn(t){this.manager=void 0!==t?t:Ls,this._parser=null}function Cn(t){this.manager=void 0!==t?t:Ls}function Pn(t){this.manager=void 0!==t?t:Ls}function On(t){this.manager=void 0!==t?t:Ls}function An(t,e){ct.call(this),this.type=\"Light\",this.color=new Y(t),this.intensity=void 0!==e?e:1,this.receiveShadow=void 0}function Rn(t,e,n){An.call(this,t,n),this.type=\"HemisphereLight\",this.castShadow=void 0,this.position.copy(ct.DefaultUp),this.updateMatrix(),this.groundColor=new Y(e)}function Ln(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new r(512,512),this.map=null,this.matrix=new h}function In(){Ln.call(this,new Nt(50,1,.5,500))}function Dn(t,e,n,i,r,a){An.call(this,t,e),this.type=\"SpotLight\",this.position.copy(ct.DefaultUp),this.updateMatrix(),this.target=new ct,Object.defineProperty(this,\"power\",{get:function(){return this.intensity*Math.PI},set:function(t){this.intensity=t/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 In}function Nn(t,e,n,i){An.call(this,t,e),this.type=\"PointLight\",Object.defineProperty(this,\"power\",{get:function(){return 4*this.intensity*Math.PI},set:function(t){this.intensity=t/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new Ln(new Nt(90,1,.5,500))}function zn(){Ln.call(this,new zt(-5,5,5,-5,.5,500))}function Bn(t,e){An.call(this,t,e),this.type=\"DirectionalLight\",this.position.copy(ct.DefaultUp),this.updateMatrix(),this.target=new ct,this.shadow=new zn}function Fn(t,e){An.call(this,t,e),this.type=\"AmbientLight\",this.castShadow=void 0}function Un(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function jn(t,e,n,i){Un.call(this,t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function Wn(t,e,n,i){Un.call(this,t,e,n,i)}function Gn(t,e,n,i){Un.call(this,t,e,n,i)}function Vn(t,e,n,i){if(void 0===t)throw new Error(\"track name is undefined\");if(void 0===e||0===e.length)throw new Error(\"no keyframes in track named \"+t);this.name=t,this.times=Is.convertArray(e,this.TimeBufferType),this.values=Is.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation),this.validate(),this.optimize()}function Hn(t,e,n,i){Vn.call(this,t,e,n,i)}function qn(t,e,n,i){Un.call(this,t,e,n,i)}function Yn(t,e,n,i){Vn.call(this,t,e,n,i)}function Xn(t,e,n,i){Vn.call(this,t,e,n,i)}function Zn(t,e,n,i){Vn.call(this,t,e,n,i)}function Kn(t,e,n){Vn.call(this,t,e,n)}function Qn(t,e,n,i){Vn.call(this,t,e,n,i)}function Jn(t,e,n,i){Vn.apply(this,arguments)}function $n(t,e,n){this.name=t,this.tracks=n,this.duration=void 0!==e?e:-1,this.uuid=fs.generateUUID(),this.duration<0&&this.resetDuration(),this.optimize()}function ti(t){this.manager=void 0!==t?t:Ls,this.textures={}}function ei(t){this.manager=void 0!==t?t:Ls}function ni(){this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){}}function ii(t){\"boolean\"==typeof t&&(console.warn(\"THREE.JSONLoader: showStatus parameter has been removed from constructor.\"),t=void 0),this.manager=void 0!==t?t:Ls,this.withCredentials=!1}function ri(t){this.manager=void 0!==t?t:Ls,this.texturePath=\"\"}function ai(t,e,n,i,r){var a=.5*(i-e),o=.5*(r-n),s=t*t;return(2*n-2*i+a+o)*(t*s)+(-3*n+3*i-2*a-o)*s+a*t+n}function oi(t,e){var n=1-t;return n*n*e}function si(t,e){return 2*(1-t)*t*e}function li(t,e){return t*t*e}function ui(t,e,n,i){return oi(t,e)+si(t,n)+li(t,i)}function ci(t,e){var n=1-t;return n*n*n*e}function hi(t,e){var n=1-t;return 3*n*n*t*e}function di(t,e){return 3*(1-t)*t*t*e}function fi(t,e){return t*t*t*e}function pi(t,e,n,i,r){return ci(t,e)+hi(t,n)+di(t,i)+fi(t,r)}function mi(){}function gi(t,e){this.v1=t,this.v2=e}function vi(){this.curves=[],this.autoClose=!1}function yi(t,e,n,i,r,a,o,s){this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s||0}function bi(t){this.points=void 0===t?[]:t}function xi(t,e,n,i){this.v0=t,this.v1=e,this.v2=n,this.v3=i}function _i(t,e,n){this.v0=t,this.v1=e,this.v2=n}function wi(t){vi.call(this),this.currentPoint=new r,t&&this.fromPoints(t)}function Mi(){wi.apply(this,arguments),this.holes=[]}function Si(){this.subPaths=[],this.currentPath=null}function Ei(t){this.data=t}function ki(t){this.manager=void 0!==t?t:Ls}function Ti(t){this.manager=void 0!==t?t:Ls}function Ci(t,e,n,i){An.call(this,t,e),this.type=\"RectAreaLight\",this.position.set(0,1,0),this.updateMatrix(),this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function Pi(){this.type=\"StereoCamera\",this.aspect=1,this.eyeSep=.064,this.cameraL=new Nt,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Nt,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function Oi(t,e,n){ct.call(this),this.type=\"CubeCamera\";var i=new Nt(90,1,t,e);i.up.set(0,-1,0),i.lookAt(new c(1,0,0)),this.add(i);var r=new Nt(90,1,t,e);r.up.set(0,-1,0),r.lookAt(new c(-1,0,0)),this.add(r);var a=new Nt(90,1,t,e);a.up.set(0,0,1),a.lookAt(new c(0,1,0)),this.add(a);var o=new Nt(90,1,t,e);o.up.set(0,0,-1),o.lookAt(new c(0,-1,0)),this.add(o);var s=new Nt(90,1,t,e);s.up.set(0,-1,0),s.lookAt(new c(0,0,1)),this.add(s);var u=new Nt(90,1,t,e);u.up.set(0,-1,0),u.lookAt(new c(0,0,-1)),this.add(u);var h={format:Po,magFilter:fo,minFilter:fo};this.renderTarget=new l(n,n,h),this.updateCubeMap=function(t,e){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,l=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,t.render(e,i,n),n.activeCubeFace=1,t.render(e,r,n),n.activeCubeFace=2,t.render(e,a,n),n.activeCubeFace=3,t.render(e,o,n),n.activeCubeFace=4,t.render(e,s,n),n.texture.generateMipmaps=l,n.activeCubeFace=5,t.render(e,u,n),t.setRenderTarget(null)}}function Ai(){ct.call(this),this.type=\"AudioListener\",this.context=Bs.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null}function Ri(t){ct.call(this),this.type=\"Audio\",this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType=\"empty\",this.filters=[]}function Li(t){Ri.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Ii(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=void 0!==e?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function Di(t,e,n){this.binding=t,this.valueSize=n;var i,r=Float64Array;switch(e){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}function Ni(t,e,n){this.path=e,this.parsedPath=n||Ni.parseTrackName(e),this.node=Ni.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function zi(t){this.uuid=fs.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var e={};this._indicesByUUID=e;for(var n=0,i=arguments.length;n!==i;++n)e[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}}function Bi(t,e,n){this._mixer=t,this._clip=e,this._localRoot=n||null;for(var i=e.tracks,r=i.length,a=new Array(r),o={endingStart:Qo,endingEnd:Qo},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=qo,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 Fi(t){this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function Ui(t){\"string\"==typeof t&&(console.warn(\"THREE.Uniform: Type parameter is no longer needed.\"),t=arguments[1]),this.value=t}function ji(){Pt.call(this),this.type=\"InstancedBufferGeometry\",this.maxInstancedCount=void 0}function Wi(t,e,n,i){this.uuid=fs.generateUUID(),this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}function Gi(t,e){this.uuid=fs.generateUUID(),this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.onUploadCallback=function(){},this.version=0}function Vi(t,e,n){Gi.call(this,t,e),this.meshPerAttribute=n||1}function Hi(t,e,n){mt.call(this,t,e),this.meshPerAttribute=n||1}function qi(t,e,n,i){this.ray=new st(t,e),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 Yi(t,e){return t.distance-e.distance}function Xi(t,e,n,i){if(!1!==t.visible&&(t.raycast(e,n),!0===i))for(var r=t.children,a=0,o=r.length;a0?1:+t}),void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,\"name\",{get:function(){return this.toString().match(/^\\s*function\\s*([^\\(\\s]*)/)[1]}}),void 0===Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError(\"Cannot convert undefined or null to object\");for(var e=Object(t),n=1;n>=4,n[r]=e[19===r?3&t|8:t]);return n.join(\"\")}}(),clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*fs.DEG2RAD},radToDeg:function(t){return t*fs.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t}};r.prototype={constructor:r,isVector2:!0,get width(){return this.x},set width(t){this.x=t},get height(){return this.y},set height(t){this.y=t},set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error(\"index is out of range: \"+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error(\"index is out of range: \"+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new r,e=new r),t.set(n,n),e.set(i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/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(t){return this.x*t.x+this.y*t.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length())},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},distanceToManhattan:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn(\"THREE.Vector2: offset has been removed from .fromBufferAttribute().\"),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,a=this.y-t.y;return this.x=r*n-a*i+t.x,this.y=r*i+a*n+t.y,this}};var ps=0;a.DEFAULT_IMAGE=void 0,a.DEFAULT_MAPPING=Ja,a.prototype={constructor:a,isTexture:!0,set needsUpdate(t){!0===t&&this.version++},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){if(void 0!==t.textures[this.uuid])return t.textures[this.uuid];var e={metadata:{version:4.4,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],wrap:[this.wrapS,this.wrapT],minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(void 0!==this.image){var n=this.image;void 0===n.uuid&&(n.uuid=fs.generateUUID()),void 0===t.images[n.uuid]&&(t.images[n.uuid]={uuid:n.uuid,url:function(t){var e;return void 0!==t.toDataURL?e=t:(e=document.createElementNS(\"http://www.w3.org/1999/xhtml\",\"canvas\"),e.width=t.width,e.height=t.height,e.getContext(\"2d\").drawImage(t,0,0,t.width,t.height)),e.width>2048||e.height>2048?e.toDataURL(\"image/jpeg\",.6):e.toDataURL(\"image/png\")}(n)}),e.image=n.uuid}return t.textures[this.uuid]=e,e},dispose:function(){this.dispatchEvent({type:\"dispose\"})},transformUv:function(t){if(this.mapping===Ja){if(t.multiply(this.repeat),t.add(this.offset),t.x<0||t.x>1)switch(this.wrapS){case oo:t.x=t.x-Math.floor(t.x);break;case so:t.x=t.x<0?0:1;break;case lo:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case oo:t.y=t.y-Math.floor(t.y);break;case so:t.y=t.y<0?0:1;break;case lo:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}this.flipY&&(t.y=1-t.y)}}},Object.assign(a.prototype,i.prototype),o.prototype={constructor:o,isVector4:!0,set:function(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error(\"index is out of range: \"+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error(\"index is out of range: \"+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this},add:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t,this.w*=t):(this.x=0,this.y=0,this.z=0,this.w=0),this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=this.w,a=t.elements;return this.x=a[0]*e+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*e+a[5]*n+a[9]*i+a[13]*r,this.z=a[2]*e+a[6]*n+a[10]*i+a[14]*r,this.w=a[3]*e+a[7]*n+a[11]*i+a[15]*r,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e,n,i,r,a=t.elements,o=a[0],s=a[4],l=a[8],u=a[1],c=a[5],h=a[9],d=a[2],f=a[6],p=a[10];if(Math.abs(s-u)<.01&&Math.abs(l-d)<.01&&Math.abs(h-f)<.01){if(Math.abs(s+u)<.1&&Math.abs(l+d)<.1&&Math.abs(h+f)<.1&&Math.abs(o+c+p-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;var m=(o+1)/2,g=(c+1)/2,v=(p+1)/2,y=(s+u)/4,b=(l+d)/4,x=(h+f)/4;return m>g&&m>v?m<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(m),i=y/n,r=b/n):g>v?g<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(g),n=y/i,r=x/i):v<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=b/r,i=x/r),this.set(n,i,r,e),this}var _=Math.sqrt((f-h)*(f-h)+(l-d)*(l-d)+(u-s)*(u-s));return Math.abs(_)<.001&&(_=1),this.x=(f-h)/_,this.y=(l-d)/_,this.z=(u-s)/_,this.w=Math.acos((o+c+p-1)/2),this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new o,e=new o),t.set(n,n,n,n),e.set(i,i,i,i),this.clamp(t,e)}}(),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(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan: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())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn(\"THREE.Vector4: offset has been removed from .fromBufferAttribute().\"),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}},s.prototype={constructor:s,isWebGLRenderTarget:!0,setSize:function(t,e){this.width===t&&this.height===e||(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:\"dispose\"})}},Object.assign(s.prototype,i.prototype),l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.isWebGLRenderTargetCube=!0,u.prototype={constructor:u,get x(){return this._x},set x(t){this._x=t,this.onChangeCallback()},get y(){return this._y},set y(t){this._y=t,this.onChangeCallback()},get z(){return this._z},set z(t){this._z=t,this.onChangeCallback()},get w(){return this._w},set w(t){this._w=t,this.onChangeCallback()},set:function(t,e,n,i){return this._x=t,this._y=e,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(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!1===(t&&t.isEuler))throw new Error(\"THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.\");var n=Math.cos(t._x/2),i=Math.cos(t._y/2),r=Math.cos(t._z/2),a=Math.sin(t._x/2),o=Math.sin(t._y/2),s=Math.sin(t._z/2),l=t.order;return\"XYZ\"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r-a*o*s):\"YXZ\"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r+a*o*s):\"ZXY\"===l?(this._x=a*i*r-n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r-a*o*s):\"ZYX\"===l?(this._x=a*i*r-n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r+a*o*s):\"YZX\"===l?(this._x=a*i*r+n*o*s,this._y=n*o*r+a*i*s,this._z=n*i*s-a*o*r,this._w=n*i*r-a*o*s):\"XZY\"===l&&(this._x=a*i*r-n*o*s,this._y=n*o*r-a*i*s,this._z=n*i*s+a*o*r,this._w=n*i*r+a*o*s),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e,n=t.elements,i=n[0],r=n[4],a=n[8],o=n[1],s=n[5],l=n[9],u=n[2],c=n[6],h=n[10],d=i+s+h;return d>0?(e=.5/Math.sqrt(d+1),this._w=.25/e,this._x=(c-l)*e,this._y=(a-u)*e,this._z=(o-r)*e):i>s&&i>h?(e=2*Math.sqrt(1+i-s-h),this._w=(c-l)/e,this._x=.25*e,this._y=(r+o)/e,this._z=(a+u)/e):s>h?(e=2*Math.sqrt(1+s-i-h),this._w=(a-u)/e,this._x=(r+o)/e,this._y=.25*e,this._z=(l+c)/e):(e=2*Math.sqrt(1+h-i-s),this._w=(o-r)/e,this._x=(a+u)/e,this._y=(l+c)/e,this._z=.25*e),this.onChangeCallback(),this},setFromUnitVectors:function(){var t,e;return function(n,i){return void 0===t&&(t=new c),e=n.dot(i)+1,e<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()}}(),inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this.onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn(\"THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead.\"),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,i=t._y,r=t._z,a=t._w,o=e._x,s=e._y,l=e._z,u=e._w;return this._x=n*u+a*o+i*l-r*s,this._y=i*u+a*s+r*o-n*l,this._z=r*u+a*l+n*s-i*o,this._w=a*u-n*o-i*s-r*l,this.onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var n=this._x,i=this._y,r=this._z,a=this._w,o=a*t._w+n*t._x+i*t._y+r*t._z;if(o<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,o=-o):this.copy(t),o>=1)return this._w=a,this._x=n,this._y=i,this._z=r,this;var s=Math.sqrt(1-o*o);if(Math.abs(s)<.001)return this._w=.5*(a+this._w),this._x=.5*(n+this._x),this._y=.5*(i+this._y),this._z=.5*(r+this._z),this;var l=Math.atan2(s,o),u=Math.sin((1-e)*l)/s,c=Math.sin(e*l)/s;return this._w=a*u+this._w*c,this._x=n*u+this._x*c,this._y=i*u+this._y*c,this._z=r*u+this._z*c,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},Object.assign(u,{slerp:function(t,e,n,i){return n.copy(t).slerp(e,i)},slerpFlat:function(t,e,n,i,r,a,o){var s=n[i+0],l=n[i+1],u=n[i+2],c=n[i+3],h=r[a+0],d=r[a+1],f=r[a+2],p=r[a+3];if(c!==p||s!==h||l!==d||u!==f){var m=1-o,g=s*h+l*d+u*f+c*p,v=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,g*v);m=Math.sin(m*x)/b,o=Math.sin(o*x)/b}var _=o*v;if(s=s*m+h*_,l=l*m+d*_,u=u*m+f*_,c=c*m+p*_,m===1-o){var w=1/Math.sqrt(s*s+l*l+u*u+c*c);s*=w,l*=w,u*=w,c*=w}}t[e]=s,t[e+1]=l,t[e+2]=u,t[e+3]=c}}),c.prototype={constructor:c,isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error(\"index is out of range: \"+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error(\"index is out of range: \"+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn(\"THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.\"),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(){var t;return function(e){return!1===(e&&e.isEuler)&&console.error(\"THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.\"),void 0===t&&(t=new u),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t;return function(e,n){return void 0===t&&(t=new u),this.applyQuaternion(t.setFromAxisAngle(e,n))}}(),applyMatrix3:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;this.x=r[0]*e+r[4]*n+r[8]*i+r[12],this.y=r[1]*e+r[5]*n+r[9]*i+r[13],this.z=r[2]*e+r[6]*n+r[10]*i+r[14];var a=r[3]*e+r[7]*n+r[11]*i+r[15];return this.divideScalar(a)},applyQuaternion:function(t){var e=this.x,n=this.y,i=this.z,r=t.x,a=t.y,o=t.z,s=t.w,l=s*e+a*i-o*n,u=s*n+o*e-r*i,c=s*i+r*n-a*e,h=-r*e-a*n-o*i;return this.x=l*s+h*-r+u*-o-c*-a,this.y=u*s+h*-a+c*-r-l*-o,this.z=c*s+h*-o+l*-a-u*-r,this},project:function(){var t;return function(e){return void 0===t&&(t=new h),t.multiplyMatrices(e.projectionMatrix,t.getInverse(e.matrixWorld)),this.applyMatrix4(t)}}(),unproject:function(){var t;return function(e){return void 0===t&&(t=new h),t.multiplyMatrices(e.matrixWorld,t.getInverse(e.projectionMatrix)),this.applyMatrix4(t)}}(),transformDirection:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new c,e=new c),t.set(n,n,n),e.set(i,i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/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(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){if(void 0!==e)return console.warn(\"THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.\"),this.crossVectors(t,e);var n=this.x,i=this.y,r=this.z;return this.x=i*t.z-r*t.y,this.y=r*t.x-n*t.z,this.z=n*t.y-i*t.x,this},crossVectors:function(t,e){var n=t.x,i=t.y,r=t.z,a=e.x,o=e.y,s=e.z;return this.x=i*s-r*o,this.y=r*a-n*s,this.z=n*o-i*a,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t;return function(e){return void 0===t&&(t=new c),t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t;return function(e){return void 0===t&&(t=new c),this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){var e=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq());return Math.acos(fs.clamp(e,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i},distanceToManhattan:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){var e=Math.sin(t.phi)*t.radius;return this.x=e*Math.sin(t.theta),this.y=Math.cos(t.phi)*t.radius,this.z=e*Math.cos(t.theta),this},setFromCylindrical:function(t){return this.x=t.radius*Math.sin(t.theta),this.y=t.y,this.z=t.radius*Math.cos(t.theta),this},setFromMatrixPosition:function(t){return this.setFromMatrixColumn(t,3)},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this},setFromMatrixColumn:function(t,e){if(\"number\"==typeof t){console.warn(\"THREE.Vector3: setFromMatrixColumn now expects ( matrix, index ).\");var n=t;t=e,e=n}return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn(\"THREE.Vector3: offset has been removed from .fromBufferAttribute().\"),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}},h.prototype={constructor:h,isMatrix4:!0,set:function(t,e,n,i,r,a,o,s,l,u,c,h,d,f,p,m){var g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=a,g[9]=o,g[13]=s,g[2]=l,g[6]=u,g[10]=c,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[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 h).fromArray(this.elements)},copy:function(t){return this.elements.set(t.elements),this},copyPosition:function(t){var e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this},extractRotation:function(){var t;return function(e){void 0===t&&(t=new c);var n=this.elements,i=e.elements,r=1/t.setFromMatrixColumn(e,0).length(),a=1/t.setFromMatrixColumn(e,1).length(),o=1/t.setFromMatrixColumn(e,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[4]=i[4]*a,n[5]=i[5]*a,n[6]=i[6]*a,n[8]=i[8]*o,n[9]=i[9]*o,n[10]=i[10]*o,this}}(),makeRotationFromEuler:function(t){!1===(t&&t.isEuler)&&console.error(\"THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.\");var e=this.elements,n=t.x,i=t.y,r=t.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(i),l=Math.sin(i),u=Math.cos(r),c=Math.sin(r);if(\"XYZ\"===t.order){var h=a*u,d=a*c,f=o*u,p=o*c;e[0]=s*u,e[4]=-s*c,e[8]=l,e[1]=d+f*l,e[5]=h-p*l,e[9]=-o*s,e[2]=p-h*l,e[6]=f+d*l,e[10]=a*s}else if(\"YXZ\"===t.order){var m=s*u,g=s*c,v=l*u,y=l*c;e[0]=m+y*o,e[4]=v*o-g,e[8]=a*l,e[1]=a*c,e[5]=a*u,e[9]=-o,e[2]=g*o-v,e[6]=y+m*o,e[10]=a*s}else if(\"ZXY\"===t.order){var m=s*u,g=s*c,v=l*u,y=l*c;e[0]=m-y*o,e[4]=-a*c,e[8]=v+g*o,e[1]=g+v*o,e[5]=a*u,e[9]=y-m*o,e[2]=-a*l,e[6]=o,e[10]=a*s}else if(\"ZYX\"===t.order){var h=a*u,d=a*c,f=o*u,p=o*c;e[0]=s*u,e[4]=f*l-d,e[8]=h*l+p,e[1]=s*c,e[5]=p*l+h,e[9]=d*l-f,e[2]=-l,e[6]=o*s,e[10]=a*s}else if(\"YZX\"===t.order){var b=a*s,x=a*l,_=o*s,w=o*l;e[0]=s*u,e[4]=w-b*c,e[8]=_*c+x,e[1]=c,e[5]=a*u,e[9]=-o*u,e[2]=-l*u,e[6]=x*c+_,e[10]=b-w*c}else if(\"XZY\"===t.order){var b=a*s,x=a*l,_=o*s,w=o*l;e[0]=s*u,e[4]=-c,e[8]=l*u,e[1]=b*c+w,e[5]=a*u,e[9]=x*c-_,e[2]=_*c-x,e[6]=o*u,e[10]=w*c+b}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(t){var e=this.elements,n=t.x,i=t.y,r=t.z,a=t.w,o=n+n,s=i+i,l=r+r,u=n*o,c=n*s,h=n*l,d=i*s,f=i*l,p=r*l,m=a*o,g=a*s,v=a*l;return e[0]=1-(d+p),e[4]=c-v,e[8]=h+g,e[1]=c+v,e[5]=1-(u+p),e[9]=f-m,e[2]=h-g,e[6]=f+m,e[10]=1-(u+d),e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},lookAt:function(){var t,e,n;return function(i,r,a){void 0===t&&(t=new c,e=new c,n=new c);var o=this.elements;return n.subVectors(i,r).normalize(),0===n.lengthSq()&&(n.z=1),t.crossVectors(a,n).normalize(),0===t.lengthSq()&&(n.z+=1e-4,t.crossVectors(a,n).normalize()),e.crossVectors(n,t),o[0]=t.x,o[4]=e.x,o[8]=n.x,o[1]=t.y,o[5]=e.y,o[9]=n.y,o[2]=t.z,o[6]=e.z,o[10]=n.z,this}}(),multiply:function(t,e){return void 0!==e?(console.warn(\"THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.\"),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,i=e.elements,r=this.elements,a=n[0],o=n[4],s=n[8],l=n[12],u=n[1],c=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],_=i[0],w=i[4],M=i[8],S=i[12],E=i[1],k=i[5],T=i[9],C=i[13],P=i[2],O=i[6],A=i[10],R=i[14],L=i[3],I=i[7],D=i[11],N=i[15];return r[0]=a*_+o*E+s*P+l*L,r[4]=a*w+o*k+s*O+l*I,r[8]=a*M+o*T+s*A+l*D,r[12]=a*S+o*C+s*R+l*N,r[1]=u*_+c*E+h*P+d*L,r[5]=u*w+c*k+h*O+d*I,r[9]=u*M+c*T+h*A+d*D,r[13]=u*S+c*C+h*R+d*N,r[2]=f*_+p*E+m*P+g*L,r[6]=f*w+p*k+m*O+g*I,r[10]=f*M+p*T+m*A+g*D,r[14]=f*S+p*C+m*R+g*N,r[3]=v*_+y*E+b*P+x*L,r[7]=v*w+y*k+b*O+x*I,r[11]=v*M+y*T+b*A+x*D,r[15]=v*S+y*C+b*R+x*N,this},multiplyToArray:function(t,e,n){var i=this.elements;return this.multiplyMatrices(t,e),n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t;return function(e){void 0===t&&(t=new c);for(var n=0,i=e.count;n 0.0 ) {\\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\\n\\t\\t\\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\\n\\t\\t\\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\\n\\t\\t\\treturn distanceFalloff * maxDistanceCutoffFactor;\\n#else\\n\\t\\t\\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\\n#endif\\n\\t\\t}\\n\\t\\treturn 1.0;\\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 ltcTextureCoords( const in GeometricContext geometry, 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\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 P = geometry.position;\\n\\tfloat theta = acos( dot( N, V ) );\\n\\tvec2 uv = vec2(\\n\\t\\tsqrt( saturate( roughness ) ),\\n\\t\\tsaturate( theta / ( 0.5 * PI ) ) );\\n\\tuv = uv * LUT_SCALE + LUT_BIAS;\\n\\treturn uv;\\n}\\nvoid clipQuadToHorizon( inout vec3 L[5], out int n ) {\\n\\tint config = 0;\\n\\tif ( L[0].z > 0.0 ) config += 1;\\n\\tif ( L[1].z > 0.0 ) config += 2;\\n\\tif ( L[2].z > 0.0 ) config += 4;\\n\\tif ( L[3].z > 0.0 ) config += 8;\\n\\tn = 0;\\n\\tif ( config == 0 ) {\\n\\t} else if ( config == 1 ) {\\n\\t\\tn = 3;\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t\\tL[2] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t} else if ( config == 2 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t} else if ( config == 3 ) {\\n\\t\\tn = 4;\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t\\tL[3] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t} else if ( config == 4 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t\\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t} else if ( config == 5 ) {\\n\\t\\tn = 0;\\n\\t} else if ( config == 6 ) {\\n\\t\\tn = 4;\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t\\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t} else if ( config == 7 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = -L[3].z * L[0] + L[0].z * L[3];\\n\\t\\tL[3] = -L[3].z * L[2] + L[2].z * L[3];\\n\\t} else if ( config == 8 ) {\\n\\t\\tn = 3;\\n\\t\\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t\\tL[1] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t\\tL[2] = L[3];\\n\\t} else if ( config == 9 ) {\\n\\t\\tn = 4;\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t\\tL[2] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t} else if ( config == 10 ) {\\n\\t\\tn = 0;\\n\\t} else if ( config == 11 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = L[3];\\n\\t\\tL[3] = -L[2].z * L[3] + L[3].z * L[2];\\n\\t\\tL[2] = -L[2].z * L[1] + L[1].z * L[2];\\n\\t} else if ( config == 12 ) {\\n\\t\\tn = 4;\\n\\t\\tL[1] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t\\tL[0] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t} else if ( config == 13 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = L[3];\\n\\t\\tL[3] = L[2];\\n\\t\\tL[2] = -L[1].z * L[2] + L[2].z * L[1];\\n\\t\\tL[1] = -L[1].z * L[0] + L[0].z * L[1];\\n\\t} else if ( config == 14 ) {\\n\\t\\tn = 5;\\n\\t\\tL[4] = -L[0].z * L[3] + L[3].z * L[0];\\n\\t\\tL[0] = -L[0].z * L[1] + L[1].z * L[0];\\n\\t} else if ( config == 15 ) {\\n\\t\\tn = 4;\\n\\t}\\n\\tif ( n == 3 )\\n\\t\\tL[3] = L[0];\\n\\tif ( n == 4 )\\n\\t\\tL[4] = L[0];\\n}\\nfloat integrateLtcBrdfOverRectEdge( vec3 v1, vec3 v2 ) {\\n\\tfloat cosTheta = dot( v1, v2 );\\n\\tfloat theta = acos( cosTheta );\\n\\tfloat res = cross( v1, v2 ).z * ( ( theta > 0.001 ) ? theta / sin( theta ) : 1.0 );\\n\\treturn res;\\n}\\nvoid initRectPoints( const in vec3 pos, const in vec3 halfWidth, const in vec3 halfHeight, out vec3 rectPoints[4] ) {\\n\\trectPoints[0] = pos - halfWidth - halfHeight;\\n\\trectPoints[1] = pos + halfWidth - halfHeight;\\n\\trectPoints[2] = pos + halfWidth + halfHeight;\\n\\trectPoints[3] = pos - halfWidth + halfHeight;\\n}\\nvec3 integrateLtcBrdfOverRect( const in GeometricContext geometry, const in mat3 brdfMat, const in vec3 rectPoints[4] ) {\\n\\tvec3 N = geometry.normal;\\n\\tvec3 V = geometry.viewDir;\\n\\tvec3 P = geometry.position;\\n\\tvec3 T1, T2;\\n\\tT1 = normalize(V - N * dot( V, N ));\\n\\tT2 = - cross( N, T1 );\\n\\tmat3 brdfWrtSurface = brdfMat * transpose( mat3( T1, T2, N ) );\\n\\tvec3 clippedRect[5];\\n\\tclippedRect[0] = brdfWrtSurface * ( rectPoints[0] - P );\\n\\tclippedRect[1] = brdfWrtSurface * ( rectPoints[1] - P );\\n\\tclippedRect[2] = brdfWrtSurface * ( rectPoints[2] - P );\\n\\tclippedRect[3] = brdfWrtSurface * ( rectPoints[3] - P );\\n\\tint n;\\n\\tclipQuadToHorizon(clippedRect, n);\\n\\tif ( n == 0 )\\n\\t\\treturn vec3( 0, 0, 0 );\\n\\tclippedRect[0] = normalize( clippedRect[0] );\\n\\tclippedRect[1] = normalize( clippedRect[1] );\\n\\tclippedRect[2] = normalize( clippedRect[2] );\\n\\tclippedRect[3] = normalize( clippedRect[3] );\\n\\tclippedRect[4] = normalize( clippedRect[4] );\\n\\tfloat sum = 0.0;\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[0], clippedRect[1] );\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[1], clippedRect[2] );\\n\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[2], clippedRect[3] );\\n\\tif (n >= 4)\\n\\t\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[3], clippedRect[4] );\\n\\tif (n == 5)\\n\\t\\tsum += integrateLtcBrdfOverRectEdge( clippedRect[4], clippedRect[0] );\\n\\tsum = max( 0.0, sum );\\n\\tvec3 Lo_i = vec3( sum, sum, sum );\\n\\treturn Lo_i;\\n}\\nvec3 Rect_Area_Light_Specular_Reflectance(\\n\\t\\tconst in GeometricContext geometry,\\n\\t\\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight,\\n\\t\\tconst in float roughness,\\n\\t\\tconst in sampler2D ltcMat, const in sampler2D ltcMag ) {\\n\\tvec3 rectPoints[4];\\n\\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\\n\\tvec2 uv = ltcTextureCoords( geometry, roughness );\\n\\tvec4 brdfLtcApproxParams, t;\\n\\tbrdfLtcApproxParams = texture2D( ltcMat, uv );\\n\\tt = texture2D( ltcMat, uv );\\n\\tfloat brdfLtcScalar = texture2D( ltcMag, uv ).a;\\n\\tmat3 brdfLtcApproxMat = mat3(\\n\\t\\tvec3( 1, 0, t.y ),\\n\\t\\tvec3( 0, t.z, 0 ),\\n\\t\\tvec3( t.w, 0, t.x )\\n\\t);\\n\\tvec3 specularReflectance = integrateLtcBrdfOverRect( geometry, brdfLtcApproxMat, rectPoints );\\n\\tspecularReflectance *= brdfLtcScalar;\\n\\treturn specularReflectance;\\n}\\nvec3 Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\tconst in GeometricContext geometry,\\n\\t\\tconst in vec3 lightPos, const in vec3 lightHalfWidth, const in vec3 lightHalfHeight ) {\\n\\tvec3 rectPoints[4];\\n\\tinitRectPoints( lightPos, lightHalfWidth, lightHalfHeight, rectPoints );\\n\\tmat3 diffuseBrdfMat = mat3(1);\\n\\tvec3 diffuseReflectance = integrateLtcBrdfOverRect( geometry, diffuseBrdfMat, rectPoints );\\n\\treturn diffuseReflectance;\\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 = dFdx( surf_pos );\\n\\t\\tvec3 vSigmaY = dFdy( surf_pos );\\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\\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\\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; ++ i ) {\\n\\t\\tvec4 plane = clippingPlanes[ i ];\\n\\t\\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\\n\\t}\\n\\t\\t\\n\\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\\n\\t\\tbool clipped = true;\\n\\t\\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; ++ i ) {\\n\\t\\t\\tvec4 plane = clippingPlanes[ i ];\\n\\t\\t\\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\\n\\t\\t}\\n\\t\\tif ( clipped ) discard;\\n\\t\\n\\t#endif\\n#endif\\n\",clipping_planes_pars_fragment:\"#if NUM_CLIPPING_PLANES > 0\\n\\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\\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 )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n\",clipping_planes_vertex:\"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\\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 transpose( const in mat3 v ) {\\n\\tmat3 tmp;\\n\\ttmp[0] = vec3(v[0].x, v[1].x, v[2].x);\\n\\ttmp[1] = vec3(v[0].y, v[1].y, v[2].y);\\n\\ttmp[2] = vec3(v[0].z, v[1].z, v[2].z);\\n\\treturn tmp;\\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(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:\"#ifdef FLIP_SIDED\\n\\tobjectNormal = -objectNormal;\\n#endif\\nvec3 transformedNormal = normalMatrix * objectNormal;\\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 += normal * ( 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.xyz, vec3( gammaFactor ) ), value.w );\\n}\\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\\n\\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\\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.w );\\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.w );\\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.xyz * value.w * maxRange, 1.0 );\\n}\\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\\n\\tfloat maxRGB = max( value.x, 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.x, 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, flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\\n\\t#elif defined( ENVMAP_TYPE_EQUIREC )\\n\\t\\tvec2 sampleUV;\\n\\t\\tsampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );\\n\\t\\tsampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\\n\\t\\tvec4 envColor = texture2D( envMap, sampleUV );\\n\\t#elif defined( ENVMAP_TYPE_SPHERE )\\n\\t\\tvec3 reflectView = flipNormal * 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\\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_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:\"\\n#ifdef USE_FOG\\nfogDepth = -mvPosition.z;\\n#endif\",fog_pars_vertex:\"#ifdef USE_FOG\\n varying 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\\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\\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\\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\\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:\"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};\\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 ltcMat;\\tuniform sampler2D ltcMag;\\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#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( 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(queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent));\\n\\t\\t#elif defined( ENVMAP_TYPE_EQUIREC )\\n\\t\\t\\tvec2 sampleUV;\\n\\t\\t\\tsampleUV.y = saturate( reflectVec.y * 0.5 + 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\",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};\\n#if NUM_RECT_AREA_LIGHTS > 0\\n\\tvoid RE_Direct_RectArea_BlinnPhong( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\\n\\t\\tvec3 matDiffColor = material.diffuseColor;\\n\\t\\tvec3 matSpecColor = material.specularColor;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = BlinnExponentToGGXRoughness( material.specularShininess );\\n\\t\\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\\n\\t\\t\\t\\troughness,\\n\\t\\t\\t\\tltcMat, ltcMag );\\n\\t\\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\\n\\t\\treflectedLight.directSpecular += lightColor * matSpecColor * spec / PI2;\\n\\t\\treflectedLight.directDiffuse += lightColor * matDiffColor * diff / PI2;\\n\\t}\\n#endif\\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_Direct_RectArea\\t\\tRE_Direct_RectArea_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 matDiffColor = material.diffuseColor;\\n\\t\\tvec3 matSpecColor = material.specularColor;\\n\\t\\tvec3 lightColor = rectAreaLight.color;\\n\\t\\tfloat roughness = material.specularRoughness;\\n\\t\\tvec3 spec = Rect_Area_Light_Specular_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight,\\n\\t\\t\\t\\troughness,\\n\\t\\t\\t\\tltcMat, ltcMag );\\n\\t\\tvec3 diff = Rect_Area_Light_Diffuse_Reflectance(\\n\\t\\t\\t\\tgeometry,\\n\\t\\t\\t\\trectAreaLight.position, rectAreaLight.halfWidth, rectAreaLight.halfHeight );\\n\\t\\treflectedLight.directSpecular += lightColor * matSpecColor * spec;\\n\\t\\treflectedLight.directDiffuse += lightColor * matDiffColor * diff;\\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_template:\"\\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\\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 ] ) : 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\\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\\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\\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#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 ( NUM_HEMI_LIGHTS > 0 )\\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\\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\\n\\t\\tirradiance += getLightProbeIndirectIrradiance( geometry, 8 );\\n\\t#endif\\n\\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\\n#endif\\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\\n\\tvec3 radiance = getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), 8 );\\n\\t#ifndef STANDARD\\n\\t\\tvec3 clearCoatRadiance = getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), 8 );\\n\\t#else\\n\\t\\tvec3 clearCoatRadiance = vec3( 0.0 );\\n\\t#endif\\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:\"#ifdef USE_LOGDEPTHBUF\\n\\tuniform float logDepthBufFC;\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t#endif\\n#endif\\n\",logdepthbuf_pars_vertex:\"#ifdef USE_LOGDEPTHBUF\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvarying float vFragDepth;\\n\\t#endif\\n\\tuniform float logDepthBufFC;\\n#endif\",logdepthbuf_vertex:\"#ifdef USE_LOGDEPTHBUF\\n\\tgl_Position.z = log2(max( EPSILON, gl_Position.w + 1.0 )) * logDepthBufFC;\\n\\t#ifdef USE_LOGDEPTHBUF_EXT\\n\\t\\tvFragDepth = 1.0 + gl_Position.w;\\n\\t#else\\n\\t\\tgl_Position.z = (gl_Position.z - 1.0) * 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\\tvec4 mapTexel = texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) * offsetRepeat.zw + offsetRepeat.xy );\\n\\tdiffuseColor *= mapTexelToLinear( mapTexel );\\n#endif\\n\",map_particle_pars_fragment:\"#ifdef USE_MAP\\n\\tuniform vec4 offsetRepeat;\\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.r;\\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_flip:\"#ifdef DOUBLE_SIDED\\n\\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\\n#else\\n\\tfloat flipNormal = 1.0;\\n#endif\\n\",normal_fragment:\"#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 ) * flipNormal;\\n#endif\\n#ifdef USE_NORMALMAP\\n\\tnormal = perturbNormal2Arb( -vViewPosition, normal );\\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\\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\\n\\t\\tvec3 q0 = dFdx( eye_pos.xyz );\\n\\t\\tvec3 q1 = dFdy( eye_pos.xyz );\\n\\t\\tvec2 st0 = dFdx( vUv.st );\\n\\t\\tvec2 st1 = dFdy( vUv.st );\\n\\t\\tvec3 S = normalize( q0 * st1.t - q1 * st0.t );\\n\\t\\tvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\\n\\t\\tvec3 N = normalize( surf_norm );\\n\\t\\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\\n\\t\\tmapN.xy = normalScale * mapN.xy;\\n\\t\\tmat3 tsn = mat3( S, T, N );\\n\\t\\treturn normalize( tsn * mapN );\\n\\t}\\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 1.0 - 2.0 * rgb.xyz;\\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:\"#ifdef USE_SKINNING\\n\\tvec4 mvPosition = modelViewMatrix * skinned;\\n#else\\n\\tvec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\\n#endif\\ngl_Position = projectionMatrix * mvPosition;\\n\",roughnessmap_fragment:\"float roughnessFactor = roughness;\\n#ifdef USE_ROUGHNESSMAP\\n\\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\\n\\troughnessFactor *= texelRoughness.r;\\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\\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\\treturn (\\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\\treturn (\\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\\treturn texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\\n\\t\\t#endif\\n\\t\\t}\\n\\t\\treturn 1.0;\\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 ) {\\n\\t\\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\\n\\t\\tvec3 lightToPosition = shadowCoord.xyz;\\n\\t\\tvec3 bd3D = normalize( lightToPosition );\\n\\t\\tfloat dp = ( length( lightToPosition ) - shadowBias ) / 1000.0;\\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\\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\\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\\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\\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\\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\\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 ] ) : 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 boneTextureWidth;\\n\\t\\tuniform int boneTextureHeight;\\n\\t\\tmat4 getBoneMatrix( const in float i ) {\\n\\t\\t\\tfloat j = i * 4.0;\\n\\t\\t\\tfloat x = mod( j, float( boneTextureWidth ) );\\n\\t\\t\\tfloat y = floor( j / float( boneTextureWidth ) );\\n\\t\\t\\tfloat dx = 1.0 / float( boneTextureWidth );\\n\\t\\t\\tfloat dy = 1.0 / float( boneTextureHeight );\\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\\tskinned = bindMatrixInverse * skinned;\\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:\"#define saturate(a) clamp( a, 0.0, 1.0 )\\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 vec4 offsetRepeat;\\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 = uv * offsetRepeat.zw + offsetRepeat.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( PHONG ) || defined( PHYSICAL ) || defined( LAMBERT ) || defined ( USE_SHADOWMAP )\\n\\t#ifdef USE_SKINNING\\n\\t\\tvec4 worldPosition = modelMatrix * skinned;\\n\\t#else\\n\\t\\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\\n\\t#endif\\n#endif\\n\",cube_frag:\"uniform samplerCube tCube;\\nuniform float tFlip;\\nuniform float opacity;\\nvarying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\\n\\tgl_FragColor.a *= opacity;\\n}\\n\",cube_vert:\"varying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvWorldPosition = transformDirection( position, modelMatrix );\\n\\t#include \\n\\t#include \\n}\\n\",depth_frag:\"#if DEPTH_PACKING == 3200\\n\\tuniform float opacity;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( 1.0 );\\n\\t#if DEPTH_PACKING == 3200\\n\\t\\tdiffuseColor.a = opacity;\\n\\t#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#if DEPTH_PACKING == 3200\\n\\t\\tgl_FragColor = vec4( vec3( 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 \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",distanceRGBA_frag:\"uniform vec3 lightPos;\\nvarying vec4 vWorldPosition;\\n#include \\n#include \\n#include \\nvoid main () {\\n\\t#include \\n\\tgl_FragColor = packDepthToRGBA( length( vWorldPosition.xyz - lightPos.xyz ) / 1000.0 );\\n}\\n\",distanceRGBA_vert:\"varying vec4 vWorldPosition;\\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvWorldPosition = worldPosition;\\n}\\n\",equirect_frag:\"uniform sampler2D tEquirect;\\nuniform float tFlip;\\nvarying vec3 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvec3 direction = normalize( vWorldPosition );\\n\\tvec2 sampleUV;\\n\\tsampleUV.y = saturate( tFlip * direction.y * -0.5 + 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 vWorldPosition;\\n#include \\nvoid main() {\\n\\tvWorldPosition = transformDirection( position, modelMatrix );\\n\\t#include \\n\\t#include \\n}\\n\",linedashed_frag:\"uniform vec3 diffuse;\\nuniform float opacity;\\nuniform float dashSize;\\nuniform float totalSize;\\nvarying float vLineDistance;\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\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 \\n\\t#include \\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",linedashed_vert:\"uniform float scale;\\nattribute float lineDistance;\\nvarying float vLineDistance;\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvLineDistance = scale * lineDistance;\\n\\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\\n\\tgl_Position = projectionMatrix * mvPosition;\\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshbasic_frag:\"uniform vec3 diffuse;\\nuniform float opacity;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\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 \\n\\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\\n\\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshbasic_vert:\"#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#ifdef USE_ENVMAP\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\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 \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\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 \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\\n\\t#include \\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 \\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshlambert_vert:\"#define LAMBERT\\nvarying vec3 vLightFront;\\n#ifdef DOUBLE_SIDED\\n\\tvarying vec3 vLightBack;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphong_frag:\"#define PHONG\\nuniform vec3 diffuse;\\nuniform vec3 emissive;\\nuniform vec3 specular;\\nuniform float shininess;\\nuniform float opacity;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\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 \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\t#include \\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphong_vert:\"#define PHONG\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvViewPosition = - mvPosition.xyz;\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\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 \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\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 \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",meshphysical_vert:\"#define PHYSICAL\\nvarying vec3 vViewPosition;\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\tvViewPosition = - mvPosition.xyz;\\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",normal_frag:\"#define NORMAL\\nuniform float opacity;\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\\n}\\n\",normal_vert:\"#define NORMAL\\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvarying vec3 vViewPosition;\\n#endif\\n#ifndef FLAT_SHADED\\n\\tvarying vec3 vNormal;\\n#endif\\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n#ifndef FLAT_SHADED\\n\\tvNormal = normalize( transformedNormal );\\n#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP )\\n\\tvViewPosition = - mvPosition.xyz;\\n#endif\\n}\\n\",points_frag:\"uniform vec3 diffuse;\\nuniform float opacity;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\tvec3 outgoingLight = vec3( 0.0 );\\n\\tvec4 diffuseColor = vec4( diffuse, opacity );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\toutgoingLight = diffuseColor.rgb;\\n\\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",points_vert:\"uniform float size;\\nuniform float scale;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#ifdef USE_SIZEATTENUATION\\n\\t\\tgl_PointSize = size * ( scale / - mvPosition.z );\\n\\t#else\\n\\t\\tgl_PointSize = size;\\n\\t#endif\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\",shadow_frag:\"uniform float opacity;\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\nvoid main() {\\n\\tgl_FragColor = vec4( 0.0, 0.0, 0.0, opacity * ( 1.0 - getShadowMask() ) );\\n}\\n\",shadow_vert:\"#include \\nvoid main() {\\n\\t#include \\n\\t#include \\n\\t#include \\n\\t#include \\n}\\n\"};Y.prototype={constructor:Y,isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):\"number\"==typeof t?this.setHex(t):\"string\"==typeof t&&this.setStyle(t),this},setScalar:function(t){return this.r=t,this.g=t,this.b=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(){function t(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}return function(e,n,i){if(e=fs.euclideanModulo(e,1),n=fs.clamp(n,0,1),i=fs.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=t(a,r,e+1/3),this.g=t(a,r,e),this.b=t(a,r,e-1/3)}return this}}(),setStyle:function(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn(\"THREE.Color: Alpha component of \"+t+\" will be ignored.\")}var n;if(n=/^((?:rgb|hsl)a?)\\(\\s*([^\\)]*)\\)/.exec(t)){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,e(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,e(i[5]),this;break;case\"hsl\":case\"hsla\":if(i=/^([0-9]*\\.?[0-9]+)\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(,\\s*([0-9]*\\.?[0-9]+)\\s*)?$/.exec(a)){var o=parseFloat(i[1])/360,s=parseInt(i[2],10)/100,l=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(o,s,l)}}}else if(n=/^\\#([A-Fa-f0-9]+)$/.exec(t)){var u=n[1],c=u.length;if(3===c)return this.r=parseInt(u.charAt(0)+u.charAt(0),16)/255,this.g=parseInt(u.charAt(1)+u.charAt(1),16)/255,this.b=parseInt(u.charAt(2)+u.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(u.charAt(0)+u.charAt(1),16)/255,this.g=parseInt(u.charAt(2)+u.charAt(3),16)/255,this.b=parseInt(u.charAt(4)+u.charAt(5),16)/255,this}if(t&&t.length>0){var u=ws[t];void 0!==u?this.setHex(u):console.warn(\"THREE.Color: Unknown color \"+t)}return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return void 0===e&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){void 0===e&&(e=2);var n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this},convertGammaToLinear:function(){var t=this.r,e=this.g,n=this.b;return this.r=t*t,this.g=e*e,this.b=n*n,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return(\"000000\"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){var e,n,i=t||{h:0,s:0,l:0},r=this.r,a=this.g,o=this.b,s=Math.max(r,a,o),l=Math.min(r,a,o),u=(l+s)/2;if(l===s)e=0,n=0;else{var c=s-l;switch(n=u<=.5?c/(s+l):c/(2-s-l),s){case r:e=(a-o)/c+(athis.max.x||t.ythis.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return(e||new r).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y)},clampPoint:function(t,e){return(e||new r).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new r;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}};var Es=0;J.prototype={constructor:J,isMaterial:!0,get needsUpdate(){return this._needsUpdate},set needsUpdate(t){!0===t&&this.update(),this._needsUpdate=t},setValues:function(t){if(void 0!==t)for(var e in t){var n=t[e];if(void 0!==n){var i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=\"overdraw\"===e?Number(n):n:console.warn(\"THREE.\"+this.type+\": '\"+e+\"' is not a property of this material.\")}else console.warn(\"THREE.Material: '\"+e+\"' parameter is undefined.\")}},toJSON:function(t){function e(t){var e=[];for(var n in t){var i=t[n];delete i.metadata,e.push(i)}return e}var n=void 0===t;n&&(t={textures:{},images:{}});var i={metadata:{version:4.4,type:\"Material\",generator:\"Material.toJSON\"}};if(i.uuid=this.uuid,i.type=this.type,\"\"!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearCoat&&(i.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(i.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,i.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(i.size=this.size),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==ma&&(i.blending=this.blending),this.shading!==ca&&(i.shading=this.shading),this.side!==oa&&(i.side=this.side),this.vertexColors!==ha&&(i.vertexColors=this.vertexColors),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),\"round\"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),\"round\"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),i.skinning=this.skinning,i.morphTargets=this.morphTargets,n){var r=e(t.textures),a=e(t.images);r.length>0&&(i.textures=r),a.length>0&&(i.images=a)}return i},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.shading=t.shading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.overdraw=t.overdraw,this.visible=t.visible,this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,n=null;if(null!==e){var i=e.length;n=new Array(i);for(var r=0;r!==i;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this},update:function(){this.dispatchEvent({type:\"update\"})},dispose:function(){this.dispatchEvent({type:\"dispose\"})}},Object.assign(J.prototype,i.prototype),$.prototype=Object.create(J.prototype),$.prototype.constructor=$,$.prototype.isShaderMaterial=!0,$.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=xs.clone(t.uniforms),this.defines=t.defines,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},$.prototype.toJSON=function(t){var e=J.prototype.toJSON.call(this,t);return e.uniforms=this.uniforms,e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},tt.prototype=Object.create(J.prototype),tt.prototype.constructor=tt,tt.prototype.isMeshDepthMaterial=!0,tt.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},et.prototype={constructor:et,isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=t.length;sr&&(r=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,a=-1/0,o=-1/0,s=0,l=t.count;sr&&(r=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(e,n,i),this.max.set(r,a,o),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return(e||new c).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)},intersectsSphere:function(){var t;return function(e){return void 0===t&&(t=new c),this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radius}}(),intersectsPlane:function(t){var e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=t.constant&&n>=t.constant},clampPoint:function(t,e){return(e||new c).copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new c;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new c;return function(e){var n=e||new nt;return this.getCenter(n.center),n.radius=.5*this.getSize(t).length(),n}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(){var t=[new c,new c,new c,new c,new c,new c,new c,new c];return function(e){return this.isEmpty()?this:(t[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),t[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),t[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),t[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),t[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),t[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),t[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),t[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(t),this)}}(),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},nt.prototype={constructor:nt,set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t;return function(e,n){void 0===t&&(t=new et);var i=this.center;void 0!==n?i.copy(n):t.setFromPoints(e).getCenter(i);for(var r=0,a=0,o=e.length;athis.radius*this.radius&&(i.sub(this.center).normalize(),i.multiplyScalar(this.radius).add(this.center)),i},getBoundingBox:function(t){var e=t||new et;return e.set(this.center,this.center),e.expandByScalar(this.radius),e},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}},it.prototype={constructor:it,isMatrix3:!0,set:function(t,e,n,i,r,a,o,s,l){var u=this.elements;return u[0]=t,u[1]=i,u[2]=o,u[3]=e,u[4]=r,u[5]=s,u[6]=n,u[7]=a,u[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(t){var e=t.elements;return this.set(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8]),this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},applyToBufferAttribute:function(){var t;return function(e){void 0===t&&(t=new c);for(var n=0,i=e.count;n1))return i.copy(r).multiplyScalar(o).add(e.start)}else if(0===this.distanceToPoint(e.start))return i.copy(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return(t||new c).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new c,e=new it;return function(n,i){var r=this.coplanarPoint(t).applyMatrix4(n),a=i||e.getNormalMatrix(n),o=this.normal.applyMatrix3(a).normalize();return this.constant=-r.dot(o),this}}(),translate:function(t){return this.constant=this.constant-t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}},at.prototype={constructor:at,set:function(t,e,n,i,r,a){var o=this.planes;return o[0].copy(t),o[1].copy(e),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(t){for(var e=this.planes,n=0;n<6;n++)e[n].copy(t.planes[n]);return this},setFromMatrix:function(t){var e=this.planes,n=t.elements,i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return e[0].setComponents(o-i,c-s,p-h,y-m).normalize(),e[1].setComponents(o+i,c+s,p+h,y+m).normalize(),e[2].setComponents(o+r,c+l,p+d,y+g).normalize(),e[3].setComponents(o-r,c-l,p-d,y-g).normalize(),e[4].setComponents(o-a,c-u,p-f,y-v).normalize(),e[5].setComponents(o+a,c+u,p+f,y+v).normalize(),this},intersectsObject:function(){var t=new nt;return function(e){var n=e.geometry;return null===n.boundingSphere&&n.computeBoundingSphere(),t.copy(n.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new nt;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){for(var e=this.planes,n=t.center,i=-t.radius,r=0;r<6;r++){if(e[r].distanceToPoint(n)0?n.min.x:n.max.x,e.x=a.normal.x>0?n.max.x:n.min.x,t.y=a.normal.y>0?n.min.y:n.max.y,e.y=a.normal.y>0?n.max.y:n.min.y,t.z=a.normal.z>0?n.min.z:n.max.z,e.z=a.normal.z>0?n.max.z:n.min.z;var o=a.distanceToPoint(t),s=a.distanceToPoint(e);if(o<0&&s<0)return!1}return!0}}(),containsPoint:function(t){for(var e=this.planes,n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}},st.prototype={constructor:st,set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return(e||new c).copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new c;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){var n=e||new c;n.subVectors(t,this.origin);var i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.direction).multiplyScalar(i).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new c;return function(e){var n=t.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(n).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:function(){var t=new c,e=new c,n=new c;return function(i,r,a,o){t.copy(i).add(r).multiplyScalar(.5),e.copy(r).sub(i).normalize(),n.copy(this.origin).sub(t);var s,l,u,c,h=.5*i.distanceTo(r),d=-this.direction.dot(e),f=n.dot(this.direction),p=-n.dot(e),m=n.lengthSq(),g=Math.abs(1-d*d);if(g>0)if(s=d*p-f,l=d*f-p,c=h*g,s>=0)if(l>=-c)if(l<=c){var v=1/g;s*=v,l*=v,u=s*(s+d*l+2*f)+l*(d*s+l+2*p)+m}else l=h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;else l=-h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;else l<=-c?(s=Math.max(0,-(-d*h+f)),l=s>0?-h:Math.min(Math.max(-h,-p),h),u=-s*s+l*(l+2*p)+m):l<=c?(s=0,l=Math.min(Math.max(-h,-p),h),u=l*(l+2*p)+m):(s=Math.max(0,-(d*h+f)),l=s>0?h:Math.min(Math.max(-h,-p),h),u=-s*s+l*(l+2*p)+m);else l=d>0?-h:h,s=Math.max(0,-(d*l+f)),u=-s*s+l*(l+2*p)+m;return a&&a.copy(this.direction).multiplyScalar(s).add(this.origin),o&&o.copy(e).multiplyScalar(l).add(t),u}}(),intersectSphere:function(){var t=new c;return function(e,n){t.subVectors(e.center,this.origin);var i=t.dot(this.direction),r=t.dot(t)-i*i,a=e.radius*e.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(t){return this.distanceToPoint(t.center)<=t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null},intersectPlane:function(t,e){var n=this.distanceToPlane(t);return null===n?null:this.at(n,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0},intersectBox:function(t,e){var n,i,r,a,o,s,l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,h=this.origin;return l>=0?(n=(t.min.x-h.x)*l,i=(t.max.x-h.x)*l):(n=(t.max.x-h.x)*l,i=(t.min.x-h.x)*l),u>=0?(r=(t.min.y-h.y)*u,a=(t.max.y-h.y)*u):(r=(t.max.y-h.y)*u,a=(t.min.y-h.y)*u),n>a||r>i?null:((r>n||n!==n)&&(n=r),(a=0?(o=(t.min.z-h.z)*c,s=(t.max.z-h.z)*c):(o=(t.max.z-h.z)*c,s=(t.min.z-h.z)*c),n>s||o>i?null:((o>n||n!==n)&&(n=o),(s=0?n:i,e)))},intersectsBox:function(){var t=new c;return function(e){return null!==this.intersectBox(e,t)}}(),intersectTriangle:function(){var t=new c,e=new c,n=new c,i=new c;return function(r,a,o,s,l){e.subVectors(a,r),n.subVectors(o,r),i.crossVectors(e,n);var u,c=this.direction.dot(i);if(c>0){if(s)return null;u=1}else{if(!(c<0))return null;u=-1,c=-c}t.subVectors(this.origin,r);var h=u*this.direction.dot(n.crossVectors(t,n));if(h<0)return null;var d=u*this.direction.dot(e.cross(t));if(d<0)return null;if(h+d>c)return null;var f=-u*t.dot(i);return f<0?null:this.at(f/c,l)}}(),applyMatrix4:function(t){return this.direction.add(this.origin).applyMatrix4(t),this.origin.applyMatrix4(t),this.direction.sub(this.origin),this.direction.normalize(),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},lt.RotationOrders=[\"XYZ\",\"YZX\",\"ZXY\",\"XZY\",\"YXZ\",\"ZYX\"],lt.DefaultOrder=\"XYZ\",lt.prototype={constructor:lt,isEuler:!0,get x(){return this._x},set x(t){this._x=t,this.onChangeCallback()},get y(){return this._y},set y(t){this._y=t,this.onChangeCallback()},get z(){return this._z},set z(t){this._z=t,this.onChangeCallback()},get order(){return this._order},set order(t){this._order=t,this.onChangeCallback()},set:function(t,e,n,i){return this._x=t,this._y=e,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(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var i=fs.clamp,r=t.elements,a=r[0],o=r[4],s=r[8],l=r[1],u=r[5],c=r[9],h=r[2],d=r[6],f=r[10];return e=e||this._order,\"XYZ\"===e?(this._y=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-c,f),this._z=Math.atan2(-o,a)):(this._x=Math.atan2(d,u),this._z=0)):\"YXZ\"===e?(this._x=Math.asin(-i(c,-1,1)),Math.abs(c)<.99999?(this._y=Math.atan2(s,f),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-h,a),this._z=0)):\"ZXY\"===e?(this._x=Math.asin(i(d,-1,1)),Math.abs(d)<.99999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,a))):\"ZYX\"===e?(this._y=Math.asin(-i(h,-1,1)),Math.abs(h)<.99999?(this._x=Math.atan2(d,f),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-o,u))):\"YZX\"===e?(this._z=Math.asin(i(l,-1,1)),Math.abs(l)<.99999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-h,a)):(this._x=0,this._y=Math.atan2(s,f))):\"XZY\"===e?(this._z=Math.asin(-i(o,-1,1)),Math.abs(o)<.99999?(this._x=Math.atan2(d,u),this._y=Math.atan2(s,a)):(this._x=Math.atan2(-c,f),this._y=0)):console.warn(\"THREE.Euler: .setFromRotationMatrix() given unsupported order: \"+e),this._order=e,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,n,i)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new u;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new c(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},ut.prototype={constructor:ut,set:function(t){this.mask=1<1){for(var e=0;e1)for(var e=0;e0){r.children=[];for(var a=0;a0&&(i.geometries=o),s.length>0&&(i.materials=s),l.length>0&&(i.textures=l),u.length>0&&(i.images=u)}return i.object=r,i},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e){if(void 0===e&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(var n=0;n0?a.multiplyScalar(1/Math.sqrt(o)):a.set(0,0,0)}}(),dt.barycoordFromPoint=function(){var t=new c,e=new c,n=new c;return function(i,r,a,o,s){t.subVectors(o,r),e.subVectors(a,r),n.subVectors(i,r);var l=t.dot(t),u=t.dot(e),h=t.dot(n),d=e.dot(e),f=e.dot(n),p=l*d-u*u,m=s||new c;if(0===p)return m.set(-2,-1,-1);var g=1/p,v=(d*h-u*f)*g,y=(l*f-u*h)*g;return m.set(1-v-y,y,v)}}(),dt.containsPoint=function(){var t=new c;return function(e,n,i,r){var a=dt.barycoordFromPoint(e,n,i,r,t);return a.x>=0&&a.y>=0&&a.x+a.y<=1}}(),dt.prototype={constructor:dt,set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},area:function(){var t=new c,e=new c;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),midpoint:function(t){return(t||new c).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(t){return dt.normal(this.a,this.b,this.c,t)},plane:function(t){return(t||new rt).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(t,e){return dt.barycoordFromPoint(t,this.a,this.b,this.c,e)},containsPoint:function(t){return dt.containsPoint(t,this.a,this.b,this.c)},closestPointToPoint:function(){var t,e,n,i;return function(r,a){void 0===t&&(t=new rt,e=[new ht,new ht,new ht],n=new c,i=new c);var o=a||new c,s=1/0;if(t.setFromCoplanarPoints(this.a,this.b,this.c),t.projectPoint(r,n),!0===this.containsPoint(n))o.copy(n);else{e[0].set(this.a,this.b),e[1].set(this.b,this.c),e[2].set(this.c,this.a);for(var l=0;l0,s=a[1]&&a[1].length>0,l=t.morphTargets,u=l.length;if(u>0){e=[];for(var c=0;c0){h=[];for(var c=0;c0)for(var m=0;m0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t,e,n;for(this.computeFaceNormals(),t=0,e=this.faces.length;t0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n,i,r;for(n=0,i=this.faces.length;n0&&(t+=e[n].distanceTo(e[n-1])),this.lineDistances[n]=t},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new et),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new nt),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(!1===(t&&t.isGeometry))return void console.error(\"THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.\",t);var i,r=this.vertices.length,a=this.vertices,o=t.vertices,s=this.faces,l=t.faces,u=this.faceVertexUvs[0],c=t.faceVertexUvs[0],h=this.colors,d=t.colors;void 0===n&&(n=0),void 0!==e&&(i=(new it).getNormalMatrix(e));for(var f=0,p=o.length;f=0;n--){var p=d[n];for(this.faces.splice(p,1),o=0,s=this.faceVertexUvs.length;o0,x=v.vertexNormals.length>0,_=1!==v.color.r||1!==v.color.g||1!==v.color.b,w=v.vertexColors.length>0,M=0;if(M=t(M,0,0),M=t(M,1,!0),M=t(M,2,!1),M=t(M,3,y),M=t(M,4,b),M=t(M,5,x),M=t(M,6,_),M=t(M,7,w),c.push(M),c.push(v.a,v.b,v.c),c.push(v.materialIndex),y){var S=this.faceVertexUvs[0][l];c.push(i(S[0]),i(S[1]),i(S[2]))}if(b&&c.push(e(v.normal)),x){var E=v.vertexNormals;c.push(e(E[0]),e(E[1]),e(E[2]))}if(_&&c.push(n(v.color)),w){var k=v.vertexColors;c.push(n(k[0]),n(k[1]),n(k[2]))}}return r.data={},r.data.vertices=s,r.data.normals=h,f.length>0&&(r.data.colors=f),m.length>0&&(r.data.uvs=[m]),r.data.faces=c,r},clone:function(){return(new Ct).copy(this)},copy:function(t){var e,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=t.name;var s=t.vertices;for(e=0,n=s.length;e65535?wt:xt)(t,1):this.index=t},addAttribute:function(t,e){return!1===(e&&e.isBufferAttribute)&&!1===(e&&e.isInterleavedBufferAttribute)?(console.warn(\"THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).\"),void this.addAttribute(t,new mt(arguments[1],arguments[2]))):\"index\"===t?(console.warn(\"THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.\"),void this.setIndex(e)):(this.attributes[t]=e,this)},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;void 0!==e&&(t.applyToBufferAttribute(e),e.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){(new it).getNormalMatrix(t).applyToBufferAttribute(n),n.needsUpdate=!0}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t;return function(e){return void 0===t&&(t=new h),t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeTranslation(e,n,i),this.applyMatrix(t),this}}(),scale:function(){var t;return function(e,n,i){return void 0===t&&(t=new h),t.makeScale(e,n,i),this.applyMatrix(t),this}}(),lookAt:function(){var t;return function(e){void 0===t&&(t=new ct),t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){this.computeBoundingBox();var t=this.boundingBox.getCenter().negate();return this.translate(t.x,t.y,t.z),t},setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){var n=new Mt(3*e.vertices.length,3),i=new Mt(3*e.colors.length,3);if(this.addAttribute(\"position\",n.copyVector3sArray(e.vertices)),this.addAttribute(\"color\",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){var r=new Mt(e.lineDistances.length,1);this.addAttribute(\"lineDistance\",r.copyArray(e.lineDistances))}null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var n=e.__directGeometry;if(!0===e.elementsNeedUpdate&&(n=void 0,e.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(e);n.verticesNeedUpdate=e.verticesNeedUpdate,n.normalsNeedUpdate=e.normalsNeedUpdate,n.colorsNeedUpdate=e.colorsNeedUpdate,n.uvsNeedUpdate=e.uvsNeedUpdate,n.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=n}var i;return!0===e.verticesNeedUpdate&&(i=this.attributes.position,void 0!==i&&(i.copyVector3sArray(e.vertices),i.needsUpdate=!0),e.verticesNeedUpdate=!1),!0===e.normalsNeedUpdate&&(i=this.attributes.normal,void 0!==i&&(i.copyVector3sArray(e.normals),i.needsUpdate=!0),e.normalsNeedUpdate=!1),!0===e.colorsNeedUpdate&&(i=this.attributes.color,void 0!==i&&(i.copyColorsArray(e.colors),i.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(i=this.attributes.uv,void 0!==i&&(i.copyVector2sArray(e.uvs),i.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(i=this.attributes.lineDistance,void 0!==i&&(i.copyArray(e.lineDistances),i.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new Et).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);if(this.addAttribute(\"position\",new mt(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){var n=new Float32Array(3*t.normals.length);this.addAttribute(\"normal\",new mt(n,3).copyVector3sArray(t.normals))}if(t.colors.length>0){var i=new Float32Array(3*t.colors.length);this.addAttribute(\"color\",new mt(i,3).copyColorsArray(t.colors))}if(t.uvs.length>0){var r=new Float32Array(2*t.uvs.length);this.addAttribute(\"uv\",new mt(r,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){var a=new Float32Array(2*t.uvs2.length);this.addAttribute(\"uv2\",new mt(a,2).copyVector2sArray(t.uvs2))}if(t.indices.length>0){var o=kt(t.indices)>65535?Uint32Array:Uint16Array,s=new o(3*t.indices.length);this.setIndex(new mt(s,1).copyIndicesArray(t.indices))}this.groups=t.groups;for(var l in t.morphTargets){for(var u=[],c=t.morphTargets[l],h=0,d=c.length;h0){var m=new Mt(4*t.skinIndices.length,4);this.addAttribute(\"skinIndex\",m.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){var g=new Mt(4*t.skinWeights.length,4);this.addAttribute(\"skinWeight\",g.copyVector4sArray(t.skinWeights))}return null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new et);var t=this.attributes.position;void 0!==t?this.boundingBox.setFromBufferAttribute(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){var t=new et,e=new c;return function(){null===this.boundingSphere&&(this.boundingSphere=new nt);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;t.setFromBufferAttribute(n),t.getCenter(i);for(var r=0,a=0,o=n.count;a0&&(t.data.groups=JSON.parse(JSON.stringify(s)));var l=this.boundingSphere;return null!==l&&(t.data.boundingSphere={center:l.center.toArray(),radius:l.radius}),t},clone:function(){return(new Pt).copy(this)},copy:function(t){var e,n,i;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var r=t.index;null!==r&&this.setIndex(r.clone());var a=t.attributes;for(e in a){var o=a[e];this.addAttribute(e,o.clone())}var s=t.morphAttributes;for(e in s){var l=[],u=s[e];for(n=0,i=u.length;n0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var e=0,n=t.length;ee.far?null:{distance:l,point:x.clone(),object:t}}function n(n,i,r,a,o,c,h,d){s.fromBufferAttribute(a,c),l.fromBufferAttribute(a,h),u.fromBufferAttribute(a,d);var f=e(n,i,r,s,l,u,b);return f&&(o&&(m.fromBufferAttribute(o,c),g.fromBufferAttribute(o,h),v.fromBufferAttribute(o,d),f.uv=t(b,s,l,u,m,g,v)),f.face=new ft(c,h,d,dt.normal(s,l,u)),f.faceIndex=c),f}var i=new h,a=new st,o=new nt,s=new c,l=new c,u=new c,d=new c,f=new c,p=new c,m=new r,g=new r,v=new r,y=new c,b=new c,x=new c;return function(r,c){var h=this.geometry,y=this.material,x=this.matrixWorld;if(void 0!==y&&(null===h.boundingSphere&&h.computeBoundingSphere(),o.copy(h.boundingSphere),o.applyMatrix4(x),!1!==r.ray.intersectsSphere(o)&&(i.getInverse(x),a.copy(r.ray).applyMatrix4(i),null===h.boundingBox||!1!==a.intersectsBox(h.boundingBox)))){var _;if(h.isBufferGeometry){var w,M,S,E,k,T=h.index,C=h.attributes.position,P=h.attributes.uv;if(null!==T)for(E=0,k=T.count;E0&&(L=B);for(var F=0,U=z.length;Fthis.scale.x*this.scale.y/4||n.push({distance:Math.sqrt(i),point:this.position,face:null,object:this})}}(),clone:function(){return new this.constructor(this.material).copy(this)}}),ve.prototype=Object.assign(Object.create(ct.prototype),{constructor:ve,copy:function(t){ct.prototype.copy.call(this,t,!1);for(var e=t.levels,n=0,i=e.length;n1){t.setFromMatrixPosition(n.matrixWorld),e.setFromMatrixPosition(this.matrixWorld);var r=t.distanceTo(e);i[0].object.visible=!0;for(var a=1,o=i.length;a=i[a].distance;a++)i[a-1].object.visible=!1,i[a].object.visible=!0;for(;ao)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}else for(var b=0,x=v.length/3-1;bo)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}else if(s.isGeometry)for(var E=s.vertices,k=E.length,b=0;bo)){f.applyMatrix4(this.matrixWorld);var S=i.ray.origin.distanceTo(f);Si.far||r.push({distance:S,point:d.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Me.prototype=Object.assign(Object.create(we.prototype),{constructor:Me,isLineSegments:!0}),Se.prototype=Object.create(J.prototype),Se.prototype.constructor=Se,Se.prototype.isPointsMaterial=!0,Se.prototype.copy=function(t){return J.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this},Ee.prototype=Object.assign(Object.create(ct.prototype),{constructor:Ee,isPoints:!0,raycast:function(){var t=new h,e=new st,n=new nt;return function(i,r){function a(t,n){var a=e.distanceSqToPoint(t);if(ai.far)return;r.push({distance:u,distanceToRay:Math.sqrt(a),point:s.clone(),index:n,face:null,object:o})}}var o=this,s=this.geometry,l=this.matrixWorld,u=i.params.Points.threshold;if(null===s.boundingSphere&&s.computeBoundingSphere(),n.copy(s.boundingSphere),n.applyMatrix4(l),!1!==i.ray.intersectsSphere(n)){t.getInverse(l),e.copy(i.ray).applyMatrix4(t);var h=u/((this.scale.x+this.scale.y+this.scale.z)/3),d=h*h,f=new c;if(s.isBufferGeometry){var p=s.index,m=s.attributes,g=m.position.array;if(null!==p)for(var v=p.array,y=0,b=v.length;y=-Number.EPSILON&&C>=-Number.EPSILON&&T>=-Number.EPSILON))return!1;return!0}return function(e,n){var i=e.length;if(i<3)return null;var r,a,o,s=[],l=[],u=[];if(Ps.area(e)>0)for(a=0;a2;){if(h--<=0)return console.warn(\"THREE.ShapeUtils: Unable to triangulate polygon! in triangulate()\"),n?u:s;if(r=a,c<=r&&(r=0),a=r+1,c<=a&&(a=0),o=a+1,c<=o&&(o=0),t(e,r,a,o,c,l)){var d,f,p,m,g;for(d=l[r],f=l[a],p=l[o],s.push([e[d],e[f],e[p]]),u.push([l[r],l[a],l[o]]),m=a,g=a+1;g2&&t[e-1].equals(t[0])&&t.pop()}function i(t,e,n){return t.x!==e.x?t.xNumber.EPSILON){var p;if(d>0){if(f<0||f>d)return[];if((p=u*c-l*h)<0||p>d)return[]}else{if(f>0||f0||pE?[]:x===E?a?[]:[y]:_<=E?[y,b]:[y,M]}function a(t,e,n,i){var r=e.x-t.x,a=e.y-t.y,o=n.x-t.x,s=n.y-t.y,l=i.x-t.x,u=i.y-t.y,c=r*s-a*o,h=r*u-a*l;if(Math.abs(c)>Number.EPSILON){var d=l*s-u*o;return c>0?h>=0&&d>=0:h>=0||d>=0}return h>0}n(t),e.forEach(n);for(var o,s,l,u,c,h,d={},f=t.concat(),p=0,m=e.length;p0;){if(--_<0){console.log(\"Infinite Loop! Holes left:\"+g.length+\", Probably Hole outside Shape!\");break}for(o=x;oi&&(o=0);var s=a(m[t],m[r],m[o],n[e]);if(!s)return!1;var l=n.length-1,u=e-1;u<0&&(u=l);var c=e+1;return c>l&&(c=0),!!(s=a(n[e],n[u],n[c],m[t]))}(o,w)&&!function(t,e){var n,i,a;for(n=0;n0)return!0;return!1}(s,l)&&!function(t,n){var i,a,o,s,l;for(i=0;i0)return!0;return!1}(s,l)){i=w,g.splice(y,1),h=m.slice(0,o+1),d=m.slice(o),f=n.slice(i),p=n.slice(0,i+1),m=h.concat(f).concat(p).concat(d),x=o;break}if(i>=0)break;v[c]=!0}if(i>=0)break}}return m}(t,e),v=Ps.triangulate(g,!1);for(o=0,s=v.length;oNumber.EPSILON){var f=Math.sqrt(h),p=Math.sqrt(u*u+c*c),m=e.x-l/f,g=e.y+s/f,v=n.x-c/p,y=n.y+u/p,b=((v-m)*c-(y-g)*u)/(s*c-l*u);i=m+s*b-t.x,a=g+l*b-t.y;var x=i*i+a*a;if(x<=2)return new r(i,a);o=Math.sqrt(x/2)}else{var _=!1;s>Number.EPSILON?u>Number.EPSILON&&(_=!0):s<-Number.EPSILON?u<-Number.EPSILON&&(_=!0):Math.sign(l)===Math.sign(c)&&(_=!0),_?(i=-l,a=s,o=Math.sqrt(h)):(i=s,a=l,o=Math.sqrt(h/2))}return new r(i/o,a/o)}function a(t,e){var n,i;for(H=t.length;--H>=0;){n=H,i=H-1,i<0&&(i=t.length-1);var r=0,a=_+2*y;for(r=0;r=0;N--){for(B=N/y,F=g*Math.cos(B*Math.PI/2),z=v*Math.sin(B*Math.PI/2),H=0,q=D.length;H0||0===t.search(/^data\\:image\\/jpeg/);r.format=i?Po:Oo,r.image=n,r.needsUpdate=!0,void 0!==e&&e(r)},n,i),r},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),An.prototype=Object.assign(Object.create(ct.prototype),{constructor:An,isLight:!0,copy:function(t){return ct.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){var e=ct.prototype.toJSON.call(this,t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}),Rn.prototype=Object.assign(Object.create(An.prototype),{constructor:Rn,isHemisphereLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(Ln.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var t={};return 0!==this.bias&&(t.bias=this.bias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),In.prototype=Object.assign(Object.create(Ln.prototype),{constructor:In,isSpotLightShadow:!0,update:function(t){var e=2*fs.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height,i=t.distance||500,r=this.camera;e===r.fov&&n===r.aspect&&i===r.far||(r.fov=e,r.aspect=n,r.far=i,r.updateProjectionMatrix())}}),Dn.prototype=Object.assign(Object.create(An.prototype),{constructor:Dn,isSpotLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Nn.prototype=Object.assign(Object.create(An.prototype),{constructor:Nn,isPointLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),zn.prototype=Object.assign(Object.create(Ln.prototype),{constructor:zn}),Bn.prototype=Object.assign(Object.create(An.prototype),{constructor:Bn,isDirectionalLight:!0,copy:function(t){return An.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),Fn.prototype=Object.assign(Object.create(An.prototype),{constructor:Fn,isAmbientLight:!0});var Is={arraySlice:function(t,e,n){return Is.isTypedArray(t)?new t.constructor(t.subarray(e,n)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:\"number\"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){function e(e,n){return t[e]-t[n]}for(var n=t.length,i=new Array(n),r=0;r!==n;++r)i[r]=r;return i.sort(e),i},sortedArray:function(t,e,n){for(var i=t.length,r=new t.constructor(i),a=0,o=0;o!==i;++a)for(var s=n[a]*e,l=0;l!==e;++l)r[o++]=t[s+l];return r},flattenJSON:function(t,e,n,i){for(var r=1,a=t[0];void 0!==a&&void 0===a[i];)a=t[r++];if(void 0!==a){var o=a[i];if(void 0!==o)if(Array.isArray(o))do{o=a[i],void 0!==o&&(e.push(a.time),n.push.apply(n,o)),a=t[r++]}while(void 0!==a);else if(void 0!==o.toArray)do{o=a[i],void 0!==o&&(e.push(a.time),o.toArray(n,n.length)),a=t[r++]}while(void 0!==a);else do{o=a[i],void 0!==o&&(e.push(a.time),n.push(o)),a=t[r++]}while(void 0!==a)}}};Un.prototype={constructor:Un,evaluate:function(t){var e=this.parameterPositions,n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{var a;n:{i:if(!(t=r)break t;var s=e[1];t=r)break e}a=n,n=0}}for(;n>>1;te;)--a;if(++a,0!==r||a!==i){r>=a&&(a=Math.max(a,1),r=a-1);var o=this.getValueSize();this.times=Is.arraySlice(n,r,a),this.values=Is.arraySlice(this.values,r*o,a*o)}return this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error(\"invalid value size in track\",this),t=!1);var n=this.times,i=this.values,r=n.length;0===r&&(console.error(\"track is empty\",this),t=!1);for(var a=null,o=0;o!==r;o++){var s=n[o];if(\"number\"==typeof s&&isNaN(s)){console.error(\"time is not a valid number\",this,o,s),t=!1;break}if(null!==a&&a>s){console.error(\"out of order keys\",this,o,s,a),t=!1;break}a=s}if(void 0!==i&&Is.isTypedArray(i))for(var o=0,l=i.length;o!==l;++o){var u=i[o];if(isNaN(u)){console.error(\"value is not a valid number\",this,o,u),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,n=this.getValueSize(),i=this.getInterpolation()===Ko,r=1,a=t.length-1,o=1;o0){t[r]=t[a];for(var p=a*n,m=r*n,d=0;d!==n;++d)e[m+d]=e[p+d];++r}return r!==t.length&&(this.times=Is.arraySlice(t,0,r),this.values=Is.arraySlice(e,0,r*n)),this}},Hn.prototype=Object.assign(Object.create(Ds),{constructor:Hn,ValueTypeName:\"vector\"}),qn.prototype=Object.assign(Object.create(Un.prototype),{constructor:qn,interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,l=(n-e)/(i-e),c=s+o;s!==c;s+=4)u.slerpFlat(r,0,a,s-o,a,s,l);return r}}),Yn.prototype=Object.assign(Object.create(Ds),{constructor:Yn,ValueTypeName:\"quaternion\",DefaultInterpolation:Zo,InterpolantFactoryMethodLinear:function(t){return new qn(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),Xn.prototype=Object.assign(Object.create(Ds),{constructor:Xn,ValueTypeName:\"number\"}),Zn.prototype=Object.assign(Object.create(Ds),{constructor:Zn,ValueTypeName:\"string\",ValueBufferType:Array,DefaultInterpolation:Xo,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Kn.prototype=Object.assign(Object.create(Ds),{constructor:Kn,ValueTypeName:\"bool\",ValueBufferType:Array,DefaultInterpolation:Xo,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Qn.prototype=Object.assign(Object.create(Ds),{constructor:Qn,ValueTypeName:\"color\"}),Jn.prototype=Ds,Ds.constructor=Jn,Object.assign(Jn,{parse:function(t){if(void 0===t.type)throw new Error(\"track type undefined, can not parse\");var e=Jn._getTrackTypeForValueTypeName(t.type);if(void 0===t.times){var n=[],i=[];Is.flattenJSON(t.keys,n,i,\"value\"),t.times=n,t.values=i}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)},toJSON:function(t){var e,n=t.constructor;if(void 0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:Is.convertArray(t.times,Array),values:Is.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e},_getTrackTypeForValueTypeName:function(t){switch(t.toLowerCase()){case\"scalar\":case\"double\":case\"float\":case\"number\":case\"integer\":return Xn;case\"vector\":case\"vector2\":case\"vector3\":case\"vector4\":return Hn;case\"color\":return Qn;case\"quaternion\":return Yn;case\"bool\":case\"boolean\":return Kn;case\"string\":return Zn}throw new Error(\"Unsupported typeName: \"+t)}}),$n.prototype={constructor:$n,resetDuration:function(){for(var t=this.tracks,e=0,n=0,i=t.length;n!==i;++n){var r=this.tracks[n];e=Math.max(e,r.times[r.times.length-1])}this.duration=e},trim:function(){for(var t=0;t1){var u=l[1],c=i[u];c||(i[u]=c=[]),c.push(s)}}var h=[];for(var u in i)h.push($n.CreateFromMorphTargetSequence(u,i[u],e,n));return h},parseAnimation:function(t,e){if(!t)return console.error(\" no animation in JSONLoader data\"),null;for(var n=function(t,e,n,i,r){if(0!==n.length){var a=[],o=[];Is.flattenJSON(n,a,o,i),0!==a.length&&r.push(new t(e,a,o))}},i=[],r=t.name||\"default\",a=t.length||-1,o=t.fps||30,s=t.hierarchy||[],l=0;l1?t.skinWeights[i+1]:0,l=e>2?t.skinWeights[i+2]:0,u=e>3?t.skinWeights[i+3]:0;n.skinWeights.push(new o(a,s,l,u))}if(t.skinIndices)for(var i=0,r=t.skinIndices.length;i1?t.skinIndices[i+1]:0,d=e>2?t.skinIndices[i+2]:0,f=e>3?t.skinIndices[i+3]:0;n.skinIndices.push(new o(c,h,d,f))}n.bones=t.bones,n.bones&&n.bones.length>0&&(n.skinWeights.length!==n.skinIndices.length||n.skinIndices.length!==n.vertices.length)&&console.warn(\"When skinning, number of vertices (\"+n.vertices.length+\"), skinIndices (\"+n.skinIndices.length+\"), and skinWeights (\"+n.skinWeights.length+\") should match.\")}(),function(e){if(void 0!==t.morphTargets)for(var i=0,r=t.morphTargets.length;i0){console.warn('THREE.JSONLoader: \"morphColors\" no longer supported. Using them as face colors.');for(var h=n.faces,d=t.morphColors[0].colors,i=0,r=h.length;i0&&(n.animations=e)}(),n.computeFaceNormals(),n.computeBoundingSphere(),void 0===t.materials||0===t.materials.length)return{geometry:n};var a=ni.prototype.initMaterials(t.materials,e,this.crossOrigin);return{geometry:n,materials:a}}}),Object.assign(ri.prototype,{load:function(t,e,n,i){\"\"===this.texturePath&&(this.texturePath=t.substring(0,t.lastIndexOf(\"/\")+1));var r=this;new En(r.manager).load(t,function(n){var a=null;try{a=JSON.parse(n)}catch(e){return void 0!==i&&i(e),void console.error(\"THREE:ObjectLoader: Can't parse \"+t+\".\",e.message)}var o=a.metadata;if(void 0===o||void 0===o.type||\"geometry\"===o.type.toLowerCase())return void console.error(\"THREE.ObjectLoader: Can't load \"+t+\". Use THREE.JSONLoader instead.\");r.parse(a,e)},n,i)},setTexturePath:function(t){this.texturePath=t},setCrossOrigin:function(t){this.crossOrigin=t},parse:function(t,e){var n=this.parseGeometries(t.geometries),i=this.parseImages(t.images,function(){void 0!==e&&e(o)}),r=this.parseTextures(t.textures,i),a=this.parseMaterials(t.materials,r),o=this.parseObject(t.object,n,a);return t.animations&&(o.animations=this.parseAnimations(t.animations)),void 0!==t.images&&0!==t.images.length||void 0!==e&&e(o),o},parseGeometries:function(t){var e={};if(void 0!==t)for(var n=new ii,i=new ei,r=0,a=t.length;r0){var r=new Sn(e),a=new Cn(r);a.setCrossOrigin(this.crossOrigin);for(var o=0,s=t.length;o0?new xe(s,l):new Ot(s,l);break;case\"LOD\":o=new ve;break;case\"Line\":o=new we(r(e.geometry),a(e.material),e.mode);break;case\"LineSegments\":o=new Me(r(e.geometry),a(e.material));break;case\"PointCloud\":case\"Points\":o=new Ee(r(e.geometry),a(e.material));break;case\"Sprite\":o=new ge(a(e.material));break;case\"Group\":o=new ke;break;case\"SkinnedMesh\":console.warn(\"THREE.ObjectLoader.parseObject() does not support SkinnedMesh type. Instantiates Object3D instead.\");default:o=new ct}if(o.uuid=e.uuid,void 0!==e.name&&(o.name=e.name),void 0!==e.matrix?(t.fromArray(e.matrix),t.decompose(o.position,o.quaternion,o.scale)):(void 0!==e.position&&o.position.fromArray(e.position),void 0!==e.rotation&&o.rotation.fromArray(e.rotation),void 0!==e.quaternion&&o.quaternion.fromArray(e.quaternion),void 0!==e.scale&&o.scale.fromArray(e.scale)),void 0!==e.castShadow&&(o.castShadow=e.castShadow),void 0!==e.receiveShadow&&(o.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(o.shadow.bias=e.shadow.bias),void 0!==e.shadow.radius&&(o.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&o.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(o.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(o.visible=e.visible),void 0!==e.userData&&(o.userData=e.userData),void 0!==e.children)for(var u in e.children)o.add(this.parseObject(e.children[u],n,i));if(\"LOD\"===e.type)for(var c=e.levels,h=0;h0)){l=r;break}l=r-1}if(r=l,i[r]===n){var u=r/(a-1);return u}var c=i[r],h=i[r+1],d=h-c,f=(n-c)/d,u=(r+f)/(a-1);return u},getTangent:function(t){var e=t-1e-4,n=t+1e-4;e<0&&(e=0),n>1&&(n=1);var i=this.getPoint(e);return this.getPoint(n).clone().sub(i).normalize()},getTangentAt:function(t){var e=this.getUtoTmapping(t);return this.getTangent(e)},computeFrenetFrames:function(t,e){var n,i,r,a=new c,o=[],s=[],l=[],u=new c,d=new h;for(n=0;n<=t;n++)i=n/t,o[n]=this.getTangentAt(i),o[n].normalize();s[0]=new c,l[0]=new c;var f=Number.MAX_VALUE,p=Math.abs(o[0].x),m=Math.abs(o[0].y),g=Math.abs(o[0].z);for(p<=f&&(f=p,a.set(1,0,0)),m<=f&&(f=m,a.set(0,1,0)),g<=f&&a.set(0,0,1),u.crossVectors(o[0],a).normalize(),s[0].crossVectors(o[0],u),l[0].crossVectors(o[0],s[0]),n=1;n<=t;n++)s[n]=s[n-1].clone(),l[n]=l[n-1].clone(),u.crossVectors(o[n-1],o[n]),u.length()>Number.EPSILON&&(u.normalize(),r=Math.acos(fs.clamp(o[n-1].dot(o[n]),-1,1)),s[n].applyMatrix4(d.makeRotationAxis(u,r))),l[n].crossVectors(o[n],s[n]);if(!0===e)for(r=Math.acos(fs.clamp(s[0].dot(s[t]),-1,1)),r/=t,o[0].dot(u.crossVectors(s[0],s[t]))>0&&(r=-r),n=1;n<=t;n++)s[n].applyMatrix4(d.makeRotationAxis(o[n],r*n)),l[n].crossVectors(o[n],s[n]);return{tangents:o,normals:s,binormals:l}}},gi.prototype=Object.create(mi.prototype),gi.prototype.constructor=gi,gi.prototype.isLineCurve=!0,gi.prototype.getPoint=function(t){if(1===t)return this.v2.clone();var e=this.v2.clone().sub(this.v1);return e.multiplyScalar(t).add(this.v1),e},gi.prototype.getPointAt=function(t){return this.getPoint(t)},gi.prototype.getTangent=function(t){return this.v2.clone().sub(this.v1).normalize()},vi.prototype=Object.assign(Object.create(mi.prototype),{constructor:vi,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new gi(e,t))},getPoint:function(t){for(var e=t*this.getLength(),n=this.getCurveLengths(),i=0;i=e){var r=n[i]-e,a=this.curves[i],o=a.getLength(),s=0===o?0:1-r/o;return a.getPointAt(s)}i++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,n=0,i=this.curves.length;n1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},createPointsGeometry:function(t){var e=this.getPoints(t);return this.createGeometry(e)},createSpacedPointsGeometry:function(t){var e=this.getSpacedPoints(t);return this.createGeometry(e)},createGeometry:function(t){for(var e=new Ct,n=0,i=t.length;ne;)n-=e;ne.length-2?e.length-1:i+1],u=e[i>e.length-3?e.length-1:i+2];return new r(ai(a,o.x,s.x,l.x,u.x),ai(a,o.y,s.y,l.y,u.y))},xi.prototype=Object.create(mi.prototype),xi.prototype.constructor=xi,xi.prototype.getPoint=function(t){var e=this.v0,n=this.v1,i=this.v2,a=this.v3;return new r(pi(t,e.x,n.x,i.x,a.x),pi(t,e.y,n.y,i.y,a.y))},_i.prototype=Object.create(mi.prototype),_i.prototype.constructor=_i,_i.prototype.getPoint=function(t){var e=this.v0,n=this.v1,i=this.v2;return new r(ui(t,e.x,n.x,i.x),ui(t,e.y,n.y,i.y))};var Ns=Object.assign(Object.create(vi.prototype),{fromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,n=t.length;e0){var u=l.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(l);var c=l.getPoint(1);this.currentPoint.copy(c)}});wi.prototype=Ns,Ns.constructor=wi,Mi.prototype=Object.assign(Object.create(Ns),{constructor:Mi,getPointsHoles:function(t){for(var e=[],n=0,i=this.holes.length;n1){for(var v=!1,y=[],b=0,x=d.length;bNumber.EPSILON){if(u<0&&(o=e[a],l=-l,s=e[r],u=-u),t.ys.y)continue;if(t.y===o.y){if(t.x===o.x)return!0}else{var c=u*(t.x-o.x)-l*(t.y-o.y);if(0===c)return!0;if(c<0)continue;i=!i}}else{if(t.y!==o.y)continue;if(s.x<=t.x&&t.x<=o.x||o.x<=t.x&&t.x<=s.x)return!0}}return i})(M.p,d[E].p)&&(b!==E&&y.push({froms:b,tos:E,hole:w}),S?(S=!1,h[E].push(M)):v=!0);S&&h[b].push(M)}y.length>0&&(v||(f=h))}for(var k,m=0,T=d.length;m0){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t0){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t=.5)for(var a=0;a!==r;++a)t[e+a]=t[n+a]},_slerp:function(t,e,n,i,r){u.slerpFlat(t,e,t,e,t,n,i)},_lerp:function(t,e,n,i,r){for(var a=1-i,o=0;o!==r;++o){var s=e+o;t[s]=t[s]*a+t[n+o]*i}}},Ni.prototype={constructor:Ni,getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,n=e.objectName,i=e.propertyName,r=e.propertyIndex;if(t||(t=Ni.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error(\" trying to update node for track: \"+this.path+\" but it wasn't found.\");if(n){var a=e.objectIndex;switch(n){case\"materials\":if(!t.material)return void console.error(\" can not bind to material as node does not have a material\",this);if(!t.material.materials)return void console.error(\" can not bind to material.materials as node.material does not have a materials array\",this);t=t.material.materials;break;case\"bones\":if(!t.skeleton)return void console.error(\" can not bind to bones as node does not have a skeleton\",this);t=t.skeleton.bones;for(var o=0;o=n){var h=n++,d=e[h];i[d.uuid]=c,e[c]=d,i[u]=h,e[h]=l;for(var f=0,p=a;f!==p;++f){var m=r[f],g=m[h],v=m[c];m[c]=g,m[h]=v}}}this.nCachedObjects_=n},uncache:function(t){for(var e=this._objects,n=e.length,i=this.nCachedObjects_,r=this._indicesByUUID,a=this._bindings,o=a.length,s=0,l=arguments.length;s!==l;++s){var u=arguments[s],c=u.uuid,h=r[c];if(void 0!==h)if(delete r[c],h0)for(var l=this._interpolants,u=this._propertyBindings,c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulate(i,s)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n){e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e},_updateTime:function(t){var e=this.time+t;if(0===t)return e;var n=this._clip.duration,i=this.loop,r=this._loopCount;if(i===Ho){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(e>=n)e=n;else{if(!(e<0))break t;e=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:\"finished\",action:this,direction:t<0?-1:1})}}else{var a=i===Yo;if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),e>=n||e<0){var o=Math.floor(e/n);e-=n*o,r+=Math.abs(o);var s=this.repetitions-r;if(s<0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=t>0?n:0,this._mixer.dispatchEvent({type:\"finished\",action:this,direction:t>0?1:-1});else{if(0===s){var l=t<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=e,n-e}return this.time=e,e},_setEndings:function(t,e,n){var i=this._interpolantSettings;n?(i.endingStart=Jo,i.endingEnd=Jo):(i.endingStart=t?this.zeroSlopeAtStart?Jo:Qo:$o,i.endingEnd=e?this.zeroSlopeAtEnd?Jo:Qo:$o)},_scheduleFading:function(t,e,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]=e,o[1]=r+t,s[1]=n,this}},Fi.prototype={constructor:Fi,clipAction:function(t,e){var n=e||this._root,i=n.uuid,r=\"string\"==typeof t?$n.findByName(n,t):t,a=null!==r?r.uuid:t,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 u=new Bi(this,r,e);return this._bindAction(u,s),this._addInactiveAction(u,a,i),u},existingAction:function(t,e){var n=e||this._root,i=n.uuid,r=\"string\"==typeof t?$n.findByName(n,t):t,a=r?r.uuid:t,o=this._actionsByClip[a];return void 0!==o?o.actionByRoot[i]||null:null},stopAllAction:function(){var t=this._actions,e=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var r=0;r!==e;++r)t[r].reset();for(var r=0;r!==i;++r)n[r].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),a=this._accuIndex^=1,o=0;o!==n;++o){var s=e[o];s.enabled&&s._update(i,t,r,a)}for(var l=this._bindings,u=this._nActiveBindings,o=0;o!==u;++o)l[o].apply(a);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions,n=t.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 u=l._cacheIndex,c=e[e.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,c._cacheIndex=u,e[u]=c,e.pop(),this._removeInactiveBindingsForAction(l)}delete i[n]}},uncacheRoot:function(t){var e=t.uuid,n=this._actionsByClip;for(var i in n){var r=n[i].actionByRoot,a=r[e];void 0!==a&&(this._deactivateAction(a),this._removeInactiveAction(a))}var o=this._bindingsByRootAndName,s=o[e];if(void 0!==s)for(var l in s){var u=s[l];u.restoreOriginalState(),this._removeInactiveBinding(u)}},uncacheAction:function(t,e){var n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}},Object.assign(Fi.prototype,{_bindAction:function(t,e){var n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,a=t._propertyBindings,o=t._interpolants,s=n.uuid,l=this._bindingsByRootAndName,u=l[s];void 0===u&&(u={},l[s]=u);for(var c=0;c!==r;++c){var h=i[c],d=h.name,f=u[d];if(void 0!==f)a[c]=f;else{if(void 0!==(f=a[c])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,s,d));continue}var p=e&&e._propertyBindings[c].binding.parsedPath;f=new Di(Ni.create(n,d,p),h.ValueTypeName,h.getValueSize()),++f.referenceCount,this._addInactiveBinding(f,s,d),a[c]=f}o[c].resultBuffer=f.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){var e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}for(var r=t._propertyBindings,a=0,o=r.length;a!==o;++a){var s=r[a];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){var e=t._cacheIndex;return null!==e&&e1){var u=l[1];i[u]||(i[u]={start:1/0,end:-1/0});var c=i[u];ac.end&&(c.end=a),e||(e=u)}}for(var u in i){var c=i[u];this.createAnimation(u,c.start,c.end,t)}this.firstAnimation=e},Ji.prototype.setAnimationDirectionForward=function(t){var e=this.animationsMap[t];e&&(e.direction=1,e.directionBackwards=!1)},Ji.prototype.setAnimationDirectionBackward=function(t){var e=this.animationsMap[t];e&&(e.direction=-1,e.directionBackwards=!0)},Ji.prototype.setAnimationFPS=function(t,e){var n=this.animationsMap[t];n&&(n.fps=e,n.duration=(n.end-n.start)/n.fps)},Ji.prototype.setAnimationDuration=function(t,e){var n=this.animationsMap[t];n&&(n.duration=e,n.fps=(n.end-n.start)/n.duration)},Ji.prototype.setAnimationWeight=function(t,e){var n=this.animationsMap[t];n&&(n.weight=e)},Ji.prototype.setAnimationTime=function(t,e){var n=this.animationsMap[t];n&&(n.time=e)},Ji.prototype.getAnimationTime=function(t){var e=0,n=this.animationsMap[t];return n&&(e=n.time),e},Ji.prototype.getAnimationDuration=function(t){var e=-1,n=this.animationsMap[t];return n&&(e=n.duration),e},Ji.prototype.playAnimation=function(t){var e=this.animationsMap[t];e?(e.time=0,e.active=!0):console.warn(\"THREE.MorphBlendMesh: animation[\"+t+\"] undefined in .playAnimation()\")},Ji.prototype.stopAnimation=function(t){var e=this.animationsMap[t];e&&(e.active=!1)},Ji.prototype.update=function(t){for(var e=0,n=this.animationsList.length;ei.duration||i.time<0)&&(i.direction*=-1,i.time>i.duration&&(i.time=i.duration,i.directionBackwards=!0),i.time<0&&(i.time=0,i.directionBackwards=!1)):(i.time=i.time%i.duration,i.time<0&&(i.time+=i.duration));var a=i.start+fs.clamp(Math.floor(i.time/r),0,i.length-1),o=i.weight;a!==i.currentFrame&&(this.morphTargetInfluences[i.lastFrame]=0,this.morphTargetInfluences[i.currentFrame]=1*o,this.morphTargetInfluences[a]=0,i.lastFrame=i.currentFrame,i.currentFrame=a);var s=i.time%r/r;i.directionBackwards&&(s=1-s),i.currentFrame!==i.lastFrame?(this.morphTargetInfluences[i.currentFrame]=s*o,this.morphTargetInfluences[i.lastFrame]=(1-s)*o):this.morphTargetInfluences[i.currentFrame]=o}}},$i.prototype=Object.create(ct.prototype),$i.prototype.constructor=$i,$i.prototype.isImmediateRenderObject=!0,tr.prototype=Object.create(Me.prototype),tr.prototype.constructor=tr,tr.prototype.update=function(){var t=new c,e=new c,n=new it;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,u=0,c=0,h=l.length;c.99999?this.quaternion.set(0,0,0,1):n.y<-.99999?this.quaternion.set(1,0,0,0):(e.set(n.z,0,-n.x).normalize(),t=Math.acos(n.y),this.quaternion.setFromAxisAngle(e,t))}}(),dr.prototype.setLength=function(t,e,n){void 0===e&&(e=.2*t),void 0===n&&(n=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()},dr.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},fr.prototype=Object.create(Me.prototype),fr.prototype.constructor=fr;var js=new c,Ws=new pr,Gs=new pr,Vs=new pr;mr.prototype=Object.create(mi.prototype),mr.prototype.constructor=mr,mr.prototype.getPoint=function(t){var e=this.points,n=e.length;n<2&&console.log(\"duh, you need at least 2 points\");var i=(n-(this.closed?0:1))*t,r=Math.floor(i),a=i-r;this.closed?r+=r>0?0:(Math.floor(Math.abs(r)/e.length)+1)*e.length:0===a&&r===n-1&&(r=n-2,a=1);var o,s,l,u;if(this.closed||r>0?o=e[(r-1)%n]:(js.subVectors(e[0],e[1]).add(e[0]),o=js),s=e[r%n],l=e[(r+1)%n],this.closed||r+20}function a(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),St(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function o(t,e){var n=Me();try{var i=t.interceptors;if(i)for(var r=0,a=i.length;r0}function l(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),St(function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})}function u(t,e){var n=Me(),i=t.changeListeners;if(i){i=i.slice();for(var r=0,a=i.length;r=this.length,value:e0,\"actions should have valid names, got: '\"+t+\"'\");var n=function(){return S(t,e,this,arguments)};return n.originalFn=e,n.isMobxAction=!0,n}function S(t,e,n,i){var r=E(t,e,n,i);try{return e.apply(n,i)}finally{k(r)}}function E(t,e,n,i){var r=c()&&!!t,a=0;if(r){a=Date.now();var o=i&&i.length||0,s=new Array(o);if(o>0)for(var l=0;l\",r=\"function\"==typeof t?t:e,a=\"function\"==typeof t?e:n;return wt(\"function\"==typeof r,w(\"m002\")),wt(0===r.length,w(\"m003\")),wt(\"string\"==typeof i&&i.length>0,\"actions should have valid names, got: '\"+i+\"'\"),S(i,r,a,void 0)}function B(t){return\"function\"==typeof t&&!0===t.isMobxAction}function F(t,e,n){var i=function(){return S(e,n,t,arguments)};i.isMobxAction=!0,At(t,e,i)}function U(t,e){return t===e}function j(t,e){return Nt(t,e)}function W(t,e){return Bt(t,e)||U(t,e)}function G(t,e,n){function i(){a(s)}var r,a,o;\"string\"==typeof t?(r=t,a=e,o=n):(r=t.name||\"Autorun@\"+xt(),a=t,o=e),wt(\"function\"==typeof a,w(\"m004\")),wt(!1===B(a),w(\"m005\")),o&&(a=a.bind(o));var s=new Kn(r,function(){this.track(i)});return s.schedule(),s.getDisposer()}function V(t,e,n,i){var r,a,o,s;return\"string\"==typeof t?(r=t,a=e,o=n,s=i):(r=\"When@\"+xt(),a=t,o=e,s=n),G(r,function(t){if(a.call(s)){t.dispose();var e=Me();o.call(s),Se(e)}})}function H(t,e,n,i){function r(){o(c)}var a,o,s,l;\"string\"==typeof t?(a=t,o=e,s=n,l=i):(a=t.name||\"AutorunAsync@\"+xt(),o=t,s=e,l=n),wt(!1===B(o),w(\"m006\")),void 0===s&&(s=1),l&&(o=o.bind(l));var u=!1,c=new Kn(a,function(){u||(u=!0,setTimeout(function(){u=!1,c.isDisposed||c.track(r)},s))});return c.schedule(),c.getDisposer()}function q(t,e,n){function i(){if(!u.isDisposed){var n=!1;u.track(function(){var e=t(u);n=o||!l(a,e),a=e}),o&&r.fireImmediately&&e(a,u),o||!0!==n||e(a,u),o&&(o=!1)}}arguments.length>3&&_t(w(\"m007\")),ct(t)&&_t(w(\"m008\"));var r;r=\"object\"==typeof n?n:{},r.name=r.name||t.name||e.name||\"Reaction@\"+xt(),r.fireImmediately=!0===n||!0===r.fireImmediately,r.delay=r.delay||0,r.compareStructural=r.compareStructural||r.struct||!1,e=yn(r.name,r.context?e.bind(r.context):e),r.context&&(t=t.bind(r.context));var a,o=!0,s=!1,l=r.equals?r.equals:r.compareStructural||r.struct?bn.structural:bn.default,u=new Kn(r.name,function(){o||r.delay<1?i():s||(s=!0,setTimeout(function(){s=!1,i()},r.delay))});return u.schedule(),u.getDisposer()}function Y(t,e){if(nt(t)&&t.hasOwnProperty(\"$mobx\"))return t.$mobx;wt(Object.isExtensible(t),w(\"m035\")),Ct(t)||(e=(t.constructor.name||\"ObservableObject\")+\"@\"+xt()),e||(e=\"ObservableObject@\"+xt());var n=new wn(t,e);return Rt(t,\"$mobx\",n),n}function X(t,e,n,i){if(t.values[e]&&!_n(t.values[e]))return wt(\"value\"in n,\"The property \"+e+\" in \"+t.name+\" is already observable, cannot redefine it as computed property\"),void(t.target[e]=n.value);if(\"value\"in n)if(ct(n.value)){var r=n.value;Z(t,e,r.initialValue,r.enhancer)}else B(n.value)&&!0===n.value.autoBind?F(t.target,e,n.value.originalFn):_n(n.value)?Q(t,e,n.value):Z(t,e,n.value,i);else K(t,e,n.get,n.set,bn.default,!0)}function Z(t,e,n,i){if(It(t.target,e),r(t)){var a=o(t,{object:t.target,name:e,type:\"add\",newValue:n});if(!a)return;n=a.newValue}n=(t.values[e]=new fn(n,i,t.name+\".\"+e,!1)).value,Object.defineProperty(t.target,e,J(e)),et(t,t.target,e,n)}function K(t,e,n,i,r,a){a&&It(t.target,e),t.values[e]=new xn(n,t.target,r,t.name+\".\"+e,i),a&&Object.defineProperty(t.target,e,$(e))}function Q(t,e,n){var i=t.name+\".\"+e;n.name=i,n.scope||(n.scope=t.target),t.values[e]=n,Object.defineProperty(t.target,e,$(e))}function J(t){return Mn[t]||(Mn[t]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[t].get()},set:function(e){tt(this,t,e)}})}function $(t){return Sn[t]||(Sn[t]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[t].get()},set:function(e){return this.$mobx.values[t].set(e)}})}function tt(t,e,n){var i=t.$mobx,a=i.values[e];if(r(i)){var l=o(i,{type:\"update\",object:t,name:e,newValue:n});if(!l)return;n=l.newValue}if((n=a.prepareNewValue(n))!==dn){var h=s(i),p=c(),l=h||p?{type:\"update\",object:t,oldValue:a.value,name:e,newValue:n}:null;p&&d(l),a.setNewValue(n),h&&u(i,l),p&&f()}}function et(t,e,n,i){var r=s(t),a=c(),o=r||a?{type:\"add\",object:e,name:n,newValue:i}:null;a&&d(o),r&&u(t,o),a&&f()}function nt(t){return!!Tt(t)&&(I(t),En(t.$mobx))}function it(t,e){if(null===t||void 0===t)return!1;if(void 0!==e){if(_(t)||Dn(t))throw new Error(w(\"m019\"));if(nt(t)){var n=t.$mobx;return n.values&&!!n.values[e]}return!1}return nt(t)||!!t.$mobx||en(t)||$n(t)||_n(t)}function rt(t){return wt(!!t,\":(\"),R(function(e,n,i,r,a){It(e,n),wt(!a||!a.get,w(\"m022\")),Z(Y(e,void 0),n,i,t)},function(t){var e=this.$mobx.values[t];if(void 0!==e)return e.get()},function(t,e){tt(this,t,e)},!0,!1)}function at(t){for(var e=[],n=1;n=2,w(\"m014\")),wt(\"object\"==typeof t,w(\"m015\")),wt(!Dn(t),w(\"m016\")),n.forEach(function(t){wt(\"object\"==typeof t,w(\"m017\")),wt(!it(t),w(\"m018\"))});for(var i=Y(t),r={},a=n.length-1;a>=0;a--){var o=n[a];for(var s in o)if(!0!==r[s]&&Ot(o,s)){if(r[s]=!0,t===o&&!Lt(t,s))continue;var l=Object.getOwnPropertyDescriptor(o,s);X(i,s,l,e)}}return t}function lt(t){if(void 0===t&&(t=void 0),\"string\"==typeof arguments[1])return kn.apply(null,arguments);if(wt(arguments.length<=1,w(\"m021\")),wt(!ct(t),w(\"m020\")),it(t))return t;var e=dt(t,void 0,void 0);return e!==t?e:Rn.box(t)}function ut(t){_t(\"Expected one or two arguments to observable.\"+t+\". Did you accidentally try to use observable.\"+t+\" as decorator?\")}function ct(t){return\"object\"==typeof t&&null!==t&&!0===t.isMobxModifierDescriptor}function ht(t,e){return wt(!ct(e),\"Modifiers cannot be nested\"),{isMobxModifierDescriptor:!0,initialValue:e,enhancer:t}}function dt(t,e,n){return ct(t)&&_t(\"You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it\"),it(t)?t:Array.isArray(t)?Rn.array(t,n):Ct(t)?Rn.object(t,n):jt(t)?Rn.map(t,n):t}function ft(t,e,n){return ct(t)&&_t(\"You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it\"),void 0===t||null===t?t:nt(t)||_(t)||Dn(t)?t:Array.isArray(t)?Rn.shallowArray(t,n):Ct(t)?Rn.shallowObject(t,n):jt(t)?Rn.shallowMap(t,n):_t(\"The shallow modifier / decorator can only used in combination with arrays, objects and maps\")}function pt(t){return t}function mt(t,e,n){if(Nt(t,e))return e;if(it(t))return t;if(Array.isArray(t))return new un(t,mt,n);if(jt(t))return new In(t,mt,n);if(Ct(t)){var i={};return Y(i,n),st(i,mt,[t]),i}return t}function gt(t,e,n){return Nt(t,e)?e:t}function vt(t,e){void 0===e&&(e=void 0),se();try{return t.apply(e)}finally{le()}}function yt(t){return Mt(\"`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead\"),Rn.map(t)}function bt(){return\"undefined\"!=typeof window?window:t}function xt(){return++Wn.mobxGuid}function _t(t,e){throw wt(!1,t,e),\"X\"}function wt(t,e,n){if(!t)throw new Error(\"[mobx] Invariant failed: \"+e+(n?\" in '\"+n+\"'\":\"\"))}function Mt(t){return-1===zn.indexOf(t)&&(zn.push(t),console.error(\"[mobx] Deprecated: \"+t),!0)}function St(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}function Et(t){var e=[];return t.forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),e}function kt(t,e,n){return void 0===e&&(e=100),void 0===n&&(n=\" - \"),t?t.slice(0,e).join(n)+(t.length>e?\" (... and \"+(t.length-e)+\"more)\":\"\"):\"\"}function Tt(t){return null!==t&&\"object\"==typeof t}function Ct(t){if(null===t||\"object\"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function Pt(){for(var t=arguments[0],e=1,n=arguments.length;e=0;r--)if(!Nt(t[r],e[r]))return!1;return!0}if(i){if(t.size!==e.size)return!1;var a=!0;return t.forEach(function(t,n){a=a&&Nt(e.get(n),t)}),a}if(\"object\"==typeof t&&\"object\"==typeof e){if(null===t||null===e)return!1;if(Ut(t)&&Ut(e))return t.size===e.size&&Nt(Rn.shallowMap(t).entries(),Rn.shallowMap(e).entries());if(Dt(t).length!==Dt(e).length)return!1;for(var o in t){if(!(o in e))return!1;if(!Nt(t[o],e[o]))return!1}return!0}return!1}function zt(t,e){var n=\"isMobX\"+t;return e.prototype[n]=!0,function(t){return Tt(t)&&!0===t[n]}}function Bt(t,e){return\"number\"==typeof t&&\"number\"==typeof e&&isNaN(t)&&isNaN(e)}function Ft(t){return Array.isArray(t)||_(t)}function Ut(t){return jt(t)||Dn(t)}function jt(t){return void 0!==bt().Map&&t instanceof bt().Map}function Wt(t){var e;return Ct(t)?e=Object.keys(t):Array.isArray(t)?e=t.map(function(t){return t[0]}):Ut(t)?e=Array.from(t.keys()):_t(\"Cannot get keys from \"+t),e}function Gt(){return\"function\"==typeof Symbol&&Symbol.toPrimitive||\"@@toPrimitive\"}function Vt(t){return null===t?null:\"object\"==typeof t?\"\"+t:t}function Ht(){Vn=!0,bt().__mobxInstanceCount--}function qt(){Mt(\"Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details.\"),Gn=!0;var t=bt(),e=Wn;if(t.__mobservableTrackingStack||t.__mobservableViewStack)throw new Error(\"[mobx] An incompatible version of mobservable is already loaded.\");if(t.__mobxGlobal&&t.__mobxGlobal.version!==e.version)throw new Error(\"[mobx] An incompatible version of mobx is already loaded.\");t.__mobxGlobal?Wn=t.__mobxGlobal:t.__mobxGlobal=e}function Yt(){return Wn}function Xt(){Wn.resetId++;var t=new jn;for(var e in t)-1===Un.indexOf(e)&&(Wn[e]=t[e]);Wn.allowStateChanges=!Wn.strictMode}function Zt(t,e){if(\"object\"==typeof t&&null!==t){if(_(t))return wt(void 0===e,w(\"m036\")),t.$mobx.atom;if(Dn(t)){var n=t;if(void 0===e)return Zt(n._keys);var i=n._data[e]||n._hasMap[e];return wt(!!i,\"the entry '\"+e+\"' does not exist in the observable map '\"+Qt(t)+\"'\"),i}if(I(t),e&&!t.$mobx&&t[e],nt(t)){if(!e)return _t(\"please specify a property\");var i=t.$mobx.values[e];return wt(!!i,\"no observable property '\"+e+\"' found on the observable object '\"+Qt(t)+\"'\"),i}if(en(t)||_n(t)||$n(t))return t}else if(\"function\"==typeof t&&$n(t.$mobx))return t.$mobx;return _t(\"Cannot obtain atom from \"+t)}function Kt(t,e){return wt(t,\"Expecting some object\"),void 0!==e?Kt(Zt(t,e)):en(t)||_n(t)||$n(t)?t:Dn(t)?t:(I(t),t.$mobx?t.$mobx:void wt(!1,\"Cannot obtain administration from \"+t))}function Qt(t,e){var n;return n=void 0!==e?Zt(t,e):nt(t)||Dn(t)?Kt(t):Zt(t),n.name}function Jt(t,e){return $t(Zt(t,e))}function $t(t){var e={name:t.name};return t.observing&&t.observing.length>0&&(e.dependencies=Et(t.observing).map($t)),e}function te(t,e){return ee(Zt(t,e))}function ee(t){var e={name:t.name};return ne(t)&&(e.observers=ie(t).map(ee)),e}function ne(t){return t.observers&&t.observers.length>0}function ie(t){return t.observers}function re(t,e){var n=t.observers.length;n&&(t.observersIndexes[e.__mapid]=n),t.observers[n]=e,t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function ae(t,e){if(1===t.observers.length)t.observers.length=0,oe(t);else{var n=t.observers,i=t.observersIndexes,r=n.pop();if(r!==e){var a=i[e.__mapid]||0;a?i[r.__mapid]=a:delete i[r.__mapid],n[a]=r}delete i[e.__mapid]}}function oe(t){t.isPendingUnobservation||(t.isPendingUnobservation=!0,Wn.pendingUnobservations.push(t))}function se(){Wn.inBatch++}function le(){if(0==--Wn.inBatch){Re();for(var t=Wn.pendingUnobservations,e=0;e=1e3)return void e.push(\"(and many more)\");e.push(\"\"+new Array(n).join(\"\\t\")+t.name),t.dependencies&&t.dependencies.forEach(function(t){return pe(t,e,n+1)})}function me(t){return t instanceof Zn}function ge(t){switch(t.dependenciesState){case Yn.UP_TO_DATE:return!1;case Yn.NOT_TRACKING:case Yn.STALE:return!0;case Yn.POSSIBLY_STALE:for(var e=Me(),n=t.observing,i=n.length,r=0;r0;Wn.computationDepth>0&&e&&_t(w(\"m031\")+t.name),!Wn.allowStateChanges&&e&&_t(w(Wn.strictMode?\"m030a\":\"m030b\")+t.name)}function be(t,e,n){Ee(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Wn.runId;var i=Wn.trackingDerivation;Wn.trackingDerivation=t;var r;try{r=e.call(n)}catch(t){r=new Zn(t)}return Wn.trackingDerivation=i,xe(t),r}function xe(t){for(var e=t.observing,n=t.observing=t.newObserving,i=Yn.UP_TO_DATE,r=0,a=t.unboundDepsCount,o=0;oi&&(i=s.dependenciesState)}for(n.length=r,t.newObserving=null,a=e.length;a--;){var s=e[a];0===s.diffValue&&ae(s,t),s.diffValue=0}for(;r--;){var s=n[r];1===s.diffValue&&(s.diffValue=0,re(s,t))}i!==Yn.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function _e(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)ae(e[n],t);t.dependenciesState=Yn.NOT_TRACKING}function we(t){var e=Me(),n=t();return Se(e),n}function Me(){var t=Wn.trackingDerivation;return Wn.trackingDerivation=null,t}function Se(t){Wn.trackingDerivation=t}function Ee(t){if(t.dependenciesState!==Yn.UP_TO_DATE){t.dependenciesState=Yn.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=Yn.UP_TO_DATE}}function ke(t){return console.log(t),t}function Te(t,e){return Mt(\"`whyRun` is deprecated in favor of `trace`\"),t=Pe(arguments),t?_n(t)||$n(t)?ke(t.whyRun()):_t(w(\"m025\")):ke(w(\"m024\"))}function Ce(){for(var t=[],e=0;e=0&&Wn.globalReactionErrorHandlers.splice(e,1)}}function Re(){Wn.inBatch>0||Wn.isRunningReactions||Jn(Le)}function Le(){Wn.isRunningReactions=!0;for(var t=Wn.pendingReactions,e=0;t.length>0;){++e===Qn&&(console.error(\"Reaction doesn't converge to a stable state after \"+Qn+\" iterations. Probably there is a cycle in the reactive function: \"+t[0]),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;ie){for(var n=new Array(t-e),i=0;i0&&t+e+1>on&&x(t+e+1)},t.prototype.spliceWithArray=function(t,e,n){var i=this;ye(this.atom);var a=this.values.length;if(void 0===t?t=0:t>a?t=a:t<0&&(t=Math.max(0,a+t)),e=1===arguments.length?a-t:void 0===e||null===e?0:Math.max(0,Math.min(e,a-t)),void 0===n&&(n=[]),r(this)){var s=o(this,{object:this.array,type:\"splice\",index:t,removedCount:e,added:n});if(!s)return Nn;e=s.removedCount,n=s.added}n=n.map(function(t){return i.enhancer(t,void 0)});var l=n.length-e;this.updateArrayLength(a,l);var u=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(t,e,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[t,e].concat(n));var i=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),i;var r},t.prototype.notifyArrayChildUpdate=function(t,e,n){var i=!this.owned&&c(),r=s(this),a=r||i?{object:this.array,type:\"update\",index:t,newValue:e,oldValue:n}:null;i&&d(a),this.atom.reportChanged(),r&&u(this,a),i&&f()},t.prototype.notifyArraySplice=function(t,e,n){var i=!this.owned&&c(),r=s(this),a=r||i?{object:this.array,type:\"splice\",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;i&&d(a),this.atom.reportChanged(),r&&u(this,a),i&&f()},t}(),un=function(t){function e(e,n,i,r){void 0===i&&(i=\"ObservableArray@\"+xt()),void 0===r&&(r=!1);var a=t.call(this)||this,o=new ln(i,n,a,r);return Rt(a,\"$mobx\",o),e&&e.length&&a.spliceWithArray(0,0,e),an&&Object.defineProperty(o.array,\"0\",cn),a}return i(e,t),e.prototype.intercept=function(t){return this.$mobx.intercept(t)},e.prototype.observe=function(t,e){return void 0===e&&(e=!1),this.$mobx.observe(t,e)},e.prototype.clear=function(){return this.splice(0)},e.prototype.concat=function(){for(var t=[],e=0;e-1&&(this.splice(e,1),!0)},e.prototype.move=function(t,e){function n(t){if(t<0)throw new Error(\"[mobx.array] Index out of bounds: \"+t+\" is negative\");var e=this.$mobx.values.length;if(t>=e)throw new Error(\"[mobx.array] Index out of bounds: \"+t+\" is not smaller than \"+e)}if(n.call(this,t),n.call(this,e),t!==e){var i,r=this.$mobx.values;i=t\";At(t,e,yn(a,n))},function(t){return this[t]},function(){wt(!1,w(\"m001\"))},!1,!0),vn=R(function(t,e,n){F(t,e,n)},function(t){return this[t]},function(){wt(!1,w(\"m001\"))},!1,!1),yn=function(t,e,n,i){return 1===arguments.length&&\"function\"==typeof t?M(t.name||\"\",t):2===arguments.length&&\"function\"==typeof e?M(t,e):1===arguments.length&&\"string\"==typeof t?N(t):N(e).apply(null,arguments)};yn.bound=function(t,e,n){if(\"function\"==typeof t){var i=M(\"\",t);return i.autoBind=!0,i}return vn.apply(null,arguments)};var bn={identity:U,structural:j,default:W},xn=function(){function t(t,e,n,i,r){this.derivation=t,this.scope=e,this.equals=n,this.dependenciesState=Yn.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Yn.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid=\"#\"+xt(),this.value=new Zn(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Xn.NONE,this.name=i||\"ComputedValue@\"+xt(),r&&(this.setter=M(i+\"-setter\",r))}return t.prototype.onBecomeStale=function(){de(this)},t.prototype.onBecomeUnobserved=function(){_e(this),this.value=void 0},t.prototype.get=function(){wt(!this.isComputing,\"Cycle detected in computation \"+this.name,this.derivation),0===Wn.inBatch?(se(),ge(this)&&(this.isTracing!==Xn.NONE&&console.log(\"[mobx.trace] '\"+this.name+\"' is being read outside a reactive context and doing a full recompute\"),this.value=this.computeValue(!1)),le()):(ue(this),ge(this)&&this.trackAndCompute()&&he(this));var t=this.value;if(me(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(me(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){wt(!this.isRunningSetter,\"The setter of computed value '\"+this.name+\"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?\"),this.isRunningSetter=!0;try{this.setter.call(this.scope,t)}finally{this.isRunningSetter=!1}}else wt(!1,\"[ComputedValue '\"+this.name+\"'] It is not possible to assign a new value to a computed value.\")},t.prototype.trackAndCompute=function(){c()&&h({object:this.scope,type:\"compute\",fn:this.derivation});var t=this.value,e=this.dependenciesState===Yn.NOT_TRACKING,n=this.value=this.computeValue(!0);return e||me(t)||me(n)||!this.equals(t,n)},t.prototype.computeValue=function(t){this.isComputing=!0,Wn.computationDepth++;var e;if(t)e=be(this,this.derivation,this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new Zn(t)}return Wn.computationDepth--,this.isComputing=!1,e},t.prototype.observe=function(t,e){var n=this,i=!0,r=void 0;return G(function(){var a=n.get();if(!i||e){var o=Me();t({type:\"update\",object:n,newValue:a,oldValue:r}),Se(o)}i=!1,r=a})},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+\"[\"+this.derivation.toString()+\"]\"},t.prototype.valueOf=function(){return Vt(this.get())},t.prototype.whyRun=function(){var t=Boolean(Wn.trackingDerivation),e=Et(this.isComputing?this.newObserving:this.observing).map(function(t){return t.name}),n=Et(ie(this).map(function(t){return t.name}));return\"\\nWhyRun? computation '\"+this.name+\"':\\n * Running because: \"+(t?\"[active] the value of this computation is needed by a reaction\":this.isComputing?\"[get] The value of this computed was requested outside a reaction\":\"[idle] not running at the moment\")+\"\\n\"+(this.dependenciesState===Yn.NOT_TRACKING?w(\"m032\"):\" * This computation will re-run if any of the following observables changes:\\n \"+kt(e)+\"\\n \"+(this.isComputing&&t?\" (... or any observable accessed during the remainder of the current run)\":\"\")+\"\\n \"+w(\"m038\")+\"\\n\\n * If the outcome of this computation changes, the following observers will be re-run:\\n \"+kt(n)+\"\\n\")},t}();xn.prototype[Gt()]=xn.prototype.valueOf;var _n=zt(\"ComputedValue\",xn),wn=function(){function t(t,e){this.target=t,this.name=e,this.values={},this.changeListeners=null,this.interceptors=null}return t.prototype.observe=function(t,e){return wt(!0!==e,\"`observe` doesn't support the fire immediately property for observable objects.\"),l(this,t)},t.prototype.intercept=function(t){return a(this,t)},t}(),Mn={},Sn={},En=zt(\"ObservableObjectAdministration\",wn),kn=rt(dt),Tn=rt(ft),Cn=rt(pt),Pn=rt(mt),On=rt(gt),An={box:function(t,e){return arguments.length>2&&ut(\"box\"),new fn(t,dt,e)},shallowBox:function(t,e){return arguments.length>2&&ut(\"shallowBox\"),new fn(t,pt,e)},array:function(t,e){return arguments.length>2&&ut(\"array\"),new un(t,dt,e)},shallowArray:function(t,e){return arguments.length>2&&ut(\"shallowArray\"),new un(t,pt,e)},map:function(t,e){return arguments.length>2&&ut(\"map\"),new In(t,dt,e)},shallowMap:function(t,e){return arguments.length>2&&ut(\"shallowMap\"),new In(t,pt,e)},object:function(t,e){arguments.length>2&&ut(\"object\");var n={};return Y(n,e),at(n,t),n},shallowObject:function(t,e){arguments.length>2&&ut(\"shallowObject\");var n={};return Y(n,e),ot(n,t),n},ref:function(){return arguments.length<2?ht(pt,arguments[0]):Cn.apply(null,arguments)},shallow:function(){return arguments.length<2?ht(ft,arguments[0]):Tn.apply(null,arguments)},deep:function(){return arguments.length<2?ht(dt,arguments[0]):kn.apply(null,arguments)},struct:function(){return arguments.length<2?ht(mt,arguments[0]):Pn.apply(null,arguments)}},Rn=lt;Object.keys(An).forEach(function(t){return Rn[t]=An[t]}),Rn.deep.struct=Rn.struct,Rn.ref.struct=function(){return arguments.length<2?ht(gt,arguments[0]):On.apply(null,arguments)};var Ln={},In=function(){function t(t,e,n){void 0===e&&(e=dt),void 0===n&&(n=\"ObservableMap@\"+xt()),this.enhancer=e,this.name=n,this.$mobx=Ln,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new un(void 0,pt,this.name+\".keys()\",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(t)}return t.prototype._has=function(t){return void 0!==this._data[t]},t.prototype.has=function(t){return!!this.isValidKey(t)&&(t=\"\"+t,this._hasMap[t]?this._hasMap[t].get():this._updateHasMapEntry(t,!1).get())},t.prototype.set=function(t,e){this.assertValidKey(t),t=\"\"+t;var n=this._has(t);if(r(this)){var i=o(this,{type:n?\"update\":\"add\",object:this,newValue:e,name:t});if(!i)return this;e=i.newValue}return n?this._updateValue(t,e):this._addValue(t,e),this},t.prototype.delete=function(t){var e=this;if(this.assertValidKey(t),t=\"\"+t,r(this)){var n=o(this,{type:\"delete\",object:this,name:t});if(!n)return!1}if(this._has(t)){var i=c(),a=s(this),n=a||i?{type:\"delete\",object:this,oldValue:this._data[t].value,name:t}:null;return i&&d(n),vt(function(){e._keys.remove(t),e._updateHasMapEntry(t,!1),e._data[t].setNewValue(void 0),e._data[t]=void 0}),a&&u(this,n),i&&f(),!0}return!1},t.prototype._updateHasMapEntry=function(t,e){var n=this._hasMap[t];return n?n.setNewValue(e):n=this._hasMap[t]=new fn(e,pt,this.name+\".\"+t+\"?\",!1),n},t.prototype._updateValue=function(t,e){var n=this._data[t];if((e=n.prepareNewValue(e))!==dn){var i=c(),r=s(this),a=r||i?{type:\"update\",object:this,oldValue:n.value,name:t,newValue:e}:null;i&&d(a),n.setNewValue(e),r&&u(this,a),i&&f()}},t.prototype._addValue=function(t,e){var n=this;vt(function(){var i=n._data[t]=new fn(e,n.enhancer,n.name+\".\"+t,!1);e=i.value,n._updateHasMapEntry(t,!0),n._keys.push(t)});var i=c(),r=s(this),a=r||i?{type:\"add\",object:this,name:t,newValue:e}:null;i&&d(a),r&&u(this,a),i&&f()},t.prototype.get=function(t){return t=\"\"+t,this.has(t)?this.dehanceValue(this._data[t].get()):this.dehanceValue(void 0)},t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.keys=function(){return g(this._keys.slice())},t.prototype.values=function(){return g(this._keys.map(this.get,this))},t.prototype.entries=function(){var t=this;return g(this._keys.map(function(e){return[e,t.get(e)]}))},t.prototype.forEach=function(t,e){var n=this;this.keys().forEach(function(i){return t.call(e,n.get(i),i,n)})},t.prototype.merge=function(t){var e=this;return Dn(t)&&(t=t.toJS()),vt(function(){Ct(t)?Object.keys(t).forEach(function(n){return e.set(n,t[n])}):Array.isArray(t)?t.forEach(function(t){var n=t[0],i=t[1];return e.set(n,i)}):jt(t)?t.forEach(function(t,n){return e.set(n,t)}):null!==t&&void 0!==t&&_t(\"Cannot initialize map from \"+t)}),this},t.prototype.clear=function(){var t=this;vt(function(){we(function(){t.keys().forEach(t.delete,t)})})},t.prototype.replace=function(t){var e=this;return vt(function(){var n=Wt(t);e.keys().filter(function(t){return-1===n.indexOf(t)}).forEach(function(t){return e.delete(t)}),e.merge(t)}),this},Object.defineProperty(t.prototype,\"size\",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.toJS=function(){var t=this,e={};return this.keys().forEach(function(n){return e[n]=t.get(n)}),e},t.prototype.toJSON=function(){return this.toJS()},t.prototype.isValidKey=function(t){return null!==t&&void 0!==t&&(\"string\"==typeof t||\"number\"==typeof t||\"boolean\"==typeof t)},t.prototype.assertValidKey=function(t){if(!this.isValidKey(t))throw new Error(\"[mobx.map] Invalid key: '\"+t+\"', only strings, numbers and booleans are accepted as key in observable maps.\")},t.prototype.toString=function(){var t=this;return this.name+\"[{ \"+this.keys().map(function(e){return e+\": \"+t.get(e)}).join(\", \")+\" }]\"},t.prototype.observe=function(t,e){return wt(!0!==e,w(\"m033\")),l(this,t)},t.prototype.intercept=function(t){return a(this,t)},t}();v(In.prototype,function(){return this.entries()});var Dn=zt(\"ObservableMap\",In),Nn=[];Object.freeze(Nn);var zn=[],Bn=function(){},Fn=Object.prototype.hasOwnProperty,Un=[\"mobxGuid\",\"resetId\",\"spyListeners\",\"strictMode\",\"runId\"],jn=function(){function t(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}return t}(),Wn=new jn,Gn=!1,Vn=!1,Hn=!1,qn=bt();qn.__mobxInstanceCount?(qn.__mobxInstanceCount++,setTimeout(function(){Gn||Vn||Hn||(Hn=!0,console.warn(\"[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details.\"))})):qn.__mobxInstanceCount=1;var Yn;!function(t){t[t.NOT_TRACKING=-1]=\"NOT_TRACKING\",t[t.UP_TO_DATE=0]=\"UP_TO_DATE\",t[t.POSSIBLY_STALE=1]=\"POSSIBLY_STALE\",t[t.STALE=2]=\"STALE\"}(Yn||(Yn={}));var Xn;!function(t){t[t.NONE=0]=\"NONE\",t[t.LOG=1]=\"LOG\",t[t.BREAK=2]=\"BREAK\"}(Xn||(Xn={}));var Zn=function(){function t(t){this.cause=t}return t}(),Kn=function(){function t(t,e){void 0===t&&(t=\"Reaction@\"+xt()),this.name=t,this.onInvalidate=e,this.observing=[],this.newObserving=[],this.dependenciesState=Yn.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid=\"#\"+xt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Xn.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Wn.pendingReactions.push(this),Re())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){this.isDisposed||(se(),this._isScheduled=!1,ge(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&c()&&h({object:this,type:\"scheduled-reaction\"})),le())},t.prototype.track=function(t){se();var e,n=c();n&&(e=Date.now(),d({object:this,type:\"reaction\",fn:t})),this._isRunning=!0;var i=be(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&_e(this),me(i)&&this.reportExceptionInDerivation(i.cause),n&&f({time:Date.now()-e}),le()},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)return void this.errorHandler(t,this);var n=\"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '\"+this,i=w(\"m037\");console.error(n||i,t),c()&&h({type:\"error\",message:n,error:t,object:this}),Wn.globalReactionErrorHandlers.forEach(function(n){return n(t,e)})},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(se(),_e(this),le()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t.$mobx=this,t.onError=Oe,t},t.prototype.toString=function(){return\"Reaction[\"+this.name+\"]\"},t.prototype.whyRun=function(){var t=Et(this._isRunning?this.newObserving:this.observing).map(function(t){return t.name});return\"\\nWhyRun? reaction '\"+this.name+\"':\\n * Status: [\"+(this.isDisposed?\"stopped\":this._isRunning?\"running\":this.isScheduled()?\"scheduled\":\"idle\")+\"]\\n * This reaction will re-run if any of the following observables changes:\\n \"+kt(t)+\"\\n \"+(this._isRunning?\" (... or any observable accessed during the remainder of the current run)\":\"\")+\"\\n\\t\"+w(\"m038\")+\"\\n\"},t.prototype.trace=function(t){void 0===t&&(t=!1),Ce(this,t)},t}(),Qn=100,Jn=function(t){return t()},$n=zt(\"Reaction\",Kn),ti=Fe(bn.default),ei=Fe(bn.structural),ni=function(t,e,n){if(\"string\"==typeof e)return ti.apply(null,arguments);wt(\"function\"==typeof t,w(\"m011\")),wt(arguments.length<3,w(\"m012\"));var i=\"object\"==typeof e?e:{};i.setter=\"function\"==typeof e?e:i.setter;var r=i.equals?i.equals:i.compareStructural||i.struct?bn.structural:bn.default;return new xn(t,i.context,r,i.name||t.name||\"\",i.setter)};ni.struct=ei,ni.equals=Fe;var ii={allowStateChanges:P,deepEqual:Nt,getAtom:Zt,getDebugName:Qt,getDependencyTree:Jt,getAdministration:Kt,getGlobalState:Yt,getObserverTree:te,interceptReads:Qe,isComputingDerivation:ve,isSpyEnabled:c,onReactionError:Ae,reserveArrayBuffer:x,resetGlobalState:Xt,isolateGlobalState:Ht,shareGlobalState:qt,spyReport:h,spyReportEnd:f,spyReportStart:d,setReactionScheduler:Ie},ri={Reaction:Kn,untracked:we,Atom:tn,BaseAtom:$e,useStrict:T,isStrictModeEnabled:C,spy:p,comparer:bn,asReference:De,asFlat:ze,asStructure:Ne,asMap:Be,isModifierDescriptor:ct,isObservableObject:nt,isBoxedObservable:pn,isObservableArray:_,ObservableMap:In,isObservableMap:Dn,map:yt,transaction:vt,observable:Rn,computed:ni,isObservable:it,isComputed:Ue,extendObservable:at,extendShallowObservable:ot,observe:je,intercept:Ve,autorun:G,autorunAsync:H,when:V,reaction:q,action:yn,isAction:B,runInAction:z,expr:Ye,toJS:Xe,createTransformer:Ze,whyRun:Te,isArrayLike:Ft,extras:ii},ai=!1;for(var oi in ri)!function(t){var e=ri[t];Object.defineProperty(ri,t,{get:function(){return ai||(ai=!0,console.warn(\"Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\\nUse `import * as mobx from 'mobx'` instead\")),e}})}(oi);\"object\"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:p,extras:ii}),e.default=ri}.call(e,n(111))},function(t,e,n){t.exports=n(459)()},function(t,e,n){t.exports={default:n(305),__esModule:!0}},function(t,e,n){var i=n(21);t.exports=function(t){if(!i(t))throw TypeError(t+\" is not an object!\");return t}},function(t,e,n){t.exports=!n(36)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},function(t,e){t.exports={camera:{viewAngle:.65,Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3},laneWidth:4.5,laneWidthToViewDistanceRatio:5},ground:{defaults:{mpp:.125,xres:8192,yres:8192,xorigin:4096,yorigin:4096,type:\"default\",tileRange:4},sunnyvale_big_loop:{mpp:.125,xres:24576,yres:16384,xorigin:587392,yorigin:4140800,type:\"default\",tileRange:4}},planning:{minInterval:.1,defaults:{width:1.4}},options:{defaults:{enableSimControl:!1,showModuleController:!1,showMenu:!1,showPOI:!1,showPNCMonitor:!1,showRouteEditingBar:!1,showDataRecorder:!1,showTasks:!0,showVideo:!1,showPlanningCar:!1,showPlanningReference:!1,showPlaningDpOptimizer:!1,showPlanningQpOptimizer:!1,showPlanning:!0,showDecisionMain:!0,showDecisionObstacle:!0,showRouting:!0,showPredictionMajor:!0,showPredictionMinor:!0,showObstaclesVehicle:!0,showObstaclesPedestrian:!0,showObstaclesBicycle:!0,showObstaclesUnknownMovable:!0,showObstaclesUnknownUnmovable:!0,showObstaclesUnknown:!0,showObstaclesVirtual:!1,showObstaclesVelocity:!0,showObstaclesHeading:!0,showObstaclesId:!0,showPointCloud:!1,showPositionGps:!1,showPositionLocalization:!0,showMapCrosswalk:!0,showMapClearArea:!0,showMapJunction:!1,showMapLane:!0,showMapRoad:!1,showMapSignal:!0,showMapStopSign:!0,cameraAngle:\"Default\"}},navigation:{map:\"GoogleMap\"},debug:{autoMonitorMessage:!1,performanceMonitor:!1},server:{port:8888}}},function(t,e,n){var i=n(48);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){\"use strict\";function i(t,e,n){return n?[t,e]:t}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(e){var n=e*w;t.position.z+=n}}function a(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=new g.MeshBasicMaterial({map:E.load(t),transparent:!0,depthWrite:!1}),s=new g.Mesh(new g.PlaneGeometry(e,n),o);return s.material.side=g.DoubleSide,s.position.set(i,r,a),s.overdraw=!0,s}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],l=new g.Path,u=l.createGeometry(t);u.computeLineDistances();var c=new g.LineDashedMaterial({color:e,dashSize:i,linewidth:n,gapSize:a}),h=new g.Line(u,c);return r(h,o),h.matrixAutoUpdate=s,s||h.updateMatrix(),h}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,i=new g.CircleGeometry(t,n);return new g.Mesh(i,e)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16777215,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=M(t.map(function(t){return[t.x,t.y]})),s=new g.ShaderMaterial(S({side:g.DoubleSide,diffuse:n,thickness:e,opacity:i,transparent:!0})),l=new g.Mesh(o,s);return r(l,a),l}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16711680,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,l=new g.Path,u=l.createGeometry(t),c=new g.LineBasicMaterial({color:e,linewidth:n,transparent:o,opacity:s}),h=new g.Line(u,c);return r(h,i),h.matrixAutoUpdate=a,!1===a&&h.updateMatrix(),h}function c(t,e,n){var i=new g.CubeGeometry(t.x,t.y,t.z),r=new g.MeshBasicMaterial({color:e}),a=new g.Mesh(i,r),o=new g.BoxHelper(a);return o.material.linewidth=n,o}function h(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.01,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.02,a=new g.CubeGeometry(t.x,t.y,t.z);a=new g.EdgesGeometry(a),a=(new g.Geometry).fromBufferGeometry(a),a.computeLineDistances();var o=new g.LineDashedMaterial({color:e,linewidth:n,dashSize:i,gapSize:r});return new g.LineSegments(a,o)}function d(t,e,n,i,r){var a=new g.Vector3(0,t,0);return u([new g.Vector3(0,0,0),a,new g.Vector3(i/2,t-n,0),a,new g.Vector3(-i/2,t-n,0)],r,e,1)}function f(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new g.Shape;if(e){n.moveTo(t[0].x,t[0].y);for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:new g.MeshBasicMaterial({color:16711680}),n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=f(t,n),s=new g.Mesh(o,e);return r(s,i),s.matrixAutoUpdate=a,!1===a&&s.updateMatrix(),s}Object.defineProperty(e,\"__esModule\",{value:!0}),e.addOffsetZ=r,e.drawImage=a,e.drawDashedLineFromPoints=o,e.drawCircle=s,e.drawThickBandFromPoints=l,e.drawSegmentsFromPoints=u,e.drawBox=c,e.drawDashedBox=h,e.drawArrow=d,e.getShapeGeometryFromPoints=f,e.drawShapeFromPoints=p;var m=n(12),g=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(m),v=n(480),y=i(v),b=n(481),x=i(b),_=n(39),w=.04,M=(0,y.default)(g),S=(0,x.default)(g),E=new g.TextureLoader},function(t,e,n){t.exports={default:n(307),__esModule:!0}},function(t,e,n){\"use strict\";t.exports={},t.exports.Arc=n(274),t.exports.Line=n(275),t.exports.Point=n(276),t.exports.Rectangle=n(277)},function(t,e,n){var i=n(22),r=n(52);t.exports=n(27)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(537),h=(i(c),n(478)),d=i(h),f=n(28),p=i(f),m=n(208),g=i(m),v=n(207),y=i(v),b=n(211),x=i(b),_=n(218),w=i(_),M=n(212),S=i(M),E=n(219),k=i(E),T=n(116),C=i(T),P=n(209),O=i(P),A=n(214),R=i(A),L=n(215),I=i(L),D=n(216),N=i(D),z=n(210),B=i(z),F=n(213),U=i(F),j=(n(39),function(){function t(){(0,a.default)(this,t);var e=!this.isMobileDevice();this.coordinates=new g.default,this.renderer=new u.WebGLRenderer({antialias:e}),this.scene=new u.Scene,this.scene.background=new u.Color(3095),this.dimension={width:0,height:0},this.ground=\"tile\"===p.default.ground.type?new w.default:new x.default,this.map=new S.default,this.adc=new y.default(\"adc\",this.scene),this.planningAdc=new y.default(\"plannigAdc\",this.scene),this.planningTrajectory=new k.default,this.perceptionObstacles=new C.default,this.decision=new O.default,this.prediction=new R.default,this.routing=new I.default,this.routingEditor=new N.default,this.gnss=new B.default,this.pointCloud=new U.default,this.stats=null,p.default.debug.performanceMonitor&&(this.stats=new d.default,this.stats.showPanel(1),this.stats.domElement.style.position=\"absolute\",this.stats.domElement.style.top=null,this.stats.domElement.style.bottom=\"0px\",document.body.appendChild(this.stats.domElement)),this.geolocation={x:0,y:0}}return(0,s.default)(t,[{key:\"initialize\",value:function(t,e,n,i){this.options=i,this.canvasId=t,this.viewAngle=p.default.camera.viewAngle,this.viewDistance=p.default.camera.laneWidth*p.default.camera.laneWidthToViewDistanceRatio,this.camera=new u.PerspectiveCamera(p.default.camera[this.options.cameraAngle].fov,window.innerWidth/window.innerHeight,p.default.camera[this.options.cameraAngle].near,p.default.camera[this.options.cameraAngle].far),this.camera.name=\"camera\",this.scene.add(this.camera),this.updateDimension(e,n),this.renderer.setPixelRatio(window.devicePixelRatio),document.getElementById(t).appendChild(this.renderer.domElement);var r=new u.AmbientLight(4473924),a=new u.DirectionalLight(16772829);a.position.set(0,0,1).normalize(),this.controls=new u.OrbitControls(this.camera,this.renderer.domElement),this.controls.enable=!1,this.onMouseDownHandler=this.editRoute.bind(this),this.scene.add(r),this.scene.add(a),this.animate()}},{key:\"maybeInitializeOffest\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.coordinates.isInitialized()&&!n||this.coordinates.initialize(t,e)}},{key:\"updateDimension\",value:function(t,e){this.camera.aspect=t/e,this.camera.updateProjectionMatrix(),this.renderer.setSize(t,e),this.dimension.width=t,this.dimension.height=e}},{key:\"enableOrbitControls\",value:function(){var t=this.adc.mesh.position;this.controls.enabled=!0,this.controls.enableRotate=!1,this.controls.reset(),this.controls.minDistance=20,this.controls.maxDistance=1e3,this.controls.target.set(t.x,t.y,0),this.camera.position.set(t.x,t.y,50),\"FLU\"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt(t.x,t.y,0)}},{key:\"adjustCamera\",value:function(t,e){if(!this.routingEditor.isInEditingMode()){switch(this.camera.fov=p.default.camera[e].fov,this.camera.near=p.default.camera[e].near,this.camera.far=p.default.camera[e].far,e){case\"Default\":var n=this.viewDistance*Math.cos(t.rotation.y)*Math.cos(this.viewAngle),i=this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=this.viewDistance*Math.sin(this.viewAngle);this.camera.position.x=t.position.x-n,this.camera.position.y=t.position.y-i,this.camera.position.z=t.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:t.position.x+2*n,y:t.position.y+2*i,z:0}),this.controls.enabled=!1;break;case\"Near\":n=.5*this.viewDistance*Math.cos(t.rotation.y)*Math.cos(this.viewAngle),i=.5*this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=.5*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=t.position.x-n,this.camera.position.y=t.position.y-i,this.camera.position.z=t.position.z+r,this.camera.up.set(0,0,1),this.camera.lookAt({x:t.position.x+2*n,y:t.position.y+2*i,z:0}),this.controls.enabled=!1;break;case\"Overhead\":i=.5*this.viewDistance*Math.sin(t.rotation.y)*Math.cos(this.viewAngle),r=2*this.viewDistance*Math.sin(this.viewAngle),this.camera.position.x=t.position.x,this.camera.position.y=t.position.y+i,this.camera.position.z=2*(t.position.z+r),\"FLU\"===this.coordinates.systemName?this.camera.up.set(1,0,0):this.camera.up.set(0,1,0),this.camera.lookAt({x:t.position.x,y:t.position.y+i,z:0}),this.controls.enabled=!1;break;case\"Map\":this.controls.enabled||this.enableOrbitControls()}this.camera.updateProjectionMatrix()}}},{key:\"enableRouteEditing\",value:function(){this.enableOrbitControls(),this.routingEditor.enableEditingMode(this.camera,this.adc),document.getElementById(this.canvasId).addEventListener(\"mousedown\",this.onMouseDownHandler,!1)}},{key:\"disableRouteEditing\",value:function(){this.routingEditor.disableEditingMode(this.scene),document.getElementById(this.canvasId).removeEventListener(\"mousedown\",this.onMouseDownHandler,!1)}},{key:\"addDefaultEndPoint\",value:function(t){for(var e=0;e1&&void 0!==arguments[1]&&arguments[1]&&this.map.removeAllElements(this.scene),this.map.appendMapData(t,this.coordinates,this.scene)}},{key:\"updatePointCloud\",value:function(t){this.coordinates.isInitialized()&&this.adc.mesh&&this.pointCloud.update(t,this.adc.mesh)}},{key:\"updateMapIndex\",value:function(t,e,n){this.routingEditor.isInEditingMode()&&this.routingEditor.EDITING_MAP_RADIUS!==n||this.map.updateIndex(t,e,this.scene)}},{key:\"isMobileDevice\",value:function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)}},{key:\"getGeolocation\",value:function(t){if(this.coordinates.isInitialized()){var e=t.currentTarget.getBoundingClientRect(),n=new u.Vector3((t.clientX-e.left)/this.dimension.width*2-1,-(t.clientY-e.top)/this.dimension.height*2+1,0);n.unproject(this.camera);var i=n.sub(this.camera.position).normalize(),r=-this.camera.position.z/i.z,a=this.camera.position.clone().add(i.multiplyScalar(r));return this.coordinates.applyOffset(a,!0)}}}]),t}()),W=new j;e.default=W},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(83),r=n(80);t.exports=function(t){return i(r(t))}},function(t,e,n){(function(t,i){var r;(function(){function a(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function o(t,e,n,i){for(var r=-1,a=null==t?0:t.length;++r-1}function d(t,e,n){for(var i=-1,r=null==t?0:t.length;++i-1;);return n}function z(t,e){for(var n=t.length;n--&&w(e,t[n],0)>-1;);return n}function B(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}function F(t){return\"\\\\\"+kn[t]}function U(t,e){return null==t?it:t[e]}function j(t){return vn.test(t)}function W(t){return yn.test(t)}function G(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function H(t,e){return function(n){return t(e(n))}}function q(t,e){for(var n=-1,i=t.length,r=0,a=[];++n>>1,Bt=[[\"ary\",wt],[\"bind\",mt],[\"bindKey\",gt],[\"curry\",yt],[\"curryRight\",bt],[\"flip\",St],[\"partial\",xt],[\"partialRight\",_t],[\"rearg\",Mt]],Ft=\"[object Arguments]\",Ut=\"[object Array]\",jt=\"[object AsyncFunction]\",Wt=\"[object Boolean]\",Gt=\"[object Date]\",Vt=\"[object DOMException]\",Ht=\"[object Error]\",qt=\"[object Function]\",Yt=\"[object GeneratorFunction]\",Xt=\"[object Map]\",Zt=\"[object Number]\",Kt=\"[object Null]\",Qt=\"[object Object]\",Jt=\"[object Proxy]\",$t=\"[object RegExp]\",te=\"[object Set]\",ee=\"[object String]\",ne=\"[object Symbol]\",ie=\"[object Undefined]\",re=\"[object WeakMap]\",ae=\"[object WeakSet]\",oe=\"[object ArrayBuffer]\",se=\"[object DataView]\",le=\"[object Float32Array]\",ue=\"[object Float64Array]\",ce=\"[object Int8Array]\",he=\"[object Int16Array]\",de=\"[object Int32Array]\",fe=\"[object Uint8Array]\",pe=\"[object Uint8ClampedArray]\",me=\"[object Uint16Array]\",ge=\"[object Uint32Array]\",ve=/\\b__p \\+= '';/g,ye=/\\b(__p \\+=) '' \\+/g,be=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,xe=/&(?:amp|lt|gt|quot|#39);/g,_e=/[&<>\"']/g,we=RegExp(xe.source),Me=RegExp(_e.source),Se=/<%-([\\s\\S]+?)%>/g,Ee=/<%([\\s\\S]+?)%>/g,ke=/<%=([\\s\\S]+?)%>/g,Te=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,Ce=/^\\w*$/,Pe=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,Oe=/[\\\\^$.*+?()[\\]{}|]/g,Ae=RegExp(Oe.source),Re=/^\\s+|\\s+$/g,Le=/^\\s+/,Ie=/\\s+$/,De=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,Ne=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,ze=/,? & /,Be=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,Fe=/\\\\(\\\\)?/g,Ue=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,je=/\\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ve=/^\\[object .+?Constructor\\]$/,He=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\\d*)$/,Ye=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,Xe=/($^)/,Ze=/['\\n\\r\\u2028\\u2029\\\\]/g,Ke=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Qe=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",Je=\"[\"+Qe+\"]\",$e=\"[\"+Ke+\"]\",tn=\"[a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff]\",en=\"[^\\\\ud800-\\\\udfff\"+Qe+\"\\\\d+\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",nn=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",rn=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",an=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",on=\"[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]\",sn=\"(?:\"+tn+\"|\"+en+\")\",ln=\"(?:[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]|\\\\ud83c[\\\\udffb-\\\\udfff])?\",un=\"(?:\\\\u200d(?:\"+[\"[^\\\\ud800-\\\\udfff]\",rn,an].join(\"|\")+\")[\\\\ufe0e\\\\ufe0f]?\"+ln+\")*\",cn=\"[\\\\ufe0e\\\\ufe0f]?\"+ln+un,hn=\"(?:\"+[\"[\\\\u2700-\\\\u27bf]\",rn,an].join(\"|\")+\")\"+cn,dn=\"(?:\"+[\"[^\\\\ud800-\\\\udfff]\"+$e+\"?\",$e,rn,an,\"[\\\\ud800-\\\\udfff]\"].join(\"|\")+\")\",fn=RegExp(\"['’]\",\"g\"),pn=RegExp($e,\"g\"),mn=RegExp(nn+\"(?=\"+nn+\")|\"+dn+cn,\"g\"),gn=RegExp([on+\"?\"+tn+\"+(?:['’](?:d|ll|m|re|s|t|ve))?(?=\"+[Je,on,\"$\"].join(\"|\")+\")\",\"(?:[A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde]|[^\\\\ud800-\\\\udfff\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\\\\d+\\\\u2700-\\\\u27bfa-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xffA-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=\"+[Je,on+sn,\"$\"].join(\"|\")+\")\",on+\"?\"+sn+\"+(?:['’](?:d|ll|m|re|s|t|ve))?\",on+\"+(?:['’](?:D|LL|M|RE|S|T|VE))?\",\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",\"\\\\d+\",hn].join(\"|\"),\"g\"),vn=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\"+Ke+\"\\\\ufe0e\\\\ufe0f]\"),yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bn=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],xn=-1,_n={};_n[le]=_n[ue]=_n[ce]=_n[he]=_n[de]=_n[fe]=_n[pe]=_n[me]=_n[ge]=!0,_n[Ft]=_n[Ut]=_n[oe]=_n[Wt]=_n[se]=_n[Gt]=_n[Ht]=_n[qt]=_n[Xt]=_n[Zt]=_n[Qt]=_n[$t]=_n[te]=_n[ee]=_n[re]=!1;var wn={};wn[Ft]=wn[Ut]=wn[oe]=wn[se]=wn[Wt]=wn[Gt]=wn[le]=wn[ue]=wn[ce]=wn[he]=wn[de]=wn[Xt]=wn[Zt]=wn[Qt]=wn[$t]=wn[te]=wn[ee]=wn[ne]=wn[fe]=wn[pe]=wn[me]=wn[ge]=!0,wn[Ht]=wn[qt]=wn[re]=!1;var Mn={\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"Ç\":\"C\",\"ç\":\"c\",\"Ð\":\"D\",\"ð\":\"d\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"Ñ\":\"N\",\"ñ\":\"n\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"Ý\":\"Y\",\"ý\":\"y\",\"ÿ\":\"y\",\"Æ\":\"Ae\",\"æ\":\"ae\",\"Þ\":\"Th\",\"þ\":\"th\",\"ß\":\"ss\",\"Ā\":\"A\",\"Ă\":\"A\",\"Ą\":\"A\",\"ā\":\"a\",\"ă\":\"a\",\"ą\":\"a\",\"Ć\":\"C\",\"Ĉ\":\"C\",\"Ċ\":\"C\",\"Č\":\"C\",\"ć\":\"c\",\"ĉ\":\"c\",\"ċ\":\"c\",\"č\":\"c\",\"Ď\":\"D\",\"Đ\":\"D\",\"ď\":\"d\",\"đ\":\"d\",\"Ē\":\"E\",\"Ĕ\":\"E\",\"Ė\":\"E\",\"Ę\":\"E\",\"Ě\":\"E\",\"ē\":\"e\",\"ĕ\":\"e\",\"ė\":\"e\",\"ę\":\"e\",\"ě\":\"e\",\"Ĝ\":\"G\",\"Ğ\":\"G\",\"Ġ\":\"G\",\"Ģ\":\"G\",\"ĝ\":\"g\",\"ğ\":\"g\",\"ġ\":\"g\",\"ģ\":\"g\",\"Ĥ\":\"H\",\"Ħ\":\"H\",\"ĥ\":\"h\",\"ħ\":\"h\",\"Ĩ\":\"I\",\"Ī\":\"I\",\"Ĭ\":\"I\",\"Į\":\"I\",\"İ\":\"I\",\"ĩ\":\"i\",\"ī\":\"i\",\"ĭ\":\"i\",\"į\":\"i\",\"ı\":\"i\",\"Ĵ\":\"J\",\"ĵ\":\"j\",\"Ķ\":\"K\",\"ķ\":\"k\",\"ĸ\":\"k\",\"Ĺ\":\"L\",\"Ļ\":\"L\",\"Ľ\":\"L\",\"Ŀ\":\"L\",\"Ł\":\"L\",\"ĺ\":\"l\",\"ļ\":\"l\",\"ľ\":\"l\",\"ŀ\":\"l\",\"ł\":\"l\",\"Ń\":\"N\",\"Ņ\":\"N\",\"Ň\":\"N\",\"Ŋ\":\"N\",\"ń\":\"n\",\"ņ\":\"n\",\"ň\":\"n\",\"ŋ\":\"n\",\"Ō\":\"O\",\"Ŏ\":\"O\",\"Ő\":\"O\",\"ō\":\"o\",\"ŏ\":\"o\",\"ő\":\"o\",\"Ŕ\":\"R\",\"Ŗ\":\"R\",\"Ř\":\"R\",\"ŕ\":\"r\",\"ŗ\":\"r\",\"ř\":\"r\",\"Ś\":\"S\",\"Ŝ\":\"S\",\"Ş\":\"S\",\"Š\":\"S\",\"ś\":\"s\",\"ŝ\":\"s\",\"ş\":\"s\",\"š\":\"s\",\"Ţ\":\"T\",\"Ť\":\"T\",\"Ŧ\":\"T\",\"ţ\":\"t\",\"ť\":\"t\",\"ŧ\":\"t\",\"Ũ\":\"U\",\"Ū\":\"U\",\"Ŭ\":\"U\",\"Ů\":\"U\",\"Ű\":\"U\",\"Ų\":\"U\",\"ũ\":\"u\",\"ū\":\"u\",\"ŭ\":\"u\",\"ů\":\"u\",\"ű\":\"u\",\"ų\":\"u\",\"Ŵ\":\"W\",\"ŵ\":\"w\",\"Ŷ\":\"Y\",\"ŷ\":\"y\",\"Ÿ\":\"Y\",\"Ź\":\"Z\",\"Ż\":\"Z\",\"Ž\":\"Z\",\"ź\":\"z\",\"ż\":\"z\",\"ž\":\"z\",\"IJ\":\"IJ\",\"ij\":\"ij\",\"Œ\":\"Oe\",\"œ\":\"oe\",\"ʼn\":\"'n\",\"ſ\":\"s\"},Sn={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"},En={\"&\":\"&\",\"<\":\"<\",\">\":\">\",\""\":'\"',\"'\":\"'\"},kn={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Tn=parseFloat,Cn=parseInt,Pn=\"object\"==typeof t&&t&&t.Object===Object&&t,On=\"object\"==typeof self&&self&&self.Object===Object&&self,An=Pn||On||Function(\"return this\")(),Rn=\"object\"==typeof e&&e&&!e.nodeType&&e,Ln=Rn&&\"object\"==typeof i&&i&&!i.nodeType&&i,In=Ln&&Ln.exports===Rn,Dn=In&&Pn.process,Nn=function(){try{return Dn&&Dn.binding&&Dn.binding(\"util\")}catch(t){}}(),zn=Nn&&Nn.isArrayBuffer,Bn=Nn&&Nn.isDate,Fn=Nn&&Nn.isMap,Un=Nn&&Nn.isRegExp,jn=Nn&&Nn.isSet,Wn=Nn&&Nn.isTypedArray,Gn=k(\"length\"),Vn=T(Mn),Hn=T(Sn),qn=T(En),Yn=function t(e){function n(t){if(el(t)&&!dd(t)&&!(t instanceof y)){if(t instanceof r)return t;if(dc.call(t,\"__wrapped__\"))return Qa(t)}return new r(t)}function i(){}function r(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function y(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dt,this.__views__=[]}function T(){var t=new y(this.__wrapped__);return t.__actions__=Lr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lr(this.__views__),t}function K(){if(this.__filtered__){var t=new y(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function tt(){var t=this.__wrapped__.value(),e=this.__dir__,n=dd(t),i=e<0,r=n?t.length:0,a=wa(0,r,this.__views__),o=a.start,s=a.end,l=s-o,u=i?s:o-1,c=this.__iteratees__,h=c.length,d=0,f=Wc(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return gr(t,this.__actions__);var p=[];t:for(;l--&&d-1}function on(t,e){var n=this.__data__,i=Xn(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function sn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ei(t,e,n,i,r,a){var o,l=e&ct,u=e&ht,c=e&dt;if(n&&(o=r?n(t,i,r,a):n(t)),o!==it)return o;if(!tl(t))return t;var h=dd(t);if(h){if(o=Ea(t),!l)return Lr(t,o)}else{var d=wh(t),f=d==qt||d==Yt;if(pd(t))return Mr(t,l);if(d==Qt||d==Ft||f&&!r){if(o=u||f?{}:ka(t),!l)return u?Nr(t,Qn(o,t)):Dr(t,Kn(o,t))}else{if(!wn[d])return r?t:{};o=Ta(t,d,l)}}a||(a=new yn);var p=a.get(t);if(p)return p;if(a.set(t,o),yd(t))return t.forEach(function(i){o.add(ei(i,e,n,i,t,a))}),o;if(gd(t))return t.forEach(function(i,r){o.set(r,ei(i,e,n,r,t,a))}),o;var m=c?u?pa:fa:u?zl:Nl,g=h?it:m(t);return s(g||t,function(i,r){g&&(r=i,i=t[r]),Gn(o,r,ei(i,e,n,r,t,a))}),o}function ni(t){var e=Nl(t);return function(n){return ii(n,t,e)}}function ii(t,e,n){var i=n.length;if(null==t)return!i;for(t=ic(t);i--;){var r=n[i],a=e[r],o=t[r];if(o===it&&!(r in t)||!a(o))return!1}return!0}function ri(t,e,n){if(\"function\"!=typeof t)throw new oc(ot);return Eh(function(){t.apply(it,n)},e)}function ai(t,e,n,i){var r=-1,a=h,o=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=f(e,L(n))),i?(a=d,o=!1):e.length>=rt&&(a=D,o=!1,e=new mn(e));t:for(;++rr?0:r+n),i=i===it||i>r?r:yl(i),i<0&&(i+=r),i=n>i?0:bl(i);n0&&n(s)?e>1?ci(s,e-1,n,i,r):p(r,s):i||(r[r.length]=s)}return r}function hi(t,e){return t&&dh(t,e,Nl)}function di(t,e){return t&&fh(t,e,Nl)}function fi(t,e){return c(e,function(e){return Qs(t[e])})}function pi(t,e){e=_r(e,t);for(var n=0,i=e.length;null!=t&&ne}function yi(t,e){return null!=t&&dc.call(t,e)}function bi(t,e){return null!=t&&e in ic(t)}function xi(t,e,n){return t>=Wc(e,n)&&t=120&&c.length>=120)?new mn(o&&c):it}c=t[0];var p=-1,m=s[0];t:for(;++p-1;)s!==t&&kc.call(s,l,1),kc.call(t,l,1);return t}function Ki(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==a){var a=r;Oa(r)?kc.call(t,r,1):fr(t,r)}}return t}function Qi(t,e){return t+Dc(Hc()*(e-t+1))}function Ji(t,e,n,i){for(var r=-1,a=jc(Ic((e-t)/(n||1)),0),o=Ju(a);a--;)o[i?a:++r]=t,t+=n;return o}function $i(t,e){var n=\"\";if(!t||e<1||e>Rt)return n;do{e%2&&(n+=t),(e=Dc(e/2))&&(t+=t)}while(e);return n}function tr(t,e){return kh(Wa(t,e,ku),t+\"\")}function er(t){return Rn(Zl(t))}function nr(t,e){var n=Zl(t);return Ya(n,ti(e,0,n.length))}function ir(t,e,n,i){if(!tl(t))return t;e=_r(e,t);for(var r=-1,a=e.length,o=a-1,s=t;null!=s&&++rr?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var a=Ju(r);++i>>1,o=t[a];null!==o&&!dl(o)&&(n?o<=e:o=rt){var u=e?null:yh(t);if(u)return X(u);o=!1,r=D,l=new mn}else l=e?[]:s;t:for(;++i=i?t:ar(t,e,n)}function Mr(t,e){if(e)return t.slice();var n=t.length,i=wc?wc(n):new t.constructor(n);return t.copy(i),i}function Sr(t){var e=new t.constructor(t.byteLength);return new _c(e).set(new _c(t)),e}function Er(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function kr(t){var e=new t.constructor(t.source,je.exec(t));return e.lastIndex=t.lastIndex,e}function Tr(t){return sh?ic(sh.call(t)):{}}function Cr(t,e){var n=e?Sr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Pr(t,e){if(t!==e){var n=t!==it,i=null===t,r=t===t,a=dl(t),o=e!==it,s=null===e,l=e===e,u=dl(e);if(!s&&!u&&!a&&t>e||a&&o&&l&&!s&&!u||i&&o&&l||!n&&l||!r)return 1;if(!i&&!a&&!u&&t=s)return l;return l*(\"desc\"==n[i]?-1:1)}}return t.index-e.index}function Ar(t,e,n,i){for(var r=-1,a=t.length,o=n.length,s=-1,l=e.length,u=jc(a-o,0),c=Ju(l+u),h=!i;++s1?n[r-1]:it,o=r>2?n[2]:it;for(a=t.length>3&&\"function\"==typeof a?(r--,a):it,o&&Aa(n[0],n[1],o)&&(a=r<3?it:a,r=1),e=ic(e);++i-1?r[a?e[o]:o]:it}}function Yr(t){return da(function(e){var n=e.length,i=n,a=r.prototype.thru;for(t&&e.reverse();i--;){var o=e[i];if(\"function\"!=typeof o)throw new oc(ot);if(a&&!s&&\"wrapper\"==ma(o))var s=new r([],!0)}for(i=s?i:n;++i1&&y.reverse(),h&&ls))return!1;var u=a.get(t);if(u&&a.get(e))return u==e;var c=-1,h=!0,d=n&pt?new mn:it;for(a.set(t,e),a.set(e,t);++c1?\"& \":\"\")+e[i],e=e.join(n>2?\", \":\" \"),t.replace(De,\"{\\n/* [wrapped with \"+e+\"] */\\n\")}function Pa(t){return dd(t)||hd(t)||!!(Tc&&t&&t[Tc])}function Oa(t,e){var n=typeof t;return!!(e=null==e?Rt:e)&&(\"number\"==n||\"symbol\"!=n&&qe.test(t))&&t>-1&&t%1==0&&t0){if(++e>=Tt)return arguments[0]}else e=0;return t.apply(it,arguments)}}function Ya(t,e){var n=-1,i=t.length,r=i-1;for(e=e===it?i:e;++n=this.__values__.length;return{done:t,value:t?it:this.__values__[this.__index__++]}}function Jo(){return this}function $o(t){for(var e,n=this;n instanceof i;){var r=Qa(n);r.__index__=0,r.__values__=it,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e}function ts(){var t=this.__wrapped__;if(t instanceof y){var e=t;return this.__actions__.length&&(e=new y(this)),e=e.reverse(),e.__actions__.push({func:Xo,args:[So],thisArg:it}),new r(e,this.__chain__)}return this.thru(So)}function es(){return gr(this.__wrapped__,this.__actions__)}function ns(t,e,n){var i=dd(t)?u:oi;return n&&Aa(t,e,n)&&(e=it),i(t,va(e,3))}function is(t,e){return(dd(t)?c:ui)(t,va(e,3))}function rs(t,e){return ci(cs(t,e),1)}function as(t,e){return ci(cs(t,e),At)}function os(t,e,n){return n=n===it?1:yl(n),ci(cs(t,e),n)}function ss(t,e){return(dd(t)?s:ch)(t,va(e,3))}function ls(t,e){return(dd(t)?l:hh)(t,va(e,3))}function us(t,e,n,i){t=Ws(t)?t:Zl(t),n=n&&!i?yl(n):0;var r=t.length;return n<0&&(n=jc(r+n,0)),hl(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&w(t,e,n)>-1}function cs(t,e){return(dd(t)?f:Fi)(t,va(e,3))}function hs(t,e,n,i){return null==t?[]:(dd(e)||(e=null==e?[]:[e]),n=i?it:n,dd(n)||(n=null==n?[]:[n]),Hi(t,e,n))}function ds(t,e,n){var i=dd(t)?m:C,r=arguments.length<3;return i(t,va(e,4),n,r,ch)}function fs(t,e,n){var i=dd(t)?g:C,r=arguments.length<3;return i(t,va(e,4),n,r,hh)}function ps(t,e){return(dd(t)?c:ui)(t,Cs(va(e,3)))}function ms(t){return(dd(t)?Rn:er)(t)}function gs(t,e,n){return e=(n?Aa(t,e,n):e===it)?1:yl(e),(dd(t)?Ln:nr)(t,e)}function vs(t){return(dd(t)?Dn:rr)(t)}function ys(t){if(null==t)return 0;if(Ws(t))return hl(t)?J(t):t.length;var e=wh(t);return e==Xt||e==te?t.size:Ni(t).length}function bs(t,e,n){var i=dd(t)?v:or;return n&&Aa(t,e,n)&&(e=it),i(t,va(e,3))}function xs(t,e){if(\"function\"!=typeof e)throw new oc(ot);return t=yl(t),function(){if(--t<1)return e.apply(this,arguments)}}function _s(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,aa(t,wt,it,it,it,it,e)}function ws(t,e){var n;if(\"function\"!=typeof e)throw new oc(ot);return t=yl(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function Ms(t,e,n){e=n?it:e;var i=aa(t,yt,it,it,it,it,it,e);return i.placeholder=Ms.placeholder,i}function Ss(t,e,n){e=n?it:e;var i=aa(t,bt,it,it,it,it,it,e);return i.placeholder=Ss.placeholder,i}function Es(t,e,n){function i(e){var n=d,i=f;return d=f=it,y=e,m=t.apply(i,n)}function r(t){return y=t,g=Eh(s,e),b?i(t):m}function a(t){var n=t-v,i=t-y,r=e-n;return x?Wc(r,p-i):r}function o(t){var n=t-v,i=t-y;return v===it||n>=e||n<0||x&&i>=p}function s(){var t=td();if(o(t))return l(t);g=Eh(s,a(t))}function l(t){return g=it,_&&d?i(t):(d=f=it,m)}function u(){g!==it&&vh(g),y=0,d=v=f=g=it}function c(){return g===it?m:l(td())}function h(){var t=td(),n=o(t);if(d=arguments,f=this,v=t,n){if(g===it)return r(v);if(x)return g=Eh(s,e),i(v)}return g===it&&(g=Eh(s,e)),m}var d,f,p,m,g,v,y=0,b=!1,x=!1,_=!0;if(\"function\"!=typeof t)throw new oc(ot);return e=xl(e)||0,tl(n)&&(b=!!n.leading,x=\"maxWait\"in n,p=x?jc(xl(n.maxWait)||0,e):p,_=\"trailing\"in n?!!n.trailing:_),h.cancel=u,h.flush=c,h}function ks(t){return aa(t,St)}function Ts(t,e){if(\"function\"!=typeof t||null!=e&&\"function\"!=typeof e)throw new oc(ot);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=t.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(Ts.Cache||sn),n}function Cs(t){if(\"function\"!=typeof t)throw new oc(ot);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ps(t){return ws(2,t)}function Os(t,e){if(\"function\"!=typeof t)throw new oc(ot);return e=e===it?e:yl(e),tr(t,e)}function As(t,e){if(\"function\"!=typeof t)throw new oc(ot);return e=null==e?0:jc(yl(e),0),tr(function(n){var i=n[e],r=wr(n,0,e);return i&&p(r,i),a(t,this,r)})}function Rs(t,e,n){var i=!0,r=!0;if(\"function\"!=typeof t)throw new oc(ot);return tl(n)&&(i=\"leading\"in n?!!n.leading:i,r=\"trailing\"in n?!!n.trailing:r),Es(t,e,{leading:i,maxWait:e,trailing:r})}function Ls(t){return _s(t,1)}function Is(t,e){return od(xr(e),t)}function Ds(){if(!arguments.length)return[];var t=arguments[0];return dd(t)?t:[t]}function Ns(t){return ei(t,dt)}function zs(t,e){return e=\"function\"==typeof e?e:it,ei(t,dt,e)}function Bs(t){return ei(t,ct|dt)}function Fs(t,e){return e=\"function\"==typeof e?e:it,ei(t,ct|dt,e)}function Us(t,e){return null==e||ii(t,e,Nl(e))}function js(t,e){return t===e||t!==t&&e!==e}function Ws(t){return null!=t&&$s(t.length)&&!Qs(t)}function Gs(t){return el(t)&&Ws(t)}function Vs(t){return!0===t||!1===t||el(t)&&gi(t)==Wt}function Hs(t){return el(t)&&1===t.nodeType&&!ul(t)}function qs(t){if(null==t)return!0;if(Ws(t)&&(dd(t)||\"string\"==typeof t||\"function\"==typeof t.splice||pd(t)||bd(t)||hd(t)))return!t.length;var e=wh(t);if(e==Xt||e==te)return!t.size;if(Na(t))return!Ni(t).length;for(var n in t)if(dc.call(t,n))return!1;return!0}function Ys(t,e){return Ti(t,e)}function Xs(t,e,n){n=\"function\"==typeof n?n:it;var i=n?n(t,e):it;return i===it?Ti(t,e,it,n):!!i}function Zs(t){if(!el(t))return!1;var e=gi(t);return e==Ht||e==Vt||\"string\"==typeof t.message&&\"string\"==typeof t.name&&!ul(t)}function Ks(t){return\"number\"==typeof t&&Bc(t)}function Qs(t){if(!tl(t))return!1;var e=gi(t);return e==qt||e==Yt||e==jt||e==Jt}function Js(t){return\"number\"==typeof t&&t==yl(t)}function $s(t){return\"number\"==typeof t&&t>-1&&t%1==0&&t<=Rt}function tl(t){var e=typeof t;return null!=t&&(\"object\"==e||\"function\"==e)}function el(t){return null!=t&&\"object\"==typeof t}function nl(t,e){return t===e||Oi(t,e,ba(e))}function il(t,e,n){return n=\"function\"==typeof n?n:it,Oi(t,e,ba(e),n)}function rl(t){return ll(t)&&t!=+t}function al(t){if(Mh(t))throw new tc(at);return Ai(t)}function ol(t){return null===t}function sl(t){return null==t}function ll(t){return\"number\"==typeof t||el(t)&&gi(t)==Zt}function ul(t){if(!el(t)||gi(t)!=Qt)return!1;var e=Mc(t);if(null===e)return!0;var n=dc.call(e,\"constructor\")&&e.constructor;return\"function\"==typeof n&&n instanceof n&&hc.call(n)==gc}function cl(t){return Js(t)&&t>=-Rt&&t<=Rt}function hl(t){return\"string\"==typeof t||!dd(t)&&el(t)&&gi(t)==ee}function dl(t){return\"symbol\"==typeof t||el(t)&&gi(t)==ne}function fl(t){return t===it}function pl(t){return el(t)&&wh(t)==re}function ml(t){return el(t)&&gi(t)==ae}function gl(t){if(!t)return[];if(Ws(t))return hl(t)?$(t):Lr(t);if(Cc&&t[Cc])return G(t[Cc]());var e=wh(t);return(e==Xt?V:e==te?X:Zl)(t)}function vl(t){if(!t)return 0===t?t:0;if((t=xl(t))===At||t===-At){return(t<0?-1:1)*Lt}return t===t?t:0}function yl(t){var e=vl(t),n=e%1;return e===e?n?e-n:e:0}function bl(t){return t?ti(yl(t),0,Dt):0}function xl(t){if(\"number\"==typeof t)return t;if(dl(t))return It;if(tl(t)){var e=\"function\"==typeof t.valueOf?t.valueOf():t;t=tl(e)?e+\"\":e}if(\"string\"!=typeof t)return 0===t?t:+t;t=t.replace(Re,\"\");var n=Ge.test(t);return n||He.test(t)?Cn(t.slice(2),n?2:8):We.test(t)?It:+t}function _l(t){return Ir(t,zl(t))}function wl(t){return t?ti(yl(t),-Rt,Rt):0===t?t:0}function Ml(t){return null==t?\"\":hr(t)}function Sl(t,e){var n=uh(t);return null==e?n:Kn(n,e)}function El(t,e){return x(t,va(e,3),hi)}function kl(t,e){return x(t,va(e,3),di)}function Tl(t,e){return null==t?t:dh(t,va(e,3),zl)}function Cl(t,e){return null==t?t:fh(t,va(e,3),zl)}function Pl(t,e){return t&&hi(t,va(e,3))}function Ol(t,e){return t&&di(t,va(e,3))}function Al(t){return null==t?[]:fi(t,Nl(t))}function Rl(t){return null==t?[]:fi(t,zl(t))}function Ll(t,e,n){var i=null==t?it:pi(t,e);return i===it?n:i}function Il(t,e){return null!=t&&Sa(t,e,yi)}function Dl(t,e){return null!=t&&Sa(t,e,bi)}function Nl(t){return Ws(t)?On(t):Ni(t)}function zl(t){return Ws(t)?On(t,!0):zi(t)}function Bl(t,e){var n={};return e=va(e,3),hi(t,function(t,i,r){Jn(n,e(t,i,r),t)}),n}function Fl(t,e){var n={};return e=va(e,3),hi(t,function(t,i,r){Jn(n,i,e(t,i,r))}),n}function Ul(t,e){return jl(t,Cs(va(e)))}function jl(t,e){if(null==t)return{};var n=f(pa(t),function(t){return[t]});return e=va(e),Yi(t,n,function(t,n){return e(t,n[0])})}function Wl(t,e,n){e=_r(e,t);var i=-1,r=e.length;for(r||(r=1,t=it);++ie){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Hc();return Wc(t+r*(e-t+Tn(\"1e-\"+((r+\"\").length-1))),e)}return Qi(t,e)}function tu(t){return Hd(Ml(t).toLowerCase())}function eu(t){return(t=Ml(t))&&t.replace(Ye,Vn).replace(pn,\"\")}function nu(t,e,n){t=Ml(t),e=hr(e);var i=t.length;n=n===it?i:ti(yl(n),0,i);var r=n;return(n-=e.length)>=0&&t.slice(n,r)==e}function iu(t){return t=Ml(t),t&&Me.test(t)?t.replace(_e,Hn):t}function ru(t){return t=Ml(t),t&&Ae.test(t)?t.replace(Oe,\"\\\\$&\"):t}function au(t,e,n){t=Ml(t),e=yl(e);var i=e?J(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Jr(Dc(r),n)+t+Jr(Ic(r),n)}function ou(t,e,n){t=Ml(t),e=yl(e);var i=e?J(t):0;return e&&i>>0)?(t=Ml(t),t&&(\"string\"==typeof e||null!=e&&!vd(e))&&!(e=hr(e))&&j(t)?wr($(t),0,n):t.split(e,n)):[]}function du(t,e,n){return t=Ml(t),n=null==n?0:ti(yl(n),0,t.length),e=hr(e),t.slice(n,n+e.length)==e}function fu(t,e,i){var r=n.templateSettings;i&&Aa(t,e,i)&&(e=it),t=Ml(t),e=Sd({},e,r,oa);var a,o,s=Sd({},e.imports,r.imports,oa),l=Nl(s),u=I(s,l),c=0,h=e.interpolate||Xe,d=\"__p += '\",f=rc((e.escape||Xe).source+\"|\"+h.source+\"|\"+(h===ke?Ue:Xe).source+\"|\"+(e.evaluate||Xe).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(\"sourceURL\"in e?e.sourceURL:\"lodash.templateSources[\"+ ++xn+\"]\")+\"\\n\";t.replace(f,function(e,n,i,r,s,l){return i||(i=r),d+=t.slice(c,l).replace(Ze,F),n&&(a=!0,d+=\"' +\\n__e(\"+n+\") +\\n'\"),s&&(o=!0,d+=\"';\\n\"+s+\";\\n__p += '\"),i&&(d+=\"' +\\n((__t = (\"+i+\")) == null ? '' : __t) +\\n'\"),c=l+e.length,e}),d+=\"';\\n\";var m=e.variable;m||(d=\"with (obj) {\\n\"+d+\"\\n}\\n\"),d=(o?d.replace(ve,\"\"):d).replace(ye,\"$1\").replace(be,\"$1;\"),d=\"function(\"+(m||\"obj\")+\") {\\n\"+(m?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(a?\", __e = _.escape\":\"\")+(o?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+d+\"return __p\\n}\";var g=qd(function(){return ec(l,p+\"return \"+d).apply(it,u)});if(g.source=d,Zs(g))throw g;return g}function pu(t){return Ml(t).toLowerCase()}function mu(t){return Ml(t).toUpperCase()}function gu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Re,\"\");if(!t||!(e=hr(e)))return t;var i=$(t),r=$(e);return wr(i,N(i,r),z(i,r)+1).join(\"\")}function vu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Ie,\"\");if(!t||!(e=hr(e)))return t;var i=$(t);return wr(i,0,z(i,$(e))+1).join(\"\")}function yu(t,e,n){if((t=Ml(t))&&(n||e===it))return t.replace(Le,\"\");if(!t||!(e=hr(e)))return t;var i=$(t);return wr(i,N(i,$(e))).join(\"\")}function bu(t,e){var n=Et,i=kt;if(tl(e)){var r=\"separator\"in e?e.separator:r;n=\"length\"in e?yl(e.length):n,i=\"omission\"in e?hr(e.omission):i}t=Ml(t);var a=t.length;if(j(t)){var o=$(t);a=o.length}if(n>=a)return t;var s=n-J(i);if(s<1)return i;var l=o?wr(o,0,s).join(\"\"):t.slice(0,s);if(r===it)return l+i;if(o&&(s+=l.length-s),vd(r)){if(t.slice(s).search(r)){var u,c=l;for(r.global||(r=rc(r.source,Ml(je.exec(r))+\"g\")),r.lastIndex=0;u=r.exec(c);)var h=u.index;l=l.slice(0,h===it?s:h)}}else if(t.indexOf(hr(r),s)!=s){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+i}function xu(t){return t=Ml(t),t&&we.test(t)?t.replace(xe,qn):t}function _u(t,e,n){return t=Ml(t),e=n?it:e,e===it?W(t)?nt(t):b(t):t.match(e)||[]}function wu(t){var e=null==t?0:t.length,n=va();return t=e?f(t,function(t){if(\"function\"!=typeof t[1])throw new oc(ot);return[n(t[0]),t[1]]}):[],tr(function(n){for(var i=-1;++iRt)return[];var n=Dt,i=Wc(t,Dt);e=va(e),t-=Dt;for(var r=A(i,e);++n1?t[e-1]:it;return n=\"function\"==typeof n?(t.pop(),n):it,Go(t,n)}),Hh=da(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,a=function(e){return $n(e,t)};return!(e>1||this.__actions__.length)&&i instanceof y&&Oa(n)?(i=i.slice(n,+n+(e?1:0)),i.__actions__.push({func:Xo,args:[a],thisArg:it}),new r(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(a)}),qh=zr(function(t,e,n){dc.call(t,n)?++t[n]:Jn(t,n,1)}),Yh=qr(oo),Xh=qr(so),Zh=zr(function(t,e,n){dc.call(t,n)?t[n].push(e):Jn(t,n,[e])}),Kh=tr(function(t,e,n){var i=-1,r=\"function\"==typeof e,o=Ws(t)?Ju(t.length):[];return ch(t,function(t){o[++i]=r?a(e,t,n):Mi(t,e,n)}),o}),Qh=zr(function(t,e,n){Jn(t,n,e)}),Jh=zr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),$h=tr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Aa(t,e[0],e[1])?e=[]:n>2&&Aa(e[0],e[1],e[2])&&(e=[e[0]]),Hi(t,ci(e,1),[])}),td=Rc||function(){return An.Date.now()},ed=tr(function(t,e,n){var i=mt;if(n.length){var r=q(n,ga(ed));i|=xt}return aa(t,i,e,n,r)}),nd=tr(function(t,e,n){var i=mt|gt;if(n.length){var r=q(n,ga(nd));i|=xt}return aa(e,i,t,n,r)}),id=tr(function(t,e){return ri(t,1,e)}),rd=tr(function(t,e,n){return ri(t,xl(e)||0,n)});Ts.Cache=sn;var ad=gh(function(t,e){e=1==e.length&&dd(e[0])?f(e[0],L(va())):f(ci(e,1),L(va()));var n=e.length;return tr(function(i){for(var r=-1,o=Wc(i.length,n);++r=e}),hd=Si(function(){return arguments}())?Si:function(t){return el(t)&&dc.call(t,\"callee\")&&!Ec.call(t,\"callee\")},dd=Ju.isArray,fd=zn?L(zn):Ei,pd=zc||zu,md=Bn?L(Bn):ki,gd=Fn?L(Fn):Pi,vd=Un?L(Un):Ri,yd=jn?L(jn):Li,bd=Wn?L(Wn):Ii,xd=ea(Bi),_d=ea(function(t,e){return t<=e}),wd=Br(function(t,e){if(Na(e)||Ws(e))return void Ir(e,Nl(e),t);for(var n in e)dc.call(e,n)&&Gn(t,n,e[n])}),Md=Br(function(t,e){Ir(e,zl(e),t)}),Sd=Br(function(t,e,n,i){Ir(e,zl(e),t,i)}),Ed=Br(function(t,e,n,i){Ir(e,Nl(e),t,i)}),kd=da($n),Td=tr(function(t,e){t=ic(t);var n=-1,i=e.length,r=i>2?e[2]:it;for(r&&Aa(e[0],e[1],r)&&(i=1);++n1),e}),Ir(t,pa(t),n),i&&(n=ei(n,ct|ht|dt,la));for(var r=e.length;r--;)fr(n,e[r]);return n}),Dd=da(function(t,e){return null==t?{}:qi(t,e)}),Nd=ra(Nl),zd=ra(zl),Bd=Gr(function(t,e,n){return e=e.toLowerCase(),t+(n?tu(e):e)}),Fd=Gr(function(t,e,n){return t+(n?\"-\":\"\")+e.toLowerCase()}),Ud=Gr(function(t,e,n){return t+(n?\" \":\"\")+e.toLowerCase()}),jd=Wr(\"toLowerCase\"),Wd=Gr(function(t,e,n){return t+(n?\"_\":\"\")+e.toLowerCase()}),Gd=Gr(function(t,e,n){return t+(n?\" \":\"\")+Hd(e)}),Vd=Gr(function(t,e,n){return t+(n?\" \":\"\")+e.toUpperCase()}),Hd=Wr(\"toUpperCase\"),qd=tr(function(t,e){try{return a(t,it,e)}catch(t){return Zs(t)?t:new tc(t)}}),Yd=da(function(t,e){return s(e,function(e){e=Xa(e),Jn(t,e,ed(t[e],t))}),t}),Xd=Yr(),Zd=Yr(!0),Kd=tr(function(t,e){return function(n){return Mi(n,t,e)}}),Qd=tr(function(t,e){return function(n){return Mi(t,n,e)}}),Jd=Qr(f),$d=Qr(u),tf=Qr(v),ef=ta(),nf=ta(!0),rf=Kr(function(t,e){return t+e},0),af=ia(\"ceil\"),of=Kr(function(t,e){return t/e},1),sf=ia(\"floor\"),lf=Kr(function(t,e){return t*e},1),uf=ia(\"round\"),cf=Kr(function(t,e){return t-e},0);return n.after=xs,n.ary=_s,n.assign=wd,n.assignIn=Md,n.assignInWith=Sd,n.assignWith=Ed,n.at=kd,n.before=ws,n.bind=ed,n.bindAll=Yd,n.bindKey=nd,n.castArray=Ds,n.chain=qo,n.chunk=Ja,n.compact=$a,n.concat=to,n.cond=wu,n.conforms=Mu,n.constant=Su,n.countBy=qh,n.create=Sl,n.curry=Ms,n.curryRight=Ss,n.debounce=Es,n.defaults=Td,n.defaultsDeep=Cd,n.defer=id,n.delay=rd,n.difference=Ch,n.differenceBy=Ph,n.differenceWith=Oh,n.drop=eo,n.dropRight=no,n.dropRightWhile=io,n.dropWhile=ro,n.fill=ao,n.filter=is,n.flatMap=rs,n.flatMapDeep=as,n.flatMapDepth=os,n.flatten=lo,n.flattenDeep=uo,n.flattenDepth=co,n.flip=ks,n.flow=Xd,n.flowRight=Zd,n.fromPairs=ho,n.functions=Al,n.functionsIn=Rl,n.groupBy=Zh,n.initial=mo,n.intersection=Ah,n.intersectionBy=Rh,n.intersectionWith=Lh,n.invert=Pd,n.invertBy=Od,n.invokeMap=Kh,n.iteratee=Tu,n.keyBy=Qh,n.keys=Nl,n.keysIn=zl,n.map=cs,n.mapKeys=Bl,n.mapValues=Fl,n.matches=Cu,n.matchesProperty=Pu,n.memoize=Ts,n.merge=Rd,n.mergeWith=Ld,n.method=Kd,n.methodOf=Qd,n.mixin=Ou,n.negate=Cs,n.nthArg=Lu,n.omit=Id,n.omitBy=Ul,n.once=Ps,n.orderBy=hs,n.over=Jd,n.overArgs=ad,n.overEvery=$d,n.overSome=tf,n.partial=od,n.partialRight=sd,n.partition=Jh,n.pick=Dd,n.pickBy=jl,n.property=Iu,n.propertyOf=Du,n.pull=Ih,n.pullAll=xo,n.pullAllBy=_o,n.pullAllWith=wo,n.pullAt=Dh,n.range=ef,n.rangeRight=nf,n.rearg=ld,n.reject=ps,n.remove=Mo,n.rest=Os,n.reverse=So,n.sampleSize=gs,n.set=Gl,n.setWith=Vl,n.shuffle=vs,n.slice=Eo,n.sortBy=$h,n.sortedUniq=Ro,n.sortedUniqBy=Lo,n.split=hu,n.spread=As,n.tail=Io,n.take=Do,n.takeRight=No,n.takeRightWhile=zo,n.takeWhile=Bo,n.tap=Yo,n.throttle=Rs,n.thru=Xo,n.toArray=gl,n.toPairs=Nd,n.toPairsIn=zd,n.toPath=Wu,n.toPlainObject=_l,n.transform=Hl,n.unary=Ls,n.union=Nh,n.unionBy=zh,n.unionWith=Bh,n.uniq=Fo,n.uniqBy=Uo,n.uniqWith=jo,n.unset=ql,n.unzip=Wo,n.unzipWith=Go,n.update=Yl,n.updateWith=Xl,n.values=Zl,n.valuesIn=Kl,n.without=Fh,n.words=_u,n.wrap=Is,n.xor=Uh,n.xorBy=jh,n.xorWith=Wh,n.zip=Gh,n.zipObject=Vo,n.zipObjectDeep=Ho,n.zipWith=Vh,n.entries=Nd,n.entriesIn=zd,n.extend=Md,n.extendWith=Sd,Ou(n,n),n.add=rf,n.attempt=qd,n.camelCase=Bd,n.capitalize=tu,n.ceil=af,n.clamp=Ql,n.clone=Ns,n.cloneDeep=Bs,n.cloneDeepWith=Fs,n.cloneWith=zs,n.conformsTo=Us,n.deburr=eu,n.defaultTo=Eu,n.divide=of,n.endsWith=nu,n.eq=js,n.escape=iu,n.escapeRegExp=ru,n.every=ns,n.find=Yh,n.findIndex=oo,n.findKey=El,n.findLast=Xh,n.findLastIndex=so,n.findLastKey=kl,n.floor=sf,n.forEach=ss,n.forEachRight=ls,n.forIn=Tl,n.forInRight=Cl,n.forOwn=Pl,n.forOwnRight=Ol,n.get=Ll,n.gt=ud,n.gte=cd,n.has=Il,n.hasIn=Dl,n.head=fo,n.identity=ku,n.includes=us,n.indexOf=po,n.inRange=Jl,n.invoke=Ad,n.isArguments=hd,n.isArray=dd,n.isArrayBuffer=fd,n.isArrayLike=Ws,n.isArrayLikeObject=Gs,n.isBoolean=Vs,n.isBuffer=pd,n.isDate=md,n.isElement=Hs,n.isEmpty=qs,n.isEqual=Ys,n.isEqualWith=Xs,n.isError=Zs,n.isFinite=Ks,n.isFunction=Qs,n.isInteger=Js,n.isLength=$s,n.isMap=gd,n.isMatch=nl,n.isMatchWith=il,n.isNaN=rl,n.isNative=al,n.isNil=sl,n.isNull=ol,n.isNumber=ll,n.isObject=tl,n.isObjectLike=el,n.isPlainObject=ul,n.isRegExp=vd,n.isSafeInteger=cl,n.isSet=yd,n.isString=hl,n.isSymbol=dl,n.isTypedArray=bd,n.isUndefined=fl,n.isWeakMap=pl,n.isWeakSet=ml,n.join=go,n.kebabCase=Fd,n.last=vo,n.lastIndexOf=yo,n.lowerCase=Ud,n.lowerFirst=jd,n.lt=xd,n.lte=_d,n.max=Vu,n.maxBy=Hu,n.mean=qu,n.meanBy=Yu,n.min=Xu,n.minBy=Zu,n.stubArray=Nu,n.stubFalse=zu,n.stubObject=Bu,n.stubString=Fu,n.stubTrue=Uu,n.multiply=lf,n.nth=bo,n.noConflict=Au,n.noop=Ru,n.now=td,n.pad=au,n.padEnd=ou,n.padStart=su,n.parseInt=lu,n.random=$l,n.reduce=ds,n.reduceRight=fs,n.repeat=uu,n.replace=cu,n.result=Wl,n.round=uf,n.runInContext=t,n.sample=ms,n.size=ys,n.snakeCase=Wd,n.some=bs,n.sortedIndex=ko,n.sortedIndexBy=To,n.sortedIndexOf=Co,n.sortedLastIndex=Po,n.sortedLastIndexBy=Oo,n.sortedLastIndexOf=Ao,n.startCase=Gd,n.startsWith=du,n.subtract=cf,n.sum=Ku,n.sumBy=Qu,n.template=fu,n.times=ju,n.toFinite=vl,n.toInteger=yl,n.toLength=bl,n.toLower=pu,n.toNumber=xl,n.toSafeInteger=wl,n.toString=Ml,n.toUpper=mu,n.trim=gu,n.trimEnd=vu,n.trimStart=yu,n.truncate=bu,n.unescape=xu,n.uniqueId=Gu,n.upperCase=Vd,n.upperFirst=Hd,n.each=ss,n.eachRight=ls,n.first=fo,Ou(n,function(){var t={};return hi(n,function(e,i){dc.call(n.prototype,i)||(t[i]=e)}),t}(),{chain:!1}),n.VERSION=\"4.17.5\",s([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(t){n[t].placeholder=n}),s([\"drop\",\"take\"],function(t,e){y.prototype[t]=function(n){n=n===it?1:jc(yl(n),0);var i=this.__filtered__&&!e?new y(this):this.clone();return i.__filtered__?i.__takeCount__=Wc(n,i.__takeCount__):i.__views__.push({size:Wc(n,Dt),type:t+(i.__dir__<0?\"Right\":\"\")}),i},y.prototype[t+\"Right\"]=function(e){return this.reverse()[t](e).reverse()}}),s([\"filter\",\"map\",\"takeWhile\"],function(t,e){var n=e+1,i=n==Pt||3==n;y.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:va(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),s([\"head\",\"last\"],function(t,e){var n=\"take\"+(e?\"Right\":\"\");y.prototype[t]=function(){return this[n](1).value()[0]}}),s([\"initial\",\"tail\"],function(t,e){var n=\"drop\"+(e?\"\":\"Right\");y.prototype[t]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(ku)},y.prototype.find=function(t){return this.filter(t).head()},y.prototype.findLast=function(t){return this.reverse().find(t)},y.prototype.invokeMap=tr(function(t,e){return\"function\"==typeof t?new y(this):this.map(function(n){return Mi(n,t,e)})}),y.prototype.reject=function(t){return this.filter(Cs(va(t)))},y.prototype.slice=function(t,e){t=yl(t);var n=this;return n.__filtered__&&(t>0||e<0)?new y(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=yl(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},y.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},y.prototype.toArray=function(){return this.take(Dt)},hi(y.prototype,function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),a=/^(?:head|last)$/.test(e),o=n[a?\"take\"+(\"last\"==e?\"Right\":\"\"):e],s=a||/^find/.test(e);o&&(n.prototype[e]=function(){var e=this.__wrapped__,l=a?[1]:arguments,u=e instanceof y,c=l[0],h=u||dd(e),d=function(t){var e=o.apply(n,p([t],l));return a&&f?e[0]:e};h&&i&&\"function\"==typeof c&&1!=c.length&&(u=h=!1);var f=this.__chain__,m=!!this.__actions__.length,g=s&&!f,v=u&&!m;if(!s&&h){e=v?e:new y(this);var b=t.apply(e,l);return b.__actions__.push({func:Xo,args:[d],thisArg:it}),new r(b,f)}return g&&v?t.apply(this,l):(b=this.thru(d),g?a?b.value()[0]:b.value():b)})}),s([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=sc[t],i=/^(?:push|sort|unshift)$/.test(t)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var n=this.value();return e.apply(dd(n)?n:[],t)}return this[i](function(n){return e.apply(dd(n)?n:[],t)})}}),hi(y.prototype,function(t,e){var i=n[e];if(i){var r=i.name+\"\";(th[r]||(th[r]=[])).push({name:e,func:i})}}),th[Xr(it,gt).name]=[{name:\"wrapper\",func:it}],y.prototype.clone=T,y.prototype.reverse=K,y.prototype.value=tt,n.prototype.at=Hh,n.prototype.chain=Zo,n.prototype.commit=Ko,n.prototype.next=Qo,n.prototype.plant=$o,n.prototype.reverse=ts,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=es,n.prototype.first=n.prototype.head,Cc&&(n.prototype[Cc]=Jo),n}();An._=Yn,(r=function(){return Yn}.call(e,n,e,i))!==it&&(i.exports=r)}).call(this)}).call(e,n(111),n(112)(t))},function(t,e,n){t.exports={default:n(298),__esModule:!0}},function(t,e){t.exports={}},function(t,e,n){var i=n(80);t.exports=function(t){return Object(i(t))}},function(t,e,n){\"use strict\";var i=n(333)(!0);n(84)(String,\"String\",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){\"use strict\";e.a=function(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}},function(t,e,n){\"use strict\";e.a=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}},function(t,e,n){\"use strict\";function i(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(t){console.error(t)}}i(),t.exports=n(461)},function(t,e,n){\"use strict\";var i=n(6);t.exports={generators:{linear:function(t,e){var n,r=[];if(t.stepSize&&t.stepSize>0)n=t.stepSize;else{var a=i.niceNum(e.max-e.min,!1);n=i.niceNum(a/(t.maxTicks-1),!0)}var o=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(o=t.min,s=t.max);var l=(s-o)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),r.push(void 0!==t.min?t.min:o);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var a=i.log10(Math.abs(r)),o=\"\";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o=\"0\";return o},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?\"0\":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():\"\"}}}},function(t,e){t.exports=function(t){if(\"function\"!=typeof t)throw TypeError(t+\" is not a function!\");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(29),r=n(126),a=n(124),o=n(26),s=n(66),l=n(97),u={},c={},e=t.exports=function(t,e,n,h,d){var f,p,m,g,v=d?function(){return t}:l(t),y=i(n,h,e?2:1),b=0;if(\"function\"!=typeof v)throw TypeError(t+\" is not iterable!\");if(a(v)){for(f=s(t.length);f>b;b++)if((g=e?y(o(p=t[b])[0],p[1]):y(t[b]))===u||g===c)return g}else for(m=v.call(t);!(p=m.next()).done;)if((g=r(m,y,p.value,e))===u||g===c)return g};e.BREAK=u,e.RETURN=c},function(t,e,n){var i=n(131),r=n(82);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(22).f,r=n(37),a=n(17)(\"toStringTag\");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e,n){n(338);for(var i=n(18),r=n(34),a=n(41),o=n(17)(\"toStringTag\"),s=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),l=0;ln.length)for(;this.routingPaths.length>n.length;)this.mapAdapter.removePolyline(this.routingPaths[this.routingPaths.length-1]),this.routingPaths.pop();this.routingPaths.forEach(function(t,i){e.mapAdapter.updatePolyline(t,n[i])})}}},{key:\"requestRoute\",value:function(t,e,n,i){var r=this;if(t&&e&&n&&i){var a=\"http://navi-env.axty8vi3ic.us-west-2.elasticbeanstalk.com/dreamview/navigation?origin=\"+t+\",\"+e+\"&destination=\"+n+\",\"+i+\"&heading=0\";fetch(encodeURI(a),{method:\"GET\",mode:\"cors\"}).then(function(t){return t.arrayBuffer()}).then(function(t){if(!t.byteLength)return void alert(\"No navigation info received.\");r.WS.publishNavigationInfo(t)}).catch(function(t){console.error(\"Failed to retrieve navigation data:\",t)})}}},{key:\"sendRoutingRequest\",value:function(){if(this.routingRequestPoints){var t=this.routingRequestPoints.length>1?this.routingRequestPoints[0]:this.mapAdapter.getMarkerPosition(this.vehicleMarker),e=this.routingRequestPoints[this.routingRequestPoints.length-1];return this.routingRequestPoints=[],this.requestRoute(t.lat,t.lng,e.lat,e.lng),!0}return alert(\"Please select a route\"),!1}},{key:\"addDefaultEndPoint\",value:function(t){var e=this;t.forEach(function(t){var n=(0,d.UTMToWGS84)(t.x,t.y),i=(0,a.default)(n,2),r=i[0],o=i[1];e.routingRequestPoints.push({lat:o,lng:r})})}}]),t}(),p=new f;e.default=p},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){function r(t){if(i){var e=t.clone();i(e)}}p[e]?r(p[e]):new s.default(function(e,n){t?d.load(t,function(t){t.preload(),e(t)}):e(null)}).then(function(t){var i=new u.OBJLoader;t&&i.setMaterials(t),i.load(e,function(t){t.name=e,t.scale.set(n.x,n.y,n.z),p[e]=t,r(t)})}).catch(function(){console.error(\"Failed to load object.\")})}function a(t,e,n){f.load(t,e,void 0,n)}Object.defineProperty(e,\"__esModule\",{value:!0});var o=n(242),s=i(o);e.loadObject=r,e.loadTexture=a;var l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(539),h=(i(c),n(538)),d=(i(h),new u.MTLLoader),f=new u.TextureLoader;u.TextureLoader.prototype.crossOrigin=\"\";var p={}},function(t,e,n){t.exports={default:n(300),__esModule:!0}},function(t,e,n){\"use strict\";var i={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||void 0===t},isArray:Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&\"[object Object]\"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return i.valueOrDefault(i.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&\"function\"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,r){var a,o,s;if(i.isArray(t))if(o=t.length,r)for(a=o-1;a>=0;a--)e.call(n,t[a],a);else for(a=0;adocument.F=Object<\\/script>\"),t.close(),l=t.F;i--;)delete l.prototype[a[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[o]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(93),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+i).toString(36))}},function(t,e,n){\"use strict\";function i(t){return function(){return t}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){\"use strict\";e.a=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))}},function(t,e,n){\"use strict\";e.a=function(t){return.375*t*(1+.25*t*(1+.46875*t))}},function(t,e,n){\"use strict\";e.a=function(t){return.05859375*t*t*(1+.75*t)}},function(t,e,n){\"use strict\";e.a=function(t){return t*t*t*(35/3072)}},function(t,e,n){\"use strict\";e.a=function(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}},function(t,e,n){\"use strict\";var i=n(7);e.a=function(t,e){for(var n,r,a=.5*t,o=i.a-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),r=i.a-2*Math.atan(e*Math.pow((1-n)/(1+n),a))-o,o+=r,Math.abs(r)<=1e-10)return o;return-9999}},function(t,e,n){\"use strict\";var i=n(7);e.a=function(t,e,n){var r=t*n,a=.5*t;return r=Math.pow((1-r)/(1+r),a),Math.tan(.5*(i.a-e))/r}},function(t,e,n){\"use strict\";function i(t){return t.type&&\"Tab\"===t.type.tabsRole}function r(t){return t.type&&\"TabPanel\"===t.type.tabsRole}function a(t){return t.type&&\"TabList\"===t.type.tabsRole}e.b=i,e.c=r,e.a=a},function(t,e,n){\"use strict\";function i(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t.constructor===Array&&t.length>0)for(;e0?i:n)(t)}},function(t,e,n){var i=n(21);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&\"function\"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if(\"function\"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&\"function\"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError(\"Can't convert object to primitive value\")}},function(t,e,n){var i=n(18),r=n(11),a=n(63),o=n(96),s=n(22).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});\"_\"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},function(t,e,n){e.f=n(17)},function(t,e,n){var i=n(62),r=n(17)(\"iterator\"),a=n(41);t.exports=n(11).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t[\"@@iterator\"]||a[i(t)]}},function(t,e){},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(373),a=i(r),o=n(376),s=i(o),l=n(375),u=i(l),c=n(377),h=i(c),d=n(378),f=i(d),p=n(379),m=i(p),g=n(380),v=i(g),y=n(381),b=i(y),x=n(382),_=i(x),w=n(383),M=i(w),S=n(384),E=i(S),k=n(386),T=i(k),C=n(374),P=i(C),O=[u.default,s.default,h.default,m.default,v.default,b.default,_.default,M.default,E.default,f.default],A=(0,a.default)({prefixMap:P.default.prefixMap,plugins:O},T.default);e.default=A,t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){\"use strict\";function i(t){if(null===t||void 0===t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\nvar r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(\"abc\");if(t[5]=\"de\",\"5\"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(\"\"))return!1;var i={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(t){i[t]=t}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},i)).join(\"\")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=i(t),u=1;u1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e}},function(t,e,n){\"use strict\";function i(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),a=e.toLowerCase().replace(r,\"\"),o=-1;++o0?1:-1,d=Math.tan(s)*h,f=h*c.x,p=d*c.y,m=Math.atan2(p,f),g=o.data[0],v=g.tooltipPosition();t.ctx.font=x.default.helpers.fontString(20,\"normal\",\"Helvetica Neue\"),t.ctx.translate(v.x,v.y),t.ctx.rotate(-m),t.ctx.fillText(\"►\",0,0),t.ctx.restore()}})}}),x.default.defaults.global.defaultFontColor=\"#FFFFFF\";var _=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"initializeCanvas\",value:function(t,e){this.name2idx={};var n={title:{display:t&&t.length>0,text:t},legend:{display:e.legend.display},tooltips:{enable:!0,mode:\"nearest\",intersect:!1}};if(e.axes){n.scales||(n.scales={});for(var i in e.axes){var r=i+\"Axes\",a=e.axes[i],o={id:i+\"-axis-0\",scaleLabel:{display:!0,labelString:a.labelString},ticks:{min:a.min,max:a.max},gridLines:{color:\"rgba(153, 153, 153, 0.5)\",zeroLineColor:\"rgba(153, 153, 153, 0.7)\"}};n.scales[r]||(n.scales[r]=[]),n.scales[r].push(o)}}var s=this.canvasElement.getContext(\"2d\");this.chart=new x.default(s,{type:\"scatter\",options:n})}},{key:\"updateData\",value:function(t,e,n,i){var r=e.substring(0,5);if(void 0===this.chart.data.datasets[t]){var a={label:r,showText:n.showLabel,text:e,backgroundColor:n.color,borderColor:n.color,data:i};for(var o in n)a[o]=n[o];this.chart.data.datasets.push(a)}else this.chart.data.datasets[t].text=e,this.chart.data.datasets[t].data=i}},{key:\"updateChart\",value:function(t){for(var e in t.properties.lines){void 0===this.name2idx[e]&&(this.name2idx[e]=this.chart.data.datasets.length);var n=this.name2idx[e],i=t.properties.lines[e],r=t.data?t.data[e]:[];this.updateData(n,e,i,r)}var o=(0,a.default)(this.name2idx).length;if(t.boxes)for(var s in t.boxes){var l=t.boxes[s];this.updateData(o,s,t.properties.box,l),o++}this.chart.data.datasets.splice(o,this.chart.data.datasets.length-o),this.chart.update(0)}},{key:\"componentDidMount\",value:function(){var t=this.props,e=t.title,n=t.options;this.initializeCanvas(e,n),this.updateChart(this.props)}},{key:\"componentWillUnmount\",value:function(){this.chart.destroy()}},{key:\"componentWillReceiveProps\",value:function(t){this.updateChart(t)}},{key:\"render\",value:function(){var t=this,e=this.props;e.data,e.properties,e.options,e.boxes;return v.default.createElement(\"div\",{className:\"scatter-graph\"},v.default.createElement(\"canvas\",{ref:function(e){t.canvasElement=e}}))}}]),e}(v.default.Component);e.default=_},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.id,n=t.title,i=t.isChecked,r=t.onClick,a=t.disabled,o=t.extraClasses;return m.default.createElement(\"ul\",{className:(0,v.default)({disabled:a},o)},m.default.createElement(\"li\",{id:e,onClick:function(){a||r()}},m.default.createElement(\"div\",{className:\"switch\"},m.default.createElement(\"input\",{type:\"checkbox\",className:\"toggle-switch\",name:e,checked:i,disabled:a,readOnly:!0}),m.default.createElement(\"label\",{className:\"toggle-switch-label\",htmlFor:e})),m.default.createElement(\"span\",null,n)))}}]),e}(m.default.Component);e.default=y},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.id,n=t.title,i=(t.options,t.onClick),r=t.checked,a=t.extraClasses;return m.default.createElement(\"ul\",{className:a},m.default.createElement(\"li\",{onClick:i},m.default.createElement(\"input\",{type:\"radio\",name:e,checked:r,readOnly:!0}),m.default.createElement(\"label\",{className:\"radio-selector-label\",htmlFor:n}),m.default.createElement(\"span\",null,n)))}}]),e}(m.default.Component);e.default=g},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=e.ObstacleColorMapping=e.DEFAULT_COLOR=void 0;var r=n(239),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(12),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c),d=n(15),f=i(d),p=n(217),m=i(p),g=n(77),v=n(31),y=n(39),b=e.DEFAULT_COLOR=16711932,x=e.ObstacleColorMapping={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608},_=function(){function t(){(0,s.default)(this,t),this.textRender=new m.default,this.arrows=[],this.ids=[],this.solidCubes=[],this.dashedCubes=[],this.extrusionSolidFaces=[],this.extrusionDashedFaces=[]}return(0,u.default)(t,[{key:\"update\",value:function(t,e,n){y.isEmpty(this.ids)||(this.ids.forEach(function(t){t.children.forEach(function(t){return t.visible=!1}),n.remove(t)}),this.ids=[]),this.textRender.reset();var i=t.object;if(y.isEmpty(i))return(0,g.hideArrayObjects)(this.arrows),(0,g.hideArrayObjects)(this.solidCubes),(0,g.hideArrayObjects)(this.dashedCubes),(0,g.hideArrayObjects)(this.extrusionSolidFaces),void(0,g.hideArrayObjects)(this.extrusionDashedFaces);for(var r=e.applyOffset({x:t.autoDrivingCar.positionX,y:t.autoDrivingCar.positionY}),o=0,s=0,l=0,u=0;u.5){var m=this.updateArrow(d,c.speedHeading,p,o++,n),v=1+(0,a.default)(c.speed);m.scale.set(v,v,v),m.visible=!0}if(f.default.options.showObstaclesHeading){var _=this.updateArrow(d,c.heading,16777215,o++,n);_.scale.set(1,1,1),_.visible=!0}f.default.options.showObstaclesId&&this.updateIdAndDistance(c.id,new h.Vector3(d.x,d.y,c.height),r.distanceTo(d).toFixed(1),n);var w=c.confidence;w=Math.max(0,w),w=Math.min(1,w);var M=c.polygonPoint;void 0!==M&&M.length>0?(this.updatePolygon(M,c.height,p,e,w,l,n),l+=M.length):c.length&&c.width&&c.height&&this.updateCube(c.length,c.width,c.height,d,c.heading,p,w,s++,n)}}(0,g.hideArrayObjects)(this.arrows,o),(0,g.hideArrayObjects)(this.solidCubes,s),(0,g.hideArrayObjects)(this.dashedCubes,s),(0,g.hideArrayObjects)(this.extrusionSolidFaces,l),(0,g.hideArrayObjects)(this.extrusionDashedFaces,l)}},{key:\"updateArrow\",value:function(t,e,n,i,r){var a=this.getArrow(i,r);return(0,g.copyProperty)(a.position,t),a.material.color.setHex(n),a.rotation.set(0,0,-(Math.PI/2-e)),a}},{key:\"updateIdAndDistance\",value:function(t,e,n,i){var r=this.textRender.composeText(t+\" D:\"+n);if(null!==r){r.position.set(e.x,e.y+.5,e.z||3);var a=i.getObjectByName(\"camera\");void 0!==a&&r.quaternion.copy(a.quaternion),r.children.forEach(function(t){return t.visible=!0}),r.visible=!0,r.name=\"id_\"+t,this.ids.push(r),i.add(r)}}},{key:\"updatePolygon\",value:function(t,e,n,i,r,a,o){for(var s=0;s0){var u=this.getCube(s,l,!0);u.position.set(i.x,i.y,i.z+n*(o-1)/2),u.scale.set(t,e,n*o),u.material.color.setHex(a),u.rotation.set(0,0,r),u.visible=!0}if(o<1){var c=this.getCube(s,l,!1);c.position.set(i.x,i.y,i.z+n*o/2),c.scale.set(t,e,n*(1-o)),c.material.color.setHex(a),c.rotation.set(0,0,r),c.visible=!0}}},{key:\"getArrow\",value:function(t,e){if(t2&&void 0!==arguments[2])||arguments[2],i=n?this.extrusionSolidFaces:this.extrusionDashedFaces;if(t2&&void 0!==arguments[2])||arguments[2],i=n?this.solidCubes:this.dashedCubes;if(t0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},\"x-axis\":function(t,e){return l(t,e,{intersect:!1})},point:function(t,e){return a(t,i(e,t))},nearest:function(t,e,n){var r=i(e,t);n.axis=n.axis||\"xy\";var a=s(n.axis),l=o(t,r,n.intersect,a);return l.length>1&&l.sort(function(t,e){var n=t.getArea(),i=e.getArea(),r=n-i;return 0===r&&(r=t._datasetIndex-e._datasetIndex),r}),l.slice(0,1)},x:function(t,e,n){var a=i(e,t),o=[],s=!1;return r(t,function(t){t.inXRange(a.x)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o},y:function(t,e,n){var a=i(e,t),o=[],s=!1;return r(t,function(t){t.inYRange(a.y)&&o.push(t),t.inRange(a.x,a.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o}}}},function(t,e,n){\"use strict\";var i=n(6),r=n(281),a=n(282),o=a._enabled?a:r;t.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},o)},function(t,e,n){var i=n(294),r=n(292),a=function(t){if(t instanceof a)return t;if(!(this instanceof a))return new a(t);this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;\"string\"==typeof t?(e=r.getRgba(t),e?this.setValues(\"rgb\",e):(e=r.getHsla(t))?this.setValues(\"hsl\",e):(e=r.getHwb(t))&&this.setValues(\"hwb\",e)):\"object\"==typeof t&&(e=t,void 0!==e.r||void 0!==e.red?this.setValues(\"rgb\",e):void 0!==e.l||void 0!==e.lightness?this.setValues(\"hsl\",e):void 0!==e.v||void 0!==e.value?this.setValues(\"hsv\",e):void 0!==e.w||void 0!==e.whiteness?this.setValues(\"hwb\",e):void 0===e.c&&void 0===e.cyan||this.setValues(\"cmyk\",e))};a.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace(\"rgb\",arguments)},hsl:function(){return this.setSpace(\"hsl\",arguments)},hsv:function(){return this.setSpace(\"hsv\",arguments)},hwb:function(){return this.setSpace(\"hwb\",arguments)},cmyk:function(){return this.setSpace(\"cmyk\",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues(\"alpha\",t),this)},red:function(t){return this.setChannel(\"rgb\",0,t)},green:function(t){return this.setChannel(\"rgb\",1,t)},blue:function(t){return this.setChannel(\"rgb\",2,t)},hue:function(t){return t&&(t%=360,t=t<0?360+t:t),this.setChannel(\"hsl\",0,t)},saturation:function(t){return this.setChannel(\"hsl\",1,t)},lightness:function(t){return this.setChannel(\"hsl\",2,t)},saturationv:function(t){return this.setChannel(\"hsv\",1,t)},whiteness:function(t){return this.setChannel(\"hwb\",1,t)},blackness:function(t){return this.setChannel(\"hwb\",2,t)},value:function(t){return this.setChannel(\"hsv\",2,t)},cyan:function(t){return this.setChannel(\"cmyk\",0,t)},magenta:function(t){return this.setChannel(\"cmyk\",1,t)},yellow:function(t){return this.setChannel(\"cmyk\",2,t)},black:function(t){return this.setChannel(\"cmyk\",3,t)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?\"AAA\":e>=4.5?\"AA\":\"\"},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues(\"rgb\",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues(\"hsl\",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues(\"hsl\",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues(\"hsl\",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues(\"hsl\",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues(\"hwb\",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues(\"hwb\",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues(\"rgb\",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues(\"alpha\",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues(\"alpha\",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues(\"hsl\",e),this},mix:function(t,e){var n=this,i=t,r=void 0===e?.5:e,a=2*r-1,o=n.alpha()-i.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new a,i=this.values,r=n.values;for(var o in i)i.hasOwnProperty(o)&&(t=i[o],e={}.toString.call(t),\"[object Array]\"===e?r[o]=t.slice(0):\"[object Number]\"===e?r[o]=t:console.error(\"unexpected color value:\",t));return n}},a.prototype.spaces={rgb:[\"red\",\"green\",\"blue\"],hsl:[\"hue\",\"saturation\",\"lightness\"],hsv:[\"hue\",\"saturation\",\"value\"],hwb:[\"hue\",\"whiteness\",\"blackness\"],cmyk:[\"cyan\",\"magenta\",\"yellow\",\"black\"]},a.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a.prototype.getValues=function(t){for(var e=this.values,n={},i=0;il;)i(s,n=e[l++])&&(~a(u,n)||u.push(n));return u}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(26),r=n(21),a=n(86);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports=n(34)},function(t,e,n){\"use strict\";var i=n(18),r=n(11),a=n(22),o=n(27),s=n(17)(\"species\");t.exports=function(t){var e=\"function\"==typeof r[t]?r[t]:i[t];o&&e&&!e[s]&&a.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(26),r=n(48),a=n(17)(\"species\");t.exports=function(t,e){var n,o=i(t).constructor;return void 0===o||void 0==(n=i(o)[a])?e:r(n)}},function(t,e,n){var i,r,a,o=n(29),s=n(324),l=n(122),u=n(81),c=n(18),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s(\"function\"==typeof t?t:Function(t),e)},i(g),g},f=function(t){delete v[t]},\"process\"==n(49)(h)?i=function(t){h.nextTick(o(y,t,1))}:m&&m.now?i=function(t){m.now(o(y,t,1))}:p?(r=new p,a=r.port2,r.port1.onmessage=b,i=o(a.postMessage,a,1)):c.addEventListener&&\"function\"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+\"\",\"*\")},c.addEventListener(\"message\",b,!1)):i=\"onreadystatechange\"in u(\"script\")?function(t){l.appendChild(u(\"script\")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e,n){var i=n(21);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError(\"Incompatible receiver, \"+e+\" required!\");return t}},function(t,e,n){\"use strict\";function i(t){return(0,a.default)(t)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(371),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e){function n(t,e){var n=t[1]||\"\",r=t[3];if(!r)return n;if(e&&\"function\"==typeof btoa){var a=i(r);return[n].concat(r.sources.map(function(t){return\"/*# sourceURL=\"+r.sourceRoot+t+\" */\"})).concat([a]).join(\"\\n\")}return[n].join(\"\\n\")}function i(t){return\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+\" */\"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?\"@media \"+e[2]+\"{\"+i+\"}\":i}).join(\"\")},e.i=function(t,n){\"string\"==typeof t&&(t=[[null,t,\"\"]]);for(var i={},r=0;r=56&&d<64&&f>=3&&f<12&&(h=32),d>=72&&d<84&&(f>=0&&f<9?h=31:f>=9&&f<21?h=33:f>=21&&f<33?h=35:f>=33&&f<42&&(h=37)),e=6*(h-1)-180+3,u=o(e),n=.006739496752268451,i=p/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),r=Math.tan(m)*Math.tan(m),a=n*Math.cos(m)*Math.cos(m),s=Math.cos(m)*(g-u),l=p*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var v=.9996*i*(s+(1-r+a)*s*s*s/6+(5-18*r+r*r+72*a-58*n)*s*s*s*s*s/120)+5e5,y=.9996*(l+i*Math.tan(m)*(s*s/2+(5-r+9*a+4*a*a)*s*s*s*s/24+(61-58*r+r*r+600*a-330*n)*s*s*s*s*s*s/720));return d<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(v),zoneNumber:h,zoneLetter:c(d)}}function u(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var a,o,l,c,h,d,f,p,m,g,v=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),b=n-5e5,x=e;i<\"N\"&&(x-=1e7),p=6*(r-1)-180+3,a=.006739496752268451,f=x/.9996,m=f/6367449.145945056,g=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),o=v/Math.sqrt(1-.00669438*Math.sin(g)*Math.sin(g)),l=Math.tan(g)*Math.tan(g),c=a*Math.cos(g)*Math.cos(g),h=.99330562*v/Math.pow(1-.00669438*Math.sin(g)*Math.sin(g),1.5),d=b/(.9996*o);var _=g-o*Math.tan(g)/h*(d*d/2-(5+3*l+10*c-4*c*c-9*a)*d*d*d*d/24+(61+90*l+298*c+45*l*l-252*a-3*c*c)*d*d*d*d*d*d/720);_=s(_);var w=(d-(1+2*l+c)*d*d*d/6+(5-2*c+28*l-3*c*c+8*a+24*l*l)*d*d*d*d*d/120)/Math.cos(g);w=p+s(w);var M;if(t.accuracy){var S=u({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});M={top:S.lat,right:S.lon,bottom:_,left:w}}else M={lat:_,lon:w};return M}function c(t){var e=\"Z\";return 84>=t&&t>=72?e=\"X\":72>t&&t>=64?e=\"W\":64>t&&t>=56?e=\"V\":56>t&&t>=48?e=\"U\":48>t&&t>=40?e=\"T\":40>t&&t>=32?e=\"S\":32>t&&t>=24?e=\"R\":24>t&&t>=16?e=\"Q\":16>t&&t>=8?e=\"P\":8>t&&t>=0?e=\"N\":0>t&&t>=-8?e=\"M\":-8>t&&t>=-16?e=\"L\":-16>t&&t>=-24?e=\"K\":-24>t&&t>=-32?e=\"J\":-32>t&&t>=-40?e=\"H\":-40>t&&t>=-48?e=\"G\":-48>t&&t>=-56?e=\"F\":-56>t&&t>=-64?e=\"E\":-64>t&&t>=-72?e=\"D\":-72>t&&t>=-80&&(e=\"C\"),e}function h(t,e){var n=\"00000\"+t.easting,i=\"00000\"+t.northing;return t.zoneNumber+t.zoneLetter+d(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function d(t,e,n){var i=f(n);return p(Math.floor(t/1e5),Math.floor(e/1e5)%20,i)}function f(t){var e=t%b;return 0===e&&(e=b),e}function p(t,e,n){var i=n-1,r=x.charCodeAt(i),a=_.charCodeAt(i),o=r+t-1,s=a+e,l=!1;return o>k&&(o=o-k+w-1,l=!0),(o===M||rM||(o>M||rS||(o>S||rk&&(o=o-k+w-1),s>E?(s=s-E+w-1,l=!0):l=!1,(s===M||aM||(s>M||aS||(s>S||aE&&(s=s-E+w-1),String.fromCharCode(o)+String.fromCharCode(s)}function m(t){if(t&&0===t.length)throw\"MGRSPoint coverting from nothing\";for(var e,n=t.length,i=null,r=\"\",a=0;!/[A-Z]/.test(e=t.charAt(a));){if(a>=2)throw\"MGRSPoint bad conversion from: \"+t;r+=e,a++}var o=parseInt(r,10);if(0===a||a+3>n)throw\"MGRSPoint bad conversion from: \"+t;var s=t.charAt(a++);if(s<=\"A\"||\"B\"===s||\"Y\"===s||s>=\"Z\"||\"I\"===s||\"O\"===s)throw\"MGRSPoint zone letter \"+s+\" not handled: \"+t;i=t.substring(a,a+=2);for(var l=f(o),u=g(i.charAt(0),l),c=v(i.charAt(1),l);c0&&(d=1e5/Math.pow(10,_),p=t.substring(a,a+_),w=parseFloat(p)*d,m=t.substring(a+_),M=parseFloat(m)*d),b=w+u,x=M+c,{easting:b,northing:x,zoneLetter:s,zoneNumber:o,accuracy:d}}function g(t,e){for(var n=x.charCodeAt(e-1),i=1e5,r=!1;n!==t.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>k){if(r)throw\"Bad character: \"+t;n=w,r=!0}i+=1e5}return i}function v(t,e){if(t>\"V\")throw\"MGRSPoint given invalid Northing \"+t;for(var n=_.charCodeAt(e-1),i=0,r=!1;n!==t.charCodeAt(0);){if(n++,n===M&&n++,n===S&&n++,n>E){if(r)throw\"Bad character: \"+t;n=w,r=!0}i+=1e5}return i}function y(t){var e;switch(t){case\"C\":e=11e5;break;case\"D\":e=2e6;break;case\"E\":e=28e5;break;case\"F\":e=37e5;break;case\"G\":e=46e5;break;case\"H\":e=55e5;break;case\"J\":e=64e5;break;case\"K\":e=73e5;break;case\"L\":e=82e5;break;case\"M\":e=91e5;break;case\"N\":e=0;break;case\"P\":e=8e5;break;case\"Q\":e=17e5;break;case\"R\":e=26e5;break;case\"S\":e=35e5;break;case\"T\":e=44e5;break;case\"U\":e=53e5;break;case\"V\":e=62e5;break;case\"W\":e=7e6;break;case\"X\":e=79e5;break;default:e=-1}if(e>=0)return e;throw\"Invalid zone letter: \"+t}e.c=i,e.b=a;var b=6,x=\"AJSAJS\",_=\"AFAFAF\",w=65,M=73,S=79,E=86,k=90;e.a={forward:i,inverse:r,toPoint:a}},function(t,e,n){\"use strict\";e.a=function(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}},function(t,e,n){\"use strict\";var i=.01068115234375;e.a=function(t){var e=[];e[0]=1-t*(.25+t*(.046875+t*(.01953125+t*i))),e[1]=t*(.75-t*(.046875+t*(.01953125+t*i)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}},function(t,e,n){\"use strict\";var i=n(105),r=n(7);e.a=function(t,e,a){for(var o=1/(1-e),s=t,l=20;l;--l){var u=Math.sin(s),c=1-e*u*u;if(c=(n.i(i.a)(s,u,Math.cos(s),a)-t)*(c*Math.sqrt(c))*o,s-=c,Math.abs(c)2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}},function(t,e,n){\"use strict\";function i(t){var e=this;if(2===arguments.length){var r=arguments[1];\"string\"==typeof r?\"+\"===r.charAt(0)?i[t]=n.i(a.a)(arguments[1]):i[t]=n.i(o.a)(arguments[1]):i[t]=r}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?i.apply(e,t):i(t)});if(\"string\"==typeof t){if(t in i)return i[t]}else\"EPSG\"in t?i[\"EPSG:\"+t.EPSG]=t:\"ESRI\"in t?i[\"ESRI:\"+t.ESRI]=t:\"IAU2000\"in t?i[\"IAU2000:\"+t.IAU2000]=t:console.log(t);return}}var r=n(426),a=n(152),o=n(159);n.i(r.a)(i),e.a=i},function(t,e,n){\"use strict\";var i=n(7),r=n(418),a=n(419),o=n(107);e.a=function(t){var e,s,l,u={},c=t.split(\"+\").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split(\"=\");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),h={proj:\"projName\",datum:\"datumCode\",rf:function(t){u.rf=parseFloat(t)},lat_0:function(t){u.lat0=t*i.g},lat_1:function(t){u.lat1=t*i.g},lat_2:function(t){u.lat2=t*i.g},lat_ts:function(t){u.lat_ts=t*i.g},lon_0:function(t){u.long0=t*i.g},lon_1:function(t){u.long1=t*i.g},lon_2:function(t){u.long2=t*i.g},alpha:function(t){u.alpha=parseFloat(t)*i.g},lonc:function(t){u.longc=t*i.g},x_0:function(t){u.x0=parseFloat(t)},y_0:function(t){u.y0=parseFloat(t)},k_0:function(t){u.k0=parseFloat(t)},k:function(t){u.k0=parseFloat(t)},a:function(t){u.a=parseFloat(t)},b:function(t){u.b=parseFloat(t)},r_a:function(){u.R_A=!0},zone:function(t){u.zone=parseInt(t,10)},south:function(){u.utmSouth=!0},towgs84:function(t){u.datum_params=t.split(\",\").map(function(t){return parseFloat(t)})},to_meter:function(t){u.to_meter=parseFloat(t)},units:function(t){u.units=t;var e=n.i(o.a)(a.a,t);e&&(u.to_meter=e.to_meter)},from_greenwich:function(t){u.from_greenwich=t*i.g},pm:function(t){var e=n.i(o.a)(r.a,t);u.from_greenwich=(e||parseFloat(t))*i.g},nadgrids:function(t){\"@null\"===t?u.datumCode=\"none\":u.nadgrids=t},axis:function(t){var e=\"ewnsud\";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(u.axis=t)}};for(e in c)s=c[e],e in h?(l=h[e],\"function\"==typeof l?l(s):u[l]=s):u[e]=s;return\"string\"==typeof u.datumCode&&\"WGS84\"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(t,e,n){\"use strict\";function i(){if(void 0===this.es||this.es<=0)throw new Error(\"incorrect elliptical usage\");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),i*=e,this.cgb[1]=i*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i*=e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),i*=e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(e*(-24832/14175)-2.4)),i*=e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i*=e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(.25+i*(1/64+i/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),i*=e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i*=e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i*=e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i*=e,this.utg[5]=-.03233083094085698*i,this.gtu[5]=.6650675310896665*i;var r=n.i(u.a)(this.cbg,this.lat0);this.Zb=-this.Qn*(r+n.i(c.a)(this.gtu,2*r))}function r(t){var e=n.i(d.a)(t.x-this.long0),i=t.y;i=n.i(u.a)(this.cbg,i);var r=Math.sin(i),a=Math.cos(i),o=Math.sin(e),c=Math.cos(e);i=Math.atan2(r,c*a),e=Math.atan2(o*a,n.i(s.a)(r,a*c)),e=n.i(l.a)(Math.tan(e));var f=n.i(h.a)(this.gtu,2*i,2*e);i+=f[0],e+=f[1];var p,m;return Math.abs(e)<=2.623395162778?(p=this.a*(this.Qn*e)+this.x0,m=this.a*(this.Qn*i+this.Zb)+this.y0):(p=1/0,m=1/0),t.x=p,t.y=m,t}function a(t){var e=(t.x-this.x0)*(1/this.a),i=(t.y-this.y0)*(1/this.a);i=(i-this.Zb)/this.Qn,e/=this.Qn;var r,a;if(Math.abs(e)<=2.623395162778){var l=n.i(h.a)(this.utg,2*i,2*e);i+=l[0],e+=l[1],e=Math.atan(n.i(o.a)(e));var c=Math.sin(i),f=Math.cos(i),p=Math.sin(e),m=Math.cos(e);i=Math.atan2(c*m,n.i(s.a)(p,m*f)),e=Math.atan2(p,m*f),r=n.i(d.a)(e+this.long0),a=n.i(u.a)(this.cgb,i)}else r=1/0,a=1/0;return t.x=r,t.y=a,t}var o=n(149),s=n(146),l=n(408),u=n(412),c=n(409),h=n(410),d=n(10),f=[\"Extended_Transverse_Mercator\",\"Extended Transverse Mercator\",\"etmerc\"];e.a={init:i,forward:r,inverse:a,names:f}},function(t,e,n){\"use strict\";function i(t,e){return(t.datum.datum_type===a.h||t.datum.datum_type===a.i)&&\"WGS84\"!==e.datumCode||(e.datum.datum_type===a.h||e.datum.datum_type===a.i)&&\"WGS84\"!==t.datumCode}function r(t,e,h){var d;return Array.isArray(h)&&(h=n.i(u.a)(h)),n.i(c.a)(h),t.datum&&e.datum&&i(t,e)&&(d=new l.a(\"WGS84\"),h=r(t,d,h),t=d),\"enu\"!==t.axis&&(h=n.i(s.a)(t,!1,h)),\"longlat\"===t.projName?h={x:h.x*a.g,y:h.y*a.g}:(t.to_meter&&(h={x:h.x*t.to_meter,y:h.y*t.to_meter}),h=t.inverse(h)),t.from_greenwich&&(h.x+=t.from_greenwich),h=n.i(o.a)(t.datum,e.datum,h),e.from_greenwich&&(h={x:h.x-e.from_greenwich,y:h.y}),\"longlat\"===e.projName?h={x:h.x*a.j,y:h.y*a.j}:(h=e.forward(h),e.to_meter&&(h={x:h.x/e.to_meter,y:h.y/e.to_meter})),\"enu\"!==e.axis?n.i(s.a)(e,!0,h):h}e.a=r;var a=n(7),o=n(423),s=n(405),l=n(102),u=n(150),c=n(406)},function(t,e,n){\"use strict\";function i(t){var e=0;return n.i(a.b)(t,function(t){n.i(o.b)(t)&&e++}),e}function r(t){var e=0;return n.i(a.b)(t,function(t){n.i(o.c)(t)&&e++}),e}e.a=i,e.b=r;var a=n(109),o=n(76)},function(t,e,n){\"use strict\";n(109),n(76)},function(t,e,n){\"use strict\";function i(){return\"react-tabs-\"+a++}function r(){a=0}e.b=i,e.a=r;var a=0},function(t,e,n){function i(t,e){for(var n=0;n=0&&b.splice(e,1)}function s(t){var e=document.createElement(\"style\");return t.attrs.type=\"text/css\",u(e,t.attrs),a(t,e),e}function l(t){var e=document.createElement(\"link\");return t.attrs.type=\"text/css\",t.attrs.rel=\"stylesheet\",u(e,t.attrs),a(t,e),e}function u(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function c(t,e){var n,i,r,a;if(e.transform&&t.css){if(!(a=e.transform(t.css)))return function(){};t.css=a}if(e.singleton){var u=y++;n=v||(v=s(e)),i=h.bind(null,n,u,!1),r=h.bind(null,n,u,!0)}else t.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=l(e),i=f.bind(null,n,e),r=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=d.bind(null,n),r=function(){o(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function h(t,e,n,i){var r=n?\"\":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,r);else{var a=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function d(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute(\"media\",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function f(t,e,n){var i=n.css,r=n.sourceMap,a=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||a)&&(i=x(i)),r&&(i+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+\" */\");var o=new Blob([i],{type:\"text/css\"}),s=t.href;t.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var p={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),v=null,y=0,b=[],x=n(479);t.exports=function(t,e){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");e=e||{},e.attrs=\"object\"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto=\"head\"),e.insertAt||(e.insertAt=\"bottom\");var n=r(t,e);return i(n,e),function(t){for(var a=[],o=0;o0?90:-90),t.lat_ts=t.lat1)}var o=n(487),s=n(488),l=.017453292519943295;e.a=function(t){var e=n.i(o.a)(t),i=e.shift(),r=e.shift();e.unshift([\"name\",r]),e.unshift([\"type\",i]);var l={};return n.i(s.a)(e,l),a(l),l}},function(t,e,n){t.exports=n.p+\"assets/3WNj6QfIN0cgE7u5icG0Zx.png\"},function(t,e,n){t.exports=n.p+\"assets/ZzXs2hkPaGeWT_N6FgGOx.png\"},function(t,e,n){t.exports=n.p+\"assets/13lPmuYsGizUIj_HGNYM82.png\"},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(465),x=i(b),_=n(169),w=i(_),M=n(170),S=i(M),E=n(171),k=i(E),T=n(180),C=i(T),P=n(192),O=i(P),A=n(16),R=i(A),L=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.handleDrag=n.handleDrag.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"handleDrag\",value:function(t){this.props.store.options.showPNCMonitor&&this.props.store.updateWidthInPercentage(Math.min(1,t/window.innerWidth))}},{key:\"componentWillMount\",value:function(){this.props.store.updateDimension()}},{key:\"componentDidMount\",value:function(){var t=this;R.default.initialize(),A.MAP_WS.initialize(),A.POINT_CLOUD_WS.initialize(),window.addEventListener(\"resize\",function(){t.props.store.updateDimension()})}},{key:\"render\",value:function(){var t=this.props.store,e=(t.isInitialized,t.dimension),n=(t.sceneDimension,t.options);t.hmi;return v.default.createElement(\"div\",null,v.default.createElement(w.default,null),v.default.createElement(\"div\",{className:\"pane-container\"},v.default.createElement(x.default,{split:\"vertical\",size:e.width,onChange:this.handleDrag,allowResize:n.showPNCMonitor},v.default.createElement(\"div\",{className:\"left-pane\"},v.default.createElement(O.default,null),v.default.createElement(\"div\",{className:\"dreamview-body\"},v.default.createElement(S.default,null),v.default.createElement(k.default,null))),v.default.createElement(\"div\",{className:\"right-pane\"},n.showPNCMonitor&&v.default.createElement(C.default,null)))))}}]),e}(v.default.Component))||a)||a;e.default=L},function(t,e,n){var i=n(235);\"string\"==typeof i&&(i=[[t.i,i,\"\"]]);var r={};r.transform=void 0;n(158)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}var r=n(46),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),o=n(2),s=i(o),l=n(8);n(164);var u=n(15),c=i(u),h=n(163),d=i(h);a.render(s.default.createElement(l.Provider,{store:c.default},s.default.createElement(d.default,null)),document.getElementById(\"root\"))},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(16),x=i(b),_=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={event_msg:\"\"},n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"handleChange\",value:function(t){this.setState({event_msg:t.target.value})}},{key:\"handleSubmit\",value:function(){var t=this.props,e=t.event_time_ms,n=t.hide_func;x.default.submitDriveEvent(e,this.state.event_msg),n()}},{key:\"render\",value:function(){var t=this.props,e=t.event_time_ms,n=t.hide_func;return v.default.createElement(\"div\",{className:\"card drive-event-card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Adding New DriveEvent\")),v.default.createElement(\"div\",{className:\"card-content-column\"},v.default.createElement(\"table\",null,v.default.createElement(\"tbody\",null,v.default.createElement(\"tr\",null,v.default.createElement(\"td\",null,\"Event time\"),v.default.createElement(\"td\",null,e)),v.default.createElement(\"tr\",null,v.default.createElement(\"td\",null,\"Message\"),v.default.createElement(\"td\",null,v.default.createElement(\"input\",{type:\"text\",className:\"drive-event-msg\",value:this.state.event_msg,onChange:this.handleChange}))))),v.default.createElement(\"table\",{className:\"toolbar\"},v.default.createElement(\"tbody\",null,v.default.createElement(\"tr\",null,v.default.createElement(\"td\",null,v.default.createElement(\"button\",{onClick:n},\"Cancel\")),v.default.createElement(\"td\",null,v.default.createElement(\"button\",{onClick:this.handleSubmit},\"Submit\")))))))}}]),e}(v.default.Component),w=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={newDriveEventTimeMs:0,showDriveEvent:!1},n.handleNewDriveEvent=n.handleNewDriveEvent.bind(n),n.hideDriveEventEditor=n.hideDriveEventEditor.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"handleNewDriveEvent\",value:function(){this.setState({newDriveEventTimeMs:(new Date).getTime(),showDriveEvent:!0})}},{key:\"hideDriveEventEditor\",value:function(){this.setState({showDriveEvent:!1})}},{key:\"render\",value:function(){return v.default.createElement(\"div\",{className:\"data-recorder\"},v.default.createElement(\"div\",{className:\"card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Operations\")),v.default.createElement(\"div\",{className:\"card-content-column\"},v.default.createElement(\"button\",{onClick:this.handleNewDriveEvent},\"New DriveEvent\"))),this.state.showDriveEvent&&v.default.createElement(_,{event_time_ms:this.state.newDriveEventTimeMs,hide_func:this.hideDriveEventEditor}))}}]),e}(v.default.Component))||a)||a;e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(32),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(28),w=(i(_),n(168)),M=i(w),S=n(16),E=i(S),k=(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store.hmi,n=e.modes,i=e.currentMode,r=e.maps,a=e.currentMap,o=e.vehicles,l=e.currentVehicle;return b.default.createElement(\"div\",{className:\"header\"},b.default.createElement(M.default,{name:\"setup mode\",options:(0,s.default)(n).sort(),currentOption:i,onChange:function(e){t.props.store.hmi.currentMode=e.target.value,E.default.changeSetupMode(e.target.value)}}),b.default.createElement(M.default,{name:\"vehicle\",options:o,currentOption:l,onChange:function(t){E.default.changeVehicle(t.target.value)}}),b.default.createElement(M.default,{name:\"map\",options:r,currentOption:a,onChange:function(t){E.default.changeMap(t.target.value)}}))}}]),e}(b.default.Component))||a)||a;e.default=k},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(16),v=(i(g),function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={name:t.name,value:t.currentOption},n.onChangeHandler=n.onChangeHandler.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"onChangeHandler\",value:function(t){this.setState({value:t.target.value}),this.props.onChange(t)}},{key:\"componentWillReceiveProps\",value:function(t){t.currentOption!==this.props.currentOption&&this.setState({value:t.currentOption})}},{key:\"render\",value:function(){var t=this.props;t.name,t.options,t.currentOption,t.onChange;return this.entries=this.props.options.map(function(t){return m.default.createElement(\"option\",{value:t,key:t},t)}),this.entries.unshift(m.default.createElement(\"option\",{key:\"none\",value:\"none\",disabled:!0},\"-- \"+this.state.name+\" --\")),m.default.createElement(\"div\",{className:\"selector\"},m.default.createElement(\"span\",{className:\"arrow\"}),m.default.createElement(\"select\",{onChange:this.onChangeHandler,value:this.state.value},this.entries))}}]),e}(m.default.Component));e.default=v},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(205),v=i(g),y=n(162),b=i(y),x=n(167),_=i(x),w=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){return m.default.createElement(\"header\",{className:\"header\"},m.default.createElement(v.default,{image:b.default,className:\"apollo-logo\"}),m.default.createElement(_.default,null))}}]),e}(m.default.Component);e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o,s,l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(177),w=i(_),M=n(185),S=i(M),E=n(199),k=i(E),T=n(187),C=i(T),P=n(206),O=i(P),A=n(183),R=(i(A),function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){return b.default.createElement(\"div\",{className:\"video\"},b.default.createElement(\"img\",{src:\"/image\"}))}}]),e}(b.default.Component)),L=(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this.props.store,e=t.sceneDimension,n=t.meters,i=t.monitor,r=t.options,a=t.trafficSignal,o=(t.video,t.hmi);return b.default.createElement(\"div\",{className:\"main-view\",style:{height:e.height}},b.default.createElement(C.default,{width:e.width,height:e.height,options:r,invisible:!1}),r.showRouteEditingBar?b.default.createElement(S.default,null):b.default.createElement(k.default,{meters:n,trafficSignal:a,showNotification:!r.showTasks,monitor:i}),r.showVideo&&b.default.createElement(R,null),!1,o.inNavigationMode&&b.default.createElement(w.default,{viewHeight:e.height,viewWidth:e.width}))}}]),e}(b.default.Component))||a)||a,I=(o=(0,x.inject)(\"store\"))(s=(0,x.observer)(s=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this.props.store,e=t.isInitialized,n=t.sceneDimension;return e?b.default.createElement(L,null):b.default.createElement(O.default,{height:n.height})}}]),e}(b.default.Component))||s)||s;e.default=I},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(166),x=i(b),_=n(173),w=i(_),M=n(189),S=i(M),E=n(190),k=i(E),T=n(204),C=i(T),P=n(58),O=(i(P),(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props.store,e=t.options,n=t.routeEditingManager,i=t.hmi;return v.default.createElement(\"div\",{className:\"tools\"},e.showTasks&&v.default.createElement(C.default,null),e.showModuleController&&v.default.createElement(w.default,null),e.showMenu&&v.default.createElement(S.default,{options:e}),e.showPOI&&v.default.createElement(k.default,{routeEditingManager:n,options:e,inNavigationMode:i.inNavigationMode}),e.showDataRecorder&&v.default.createElement(x.default,null))}}]),e}(v.default.Component))||a)||a);e.default=O},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y={OK:\"#1C9063\",NOT_READY:\"#B43131\",NOT_PRESENT:\"#B43131\",ERR:\"#B43131\",UNDEF:\"#B43131\"},b=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.title,n=t.status;return g.default.createElement(\"div\",{className:\"status-display\"},g.default.createElement(\"div\",{className:\"name\"},e),g.default.createElement(\"div\",{className:\"status\"},g.default.createElement(\"span\",null,n.replace(\"_\",\" \")),g.default.createElement(\"span\",{className:\"status-icon\",style:{backgroundColor:y[n]}})))}}]),e}(g.default.Component))||r;e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(237),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(114),w=i(_),M=n(172),S=i(M),E=n(16),k=(i(E),(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store.hmi,n=e.modes,i=e.currentMode,r=e.moduleStatus,a=e.hardwareStatus,o=e.displayName,l=\"none\"!==i?n[i].liveModules:(0,s.default)(r.keys()),u=\"none\"!==i?n[i].liveHardware:(0,s.default)(a.keys()),c=l.sort().map(function(e){return b.default.createElement(w.default,{key:e,id:e,title:o[e],disabled:!1,isChecked:r.get(e),onClick:function(){t.props.store.hmi.toggleModule(e)},extraClasses:\"controller\"})}),h=u.map(function(t){return b.default.createElement(S.default,{key:t,title:o[t],status:a.get(t)})});return b.default.createElement(\"div\",{className:\"module-controller\"},b.default.createElement(\"div\",{className:\"card\"},b.default.createElement(\"div\",{className:\"card-header\"},b.default.createElement(\"span\",null,\"Hardware\")),b.default.createElement(\"div\",{className:\"card-content-column\"},h)),b.default.createElement(\"div\",{className:\"card\"},b.default.createElement(\"div\",{className:\"card-header\"},b.default.createElement(\"span\",null,\"Modules\")),b.default.createElement(\"div\",{className:\"card-content-row\"},c)))}}]),e}(b.default.Component))||a)||a);e.default=k},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(5),s=i(o),l=n(4),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=function(){function t(){(0,h.default)(this,t),this.map=null,this.controls=[]}return(0,f.default)(t,[{key:\"isInitialized\",value:function(){return null!==this.map}},{key:\"loadMap\",value:function(t,e){this.map=new BMap.Map(e,{enableMapClick:!1}),this.map.centerAndZoom(t,19),this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.MapTypeControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_SMALL})),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL,enableGeolocation:!1}))}},{key:\"setCenter\",value:function(t){this.map.setCenter(t)}},{key:\"setZoom\",value:function(t){this.map.setZoom(t)}},{key:\"addEventHandler\",value:function(t,e){this.map.addEventListener(t,function(t){var n=t.point;e(n)})}},{key:\"createPoint\",value:function(t){var e=t.lat,n=t.lng;return new BMap.Point(n,e)}},{key:\"createMarker\",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=null;e&&(i=new BMap.Label(e,{point:t,offset:new BMap.Size(15,-15)}));var r=new BMap.Marker(t,{label:i,enableDragging:n,rotation:5});return r.setLabel(i),this.map.addOverlay(r),r}},{key:\"createPolyline\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,r={geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:i},a=new BMap.Polyline(t,r);return this.map.addOverlay(a),a}},{key:\"createControl\",value:function(t){var e=t.text,n=t.tip,i=t.color,r=t.offsetX,a=t.offsetY,o=t.onClickHandler,s=new m(e,n,i,new BMap.Size(r,a),o);this.map.addControl(s),this.controls.push(s)}},{key:\"disableControls\",value:function(){var t=this;this.controls.forEach(function(e){t.map.removeControl(e)})}},{key:\"enableControls\",value:function(){var t=this;this.controls.forEach(function(e){t.map.addControl(e)})}},{key:\"getMarkerPosition\",value:function(t){return t.getPosition()}},{key:\"updatePolyline\",value:function(t,e){t.setPath(e)}},{key:\"removePolyline\",value:function(t){this.map.removeOverlay(t)}}]),t}();e.default=p;var m=function(t){function e(t,n,i,r,o){var l;(0,h.default)(this,e);for(var u=arguments.length,c=Array(u>5?u-5:0),d=5;d2&&void 0!==arguments[2])||arguments[2];return new google.maps.Marker({position:t,label:e,draggable:n,map:this.map})}},{key:\"createPolyline\",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return new google.maps.Polyline({path:t,geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:i,map:this.map})}},{key:\"createControl\",value:function(t){var e=t.text,n=t.tip,i=t.color,r=(t.offsetX,t.offsetY,t.onClickHandler),a=document.createElement(\"div\"),o=document.createElement(\"div\");o.style.backgroundColor=i,o.style.border=\"2px solid #fff\",o.style.borderRadius=\"3px\",o.style.boxShadow=\"0 2px 6px rgba(0,0,0,.3)\",o.style.cursor=\"pointer\",o.style.marginBottom=\"22px\",o.style.textAlign=\"center\",o.title=n,a.appendChild(o);var s=document.createElement(\"div\");s.style.color=\"rgb(25,25,25)\",s.style.fontFamily=\"Roboto,Arial,sans-serif\",s.style.fontSize=\"16px\",s.style.lineHeight=\"38px\",s.style.paddingLeft=\"5px\",s.style.paddingRight=\"5px\",s.innerHTML=e,o.appendChild(s),o.addEventListener(\"click\",function(){r(s)}),this.map.controls[google.maps.ControlPosition.TOP_CENTER].push(a),this.controls.push(a)}},{key:\"disableControls\",value:function(){this.controls.forEach(function(t){t.style.display=\"none\"})}},{key:\"enableControls\",value:function(){this.controls.forEach(function(t){t.style.display=\"block\"})}},{key:\"getMarkerPosition\",value:function(t){var e=t.getPosition();return{lat:e.lat(),lng:e.lng()}}},{key:\"updatePolyline\",value:function(t,e){t.setPath(e)}},{key:\"removePolyline\",value:function(t){t.setMap(null)}}]),t}();e.default=l},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"getMaximizingIcon\",value:function(){return m.default.createElement(\"svg\",{viewBox:\"0 0 20 20\"},m.default.createElement(\"defs\",null,m.default.createElement(\"path\",{d:\"M20 0L0 20h20V0z\",id:\"a\"}),m.default.createElement(\"path\",{d:\"M11.53 18.5l-.03-7h7\",id:\"b\"}),m.default.createElement(\"path\",{d:\"M12 12l7 7\",id:\"c\"})),m.default.createElement(\"use\",{xlinkHref:\"#a\",opacity:\".6\",fill:\"#549BFF\"}),m.default.createElement(\"use\",{xlinkHref:\"#b\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}),m.default.createElement(\"use\",{xlinkHref:\"#c\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}))}},{key:\"getMinimizingIcon\",value:function(){return m.default.createElement(\"svg\",{viewBox:\"0 0 20 20\"},m.default.createElement(\"defs\",null,m.default.createElement(\"path\",{d:\"M20 0L0 20h20V0z\",id:\"a\"}),m.default.createElement(\"path\",{d:\"M18.47 11.5l.03 7h-7\",id:\"b\"}),m.default.createElement(\"path\",{d:\"M11 11l7 7\",id:\"c\"})),m.default.createElement(\"use\",{xlinkHref:\"#a\",opacity:\".6\",fill:\"#549BFF\"}),m.default.createElement(\"use\",{xlinkHref:\"#b\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}),m.default.createElement(\"use\",{xlinkHref:\"#c\",fillOpacity:\"0\",stroke:\"#006AFF\",strokeWidth:\"2\"}))}},{key:\"render\",value:function(){var t=this.props,e=t.type,n=t.onClick,i=null;switch(e){case\"minimizing\":i=this.getMinimizingIcon();break;case\"maximizing\":i=this.getMaximizingIcon()}return m.default.createElement(\"div\",{className:\"window-resize-control\",onClick:n},i)}}]),e}(m.default.PureComponent);e.default=g},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(28),v=i(g),y=n(176),b=i(y),x=n(58),_=i(x),w=n(174),M=i(w),S=n(175),E=i(S),k=n(16),T=i(k),C=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={routingView:!1},n.onClickHandler=n.onClickHandler.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"onClickHandler\",value:function(){var t=!this.state.routingView;t?_.default.enableControls():_.default.disableControls(),this.setState({routingView:t})}},{key:\"componentDidMount\",value:function(){var t=\"GoogleMap\"===v.default.navigation.map?new E.default:new M.default;_.default.initialize(T.default,t),_.default.disableControls()}},{key:\"componentWillUnmount\",value:function(){_.default.reset()}},{key:\"render\",value:function(){var t=this.props,e=t.viewHeight,n=t.viewWidth,i=0,r=0,a=n,o=e,s=\"maximizing\";return this.state.routingView||(i=10,r=20,a=Math.min(.3*n,250),o=Math.min(.5*e,300),s=\"minimizing\"),m.default.createElement(\"div\",{displayname:\"navigation\",className:\"navigation-view\",style:{width:a,height:o,top:i,left:r}},m.default.createElement(\"div\",{id:\"map_canvas\"}),m.default.createElement(b.default,{type:s,onClick:this.onClickHandler}))}}]),e}(m.default.Component);e.default=C},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(541),x=i(b),_=n(113),w=i(_),M=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"generateScatterGraph\",value:function(t,e){return void 0===x.default[t]?(console.error(\"Graph setting not found: \",t),null):v.default.createElement(w.default,{title:x.default[t].title,options:x.default[t].options,properties:x.default[t].properties,data:e})}},{key:\"render\",value:function(){var t=this.props.store.controlData,e=t.lastUpdatedTime,n=t.data;return e?v.default.createElement(\"div\",null,this.generateScatterGraph(\"trajectoryGraph\",n.trajectoryGraph),this.generateScatterGraph(\"speedGraph\",n.speedGraph),this.generateScatterGraph(\"accelerationGraph\",n.accelerationGraph),this.generateScatterGraph(\"curvatureGraph\",n.curvatureGraph),this.generateScatterGraph(\"stationErrorGraph\",n.stationErrorGraph)):null}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(40),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(542),w=i(_),M=n(113),S=i(M),E=(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"generateStGraph\",value:function(t){var e=[],n=[\"DpStSpeedOptimizer\",\"QpSplineStSpeedOptimizer\"],i=!0,r=!1,a=void 0;try{for(var o,l=(0,s.default)(n);!(i=(o=l.next()).done);i=!0){var u=o.value,c=t[u],h=c?c.obstaclesBoundary:[];e.push(b.default.createElement(S.default,{key:\"stGraph_\"+u,title:u,options:w.default.stGraph.options,properties:w.default.stGraph.properties,data:c,boxes:h}))}}catch(t){r=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}return e}},{key:\"generateScatterGraph\",value:function(t,e){return void 0===w.default[t]?(console.error(\"Graph setting not found: \",t),null):b.default.createElement(S.default,{title:w.default[t].title,options:w.default[t].options,properties:w.default[t].properties,data:e})}},{key:\"render\",value:function(){var t=this.props.store.planningData,e=t.planningTime,n=t.data,i=t.latencyGraph;return e?b.default.createElement(\"div\",null,this.generateScatterGraph(\"speedGraph\",n.speedGraph),this.generateScatterGraph(\"accelerationGraph\",n.accelerationGraph),this.generateScatterGraph(\"thetaGraph\",n.thetaGraph),this.generateScatterGraph(\"kappaGraph\",n.kappaGraph),this.generateScatterGraph(\"dpPolyGraph\",n.dpPolyGraph),this.generateStGraph(n.stGraph),this.generateScatterGraph(\"stSpeedGraph\",n.stSpeedGraph.QpSplineStSpeedOptimizer),this.generateScatterGraph(\"latencyGraph\",i),this.generateScatterGraph(\"dkappaGraph\",n.dkappaGraph)):null}}]),e}(b.default.Component))||a)||a;e.default=E},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(475),v=n(179),y=i(v),b=n(178),x=i(b),_=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){return m.default.createElement(\"div\",{className:\"pnc-monitor\"},m.default.createElement(g.Tabs,null,m.default.createElement(g.TabList,null,m.default.createElement(g.Tab,null,\"Planning\"),m.default.createElement(g.Tab,null,\"Control\")),m.default.createElement(g.TabPanel,null,m.default.createElement(y.default,null)),m.default.createElement(g.TabPanel,null,m.default.createElement(x.default,null))))}}]),e}(m.default.Component);e.default=_},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 10 10\",onClick:t},m.default.createElement(\"polygon\",{className:\"play\",points:\"0 0, 10 5, 0 10\"}))}}]),e}(m.default.Component),b=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 100 100\",onClick:t},m.default.createElement(\"path\",{className:\"replay\",d:\"M0.166,49.438C0.166,75.152,20.744,96,46.125,96 c12.096,0,23.1-4.731,31.306-12.469 c2.144-2.021-8.776-12.227-10.269-10.84 c-5.54,5.146-12.926,8.286-21.037,8.286 c-17.193,0-31.133-14.122-31.133-31.544s13.939-31.545,31.133-31.545 c17.197,0,31.135,11.108,31.135,28.5 c0,0.007,0.021,0.062,0.049,0.069 L75.778,48c-3.484,0-5.931,0-5.931,0l14.826,18.023 L99.5,48 c0,0-2.447,0-5.931,0l-1.531-1.514 c0.017-0.006,0.05-0.015,0.05-0.021 c0-25.716-20.578-43.574-45.963-43.574 C20.744,2.891,0.166,23.723,0.166,49.438 z M78.743,44.933 l0.115,0.023l-0.089,0.086 C78.754,44.977,78.743,44.933,78.743,44.933 z\"}))}}]),e}(m.default.Component),x=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 20 20\",onClick:t},m.default.createElement(\"polygon\",{className:\"pause\",points:\"4 0, 6 0, 6 20, 4 20\"}),m.default.createElement(\"polygon\",{className:\"pause\",points:\"13 0, 15 0, 15 20, 13 20\"}))}}]),e}(m.default.Component),_=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 70 70\"},m.default.createElement(\"path\",{className:\"fullscreen\",d:\"M0 25 V0 H25 M0 45 V70 H25 M45 0 H70 V25 M45 70 H70 V45\"}))}}]),e}(m.default.Component),w=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){this.props.onClick;return m.default.createElement(\"svg\",{className:\"icon\",viewBox:\"0 0 70 70\"},m.default.createElement(\"path\",{className:\"exit-fullscreen\",d:\"M0 25 H25 V0 M0 45 H25 V70 M45 0 V25 H70 M45 70 V45 H70\"}))}}]),e}(m.default.Component),M=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.type,n=t.onClick,i=t.extraClasses,r=null;switch(e){case\"replay\":r=m.default.createElement(b,null);break;case\"pause\":r=m.default.createElement(x,null);break;case\"play\":r=m.default.createElement(y,null);break;case\"fullscreen\":r=m.default.createElement(_,null);break;case\"normalscreen\":r=m.default.createElement(w,null)}return m.default.createElement(\"div\",{className:(0,v.default)(i),onClick:n},r)}}]),e}(m.default.Component);e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(463),v=i(g),y=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={frame:-1},n.updatingSeekingTime=!1,n.handleSliderChange=n.handleSliderChange.bind(n),n.handleSliderChangeComplete=n.handleSliderChangeComplete.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"getTimeFromFrame\",value:function(t,e){return(Math.max(0,e-1)/t).toFixed(1)}},{key:\"handleSliderChange\",value:function(t){this.setState({frame:t}),this.updatingSeekingTime=!0}},{key:\"handleSliderChangeComplete\",value:function(){this.props.handleFrameSeek(this.state.frame),this.updatingSeekingTime=!1}},{key:\"componentWillReceiveProps\",value:function(t){this.updatingSeekingTime||t.isSeeking||this.setState({frame:t.currentFrame})}},{key:\"render\",value:function(){var t=this.props,e=t.numFrames,n=t.currentFrame,i=t.fps,r=(t.isSeeking,t.handleFrameSeek,this.getTimeFromFrame(i,e)),a=this.getTimeFromFrame(i,n);return m.default.createElement(\"div\",{className:\"time-controls\"},m.default.createElement(v.default,{tooltip:!1,min:1,max:e,value:this.state.frame,onChange:this.handleSliderChange,onChangeComplete:this.handleSliderChangeComplete}),m.default.createElement(\"div\",{className:\"time-display\"},a+\" / \"+r+\" s\"))}}]),e}(m.default.Component);e.default=y},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(181),x=i(b),_=n(182),w=i(_),M=n(16),S=i(M),E=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(t){(0,u.default)(this,e);var n=(0,f.default)(this,(e.__proto__||(0,s.default)(e)).call(this,t));return n.state={rate:1,isPlaying:!1,nextScreenMode:\"normalscreen\"},n.nextAction=\"play\",n.handleRateChange=n.handleRateChange.bind(n),n.handleFrameSeek=n.handleFrameSeek.bind(n),n.handleActionChange=n.handleActionChange.bind(n),n.handleScreenModeChange=n.handleScreenModeChange.bind(n),n}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"handleRateChange\",value:function(t){var e=this.props.store.playback,n=parseFloat(t.target.value);this.setState({rate:n}),e.setPlayRate(n),this.state.isPlaying&&S.default.startPlayback(e.msPerFrame)}},{key:\"handleActionChange\",value:function(){var t=this.props.store.playback,e=!this.state.isPlaying;switch(t.setPlayAction(e),this.setState({isPlaying:e}),this.nextAction){case\"play\":S.default.startPlayback(t.msPerFrame);break;case\"pause\":S.default.pausePlayback();break;case\"replay\":t.resetFrame(),S.default.startPlayback(t.msPerFrame)}}},{key:\"handleScreenModeChange\",value:function(){var t=this.props.store.options;switch(this.state.nextScreenMode){case\"fullscreen\":t.showMenu=!1,this.setState({nextScreenMode:\"normalscreen\"});break;case\"normalscreen\":t.showMenu=!0,this.setState({nextScreenMode:\"fullscreen\"})}}},{key:\"handleFrameSeek\",value:function(t){var e=this.props.store.playback;e.seekFrame(t),this.state.isPlaying?S.default.requestTimer||S.default.startPlayback(e.msPerFrame):S.default.requestSimulationWorld(e.jobId,t)}},{key:\"componentWillUpdate\",value:function(t,e){var n=this.props.store.playback;n.replayComplete&&this.state.isPlaying&&(n.setPlayAction(!1),this.setState({isPlaying:!1})),n.replayComplete&&!n.isSeeking?this.nextAction=\"replay\":e.isPlaying?this.nextAction=\"pause\":this.nextAction=\"play\"}},{key:\"render\",value:function(){var t=this.props.store.playback;return v.default.createElement(\"div\",{className:\"playback-controls\"},v.default.createElement(x.default,{extraClasses:\"left-controls\",onClick:this.handleActionChange,type:this.nextAction}),v.default.createElement(\"div\",{className:\"rate-selector\"},v.default.createElement(\"select\",{onChange:this.handleRateChange,value:this.state.rate},v.default.createElement(\"option\",{value:.25},\"x 0.25\"),v.default.createElement(\"option\",{value:.5},\"x 0.5\"),v.default.createElement(\"option\",{value:1},\"x 1.0\"),v.default.createElement(\"option\",{value:2},\"x 2.0\")),v.default.createElement(\"span\",{className:\"arrow\"})),v.default.createElement(w.default,{numFrames:t.numFrames,currentFrame:t.currentFrame,fps:t.FPS,isSeeking:t.isSeeking,handleFrameSeek:this.handleFrameSeek}),v.default.createElement(x.default,{extraClasses:\"right-controls\",onClick:this.handleScreenModeChange,type:this.state.nextScreenMode}))}}]),e}(v.default.Component))||a)||a;e.default=E},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(46),v=i(g),y=n(13),b=i(y),x=n(517),_=i(x),w=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={active:!1,hover:!1},n.toggle=n.toggle.bind(n),n.handleMouseIn=n.handleMouseIn.bind(n),n.handleMouseOut=n.handleMouseOut.bind(n),n.text=\"For Desktop device:\\n • To zoom the map: use mouse wheel\\n • To move around the map: right-click and drag your mouse,\\n or use arrow keys\\n • To add a routing point: left-click mouse\\n\\nFor Mobile device:\\n • To zoom the map: pinch the screen with two fingers\\n • To move around the map: swipe with three fingers\\n • To add a routing point: tap with one finger\",n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"toggle\",value:function(){v.default.findDOMNode(this);this.setState({active:!this.state.active})}},{key:\"handleMouseIn\",value:function(){this.setState({hover:!0})}},{key:\"handleMouseOut\",value:function(){this.setState({hover:!1})}},{key:\"render\",value:function(){var t={display:this.state.active?\"block\":\"none\"};return m.default.createElement(\"button\",{className:(0,b.default)({\"editing-tip\":!0,button:!0,active:this.state.active||this.state.hover}),onClick:this.toggle,onMouseOver:this.handleMouseIn,onMouseOut:this.handleMouseOut},m.default.createElement(\"img\",{src:_.default}),m.default.createElement(\"p\",{style:t},this.text))}}]),e}(m.default.Component);e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(184),x=i(b),_=n(529),w=i(_),M=n(530),S=i(M),E=n(531),k=i(E),T=n(527),C=i(T),P=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.label,n=t.icon,i=t.onClick;return v.default.createElement(\"button\",{onClick:i,className:\"button\"},v.default.createElement(\"img\",{src:n}),v.default.createElement(\"span\",null,e))}}]),e}(v.default.Component),O=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store,n=e.routeEditingManager,i=e.options;return v.default.createElement(\"div\",{className:\"route-editing-bar\"},v.default.createElement(\"div\",{className:\"editing-panel\"},v.default.createElement(P,{label:\"Add Point of Interest\",icon:C.default,onClick:function(){t.props.store.handleOptionToggle(\"showPOI\")}}),v.default.createElement(P,{label:\"Remove Last Point\",icon:S.default,onClick:function(){n.removeLastRoutingPoint()}}),v.default.createElement(P,{label:\"Remove All Points\",icon:w.default,onClick:function(){n.removeAllRoutingPoints()}}),v.default.createElement(P,{label:\"Send Routing Request\",icon:k.default,onClick:function(){n.sendRoutingRequest(!1)&&(i.showRouteEditingBar=!1)}}),v.default.createElement(x.default,null)))}}]),e}(v.default.Component))||a)||a;e.default=O},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props.store.geolocation,e=t.x?t.x.toFixed(2):\"?\",n=t.y?t.y.toFixed(2):\"?\";return v.default.createElement(\"div\",{className:\"geolocation\"},\"( \",e,\", \",n,\" )\")}}]),e}(v.default.Component))||a)||a;e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),x=i(b),_=n(186),w=i(_),M=n(35),S=i(M),E=n(15),k=i(E),T=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"componentDidMount\",value:function(){S.default.initialize(\"canvas\",this.props.width,this.props.height,this.props.options)}},{key:\"componentWillUpdate\",value:function(t){S.default.updateDimension(t.width,t.height)}},{key:\"render\",value:function(){var t=this.props,e=t.invisible,n=t.options;return v.default.createElement(\"div\",{id:\"canvas\",className:(0,x.default)({\"dreamview-canvas\":!0,hidden:e}),onMouseMove:function(t){var e=S.default.getGeolocation(t);k.default.setGeolocation(e)}},n.showGeo&&v.default.createElement(w.default,null))}}]),e}(v.default.Component))||a)||a;e.default=T},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=(n(8),n(13)),v=i(g),y=n(536),b=i(y),x=n(534),_=i(x),w=n(533),M=i(w),S=n(535),E=i(S),k=n(532),T=i(k),C=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.disabled,n=t.onClick,i=t.active,r=t.label,a=t.extraClasses,o=t.iconSrc;return m.default.createElement(\"button\",{onClick:n,disabled:e,className:(0,v.default)({button:!0,\"button-active\":i},a)},m.default.createElement(\"img\",{src:o,className:\"icon\"}),m.default.createElement(\"div\",{className:\"label\"},r))}}]),e}(m.default.PureComponent),P=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.enableHMIButtonsOnly,n=t.inNavigationMode,i=t.onTasks,r=t.showTasks,a=t.onModuleController,o=t.showModuleController,s=t.onMenu,l=t.showMenu,u=t.onRouteEditingBar,c=t.showRouteEditingBar,h=t.onDataRecorder,d=t.showDataRecorder;return m.default.createElement(\"div\",{className:\"main-panel\"},m.default.createElement(C,{label:\"Tasks\",disabled:!1,iconSrc:b.default,onClick:i,active:r}),m.default.createElement(C,{label:\"Module Controller\",disabled:!1,iconSrc:_.default,onClick:a,active:o}),m.default.createElement(C,{label:\"Layer Menu\",disabled:e,iconSrc:M.default,onClick:s,active:l}),m.default.createElement(C,{label:\"Route Editing\",disabled:e||n,iconSrc:E.default,onClick:u,active:c}),m.default.createElement(C,{label:\"Data Recorder\",disabled:e,iconSrc:T.default,onClick:h,active:d}))}}]),e}(m.default.PureComponent);e.default=P},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o,s=n(32),l=i(s),u=n(3),c=i(u),h=n(0),d=i(h),f=n(1),p=i(f),m=n(5),g=i(m),v=n(4),y=i(v),b=n(2),x=i(b),_=n(8),w=n(13),M=(i(w),n(115)),S=i(M),E=n(220),k=i(E),T=n(521),C=i(T),P=n(525),O=i(P),A=n(526),R=i(A),L=n(519),I=i(L),D=n(522),N=i(D),z=n(523),B=i(z),F=n(524),U=i(F),j=n(520),W=i(j),G=n(16),V={perception:C.default,prediction:O.default,routing:R.default,decision:I.default,planning:N.default,camera:B.default,position:U.default,map:W.default},H={perceptionPointCloud:\"showPointCloud\",perceptionVehicle:\"showObstaclesVehicle\",perceptionPedestrian:\"showObstaclesPedestrian\",perceptionBicycle:\"showObstaclesBicycle\",perceptionUnknownMovable:\"showObstaclesUnknownMovable\",perceptionUnknownUnmovable:\"showObstaclesUnknownUnmovable\",perceptionUnknown:\"showObstaclesUnknown\",perceptionVirtual:\"showObstaclesVirtual\",perceptionVelocity:\"showObstaclesVelocity\",perceptionHeading:\"showObstaclesHeading\",perceptionId:\"showObstaclesId\",predictionMajor:\"showPredictionMajor\",predictionMinor:\"showPredictionMinor\",routing:\"showRouting\",decisionMain:\"showDecisionMain\",decisionObstacle:\"showDecisionObstacle\",planningCar:\"showPlanningCar\",planningReference:\"showPlanningReference\",planningDpOptimizer:\"showPlanningDpOptimizer\",planningQpOptimizer:\"showPlanningQpOptimizer\",planningLine:\"showPlanning\",positionLocalization:\"showPositionLocalization\",positionGps:\"showPositionGps\",mapCrosswalk:\"showMapCrosswalk\",mapClearArea:\"showMapClearArea\",mapJunction:\"showMapJunction\",mapLane:\"showMapLane\",mapRoad:\"showMapRoad\",mapSignal:\"showMapSignal\",mapStopSign:\"showMapStopSign\"},q=(0,_.observer)(r=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.id,n=t.title,i=t.options;return x.default.createElement(\"ul\",null,x.default.createElement(\"li\",{id:e,onClick:function(){i.toggle(H[e]),\"perceptionPointCloud\"===e&&G.POINT_CLOUD_WS.togglePointCloud(i.showPointCloud)}},x.default.createElement(\"div\",{className:\"switch\"},x.default.createElement(\"input\",{type:\"checkbox\",name:e,className:\"toggle-switch\",id:e,checked:i[H[e]],readOnly:!0}),x.default.createElement(\"label\",{className:\"toggle-switch-label\",htmlFor:e})),x.default.createElement(\"span\",null,n)))}}]),e}(x.default.Component))||r,Y=(0,_.observer)(a=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.tabId,n=t.tabTitle,i=t.tabType,r=t.data,a=t.options,o=null;return\"checkbox\"===i?o=(0,l.default)(r).map(function(t){var e=r[t];return a.hideOptionToggle[t]?null:x.default.createElement(q,{key:t,id:t,title:e,options:a})}):\"radio\"===i&&(o=(0,l.default)(r).map(function(t){var n=r[t];return a.hideOptionToggle[t]?null:x.default.createElement(S.default,{key:e+\"_\"+t,id:e,onClick:function(){a.selectCamera(n)},checked:a.cameraAngle===n,title:n,options:a})})),x.default.createElement(\"div\",{className:\"card\"},x.default.createElement(\"div\",{className:\"card-header summary\"},x.default.createElement(\"span\",null,x.default.createElement(\"img\",{src:V[e]}),n)),x.default.createElement(\"div\",{className:\"card-content-column\"},o))}}]),e}(x.default.Component))||a,X=(0,_.observer)(o=function(t){function e(){return(0,d.default)(this,e),(0,g.default)(this,(e.__proto__||(0,c.default)(e)).apply(this,arguments))}return(0,y.default)(e,t),(0,p.default)(e,[{key:\"render\",value:function(){var t=this.props.options,e=(0,l.default)(k.default).map(function(e){var n=k.default[e];return x.default.createElement(Y,{key:n.id,tabId:n.id,tabTitle:n.title,tabType:n.type,data:n.data,options:t})});return x.default.createElement(\"div\",{className:\"tool-view-menu\",id:\"layer-menu\"},e)}}]),e}(x.default.Component))||o;e.default=X},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(32),o=i(a),s=n(3),l=i(s),u=n(0),c=i(u),h=n(1),d=i(h),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),x=n(13),_=(i(x),n(115)),w=i(_),M=(0,b.observer)(r=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.routeEditingManager,n=t.options,i=t.inNavigationMode,r=(0,o.default)(e.defaultRoutingEndPoint).map(function(t){return y.default.createElement(w.default,{extraClasses:[\"poi-button\"],key:\"poi_\"+t,id:\"poi\",title:t,onClick:function(){e.addDefaultEndPoint(t,i),n.showRouteEditingBar||e.sendRoutingRequest(i),n.showPOI=!1},checked:!1})});return y.default.createElement(\"div\",{className:\"tool-view-menu\",id:\"poi-list\"},y.default.createElement(\"div\",{className:\"card\"},y.default.createElement(\"div\",{className:\"card-header\"},y.default.createElement(\"span\",null,\"Point of Interest\")),y.default.createElement(\"div\",{className:\"card-content-row\"},r)))}}]),e}(y.default.Component))||r;e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=(n(8),n(13)),v=i(g),y=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.disabled,n=t.onClick,i=t.active,r=t.label,a=t.extraClasses;t.iconSrc;return m.default.createElement(\"button\",{onClick:n,disabled:e,className:(0,v.default)({\"sub-button\":!0,\"sub-button-active\":i},a)},m.default.createElement(\"div\",{className:\"label\"},r))}}]),e}(m.default.Component),b=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.enablePOI,n=t.onPOI,i=t.showPOI;return m.default.createElement(\"div\",null,m.default.createElement(y,{label:\"Default Routing\",disabled:!e,onClick:n,active:i}))}}]),e}(m.default.Component);e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(188),x=i(b),_=n(191),w=i(_),M=n(16),S=(i(M),(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store,n=e.options,i=e.enableHMIButtonsOnly,r=e.hmi;return v.default.createElement(\"div\",{className:\"side-bar\"},v.default.createElement(x.default,{enableHMIButtonsOnly:i,inNavigationMode:r.inNavigationMode,onTasks:function(){t.props.store.handleOptionToggle(\"showTasks\")},showTasks:n.showTasks,onModuleController:function(){t.props.store.handleOptionToggle(\"showModuleController\")},showModuleController:n.showModuleController,onMenu:function(){t.props.store.handleOptionToggle(\"showMenu\")},showMenu:n.showMenu,onRouteEditingBar:function(){t.props.store.handleOptionToggle(\"showRouteEditingBar\")},showRouteEditingBar:n.showRouteEditingBar,onDataRecorder:function(){t.props.store.handleOptionToggle(\"showDataRecorder\")},showDataRecorder:n.showDataRecorder}),v.default.createElement(w.default,{enablePOI:!i&&!n.showRouteEditingBar,onPOI:function(){t.props.store.handleOptionToggle(\"showPOI\")},showPOI:!n.showRouteEditingBar&&n.showPOI}))}}]),e}(v.default.Component))||a)||a);e.default=S},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(196),b=i(y),x=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.label,n=t.percentage,i=t.meterColor,r=t.background;return g.default.createElement(\"div\",{className:\"meter-container\"},g.default.createElement(\"div\",{className:\"meter-label\"},e),g.default.createElement(\"span\",{className:\"meter-head\",style:{borderColor:i}}),g.default.createElement(\"div\",{className:\"meter-background\",style:{backgroundColor:r}},g.default.createElement(\"span\",{style:{backgroundColor:i,width:n+\"%\"}})))}}]),e}(g.default.Component),_=(0,v.observer)(r=function(t){function e(t){(0,l.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t));return n.setting={brake:{label:\"Brake\",meterColor:\"#B43131\",background:\"#382626\"},accelerator:{label:\"Accelerator\",meterColor:\"#006AFF\",background:\"#2D3B50\"}},n}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.throttlePercent,n=t.brakePercent,i=t.speed;return g.default.createElement(\"div\",{className:\"auto-meter\"},g.default.createElement(b.default,{meterPerSecond:i}),g.default.createElement(\"div\",{className:\"brake-panel\"},g.default.createElement(x,{label:this.setting.brake.label,percentage:n,meterColor:this.setting.brake.meterColor,background:this.setting.brake.background})),g.default.createElement(\"div\",{className:\"throttle-panel\"},g.default.createElement(x,{label:this.setting.accelerator.label,percentage:e,meterColor:this.setting.accelerator.meterColor,background:this.setting.accelerator.background})))}}]),e}(g.default.Component))||r;e.default=_},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.utterance=window.speechSynthesis?new SpeechSynthesisUtterance:null,n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"componentWillUpdate\",value:function(){this.utterance&&window.speechSynthesis.cancel()}},{key:\"render\",value:function(){var t=this.props,e=t.drivingMode,n=t.isAutoMode;return this.utterance&&(this.utterance.text=\"Entering to \"+e+\" mode\",window.speechSynthesis.speak(this.utterance)),m.default.createElement(\"div\",{className:(0,v.default)({\"driving-mode\":!0,\"auto-mode\":n,\"manual-mode\":!n})},m.default.createElement(\"span\",{className:\"text\"},e))}}]),e}(m.default.PureComponent);e.default=y},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(13),b=i(y),x=n(161),_=i(x),w=n(160),M=i(w),S=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props.monitor;if(!t.hasActiveNotification)return null;if(0===t.items.length)return null;var e=t.items[0],n=\"ERROR\"===e.logLevel||\"FATAL\"===e.logLevel?\"alert\":\"warn\",i=\"alert\"===n?M.default:_.default;return g.default.createElement(\"div\",{className:\"notification-\"+n},g.default.createElement(\"img\",{src:i,className:\"icon\"}),g.default.createElement(\"span\",{className:(0,b.default)(\"text\",n)},e.msg))}}]),e}(g.default.Component))||r;e.default=S},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=[{name:\"km/h\",conversionFromMeterPerSecond:3.6},{name:\"m/s\",conversionFromMeterPerSecond:1},{name:\"mph\",conversionFromMeterPerSecond:2.23694}],v=function(t){function e(t){(0,s.default)(this,e);var n=(0,h.default)(this,(e.__proto__||(0,a.default)(e)).call(this,t));return n.state={unit:0},n.changeUnit=n.changeUnit.bind(n),n}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"changeUnit\",value:function(){this.setState({unit:(this.state.unit+1)%g.length})}},{key:\"render\",value:function(){var t=this.props.meterPerSecond,e=g[this.state.unit],n=e.name,i=Math.round(t*e.conversionFromMeterPerSecond);return m.default.createElement(\"span\",{onClick:this.changeUnit},m.default.createElement(\"span\",{className:\"speed-read\"},i),m.default.createElement(\"span\",{className:\"speed-unit\"},n))}}]),e}(m.default.Component);e.default=v},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g={GREEN:\"rgba(79, 198, 105, 0.8)\",YELLOW:\"rgba(239, 255, 0, 0.8)\",RED:\"rgba(180, 49, 49, 0.8)\",BLACK:\"rgba(30, 30, 30, 0.8)\",UNKNOWN:\"rgba(30, 30, 30, 0.8)\",\"\":null},v=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props.colorName,e=g[t],n=t||\"NO SIGNAL\";return m.default.createElement(\"div\",{className:\"traffic-light\"},e&&m.default.createElement(\"svg\",{className:\"symbol\",viewBox:\"0 0 30 30\",height:\"28\",width:\"28\"},m.default.createElement(\"circle\",{cx:\"15\",cy:\"15\",r:\"15\",fill:e})),m.default.createElement(\"div\",{className:\"text\"},n))}}]),e}(m.default.PureComponent);e.default=v},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props.steeringAngle;return g.default.createElement(\"svg\",{className:\"wheel\",viewBox:\"0 0 100 100\",height:\"80\",width:\"80\"},g.default.createElement(\"circle\",{className:\"wheel-background\",cx:\"50\",cy:\"50\",r:\"45\"}),g.default.createElement(\"g\",{className:\"wheel-arm\",transform:\"rotate(\"+t+\" 50 50)\"},g.default.createElement(\"rect\",{x:\"45\",y:\"7\",height:\"10\",width:\"10\"}),g.default.createElement(\"line\",{x1:\"50\",y1:\"50\",x2:\"50\",y2:\"5\"})))}}]),e}(g.default.Component),b=(0,v.observer)(r=function(t){function e(t){(0,l.default)(this,e);var n=(0,d.default)(this,(e.__proto__||(0,o.default)(e)).call(this,t));return n.signalColor={off:\"#30435E\",on:\"#006AFF\"},n}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.steeringPercentage,n=t.steeringAngle,i=t.turnSignal,r=\"LEFT\"===i||\"EMERGENCY\"===i?this.signalColor.on:this.signalColor.off,a=\"RIGHT\"===i||\"EMERGENCY\"===i?this.signalColor.on:this.signalColor.off;return g.default.createElement(\"div\",{className:\"wheel-panel\"},g.default.createElement(\"div\",{className:\"steerangle-read\"},e),g.default.createElement(\"div\",{className:\"steerangle-unit\"},\"%\"),g.default.createElement(\"div\",{className:\"left-arrow\",style:{borderRightColor:r}}),g.default.createElement(y,{steeringAngle:n}),g.default.createElement(\"div\",{className:\"right-arrow\",style:{borderLeftColor:a}}))}}]),e}(g.default.Component))||r;e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a=n(3),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(5),d=i(h),f=n(4),p=i(f),m=n(2),g=i(m),v=n(8),y=n(193),b=i(y),x=n(195),_=i(x),w=n(197),M=i(w),S=n(194),E=i(S),k=n(198),T=i(k),C=(0,v.observer)(r=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,p.default)(e,t),(0,c.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.meters,n=t.trafficSignal,i=t.showNotification,r=t.monitor;return g.default.createElement(\"div\",{className:\"status-bar\"},i&&g.default.createElement(_.default,{monitor:r}),g.default.createElement(b.default,{throttlePercent:e.throttlePercent,brakePercent:e.brakePercent,speed:e.speed}),g.default.createElement(T.default,{steeringPercentage:e.steeringPercentage,steeringAngle:e.steeringAngle,turnSignal:e.turnSignal}),g.default.createElement(\"div\",{className:\"traffic-light-and-driving-mode\"},g.default.createElement(M.default,{colorName:n.color}),g.default.createElement(E.default,{drivingMode:e.drivingMode,isAutoMode:e.isAutoMode})))}}]),e}(g.default.Component))||r;e.default=C},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o,s=n(3),l=i(s),u=n(0),c=i(u),h=n(1),d=i(h),f=n(5),p=i(f),m=n(4),g=i(m),v=n(2),y=i(v),b=n(8),x=n(13),_=i(x),w=n(161),M=i(w),S=n(160),E=i(S),k=(0,b.observer)(r=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.level,n=t.text,i=\"ERROR\"===e||\"FATAL\"===e?\"alert\":\"warn\",r=\"alert\"===i?E.default:M.default;return y.default.createElement(\"li\",{className:\"monitor-item\"},y.default.createElement(\"img\",{src:r,className:\"icon\"}),y.default.createElement(\"span\",{className:(0,_.default)(\"text\",i)},n))}}]),e}(y.default.Component))||r,T=(a=(0,b.inject)(\"store\"))(o=(0,b.observer)(o=function(t){function e(){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,l.default)(e)).apply(this,arguments))}return(0,g.default)(e,t),(0,d.default)(e,[{key:\"render\",value:function(){var t=this.props.store.monitor;return y.default.createElement(\"div\",{className:\"card\"},y.default.createElement(\"div\",{className:\"card-header\"},y.default.createElement(\"span\",null,\"Console\")),y.default.createElement(\"div\",{className:\"card-content-column\"},y.default.createElement(\"ul\",{className:\"console\"},t.items.map(function(t,e){return y.default.createElement(k,{key:e,text:t.msg,level:t.logLevel})}))))}}]),e}(y.default.Component))||o)||o;e.default=T},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(13),x=i(b),_=n(77),w=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.time,n=t.warning,i=\"-\"===e?e:(0,_.millisecondsToTime)(0|e);return v.default.createElement(\"div\",{className:(0,x.default)({value:!0,warning:n})},i)}}]),e}(v.default.PureComponent),M=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this.props.store.moduleDelay,e=t.keys().sort().map(function(e){var n=t.get(e),i=n.delay>2e3&&\"TrafficLight\"!==n.name;return v.default.createElement(\"div\",{className:\"delay-item\",key:\"delay_\"+e},v.default.createElement(\"div\",{className:\"name\"},n.name),v.default.createElement(w,{time:n.delay,warning:i}))});return v.default.createElement(\"div\",{className:\"delay card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Module Delay\")),v.default.createElement(\"div\",{className:\"card-content-column\"},e))}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(3),s=i(o),l=n(0),u=i(l),c=n(1),h=i(c),d=n(5),f=i(d),p=n(4),m=i(p),g=n(2),v=i(g),y=n(8),b=n(114),x=i(b),_=n(16),w=i(_),M=(r=(0,y.inject)(\"store\"))(a=(0,y.observer)(a=function(t){function e(){return(0,u.default)(this,e),(0,f.default)(this,(e.__proto__||(0,s.default)(e)).apply(this,arguments))}return(0,m.default)(e,t),(0,h.default)(e,[{key:\"render\",value:function(){var t=this,e=this.props.store,n=e.options,i=e.enableHMIButtonsOnly,r=i||n.tasksPanelLocked;return v.default.createElement(\"div\",{className:\"others card\"},v.default.createElement(\"div\",{className:\"card-header\"},v.default.createElement(\"span\",null,\"Others\")),v.default.createElement(\"div\",{className:\"card-content-column\"},v.default.createElement(\"button\",{disabled:r,onClick:function(){w.default.resetBackend()}},\"Reset Backend Data\"),v.default.createElement(\"button\",{disabled:r,onClick:function(){w.default.dumpMessages()}},\"Dump Message\"),v.default.createElement(x.default,{id:\"showPNCMonitor\",title:\"PNC Monitor\",isChecked:n.showPNCMonitor,disabled:r,onClick:function(){t.props.store.handleOptionToggle(\"showPNCMonitor\")}}),v.default.createElement(x.default,{id:\"toggleSimControl\",title:\"SimControl\",isChecked:n.simControlEnabled,disabled:!1,onClick:function(){w.default.toggleSimControl(!n.simControlEnabled),t.props.store.handleOptionToggle(\"simControlEnabled\")}}),v.default.createElement(x.default,{id:\"showVideo\",title:\"Camera Sensor\",isChecked:n.showVideo,disabled:r,onClick:function(){t.props.store.handleOptionToggle(\"showVideo\")}}),v.default.createElement(x.default,{id:\"panelLock\",title:\"Lock Task Panel\",isChecked:n.tasksPanelLocked,disabled:!1,onClick:function(){t.props.store.handleOptionToggle(\"tasksPanelLocked\")}})))}}]),e}(v.default.Component))||a)||a;e.default=M},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r,a,o=n(32),s=i(o),l=n(3),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(5),m=i(p),g=n(4),v=i(g),y=n(2),b=i(y),x=n(8),_=n(13),w=i(_),M=n(16),S=i(M),E=function(t){function e(){return(0,h.default)(this,e),(0,m.default)(this,(e.__proto__||(0,u.default)(e)).apply(this,arguments))}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.name,n=t.commands,i=t.disabled,r=t.extraCommandClass,a=t.extraButtonClass,o=(0,s.default)(n).map(function(t){return b.default.createElement(\"button\",{className:a,disabled:i,key:t,onClick:n[t]},t)}),l=e?b.default.createElement(\"span\",{className:\"name\"},e+\":\"):null;return b.default.createElement(\"div\",{className:(0,w.default)(\"command-group\",r)},l,o)}}]),e}(b.default.Component),k=(r=(0,x.inject)(\"store\"))(a=(0,x.observer)(a=function(t){function e(t){(0,h.default)(this,e);var n=(0,m.default)(this,(e.__proto__||(0,u.default)(e)).call(this,t));return n.utterance=window.speechSynthesis?new SpeechSynthesisUtterance:null,n.rtKRecord={Start:function(){S.default.executeToolCommand(\"rtk_record_replay\",\"start_recorder\"),n.speechSynthesis(\"Start RTK recorder\")},Stop:function(){S.default.executeToolCommand(\"rtk_record_replay\",\"stop_recorder\"),n.speechSynthesis(\"Stop RTK recorder\")}},n.rtkReplay={Start:function(){S.default.executeToolCommand(\"rtk_record_replay\",\"start_player\"),n.speechSynthesis(\"Start RTK replay\")},Stop:function(){S.default.executeToolCommand(\"rtk_record_replay\",\"stop_player\"),n.speechSynthesis(\"Stop RTK replay\")}},n.setup={Setup:function(){S.default.executeModeCommand(\"start\"),n.speechSynthesis(\"Setup\")}},n.reset={\"Reset All\":function(){S.default.executeModeCommand(\"stop\"),n.speechSynthesis(\"Reset All\")}},n.auto={\"Start Auto\":function(){S.default.changeDrivingMode(\"COMPLETE_AUTO_DRIVE\"),n.speechSynthesis(\"Start Auto\")}},n.version={Version:function(){alert(n.props.store.hmi.dockerImage)}},n}return(0,v.default)(e,t),(0,f.default)(e,[{key:\"componentWillUpdate\",value:function(){this.utterance&&window.speechSynthesis.cancel()}},{key:\"speechSynthesis\",value:function(t){this.utterance&&(this.utterance.text=t,window.speechSynthesis.speak(this.utterance))}},{key:\"render\",value:function(){var t=this.props.store.hmi,e=this.props.store.options.tasksPanelLocked;return b.default.createElement(\"div\",{className:\"card\"},b.default.createElement(\"div\",{className:\"card-header\"},b.default.createElement(\"span\",null,\"Quick Start\")),b.default.createElement(\"div\",{className:\"card-content-column\"},b.default.createElement(E,{disabled:!1,commands:this.version}),b.default.createElement(E,{disabled:e,commands:this.setup}),b.default.createElement(E,{disabled:e,commands:this.reset}),b.default.createElement(E,{disabled:!t.enableStartAuto||e,commands:this.auto,extraButtonClass:\"start-auto-button\",extraCommandClass:\"start-auto-command\"}),t.showRTKCommands&&b.default.createElement(E,{name:\"Record\",disabled:e,commands:this.rtKRecord}),t.showRTKCommands&&b.default.createElement(E,{name:\"Replay\",disabled:e,commands:this.rtkReplay})))}}]),e}(b.default.Component))||a)||a;e.default=k},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(203),v=i(g),y=n(202),b=i(y),x=n(201),_=i(x),w=n(200),M=i(w),S=function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){return m.default.createElement(\"div\",{className:\"tasks\"},m.default.createElement(v.default,null),m.default.createElement(b.default,null),m.default.createElement(_.default,null),m.default.createElement(M.default,null))}}]),e}(m.default.Component);e.default=S},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(117),a=i(r),o=n(246),s=i(o),l=n(2),u=i(l),c=n(24),h=i(c),d=function(t){var e=t.image,n=t.style,i=t.className,r=((0,s.default)(t,[\"image\",\"style\",\"className\"]),(0,a.default)({},n||{},{backgroundImage:\"url(\"+e+\")\",backgroundSize:\"cover\"})),o=i?i+\" dreamview-image\":\"dreamview-image\";return u.default.createElement(\"div\",{className:o,style:r})};d.propTypes={image:h.default.string.isRequired,style:h.default.object},e.default=d},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(3),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(5),h=i(c),d=n(4),f=i(d),p=n(2),m=i(p),g=n(13),v=i(g),y=n(35),b=(i(y),n(162)),x=i(b),_=n(518),w=(i(_),function(t){function e(){return(0,s.default)(this,e),(0,h.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,f.default)(e,t),(0,u.default)(e,[{key:\"render\",value:function(){var t=this.props,e=t.height,n=t.extraClasses,i=x.default;return m.default.createElement(\"div\",{className:\"loader\",style:{height:e}},m.default.createElement(\"div\",{className:(0,v.default)(\"img-container\",n)},m.default.createElement(\"img\",{src:i,alt:\"Loader\"}),m.default.createElement(\"div\",{className:\"status-message\"},\"Please send car initial position and map data.\")))}}]),e}(m.default.Component));e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(15),u=i(l),c=n(489),h=i(c),d=n(490),f=i(d),p=n(59),m={adc:{menuOptionName:\"showPositionLocalization\",carMaterial:h.default},plannigAdc:{menuOptionName:\"showPlanningCar\",carMaterial:null}},g=function(){function t(e,n){var i=this;(0,a.default)(this,t),this.mesh=null,this.name=e;var r=m[e];if(!r)return void console.error(\"Car properties not found for car:\",e);(0,p.loadObject)(r.carMaterial,f.default,{x:1,y:1,z:1},function(t){i.mesh=t,i.mesh.rotation.x=Math.PI/2,i.mesh.visible=u.default.options[r.menuOptionName],n.add(i.mesh)})}return(0,s.default)(t,[{key:\"update\",value:function(t,e){if(this.mesh&&e){var n=m[this.name].menuOptionName;this.mesh.visible=u.default.options[n];var i=t.applyOffset({x:e.positionX,y:e.positionY});null!==i&&(this.mesh.position.set(i.x,i.y,0),this.mesh.rotation.y=e.heading)}}}]),t}();e.default=g},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=function(){function t(){(0,a.default)(this,t),this.systemName=\"ENU\",this.offset=null}return(0,s.default)(t,[{key:\"isInitialized\",value:function(){return null!==this.offset}},{key:\"initialize\",value:function(t,e){this.offset={x:t,y:e},console.log(\"Offset is set to x:\"+t+\", y:\"+e)}},{key:\"setSystem\",value:function(t){this.systemName=t}},{key:\"applyOffset\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?(console.error(\"Offset is not set.\"),null):isNaN(this.offset.x)||isNaN(this.offset.y)?(console.error(\"Offset contains NaN!\"),null):isNaN(t.x)||isNaN(t.y)?(console.warn(\"Point contains NaN!\"),null):isNaN(t.z)?new u.Vector2(e?t.x+this.offset.x:t.x-this.offset.x,e?t.y+this.offset.y:t.y-this.offset.y):new u.Vector3(e?t.x+this.offset.x:t.x-this.offset.x,e?t.y+this.offset.y:t.y-this.offset.y,t.z)}},{key:\"applyOffsetToArray\",value:function(t){var e=this;return t.map(function(t){return e.applyOffset(t)})}}]),t}();e.default=c},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(15),h=i(c),d=n(505),f=i(d),p=n(509),m=i(p),g=n(507),v=i(g),y=n(510),b=i(y),x=n(508),_=i(x),w=n(499),M=i(w),S=n(502),E=i(S),k=n(500),T=i(k),C=n(503),P=i(C),O=n(501),A=i(O),R=n(504),L=i(R),I=n(497),D=i(I),N=n(512),z=i(N),B=n(511),F=i(B),U=n(513),j=i(U),W=n(514),G=i(W),V=n(515),H=i(V),q=n(495),Y=i(q),X=n(496),Z=i(X),K=n(498),Q=i(K),J=n(506),$=i(J),tt=n(77),et=n(31),nt=n(39),it={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},rt={STOP_REASON_HEAD_VEHICLE:L.default,STOP_REASON_DESTINATION:D.default,STOP_REASON_PEDESTRIAN:z.default,STOP_REASON_OBSTACLE:F.default,STOP_REASON_SIGNAL:j.default,STOP_REASON_STOP_SIGN:G.default,STOP_REASON_YIELD_SIGN:H.default,STOP_REASON_CLEAR_ZONE:Y.default,STOP_REASON_CROSSWALK:Z.default,STOP_REASON_EMERGENCY:Q.default,STOP_REASON_NOT_READY:$.default},at=function(){function t(){(0,a.default)(this,t),this.markers={STOP:[],FOLLOW:[],YIELD:[],OVERTAKE:[]},this.nudges=[],this.mainDecision=this.getMainDecision(),this.mainDecisionAddedToScene=!1}return(0,s.default)(t,[{key:\"update\",value:function(t,e,n){var i=this;this.nudges.forEach(function(t){n.remove(t),t.geometry.dispose(),t.material.dispose()}),this.nudges=[];var r=t.mainStop;if(!h.default.options.showDecisionMain||nt.isEmpty(r))this.mainDecision.visible=!1;else{this.mainDecision.visible=!0,this.mainDecisionAddedToScene||(n.add(this.mainDecision),this.mainDecisionAddedToScene=!0),(0,tt.copyProperty)(this.mainDecision.position,e.applyOffset(new u.Vector3(r.positionX,r.positionY,.2))),this.mainDecision.rotation.set(Math.PI/2,r.heading-Math.PI/2,0);var a=nt.attempt(function(){return r.decision[0].stopReason});if(!nt.isError(a)&&a){var o=null;for(o in rt)this.mainDecision[o].visible=!1;this.mainDecision[a].visible=!0}}var s=t.object;if(h.default.options.showDecisionObstacle&&!nt.isEmpty(s)){for(var l={STOP:0,FOLLOW:0,YIELD:0,OVERTAKE:0},c=0;c=i.markers[a].length?(o=i.getObstacleDecision(a),i.markers[a].push(o),n.add(o)):o=i.markers[a][l[a]];var h=e.applyOffset(new u.Vector3(r.positionX,r.positionY,0));if(null===h)return\"continue\";if(o.position.set(h.x,h.y,.2),o.rotation.set(Math.PI/2,r.heading-Math.PI/2,0),o.visible=!0,l[a]++,\"YIELD\"===a||\"OVERTAKE\"===a){var f=o.connect;f.geometry.vertices[0].set(s[c].positionX-r.positionX,s[c].positionY-r.positionY,0),f.geometry.verticesNeedUpdate=!0,f.geometry.computeLineDistances(),f.geometry.lineDistancesNeedUpdate=!0,f.rotation.set(Math.PI/-2,0,Math.PI/2-r.heading)}}else if(\"NUDGE\"===a){var p=(0,et.drawShapeFromPoints)(e.applyOffsetToArray(r.polygonPoint),new u.MeshBasicMaterial({color:16744192}),!1,2);i.nudges.push(p),n.add(p)}})(f)}}var p=null;for(p in it)(0,tt.hideArrayObjects)(this.markers[p],l[p])}else{var m=null;for(m in it)(0,tt.hideArrayObjects)(this.markers[m])}}},{key:\"getMainDecision\",value:function(){var t=this.getFence(\"MAIN_STOP\"),e=null;for(e in rt){var n=(0,et.drawImage)(rt[e],1,1,4.1,3.5,0);t.add(n),t[e]=n}return t.visible=!1,t}},{key:\"getObstacleDecision\",value:function(t){var e=this.getFence(t);if(\"YIELD\"===t||\"OVERTAKE\"===t){var n=it[t],i=(0,et.drawDashedLineFromPoints)([new u.Vector3(1,1,0),new u.Vector3(0,0,0)],n,2,2,1,30);e.add(i),e.connect=i}return e.visible=!1,e}},{key:\"getFence\",value:function(t){var e=new u.Object3D;switch(t){case\"STOP\":var n=(0,et.drawImage)(E.default,11.625,3,0,1.5,0);e.add(n);var i=(0,et.drawImage)(m.default,1,1,3,3.6,0);e.add(i);break;case\"FOLLOW\":n=(0,et.drawImage)(T.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(v.default,1,1,3,3.6,0),e.add(i);break;case\"YIELD\":n=(0,et.drawImage)(P.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(b.default,1,1,3,3.6,0),e.add(i);break;case\"OVERTAKE\":n=(0,et.drawImage)(A.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(_.default,1,1,3,3.6,0),e.add(i);break;case\"MAIN_STOP\":n=(0,et.drawImage)(M.default,11.625,3,0,1.5,0),e.add(n),i=(0,et.drawImage)(f.default,1,1,3,3.6,0),e.add(i)}return e}}]),t}();e.default=at},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(15),h=i(c),d=n(31),f=function(){function t(){(0,a.default)(this,t),this.circle=null,this.base=null}return(0,s.default)(t,[{key:\"update\",value:function(t,e,n){if(t.gps&&t.autoDrivingCar){if(!this.circle){var i=new u.MeshBasicMaterial({color:27391,transparent:!1,opacity:.5});this.circle=(0,d.drawCircle)(.2,i),n.add(this.circle)}this.base||(this.base=(0,d.drawSegmentsFromPoints)([new u.Vector3(3.89,-1.05,0),new u.Vector3(3.89,1.06,0),new u.Vector3(-1.04,1.06,0),new u.Vector3(-1.04,-1.05,0),new u.Vector3(3.89,-1.05,0)],27391,2,5),n.add(this.base));var r=h.default.options.showPositionGps,a=e.applyOffset({x:t.gps.positionX,y:t.gps.positionY,z:0});this.circle.position.set(a.x,a.y,a.z),this.circle.visible=r,this.base.position.set(a.x,a.y,a.z),this.base.rotation.set(0,0,t.gps.heading),this.base.visible=r}}}]),t}();e.default=f},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(59),h=n(516),d=i(h),f=n(28),p=i(f),m=function(){function t(){var e=this;(0,a.default)(this,t),this.type=\"default\",this.loadedMap=null,this.updateMap=null,this.mesh=null,this.geometry=null,this.initialized=!1,(0,c.loadTexture)(d.default,function(t){e.geometry=new u.PlaneGeometry(1,1),e.mesh=new u.Mesh(e.geometry,new u.MeshBasicMaterial({map:t}))})}return(0,s.default)(t,[{key:\"initialize\",value:function(t){return!!this.mesh&&(!(this.loadedMap===this.updateMap&&!this.render(t))&&(this.initialized=!0,!0))}},{key:\"update\",value:function(t,e,n){var i=this;if(!0===this.initialized&&this.loadedMap!==this.updateMap){var r=this.titleCaseToSnakeCase(this.updateMap),a=window.location,o=a.protocol+\"//\"+a.hostname+\":\"+p.default.server.port,s=o+\"/assets/map_data/\"+r+\"/background.jpg\";(0,c.loadTexture)(s,function(t){console.log(\"updating ground image with \"+r),i.mesh.material.map=t,i.mesh.type=\"reflection\",i.render(e,r)},function(t){console.log(\"using grid as ground image...\"),(0,c.loadTexture)(d.default,function(t){i.mesh.material.map=t,i.mesh.type=\"grid\",i.render(e)})}),this.loadedMap=this.updateMap}else if(this.initialized&&\"grid\"===this.mesh.type){var l=t.autoDrivingCar,u=e.applyOffset({x:l.positionX,y:l.positionY});this.mesh.position.set(u.x,u.y,0)}}},{key:\"updateImage\",value:function(t){this.updateMap=t}},{key:\"render\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"defaults\";console.log(\"rendering ground image...\");var n=p.default.ground[e],i=n.xres,r=n.yres,a=n.mpp,o=n.xorigin,s=n.yorigin,l=t.applyOffset({x:o,y:s});return null===l?(console.warn(\"Cannot find position for ground mesh!\"),!1):(\"defaults\"===e&&(l={x:0,y:0}),this.mesh.position.set(l.x,l.y,0),this.mesh.scale.set(i*a,r*a,1),this.mesh.material.needsUpdate=!0,this.mesh.overdraw=!1,!0)}},{key:\"titleCaseToSnakeCase\",value:function(t){return t.replace(/\\s/g,\"_\").toLowerCase()}}]),t}();e.default=m},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(32),a=i(r),o=n(117),s=i(o),l=n(40),u=i(l),c=n(0),h=i(c),d=n(1),f=i(d),p=n(12),m=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(p),g=n(15),v=i(g),y=n(16),b=n(31),x=n(491),w=i(x),M=n(492),S=i(M),E=n(493),k=i(E),T=n(494),C=i(T),P=n(59),O={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256},A={x:.006,y:.006,z:.006},R={x:2,y:2,z:2},L=function(){function t(){(0,h.default)(this,t),(0,P.loadObject)(k.default,C.default,A),(0,P.loadObject)(w.default,S.default,R),this.hash=-1,this.data={},this.laneHeading={},this.overlapMap={},this.initialized=!1,this.elementKindsDrawn=\"\"}return(0,f.default)(t,[{key:\"diffMapElements\",value:function(t,e){var n=this,i={},r=!0;for(var a in t){(function(a){if(!n.shouldDrawThisElementKind(a))return\"continue\";i[a]=[];for(var o=t[a],s=e[a],l=0;l=2){var i=Math.atan2(e[n-1].y-e[0].y,e[n-1].x-e[0].x);return 1.5*Math.PI+i}return NaN}},{key:\"getSignalPositionAndHeading\",value:function(t,e){var n=[];if(t.subsignal.forEach(function(t){t.location&&n.push(t.location)}),0===n.length&&(console.warn(\"Subsignal locations not found, use signal boundary instead.\"),n.push(t.boundary.point)),0===n.length)return console.warn(\"Unable to determine signal location, skip.\"),null;var i=void 0,r=t.overlapId.length;if(r>0){var a=t.overlapId[r-1].id;i=this.laneHeading[this.overlapMap[a]]}if(i||(console.warn(\"Unable to get traffic light heading, use orthogonal direction of StopLine.\"),i=this.getHeadingFromStopLine(t)),isNaN(i))return console.error(\"Error loading traffic light. Unable to determine heading.\"),null;var o=new m.Vector3(0,0,0);return o.x=_.meanBy(_.values(n),function(t){return t.x}),o.y=_.meanBy(_.values(n),function(t){return t.y}),o=e.applyOffset(o),{pos:o,heading:i}}},{key:\"drawStopLine\",value:function(t,e,n,i){t.forEach(function(t){t.segment.forEach(function(t){var r=n.applyOffsetToArray(t.lineSegment.point),a=(0,b.drawSegmentsFromPoints)(r,O.PURE_WHITE,5,3,!1);i.add(a),e.push(a)})})}},{key:\"addTrafficLight\",value:function(t,e,n){var i=[],r=this.getSignalPositionAndHeading(t,e);return r&&(0,P.loadObject)(k.default,C.default,A,function(t){t.rotation.x=Math.PI/2,t.rotation.y=r.heading,t.position.set(r.pos.x,r.pos.y,0),t.matrixAutoUpdate=!1,t.updateMatrix(),n.add(t),i.push(t)}),this.drawStopLine(t.stopLine,i,e,n),i}},{key:\"getStopSignPositionAndHeading\",value:function(t,e){var n=void 0;if(t.overlapId.length>0){var i=t.overlapId[0].id;n=this.laneHeading[this.overlapMap[i]]}if(n||(console.warn(\"Unable to get stop sign heading, use orthogonal direction of StopLine.\"),n=this.getHeadingFromStopLine(t)),isNaN(n))return console.error(\"Error loading stop sign. Unable to determine heading.\"),null;var r=t.stopLine[0].segment[0].lineSegment.point[0],a=new m.Vector3(r.x,r.y,0);return a=e.applyOffset(a),{pos:a,heading:n}}},{key:\"addStopSign\",value:function(t,e,n){var i=[],r=this.getStopSignPositionAndHeading(t,e);return r&&(0,P.loadObject)(w.default,S.default,R,function(t){t.rotation.x=Math.PI/2,t.rotation.y=r.heading+Math.PI/2,t.position.set(r.pos.x,r.pos.y,0),t.matrixAutoUpdate=!1,t.updateMatrix(),n.add(t),i.push(t)}),this.drawStopLine(t.stopLine,i,e,n),i}},{key:\"removeDrewObjects\",value:function(t,e){t&&t.forEach(function(t){e.remove(t),t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()})}},{key:\"removeAllElements\",value:function(t){this.removeExpiredElements([],t)}},{key:\"removeExpiredElements\",value:function(t,e){var n=this,i={};for(var r in this.data)!function(r){var a=n.shouldDrawThisElementKind(r);i[r]=[];var o=n.data[r],s=t[r];o.forEach(function(t){a&&s&&s.includes(t.id.id)?i[r].push(t):(\"overlap\"!==r&&n.removeDrewObjects(t.drewObjects,e),\"lane\"===r&&delete n.laneHeading[t.id.id],\"overlap\"===r&&delete n.overlapMap[t.id.id])})}(r);this.data=i}},{key:\"appendMapData\",value:function(t,e,n){var i=[\"overlap\",\"lane\",\"junction\",\"road\",\"clearArea\",\"signal\",\"stopSign\",\"crosswalk\"],r=!0,a=!1,o=void 0;try{for(var l,c=(0,u.default)(i);!(r=(l=c.next()).done);r=!0){var h=l.value;if(t[h]){this.data[h]||(this.data[h]=[]);for(var d=0;d.2&&(v-=.7)})}}))}},{key:\"getPredCircle\",value:function(){var t=new u.MeshBasicMaterial({color:16777215,transparent:!1,opacity:.5}),e=(0,f.drawCircle)(.2,t);return this.predCircles.push(e),e}}]),t}();e.default=m},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(l),n(15)),c=i(u),h=n(31),d=(n(39),function(){function t(){(0,a.default)(this,t),this.routePaths=[],this.lastRoutingTime=-1}return(0,s.default)(t,[{key:\"update\",value:function(t,e,n,i){var r=this;this.routePaths.forEach(function(t){t.visible=c.default.options.showRouting}),this.lastRoutingTime!==t&&void 0!==e&&(this.lastRoutingTime=t,this.routePaths.forEach(function(t){i.remove(t),t.material.dispose(),t.geometry.dispose()}),e.forEach(function(t){var e=n.applyOffsetToArray(t.point),a=(0,h.drawThickBandFromPoints)(e,.3,16711680,.6,5);a.visible=c.default.options.showRouting,i.add(a),r.routePaths.push(a)}))}}]),t}());e.default=d},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12);!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(l);n(540);var u=n(528),c=i(u),h=n(28),d=i(h),f=n(15),p=(i(f),n(16)),m=i(p),g=n(31),v=function(){function t(){(0,a.default)(this,t),this.routePoints=[],this.inEditingMode=!1}return(0,s.default)(t,[{key:\"isInEditingMode\",value:function(){return this.inEditingMode}},{key:\"enableEditingMode\",value:function(t,e){this.inEditingMode=!0;t.fov=d.default.camera.Map.fov,t.near=d.default.camera.Map.near,t.far=d.default.camera.Map.far,t.updateProjectionMatrix(),m.default.requestMapElementIdsByRadius(this.EDITING_MAP_RADIUS)}},{key:\"disableEditingMode\",value:function(t){this.inEditingMode=!1,this.removeAllRoutePoints(t)}},{key:\"addRoutingPoint\",value:function(t,e,n){var i=e.applyOffset({x:t.x,y:t.y}),r=(0,g.drawImage)(c.default,3.5,3.5,i.x,i.y,.3);this.routePoints.push(r),n.add(r)}},{key:\"removeLastRoutingPoint\",value:function(t){var e=this.routePoints.pop();e&&(t.remove(e),e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose())}},{key:\"removeAllRoutePoints\",value:function(t){this.routePoints.forEach(function(e){t.remove(e),e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose()}),this.routePoints=[]}},{key:\"sendRoutingRequest\",value:function(t,e){if(0===this.routePoints.length)return alert(\"Please provide at least an end point.\"),!1;var n=this.routePoints.map(function(t){return t.position.z=0,e.applyOffset(t.position,!0)}),i=n.length>1?n[0]:e.applyOffset(t,!0),r=n[n.length-1],a=n.length>1?n.slice(1,-1):[];return m.default.requestRoute(i,a,r),!0}}]),t}();e.default=v,v.prototype.EDITING_MAP_RADIUS=1500},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(0),a=i(r),o=n(1),s=i(o),l=n(12),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),c=n(39),h={},d=!1,f=new u.FontLoader,p=\"fonts/gentilis_bold.typeface.json\";f.load(p,function(t){h.gentilis_bold=t,d=!0},function(t){console.log(p+t.loaded/t.total*100+\"% loaded\")},function(t){console.log(\"An error happened when loading \"+p)});var m=function(){function t(){(0,a.default)(this,t),this.charMeshes={},this.charPointers={}}return(0,s.default)(t,[{key:\"reset\",value:function(){this.charPointers={}}},{key:\"composeText\",value:function(t){if(!d)return null;for(var e=c.map(t,function(t){return t.charCodeAt(0)-32}),n=new u.Object3D,i=0;i0?this.charMeshes[r][0].clone():this.drawChar3D(t[i]),this.charMeshes[r].push(o)),o.position.set(.4*(i-e.length/2),0,0),this.charPointers[r]++,n.add(o)}return n}},{key:\"drawChar3D\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.gentilis_bold,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.6,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16771584,a=new u.TextGeometry(t,{font:e,size:n,height:i}),o=new u.MeshBasicMaterial({color:r});return new u.Mesh(a,o)}}]),t}();e.default=m},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=new d.default(t);for(var i in e)n.delete(i);return n}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var a=n(40),o=i(a),s=n(0),l=i(s),u=n(1),c=i(u),h=n(243),d=i(h),f=n(12),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(f),m=n(28),g=i(m),v=n(16),y=(i(v),n(59)),b=function(){function t(){(0,l.default)(this,t),this.mesh=!0,this.type=\"tile\",this.hash=-1,this.currentTiles={},this.initialized=!1,this.range=g.default.ground.tileRange,this.metadata=null,this.mapId=null,this.mapUrlPrefix=null}return(0,c.default)(t,[{key:\"initialize\",value:function(t,e){this.metadata={tileLength:e.tile*e.mpp,left:e.left,top:e.top,numCols:e.wnum,numRows:e.hnum,mpp:e.mpp,tile:e.tile,imageUrl:e.image_url},this.mapId=e.mapid,this.mapUrlPrefix=this.metadata.imageUrl?this.metadata.imageUrl+\"/\"+this.mapId:t+\"/map/getMapPic\",this.initialized=!0}},{key:\"removeDrewObject\",value:function(t,e){var n=this.currentTiles[t];n&&(e.remove(n),n.geometry&&n.geometry.dispose(),n.material&&n.material.dispose()),delete this.currentTiles[t]}},{key:\"appendTiles\",value:function(t,e,n,i,r){var a=this;if(!(e<0||e>this.metadata.numCols||t<0||t>this.metadata.numRows)){var o=this.metadata.imageUrl?this.mapUrlPrefix+\"/\"+this.metadata.mpp+\"_\"+t+\"_\"+e+\"_\"+this.metadata.tile+\".png\":this.mapUrlPrefix+\"?mapId=\"+this.mapId+\"&i=\"+t+\"&j=\"+e,s=i.applyOffset({x:this.metadata.left+(t+.5)*this.metadata.tileLength,y:this.metadata.top-(e+.5)*this.metadata.tileLength,z:0});(0,y.loadTexture)(o,function(t){var e=new p.Mesh(new p.PlaneGeometry(1,1),new p.MeshBasicMaterial({map:t}));e.position.set(s.x,s.y,s.z),e.scale.set(a.metadata.tileLength,a.metadata.tileLength,1),e.overdraw=!1,a.currentTiles[n]=e,r.add(e)})}}},{key:\"removeExpiredTiles\",value:function(t,e){for(var n in this.currentTiles)t.has(n)||this.removeDrewObject(n,e)}},{key:\"updateIndex\",value:function(t,e,n,i){if(t!==this.hash){this.hash=t,this.removeExpiredTiles(e,i);var a=r(e,this.currentTiles);if(!_.isEmpty(a)||!this.initialized){var s=!0,l=!1,u=void 0;try{for(var c,h=(0,o.default)(a);!(s=(c=h.next()).done);s=!0){var d=c.value;this.currentTiles[d]=null;var f=d.split(\",\"),p=parseInt(f[0]),m=parseInt(f[1]);this.appendTiles(p,m,d,n,i)}}catch(t){l=!0,u=t}finally{try{!s&&h.return&&h.return()}finally{if(l)throw u}}}}}},{key:\"update\",value:function(t,e,n){if(e.isInitialized()&&this.initialized){for(var i=t.autoDrivingCar.positionX,r=t.autoDrivingCar.positionY,a=Math.floor((i-this.metadata.left)/this.metadata.tileLength),o=Math.floor((this.metadata.top-r)/this.metadata.tileLength),s=new d.default,l=\"\",u=a-this.range;u<=a+this.range;u++)for(var c=o-this.range;c<=o+this.range;c++){var h=u+\",\"+c;s.add(h),l+=h}this.updateIndex(l,s,e,n)}}}]),t}();e.default=b},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!t)return[];for(var n=[],i=0;i0){if(Math.abs(n[n.length-1].x-a.x)+Math.abs(n[n.length-1].y-a.y)0&&n=80;i?e.error=[]:r&&e.error.shift();(0===e.error.length||n!==e.error[e.error.length-1].x)&&e.error.push({x:n,y:t.stationError})}}},{key:\"updateSteerCurve\",value:function(t,e){var n=e.steeringAngle/e.steeringRatio,i=null;i=Math.abs(Math.tan(n))>1e-4?e.length/Math.tan(n):1e5;var r=e.heading,a=Math.abs(i),o=7200/(2*Math.PI*a)*Math.PI/180,s=null,l=null,u=null,c=null;i>=0?(u=Math.PI/2+r,c=r-Math.PI/2,s=0,l=o):(u=r-Math.PI/2,c=Math.PI/2+r,s=-o,l=0);var h=e.positionX+Math.cos(u)*a,d=e.positionY+Math.sin(u)*a,f=new v.EllipseCurve(h,d,a,a,s,l,!1,c);t.steerCurve=f.getPoints(25)}},{key:\"interpolateValueByCurrentTime\",value:function(t,e,n){if(\"timestampSec\"===n)return e;var i=t.map(function(t){return t.timestampSec}),r=t.map(function(t){return t[n]});return new v.LinearInterpolant(i,r,1,[]).evaluate(e)[0]}},{key:\"updateGraph\",value:function(t,e,n,i,r){var a=n.timestampSec,o=t.target.length>0&&a=80;if(o?(t.target=[],t.real=[],t.autoModeZone=[]):s&&(t.target.shift(),t.real.shift(),t.autoModeZone.shift()),0===t.target.length||a!==t.target[t.target.length-1].t){t.plan=e.map(function(t){return{x:t[i],y:t[r]}}),t.target.push({x:this.interpolateValueByCurrentTime(e,a,i),y:this.interpolateValueByCurrentTime(e,a,r),t:a}),t.real.push({x:n[i],y:n[r]});var l=\"DISENGAGE_NONE\"===n.disengageType;t.autoModeZone.push({x:n[i],y:l?n[r]:void 0})}}},{key:\"update\",value:function(t){var e=t.planningTrajectory,n=t.autoDrivingCar;e&&n&&(this.updateGraph(this.data.speedGraph,e,n,\"timestampSec\",\"speed\"),this.updateGraph(this.data.accelerationGraph,e,n,\"timestampSec\",\"speedAcceleration\"),this.updateGraph(this.data.curvatureGraph,e,n,\"timestampSec\",\"kappa\"),this.updateGraph(this.data.trajectoryGraph,e,n,\"positionX\",\"positionY\"),this.updateSteerCurve(this.data.trajectoryGraph,n),this.data.trajectoryGraph.pose[0].x=n.positionX,this.data.trajectoryGraph.pose[0].y=n.positionY,this.data.trajectoryGraph.pose[0].rotation=n.heading,this.updateTime(t.planningTime)),t.controlData&&this.updateStationErrorGraph(t.controlData)}}]),t}(),s=a(o.prototype,\"lastUpdatedTime\",[g.observable],{enumerable:!0,initializer:function(){return null}}),a(o.prototype,\"updateTime\",[g.action],(0,h.default)(o.prototype,\"updateTime\"),o.prototype),o);e.default=y},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,m.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o,s,l,u,c,h,d,f,p=n(19),m=i(p),g=n(25),v=i(g),y=n(32),b=i(y),x=n(0),_=i(x),w=n(1),M=i(w),S=n(23),E=n(16),k=i(E),T=(o=function(){function t(){(0,_.default)(this,t),this.modes={},r(this,\"currentMode\",s,this),this.vehicles=[],r(this,\"currentVehicle\",l,this),this.maps=[],r(this,\"currentMap\",u,this),r(this,\"moduleStatus\",c,this),r(this,\"hardwareStatus\",h,this),r(this,\"enableStartAuto\",d,this),this.displayName={},r(this,\"dockerImage\",f,this)}return(0,M.default)(t,[{key:\"initialize\",value:function(t){var e=this;t.dockerImage&&(this.dockerImage=t.dockerImage),t.modes&&(this.modes=t.modes),this.vehicles=(0,b.default)(t.availableVehicles).sort().map(function(t){return t}),this.maps=(0,b.default)(t.availableMaps).sort().map(function(t){return t}),(0,b.default)(t.modules).forEach(function(n){e.moduleStatus.set(n,!1),e.displayName[n]=t.modules[n].displayName}),(0,b.default)(t.hardware).forEach(function(n){e.hardwareStatus.set(n,\"NOT_READY\"),e.displayName[n]=t.hardware[n].displayName})}},{key:\"updateStatus\",value:function(t){if(t.currentMode&&(this.currentMode=t.currentMode),t.currentMap&&(this.currentMap=t.currentMap),t.currentVehicle&&(this.currentVehicle=t.currentVehicle),t.systemStatus){if(t.systemStatus.modules)for(var e in t.systemStatus.modules)this.moduleStatus.set(e,t.systemStatus.modules[e].processStatus.running);if(t.systemStatus.hardware)for(var n in t.systemStatus.hardware)this.hardwareStatus.set(n,t.systemStatus.hardware[n].summary)}}},{key:\"update\",value:function(t){this.enableStartAuto=\"READY_TO_ENGAGE\"===t.engageAdvice}},{key:\"toggleModule\",value:function(t){this.moduleStatus.set(t,!this.moduleStatus.get(t));var e=this.moduleStatus.get(t)?\"start\":\"stop\";k.default.executeModuleCommand(t,e)}},{key:\"showRTKCommands\",get:function(){return\"RTK Record / Replay\"===this.currentMode}},{key:\"inNavigationMode\",get:function(){return\"Navigation\"===this.currentMode}}]),t}(),s=a(o.prototype,\"currentMode\",[S.observable],{enumerable:!0,initializer:function(){return\"none\"}}),l=a(o.prototype,\"currentVehicle\",[S.observable],{enumerable:!0,initializer:function(){return\"none\"}}),u=a(o.prototype,\"currentMap\",[S.observable],{enumerable:!0,initializer:function(){return\"none\"}}),c=a(o.prototype,\"moduleStatus\",[S.observable],{enumerable:!0,initializer:function(){return S.observable.map()}}),h=a(o.prototype,\"hardwareStatus\",[S.observable],{enumerable:!0,initializer:function(){return S.observable.map()}}),d=a(o.prototype,\"enableStartAuto\",[S.observable],{enumerable:!0,initializer:function(){return!1}}),f=a(o.prototype,\"dockerImage\",[S.observable],{enumerable:!0,initializer:function(){return\"\"}}),a(o.prototype,\"initialize\",[S.action],(0,v.default)(o.prototype,\"initialize\"),o.prototype),a(o.prototype,\"updateStatus\",[S.action],(0,v.default)(o.prototype,\"updateStatus\"),o.prototype),a(o.prototype,\"update\",[S.action],(0,v.default)(o.prototype,\"update\"),o.prototype),a(o.prototype,\"toggleModule\",[S.action],(0,v.default)(o.prototype,\"toggleModule\"),o.prototype),a(o.prototype,\"showRTKCommands\",[S.computed],(0,v.default)(o.prototype,\"showRTKCommands\"),o.prototype),a(o.prototype,\"inNavigationMode\",[S.computed],(0,v.default)(o.prototype,\"inNavigationMode\"),o.prototype),o);e.default=T},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,b.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}function o(t){return 10*Math.round(t/10)}function s(t){switch(t){case\"DISENGAGE_MANUAL\":return\"MANUAL\";case\"DISENGAGE_NONE\":return\"AUTO\";case\"DISENGAGE_EMERGENCY\":return\"DISENGAGED\";case\"DISENGAGE_AUTO_STEER_ONLY\":return\"AUTO STEER\";case\"DISENGAGE_AUTO_SPEED_ONLY\":return\"AUTO SPEED\";case\"DISENGAGE_CHASSIS_ERROR\":return\"CHASSIS ERROR\";default:return\"?\"}}function l(t){return\"DISENGAGE_NONE\"===t||\"DISENGAGE_AUTO_STEER_ONLY\"===t||\"DISENGAGE_AUTO_SPEED_ONLY\"===t}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var u,c,h,d,f,p,m,g,v,y=n(19),b=i(y),x=n(25),_=i(x),w=n(0),M=i(w),S=n(1),E=i(S),k=n(23),T=(u=function(){function t(){(0,M.default)(this,t),r(this,\"throttlePercent\",c,this),r(this,\"brakePercent\",h,this),r(this,\"speed\",d,this),r(this,\"steeringAngle\",f,this),r(this,\"steeringPercentage\",p,this),r(this,\"drivingMode\",m,this),r(this,\"isAutoMode\",g,this),r(this,\"turnSignal\",v,this)}return(0,E.default)(t,[{key:\"update\",value:function(t){t.autoDrivingCar&&(void 0!==t.autoDrivingCar.throttlePercentage&&(this.throttlePercent=o(t.autoDrivingCar.throttlePercentage)),void 0!==t.autoDrivingCar.brakePercentage&&(this.brakePercent=o(t.autoDrivingCar.brakePercentage)),void 0!==t.autoDrivingCar.speed&&(this.speed=t.autoDrivingCar.speed),void 0===t.autoDrivingCar.steeringPercentage||isNaN(t.autoDrivingCar.steeringPercentage)||(this.steeringPercentage=Math.round(t.autoDrivingCar.steeringPercentage)),void 0===t.autoDrivingCar.steeringAngle||isNaN(t.autoDrivingCar.steeringAngle)||(this.steeringAngle=-Math.round(180*t.autoDrivingCar.steeringAngle/Math.PI)),void 0!==t.autoDrivingCar.disengageType&&(this.drivingMode=s(t.autoDrivingCar.disengageType),this.isAutoMode=l(t.autoDrivingCar.disengageType)),void 0!==t.autoDrivingCar.currentSignal&&(this.turnSignal=t.autoDrivingCar.currentSignal))}}]),t}(),c=a(u.prototype,\"throttlePercent\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),h=a(u.prototype,\"brakePercent\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),d=a(u.prototype,\"speed\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),f=a(u.prototype,\"steeringAngle\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),p=a(u.prototype,\"steeringPercentage\",[k.observable],{enumerable:!0,initializer:function(){return 0}}),m=a(u.prototype,\"drivingMode\",[k.observable],{enumerable:!0,initializer:function(){return\"?\"}}),g=a(u.prototype,\"isAutoMode\",[k.observable],{enumerable:!0,initializer:function(){return!1}}),v=a(u.prototype,\"turnSignal\",[k.observable],{enumerable:!0,initializer:function(){return\"\"}}),a(u.prototype,\"update\",[k.action],(0,_.default)(u.prototype,\"update\"),u.prototype),u);e.default=T},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,h.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o,s,l,u,c=n(19),h=i(c),d=n(25),f=i(d),p=n(0),m=i(p),g=n(1),v=i(g),y=n(23),b=(o=function(){function t(){(0,m.default)(this,t),r(this,\"lastUpdateTimestamp\",s,this),r(this,\"hasActiveNotification\",l,this),r(this,\"items\",u,this),this.refreshTimer=null}return(0,v.default)(t,[{key:\"startRefresh\",value:function(){var t=this;this.clearRefreshTimer(),this.refreshTimer=setInterval(function(){Date.now()-t.lastUpdateTimestamp>6e3&&(t.setHasActiveNotification(!1),t.clearRefreshTimer())},500)}},{key:\"clearRefreshTimer\",value:function(){null!==this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}},{key:\"setHasActiveNotification\",value:function(t){this.hasActiveNotification=t}},{key:\"update\",value:function(t){if(t.monitor){var e=t.monitor,n=e.item,i=e.header,r=Math.floor(1e3*i.timestampSec);r>this.lastUpdateTimestamp&&(this.hasActiveNotification=!0,this.lastUpdateTimestamp=r,this.items.replace(n),this.startRefresh())}}},{key:\"insert\",value:function(t,e,n){var i=[];i.push({msg:e,logLevel:t});for(var r=0;r10||t<-10?100*t/Math.abs(t):t}},{key:\"extractDataPoints\",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!t)return[];var a=t.map(function(t){return{x:t[e]+r,y:t[n]}});return i&&t.length&&a.push({x:t[0][e],y:t[0][n]}),a}},{key:\"updateSLFrame\",value:function(t){var e=this.data.slGraph,n=t[0].sampledS;e.mapLowerBound=this.generateDataPoints(n,t[0].mapLowerBound,this.transformMapBound),e.mapUpperBound=this.generateDataPoints(n,t[0].mapUpperBound,this.transformMapBound),e.staticObstacleLowerBound=this.generateDataPoints(n,t[0].staticObstacleLowerBound),e.staticObstacleUpperBound=this.generateDataPoints(n,t[0].staticObstacleUpperBound),e.dynamicObstacleLowerBound=this.generateDataPoints(n,t[0].dynamicObstacleLowerBound),e.dynamicObstacleUpperBound=this.generateDataPoints(n,t[0].dynamicObstacleUpperBound),e.pathLine=this.extractDataPoints(t[0].slPath,\"s\",\"l\");var i=t[1].aggregatedBoundaryS;e.aggregatedBoundaryLow=this.generateDataPoints(i,t[1].aggregatedBoundaryLow),e.aggregatedBoundaryHigh=this.generateDataPoints(i,t[1].aggregatedBoundaryHigh)}},{key:\"updateSTGraph\",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value;this.data.stGraph[o.name]={obstaclesBoundary:{}};var s=this.data.stGraph[o.name];if(o.boundary){var l=!0,u=!1,c=void 0;try{for(var h,d=(0,f.default)(o.boundary);!(l=(h=d.next()).done);l=!0){var p=h.value,m=p.type.substring(\"ST_BOUNDARY_TYPE_\".length),g=p.name+\"_\"+m;s.obstaclesBoundary[g]=this.extractDataPoints(p.point,\"t\",\"s\",!0)}}catch(t){u=!0,c=t}finally{try{!l&&d.return&&d.return()}finally{if(u)throw c}}}s.curveLine=this.extractDataPoints(o.speedProfile,\"t\",\"s\"),o.kernelCruiseRef&&(s.kernelCruise=this.generateDataPoints(o.kernelCruiseRef.t,o.kernelCruiseRef.cruiseLineS)),o.kernelFollowRef&&(s.kernelFollow=this.generateDataPoints(o.kernelFollowRef.t,o.kernelFollowRef.followLineS))}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:\"updateSTSpeedGraph\",value:function(t){var e=this,n=!0,i=!1,r=void 0;try{for(var a,o=(0,f.default)(t);!(n=(a=o.next()).done);n=!0){var s=a.value;this.data.stSpeedGraph[s.name]={};var l=this.data.stSpeedGraph[s.name];l.limit=this.extractDataPoints(s.speedLimit,\"s\",\"v\"),l.planned=this.extractDataPoints(s.speedProfile,\"s\",\"v\"),s.speedConstraint&&function(){var t=s.speedProfile.map(function(t){return t.t}),n=s.speedProfile.map(function(t){return t.s}),i=new b.LinearInterpolant(t,n,1,[]),r=s.speedConstraint.t.map(function(t){return i.evaluate(t)[0]});l.lowerConstraint=e.generateDataPoints(r,s.speedConstraint.lowerBound),l.upperConstraint=e.generateDataPoints(r,s.speedConstraint.upperBound)}()}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}},{key:\"updateSpeed\",value:function(t,e){var n=this.data.speedGraph;if(t){var i=!0,r=!1,a=void 0;try{for(var o,s=(0,f.default)(t);!(i=(o=s.next()).done);i=!0){var l=o.value;n[l.name]=this.extractDataPoints(l.speedPoint,\"t\",\"v\")}}catch(t){r=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}}e&&(n.finalSpeed=this.extractDataPoints(e,\"timestampSec\",\"speed\",!1,-this.planningTime))}},{key:\"updateAccelerationGraph\",value:function(t){var e=this.data.accelerationGraph;t&&(e.acceleration=this.extractDataPoints(t,\"timestampSec\",\"speedAcceleration\",!1,-this.planningTime))}},{key:\"updateThetaGraph\",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s=\"planning_reference_line\"===o.name?\"ReferenceLine\":o.name;this.data.thetaGraph[s]=this.extractDataPoints(o.pathPoint,\"s\",\"theta\")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:\"updateKappaGraph\",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s=\"planning_reference_line\"===o.name?\"ReferenceLine\":o.name;this.data.kappaGraph[s]=this.extractDataPoints(o.pathPoint,\"s\",\"kappa\")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:\"updateDkappaGraph\",value:function(t){var e=!0,n=!1,i=void 0;try{for(var r,a=(0,f.default)(t);!(e=(r=a.next()).done);e=!0){var o=r.value,s=\"planning_reference_line\"===o.name?\"ReferenceLine\":o.name;this.data.dkappaGraph[s]=this.extractDataPoints(o.pathPoint,\"s\",\"dkappa\")}}catch(t){n=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw i}}}},{key:\"updateLatencyGraph\",value:function(t,e){for(var n in this.latencyGraph){var i=this.latencyGraph[n];if(i.length>0){var r=i[0].x,a=i[i.length-1].x,o=t-r;t3e5&&i.shift()}0!==i.length&&i[i.length-1].x===t||i.push({x:t,y:e.planning})}}},{key:\"updateDpPolyGraph\",value:function(t){var e=this.data.dpPolyGraph;if(t.sampleLayer){e.sampleLayer=[];var n=!0,i=!1,r=void 0;try{for(var a,o=(0,f.default)(t.sampleLayer);!(n=(a=o.next()).done);n=!0){a.value.slPoint.map(function(t){var n=t.s,i=t.l;e.sampleLayer.push({x:n,y:i})})}}catch(t){i=!0,r=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw r}}}t.minCostPoint&&(e.minCostPoint=this.extractDataPoints(t.minCostPoint,\"s\",\"l\"))}},{key:\"update\",value:function(t){var e=t.planningData;if(e){if(this.planningTime===t.planningTime)return;this.data=this.initData(),e.slFrame&&e.slFrame.length>=2&&this.updateSLFrame(e.slFrame),e.stGraph&&(this.updateSTGraph(e.stGraph),this.updateSTSpeedGraph(e.stGraph)),e.speedPlan&&t.planningTrajectory&&this.updateSpeed(e.speedPlan,t.planningTrajectory),t.planningTrajectory&&this.updateAccelerationGraph(t.planningTrajectory),e.path&&(this.updateKappaGraph(e.path),this.updateDkappaGraph(e.path),this.updateThetaGraph(e.path)),e.dpPolyGraph&&this.updateDpPolyGraph(e.dpPolyGraph),t.latency&&this.updateLatencyGraph(t.planningTime,t.latency),this.updatePlanningTime(t.planningTime)}}}]),t}(),s=a(o.prototype,\"planningTime\",[y.observable],{enumerable:!0,initializer:function(){return null}}),a(o.prototype,\"updatePlanningTime\",[y.action],(0,h.default)(o.prototype,\"updatePlanningTime\"),o.prototype),o);e.default=x},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,p.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o,s,l,u,c,h,d,f=n(19),p=i(f),m=n(25),g=i(m),v=n(0),y=i(v),b=n(1),x=i(b),_=n(23);n(544);var w=(o=function(){function t(){(0,y.default)(this,t),this.FPS=10,this.msPerFrame=100,this.jobId=null,this.mapId=null,r(this,\"numFrames\",s,this),r(this,\"requestedFrame\",l,this),r(this,\"retrievedFrame\",u,this),r(this,\"isPlaying\",c,this),r(this,\"isSeeking\",h,this),r(this,\"seekingFrame\",d,this)}return(0,x.default)(t,[{key:\"setMapId\",value:function(t){this.mapId=t}},{key:\"setJobId\",value:function(t){this.jobId=t}},{key:\"setNumFrames\",value:function(t){this.numFrames=parseInt(t)}},{key:\"setPlayRate\",value:function(t){if(\"number\"==typeof t&&t>0){var e=1/this.FPS*1e3;this.msPerFrame=e/t}}},{key:\"initialized\",value:function(){return this.numFrames&&null!==this.jobId&&null!==this.mapId}},{key:\"hasNext\",value:function(){return this.initialized()&&this.requestedFrame0&&t<=this.numFrames&&(this.seekingFrame=t,this.requestedFrame=t-1,this.isSeeking=!0)}},{key:\"resetFrame\",value:function(){this.requestedFrame=0,this.retrievedFrame=0,this.seekingFrame=1}},{key:\"shouldProcessFrame\",value:function(t){return!(!t||!t.sequenceNum||this.seekingFrame!==t.sequenceNum||!this.isPlaying&&!this.isSeeking)&&(this.retrievedFrame=t.sequenceNum,this.isSeeking=!1,this.seekingFrame++,!0)}},{key:\"currentFrame\",get:function(){return this.retrievedFrame}},{key:\"replayComplete\",get:function(){return this.seekingFrame>this.numFrames}}]),t}(),s=a(o.prototype,\"numFrames\",[_.observable],{enumerable:!0,initializer:function(){return 0}}),l=a(o.prototype,\"requestedFrame\",[_.observable],{enumerable:!0,initializer:function(){return 0}}),u=a(o.prototype,\"retrievedFrame\",[_.observable],{enumerable:!0,initializer:function(){return 0}}),c=a(o.prototype,\"isPlaying\",[_.observable],{enumerable:!0,initializer:function(){return!1}}),h=a(o.prototype,\"isSeeking\",[_.observable],{enumerable:!0,initializer:function(){return!0}}),d=a(o.prototype,\"seekingFrame\",[_.observable],{enumerable:!0,initializer:function(){return 1}}),a(o.prototype,\"next\",[_.action],(0,g.default)(o.prototype,\"next\"),o.prototype),a(o.prototype,\"currentFrame\",[_.computed],(0,g.default)(o.prototype,\"currentFrame\"),o.prototype),a(o.prototype,\"replayComplete\",[_.computed],(0,g.default)(o.prototype,\"replayComplete\"),o.prototype),a(o.prototype,\"setPlayAction\",[_.action],(0,g.default)(o.prototype,\"setPlayAction\"),o.prototype),a(o.prototype,\"seekFrame\",[_.action],(0,g.default)(o.prototype,\"seekFrame\"),o.prototype),a(o.prototype,\"resetFrame\",[_.action],(0,g.default)(o.prototype,\"resetFrame\"),o.prototype),a(o.prototype,\"shouldProcessFrame\",[_.action],(0,g.default)(o.prototype,\"shouldProcessFrame\"),o.prototype),o);e.default=w},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i){n&&(0,c.default)(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function a(t,e,n,i,r){var a={};return Object.keys(i).forEach(function(t){a[t]=i[t]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(\"value\"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,i){return i(t,e,n)||n},a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o,s,l,u=n(19),c=i(u),h=n(25),d=i(h),f=n(0),p=i(f),m=n(1),g=i(m),v=n(23),y=n(35),b=i(y),x=n(58),w=i(x),M=(o=function(){function t(){(0,p.default)(this,t),r(this,\"defaultRoutingEndPoint\",s,this),r(this,\"currentPOI\",l,this)}return(0,g.default)(t,[{key:\"updateDefaultRoutingEndPoint\",value:function(t){if(void 0!==t.poi){this.defaultRoutingEndPoint={};for(var e=0;e150&&console.log(\"Last sim_world_update took \"+(t.timestamp-this.lastUpdateTimestamp)+\"ms\"),this.lastUpdateTimestamp=t.timestamp,-1!==this.lastSeqNum&&t.world.sequenceNum>this.lastSeqNum+1&&console.debug(\"Last seq: \"+this.lastSeqNum+\". New seq: \"+t.world.sequenceNum+\".\"),this.lastSeqNum=t.world.sequenceNum}},{key:\"startPlayback\",value:function(t){var e=this;clearInterval(this.requestTimer),this.requestTimer=setInterval(function(){e.websocket.readyState===e.websocket.OPEN&&h.default.playback.initialized()&&(e.requestSimulationWorld(h.default.playback.jobId,h.default.playback.next()),h.default.playback.hasNext()||(clearInterval(e.requestTimer),e.requestTimer=null))},t/2),clearInterval(this.processTimer),this.processTimer=setInterval(function(){if(h.default.playback.initialized()){var t=100*h.default.playback.seekingFrame;t in e.frameData&&e.processSimWorld(e.frameData[t]),h.default.playback.replayComplete&&(clearInterval(e.processTimer),e.processTimer=null)}},t)}},{key:\"pausePlayback\",value:function(){clearInterval(this.requestTimer),clearInterval(this.processTimer),this.requestTimer=null,this.processTimer=null}},{key:\"requestGroundMeta\",value:function(t){this.websocket.send((0,a.default)({type:\"RetrieveGroundMeta\",mapId:t}))}},{key:\"processSimWorld\",value:function(t){var e=\"string\"==typeof t.world?JSON.parse(t.world):t.world;h.default.playback.shouldProcessFrame(e)&&(h.default.updateTimestamp(t.timestamp),f.default.maybeInitializeOffest(e.autoDrivingCar.positionX,e.autoDrivingCar.positionY),f.default.updateWorld(e,t.planningData),h.default.meters.update(e),h.default.monitor.update(e),h.default.trafficSignal.update(e))}},{key:\"requstFrameCount\",value:function(t){this.websocket.send((0,a.default)({type:\"RetrieveFrameCount\",jobId:t}))}},{key:\"requestSimulationWorld\",value:function(t,e){var n=100*e;n in this.frameData?h.default.playback.isSeeking&&this.processSimWorld(this.frameData[n]):this.websocket.send((0,a.default)({type:\"RequestSimulationWorld\",jobId:t,frameId:e}))}}]),t}();e.default=p},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(60),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(15),h=i(c),d=n(35),f=i(d),p=n(78),m=i(p),g=function(){function t(e){(0,s.default)(this,t),this.serverAddr=e,this.websocket=null,this.worker=new m.default}return(0,u.default)(t,[{key:\"initialize\",value:function(){var t=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType=\"arraybuffer\"}catch(e){return console.error(\"Failed to establish a connection: \"+e),void setTimeout(function(){t.initialize()},1e3)}this.websocket.onmessage=function(e){t.worker.postMessage({source:\"point_cloud\",data:e.data})},this.websocket.onclose=function(e){console.log(\"WebSocket connection closed with code: \"+e.code),t.initialize()},this.worker.onmessage=function(t){\"PointCloudStatus\"===t.data.type?(h.default.setOptionStatus(\"showPointCloud\",t.data.enabled),!1===h.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})):!0===h.default.options.showPointCloud&&void 0!==t.data.num&&f.default.updatePointCloud(t.data)},clearInterval(this.timer),this.timer=setInterval(function(){t.websocket.readyState===t.websocket.OPEN&&!0===h.default.options.showPointCloud&&t.websocket.send((0,a.default)({type:\"RequestPointCloud\"}))},100)}},{key:\"togglePointCloud\",value:function(t){this.websocket.send((0,a.default)({type:\"TogglePointCloud\",enable:t})),!1===h.default.options.showPointCloud&&f.default.updatePointCloud({num:[]})}}]),t}();e.default=g},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var r=n(60),a=i(r),o=n(0),s=i(o),l=n(1),u=i(l),c=n(15),h=i(c),d=n(35),f=i(d),p=n(58),m=i(p),g=n(78),v=i(g),y=function(){function t(e){(0,s.default)(this,t),this.serverAddr=e,this.websocket=null,this.simWorldUpdatePeriodMs=100,this.simWorldLastUpdateTimestamp=0,this.mapUpdatePeriodMs=1e3,this.mapLastUpdateTimestamp=0,this.updatePOI=!0,this.routingTime=void 0,this.currentMode=null,this.worker=new v.default}return(0,u.default)(t,[{key:\"initialize\",value:function(){var t=this;try{this.websocket=new WebSocket(this.serverAddr),this.websocket.binaryType=\"arraybuffer\"}catch(e){return console.error(\"Failed to establish a connection: \"+e),void setTimeout(function(){t.initialize()},1e3)}this.websocket.onmessage=function(e){t.worker.postMessage({source:\"realtime\",data:e.data})},this.worker.onmessage=function(e){var n=e.data;switch(n.type){case\"HMIConfig\":h.default.hmi.initialize(n.data);break;case\"HMIStatus\":h.default.hmi.updateStatus(n.data),f.default.updateGroundImage(h.default.hmi.currentMap);break;case\"SimControlStatus\":h.default.setOptionStatus(\"simControlEnabled\",n.enabled);break;case\"SimWorldUpdate\":t.checkMessage(n);var i=t.currentMode!==h.default.hmi.currentMode;t.currentMode=h.default.hmi.currentMode,h.default.hmi.inNavigationMode?(m.default.isInitialized()&&m.default.update(n),n.autoDrivingCar.positionX=0,n.autoDrivingCar.positionY=0,n.autoDrivingCar.heading=0,f.default.coordinates.setSystem(\"FLU\"),t.mapUpdatePeriodMs=100):(f.default.coordinates.setSystem(\"ENU\"),t.mapUpdatePeriodMs=1e3),h.default.updateTimestamp(n.timestamp),h.default.updateModuleDelay(n),f.default.maybeInitializeOffest(n.autoDrivingCar.positionX,n.autoDrivingCar.positionY,i),h.default.meters.update(n),h.default.monitor.update(n),h.default.trafficSignal.update(n),h.default.hmi.update(n),f.default.updateWorld(n),t.updateMapIndex(n),h.default.options.showPNCMonitor&&(h.default.planningData.update(n),h.default.controlData.update(n)),t.routingTime!==n.routingTime&&(t.requestRoutePath(),t.routingTime=n.routingTime);break;case\"MapElementIds\":f.default.updateMapIndex(n.mapHash,n.mapElementIds,n.mapRadius);break;case\"DefaultEndPoint\":h.default.routeEditingManager.updateDefaultRoutingEndPoint(n);break;case\"RoutePath\":f.default.updateRouting(n.routingTime,n.routePath)}},this.websocket.onclose=function(e){console.log(\"WebSocket connection closed, close_code: \"+e.code),t.initialize()},clearInterval(this.timer),this.timer=setInterval(function(){if(t.websocket.readyState===t.websocket.OPEN){t.updatePOI&&(t.requestDefaultRoutingEndPoint(),t.updatePOI=!1);var e=h.default.options.showPNCMonitor;t.websocket.send((0,a.default)({type:\"RequestSimulationWorld\",planning:e}))}},this.simWorldUpdatePeriodMs)}},{key:\"updateMapIndex\",value:function(t){var e=new Date,n=e-this.mapLastUpdateTimestamp;t.mapHash&&n>=this.mapUpdatePeriodMs&&(f.default.updateMapIndex(t.mapHash,t.mapElementIds,t.mapRadius),this.mapLastUpdateTimestamp=e)}},{key:\"checkMessage\",value:function(t){var e=(new Date).getTime(),n=e-this.simWorldLastUpdateTimestamp;0!==this.simWorldLastUpdateTimestamp&&n>250&&console.log(\"Last sim_world_update took \"+n+\"ms\"),this.simWorldLastUpdateTimestamp=e}},{key:\"requestMapElementIdsByRadius\",value:function(t){this.websocket.send((0,a.default)({type:\"RetrieveMapElementIdsByRadius\",radius:t}))}},{key:\"requestRoute\",value:function(t,e,n){this.websocket.send((0,a.default)({type:\"SendRoutingRequest\",start:t,end:n,waypoint:e}))}},{key:\"requestDefaultRoutingEndPoint\",value:function(){this.websocket.send((0,a.default)({type:\"GetDefaultEndPoint\"}))}},{key:\"resetBackend\",value:function(){this.websocket.send((0,a.default)({type:\"Reset\"}))}},{key:\"dumpMessages\",value:function(){this.websocket.send((0,a.default)({type:\"Dump\"}))}},{key:\"changeSetupMode\",value:function(t){this.websocket.send((0,a.default)({type:\"ChangeMode\",new_mode:t}))}},{key:\"changeMap\",value:function(t){this.websocket.send((0,a.default)({type:\"ChangeMap\",new_map:t})),this.updatePOI=!0}},{key:\"changeVehicle\",value:function(t){this.websocket.send((0,a.default)({type:\"ChangeVehicle\",new_vehicle:t}))}},{key:\"executeModeCommand\",value:function(t){this.websocket.send((0,a.default)({type:\"ExecuteModeCommand\",command:t}))}},{key:\"executeModuleCommand\",value:function(t,e){this.websocket.send((0,a.default)({type:\"ExecuteModuleCommand\",module:t,command:e}))}},{key:\"executeToolCommand\",value:function(t,e){this.websocket.send((0,a.default)({type:\"ExecuteToolCommand\",tool:t,command:e}))}},{key:\"changeDrivingMode\",value:function(t){this.websocket.send((0,a.default)({type:\"ChangeDrivingMode\",new_mode:t}))}},{key:\"submitDriveEvent\",value:function(t,e){this.websocket.send((0,a.default)({type:\"SubmitDriveEvent\",event_time_ms:t,event_msg:e}))}},{key:\"toggleSimControl\",value:function(t){this.websocket.send((0,a.default)({type:\"ToggleSimControl\",enable:t}))}},{key:\"requestRoutePath\",value:function(){this.websocket.send((0,a.default)({type:\"RequestRoutePath\"}))}},{key:\"publishNavigationInfo\",value:function(t){this.websocket.send(t)}}]),t}();e.default=y},function(t,e,n){\"use strict\";function i(t,e){return(0,o.default)(s,l,[e,t])}function r(t,e){return(0,o.default)(l,s,[t,e])}Object.defineProperty(e,\"__esModule\",{value:!0}),e.WGS84ToUTM=i,e.UTMToWGS84=r;var a=n(427),o=function(t){return t&&t.__esModule?t:{default:t}}(a),s=\"+proj=longlat +ellps=WGS84\",l=\"+proj=utm +zone=10 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs \"},function(t,e,n){e=t.exports=n(140)(!1),e.push([t.i,'body{margin:0;overflow:hidden;background-color:#14171a!important;font:14px Lucida Grande,Helvetica,Arial,sans-serif;color:#fff}::-webkit-scrollbar{width:4px;height:8px;opacity:.3;background-color:#fff}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#555}::-webkit-scrollbar-thumb{opacity:.8;background-color:#30a5ff}::-webkit-scrollbar-thumb:active{background-color:#30a5ff}.header{display:flex;align-items:center;z-index:100;position:relative;top:0;left:0;height:60px;background:#000;color:#fff;font-size:16px;text-align:left}@media (max-height:800px){.header{height:55px;font-size:14px}}.header .apollo-logo{flex:0 0 auto;top:40px;left:40px;height:40px;width:121px;margin:10px auto 5px 18px}@media (max-height:800px){.header .apollo-logo{top:15px;left:25px;height:25px;width:80px;margin-top:5px}}.header .selector{flex:0 0 auto;position:relative;margin:5px;border:1px solid #383838}.header .selector select{display:block;border:none;padding:.5em 3em .5em .5em;background:#000;color:#fff;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header .selector .arrow{position:absolute;top:0;right:0;width:30px;height:100%;border-left:1px solid #383838;background:#181818;pointer-events:none}.header .selector .arrow:before{position:absolute;top:55%;right:7px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:\"\";pointer-events:none}.pane-container{position:absolute;width:100%;height:calc(100% - 60px)}@media (max-height:800px){.pane-container{height:calc(100% - 55px)}}.pane-container .left-pane{display:flex;flex-flow:row nowrap;align-items:stretch;position:absolute;bottom:0;top:0;width:100%}.pane-container .left-pane .dreamview-body{display:flex;flex-flow:column nowrap;flex:1 1 auto;overflow:hidden}.pane-container .left-pane .dreamview-body .main-view{flex:0 0 auto;position:relative;min-width:600px}.pane-container .right-pane{position:absolute;right:0;width:100%;height:100%;overflow:hidden}.pane-container .right-pane ::-webkit-scrollbar{width:6px}.pane-container .SplitPane .Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.pane-container .SplitPane .Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.pane-container .SplitPane .Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.pane-container .SplitPane .Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.pane-container .SplitPane .Resizer.disabled{cursor:auto}.pane-container .SplitPane .Resizer.disabled:hover{border-color:transparent}.offlineview{display:flex;flex-flow:column nowrap;position:absolute;width:100%;height:100%}.offlineview .main-view{flex:0 0 auto;position:relative}.dreamview-canvas{z-index:1;position:absolute}.dreamview-canvas .geolocation{z-index:10;position:absolute;bottom:10px;right:10px;color:#fff}.hidden{display:none}.tools{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;margin-top:3px;overflow:hidden}.tools .card{flex:1 1 auto;border-right:3px solid #000;padding:15px 10px 25px 20px;background:#1d2226}@media (max-height:800px){.tools .card{padding:15px 5px 15px 15px}}.tools .card .card-header{width:100%;padding-bottom:15px;font-size:18px}.tools .card .card-header span{width:200px;border-bottom:1px solid #999;padding:10px 10px 10px 0}@media (max-height:800px){.tools .card .card-header{font-size:16px}}.tools .card .card-content-row{display:flex;flex-flow:row wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto;height:85%}.tools .card .card-content-column{display:flex;flex-flow:column nowrap;overflow-x:hidden;overflow-y:auto;height:85%}.tools ul{flex:0 0 auto;margin:0 2px 0 0;padding-left:0;padding-right:5px;background-color:#1d2226;color:#999;list-style:none;cursor:pointer;font-size:12px}.tools ul li{line-height:40px}.tools ul li span{padding-left:20px}.tools ul li:hover{color:#fff;background-color:#2a3238}.tools .switch{display:inline-block;position:relative;width:40px;transform:translate(35%,25%)}.tools .switch .toggle-switch{display:none}.tools .switch .toggle-switch-label{display:block;overflow:hidden;cursor:pointer;height:20px;padding:0;line-height:20px;border:0;background-color:#3f4548;transition:background-color .2s ease-in}.tools .switch .toggle-switch-label:before{content:\"\";display:block;width:16px;margin:2px;background:#a0a0a0;position:absolute;top:0;bottom:0;right:20px;transition:all .2s ease-in}.tools .switch .toggle-switch:checked+.toggle-switch-label{background-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label,.tools .switch .toggle-switch:checked+.toggle-switch-label:before{border-color:#0e3d62}.tools .switch .toggle-switch:checked+.toggle-switch-label:before{right:0;background-color:#30a5ff}.tools .switch .toggle-switch:disabled+.toggle-switch-label,.tools .switch .toggle-switch:disabled+.toggle-switch-label:before{cursor:not-allowed}.tools .tool-view-menu{display:flex;flex-flow:row nowrap;align-items:stretch;flex:2 1 auto;z-index:10!important;margin-right:3px;overflow-y:hidden;overflow-x:auto;background:#1d2226;font-size:14px;color:#fff;text-align:left;white-space:nowrap}.tools .tool-view-menu .summary{line-height:50px}@media (max-height:800px){.tools .tool-view-menu .summary{line-height:25px}}.tools .tool-view-menu .summary img{position:relative;width:30px;height:30px;transform:translate(-30%,25%)}@media (max-height:800px){.tools .tool-view-menu .summary img{width:20px;height:20px;transform:translate(-50%,10%)}}.tools .tool-view-menu .summary span{padding-left:10px}.tools .tool-view-menu input[type=radio]{display:none}.tools .tool-view-menu .radio-selector-label{display:inline-block;position:relative;transform:translate(65%,30%);box-sizing:border-box;-webkit-box-sizing:border-box;width:25px;height:25px;margin-right:6px;border-radius:50%;-webkit-border-radius:50%;background-color:#a0a0a0;box-shadow:inset 1px 0 #a0a0a0;border:7px solid #3f4548}.tools .tool-view-menu input[type=radio]:checked+.radio-selector-label{border:7px solid #0e3d62;background-color:#30a5ff}.tools .console{z-index:10;position:relative;min-width:230px;margin:0;border:none;padding:0;overflow-y:auto;overflow-x:hidden}.tools .console .monitor-item{display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default}.tools .console .monitor-item .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.tools .console .monitor-item .icon{height:15px;width:15px}}.tools .console .monitor-item .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.tools .console .monitor-item .alert{color:#d7466f}.tools .console .monitor-item .warn{color:#a3842d}.tools .poi-button{min-width:250px}.side-bar{display:flex;flex-direction:column;flex:0 0 auto;z-index:100;background:#1d2226;border-right:3px solid #000;overflow-y:auto;overflow-x:hidden}.side-bar .main-panel{margin-bottom:auto}.side-bar button:focus{outline:0}.side-bar .button{display:block;width:90px;border:none;padding:20px 10px;font-size:14px;text-align:center;background:#1d2226;color:#fff;opacity:.6;cursor:pointer}@media (max-height:800px){.side-bar .button{font-size:12px;width:80px;padding-top:10px}}.side-bar .button .icon{width:40px;height:40px;margin:auto}@media (max-height:800px){.side-bar .button .icon{width:30px;height:30px}}.side-bar .button .label{padding-top:10px}@media (max-height:800px){.side-bar .button .label{padding-top:4px}}.side-bar .button:first-child{padding-top:25px}@media (max-height:800px){.side-bar .button:first-child{padding-top:10px}}.side-bar .button:disabled{color:#414141;cursor:not-allowed}.side-bar .button:disabled .icon{opacity:.2}.side-bar .button-active{background:#2a3238;opacity:1;color:#fff}.side-bar .sub-button{display:block;width:90px;height:80px;border:none;padding:20px;font-size:14px;text-align:center;background:#3e4041;color:#999;cursor:pointer}@media (max-height:800px){.side-bar .sub-button{font-size:12px;width:80px;height:60px}}.side-bar .sub-button:disabled{cursor:not-allowed;opacity:.3}.side-bar .sub-button-active{background:#30a5ff;color:#fff}.status-bar{z-index:10;position:absolute;top:0;left:0;width:100%}.status-bar .auto-meter{position:absolute;width:224px;height:112px;top:10px;right:20px;background:rgba(0,0,0,.8)}.status-bar .auto-meter .speed-read{position:absolute;top:27px;left:15px;font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .auto-meter .speed-unit{position:absolute;top:66px;left:17px;color:#fff;font-size:15px}.status-bar .auto-meter .brake-panel{position:absolute;top:21px;right:2px}.status-bar .auto-meter .throttle-panel{position:absolute;top:61px;right:2px}.status-bar .auto-meter .meter-container .meter-label{font-size:13px;color:#fff}.status-bar .auto-meter .meter-container .meter-head{display:inline-block;position:absolute;margin:5px 0 0;border-width:4px;border-style:solid}.status-bar .auto-meter .meter-container .meter-background{position:relative;display:block;height:2px;width:120px;margin:8px}.status-bar .auto-meter .meter-container .meter-background span{position:relative;overflow:hidden;display:block;height:100%}.status-bar .wheel-panel{display:flex;flex-direction:row;justify-content:left;align-items:center;position:absolute;top:128px;right:20px;width:187px;height:92px;padding:10px 22px 10px 15px;background:rgba(0,0,0,.8)}.status-bar .wheel-panel .steerangle-read{font-family:Arial;font-weight:lighter;font-size:35px;color:#fff}.status-bar .wheel-panel .steerangle-unit{padding:20px 10px 0 3px;color:#fff;font-size:13px}.status-bar .wheel-panel .left-arrow{position:absolute;top:45px;right:115px;width:0;height:0;border-style:solid;border-width:12px 15px 12px 0;border-color:transparent}.status-bar .wheel-panel .right-arrow{position:absolute;top:45px;right:15px;width:0;height:0;border-style:solid;border-width:12px 0 12px 15px;border-color:transparent transparent transparent #30435e}.status-bar .wheel-panel .wheel{position:absolute;top:15px;right:33px}.status-bar .wheel-panel .wheel-background{stroke-width:3px;stroke:#006aff}.status-bar .wheel-panel .wheel-arm{stroke-width:3px;stroke:#006aff;fill:#006aff}.status-bar .traffic-light-and-driving-mode{position:absolute;top:246px;right:20px;width:224px;height:35px;font-size:14px}.status-bar .traffic-light-and-driving-mode .traffic-light{position:absolute;width:116px;height:35px;background:rgba(0,0,0,.8)}.status-bar .traffic-light-and-driving-mode .traffic-light .symbol{position:relative;top:4px;left:4px;width:28px;height:28px}.status-bar .traffic-light-and-driving-mode .traffic-light .text{position:absolute;top:10px;right:8px;color:#fff}.status-bar .traffic-light-and-driving-mode .driving-mode{position:absolute;top:0;right:0;width:105px;height:35px}.status-bar .traffic-light-and-driving-mode .driving-mode .text{position:absolute;top:50%;left:50%;float:right;transform:translate(-50%,-50%);text-align:center}.status-bar .traffic-light-and-driving-mode .auto-mode{background:linear-gradient(90deg,rgba(17,30,48,.8),rgba(7,42,94,.8));border-right:1px solid #006aff;color:#006aff}.status-bar .traffic-light-and-driving-mode .manual-mode{background:linear-gradient(90deg,rgba(30,17,17,.8),rgba(71,36,36,.8));color:#b43131;border-right:1px solid #b43131}.status-bar .notification-warn{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #a3842d;background-color:rgba(52,39,5,.3)}.status-bar .notification-warn .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.status-bar .notification-warn .icon{height:15px;width:15px}}.status-bar .notification-warn .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.status-bar .notification-warn .alert{color:#d7466f}.status-bar .notification-warn .warn{color:#a3842d}.status-bar .notification-alert{position:absolute;top:10px;right:260px;width:260px;display:flex;list-style-type:none;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;border-top:1px solid #333;padding:10px;cursor:default;border:1px solid #d7466f;background-color:rgba(74,5,24,.3)}.status-bar .notification-alert .icon{position:relative;height:20px;width:20px;padding-right:5px}@media (max-height:800px){.status-bar .notification-alert .icon{height:15px;width:15px}}.status-bar .notification-alert .text{position:relative;width:100%;line-height:150%;font-size:12px;character:0;line:20px}.status-bar .notification-alert .alert{color:#d7466f}.status-bar .notification-alert .warn{color:#a3842d}.tasks{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.tasks .command-group{display:flex;flex-flow:row nowrap;justify-content:flex-start;flex:1 1 0;min-height:45px;min-width:130px}.tasks .command-group .name{width:40px;padding:15px}.tasks .start-auto-command{flex:2 2 0}.tasks .start-auto-command .start-auto-button{max-height:unset}.tasks .others{min-width:165px;max-width:260px}.tasks .delay{min-width:265px;line-height:26px}.tasks .delay .delay-item{position:relative;margin:0 10px;font-size:16px}.tasks .delay .delay-item .name{display:inline-block;min-width:140px;color:#1c9063}.tasks .delay .delay-item .value{display:inline-block;position:absolute;right:0;min-width:70px;text-align:right}.tasks .delay .delay-item .warning{color:#b43131}.tasks button{flex:1 1 0;margin:5px;border:0;min-width:75px;min-height:40px;max-height:60px;color:#999;border-bottom:2px solid #1c9063;background:linear-gradient(#000,#111f1d);outline:none;cursor:pointer}.tasks button:hover{color:#fff;background:#151e1b}.tasks button:active{background:rgba(35,51,45,.6)}.tasks button:disabled{color:#999;border-color:#555;background:linear-gradient(rgba(0,0,0,.8),rgba(9,17,16,.8));cursor:not-allowed}.tasks .disabled{cursor:not-allowed}.module-controller{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 1 auto;z-index:10;margin-right:3px;overflow:hidden}.module-controller .controller{min-width:180px}.module-controller .modules-container{flex-flow:column wrap}.module-controller .status-display{min-width:250px;padding:5px 20px 5px 5px}.module-controller .status-display .name{display:inline-block;padding:10px;min-width:80px}.module-controller .status-display .status{display:inline-block;position:relative;width:130px;padding:10px;background:#000;white-space:nowrap}.module-controller .status-display .status .status-icon{position:absolute;right:10px;width:15px;height:15px;background-color:#b43131}.route-editing-bar{z-index:10;position:absolute;top:0;left:0;right:0;min-height:90px;border-bottom:3px solid #000;padding-left:10px;background:#1d2226}@media (max-height:800px){.route-editing-bar{min-height:60px}}.route-editing-bar .editing-panel{display:flex;justify-content:center;align-items:center;overflow:hidden;white-space:nowrap}.route-editing-bar .editing-panel .button{height:90px;border:none;padding:10px 15px;background:#1d2226;outline:none;color:#999}@media (max-height:800px){.route-editing-bar .editing-panel .button{height:60px;padding:5px 10px}}.route-editing-bar .editing-panel .button img{display:block;top:23px;margin:15px auto}@media (max-height:800px){.route-editing-bar .editing-panel .button img{top:13px;margin:7px auto}}.route-editing-bar .editing-panel .button span{font-family:PingFangSC-Light;font-size:14px;color:#d8d8d8;text-align:center}@media (max-height:800px){.route-editing-bar .editing-panel .button span{font-size:12px}}.route-editing-bar .editing-panel .button:hover{background:#2a3238}.route-editing-bar .editing-panel .active{color:#fff;background:#2a3238}.route-editing-bar .editing-panel .editing-tip{height:90px;width:90px;margin-left:auto;border:none;color:#d8d8d8;font-size:35px}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip{height:60px;width:60px;font-size:20px}}.route-editing-bar .editing-panel .editing-tip p{position:absolute;top:120%;right:15px;width:400px;border-radius:3px;padding:20px;background-color:#fff;color:#999;font-size:14px;text-align:left;white-space:pre-wrap}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip p{right:5px}}.route-editing-bar .editing-panel .editing-tip p:before{position:absolute;top:-20px;right:13px;content:\"\";border-style:solid;border-width:0 20px 20px;border-color:transparent transparent #fff}@-moz-document url-prefix(){.route-editing-bar .editing-panel .editing-tip p:before{top:-38px}}@media (max-height:800px){.route-editing-bar .editing-panel .editing-tip p:before{right:8px}}.data-recorder{display:flex;flex-flow:row nowrap;align-items:stretch;flex:1 auto;z-index:10;margin-right:3px;overflow-x:auto;overflow-y:hidden}.data-recorder .drive-event-card table{width:100%;text-align:center}.data-recorder .drive-event-card .drive-event-msg{width:100%}.data-recorder .drive-event-card .toolbar button{width:200px}.loader{flex:0 0 auto;position:relative;width:100%;height:100%;background-color:#000c17}.loader .img-container{position:relative;top:50%;left:50%;width:40%;transform:translate(-50%,-50%)}.loader .img-container img{width:100%;height:auto}.loader .img-container .status-message{margin-top:10px;font-size:18px;font-size:1.7vw;color:#fff;text-align:center;animation-name:flash;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:running}@keyframes flash{0%{color:#fff}to{color:#000c17}}.loader .offline-loader{width:60%;max-width:650px}.loader .offline-loader .status-message{position:relative;top:-70px;top:-4.5vw;font-size:3vw}.video{z-index:1;position:absolute;top:0;left:0}.video img{position:relative;min-width:100px;min-height:20px;max-width:380px;max-height:300px;padding:1px;border:1px solid #383838}@media (max-height:800px){.video img{max-width:300px;max-height:200px}}.dashcam-player{z-index:1;position:absolute;top:0;left:0;color:#fff}.dashcam-player video{max-width:380px;max-height:300px}@media (max-height:800px){.dashcam-player video{max-width:300px;max-height:200px}}.dashcam-player .controls{display:flex;justify-content:flex-end;z-index:10;position:absolute;right:0}.dashcam-player .controls button{width:27px;height:27px;border:none;background-color:#000;opacity:.6;color:#fff}.dashcam-player .controls button img{width:15px}.dashcam-player .controls button:hover{opacity:.9}.dashcam-player .controls .close{font-size:20px}.dashcam-player .controls .syncup{padding-top:.5em}.pnc-monitor{height:100%;border:1px solid #000;box-sizing:border-box;background-color:#1d2226;overflow:auto}.pnc-monitor .scatter-graph{margin:0;border:1px #000;border-style:solid none}.pnc-monitor .react-tabs__tab-list{display:table;width:100%;margin:0;border-bottom:1px solid #000;padding:0}.pnc-monitor .react-tabs__tab{display:table-cell;position:relative;border:1px solid transparent;border-bottom:none;padding:6px 12px;background:#1d2226;color:#999;list-style:none;cursor:pointer}.pnc-monitor .react-tabs__tab--selected{background:#2a3238;color:#fff}.pnc-monitor .react-tabs__tab-panel{display:none}.pnc-monitor .react-tabs__tab-panel--selected{display:block}.navigation-view{z-index:20;position:relative}.navigation-view #map_canvas{width:100%;height:100%;background:rgba(0,0,0,.8)}.navigation-view .window-resize-control{position:absolute;bottom:0;right:0;width:30px;height:30px}',\"\"])},function(t,e,n){e=t.exports=n(140)(!1),e.push([t.i,'.playback-controls{z-index:100;position:absolute;width:100%;height:40px;bottom:0;background:#1d2226;font-size:16px;min-width:550px}@media (max-height:800px){.playback-controls{font-size:14px}}.playback-controls .icon{display:inline-block;width:20px;height:20px;padding:10px;cursor:pointer}.playback-controls .icon .play{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#1d2226}.playback-controls .icon .pause,.playback-controls .icon .replay{stroke-linejoin:round;stroke-width:1.5px;stroke:#006aff;fill:#006aff}.playback-controls .icon .replay{top:2px}.playback-controls .icon .exit-fullscreen,.playback-controls .icon .fullscreen{stroke-linejoin:round;stroke-width:10px;stroke:#006aff;fill:#1d2226}.playback-controls .left-controls{display:inline-block;float:left}.playback-controls .right-controls{display:inline-block;float:right}.playback-controls .rate-selector{position:absolute;left:40px}.playback-controls .rate-selector select{display:block;border:none;padding:11px 23px 0 5px;color:#fff;background:#1d2226;outline:none;cursor:pointer;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.playback-controls .rate-selector .arrow{position:absolute;top:5px;right:0;width:10px;height:100%;pointer-events:none}.playback-controls .rate-selector .arrow:before{position:absolute;top:16px;right:1px;margin-top:-5px;border-top:8px solid #666;border-left:8px solid transparent;border-right:8px solid transparent;content:\"\";pointer-events:none}.playback-controls .time-controls{position:absolute;min-width:300px;height:100%;left:125px;right:50px}.playback-controls .time-controls .rangeslider{position:absolute;top:7px;left:10px;right:115px;margin:10px 0;height:7px;border-radius:10px;background:#2d3b50;-ms-touch-action:none;touch-action:none}.playback-controls .time-controls .rangeslider .rangeslider__fill{display:block;height:100%;border-radius:10px;background-color:#006aff;background:#006aff}.playback-controls .time-controls .rangeslider .rangeslider__handle{display:inline-block;position:absolute;height:16px;width:16px;top:50%;transform:translate3d(-50%,-50%,0);border:1px solid #006aff;border-radius:100%;background:#006aff;cursor:pointer;box-shadow:none}.playback-controls .time-controls .time-display{position:absolute;top:12px;right:0;color:#fff}',\"\"])},function(t,e,n){t.exports={default:n(297),__esModule:!0}},function(t,e,n){t.exports={default:n(299),__esModule:!0}},function(t,e,n){t.exports={default:n(301),__esModule:!0}},function(t,e,n){t.exports={default:n(303),__esModule:!0}},function(t,e,n){t.exports={default:n(308),__esModule:!0}},function(t,e,n){t.exports={default:n(309),__esModule:!0}},function(t,e,n){t.exports={default:n(310),__esModule:!0}},function(t,e,n){t.exports={default:n(311),__esModule:!0}},function(t,e,n){t.exports={default:n(312),__esModule:!0}},function(t,e,n){\"use strict\";e.__esModule=!0,e.default=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(238),a=i(r),o=n(40),s=i(o);e.default=function(){function t(t,e){var n=[],i=!0,r=!1,a=void 0;try{for(var o,l=(0,s.default)(t);!(i=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(r)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,a.default)(Object(e)))return t(e,n);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}()},function(t,e,n){/*!\n * Bowser - a browser detector\n * https://github.com/ded/bowser\n * MIT License | (c) Dustin Diaz 2015\n */\n!function(e,i,r){void 0!==t&&t.exports?t.exports=r():n(545)(\"bowser\",r)}(0,0,function(){function t(t){function e(e){var n=t.match(e);return n&&n.length>1&&n[1]||\"\"}function n(e){var n=t.match(e);return n&&n.length>1&&n[2]||\"\"}var i,r=e(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(t),s=!a&&/android/i.test(t),l=/nexus\\s*[0-6]\\s*/i.test(t),u=!l&&/nexus\\s*[0-9]+/i.test(t),c=/CrOS/.test(t),h=/silk/i.test(t),d=/sailfish/i.test(t),f=/tizen/i.test(t),p=/(web|hpw)os/i.test(t),m=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),v=!r&&!h&&/macintosh/i.test(t),y=!s&&!d&&!f&&!p&&/linux/i.test(t),b=n(/edg([ea]|ios)\\/(\\d+(\\.\\d+)?)/i),x=e(/version\\/(\\d+(\\.\\d+)?)/i),_=/tablet/i.test(t)&&!/tablet pc/i.test(t),w=!_&&/[^-]mobi/i.test(t),M=/xbox/i.test(t);/opera/i.test(t)?i={name:\"Opera\",opera:o,version:x||e(/(?:opera|opr|opios)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/opr\\/|opios/i.test(t)?i={name:\"Opera\",opera:o,version:e(/(?:opr|opios)[\\s\\/](\\d+(\\.\\d+)?)/i)||x}:/SamsungBrowser/i.test(t)?i={name:\"Samsung Internet for Android\",samsungBrowser:o,version:x||e(/(?:SamsungBrowser)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/coast/i.test(t)?i={name:\"Opera Coast\",coast:o,version:x||e(/(?:coast)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/yabrowser/i.test(t)?i={name:\"Yandex Browser\",yandexbrowser:o,version:x||e(/(?:yabrowser)[\\s\\/](\\d+(\\.\\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:\"UC Browser\",ucbrowser:o,version:e(/(?:ucbrowser)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/mxios/i.test(t)?i={name:\"Maxthon\",maxthon:o,version:e(/(?:mxios)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/epiphany/i.test(t)?i={name:\"Epiphany\",epiphany:o,version:e(/(?:epiphany)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/puffin/i.test(t)?i={name:\"Puffin\",puffin:o,version:e(/(?:puffin)[\\s\\/](\\d+(?:\\.\\d+)?)/i)}:/sleipnir/i.test(t)?i={name:\"Sleipnir\",sleipnir:o,version:e(/(?:sleipnir)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:/k-meleon/i.test(t)?i={name:\"K-Meleon\",kMeleon:o,version:e(/(?:k-meleon)[\\s\\/](\\d+(?:\\.\\d+)+)/i)}:m?(i={name:\"Windows Phone\",osname:\"Windows Phone\",windowsphone:o},b?(i.msedge=o,i.version=b):(i.msie=o,i.version=e(/iemobile\\/(\\d+(\\.\\d+)?)/i))):/msie|trident/i.test(t)?i={name:\"Internet Explorer\",msie:o,version:e(/(?:msie |rv:)(\\d+(\\.\\d+)?)/i)}:c?i={name:\"Chrome\",osname:\"Chrome OS\",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\\/(\\d+(\\.\\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:\"Microsoft Edge\",msedge:o,version:b}:/vivaldi/i.test(t)?i={name:\"Vivaldi\",vivaldi:o,version:e(/vivaldi\\/(\\d+(\\.\\d+)?)/i)||x}:d?i={name:\"Sailfish\",osname:\"Sailfish OS\",sailfish:o,version:e(/sailfish\\s?browser\\/(\\d+(\\.\\d+)?)/i)}:/seamonkey\\//i.test(t)?i={name:\"SeaMonkey\",seamonkey:o,version:e(/seamonkey\\/(\\d+(\\.\\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:\"Firefox\",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \\/](\\d+(\\.\\d+)?)/i)},/\\((mobile|tablet);[^\\)]*rv:[\\d\\.]+\\)/i.test(t)&&(i.firefoxos=o,i.osname=\"Firefox OS\")):h?i={name:\"Amazon Silk\",silk:o,version:e(/silk\\/(\\d+(\\.\\d+)?)/i)}:/phantom/i.test(t)?i={name:\"PhantomJS\",phantom:o,version:e(/phantomjs\\/(\\d+(\\.\\d+)?)/i)}:/slimerjs/i.test(t)?i={name:\"SlimerJS\",slimer:o,version:e(/slimerjs\\/(\\d+(\\.\\d+)?)/i)}:/blackberry|\\bbb\\d+/i.test(t)||/rim\\stablet/i.test(t)?i={name:\"BlackBerry\",osname:\"BlackBerry OS\",blackberry:o,version:x||e(/blackberry[\\d]+\\/(\\d+(\\.\\d+)?)/i)}:p?(i={name:\"WebOS\",osname:\"WebOS\",webos:o,version:x||e(/w(?:eb)?osbrowser\\/(\\d+(\\.\\d+)?)/i)},/touchpad\\//i.test(t)&&(i.touchpad=o)):/bada/i.test(t)?i={name:\"Bada\",osname:\"Bada\",bada:o,version:e(/dolfin\\/(\\d+(\\.\\d+)?)/i)}:f?i={name:\"Tizen\",osname:\"Tizen\",tizen:o,version:e(/(?:tizen\\s?)?browser\\/(\\d+(\\.\\d+)?)/i)||x}:/qupzilla/i.test(t)?i={name:\"QupZilla\",qupzilla:o,version:e(/(?:qupzilla)[\\s\\/](\\d+(?:\\.\\d+)+)/i)||x}:/chromium/i.test(t)?i={name:\"Chromium\",chromium:o,version:e(/(?:chromium)[\\s\\/](\\d+(?:\\.\\d+)?)/i)||x}:/chrome|crios|crmo/i.test(t)?i={name:\"Chrome\",chrome:o,version:e(/(?:chrome|crios|crmo)\\/(\\d+(\\.\\d+)?)/i)}:s?i={name:\"Android\",version:x}:/safari|applewebkit/i.test(t)?(i={name:\"Safari\",safari:o},x&&(i.version=x)):r?(i={name:\"iphone\"==r?\"iPhone\":\"ipad\"==r?\"iPad\":\"iPod\"},x&&(i.version=x)):i=/googlebot/i.test(t)?{name:\"Googlebot\",googlebot:o,version:e(/googlebot\\/(\\d+(\\.\\d+))/i)||x}:{name:e(/^(.*)\\/(.*) /),version:n(/^(.*)\\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\\/537\\.36/i.test(t)?(i.name=i.name||\"Blink\",i.blink=o):(i.name=i.name||\"Webkit\",i.webkit=o),!i.version&&x&&(i.version=x)):!i.opera&&/gecko\\//i.test(t)&&(i.name=i.name||\"Gecko\",i.gecko=o,i.version=i.version||e(/gecko\\/(\\d+(\\.\\d+)?)/i)),i.windowsphone||!s&&!i.silk?!i.windowsphone&&r?(i[r]=o,i.ios=o,i.osname=\"iOS\"):v?(i.mac=o,i.osname=\"macOS\"):M?(i.xbox=o,i.osname=\"Xbox\"):g?(i.windows=o,i.osname=\"Windows\"):y&&(i.linux=o,i.osname=\"Linux\"):(i.android=o,i.osname=\"Android\");var S=\"\";i.windows?S=function(t){switch(t){case\"NT\":return\"NT\";case\"XP\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.1\":return\"XP\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}}(e(/Windows ((NT|XP)( \\d\\d?.\\d)?)/i)):i.windowsphone?S=e(/windows phone (?:os)?\\s?(\\d+(\\.\\d+)*)/i):i.mac?(S=e(/Mac OS X (\\d+([_\\.\\s]\\d+)*)/i),S=S.replace(/[_\\s]/g,\".\")):r?(S=e(/os (\\d+([_\\s]\\d+)*) like mac os x/i),S=S.replace(/[_\\s]/g,\".\")):s?S=e(/android[ \\/-](\\d+(\\.\\d+)*)/i):i.webos?S=e(/(?:web|hpw)os\\/(\\d+(\\.\\d+)*)/i):i.blackberry?S=e(/rim\\stablet\\sos\\s(\\d+(\\.\\d+)*)/i):i.bada?S=e(/bada\\/(\\d+(\\.\\d+)*)/i):i.tizen&&(S=e(/tizen[\\/\\s](\\d+(\\.\\d+)*)/i)),S&&(i.osversion=S);var E=!i.windows&&S.split(\".\")[0];return _||u||\"ipad\"==r||s&&(3==E||E>=4&&!w)||i.silk?i.tablet=o:(w||\"iphone\"==r||\"ipod\"==r||s||l||i.blackberry||i.webos||i.bada)&&(i.mobile=o),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(\".\")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=o:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(\".\")[0]<6||i.chromium&&i.version<20?i.c=o:i.x=o,i}function e(t){return t.split(\".\").length}function n(t,e){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n=0;){if(r[0][i]>r[1][i])return 1;if(r[0][i]!==r[1][i])return-1;if(0===i)return 0}}function r(e,n,r){var a=s;\"string\"==typeof n&&(r=n,n=void 0),void 0===n&&(n=!1),r&&(a=t(r));var o=\"\"+a.version;for(var l in e)if(e.hasOwnProperty(l)&&a[l]){if(\"string\"!=typeof e[l])throw new Error(\"Browser version in the minVersion map should be a string: \"+l+\": \"+String(e));return i([o,e[l]])<0}return n}function a(t,e,n){return!r(t,e,n)}var o=!0,s=t(\"undefined\"!=typeof navigator?navigator.userAgent||\"\":\"\");return s.test=function(t){for(var e=0;e0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&r>0)&&(g+=r));return a=h.getPixelForValue(g),o=h.getPixelForValue(g+f),s=(o-a)/2,{size:s,base:a,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,n){var i,r,o,s,l,u,c=this,h=n.scale.options,d=c.getStackIndex(t),f=n.pixels,p=f[e],m=f.length,g=n.start,v=n.end;return 1===m?(i=p>g?p-g:v-p,r=p0&&(i=(p-f[e-1])/2,e===m-1&&(r=i)),e');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push(\"\");return e.push(\"\"),e.join(\"\")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[i],l=s&&s.custom||{},u=a.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,c.borderWidth),hidden:isNaN(o.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0);var m=p+f,g={x:Math.cos(p),y:Math.sin(p)},v={x:Math.cos(m),y:Math.sin(m)},y=p<=0&&m>=0||p<=2*Math.PI&&2*Math.PI<=m,b=p<=.5*Math.PI&&.5*Math.PI<=m||p<=2.5*Math.PI&&2.5*Math.PI<=m,x=p<=-Math.PI&&-Math.PI<=m||p<=Math.PI&&Math.PI<=m,_=p<=.5*-Math.PI&&.5*-Math.PI<=m||p<=1.5*Math.PI&&1.5*Math.PI<=m,w=d/100,M={x:x?-1:Math.min(g.x*(g.x<0?1:w),v.x*(v.x<0?1:w)),y:_?-1:Math.min(g.y*(g.y<0?1:w),v.y*(v.y<0?1:w))},S={x:y?1:Math.max(g.x*(g.x>0?1:w),v.x*(v.x>0?1:w)),y:b?1:Math.max(g.y*(g.y>0?1:w),v.y*(v.y>0?1:w))},E={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(s/E.width,l/E.height),c={x:-.5*(S.x+M.x),y:-.5*(S.y+M.y)}}n.borderWidth=e.getMaxBorderWidth(h.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,h.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),a.each(h.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,r=i.chart,o=r.chartArea,s=r.options,l=s.animation,u=(o.left+o.right)/2,c=(o.top+o.bottom)/2,h=s.rotation,d=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,g=n&&l.animateScale?0:i.outerRadius,v=a.valueAtIndexOrDefault;a.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+r.offsetX,y:c+r.offsetY,startAngle:h,endAngle:d,circumference:p,outerRadius:g,innerRadius:m,label:v(f.label,e,r.data.labels[e])}});var y=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(y.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return a.each(n.data,function(n,r){t=e.data[r],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,r=this.index,a=t.length,o=0;oi?e:i,i=n>i?n:i;return i}})}},function(t,e,n){\"use strict\";var i=n(9),r=n(33),a=n(6);i._set(\"line\",{showLines:!0,spanGaps:!1,hover:{mode:\"label\"},scales:{xAxes:[{type:\"category\",id:\"x-axis-0\"}],yAxes:[{type:\"linear\",id:\"y-axis-0\"}]}}),t.exports=function(t){function e(t,e){return a.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(t){var n,i,r,o=this,s=o.getMeta(),l=s.dataset,u=s.data||[],c=o.chart.options,h=c.elements.line,d=o.getScaleForId(s.yAxisID),f=o.getDataset(),p=e(f,c);for(p&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=d,l._datasetIndex=o.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:r.tension?r.tension:a.valueOrDefault(f.lineTension,h.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||h.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||h.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||h.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||h.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||h.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||h.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||h.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:h.fill,steppedLine:r.steppedLine?r.steppedLine:a.valueOrDefault(f.steppedLine,h.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:a.valueOrDefault(f.cubicInterpolationMode,h.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var a=0;a'),r[a]&&e.push(r[a]),e.push(\"\");return e.push(\"\"),e.join(\"\")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),o=e.datasets[0],s=r.data[i],l=s.custom||{},u=a.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,c.borderWidth),hidden:isNaN(o.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,a=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},function(t,e,n){\"use strict\";var i=n(9),r=n(33),a=n(6);i._set(\"radar\",{scale:{type:\"radialLinear\"},elements:{line:{tension:0}}}),t.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,linkScales:a.noop,update:function(t){var e=this,n=e.getMeta(),i=n.dataset,r=n.data,o=i.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),a.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:r,_loop:!0,_model:{tension:o.tension?o.tension:a.valueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),a.each(r,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,r=t.custom||{},o=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),a.extend(t,{_datasetIndex:i.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:r.tension?r.tension:a.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:r.radius?r.radius:a.valueAtIndexOrDefault(o.pointRadius,e,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:a.valueAtIndexOrDefault(o.pointBackgroundColor,e,l.backgroundColor),borderColor:r.borderColor?r.borderColor:a.valueAtIndexOrDefault(o.pointBorderColor,e,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:a.valueAtIndexOrDefault(o.pointBorderWidth,e,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:a.valueAtIndexOrDefault(o.pointStyle,e,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:a.valueAtIndexOrDefault(o.pointHitRadius,e,l.hitRadius)}}),t._model.skip=r.skip?r.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();a.each(e.data,function(n,i){var r=n._model,o=a.splineCurve(a.previousItem(e.data,i,!0)._model,r,a.nextItem(e.data,i,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),r.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),r.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),r.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model;r.radius=n.hoverRadius?n.hoverRadius:a.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:a.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,a.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:a.valueAtIndexOrDefault(e.pointHoverBorderColor,i,a.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:a.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,r.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model,o=this.chart.options.elements.point;r.radius=n.radius?n.radius:a.valueAtIndexOrDefault(e.pointRadius,i,o.radius),r.backgroundColor=n.backgroundColor?n.backgroundColor:a.valueAtIndexOrDefault(e.pointBackgroundColor,i,o.backgroundColor),r.borderColor=n.borderColor?n.borderColor:a.valueAtIndexOrDefault(e.pointBorderColor,i,o.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:a.valueAtIndexOrDefault(e.pointBorderWidth,i,o.borderWidth)}})}},function(t,e,n){\"use strict\";n(9)._set(\"scatter\",{hover:{mode:\"single\"},scales:{xAxes:[{id:\"x-axis-1\",type:\"linear\",position:\"bottom\"}],yAxes:[{id:\"y-axis-1\",type:\"linear\",position:\"left\"}]},showLines:!1,tooltips:{callbacks:{title:function(){return\"\"},label:function(t){return\"(\"+t.xLabel+\", \"+t.yLabel+\")\"}}}}),t.exports=function(t){t.controllers.scatter=t.controllers.line}},function(t,e,n){\"use strict\";var i=n(9),r=n(20),a=n(6);i._set(\"global\",{animation:{duration:1e3,easing:\"easeOutQuart\",onProgress:a.noop,onComplete:a.noop}}),t.exports=function(t){t.Animation=r.extend({chart:null,currentStep:0,numSteps:60,easing:\"\",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var r,a,o=this.animations;for(e.chart=t,i||(t.animating=!0),r=0,a=o.length;r1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,r=0;r=e.numSteps?(a.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(r,1)):++r}},Object.defineProperty(t.Animation.prototype,\"animationObject\",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,\"chartInstance\",{get:function(){return this.chart},set:function(t){this.chart=t}})}},function(t,e,n){\"use strict\";var i=n(9),r=n(6),a=n(119),o=n(120);t.exports=function(t){function e(t){t=t||{};var e=t.data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=r.configMerge(i.global,i[t.type],t.options||{}),t}function n(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function s(t){return\"top\"===t||\"bottom\"===t}var l=t.plugins;t.types={},t.instances={},t.controllers={},r.extend(t.prototype,{construct:function(n,i){var a=this;i=e(i);var s=o.acquireContext(n,i),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;if(a.id=r.uid(),a.ctx=s,a.canvas=l,a.config=i,a.width=c,a.height=u,a.aspectRatio=u?c/u:null,a.options=i.options,a._bufferedRender=!1,a.chart=a,a.controller=a,t.instances[a.id]=a,Object.defineProperty(a,\"data\",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),!s||!l)return void console.error(\"Failed to create chart: can't acquire context from the given item\");a.initialize(),a.update()},initialize:function(){var t=this;return l.notify(t,\"beforeInit\"),r.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,\"afterInit\"),t},clear:function(){return r.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(r.getMaximumWidth(i))),s=Math.max(0,Math.floor(a?o/a:r.getMaximumHeight(i)));if((e.width!==o||e.height!==s)&&(i.width=e.width=o,i.height=e.height=s,i.style.width=o+\"px\",i.style.height=s+\"px\",r.retinaScale(e,n.devicePixelRatio),!t)){var u={width:o,height:s};l.notify(e,\"resize\",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;r.each(e.xAxes,function(t,e){t.id=t.id||\"x-axis-\"+e}),r.each(e.yAxes,function(t,e){t.id=t.id||\"y-axis-\"+e}),n&&(n.id=n.id||\"scale\")},buildScales:function(){var e=this,n=e.options,i=e.scales={},a=[];n.scales&&(a=a.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:\"category\",dposition:\"bottom\"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:\"linear\",dposition:\"left\"}}))),n.scale&&a.push({options:n.scale,dtype:\"radialLinear\",isDefault:!0,dposition:\"chartArea\"}),r.each(a,function(n){var a=n.options,o=r.valueOrDefault(a.type,n.dtype),l=t.scaleService.getScaleConstructor(o);if(l){s(a.position)!==s(n.dposition)&&(a.position=n.dposition);var u=new l({id:a.id,options:a,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return r.each(e.data.datasets,function(r,a){var o=e.getDatasetMeta(a),s=r.type||e.config.type;if(o.type&&o.type!==s&&(e.destroyDatasetMeta(a),o=e.getDatasetMeta(a)),o.type=s,n.push(o.type),o.controller)o.controller.updateIndex(a);else{var l=t.controllers[o.type];if(void 0===l)throw new Error('\"'+o.type+'\" is not a chart type.');o.controller=new l(e,a),i.push(o.controller)}},e),i},resetElements:function(){var t=this;r.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&\"object\"==typeof t||(t={duration:t,lazy:arguments[1]}),n(e),!1!==l.notify(e,\"beforeUpdate\")){e.tooltip._data=e.data;var i=e.buildOrUpdateControllers();r.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()},e),e.updateLayout(),r.each(i,function(t){t.reset()}),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],l.notify(e,\"afterUpdate\"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==l.notify(e,\"beforeLayout\")&&(t.layoutService.update(this,this.width,this.height),l.notify(e,\"afterScaleUpdate\"),l.notify(e,\"afterLayout\"))},updateDatasets:function(){var t=this;if(!1!==l.notify(t,\"beforeDatasetsUpdate\")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,\"afterDatasetsDraw\",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),r={meta:i,index:t,easingValue:e};!1!==l.notify(n,\"beforeDatasetDraw\",[r])&&(i.controller.draw(e),l.notify(n,\"afterDatasetDraw\",[r]))},_drawTooltip:function(t){var e=this,n=e.tooltip,i={tooltip:n,easingValue:t};!1!==l.notify(e,\"beforeTooltipDraw\",[i])&&(n.draw(),l.notify(e,\"afterTooltipDraw\",[i]))},getElementAtEvent:function(t){return a.modes.single(this,t)},getElementsAtEvent:function(t){return a.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return a.modes[\"x-axis\"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=a.modes[e];return\"function\"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return a.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(r.forEach(function(e){delete t[e]}),delete t._chartjs)}}var r=[\"push\",\"pop\",\"shift\",\"splice\",\"unshift\"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),r=n.getDataset().data||[],a=i.data;for(t=0,e=r.length;ti&&t.insertElements(i,r-i)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][o].type||l.type&&l.type!==n[e][o].type?a.merge(n[e][o],[t.scaleService.getScaleDefaults(s),l]):a.merge(n[e][o],l)}else a._merger(e,n,i,r)}})},a.where=function(t,e){if(a.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return a.each(t,function(t){e(t)&&n.push(t)}),n},a.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,r=t.length;i=0;i--){var r=t[i];if(e(r))return r}},a.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a.almostEquals=function(t,e,n){return Math.abs(t-e)t},a.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},a.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},a.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},a.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},a.toRadians=function(t){return t*(Math.PI/180)},a.toDegrees=function(t){return t*(180/Math.PI)},a.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},a.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.aliasPixel=function(t){return t%2==0?0:.5},a.splineCurve=function(t,e,n,i){var r=t.skip?e:t,a=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;var h=i*u,d=i*c;return{previous:{x:a.x-h*(o.x-r.x),y:a.y-h*(o.y-r.y)},next:{x:a.x+d*(o.x-r.x),y:a.y+d*(o.y-r.y)}}},a.EPSILON=Number.EPSILON||1e-14,a.splineCurveMonotone=function(t){var e,n,i,r,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,(r=e0?o[e-1]:null,r=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},a.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},a.niceNum=function(t,e){var n=Math.floor(a.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},a.requestAnimFrame=function(){return\"undefined\"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),a.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=r.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=r.clientX,i=r.clientY);var u=parseFloat(a.getStyle(o,\"padding-left\")),c=parseFloat(a.getStyle(o,\"padding-top\")),h=parseFloat(a.getStyle(o,\"padding-right\")),d=parseFloat(a.getStyle(o,\"padding-bottom\")),f=s.right-s.left-u-h,p=s.bottom-s.top-c-d;return n=Math.round((n-s.left-u)/f*o.width/e.currentDevicePixelRatio),i=Math.round((i-s.top-c)/p*o.height/e.currentDevicePixelRatio),{x:n,y:i}},a.getConstraintWidth=function(t){return o(t,\"max-width\",\"clientWidth\")},a.getConstraintHeight=function(t){return o(t,\"max-height\",\"clientHeight\")},a.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(a.getStyle(e,\"padding-left\"),10),i=parseInt(a.getStyle(e,\"padding-right\"),10),r=e.clientWidth-n-i,o=a.getConstraintWidth(t);return isNaN(o)?r:Math.min(r,o)},a.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(a.getStyle(e,\"padding-top\"),10),i=parseInt(a.getStyle(e,\"padding-bottom\"),10),r=e.clientHeight-n-i,o=a.getConstraintHeight(t);return isNaN(o)?r:Math.min(r,o)},a.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},a.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,r=t.height,a=t.width;i.height=r*n,i.width=a*n,t.ctx.scale(n,n),i.style.height=r+\"px\",i.style.width=a+\"px\"}},a.fontString=function(t,e,n){return e+\" \"+t+\"px \"+n},a.longestText=function(t,e,n,i){i=i||{};var r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),t.font=e;var s=0;a.each(n,function(e){void 0!==e&&null!==e&&!0!==a.isArray(e)?s=a.measureText(t,r,o,s,e):a.isArray(e)&&a.each(e,function(e){void 0===e||null===e||a.isArray(e)||(s=a.measureText(t,r,o,s,e))})});var l=o.length/2;if(l>n.length){for(var u=0;ui&&(i=a),i},a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t)&&t.length>e&&(e=t.length)}),e},a.color=i?function(t){return t instanceof CanvasGradient&&(t=r.global.defaultColor),i(t)}:function(t){return console.error(\"Color.js not found!\"),t},a.getHoverColor=function(t){return t instanceof CanvasPattern?t:a.color(t).saturate(.5).darken(.1).rgbString()}}},function(t,e,n){\"use strict\";n(9)._set(\"global\",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],hover:{onHover:null,mode:\"nearest\",intersect:!0,animationDuration:400},onClick:null,defaultColor:\"rgba(0,0,0,0.1)\",defaultFontColor:\"#666\",defaultFontFamily:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",defaultFontSize:12,defaultFontStyle:\"normal\",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),t.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},function(t,e,n){\"use strict\";var i=n(6);t.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,r=e?t:n;return i.weight===r.weight?i._tmpIndex_-r._tmpIndex_:i.weight-r.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||\"top\",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,r=[\"fullWidth\",\"position\",\"weight\"],a=r.length,o=0;od&&lt.maxHeight){l--;break}l++,h=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,r=t.minSize={width:0,height:0},a=i(t._ticks),o=t.options,u=o.ticks,c=o.scaleLabel,h=o.gridLines,d=o.display,f=t.isHorizontal(),p=n(u),m=o.gridLines.tickMarkLength;if(r.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:d&&h.drawTicks?m:0,r.height=f?d&&h.drawTicks?m:0:t.maxHeight,c.display&&d){var g=l(c),v=s.options.toPadding(c.padding),y=g+v.height;f?r.height+=y:r.width+=y}if(u.display&&d){var b=s.longestText(t.ctx,p.font,a,t.longestTextCache),x=s.numberOfLabelLines(a),_=.5*p.size,w=t.options.ticks.padding;if(f){t.longestLabelWidth=b;var M=s.toRadians(t.labelRotation),S=Math.cos(M),E=Math.sin(M),k=E*b+p.size*x+_*(x-1)+_;r.height=Math.min(t.maxHeight,r.height+k+w),t.ctx.font=p.font;var T=e(t.ctx,a[0],p.font),C=e(t.ctx,a[a.length-1],p.font);0!==t.labelRotation?(t.paddingLeft=\"bottom\"===o.position?S*T+3:S*_+3,t.paddingRight=\"bottom\"===o.position?S*_+3:S*C+3):(t.paddingLeft=T/2+3,t.paddingRight=C/2+3)}else u.mirror?b=0:b+=w+_,r.width=Math.min(t.maxWidth,r.width+b),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=r.width,t.height=r.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if(\"number\"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),r=i/Math.max(e._ticks.length-(n?0:1),1),a=r*t+e.paddingLeft;n&&(a+=r/2);var o=e.left+Math.round(a);return o+=e.isFullWidth()?e.margins.left:0}var s=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(s/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=e.width-(e.paddingLeft+e.paddingRight),i=n*t+e.paddingLeft,r=e.left+Math.round(i);return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,r,a,o=this,l=o.isHorizontal(),u=o.options.ticks.minor,c=t.length,h=s.toRadians(o.labelRotation),d=Math.cos(h),f=o.longestLabelWidth*d,p=[];for(u.maxTicksLimit&&(a=u.maxTicksLimit),l&&(e=!1,(f+u.autoSkipPadding)*c>o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((f+u.autoSkipPadding)*c/(o.width-(o.paddingLeft+o.paddingRight)))),a&&c>a&&(e=Math.max(e,Math.floor(c/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=c,r&&n!==c-1&&delete i.label,p.push(i);return p},draw:function(t){var e=this,i=e.options;if(i.display){var o=e.ctx,u=a.global,c=i.ticks.minor,h=i.ticks.major||c,d=i.gridLines,f=i.scaleLabel,p=0!==e.labelRotation,m=e.isHorizontal(),g=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=s.valueOrDefault(c.fontColor,u.defaultFontColor),y=n(c),b=s.valueOrDefault(h.fontColor,u.defaultFontColor),x=n(h),_=d.drawTicks?d.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),M=n(f),S=s.options.toPadding(f.padding),E=s.toRadians(e.labelRotation),k=[],T=\"right\"===i.position?e.left:e.right-_,C=\"right\"===i.position?e.left+_:e.right,P=\"bottom\"===i.position?e.top:e.bottom-_,O=\"bottom\"===i.position?e.top+_:e.bottom;if(s.each(g,function(n,a){if(!s.isNullOrUndef(n.label)){var o,l,h,f,v=n.label;a===e.zeroLineIndex&&i.offset===d.offsetGridLines?(o=d.zeroLineWidth,l=d.zeroLineColor,h=d.zeroLineBorderDash,f=d.zeroLineBorderDashOffset):(o=s.valueAtIndexOrDefault(d.lineWidth,a),l=s.valueAtIndexOrDefault(d.color,a),h=s.valueOrDefault(d.borderDash,u.borderDash),f=s.valueOrDefault(d.borderDashOffset,u.borderDashOffset));var y,b,x,w,M,S,A,R,L,I,D=\"middle\",N=\"middle\",z=c.padding;if(m){var B=_+z;\"bottom\"===i.position?(N=p?\"middle\":\"top\",D=p?\"right\":\"center\",I=e.top+B):(N=p?\"middle\":\"bottom\",D=p?\"left\":\"center\",I=e.bottom-B);var F=r(e,a,d.offsetGridLines&&g.length>1);F1);W0){var a=t[0];a.xLabel?n=a.xLabel:r>0&&a.indexi.height-e.height&&(o=\"bottom\");var s,l,u,c,h,d=(r.left+r.right)/2,f=(r.top+r.bottom)/2;\"center\"===o?(s=function(t){return t<=d},l=function(t){return t>d}):(s=function(t){return t<=e.width/2},l=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},c=function(t){return t-e.width<0},h=function(t){return t<=f?\"top\":\"bottom\"},s(n.x)?(a=\"left\",u(n.x)&&(a=\"center\",o=h(n.y))):l(n.x)&&(a=\"right\",c(n.x)&&(a=\"center\",o=h(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:a,yAlign:p.yAlign?p.yAlign:o}}function c(t,e,n){var i=t.x,r=t.y,a=t.caretSize,o=t.caretPadding,s=t.cornerRadius,l=n.xAlign,u=n.yAlign,c=a+o,h=s+o;return\"right\"===l?i-=e.width:\"center\"===l&&(i-=e.width/2),\"top\"===u?r+=c:r-=\"bottom\"===u?e.height+c:e.height/2,\"center\"===u?\"left\"===l?i+=c:\"right\"===l&&(i-=c):\"left\"===l?i-=h:\"right\"===l&&(i+=h),{x:i,y:r}}t.Tooltip=r.extend({initialize:function(){this._model=s(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,i=e.callbacks,r=i.beforeTitle.apply(t,arguments),a=i.title.apply(t,arguments),o=i.afterTitle.apply(t,arguments),s=[];return s=n(s,r),s=n(s,a),s=n(s,o)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,r=i._options.callbacks,o=[];return a.each(t,function(t){var a={before:[],lines:[],after:[]};n(a.before,r.beforeLabel.call(i,t,e)),n(a.lines,r.label.call(i,t,e)),n(a.after,r.afterLabel.call(i,t,e)),o.push(a)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return a.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,i=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),a=e.afterFooter.apply(t,arguments),o=[];return o=n(o,i),o=n(o,r),o=n(o,a)},update:function(e){var n,i,r=this,h=r._options,d=r._model,f=r._model=s(h),p=r._active,m=r._data,g={xAlign:d.xAlign,yAlign:d.yAlign},v={x:d.x,y:d.y},y={width:d.width,height:d.height},b={x:d.caretX,y:d.caretY};if(p.length){f.opacity=1;var x=[],_=[];b=t.Tooltip.positioners[h.position].call(r,p,r._eventPosition);var w=[];for(n=0,i=p.length;n0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity,a=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&a&&(this.drawBackground(i,e,t,n,r),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,r),this.drawBody(i,e,t,r),this.drawFooter(i,e,t,r))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],\"mouseout\"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(i=!a.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var r=e._model;e.update(!0),e.pivot(),i|=r.x!==e._model.x||r.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,r=0,a=0;for(e=0,n=t.length;el;)r-=2*Math.PI;for(;r=s&&r<=l,c=o>=n.innerRadius&&o<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin=\"bevel\",e.borderWidth&&t.stroke()}})},function(t,e,n){\"use strict\";var i=n(9),r=n(20),a=n(6),o=i.global;i._set(\"global\",{elements:{line:{tension:.4,backgroundColor:o.defaultColor,borderWidth:3,borderColor:o.defaultColor,borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",capBezierPoints:!0,fill:!0}}}),t.exports=r.extend({draw:function(){var t,e,n,i,r=this,s=r._view,l=r._chart.ctx,u=s.spanGaps,c=r._children.slice(),h=o.elements.line,d=-1;for(r._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||h.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||h.borderDash),l.lineDashOffset=s.borderDashOffset||h.borderDashOffset,l.lineJoin=s.borderJoinStyle||h.borderJoinStyle,l.lineWidth=s.borderWidth||h.borderWidth,l.strokeStyle=s.borderColor||o.defaultColor,l.beginPath(),d=-1,t=0;te?1:-1,o=1,s=u.borderSkipped||\"left\"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=u.base,a=1,o=r>i?1:-1,s=u.borderSkipped||\"bottom\"),c){var h=Math.min(Math.abs(e-n),Math.abs(i-r));c=c>h?h:c;var d=c/2,f=e+(\"left\"!==s?d*a:0),p=n+(\"right\"!==s?-d*a:0),m=i+(\"top\"!==s?d*o:0),g=r+(\"bottom\"!==s?-d*o:0);f!==p&&(i=m,r=g),m!==g&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var v=[[e,r],[e,i],[n,i],[n,r]],y=[\"bottom\",\"left\",\"top\",\"right\"],b=y.indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var _=1;_<4;_++)x=t(_),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=r(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var a=r(n);return i(n)?t>=a.left&&t<=a.right:e>=a.top&&e<=a.bottom},inXRange:function(t){var e=r(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=r(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return i(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},function(t,e,n){\"use strict\";var i=n(61),e=t.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,r,a){if(a){var o=Math.min(a,i/2),s=Math.min(a,r/2);t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+s),t.lineTo(e+i,n+r-s),t.quadraticCurveTo(e+i,n+r,e+i-o,n+r),t.lineTo(e+o,n+r),t.quadraticCurveTo(e,n+r,e,n+r-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+o,n)}else t.rect(e,n,i,r)},drawPoint:function(t,e,n,i,r){var a,o,s,l,u,c;if(e&&\"object\"==typeof e&&(\"[object HTMLImageElement]\"===(a=e.toString())||\"[object HTMLCanvasElement]\"===a))return void t.drawImage(e,i-e.width/2,r-e.height/2,e.width,e.height);if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,r,n,0,2*Math.PI),t.closePath(),t.fill();break;case\"triangle\":t.beginPath(),o=3*n/Math.sqrt(3),u=o*Math.sqrt(3)/2,t.moveTo(i-o/2,r+u/3),t.lineTo(i+o/2,r+u/3),t.lineTo(i,r-2*u/3),t.closePath(),t.fill();break;case\"rect\":c=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-c,r-c,2*c,2*c),t.strokeRect(i-c,r-c,2*c,2*c);break;case\"rectRounded\":var h=n/Math.SQRT2,d=i-h,f=r-h,p=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,f,p,p,n/2),t.closePath(),t.fill();break;case\"rectRot\":c=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-c,r),t.lineTo(i,r+c),t.lineTo(i+c,r),t.lineTo(i,r-c),t.closePath(),t.fill();break;case\"cross\":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case\"crossRot\":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case\"star\":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case\"line\":t.beginPath(),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case\"dash\":t.beginPath(),t.moveTo(i,r),t.lineTo(i+n,r),t.closePath()}t.stroke()}},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){return n.steppedLine?(\"after\"===n.steppedLine&&!i||\"after\"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y)):n.tension?void t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):void t.lineTo(n.x,n.y)}};i.clear=e.clear,i.drawRoundedRectangle=function(t){t.beginPath(),e.roundedRect.apply(e,arguments),t.closePath()}},function(t,e,n){\"use strict\";var i=n(61),r={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-r.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*r.easeInBounce(2*t):.5*r.easeOutBounce(2*t-1)+.5}};t.exports={effects:r},i.easingEffects=r},function(t,e,n){\"use strict\";var i=n(61);t.exports={toLineHeight:function(t,e){var n=(\"\"+t).match(/^(normal|(\\d+(?:\\.\\d+)?)(px|em|%)?)$/);if(!n||\"normal\"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case\"px\":return t;case\"%\":t/=100}return e*t},toPadding:function(t){var e,n,r,a;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,r=+t.bottom||0,a=+t.left||0):e=n=r=a=+t||0,{top:e,right:n,bottom:r,left:a,height:e+r,width:a+n}},resolve:function(t,e,n){var r,a,o;for(r=0,a=t.length;r
';var r=e.childNodes[0],o=e.childNodes[1];e._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var s=function(){e._reset(),t()};return a(r,\"scroll\",s.bind(r,\"expand\")),a(o,\"scroll\",s.bind(o,\"shrink\")),e}function h(t,e){var n=t[v]||(t[v]={}),i=n.renderProxy=function(t){t.animationName===x&&e()};g.each(_,function(e){a(t,e,i)}),n.reflow=!!t.offsetParent,t.classList.add(b)}function d(t){var e=t[v]||{},n=e.renderProxy;n&&(g.each(_,function(e){o(t,e,n)}),delete e.renderProxy),t.classList.remove(b)}function f(t,e,n){var i=t[v]||(t[v]={}),r=i.resizer=c(u(function(){if(i.resizer)return e(s(\"resize\",n))}));h(t,function(){if(i.resizer){var e=t.parentNode;e&&e!==r.parentNode&&e.insertBefore(r,e.firstChild),r._reset()}})}function p(t){var e=t[v]||{},n=e.resizer;delete e.resizer,d(t),n&&n.parentNode&&n.parentNode.removeChild(n)}function m(t,e){var n=t._style||document.createElement(\"style\");t._style||(t._style=n,e=\"/* Chart.js */\\n\"+e,n.setAttribute(\"type\",\"text/css\"),document.getElementsByTagName(\"head\")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}var g=n(6),v=\"$chartjs\",y=\"chartjs-\",b=y+\"render-monitor\",x=y+\"render-animation\",_=[\"animationstart\",\"webkitAnimationStart\"],w={touchstart:\"mousedown\",touchmove:\"mousemove\",touchend:\"mouseup\",pointerenter:\"mouseenter\",pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointerleave:\"mouseout\",pointerout:\"mouseout\"},M=function(){var t=!1;try{var e=Object.defineProperty({},\"passive\",{get:function(){t=!0}});window.addEventListener(\"e\",null,e)}catch(t){}return t}(),S=!!M&&{passive:!0};t.exports={_enabled:\"undefined\"!=typeof window&&\"undefined\"!=typeof document,initialize:function(){var t=\"from{opacity:0.99}to{opacity:1}\";m(this,\"@-webkit-keyframes \"+x+\"{\"+t+\"}@keyframes \"+x+\"{\"+t+\"}.\"+b+\"{-webkit-animation:\"+x+\" 0.001s;animation:\"+x+\" 0.001s;}\")},acquireContext:function(t,e){\"string\"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext(\"2d\");return n&&n.canvas===t?(r(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[v]){var n=e[v].initial;[\"height\",\"width\"].forEach(function(t){var i=n[t];g.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)}),g.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[v]}},addEventListener:function(t,e,n){var i=t.canvas;if(\"resize\"===e)return void f(i,n,t);var r=n[v]||(n[v]={});a(i,e,(r.proxies||(r.proxies={}))[t.id+\"_\"+e]=function(e){n(l(e,t))})},removeEventListener:function(t,e,n){var i=t.canvas;if(\"resize\"===e)return void p(i);var r=n[v]||{},a=r.proxies||{},s=a[t.id+\"_\"+e];s&&o(i,e,s)}},g.addEvent=a,g.removeEvent=o},function(t,e,n){\"use strict\";var i=n(9),r=n(33),a=n(6);i._set(\"global\",{plugins:{filler:{propagate:!0}}}),t.exports=function(){function t(t,e,n){var i,r=t._model||{},a=r.fill;if(void 0===a&&(a=!!r.backgroundColor),!1===a||null===a)return!1;if(!0===a)return\"origin\";if(i=parseFloat(a,10),isFinite(i)&&Math.floor(i)===i)return\"-\"!==a[0]&&\"+\"!==a[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(a){case\"bottom\":return\"start\";case\"top\":return\"end\";case\"zero\":return\"origin\";case\"origin\":case\"start\":case\"end\":return a;default:return!1}}function e(t){var e,n=t.el._model||{},i=t.el._scale||{},r=t.fill,a=null;if(isFinite(r))return null;if(\"start\"===r?a=void 0===n.scaleBottom?i.bottom:n.scaleBottom:\"end\"===r?a=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:i.getBasePosition?a=i.getBasePosition():i.getBasePixel&&(a=i.getBasePixel()),void 0!==a&&null!==a){if(void 0!==a.x&&void 0!==a.y)return a;if(\"number\"==typeof a&&isFinite(a))return e=i.isHorizontal(),{x:e?a:null,y:e?null:a}}return null}function n(t,e,n){var i,r=t[e],a=r.fill,o=[e];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;o.push(a),a=i.fill}return!1}function o(t){var e=t.fill,n=\"dataset\";return!1===e?null:(isFinite(e)||(n=\"boundary\"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,i,r){var o;if(i&&r){for(t.moveTo(e[0].x,e[0].y),o=1;o0;--o)a.canvas.lineTo(t,n[o],n[o-1],!0)}}function u(t,e,n,i,r,a){var o,u,c,h,d,f,p,m=e.length,g=i.spanGaps,v=[],y=[],b=0,x=0;for(t.beginPath(),o=0,u=m+!!a;o');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push(\"\");return e.push(\"\"),e.join(\"\")}}),t.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var i=new t.Legend({ctx:e.ctx,options:n,chart:e});o.configure(e,i,n),o.addBox(e,i),e.legend=i}var o=t.layoutService,s=a.noop;return t.Legend=r.extend({initialize:function(t){a.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=a.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,r=n.labels,o=n.display,s=t.ctx,l=i.global,u=a.valueOrDefault,c=u(r.fontSize,l.defaultFontSize),h=u(r.fontStyle,l.defaultFontStyle),d=u(r.fontFamily,l.defaultFontFamily),f=a.fontString(c,h,d),p=t.legendHitBoxes=[],m=t.minSize,g=t.isHorizontal();if(g?(m.width=t.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=t.maxHeight),o)if(s.font=f,g){var v=t.lineWidths=[0],y=t.legendItems.length?c+r.padding:0;s.textAlign=\"left\",s.textBaseline=\"top\",a.each(t.legendItems,function(n,i){var a=e(r,c),o=a+c/2+s.measureText(n.text).width;v[v.length-1]+o+r.padding>=t.width&&(y+=c+r.padding,v[v.length]=t.left),p[i]={left:0,top:0,width:o,height:c},v[v.length-1]+=o+r.padding}),m.height+=y}else{var b=r.padding,x=t.columnWidths=[],_=r.padding,w=0,M=0,S=c+b;a.each(t.legendItems,function(t,n){var i=e(r,c),a=i+c/2+s.measureText(t.text).width;M+S>m.height&&(_+=w+r.padding,x.push(w),w=0,M=0),w=Math.max(w,a),M+=S,p[n]={left:0,top:0,width:a,height:c}}),_+=w,x.push(w),m.width+=_}t.width=m.width,t.height=m.height},afterFit:s,isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},draw:function(){var t=this,n=t.options,r=n.labels,o=i.global,s=o.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,h=t.ctx,d=a.valueOrDefault,f=d(r.fontColor,o.defaultFontColor),p=d(r.fontSize,o.defaultFontSize),m=d(r.fontStyle,o.defaultFontStyle),g=d(r.fontFamily,o.defaultFontFamily),v=a.fontString(p,m,g);h.textAlign=\"left\",h.textBaseline=\"middle\",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=v;var y=e(r,p),b=t.legendHitBoxes,x=function(t,e,i){if(!(isNaN(y)||y<=0)){h.save(),h.fillStyle=d(i.fillStyle,o.defaultColor),h.lineCap=d(i.lineCap,s.borderCapStyle),h.lineDashOffset=d(i.lineDashOffset,s.borderDashOffset),h.lineJoin=d(i.lineJoin,s.borderJoinStyle),h.lineWidth=d(i.lineWidth,s.borderWidth),h.strokeStyle=d(i.strokeStyle,o.defaultColor);var r=0===d(i.lineWidth,s.borderWidth);if(h.setLineDash&&h.setLineDash(d(i.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;a.canvas.drawPoint(h,i.pointStyle,l,c,f)}else r||h.strokeRect(t,e,y,p),h.fillRect(t,e,y,p);h.restore()}},_=function(t,e,n,i){var r=p/2,a=y+r+t,o=e+r;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(a+i,o),h.stroke())},w=t.isHorizontal();c=w?{x:t.left+(l-u[0])/2,y:t.top+r.padding,line:0}:{x:t.left+r.padding,y:t.top+r.padding,line:0};var M=p+r.padding;a.each(t.legendItems,function(e,n){var i=h.measureText(e.text).width,a=y+p/2+i,o=c.x,s=c.y;w?o+a>=l&&(s=c.y+=M,c.line++,o=c.x=t.left+(l-u[c.line])/2):s+M>t.bottom&&(o=c.x=o+t.columnWidths[c.line]+r.padding,s=c.y=t.top+r.padding,c.line++),x(o,s,e),b[n].left=o,b[n].top=s,_(o,s,e,i),w?c.x+=a+r.padding:c.y+=M})}},handleEvent:function(t){var e=this,n=e.options,i=\"mouseup\"===t.type?\"click\":t.type,r=!1;if(\"mousemove\"===i){if(!n.onHover)return}else{if(\"click\"!==i)return;if(!n.onClick)return}var a=t.x,o=t.y;if(a>=e.left&&a<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&a<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if(\"click\"===i){n.onClick.call(e,t.native,e.legendItems[l]),r=!0;break}if(\"mousemove\"===i){n.onHover.call(e,t.native,e.legendItems[l]),r=!0;break}}}return r}}),{id:\"legend\",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,r=t.legend;e?(a.mergeIf(e,i.global.legend),r?(o.configure(t,r,e),r.options=e):n(t,e)):r&&(o.removeBox(t,r),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},function(t,e,n){\"use strict\";var i=n(9),r=n(20),a=n(6);i._set(\"global\",{title:{display:!1,fontStyle:\"bold\",fullWidth:!0,lineHeight:1.2,padding:10,position:\"top\",text:\"\",weight:2e3}}),t.exports=function(t){function e(e,i){var r=new t.Title({ctx:e.ctx,options:i,chart:e});n.configure(e,r,i),n.addBox(e,r),e.titleBlock=r}var n=t.layoutService,o=a.noop;return t.Title=r.extend({initialize:function(t){var e=this;a.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:o,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:o,afterBuildLabels:o,beforeFit:o,fit:function(){var t=this,e=a.valueOrDefault,n=t.options,r=n.display,o=e(n.fontSize,i.global.defaultFontSize),s=t.minSize,l=a.isArray(n.text)?n.text.length:1,u=a.options.toLineHeight(n.lineHeight,o),c=r?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:o,isHorizontal:function(){var t=this.options.position;return\"top\"===t||\"bottom\"===t},draw:function(){var t=this,e=t.ctx,n=a.valueOrDefault,r=t.options,o=i.global;if(r.display){var s,l,u,c=n(r.fontSize,o.defaultFontSize),h=n(r.fontStyle,o.defaultFontStyle),d=n(r.fontFamily,o.defaultFontFamily),f=a.fontString(c,h,d),p=a.options.toLineHeight(r.lineHeight,c),m=p/2+r.padding,g=0,v=t.top,y=t.left,b=t.bottom,x=t.right;e.fillStyle=n(r.fontColor,o.defaultFontColor),e.font=f,t.isHorizontal()?(l=y+(x-y)/2,u=v+m,s=x-y):(l=\"left\"===r.position?y+m:x-m,u=v+(b-v)/2,s=b-v,g=Math.PI*(\"left\"===r.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(g),e.textAlign=\"center\",e.textBaseline=\"middle\";var _=r.text;if(a.isArray(_))for(var w=0,M=0;M<_.length;++M)e.fillText(_[M],0,w,s),w+=p;else e.fillText(_,0,0,s);e.restore()}}}),{id:\"title\",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(r){var o=r.options.title,s=r.titleBlock;o?(a.mergeIf(o,i.global.title),s?(n.configure(r,s,o),s.options=o):e(r,o)):s&&(t.layoutService.removeBox(r,s),delete r.titleBlock)}}}},function(t,e,n){\"use strict\";t.exports=function(t){var e={position:\"bottom\"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,e=t.getLabels();t.minIndex=0,t.maxIndex=e.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=e[t.minIndex],t.max=e[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,r=n.isHorizontal();return i.yLabels&&!r?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,i=this,r=i.options.offset,a=Math.max(i.maxIndex+1-i.minIndex-(r?0:1),1);if(void 0!==t&&null!==t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var o=i.getLabels();t=n||t;var s=o.indexOf(t);e=-1!==s?s:e}if(i.isHorizontal()){var l=i.width/a,u=l*(e-i.minIndex);return r&&(u+=l/2),i.left+Math.round(u)}var c=i.height/a,h=c*(e-i.minIndex);return r&&(h+=c/2),i.top+Math.round(h)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,i=Math.max(e._ticks.length-(n?0:1),1),r=e.isHorizontal(),a=(r?e.width:e.height)/i;return t-=r?e.left:e.top,n&&(t-=a/2),(t<=0?0:Math.round(t/a))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType(\"category\",n,e)}},function(t,e,n){\"use strict\";var i=n(9),r=n(6),a=n(47);t.exports=function(t){var e={position:\"left\",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,i=e.chart,a=i.data,o=a.datasets,s=e.isHorizontal();e.min=null,e.max=null;var l=n.stacked;if(void 0===l&&r.each(o,function(e,n){if(!l){var r=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(r)&&void 0!==r.stack&&(l=!0)}}),n.stacked||l){var u={};r.each(o,function(a,o){var s=i.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:\"\",s.stack].join(\".\");void 0===u[l]&&(u[l]={positiveValues:[],negativeValues:[]});var c=u[l].positiveValues,h=u[l].negativeValues;i.isDatasetVisible(o)&&t(s)&&r.each(a.data,function(t,i){var r=+e.getRightValue(t);isNaN(r)||s.data[i].hidden||(c[i]=c[i]||0,h[i]=h[i]||0,n.relativePoints?c[i]=100:r<0?h[i]+=r:c[i]+=r)})}),r.each(u,function(t){var n=t.positiveValues.concat(t.negativeValues),i=r.min(n),a=r.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?a:Math.max(e.max,a)})}else r.each(o,function(n,a){var o=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(o)&&r.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var a=r.valueOrDefault(n.fontSize,i.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*a)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,r=+n.getRightValue(t),a=n.end-i;return n.isHorizontal()?(e=n.left+n.width/a*(r-i),Math.round(e)):(e=n.bottom-n.height/a*(r-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,r=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType(\"linear\",n,e)}},function(t,e,n){\"use strict\";var i=n(6),r=n(47);t.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return\"string\"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options,n=e.ticks;if(n.beginAtZero){var r=i.sign(t.min),a=i.sign(t.max);r<0&&a<0?t.max=0:r>0&&a>0&&(t.min=0)}var o=void 0!==n.min||void 0!==n.suggestedMin,s=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(null===t.min?t.min=n.suggestedMin:t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(null===t.max?t.max=n.suggestedMax:t.max=Math.max(t.max,n.suggestedMax)),o!==s&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options,n=e.ticks,a=t.getTickLimit();a=Math.max(2,a);var o={maxTicks:a,min:n.min,max:n.max,stepSize:i.valueOrDefault(n.fixedStepSize,n.stepSize)},s=t.ticks=r.generators.linear(o,t);t.handleDirectionalChanges(),t.max=i.max(s),t.min=i.min(s),n.reverse?(s.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},function(t,e,n){\"use strict\";var i=n(6),r=n(47);t.exports=function(t){var e={position:\"left\",ticks:{callback:r.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return u?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,r=n.ticks,a=e.chart,o=a.data,s=o.datasets,l=i.valueOrDefault,u=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var c=n.stacked;if(void 0===c&&i.each(s,function(e,n){if(!c){var i=a.getDatasetMeta(n);a.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(c=!0)}}),n.stacked||c){var h={};i.each(s,function(r,o){var s=a.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:\"\",s.stack].join(\".\");a.isDatasetVisible(o)&&t(s)&&(void 0===h[l]&&(h[l]=[]),i.each(r.data,function(t,i){var r=h[l],a=+e.getRightValue(t);isNaN(a)||s.data[i].hidden||(r[i]=r[i]||0,n.relativePoints?r[i]=100:r[i]+=a)}))}),i.each(h,function(t){var n=i.min(t),r=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?r:Math.max(e.max,r)})}else i.each(s,function(n,r){var o=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(o)&&i.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i),0!==i&&(null===e.minNotZero||ir?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){var i,a,l,u=n(t),c=Math.min(t.height/2,t.width/2),h={r:t.width,l:0,t:t.height,b:0},d={};t.ctx.font=u.font,t._pointLabelSizes=[];var f=e(t);for(i=0;ih.r&&(h.r=g.end,d.r=p),v.starth.b&&(h.b=v.end,d.b=p)}t.setReductions(c,h,d)}function u(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function c(t){return 0===t||180===t?\"center\":t<180?\"left\":\"right\"}function h(t,e,n,i){if(r.isArray(e))for(var a=n.y,o=1.5*i,s=0;s270||t<90)&&(n.y-=e.h)}function f(t){var i=t.ctx,a=r.valueOrDefault,o=t.options,s=o.angleLines,l=o.pointLabels;i.lineWidth=s.lineWidth,i.strokeStyle=s.color;var u=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max),f=n(t);i.textBaseline=\"top\";for(var p=e(t)-1;p>=0;p--){if(s.display){var m=t.getPointPosition(p,u);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(m.x,m.y),i.stroke(),i.closePath()}if(l.display){var v=t.getPointPosition(p,u+5),y=a(l.fontColor,g.defaultFontColor);i.font=f.font,i.fillStyle=y;var b=t.getIndexAngle(p),x=r.toDegrees(b);i.textAlign=c(x),d(x,t._pointLabelSizes[p],v),h(i,t.pointLabels[p]||\"\",v,f.size)}}}function p(t,n,i,a){var o=t.ctx;if(o.strokeStyle=r.valueAtIndexOrDefault(n.color,a-1),o.lineWidth=r.valueAtIndexOrDefault(n.lineWidth,a-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var s=e(t);if(0===s)return;o.beginPath();var l=t.getPointPosition(0,i);o.moveTo(l.x,l.y);for(var u=1;u0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,a=r.valueOrDefault;if(e.display){var o=t.ctx,s=this.getIndexAngle(0),l=a(i.fontSize,g.defaultFontSize),u=a(i.fontStyle,g.defaultFontStyle),c=a(i.fontFamily,g.defaultFontFamily),h=r.fontString(l,u,c);r.each(t.ticks,function(e,r){if(r>0||i.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[r]);if(n.display&&0!==r&&p(t,n,u,r),i.display){var c=a(i.fontColor,g.defaultFontColor);if(o.font=h,o.save(),o.translate(t.xCenter,t.yCenter),o.rotate(s),i.showLabelBackdrop){var d=o.measureText(e).width;o.fillStyle=i.backdropColor,o.fillRect(-d/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,d+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}o.textAlign=\"center\",o.textBaseline=\"middle\",o.fillStyle=c,o.fillText(e,0,-u),o.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&f(t)}}});t.scaleService.registerScaleType(\"radialLinear\",y,v)}},function(t,e,n){\"use strict\";function i(t,e){return t-e}function r(t){var e,n,i,r={},a=[];for(e=0,n=t.length;ee&&s=0&&o<=s;){if(i=o+s>>1,r=t[i-1]||null,a=t[i],!r)return{lo:null,hi:a};if(a[e]n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}function s(t,e,n,i){var r=o(t,e,n),a=r.lo?r.hi?r.lo:t[t.length-2]:t[0],s=r.lo?r.hi?r.hi:t[t.length-1]:t[1],l=s[e]-a[e],u=l?(n-a[e])/l:0,c=(s[i]-a[i])*u;return a[i]+c}function l(t,e){var n=e.parser,i=e.parser||e.format;return\"function\"==typeof n?n(t):\"string\"==typeof t&&\"string\"==typeof i?v(t,i):(t instanceof v||(t=v(t)),t.isValid()?t:\"function\"==typeof i?i(t):t)}function u(t,e){if(b.isNullOrUndef(t))return null;var n=e.options.time,i=l(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function c(t,e,n,i){var r,a,o,s=e-t,l=w[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/((i||1)*u));for(r=0,a=c.length;r=M.indexOf(e);r--)if(a=M[r],w[a].common&&o.as(a)>=t.length)return a;return M[e?M.indexOf(e):0]}function f(t){for(var e=M.indexOf(t)+1,n=M.length;e1?e[1]:i,o=e[0],l=(s(t,\"time\",a,\"pos\")-s(t,\"time\",o,\"pos\"))/2),r.time.max||(a=e[e.length-1],o=e.length>1?e[e.length-2]:n,u=(s(t,\"time\",a,\"pos\")-s(t,\"time\",o,\"pos\"))/2)),{left:l,right:u}}function g(t,e){var n,i,r,a,o=[];for(n=0,i=t.length;n=r&&n<=o&&h.push(n);return i.min=r,i.max=o,i._unit=l.unit||d(h,l.minUnit,i.min,i.max),i._majorUnit=f(i._unit),i._table=a(i._timestamps.data,r,o,s.distribution),i._offsets=m(i._table,h,r,o,s),g(h,i._majorUnit)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,r=n.options.time,a=i.labels&&t=0&&t.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,[100*(.4124*e+.3576*n+.1805*i),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function u(t){var e,n,i,r=l(t),a=r[0],o=r[1],s=r[2];return a/=95.047,o/=100,s/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,n=500*(a-o),i=200*(o-s),[e,n,i]}function c(t){return z(u(t))}function h(t){var e,n,i,r,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return a=255*l,[a,a,a];n=l<.5?l*(1+s):l+s-l*s,e=2*l-n,r=[0,0,0];for(var u=0;u<3;u++)i=o+1/3*-(u-1),i<0&&i++,i>1&&i--,a=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[u]=255*a;return r}function d(t){var e,n,i=t[0],r=t[1]/100,a=t[2]/100;return 0===a?[0,0,0]:(a*=2,r*=a<=1?a:2-a,n=(a+r)/2,e=2*r/(a+r),[i,100*e,100*n])}function f(t){return a(h(t))}function p(t){return o(h(t))}function m(t){return s(h(t))}function v(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,r=Math.floor(e)%6,a=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*a),l=255*i*(1-n*(1-a)),i=255*i;switch(r){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}}function y(t){var e,n,i=t[0],r=t[1]/100,a=t[2]/100;return n=(2-r)*a,e=r*a,e/=n<=1?n:2-n,e=e||0,n/=2,[i,100*e,100*n]}function x(t){return a(v(t))}function _(t){return o(v(t))}function w(t){return s(v(t))}function M(t){var e,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),e=Math.floor(6*o),n=1-l,i=6*o-e,0!=(1&e)&&(i=1-i),a=s+i*(n-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function S(t){return n(M(t))}function E(t){return i(M(t))}function k(t){return o(M(t))}function T(t){return s(M(t))}function C(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,r*(1-s)+s),n=1-Math.min(1,a*(1-s)+s),i=1-Math.min(1,o*(1-s)+s),[255*e,255*n,255*i]}function P(t){return n(C(t))}function O(t){return i(C(t))}function A(t){return a(C(t))}function R(t){return s(C(t))}function L(t){var e,n,i,r=t[0]/100,a=t[1]/100,o=t[2]/100;return e=3.2406*r+-1.5372*a+-.4986*o,n=-.9689*r+1.8758*a+.0415*o,i=.0557*r+-.204*a+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*e,255*n,255*i]}function I(t){var e,n,i,r=t[0],a=t[1],o=t[2];return r/=95.047,a/=100,o/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,n=500*(r-a),i=200*(a-o),[e,n,i]}function D(t){return z(I(t))}function N(t){var e,n,i,r,a=t[0],o=t[1],s=t[2];return a<=8?(n=100*a/903.3,r=n/100*7.787+16/116):(n=100*Math.pow((a+16)/116,3),r=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+r-16/116)/7.787:95.047*Math.pow(o/500+r,3),i=i/108.883<=.008859?i=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3),[e,n,i]}function z(t){var e,n,i,r=t[0],a=t[1],o=t[2];return e=Math.atan2(o,a),n=360*e/2/Math.PI,n<0&&(n+=360),i=Math.sqrt(a*a+o*o),[r,i,n]}function B(t){return L(N(t))}function F(t){var e,n,i,r=t[0],a=t[1],o=t[2];return i=o/360*2*Math.PI,e=a*Math.cos(i),n=a*Math.sin(i),[r,e,n]}function U(t){return N(F(t))}function j(t){return B(F(t))}function W(t){return Z[t]}function G(t){return n(W(t))}function V(t){return i(W(t))}function H(t){return a(W(t))}function q(t){return o(W(t))}function Y(t){return u(W(t))}function X(t){return l(W(t))}t.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:c,hsl2rgb:h,hsl2hsv:d,hsl2hwb:f,hsl2cmyk:p,hsl2keyword:m,hsv2rgb:v,hsv2hsl:y,hsv2hwb:x,hsv2cmyk:_,hsv2keyword:w,hwb2rgb:M,hwb2hsl:S,hwb2hsv:E,hwb2cmyk:k,hwb2keyword:T,cmyk2rgb:C,cmyk2hsl:P,cmyk2hsv:O,cmyk2hwb:A,cmyk2keyword:R,keyword2rgb:W,keyword2hsl:G,keyword2hsv:V,keyword2hwb:H,keyword2cmyk:q,keyword2lab:Y,keyword2xyz:X,xyz2rgb:L,xyz2lab:I,xyz2lch:D,lab2xyz:N,lab2rgb:B,lab2lch:z,lch2lab:F,lch2xyz:U,lch2rgb:j};var Z={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},K={};for(var Q in Z)K[JSON.stringify(Z[Q])]=Q},function(t,e,n){var i=n(293),r=function(){return new u};for(var a in i){r[a+\"Raw\"]=function(t){return function(e){return\"number\"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(a);var o=/(\\w+)2(\\w+)/.exec(a),s=o[1],l=o[2];r[s]=r[s]||{},r[s][l]=r[a]=function(t){return function(e){\"number\"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if(\"string\"==typeof n||void 0===n)return n;for(var r=0;r2){if(!l(n))throw new TypeError(\"polynomial()::invalid input argument. Options argument must be an object. Value: `\"+n+\"`.\");if(n.hasOwnProperty(\"copy\")&&(m=n.copy,!u(m)))throw new TypeError(\"polynomial()::invalid option. Copy option must be a boolean primitive. Option: `\"+m+\"`.\");if(n.hasOwnProperty(\"accessor\")&&(r=n.accessor,!c(r)))throw new TypeError(\"polynomial()::invalid option. Accessor must be a function. Option: `\"+r+\"`.\")}if(h=e.length,d=m?new Array(h):e,r)for(p=0;pc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(29),r=n(83),a=n(42),o=n(66),s=n(318);t.exports=function(t,e){var n=1==t,l=2==t,u=3==t,c=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var m,g,v=a(e),y=r(v),b=i(s,p,3),x=o(y.length),_=0,w=n?f(e,x):l?f(e,0):void 0;x>_;_++)if((d||_ in y)&&(m=y[_],g=b(m,_,v),t))if(n)w[_]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:w.push(m)}else if(c)return!1;return h?-1:u||c?c:w}}},function(t,e,n){var i=n(21),r=n(125),a=n(17)(\"species\");t.exports=function(t){var e;return r(t)&&(e=t.constructor,\"function\"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var i=n(317);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){\"use strict\";var i=n(22).f,r=n(64),a=n(90),o=n(29),s=n(79),l=n(50),u=n(84),c=n(128),h=n(135),d=n(27),f=n(85).fastKey,p=n(138),m=d?\"_s\":\"size\",g=function(t,e){var n,i=f(e);if(\"F\"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var c=t(function(t,i){s(t,c,e,\"_i\"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&l(i,n,t[u],t)});return a(c.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),i=g(n,t);if(i){var r=i.n,a=i.p;delete n._i[i.i],i.r=!0,a&&(a.n=r),r&&(r.p=a),n._f==i&&(n._f=r),n._l==i&&(n._l=a),n[m]--}return!!i},forEach:function(t){p(this,e);for(var n,i=o(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&i(c.prototype,\"size\",{get:function(){return p(this,e)[m]}}),c},def:function(t,e,n){var i,r,a=g(t,e);return a?a.v=n:(t._l=a={i:r=f(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=a),i&&(i.n=a),t[m]++,\"F\"!==r&&(t._i[r]=a)),t},getEntry:g,setStrong:function(t,e,n){u(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?\"keys\"==e?c(0,n.k):\"values\"==e?c(0,n.v):c(0,[n.k,n.v]):(t._t=void 0,c(1))},n?\"entries\":\"values\",!n,!0),h(e)}}},function(t,e,n){var i=n(62),r=n(314);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+\"#toJSON isn't generic\");return r(this)}}},function(t,e,n){\"use strict\";var i=n(18),r=n(14),a=n(85),o=n(36),s=n(34),l=n(90),u=n(50),c=n(79),h=n(21),d=n(53),f=n(22).f,p=n(316)(0),m=n(27);t.exports=function(t,e,n,g,v,y){var b=i[t],x=b,_=v?\"set\":\"add\",w=x&&x.prototype,M={};return m&&\"function\"==typeof x&&(y||w.forEach&&!o(function(){(new x).entries().next()}))?(x=e(function(e,n){c(e,x,t,\"_c\"),e._c=new b,void 0!=n&&u(n,v,e[_],e)}),p(\"add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON\".split(\",\"),function(t){var e=\"add\"==t||\"set\"==t;t in w&&(!y||\"clear\"!=t)&&s(x.prototype,t,function(n,i){if(c(this,x,t),!e&&y&&!h(n))return\"get\"==t&&void 0;var r=this._c[t](0===n?0:n,i);return e?this:r})}),y||f(x.prototype,\"size\",{get:function(){return this._c.size}})):(x=g.getConstructor(e,t,v,_),l(x.prototype,n),a.NEED=!0),d(x,t),M[t]=x,r(r.G+r.W+r.F,M),y||g.setStrong(x,t,v),x}},function(t,e,n){\"use strict\";var i=n(22),r=n(52);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(51),r=n(88),a=n(65);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var o,s=n(t),l=a.f,u=0;s.length>u;)l.call(t,o=s[u++])&&e.push(o);return e}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){\"use strict\";var i=n(64),r=n(52),a=n(53),o={};n(34)(o,n(17)(\"iterator\"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:r(1,n)}),a(t,e+\" Iterator\")}},function(t,e,n){var i=n(18),r=n(137).set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,l=\"process\"==n(49)(o);t.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=o.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){o.nextTick(u)};else if(!a||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var c=s.resolve();n=function(){c.then(u)}}else n=function(){r.call(i,u)};else{var h=!0,d=document.createTextNode(\"\");new a(u).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e,n){\"use strict\";var i=n(51),r=n(88),a=n(65),o=n(42),s=n(83),l=Object.assign;t.exports=!l||n(36)(function(){var t={},e={},n=Symbol(),i=\"abcdefghijklmnopqrst\";return t[n]=7,i.split(\"\").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join(\"\")!=i})?function(t,e){for(var n=o(t),l=arguments.length,u=1,c=r.f,h=a.f;l>u;)for(var d,f=s(arguments[u++]),p=c?i(f).concat(c(f)):i(f),m=p.length,g=0;m>g;)h.call(f,d=p[g++])&&(n[d]=f[d]);return n}:l},function(t,e,n){var i=n(22),r=n(26),a=n(51);t.exports=n(27)?Object.defineProperties:function(t,e){r(t);for(var n,o=a(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],e[n]);return t}},function(t,e,n){var i=n(38),r=n(129).f,a={}.toString,o=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return o.slice()}};t.exports.f=function(t){return o&&\"[object Window]\"==a.call(t)?s(t):r(i(t))}},function(t,e,n){\"use strict\";var i=n(14),r=n(48),a=n(29),o=n(50);t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,s,l=arguments[1];return r(this),e=void 0!==l,e&&r(l),void 0==t?new this:(n=[],e?(i=0,s=a(l,arguments[2],2),o(t,!1,function(t){n.push(s(t,i++))})):o(t,!1,n.push,n),new this(n))}})}},function(t,e,n){\"use strict\";var i=n(14);t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){var i=n(21),r=n(26),a=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+\": can't set as prototype!\")};t.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(t,e,i){try{i=n(29)(Function.call,n(87).f(Object.prototype,\"__proto__\").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:a}},function(t,e,n){var i=n(93),r=n(80);t.exports=function(t){return function(e,n){var a,o,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?\"\":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):a:t?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},function(t,e,n){var i=n(93),r=Math.max,a=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):a(t,e)}},function(t,e,n){var i=n(26),r=n(97);t.exports=n(11).getIterator=function(t){var e=r(t);if(\"function\"!=typeof e)throw TypeError(t+\" is not iterable!\");return i(e.call(t))}},function(t,e,n){var i=n(62),r=n(17)(\"iterator\"),a=n(41);t.exports=n(11).isIterable=function(t){var e=Object(t);return void 0!==e[r]||\"@@iterator\"in e||a.hasOwnProperty(i(e))}},function(t,e,n){\"use strict\";var i=n(29),r=n(14),a=n(42),o=n(126),s=n(124),l=n(66),u=n(322),c=n(97);r(r.S+r.F*!n(127)(function(t){Array.from(t)}),\"Array\",{from:function(t){var e,n,r,h,d=a(t),f=\"function\"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(d);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(e=l(d.length),n=new f(e);e>v;v++)u(n,v,g?m(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(r=h.next()).done;v++)u(n,v,g?o(h,m,[r.value,v],!0):r.value);return n.length=v,n}})},function(t,e,n){\"use strict\";var i=n(313),r=n(128),a=n(41),o=n(38);t.exports=n(84)(Array,\"Array\",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):\"keys\"==e?r(0,n):\"values\"==e?r(0,t[n]):r(0,[n,t[n]])},\"values\"),a.Arguments=a.Array,i(\"keys\"),i(\"values\"),i(\"entries\")},function(t,e,n){var i=n(14);i(i.S,\"Math\",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var i=n(14);i(i.S+i.F,\"Object\",{assign:n(327)})},function(t,e,n){var i=n(14);i(i.S,\"Object\",{create:n(64)})},function(t,e,n){var i=n(14);i(i.S+i.F*!n(27),\"Object\",{defineProperty:n(22).f})},function(t,e,n){var i=n(38),r=n(87).f;n(89)(\"getOwnPropertyDescriptor\",function(){return function(t,e){return r(i(t),e)}})},function(t,e,n){var i=n(42),r=n(130);n(89)(\"getPrototypeOf\",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(42),r=n(51);n(89)(\"keys\",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(14);i(i.S,\"Object\",{setPrototypeOf:n(332).set})},function(t,e,n){\"use strict\";var i,r,a,o,s=n(63),l=n(18),u=n(29),c=n(62),h=n(14),d=n(21),f=n(48),p=n(79),m=n(50),g=n(136),v=n(137).set,y=n(326)(),b=n(86),x=n(132),_=n(133),w=l.TypeError,M=l.process,S=l.Promise,E=\"process\"==c(M),k=function(){},T=r=b.f,C=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(17)(\"species\")]=function(t){t(k,k)};return(E||\"function\"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),P=function(t){var e;return!(!d(t)||\"function\"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,r=1==t._s,a=0;n.length>a;)!function(e){var n,a,o=r?e.ok:e.fail,s=e.resolve,l=e.reject,u=e.domain;try{o?(r||(2==t._h&&L(t),t._h=1),!0===o?n=i:(u&&u.enter(),n=o(i),u&&u.exit()),n===e.promise?l(w(\"Promise-chain cycle\")):(a=P(n))?a.call(n,s,l):s(n)):l(i)}catch(t){l(t)}}(n[a++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){v.call(l,function(){var e,n,i,r=t._v,a=R(t);if(a&&(e=x(function(){E?M.emit(\"unhandledRejection\",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error(\"Unhandled promise rejection\",r)}),t._h=E||R(t)?2:1),t._a=void 0,a&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){v.call(l,function(){var e;E?M.emit(\"rejectionHandled\",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},D=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w(\"Promise can't be resolved itself\");(e=P(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,u(D,i,1),u(I,i,1))}catch(t){I.call(i,t)}}):(n._v=t,n._s=1,O(n,!1))}catch(t){I.call({_w:n,_d:!1},t)}}};C||(S=function(t){p(this,S,\"Promise\",\"_h\"),f(t),i.call(this);try{t(u(D,this,1),u(I,this,1))}catch(t){I.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(90)(S.prototype,{then:function(t,e){var n=T(g(this,S));return n.ok=\"function\"!=typeof t||t,n.fail=\"function\"==typeof e&&e,n.domain=E?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=u(D,t,1),this.reject=u(I,t,1)},b.f=T=function(t){return t===S||t===o?new a(t):r(t)}),h(h.G+h.W+h.F*!C,{Promise:S}),n(53)(S,\"Promise\"),n(135)(\"Promise\"),o=n(11).Promise,h(h.S+h.F*!C,\"Promise\",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!C),\"Promise\",{resolve:function(t){return _(s&&this===o?S:this,t)}}),h(h.S+h.F*!(C&&n(127)(function(t){S.all(t).catch(k)})),\"Promise\",{all:function(t){var e=this,n=T(e),i=n.resolve,r=n.reject,a=x(function(){var n=[],a=0,o=1;m(t,!1,function(t){var s=a++,l=!1;n.push(void 0),o++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--o||i(n))},r)}),--o||i(n)});return a.e&&r(a.v),n.promise},race:function(t){var e=this,n=T(e),i=n.reject,r=x(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(t,e,n){\"use strict\";var i=n(319),r=n(138);t.exports=n(321)(\"Set\",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,\"Set\"),t=0===t?0:t,t)}},i)},function(t,e,n){\"use strict\";var i=n(18),r=n(37),a=n(27),o=n(14),s=n(134),l=n(85).KEY,u=n(36),c=n(92),h=n(53),d=n(67),f=n(17),p=n(96),m=n(95),g=n(323),v=n(125),y=n(26),b=n(21),x=n(38),_=n(94),w=n(52),M=n(64),S=n(329),E=n(87),k=n(22),T=n(51),C=E.f,P=k.f,O=S.f,A=i.Symbol,R=i.JSON,L=R&&R.stringify,I=f(\"_hidden\"),D=f(\"toPrimitive\"),N={}.propertyIsEnumerable,z=c(\"symbol-registry\"),B=c(\"symbols\"),F=c(\"op-symbols\"),U=Object.prototype,j=\"function\"==typeof A,W=i.QObject,G=!W||!W.prototype||!W.prototype.findChild,V=a&&u(function(){return 7!=M(P({},\"a\",{get:function(){return P(this,\"a\",{value:7}).a}})).a})?function(t,e,n){var i=C(U,e);i&&delete U[e],P(t,e,n),i&&t!==U&&P(U,e,i)}:P,H=function(t){var e=B[t]=M(A.prototype);return e._k=t,e},q=j&&\"symbol\"==typeof A.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof A},Y=function(t,e,n){return t===U&&Y(F,e,n),y(t),e=_(e,!0),y(n),r(B,e)?(n.enumerable?(r(t,I)&&t[I][e]&&(t[I][e]=!1),n=M(n,{enumerable:w(0,!1)})):(r(t,I)||P(t,I,w(1,{})),t[I][e]=!0),V(t,e,n)):P(t,e,n)},X=function(t,e){y(t);for(var n,i=g(e=x(e)),r=0,a=i.length;a>r;)Y(t,n=i[r++],e[n]);return t},Z=function(t,e){return void 0===e?M(t):X(M(t),e)},K=function(t){var e=N.call(this,t=_(t,!0));return!(this===U&&r(B,t)&&!r(F,t))&&(!(e||!r(this,t)||!r(B,t)||r(this,I)&&this[I][t])||e)},Q=function(t,e){if(t=x(t),e=_(e,!0),t!==U||!r(B,e)||r(F,e)){var n=C(t,e);return!n||!r(B,e)||r(t,I)&&t[I][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=O(x(t)),i=[],a=0;n.length>a;)r(B,e=n[a++])||e==I||e==l||i.push(e);return i},$=function(t){for(var e,n=t===U,i=O(n?F:x(t)),a=[],o=0;i.length>o;)!r(B,e=i[o++])||n&&!r(U,e)||a.push(B[e]);return a};j||(A=function(){if(this instanceof A)throw TypeError(\"Symbol is not a constructor!\");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(F,n),r(this,I)&&r(this[I],t)&&(this[I][t]=!1),V(this,t,w(1,n))};return a&&G&&V(U,t,{configurable:!0,set:e}),H(t)},s(A.prototype,\"toString\",function(){return this._k}),E.f=Q,k.f=Y,n(129).f=S.f=J,n(65).f=K,n(88).f=$,a&&!n(63)&&s(U,\"propertyIsEnumerable\",K,!0),p.f=function(t){return H(f(t))}),o(o.G+o.W+o.F*!j,{Symbol:A});for(var tt=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),et=0;tt.length>et;)f(tt[et++]);for(var nt=T(f.store),it=0;nt.length>it;)m(nt[it++]);o(o.S+o.F*!j,\"Symbol\",{for:function(t){return r(z,t+=\"\")?z[t]:z[t]=A(t)},keyFor:function(t){if(!q(t))throw TypeError(t+\" is not a symbol!\");for(var e in z)if(z[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!j,\"Object\",{create:Z,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:$}),R&&o(o.S+o.F*(!j||u(function(){var t=A();return\"[null]\"!=L([t])||\"{}\"!=L({a:t})||\"{}\"!=L(Object(t))})),\"JSON\",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!q(t))return v(e)||(e=function(t,e){if(\"function\"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,L.apply(R,i)}}),A.prototype[D]||n(34)(A.prototype,D,A.prototype.valueOf),h(A,\"Symbol\"),h(Math,\"Math\",!0),h(i.JSON,\"JSON\",!0)},function(t,e,n){\"use strict\";var i=n(14),r=n(11),a=n(18),o=n(136),s=n(133);i(i.P+i.R,\"Promise\",{finally:function(t){var e=o(this,r.Promise||a.Promise),n=\"function\"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){\"use strict\";var i=n(14),r=n(86),a=n(132);i(i.S,\"Promise\",{try:function(t){var e=r.f(this),n=a(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(330)(\"Set\")},function(t,e,n){n(331)(\"Set\")},function(t,e,n){var i=n(14);i(i.P+i.R,\"Set\",{toJSON:n(320)(\"Set\")})},function(t,e,n){n(95)(\"asyncIterator\")},function(t,e,n){n(95)(\"observable\")},function(t,e,n){\"use strict\";var i=n(68),r={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent(\"on\"+e,n),{remove:function(){t.detachEvent(\"on\"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:i}},registerDefault:function(){}};t.exports=r},function(t,e,n){\"use strict\";var i=!(\"undefined\"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:\"undefined\"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};t.exports=r},function(t,e,n){\"use strict\";function i(t,e){return!(!t||!e)&&(t===e||!r(t)&&(r(e)?i(t,e.parentNode):\"contains\"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var r=n(364);t.exports=i},function(t,e,n){\"use strict\";function i(t){try{t.focus()}catch(t){}}t.exports=i},function(t,e,n){\"use strict\";function i(t){if(void 0===(t=t||(\"undefined\"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=i},function(t,e,n){\"use strict\";function i(t,e,n,i,a,o,s,l){if(r(e),!t){var u;if(void 0===e)u=new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var c=[n,i,a,o,s,l],h=0;u=new Error(e.replace(/%s/g,function(){return c[h++]})),u.name=\"Invariant Violation\"}throw u.framesToPop=1,u}}var r=function(t){};t.exports=i},function(t,e,n){\"use strict\";function i(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!(\"function\"==typeof n.Node?t instanceof n.Node:\"object\"==typeof t&&\"number\"==typeof t.nodeType&&\"string\"==typeof t.nodeName))}t.exports=i},function(t,e,n){\"use strict\";function i(t){return r(t)&&3==t.nodeType}var r=n(363);t.exports=i},function(t,e,n){\"use strict\";function i(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function r(t,e){if(i(t,e))return!0;if(\"object\"!=typeof t||null===t||\"object\"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t}t.exports=n},function(t,e){function n(t,e,n){return t[0]=e,t[1]=n,t}t.exports=n},function(t,e){function n(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}t.exports=n},function(t,e,n){\"use strict\";function i(t){return t in o?o[t]:o[t]=t.replace(r,\"-$&\").toLowerCase().replace(a,\"-ms-\")}var r=/[A-Z]/g,a=/^ms-/,o={};t.exports=i},function(t,e){\"function\"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function a(t){var e=t.prefixMap,n=t.plugins,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t);var i=\"undefined\"!=typeof navigator?navigator.userAgent:void 0;if(this._userAgent=n.userAgent||i,this._keepUnprefixed=n.keepUnprefixed||!1,this._userAgent&&(this._browserInfo=(0,l.default)(this._userAgent)),!this._browserInfo||!this._browserInfo.cssPrefix)return this._useFallback=!0,!1;this.prefixedKeyframes=(0,c.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);var a=this._browserInfo.browserName&&e[this._browserInfo.browserName];if(a){this._requiresPrefix={};for(var o in a)a[o]>=this._browserInfo.browserVersion&&(this._requiresPrefix[o]=!0);this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return o(t,[{key:\"prefix\",value:function(t){return this._useFallback?i(t):this._hasPropsRequiringPrefix?this._prefixStyle(t):t}},{key:\"_prefixStyle\",value:function(t){for(var e in t){var i=t[e];if((0,g.default)(i))t[e]=this.prefix(i);else if(Array.isArray(i)){for(var r=[],a=0,o=i.length;a0&&(t[e]=r)}else{var l=(0,y.default)(n,e,i,t,this._metaData);l&&(t[e]=l),this._requiresPrefix.hasOwnProperty(e)&&(t[this._browserInfo.jsPrefix+(0,d.default)(e)]=i,this._keepUnprefixed||delete t[e])}}return t}}],[{key:\"prefixAll\",value:function(t){return i(t)}}]),t}()}Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(){function t(t,e){for(var n=0;n-1&&(\"chrome\"===r||\"opera\"===r||\"and_chr\"===r||(\"ios_saf\"===r||\"safari\"===r)&&o<10))return(0,a.default)(e.replace(/cross-fade\\(/g,s+\"cross-fade(\"),e,l)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,l=i.browserVersion,u=i.cssPrefix,c=i.keepUnprefixed;return\"cursor\"!==t||!o[e]||\"firefox\"!==r&&\"chrome\"!==r&&\"safari\"!==r&&\"opera\"!==r?\"cursor\"===t&&s[e]&&(\"firefox\"===r&&l<24||\"chrome\"===r&&l<37||\"safari\"===r&&l<9||\"opera\"===r&&l<24)?(0,a.default)(u+e,e,c):void 0:(0,a.default)(u+e,e,c)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={grab:!0,grabbing:!0},s={\"zoom-in\":!0,\"zoom-out\":!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,o=i.browserVersion,s=i.cssPrefix,l=i.keepUnprefixed;if(\"string\"==typeof e&&e.indexOf(\"filter(\")>-1&&(\"ios_saf\"===r||\"safari\"===r&&o<9.1))return(0,a.default)(e.replace(/filter\\(/g,s+\"filter(\"),e,l)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if(\"display\"===t&&o[e]&&(\"chrome\"===r&&s<29&&s>20||(\"safari\"===r||\"ios_saf\"===r)&&s<9&&s>6||\"opera\"===r&&(15===s||16===s)))return(0,a.default)(l+e,e,u)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={flex:!0,\"inline-flex\":!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,l=i.browserVersion,c=i.cssPrefix,h=i.keepUnprefixed,d=i.requiresPrefix;if((u.indexOf(t)>-1||\"display\"===t&&\"string\"==typeof e&&e.indexOf(\"flex\")>-1)&&(\"firefox\"===r&&l<22||\"chrome\"===r&&l<21||(\"safari\"===r||\"ios_saf\"===r)&&l<=6.1||\"android\"===r&&l<4.4||\"and_uc\"===r)){if(delete d[t],h||Array.isArray(n[t])||delete n[t],\"flexDirection\"===t&&\"string\"==typeof e&&(e.indexOf(\"column\")>-1?n.WebkitBoxOrient=\"vertical\":n.WebkitBoxOrient=\"horizontal\",e.indexOf(\"reverse\")>-1?n.WebkitBoxDirection=\"reverse\":n.WebkitBoxDirection=\"normal\"),\"display\"===t&&o.hasOwnProperty(e))return(0,a.default)(c+o[e],e,h);s.hasOwnProperty(t)&&(n[s[t]]=o[e]||e)}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={\"space-around\":\"justify\",\"space-between\":\"justify\",\"flex-start\":\"start\",\"flex-end\":\"end\",\"wrap-reverse\":\"multiple\",wrap:\"multiple\",flex:\"box\",\"inline-flex\":\"inline-box\"},s={alignItems:\"WebkitBoxAlign\",justifyContent:\"WebkitBoxPack\",flexWrap:\"WebkitBoxLines\"},l=[\"alignContent\",\"alignSelf\",\"order\",\"flexGrow\",\"flexShrink\",\"flexBasis\",\"flexDirection\"],u=Object.keys(s).concat(l);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,s=i.browserVersion,l=i.cssPrefix,u=i.keepUnprefixed;if(\"string\"==typeof e&&o.test(e)&&(\"firefox\"===r&&s<16||\"chrome\"===r&&s<26||(\"safari\"===r||\"ios_saf\"===r)&&s<7||(\"opera\"===r||\"op_mini\"===r)&&s<12.1||\"android\"===r&&s<4.4||\"and_uc\"===r))return(0,a.default)(l+e,e,u)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,o=i.cssPrefix,s=i.keepUnprefixed;if(\"string\"==typeof e&&e.indexOf(\"image-set(\")>-1&&(\"chrome\"===r||\"opera\"===r||\"and_chr\"===r||\"and_uc\"===r||\"ios_saf\"===r||\"safari\"===r))return(0,a.default)(e.replace(/image-set\\(/g,o+\"image-set(\"),e,s)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.browserName,o=i.cssPrefix,s=i.keepUnprefixed;if(\"position\"===t&&\"sticky\"===e&&(\"safari\"===r||\"ios_saf\"===r))return(0,a.default)(o+e,e,s)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.cssPrefix,l=i.keepUnprefixed;if(o.hasOwnProperty(t)&&s.hasOwnProperty(e))return(0,a.default)(r+e,e,l)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(30),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},s={\"min-content\":!0,\"max-content\":!0,\"fill-available\":!0,\"fit-content\":!0,\"contain-floats\":!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=i.cssPrefix,l=i.keepUnprefixed,u=i.requiresPrefix;if(\"string\"==typeof e&&o.hasOwnProperty(t)){s||(s=Object.keys(u).map(function(t){return(0,a.default)(t)}));var c=e.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g);return s.forEach(function(t){c.forEach(function(e,n){e.indexOf(t)>-1&&\"order\"!==t&&(c[n]=e.replace(t,r+t)+(l?\",\"+e:\"\"))})}),c.join(\",\")}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(139),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},s=void 0;t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){function e(t){for(var r in t){var a=t[r];if((0,d.default)(a))t[r]=e(a);else if(Array.isArray(a)){for(var s=[],u=0,h=a.length;u0&&(t[r]=s)}else{var p=(0,l.default)(i,r,a,t,n);p&&(t[r]=p),(0,o.default)(n,r,t)}}return t}var n=t.prefixMap,i=t.plugins;return e}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=r;var a=n(400),o=i(a),s=n(144),l=i(s),u=n(142),c=i(u),h=n(143),d=i(h);t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(385),a=i(r),o=n(397),s=i(o),l=n(388),u=i(l),c=n(387),h=i(c),d=n(389),f=i(d),p=n(390),m=i(p),g=n(391),v=i(g),y=n(392),b=i(y),x=n(393),_=i(x),w=n(394),M=i(w),S=n(395),E=i(S),k=n(396),T=i(k),C=[h.default,u.default,f.default,v.default,b.default,_.default,M.default,E.default,T.default,m.default];e.default=(0,a.default)({prefixMap:s.default.prefixMap,plugins:C}),t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"string\"==typeof e&&!(0,a.default)(e)&&e.indexOf(\"cross-fade(\")>-1)return o.map(function(t){return e.replace(/cross-fade\\(/g,t+\"cross-fade(\")})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=[\"-webkit-\",\"\"];t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"cursor\"===t&&a.hasOwnProperty(e))return r.map(function(t){return t+e})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=[\"-webkit-\",\"-moz-\",\"\"],a={\"zoom-in\":!0,\"zoom-out\":!0,grab:!0,grabbing:!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"string\"==typeof e&&!(0,a.default)(e)&&e.indexOf(\"filter(\")>-1)return o.map(function(t){return e.replace(/filter\\(/g,t+\"filter(\")})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=[\"-webkit-\",\"\"];t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"display\"===t&&r.hasOwnProperty(e))return r[e]}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r={flex:[\"-webkit-box\",\"-moz-box\",\"-ms-flexbox\",\"-webkit-flex\",\"flex\"],\"inline-flex\":[\"-webkit-inline-box\",\"-moz-inline-box\",\"-ms-inline-flexbox\",\"-webkit-inline-flex\",\"inline-flex\"]};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n){\"flexDirection\"===t&&\"string\"==typeof e&&(e.indexOf(\"column\")>-1?n.WebkitBoxOrient=\"vertical\":n.WebkitBoxOrient=\"horizontal\",e.indexOf(\"reverse\")>-1?n.WebkitBoxDirection=\"reverse\":n.WebkitBoxDirection=\"normal\"),a.hasOwnProperty(t)&&(n[a[t]]=r[e]||e)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r={\"space-around\":\"justify\",\"space-between\":\"justify\",\"flex-start\":\"start\",\"flex-end\":\"end\",\"wrap-reverse\":\"multiple\",wrap:\"multiple\"},a={alignItems:\"WebkitBoxAlign\",justifyContent:\"WebkitBoxPack\",flexWrap:\"WebkitBoxLines\"};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"string\"==typeof e&&!(0,a.default)(e)&&s.test(e))return o.map(function(t){return t+e})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=[\"-webkit-\",\"-moz-\",\"\"],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"string\"==typeof e&&!(0,a.default)(e)&&e.indexOf(\"image-set(\")>-1)return o.map(function(t){return e.replace(/image-set\\(/g,t+\"image-set(\")})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=n(55),a=function(t){return t&&t.__esModule?t:{default:t}}(r),o=[\"-webkit-\",\"\"];t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(\"position\"===t&&\"sticky\"===e)return[\"-webkit-sticky\",\"sticky\"]}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e){if(a.hasOwnProperty(t)&&o.hasOwnProperty(e))return r.map(function(t){return t+e})}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i;var r=[\"-webkit-\",\"-moz-\",\"\"],a={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={\"min-content\":!0,\"max-content\":!0,\"fill-available\":!0,\"fit-content\":!0,\"contain-floats\":!0};t.exports=e.default},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if((0,u.default)(t))return t;for(var n=t.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g),i=0,r=n.length;i-1&&\"order\"!==c)for(var h=e[l],d=0,p=h.length;d-1)return o;var s=a.split(/,(?![^()]*(?:\\([^()]*\\))?\\))/g).filter(function(t){return!/-webkit-|-ms-/.test(t)}).join(\",\");return t.indexOf(\"Moz\")>-1?s:(n[\"Webkit\"+(0,h.default)(t)]=o,n[\"Moz\"+(0,h.default)(t)]=s,a)}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=a;var o=n(139),s=i(o),l=n(55),u=i(l),c=n(100),h=i(c),d={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},f={Webkit:\"-webkit-\",Moz:\"-moz-\",ms:\"-ms-\"};t.exports=e.default},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var i=[\"Webkit\"],r=[\"Moz\"],a=[\"ms\"],o=[\"Webkit\",\"Moz\"],s=[\"Webkit\",\"ms\"],l=[\"Webkit\",\"Moz\",\"ms\"];e.default={plugins:[],prefixMap:{appearance:o,userSelect:l,textEmphasisPosition:i,textEmphasis:i,textEmphasisStyle:i,textEmphasisColor:i,boxDecorationBreak:i,clipPath:i,maskImage:i,maskMode:i,maskRepeat:i,maskPosition:i,maskClip:i,maskOrigin:i,maskSize:i,maskComposite:i,mask:i,maskBorderSource:i,maskBorderMode:i,maskBorderSlice:i,maskBorderWidth:i,maskBorderOutset:i,maskBorderRepeat:i,maskBorder:i,maskType:i,textDecorationStyle:i,textDecorationSkip:i,textDecorationLine:i,textDecorationColor:i,filter:i,fontFeatureSettings:i,breakAfter:l,breakBefore:l,breakInside:l,columnCount:o,columnFill:o,columnGap:o,columnRule:o,columnRuleColor:o,columnRuleStyle:o,columnRuleWidth:o,columns:o,columnSpan:o,columnWidth:o,writingMode:s,flex:i,flexBasis:i,flexDirection:i,flexGrow:i,flexFlow:i,flexShrink:i,flexWrap:i,alignContent:i,alignItems:i,alignSelf:i,justifyContent:i,order:i,transform:i,transformOrigin:i,transformOriginX:i,transformOriginY:i,backfaceVisibility:i,perspective:i,perspectiveOrigin:i,transformStyle:i,transformOriginZ:i,animation:i,animationDelay:i,animationDirection:i,animationFillMode:i,animationDuration:i,animationIterationCount:i,animationName:i,animationPlayState:i,animationTimingFunction:i,backdropFilter:i,fontKerning:i,scrollSnapType:s,scrollSnapPointsX:s,scrollSnapPointsY:s,scrollSnapDestination:s,scrollSnapCoordinate:s,shapeImageThreshold:i,shapeImageMargin:i,shapeImageOutside:i,hyphens:l,flowInto:s,flowFrom:s,regionFragment:s,textAlignLast:r,tabSize:r,wrapFlow:a,wrapThrough:a,wrapMargin:a,gridTemplateColumns:a,gridTemplateRows:a,gridTemplateAreas:a,gridTemplate:a,gridAutoColumns:a,gridAutoRows:a,gridAutoFlow:a,grid:a,gridRowStart:a,gridColumnStart:a,gridRowEnd:a,gridRow:a,gridColumn:a,gridColumnEnd:a,gridColumnGap:a,gridRowGap:a,gridArea:a,gridGap:a,textSizeAdjust:s,borderImage:i,borderImageOutset:i,borderImageRepeat:i,borderImageSlice:i,borderImageSource:i,borderImageWidth:i,transitionDelay:i,transitionDuration:i,transitionProperty:i,transitionTimingFunction:i}},t.exports=e.default},function(t,e,n){\"use strict\";function i(t){if(t.firefox)return\"firefox\";if(t.mobile||t.tablet){if(t.ios)return\"ios_saf\";if(t.android)return\"android\";if(t.opera)return\"op_mini\"}for(var e in l)if(t.hasOwnProperty(e))return l[e]}function r(t){var e=o.default._detect(t);e.yandexbrowser&&(e=o.default._detect(t.replace(/YaBrowser\\/[0-9.]*/,\"\")));for(var n in s)if(e.hasOwnProperty(n)){var r=s[n];e.jsPrefix=r,e.cssPrefix=\"-\"+r.toLowerCase()+\"-\";break}return e.browserName=i(e),e.version?e.browserVersion=parseFloat(e.version):e.browserVersion=parseInt(parseFloat(e.osversion),10),e.osVersion=parseFloat(e.osversion),\"ios_saf\"===e.browserName&&e.browserVersion>e.osVersion&&(e.browserVersion=e.osVersion),\"android\"===e.browserName&&e.chrome&&e.browserVersion>37&&(e.browserName=\"and_chr\"),\"android\"===e.browserName&&e.osVersion<5&&(e.browserVersion=e.osVersion),\"android\"===e.browserName&&e.samsungBrowser&&(e.browserName=\"and_chr\",e.browserVersion=44),e}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=r;var a=n(248),o=function(t){return t&&t.__esModule?t:{default:t}}(a),s={chrome:\"Webkit\",safari:\"Webkit\",ios:\"Webkit\",android:\"Webkit\",phantom:\"Webkit\",opera:\"Webkit\",webos:\"Webkit\",blackberry:\"Webkit\",bada:\"Webkit\",tizen:\"Webkit\",chromium:\"Webkit\",vivaldi:\"Webkit\",firefox:\"Moz\",seamoney:\"Moz\",sailfish:\"Moz\",msie:\"ms\",msedge:\"ms\"},l={chrome:\"chrome\",chromium:\"chrome\",safari:\"safari\",firfox:\"firefox\",msedge:\"edge\",opera:\"opera\",vivaldi:\"opera\",msie:\"ie\"};t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n){return\"chrome\"===t&&e<43||(\"safari\"===t||\"ios_saf\"===t)&&e<9||\"opera\"===t&&e<30||\"android\"===t&&e<=4.4||\"and_uc\"===t?n+\"keyframes\":\"keyframes\"}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=i,t.exports=e.default},function(t,e,n){\"use strict\";function i(t,e,n){if(t.hasOwnProperty(e))for(var i=t[e],r=0,o=i.length;r0)for(n=0;n0?\"future\":\"past\"];return E(n)?n(e):n.replace(/%s/i,e)}function D(t,e){var n=t.toLowerCase();Ri[n]=Ri[n+\"s\"]=Ri[e]=t}function N(t){return\"string\"==typeof t?Ri[t]||Ri[t.toLowerCase()]:void 0}function z(t){var e,n,i={};for(n in t)u(t,n)&&(e=N(n))&&(i[e]=t[n]);return i}function B(t,e){Li[t]=e}function F(t){var e=[];for(var n in t)e.push({unit:n,priority:Li[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function U(t,n){return function(i){return null!=i?(W(this,t,i),e.updateOffset(this,n),this):j(this,t)}}function j(t,e){return t.isValid()?t._d[\"get\"+(t._isUTC?\"UTC\":\"\")+e]():NaN}function W(t,e,n){t.isValid()&&t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+e](n)}function G(t){return t=N(t),E(this[t])?this[t]():this}function V(t,e){if(\"object\"==typeof t){t=z(t);for(var n=F(t),i=0;i=0?n?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function q(t,e,n,i){var r=i;\"string\"==typeof i&&(r=function(){return this[i]()}),t&&(zi[t]=r),e&&(zi[e[0]]=function(){return H(r.apply(this,arguments),e[1],e[2])}),n&&(zi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Y(t){return t.match(/\\[[\\s\\S]/)?t.replace(/^\\[|\\]$/g,\"\"):t.replace(/\\\\/g,\"\")}function X(t){var e,n,i=t.match(Ii);for(e=0,n=i.length;e=0&&Di.test(t);)t=t.replace(Di,n),Di.lastIndex=0,i-=1;return t}function Q(t,e,n){er[t]=E(e)?e:function(t,i){return t&&n?n:e}}function J(t,e){return u(er,t)?er[t](e._strict,e._locale):new RegExp($(t))}function $(t){return tt(t.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(t,e,n,i,r){return e||n||i||r}))}function tt(t){return t.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}function et(t,e){var n,i=e;for(\"string\"==typeof t&&(t=[t]),o(e)&&(i=function(t,n){n[e]=x(t)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function xt(t,e,n){var i=7+e-n;return-(7+bt(t,0,i).getUTCDay()-e)%7+i-1}function _t(t,e,n,i,r){var a,o,s=(7+n-i)%7,l=xt(t,i,r),u=1+7*(e-1)+s+l;return u<=0?(a=t-1,o=mt(a)+u):u>mt(t)?(a=t+1,o=u-mt(t)):(a=t,o=u),{year:a,dayOfYear:o}}function wt(t,e,n){var i,r,a=xt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?(r=t.year()-1,i=o+Mt(r,e,n)):o>Mt(t.year(),e,n)?(i=o-Mt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Mt(t,e,n){var i=xt(t,e,n),r=xt(t+1,e,n);return(mt(t)-i+r)/7}function St(t){return wt(t,this._week.dow,this._week.doy).week}function Et(){return this._week.dow}function kt(){return this._week.doy}function Tt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),\"d\")}function Ct(t){var e=wt(this,1,4).week;return null==t?e:this.add(7*(t-e),\"d\")}function Pt(t,e){return\"string\"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),\"number\"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return\"string\"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function At(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?\"format\":\"standalone\"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Rt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Lt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function It(t,e,n){var i,r,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,\"\").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,\"\").toLocaleLowerCase();return n?\"dddd\"===e?(r=dr.call(this._weekdaysParse,o),-1!==r?r:null):\"ddd\"===e?(r=dr.call(this._shortWeekdaysParse,o),-1!==r?r:null):(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):\"dddd\"===e?-1!==(r=dr.call(this._weekdaysParse,o))?r:-1!==(r=dr.call(this._shortWeekdaysParse,o))?r:(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):\"ddd\"===e?-1!==(r=dr.call(this._shortWeekdaysParse,o))?r:-1!==(r=dr.call(this._weekdaysParse,o))?r:(r=dr.call(this._minWeekdaysParse,o),-1!==r?r:null):-1!==(r=dr.call(this._minWeekdaysParse,o))?r:-1!==(r=dr.call(this._weekdaysParse,o))?r:(r=dr.call(this._shortWeekdaysParse,o),-1!==r?r:null)}function Dt(t,e,n){var i,r,a;if(this._weekdaysParseExact)return It.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp(\"^\"+this.weekdays(r,\"\").replace(\".\",\".?\")+\"$\",\"i\"),this._shortWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysShort(r,\"\").replace(\".\",\".?\")+\"$\",\"i\"),this._minWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysMin(r,\"\").replace(\".\",\".?\")+\"$\",\"i\")),this._weekdaysParse[i]||(a=\"^\"+this.weekdays(r,\"\")+\"|^\"+this.weekdaysShort(r,\"\")+\"|^\"+this.weekdaysMin(r,\"\"),this._weekdaysParse[i]=new RegExp(a.replace(\".\",\"\"),\"i\")),n&&\"dddd\"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&\"ddd\"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&\"dd\"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pt(t,this.localeData()),this.add(t-e,\"d\")):e}function zt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,\"d\")}function Bt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ft(t){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,\"_weekdaysRegex\")||(this._weekdaysRegex=Mr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ut(t){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=Sr),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jt(t){return this._weekdaysParseExact?(u(this,\"_weekdaysRegex\")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=Er),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wt(){function t(t,e){return e.length-t.length}var e,n,i,r,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=this.weekdaysMin(n,\"\"),r=this.weekdaysShort(n,\"\"),a=this.weekdays(n,\"\"),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);for(o.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=tt(s[e]),l[e]=tt(l[e]),u[e]=tt(u[e]);this._weekdaysRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+s.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\")}function Gt(){return this.hours()%12||12}function Vt(){return this.hours()||24}function Ht(t,e){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function qt(t,e){return e._meridiemParse}function Yt(t){return\"p\"===(t+\"\").toLowerCase().charAt(0)}function Xt(t,e,n){return t>11?n?\"pm\":\"PM\":n?\"am\":\"AM\"}function Zt(t){return t?t.toLowerCase().replace(\"_\",\"-\"):t}function Kt(t){for(var e,n,i,r,a=0;a0;){if(i=Qt(r.slice(0,e).join(\"-\")))return i;if(n&&n.length>=e&&_(r,n,!0)>=e-1)break;e--}a++}return null}function Qt(e){var n=null;if(!Or[e]&&void 0!==t&&t&&t.exports)try{n=kr._abbr,function(){var t=new Error('Cannot find module \"./locale\"');throw t.code=\"MODULE_NOT_FOUND\",t}(),Jt(n)}catch(t){}return Or[e]}function Jt(t,e){var n;return t&&(n=a(e)?ee(t):$t(t,e))&&(kr=n),kr._abbr}function $t(t,e){if(null!==e){var n=Pr;if(e.abbr=t,null!=Or[t])S(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),n=Or[t]._config;else if(null!=e.parentLocale){if(null==Or[e.parentLocale])return Ar[e.parentLocale]||(Ar[e.parentLocale]=[]),Ar[e.parentLocale].push({name:t,config:e}),null;n=Or[e.parentLocale]._config}return Or[t]=new C(T(n,e)),Ar[t]&&Ar[t].forEach(function(t){$t(t.name,t.config)}),Jt(t),Or[t]}return delete Or[t],null}function te(t,e){if(null!=e){var n,i=Pr;null!=Or[t]&&(i=Or[t]._config),e=T(i,e),n=new C(e),n.parentLocale=Or[t],Or[t]=n,Jt(t)}else null!=Or[t]&&(null!=Or[t].parentLocale?Or[t]=Or[t].parentLocale:null!=Or[t]&&delete Or[t]);return Or[t]}function ee(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return kr;if(!n(t)){if(e=Qt(t))return e;t=[t]}return Kt(t)}function ne(){return Ti(Or)}function ie(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[rr]<0||n[rr]>11?rr:n[ar]<1||n[ar]>rt(n[ir],n[rr])?ar:n[or]<0||n[or]>24||24===n[or]&&(0!==n[sr]||0!==n[lr]||0!==n[ur])?or:n[sr]<0||n[sr]>59?sr:n[lr]<0||n[lr]>59?lr:n[ur]<0||n[ur]>999?ur:-1,f(t)._overflowDayOfYear&&(ear)&&(e=ar),f(t)._overflowWeeks&&-1===e&&(e=cr),f(t)._overflowWeekday&&-1===e&&(e=hr),f(t).overflow=e),t}function re(t){var e,n,i,r,a,o,s=t._i,l=Rr.exec(s)||Lr.exec(s);if(l){for(f(t).iso=!0,e=0,n=Dr.length;e10?\"YYYY \":\"YY \"),a=\"HH:mm\"+(n[4]?\":ss\":\"\"),n[1]){var h=new Date(n[2]),d=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"][h.getDay()];if(n[1].substr(0,3)!==d)return f(t).weekdayMismatch=!0,void(t._isValid=!1)}switch(n[5].length){case 2:0===l?s=\" +0000\":(l=c.indexOf(n[5][1].toUpperCase())-12,s=(l<0?\" -\":\" +\")+(\"\"+l).replace(/^-?/,\"0\").match(/..$/)[0]+\"00\");break;case 4:s=u[n[5]];break;default:s=u[\" GMT\"]}n[5]=s,t._i=n.splice(1).join(\"\"),o=\" ZZ\",t._f=i+r+a+o,he(t),f(t).rfc2822=!0}else t._isValid=!1}function oe(t){var n=zr.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));re(t),!1===t._isValid&&(delete t._isValid,ae(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function se(t,e,n){return null!=t?t:null!=e?e:n}function le(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ue(t){var e,n,i,r,a=[];if(!t._d){for(i=le(t),t._w&&null==t._a[ar]&&null==t._a[rr]&&ce(t),null!=t._dayOfYear&&(r=se(t._a[ir],i[ir]),(t._dayOfYear>mt(r)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=bt(r,0,t._dayOfYear),t._a[rr]=n.getUTCMonth(),t._a[ar]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[or]&&0===t._a[sr]&&0===t._a[lr]&&0===t._a[ur]&&(t._nextDay=!0,t._a[or]=0),t._d=(t._useUTC?bt:yt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[or]=24)}}function ce(t){var e,n,i,r,a,o,s,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)a=1,o=4,n=se(e.GG,t._a[ir],wt(be(),1,4).year),i=se(e.W,1),((r=se(e.E,1))<1||r>7)&&(l=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var u=wt(be(),a,o);n=se(e.gg,t._a[ir],u.year),i=se(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+a,(e.e<0||e.e>6)&&(l=!0)):r=a}i<1||i>Mt(n,a,o)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=_t(n,i,r,a,o),t._a[ir]=s.year,t._dayOfYear=s.dayOfYear)}function he(t){if(t._f===e.ISO_8601)return void re(t);if(t._f===e.RFC_2822)return void ae(t);t._a=[],f(t).empty=!0;var n,i,r,a,o,s=\"\"+t._i,l=s.length,u=0;for(r=K(t._f,t._locale).match(Ii)||[],n=0;n0&&f(t).unusedInput.push(o),s=s.slice(s.indexOf(i)+i.length),u+=i.length),zi[a]?(i?f(t).empty=!1:f(t).unusedTokens.push(a),it(a,i,t)):t._strict&&!i&&f(t).unusedTokens.push(a);f(t).charsLeftOver=l-u,s.length>0&&f(t).unusedInput.push(s),t._a[or]<=12&&!0===f(t).bigHour&&t._a[or]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[or]=de(t._locale,t._a[or],t._meridiem),ue(t),ie(t)}function de(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function fe(t){var e,n,i,r,a;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ue(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=ge(t),t._a){var e=t._isUTC?h(t._a):be(t._a);this._isDSTShifted=this.isValid()&&_(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function je(){return!!this.isValid()&&!this._isUTC}function We(){return!!this.isValid()&&this._isUTC}function Ge(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ve(t,e){var n,i,r,a=t,s=null;return Te(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:o(t)?(a={},e?a[e]=t:a.milliseconds=t):(s=Vr.exec(t))?(n=\"-\"===s[1]?-1:1,a={y:0,d:x(s[ar])*n,h:x(s[or])*n,m:x(s[sr])*n,s:x(s[lr])*n,ms:x(Ce(1e3*s[ur]))*n}):(s=Hr.exec(t))?(n=\"-\"===s[1]?-1:1,a={y:He(s[2],n),M:He(s[3],n),w:He(s[4],n),d:He(s[5],n),h:He(s[6],n),m:He(s[7],n),s:He(s[8],n)}):null==a?a={}:\"object\"==typeof a&&(\"from\"in a||\"to\"in a)&&(r=Ye(be(a.from),be(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new ke(a),Te(t)&&u(t,\"_locale\")&&(i._locale=t._locale),i}function He(t,e){var n=t&&parseFloat(t.replace(\",\",\".\"));return(isNaN(n)?0:n)*e}function qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,\"M\").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,\"M\"),n}function Ye(t,e){var n;return t.isValid()&&e.isValid()?(e=Ae(e,t),t.isBefore(e)?n=qe(t,e):(n=qe(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Xe(t,e){return function(n,i){var r,a;return null===i||isNaN(+i)||(S(e,\"moment().\"+e+\"(period, number) is deprecated. Please use moment().\"+e+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),a=n,n=i,i=a),n=\"string\"==typeof n?+n:n,r=Ve(n,i),Ze(this,r,t),this}}function Ze(t,n,i,r){var a=n._milliseconds,o=Ce(n._days),s=Ce(n._months);t.isValid()&&(r=null==r||r,a&&t._d.setTime(t._d.valueOf()+a*i),o&&W(t,\"Date\",j(t,\"Date\")+o*i),s&&ut(t,j(t,\"Month\")+s*i),r&&e.updateOffset(t,o||s))}function Ke(t,e){var n=t.diff(e,\"days\",!0);return n<-6?\"sameElse\":n<-1?\"lastWeek\":n<0?\"lastDay\":n<1?\"sameDay\":n<2?\"nextDay\":n<7?\"nextWeek\":\"sameElse\"}function Qe(t,n){var i=t||be(),r=Ae(i,this).startOf(\"day\"),a=e.calendarFormat(this,r)||\"sameElse\",o=n&&(E(n[a])?n[a].call(this,i):n[a]);return this.format(o||this.localeData().calendar(a,this,be(i)))}function Je(){return new v(this)}function $e(t,e){var n=y(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&(e=N(a(e)?\"millisecond\":e),\"millisecond\"===e?this.valueOf()>n.valueOf():n.valueOf()9999?Z(t,\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\"):E(Date.prototype.toISOString)?this.toDate().toISOString():Z(t,\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")}function cn(){if(!this.isValid())return\"moment.invalid(/* \"+this._i+\" */)\";var t=\"moment\",e=\"\";this.isLocal()||(t=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",e=\"Z\");var n=\"[\"+t+'(\"]',i=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",r=e+'[\")]';return this.format(n+i+\"-MM-DD[T]HH:mm:ss.SSS\"+r)}function hn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=Z(this,t);return this.localeData().postformat(n)}function dn(t,e){return this.isValid()&&(y(t)&&t.isValid()||be(t).isValid())?Ve({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fn(t){return this.from(be(),t)}function pn(t,e){return this.isValid()&&(y(t)&&t.isValid()||be(t).isValid())?Ve({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mn(t){return this.to(be(),t)}function gn(t){var e;return void 0===t?this._locale._abbr:(e=ee(t),null!=e&&(this._locale=e),this)}function vn(){return this._locale}function yn(t){switch(t=N(t)){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":case\"date\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}return\"week\"===t&&this.weekday(0),\"isoWeek\"===t&&this.isoWeekday(1),\"quarter\"===t&&this.month(3*Math.floor(this.month()/3)),this}function bn(t){return void 0===(t=N(t))||\"millisecond\"===t?this:(\"date\"===t&&(t=\"day\"),this.startOf(t).add(1,\"isoWeek\"===t?\"week\":t).subtract(1,\"ms\"))}function xn(){return this._d.valueOf()-6e4*(this._offset||0)}function _n(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function Mn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Sn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function En(){return this.isValid()?this.toISOString():null}function kn(){return p(this)}function Tn(){return c({},f(this))}function Cn(){return f(this).overflow}function Pn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function On(t,e){q(0,[t,t.length],0,e)}function An(t){return Dn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Rn(t){return Dn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Mt(this.year(),1,4)}function In(){var t=this.localeData()._week;return Mt(this.year(),t.dow,t.doy)}function Dn(t,e,n,i,r){var a;return null==t?wt(this,i,r).year:(a=Mt(t,i,r),e>a&&(e=a),Nn.call(this,t,e,n,i,r))}function Nn(t,e,n,i,r){var a=_t(t,e,n,i,r),o=bt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function zn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Bn(t){var e=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==t?e:this.add(t-e,\"d\")}function Fn(t,e){e[ur]=x(1e3*(\"0.\"+t))}function Un(){return this._isUTC?\"UTC\":\"\"}function jn(){return this._isUTC?\"Coordinated Universal Time\":\"\"}function Wn(t){return be(1e3*t)}function Gn(){return be.apply(null,arguments).parseZone()}function Vn(t){return t}function Hn(t,e,n,i){var r=ee(),a=h().set(i,e);return r[n](a,t)}function qn(t,e,n){if(o(t)&&(e=t,t=void 0),t=t||\"\",null!=e)return Hn(t,e,n,\"month\");var i,r=[];for(i=0;i<12;i++)r[i]=Hn(t,i,n,\"month\");return r}function Yn(t,e,n,i){\"boolean\"==typeof t?(o(e)&&(n=e,e=void 0),e=e||\"\"):(e=t,n=e,t=!1,o(e)&&(n=e,e=void 0),e=e||\"\");var r=ee(),a=t?r._week.dow:0;if(null!=n)return Hn(e,(n+a)%7,i,\"day\");var s,l=[];for(s=0;s<7;s++)l[s]=Hn(e,(s+a)%7,i,\"day\");return l}function Xn(t,e){return qn(t,e,\"months\")}function Zn(t,e){return qn(t,e,\"monthsShort\")}function Kn(t,e,n){return Yn(t,e,n,\"weekdays\")}function Qn(t,e,n){return Yn(t,e,n,\"weekdaysShort\")}function Jn(t,e,n){return Yn(t,e,n,\"weekdaysMin\")}function $n(){var t=this._data;return this._milliseconds=na(this._milliseconds),this._days=na(this._days),this._months=na(this._months),t.milliseconds=na(t.milliseconds),t.seconds=na(t.seconds),t.minutes=na(t.minutes),t.hours=na(t.hours),t.months=na(t.months),t.years=na(t.years),this}function ti(t,e,n,i){var r=Ve(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function ei(t,e){return ti(this,t,e,1)}function ni(t,e){return ti(this,t,e,-1)}function ii(t){return t<0?Math.floor(t):Math.ceil(t)}function ri(){var t,e,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*ii(oi(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=b(a/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,n=b(e/60),l.hours=n%24,o+=b(n/24),r=b(ai(o)),s+=r,o-=ii(oi(r)),i=b(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function ai(t){return 4800*t/146097}function oi(t){return 146097*t/4800}function si(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if(\"month\"===(t=N(t))||\"year\"===t)return e=this._days+i/864e5,n=this._months+ai(e),\"month\"===t?n:n/12;switch(e=this._days+Math.round(oi(this._months)),t){case\"week\":return e/7+i/6048e5;case\"day\":return e+i/864e5;case\"hour\":return 24*e+i/36e5;case\"minute\":return 1440*e+i/6e4;case\"second\":return 86400*e+i/1e3;case\"millisecond\":return Math.floor(864e5*e)+i;default:throw new Error(\"Unknown unit \"+t)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function ui(t){return function(){return this.as(t)}}function ci(t){return t=N(t),this.isValid()?this[t+\"s\"]():NaN}function hi(t){return function(){return this.isValid()?this._data[t]:NaN}}function di(){return b(this.days()/7)}function fi(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function pi(t,e,n){var i=Ve(t).abs(),r=ya(i.as(\"s\")),a=ya(i.as(\"m\")),o=ya(i.as(\"h\")),s=ya(i.as(\"d\")),l=ya(i.as(\"M\")),u=ya(i.as(\"y\")),c=r<=ba.ss&&[\"s\",r]||r0,c[4]=n,fi.apply(null,c)}function mi(t){return void 0===t?ya:\"function\"==typeof t&&(ya=t,!0)}function gi(t,e){return void 0!==ba[t]&&(void 0===e?ba[t]:(ba[t]=e,\"s\"===t&&(ba.ss=e-1),!0))}function vi(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pi(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function yi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=xa(this._milliseconds)/1e3,r=xa(this._days),a=xa(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60,n=b(a/12),a%=12;var o=n,s=a,l=r,u=e,c=t,h=i,d=this.asSeconds();return d?(d<0?\"-\":\"\")+\"P\"+(o?o+\"Y\":\"\")+(s?s+\"M\":\"\")+(l?l+\"D\":\"\")+(u||c||h?\"T\":\"\")+(u?u+\"H\":\"\")+(c?c+\"M\":\"\")+(h?h+\"S\":\"\"):\"P0D\"}var bi,xi;xi=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i68?1900:2e3)};var yr=U(\"FullYear\",!0);q(\"w\",[\"ww\",2],\"wo\",\"week\"),q(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),D(\"week\",\"w\"),D(\"isoWeek\",\"W\"),B(\"week\",5),B(\"isoWeek\",5),Q(\"w\",Gi),Q(\"ww\",Gi,Fi),Q(\"W\",Gi),Q(\"WW\",Gi,Fi),nt([\"w\",\"ww\",\"W\",\"WW\"],function(t,e,n,i){e[i.substr(0,1)]=x(t)});var br={dow:0,doy:6};q(\"d\",0,\"do\",\"day\"),q(\"dd\",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q(\"ddd\",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q(\"dddd\",0,0,function(t){return this.localeData().weekdays(this,t)}),q(\"e\",0,0,\"weekday\"),q(\"E\",0,0,\"isoWeekday\"),D(\"day\",\"d\"),D(\"weekday\",\"e\"),D(\"isoWeekday\",\"E\"),B(\"day\",11),B(\"weekday\",11),B(\"isoWeekday\",11),Q(\"d\",Gi),Q(\"e\",Gi),Q(\"E\",Gi),Q(\"dd\",function(t,e){return e.weekdaysMinRegex(t)}),Q(\"ddd\",function(t,e){return e.weekdaysShortRegex(t)}),Q(\"dddd\",function(t,e){return e.weekdaysRegex(t)}),nt([\"dd\",\"ddd\",\"dddd\"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t}),nt([\"d\",\"e\",\"E\"],function(t,e,n,i){e[i]=x(t)});var xr=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),_r=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),wr=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),Mr=tr,Sr=tr,Er=tr;q(\"H\",[\"HH\",2],0,\"hour\"),q(\"h\",[\"hh\",2],0,Gt),q(\"k\",[\"kk\",2],0,Vt),q(\"hmm\",0,0,function(){return\"\"+Gt.apply(this)+H(this.minutes(),2)}),q(\"hmmss\",0,0,function(){return\"\"+Gt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),q(\"Hmm\",0,0,function(){return\"\"+this.hours()+H(this.minutes(),2)}),q(\"Hmmss\",0,0,function(){return\"\"+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),Ht(\"a\",!0),Ht(\"A\",!1),D(\"hour\",\"h\"),B(\"hour\",13),Q(\"a\",qt),Q(\"A\",qt),Q(\"H\",Gi),Q(\"h\",Gi),Q(\"k\",Gi),Q(\"HH\",Gi,Fi),Q(\"hh\",Gi,Fi),Q(\"kk\",Gi,Fi),Q(\"hmm\",Vi),Q(\"hmmss\",Hi),Q(\"Hmm\",Vi),Q(\"Hmmss\",Hi),et([\"H\",\"HH\"],or),et([\"k\",\"kk\"],function(t,e,n){var i=x(t);e[or]=24===i?0:i}),et([\"a\",\"A\"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),et([\"h\",\"hh\"],function(t,e,n){e[or]=x(t),f(n).bigHour=!0}),et(\"hmm\",function(t,e,n){var i=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i)),f(n).bigHour=!0}),et(\"hmmss\",function(t,e,n){var i=t.length-4,r=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i,2)),e[lr]=x(t.substr(r)),f(n).bigHour=!0}),et(\"Hmm\",function(t,e,n){var i=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i))}),et(\"Hmmss\",function(t,e,n){var i=t.length-4,r=t.length-2;e[or]=x(t.substr(0,i)),e[sr]=x(t.substr(i,2)),e[lr]=x(t.substr(r))});var kr,Tr=/[ap]\\.?m?\\.?/i,Cr=U(\"Hours\",!0),Pr={calendar:Ci,longDateFormat:Pi,invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:Oi,relativeTime:Ai,months:pr,monthsShort:mr,week:br,weekdays:xr,weekdaysMin:wr,weekdaysShort:_r,meridiemParse:Tr},Or={},Ar={},Rr=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Lr=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,Ir=/Z|[+-]\\d\\d(?::?\\d\\d)?/,Dr=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/]],Nr=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],zr=/^\\/?Date\\((\\-?\\d+)/i,Br=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d?\\d\\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(?:\\d\\d)?\\d\\d\\s)(\\d\\d:\\d\\d)(\\:\\d\\d)?(\\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\\d{4}))$/;e.createFromInputFallback=M(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\",function(t){t._d=new Date(t._i+(t._useUTC?\" UTC\":\"\"))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Fr=M(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?tthis?this:t:m()}),jr=function(){return Date.now?Date.now():+new Date},Wr=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];Pe(\"Z\",\":\"),Pe(\"ZZ\",\"\"),Q(\"Z\",Ji),Q(\"ZZ\",Ji),et([\"Z\",\"ZZ\"],function(t,e,n){n._useUTC=!0,n._tzm=Oe(Ji,t)});var Gr=/([\\+\\-]|\\d\\d)/gi;e.updateOffset=function(){};var Vr=/^(\\-)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/,Hr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ve.fn=ke.prototype,Ve.invalid=Ee;var qr=Xe(1,\"add\"),Yr=Xe(-1,\"subtract\");e.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",e.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var Xr=M(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(t){return void 0===t?this.localeData():this.locale(t)});q(0,[\"gg\",2],0,function(){return this.weekYear()%100}),q(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100}),On(\"gggg\",\"weekYear\"),On(\"ggggg\",\"weekYear\"),On(\"GGGG\",\"isoWeekYear\"),On(\"GGGGG\",\"isoWeekYear\"),D(\"weekYear\",\"gg\"),D(\"isoWeekYear\",\"GG\"),B(\"weekYear\",1),B(\"isoWeekYear\",1),Q(\"G\",Ki),Q(\"g\",Ki),Q(\"GG\",Gi,Fi),Q(\"gg\",Gi,Fi),Q(\"GGGG\",Yi,ji),Q(\"gggg\",Yi,ji),Q(\"GGGGG\",Xi,Wi),Q(\"ggggg\",Xi,Wi),nt([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(t,e,n,i){e[i.substr(0,2)]=x(t)}),nt([\"gg\",\"GG\"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),q(\"Q\",0,\"Qo\",\"quarter\"),D(\"quarter\",\"Q\"),B(\"quarter\",7),Q(\"Q\",Bi),et(\"Q\",function(t,e){e[rr]=3*(x(t)-1)}),q(\"D\",[\"DD\",2],\"Do\",\"date\"),D(\"date\",\"D\"),B(\"date\",9),Q(\"D\",Gi),Q(\"DD\",Gi,Fi),Q(\"Do\",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),et([\"D\",\"DD\"],ar),et(\"Do\",function(t,e){e[ar]=x(t.match(Gi)[0],10)});var Zr=U(\"Date\",!0);q(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),D(\"dayOfYear\",\"DDD\"),B(\"dayOfYear\",4),Q(\"DDD\",qi),Q(\"DDDD\",Ui),et([\"DDD\",\"DDDD\"],function(t,e,n){n._dayOfYear=x(t)}),q(\"m\",[\"mm\",2],0,\"minute\"),D(\"minute\",\"m\"),B(\"minute\",14),Q(\"m\",Gi),Q(\"mm\",Gi,Fi),et([\"m\",\"mm\"],sr);var Kr=U(\"Minutes\",!1);q(\"s\",[\"ss\",2],0,\"second\"),D(\"second\",\"s\"),B(\"second\",15),Q(\"s\",Gi),Q(\"ss\",Gi,Fi),et([\"s\",\"ss\"],lr);var Qr=U(\"Seconds\",!1);q(\"S\",0,0,function(){return~~(this.millisecond()/100)}),q(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)}),q(0,[\"SSS\",3],0,\"millisecond\"),q(0,[\"SSSS\",4],0,function(){return 10*this.millisecond()}),q(0,[\"SSSSS\",5],0,function(){return 100*this.millisecond()}),q(0,[\"SSSSSS\",6],0,function(){return 1e3*this.millisecond()}),q(0,[\"SSSSSSS\",7],0,function(){return 1e4*this.millisecond()}),q(0,[\"SSSSSSSS\",8],0,function(){return 1e5*this.millisecond()}),q(0,[\"SSSSSSSSS\",9],0,function(){return 1e6*this.millisecond()}),D(\"millisecond\",\"ms\"),B(\"millisecond\",16),Q(\"S\",qi,Bi),Q(\"SS\",qi,Fi),Q(\"SSS\",qi,Ui);var Jr;for(Jr=\"SSSS\";Jr.length<=9;Jr+=\"S\")Q(Jr,Zi);for(Jr=\"S\";Jr.length<=9;Jr+=\"S\")et(Jr,Fn);var $r=U(\"Milliseconds\",!1);q(\"z\",0,0,\"zoneAbbr\"),q(\"zz\",0,0,\"zoneName\");var ta=v.prototype;ta.add=qr,ta.calendar=Qe,ta.clone=Je,ta.diff=on,ta.endOf=bn,ta.format=hn,ta.from=dn,ta.fromNow=fn,ta.to=pn,ta.toNow=mn,ta.get=G,ta.invalidAt=Cn,ta.isAfter=$e,ta.isBefore=tn,ta.isBetween=en,ta.isSame=nn,ta.isSameOrAfter=rn,ta.isSameOrBefore=an,ta.isValid=kn,ta.lang=Xr,ta.locale=gn,ta.localeData=vn,ta.max=Ur,ta.min=Fr,ta.parsingFlags=Tn,ta.set=V,ta.startOf=yn,ta.subtract=Yr,ta.toArray=Mn,ta.toObject=Sn,ta.toDate=wn,ta.toISOString=un,ta.inspect=cn,ta.toJSON=En,ta.toString=ln,ta.unix=_n,ta.valueOf=xn,ta.creationData=Pn,ta.year=yr,ta.isLeapYear=vt,ta.weekYear=An,ta.isoWeekYear=Rn,ta.quarter=ta.quarters=zn,ta.month=ct,ta.daysInMonth=ht,ta.week=ta.weeks=Tt,ta.isoWeek=ta.isoWeeks=Ct,ta.weeksInYear=In,ta.isoWeeksInYear=Ln,ta.date=Zr,ta.day=ta.days=Nt,ta.weekday=zt,ta.isoWeekday=Bt,ta.dayOfYear=Bn,ta.hour=ta.hours=Cr,ta.minute=ta.minutes=Kr,ta.second=ta.seconds=Qr,ta.millisecond=ta.milliseconds=$r,ta.utcOffset=Le,ta.utc=De,ta.local=Ne,ta.parseZone=ze,ta.hasAlignedHourOffset=Be,ta.isDST=Fe,ta.isLocal=je,ta.isUtcOffset=We,ta.isUtc=Ge,ta.isUTC=Ge,ta.zoneAbbr=Un,ta.zoneName=jn,ta.dates=M(\"dates accessor is deprecated. Use date instead.\",Zr),ta.months=M(\"months accessor is deprecated. Use month instead\",ct),ta.years=M(\"years accessor is deprecated. Use year instead\",yr),ta.zone=M(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",Ie),ta.isDSTShifted=M(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",Ue);var ea=C.prototype;ea.calendar=P,ea.longDateFormat=O,ea.invalidDate=A,ea.ordinal=R,ea.preparse=Vn,ea.postformat=Vn,ea.relativeTime=L,ea.pastFuture=I,ea.set=k,ea.months=at,ea.monthsShort=ot,ea.monthsParse=lt,ea.monthsRegex=ft,ea.monthsShortRegex=dt,ea.week=St,ea.firstDayOfYear=kt,ea.firstDayOfWeek=Et,ea.weekdays=At,ea.weekdaysMin=Lt,ea.weekdaysShort=Rt,ea.weekdaysParse=Dt,ea.weekdaysRegex=Ft,ea.weekdaysShortRegex=Ut,ea.weekdaysMinRegex=jt,ea.isPM=Yt,ea.meridiem=Xt,Jt(\"en\",{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?\"th\":1===e?\"st\":2===e?\"nd\":3===e?\"rd\":\"th\")}}),e.lang=M(\"moment.lang is deprecated. Use moment.locale instead.\",Jt),e.langData=M(\"moment.langData is deprecated. Use moment.localeData instead.\",ee);var na=Math.abs,ia=ui(\"ms\"),ra=ui(\"s\"),aa=ui(\"m\"),oa=ui(\"h\"),sa=ui(\"d\"),la=ui(\"w\"),ua=ui(\"M\"),ca=ui(\"y\"),ha=hi(\"milliseconds\"),da=hi(\"seconds\"),fa=hi(\"minutes\"),pa=hi(\"hours\"),ma=hi(\"days\"),ga=hi(\"months\"),va=hi(\"years\"),ya=Math.round,ba={ss:44,s:45,m:45,h:22,d:26,M:11},xa=Math.abs,_a=ke.prototype;return _a.isValid=Se,_a.abs=$n,_a.add=ei,_a.subtract=ni,_a.as=si,_a.asMilliseconds=ia,_a.asSeconds=ra,_a.asMinutes=aa,_a.asHours=oa,_a.asDays=sa,_a.asWeeks=la,_a.asMonths=ua,_a.asYears=ca,_a.valueOf=li,_a._bubble=ri,_a.get=ci,_a.milliseconds=ha,_a.seconds=da,_a.minutes=fa,_a.hours=pa,_a.days=ma,_a.weeks=di,_a.months=ga,_a.years=va,_a.humanize=vi,_a.toISOString=yi,_a.toString=yi,_a.toJSON=yi,_a.locale=gn,_a.localeData=vn,_a.toIsoString=M(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",yi),_a.lang=Xr,q(\"X\",0,0,\"unix\"),q(\"x\",0,0,\"valueOf\"),Q(\"x\",Ki),Q(\"X\",$i),et(\"X\",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),et(\"x\",function(t,e,n){n._d=new Date(x(t))}),e.version=\"2.18.1\",function(t){bi=t}(be),e.fn=ta,e.min=_e,e.max=we,e.now=jr,e.utc=h,e.unix=Wn,e.months=Xn,e.isDate=s,e.locale=Jt,e.invalid=m,e.duration=Ve,e.isMoment=y,e.weekdays=Kn,e.parseZone=Gn,e.localeData=ee,e.isDuration=Te,e.monthsShort=Zn,e.weekdaysMin=Jn,e.defineLocale=$t,e.updateLocale=te,e.locales=ne,e.weekdaysShort=Qn,e.normalizeUnits=N,e.relativeTimeRounding=mi,e.relativeTimeThreshold=gi,e.calendarFormat=Ke,e.prototype=ta,e})}).call(e,n(112)(t))},function(t,e,n){var i=n(366),r=n(369),a=n(368),o=n(370),s=n(367),l=[0,0];t.exports.computeMiter=function(t,e,n,o,u){return i(t,n,o),a(t,t),r(e,-t[1],t[0]),r(l,-n[1],n[0]),u/s(e,l)},t.exports.normal=function(t,e){return r(t,-e[1],e[0]),t},t.exports.direction=function(t,e,n){return o(t,e,n),a(t,t),t}},function(t,e,n){function i(t,e,n){t.push([[e[0],e[1]],n])}var r=n(402),a=[0,0],o=[0,0],s=[0,0],l=[0,0];t.exports=function(t,e){var n=null,u=[];e&&(t=t.slice(),t.push(t[0]));for(var c=t.length,h=1;h2&&e){var g=t[c-2],v=t[0],y=t[1];r.direction(a,v,g),r.direction(o,y,v),r.normal(n,a);var b=r.computeMiter(s,l,a,o,1);u[0][0]=l.slice(),u[c-1][0]=l.slice(),u[0][1]=b,u[c-1][1]=b,u.pop()}return u}},function(t,e,n){\"use strict\";function i(t,e,n){if(!(this instanceof i))return new i(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if(\"object\"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if(\"string\"==typeof t&&void 0===e){var r=t.split(\",\");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn(\"proj4.Point will be removed in version 3, use proj4.toPoint\")}var r=n(145);i.fromMGRS=function(t){return new i(n.i(r.b)(t))},i.prototype.toMGRS=function(t){return n.i(r.c)([this.x,this.y],t)},e.a=i},function(t,e,n){\"use strict\";e.a=function(t,e,n){var i,r,a,o=n.x,s=n.y,l=n.z||0,u={};for(a=0;a<3;a++)if(!e||2!==a||void 0!==n.z)switch(0===a?(i=o,r=\"x\"):1===a?(i=s,r=\"y\"):(i=l,r=\"z\"),t.axis[a]){case\"e\":u[r]=i;break;case\"w\":u[r]=-i;break;case\"n\":u[r]=i;break;case\"s\":u[r]=-i;break;case\"u\":void 0!==n[r]&&(u.z=i);break;case\"d\":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}},function(t,e,n){\"use strict\";function i(t){if(\"function\"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError(\"coordinates must be finite numbers\")}if(\"number\"!=typeof t||t!==t||!isFinite(t))throw new TypeError(\"coordinates must be finite numbers\")}e.a=function(t){i(t.x),i(t.y)}},function(t,e,n){\"use strict\";var i=n(10);e.a=function(t,e){if(void 0===t){if((t=Math.floor(30*(n.i(i.a)(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}},function(t,e,n){\"use strict\";var i=n(146),r=n(414);e.a=function(t){var e=Math.abs(t);return e=n.i(r.a)(e*(1+e/(n.i(i.a)(1,e)+1))),t<0?-e:e}},function(t,e,n){\"use strict\";e.a=function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,a=t[r],o=0;--r>=0;)n=i*a-o+t[r],o=a,a=n;return Math.sin(e)*n}},function(t,e,n){\"use strict\";var i=n(149),r=n(411);e.a=function(t,e,a){for(var o,s,l=Math.sin(e),u=Math.cos(e),c=n.i(i.a)(a),h=n.i(r.a)(a),d=2*u*h,f=-2*l*c,p=t.length-1,m=t[p],g=0,v=0,y=0;--p>=0;)o=v,s=g,v=m,g=y,m=d*v-o-f*g+t[p],y=f*v-s+d*g;return d=l*h,f=u*c,[d*m-f*y,d*y+f*m]}},function(t,e,n){\"use strict\";e.a=function(t){var e=Math.exp(t);return e=(e+1/e)/2}},function(t,e,n){\"use strict\";e.a=function(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,a=t[r],o=0;--r>=0;)n=i*a-o+t[r],o=a,a=n;return e+n*Math.sin(2*e)}},function(t,e,n){\"use strict\";var i=n(7);e.a=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*i.a:i.a;for(var r,a,o,s,l=Math.asin(.5*e),u=0;u<30;u++)if(a=Math.sin(l),o=Math.cos(l),s=t*a,r=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-a/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),l+=r,Math.abs(r)<=1e-10)return l;return NaN}},function(t,e,n){\"use strict\";e.a=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}},function(t,e,n){\"use strict\";e.a=function(t,e){return Math.pow((1-t)/(1+t),e)}},function(t,e,n){\"use strict\";n.d(e,\"a\",function(){return i});var i={};i.wgs84={towgs84:\"0,0,0\",ellipse:\"WGS84\",datumName:\"WGS84\"},i.ch1903={towgs84:\"674.374,15.056,405.346\",ellipse:\"bessel\",datumName:\"swiss\"},i.ggrs87={towgs84:\"-199.87,74.79,246.62\",ellipse:\"GRS80\",datumName:\"Greek_Geodetic_Reference_System_1987\"},i.nad83={towgs84:\"0,0,0\",ellipse:\"GRS80\",datumName:\"North_American_Datum_1983\"},i.nad27={nadgrids:\"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat\",ellipse:\"clrk66\",datumName:\"North_American_Datum_1927\"},i.potsdam={towgs84:\"606.0,23.0,413.0\",ellipse:\"bessel\",datumName:\"Potsdam Rauenberg 1950 DHDN\"},i.carthage={towgs84:\"-263.0,6.0,431.0\",ellipse:\"clark80\",datumName:\"Carthage 1934 Tunisia\"},i.hermannskogel={towgs84:\"653.0,-212.0,449.0\",ellipse:\"bessel\",datumName:\"Hermannskogel\"},i.osni52={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"airy\",datumName:\"Irish National\"},i.ire65={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"mod_airy\",datumName:\"Ireland 1965\"},i.rassadiran={towgs84:\"-133.63,-157.5,-158.62\",ellipse:\"intl\",datumName:\"Rassadiran\"},i.nzgd49={towgs84:\"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993\",ellipse:\"intl\",datumName:\"New Zealand Geodetic Datum 1949\"},i.osgb36={towgs84:\"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894\",ellipse:\"airy\",datumName:\"Airy 1830\"},i.s_jtsk={towgs84:\"589,76,480\",ellipse:\"bessel\",datumName:\"S-JTSK (Ferro)\"},i.beduaram={towgs84:\"-106,-87,188\",ellipse:\"clrk80\",datumName:\"Beduaram\"},i.gunung_segara={towgs84:\"-403,684,41\",ellipse:\"bessel\",datumName:\"Gunung Segara Jakarta\"},i.rnb72={towgs84:\"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1\",ellipse:\"intl\",datumName:\"Reseau National Belge 1972\"}},function(t,e,n){\"use strict\";n.d(e,\"a\",function(){return i}),n.d(e,\"b\",function(){return r});var i={};i.MERIT={a:6378137,rf:298.257,ellipseName:\"MERIT 1983\"},i.SGS85={a:6378136,rf:298.257,ellipseName:\"Soviet Geodetic System 85\"},i.GRS80={a:6378137,rf:298.257222101,ellipseName:\"GRS 1980(IUGG, 1980)\"},i.IAU76={a:6378140,rf:298.257,ellipseName:\"IAU 1976\"},i.airy={a:6377563.396,b:6356256.91,ellipseName:\"Airy 1830\"},i.APL4={a:6378137,rf:298.25,ellipseName:\"Appl. Physics. 1965\"},i.NWL9D={a:6378145,rf:298.25,ellipseName:\"Naval Weapons Lab., 1965\"},i.mod_airy={a:6377340.189,b:6356034.446,ellipseName:\"Modified Airy\"},i.andrae={a:6377104.43,rf:300,ellipseName:\"Andrae 1876 (Den., Iclnd.)\"},i.aust_SA={a:6378160,rf:298.25,ellipseName:\"Australian Natl & S. Amer. 1969\"},i.GRS67={a:6378160,rf:298.247167427,ellipseName:\"GRS 67(IUGG 1967)\"},i.bessel={a:6377397.155,rf:299.1528128,ellipseName:\"Bessel 1841\"},i.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:\"Bessel 1841 (Namibia)\"},i.clrk66={a:6378206.4,b:6356583.8,ellipseName:\"Clarke 1866\"},i.clrk80={a:6378249.145,rf:293.4663,ellipseName:\"Clarke 1880 mod.\"},i.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:\"Clarke 1858\"},i.CPM={a:6375738.7,rf:334.29,ellipseName:\"Comm. des Poids et Mesures 1799\"},i.delmbr={a:6376428,rf:311.5,ellipseName:\"Delambre 1810 (Belgium)\"},i.engelis={a:6378136.05,rf:298.2566,ellipseName:\"Engelis 1985\"},i.evrst30={a:6377276.345,rf:300.8017,ellipseName:\"Everest 1830\"},i.evrst48={a:6377304.063,rf:300.8017,ellipseName:\"Everest 1948\"},i.evrst56={a:6377301.243,rf:300.8017,ellipseName:\"Everest 1956\"},i.evrst69={a:6377295.664,rf:300.8017,ellipseName:\"Everest 1969\"},i.evrstSS={a:6377298.556,rf:300.8017,ellipseName:\"Everest (Sabah & Sarawak)\"},i.fschr60={a:6378166,rf:298.3,ellipseName:\"Fischer (Mercury Datum) 1960\"},i.fschr60m={a:6378155,rf:298.3,ellipseName:\"Fischer 1960\"},i.fschr68={a:6378150,rf:298.3,ellipseName:\"Fischer 1968\"},i.helmert={a:6378200,rf:298.3,ellipseName:\"Helmert 1906\"},i.hough={a:6378270,rf:297,ellipseName:\"Hough\"},i.intl={a:6378388,rf:297,ellipseName:\"International 1909 (Hayford)\"},i.kaula={a:6378163,rf:298.24,ellipseName:\"Kaula 1961\"},i.lerch={a:6378139,rf:298.257,ellipseName:\"Lerch 1979\"},i.mprts={a:6397300,rf:191,ellipseName:\"Maupertius 1738\"},i.new_intl={a:6378157.5,b:6356772.2,ellipseName:\"New International 1967\"},i.plessis={a:6376523,rf:6355863,ellipseName:\"Plessis 1817 (France)\"},i.krass={a:6378245,rf:298.3,ellipseName:\"Krassovsky, 1942\"},i.SEasia={a:6378155,b:6356773.3205,ellipseName:\"Southeast Asia\"},i.walbeck={a:6376896,b:6355834.8467,ellipseName:\"Walbeck\"},i.WGS60={a:6378165,rf:298.3,ellipseName:\"WGS 60\"},i.WGS66={a:6378145,rf:298.25,ellipseName:\"WGS 66\"},i.WGS7={a:6378135,rf:298.26,ellipseName:\"WGS 72\"};var r=i.WGS84={a:6378137,rf:298.257223563,ellipseName:\"WGS 84\"};i.sphere={a:6370997,b:6370997,ellipseName:\"Normal Sphere (r=6370997)\"}},function(t,e,n){\"use strict\";n.d(e,\"a\",function(){return i});var i={};i.greenwich=0,i.lisbon=-9.131906111111,i.paris=2.337229166667,i.bogota=-74.080916666667,i.madrid=-3.687938888889,i.rome=12.452333333333,i.bern=7.439583333333,i.jakarta=106.807719444444,i.ferro=-17.666666666667,i.brussels=4.367975,i.stockholm=18.058277777778,i.athens=23.7163375,i.oslo=10.722916666667},function(t,e,n){\"use strict\";e.a={ft:{to_meter:.3048},\"us-ft\":{to_meter:1200/3937}}},function(t,e,n){\"use strict\";function i(t,e,i){var r,a,o;return Array.isArray(i)?(r=n.i(s.a)(t,e,i),3===i.length?[r.x,r.y,r.z]:[r.x,r.y]):(a=n.i(s.a)(t,e,i),o=Object.keys(i),2===o.length?a:(o.forEach(function(t){\"x\"!==t&&\"y\"!==t&&(a[t]=i[t])}),a))}function r(t){return t instanceof o.a?t:t.oProj?t.oProj:n.i(o.a)(t)}function a(t,e,n){t=r(t);var a,o=!1;return void 0===e?(e=t,t=l,o=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,e=t,t=l,o=!0),e=r(e),n?i(t,e,n):(a={forward:function(n){return i(t,e,n)},inverse:function(n){return i(e,t,n)}},o&&(a.oProj=e),a)}var o=n(102),s=n(154),l=n.i(o.a)(\"WGS84\");e.a=a},function(t,e,n){\"use strict\";function i(t,e,n,i,a,o){var s={};return s.datum_type=void 0===t||\"none\"===t?r.k:r.l,e&&(s.datum_params=e.map(parseFloat),0===s.datum_params[0]&&0===s.datum_params[1]&&0===s.datum_params[2]||(s.datum_type=r.h),s.datum_params.length>3&&(0===s.datum_params[3]&&0===s.datum_params[4]&&0===s.datum_params[5]&&0===s.datum_params[6]||(s.datum_type=r.i,s.datum_params[3]*=r.f,s.datum_params[4]*=r.f,s.datum_params[5]*=r.f,s.datum_params[6]=s.datum_params[6]/1e6+1))),s.a=n,s.b=i,s.es=a,s.ep2=o,s}var r=n(7);e.a=i},function(t,e,n){\"use strict\";function i(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(t.datum_type===l.h?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:t.datum_type!==l.i||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}function r(t,e,n){var i,r,a,o,s=t.x,u=t.y,c=t.z?t.z:0;if(u<-l.a&&u>-1.001*l.a)u=-l.a;else if(u>l.a&&u<1.001*l.a)u=l.a;else if(u<-l.a||u>l.a)return null;return s>Math.PI&&(s-=2*Math.PI),r=Math.sin(u),o=Math.cos(u),a=r*r,i=n/Math.sqrt(1-e*a),{x:(i+c)*o*Math.cos(s),y:(i+c)*o*Math.sin(s),z:(i*(1-e)+c)*r}}function a(t,e,n,i){var r,a,o,s,u,c,h,d,f,p,m,g,v,y,b,x,_=t.x,w=t.y,M=t.z?t.z:0;if(r=Math.sqrt(_*_+w*w),a=Math.sqrt(_*_+w*w+M*M),r/n<1e-12){if(y=0,a/n<1e-12)return b=l.a,x=-i,{x:t.x,y:t.y,z:t.z}}else y=Math.atan2(w,_);o=M/a,s=r/a,u=1/Math.sqrt(1-e*(2-e)*s*s),d=s*(1-e)*u,f=o*u,v=0;do{v++,h=n/Math.sqrt(1-e*f*f),x=r*d+M*f-h*(1-e*f*f),c=e*h/(h+x),u=1/Math.sqrt(1-c*(2-c)*s*s),p=s*(1-c)*u,m=o*u,g=m*d-p*f,d=p,f=m}while(g*g>1e-24&&v<30);return b=Math.atan(m/Math.abs(p)),{x:y,y:b,z:x}}function o(t,e,n){if(e===l.h)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(e===l.i){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6];return{x:c*(t.x-u*t.y+s*t.z)+i,y:c*(u*t.x+t.y-o*t.z)+r,z:c*(-s*t.x+o*t.y+t.z)+a}}}function s(t,e,n){if(e===l.h)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(e===l.i){var i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],u=n[5],c=n[6],h=(t.x-i)/c,d=(t.y-r)/c,f=(t.z-a)/c;return{x:h+u*d-s*f,y:-u*h+d+o*f,z:s*h-o*d+f}}}e.a=i,e.b=r,e.e=a,e.c=o,e.d=s;var l=n(7)},function(t,e,n){\"use strict\";function i(t){return t===r.h||t===r.i}var r=n(7),a=n(422);e.a=function(t,e,o){return n.i(a.a)(t,e)?o:t.datum_type===r.k||e.datum_type===r.k?o:t.es!==e.es||t.a!==e.a||i(t.datum_type)||i(e.datum_type)?(o=n.i(a.b)(o,t.es,t.a),i(t.datum_type)&&(o=n.i(a.c)(o,t.datum_type,t.datum_params)),i(e.datum_type)&&(o=n.i(a.d)(o,e.datum_type,e.datum_params)),n.i(a.e)(o,e.es,e.a,e.b)):o}},function(t,e,n){\"use strict\";function i(t,e,n,i){var r=t*t,o=e*e,s=(r-o)/r,l=0;return i?(t*=1-s*(a.m+s*(a.n+s*a.o)),r=t*t,s=0):l=Math.sqrt(s),{es:s,e:l,ep2:(r-o)/o}}function r(t,e,i,r,l){if(!t){var u=n.i(s.a)(o.a,r);u||(u=o.b),t=u.a,e=u.b,i=u.rf}return i&&!e&&(e=(1-1/i)*t),(0===i||Math.abs(t-e)-1})}function o(t){return\"+\"===t[0]}function s(t){return i(t)?r(t)?l.a[t]:a(t)?n.i(u.a)(t):o(t)?n.i(c.a)(t):void 0:t}var l=n(151),u=n(159),c=n(152),h=[\"PROJECTEDCRS\",\"PROJCRS\",\"GEOGCS\",\"GEOCCS\",\"PROJCS\",\"LOCAL_CS\",\"GEODCRS\",\"GEODETICCRS\",\"GEODETICDATUM\",\"ENGCRS\",\"ENGINEERINGCRS\"];e.a=s},function(t,e,n){\"use strict\";function i(t,e){var n=c.length;return t.names?(c[n]=t,t.names.forEach(function(t){u[t.toLowerCase()]=n}),this):(console.log(e),!0)}function r(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==u[e]&&c[u[e]]?c[u[e]]:void 0}function a(){l.forEach(i)}var o=n(442),s=n(441),l=[o.a,s.a],u={},c=[];e.a={start:a,add:i,get:r}},function(t,e,n){\"use strict\";function i(){Math.abs(this.lat1+this.lat2)h.d?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function r(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var r=n.i(l.a)(this.e3,this.sin_phi,this.cos_phi),a=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*n.i(u.a)(e-this.long0),s=a*Math.sin(o)+this.x0,c=this.rh-a*Math.cos(o)+this.y0;return t.x=s,t.y=c,t}function a(t){var e,i,r,a,o,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),r=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),r=-1),a=0,0!==e&&(a=Math.atan2(r*t.x,r*t.y)),r=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-r*r)/(2*this.ns0)):(i=(this.c-r*r)/this.ns0,s=this.phi1z(this.e3,i)),o=n.i(u.a)(a/this.ns0+this.long0),t.x=o,t.y=s,t}function o(t,e){var i,r,a,o,s,l=n.i(c.a)(.5*e);if(t2*s.a*this.a)return;return i=e/this.a,r=Math.sin(i),a=Math.cos(i),g=this.long0,Math.abs(e)<=s.d?v=this.lat0:(v=n.i(p.a)(a*this.sin_p12+t.y*r*this.cos_p12/e),y=Math.abs(this.lat0)-s.a,g=Math.abs(y)<=s.d?this.lat0>=0?n.i(o.a)(this.long0+Math.atan2(t.x,-t.y)):n.i(o.a)(this.long0-Math.atan2(-t.x,t.y)):n.i(o.a)(this.long0+Math.atan2(t.x*r,e*this.cos_p12*a-t.y*this.sin_p12*r))),t.x=g,t.y=v,t}return b=n.i(u.a)(this.es),x=n.i(c.a)(this.es),_=n.i(h.a)(this.es),w=n.i(d.a)(this.es),Math.abs(this.sin_p12-1)<=s.d?(M=this.a*n.i(l.a)(b,x,_,w,s.a),e=Math.sqrt(t.x*t.x+t.y*t.y),S=M-e,v=n.i(m.a)(S/this.a,b,x,_,w),g=n.i(o.a)(this.long0+Math.atan2(t.x,-1*t.y)),t.x=g,t.y=v,t):Math.abs(this.sin_p12+1)<=s.d?(M=this.a*n.i(l.a)(b,x,_,w,s.a),e=Math.sqrt(t.x*t.x+t.y*t.y),S=e-M,v=n.i(m.a)(S/this.a,b,x,_,w),g=n.i(o.a)(this.long0+Math.atan2(t.x,t.y)),t.x=g,t.y=v,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),T=Math.atan2(t.x,t.y),E=n.i(f.a)(this.a,this.e,this.sin_p12),C=Math.cos(T),P=this.e*this.cos_p12*C,O=-P*P/(1-this.es),A=3*this.es*(1-O)*this.sin_p12*this.cos_p12*C/(1-this.es),R=e/E,L=R-O*(1+O)*Math.pow(R,3)/6-A*(1+3*O)*Math.pow(R,4)/24,I=1-O*L*L/2-R*L*L*L/6,k=Math.asin(this.sin_p12*Math.cos(L)+this.cos_p12*Math.sin(L)*C),g=n.i(o.a)(this.long0+Math.asin(Math.sin(T)*Math.sin(L)/Math.cos(k))),v=Math.atan((1-this.es*I*this.sin_p12/Math.sin(k))*Math.tan(k)/(1-this.es)),t.x=g,t.y=v,t)}var o=n(10),s=n(7),l=n(73),u=n(69),c=n(70),h=n(71),d=n(72),f=n(103),p=n(44),m=n(104),g=[\"Azimuthal_Equidistant\",\"aeqd\"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){\"use strict\";function i(){this.sphere||(this.e0=n.i(s.a)(this.es),this.e1=n.i(l.a)(this.es),this.e2=n.i(u.a)(this.es),this.e3=n.i(c.a)(this.es),this.ml0=this.a*n.i(o.a)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function r(t){var e,i,r=t.x,a=t.y;if(r=n.i(d.a)(r-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(a)*Math.sin(r)),i=this.a*(Math.atan2(Math.tan(a),Math.cos(r))-this.lat0);else{var s=Math.sin(a),l=Math.cos(a),u=n.i(h.a)(this.a,this.e,s),c=Math.tan(a)*Math.tan(a),f=r*Math.cos(a),p=f*f,m=this.es*l*l/(1-this.es),g=this.a*n.i(o.a)(this.e0,this.e1,this.e2,this.e3,a);e=u*f*(1-p*c*(1/6-(8-c+8*m)*p/120)),i=g-this.ml0+u*s/l*p*(.5+(5-c+6*m)*p/24)}return t.x=e+this.x0,t.y=i+this.y0,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i,r=t.x/this.a,a=t.y/this.a;if(this.sphere){var o=a+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(r)),i=Math.atan2(Math.tan(r),Math.cos(o))}else{var s=this.ml0/this.a+a,l=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-m.a)<=m.d)return t.x=this.long0,t.y=m.a,a<0&&(t.y*=-1),t;var u=n.i(h.a)(this.a,this.e,Math.sin(l)),c=u*u*u/this.a/this.a*(1-this.es),g=Math.pow(Math.tan(l),2),v=r*this.a/u,y=v*v;e=l-u*Math.tan(l)/c*v*v*(.5-(1+3*g)*v*v/24),i=v*(1-y*(g/3+(1+3*g)*g*y/15))/Math.cos(l)}return t.x=n.i(d.a)(i+this.long0),t.y=n.i(f.a)(e),t}var o=n(73),s=n(69),l=n(70),u=n(71),c=n(72),h=n(103),d=n(10),f=n(56),p=n(104),m=n(7),g=[\"Cassini\",\"Cassini_Soldner\",\"cass\"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){\"use strict\";function i(){this.sphere||(this.k0=n.i(l.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function r(t){var e,i,r=t.x,a=t.y,l=n.i(o.a)(r-this.long0);if(this.sphere)e=this.x0+this.a*l*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var u=n.i(s.a)(this.e,Math.sin(a));e=this.x0+this.a*this.k0*l,i=this.y0+this.a*u*.5/this.k0}return t.x=e,t.y=i,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i;return this.sphere?(e=n.i(o.a)(this.long0+t.x/this.a/Math.cos(this.lat_ts)),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=n.i(u.a)(this.e,2*t.y*this.k0/this.a),e=n.i(o.a)(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=i,t}var o=n(10),s=n(106),l=n(45),u=n(413),c=[\"cea\"];e.a={init:i,forward:r,inverse:a,names:c}},function(t,e,n){\"use strict\";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||\"Equidistant Cylindrical (Plate Carre)\",this.rc=Math.cos(this.lat_ts)}function r(t){var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=n.i(s.a)(i-this.lat0);return t.x=this.x0+this.a*r*this.rc,t.y=this.y0+this.a*a,t}function a(t){var e=t.x,i=t.y;return t.x=n.i(o.a)(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=n.i(s.a)(this.lat0+(i-this.y0)/this.a),t}var o=n(10),s=n(56),l=[\"Equirectangular\",\"Equidistant_Cylindrical\",\"eqc\"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){\"use strict\";function i(){Math.abs(this.lat1+this.lat2)=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;if(0!==i&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere)return a=n.i(d.a)(this.long0+o/this.ns),r=n.i(f.a)(this.g-i/this.a),t.x=a,t.y=r,t;var s=this.g-i/this.a;return r=n.i(p.a)(s,this.e0,this.e1,this.e2,this.e3),a=n.i(d.a)(this.long0+o/this.ns),t.x=a,t.y=r,t}var o=n(69),s=n(70),l=n(71),u=n(72),c=n(45),h=n(73),d=n(10),f=n(56),p=n(104),m=n(7),g=[\"Equidistant_Conic\",\"eqdc\"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){\"use strict\";function i(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+s.b)/(Math.pow(Math.tan(.5*this.lat0+s.b),this.C)*n.i(o.a)(this.e*t,this.ratexp))}function r(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+s.b),this.C)*n.i(o.a)(this.e*Math.sin(i),this.ratexp))-s.a,t.x=this.C*e,t}function a(t){for(var e=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+s.b)/this.K,1/this.C),a=l;a>0&&(i=2*Math.atan(r*n.i(o.a)(this.e*Math.sin(t.y),-.5*this.e))-s.a,!(Math.abs(i-t.y)<1e-14));--a)t.y=i;return a?(t.x=e,t.y=i,t):null}var o=n(415),s=n(7),l=20,u=[\"gauss\"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){\"use strict\";function i(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function r(t){var e,i,r,a,s,u,c,h,d=t.x,f=t.y;return r=n.i(o.a)(d-this.long0),e=Math.sin(f),i=Math.cos(f),a=Math.cos(r),u=this.sin_p14*e+this.cos_p14*i*a,s=1,u>0||Math.abs(u)<=l.d?(c=this.x0+this.a*s*i*Math.sin(r)/u,h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*a)/u):(c=this.x0+this.infinity_dist*i*Math.sin(r),h=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*a)),t.x=c,t.y=h,t}function a(t){var e,i,r,a,l,u;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(a=Math.atan2(e,this.rc),i=Math.sin(a),r=Math.cos(a),u=n.i(s.a)(r*this.sin_p14+t.y*i*this.cos_p14/e),l=Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),l=n.i(o.a)(this.long0+l)):(u=this.phic0,l=0),t.x=l,t.y=u,t}var o=n(10),s=n(44),l=n(7),u=[\"gnom\"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){\"use strict\";function i(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function r(t){var e,i,r,a,s,l,u,c=t.x,h=t.y,d=n.i(o.a)(c-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),r=-d*this.alfa,a=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),s=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(a)),l=this.n*s,u=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(a/2+this.s45),this.n),t.y=u*Math.cos(l)/1,t.x=u*Math.sin(l)/1,this.czech||(t.y*=-1,t.x*=-1),t}function a(t){var e,n,i,r,a,o,s,l,u=t.x;t.x=t.y,t.y=u,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),a=Math.atan2(t.y,t.x),r=a/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,s=e,l=0;var c=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-t.y)<1e-10&&(l=1),s=t.y,c+=1}while(0===l&&c<15);return c>=15?null:t}var o=n(10),s=[\"Krovak\",\"krovak\"];e.a={init:i,forward:r,inverse:a,names:s}},function(t,e,n){\"use strict\";function i(){var t=Math.abs(this.lat0);if(Math.abs(t-l.a)0){var e;switch(this.qp=n.i(u.a)(this.e,1),this.mmf=.5/(1-this.es),this.apa=o(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=n.i(u.a)(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function r(t){var e,i,r,a,o,s,h,d,f,p,m=t.x,g=t.y;if(m=n.i(c.a)(m-this.long0),this.sphere){if(o=Math.sin(g),p=Math.cos(g),r=Math.cos(m),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+p*r:1+this.sinph0*o+this.cosph0*p*r)<=l.d)return null;i=Math.sqrt(2/i),e=i*p*Math.sin(m),i*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*p*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.phi0)=0?(e=(f=Math.sqrt(s))*a,i=r*(this.mode===this.S_POLE?f:-f)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e,i,r,a,o,u,h,d=t.x/this.a,f=t.y/this.a;if(this.sphere){var p,m=0,g=0;if(p=Math.sqrt(d*d+f*f),(i=.5*p)>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(i),m=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(p)<=l.d?0:Math.asin(f*g/p),d*=g,f=m*p;break;case this.OBLIQ:i=Math.abs(p)<=l.d?this.phi0:Math.asin(m*this.sinph0+f*g*this.cosph0/p),d*=g*this.cosph0,f=(m-Math.sin(i)*this.sinph0)*p;break;case this.N_POLE:f=-f,i=l.a-i;break;case this.S_POLE:i-=l.a}e=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(d,f):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(d/=this.dd,f*=this.dd,(u=Math.sqrt(d*d+f*f))h.d?this.ns=Math.log(r/c)/Math.log(a/d):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=r/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(f,this.ns),this.title||(this.title=\"Lambert Conformal Conic\")}}function r(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=h.d&&(i=n.i(l.a)(i)*(h.a-2*h.d));var r,a,o=Math.abs(Math.abs(i)-h.a);if(o>h.d)r=n.i(s.a)(this.e,i,Math.sin(i)),a=this.a*this.f0*Math.pow(r,this.ns);else{if((o=i*this.ns)<=0)return null;a=0}var c=this.ns*n.i(u.a)(e-this.long0);return t.x=this.k0*(a*Math.sin(c))+this.x0,t.y=this.k0*(this.rh-a*Math.cos(c))+this.y0,t}function a(t){var e,i,r,a,o,s=(t.x-this.x0)/this.k0,l=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+l*l),i=1):(e=-Math.sqrt(s*s+l*l),i=-1);var d=0;if(0!==e&&(d=Math.atan2(i*s,i*l)),0!==e||this.ns>0){if(i=1/this.ns,r=Math.pow(e/(this.a*this.f0),i),-9999===(a=n.i(c.a)(this.e,r)))return null}else a=-h.a;return o=n.i(u.a)(d/this.ns+this.long0),t.x=o,t.y=a,t}var o=n(45),s=n(75),l=n(57),u=n(10),c=n(74),h=n(7),d=[\"Lambert Tangential Conformal Conic Projection\",\"Lambert_Conformal_Conic\",\"Lambert_Conformal_Conic_2SP\",\"lcc\"];e.a={init:i,forward:r,inverse:a,names:d}},function(t,e,n){\"use strict\";function i(){}function r(t){return t}var a=[\"longlat\",\"identity\"];e.a={init:i,forward:r,inverse:r,names:a}},function(t,e,n){\"use strict\";function i(){var t=this.b/this.a;this.es=1-t*t,\"x0\"in this||(this.x0=0),\"y0\"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=n.i(o.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function r(t){var e=t.x,i=t.y;if(i*c.j>90&&i*c.j<-90&&e*c.j>180&&e*c.j<-180)return null;var r,a;if(Math.abs(Math.abs(i)-c.a)<=c.d)return null;if(this.sphere)r=this.x0+this.a*this.k0*n.i(s.a)(e-this.long0),a=this.y0+this.a*this.k0*Math.log(Math.tan(c.b+.5*i));else{var o=Math.sin(i),u=n.i(l.a)(this.e,i,o);r=this.x0+this.a*this.k0*n.i(s.a)(e-this.long0),a=this.y0-this.a*this.k0*Math.log(u)}return t.x=r,t.y=a,t}function a(t){var e,i,r=t.x-this.x0,a=t.y-this.y0;if(this.sphere)i=c.a-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var o=Math.exp(-a/(this.a*this.k0));if(-9999===(i=n.i(u.a)(this.e,o)))return null}return e=n.i(s.a)(this.long0+r/(this.a*this.k0)),t.x=e,t.y=i,t}var o=n(45),s=n(10),l=n(75),u=n(74),c=n(7),h=[\"Mercator\",\"Popular Visualisation Pseudo Mercator\",\"Mercator_1SP\",\"Mercator_Auxiliary_Sphere\",\"merc\"];e.a={init:i,forward:r,inverse:a,names:h}},function(t,e,n){\"use strict\";function i(){}function r(t){var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=this.x0+this.a*r,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=a,t.y=s,t}function a(t){t.x-=this.x0,t.y-=this.y0;var e=n.i(o.a)(this.long0+t.x/this.a),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t}var o=n(10),s=[\"Miller_Cylindrical\",\"mill\"];e.a={init:i,forward:r,inverse:a,names:s}},function(t,e,n){\"use strict\";function i(){}function r(t){for(var e=t.x,i=t.y,r=n.i(o.a)(e-this.long0),a=i,l=Math.PI*Math.sin(i);;){var u=-(a+Math.sin(a)-l)/(1+Math.cos(a));if(a+=u,Math.abs(u).999999999999&&(i=.999999999999),e=Math.asin(i);var r=n.i(o.a)(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var a=Math.asin(i);return t.x=r,t.y=a,t}var o=n(10),s=n(7),l=[\"Mollweide\",\"moll\"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){\"use strict\";function i(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function r(t){var e,n=t.x,i=t.y,r=i-this.lat0,a=n-this.long0,s=r/o.f*1e-5,l=a,u=1,c=0;for(e=1;e<=10;e++)u*=s,c+=this.A[e]*u;var h,d,f=c,p=l,m=1,g=0,v=0,y=0;for(e=1;e<=6;e++)h=m*f-g*p,d=g*f+m*p,m=h,g=d,v=v+this.B_re[e]*m-this.B_im[e]*g,y=y+this.B_im[e]*m+this.B_re[e]*g;return t.x=y*this.a+this.x0,t.y=v*this.a+this.y0,t}function a(t){var e,n,i,r=t.x,a=t.y,s=r-this.x0,l=a-this.y0,u=l/this.a,c=s/this.a,h=1,d=0,f=0,p=0;for(e=1;e<=6;e++)n=h*u-d*c,i=d*u+h*c,h=n,d=i,f=f+this.C_re[e]*h-this.C_im[e]*d,p=p+this.C_im[e]*h+this.C_re[e]*d;for(var m=0;m=0?this.el=(a+Math.sqrt(a*a-1))*Math.pow(r,this.bl):this.el=(a-Math.sqrt(a*a-1))*Math.pow(r,this.bl);var d=Math.pow(c,this.bl),f=Math.pow(h,this.bl);l=this.el/d,u=.5*(l-1/l);var p=(this.el*this.el-f*d)/(this.el*this.el+f*d),m=(f-d)/(f+d),g=n.i(s.a)(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(p*Math.tan(.5*this.bl*g)/m)/this.bl,this.long0=n.i(s.a)(this.long0);var v=n.i(s.a)(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*v)/u),this.alpha=Math.asin(a*Math.sin(this.gamma0))}else l=this.lat0>=0?a+Math.sqrt(a*a-1):a-Math.sqrt(a*a-1),this.el=l*Math.pow(r,this.bl),u=.5*(l-1/l),this.gamma0=Math.asin(Math.sin(this.alpha)/a),this.long0=this.longc-Math.asin(u*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(a*a-1),Math.cos(this.alpha))}function r(t){var e,i,r,a=t.x,l=t.y,c=n.i(s.a)(a-this.long0);if(Math.abs(Math.abs(l)-u.a)<=u.d)r=l>0?-1:1,i=this.al/this.bl*Math.log(Math.tan(u.b+r*this.gamma0*.5)),e=-1*r*u.a*this.al/this.bl;else{var h=n.i(o.a)(this.e,l,Math.sin(l)),d=this.el/Math.pow(h,this.bl),f=.5*(d-1/d),p=.5*(d+1/d),m=Math.sin(this.bl*c),g=(f*Math.sin(this.gamma0)-m*Math.cos(this.gamma0))/p;i=Math.abs(Math.abs(g)-1)<=u.d?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-g)/(1+g))/this.bl,e=Math.abs(Math.cos(this.bl*c))<=u.d?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+m*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+i):(e-=this.uc,t.x=this.x0+i*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-i*Math.sin(this.alpha)),t}function a(t){var e,i;this.no_rot?(i=t.y-this.y0,e=t.x-this.x0):(i=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var r=Math.exp(-1*this.bl*i/this.al),a=.5*(r-1/r),o=.5*(r+1/r),c=Math.sin(this.bl*e/this.al),h=(c*Math.cos(this.gamma0)+a*Math.sin(this.gamma0))/o,d=Math.pow(this.el/Math.sqrt((1+h)/(1-h)),1/this.bl);return Math.abs(h-1)0||Math.abs(u)<=l.d)&&(c=this.a*s*i*Math.sin(r),h=this.y0+this.a*s*(this.cos_p14*e-this.sin_p14*i*a)),t.x=c,t.y=h,t}function a(t){var e,i,r,a,u,c,h;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=n.i(s.a)(e/this.a),r=Math.sin(i),a=Math.cos(i),c=this.long0,Math.abs(e)<=l.d?(h=this.lat0,t.x=c,t.y=h,t):(h=n.i(s.a)(a*this.sin_p14+t.y*r*this.cos_p14/e),u=Math.abs(this.lat0)-l.a,Math.abs(u)<=l.d?(c=this.lat0>=0?n.i(o.a)(this.long0+Math.atan2(t.x,-t.y)):n.i(o.a)(this.long0-Math.atan2(-t.x,t.y)),t.x=c,t.y=h,t):(c=n.i(o.a)(this.long0+Math.atan2(t.x*r,e*this.cos_p14*a-t.y*this.sin_p14*r)),t.x=c,t.y=h,t))}var o=n(10),s=n(44),l=n(7),u=[\"ortho\"];e.a={init:i,forward:r,inverse:a,names:u}},function(t,e,n){\"use strict\";function i(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=n.i(o.a)(this.es),this.e1=n.i(s.a)(this.es),this.e2=n.i(l.a)(this.es),this.e3=n.i(u.a)(this.es),this.ml0=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function r(t){var e,i,r,a=t.x,o=t.y,s=n.i(c.a)(a-this.long0);if(r=s*Math.sin(o),this.sphere)Math.abs(o)<=f.d?(e=this.a*s,i=-1*this.a*this.lat0):(e=this.a*Math.sin(r)/Math.tan(o),i=this.a*(n.i(h.a)(o-this.lat0)+(1-Math.cos(r))/Math.tan(o)));else if(Math.abs(o)<=f.d)e=this.a*s,i=-1*this.ml0;else{var l=n.i(p.a)(this.a,this.e,Math.sin(o))/Math.tan(o);e=l*Math.sin(r),i=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+l*(1-Math.cos(r))}return t.x=e+this.x0,t.y=i+this.y0,t}function a(t){var e,i,r,a,o,s,l,u,h;if(r=t.x-this.x0,a=t.y-this.y0,this.sphere)if(Math.abs(a+this.a*this.lat0)<=f.d)e=n.i(c.a)(r/this.a+this.long0),i=0;else{s=this.lat0+a/this.a,l=r*r/this.a/this.a+s*s,u=s;var p;for(o=m;o;--o)if(p=Math.tan(u),h=-1*(s*(u*p+1)-u-.5*(u*u+l)*p)/((u-s)/p-1),u+=h,Math.abs(h)<=f.d){i=u;break}e=n.i(c.a)(this.long0+Math.asin(r*Math.tan(u)/this.a)/Math.sin(i))}else if(Math.abs(a+this.ml0)<=f.d)i=0,e=n.i(c.a)(this.long0+r/this.a);else{s=(this.ml0+a)/this.a,l=r*r/this.a/this.a+s*s,u=s;var g,v,y,b,x;for(o=m;o;--o)if(x=this.e*Math.sin(u),g=Math.sqrt(1-x*x)*Math.tan(u),v=this.a*n.i(d.a)(this.e0,this.e1,this.e2,this.e3,u),y=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=v/this.a,h=(s*(g*b+1)-b-.5*g*(b*b+l))/(this.es*Math.sin(2*u)*(b*b+l-2*s*b)/(4*g)+(s-b)*(g*y-2/Math.sin(2*u))-y),u-=h,Math.abs(h)<=f.d){i=u;break}g=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=n.i(c.a)(this.long0+Math.asin(r*g/this.a)/Math.sin(i))}return t.x=e,t.y=i,t}var o=n(69),s=n(70),l=n(71),u=n(72),c=n(10),h=n(56),d=n(73),f=n(7),p=n(103),m=20,g=[\"Polyconic\",\"poly\"];e.a={init:i,forward:r,inverse:a,names:g}},function(t,e,n){\"use strict\";function i(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||\"Quadrilateralized Spherical Cube\",this.lat0>=l.a-l.b/2?this.face=u.TOP:this.lat0<=-(l.a-l.b/2)?this.face=u.BOTTOM:Math.abs(this.long0)<=l.b?this.face=u.FRONT:Math.abs(this.long0)<=l.a+l.b?this.face=this.long0>0?u.RIGHT:u.LEFT:this.face=u.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function r(t){var e,n,i,r,a,h,d={x:0,y:0},f={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===u.TOP)r=l.a-e,n>=l.b&&n<=l.a+l.b?(f.value=c.AREA_0,i=n-l.a):n>l.a+l.b||n<=-(l.a+l.b)?(f.value=c.AREA_1,i=n>0?n-l.c:n+l.c):n>-(l.a+l.b)&&n<=-l.b?(f.value=c.AREA_2,i=n+l.a):(f.value=c.AREA_3,i=n);else if(this.face===u.BOTTOM)r=l.a+e,n>=l.b&&n<=l.a+l.b?(f.value=c.AREA_0,i=-n+l.a):n=-l.b?(f.value=c.AREA_1,i=-n):n<-l.b&&n>=-(l.a+l.b)?(f.value=c.AREA_2,i=-n-l.a):(f.value=c.AREA_3,i=n>0?-n+l.c:-n-l.c);else{var p,m,g,v,y,b,x;this.face===u.RIGHT?n=s(n,+l.a):this.face===u.BACK?n=s(n,+l.c):this.face===u.LEFT&&(n=s(n,-l.a)),v=Math.sin(e),y=Math.cos(e),b=Math.sin(n),x=Math.cos(n),p=y*x,m=y*b,g=v,this.face===u.FRONT?(r=Math.acos(p),i=o(r,g,m,f)):this.face===u.RIGHT?(r=Math.acos(m),i=o(r,g,-p,f)):this.face===u.BACK?(r=Math.acos(-p),i=o(r,g,-m,f)):this.face===u.LEFT?(r=Math.acos(-m),i=o(r,g,p,f)):(r=i=0,f.value=c.AREA_0)}return h=Math.atan(12/l.c*(i+Math.acos(Math.sin(i)*Math.cos(l.b))-l.a)),a=Math.sqrt((1-Math.cos(r))/(Math.cos(h)*Math.cos(h))/(1-Math.cos(Math.atan(1/Math.cos(i))))),f.value===c.AREA_1?h+=l.a:f.value===c.AREA_2?h+=l.c:f.value===c.AREA_3&&(h+=1.5*l.c),d.x=a*Math.cos(h),d.y=a*Math.sin(h),d.x=d.x*this.a+this.x0,d.y=d.y*this.a+this.y0,t.x=d.x,t.y=d.y,t}function a(t){var e,n,i,r,a,o,h,d,f,p={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=c.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=c.AREA_1,e-=l.a):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=c.AREA_2,e=e<0?e+l.c:e-l.c):(m.value=c.AREA_3,e+=l.a),f=l.c/12*Math.tan(e),a=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),o=Math.atan(a),i=Math.cos(e),r=Math.tan(n),h=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(o)))),h<-1?h=-1:h>1&&(h=1),this.face===u.TOP)d=Math.acos(h),p.phi=l.a-d,m.value===c.AREA_0?p.lam=o+l.a:m.value===c.AREA_1?p.lam=o<0?o+l.c:o-l.c:m.value===c.AREA_2?p.lam=o-l.a:p.lam=o;else if(this.face===u.BOTTOM)d=Math.acos(h),p.phi=d-l.a,m.value===c.AREA_0?p.lam=-o+l.a:m.value===c.AREA_1?p.lam=-o:m.value===c.AREA_2?p.lam=-o-l.a:p.lam=o<0?-o-l.c:-o+l.c;else{var g,v,y;g=h,f=g*g,y=f>=1?0:Math.sqrt(1-f)*Math.sin(o),f+=y*y,v=f>=1?0:Math.sqrt(1-f),m.value===c.AREA_1?(f=v,v=-y,y=f):m.value===c.AREA_2?(v=-v,y=-y):m.value===c.AREA_3&&(f=v,v=y,y=-f),this.face===u.RIGHT?(f=g,g=-v,v=f):this.face===u.BACK?(g=-g,v=-v):this.face===u.LEFT&&(f=g,g=v,v=-f),p.phi=Math.acos(-y)-l.a,p.lam=Math.atan2(v,g),this.face===u.RIGHT?p.lam=s(p.lam,-l.a):this.face===u.BACK?p.lam=s(p.lam,-l.c):this.face===u.LEFT&&(p.lam=s(p.lam,+l.a))}if(0!==this.es){var b,x,_;b=p.phi<0?1:0,x=Math.tan(p.phi),_=this.b/Math.sqrt(x*x+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),b&&(p.phi=-p.phi)}return p.lam+=this.long0,t.x=p.lam,t.y=p.phi,t}function o(t,e,n,i){var r;return tl.b&&r<=l.a+l.b?(i.value=c.AREA_1,r-=l.a):r>l.a+l.b||r<=-(l.a+l.b)?(i.value=c.AREA_2,r=r>=0?r-l.c:r+l.c):(i.value=c.AREA_3,r+=l.a)),r}function s(t,e){var n=t+e;return n<-l.c?n+=l.e:n>+l.c&&(n-=l.e),n}var l=n(7),u={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},c={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4},h=[\"Quadrilateralized Spherical Cube\",\"Quadrilateralized_Spherical_Cube\",\"qsc\"];e.a={init:i,forward:r,inverse:a,names:h}},function(t,e,n){\"use strict\";function i(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=n.i(l.a)(this.es)}function r(t){var e,i,r=t.x,a=t.y;if(r=n.i(o.a)(r-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(a),l=f;l;--l){var c=(this.m*a+Math.sin(a)-s)/(this.m+Math.cos(a));if(a-=c,Math.abs(c)1e-7;){if(++h>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=u,t}var o=[\"somerc\"];e.a={init:i,forward:r,inverse:a,names:o}},function(t,e,n){\"use strict\";function i(t,e,n){return e*=n,Math.tan(.5*(s.a+t))*Math.pow((1-e)/(1+e),.5*n)}function r(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.d&&(this.k0=.5*(1+n.i(l.a)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s.d&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s.d&&(this.k0=.5*this.cons*n.i(u.a)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/n.i(c.a)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=n.i(u.a)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-s.a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function a(t){var e,i,r,a,o,l,u=t.x,h=t.y,f=Math.sin(h),p=Math.cos(h),m=n.i(d.a)(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=s.d&&Math.abs(h+this.lat0)<=s.d?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*f+this.coslat0*p*Math.cos(m)),t.x=this.a*e*p*Math.sin(m)+this.x0,t.y=this.a*e*(this.coslat0*f-this.sinlat0*p*Math.cos(m))+this.y0,t):(i=2*Math.atan(this.ssfn_(h,f,this.e))-s.a,a=Math.cos(i),r=Math.sin(i),Math.abs(this.coslat0)<=s.d?(o=n.i(c.a)(this.e,h*this.con,this.con*f),l=2*this.a*this.k0*o/this.cons,t.x=this.x0+l*Math.sin(u-this.long0),t.y=this.y0-this.con*l*Math.cos(u-this.long0),t):(Math.abs(this.sinlat0)0?n.i(d.a)(this.long0+Math.atan2(t.x,-1*t.y)):n.i(d.a)(this.long0+Math.atan2(t.x,t.y)):n.i(d.a)(this.long0+Math.atan2(t.x*Math.sin(u),l*this.coslat0*Math.cos(u)-t.y*this.sinlat0*Math.sin(u))),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)<=s.d){if(l<=s.d)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,r=l*this.cons/(2*this.a*this.k0),i=this.con*n.i(h.a)(this.e,r),e=this.con*n.i(d.a)(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else a=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,l<=s.d?o=this.X0:(o=Math.asin(Math.cos(a)*this.sinX0+t.y*Math.sin(a)*this.cosX0/l),e=n.i(d.a)(this.long0+Math.atan2(t.x*Math.sin(a),l*this.cosX0*Math.cos(a)-t.y*this.sinX0*Math.sin(a)))),i=-1*n.i(h.a)(this.e,Math.tan(.5*(s.a+o)));return t.x=e,t.y=i,t}var s=n(7),l=n(57),u=n(45),c=n(75),h=n(74),d=n(10),f=[\"stere\",\"Stereographic_South_Pole\",\"Polar Stereographic (variant B)\"];e.a={init:r,forward:a,inverse:o,names:f,ssfn_:i}},function(t,e,n){\"use strict\";function i(){o.a.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title=\"Oblique Stereographic Alternative\"))}function r(t){var e,i,r,a;return t.x=n.i(s.a)(t.x-this.long0),o.a.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),r=Math.cos(t.x),a=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*r),t.x=a*i*Math.sin(t.x),t.y=a*(this.cosc0*e-this.sinc0*i*r),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function a(t){var e,i,r,a,l;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,l=Math.sqrt(t.x*t.x+t.y*t.y)){var u=2*Math.atan2(l,this.R2);e=Math.sin(u),i=Math.cos(u),a=Math.asin(i*this.sinc0+t.y*e*this.cosc0/l),r=Math.atan2(t.x*e,l*this.cosc0*i-t.y*this.sinc0*e)}else a=this.phic0,r=0;return t.x=r,t.y=a,o.a.inverse.apply(this,[t]),t.x=n.i(s.a)(t.x+this.long0),t}var o=n(436),s=n(10),l=[\"Stereographic_North_Pole\",\"Oblique_Stereographic\",\"Polar_Stereographic\",\"sterea\",\"Oblique Stereographic Alternative\"];e.a={init:i,forward:r,inverse:a,names:l}},function(t,e,n){\"use strict\";function i(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=n.i(o.a)(this.es),this.ml0=n.i(s.a)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function r(t){var e,i,r,a=t.x,o=t.y,l=n.i(u.a)(a-this.long0),h=Math.sin(o),d=Math.cos(o);if(this.es){var f=d*l,p=Math.pow(f,2),m=this.ep2*Math.pow(d,2),g=Math.pow(m,2),v=Math.abs(d)>c.d?Math.tan(o):0,y=Math.pow(v,2),b=Math.pow(y,2);e=1-this.es*Math.pow(h,2),f/=Math.sqrt(e);var x=n.i(s.a)(o,h,d,this.en);i=this.a*(this.k0*f*(1+p/6*(1-y+m+p/20*(5-18*y+b+14*m-58*y*m+p/42*(61+179*b-b*y-479*y)))))+this.x0,r=this.a*(this.k0*(x-this.ml0+h*l*f/2*(1+p/12*(5-y+9*m+4*g+p/30*(61+b-58*y+270*m-330*y*m+p/56*(1385+543*b-b*y-3111*y))))))+this.y0}else{var _=d*Math.sin(l);if(Math.abs(Math.abs(_)-1)=1){if(_-1>c.d)return 93;r=0}else r=Math.acos(r);o<0&&(r=-r),r=this.a*this.k0*(r-this.lat0)+this.y0}return t.x=i,t.y=r,t}function a(t){var e,i,r,a,o=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+s/this.k0,i=n.i(l.a)(e,this.es,this.en),Math.abs(i)c.d?Math.tan(i):0,m=this.ep2*Math.pow(f,2),g=Math.pow(m,2),v=Math.pow(p,2),y=Math.pow(v,2);e=1-this.es*Math.pow(d,2);var b=o*Math.sqrt(e)/this.k0,x=Math.pow(b,2);e*=p,r=i-e*x/(1-this.es)*.5*(1-x/12*(5+3*v-9*m*v+m-4*g-x/30*(61+90*v-252*m*v+45*y+46*m-x/56*(1385+3633*v+4095*y+1574*y*v)))),a=n.i(u.a)(this.long0+b*(1-x/6*(1+2*v+m-x/20*(5+28*v+24*y+8*m*v+6*m-x/42*(61+662*v+1320*y+720*y*v))))/f)}else r=c.a*n.i(h.a)(s),a=0;else{var _=Math.exp(o/this.k0),w=.5*(_-1/_),M=this.lat0+s/this.k0,S=Math.cos(M);e=Math.sqrt((1-Math.pow(S,2))/(1+Math.pow(w,2))),r=Math.asin(e),s<0&&(r=-r),a=0===w&&0===S?0:n.i(u.a)(Math.atan2(w,S)+this.long0)}return t.x=a,t.y=r,t}var o=n(147),s=n(105),l=n(148),u=n(10),c=n(7),h=n(57),d=[\"Transverse_Mercator\",\"Transverse Mercator\",\"tmerc\"];e.a={init:i,forward:r,inverse:a,names:d}},function(t,e,n){\"use strict\";function i(){var t=n.i(r.a)(this.zone,this.long0);if(void 0===t)throw new Error(\"unknown utm zone\");this.lat0=0,this.long0=(6*Math.abs(t)-183)*o.g,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,a.a.init.apply(this),this.forward=a.a.forward,this.inverse=a.a.inverse}var r=n(407),a=n(153),o=n(7),s=[\"Universal Transverse Mercator System\",\"utm\"];e.a={init:i,names:s,dependsOn:\"etmerc\"}},function(t,e,n){\"use strict\";function i(){this.R=this.a}function r(t){var e,i,r=t.x,a=t.y,u=n.i(o.a)(r-this.long0);Math.abs(a)<=s.d&&(e=this.x0+this.R*u,i=this.y0);var c=n.i(l.a)(2*Math.abs(a/Math.PI));(Math.abs(u)<=s.d||Math.abs(Math.abs(a)-s.a)<=s.d)&&(e=this.x0,i=a>=0?this.y0+Math.PI*this.R*Math.tan(.5*c):this.y0+Math.PI*this.R*-Math.tan(.5*c));var h=.5*Math.abs(Math.PI/u-u/Math.PI),d=h*h,f=Math.sin(c),p=Math.cos(c),m=p/(f+p-1),g=m*m,v=m*(2/f-1),y=v*v,b=Math.PI*this.R*(h*(m-y)+Math.sqrt(d*(m-y)*(m-y)-(y+d)*(g-y)))/(y+d);u<0&&(b=-b),e=this.x0+b;var x=d+m;return b=Math.PI*this.R*(v*x-h*Math.sqrt((y+d)*(d+1)-x*x))/(y+d),i=a>=0?this.y0+b:this.y0-b,t.x=e,t.y=i,t}function a(t){var e,i,r,a,l,u,c,h,d,f,p,m,g;return t.x-=this.x0,t.y-=this.y0,p=Math.PI*this.R,r=t.x/p,a=t.y/p,l=r*r+a*a,u=-Math.abs(a)*(1+l),c=u-2*a*a+r*r,h=-2*u+1+2*a*a+l*l,g=a*a/h+(2*c*c*c/h/h/h-9*u*c/h/h)/27,d=(u-c*c/3/h)/h,f=2*Math.sqrt(-d/3),p=3*g/d/f,Math.abs(p)>1&&(p=p>=0?1:-1),m=Math.acos(p)/3,i=t.y>=0?(-f*Math.cos(m+Math.PI/3)-c/3/h)*Math.PI:-(-f*Math.cos(m+Math.PI/3)-c/3/h)*Math.PI,e=Math.abs(r)this.eventPool.length&&this.eventPool.push(t)}function W(t){t.eventPool=[],t.getPooled=U,t.release=j}function G(t,e,n,i){return F.call(this,t,e,n,i)}function V(t,e,n,i){return F.call(this,t,e,n,i)}function H(t,e){switch(t){case\"topKeyUp\":return-1!==fi.indexOf(e.keyCode);case\"topKeyDown\":return 229!==e.keyCode;case\"topKeyPress\":case\"topMouseDown\":case\"topBlur\":return!0;default:return!1}}function q(t){return t=t.detail,\"object\"==typeof t&&\"data\"in t?t.data:null}function Y(t,e){switch(t){case\"topCompositionEnd\":return q(e);case\"topKeyPress\":return 32!==e.which?null:(Mi=!0,_i);case\"topTextInput\":return t=e.data,t===_i&&Mi?null:t;default:return null}}function X(t,e){if(Si)return\"topCompositionEnd\"===t||!pi&&H(t,e)?(t=z(),ci._root=null,ci._startText=null,ci._fallbackText=null,Si=!1,t):null;switch(t){case\"topPaste\":return null;case\"topKeyPress\":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1Wi.length&&Wi.push(t)}}}function Lt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n[\"Webkit\"+t]=\"webkit\"+e,n[\"Moz\"+t]=\"moz\"+e,n[\"ms\"+t]=\"MS\"+e,n[\"O\"+t]=\"o\"+e.toLowerCase(),n}function It(t){if(Yi[t])return Yi[t];if(!qi[t])return t;var e,n=qi[t];for(e in n)if(n.hasOwnProperty(e)&&e in Xi)return Yi[t]=n[e];return\"\"}function Dt(t){return Object.prototype.hasOwnProperty.call(t,Ji)||(t[Ji]=Qi++,Ki[t[Ji]]={}),Ki[t[Ji]]}function Nt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zt(t,e){var n=Nt(t);t=0;for(var i;n;){if(3===n.nodeType){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Nt(n)}}function Bt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(\"input\"===e&&\"text\"===t.type||\"textarea\"===e||\"true\"===t.contentEditable)}function Ft(t,e){if(rr||null==er||er!==Sn())return null;var n=er;return\"selectionStart\"in n&&Bt(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ir&&En(ir,n)?null:(ir=n,t=F.getPooled(tr.select,nr,t,e),t.type=\"select\",t.target=er,I(t),t)}function Ut(t,e,n,i){return F.call(this,t,e,n,i)}function jt(t,e,n,i){return F.call(this,t,e,n,i)}function Wt(t,e,n,i){return F.call(this,t,e,n,i)}function Gt(t){var e=t.keyCode;return\"charCode\"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,32<=t||13===t?t:0}function Vt(t,e,n,i){return F.call(this,t,e,n,i)}function Ht(t,e,n,i){return F.call(this,t,e,n,i)}function qt(t,e,n,i){return F.call(this,t,e,n,i)}function Yt(t,e,n,i){return F.call(this,t,e,n,i)}function Xt(t,e,n,i){return F.call(this,t,e,n,i)}function Zt(t){0>dr||(t.current=hr[dr],hr[dr]=null,dr--)}function Kt(t,e){dr++,hr[dr]=t.current,t.current=e}function Qt(t){return $t(t)?mr:fr.current}function Jt(t,e){var n=t.type.contextTypes;if(!n)return Cn;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=e[r];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function $t(t){return 2===t.tag&&null!=t.type.childContextTypes}function te(t){$t(t)&&(Zt(pr,t),Zt(fr,t))}function ee(t,e,n){null!=fr.cursor&&i(\"168\"),Kt(fr,e,t),Kt(pr,n,t)}function ne(t,e){var n=t.stateNode,r=t.type.childContextTypes;if(\"function\"!=typeof n.getChildContext)return e;n=n.getChildContext();for(var a in n)a in r||i(\"108\",_t(t)||\"Unknown\",a);return _n({},e,n)}function ie(t){if(!$t(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Cn,mr=fr.current,Kt(fr,e,t),Kt(pr,pr.current,t),!0}function re(t,e){var n=t.stateNode;if(n||i(\"169\"),e){var r=ne(t,mr);n.__reactInternalMemoizedMergedChildContext=r,Zt(pr,t),Zt(fr,t),Kt(fr,r,t)}else Zt(pr,t);Kt(pr,e,t)}function ae(t,e,n){this.tag=t,this.key=e,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function oe(t,e,n){var i=t.alternate;return null===i?(i=new ae(t.tag,t.key,t.internalContextTag),i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.effectTag=0,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null),i.expirationTime=n,i.pendingProps=e,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function se(t,e,n){var r=void 0,a=t.type,o=t.key;return\"function\"==typeof a?(r=a.prototype&&a.prototype.isReactComponent?new ae(2,o,e):new ae(0,o,e),r.type=a,r.pendingProps=t.props):\"string\"==typeof a?(r=new ae(5,o,e),r.type=a,r.pendingProps=t.props):\"object\"==typeof a&&null!==a&&\"number\"==typeof a.tag?(r=a,r.pendingProps=t.props):i(\"130\",null==a?a:typeof a,\"\"),r.expirationTime=n,r}function le(t,e,n,i){return e=new ae(10,i,e),e.pendingProps=t,e.expirationTime=n,e}function ue(t,e,n){return e=new ae(6,null,e),e.pendingProps=t,e.expirationTime=n,e}function ce(t,e,n){return e=new ae(7,t.key,e),e.type=t.handler,e.pendingProps=t,e.expirationTime=n,e}function he(t,e,n){return t=new ae(9,null,e),t.expirationTime=n,t}function de(t,e,n){return e=new ae(4,t.key,e),e.pendingProps=t.children||[],e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function fe(t){return function(e){try{return t(e)}catch(t){}}}function pe(t){if(\"undefined\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);gr=fe(function(t){return e.onCommitFiberRoot(n,t)}),vr=fe(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function me(t){\"function\"==typeof gr&&gr(t)}function ge(t){\"function\"==typeof vr&&vr(t)}function ve(t){return{baseState:t,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function ye(t,e){null===t.last?t.first=t.last=e:(t.last.next=e,t.last=e),(0===t.expirationTime||t.expirationTime>e.expirationTime)&&(t.expirationTime=e.expirationTime)}function be(t,e){var n=t.alternate,i=t.updateQueue;null===i&&(i=t.updateQueue=ve(null)),null!==n?null===(t=n.updateQueue)&&(t=n.updateQueue=ve(null)):t=null,t=t!==i?t:null,null===t?ye(i,e):null===i.last||null===t.last?(ye(i,e),ye(t,e)):(ye(i,e),t.last=e)}function xe(t,e,n,i){return t=t.partialState,\"function\"==typeof t?t.call(e,n,i):t}function _e(t,e,n,i,r,a){null!==t&&t.updateQueue===n&&(n=e.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?t=n.baseState:(t=n.baseState=e.memoizedState,n.isInitialized=!0);for(var o=!0,s=n.first,l=!1;null!==s;){var u=s.expirationTime;if(u>a){var c=n.expirationTime;(0===c||c>u)&&(n.expirationTime=u),l||(l=!0,n.baseState=t)}else l||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(t=xe(s,i,t,r),o=!0):(u=xe(s,i,t,r))&&(t=o?_n({},t,u):_n(t,u),o=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(u=n.callbackList,null===u&&(u=n.callbackList=[]),u.push(s));s=s.next}return null!==n.callbackList?e.effectTag|=32:null!==n.first||n.hasForceUpdate||(e.updateQueue=null),l||(n.baseState=t),t}function we(t,e){var n=t.callbackList;if(null!==n)for(t.callbackList=null,t=0;td?(f=h,h=null):f=h.sibling;var v=m(i,h,s[d],l);if(null===v){null===h&&(h=f);break}t&&h&&null===v.alternate&&e(i,h),a=o(v,a,d),null===c?u=v:c.sibling=v,c=v,h=f}if(d===s.length)return n(i,h),u;if(null===h){for(;df?(v=d,d=null):v=d.sibling;var b=m(a,d,y.value,u);if(null===b){d||(d=v);break}t&&d&&null===b.alternate&&e(a,d),s=o(b,s,f),null===h?c=b:h.sibling=b,h=b,d=v}if(y.done)return n(a,d),c;if(null===d){for(;!y.done;f++,y=l.next())null!==(y=p(a,y.value,u))&&(s=o(y,s,f),null===h?c=y:h.sibling=y,h=y);return c}for(d=r(a,d);!y.done;f++,y=l.next())null!==(y=g(d,a,f,y.value,u))&&(t&&null!==y.alternate&&d.delete(null===y.key?f:y.key),s=o(y,s,f),null===h?c=y:h.sibling=y,h=y);return t&&d.forEach(function(t){return e(a,t)}),c}return function(t,r,o,l){\"object\"==typeof o&&null!==o&&o.type===Mr&&null===o.key&&(o=o.props.children);var u=\"object\"==typeof o&&null!==o;if(u)switch(o.$$typeof){case br:t:{var c=o.key;for(u=r;null!==u;){if(u.key===c){if(10===u.tag?o.type===Mr:u.type===o.type){n(t,u.sibling),r=a(u,o.type===Mr?o.props.children:o.props,l),r.ref=Ee(u,o),r.return=t,t=r;break t}n(t,u);break}e(t,u),u=u.sibling}o.type===Mr?(r=le(o.props.children,t.internalContextTag,l,o.key),r.return=t,t=r):(l=se(o,t.internalContextTag,l),l.ref=Ee(r,o),l.return=t,t=l)}return s(t);case xr:t:{for(u=o.key;null!==r;){if(r.key===u){if(7===r.tag){n(t,r.sibling),r=a(r,o,l),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=ce(o,t.internalContextTag,l),r.return=t,t=r}return s(t);case _r:t:{if(null!==r){if(9===r.tag){n(t,r.sibling),r=a(r,null,l),r.type=o.value,r.return=t,t=r;break t}n(t,r)}r=he(o,t.internalContextTag,l),r.type=o.value,r.return=t,t=r}return s(t);case wr:t:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),r=a(r,o.children||[],l),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=de(o,t.internalContextTag,l),r.return=t,t=r}return s(t)}if(\"string\"==typeof o||\"number\"==typeof o)return o=\"\"+o,null!==r&&6===r.tag?(n(t,r.sibling),r=a(r,o,l)):(n(t,r),r=ue(o,t.internalContextTag,l)),r.return=t,t=r,s(t);if(Er(o))return v(t,r,o,l);if(Se(o))return y(t,r,o,l);if(u&&ke(t,o),void 0===o)switch(t.tag){case 2:case 1:l=t.type,i(\"152\",l.displayName||l.name||\"Component\")}return n(t,r)}}function Ce(t,e,n,r,a){function o(t,e,n){var i=e.expirationTime;e.child=null===t?Tr(e,null,n,i):kr(e,t.child,n,i)}function s(t,e){var n=e.ref;null===n||t&&t.ref===n||(e.effectTag|=128)}function l(t,e,n,i){if(s(t,e),!n)return i&&re(e,!1),c(t,e);n=e.stateNode,ji.current=e;var r=n.render();return e.effectTag|=1,o(t,e,r),e.memoizedState=n.state,e.memoizedProps=n.props,i&&re(e,!0),e.child}function u(t){var e=t.stateNode;e.pendingContext?ee(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ee(t,e.context,!1),g(t,e.containerInfo)}function c(t,e){if(null!==t&&e.child!==t.child&&i(\"153\"),null!==e.child){t=e.child;var n=oe(t,t.pendingProps,t.expirationTime);for(e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=oe(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}function h(t,e){switch(e.tag){case 3:u(e);break;case 2:ie(e);break;case 4:g(e,e.stateNode.containerInfo)}return null}var d=t.shouldSetTextContent,f=t.useSyncScheduling,p=t.shouldDeprioritizeSubtree,m=e.pushHostContext,g=e.pushHostContainer,v=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;t=Me(r,a,function(t,e){t.memoizedProps=e},function(t,e){t.memoizedState=e});var x=t.adoptClassInstance,_=t.constructClassInstance,w=t.mountClassInstance,M=t.updateClassInstance;return{beginWork:function(t,e,n){if(0===e.expirationTime||e.expirationTime>n)return h(t,e);switch(e.tag){case 0:null!==t&&i(\"155\");var r=e.type,a=e.pendingProps,S=Qt(e);return S=Jt(e,S),r=r(a,S),e.effectTag|=1,\"object\"==typeof r&&null!==r&&\"function\"==typeof r.render?(e.tag=2,a=ie(e),x(e,r),w(e,n),e=l(t,e,!0,a)):(e.tag=1,o(t,e,r),e.memoizedProps=a,e=e.child),e;case 1:t:{if(a=e.type,n=e.pendingProps,r=e.memoizedProps,pr.current)null===n&&(n=r);else if(null===n||r===n){e=c(t,e);break t}r=Qt(e),r=Jt(e,r),a=a(n,r),e.effectTag|=1,o(t,e,a),e.memoizedProps=n,e=e.child}return e;case 2:return a=ie(e),r=void 0,null===t?e.stateNode?i(\"153\"):(_(e,e.pendingProps),w(e,n),r=!0):r=M(t,e,n),l(t,e,r,a);case 3:return u(e),a=e.updateQueue,null!==a?(r=e.memoizedState,a=_e(t,e,a,null,null,n),r===a?(y(),e=c(t,e)):(r=a.element,S=e.stateNode,(null===t||null===t.child)&&S.hydrate&&v(e)?(e.effectTag|=2,e.child=Tr(e,null,r,n)):(y(),o(t,e,r)),e.memoizedState=a,e=e.child)):(y(),e=c(t,e)),e;case 5:m(e),null===t&&b(e),a=e.type;var E=e.memoizedProps;return r=e.pendingProps,null===r&&null===(r=E)&&i(\"154\"),S=null!==t?t.memoizedProps:null,pr.current||null!==r&&E!==r?(E=r.children,d(a,r)?E=null:S&&d(a,S)&&(e.effectTag|=16),s(t,e),2147483647!==n&&!f&&p(a,r)?(e.expirationTime=2147483647,e=null):(o(t,e,E),e.memoizedProps=r,e=e.child)):e=c(t,e),e;case 6:return null===t&&b(e),t=e.pendingProps,null===t&&(t=e.memoizedProps),e.memoizedProps=t,null;case 8:e.tag=7;case 7:return a=e.pendingProps,pr.current?null===a&&null===(a=t&&t.memoizedProps)&&i(\"154\"):null!==a&&e.memoizedProps!==a||(a=e.memoizedProps),r=a.children,e.stateNode=null===t?Tr(e,e.stateNode,r,n):kr(e,e.stateNode,r,n),e.memoizedProps=a,e.stateNode;case 9:return null;case 4:t:{if(g(e,e.stateNode.containerInfo),a=e.pendingProps,pr.current)null===a&&null==(a=t&&t.memoizedProps)&&i(\"154\");else if(null===a||e.memoizedProps===a){e=c(t,e);break t}null===t?e.child=kr(e,null,a,n):o(t,e,a),e.memoizedProps=a,e=e.child}return e;case 10:t:{if(n=e.pendingProps,pr.current)null===n&&(n=e.memoizedProps);else if(null===n||e.memoizedProps===n){e=c(t,e);break t}o(t,e,n),e.memoizedProps=n,e=e.child}return e;default:i(\"156\")}},beginFailedWork:function(t,e,n){switch(e.tag){case 2:ie(e);break;case 3:u(e);break;default:i(\"157\")}return e.effectTag|=64,null===t?e.child=null:e.child!==t.child&&(e.child=t.child),0===e.expirationTime||e.expirationTime>n?h(t,e):(e.firstEffect=null,e.lastEffect=null,e.child=null===t?Tr(e,null,null,n):kr(e,t.child,null,n),2===e.tag&&(t=e.stateNode,e.memoizedProps=t.props,e.memoizedState=t.state),e.child)}}}function Pe(t,e,n){function r(t){t.effectTag|=4}var a=t.createInstance,o=t.createTextInstance,s=t.appendInitialChild,l=t.finalizeInitialChildren,u=t.prepareUpdate,c=t.persistence,h=e.getRootHostContainer,d=e.popHostContext,f=e.getHostContext,p=e.popHostContainer,m=n.prepareToHydrateHostInstance,g=n.prepareToHydrateHostTextInstance,v=n.popHydrationState,y=void 0,b=void 0,x=void 0;return t.mutation?(y=function(){},b=function(t,e,n){(e.updateQueue=n)&&r(e)},x=function(t,e,n,i){n!==i&&r(e)}):i(c?\"235\":\"236\"),{completeWork:function(t,e,n){var c=e.pendingProps;switch(null===c?c=e.memoizedProps:2147483647===e.expirationTime&&2147483647!==n||(e.pendingProps=null),e.tag){case 1:return null;case 2:return te(e),null;case 3:return p(e),Zt(pr,e),Zt(fr,e),c=e.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==t&&null!==t.child||(v(e),e.effectTag&=-3),y(e),null;case 5:d(e),n=h();var _=e.type;if(null!==t&&null!=e.stateNode){var w=t.memoizedProps,M=e.stateNode,S=f();M=u(M,_,w,c,n,S),b(t,e,M,_,w,c,n),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!c)return null===e.stateNode&&i(\"166\"),null;if(t=f(),v(e))m(e,n,t)&&r(e);else{t=a(_,c,n,t,e);t:for(w=e.child;null!==w;){if(5===w.tag||6===w.tag)s(t,w.stateNode);else if(4!==w.tag&&null!==w.child){w.child.return=w,w=w.child;continue}if(w===e)break;for(;null===w.sibling;){if(null===w.return||w.return===e)break t;w=w.return}w.sibling.return=w.return,w=w.sibling}l(t,_,c,n)&&r(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)x(t,e,t.memoizedProps,c);else{if(\"string\"!=typeof c)return null===e.stateNode&&i(\"166\"),null;t=h(),n=f(),v(e)?g(e)&&r(e):e.stateNode=o(c,t,n,e)}return null;case 7:(c=e.memoizedProps)||i(\"165\"),e.tag=8,_=[];t:for((w=e.stateNode)&&(w.return=e);null!==w;){if(5===w.tag||6===w.tag||4===w.tag)i(\"247\");else if(9===w.tag)_.push(w.type);else if(null!==w.child){w.child.return=w,w=w.child;continue}for(;null===w.sibling;){if(null===w.return||w.return===e)break t;w=w.return}w.sibling.return=w.return,w=w.sibling}return w=c.handler,c=w(c.props,_),e.child=kr(e,null!==t?t.child:null,c,n),e.child;case 8:return e.tag=7,null;case 9:case 10:return null;case 4:return p(e),y(e),null;case 0:i(\"167\");default:i(\"156\")}}}}function Oe(t,e){function n(t){var n=t.ref;if(null!==n)try{n(null)}catch(n){e(t,n)}}function r(t){switch(\"function\"==typeof ge&&ge(t),t.tag){case 2:n(t);var i=t.stateNode;if(\"function\"==typeof i.componentWillUnmount)try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(n){e(t,n)}break;case 5:n(t);break;case 7:a(t.stateNode);break;case 4:u&&s(t)}}function a(t){for(var e=t;;)if(r(e),null===e.child||u&&4===e.tag){if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}else e.child.return=e,e=e.child}function o(t){return 5===t.tag||3===t.tag||4===t.tag}function s(t){for(var e=t,n=!1,o=void 0,s=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&i(\"160\"),n.tag){case 5:o=n.stateNode,s=!1;break t;case 3:case 4:o=n.stateNode.containerInfo,s=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag)a(e),s?b(o,e.stateNode):y(o,e.stateNode);else if(4===e.tag?o=e.stateNode.containerInfo:r(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return,4===e.tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}var l=t.getPublicInstance,u=t.mutation;t=t.persistence,u||i(t?\"235\":\"236\");var c=u.commitMount,h=u.commitUpdate,d=u.resetTextContent,f=u.commitTextUpdate,p=u.appendChild,m=u.appendChildToContainer,g=u.insertBefore,v=u.insertInContainerBefore,y=u.removeChild,b=u.removeChildFromContainer;return{commitResetTextContent:function(t){d(t.stateNode)},commitPlacement:function(t){t:{for(var e=t.return;null!==e;){if(o(e)){var n=e;break t}e=e.return}i(\"160\"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:i(\"161\")}16&n.effectTag&&(d(e),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||o(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var a=t;;){if(5===a.tag||6===a.tag)n?r?v(e,a.stateNode,n):g(e,a.stateNode,n):r?m(e,a.stateNode):p(e,a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},commitDeletion:function(t){s(t),t.return=null,t.child=null,t.alternate&&(t.alternate.child=null,t.alternate.return=null)},commitWork:function(t,e){switch(e.tag){case 2:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps;t=null!==t?t.memoizedProps:r;var a=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&h(n,o,a,t,r,e)}break;case 6:null===e.stateNode&&i(\"162\"),n=e.memoizedProps,f(e.stateNode,null!==t?t.memoizedProps:n,n);break;case 3:break;default:i(\"163\")}},commitLifeCycles:function(t,e){switch(e.tag){case 2:var n=e.stateNode;if(4&e.effectTag)if(null===t)n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidMount();else{var r=t.memoizedProps;t=t.memoizedState,n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidUpdate(r,t)}e=e.updateQueue,null!==e&&we(e,n);break;case 3:n=e.updateQueue,null!==n&&we(n,null!==e.child?e.child.stateNode:null);break;case 5:n=e.stateNode,null===t&&4&e.effectTag&&c(n,e.type,e.memoizedProps,e);break;case 6:case 4:break;default:i(\"163\")}},commitAttachRef:function(t){var e=t.ref;if(null!==e){var n=t.stateNode;switch(t.tag){case 5:e(l(n));break;default:e(n)}}},commitDetachRef:function(t){null!==(t=t.ref)&&t(null)}}}function Ae(t){function e(t){return t===Cr&&i(\"174\"),t}var n=t.getChildHostContext,r=t.getRootHostContext,a={current:Cr},o={current:Cr},s={current:Cr};return{getHostContext:function(){return e(a.current)},getRootHostContainer:function(){return e(s.current)},popHostContainer:function(t){Zt(a,t),Zt(o,t),Zt(s,t)},popHostContext:function(t){o.current===t&&(Zt(a,t),Zt(o,t))},pushHostContainer:function(t,e){Kt(s,e,t),e=r(e),Kt(o,t,t),Kt(a,e,t)},pushHostContext:function(t){var i=e(s.current),r=e(a.current);i=n(r,t.type,i),r!==i&&(Kt(o,t,t),Kt(a,i,t))},resetHostContainer:function(){a.current=Cr,s.current=Cr}}}function Re(t){function e(t,e){var n=new ae(5,null,0);n.type=\"DELETED\",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function n(t,e){switch(t.tag){case 5:return null!==(e=o(e,t.type,t.pendingProps))&&(t.stateNode=e,!0);case 6:return null!==(e=s(e,t.pendingProps))&&(t.stateNode=e,!0);default:return!1}}function r(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;d=t}var a=t.shouldSetTextContent;if(!(t=t.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){i(\"175\")},prepareToHydrateHostTextInstance:function(){i(\"176\")},popHydrationState:function(){return!1}};var o=t.canHydrateInstance,s=t.canHydrateTextInstance,l=t.getNextHydratableSibling,u=t.getFirstHydratableChild,c=t.hydrateInstance,h=t.hydrateTextInstance,d=null,f=null,p=!1;return{enterHydrationState:function(t){return f=u(t.stateNode.containerInfo),d=t,p=!0},resetHydrationState:function(){f=d=null,p=!1},tryToClaimNextHydratableInstance:function(t){if(p){var i=f;if(i){if(!n(t,i)){if(!(i=l(i))||!n(t,i))return t.effectTag|=2,p=!1,void(d=t);e(d,f)}d=t,f=u(i)}else t.effectTag|=2,p=!1,d=t}},prepareToHydrateHostInstance:function(t,e,n){return e=c(t.stateNode,t.type,t.memoizedProps,e,n,t),t.updateQueue=e,null!==e},prepareToHydrateHostTextInstance:function(t){return h(t.stateNode,t.memoizedProps,t)},popHydrationState:function(t){if(t!==d)return!1;if(!p)return r(t),p=!0,!1;var n=t.type;if(5!==t.tag||\"head\"!==n&&\"body\"!==n&&!a(n,t.memoizedProps))for(n=f;n;)e(t,n),n=l(n);return r(t),f=d?l(t.stateNode):null,!0}}}function Le(t){function e(t){at=Z=!0;var e=t.stateNode;if(e.current===t&&i(\"177\"),e.isReadyForCommit=!1,ji.current=null,1o.expirationTime)&&(a=o.expirationTime),o=o.sibling;r.expirationTime=a}if(null!==e)return e;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1t))if(J<=Y)for(;null!==K;)K=u(K)?a(K):r(K);else for(;null!==K&&!w();)K=u(K)?a(K):r(K)}else if(!(0===J||J>t))if(J<=Y)for(;null!==K;)K=r(K);else for(;null!==K&&!w();)K=r(K)}function s(t,e){if(Z&&i(\"243\"),Z=!0,t.isReadyForCommit=!1,t!==Q||e!==J||null===K){for(;-1e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var n=t.stateNode;!Z&&n===Q&&ext&&i(\"185\"),null===r.nextScheduledRoot)r.remainingExpirationTime=a,null===lt?(st=lt=r,r.nextScheduledRoot=r):(lt=lt.nextScheduledRoot=r,lt.nextScheduledRoot=st);else{var o=r.remainingExpirationTime;(0===o||aut)return;W(ct)}var e=U()-q;ut=t,ct=j(b,{timeout:10*(t-2)-e})}function y(){var t=0,e=null;if(null!==lt)for(var n=lt,r=st;null!==r;){var a=r.remainingExpirationTime;if(0===a){if((null===n||null===lt)&&i(\"244\"),r===r.nextScheduledRoot){st=lt=r.nextScheduledRoot=null;break}if(r===st)st=a=r.nextScheduledRoot,lt.nextScheduledRoot=a,r.nextScheduledRoot=null;else{if(r===lt){lt=n,lt.nextScheduledRoot=st,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===t||aMt)&&(pt=!0)}function M(t){null===dt&&i(\"246\"),dt.remainingExpirationTime=0,mt||(mt=!0,gt=t)}var S=Ae(t),E=Re(t),k=S.popHostContainer,T=S.popHostContext,C=S.resetHostContainer,P=Ce(t,S,E,f,d),O=P.beginWork,A=P.beginFailedWork,R=Pe(t,S,E).completeWork;S=Oe(t,l);var L=S.commitResetTextContent,I=S.commitPlacement,D=S.commitDeletion,N=S.commitWork,z=S.commitLifeCycles,B=S.commitAttachRef,F=S.commitDetachRef,U=t.now,j=t.scheduleDeferredCallback,W=t.cancelDeferredCallback,G=t.useSyncScheduling,V=t.prepareForCommit,H=t.resetAfterCommit,q=U(),Y=2,X=0,Z=!1,K=null,Q=null,J=0,$=null,tt=null,et=null,nt=null,it=null,rt=!1,at=!1,ot=!1,st=null,lt=null,ut=0,ct=-1,ht=!1,dt=null,ft=0,pt=!1,mt=!1,gt=null,vt=null,yt=!1,bt=!1,xt=1e3,wt=0,Mt=1;return{computeAsyncExpiration:h,computeExpirationForFiber:d,scheduleWork:f,batchedUpdates:function(t,e){var n=yt;yt=!0;try{return t(e)}finally{(yt=n)||ht||x(1,null)}},unbatchedUpdates:function(t){if(yt&&!bt){bt=!0;try{return t()}finally{bt=!1}}return t()},flushSync:function(t){var e=yt;yt=!0;try{t:{var n=X;X=1;try{var r=t();break t}finally{X=n}r=void 0}return r}finally{yt=e,ht&&i(\"187\"),x(1,null)}},deferredUpdates:function(t){var e=X;X=h();try{return t()}finally{X=e}}}}function Ie(t){function e(t){return t=kt(t),null===t?null:t.stateNode}var n=t.getPublicInstance;t=Le(t);var r=t.computeAsyncExpiration,a=t.computeExpirationForFiber,o=t.scheduleWork;return{createContainer:function(t,e){var n=new ae(3,null,0);return t={current:n,containerInfo:t,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:e,nextScheduledRoot:null},n.stateNode=t},updateContainer:function(t,e,n,s){var l=e.current;if(n){n=n._reactInternalFiber;var u;t:{for(2===wt(n)&&2===n.tag||i(\"170\"),u=n;3!==u.tag;){if($t(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}(u=u.return)||i(\"171\")}u=u.stateNode.context}n=$t(n)?ne(n,u):u}else n=Cn;null===e.context?e.context=n:e.pendingContext=n,e=s,e=void 0===e?null:e,s=null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent?r():a(l),be(l,{expirationTime:s,partialState:{element:t},callback:e,isReplace:!1,isForced:!1,nextCallback:null,next:null}),o(l,s)},batchedUpdates:t.batchedUpdates,unbatchedUpdates:t.unbatchedUpdates,deferredUpdates:t.deferredUpdates,flushSync:t.flushSync,getPublicRootInstance:function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return n(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:e,findHostInstanceWithNoPortals:function(t){return t=Tt(t),null===t?null:t.stateNode},injectIntoDevTools:function(t){var n=t.findFiberByHostInstance;return pe(_n({},t,{findHostInstanceByFiber:function(t){return e(t)},findFiberByHostInstance:function(t){return n?n(t):null}}))}}}function De(t,e,n){var i=3n||i.hasOverloadedBooleanValue&&!1===n?Fe(t,e):i.mustUseProperty?t[i.propertyName]=n:(e=i.attributeName,(r=i.attributeNamespace)?t.setAttributeNS(r,e,\"\"+n):i.hasBooleanValue||i.hasOverloadedBooleanValue&&!0===n?t.setAttribute(e,\"\"):t.setAttribute(e,\"\"+n))}else Be(t,e,a(e,n)?n:null)}function Be(t,e,n){Ne(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,\"\"+n))}function Fe(t,e){var n=o(e);n?(e=n.mutationMethod)?e(t,void 0):n.mustUseProperty?t[n.propertyName]=!n.hasBooleanValue&&\"\":t.removeAttribute(n.attributeName):t.removeAttribute(e)}function Ue(t,e){var n=e.value,i=e.checked;return _n({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:t._wrapperState.initialValue,checked:null!=i?i:t._wrapperState.initialChecked})}function je(t,e){var n=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:n,controlled:\"checkbox\"===e.type||\"radio\"===e.type?null!=e.checked:null!=e.value}}function We(t,e){null!=(e=e.checked)&&ze(t,\"checked\",e)}function Ge(t,e){We(t,e);var n=e.value;null!=n?0===n&&\"\"===t.value?t.value=\"0\":\"number\"===e.type?(e=parseFloat(t.value)||0,(n!=e||n==e&&t.value!=n)&&(t.value=\"\"+n)):t.value!==\"\"+n&&(t.value=\"\"+n):(null==e.value&&null!=e.defaultValue&&t.defaultValue!==\"\"+e.defaultValue&&(t.defaultValue=\"\"+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked))}function Ve(t,e){switch(e.type){case\"submit\":case\"reset\":break;case\"color\":case\"date\":case\"datetime\":case\"datetime-local\":case\"month\":case\"time\":case\"week\":t.value=\"\",t.value=t.defaultValue;break;default:t.value=t.value}e=t.name,\"\"!==e&&(t.name=\"\"),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,\"\"!==e&&(t.name=e)}function He(t){var e=\"\";return bn.Children.forEach(t,function(t){null==t||\"string\"!=typeof t&&\"number\"!=typeof t||(e+=t)}),e}function qe(t,e){return t=_n({children:void 0},e),(e=He(e.children))&&(t.children=e),t}function Ye(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r=e.length||i(\"93\"),e=e[0]),n=\"\"+e),null==n&&(n=\"\")),t._wrapperState={initialValue:\"\"+n}}function Qe(t,e){var n=e.value;null!=n&&(n=\"\"+n,n!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function Je(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function $e(t){switch(t){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function tn(t,e){return null==t||\"http://www.w3.org/1999/xhtml\"===t?$e(e):\"http://www.w3.org/2000/svg\"===t&&\"foreignObject\"===e?\"http://www.w3.org/1999/xhtml\":t}function en(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function nn(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=0===n.indexOf(\"--\"),r=n,a=e[n];r=null==a||\"boolean\"==typeof a||\"\"===a?\"\":i||\"number\"!=typeof a||0===a||Jr.hasOwnProperty(r)&&Jr[r]?(\"\"+a).trim():a+\"px\",\"float\"===n&&(n=\"cssFloat\"),i?t.setProperty(n,r):t[n]=r}}function rn(t,e,n){e&&(ta[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&i(\"137\",t,n()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&i(\"60\"),\"object\"==typeof e.dangerouslySetInnerHTML&&\"__html\"in e.dangerouslySetInnerHTML||i(\"61\")),null!=e.style&&\"object\"!=typeof e.style&&i(\"62\",n()))}function an(t,e){if(-1===t.indexOf(\"-\"))return\"string\"==typeof e.is;switch(t){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function on(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var n=Dt(t);e=Kn[e];for(var i=0;i<\\/script>\",t=t.removeChild(t.firstChild)):t=\"string\"==typeof e.is?n.createElement(t,{is:e.is}):n.createElement(t):t=n.createElementNS(i,t),t}function ln(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function un(t,e,n,i){var r=an(e,n);switch(e){case\"iframe\":case\"object\":Ot(\"topLoad\",\"load\",t);var a=n;break;case\"video\":case\"audio\":for(a in ia)ia.hasOwnProperty(a)&&Ot(a,ia[a],t);a=n;break;case\"source\":Ot(\"topError\",\"error\",t),a=n;break;case\"img\":case\"image\":Ot(\"topError\",\"error\",t),Ot(\"topLoad\",\"load\",t),a=n;break;case\"form\":Ot(\"topReset\",\"reset\",t),Ot(\"topSubmit\",\"submit\",t),a=n;break;case\"details\":Ot(\"topToggle\",\"toggle\",t),a=n;break;case\"input\":je(t,n),a=Ue(t,n),Ot(\"topInvalid\",\"invalid\",t),on(i,\"onChange\");break;case\"option\":a=qe(t,n);break;case\"select\":Xe(t,n),a=_n({},n,{value:void 0}),Ot(\"topInvalid\",\"invalid\",t),on(i,\"onChange\");break;case\"textarea\":Ke(t,n),a=Ze(t,n),Ot(\"topInvalid\",\"invalid\",t),on(i,\"onChange\");break;default:a=n}rn(e,a,na);var o,s=a;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];\"style\"===o?nn(t,l,na):\"dangerouslySetInnerHTML\"===o?null!=(l=l?l.__html:void 0)&&Qr(t,l):\"children\"===o?\"string\"==typeof l?(\"textarea\"!==e||\"\"!==l)&&en(t,l):\"number\"==typeof l&&en(t,\"\"+l):\"suppressContentEditableWarning\"!==o&&\"suppressHydrationWarning\"!==o&&\"autoFocus\"!==o&&(Zn.hasOwnProperty(o)?null!=l&&on(i,o):r?Be(t,o,l):null!=l&&ze(t,o,l))}switch(e){case\"input\":at(t),Ve(t,n);break;case\"textarea\":at(t),Je(t,n);break;case\"option\":null!=n.value&&t.setAttribute(\"value\",n.value);break;case\"select\":t.multiple=!!n.multiple,e=n.value,null!=e?Ye(t,!!n.multiple,e,!1):null!=n.defaultValue&&Ye(t,!!n.multiple,n.defaultValue,!0);break;default:\"function\"==typeof a.onClick&&(t.onclick=wn)}}function cn(t,e,n,i,r){var a=null;switch(e){case\"input\":n=Ue(t,n),i=Ue(t,i),a=[];break;case\"option\":n=qe(t,n),i=qe(t,i),a=[];break;case\"select\":n=_n({},n,{value:void 0}),i=_n({},i,{value:void 0}),a=[];break;case\"textarea\":n=Ze(t,n),i=Ze(t,i),a=[];break;default:\"function\"!=typeof n.onClick&&\"function\"==typeof i.onClick&&(t.onclick=wn)}rn(e,i,na);var o,s;t=null;for(o in n)if(!i.hasOwnProperty(o)&&n.hasOwnProperty(o)&&null!=n[o])if(\"style\"===o)for(s in e=n[o])e.hasOwnProperty(s)&&(t||(t={}),t[s]=\"\");else\"dangerouslySetInnerHTML\"!==o&&\"children\"!==o&&\"suppressContentEditableWarning\"!==o&&\"suppressHydrationWarning\"!==o&&\"autoFocus\"!==o&&(Zn.hasOwnProperty(o)?a||(a=[]):(a=a||[]).push(o,null));for(o in i){var l=i[o];if(e=null!=n?n[o]:void 0,i.hasOwnProperty(o)&&l!==e&&(null!=l||null!=e))if(\"style\"===o)if(e){for(s in e)!e.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(t||(t={}),t[s]=\"\");for(s in l)l.hasOwnProperty(s)&&e[s]!==l[s]&&(t||(t={}),t[s]=l[s])}else t||(a||(a=[]),a.push(o,t)),t=l;else\"dangerouslySetInnerHTML\"===o?(l=l?l.__html:void 0,e=e?e.__html:void 0,null!=l&&e!==l&&(a=a||[]).push(o,\"\"+l)):\"children\"===o?e===l||\"string\"!=typeof l&&\"number\"!=typeof l||(a=a||[]).push(o,\"\"+l):\"suppressContentEditableWarning\"!==o&&\"suppressHydrationWarning\"!==o&&(Zn.hasOwnProperty(o)?(null!=l&&on(r,o),a||e===l||(a=[])):(a=a||[]).push(o,l))}return t&&(a=a||[]).push(\"style\",t),a}function hn(t,e,n,i,r){\"input\"===n&&\"radio\"===r.type&&null!=r.name&&We(t,r),an(n,i),i=an(n,r);for(var a=0;a=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue||i(\"50\",s),o.hasOwnProperty(s)&&(l.attributeName=o[s]),a.hasOwnProperty(s)&&(l.attributeNamespace=a[s]),t.hasOwnProperty(s)&&(l.mutationMethod=t[s]),An[s]=l}}},An={},Rn=On,Ln=Rn.MUST_USE_PROPERTY,In=Rn.HAS_BOOLEAN_VALUE,Dn=Rn.HAS_NUMERIC_VALUE,Nn=Rn.HAS_POSITIVE_NUMERIC_VALUE,zn=Rn.HAS_OVERLOADED_BOOLEAN_VALUE,Bn=Rn.HAS_STRING_BOOLEAN_VALUE,Fn={Properties:{allowFullScreen:In,async:In,autoFocus:In,autoPlay:In,capture:zn,checked:Ln|In,cols:Nn,contentEditable:Bn,controls:In,default:In,defer:In,disabled:In,download:zn,draggable:Bn,formNoValidate:In,hidden:In,loop:In,multiple:Ln|In,muted:Ln|In,noValidate:In,open:In,playsInline:In,readOnly:In,required:In,reversed:In,rows:Nn,rowSpan:Dn,scoped:In,seamless:In,selected:Ln|In,size:Nn,start:Dn,span:Nn,spellCheck:Bn,style:0,tabIndex:0,itemScope:In,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Bn},DOMAttributeNames:{acceptCharset:\"accept-charset\",className:\"class\",htmlFor:\"for\",httpEquiv:\"http-equiv\"},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute(\"value\");\"number\"!==t.type||!1===t.hasAttribute(\"value\")?t.setAttribute(\"value\",\"\"+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute(\"value\",\"\"+e)}}},Un=Rn.HAS_STRING_BOOLEAN_VALUE,jn={xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\"},Wn={Properties:{autoReverse:Un,externalResourcesRequired:Un,preserveAlpha:Un},DOMAttributeNames:{autoReverse:\"autoReverse\",externalResourcesRequired:\"externalResourcesRequired\",preserveAlpha:\"preserveAlpha\"},DOMAttributeNamespaces:{xlinkActuate:jn.xlink,xlinkArcrole:jn.xlink,xlinkHref:jn.xlink,xlinkRole:jn.xlink,xlinkShow:jn.xlink,xlinkTitle:jn.xlink,xlinkType:jn.xlink,xmlBase:jn.xml,xmlLang:jn.xml,xmlSpace:jn.xml}},Gn=/[\\-\\:]([a-z])/g;\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space\".split(\" \").forEach(function(t){var e=t.replace(Gn,s);Wn.Properties[e]=0,Wn.DOMAttributeNames[e]=t}),Rn.injectDOMPropertyConfig(Fn),Rn.injectDOMPropertyConfig(Wn);var Vn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(t){\"function\"!=typeof t.invokeGuardedCallback&&i(\"197\"),l=t.invokeGuardedCallback}},invokeGuardedCallback:function(t,e,n,i,r,a,o,s,u){l.apply(Vn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,n,i,r,a,o,s,l){if(Vn.invokeGuardedCallback.apply(this,arguments),Vn.hasCaughtError()){var u=Vn.clearCaughtError();Vn._hasRethrowError||(Vn._hasRethrowError=!0,Vn._rethrowError=u)}},rethrowCaughtError:function(){return u.apply(Vn,arguments)},hasCaughtError:function(){return Vn._hasCaughtError},clearCaughtError:function(){if(Vn._hasCaughtError){var t=Vn._caughtError;return Vn._caughtError=null,Vn._hasCaughtError=!1,t}i(\"198\")}},Hn=null,qn={},Yn=[],Xn={},Zn={},Kn={},Qn=Object.freeze({plugins:Yn,eventNameDispatchConfigs:Xn,registrationNameModules:Zn,registrationNameDependencies:Kn,possibleRegistrationNames:null,injectEventPluginOrder:d,injectEventPluginsByName:f}),Jn=null,$n=null,ti=null,ei=null,ni={injectEventPluginOrder:d,injectEventPluginsByName:f},ii=Object.freeze({injection:ni,getListener:x,extractEvents:_,enqueueEvents:w,processEventQueue:M}),ri=Math.random().toString(36).slice(2),ai=\"__reactInternalInstance$\"+ri,oi=\"__reactEventHandlers$\"+ri,si=Object.freeze({precacheFiberNode:function(t,e){e[ai]=t},getClosestInstanceFromNode:S,getInstanceFromNode:function(t){return t=t[ai],!t||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:E,getFiberCurrentPropsFromNode:k,updateFiberProps:function(t,e){t[oi]=e}}),li=Object.freeze({accumulateTwoPhaseDispatches:I,accumulateTwoPhaseDispatchesSkipTarget:function(t){g(t,A)},accumulateEnterLeaveDispatches:D,accumulateDirectDispatches:function(t){g(t,L)}}),ui=null,ci={_root:null,_startText:null,_fallbackText:null},hi=\"dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances\".split(\" \"),di={type:null,target:null,currentTarget:wn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};_n(F.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():\"unknown\"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=wn.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():\"unknown\"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=wn.thatReturnsTrue)},persist:function(){this.isPersistent=wn.thatReturnsTrue},isPersistent:wn.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e=parseInt(vi.version(),10))}var yi,bi=gi,xi=xn.canUseDOM&&(!pi||mi&&8=mi),_i=String.fromCharCode(32),wi={beforeInput:{phasedRegistrationNames:{bubbled:\"onBeforeInput\",captured:\"onBeforeInputCapture\"},dependencies:[\"topCompositionEnd\",\"topKeyPress\",\"topTextInput\",\"topPaste\"]},compositionEnd:{phasedRegistrationNames:{bubbled:\"onCompositionEnd\",captured:\"onCompositionEndCapture\"},dependencies:\"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown\".split(\" \")},compositionStart:{phasedRegistrationNames:{bubbled:\"onCompositionStart\",captured:\"onCompositionStartCapture\"},dependencies:\"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown\".split(\" \")},compositionUpdate:{phasedRegistrationNames:{bubbled:\"onCompositionUpdate\",captured:\"onCompositionUpdateCapture\"},dependencies:\"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown\".split(\" \")}},Mi=!1,Si=!1,Ei={eventTypes:wi,extractEvents:function(t,e,n,i){var r;if(pi)t:{switch(t){case\"topCompositionStart\":var a=wi.compositionStart;break t;case\"topCompositionEnd\":a=wi.compositionEnd;break t;case\"topCompositionUpdate\":a=wi.compositionUpdate;break t}a=void 0}else Si?H(t,n)&&(a=wi.compositionEnd):\"topKeyDown\"===t&&229===n.keyCode&&(a=wi.compositionStart);return a?(xi&&(Si||a!==wi.compositionStart?a===wi.compositionEnd&&Si&&(r=z()):(ci._root=i,ci._startText=B(),Si=!0)),a=G.getPooled(a,e,n,i),r?a.data=r:null!==(r=q(n))&&(a.data=r),I(a),r=a):r=null,(t=bi?Y(t,n):X(t,n))?(e=V.getPooled(wi.beforeInput,e,n,i),e.data=t,I(e)):e=null,[r,e]}},ki=null,Ti=null,Ci=null,Pi={injectFiberControlledHostComponent:function(t){ki=t}},Oi=Object.freeze({injection:Pi,enqueueStateRestore:K,restoreStateIfNeeded:Q}),Ai=!1,Ri={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};xn.canUseDOM&&(yi=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature(\"\",\"\"));var Li={change:{phasedRegistrationNames:{bubbled:\"onChange\",captured:\"onChangeCapture\"},dependencies:\"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange\".split(\" \")}},Ii=null,Di=null,Ni=!1;xn.canUseDOM&&(Ni=nt(\"input\")&&(!document.documentMode||9=document.documentMode,tr={select:{phasedRegistrationNames:{bubbled:\"onSelect\",captured:\"onSelectCapture\"},dependencies:\"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange\".split(\" \")}},er=null,nr=null,ir=null,rr=!1,ar={eventTypes:tr,extractEvents:function(t,e,n,i){var r,a=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;if(!(r=!a)){t:{a=Dt(a),r=Kn.onSelect;for(var o=0;o=jr-t){if(!(-1!==Fr&&Fr<=t))return void(Ur||(Ur=!0,requestAnimationFrame(Hr)));Nr.didTimeout=!0}else Nr.didTimeout=!1;Fr=-1,t=zr,zr=null,null!==t&&t(Nr)}},!1);var Hr=function(t){Ur=!1;var e=t-jr+Gr;ee&&(e=8),Gr=e\"+e+\"\",e=Kr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),Jr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$r=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(Jr).forEach(function(t){$r.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Jr[e]=Jr[t]})});var ta=_n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ea=Zr.html,na=wn.thatReturns(\"\"),ia={topAbort:\"abort\",topCanPlay:\"canplay\",topCanPlayThrough:\"canplaythrough\",topDurationChange:\"durationchange\",topEmptied:\"emptied\",topEncrypted:\"encrypted\",topEnded:\"ended\",topError:\"error\",topLoadedData:\"loadeddata\",topLoadedMetadata:\"loadedmetadata\",topLoadStart:\"loadstart\",topPause:\"pause\",topPlay:\"play\",topPlaying:\"playing\",topProgress:\"progress\",topRateChange:\"ratechange\",topSeeked:\"seeked\",topSeeking:\"seeking\",topStalled:\"stalled\",topSuspend:\"suspend\",topTimeUpdate:\"timeupdate\",topVolumeChange:\"volumechange\",topWaiting:\"waiting\"},ra=Object.freeze({createElement:sn,createTextNode:ln,setInitialProperties:un,diffProperties:cn,updateProperties:hn,diffHydratedProperties:dn,diffHydratedText:fn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,n){switch(e){case\"input\":if(Ge(t,n),e=n.name,\"radio\"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+e)+'][type=\"radio\"]'),e=0;ei&&(r=i,i=t,t=r),r=zt(n,t);var a=zt(n,i);if(r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)){var o=document.createRange();o.setStart(r.node,r.offset),e.removeAllRanges(),t>i?(e.addRange(o),e.extend(a.node,a.offset)):(o.setEnd(a.node,a.offset),e.addRange(o))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(Tn(n),n=0;no?o:r+s,l&&l(u,t);break;case 37:case 40:u=r-s0){S=S.sort(function(t,e){return s?t-e:e-t});var E=!0,k=!1,T=void 0;try{for(var C,P=S[Symbol.iterator]();!(E=(C=P.next()).done);E=!0){var O=C.value,A=this.getPositionFromValue(O),R=this.coordinates(A),L=r({},g,R.label+\"px\");M.push(d.default.createElement(\"li\",{key:O,className:(0,c.default)(\"rangeslider__label-item\"),\"data-value\":O,onMouseDown:this.handleDrag,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,style:L},this.props.labels[O]))}}catch(t){k=!0,T=t}finally{try{!E&&P.return&&P.return()}finally{if(k)throw T}}}return d.default.createElement(\"div\",{ref:function(e){t.slider=e},className:(0,c.default)(\"rangeslider\",\"rangeslider-\"+i,{\"rangeslider-reverse\":s},a),onMouseDown:this.handleDrag,onMouseUp:this.handleEnd,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,\"aria-valuemin\":u,\"aria-valuemax\":h,\"aria-valuenow\":n,\"aria-orientation\":i},d.default.createElement(\"div\",{className:\"rangeslider__fill\",style:x}),d.default.createElement(\"div\",{ref:function(e){t.handle=e},className:\"rangeslider__handle\",onMouseDown:this.handleStart,onTouchMove:this.handleDrag,onTouchEnd:this.handleEnd,onKeyDown:this.handleKeyDown,style:_,tabIndex:0},w?d.default.createElement(\"div\",{ref:function(e){t.tooltip=e},className:\"rangeslider__handle-tooltip\"},d.default.createElement(\"span\",null,this.handleFormat(n))):null,d.default.createElement(\"div\",{className:\"rangeslider__handle-label\"},f)),l?this.renderLabels(M):null)}}]),e}(h.Component);b.propTypes={min:p.default.number,max:p.default.number,step:p.default.number,value:p.default.number,orientation:p.default.string,tooltip:p.default.bool,reverse:p.default.bool,labels:p.default.object,handleLabel:p.default.string,format:p.default.func,onChangeStart:p.default.func,onChange:p.default.func,onChangeComplete:p.default.func},b.defaultProps={min:0,max:100,step:1,value:0,orientation:\"horizontal\",tooltip:!0,reverse:!1,labels:{},handleLabel:\"\"},e.default=b},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var i=n(462),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default},function(t,e,n){\"use strict\";function i(t){return t.charAt(0).toUpperCase()+t.substr(1)}function r(t,e,n){return Math.min(Math.max(t,e),n)}Object.defineProperty(e,\"__esModule\",{value:!0}),e.capitalize=i,e.clamp=r},function(t,e,n){var i=n(468);t.exports=i},function(t,e,n){\"use strict\";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function a(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function o(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,\"__esModule\",{value:!0});var s=Object.assign||function(t){for(var e=1;eparseInt(window.getComputedStyle(v).order)&&(M=-M);var S=i;if(void 0!==i&&i<=0){var E=this.splitPane;S=\"vertical\"===o?E.getBoundingClientRect().width+i:E.getBoundingClientRect().height+i}var k=_-M,T=h-w;kS?k=S:this.setState({position:T,resized:!0}),a&&a(k),this.setState({draggedSize:k}),f.setState({size:k})}}}}},{key:\"onMouseUp\",value:function(){var t=this.props,e=t.allowResize,n=t.onDragFinished,i=this.state,r=i.active,a=i.draggedSize;e&&r&&(\"function\"==typeof n&&n(a),this.setState({active:!1}))}},{key:\"setSize\",value:function(t,e){var n=\"first\"===t.primary,i=n?this.pane1:this.pane2,r=n?this.pane2:this.pane1,a=void 0;i&&(a=t.size||e&&e.draggedSize||t.defaultSize||t.minSize,i.setState({size:a}),t.size!==e.draggedSize&&this.setState({draggedSize:a})),r&&t.primary!==this.props.primary&&r.setState({size:void 0})}},{key:\"render\",value:function(){var t=this,e=this.props,n=e.allowResize,i=e.children,r=e.className,a=e.defaultSize,o=e.minSize,s=e.onResizerClick,u=e.onResizerDoubleClick,c=e.paneClassName,d=e.pane1ClassName,f=e.pane2ClassName,p=e.paneStyle,m=e.pane1Style,g=e.pane2Style,v=e.primary,y=e.prefixer,b=e.resizerClassName,x=e.resizerStyle,S=e.size,E=e.split,k=e.style,T=n?\"\":\"disabled\",C=b?b+\" \"+w.RESIZER_DEFAULT_CLASSNAME:b,P=l({},{display:\"flex\",flex:1,height:\"100%\",position:\"absolute\",outline:\"none\",overflow:\"hidden\",MozUserSelect:\"text\",WebkitUserSelect:\"text\",msUserSelect:\"text\",userSelect:\"text\"},k||{});\"vertical\"===E?l(P,{flexDirection:\"row\",left:0,right:0}):l(P,{bottom:0,flexDirection:\"column\",minHeight:\"100%\",top:0,width:\"100%\"});var O=[\"SplitPane\",r,E,T],A=y.prefix(l({},p||{},m||{})),R=y.prefix(l({},p||{},g||{})),L=[\"Pane1\",c,d].join(\" \"),I=[\"Pane2\",c,f].join(\" \");return h.default.createElement(\"div\",{className:O.join(\" \"),ref:function(e){t.splitPane=e},style:y.prefix(P)},h.default.createElement(_.default,{className:L,key:\"pane1\",ref:function(e){t.pane1=e},size:\"first\"===v?S||a||o:void 0,split:E,style:A},i[0]),h.default.createElement(M.default,{className:T,onClick:s,onDoubleClick:u,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:\"resizer\",ref:function(e){t.resizer=e},resizerClassName:C,split:E,style:x||{}}),h.default.createElement(_.default,{className:I,key:\"pane2\",ref:function(e){t.pane2=e},size:\"second\"===v?S||a||o:void 0,split:E,style:R},i[1]))}}]),e}(h.default.Component);E.propTypes={allowResize:f.default.bool,children:f.default.arrayOf(f.default.node).isRequired,className:f.default.string,primary:f.default.oneOf([\"first\",\"second\"]),minSize:f.default.oneOfType([f.default.string,f.default.number]),maxSize:f.default.oneOfType([f.default.string,f.default.number]),defaultSize:f.default.oneOfType([f.default.string,f.default.number]),size:f.default.oneOfType([f.default.string,f.default.number]),split:f.default.oneOf([\"vertical\",\"horizontal\"]),onDragStarted:f.default.func,onDragFinished:f.default.func,onChange:f.default.func,onResizerClick:f.default.func,onResizerDoubleClick:f.default.func,prefixer:f.default.instanceOf(v.default).isRequired,style:b.default,resizerStyle:b.default,paneClassName:f.default.string,pane1ClassName:f.default.string,pane2ClassName:f.default.string,paneStyle:b.default,pane1Style:b.default,pane2Style:b.default,resizerClassName:f.default.string,step:f.default.number},E.defaultProps={allowResize:!0,minSize:50,prefixer:new v.default({userAgent:S}),primary:\"first\",split:\"vertical\",paneClassName:\"\",pane1ClassName:\"\",pane2ClassName:\"\"},e.default=E,t.exports=e.default},function(t,e){t.exports=[\"alignContent\",\"MozAlignContent\",\"WebkitAlignContent\",\"MSAlignContent\",\"OAlignContent\",\"alignItems\",\"MozAlignItems\",\"WebkitAlignItems\",\"MSAlignItems\",\"OAlignItems\",\"alignSelf\",\"MozAlignSelf\",\"WebkitAlignSelf\",\"MSAlignSelf\",\"OAlignSelf\",\"all\",\"MozAll\",\"WebkitAll\",\"MSAll\",\"OAll\",\"animation\",\"MozAnimation\",\"WebkitAnimation\",\"MSAnimation\",\"OAnimation\",\"animationDelay\",\"MozAnimationDelay\",\"WebkitAnimationDelay\",\"MSAnimationDelay\",\"OAnimationDelay\",\"animationDirection\",\"MozAnimationDirection\",\"WebkitAnimationDirection\",\"MSAnimationDirection\",\"OAnimationDirection\",\"animationDuration\",\"MozAnimationDuration\",\"WebkitAnimationDuration\",\"MSAnimationDuration\",\"OAnimationDuration\",\"animationFillMode\",\"MozAnimationFillMode\",\"WebkitAnimationFillMode\",\"MSAnimationFillMode\",\"OAnimationFillMode\",\"animationIterationCount\",\"MozAnimationIterationCount\",\"WebkitAnimationIterationCount\",\"MSAnimationIterationCount\",\"OAnimationIterationCount\",\"animationName\",\"MozAnimationName\",\"WebkitAnimationName\",\"MSAnimationName\",\"OAnimationName\",\"animationPlayState\",\"MozAnimationPlayState\",\"WebkitAnimationPlayState\",\"MSAnimationPlayState\",\"OAnimationPlayState\",\"animationTimingFunction\",\"MozAnimationTimingFunction\",\"WebkitAnimationTimingFunction\",\"MSAnimationTimingFunction\",\"OAnimationTimingFunction\",\"backfaceVisibility\",\"MozBackfaceVisibility\",\"WebkitBackfaceVisibility\",\"MSBackfaceVisibility\",\"OBackfaceVisibility\",\"background\",\"MozBackground\",\"WebkitBackground\",\"MSBackground\",\"OBackground\",\"backgroundAttachment\",\"MozBackgroundAttachment\",\"WebkitBackgroundAttachment\",\"MSBackgroundAttachment\",\"OBackgroundAttachment\",\"backgroundBlendMode\",\"MozBackgroundBlendMode\",\"WebkitBackgroundBlendMode\",\"MSBackgroundBlendMode\",\"OBackgroundBlendMode\",\"backgroundClip\",\"MozBackgroundClip\",\"WebkitBackgroundClip\",\"MSBackgroundClip\",\"OBackgroundClip\",\"backgroundColor\",\"MozBackgroundColor\",\"WebkitBackgroundColor\",\"MSBackgroundColor\",\"OBackgroundColor\",\"backgroundImage\",\"MozBackgroundImage\",\"WebkitBackgroundImage\",\"MSBackgroundImage\",\"OBackgroundImage\",\"backgroundOrigin\",\"MozBackgroundOrigin\",\"WebkitBackgroundOrigin\",\"MSBackgroundOrigin\",\"OBackgroundOrigin\",\"backgroundPosition\",\"MozBackgroundPosition\",\"WebkitBackgroundPosition\",\"MSBackgroundPosition\",\"OBackgroundPosition\",\"backgroundRepeat\",\"MozBackgroundRepeat\",\"WebkitBackgroundRepeat\",\"MSBackgroundRepeat\",\"OBackgroundRepeat\",\"backgroundSize\",\"MozBackgroundSize\",\"WebkitBackgroundSize\",\"MSBackgroundSize\",\"OBackgroundSize\",\"blockSize\",\"MozBlockSize\",\"WebkitBlockSize\",\"MSBlockSize\",\"OBlockSize\",\"border\",\"MozBorder\",\"WebkitBorder\",\"MSBorder\",\"OBorder\",\"borderBlockEnd\",\"MozBorderBlockEnd\",\"WebkitBorderBlockEnd\",\"MSBorderBlockEnd\",\"OBorderBlockEnd\",\"borderBlockEndColor\",\"MozBorderBlockEndColor\",\"WebkitBorderBlockEndColor\",\"MSBorderBlockEndColor\",\"OBorderBlockEndColor\",\"borderBlockEndStyle\",\"MozBorderBlockEndStyle\",\"WebkitBorderBlockEndStyle\",\"MSBorderBlockEndStyle\",\"OBorderBlockEndStyle\",\"borderBlockEndWidth\",\"MozBorderBlockEndWidth\",\"WebkitBorderBlockEndWidth\",\"MSBorderBlockEndWidth\",\"OBorderBlockEndWidth\",\"borderBlockStart\",\"MozBorderBlockStart\",\"WebkitBorderBlockStart\",\"MSBorderBlockStart\",\"OBorderBlockStart\",\"borderBlockStartColor\",\"MozBorderBlockStartColor\",\"WebkitBorderBlockStartColor\",\"MSBorderBlockStartColor\",\"OBorderBlockStartColor\",\"borderBlockStartStyle\",\"MozBorderBlockStartStyle\",\"WebkitBorderBlockStartStyle\",\"MSBorderBlockStartStyle\",\"OBorderBlockStartStyle\",\"borderBlockStartWidth\",\"MozBorderBlockStartWidth\",\"WebkitBorderBlockStartWidth\",\"MSBorderBlockStartWidth\",\"OBorderBlockStartWidth\",\"borderBottom\",\"MozBorderBottom\",\"WebkitBorderBottom\",\"MSBorderBottom\",\"OBorderBottom\",\"borderBottomColor\",\"MozBorderBottomColor\",\"WebkitBorderBottomColor\",\"MSBorderBottomColor\",\"OBorderBottomColor\",\"borderBottomLeftRadius\",\"MozBorderBottomLeftRadius\",\"WebkitBorderBottomLeftRadius\",\"MSBorderBottomLeftRadius\",\"OBorderBottomLeftRadius\",\"borderBottomRightRadius\",\"MozBorderBottomRightRadius\",\"WebkitBorderBottomRightRadius\",\"MSBorderBottomRightRadius\",\"OBorderBottomRightRadius\",\"borderBottomStyle\",\"MozBorderBottomStyle\",\"WebkitBorderBottomStyle\",\"MSBorderBottomStyle\",\"OBorderBottomStyle\",\"borderBottomWidth\",\"MozBorderBottomWidth\",\"WebkitBorderBottomWidth\",\"MSBorderBottomWidth\",\"OBorderBottomWidth\",\"borderCollapse\",\"MozBorderCollapse\",\"WebkitBorderCollapse\",\"MSBorderCollapse\",\"OBorderCollapse\",\"borderColor\",\"MozBorderColor\",\"WebkitBorderColor\",\"MSBorderColor\",\"OBorderColor\",\"borderImage\",\"MozBorderImage\",\"WebkitBorderImage\",\"MSBorderImage\",\"OBorderImage\",\"borderImageOutset\",\"MozBorderImageOutset\",\"WebkitBorderImageOutset\",\"MSBorderImageOutset\",\"OBorderImageOutset\",\"borderImageRepeat\",\"MozBorderImageRepeat\",\"WebkitBorderImageRepeat\",\"MSBorderImageRepeat\",\"OBorderImageRepeat\",\"borderImageSlice\",\"MozBorderImageSlice\",\"WebkitBorderImageSlice\",\"MSBorderImageSlice\",\"OBorderImageSlice\",\"borderImageSource\",\"MozBorderImageSource\",\"WebkitBorderImageSource\",\"MSBorderImageSource\",\"OBorderImageSource\",\"borderImageWidth\",\"MozBorderImageWidth\",\"WebkitBorderImageWidth\",\"MSBorderImageWidth\",\"OBorderImageWidth\",\"borderInlineEnd\",\"MozBorderInlineEnd\",\"WebkitBorderInlineEnd\",\"MSBorderInlineEnd\",\"OBorderInlineEnd\",\"borderInlineEndColor\",\"MozBorderInlineEndColor\",\"WebkitBorderInlineEndColor\",\"MSBorderInlineEndColor\",\"OBorderInlineEndColor\",\"borderInlineEndStyle\",\"MozBorderInlineEndStyle\",\"WebkitBorderInlineEndStyle\",\"MSBorderInlineEndStyle\",\"OBorderInlineEndStyle\",\"borderInlineEndWidth\",\"MozBorderInlineEndWidth\",\"WebkitBorderInlineEndWidth\",\"MSBorderInlineEndWidth\",\"OBorderInlineEndWidth\",\"borderInlineStart\",\"MozBorderInlineStart\",\"WebkitBorderInlineStart\",\"MSBorderInlineStart\",\"OBorderInlineStart\",\"borderInlineStartColor\",\"MozBorderInlineStartColor\",\"WebkitBorderInlineStartColor\",\"MSBorderInlineStartColor\",\"OBorderInlineStartColor\",\"borderInlineStartStyle\",\"MozBorderInlineStartStyle\",\"WebkitBorderInlineStartStyle\",\"MSBorderInlineStartStyle\",\"OBorderInlineStartStyle\",\"borderInlineStartWidth\",\"MozBorderInlineStartWidth\",\"WebkitBorderInlineStartWidth\",\"MSBorderInlineStartWidth\",\"OBorderInlineStartWidth\",\"borderLeft\",\"MozBorderLeft\",\"WebkitBorderLeft\",\"MSBorderLeft\",\"OBorderLeft\",\"borderLeftColor\",\"MozBorderLeftColor\",\"WebkitBorderLeftColor\",\"MSBorderLeftColor\",\"OBorderLeftColor\",\"borderLeftStyle\",\"MozBorderLeftStyle\",\"WebkitBorderLeftStyle\",\"MSBorderLeftStyle\",\"OBorderLeftStyle\",\"borderLeftWidth\",\"MozBorderLeftWidth\",\"WebkitBorderLeftWidth\",\"MSBorderLeftWidth\",\"OBorderLeftWidth\",\"borderRadius\",\"MozBorderRadius\",\"WebkitBorderRadius\",\"MSBorderRadius\",\"OBorderRadius\",\"borderRight\",\"MozBorderRight\",\"WebkitBorderRight\",\"MSBorderRight\",\"OBorderRight\",\"borderRightColor\",\"MozBorderRightColor\",\"WebkitBorderRightColor\",\"MSBorderRightColor\",\"OBorderRightColor\",\"borderRightStyle\",\"MozBorderRightStyle\",\"WebkitBorderRightStyle\",\"MSBorderRightStyle\",\"OBorderRightStyle\",\"borderRightWidth\",\"MozBorderRightWidth\",\"WebkitBorderRightWidth\",\"MSBorderRightWidth\",\"OBorderRightWidth\",\"borderSpacing\",\"MozBorderSpacing\",\"WebkitBorderSpacing\",\"MSBorderSpacing\",\"OBorderSpacing\",\"borderStyle\",\"MozBorderStyle\",\"WebkitBorderStyle\",\"MSBorderStyle\",\"OBorderStyle\",\"borderTop\",\"MozBorderTop\",\"WebkitBorderTop\",\"MSBorderTop\",\"OBorderTop\",\"borderTopColor\",\"MozBorderTopColor\",\"WebkitBorderTopColor\",\"MSBorderTopColor\",\"OBorderTopColor\",\"borderTopLeftRadius\",\"MozBorderTopLeftRadius\",\"WebkitBorderTopLeftRadius\",\"MSBorderTopLeftRadius\",\"OBorderTopLeftRadius\",\"borderTopRightRadius\",\"MozBorderTopRightRadius\",\"WebkitBorderTopRightRadius\",\"MSBorderTopRightRadius\",\"OBorderTopRightRadius\",\"borderTopStyle\",\"MozBorderTopStyle\",\"WebkitBorderTopStyle\",\"MSBorderTopStyle\",\"OBorderTopStyle\",\"borderTopWidth\",\"MozBorderTopWidth\",\"WebkitBorderTopWidth\",\"MSBorderTopWidth\",\"OBorderTopWidth\",\"borderWidth\",\"MozBorderWidth\",\"WebkitBorderWidth\",\"MSBorderWidth\",\"OBorderWidth\",\"bottom\",\"MozBottom\",\"WebkitBottom\",\"MSBottom\",\"OBottom\",\"boxDecorationBreak\",\"MozBoxDecorationBreak\",\"WebkitBoxDecorationBreak\",\"MSBoxDecorationBreak\",\"OBoxDecorationBreak\",\"boxShadow\",\"MozBoxShadow\",\"WebkitBoxShadow\",\"MSBoxShadow\",\"OBoxShadow\",\"boxSizing\",\"MozBoxSizing\",\"WebkitBoxSizing\",\"MSBoxSizing\",\"OBoxSizing\",\"breakAfter\",\"MozBreakAfter\",\"WebkitBreakAfter\",\"MSBreakAfter\",\"OBreakAfter\",\"breakBefore\",\"MozBreakBefore\",\"WebkitBreakBefore\",\"MSBreakBefore\",\"OBreakBefore\",\"breakInside\",\"MozBreakInside\",\"WebkitBreakInside\",\"MSBreakInside\",\"OBreakInside\",\"captionSide\",\"MozCaptionSide\",\"WebkitCaptionSide\",\"MSCaptionSide\",\"OCaptionSide\",\"caretColor\",\"MozCaretColor\",\"WebkitCaretColor\",\"MSCaretColor\",\"OCaretColor\",\"ch\",\"MozCh\",\"WebkitCh\",\"MSCh\",\"OCh\",\"clear\",\"MozClear\",\"WebkitClear\",\"MSClear\",\"OClear\",\"clip\",\"MozClip\",\"WebkitClip\",\"MSClip\",\"OClip\",\"clipPath\",\"MozClipPath\",\"WebkitClipPath\",\"MSClipPath\",\"OClipPath\",\"cm\",\"MozCm\",\"WebkitCm\",\"MSCm\",\"OCm\",\"color\",\"MozColor\",\"WebkitColor\",\"MSColor\",\"OColor\",\"columnCount\",\"MozColumnCount\",\"WebkitColumnCount\",\"MSColumnCount\",\"OColumnCount\",\"columnFill\",\"MozColumnFill\",\"WebkitColumnFill\",\"MSColumnFill\",\"OColumnFill\",\"columnGap\",\"MozColumnGap\",\"WebkitColumnGap\",\"MSColumnGap\",\"OColumnGap\",\"columnRule\",\"MozColumnRule\",\"WebkitColumnRule\",\"MSColumnRule\",\"OColumnRule\",\"columnRuleColor\",\"MozColumnRuleColor\",\"WebkitColumnRuleColor\",\"MSColumnRuleColor\",\"OColumnRuleColor\",\"columnRuleStyle\",\"MozColumnRuleStyle\",\"WebkitColumnRuleStyle\",\"MSColumnRuleStyle\",\"OColumnRuleStyle\",\"columnRuleWidth\",\"MozColumnRuleWidth\",\"WebkitColumnRuleWidth\",\"MSColumnRuleWidth\",\"OColumnRuleWidth\",\"columnSpan\",\"MozColumnSpan\",\"WebkitColumnSpan\",\"MSColumnSpan\",\"OColumnSpan\",\"columnWidth\",\"MozColumnWidth\",\"WebkitColumnWidth\",\"MSColumnWidth\",\"OColumnWidth\",\"columns\",\"MozColumns\",\"WebkitColumns\",\"MSColumns\",\"OColumns\",\"content\",\"MozContent\",\"WebkitContent\",\"MSContent\",\"OContent\",\"counterIncrement\",\"MozCounterIncrement\",\"WebkitCounterIncrement\",\"MSCounterIncrement\",\"OCounterIncrement\",\"counterReset\",\"MozCounterReset\",\"WebkitCounterReset\",\"MSCounterReset\",\"OCounterReset\",\"cursor\",\"MozCursor\",\"WebkitCursor\",\"MSCursor\",\"OCursor\",\"deg\",\"MozDeg\",\"WebkitDeg\",\"MSDeg\",\"ODeg\",\"direction\",\"MozDirection\",\"WebkitDirection\",\"MSDirection\",\"ODirection\",\"display\",\"MozDisplay\",\"WebkitDisplay\",\"MSDisplay\",\"ODisplay\",\"dpcm\",\"MozDpcm\",\"WebkitDpcm\",\"MSDpcm\",\"ODpcm\",\"dpi\",\"MozDpi\",\"WebkitDpi\",\"MSDpi\",\"ODpi\",\"dppx\",\"MozDppx\",\"WebkitDppx\",\"MSDppx\",\"ODppx\",\"em\",\"MozEm\",\"WebkitEm\",\"MSEm\",\"OEm\",\"emptyCells\",\"MozEmptyCells\",\"WebkitEmptyCells\",\"MSEmptyCells\",\"OEmptyCells\",\"ex\",\"MozEx\",\"WebkitEx\",\"MSEx\",\"OEx\",\"filter\",\"MozFilter\",\"WebkitFilter\",\"MSFilter\",\"OFilter\",\"flexBasis\",\"MozFlexBasis\",\"WebkitFlexBasis\",\"MSFlexBasis\",\"OFlexBasis\",\"flexDirection\",\"MozFlexDirection\",\"WebkitFlexDirection\",\"MSFlexDirection\",\"OFlexDirection\",\"flexFlow\",\"MozFlexFlow\",\"WebkitFlexFlow\",\"MSFlexFlow\",\"OFlexFlow\",\"flexGrow\",\"MozFlexGrow\",\"WebkitFlexGrow\",\"MSFlexGrow\",\"OFlexGrow\",\"flexShrink\",\"MozFlexShrink\",\"WebkitFlexShrink\",\"MSFlexShrink\",\"OFlexShrink\",\"flexWrap\",\"MozFlexWrap\",\"WebkitFlexWrap\",\"MSFlexWrap\",\"OFlexWrap\",\"float\",\"MozFloat\",\"WebkitFloat\",\"MSFloat\",\"OFloat\",\"font\",\"MozFont\",\"WebkitFont\",\"MSFont\",\"OFont\",\"fontFamily\",\"MozFontFamily\",\"WebkitFontFamily\",\"MSFontFamily\",\"OFontFamily\",\"fontFeatureSettings\",\"MozFontFeatureSettings\",\"WebkitFontFeatureSettings\",\"MSFontFeatureSettings\",\"OFontFeatureSettings\",\"fontKerning\",\"MozFontKerning\",\"WebkitFontKerning\",\"MSFontKerning\",\"OFontKerning\",\"fontLanguageOverride\",\"MozFontLanguageOverride\",\"WebkitFontLanguageOverride\",\"MSFontLanguageOverride\",\"OFontLanguageOverride\",\"fontSize\",\"MozFontSize\",\"WebkitFontSize\",\"MSFontSize\",\"OFontSize\",\"fontSizeAdjust\",\"MozFontSizeAdjust\",\"WebkitFontSizeAdjust\",\"MSFontSizeAdjust\",\"OFontSizeAdjust\",\"fontStretch\",\"MozFontStretch\",\"WebkitFontStretch\",\"MSFontStretch\",\"OFontStretch\",\"fontStyle\",\"MozFontStyle\",\"WebkitFontStyle\",\"MSFontStyle\",\"OFontStyle\",\"fontSynthesis\",\"MozFontSynthesis\",\"WebkitFontSynthesis\",\"MSFontSynthesis\",\"OFontSynthesis\",\"fontVariant\",\"MozFontVariant\",\"WebkitFontVariant\",\"MSFontVariant\",\"OFontVariant\",\"fontVariantAlternates\",\"MozFontVariantAlternates\",\"WebkitFontVariantAlternates\",\"MSFontVariantAlternates\",\"OFontVariantAlternates\",\"fontVariantCaps\",\"MozFontVariantCaps\",\"WebkitFontVariantCaps\",\"MSFontVariantCaps\",\"OFontVariantCaps\",\"fontVariantEastAsian\",\"MozFontVariantEastAsian\",\"WebkitFontVariantEastAsian\",\"MSFontVariantEastAsian\",\"OFontVariantEastAsian\",\"fontVariantLigatures\",\"MozFontVariantLigatures\",\"WebkitFontVariantLigatures\",\"MSFontVariantLigatures\",\"OFontVariantLigatures\",\"fontVariantNumeric\",\"MozFontVariantNumeric\",\"WebkitFontVariantNumeric\",\"MSFontVariantNumeric\",\"OFontVariantNumeric\",\"fontVariantPosition\",\"MozFontVariantPosition\",\"WebkitFontVariantPosition\",\"MSFontVariantPosition\",\"OFontVariantPosition\",\"fontWeight\",\"MozFontWeight\",\"WebkitFontWeight\",\"MSFontWeight\",\"OFontWeight\",\"fr\",\"MozFr\",\"WebkitFr\",\"MSFr\",\"OFr\",\"grad\",\"MozGrad\",\"WebkitGrad\",\"MSGrad\",\"OGrad\",\"grid\",\"MozGrid\",\"WebkitGrid\",\"MSGrid\",\"OGrid\",\"gridArea\",\"MozGridArea\",\"WebkitGridArea\",\"MSGridArea\",\"OGridArea\",\"gridAutoColumns\",\"MozGridAutoColumns\",\"WebkitGridAutoColumns\",\"MSGridAutoColumns\",\"OGridAutoColumns\",\"gridAutoFlow\",\"MozGridAutoFlow\",\"WebkitGridAutoFlow\",\"MSGridAutoFlow\",\"OGridAutoFlow\",\"gridAutoRows\",\"MozGridAutoRows\",\"WebkitGridAutoRows\",\"MSGridAutoRows\",\"OGridAutoRows\",\"gridColumn\",\"MozGridColumn\",\"WebkitGridColumn\",\"MSGridColumn\",\"OGridColumn\",\"gridColumnEnd\",\"MozGridColumnEnd\",\"WebkitGridColumnEnd\",\"MSGridColumnEnd\",\"OGridColumnEnd\",\"gridColumnGap\",\"MozGridColumnGap\",\"WebkitGridColumnGap\",\"MSGridColumnGap\",\"OGridColumnGap\",\"gridColumnStart\",\"MozGridColumnStart\",\"WebkitGridColumnStart\",\"MSGridColumnStart\",\"OGridColumnStart\",\"gridGap\",\"MozGridGap\",\"WebkitGridGap\",\"MSGridGap\",\"OGridGap\",\"gridRow\",\"MozGridRow\",\"WebkitGridRow\",\"MSGridRow\",\"OGridRow\",\"gridRowEnd\",\"MozGridRowEnd\",\"WebkitGridRowEnd\",\"MSGridRowEnd\",\"OGridRowEnd\",\"gridRowGap\",\"MozGridRowGap\",\"WebkitGridRowGap\",\"MSGridRowGap\",\"OGridRowGap\",\"gridRowStart\",\"MozGridRowStart\",\"WebkitGridRowStart\",\"MSGridRowStart\",\"OGridRowStart\",\"gridTemplate\",\"MozGridTemplate\",\"WebkitGridTemplate\",\"MSGridTemplate\",\"OGridTemplate\",\"gridTemplateAreas\",\"MozGridTemplateAreas\",\"WebkitGridTemplateAreas\",\"MSGridTemplateAreas\",\"OGridTemplateAreas\",\"gridTemplateColumns\",\"MozGridTemplateColumns\",\"WebkitGridTemplateColumns\",\"MSGridTemplateColumns\",\"OGridTemplateColumns\",\"gridTemplateRows\",\"MozGridTemplateRows\",\"WebkitGridTemplateRows\",\"MSGridTemplateRows\",\"OGridTemplateRows\",\"height\",\"MozHeight\",\"WebkitHeight\",\"MSHeight\",\"OHeight\",\"hyphens\",\"MozHyphens\",\"WebkitHyphens\",\"MSHyphens\",\"OHyphens\",\"hz\",\"MozHz\",\"WebkitHz\",\"MSHz\",\"OHz\",\"imageOrientation\",\"MozImageOrientation\",\"WebkitImageOrientation\",\"MSImageOrientation\",\"OImageOrientation\",\"imageRendering\",\"MozImageRendering\",\"WebkitImageRendering\",\"MSImageRendering\",\"OImageRendering\",\"imageResolution\",\"MozImageResolution\",\"WebkitImageResolution\",\"MSImageResolution\",\"OImageResolution\",\"imeMode\",\"MozImeMode\",\"WebkitImeMode\",\"MSImeMode\",\"OImeMode\",\"in\",\"MozIn\",\"WebkitIn\",\"MSIn\",\"OIn\",\"inherit\",\"MozInherit\",\"WebkitInherit\",\"MSInherit\",\"OInherit\",\"initial\",\"MozInitial\",\"WebkitInitial\",\"MSInitial\",\"OInitial\",\"inlineSize\",\"MozInlineSize\",\"WebkitInlineSize\",\"MSInlineSize\",\"OInlineSize\",\"isolation\",\"MozIsolation\",\"WebkitIsolation\",\"MSIsolation\",\"OIsolation\",\"justifyContent\",\"MozJustifyContent\",\"WebkitJustifyContent\",\"MSJustifyContent\",\"OJustifyContent\",\"khz\",\"MozKhz\",\"WebkitKhz\",\"MSKhz\",\"OKhz\",\"left\",\"MozLeft\",\"WebkitLeft\",\"MSLeft\",\"OLeft\",\"letterSpacing\",\"MozLetterSpacing\",\"WebkitLetterSpacing\",\"MSLetterSpacing\",\"OLetterSpacing\",\"lineBreak\",\"MozLineBreak\",\"WebkitLineBreak\",\"MSLineBreak\",\"OLineBreak\",\"lineHeight\",\"MozLineHeight\",\"WebkitLineHeight\",\"MSLineHeight\",\"OLineHeight\",\"listStyle\",\"MozListStyle\",\"WebkitListStyle\",\"MSListStyle\",\"OListStyle\",\"listStyleImage\",\"MozListStyleImage\",\"WebkitListStyleImage\",\"MSListStyleImage\",\"OListStyleImage\",\"listStylePosition\",\"MozListStylePosition\",\"WebkitListStylePosition\",\"MSListStylePosition\",\"OListStylePosition\",\"listStyleType\",\"MozListStyleType\",\"WebkitListStyleType\",\"MSListStyleType\",\"OListStyleType\",\"margin\",\"MozMargin\",\"WebkitMargin\",\"MSMargin\",\"OMargin\",\"marginBlockEnd\",\"MozMarginBlockEnd\",\"WebkitMarginBlockEnd\",\"MSMarginBlockEnd\",\"OMarginBlockEnd\",\"marginBlockStart\",\"MozMarginBlockStart\",\"WebkitMarginBlockStart\",\"MSMarginBlockStart\",\"OMarginBlockStart\",\"marginBottom\",\"MozMarginBottom\",\"WebkitMarginBottom\",\"MSMarginBottom\",\"OMarginBottom\",\"marginInlineEnd\",\"MozMarginInlineEnd\",\"WebkitMarginInlineEnd\",\"MSMarginInlineEnd\",\"OMarginInlineEnd\",\"marginInlineStart\",\"MozMarginInlineStart\",\"WebkitMarginInlineStart\",\"MSMarginInlineStart\",\"OMarginInlineStart\",\"marginLeft\",\"MozMarginLeft\",\"WebkitMarginLeft\",\"MSMarginLeft\",\"OMarginLeft\",\"marginRight\",\"MozMarginRight\",\"WebkitMarginRight\",\"MSMarginRight\",\"OMarginRight\",\"marginTop\",\"MozMarginTop\",\"WebkitMarginTop\",\"MSMarginTop\",\"OMarginTop\",\"mask\",\"MozMask\",\"WebkitMask\",\"MSMask\",\"OMask\",\"maskClip\",\"MozMaskClip\",\"WebkitMaskClip\",\"MSMaskClip\",\"OMaskClip\",\"maskComposite\",\"MozMaskComposite\",\"WebkitMaskComposite\",\"MSMaskComposite\",\"OMaskComposite\",\"maskImage\",\"MozMaskImage\",\"WebkitMaskImage\",\"MSMaskImage\",\"OMaskImage\",\"maskMode\",\"MozMaskMode\",\"WebkitMaskMode\",\"MSMaskMode\",\"OMaskMode\",\"maskOrigin\",\"MozMaskOrigin\",\"WebkitMaskOrigin\",\"MSMaskOrigin\",\"OMaskOrigin\",\"maskPosition\",\"MozMaskPosition\",\"WebkitMaskPosition\",\"MSMaskPosition\",\"OMaskPosition\",\"maskRepeat\",\"MozMaskRepeat\",\"WebkitMaskRepeat\",\"MSMaskRepeat\",\"OMaskRepeat\",\"maskSize\",\"MozMaskSize\",\"WebkitMaskSize\",\"MSMaskSize\",\"OMaskSize\",\"maskType\",\"MozMaskType\",\"WebkitMaskType\",\"MSMaskType\",\"OMaskType\",\"maxHeight\",\"MozMaxHeight\",\"WebkitMaxHeight\",\"MSMaxHeight\",\"OMaxHeight\",\"maxWidth\",\"MozMaxWidth\",\"WebkitMaxWidth\",\"MSMaxWidth\",\"OMaxWidth\",\"minBlockSize\",\"MozMinBlockSize\",\"WebkitMinBlockSize\",\"MSMinBlockSize\",\"OMinBlockSize\",\"minHeight\",\"MozMinHeight\",\"WebkitMinHeight\",\"MSMinHeight\",\"OMinHeight\",\"minInlineSize\",\"MozMinInlineSize\",\"WebkitMinInlineSize\",\"MSMinInlineSize\",\"OMinInlineSize\",\"minWidth\",\"MozMinWidth\",\"WebkitMinWidth\",\"MSMinWidth\",\"OMinWidth\",\"mixBlendMode\",\"MozMixBlendMode\",\"WebkitMixBlendMode\",\"MSMixBlendMode\",\"OMixBlendMode\",\"mm\",\"MozMm\",\"WebkitMm\",\"MSMm\",\"OMm\",\"ms\",\"MozMs\",\"WebkitMs\",\"MSMs\",\"OMs\",\"objectFit\",\"MozObjectFit\",\"WebkitObjectFit\",\"MSObjectFit\",\"OObjectFit\",\"objectPosition\",\"MozObjectPosition\",\"WebkitObjectPosition\",\"MSObjectPosition\",\"OObjectPosition\",\"offsetBlockEnd\",\"MozOffsetBlockEnd\",\"WebkitOffsetBlockEnd\",\"MSOffsetBlockEnd\",\"OOffsetBlockEnd\",\"offsetBlockStart\",\"MozOffsetBlockStart\",\"WebkitOffsetBlockStart\",\"MSOffsetBlockStart\",\"OOffsetBlockStart\",\"offsetInlineEnd\",\"MozOffsetInlineEnd\",\"WebkitOffsetInlineEnd\",\"MSOffsetInlineEnd\",\"OOffsetInlineEnd\",\"offsetInlineStart\",\"MozOffsetInlineStart\",\"WebkitOffsetInlineStart\",\"MSOffsetInlineStart\",\"OOffsetInlineStart\",\"opacity\",\"MozOpacity\",\"WebkitOpacity\",\"MSOpacity\",\"OOpacity\",\"order\",\"MozOrder\",\"WebkitOrder\",\"MSOrder\",\"OOrder\",\"orphans\",\"MozOrphans\",\"WebkitOrphans\",\"MSOrphans\",\"OOrphans\",\"outline\",\"MozOutline\",\"WebkitOutline\",\"MSOutline\",\"OOutline\",\"outlineColor\",\"MozOutlineColor\",\"WebkitOutlineColor\",\"MSOutlineColor\",\"OOutlineColor\",\"outlineOffset\",\"MozOutlineOffset\",\"WebkitOutlineOffset\",\"MSOutlineOffset\",\"OOutlineOffset\",\"outlineStyle\",\"MozOutlineStyle\",\"WebkitOutlineStyle\",\"MSOutlineStyle\",\"OOutlineStyle\",\"outlineWidth\",\"MozOutlineWidth\",\"WebkitOutlineWidth\",\"MSOutlineWidth\",\"OOutlineWidth\",\"overflow\",\"MozOverflow\",\"WebkitOverflow\",\"MSOverflow\",\"OOverflow\",\"overflowWrap\",\"MozOverflowWrap\",\"WebkitOverflowWrap\",\"MSOverflowWrap\",\"OOverflowWrap\",\"overflowX\",\"MozOverflowX\",\"WebkitOverflowX\",\"MSOverflowX\",\"OOverflowX\",\"overflowY\",\"MozOverflowY\",\"WebkitOverflowY\",\"MSOverflowY\",\"OOverflowY\",\"padding\",\"MozPadding\",\"WebkitPadding\",\"MSPadding\",\"OPadding\",\"paddingBlockEnd\",\"MozPaddingBlockEnd\",\"WebkitPaddingBlockEnd\",\"MSPaddingBlockEnd\",\"OPaddingBlockEnd\",\"paddingBlockStart\",\"MozPaddingBlockStart\",\"WebkitPaddingBlockStart\",\"MSPaddingBlockStart\",\"OPaddingBlockStart\",\"paddingBottom\",\"MozPaddingBottom\",\"WebkitPaddingBottom\",\"MSPaddingBottom\",\"OPaddingBottom\",\"paddingInlineEnd\",\"MozPaddingInlineEnd\",\"WebkitPaddingInlineEnd\",\"MSPaddingInlineEnd\",\"OPaddingInlineEnd\",\"paddingInlineStart\",\"MozPaddingInlineStart\",\"WebkitPaddingInlineStart\",\"MSPaddingInlineStart\",\"OPaddingInlineStart\",\"paddingLeft\",\"MozPaddingLeft\",\"WebkitPaddingLeft\",\"MSPaddingLeft\",\"OPaddingLeft\",\"paddingRight\",\"MozPaddingRight\",\"WebkitPaddingRight\",\"MSPaddingRight\",\"OPaddingRight\",\"paddingTop\",\"MozPaddingTop\",\"WebkitPaddingTop\",\"MSPaddingTop\",\"OPaddingTop\",\"pageBreakAfter\",\"MozPageBreakAfter\",\"WebkitPageBreakAfter\",\"MSPageBreakAfter\",\"OPageBreakAfter\",\"pageBreakBefore\",\"MozPageBreakBefore\",\"WebkitPageBreakBefore\",\"MSPageBreakBefore\",\"OPageBreakBefore\",\"pageBreakInside\",\"MozPageBreakInside\",\"WebkitPageBreakInside\",\"MSPageBreakInside\",\"OPageBreakInside\",\"pc\",\"MozPc\",\"WebkitPc\",\"MSPc\",\"OPc\",\"perspective\",\"MozPerspective\",\"WebkitPerspective\",\"MSPerspective\",\"OPerspective\",\"perspectiveOrigin\",\"MozPerspectiveOrigin\",\"WebkitPerspectiveOrigin\",\"MSPerspectiveOrigin\",\"OPerspectiveOrigin\",\"pointerEvents\",\"MozPointerEvents\",\"WebkitPointerEvents\",\"MSPointerEvents\",\"OPointerEvents\",\"position\",\"MozPosition\",\"WebkitPosition\",\"MSPosition\",\"OPosition\",\"pt\",\"MozPt\",\"WebkitPt\",\"MSPt\",\"OPt\",\"px\",\"MozPx\",\"WebkitPx\",\"MSPx\",\"OPx\",\"q\",\"MozQ\",\"WebkitQ\",\"MSQ\",\"OQ\",\"quotes\",\"MozQuotes\",\"WebkitQuotes\",\"MSQuotes\",\"OQuotes\",\"rad\",\"MozRad\",\"WebkitRad\",\"MSRad\",\"ORad\",\"rem\",\"MozRem\",\"WebkitRem\",\"MSRem\",\"ORem\",\"resize\",\"MozResize\",\"WebkitResize\",\"MSResize\",\"OResize\",\"revert\",\"MozRevert\",\"WebkitRevert\",\"MSRevert\",\"ORevert\",\"right\",\"MozRight\",\"WebkitRight\",\"MSRight\",\"ORight\",\"rubyAlign\",\"MozRubyAlign\",\"WebkitRubyAlign\",\"MSRubyAlign\",\"ORubyAlign\",\"rubyMerge\",\"MozRubyMerge\",\"WebkitRubyMerge\",\"MSRubyMerge\",\"ORubyMerge\",\"rubyPosition\",\"MozRubyPosition\",\"WebkitRubyPosition\",\"MSRubyPosition\",\"ORubyPosition\",\"s\",\"MozS\",\"WebkitS\",\"MSS\",\"OS\",\"scrollBehavior\",\"MozScrollBehavior\",\"WebkitScrollBehavior\",\"MSScrollBehavior\",\"OScrollBehavior\",\"scrollSnapCoordinate\",\"MozScrollSnapCoordinate\",\"WebkitScrollSnapCoordinate\",\"MSScrollSnapCoordinate\",\"OScrollSnapCoordinate\",\"scrollSnapDestination\",\"MozScrollSnapDestination\",\"WebkitScrollSnapDestination\",\"MSScrollSnapDestination\",\"OScrollSnapDestination\",\"scrollSnapType\",\"MozScrollSnapType\",\"WebkitScrollSnapType\",\"MSScrollSnapType\",\"OScrollSnapType\",\"shapeImageThreshold\",\"MozShapeImageThreshold\",\"WebkitShapeImageThreshold\",\"MSShapeImageThreshold\",\"OShapeImageThreshold\",\"shapeMargin\",\"MozShapeMargin\",\"WebkitShapeMargin\",\"MSShapeMargin\",\"OShapeMargin\",\"shapeOutside\",\"MozShapeOutside\",\"WebkitShapeOutside\",\"MSShapeOutside\",\"OShapeOutside\",\"tabSize\",\"MozTabSize\",\"WebkitTabSize\",\"MSTabSize\",\"OTabSize\",\"tableLayout\",\"MozTableLayout\",\"WebkitTableLayout\",\"MSTableLayout\",\"OTableLayout\",\"textAlign\",\"MozTextAlign\",\"WebkitTextAlign\",\"MSTextAlign\",\"OTextAlign\",\"textAlignLast\",\"MozTextAlignLast\",\"WebkitTextAlignLast\",\"MSTextAlignLast\",\"OTextAlignLast\",\"textCombineUpright\",\"MozTextCombineUpright\",\"WebkitTextCombineUpright\",\"MSTextCombineUpright\",\"OTextCombineUpright\",\"textDecoration\",\"MozTextDecoration\",\"WebkitTextDecoration\",\"MSTextDecoration\",\"OTextDecoration\",\"textDecorationColor\",\"MozTextDecorationColor\",\"WebkitTextDecorationColor\",\"MSTextDecorationColor\",\"OTextDecorationColor\",\"textDecorationLine\",\"MozTextDecorationLine\",\"WebkitTextDecorationLine\",\"MSTextDecorationLine\",\"OTextDecorationLine\",\"textDecorationStyle\",\"MozTextDecorationStyle\",\"WebkitTextDecorationStyle\",\"MSTextDecorationStyle\",\"OTextDecorationStyle\",\"textEmphasis\",\"MozTextEmphasis\",\"WebkitTextEmphasis\",\"MSTextEmphasis\",\"OTextEmphasis\",\"textEmphasisColor\",\"MozTextEmphasisColor\",\"WebkitTextEmphasisColor\",\"MSTextEmphasisColor\",\"OTextEmphasisColor\",\"textEmphasisPosition\",\"MozTextEmphasisPosition\",\"WebkitTextEmphasisPosition\",\"MSTextEmphasisPosition\",\"OTextEmphasisPosition\",\"textEmphasisStyle\",\"MozTextEmphasisStyle\",\"WebkitTextEmphasisStyle\",\"MSTextEmphasisStyle\",\"OTextEmphasisStyle\",\"textIndent\",\"MozTextIndent\",\"WebkitTextIndent\",\"MSTextIndent\",\"OTextIndent\",\"textOrientation\",\"MozTextOrientation\",\"WebkitTextOrientation\",\"MSTextOrientation\",\"OTextOrientation\",\"textOverflow\",\"MozTextOverflow\",\"WebkitTextOverflow\",\"MSTextOverflow\",\"OTextOverflow\",\"textRendering\",\"MozTextRendering\",\"WebkitTextRendering\",\"MSTextRendering\",\"OTextRendering\",\"textShadow\",\"MozTextShadow\",\"WebkitTextShadow\",\"MSTextShadow\",\"OTextShadow\",\"textTransform\",\"MozTextTransform\",\"WebkitTextTransform\",\"MSTextTransform\",\"OTextTransform\",\"textUnderlinePosition\",\"MozTextUnderlinePosition\",\"WebkitTextUnderlinePosition\",\"MSTextUnderlinePosition\",\"OTextUnderlinePosition\",\"top\",\"MozTop\",\"WebkitTop\",\"MSTop\",\"OTop\",\"touchAction\",\"MozTouchAction\",\"WebkitTouchAction\",\"MSTouchAction\",\"OTouchAction\",\"transform\",\"MozTransform\",\"WebkitTransform\",\"msTransform\",\"OTransform\",\"transformBox\",\"MozTransformBox\",\"WebkitTransformBox\",\"MSTransformBox\",\"OTransformBox\",\"transformOrigin\",\"MozTransformOrigin\",\"WebkitTransformOrigin\",\"MSTransformOrigin\",\"OTransformOrigin\",\"transformStyle\",\"MozTransformStyle\",\"WebkitTransformStyle\",\"MSTransformStyle\",\"OTransformStyle\",\"transition\",\"MozTransition\",\"WebkitTransition\",\"MSTransition\",\"OTransition\",\"transitionDelay\",\"MozTransitionDelay\",\"WebkitTransitionDelay\",\"MSTransitionDelay\",\"OTransitionDelay\",\"transitionDuration\",\"MozTransitionDuration\",\"WebkitTransitionDuration\",\"MSTransitionDuration\",\"OTransitionDuration\",\"transitionProperty\",\"MozTransitionProperty\",\"WebkitTransitionProperty\",\"MSTransitionProperty\",\"OTransitionProperty\",\"transitionTimingFunction\",\"MozTransitionTimingFunction\",\"WebkitTransitionTimingFunction\",\"MSTransitionTimingFunction\",\"OTransitionTimingFunction\",\"turn\",\"MozTurn\",\"WebkitTurn\",\"MSTurn\",\"OTurn\",\"unicodeBidi\",\"MozUnicodeBidi\",\"WebkitUnicodeBidi\",\"MSUnicodeBidi\",\"OUnicodeBidi\",\"unset\",\"MozUnset\",\"WebkitUnset\",\"MSUnset\",\"OUnset\",\"verticalAlign\",\"MozVerticalAlign\",\"WebkitVerticalAlign\",\"MSVerticalAlign\",\"OVerticalAlign\",\"vh\",\"MozVh\",\"WebkitVh\",\"MSVh\",\"OVh\",\"visibility\",\"MozVisibility\",\"WebkitVisibility\",\"MSVisibility\",\"OVisibility\",\"vmax\",\"MozVmax\",\"WebkitVmax\",\"MSVmax\",\"OVmax\",\"vmin\",\"MozVmin\",\"WebkitVmin\",\"MSVmin\",\"OVmin\",\"vw\",\"MozVw\",\"WebkitVw\",\"MSVw\",\"OVw\",\"whiteSpace\",\"MozWhiteSpace\",\"WebkitWhiteSpace\",\"MSWhiteSpace\",\"OWhiteSpace\",\"widows\",\"MozWidows\",\"WebkitWidows\",\"MSWidows\",\"OWidows\",\"width\",\"MozWidth\",\"WebkitWidth\",\"MSWidth\",\"OWidth\",\"willChange\",\"MozWillChange\",\"WebkitWillChange\",\"MSWillChange\",\"OWillChange\",\"wordBreak\",\"MozWordBreak\",\"WebkitWordBreak\",\"MSWordBreak\",\"OWordBreak\",\"wordSpacing\",\"MozWordSpacing\",\"WebkitWordSpacing\",\"MSWordSpacing\",\"OWordSpacing\",\"wordWrap\",\"MozWordWrap\",\"WebkitWordWrap\",\"MSWordWrap\",\"OWordWrap\",\"writingMode\",\"MozWritingMode\",\"WebkitWritingMode\",\"MSWritingMode\",\"OWritingMode\",\"zIndex\",\"MozZIndex\",\"WebkitZIndex\",\"MSZIndex\",\"OZIndex\",\"fontSize\",\"MozFontSize\",\"WebkitFontSize\",\"MSFontSize\",\"OFontSize\",\"flex\",\"MozFlex\",\"WebkitFlex\",\"MSFlex\",\"OFlex\",\"fr\",\"MozFr\",\"WebkitFr\",\"MSFr\",\"OFr\",\"overflowScrolling\",\"MozOverflowScrolling\",\"WebkitOverflowScrolling\",\"MSOverflowScrolling\",\"OOverflowScrolling\",\"userSelect\",\"MozUserSelect\",\"WebkitUserSelect\",\"MSUserSelect\",\"OUserSelect\"]},function(t,e,n){\"use strict\";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,\"a\",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var n=e.prototype;return n.componentDidMount=function(){this.checkFocus()},n.componentDidUpdate=function(){this.checkFocus()},n.checkFocus=function(){this.props.selected&&this.props.focus&&this.node.focus()},n.render=function(){var t,e=this,n=this.props,a=n.children,o=n.className,s=n.disabled,u=n.disabledClassName,h=(n.focus,n.id),d=n.panelId,f=n.selected,p=n.selectedClassName,m=n.tabIndex,g=n.tabRef,v=r(n,[\"children\",\"className\",\"disabled\",\"disabledClassName\",\"focus\",\"id\",\"panelId\",\"selected\",\"selectedClassName\",\"tabIndex\",\"tabRef\"]);return l.a.createElement(\"li\",i({},v,{className:c()(o,(t={},t[p]=f,t[u]=s,t)),ref:function(t){e.node=t,g&&g(t)},role:\"tab\",id:h,\"aria-selected\":f?\"true\":\"false\",\"aria-disabled\":s?\"true\":\"false\",\"aria-controls\":d,tabIndex:m||(f?\"0\":null)}),a)},e}(s.Component);h.defaultProps={className:\"react-tabs__tab\",disabledClassName:\"react-tabs__tab--disabled\",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:\"react-tabs__tab--selected\"},h.propTypes={},h.tabsRole=\"Tab\"},function(t,e,n){\"use strict\";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,\"a\",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t=this.props,e=t.children,n=t.className,a=r(t,[\"children\",\"className\"]);return l.a.createElement(\"ul\",i({},a,{className:c()(n),role:\"tablist\"}),e)},e}(s.Component);h.defaultProps={className:\"react-tabs__tab-list\"},h.propTypes={},h.tabsRole=\"TabList\"},function(t,e,n){\"use strict\";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,\"a\",function(){return h});var o=n(24),s=(n.n(o),n(2)),l=n.n(s),u=n(13),c=n.n(u),h=function(t){function e(){return t.apply(this,arguments)||this}return a(e,t),e.prototype.render=function(){var t,e=this.props,n=e.children,a=e.className,o=e.forceRender,s=e.id,u=e.selected,h=e.selectedClassName,d=e.tabId,f=r(e,[\"children\",\"className\",\"forceRender\",\"id\",\"selected\",\"selectedClassName\",\"tabId\"]);return l.a.createElement(\"div\",i({},f,{className:c()(a,(t={},t[h]=u,t)),role:\"tabpanel\",id:s,\"aria-labelledby\":d}),o||u?n:null)},e}(s.Component);h.defaultProps={className:\"react-tabs__tab-panel\",forceRender:!1,selectedClassName:\"react-tabs__tab-panel--selected\"},h.propTypes={},h.tabsRole=\"TabPanel\"},function(t,e,n){\"use strict\";function i(t,e){if(null==t)return{};var n,i,r={},a=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,\"a\",function(){return c});var a=n(24),o=(n.n(a),n(2)),s=n.n(o),l=(n(156),n(474)),u=n(155),c=function(t){function e(n){var i;return i=t.call(this,n)||this,i.handleSelected=function(t,n,r){if(\"function\"!=typeof i.props.onSelect||!1!==i.props.onSelect(t,n,r)){var a={focus:\"keydown\"===r.type};e.inUncontrolledMode(i.props)&&(a.selectedIndex=t),i.setState(a)}},i.state=e.copyPropsToState(i.props,{},i.props.defaultFocus),i}r(e,t);var a=e.prototype;return a.componentWillReceiveProps=function(t){this.setState(function(n){return e.copyPropsToState(t,n)})},e.inUncontrolledMode=function(t){return null===t.selectedIndex},e.copyPropsToState=function(t,i,r){void 0===r&&(r=!1);var a={focus:r};if(e.inUncontrolledMode(t)){var o=n.i(u.a)(t.children)-1,s=null;s=null!=i.selectedIndex?Math.min(i.selectedIndex,o):t.defaultIndex||0,a.selectedIndex=s}return a},a.render=function(){var t=this.props,e=t.children,n=(t.defaultIndex,t.defaultFocus,i(t,[\"children\",\"defaultIndex\",\"defaultFocus\"]));return n.focus=this.state.focus,n.onSelect=this.handleSelected,null!=this.state.selectedIndex&&(n.selectedIndex=this.state.selectedIndex),s.a.createElement(l.a,n,e)},e}(o.Component);c.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},c.propTypes={},c.tabsRole=\"Tabs\"},function(t,e,n){\"use strict\";function i(){return i=Object.assign||function(t){for(var e=1;e=0||(r[n]=t[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(t){return\"getAttribute\"in t&&\"tab\"===t.getAttribute(\"role\")}function s(t){return\"true\"===t.getAttribute(\"aria-disabled\")}n.d(e,\"a\",function(){return y});var l,u=n(24),c=(n.n(u),n(2)),h=n.n(c),d=n(13),f=n.n(d),p=n(157),m=(n(156),n(155)),g=n(109),v=n(76);try{l=!(\"undefined\"==typeof window||!window.document||!window.document.activeElement)}catch(t){l=!1}var y=function(t){function e(){for(var e,n,i=arguments.length,r=new Array(i),a=0;a=this.getTabsCount()||this.props.onSelect(t,this.props.selectedIndex,e)},u.getNextTab=function(t){for(var e=this.getTabsCount(),n=t+1;nt;)if(!s(this.getTab(e)))return e;return t},u.getTabsCount=function(){return n.i(m.a)(this.props.children)},u.getPanelsCount=function(){return n.i(m.b)(this.props.children)},u.getTab=function(t){return this.tabNodes[\"tabs-\"+t]},u.getChildren=function(){var t=this,e=0,i=this.props,r=i.children,a=i.disabledTabClassName,o=i.focus,s=i.forceRenderTabPanel,u=i.selectedIndex,d=i.selectedTabClassName,f=i.selectedTabPanelClassName;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var m=this.tabIds.length-this.getTabsCount();m++<0;)this.tabIds.push(n.i(p.b)()),this.panelIds.push(n.i(p.b)());return n.i(g.a)(r,function(i){var r=i;if(n.i(v.a)(i)){var p=0,m=!1;l&&(m=h.a.Children.toArray(i.props.children).filter(v.b).some(function(e,n){return document.activeElement===t.getTab(n)})),r=n.i(c.cloneElement)(i,{children:n.i(g.a)(i.props.children,function(e){var i=\"tabs-\"+p,r=u===p,s={tabRef:function(e){t.tabNodes[i]=e},id:t.tabIds[p],panelId:t.panelIds[p],selected:r,focus:r&&(o||m)};return d&&(s.selectedClassName=d),a&&(s.disabledClassName=a),p++,n.i(c.cloneElement)(e,s)})})}else if(n.i(v.c)(i)){var y={id:t.panelIds[e],tabId:t.tabIds[e],selected:u===e};s&&(y.forceRender=s),f&&(y.selectedClassName=f),e++,r=n.i(c.cloneElement)(i,y)}return r})},u.isTabFromContainer=function(t){if(!o(t))return!1;var e=t.parentElement;do{if(e===this.node)return!0;if(e.getAttribute(\"data-tabs\"))break;e=e.parentElement}while(e);return!1},u.render=function(){var t=this,e=this.props,n=(e.children,e.className),a=(e.disabledTabClassName,e.domRef),o=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,r(e,[\"children\",\"className\",\"disabledTabClassName\",\"domRef\",\"focus\",\"forceRenderTabPanel\",\"onSelect\",\"selectedIndex\",\"selectedTabClassName\",\"selectedTabPanelClassName\"]));return h.a.createElement(\"div\",i({},o,{className:f()(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(e){t.node=e,a&&a(e)},\"data-tabs\":!0}),this.getChildren())},e}(c.Component);y.defaultProps={className:\"react-tabs\",focus:!1},y.propTypes={}},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var i=n(473),r=n(471),a=n(470),o=n(472),s=n(157);n.d(e,\"Tab\",function(){return a.a}),n.d(e,\"TabList\",function(){return r.a}),n.d(e,\"TabPanel\",function(){return o.a}),n.d(e,\"Tabs\",function(){return i.a}),n.d(e,\"resetIdCounter\",function(){return s.a})},function(t,e,n){\"use strict\";function i(t){for(var e=arguments.length-1,n=\"Minified React error #\"+t+\"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=\"+t,i=0;iD.length&&D.push(t)}function f(t,e,n,r){var a=typeof t;\"undefined\"!==a&&\"boolean\"!==a||(t=null);var o=!1;if(null===t)o=!0;else switch(a){case\"string\":case\"number\":o=!0;break;case\"object\":switch(t.$$typeof){case w:case M:case S:case E:o=!0}}if(o)return n(r,t,\"\"===e?\".\"+p(t,0):e),1;if(o=0,e=\"\"===e?\".\":e+\":\",Array.isArray(t))for(var s=0;s0;)e[i]=arguments[i+1];return e.reduce(function(e,i){return e+n(t[\"border-\"+i+\"-width\"])},0)}function r(t){for(var e=[\"top\",\"right\",\"bottom\",\"left\"],i={},r=0,a=e;r0},b.prototype.connect_=function(){d&&!this.connected_&&(document.addEventListener(\"transitionend\",this.onTransitionEnd_),window.addEventListener(\"resize\",this.refresh),y?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},b.prototype.disconnect_=function(){d&&this.connected_&&(document.removeEventListener(\"transitionend\",this.onTransitionEnd_),window.removeEventListener(\"resize\",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(\"DOMSubtreeModified\",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},b.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=\"\"),v.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},b.getInstance=function(){return this.instance_||(this.instance_=new b),this.instance_},b.instance_=null;var x=function(t,e){for(var n=0,i=Object.keys(e);n0};var T=\"undefined\"!=typeof WeakMap?new WeakMap:new h,C=function(t){if(!(this instanceof C))throw new TypeError(\"Cannot call a class as a function.\");if(!arguments.length)throw new TypeError(\"1 argument required, but only 0 present.\");var e=b.getInstance(),n=new k(t,e,this);T.set(this,n)};[\"observe\",\"unobserve\",\"disconnect\"].forEach(function(t){C.prototype[t]=function(){return(e=T.get(this))[t].apply(e,arguments);var e}});var P=function(){return void 0!==f.ResizeObserver?f.ResizeObserver:C}();e.default=P}.call(e,n(111))},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){var t=function(){function e(t){return r.appendChild(t.dom),t}function n(t){for(var e=0;eo+1e3&&(l.update(1e3*s/(t-o),100),o=t,s=0,c)){var e=performance.memory;c.update(e.usedJSHeapSize/1048576,e.jsHeapSizeLimit/1048576)}return t},update:function(){a=this.end()},domElement:r,setMode:n}};return t.Panel=function(t,e,n){var i=1/0,r=0,a=Math.round,o=a(window.devicePixelRatio||1),s=80*o,l=48*o,u=3*o,c=2*o,h=3*o,d=15*o,f=74*o,p=30*o,m=document.createElement(\"canvas\");m.width=s,m.height=l,m.style.cssText=\"width:80px;height:48px\";var g=m.getContext(\"2d\");return g.font=\"bold \"+9*o+\"px Helvetica,Arial,sans-serif\",g.textBaseline=\"top\",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=e,g.fillText(t,u,c),g.fillRect(h,d,f,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h,d,f,p),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,d),g.fillStyle=e,g.fillText(a(l)+\" \"+t+\" (\"+a(i)+\"-\"+a(r)+\")\",u,c),g.drawImage(m,h+o,d,f-o,p,h,d,f-o,p),g.fillRect(h+f-o,d,o,p),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h+f-o,d,o,a((1-l/v)*p))}}},t})},function(t,e){t.exports=function(t){var e=\"undefined\"!=typeof window&&window.location;if(!e)throw new Error(\"fixUrls requires window.location\");if(!t||\"string\"!=typeof t)return t;var n=e.protocol+\"//\"+e.host,i=n+e.pathname.replace(/\\/[^\\/]*$/,\"/\");return t.replace(/url\\s*\\(((?:[^)(]|\\((?:[^)(]+|\\([^)(]*\\))*\\))*)\\)/gi,function(t,e){var r=e.trim().replace(/^\"(.*)\"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\\/\\/|https:\\/\\/|file:\\/\\/\\/)/i.test(r))return t;var a;return a=0===r.indexOf(\"//\")?r:0===r.indexOf(\"/\")?n+r:i+r.replace(/^\\.\\//,\"\"),\"url(\"+JSON.stringify(a)+\")\"})}},function(t,e,n){var i=n(372),r=n(403);t.exports=function(t){function e(n,i){if(!(this instanceof e))return new e(n,i);t.BufferGeometry.call(this),Array.isArray(n)?i=i||{}:\"object\"==typeof n&&(i=n,n=[]),i=i||{},this.addAttribute(\"position\",new t.BufferAttribute(void 0,3)),this.addAttribute(\"lineNormal\",new t.BufferAttribute(void 0,2)),this.addAttribute(\"lineMiter\",new t.BufferAttribute(void 0,1)),i.distances&&this.addAttribute(\"lineDistance\",new t.BufferAttribute(void 0,1)),\"function\"==typeof this.setIndex?this.setIndex(new t.BufferAttribute(void 0,1)):this.addAttribute(\"index\",new t.BufferAttribute(void 0,1)),this.update(n,i.closed)}return i(e,t.BufferGeometry),e.prototype.update=function(t,e){t=t||[];var n=r(t,e);e&&(t=t.slice(),t.push(t[0]),n.push(n[0]));var i=this.getAttribute(\"position\"),a=this.getAttribute(\"lineNormal\"),o=this.getAttribute(\"lineMiter\"),s=this.getAttribute(\"lineDistance\"),l=\"function\"==typeof this.getIndex?this.getIndex():this.getAttribute(\"index\"),u=Math.max(0,6*(t.length-1));if(!i.array||t.length!==i.array.length/3/2){var c=2*t.length;i.array=new Float32Array(3*c),a.array=new Float32Array(2*c),o.array=new Float32Array(c),l.array=new Uint16Array(u),s&&(s.array=new Float32Array(c))}void 0!==i.count&&(i.count=c),i.needsUpdate=!0,void 0!==a.count&&(a.count=c),a.needsUpdate=!0,void 0!==o.count&&(o.count=c),o.needsUpdate=!0,void 0!==l.count&&(l.count=u),l.needsUpdate=!0,s&&(void 0!==s.count&&(s.count=c),s.needsUpdate=!0);var h=0,d=0,f=0,p=l.array;t.forEach(function(t,e,n){var r=h;if(p[d++]=r+0,p[d++]=r+1,p[d++]=r+2,p[d++]=r+2,p[d++]=r+1,p[d++]=r+3,i.setXYZ(h++,t[0],t[1],0),i.setXYZ(h++,t[0],t[1],0),s){var a=e/(n.length-1);s.setX(f++,a),s.setX(f++,a)}});var m=0,g=0;n.forEach(function(t){var e=t[0],n=t[1];a.setXY(m++,e[0],e[1]),a.setXY(m++,e[0],e[1]),o.setX(g++,-n),o.setX(g++,n)})},e}},function(t,e,n){var i=n(101);t.exports=function(t){return function(e){e=e||{};var n=\"number\"==typeof e.thickness?e.thickness:.1,r=\"number\"==typeof e.opacity?e.opacity:1,a=null!==e.diffuse?e.diffuse:16777215;delete e.thickness,delete e.opacity,delete e.diffuse,delete e.precision;var o=i({uniforms:{thickness:{type:\"f\",value:n},opacity:{type:\"f\",value:r},diffuse:{type:\"c\",value:new t.Color(a)}},vertexShader:[\"uniform float thickness;\",\"attribute float lineMiter;\",\"attribute vec2 lineNormal;\",\"void main() {\",\"vec3 pointPos = position.xyz + vec3(lineNormal * thickness / 2.0 * lineMiter, 0.0);\",\"gl_Position = projectionMatrix * modelViewMatrix * vec4(pointPos, 1.0);\",\"}\"].join(\"\\n\"),fragmentShader:[\"uniform vec3 diffuse;\",\"uniform float opacity;\",\"void main() {\",\"gl_FragColor = vec4(diffuse, opacity);\",\"}\"].join(\"\\n\")},e);return(0|(parseInt(t.REVISION,10)||0))<72&&(o.attributes={lineMiter:{type:\"f\",value:0},lineNormal:{type:\"v2\",value:new t.Vector2}}),o}}},function(t,e,n){\"use strict\";function i(t){return!0===t||!1===t}t.exports=i},function(t,e,n){\"use strict\";function i(t){return\"function\"==typeof t}t.exports=i},function(t,e,n){\"use strict\";function i(t){var e,n;if(!r(t))return!1;if(!(e=t.length))return!1;for(var i=0;i=this.text.length)return;t=this.text[this.place++]}switch(this.state){case a:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},i.prototype.afterquote=function(t){if('\"'===t)return this.word+='\"',void(this.state=4);if(u.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in afterquote yet, index '+this.place)},i.prototype.afterItem=function(t){return\",\"===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=a)):\"]\"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=a,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},i.prototype.number=function(t){if(c.test(t))return void(this.word+=t);if(u.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in number yet, index '+this.place)},i.prototype.quoted=function(t){if('\"'===t)return void(this.state=5);this.word+=t},i.prototype.keyword=function(t){if(l.test(t))return void(this.word+=t);if(\"[\"===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=a)}if(u.test(t))return void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in keyword yet, index '+this.place)},i.prototype.neutral=function(t){if(s.test(t))return this.word=t,void(this.state=2);if('\"'===t)return this.word=\"\",void(this.state=4);if(c.test(t))return this.word=t,void(this.state=3);if(u.test(t))return void this.afterItem(t);throw new Error(\"havn't handled \\\"\"+t+'\" in neutral yet, index '+this.place)},i.prototype.output=function(){for(;this.place0?s(r()):tt.y<0&&l(r()),J.copy($),I.update()}function p(t){K.set(t.clientX,t.clientY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function m(t){}function g(t){t.deltaY<0?l(r()):t.deltaY>0&&s(r()),I.update()}function v(t){switch(t.keyCode){case I.keys.UP:it(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:it(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:it(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:it(-I.keyPanSpeed,0),I.update()}}function y(t){q.set(t.touches[0].pageX,t.touches[0].pageY)}function b(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);J.set(0,i)}function x(t){Z.set(t.touches[0].pageX,t.touches[0].pageY)}function _(t){Y.set(t.touches[0].pageX,t.touches[0].pageY),X.subVectors(Y,q);var e=I.domElement===document?I.domElement.body:I.domElement;a(2*Math.PI*X.x/e.clientWidth*I.rotateSpeed),o(2*Math.PI*X.y/e.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);$.set(0,i),tt.subVectors($,J),tt.y>0?l(r()):tt.y<0&&s(r()),J.copy($),I.update()}function M(t){K.set(t.touches[0].pageX,t.touches[0].pageY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function S(t){}function E(t){if(!1!==I.enabled){if(t.preventDefault(),t.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(t),F=B.ROTATE}else if(t.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(t),F=B.DOLLY}else if(t.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;h(t),F=B.PAN}F!==B.NONE&&(document.addEventListener(\"mousemove\",k,!1),document.addEventListener(\"mouseup\",T,!1),I.dispatchEvent(N))}}function k(t){if(!1!==I.enabled)if(t.preventDefault(),F===B.ROTATE){if(!1===I.enableRotate)return;d(t)}else if(F===B.DOLLY){if(!1===I.enableZoom)return;f(t)}else if(F===B.PAN){if(!1===I.enablePan)return;p(t)}}function T(t){!1!==I.enabled&&(m(t),document.removeEventListener(\"mousemove\",k,!1),document.removeEventListener(\"mouseup\",T,!1),I.dispatchEvent(z),F=B.NONE)}function C(t){!1===I.enabled||!1===I.enableZoom||F!==B.NONE&&F!==B.ROTATE||(t.preventDefault(),t.stopPropagation(),g(t),I.dispatchEvent(N),I.dispatchEvent(z))}function P(t){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(t)}function O(t){if(!1!==I.enabled){switch(t.touches.length){case 1:if(!1===I.enableRotate)return;y(t),F=B.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(t),F=B.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;x(t),F=B.TOUCH_PAN;break;default:F=B.NONE}F!==B.NONE&&I.dispatchEvent(N)}}function A(t){if(!1!==I.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==B.TOUCH_ROTATE)return;_(t);break;case 2:if(!1===I.enableZoom)return;if(F!==B.TOUCH_DOLLY)return;w(t);break;case 3:if(!1===I.enablePan)return;if(F!==B.TOUCH_PAN)return;M(t);break;default:F=B.NONE}}function R(t){!1!==I.enabled&&(S(t),I.dispatchEvent(z),F=B.NONE)}function L(t){t.preventDefault()}this.object=t,this.domElement=void 0!==e?e:document,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=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return j.phi},this.getAzimuthalAngle=function(){return j.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=B.NONE},this.update=function(){var e=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),o=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var t=I.object.position;return e.copy(t).sub(I.target),e.applyQuaternion(r),j.setFromVector3(e),I.autoRotate&&F===B.NONE&&a(n()),j.theta+=W.theta,j.phi+=W.phi,j.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,j.theta)),j.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,j.phi)),j.makeSafe(),j.radius*=G,j.radius=Math.max(I.minDistance,Math.min(I.maxDistance,j.radius)),I.target.add(V),e.setFromSpherical(j),e.applyQuaternion(o),t.copy(I.target).add(e),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>U||8*(1-l.dot(I.object.quaternion))>U)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener(\"contextmenu\",L,!1),I.domElement.removeEventListener(\"mousedown\",E,!1),I.domElement.removeEventListener(\"wheel\",C,!1),I.domElement.removeEventListener(\"touchstart\",O,!1),I.domElement.removeEventListener(\"touchend\",R,!1),I.domElement.removeEventListener(\"touchmove\",A,!1),document.removeEventListener(\"mousemove\",k,!1),document.removeEventListener(\"mouseup\",T,!1),window.removeEventListener(\"keydown\",P,!1)};var I=this,D={type:\"change\"},N={type:\"start\"},z={type:\"end\"},B={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=B.NONE,U=1e-6,j=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,Z=new i.Vector2,K=new i.Vector2,Q=new i.Vector2,J=new i.Vector2,$=new i.Vector2,tt=new i.Vector2,et=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),V.add(t)}}(),nt=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),V.add(t)}}(),it=function(){var t=new i.Vector3;return function(e,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var a=I.object.position;t.copy(a).sub(I.target);var o=t.length();o*=Math.tan(I.object.fov/2*Math.PI/180),et(2*e*o/r.clientHeight,I.object.matrix),nt(2*n*o/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(et(e*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),nt(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn(\"WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.\"),I.enablePan=!1)}}();I.domElement.addEventListener(\"contextmenu\",L,!1),I.domElement.addEventListener(\"mousedown\",E,!1),I.domElement.addEventListener(\"wheel\",C,!1),I.domElement.addEventListener(\"touchstart\",O,!1),I.domElement.addEventListener(\"touchend\",R,!1),I.domElement.addEventListener(\"touchmove\",A,!1),window.addEventListener(\"keydown\",P,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn(\"THREE.OrbitControls: .center has been renamed to .target\"),this.target}},noZoom:{get:function(){return console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),!this.enableZoom},set:function(t){console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),this.enableZoom=!t}},noRotate:{get:function(){return console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),!this.enableRotate},set:function(t){console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),this.enableRotate=!t}},noPan:{get:function(){return console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),!this.enablePan},set:function(t){console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),this.enablePan=!t}},noKeys:{get:function(){return console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),!this.enableKeys},set:function(t){console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),this.enableKeys=!t}},staticMoving:{get:function(){return console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),!this.enableDamping},set:function(t){console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),this.enableDamping=!t}},dynamicDampingFactor:{get:function(){return console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor},set:function(t){console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor=t}}})},function(t,e,n){var i=n(12);i.MTLLoader=function(t){this.manager=void 0!==t?t:i.DefaultLoadingManager},i.MTLLoader.prototype={constructor:i.MTLLoader,load:function(t,e,n,r){var a=this,o=new i.FileLoader(this.manager);o.setPath(this.path),o.load(t,function(t){e(a.parse(t))},n,r)},setPath:function(t){this.path=t},setTexturePath:function(t){this.texturePath=t},setBaseUrl:function(t){console.warn(\"THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead.\"),this.setTexturePath(t)},setCrossOrigin:function(t){this.crossOrigin=t},setMaterialOptions:function(t){this.materialOptions=t},parse:function(t){for(var e=t.split(\"\\n\"),n={},r=/\\s+/,a={},o=0;o=0?s.substring(0,l):s;u=u.toLowerCase();var c=l>=0?s.substring(l+1):\"\";if(c=c.trim(),\"newmtl\"===u)n={name:c},a[c]=n;else if(n)if(\"ka\"===u||\"kd\"===u||\"ks\"===u){var h=c.split(r,3);n[u]=[parseFloat(h[0]),parseFloat(h[1]),parseFloat(h[2])]}else n[u]=c}}var d=new i.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return d.setCrossOrigin(this.crossOrigin),d.setManager(this.manager),d.setMaterials(a),d}},i.MTLLoader.MaterialCreator=function(t,e){this.baseUrl=t||\"\",this.options=e,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:i.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:i.RepeatWrapping},i.MTLLoader.MaterialCreator.prototype={constructor:i.MTLLoader.MaterialCreator,setCrossOrigin:function(t){this.crossOrigin=t},setManager:function(t){this.manager=t},setMaterials:function(t){this.materialsInfo=this.convert(t),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(t){if(!this.options)return t;var e={};for(var n in t){var i=t[n],r={};e[n]=r;for(var a in i){var o=!0,s=i[a],l=a.toLowerCase();switch(l){case\"kd\":case\"ka\":case\"ks\":this.options&&this.options.normalizeRGB&&(s=[s[0]/255,s[1]/255,s[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===s[0]&&0===s[1]&&0===s[2]&&(o=!1)}o&&(r[l]=s)}}return e},preload:function(){for(var t in this.materialsInfo)this.create(t)},getIndex:function(t){return this.nameLookup[t]},getAsArray:function(){var t=0;for(var e in this.materialsInfo)this.materialsArray[t]=this.create(e),this.nameLookup[e]=t,t++;return this.materialsArray},create:function(t){return void 0===this.materials[t]&&this.createMaterial_(t),this.materials[t]},createMaterial_:function(t){function e(t,e){return\"string\"!=typeof e||\"\"===e?\"\":/^https?:\\/\\//i.test(e)?e:t+e}function n(t,n){if(!o[t]){var i=r.getTextureParams(n,o),a=r.loadTexture(e(r.baseUrl,i.url));a.repeat.copy(i.scale),a.offset.copy(i.offset),a.wrapS=r.wrap,a.wrapT=r.wrap,o[t]=a}}var r=this,a=this.materialsInfo[t],o={name:t,side:this.side};for(var s in a){var l=a[s];if(\"\"!==l)switch(s.toLowerCase()){case\"kd\":o.color=(new i.Color).fromArray(l);break;case\"ks\":o.specular=(new i.Color).fromArray(l);break;case\"map_kd\":n(\"map\",l);break;case\"map_ks\":n(\"specularMap\",l);break;case\"map_bump\":case\"bump\":n(\"bumpMap\",l);break;case\"ns\":o.shininess=parseFloat(l);break;case\"d\":l<1&&(o.opacity=l,o.transparent=!0);break;case\"Tr\":l>0&&(o.opacity=1-l,o.transparent=!0)}}return this.materials[t]=new i.MeshPhongMaterial(o),this.materials[t]},getTextureParams:function(t,e){var n,r={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},a=t.split(/\\s+/);return n=a.indexOf(\"-bm\"),n>=0&&(e.bumpScale=parseFloat(a[n+1]),a.splice(n,2)),n=a.indexOf(\"-s\"),n>=0&&(r.scale.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),n=a.indexOf(\"-o\"),n>=0&&(r.offset.set(parseFloat(a[n+1]),parseFloat(a[n+2])),a.splice(n,4)),r.url=a.join(\" \").trim(),r},loadTexture:function(t,e,n,r,a){var o,s=i.Loader.Handlers.get(t),l=void 0!==this.manager?this.manager:i.DefaultLoadingManager;return null===s&&(s=new i.TextureLoader(l)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin),o=s.load(t,n,r,a),void 0!==e&&(o.mapping=e),o}}},function(t,e,n){var i=n(12);i.OBJLoader=function(t){this.manager=void 0!==t?t:i.DefaultLoadingManager,this.materials=null,this.regexp={vertex_pattern:/^v\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,normal_pattern:/^vn\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,uv_pattern:/^vt\\s+([\\d|\\.|\\+|\\-|e|E]+)\\s+([\\d|\\.|\\+|\\-|e|E]+)/,face_vertex:/^f\\s+(-?\\d+)\\s+(-?\\d+)\\s+(-?\\d+)(?:\\s+(-?\\d+))?/,face_vertex_uv:/^f\\s+(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)(?:\\s+(-?\\d+)\\/(-?\\d+))?/,face_vertex_uv_normal:/^f\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+)(?:\\s+(-?\\d+)\\/(-?\\d+)\\/(-?\\d+))?/,face_vertex_normal:/^f\\s+(-?\\d+)\\/\\/(-?\\d+)\\s+(-?\\d+)\\/\\/(-?\\d+)\\s+(-?\\d+)\\/\\/(-?\\d+)(?:\\s+(-?\\d+)\\/\\/(-?\\d+))?/,object_pattern:/^[og]\\s*(.+)?/,smoothing_pattern:/^s\\s+(\\d+|on|off)/,material_library_pattern:/^mtllib /,material_use_pattern:/^usemtl /}},i.OBJLoader.prototype={constructor:i.OBJLoader,load:function(t,e,n,r){var a=this,o=new i.FileLoader(a.manager);o.setPath(this.path),o.load(t,function(t){e(a.parse(t))},n,r)},setPath:function(t){this.path=t},setMaterials:function(t){this.materials=t},_createParserState:function(){var t={objects:[],object:{},vertices:[],normals:[],uvs:[],materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);var n=this.object&&\"function\"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&\"function\"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||\"\",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(t,e){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var i={index:this.materials.length,name:t||\"\",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:\"\",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){var e={index:\"number\"==typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){var e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return t&&0===this.materials.length&&this.materials.push({name:\"\",smooth:this.smooth}),e}},n&&n.name&&\"function\"==typeof n.clone){var i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&\"function\"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseNormalIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseUVIndex:function(t,e){var n=parseInt(t,10);return 2*(n>=0?n-1:n+e/2)},addVertex:function(t,e,n){var i=this.vertices,r=this.object.geometry.vertices;r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addVertexLine:function(t){var e=this.vertices,n=this.object.geometry.vertices;n.push(e[t+0]),n.push(e[t+1]),n.push(e[t+2])},addNormal:function(t,e,n){var i=this.normals,r=this.object.geometry.normals;r.push(i[t+0]),r.push(i[t+1]),r.push(i[t+2]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[e+2]),r.push(i[n+0]),r.push(i[n+1]),r.push(i[n+2])},addUV:function(t,e,n){var i=this.uvs,r=this.object.geometry.uvs;r.push(i[t+0]),r.push(i[t+1]),r.push(i[e+0]),r.push(i[e+1]),r.push(i[n+0]),r.push(i[n+1])},addUVLine:function(t){var e=this.uvs,n=this.object.geometry.uvs;n.push(e[t+0]),n.push(e[t+1])},addFace:function(t,e,n,i,r,a,o,s,l,u,c,h){var d,f=this.vertices.length,p=this.parseVertexIndex(t,f),m=this.parseVertexIndex(e,f),g=this.parseVertexIndex(n,f);if(void 0===i?this.addVertex(p,m,g):(d=this.parseVertexIndex(i,f),this.addVertex(p,m,d),this.addVertex(m,g,d)),void 0!==r){var v=this.uvs.length;p=this.parseUVIndex(r,v),m=this.parseUVIndex(a,v),g=this.parseUVIndex(o,v),void 0===i?this.addUV(p,m,g):(d=this.parseUVIndex(s,v),this.addUV(p,m,d),this.addUV(m,g,d))}if(void 0!==l){var y=this.normals.length;p=this.parseNormalIndex(l,y),m=l===u?p:this.parseNormalIndex(u,y),g=l===c?p:this.parseNormalIndex(c,y),void 0===i?this.addNormal(p,m,g):(d=this.parseNormalIndex(h,y),this.addNormal(p,m,d),this.addNormal(m,g,d))}},addLineGeometry:function(t,e){this.object.geometry.type=\"Line\";for(var n=this.vertices.length,i=this.uvs.length,r=0,a=t.length;r0?E.addAttribute(\"normal\",new i.BufferAttribute(new Float32Array(w.normals),3)):E.computeVertexNormals(),w.uvs.length>0&&E.addAttribute(\"uv\",new i.BufferAttribute(new Float32Array(w.uvs),2));for(var k=[],T=0,C=M.length;T1){for(var T=0,C=M.length;T0?s(r()):tt.y<0&&l(r()),J.copy($),I.update()}function p(t){K.set(t.clientX,t.clientY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function m(t){}function g(t){t.deltaY<0?l(r()):t.deltaY>0&&s(r()),I.update()}function v(t){switch(t.keyCode){case I.keys.UP:it(0,I.keyPanSpeed),I.update();break;case I.keys.BOTTOM:it(0,-I.keyPanSpeed),I.update();break;case I.keys.LEFT:it(I.keyPanSpeed,0),I.update();break;case I.keys.RIGHT:it(-I.keyPanSpeed,0),I.update()}}function y(t){q.set(t.touches[0].pageX,t.touches[0].pageY)}function b(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);J.set(0,i)}function x(t){Z.set(t.touches[0].pageX,t.touches[0].pageY)}function _(t){Y.set(t.touches[0].pageX,t.touches[0].pageY),X.subVectors(Y,q);var e=I.domElement===document?I.domElement.body:I.domElement;a(2*Math.PI*X.x/e.clientWidth*I.rotateSpeed),o(2*Math.PI*X.y/e.clientHeight*I.rotateSpeed),q.copy(Y),I.update()}function w(t){var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,i=Math.sqrt(e*e+n*n);$.set(0,i),tt.subVectors($,J),tt.y>0?l(r()):tt.y<0&&s(r()),J.copy($),I.update()}function M(t){K.set(t.touches[0].pageX,t.touches[0].pageY),Q.subVectors(K,Z),it(Q.x,Q.y),Z.copy(K),I.update()}function S(t){}function E(t){if(!1!==I.enabled){if(t.preventDefault(),t.button===I.mouseButtons.ORBIT){if(!1===I.enableRotate)return;u(t),F=B.ROTATE}else if(t.button===I.mouseButtons.ZOOM){if(!1===I.enableZoom)return;c(t),F=B.DOLLY}else if(t.button===I.mouseButtons.PAN){if(!1===I.enablePan)return;h(t),F=B.PAN}F!==B.NONE&&(document.addEventListener(\"mousemove\",k,!1),document.addEventListener(\"mouseup\",T,!1),I.dispatchEvent(N))}}function k(t){if(!1!==I.enabled)if(t.preventDefault(),F===B.ROTATE){if(!1===I.enableRotate)return;d(t)}else if(F===B.DOLLY){if(!1===I.enableZoom)return;f(t)}else if(F===B.PAN){if(!1===I.enablePan)return;p(t)}}function T(t){!1!==I.enabled&&(m(t),document.removeEventListener(\"mousemove\",k,!1),document.removeEventListener(\"mouseup\",T,!1),I.dispatchEvent(z),F=B.NONE)}function C(t){!1===I.enabled||!1===I.enableZoom||F!==B.NONE&&F!==B.ROTATE||(t.preventDefault(),t.stopPropagation(),g(t),I.dispatchEvent(N),I.dispatchEvent(z))}function P(t){!1!==I.enabled&&!1!==I.enableKeys&&!1!==I.enablePan&&v(t)}function O(t){if(!1!==I.enabled){switch(t.touches.length){case 1:if(!1===I.enableRotate)return;y(t),F=B.TOUCH_ROTATE;break;case 2:if(!1===I.enableZoom)return;b(t),F=B.TOUCH_DOLLY;break;case 3:if(!1===I.enablePan)return;x(t),F=B.TOUCH_PAN;break;default:F=B.NONE}F!==B.NONE&&I.dispatchEvent(N)}}function A(t){if(!1!==I.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===I.enableRotate)return;if(F!==B.TOUCH_ROTATE)return;_(t);break;case 2:if(!1===I.enableZoom)return;if(F!==B.TOUCH_DOLLY)return;w(t);break;case 3:if(!1===I.enablePan)return;if(F!==B.TOUCH_PAN)return;M(t);break;default:F=B.NONE}}function R(t){!1!==I.enabled&&(S(t),I.dispatchEvent(z),F=B.NONE)}function L(t){t.preventDefault()}this.object=t,this.domElement=void 0!==e?e:document,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=.25,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.enableKeys=!0,this.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},this.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=function(){return j.phi},this.getAzimuthalAngle=function(){return j.theta},this.reset=function(){I.target.copy(I.target0),I.object.position.copy(I.position0),I.object.zoom=I.zoom0,I.object.updateProjectionMatrix(),I.dispatchEvent(D),I.update(),F=B.NONE},this.update=function(){var e=new i.Vector3,r=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),o=r.clone().inverse(),s=new i.Vector3,l=new i.Quaternion;return function(){var t=I.object.position;return e.copy(t).sub(I.target),e.applyQuaternion(r),j.setFromVector3(e),I.autoRotate&&F===B.NONE&&a(n()),j.theta+=W.theta,j.phi+=W.phi,j.theta=Math.max(I.minAzimuthAngle,Math.min(I.maxAzimuthAngle,j.theta)),j.phi=Math.max(I.minPolarAngle,Math.min(I.maxPolarAngle,j.phi)),j.makeSafe(),j.radius*=G,j.radius=Math.max(I.minDistance,Math.min(I.maxDistance,j.radius)),I.target.add(V),e.setFromSpherical(j),e.applyQuaternion(o),t.copy(I.target).add(e),I.object.lookAt(I.target),!0===I.enableDamping?(W.theta*=1-I.dampingFactor,W.phi*=1-I.dampingFactor):W.set(0,0,0),G=1,V.set(0,0,0),!!(H||s.distanceToSquared(I.object.position)>U||8*(1-l.dot(I.object.quaternion))>U)&&(I.dispatchEvent(D),s.copy(I.object.position),l.copy(I.object.quaternion),H=!1,!0)}}(),this.dispose=function(){I.domElement.removeEventListener(\"contextmenu\",L,!1),I.domElement.removeEventListener(\"mousedown\",E,!1),I.domElement.removeEventListener(\"wheel\",C,!1),I.domElement.removeEventListener(\"touchstart\",O,!1),I.domElement.removeEventListener(\"touchend\",R,!1),I.domElement.removeEventListener(\"touchmove\",A,!1),document.removeEventListener(\"mousemove\",k,!1),document.removeEventListener(\"mouseup\",T,!1),window.removeEventListener(\"keydown\",P,!1)};var I=this,D={type:\"change\"},N={type:\"start\"},z={type:\"end\"},B={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},F=B.NONE,U=1e-6,j=new i.Spherical,W=new i.Spherical,G=1,V=new i.Vector3,H=!1,q=new i.Vector2,Y=new i.Vector2,X=new i.Vector2,Z=new i.Vector2,K=new i.Vector2,Q=new i.Vector2,J=new i.Vector2,$=new i.Vector2,tt=new i.Vector2,et=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),V.add(t)}}(),nt=function(){var t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,1),t.multiplyScalar(e),V.add(t)}}(),it=function(){var t=new i.Vector3;return function(e,n){var r=I.domElement===document?I.domElement.body:I.domElement;if(I.object instanceof i.PerspectiveCamera){var a=I.object.position;t.copy(a).sub(I.target);var o=t.length();o*=Math.tan(I.object.fov/2*Math.PI/180),et(2*e*o/r.clientHeight,I.object.matrix),nt(2*n*o/r.clientHeight,I.object.matrix)}else I.object instanceof i.OrthographicCamera?(et(e*(I.object.right-I.object.left)/I.object.zoom/r.clientWidth,I.object.matrix),nt(n*(I.object.top-I.object.bottom)/I.object.zoom/r.clientHeight,I.object.matrix)):(console.warn(\"WARNING: OrbitControls.js encountered an unknown camera type - pan disabled.\"),I.enablePan=!1)}}();I.domElement.addEventListener(\"contextmenu\",L,!1),I.domElement.addEventListener(\"mousedown\",E,!1),I.domElement.addEventListener(\"wheel\",C,!1),I.domElement.addEventListener(\"touchstart\",O,!1),I.domElement.addEventListener(\"touchend\",R,!1),I.domElement.addEventListener(\"touchmove\",A,!1),window.addEventListener(\"keydown\",P,!1),this.update()},i.OrbitControls.prototype=Object.create(i.EventDispatcher.prototype),i.OrbitControls.prototype.constructor=i.OrbitControls,Object.defineProperties(i.OrbitControls.prototype,{center:{get:function(){return console.warn(\"THREE.OrbitControls: .center has been renamed to .target\"),this.target}},noZoom:{get:function(){return console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),!this.enableZoom},set:function(t){console.warn(\"THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.\"),this.enableZoom=!t}},noRotate:{get:function(){return console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),!this.enableRotate},set:function(t){console.warn(\"THREE.OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.\"),this.enableRotate=!t}},noPan:{get:function(){return console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),!this.enablePan},set:function(t){console.warn(\"THREE.OrbitControls: .noPan has been deprecated. Use .enablePan instead.\"),this.enablePan=!t}},noKeys:{get:function(){return console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),!this.enableKeys},set:function(t){console.warn(\"THREE.OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.\"),this.enableKeys=!t}},staticMoving:{get:function(){return console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),!this.enableDamping},set:function(t){console.warn(\"THREE.OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.\"),this.enableDamping=!t}},dynamicDampingFactor:{get:function(){return console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor},set:function(t){console.warn(\"THREE.OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.\"),this.dampingFactor=t}}})},function(t,e){t.exports={trajectoryGraph:{title:\"Trajectory\",options:{legend:{display:!0},axes:{x:{labelString:\"x (m)\"},y:{labelString:\"y (m)\"}}},properties:{lines:{pose:{color:\"rgba(0, 255, 0, 1)\",borderWidth:0,pointRadius:0,specialMarker:\"car\"},real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},steerCurve:{color:\"rgba(255, 206, 86, 1)\",borderWidth:1,pointRadius:0,fill:!1,showLine:!0},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},speedGraph:{title:\"Speed\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"speed (m/s)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},curvatureGraph:{title:\"Curvature\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"Curvature (m-1)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},accelerationGraph:{title:\"Acceleration\",options:{legend:{display:!0},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"acceleration (m/s^2)\"}}},properties:{lines:{real:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"},plan:{color:\"rgba(1, 209, 193, 0.65)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},target:{color:\"rgba(180, 255, 180, 0.7)\",borderWidth:3,pointRadius:0,fill:!1,showLine:!0},autoModeZone:{color:\"rgba(224, 224, 224, 0.15)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!0}}}},stationErrorGraph:{title:\"Station Error\",options:{legend:{display:!1},axes:{x:{labelString:\"t (second)\"},y:{labelString:\"error (m)\"}}},properties:{lines:{error:{color:\"rgba(0, 106, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}}}},function(t,e){t.exports={slGraph:{title:\"QP Path - sl graph\",options:{legend:{display:!1},axes:{x:{min:0,max:200,labelString:\"s - ref_line (m)\"},y:{min:-5,max:5,labelString:\"l (m)\"}}},properties:{lines:{aggregatedBoundaryLow:{color:\"rgba(48, 165, 255, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},aggregatedBoundaryHigh:{color:\"rgba(48, 165, 255, 1)\",borderWidth:2,pointRadius:0,lineTension:0,fill:!1,showLine:!0},pathLine:{color:\"rgba(225, 225, 225, 0.7)\",borderWidth:2,pointRadius:.5,fill:!1,showLine:!1},mapLowerBound:{color:\"rgba(54, 162, 235, 0.4)\",borderWidth:2,pointRadius:0,fill:\"start\",showLine:!0},mapUpperBound:{color:\"rgba(54, 162, 235, 0.4)\",borderWidth:2,pointRadius:0,fill:\"end\",showLine:!0},staticObstacleLowerBound:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:\"start\",showLine:!0},staticObstacleUpperBound:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:\"end\",showLine:!0},dynamicObstacleLowerBound:{color:\"rgba(255, 206, 86, 0.2)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},dynamicObstacleUpperBound:{color:\"rgba(255, 206, 86, 0.2)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},stGraph:{options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-10,max:220,labelString:\"s (m)\"}}},properties:{box:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0,showText:!0,cubicInterpolationMode:\"monotone\",lineTension:0},lines:{curveLine:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelCruise:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1},kernelFollow:{color:\"rgba(255, 206, 86, 0.5)\",borderWidth:2,pointRadius:1,fill:!1,showLine:!1}}}},stSpeedGraph:{title:\"QP Speed - sv graph\",options:{legend:{display:!0},axes:{x:{min:-10,max:220,labelString:\"s - qp_path(m)\"},y:{min:-1,max:40,labelString:\"v (m/s)\"}}},properties:{lines:{upperConstraint:{color:\"rgba(54, 162, 235, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},lowerConstraint:{color:\"rgba(54, 162, 235, 1)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},planned:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0},limit:{color:\"rgba(255, 0, 0, 0.5)\",borderWidth:4,pointRadius:0,fill:!1,showLine:!0}}}},speedGraph:{title:\"Planning Speed\",options:{legend:{display:!0},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-1,max:40,labelString:\"speed (m/s)\"}}},properties:{lines:{finalSpeed:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:1,pointRadius:1,fill:!1,showLine:!1},DpStSpeedOptimizer:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplineStSpeedOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},accelerationGraph:{title:\"Planning Acceleration\",options:{legend:{display:!1},axes:{x:{min:-2,max:10,labelString:\"t (second)\"},y:{min:-4,max:3.5,labelString:\"acceleration (m/s^2)\"}}},properties:{lines:{acceleration:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:\"ture\"}}}},kappaGraph:{title:\"Planning Kappa\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{min:-.2,max:.2,labelString:\"kappa\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},DpPolyPathOptimizer:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},dkappaGraph:{title:\"Planning Dkappa\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{min:-.02,max:.02,labelString:\"dkappa\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0},QpSplinePathOptimizer:{color:\"rgba(54, 162, 235, 1)\",borderWidth:5,pointRadius:0,fill:!1,showLine:!0}}}},thetaGraph:{title:\"Planning theta\",options:{legend:{display:!0},axes:{x:{labelString:\"s (m)\"},y:{labelString:\"theta\"}}},properties:{lines:{ReferenceLine:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}},dpPolyGraph:{title:\"DP Path\",options:{legend:{display:!1},axes:{x:{labelString:\"s (m)\"},y:{labelString:\"l (m)\"}}},properties:{lines:{minCostPoint:{color:\"rgba(255, 0, 0, 0.8)\",borderWidth:2,pointRadius:2,fill:!1,showLine:!0},sampleLayer:{color:\"rgba(225, 225, 225, 0.5)\",borderWidth:0,pointRadius:4,fill:!1,showLine:!1}}}},latencyGraph:{title:\"Latency\",options:{legend:{display:!1},axes:{x:{labelString:\"timestampe (sec)\"},y:{labelString:\"latency (ms)\"}}},properties:{lines:{planning:{color:\"rgba(27, 249, 105, 0.5)\",borderWidth:2,pointRadius:0,fill:!1,showLine:!0}}}}}},function(t,e){t.exports={name:\"proj4\",version:\"2.4.4\",description:\"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.\",main:\"dist/proj4-src.js\",module:\"lib/index.js\",directories:{test:\"test\",doc:\"docs\"},scripts:{build:\"grunt\",\"build:tmerc\":\"grunt build:tmerc\",test:\"npm run build && istanbul test _mocha test/test.js\"},repository:{type:\"git\",url:\"git://github.com/proj4js/proj4js.git\"},author:\"\",license:\"MIT\",devDependencies:{chai:\"~1.8.1\",curl:\"git://github.com/cujojs/curl.git\",grunt:\"^1.0.1\",\"grunt-cli\":\"~0.1.13\",\"grunt-contrib-connect\":\"~0.6.0\",\"grunt-contrib-jshint\":\"~1.1.0\",\"grunt-contrib-uglify\":\"~0.11.1\",\"grunt-mocha-phantomjs\":\"~0.4.0\",\"grunt-rollup\":\"^1.0.1\",istanbul:\"~0.2.4\",mocha:\"~1.17.1\",rollup:\"^0.41.4\",\"rollup-plugin-json\":\"^2.0.1\",\"rollup-plugin-node-resolve\":\"^2.0.0\",tin:\"~0.4.0\"},dependencies:{mgrs:\"1.0.0\",\"wkt-parser\":\"^1.2.0\"}}},function(t,e,n){var i=n(236);\"string\"==typeof i&&(i=[[t.i,i,\"\"]]);var r={};r.transform=void 0;n(158)(i,r);i.locals&&(t.exports=i.locals)},function(t,e){t.exports=function(){throw new Error(\"define cannot be used indirect\")}}]);\n\n\n// WEBPACK FOOTER //\n// app.bundle.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""} \ No newline at end of file diff --git a/modules/dreamview/frontend/dist/assets/1VjU8-lRFZw_ZryZW5jvu9.png b/modules/dreamview/frontend/dist/assets/1VjU8-lRFZw_ZryZW5jvu9.png new file mode 100644 index 0000000000000000000000000000000000000000..27b4e02cd9ca567a5722130bb25838e4834c07e3 GIT binary patch literal 195 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDD3?#L31Vw-pPk>K|t50U(e;Bae-F^rt&Ri1Y z7tA1bRUkYZq%Yai#W6(V{MAbfB^wNQS}rDRFtnKV(n=!jrPZ6m3^@#{rx@r;B5V$MLsQ?n)gN;A!*DbngE5 z_FsPKqUw32SJcY3nYthOE+mvW>-4{yJ2r%UNcy@Y@8Fe?0}c1~Y%x7I^BTVy@B1r@ zXYXA#w_Nl^?XzP&Ri;9ZE#7fTEuNg_JG0JltMB4xlU>tZ_WPNY+`GwHR%a%hSXrUx ze%V+pr;_29h0{`@>)ZmTou!mixEI85DJBD{JNCK?K^!(lj7JZs|NqWlsq$#)$@5WD zEQ&G(y8C19J>d`e?5aJ>!FTq`%oNkLpEk|kVqLml)U>YY(_)~97(8A5T-G@yGywp_ CU%M{= literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/dist/assets/24ObNVAeLQ1n3S5D9jb8Wo.png b/modules/dreamview/frontend/dist/assets/24ObNVAeLQ1n3S5D9jb8Wo.png deleted file mode 100644 index 75a4de2f18262d350bf61094b5c32ba536fcb99b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 320 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM3?#3wJbMaAc?bA}xcX!k{-+WMS+l1OXsl#O zkY6xE@85{ky2?3ot&ZJh^W(j;OyZIAu976nwkfXlxjKKAdAc};Xq-PfaU)-Y0uSr@gg{2u-~Z)b zCmdikTWnsk(91Q2G8A6tMZR0((auP%S@5^s=(Mh&!#NAhZg_3I`*3OTPNwQ@TZ1-lGV$16^Z6S0-UlrCaT5cIfi^ODy85}Sb4q9e E0F9`D^#A|> diff --git a/modules/dreamview/frontend/dist/assets/2DNb-d13acVQUZGfQIIT7H.png b/modules/dreamview/frontend/dist/assets/2DNb-d13acVQUZGfQIIT7H.png new file mode 100644 index 0000000000000000000000000000000000000000..0088089d6ea3a3145a20e82cfe444133354f7847 GIT binary patch literal 410 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-s9sxcfu0ENC|EU4^*B^5Lnkilq zW|6pRr_4(zOc{ERSz5WsAH}d%e3U zX3w4iS2xWmU)OJT3gQZVH!mzAzi+jTYmo6C0p5Vtnxo&(UY(xUzuH{To^kT?tLC-h zAOC$fa5xfwZ@syeV@6BY$4}qC%eqCkxUI0W|8S9MO49z^z4M~09{zdIxA;_3@-9(7 zzUbwLoVSbZRu|3dntnImwW1}b@W{QX>wMQRQfCLYAvw( zbn^5IQ~vjaHdX(f&X6Ot=dV4VLBiw@|F*#e)v)oO7l< zF46Pjf5ay=r?JEMMxnb%(3M9%JUb?x*H92*U@(_$xp;5et$LuX44$rjF6*2UngFI# Bb1wh@ literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/dist/assets/2Pv9EE8DFvmwOR7l1sNw4-.png b/modules/dreamview/frontend/dist/assets/2Pv9EE8DFvmwOR7l1sNw4-.png new file mode 100644 index 0000000000000000000000000000000000000000..62be18764b69e8640ba5080d38209bb038f48306 GIT binary patch literal 446 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-s_5nU2u0ENC|0w|P9=~A%8YNN^ zPZErHzHNTt z{nfYbpIhO7=psjPj^xZQ(b2OKrbfH%*>|?hX3pVhjF!%64~?fyj(c+E{s~<}{#ljl z59P3V$QqQd6JE}CCC%Z;FDZ?ABIO6T@-*h06zCF8N$EJMIxWRPmF2r9TZq#NyOSTL z3PrW8pOVqw*mUOw)ur@ekW-YYiMz-W$kB2YusiAc$SPN||*TXZhg pELyzksm{SaEQkKj|6y&z*!xrJ>j{ljcEC_%@O1TaS?83{1OUu+=0gAg literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/dist/assets/2UaG3NtKPH-5AjKPJ1VctX.png b/modules/dreamview/frontend/dist/assets/2UaG3NtKPH-5AjKPJ1VctX.png new file mode 100644 index 0000000000000000000000000000000000000000..fc58a351b37012279099df8f9c0c1247cdb05498 GIT binary patch literal 239 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDB3?!H8JlO)IR04cLTzxVN{}TeanpaN))pM5w z`2{n`yxo7Dd(9lvcGoI(SzNd?0h{fsTgazC;c$trQFSz(+!i-MmrrL7Gvd&j` zZ*TN!VYHpn<=S*LD*OAQvy3x@4$hV;E6$jmi&G2%WF4GGkrP(YECX2Tz?`qkq zJVWeekDj6$!!k+XjX!J5*C|L&m6&?q%#z)lPvd4WGVpSim`iKyS^>10!PC{xWt~$( F69AOvX*K`= literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/dist/assets/2mLfIh-bK5rqJgPJF70iSR.png b/modules/dreamview/frontend/dist/assets/2mLfIh-bK5rqJgPJF70iSR.png new file mode 100644 index 0000000000000000000000000000000000000000..7f9ee4b37f7f68c18a129a83cc5afd551f361c49 GIT binary patch literal 400 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sHUT~%u0ENC|H%a|OJY_6%@HmM z@(X5gH)H+HE4kxk-yPL+A7j!NR~E1II4cj7{^0527~*mK?d01+%?dm&f`L1$Z~p&( z{nd>!2jLZ$_iedcd&$RR(?f+L{;N!PoZhnjNjdX8sa;k3HeV?EKSk==)lah-?%UT@ z^@ls9UHUYa`}^@${|`sg zpEGT;mKD_U*GQ9m{WGGv=q1l{PR&a~(@li_$XTjbxKyY}h*hX$xOjO4bWEA3AfT!2 vs1W4%sK=w=(WE4i`dWt-Fa9#euaOSlC*XaxKZ6LR|l213sCB*o2{CnhLu2 zf!YO1g8YK(9iJ#`$M7<|@-q=-6PUKfN;pRZDA(%g;uxZF{_cgHLWd1FTmvsW($C+jYgBUzr{an^LB{Ts58li}2 diff --git a/modules/dreamview/frontend/dist/assets/34mVgyjNEtBvo5AE0_5AmB.png b/modules/dreamview/frontend/dist/assets/34mVgyjNEtBvo5AE0_5AmB.png deleted file mode 100644 index ad0168286b389b76d7f1cc96ac74eee189054551..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 118 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaT3?y&uT)!Jgu?6^qxcX!k{{R1f)}wZQpa^40 zkY6x^!?PP{K#rWJi(?4K_2eJ_|Jyq=Gb;y5ED@7l@&7;n>K%Xo+cP8;^Y7MsIn5KO OlEKr}&t;ucLK6Ub)+L4j diff --git a/modules/dreamview/frontend/dist/assets/3Fe9fcXF_qq6_IgOoQKXHh.png b/modules/dreamview/frontend/dist/assets/3Fe9fcXF_qq6_IgOoQKXHh.png new file mode 100644 index 0000000000000000000000000000000000000000..96a497a2b8409edf2d74c04528d5d189bad1c31d GIT binary patch literal 127 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDH3?y^UWFG-iYymzYu0ENC|NsA=^{Aa6D8g70 zRem<_NsaF`kDQy0CK;sod-GoH>1tJWK X?pb%Lwf@QlYGLqn^>bP0l+XkKQ^qE2 literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/dist/assets/3Iqjzgc83hgZ4G5mrmawOr.png b/modules/dreamview/frontend/dist/assets/3Iqjzgc83hgZ4G5mrmawOr.png new file mode 100644 index 0000000000000000000000000000000000000000..28f3f2dd5d009cd798ea4bb0c65c45e8964c11eb GIT binary patch literal 403 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-smH|E?u0ENC|H%SZ1v9*Xh6t4e z`2{oh-mKX>`S&{kR;_|HQWlRAE|fp#u?5P0_jGX#@i_i=nzvAk0*?!0phKX+cl$RE zUF%zzdsMYoTkE@tWlC1xw_LkN?V6tZSs5;dH-1xImo_`@$vd!lt@_Q*7mPv)fr1y; z9%Z$v-OFFvv{~VG$BM&O9&Wx|8@S3*QtMwCzaJFBj yU$FDJT=1k9jp4~B{T`mEowQ~8mgn66b?ZLem!2Dyd&UeH1Pq?8elF{r5}E*s<-hR& literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/dist/assets/3_JuUQhtE815-mFYEQxLD7.png b/modules/dreamview/frontend/dist/assets/3_JuUQhtE815-mFYEQxLD7.png deleted file mode 100644 index 7d5d1d429fd52c5bf29c250411da82ab40d2ffdb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 127 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaT3?y&uT)!Jgu?6^qxcX!k{{R1f)}wZQpa^40 zkY6x^!?PP{K#sbni(?4K_2eJ_|Jyq=Gb=NhD-=}!cNVdW;bmvq{=cH*kh>Xoh8e>` XCh=)o=R9=;YGLqn^>bP0l+XkKgVQD$ diff --git a/modules/dreamview/frontend/dist/assets/3bD4CnQrI774P7eAmm4ou9.png b/modules/dreamview/frontend/dist/assets/3bD4CnQrI774P7eAmm4ou9.png new file mode 100644 index 0000000000000000000000000000000000000000..27551da9b93f75d03b28fe4b7f50429390c28450 GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDH3?y^UWFG-iYymzYu0ENC|NsA=^{Aa6D8g70 zhhKvF3X*Nulnf$m6UtBIEF|_UOmVzc1S_M;h_JE z2~J&h@9Kk2I@vUz`_TR+CVP{&sOE=&?xs0sj^=jT@OcYQc5^vvU_I-qi;G4{-m_`F z@?uui3d_#2KGbUo?+npr< diff --git a/modules/dreamview/frontend/dist/assets/3ymW0_3b4E9AkSrQdwuhXa.png b/modules/dreamview/frontend/dist/assets/3ymW0_3b4E9AkSrQdwuhXa.png new file mode 100644 index 0000000000000000000000000000000000000000..cd6d61537df1c6223149c41f3890b55aaeb65b40 GIT binary patch literal 321 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-s#sNMdu0ENC|49TN-~U+$)GkmG zS)`ddtA@$P^1!1a$%gH> z%5O7XH`;Tx?vB5So$ZI_Z~gU0xc6_puj%n#q?cn!*6gqCRVRu=DX`Adn{O4~{ij%K%mr3{tL gFz=#bqfisWg8uN(6Q`Fh1!`yTboFyt=akR{05Vo8-~a#s literal 0 HcmV?d00001 diff --git a/modules/dreamview/frontend/dist/assets/SGGg2xQ5wu9S-5KOxbnuq.png b/modules/dreamview/frontend/dist/assets/SGGg2xQ5wu9S-5KOxbnuq.png deleted file mode 100644 index feaf6ae822da396aeec4691b7463a439ffcb4485..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 364 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM3?#3wJbMaA1qS$pxcX!k{--K9dCsL2Xt-2K zkY6yv+5WUov#kZ5nkyFQ|>6$h?wKqHY6cQgl*{Ug)W7{sYNuny@=rk|O7*6+-`=>s9-RJk>fI-H-oXam) zo)u4I%QI0^^YM;eJ@rB>*E8MJiM}u6{&sX2YkKFFE2?}e;#oA2dk)(gWxd&D;@XPW lS&ZgP_n7$h>8*Mx{yidW>vP`y`3H16gQu&X%Q~loCIEuky4e5# diff --git a/modules/dreamview/frontend/dist/assets/map_data b/modules/dreamview/frontend/dist/assets/map_data deleted file mode 120000 index 27d65fe1d2..0000000000 --- a/modules/dreamview/frontend/dist/assets/map_data +++ /dev/null @@ -1 +0,0 @@ -/apollo/modules/map/data \ No newline at end of file diff --git a/modules/dreamview/frontend/dist/assets/t8N2JFIzU8cMJO1Lf8mYH.png b/modules/dreamview/frontend/dist/assets/t8N2JFIzU8cMJO1Lf8mYH.png deleted file mode 100644 index 38af3b1fa8e3abece98d07976a5de23ea9f7c917..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 161 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM3?#3wJbMaA@dx;XxcX!k{s#k~0Fd6wuvr7h zVkrso3udr?BmX$PR0+tp^>lFz(Kw%+aF9_VLSjSHLfwNWj&y`FDfW5WGV6WS5Yl+$ zA++KV2d7Elgw+cgB-`yHB-p02=#j+S3j3^P6 +
{subMenu}
); diff --git a/modules/dreamview/frontend/src/components/SideBar/POI.js b/modules/dreamview/frontend/src/components/SideBar/POI.js index 611597c945..ab881e69c5 100644 --- a/modules/dreamview/frontend/src/components/SideBar/POI.js +++ b/modules/dreamview/frontend/src/components/SideBar/POI.js @@ -26,7 +26,7 @@ export default class POI extends React.Component { }); return ( -
+
Point of Interest
{entries}
diff --git a/modules/dreamview/frontend/src/styles/main.scss b/modules/dreamview/frontend/src/styles/main.scss index 910dd447e7..5fbe8c5060 100644 --- a/modules/dreamview/frontend/src/styles/main.scss +++ b/modules/dreamview/frontend/src/styles/main.scss @@ -304,7 +304,7 @@ body { flex: 1 1 auto; border-right: 3px solid #000000; - padding: 25px 10px 25px 20px; + padding: 15px 10px 25px 20px; background: #1D2226; @include small-screen { @@ -432,7 +432,7 @@ body { } } - .nav-side-menu { + .tool-view-menu { display: flex; flex-flow: row nowrap; align-items: stretch; @@ -464,8 +464,8 @@ body { transform: translate(-30%, 25%); @include small-screen { - width: 15px; - height: 15px; + width: 20px; + height: 20px; transform: translate(-50%, 10%); } } @@ -563,9 +563,14 @@ body { } .icon { - width: 30px; - height: 30px; + width: 40px; + height: 40px; margin: auto; + + @include small-screen { + width: 30px; + height: 30px; + } } .label { -- GitLab