From 63cc49e1d4d622e2de5ac4fe12ddc5fc0be8ffcc Mon Sep 17 00:00:00 2001 From: koehr Date: Thu, 26 Apr 2018 00:29:45 +0200 Subject: [PATCH] nice trees and actual player interaction --- README.md | 2 +- dist/bedrock.png | Bin 0 -> 1202 bytes dist/build.js | 4 +- dist/build.js.map | 2 +- dist/dwarf_left.png | Bin 0 -> 607 bytes dist/dwarf_right.png | Bin 0 -> 629 bytes dist/grass01.png | Bin 0 -> 614 bytes dist/rock.png | Bin 0 -> 1253 bytes dist/soil01.png | Bin 0 -> 586 bytes dist/soil_gravel01.png | Bin 0 -> 940 bytes dist/tree_crown_left.png | Bin 0 -> 719 bytes dist/tree_crown_left_mixed.png | Bin 0 -> 1457 bytes dist/tree_crown_middle.png | Bin 0 -> 1528 bytes dist/tree_crown_right.png | Bin 0 -> 1034 bytes dist/tree_crown_right_mixed.png | Bin 0 -> 1368 bytes dist/tree_root_left.png | Bin 0 -> 340 bytes dist/tree_root_left_mixed.png | Bin 0 -> 539 bytes dist/tree_root_middle.png | Bin 0 -> 938 bytes dist/tree_root_right.png | Bin 0 -> 280 bytes dist/tree_root_right_mixed.png | Bin 0 -> 539 bytes dist/tree_top_left.png | Bin 0 -> 139 bytes dist/tree_top_left_mixed.png | Bin 0 -> 257 bytes dist/tree_top_middle.png | Bin 0 -> 747 bytes dist/tree_top_right.png | Bin 0 -> 205 bytes dist/tree_top_right_mixed.png | Bin 0 -> 257 bytes dist/tree_trunk_left.png | Bin 0 -> 735 bytes dist/tree_trunk_left_mixed.png | Bin 0 -> 1150 bytes dist/tree_trunk_middle.png | Bin 0 -> 1210 bytes dist/tree_trunk_right.png | Bin 0 -> 750 bytes dist/tree_trunk_right_mixed.png | Bin 0 -> 1089 bytes src/Field.vue | 92 +++++++++++++++++++++++++------ src/assets/demon_left.png | Bin 0 -> 554 bytes src/assets/demon_right.png | Bin 0 -> 564 bytes src/assets/dwarf.png | Bin 1102 -> 0 bytes src/assets/dwarf_left.png | Bin 0 -> 607 bytes src/assets/dwarf_right.png | Bin 0 -> 629 bytes src/assets/ghost_left.png | Bin 0 -> 460 bytes src/assets/ghost_right.png | Bin 0 -> 448 bytes src/assets/knight_left.png | Bin 0 -> 595 bytes src/assets/knight_right.png | Bin 0 -> 620 bytes src/assets/monsterboy_assets.png | Bin 0 -> 159630 bytes src/assets/shrooman_left.png | Bin 0 -> 540 bytes src/assets/shrooman_right.png | Bin 0 -> 537 bytes src/assets/shroomy_left.png | Bin 0 -> 344 bytes src/assets/shroomy_right.png | Bin 0 -> 329 bytes src/assets/skeleton_left.png | Bin 0 -> 567 bytes src/assets/skeleton_right.png | Bin 0 -> 551 bytes src/level/def.js | 6 +- src/level/index.js | 7 +-- src/level/third-iteration.js | 9 --- 50 files changed, 85 insertions(+), 37 deletions(-) create mode 100644 dist/bedrock.png create mode 100644 dist/dwarf_left.png create mode 100644 dist/dwarf_right.png create mode 100644 dist/grass01.png create mode 100644 dist/rock.png create mode 100644 dist/soil01.png create mode 100644 dist/soil_gravel01.png create mode 100644 dist/tree_crown_left.png create mode 100644 dist/tree_crown_left_mixed.png create mode 100644 dist/tree_crown_middle.png create mode 100644 dist/tree_crown_right.png create mode 100644 dist/tree_crown_right_mixed.png create mode 100644 dist/tree_root_left.png create mode 100644 dist/tree_root_left_mixed.png create mode 100644 dist/tree_root_middle.png create mode 100644 dist/tree_root_right.png create mode 100644 dist/tree_root_right_mixed.png create mode 100644 dist/tree_top_left.png create mode 100644 dist/tree_top_left_mixed.png create mode 100644 dist/tree_top_middle.png create mode 100644 dist/tree_top_right.png create mode 100644 dist/tree_top_right_mixed.png create mode 100644 dist/tree_trunk_left.png create mode 100644 dist/tree_trunk_left_mixed.png create mode 100644 dist/tree_trunk_middle.png create mode 100644 dist/tree_trunk_right.png create mode 100644 dist/tree_trunk_right_mixed.png create mode 100644 src/assets/demon_left.png create mode 100644 src/assets/demon_right.png delete mode 100644 src/assets/dwarf.png create mode 100644 src/assets/dwarf_left.png create mode 100644 src/assets/dwarf_right.png create mode 100644 src/assets/ghost_left.png create mode 100644 src/assets/ghost_right.png create mode 100644 src/assets/knight_left.png create mode 100644 src/assets/knight_right.png create mode 100644 src/assets/monsterboy_assets.png create mode 100644 src/assets/shrooman_left.png create mode 100644 src/assets/shrooman_right.png create mode 100644 src/assets/shroomy_left.png create mode 100644 src/assets/shroomy_right.png create mode 100644 src/assets/skeleton_left.png create mode 100644 src/assets/skeleton_right.png diff --git a/README.md b/README.md index 5cbd5c7..5d47ea8 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Textures all from [OpenGameArt](https://opengameart.org/). More specifically: * https://opengameart.org/content/nature-tileset * https://opengameart.org/content/platform-tileset-nature -* https://opengameart.org/sites/default/files/tileset2.png * https://opengameart.org/content/cave-tileset-2 +* https://opengameart.org/content/monsterboy-in-wonder-world-mockup-assets and partially adapted to my needs. diff --git a/dist/bedrock.png b/dist/bedrock.png new file mode 100644 index 0000000000000000000000000000000000000000..5fccb1af912153e8522051fadf787a2005d76dff GIT binary patch literal 1202 zcmV;j1Wo&iP)c{smGuyT;lt1u;>$>g*=Xu@>@%MFI?{#b#3RlLUa-SIE^7!|`ma=lb7(dDs=L2zh zmBOe4uJ`9IXIYkq{J{(T#j-4SxGc-^__s1d8SBcU5*@Gjb2KCjp~#3zd4I=-;9685 z$}=`NT6Y{r=%v9AvT({gpbW}R9u@a@=mlSc@7PPPWm#?{am85($8+>f{p|npY%zIlcmU0PR$GoCBuxopY6#PuC27Fj4KPv$i&@c289 zZ}bvY039?kv)@ueEo6mVIOmL#gD6)Of*qpd{a%hND#n!XEbb$Zo#%O%)m;u?Xk`!1 zIc<2I9l2Q5KG{Z!X}ct)5Q=%pL+^!~Vo6cqxUgUxuifgM&TISS@?a@N@g(qATp1Ctm6?L*%Q&JFl=V^ zQbmkx1Vc4HA1ov*DJqw4+h+T|%d(>Sp1ZjWg&s_tbzIT(LAke!;XE*i$PU9-)Bf_7x}fl6c3 z&4RO@w>!P)8l^|A zpo(R_9b){CLi0~UgRZIuQrW3==KG36qPvNx3%rNBk*l(SRELbBK0AZLD9jX#^T7;; z#H{vELL&G?c3;;ug<3^;ye`^z@QtK$t7>ZS<`M}CPq4Z(`=s7tU5Ag=Kbhl1x05&s zVB^(2TgLKPQTMoJW#OFljOW!=Q4|VMTzB!m^2m!bpQ}kmAazv~6@hB=tj4Oyj1OaE zO?gE~)!lK`^eAPkyJp;f{9o58xT|`H?!ANRjoah(PFn.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i=n)throw new Error("options.min ("+e+") must be less than options.max ("+n+")");this.scale=-1===e&&1===n?function(t){return t}:function(t){return e+(t+1)/2*(n-e)};for(var r=new Uint8Array(256),i=0;i<256;i++)r[i]=i;for(var o,a,i=255;i>0;i--)o=Math.floor((i+1)*this.random()),a=r[i],r[i]=r[o],r[o]=a;this.perm=new Uint8Array(512),this.permMod12=new Uint8Array(512);for(var i=0;i<512;i++)this.perm[i]=r[255&i],this.permMod12[i]=this.perm[i]%12}return t.prototype.cylindrical=function(t,e){switch(e.length){case 2:return this.cylindrical2D(t,e[0],e[1]);case 3:return this.cylindrical3D(t,e[0],e[1],e[2]);default:return null}},t.prototype.cylindrical2D=function(t,e,n){var r=e/t,i=t/(2*Math.PI),o=2*r*Math.PI,a=i*Math.sin(o),s=i*Math.cos(o);return this.scaled3D(a,s,n)},t.prototype.cylindrical3D=function(t,e,n,r){var i=e/t,o=t/(2*Math.PI),a=2*i*Math.PI,s=o*Math.sin(a),c=o*Math.cos(a);return this.scaled4D(s,c,n,r)},t.prototype.dot=function(t,e){return t.slice(0,Math.min(t.length,e.length)).reduce(function(t,n,r){return t+n*e[r]},0)},t.prototype.raw=function(t){switch(t.length){case 2:return this.raw2D(t[0],t[1]);case 3:return this.raw3D(t[0],t[1],t[2]);case 4:return this.raw4D(t[0],t[1],t[2],t[3]);default:return null}},t.prototype.raw2D=function(e,n){var r=.5*(e+n)*(Math.sqrt(3)-1),i=Math.floor(e+r),o=Math.floor(n+r),a=(i+o)*t.G2,s=i-a,c=o-a,u=e-s,l=n-c,f=u>l?1:0,p=u>l?0:1,d=u-f+t.G2,v=l-p+t.G2,h=u-1+2*t.G2,m=l-1+2*t.G2,y=255&i,g=255&o,b=this.permMod12[y+this.perm[g]],_=this.permMod12[y+f+this.perm[g+p]],w=this.permMod12[y+1+this.perm[g+1]],x=.5-u*u-l*l,k=x<0?0:Math.pow(x,4)*this.dot(t.GRAD3D[b],[u,l]),$=.5-d*d-v*v,C=$<0?0:Math.pow($,4)*this.dot(t.GRAD3D[_],[d,v]),A=.5-h*h-m*m;return 70.14805770653952*(k+C+(A<0?0:Math.pow(A,4)*this.dot(t.GRAD3D[w],[h,m])))},t.prototype.raw3D=function(e,n,r){var i,o,a,s,c,u,l=(e+n+r)/3,f=Math.floor(e+l),p=Math.floor(n+l),d=Math.floor(r+l),v=(f+p+d)*t.G3,h=f-v,m=p-v,y=d-v,g=e-h,b=n-m,_=r-y;g>=b?b>=_?(i=s=c=1,o=a=u=0):g>=_?(i=s=u=1,o=a=c=0):(a=s=u=1,i=o=c=0):b<_?(a=c=u=1,i=o=s=0):g<_?(o=c=u=1,i=a=s=0):(o=s=c=1,i=a=u=0);var w=g-i+t.G3,x=b-o+t.G3,k=_-a+t.G3,$=g-s+2*t.G3,C=b-c+2*t.G3,A=_-u+2*t.G3,O=g-1+3*t.G3,T=b-1+3*t.G3,M=_-1+3*t.G3,S=255&f,E=255&p,D=255&d,j=this.permMod12[S+this.perm[E+this.perm[D]]],I=this.permMod12[S+i+this.perm[E+o+this.perm[D+a]]],L=this.permMod12[S+s+this.perm[E+c+this.perm[D+u]]],N=this.permMod12[S+1+this.perm[E+1+this.perm[D+1]]],P=.5-g*g-b*b-_*_,R=P<0?0:Math.pow(P,4)*this.dot(t.GRAD3D[j],[g,b,_]),F=.5-w*w-x*x-k*k,G=F<0?0:Math.pow(F,4)*this.dot(t.GRAD3D[I],[w,x,k]),U=.5-$*$-C*C-A*A,B=U<0?0:Math.pow(U,4)*this.dot(t.GRAD3D[L],[$,C,A]),H=.5-O*O-T*T-M*M;return 94.68493150681972*(R+G+B+(H<0?0:Math.pow(H,4)*this.dot(t.GRAD3D[N],[O,T,M])))},t.prototype.raw4D=function(e,n,r,i){var o=(e+n+r+i)*(Math.sqrt(5)-1)/4,a=Math.floor(e+o),s=Math.floor(n+o),c=Math.floor(r+o),u=Math.floor(i+o),l=(a+s+c+u)*t.G4,f=a-l,p=s-l,d=c-l,v=u-l,h=e-f,m=n-p,y=r-d,g=i-v,b=0,_=0,w=0,x=0;h>m?b++:_++,h>y?b++:w++,h>g?b++:x++,m>y?_++:w++,m>g?_++:x++,y>g?w++:x++;var k=b>=3?1:0,$=_>=3?1:0,C=w>=3?1:0,A=x>=3?1:0,O=b>=2?1:0,T=_>=2?1:0,M=w>=2?1:0,S=x>=2?1:0,E=b>=1?1:0,D=_>=1?1:0,j=w>=1?1:0,I=x>=1?1:0,L=h-k+t.G4,N=m-$+t.G4,P=y-C+t.G4,R=g-A+t.G4,F=h-O+2*t.G4,G=m-T+2*t.G4,U=y-M+2*t.G4,B=g-S+2*t.G4,H=h-E+3*t.G4,q=m-D+3*t.G4,z=y-j+3*t.G4,V=g-I+3*t.G4,K=h-1+4*t.G4,J=m-1+4*t.G4,W=y-1+4*t.G4,X=g-1+4*t.G4,Z=255&a,Y=255&s,Q=255&c,tt=255&u,et=this.perm[Z+this.perm[Y+this.perm[Q+this.perm[tt]]]]%32,nt=this.perm[Z+k+this.perm[Y+$+this.perm[Q+C+this.perm[tt+A]]]]%32,rt=this.perm[Z+O+this.perm[Y+T+this.perm[Q+M+this.perm[tt+S]]]]%32,it=this.perm[Z+E+this.perm[Y+D+this.perm[Q+j+this.perm[tt+I]]]]%32,ot=this.perm[Z+1+this.perm[Y+1+this.perm[Q+1+this.perm[tt+1]]]]%32,at=.5-h*h-m*m-y*y-g*g,st=at<0?0:Math.pow(at,4)*this.dot(t.GRAD4D[et],[h,m,y,g]),ct=.5-L*L-N*N-P*P-R*R,ut=ct<0?0:Math.pow(ct,4)*this.dot(t.GRAD4D[nt],[L,N,P,R]),lt=.5-F*F-G*G-U*U-B*B,ft=lt<0?0:Math.pow(lt,4)*this.dot(t.GRAD4D[rt],[F,G,U,B]),pt=.5-H*H-q*q-z*z-V*V,dt=pt<0?0:Math.pow(pt,4)*this.dot(t.GRAD4D[it],[H,q,z,V]),vt=.5-K*K-J*J-W*W-X*X;return 72.37855765153665*(st+ut+ft+dt+(vt<0?0:Math.pow(vt,4)*this.dot(t.GRAD4D[ot],[K,J,W,X])))},t.prototype.scaled=function(t){switch(t.length){case 2:return this.scaled2D(t[0],t[1]);case 3:return this.scaled3D(t[0],t[1],t[2]);case 4:return this.scaled4D(t[0],t[1],t[2],t[3]);default:return null}},t.prototype.scaled2D=function(t,e){for(var n=this.amplitude,r=this.frequency,i=0,o=0,a=0;a=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}function m(t,e){return lo.call(t,e)}function y(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function g(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function b(t,e){return t.bind(e)}function _(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function w(t,e){for(var n in e)t[n]=e[n];return t}function x(t){for(var e={},n=0;n-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===mo(t)){var c=nt(String,i.type);(c<0||s0&&(a=bt(a,(e||"")+"_"+n),gt(a[0])&>(u)&&(l[c]=j(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?gt(u)?l[c]=j(u.text+a):""!==a&&l.push(j(a)):gt(a)&>(u)?l[c]=j(u.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function _t(t,e){return(t.__esModule||Uo&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function wt(t,e,n,r,i){var o=Jo();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function xt(t,e,n){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;if(o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(!i(t.contexts)){var a=t.contexts=[n],s=!0,u=function(){for(var t=0,e=a.length;tba&&va[n].id>t.id;)n--;va.splice(n+1,0,t)}else va.push(t);ya||(ya=!0,ct(Gt))}}function zt(t,e,n){xa.get=function(){return this[e][n]},xa.set=function(t){this[e][n]=t},Object.defineProperty(t,n,xa)}function Vt(t){t._watchers=[];var e=t.$options;e.props&&Kt(t,e.props),e.methods&&Qt(t,e.methods),e.data?Jt(t):R(t._data={},!0),e.computed&&Xt(t,e.computed),e.watch&&e.watch!==Io&&te(t,e.watch)}function Kt(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];!t.$parent||L(!1);for(var o in e)!function(o){i.push(o);var a=Y(o,e,n,t);F(r,o,a),o in t||zt(t,"_props",o)}(o);L(!0)}function Jt(t){var e=t.$options.data;e=t._data="function"==typeof e?Wt(e,t):e||{},u(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);i--;){var o=n[i];r&&m(r,o)||O(o)||zt(t,"_data",o)}R(e,!0)}function Wt(t,e){E();try{return t.call(e,e)}catch(t){return rt(t,e,"data()"),{}}finally{D()}}function Xt(t,e){var n=t._computedWatchers=Object.create(null),r=Fo();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;r||(n[i]=new wa(t,a||k,k,ka)),i in t||Zt(t,i,o)}}function Zt(t,e,n){var r=!Fo();"function"==typeof n?(xa.get=r?Yt(e):n,xa.set=k):(xa.get=n.get?r&&!1!==n.cache?Yt(e):n.get:k,xa.set=n.set?n.set:k),Object.defineProperty(t,e,xa)}function Yt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),qo.target&&e.depend(),e.value}}function Qt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?k:yo(e[n],t)}function te(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function Ie(t){this._init(t)}function Le(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=_(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function Ne(t){t.mixin=function(t){return this.options=X(this.options,t),this}}function Pe(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=X(n.options,t),a.super=n,a.options.props&&Re(a),a.options.computed&&Fe(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,wo.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=w({},a.options),i[r]=a,a}}function Re(t){var e=t.options.props;for(var n in e)zt(t.prototype,"_props",n)}function Fe(t){var e=t.options.computed;for(var n in e)Zt(t.prototype,n,e[n])}function Ge(t){wo.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Ue(t){return t&&(t.Ctor.options.name||t.tag)}function Be(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function He(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Ue(a.componentOptions);s&&!e(s)&&qe(n,o,r,i)}}}function qe(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,h(n,e)}function ze(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Ve(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=Ve(e,n.data));return Ke(e.staticClass,e.class)}function Ve(t,e){return{staticClass:Je(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Ke(t,e){return i(t)||i(e)?Je(t,We(e)):""}function Je(t,e){return t?e?t+" "+e:t:e||""}function We(t){return Array.isArray(t)?Xe(t):c(t)?Ze(t):"string"==typeof t?t:""}function Xe(t){for(var e,n="",r=0,o=t.length;r-1?es[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:es[t]=/HTMLUnknownElement/.test(e.toString())}function tn(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function en(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function nn(t,e){return document.createElementNS(Xa[t],e)}function rn(t){return document.createTextNode(t)}function on(t){return document.createComment(t)}function an(t,e,n){t.insertBefore(e,n)}function sn(t,e){t.removeChild(e)}function cn(t,e){t.appendChild(e)}function un(t){return t.parentNode}function ln(t){return t.nextSibling}function fn(t){return t.tagName}function pn(t,e){t.textContent=e}function dn(t,e){t.setAttribute(e,"")}function vn(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?h(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}function hn(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&mn(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function mn(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ns(r)&&ns(o)}function yn(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function gn(t,e){(t.data.directives||e.data.directives)&&bn(t,e)}function bn(t,e){var n,r,i,o=t===os,a=e===os,s=_n(t.data.directives,t.context),c=_n(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,xn(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(xn(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n-1?Cn(t,e,n):za(e)?Wa(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):qa(e)?t.setAttribute(e,Wa(n)||"false"===n?"false":"true"):Ka(e)?Wa(n)?t.removeAttributeNS(Va,Ja(e)):t.setAttributeNS(Va,e,n):Cn(t,e,n)}function Cn(t,e,n){if(Wa(n))t.removeAttribute(e);else{if(So&&!Eo&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}function An(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=ze(e),c=n._transitionClasses;i(c)&&(s=Je(s,We(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}function On(t){function e(){(a||(a=[])).push(t.slice(v,i).trim()),v=i+1}var n,r,i,o,a,s=!1,c=!1,u=!1,l=!1,f=0,p=0,d=0,v=0;for(i=0;i=0&&" "===(m=t.charAt(h));h--);m&&ps.test(m)||(l=!0)}}else void 0===o?(v=i+1,o=t.slice(0,i).trim()):e();if(void 0===o?o=t.slice(0,i).trim():0!==v&&e(),a)for(i=0;i-1?{exp:t.slice(0,La),key:'"'+t.slice(La+1)+'"'}:{exp:t,key:null};for(ja=t,La=Na=Pa=0;!Bn();)Ia=Un(),Hn(Ia)?zn(Ia):91===Ia&&qn(Ia);return{exp:t.slice(0,Na),key:t.slice(Na+1,Pa)}}function Un(){return ja.charCodeAt(++La)}function Bn(){return La>=Da}function Hn(t){return 34===t||39===t}function qn(t){var e=1;for(Na=La;!Bn();)if(t=Un(),Hn(t))zn(t);else if(91===t&&e++,93===t&&e--,0===e){Pa=La;break}}function zn(t){for(var e=t;!Bn()&&(t=Un())!==e;);}function Vn(t,e,n){Ra=n;var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return Rn(t,r,i),!1;if("select"===o)Wn(t,r,i);else if("input"===o&&"checkbox"===a)Kn(t,r,i);else if("input"===o&&"radio"===a)Jn(t,r,i);else if("input"===o||"textarea"===o)Xn(t,r,i);else if(!ko.isReservedTag(o))return Rn(t,r,i),!1;return!0}function Kn(t,e,n){var r=n&&n.number,i=Nn(t,"value")||"null",o=Nn(t,"true-value")||"true",a=Nn(t,"false-value")||"false";En(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Ln(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Fn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Fn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Fn(e,"$$c")+"}",null,!0)}function Jn(t,e,n){var r=n&&n.number,i=Nn(t,"value")||"null";i=r?"_n("+i+")":i,En(t,"checked","_q("+e+","+i+")"),Ln(t,"change",Fn(e,i),null,!0)}function Wn(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="var $$selectedVal = "+i+";";o=o+" "+Fn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ln(t,"change",o,null,!0)}function Xn(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?ds:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Fn(e,l);c&&(f="if($event.target.composing)return;"+f),En(t,"value","("+e+")"),Ln(t,u,f,null,!0),(s||a)&&Ln(t,"blur","$forceUpdate()")}function Zn(t){if(i(t[ds])){var e=So?"change":"input";t[e]=[].concat(t[ds],t[e]||[]),delete t[ds]}i(t[vs])&&(t.change=[].concat(t[vs],t.change||[]),delete t[vs])}function Yn(t,e,n){var r=Fa;return function i(){null!==t.apply(null,arguments)&&tr(e,i,n,r)}}function Qn(t,e,n,r,i){e=st(e),n&&(e=Yn(e,t,r)),Fa.addEventListener(t,e,Lo?{capture:r,passive:i}:r)}function tr(t,e,n,r){(r||Fa).removeEventListener(t,e._withTask||e,n)}function er(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Fa=e.elm,Zn(n),pt(n,i,Qn,tr,e.context),Fa=void 0}}function nr(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};i(c.__ob__)&&(c=e.data.domProps=w({},c));for(n in s)r(c[n])&&(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=o;var u=r(o)?"":String(o);rr(a,u)&&(a.value=u)}else a[n]=o}}}function rr(t,e){return!t.composing&&("OPTION"===t.tagName||ir(t,e)||or(t,e))}function ir(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function or(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.lazy)return!1;if(r.number)return d(n)!==d(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}function ar(t){var e=sr(t.style);return t.staticStyle?w(t.staticStyle,e):e}function sr(t){return Array.isArray(t)?x(t):"string"==typeof t?ys(t):t}function cr(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=ar(i.data))&&w(r,n);(n=ar(t.data))&&w(r,n);for(var o=t;o=o.parent;)o.data&&(n=ar(o.data))&&w(r,n);return r}function ur(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,c=e.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=sr(e.data.style)||{};e.data.normalizedStyle=i(p.__ob__)?w({},p):p;var d=cr(e,!0);for(s in f)r(d[s])&&_s(c,s,"");for(s in d)(a=d[s])!==f[s]&&_s(c,s,null==a?"":a)}}function lr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function fr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function pr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&w(e,$s(t.name||"v")),w(e,t),e}return"string"==typeof t?$s(t):void 0}}function dr(t){Ds(function(){Ds(t)})}function vr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),lr(t,e))}function hr(t,e){t._transitionClasses&&h(t._transitionClasses,e),fr(t,e)}function mr(t,e,n){var r=yr(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===As?Ms:Es,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=As,l=a,f=o.length):e===Os?u>0&&(n=Os,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?As:Os:null,f=n?n===As?o.length:c.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===As&&js.test(r[Ts+"Property"])}}function gr(t,e){for(;t.length1}function $r(t,e){!0!==e.data.show&&_r(e)}function Cr(t,e,n){Ar(t,e,n),(So||Do)&&setTimeout(function(){Ar(t,e,n)},0)}function Ar(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if($(Tr(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Or(t,e){return e.every(function(e){return!$(e,t)})}function Tr(t){return"_value"in t?t._value:t.value}function Mr(t){t.target.composing=!0}function Sr(t){t.target.composing&&(t.target.composing=!1,Er(t.target,"input"))}function Er(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Dr(t){return!t.componentInstance||t.data&&t.data.transition?t:Dr(t.componentInstance._vnode)}function jr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?jr($t(e.children)):t}function Ir(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[po(o)]=i[o];return e}function Lr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Nr(t){for(;t=t.parent;)if(t.data.transition)return!0}function Pr(t,e){return e.key===t.key&&e.tag===t.tag}function Rr(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Fr(t){t.data.newPos=t.elm.getBoundingClientRect()}function Gr(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function Ur(t,e){var n=e?Ws(e):Ks;if(n.test(t)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(t);){i=r.index,i>c&&(s.push(o=t.slice(c,i)),a.push(JSON.stringify(o)));var u=On(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=a.length-1;c>=i;c--)e.end&&e.end(a[c].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,r):"p"===s&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var i,o,a=[],s=e.expectHTML,c=e.isUnaryTag||go,u=e.canBeLeftOpenTag||go,l=0;t;){if(i=t,o&&kc(o)){var f=0,p=o.toLowerCase(),d=$c[p]||($c[p]=new RegExp("([\\s\\S]*?)(]*>)","i")),v=t.replace(d,function(t,n,r){return f=r.length,kc(p)||"noscript"===p||(n=n.replace(//g,"$1").replace(//g,"$1")),Mc(p,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});l+=t.length-v.length,t=v,r(p,l-f,l)}else{var h=t.indexOf("<");if(0===h){if(uc.test(t)){var m=t.indexOf("--\x3e");if(m>=0){e.shouldKeepComment&&e.comment(t.substring(4,m)),n(m+3);continue}}if(lc.test(t)){var y=t.indexOf("]>");if(y>=0){n(y+2);continue}}var g=t.match(cc);if(g){n(g[0].length);continue}var b=t.match(sc);if(b){var _=l;n(b[0].length),r(b[1],_,l);continue}var w=function(){var e=t.match(oc);if(e){var r={tagName:e[1],attrs:[],start:l};n(e[0].length);for(var i,o;!(i=t.match(ac))&&(o=t.match(nc));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}();if(w){!function(t){var n=t.tagName,i=t.unarySlash;s&&("p"===o&&ec(n)&&r(o),u(n)&&o===n&&r(n));for(var l=c(n)||!!i,f=t.attrs.length,p=new Array(f),d=0;d=0){for(k=t.slice(h);!(sc.test(k)||oc.test(k)||uc.test(k)||lc.test(k)||($=k.indexOf("<",1))<0);)h+=$,k=t.slice(h);x=t.substring(0,h),n(h)}h<0&&(x=t,t=""),e.chars&&x&&e.chars(x)}if(t===i){e.chars&&e.chars(t);break}}r()}function Jr(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:di(e),parent:n,children:[]}}function Wr(t,e){function n(t){t.pre&&(s=!1),yc(t.tag)&&(c=!1);for(var n=0;n':'
',xc.innerHTML.indexOf(" ")>0}function oo(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}/*! +!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=12)}([function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r={air:{type:"air",hp:0,walkable:!0},grass:{type:"grass",hp:1,walkable:!1},tree_top_left:{type:"tree_top_left",hp:5,walkable:!0},tree_top_middle:{type:"tree_top_middle",hp:5,walkable:!0},tree_top_right:{type:"tree_top_right",hp:5,walkable:!0},tree_crown_left:{type:"tree_crown_left",hp:5,walkable:!0},tree_crown_middle:{type:"tree_crown_middle",hp:5,walkable:!0,climbable:!0},tree_crown_right:{type:"tree_crown_right",hp:5,walkable:!0},tree_trunk_left:{type:"tree_trunk_left",hp:5,walkable:!0},tree_trunk_middle:{type:"tree_trunk_middle",hp:5,walkable:!0,climbable:!0},tree_trunk_right:{type:"tree_trunk_right",hp:5,walkable:!0},tree_root_left:{type:"tree_root_left",hp:5,walkable:!0},tree_root_middle:{type:"tree_root_middle",hp:5,walkable:!0,climbable:!0},tree_root_right:{type:"tree_root_right",hp:5,walkable:!0},tree_top_left_mixed:{type:"tree_top_left_mixed",hp:5,walkable:!0},tree_crown_left_mixed:{type:"tree_crown_left_mixed",hp:5,walkable:!0},tree_trunk_left_mixed:{type:"tree_trunk_left_mixed",hp:5,walkable:!0},tree_root_left_mixed:{type:"tree_root_left_mixed",hp:5,walkable:!0},tree_top_right_mixed:{type:"tree_top_right_mixed",hp:5,walkable:!0},tree_crown_right_mixed:{type:"tree_crown_right_mixed",hp:5,walkable:!0},tree_trunk_right_mixed:{type:"tree_trunk_right_mixed",hp:5,walkable:!0},tree_root_right_mixed:{type:"tree_root_right_mixed",hp:5,walkable:!0},soil:{type:"soil",hp:2,walkable:!1},soil_gravel:{type:"soil_gravel",hp:5,walkable:!1},stone_gravel:{type:"stone_gravel",hp:5,walkable:!1},stone:{type:"stone",hp:10,walkable:!1},bedrock:{type:"bedrock",hp:25,walkable:!1},cave:{type:"cave",hp:0,walkable:!0},player:{type:"player",hp:10,background:"air"}},i={treeTop:24,ground:28,rock:32,underground:48,cave_max:250},o={tree:.2,soil_hole:.3,soil_gravel:.2,stone_gravel:.1,cave:.5,fray:.4}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i=n)throw new Error("options.min ("+t+") must be less than options.max ("+n+")");this.scale=-1===t&&1===n?function(e){return e}:function(e){return t+(e+1)/2*(n-t)};for(var r=new Uint8Array(256),i=0;i<256;i++)r[i]=i;for(var o,a,i=255;i>0;i--)o=Math.floor((i+1)*this.random()),a=r[i],r[i]=r[o],r[o]=a;this.perm=new Uint8Array(512),this.permMod12=new Uint8Array(512);for(var i=0;i<512;i++)this.perm[i]=r[255&i],this.permMod12[i]=this.perm[i]%12}return e.prototype.cylindrical=function(e,t){switch(t.length){case 2:return this.cylindrical2D(e,t[0],t[1]);case 3:return this.cylindrical3D(e,t[0],t[1],t[2]);default:return null}},e.prototype.cylindrical2D=function(e,t,n){var r=t/e,i=e/(2*Math.PI),o=2*r*Math.PI,a=i*Math.sin(o),s=i*Math.cos(o);return this.scaled3D(a,s,n)},e.prototype.cylindrical3D=function(e,t,n,r){var i=t/e,o=e/(2*Math.PI),a=2*i*Math.PI,s=o*Math.sin(a),c=o*Math.cos(a);return this.scaled4D(s,c,n,r)},e.prototype.dot=function(e,t){return e.slice(0,Math.min(e.length,t.length)).reduce(function(e,n,r){return e+n*t[r]},0)},e.prototype.raw=function(e){switch(e.length){case 2:return this.raw2D(e[0],e[1]);case 3:return this.raw3D(e[0],e[1],e[2]);case 4:return this.raw4D(e[0],e[1],e[2],e[3]);default:return null}},e.prototype.raw2D=function(t,n){var r=.5*(t+n)*(Math.sqrt(3)-1),i=Math.floor(t+r),o=Math.floor(n+r),a=(i+o)*e.G2,s=i-a,c=o-a,u=t-s,l=n-c,f=u>l?1:0,p=u>l?0:1,d=u-f+e.G2,h=l-p+e.G2,v=u-1+2*e.G2,m=l-1+2*e.G2,g=255&i,y=255&o,_=this.permMod12[g+this.perm[y]],b=this.permMod12[g+f+this.perm[y+p]],w=this.permMod12[g+1+this.perm[y+1]],x=.5-u*u-l*l,k=x<0?0:Math.pow(x,4)*this.dot(e.GRAD3D[_],[u,l]),$=.5-d*d-h*h,C=$<0?0:Math.pow($,4)*this.dot(e.GRAD3D[b],[d,h]),A=.5-v*v-m*m;return 70.14805770653952*(k+C+(A<0?0:Math.pow(A,4)*this.dot(e.GRAD3D[w],[v,m])))},e.prototype.raw3D=function(t,n,r){var i,o,a,s,c,u,l=(t+n+r)/3,f=Math.floor(t+l),p=Math.floor(n+l),d=Math.floor(r+l),h=(f+p+d)*e.G3,v=f-h,m=p-h,g=d-h,y=t-v,_=n-m,b=r-g;y>=_?_>=b?(i=s=c=1,o=a=u=0):y>=b?(i=s=u=1,o=a=c=0):(a=s=u=1,i=o=c=0):_m?_++:b++,v>g?_++:w++,v>y?_++:x++,m>g?b++:w++,m>y?b++:x++,g>y?w++:x++;var k=_>=3?1:0,$=b>=3?1:0,C=w>=3?1:0,A=x>=3?1:0,O=_>=2?1:0,T=b>=2?1:0,S=w>=2?1:0,M=x>=2?1:0,E=_>=1?1:0,D=b>=1?1:0,j=w>=1?1:0,I=x>=1?1:0,P=v-k+e.G4,L=m-$+e.G4,N=g-C+e.G4,R=y-A+e.G4,F=v-O+2*e.G4,G=m-T+2*e.G4,U=g-S+2*e.G4,B=y-M+2*e.G4,H=v-E+3*e.G4,q=m-D+3*e.G4,z=g-j+3*e.G4,V=y-I+3*e.G4,K=v-1+4*e.G4,J=m-1+4*e.G4,W=g-1+4*e.G4,X=y-1+4*e.G4,Z=255&a,Y=255&s,Q=255&c,ee=255&u,te=this.perm[Z+this.perm[Y+this.perm[Q+this.perm[ee]]]]%32,ne=this.perm[Z+k+this.perm[Y+$+this.perm[Q+C+this.perm[ee+A]]]]%32,re=this.perm[Z+O+this.perm[Y+T+this.perm[Q+S+this.perm[ee+M]]]]%32,ie=this.perm[Z+E+this.perm[Y+D+this.perm[Q+j+this.perm[ee+I]]]]%32,oe=this.perm[Z+1+this.perm[Y+1+this.perm[Q+1+this.perm[ee+1]]]]%32,ae=.5-v*v-m*m-g*g-y*y,se=ae<0?0:Math.pow(ae,4)*this.dot(e.GRAD4D[te],[v,m,g,y]),ce=.5-P*P-L*L-N*N-R*R,ue=ce<0?0:Math.pow(ce,4)*this.dot(e.GRAD4D[ne],[P,L,N,R]),le=.5-F*F-G*G-U*U-B*B,fe=le<0?0:Math.pow(le,4)*this.dot(e.GRAD4D[re],[F,G,U,B]),pe=.5-H*H-q*q-z*z-V*V,de=pe<0?0:Math.pow(pe,4)*this.dot(e.GRAD4D[ie],[H,q,z,V]),he=.5-K*K-J*J-W*W-X*X;return 72.37855765153665*(se+ue+fe+de+(he<0?0:Math.pow(he,4)*this.dot(e.GRAD4D[oe],[K,J,W,X])))},e.prototype.scaled=function(e){switch(e.length){case 2:return this.scaled2D(e[0],e[1]);case 3:return this.scaled3D(e[0],e[1],e[2]);case 4:return this.scaled4D(e[0],e[1],e[2],e[3]);default:return null}},e.prototype.scaled2D=function(e,t){for(var n=this.amplitude,r=this.frequency,i=0,o=0,a=0;a=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}function m(e,t){return lo.call(e,t)}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function y(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function _(e,t){return e.bind(t)}function b(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function w(e,t){for(var n in t)e[n]=t[n];return e}function x(e){for(var t={},n=0;n-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===mo(e)){var c=ne(String,i.type);(c<0||s0&&(a=_e(a,(t||"")+"_"+n),ye(a[0])&&ye(u)&&(l[c]=j(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?ye(u)?l[c]=j(u.text+a):""!==a&&l.push(j(a)):ye(a)&&ye(u)?l[c]=j(u.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function be(e,t){return(e.__esModule||Uo&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function we(e,t,n,r,i){var o=Jo();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function xe(e,t,n){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;if(o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(!i(e.contexts)){var a=e.contexts=[n],s=!0,u=function(){for(var e=0,t=a.length;e_a&&ha[n].id>e.id;)n--;ha.splice(n+1,0,e)}else ha.push(e);ga||(ga=!0,ce(Ge))}}function ze(e,t,n){xa.get=function(){return this[t][n]},xa.set=function(e){this[t][n]=e},Object.defineProperty(e,n,xa)}function Ve(e){e._watchers=[];var t=e.$options;t.props&&Ke(e,t.props),t.methods&&Qe(e,t.methods),t.data?Je(e):R(e._data={},!0),t.computed&&Xe(e,t.computed),t.watch&&t.watch!==Io&&et(e,t.watch)}function Ke(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];!e.$parent||P(!1);for(var o in t)!function(o){i.push(o);var a=Y(o,t,n,e);F(r,o,a),o in e||ze(e,"_props",o)}(o);P(!0)}function Je(e){var t=e.$options.data;t=e._data="function"==typeof t?We(t,e):t||{},u(t)||(t={});for(var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);i--;){var o=n[i];r&&m(r,o)||O(o)||ze(e,"_data",o)}R(t,!0)}function We(e,t){E();try{return e.call(t,t)}catch(e){return re(e,t,"data()"),{}}finally{D()}}function Xe(e,t){var n=e._computedWatchers=Object.create(null),r=Fo();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new wa(e,a||k,k,ka)),i in e||Ze(e,i,o)}}function Ze(e,t,n){var r=!Fo();"function"==typeof n?(xa.get=r?Ye(t):n,xa.set=k):(xa.get=n.get?r&&!1!==n.cache?Ye(t):n.get:k,xa.set=n.set?n.set:k),Object.defineProperty(e,t,xa)}function Ye(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),qo.target&&t.depend(),t.value}}function Qe(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?k:go(t[n],e)}function et(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function It(e){this._init(e)}function Pt(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=b(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Lt(e){e.mixin=function(e){return this.options=X(this.options,e),this}}function Nt(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=X(n.options,e),a.super=n,a.options.props&&Rt(a),a.options.computed&&Ft(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,wo.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=w({},a.options),i[r]=a,a}}function Rt(e){var t=e.options.props;for(var n in t)ze(e.prototype,"_props",n)}function Ft(e){var t=e.options.computed;for(var n in t)Ze(e.prototype,n,t[n])}function Gt(e){wo.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function Ut(e){return e&&(e.Ctor.options.name||e.tag)}function Bt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!l(e)&&e.test(t)}function Ht(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Ut(a.componentOptions);s&&!t(s)&&qt(n,o,r,i)}}}function qt(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}function zt(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Vt(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=Vt(t,n.data));return Kt(t.staticClass,t.class)}function Vt(e,t){return{staticClass:Jt(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Kt(e,t){return i(e)||i(t)?Jt(e,Wt(t)):""}function Jt(e,t){return e?t?e+" "+t:e:t||""}function Wt(e){return Array.isArray(e)?Xt(e):c(e)?Zt(e):"string"==typeof e?e:""}function Xt(e){for(var t,n="",r=0,o=e.length;r-1?ts[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ts[e]=/HTMLUnknownElement/.test(t.toString())}function en(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function tn(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function nn(e,t){return document.createElementNS(Xa[e],t)}function rn(e){return document.createTextNode(e)}function on(e){return document.createComment(e)}function an(e,t,n){e.insertBefore(t,n)}function sn(e,t){e.removeChild(t)}function cn(e,t){e.appendChild(t)}function un(e){return e.parentNode}function ln(e){return e.nextSibling}function fn(e){return e.tagName}function pn(e,t){e.textContent=t}function dn(e,t){e.setAttribute(t,"")}function hn(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?v(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}function vn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&mn(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function mn(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||ns(r)&&ns(o)}function gn(e,t,n){var r,o,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function yn(e,t){(e.data.directives||t.data.directives)&&_n(e,t)}function _n(e,t){var n,r,i,o=e===os,a=t===os,s=bn(e.data.directives,e.context),c=bn(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,xn(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(xn(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n-1?Cn(e,t,n):za(t)?Wa(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):qa(t)?e.setAttribute(t,Wa(n)||"false"===n?"false":"true"):Ka(t)?Wa(n)?e.removeAttributeNS(Va,Ja(t)):e.setAttributeNS(Va,t,n):Cn(e,t,n)}function Cn(e,t,n){if(Wa(n))e.removeAttribute(t);else{if(Mo&&!Eo&&"TEXTAREA"===e.tagName&&"placeholder"===t&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}function An(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=zt(t),c=n._transitionClasses;i(c)&&(s=Jt(s,Wt(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}function On(e){function t(){(a||(a=[])).push(e.slice(h,i).trim()),h=i+1}var n,r,i,o,a,s=!1,c=!1,u=!1,l=!1,f=0,p=0,d=0,h=0;for(i=0;i=0&&" "===(m=e.charAt(v));v--);m&&ps.test(m)||(l=!0)}}else void 0===o?(h=i+1,o=e.slice(0,i).trim()):t();if(void 0===o?o=e.slice(0,i).trim():0!==h&&t(),a)for(i=0;i-1?{exp:e.slice(0,Pa),key:'"'+e.slice(Pa+1)+'"'}:{exp:e,key:null};for(ja=e,Pa=La=Na=0;!Bn();)Ia=Un(),Hn(Ia)?zn(Ia):91===Ia&&qn(Ia);return{exp:e.slice(0,La),key:e.slice(La+1,Na)}}function Un(){return ja.charCodeAt(++Pa)}function Bn(){return Pa>=Da}function Hn(e){return 34===e||39===e}function qn(e){var t=1;for(La=Pa;!Bn();)if(e=Un(),Hn(e))zn(e);else if(91===e&&t++,93===e&&t--,0===t){Na=Pa;break}}function zn(e){for(var t=e;!Bn()&&(e=Un())!==t;);}function Vn(e,t,n){Ra=n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Rn(e,r,i),!1;if("select"===o)Wn(e,r,i);else if("input"===o&&"checkbox"===a)Kn(e,r,i);else if("input"===o&&"radio"===a)Jn(e,r,i);else if("input"===o||"textarea"===o)Xn(e,r,i);else if(!ko.isReservedTag(o))return Rn(e,r,i),!1;return!0}function Kn(e,t,n){var r=n&&n.number,i=Ln(e,"value")||"null",o=Ln(e,"true-value")||"true",a=Ln(e,"false-value")||"false";En(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Pn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Fn(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Fn(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Fn(t,"$$c")+"}",null,!0)}function Jn(e,t,n){var r=n&&n.number,i=Ln(e,"value")||"null";i=r?"_n("+i+")":i,En(e,"checked","_q("+t+","+i+")"),Pn(e,"change",Fn(t,i),null,!0)}function Wn(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="var $$selectedVal = "+i+";";o=o+" "+Fn(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Pn(e,"change",o,null,!0)}function Xn(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?ds:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Fn(t,l);c&&(f="if($event.target.composing)return;"+f),En(e,"value","("+t+")"),Pn(e,u,f,null,!0),(s||a)&&Pn(e,"blur","$forceUpdate()")}function Zn(e){if(i(e[ds])){var t=Mo?"change":"input";e[t]=[].concat(e[ds],e[t]||[]),delete e[ds]}i(e[hs])&&(e.change=[].concat(e[hs],e.change||[]),delete e[hs])}function Yn(e,t,n){var r=Fa;return function i(){null!==e.apply(null,arguments)&&er(t,i,n,r)}}function Qn(e,t,n,r,i){t=se(t),n&&(t=Yn(t,e,r)),Fa.addEventListener(e,t,Po?{capture:r,passive:i}:r)}function er(e,t,n,r){(r||Fa).removeEventListener(e,t._withTask||t,n)}function tr(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Fa=t.elm,Zn(n),pe(n,i,Qn,er,t.context),Fa=void 0}}function nr(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};i(c.__ob__)&&(c=t.data.domProps=w({},c));for(n in s)r(c[n])&&(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=o;var u=r(o)?"":String(o);rr(a,u)&&(a.value=u)}else a[n]=o}}}function rr(e,t){return!e.composing&&("OPTION"===e.tagName||ir(e,t)||or(e,t))}function ir(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function or(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.lazy)return!1;if(r.number)return d(n)!==d(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}function ar(e){var t=sr(e.style);return e.staticStyle?w(e.staticStyle,t):t}function sr(e){return Array.isArray(e)?x(e):"string"==typeof e?gs(e):e}function cr(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=ar(i.data))&&w(r,n);(n=ar(e.data))&&w(r,n);for(var o=e;o=o.parent;)o.data&&(n=ar(o.data))&&w(r,n);return r}function ur(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=sr(t.data.style)||{};t.data.normalizedStyle=i(p.__ob__)?w({},p):p;var d=cr(t,!0);for(s in f)r(d[s])&&bs(c,s,"");for(s in d)(a=d[s])!==f[s]&&bs(c,s,null==a?"":a)}}function lr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function fr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function pr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&w(t,$s(e.name||"v")),w(t,e),t}return"string"==typeof e?$s(e):void 0}}function dr(e){Ds(function(){Ds(e)})}function hr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),lr(e,t))}function vr(e,t){e._transitionClasses&&v(e._transitionClasses,t),fr(e,t)}function mr(e,t,n){var r=gr(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===As?Ss:Es,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=As,l=a,f=o.length):t===Os?u>0&&(n=Os,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?As:Os:null,f=n?n===As?o.length:c.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===As&&js.test(r[Ts+"Property"])}}function yr(e,t){for(;e.length1}function $r(e,t){!0!==t.data.show&&br(t)}function Cr(e,t,n){Ar(e,t,n),(Mo||Do)&&setTimeout(function(){Ar(e,t,n)},0)}function Ar(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if($(Tr(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Or(e,t){return t.every(function(t){return!$(t,e)})}function Tr(e){return"_value"in e?e._value:e.value}function Sr(e){e.target.composing=!0}function Mr(e){e.target.composing&&(e.target.composing=!1,Er(e.target,"input"))}function Er(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Dr(e){return!e.componentInstance||e.data&&e.data.transition?e:Dr(e.componentInstance._vnode)}function jr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?jr($e(t.children)):e}function Ir(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[po(o)]=i[o];return t}function Pr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Lr(e){for(;e=e.parent;)if(e.data.transition)return!0}function Nr(e,t){return t.key===e.key&&t.tag===e.tag}function Rr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Fr(e){e.data.newPos=e.elm.getBoundingClientRect()}function Gr(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function Ur(e,t){var n=t?Ws(t):Ks;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){i=r.index,i>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=On(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=a.length-1;c>=i;c--)t.end&&t.end(a[c].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var i,o,a=[],s=t.expectHTML,c=t.isUnaryTag||yo,u=t.canBeLeftOpenTag||yo,l=0;e;){if(i=e,o&&kc(o)){var f=0,p=o.toLowerCase(),d=$c[p]||($c[p]=new RegExp("([\\s\\S]*?)(]*>)","i")),h=e.replace(d,function(e,n,r){return f=r.length,kc(p)||"noscript"===p||(n=n.replace(//g,"$1").replace(//g,"$1")),Sc(p,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-h.length,e=h,r(p,l-f,l)}else{var v=e.indexOf("<");if(0===v){if(uc.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m)),n(m+3);continue}}if(lc.test(e)){var g=e.indexOf("]>");if(g>=0){n(g+2);continue}}var y=e.match(cc);if(y){n(y[0].length);continue}var _=e.match(sc);if(_){var b=l;n(_[0].length),r(_[1],b,l);continue}var w=function(){var t=e.match(oc);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var i,o;!(i=e.match(ac))&&(o=e.match(nc));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}();if(w){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===o&&tc(n)&&r(o),u(n)&&o===n&&r(n));for(var l=c(n)||!!i,f=e.attrs.length,p=new Array(f),d=0;d=0){for(k=e.slice(v);!(sc.test(k)||oc.test(k)||uc.test(k)||lc.test(k)||($=k.indexOf("<",1))<0);)v+=$,k=e.slice(v);x=e.substring(0,v),n(v)}v<0&&(x=e,e=""),t.chars&&x&&t.chars(x)}if(e===i){t.chars&&t.chars(e);break}}r()}function Jr(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:di(t),parent:n,children:[]}}function Wr(e,t){function n(e){e.pre&&(s=!1),gc(e.tag)&&(c=!1);for(var n=0;n':'
',xc.innerHTML.indexOf(" ")>0}function oo(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}/*! * Vue.js v2.5.16 * (c) 2014-2018 Evan You * Released under the MIT License. */ -var ao=Object.freeze({}),so=Object.prototype.toString,co=v("slot,component",!0),uo=v("key,ref,slot,slot-scope,is"),lo=Object.prototype.hasOwnProperty,fo=/-(\w)/g,po=y(function(t){return t.replace(fo,function(t,e){return e?e.toUpperCase():""})}),vo=y(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),ho=/\B([A-Z])/g,mo=y(function(t){return t.replace(ho,"-$1").toLowerCase()}),yo=Function.prototype.bind?b:g,go=function(t,e,n){return!1},bo=function(t){return t},_o="data-server-rendered",wo=["component","directive","filter"],xo=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],ko={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:go,isReservedAttr:go,isUnknownElement:go,getTagNamespace:k,parsePlatformTagName:bo,mustUseProp:go,_lifecycleHooks:xo},$o=/[^\w.$]/,Co="__proto__"in{},Ao="undefined"!=typeof window,Oo="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,To=Oo&&WXEnvironment.platform.toLowerCase(),Mo=Ao&&window.navigator.userAgent.toLowerCase(),So=Mo&&/msie|trident/.test(Mo),Eo=Mo&&Mo.indexOf("msie 9.0")>0,Do=Mo&&Mo.indexOf("edge/")>0,jo=(Mo&&Mo.indexOf("android"),Mo&&/iphone|ipad|ipod|ios/.test(Mo)||"ios"===To),Io=(Mo&&/chrome\/\d+/.test(Mo),{}.watch),Lo=!1;if(Ao)try{var No={};Object.defineProperty(No,"passive",{get:function(){Lo=!0}}),window.addEventListener("test-passive",null,No)}catch(t){}var Po,Ro,Fo=function(){return void 0===Po&&(Po=!Ao&&!Oo&&void 0!==t&&"server"===t.process.env.VUE_ENV),Po},Go=Ao&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Uo="undefined"!=typeof Symbol&&S(Symbol)&&"undefined"!=typeof Reflect&&S(Reflect.ownKeys);Ro="undefined"!=typeof Set&&S(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Bo=k,Ho=0,qo=function(){this.id=Ho++,this.subs=[]};qo.prototype.addSub=function(t){this.subs.push(t)},qo.prototype.removeSub=function(t){h(this.subs,t)},qo.prototype.depend=function(){qo.target&&qo.target.addDep(this)},qo.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e1?_(n):n;for(var r=_(arguments,1),i=0,o=n.length;iparseInt(this.max)&&qe(c,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Ea={KeepAlive:Sa};!function(t){var e={};e.get=function(){return ko},Object.defineProperty(t,"config",e),t.util={warn:Bo,extend:w,mergeOptions:X,defineReactive:F},t.set=G,t.delete=U,t.nextTick=ct,t.options=Object.create(null),wo.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,w(t.options.components,Ea),Le(t),Ne(t),Pe(t),Ge(t)}(Ie),Object.defineProperty(Ie.prototype,"$isServer",{get:Fo}),Object.defineProperty(Ie.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ie,"FunctionalRenderContext",{value:ye}),Ie.version="2.5.16";var Da,ja,Ia,La,Na,Pa,Ra,Fa,Ga,Ua=v("style,class"),Ba=v("input,textarea,option,select,progress"),Ha=function(t,e,n){return"value"===n&&Ba(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},qa=v("contenteditable,draggable,spellcheck"),za=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Va="http://www.w3.org/1999/xlink",Ka=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ja=function(t){return Ka(t)?t.slice(6,t.length):""},Wa=function(t){return null==t||!1===t},Xa={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Za=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ya=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Qa=function(t){return"pre"===t},ts=function(t){return Za(t)||Ya(t)},es=Object.create(null),ns=v("text,number,password,search,email,tel,url"),rs=Object.freeze({createElement:en,createElementNS:nn,createTextNode:rn,createComment:on,insertBefore:an,removeChild:sn,appendChild:cn,parentNode:un,nextSibling:ln,tagName:fn,setTextContent:pn,setStyleScope:dn}),is={create:function(t,e){vn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(vn(t,!0),vn(e))},destroy:function(t){vn(t,!0)}},os=new Vo("",{},[]),as=["create","activate","update","remove","destroy"],ss={create:gn,update:gn,destroy:function(t){gn(t,os)}},cs=Object.create(null),us=[is,ss],ls={create:kn,update:kn},fs={create:An,update:An},ps=/[\w).+\-_$\]]/,ds="__r",vs="__c",hs={create:er,update:er},ms={create:nr,update:nr},ys=y(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),gs=/^--/,bs=/\s*!important$/,_s=function(t,e,n){if(gs.test(e))t.style.setProperty(e,n);else if(bs.test(n))t.style.setProperty(e,n.replace(bs,""),"important");else{var r=xs(e);if(Array.isArray(n))for(var i=0,o=n.length;iv?(f=r(n[y+1])?null:n[y+1].elm,g(t,f,n,d,y,o)):d>y&&_(t,e,p,v)}function k(t,e,n,r){for(var o=n;o\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,rc="[a-zA-Z_][\\w\\-\\.]*",ic="((?:"+rc+"\\:)?"+rc+")",oc=new RegExp("^<"+ic),ac=/^\s*(\/?)>/,sc=new RegExp("^<\\/"+ic+"[^>]*>"),cc=/^]+>/i,uc=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},Ac=/&(?:lt|gt|quot|amp);/g,Oc=/&(?:lt|gt|quot|amp|#10|#9);/g,Tc=v("pre,textarea",!0),Mc=function(t,e){return t&&Tc(t)&&"\n"===e[0]},Sc=/^@|^v-on:/,Ec=/^v-|^@|^:/,Dc=/([^]*?)\s+(?:in|of)\s+([^]*)/,jc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ic=/^\(|\)$/g,Lc=/:(.*)$/,Nc=/^:|^v-bind:/,Pc=/\.[^.]+/g,Rc=y(Ys.decode),Fc=/^xmlns:NS\d+/,Gc=/^NS\d+:/,Uc={preTransformNode:yi},Bc=[Xs,Zs,Uc],Hc={model:Vn,text:bi,html:_i},qc={expectHTML:!0,modules:Bc,directives:Hc,isPreTag:Qa,isUnaryTag:Qs,mustUseProp:Ha,canBeLeftOpenTag:tc,isReservedTag:ts,getTagNamespace:Ye,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(Bc)},zc=y(xi),Vc=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Kc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Jc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Wc={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},Xc=function(t){return"if("+t+")return null;"},Zc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Xc("$event.target !== $event.currentTarget"),ctrl:Xc("!$event.ctrlKey"),shift:Xc("!$event.shiftKey"),alt:Xc("!$event.altKey"),meta:Xc("!$event.metaKey"),left:Xc("'button' in $event && $event.button !== 0"),middle:Xc("'button' in $event && $event.button !== 1"),right:Xc("'button' in $event && $event.button !== 2")},Yc={on:Ei,bind:Di,cloak:k},Qc=function(t){this.options=t,this.warn=t.warn||Mn,this.transforms=Sn(t.modules,"transformCode"),this.dataGenFns=Sn(t.modules,"genData"),this.directives=w(w({},Yc),t.directives);var e=t.isReservedTag||go;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},tu=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function n(n,r){var i=Object.create(e),o=[],a=[];if(i.warn=function(t,e){(e?a:o).push(t)},r){r.modules&&(i.modules=(e.modules||[]).concat(r.modules)),r.directives&&(i.directives=w(Object.create(e.directives||null),r.directives));for(var s in r)"modules"!==s&&"directives"!==s&&(i[s]=r[s])}var c=t(n,i);return c.errors=o,c.tips=a,c}return{compile:n,compileToFunctions:ro(n)}}}(function(t,e){var n=Wr(t.trim(),e);!1!==e.optimize&&wi(n,e);var r=ji(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}})),eu=tu(qc),nu=eu.compileToFunctions,ru=!!Ao&&io(!1),iu=!!Ao&&io(!0),ou=y(function(t){var e=tn(t);return e&&e.innerHTML}),au=Ie.prototype.$mount;Ie.prototype.$mount=function(t,e){if((t=t&&tn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ou(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=oo(t));if(r){var i=nu(r,{shouldDecodeNewlines:ru,shouldDecodeNewlinesForHref:iu,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return au.call(this,t,e)},Ie.compile=nu,e.a=Ie}).call(e,n(3),n(14).setImmediate)},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var i=Function.prototype.apply;e.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(15),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(3))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;ninput{position:absolute;opacity:0;display:block;width:1px;height:1px}.block{flex:0 0 auto;width:30px;height:30px;background-color:#6da956;border:1px solid transparent}.block.air,.block.grass{background-color:#56f}.block.grass{height:28px;border-bottom:2px solid #0a0}.block.leaves{background-color:#383}.block.wood{background-color:#876}.block.soil{background-color:#543}.block.gravel{background-color:#665}.block.stone{background-color:#555}.block.bedrock{background-color:#333}.block.cave{background-color:#000}.block:hover{border-color:hsla(0,0%,100%,.2)}",""])},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(10),o=n.n(i),a=n(11),s=n.n(a),c=(n(4),n(33)),u=n(34),l=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"super random seed";r(this,t);var a=o()(i),l=new s.a({random:a});this._x=0,this._y=0,this._w=e,this._h=n,this._grid=new Array(this._h),this.blockGen=new c.a(l),this.blockExt=new u.a(l)}return l(t,[{key:"grid",value:function(t,e){return this._x=t,this._y=e,this.generate(),this._grid}},{key:"generate",value:function(){for(var t=0;t>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=4294967296*r}return 2.3283064365386963e-10*(t>>>0)}}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(e,n,e,i))&&(i.exports=r):this.alea=c}(0,"object"==typeof t&&t,n(0))}).call(e,n(1)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this,n="";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:n+=t;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var t=n.next()>>>11,e=(n.next()>>>0)/4294967296,r=(t+e)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(e,n,e,i))&&(i.exports=r):this.xor128=c}(0,"object"==typeof t&&t,n(0))}).call(e,n(1)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this,n="";e.next=function(){var t=e.x^e.x>>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:n+=t;for(var r=0;r>>4),e.next()}function s(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function c(t,e){var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=n.next()>>>11,e=(n.next()>>>0)/4294967296,r=(t+e)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(e,n,e,i))&&(i.exports=r):this.xorwow=c}(0,"object"==typeof t&&t,n(0))}).call(e,n(1)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this;e.next=function(){var t,n,r=e.x,i=e.i;return t=r[i],t^=t>>>7,n=t^t<<24,t=r[i+1&7],n^=t^t>>>10,t=r[i+3&7],n^=t^t>>>3,t=r[i+4&7],n^=t^t<<7,t=r[i+7&7],t^=t<<13,n^=t^t<<9,r[i]=n,e.i=i+1&7,n},function(t,e){var n,r=[];if(e===(0|e))r[0]=e;else for(e=""+e,n=0;n0;--n)t.next()}(e,t)}function s(t,e){return e.x=t.x.slice(),e.i=t.i,e}function c(t,e){null==t&&(t=+new Date);var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=n.next()>>>11,e=(n.next()>>>0)/4294967296,r=(t+e)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(e,n,e,i))&&(i.exports=r):this.xorshift7=c}(0,"object"==typeof t&&t,n(0))}).call(e,n(1)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this;e.next=function(){var t,n,r=e.w,i=e.X,o=e.i;return e.w=r=r+1640531527|0,n=i[o+34&127],t=i[o=o+1&127],n^=n<<13,t^=t<<17,n^=n>>>15,t^=t>>>12,n=i[o]=n^t,e.i=o,n+(r^r>>>16)|0},function(t,e){var n,r,i,o,a,s=[],c=128;for(e===(0|e)?(r=e,e=null):(e+="\0",r=0,c=Math.max(c,e.length)),i=0,o=-32;o>>15,r^=r<<4,r^=r>>>13,o>=0&&(a=a+1640531527|0,n=s[127&o]^=r+a,i=0==n?i+1:0);for(i>=128&&(s[127&(e&&e.length||0)]=-1),i=127,o=512;o>0;--o)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;t.w=a,t.X=s,t.i=i}(e,t)}function s(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function c(t,e){null==t&&(t=+new Date);var n=new a(t),r=e&&e.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var t=n.next()>>>11,e=(n.next()>>>0)/4294967296,r=(t+e)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(e,n,e,i))&&(i.exports=r):this.xor4096=c}(0,"object"==typeof t&&t,n(0))}).call(e,n(1)(t))},function(t,e,n){(function(t){var r;!function(t,i,o){function a(t){var e=this,n="";e.next=function(){var t=e.b,n=e.c,r=e.d,i=e.a;return t=t<<25^t>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-t|0,e.b=t=t<<20^t>>>12^n,e.c=n=n-r|0,e.d=r<<16^n>>>16^i,e.a=i-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):n+=t;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var t=n.next()>>>11,e=(n.next()>>>0)/4294967296,r=(t+e)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(e,n,e,i))&&(i.exports=r):this.tychei=c}(0,"object"==typeof t&&t,n(0))}).call(e,n(1)(t))},function(t,e,n){var r;!function(i,o){function a(t,e,n){var r=[];e=1==e?{entropy:!0}:e||{};var a=l(u(e.entropy?[t,p(i)]:null==t?f():t,3),r),d=new s(r),v=function(){for(var t=d.g(m),e=g,n=0;t=_;)t/=2,e/=2,n>>>=1;return(t+n)/e};return v.int32=function(){return 0|d.g(4)},v.quick=function(){return d.g(4)/4294967296},v.double=v,l(p(d.S),i),(e.pass||n||function(t,e,n,r){return r&&(r.S&&c(r,d),t.state=function(){return c(d,{})}),n?(o[y]=t,e):t})(v,a,"global"in e?e.global:this==o,e.state)}function s(t){var e,n=t.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(t=[n++]);i0&&void 0!==arguments[0]?arguments[0]:"so freakin random";r(this,t);var n=new s.a({random:o()(e)});this.rand=function(t,e){return.5+.5*n.raw2D(t,e)}}return u(t,[{key:"level",value:function(t,e,n){for(var r=0;r0?t.x-1:0):null}]}}),t._v(" "),t._l(t.rows,function(e){return t._l(e,function(t){return n("div",{staticClass:"block",class:t.type})})})],2)},i=[],o={render:r,staticRenderFns:i};e.a=o},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"building-game"}},[n("Field")],1)},i=[],o={render:r,staticRenderFns:i};e.a=o}]); +var ao=Object.freeze({}),so=Object.prototype.toString,co=h("slot,component",!0),uo=h("key,ref,slot,slot-scope,is"),lo=Object.prototype.hasOwnProperty,fo=/-(\w)/g,po=g(function(e){return e.replace(fo,function(e,t){return t?t.toUpperCase():""})}),ho=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),vo=/\B([A-Z])/g,mo=g(function(e){return e.replace(vo,"-$1").toLowerCase()}),go=Function.prototype.bind?_:y,yo=function(e,t,n){return!1},_o=function(e){return e},bo="data-server-rendered",wo=["component","directive","filter"],xo=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],ko={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:yo,isReservedAttr:yo,isUnknownElement:yo,getTagNamespace:k,parsePlatformTagName:_o,mustUseProp:yo,_lifecycleHooks:xo},$o=/[^\w.$]/,Co="__proto__"in{},Ao="undefined"!=typeof window,Oo="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,To=Oo&&WXEnvironment.platform.toLowerCase(),So=Ao&&window.navigator.userAgent.toLowerCase(),Mo=So&&/msie|trident/.test(So),Eo=So&&So.indexOf("msie 9.0")>0,Do=So&&So.indexOf("edge/")>0,jo=(So&&So.indexOf("android"),So&&/iphone|ipad|ipod|ios/.test(So)||"ios"===To),Io=(So&&/chrome\/\d+/.test(So),{}.watch),Po=!1;if(Ao)try{var Lo={};Object.defineProperty(Lo,"passive",{get:function(){Po=!0}}),window.addEventListener("test-passive",null,Lo)}catch(e){}var No,Ro,Fo=function(){return void 0===No&&(No=!Ao&&!Oo&&void 0!==e&&"server"===e.process.env.VUE_ENV),No},Go=Ao&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Uo="undefined"!=typeof Symbol&&M(Symbol)&&"undefined"!=typeof Reflect&&M(Reflect.ownKeys);Ro="undefined"!=typeof Set&&M(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Bo=k,Ho=0,qo=function(){this.id=Ho++,this.subs=[]};qo.prototype.addSub=function(e){this.subs.push(e)},qo.prototype.removeSub=function(e){v(this.subs,e)},qo.prototype.depend=function(){qo.target&&qo.target.addDep(this)},qo.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?b(n):n;for(var r=b(arguments,1),i=0,o=n.length;iparseInt(this.max)&&qt(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Ea={KeepAlive:Ma};!function(e){var t={};t.get=function(){return ko},Object.defineProperty(e,"config",t),e.util={warn:Bo,extend:w,mergeOptions:X,defineReactive:F},e.set=G,e.delete=U,e.nextTick=ce,e.options=Object.create(null),wo.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,w(e.options.components,Ea),Pt(e),Lt(e),Nt(e),Gt(e)}(It),Object.defineProperty(It.prototype,"$isServer",{get:Fo}),Object.defineProperty(It.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(It,"FunctionalRenderContext",{value:gt}),It.version="2.5.16";var Da,ja,Ia,Pa,La,Na,Ra,Fa,Ga,Ua=h("style,class"),Ba=h("input,textarea,option,select,progress"),Ha=function(e,t,n){return"value"===n&&Ba(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},qa=h("contenteditable,draggable,spellcheck"),za=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Va="http://www.w3.org/1999/xlink",Ka=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ja=function(e){return Ka(e)?e.slice(6,e.length):""},Wa=function(e){return null==e||!1===e},Xa={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Za=h("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ya=h("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Qa=function(e){return"pre"===e},es=function(e){return Za(e)||Ya(e)},ts=Object.create(null),ns=h("text,number,password,search,email,tel,url"),rs=Object.freeze({createElement:tn,createElementNS:nn,createTextNode:rn,createComment:on,insertBefore:an,removeChild:sn,appendChild:cn,parentNode:un,nextSibling:ln,tagName:fn,setTextContent:pn,setStyleScope:dn}),is={create:function(e,t){hn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(hn(e,!0),hn(t))},destroy:function(e){hn(e,!0)}},os=new Vo("",{},[]),as=["create","activate","update","remove","destroy"],ss={create:yn,update:yn,destroy:function(e){yn(e,os)}},cs=Object.create(null),us=[is,ss],ls={create:kn,update:kn},fs={create:An,update:An},ps=/[\w).+\-_$\]]/,ds="__r",hs="__c",vs={create:tr,update:tr},ms={create:nr,update:nr},gs=g(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),ys=/^--/,_s=/\s*!important$/,bs=function(e,t,n){if(ys.test(t))e.style.setProperty(t,n);else if(_s.test(n))e.style.setProperty(t,n.replace(_s,""),"important");else{var r=xs(t);if(Array.isArray(n))for(var i=0,o=n.length;ih?(f=r(n[g+1])?null:n[g+1].elm,y(e,f,n,d,g,o)):d>g&&b(e,t,p,h)}function k(e,t,n,r){for(var o=n;o\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,rc="[a-zA-Z_][\\w\\-\\.]*",ic="((?:"+rc+"\\:)?"+rc+")",oc=new RegExp("^<"+ic),ac=/^\s*(\/?)>/,sc=new RegExp("^<\\/"+ic+"[^>]*>"),cc=/^]+>/i,uc=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},Ac=/&(?:lt|gt|quot|amp);/g,Oc=/&(?:lt|gt|quot|amp|#10|#9);/g,Tc=h("pre,textarea",!0),Sc=function(e,t){return e&&Tc(e)&&"\n"===t[0]},Mc=/^@|^v-on:/,Ec=/^v-|^@|^:/,Dc=/([^]*?)\s+(?:in|of)\s+([^]*)/,jc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ic=/^\(|\)$/g,Pc=/:(.*)$/,Lc=/^:|^v-bind:/,Nc=/\.[^.]+/g,Rc=g(Ys.decode),Fc=/^xmlns:NS\d+/,Gc=/^NS\d+:/,Uc={preTransformNode:gi},Bc=[Xs,Zs,Uc],Hc={model:Vn,text:_i,html:bi},qc={expectHTML:!0,modules:Bc,directives:Hc,isPreTag:Qa,isUnaryTag:Qs,mustUseProp:Ha,canBeLeftOpenTag:ec,isReservedTag:es,getTagNamespace:Yt,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Bc)},zc=g(xi),Vc=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Kc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Jc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Wc={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},Xc=function(e){return"if("+e+")return null;"},Zc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Xc("$event.target !== $event.currentTarget"),ctrl:Xc("!$event.ctrlKey"),shift:Xc("!$event.shiftKey"),alt:Xc("!$event.altKey"),meta:Xc("!$event.metaKey"),left:Xc("'button' in $event && $event.button !== 0"),middle:Xc("'button' in $event && $event.button !== 1"),right:Xc("'button' in $event && $event.button !== 2")},Yc={on:Ei,bind:Di,cloak:k},Qc=function(e){this.options=e,this.warn=e.warn||Sn,this.transforms=Mn(e.modules,"transformCode"),this.dataGenFns=Mn(e.modules,"genData"),this.directives=w(w({},Yc),e.directives);var t=e.isReservedTag||yo;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]},eu=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(e){return function(t){function n(n,r){var i=Object.create(t),o=[],a=[];if(i.warn=function(e,t){(t?a:o).push(e)},r){r.modules&&(i.modules=(t.modules||[]).concat(r.modules)),r.directives&&(i.directives=w(Object.create(t.directives||null),r.directives));for(var s in r)"modules"!==s&&"directives"!==s&&(i[s]=r[s])}var c=e(n,i);return c.errors=o,c.tips=a,c}return{compile:n,compileToFunctions:ro(n)}}}(function(e,t){var n=Wr(e.trim(),t);!1!==t.optimize&&wi(n,t);var r=ji(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}})),tu=eu(qc),nu=tu.compileToFunctions,ru=!!Ao&&io(!1),iu=!!Ao&&io(!0),ou=g(function(e){var t=en(e);return t&&t.innerHTML}),au=It.prototype.$mount;It.prototype.$mount=function(e,t){if((e=e&&en(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ou(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=oo(e));if(r){var i=nu(r,{shouldDecodeNewlines:ru,shouldDecodeNewlinesForHref:iu,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return au.call(this,e,t)},It.compile=nu,t.a=It}).call(t,n(4),n(14).setImmediate)},function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(15),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(4))},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;ninput{position:absolute;opacity:0;display:block;width:1px;height:1px}#level-indicator{position:absolute;top:0;right:0;color:#fff}#player{position:absolute;left:480px;top:512px;background-image:url("+r(n(25))+")}#player.left{background-image:url("+r(n(26))+")}#player,.block{flex:0 0 auto;width:32px;height:32px;background-color:transparent;background-size:cover;background-position:50%;background-repeat:no-repeat}.block{background-color:#56f}.block.grass{background-image:url("+r(n(27))+")}.block.tree_top_left{background-image:url("+r(n(28))+")}.block.tree_top_middle{background-image:url("+r(n(29))+")}.block.tree_top_right{background-image:url("+r(n(30))+")}.block.tree_crown_left{background-image:url("+r(n(31))+")}.block.tree_crown_middle{background-image:url("+r(n(32))+")}.block.tree_crown_right{background-image:url("+r(n(33))+")}.block.tree_trunk_left{background-image:url("+r(n(34))+")}.block.tree_trunk_middle{background-image:url("+r(n(35))+")}.block.tree_trunk_right{background-image:url("+r(n(36))+")}.block.tree_root_left{background-image:url("+r(n(37))+")}.block.tree_root_middle{background-image:url("+r(n(38))+")}.block.tree_root_right{background-image:url("+r(n(39))+")}.block.tree_top_left_mixed{background-image:url("+r(n(40))+")}.block.tree_crown_left_mixed{background-image:url("+r(n(41))+")}.block.tree_trunk_left_mixed{background-image:url("+r(n(42))+")}.block.tree_root_left_mixed{background-image:url("+r(n(43))+")}.block.tree_top_right_mixed{background-image:url("+r(n(44))+")}.block.tree_crown_right_mixed{background-image:url("+r(n(45))+")}.block.tree_trunk_right_mixed{background-image:url("+r(n(46))+")}.block.tree_root_right_mixed{background-image:url("+r(n(47))+")}.block.soil{background-image:url("+r(n(48))+")}.block.soil_gravel{background-image:url("+r(n(49))+")}.block.stone_gravel{background-color:#444}.block.stone{background-image:url("+r(n(50))+")}.block.bedrock{background-image:url("+r(n(51))+")}.block.cave{background-color:#000}.block.highlight,.block:hover{filter:brightness(1.4)}",""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){e.exports=n.p+"dwarf_right.png?fd8b8f00c60d7f668b4587b88449eb9e"},function(e,t,n){e.exports=n.p+"dwarf_left.png?41f1f5317212125ab32f0b99c848ab3a"},function(e,t,n){e.exports=n.p+"grass01.png?161bd6e55c0d644408f198423c28a264"},function(e,t,n){e.exports=n.p+"tree_top_left.png?190b0a7eae5db9ac348dbe2a759cbbea"},function(e,t,n){e.exports=n.p+"tree_top_middle.png?76c55da14b2b027692e6f57859aa877b"},function(e,t,n){e.exports=n.p+"tree_top_right.png?5fea29edbe7df52ab0b805e5b1beacad"},function(e,t,n){e.exports=n.p+"tree_crown_left.png?9e27a6e29d9ff4afae378ef4de28bacc"},function(e,t,n){e.exports=n.p+"tree_crown_middle.png?feace4b52f1986dbe8971bb1c6b866a4"},function(e,t,n){e.exports=n.p+"tree_crown_right.png?9f446e07069b59bf098f08290a3b99fd"},function(e,t,n){e.exports=n.p+"tree_trunk_left.png?91787bb77255eccdb56aecd9d0d8cc0f"},function(e,t,n){e.exports=n.p+"tree_trunk_middle.png?8efb2f4e059efc3765ac6624b188dccf"},function(e,t,n){e.exports=n.p+"tree_trunk_right.png?6b8ad8085c37a868a9d00f94e1f5b1fb"},function(e,t,n){e.exports=n.p+"tree_root_left.png?e04c1f311487071cca39ee4e536aded6"},function(e,t,n){e.exports=n.p+"tree_root_middle.png?903e6aef461e2c60512b2f81bfac1b0c"},function(e,t,n){e.exports=n.p+"tree_root_right.png?dee886315b3d0dd4c1ea31e974d6d274"},function(e,t,n){e.exports=n.p+"tree_top_left_mixed.png?649fc6ea033a3e0ca23f8a6903139f8d"},function(e,t,n){e.exports=n.p+"tree_crown_left_mixed.png?0775ce13dd2a051e619e1add441b7bc6"},function(e,t,n){e.exports=n.p+"tree_trunk_left_mixed.png?f555ff353fbaf56c34e66b5877c2fdda"},function(e,t,n){e.exports=n.p+"tree_root_left_mixed.png?109bfa5d9097620c21314c07cf4725ea"},function(e,t,n){e.exports=n.p+"tree_top_right_mixed.png?b211d17ee33dc21fa4030ffdb525f17e"},function(e,t,n){e.exports=n.p+"tree_crown_right_mixed.png?edd99501846e37b1a92090436ec1162b"},function(e,t,n){e.exports=n.p+"tree_trunk_right_mixed.png?3d1f6055615ab4f8928a69009770acd6"},function(e,t,n){e.exports=n.p+"tree_root_right_mixed.png?ae69f349ee96bfa1c5668edb9fe59fc1"},function(e,t,n){e.exports=n.p+"soil01.png?e705b9cd046d62c24951d4be81388a35"},function(e,t,n){e.exports=n.p+"soil_gravel01.png?5f0171acfde7383d9e8687410d296281"},function(e,t,n){e.exports=n.p+"rock.png?0c0b1452cdc2375694bba20fa1218a35"},function(e,t,n){e.exports=n.p+"bedrock.png?2676f92741a50cac753f09f59a3169b2"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(10),o=n.n(i),a=n(11),s=n.n(a),c=(n(3),n(61)),u=n(62),l=n(63),f=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"super random seed";r(this,e);var a=o()(i),f=new s.a({random:a});this._w=t,this._h=n,this._grid=new Array(this._h),this.blockGen=new c.a(f),this.blockExt=new u.a(f),this.player=new l.a(this._grid)}return f(e,[{key:"grid",value:function(e,t){return this.generate(e,t,this._w,this._h),this._grid}},{key:"generate",value:function(e,t,n,r){for(var i=0;i>>0,r-=e,r*=e,e=r>>>0,r-=e,e+=4294967296*r}return 2.3283064365386963e-10*(e>>>0)}}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(t,n,t,i))&&(i.exports=r):this.alea=c}(0,"object"==typeof e&&e,n(0))}).call(t,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,i,o){function a(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(t,n,t,i))&&(i.exports=r):this.xor128=c}(0,"object"==typeof e&&e,n(0))}).call(t,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function c(e,t){var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(t,n,t,i))&&(i.exports=r):this.xorwow=c}(0,"object"==typeof e&&e,n(0))}).call(t,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],e^=e>>>7,n=e^e<<24,e=r[i+1&7],n^=e^e>>>10,e=r[i+3&7],n^=e^e>>>3,e=r[i+4&7],n^=e^e<<7,e=r[i+7&7],e^=e<<13,n^=e^e<<9,r[i]=n,t.i=i+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,n=0;n0;--n)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function c(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(t,n,t,i))&&(i.exports=r):this.xorshift7=c}(0,"object"==typeof e&&e,n(0))}).call(t,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.w,i=t.X,o=t.i;return t.w=r=r+1640531527|0,n=i[o+34&127],e=i[o=o+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=i[o]=n^e,t.i=o,n+(r^r>>>16)|0},function(e,t){var n,r,i,o,a,s=[],c=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,c=Math.max(c,t.length)),i=0,o=-32;o>>15,r^=r<<4,r^=r>>>13,o>=0&&(a=a+1640531527|0,n=s[127&o]^=r+a,i=0==n?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;e.w=a,e.X=s,e.i=i}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function c(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(t,n,t,i))&&(i.exports=r):this.xor4096=c}(0,"object"==typeof e&&e,n(0))}).call(t,n(1)(e))},function(e,t,n){(function(e){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=c:n(0)&&n(2)?void 0!==(r=function(){return c}.call(t,n,t,i))&&(i.exports=r):this.tychei=c}(0,"object"==typeof e&&e,n(0))}).call(t,n(1)(e))},function(e,t,n){var r;!function(i,o){function a(e,t,n){var r=[];t=1==t?{entropy:!0}:t||{};var a=l(u(t.entropy?[e,p(i)]:null==e?f():e,3),r),d=new s(r),h=function(){for(var e=d.g(m),t=y,n=0;e<_;)e=(e+n)*v,t*=v,n=d.g(1);for(;e>=b;)e/=2,t/=2,n>>>=1;return(e+n)/t};return h.int32=function(){return 0|d.g(4)},h.quick=function(){return d.g(4)/4294967296},h.double=h,l(p(d.S),i),(t.pass||n||function(e,t,n,r){return r&&(r.S&&c(r,d),e.state=function(){return c(d,{})}),n?(o[g]=e,t):e})(h,a,"global"in t?t.global:this==o,t.state)}function s(e){var t,n=e.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);i=0&&n[t]===i.c.soil&&(n[t]=i.c.grass)}},{key:"rock",value:function(e,t,n,r){r[t]===i.c.soil&&e\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of \n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/Field.vue","// A library of seedable RNGs implemented in Javascript.\n//\n// Usage:\n//\n// var seedrandom = require('seedrandom');\n// var random = seedrandom(1); // or any seed.\n// var x = random(); // 0 <= x < 1. Every bit is random.\n// var x = random.quick(); // 0 <= x < 1. 32 bits of randomness.\n\n// alea, a 53-bit multiply-with-carry generator by Johannes Baagøe.\n// Period: ~2^116\n// Reported to pass all BigCrush tests.\nvar alea = require('./lib/alea');\n\n// xor128, a pure xor-shift generator by George Marsaglia.\n// Period: 2^128-1.\n// Reported to fail: MatrixRank and LinearComp.\nvar xor128 = require('./lib/xor128');\n\n// xorwow, George Marsaglia's 160-bit xor-shift combined plus weyl.\n// Period: 2^192-2^32\n// Reported to fail: CollisionOver, SimpPoker, and LinearComp.\nvar xorwow = require('./lib/xorwow');\n\n// xorshift7, by François Panneton and Pierre L'ecuyer, takes\n// a different approach: it adds robustness by allowing more shifts\n// than Marsaglia's original three. It is a 7-shift generator\n// with 256 bits, that passes BigCrush with no systmatic failures.\n// Period 2^256-1.\n// No systematic BigCrush failures reported.\nvar xorshift7 = require('./lib/xorshift7');\n\n// xor4096, by Richard Brent, is a 4096-bit xor-shift with a\n// very long period that also adds a Weyl generator. It also passes\n// BigCrush with no systematic failures. Its long period may\n// be useful if you have many generators and need to avoid\n// collisions.\n// Period: 2^4128-2^32.\n// No systematic BigCrush failures reported.\nvar xor4096 = require('./lib/xor4096');\n\n// Tyche-i, by Samuel Neves and Filipe Araujo, is a bit-shifting random\n// number generator derived from ChaCha, a modern stream cipher.\n// https://eden.dei.uc.pt/~sneves/pubs/2011-snfa2.pdf\n// Period: ~2^127\n// No systematic BigCrush failures reported.\nvar tychei = require('./lib/tychei');\n\n// The original ARC4-based prng included in this library.\n// Period: ~2^1600\nvar sr = require('./seedrandom');\n\nsr.alea = alea;\nsr.xor128 = xor128;\nsr.xorwow = xorwow;\nsr.xorshift7 = xorshift7;\nsr.xor4096 = xor4096;\nsr.tychei = tychei;\n\nmodule.exports = sr;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/seedrandom/index.js\n// module id = 10\n// module chunks = 0","\"use strict\";\nvar FastSimplexNoise = (function () {\n function FastSimplexNoise(options) {\n if (options === void 0) { options = {}; }\n if (options.hasOwnProperty('amplitude')) {\n if (typeof options.amplitude !== 'number')\n throw new Error('options.amplitude must be a number');\n this.amplitude = options.amplitude;\n }\n else\n this.amplitude = 1.0;\n if (options.hasOwnProperty('frequency')) {\n if (typeof options.frequency !== 'number')\n throw new Error('options.frequency must be a number');\n this.frequency = options.frequency;\n }\n else\n this.frequency = 1.0;\n if (options.hasOwnProperty('octaves')) {\n if (typeof options.octaves !== 'number' ||\n !isFinite(options.octaves) ||\n Math.floor(options.octaves) !== options.octaves) {\n throw new Error('options.octaves must be an integer');\n }\n this.octaves = options.octaves;\n }\n else\n this.octaves = 1;\n if (options.hasOwnProperty('persistence')) {\n if (typeof options.persistence !== 'number')\n throw new Error('options.persistence must be a number');\n this.persistence = options.persistence;\n }\n else\n this.persistence = 0.5;\n if (options.hasOwnProperty('random')) {\n if (typeof options.random !== 'function')\n throw new Error('options.random must be a function');\n this.random = options.random;\n }\n else\n this.random = Math.random;\n var min;\n if (options.hasOwnProperty('min')) {\n if (typeof options.min !== 'number')\n throw new Error('options.min must be a number');\n min = options.min;\n }\n else\n min = -1;\n var max;\n if (options.hasOwnProperty('max')) {\n if (typeof options.max !== 'number')\n throw new Error('options.max must be a number');\n max = options.max;\n }\n else\n max = 1;\n if (min >= max)\n throw new Error(\"options.min (\" + min + \") must be less than options.max (\" + max + \")\");\n this.scale = min === -1 && max === 1\n ? function (value) { return value; }\n : function (value) { return min + ((value + 1) / 2) * (max - min); };\n var p = new Uint8Array(256);\n for (var i = 0; i < 256; i++)\n p[i] = i;\n var n;\n var q;\n for (var i = 255; i > 0; i--) {\n n = Math.floor((i + 1) * this.random());\n q = p[i];\n p[i] = p[n];\n p[n] = q;\n }\n this.perm = new Uint8Array(512);\n this.permMod12 = new Uint8Array(512);\n for (var i = 0; i < 512; i++) {\n this.perm[i] = p[i & 255];\n this.permMod12[i] = this.perm[i] % 12;\n }\n }\n FastSimplexNoise.prototype.cylindrical = function (circumference, coords) {\n switch (coords.length) {\n case 2: return this.cylindrical2D(circumference, coords[0], coords[1]);\n case 3: return this.cylindrical3D(circumference, coords[0], coords[1], coords[2]);\n default: return null;\n }\n };\n FastSimplexNoise.prototype.cylindrical2D = function (circumference, x, y) {\n var nx = x / circumference;\n var r = circumference / (2 * Math.PI);\n var rdx = nx * 2 * Math.PI;\n var a = r * Math.sin(rdx);\n var b = r * Math.cos(rdx);\n return this.scaled3D(a, b, y);\n };\n FastSimplexNoise.prototype.cylindrical3D = function (circumference, x, y, z) {\n var nx = x / circumference;\n var r = circumference / (2 * Math.PI);\n var rdx = nx * 2 * Math.PI;\n var a = r * Math.sin(rdx);\n var b = r * Math.cos(rdx);\n return this.scaled4D(a, b, y, z);\n };\n FastSimplexNoise.prototype.dot = function (gs, coords) {\n return gs\n .slice(0, Math.min(gs.length, coords.length))\n .reduce(function (total, g, i) { return total + (g * coords[i]); }, 0);\n };\n FastSimplexNoise.prototype.raw = function (coords) {\n switch (coords.length) {\n case 2: return this.raw2D(coords[0], coords[1]);\n case 3: return this.raw3D(coords[0], coords[1], coords[2]);\n case 4: return this.raw4D(coords[0], coords[1], coords[2], coords[3]);\n default: return null;\n }\n };\n FastSimplexNoise.prototype.raw2D = function (x, y) {\n var s = (x + y) * 0.5 * (Math.sqrt(3.0) - 1.0);\n var i = Math.floor(x + s);\n var j = Math.floor(y + s);\n var t = (i + j) * FastSimplexNoise.G2;\n var X0 = i - t;\n var Y0 = j - t;\n var x0 = x - X0;\n var y0 = y - Y0;\n var i1 = x0 > y0 ? 1 : 0;\n var j1 = x0 > y0 ? 0 : 1;\n var x1 = x0 - i1 + FastSimplexNoise.G2;\n var y1 = y0 - j1 + FastSimplexNoise.G2;\n var x2 = x0 - 1.0 + 2.0 * FastSimplexNoise.G2;\n var y2 = y0 - 1.0 + 2.0 * FastSimplexNoise.G2;\n var ii = i & 255;\n var jj = j & 255;\n var gi0 = this.permMod12[ii + this.perm[jj]];\n var gi1 = this.permMod12[ii + i1 + this.perm[jj + j1]];\n var gi2 = this.permMod12[ii + 1 + this.perm[jj + 1]];\n var t0 = 0.5 - x0 * x0 - y0 * y0;\n var n0 = t0 < 0 ? 0.0 : Math.pow(t0, 4) * this.dot(FastSimplexNoise.GRAD3D[gi0], [x0, y0]);\n var t1 = 0.5 - x1 * x1 - y1 * y1;\n var n1 = t1 < 0 ? 0.0 : Math.pow(t1, 4) * this.dot(FastSimplexNoise.GRAD3D[gi1], [x1, y1]);\n var t2 = 0.5 - x2 * x2 - y2 * y2;\n var n2 = t2 < 0 ? 0.0 : Math.pow(t2, 4) * this.dot(FastSimplexNoise.GRAD3D[gi2], [x2, y2]);\n return 70.14805770653952 * (n0 + n1 + n2);\n };\n FastSimplexNoise.prototype.raw3D = function (x, y, z) {\n var s = (x + y + z) / 3.0;\n var i = Math.floor(x + s);\n var j = Math.floor(y + s);\n var k = Math.floor(z + s);\n var t = (i + j + k) * FastSimplexNoise.G3;\n var X0 = i - t;\n var Y0 = j - t;\n var Z0 = k - t;\n var x0 = x - X0;\n var y0 = y - Y0;\n var z0 = z - Z0;\n var i1, j1, k1;\n var i2, j2, k2;\n if (x0 >= y0) {\n if (y0 >= z0) {\n i1 = i2 = j2 = 1;\n j1 = k1 = k2 = 0;\n }\n else if (x0 >= z0) {\n i1 = i2 = k2 = 1;\n j1 = k1 = j2 = 0;\n }\n else {\n k1 = i2 = k2 = 1;\n i1 = j1 = j2 = 0;\n }\n }\n else {\n if (y0 < z0) {\n k1 = j2 = k2 = 1;\n i1 = j1 = i2 = 0;\n }\n else if (x0 < z0) {\n j1 = j2 = k2 = 1;\n i1 = k1 = i2 = 0;\n }\n else {\n j1 = i2 = j2 = 1;\n i1 = k1 = k2 = 0;\n }\n }\n var x1 = x0 - i1 + FastSimplexNoise.G3;\n var y1 = y0 - j1 + FastSimplexNoise.G3;\n var z1 = z0 - k1 + FastSimplexNoise.G3;\n var x2 = x0 - i2 + 2.0 * FastSimplexNoise.G3;\n var y2 = y0 - j2 + 2.0 * FastSimplexNoise.G3;\n var z2 = z0 - k2 + 2.0 * FastSimplexNoise.G3;\n var x3 = x0 - 1.0 + 3.0 * FastSimplexNoise.G3;\n var y3 = y0 - 1.0 + 3.0 * FastSimplexNoise.G3;\n var z3 = z0 - 1.0 + 3.0 * FastSimplexNoise.G3;\n var ii = i & 255;\n var jj = j & 255;\n var kk = k & 255;\n var gi0 = this.permMod12[ii + this.perm[jj + this.perm[kk]]];\n var gi1 = this.permMod12[ii + i1 + this.perm[jj + j1 + this.perm[kk + k1]]];\n var gi2 = this.permMod12[ii + i2 + this.perm[jj + j2 + this.perm[kk + k2]]];\n var gi3 = this.permMod12[ii + 1 + this.perm[jj + 1 + this.perm[kk + 1]]];\n var t0 = 0.5 - x0 * x0 - y0 * y0 - z0 * z0;\n var n0 = t0 < 0 ? 0.0 : Math.pow(t0, 4) * this.dot(FastSimplexNoise.GRAD3D[gi0], [x0, y0, z0]);\n var t1 = 0.5 - x1 * x1 - y1 * y1 - z1 * z1;\n var n1 = t1 < 0 ? 0.0 : Math.pow(t1, 4) * this.dot(FastSimplexNoise.GRAD3D[gi1], [x1, y1, z1]);\n var t2 = 0.5 - x2 * x2 - y2 * y2 - z2 * z2;\n var n2 = t2 < 0 ? 0.0 : Math.pow(t2, 4) * this.dot(FastSimplexNoise.GRAD3D[gi2], [x2, y2, z2]);\n var t3 = 0.5 - x3 * x3 - y3 * y3 - z3 * z3;\n var n3 = t3 < 0 ? 0.0 : Math.pow(t3, 4) * this.dot(FastSimplexNoise.GRAD3D[gi3], [x3, y3, z3]);\n return 94.68493150681972 * (n0 + n1 + n2 + n3);\n };\n FastSimplexNoise.prototype.raw4D = function (x, y, z, w) {\n var s = (x + y + z + w) * (Math.sqrt(5.0) - 1.0) / 4.0;\n var i = Math.floor(x + s);\n var j = Math.floor(y + s);\n var k = Math.floor(z + s);\n var l = Math.floor(w + s);\n var t = (i + j + k + l) * FastSimplexNoise.G4;\n var X0 = i - t;\n var Y0 = j - t;\n var Z0 = k - t;\n var W0 = l - t;\n var x0 = x - X0;\n var y0 = y - Y0;\n var z0 = z - Z0;\n var w0 = w - W0;\n var rankx = 0;\n var ranky = 0;\n var rankz = 0;\n var rankw = 0;\n if (x0 > y0)\n rankx++;\n else\n ranky++;\n if (x0 > z0)\n rankx++;\n else\n rankz++;\n if (x0 > w0)\n rankx++;\n else\n rankw++;\n if (y0 > z0)\n ranky++;\n else\n rankz++;\n if (y0 > w0)\n ranky++;\n else\n rankw++;\n if (z0 > w0)\n rankz++;\n else\n rankw++;\n var i1 = rankx >= 3 ? 1 : 0;\n var j1 = ranky >= 3 ? 1 : 0;\n var k1 = rankz >= 3 ? 1 : 0;\n var l1 = rankw >= 3 ? 1 : 0;\n var i2 = rankx >= 2 ? 1 : 0;\n var j2 = ranky >= 2 ? 1 : 0;\n var k2 = rankz >= 2 ? 1 : 0;\n var l2 = rankw >= 2 ? 1 : 0;\n var i3 = rankx >= 1 ? 1 : 0;\n var j3 = ranky >= 1 ? 1 : 0;\n var k3 = rankz >= 1 ? 1 : 0;\n var l3 = rankw >= 1 ? 1 : 0;\n var x1 = x0 - i1 + FastSimplexNoise.G4;\n var y1 = y0 - j1 + FastSimplexNoise.G4;\n var z1 = z0 - k1 + FastSimplexNoise.G4;\n var w1 = w0 - l1 + FastSimplexNoise.G4;\n var x2 = x0 - i2 + 2.0 * FastSimplexNoise.G4;\n var y2 = y0 - j2 + 2.0 * FastSimplexNoise.G4;\n var z2 = z0 - k2 + 2.0 * FastSimplexNoise.G4;\n var w2 = w0 - l2 + 2.0 * FastSimplexNoise.G4;\n var x3 = x0 - i3 + 3.0 * FastSimplexNoise.G4;\n var y3 = y0 - j3 + 3.0 * FastSimplexNoise.G4;\n var z3 = z0 - k3 + 3.0 * FastSimplexNoise.G4;\n var w3 = w0 - l3 + 3.0 * FastSimplexNoise.G4;\n var x4 = x0 - 1.0 + 4.0 * FastSimplexNoise.G4;\n var y4 = y0 - 1.0 + 4.0 * FastSimplexNoise.G4;\n var z4 = z0 - 1.0 + 4.0 * FastSimplexNoise.G4;\n var w4 = w0 - 1.0 + 4.0 * FastSimplexNoise.G4;\n var ii = i & 255;\n var jj = j & 255;\n var kk = k & 255;\n var ll = l & 255;\n var gi0 = this.perm[ii + this.perm[jj + this.perm[kk + this.perm[ll]]]] % 32;\n var gi1 = this.perm[ii + i1 + this.perm[jj + j1 + this.perm[kk + k1 + this.perm[ll + l1]]]] % 32;\n var gi2 = this.perm[ii + i2 + this.perm[jj + j2 + this.perm[kk + k2 + this.perm[ll + l2]]]] % 32;\n var gi3 = this.perm[ii + i3 + this.perm[jj + j3 + this.perm[kk + k3 + this.perm[ll + l3]]]] % 32;\n var gi4 = this.perm[ii + 1 + this.perm[jj + 1 + this.perm[kk + 1 + this.perm[ll + 1]]]] % 32;\n var t0 = 0.5 - x0 * x0 - y0 * y0 - z0 * z0 - w0 * w0;\n var n0 = t0 < 0 ? 0.0 : Math.pow(t0, 4) * this.dot(FastSimplexNoise.GRAD4D[gi0], [x0, y0, z0, w0]);\n var t1 = 0.5 - x1 * x1 - y1 * y1 - z1 * z1 - w1 * w1;\n var n1 = t1 < 0 ? 0.0 : Math.pow(t1, 4) * this.dot(FastSimplexNoise.GRAD4D[gi1], [x1, y1, z1, w1]);\n var t2 = 0.5 - x2 * x2 - y2 * y2 - z2 * z2 - w2 * w2;\n var n2 = t2 < 0 ? 0.0 : Math.pow(t2, 4) * this.dot(FastSimplexNoise.GRAD4D[gi2], [x2, y2, z2, w2]);\n var t3 = 0.5 - x3 * x3 - y3 * y3 - z3 * z3 - w3 * w3;\n var n3 = t3 < 0 ? 0.0 : Math.pow(t3, 4) * this.dot(FastSimplexNoise.GRAD4D[gi3], [x3, y3, z3, w3]);\n var t4 = 0.5 - x4 * x4 - y4 * y4 - z4 * z4 - w4 * w4;\n var n4 = t4 < 0 ? 0.0 : Math.pow(t4, 4) * this.dot(FastSimplexNoise.GRAD4D[gi4], [x4, y4, z4, w4]);\n return 72.37855765153665 * (n0 + n1 + n2 + n3 + n4);\n };\n FastSimplexNoise.prototype.scaled = function (coords) {\n switch (coords.length) {\n case 2: return this.scaled2D(coords[0], coords[1]);\n case 3: return this.scaled3D(coords[0], coords[1], coords[2]);\n case 4: return this.scaled4D(coords[0], coords[1], coords[2], coords[3]);\n default: return null;\n }\n };\n FastSimplexNoise.prototype.scaled2D = function (x, y) {\n var amplitude = this.amplitude;\n var frequency = this.frequency;\n var maxAmplitude = 0;\n var noise = 0;\n for (var i = 0; i < this.octaves; i++) {\n noise += this.raw2D(x * frequency, y * frequency) * amplitude;\n maxAmplitude += amplitude;\n amplitude *= this.persistence;\n frequency *= 2;\n }\n return this.scale(noise / maxAmplitude);\n };\n FastSimplexNoise.prototype.scaled3D = function (x, y, z) {\n var amplitude = this.amplitude;\n var frequency = this.frequency;\n var maxAmplitude = 0;\n var noise = 0;\n for (var i = 0; i < this.octaves; i++) {\n noise += this.raw3D(x * frequency, y * frequency, z * frequency) * amplitude;\n maxAmplitude += amplitude;\n amplitude *= this.persistence;\n frequency *= 2;\n }\n return this.scale(noise / maxAmplitude);\n };\n FastSimplexNoise.prototype.scaled4D = function (x, y, z, w) {\n var amplitude = this.amplitude;\n var frequency = this.frequency;\n var maxAmplitude = 0;\n var noise = 0;\n for (var i = 0; i < this.octaves; i++) {\n noise += this.raw4D(x * frequency, y * frequency, z * frequency, w * frequency) * amplitude;\n maxAmplitude += amplitude;\n amplitude *= this.persistence;\n frequency *= 2;\n }\n return this.scale(noise / maxAmplitude);\n };\n FastSimplexNoise.prototype.spherical = function (circumference, coords) {\n switch (coords.length) {\n case 3: return this.spherical3D(circumference, coords[0], coords[1], coords[2]);\n case 2: return this.spherical2D(circumference, coords[0], coords[1]);\n default: return null;\n }\n };\n FastSimplexNoise.prototype.spherical2D = function (circumference, x, y) {\n var nx = x / circumference;\n var ny = y / circumference;\n var rdx = nx * 2 * Math.PI;\n var rdy = ny * Math.PI;\n var sinY = Math.sin(rdy + Math.PI);\n var sinRds = 2 * Math.PI;\n var a = sinRds * Math.sin(rdx) * sinY;\n var b = sinRds * Math.cos(rdx) * sinY;\n var d = sinRds * Math.cos(rdy);\n return this.scaled3D(a, b, d);\n };\n FastSimplexNoise.prototype.spherical3D = function (circumference, x, y, z) {\n var nx = x / circumference;\n var ny = y / circumference;\n var rdx = nx * 2 * Math.PI;\n var rdy = ny * Math.PI;\n var sinY = Math.sin(rdy + Math.PI);\n var sinRds = 2 * Math.PI;\n var a = sinRds * Math.sin(rdx) * sinY;\n var b = sinRds * Math.cos(rdx) * sinY;\n var d = sinRds * Math.cos(rdy);\n return this.scaled4D(a, b, d, z);\n };\n FastSimplexNoise.G2 = (3.0 - Math.sqrt(3.0)) / 6.0;\n FastSimplexNoise.G3 = 1.0 / 6.0;\n FastSimplexNoise.G4 = (5.0 - Math.sqrt(5.0)) / 20.0;\n FastSimplexNoise.GRAD3D = [\n [1, 1, 0], [-1, 1, 0], [1, -1, 0], [-1, -1, 0],\n [1, 0, 1], [-1, 0, 1], [1, 0, -1], [-1, 0, -1],\n [0, 1, 1], [0, -1, -1], [0, 1, -1], [0, -1, -1]\n ];\n FastSimplexNoise.GRAD4D = [\n [0, 1, 1, 1], [0, 1, 1, -1], [0, 1, -1, 1], [0, 1, -1, -1],\n [0, -1, 1, 1], [0, -1, 1, -1], [0, -1, -1, 1], [0, -1, -1, -1],\n [1, 0, 1, 1], [1, 0, 1, -1], [1, 0, -1, 1], [1, 0, -1, -1],\n [-1, 0, 1, 1], [-1, 0, 1, -1], [-1, 0, -1, 1], [-1, 0, -1, -1],\n [1, 1, 0, 1], [1, 1, 0, -1], [1, -1, 0, 1], [1, -1, 0, -1],\n [-1, 1, 0, 1], [-1, 1, 0, -1], [-1, -1, 0, 1], [-1, -1, 0, -1],\n [1, 1, 1, 0], [1, 1, -1, 0], [1, -1, 1, 0], [1, -1, -1, 0],\n [-1, 1, 1, 0], [-1, 1, -1, 0], [-1, -1, 1, 0], [-1, -1, -1, 0]\n ];\n return FastSimplexNoise;\n}());\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = FastSimplexNoise;\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/fast-simplex-noise/lib/index.js\n// module id = 11\n// module chunks = 0","import Vue from 'vue'\nimport App from './App.vue'\n\nVue.directive('keep-focussed', {\n inserted (el, binding) {\n el.focus()\n el.addEventListener('blur', () => el.focus())\n }\n})\n\nnew Vue({\n el: '#app',\n render: h => h(App)\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","/*!\n * Vue.js v2.5.16\n * (c) 2014-2018 Evan You\n * Released under the MIT License.\n */\n/* */\n\nvar emptyObject = Object.freeze({});\n\n// these helpers produces better vm code in JS engines due to their\n// explicitness and function inlining\nfunction isUndef (v) {\n return v === undefined || v === null\n}\n\nfunction isDef (v) {\n return v !== undefined && v !== null\n}\n\nfunction isTrue (v) {\n return v === true\n}\n\nfunction isFalse (v) {\n return v === false\n}\n\n/**\n * Check if value is primitive\n */\nfunction isPrimitive (value) {\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n // $flow-disable-line\n typeof value === 'symbol' ||\n typeof value === 'boolean'\n )\n}\n\n/**\n * Quick object check - this is primarily used to tell\n * Objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\n/**\n * Get the raw type string of a value e.g. [object Object]\n */\nvar _toString = Object.prototype.toString;\n\nfunction toRawType (value) {\n return _toString.call(value).slice(8, -1)\n}\n\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject (obj) {\n return _toString.call(obj) === '[object Object]'\n}\n\nfunction isRegExp (v) {\n return _toString.call(v) === '[object RegExp]'\n}\n\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex (val) {\n var n = parseFloat(String(val));\n return n >= 0 && Math.floor(n) === n && isFinite(val)\n}\n\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}\n\n/**\n * Convert a input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber (val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n\n}\n\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap (\n str,\n expectsLowerCase\n) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase\n ? function (val) { return map[val.toLowerCase()]; }\n : function (val) { return map[val]; }\n}\n\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n\n/**\n * Check if a attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');\n\n/**\n * Remove an item from an array\n */\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\n/**\n * Check whether the object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\n/**\n * Create a cached version of a pure function.\n */\nfunction cached (fn) {\n var cache = Object.create(null);\n return (function cachedFn (str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str))\n })\n}\n\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })\n});\n\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n});\n\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase()\n});\n\n/**\n * Simple bind polyfill for environments that do not support it... e.g.\n * PhantomJS 1.x. Technically we don't need this anymore since native bind is\n * now more performant in most browsers, but removing it would be breaking for\n * code that was able to run in PhantomJS 1.x, so this must be kept for\n * backwards compatibility.\n */\n\n/* istanbul ignore next */\nfunction polyfillBind (fn, ctx) {\n function boundFn (a) {\n var l = arguments.length;\n return l\n ? l > 1\n ? fn.apply(ctx, arguments)\n : fn.call(ctx, a)\n : fn.call(ctx)\n }\n\n boundFn._length = fn.length;\n return boundFn\n}\n\nfunction nativeBind (fn, ctx) {\n return fn.bind(ctx)\n}\n\nvar bind = Function.prototype.bind\n ? nativeBind\n : polyfillBind;\n\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret\n}\n\n/**\n * Mix properties into target object.\n */\nfunction extend (to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to\n}\n\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject (arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res\n}\n\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)\n */\nfunction noop (a, b, c) {}\n\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n\n/**\n * Return same value\n */\nvar identity = function (_) { return _; };\n\n/**\n * Generate a static keys string from compiler modules.\n */\nfunction genStaticKeys (modules) {\n return modules.reduce(function (keys, m) {\n return keys.concat(m.staticKeys || [])\n }, []).join(',')\n}\n\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\nfunction looseIndexOf (arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val)) { return i }\n }\n return -1\n}\n\n/**\n * Ensure a function is called only once.\n */\nfunction once (fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\n\nvar ASSET_TYPES = [\n 'component',\n 'directive',\n 'filter'\n];\n\nvar LIFECYCLE_HOOKS = [\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeUpdate',\n 'updated',\n 'beforeDestroy',\n 'destroyed',\n 'activated',\n 'deactivated',\n 'errorCaptured'\n];\n\n/* */\n\nvar config = ({\n /**\n * Option merge strategies (used in core/util/options)\n */\n // $flow-disable-line\n optionMergeStrategies: Object.create(null),\n\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n\n /**\n * Show production mode tip message on boot?\n */\n productionTip: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to enable devtools\n */\n devtools: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to record perf\n */\n performance: false,\n\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n\n /**\n * Custom user key aliases for v-on\n */\n // $flow-disable-line\n keyCodes: Object.create(null),\n\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n})\n\n/* */\n\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved (str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5F\n}\n\n/**\n * Define a property.\n */\nfunction def (obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n\n/**\n * Parse simple path.\n */\nvar bailRE = /[^\\w.$]/;\nfunction parsePath (path) {\n if (bailRE.test(path)) {\n return\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj) { return }\n obj = obj[segments[i]];\n }\n return obj\n }\n}\n\n/* */\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;\nvar weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nvar isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');\nvar isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');\nvar isChrome = UA && /chrome\\/\\d+/.test(UA) && !isEdge;\n\n// Firefox has a \"watch\" function on Object.prototype...\nvar nativeWatch = ({}).watch;\n\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', ({\n get: function get () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n })); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n } catch (e) {}\n}\n\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && !inWeex && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer = global['process'].env.VUE_ENV === 'server';\n } else {\n _isServer = false;\n }\n }\n return _isServer\n};\n\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\n/* istanbul ignore next */\nfunction isNative (Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString())\n}\n\nvar hasSymbol =\n typeof Symbol !== 'undefined' && isNative(Symbol) &&\n typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);\n\nvar _Set;\n/* istanbul ignore if */ // $flow-disable-line\nif (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n} else {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = (function () {\n function Set () {\n this.set = Object.create(null);\n }\n Set.prototype.has = function has (key) {\n return this.set[key] === true\n };\n Set.prototype.add = function add (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function clear () {\n this.set = Object.create(null);\n };\n\n return Set;\n }());\n}\n\n/* */\n\nvar warn = noop;\nvar tip = noop;\nvar generateComponentTrace = (noop); // work around flow check\nvar formatComponentName = (noop);\n\nif (process.env.NODE_ENV !== 'production') {\n var hasConsole = typeof console !== 'undefined';\n var classifyRE = /(?:^|[-_])(\\w)/g;\n var classify = function (str) { return str\n .replace(classifyRE, function (c) { return c.toUpperCase(); })\n .replace(/[-_]/g, ''); };\n\n warn = function (msg, vm) {\n var trace = vm ? generateComponentTrace(vm) : '';\n\n if (config.warnHandler) {\n config.warnHandler.call(null, msg, vm, trace);\n } else if (hasConsole && (!config.silent)) {\n console.error((\"[Vue warn]: \" + msg + trace));\n }\n };\n\n tip = function (msg, vm) {\n if (hasConsole && (!config.silent)) {\n console.warn(\"[Vue tip]: \" + msg + (\n vm ? generateComponentTrace(vm) : ''\n ));\n }\n };\n\n formatComponentName = function (vm, includeFile) {\n if (vm.$root === vm) {\n return ''\n }\n var options = typeof vm === 'function' && vm.cid != null\n ? vm.options\n : vm._isVue\n ? vm.$options || vm.constructor.options\n : vm || {};\n var name = options.name || options._componentTag;\n var file = options.__file;\n if (!name && file) {\n var match = file.match(/([^/\\\\]+)\\.vue$/);\n name = match && match[1];\n }\n\n return (\n (name ? (\"<\" + (classify(name)) + \">\") : \"\") +\n (file && includeFile !== false ? (\" at \" + file) : '')\n )\n };\n\n var repeat = function (str, n) {\n var res = '';\n while (n) {\n if (n % 2 === 1) { res += str; }\n if (n > 1) { str += str; }\n n >>= 1;\n }\n return res\n };\n\n generateComponentTrace = function (vm) {\n if (vm._isVue && vm.$parent) {\n var tree = [];\n var currentRecursiveSequence = 0;\n while (vm) {\n if (tree.length > 0) {\n var last = tree[tree.length - 1];\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence++;\n vm = vm.$parent;\n continue\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence];\n currentRecursiveSequence = 0;\n }\n }\n tree.push(vm);\n vm = vm.$parent;\n }\n return '\\n\\nfound in\\n\\n' + tree\n .map(function (vm, i) { return (\"\" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\n\nvar uid = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// the current target watcher being evaluated.\n// this is globally unique because there could be only one\n// watcher being evaluated at any time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (_target) {\n if (Dep.target) { targetStack.push(Dep.target); }\n Dep.target = _target;\n}\n\nfunction popTarget () {\n Dep.target = targetStack.pop();\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: { configurable: true } };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode) {\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n vnode.children,\n vnode.text,\n vnode.elm,\n vnode.context,\n vnode.componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.isCloned = true;\n return cloned\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);\n\nvar methodsToPatch = [\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n];\n\n/**\n * Intercept mutating methods and emit events\n */\nmethodsToPatch.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * In some cases we may want to disable observation inside a component's\n * update computation.\n */\nvar shouldObserve = true;\n\nfunction toggleObserving (value) {\n shouldObserve = value;\n}\n\n/**\n * Observer class that is attached to each observed\n * object. Once attached, the observer converts the target\n * object's property keys into getter/setters that\n * collect dependencies and dispatch updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n var augment = hasProto\n ? protoAugment\n : copyAugment;\n augment(value, arrayMethods, arrayKeys);\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through each property and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive(obj, keys[i]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment an target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src, keys) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment an target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value) || value instanceof VNode) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n shouldObserve &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n if (!getter && arguments.length === 2) {\n val = obj[key];\n }\n var setter = property && property.set;\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (process.env.NODE_ENV !== 'production' && customSetter) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (process.env.NODE_ENV !== 'production' &&\n (isUndef(target) || isPrimitive(target))\n ) {\n warn((\"Cannot set reactive property on undefined, null, or primitive value: \" + ((target))));\n }\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (process.env.NODE_ENV !== 'production' &&\n (isUndef(target) || isPrimitive(target))\n ) {\n warn((\"Cannot delete reactive property on undefined, null, or primitive value: \" + ((target))));\n }\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (process.env.NODE_ENV !== 'production') {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n var keys = Object.keys(from);\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this, this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal\n )\n }\n } else {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm, vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm, vm)\n : parentVal;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n process.env.NODE_ENV !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn(parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n return childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (\n parentVal,\n childVal,\n vm,\n key\n) {\n var res = Object.create(parentVal || null);\n if (childVal) {\n process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm);\n return extend(res, childVal)\n } else {\n return res\n }\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (process.env.NODE_ENV !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key$1 in childVal) {\n var parent = ret[key$1];\n var child = childVal[key$1];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key$1] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (\n parentVal,\n childVal,\n vm,\n key\n) {\n if (childVal && process.env.NODE_ENV !== 'production') {\n assertObjectType(key, childVal, vm);\n }\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n validateComponentName(key);\n }\n}\n\nfunction validateComponentName (name) {\n if (!/^[a-zA-Z][\\w-]*$/.test(name)) {\n warn(\n 'Invalid component name: \"' + name + '\". Component names ' +\n 'can only contain alphanumeric characters and the hyphen, ' +\n 'and must start with a letter.'\n );\n }\n if (isBuiltInTag(name) || config.isReservedTag(name)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + name\n );\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options, vm) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (process.env.NODE_ENV !== 'production') {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n \"Invalid value for option \\\"props\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(props)) + \".\",\n vm\n );\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options, vm) {\n var inject = options.inject;\n if (!inject) { return }\n var normalized = options.inject = {};\n if (Array.isArray(inject)) {\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = { from: inject[i] };\n }\n } else if (isPlainObject(inject)) {\n for (var key in inject) {\n var val = inject[key];\n normalized[key] = isPlainObject(val)\n ? extend({ from: key }, val)\n : { from: val };\n }\n } else if (process.env.NODE_ENV !== 'production') {\n warn(\n \"Invalid value for option \\\"inject\\\": expected an Array or an Object, \" +\n \"but got \" + (toRawType(inject)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def = dirs[key];\n if (typeof def === 'function') {\n dirs[key] = { bind: def, update: def };\n }\n }\n }\n}\n\nfunction assertObjectType (name, value, vm) {\n if (!isPlainObject(value)) {\n warn(\n \"Invalid value for option \\\"\" + name + \"\\\": expected an Object, \" +\n \"but got \" + (toRawType(value)) + \".\",\n vm\n );\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (process.env.NODE_ENV !== 'production') {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child, vm);\n normalizeInject(child, vm);\n normalizeDirectives(child);\n var extendsFrom = child.extends;\n if (extendsFrom) {\n parent = mergeOptions(parent, extendsFrom, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (process.env.NODE_ENV !== 'production' && warnMissing && !res) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // boolean casting\n var booleanIndex = getTypeIndex(Boolean, prop.type);\n if (booleanIndex > -1) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (value === '' || value === hyphenate(key)) {\n // only cast empty string / same name to boolean if\n // boolean has higher priority\n var stringIndex = getTypeIndex(String, prop.type);\n if (stringIndex < 0 || booleanIndex < stringIndex) {\n value = true;\n }\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldObserve = shouldObserve;\n toggleObserving(true);\n observe(value);\n toggleObserving(prevShouldObserve);\n }\n if (\n process.env.NODE_ENV !== 'production' &&\n // skip validation for weex recycle-list child component props\n !(false && isObject(value) && ('@binding' in value))\n ) {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (process.env.NODE_ENV !== 'production' && isObject(def)) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i]);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n if (!valid) {\n warn(\n \"Invalid prop: type check failed for prop \\\"\" + name + \"\\\".\" +\n \" Expected \" + (expectedTypes.map(capitalize).join(', ')) +\n \", got \" + (toRawType(value)) + \".\",\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;\n\nfunction assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n var t = typeof value;\n valid = t === expectedType.toLowerCase();\n // for primitive wrapper objects\n if (!valid && t === 'object') {\n valid = value instanceof type;\n }\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}\n\nfunction isSameType (a, b) {\n return getType(a) === getType(b)\n}\n\nfunction getTypeIndex (type, expectedTypes) {\n if (!Array.isArray(expectedTypes)) {\n return isSameType(expectedTypes, type) ? 0 : -1\n }\n for (var i = 0, len = expectedTypes.length; i < len; i++) {\n if (isSameType(expectedTypes[i], type)) {\n return i\n }\n }\n return -1\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n if (vm) {\n var cur = vm;\n while ((cur = cur.$parent)) {\n var hooks = cur.$options.errorCaptured;\n if (hooks) {\n for (var i = 0; i < hooks.length; i++) {\n try {\n var capture = hooks[i].call(cur, err, vm, info) === false;\n if (capture) { return }\n } catch (e) {\n globalHandleError(e, cur, 'errorCaptured hook');\n }\n }\n }\n }\n }\n globalHandleError(err, vm, info);\n}\n\nfunction globalHandleError (err, vm, info) {\n if (config.errorHandler) {\n try {\n return config.errorHandler.call(null, err, vm, info)\n } catch (e) {\n logError(e, null, 'config.errorHandler');\n }\n }\n logError(err, vm, info);\n}\n\nfunction logError (err, vm, info) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if ((inBrowser || inWeex) && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n}\n\n/* */\n/* globals MessageChannel */\n\nvar callbacks = [];\nvar pending = false;\n\nfunction flushCallbacks () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n}\n\n// Here we have async deferring wrappers using both microtasks and (macro) tasks.\n// In < 2.4 we used microtasks everywhere, but there are some scenarios where\n// microtasks have too high a priority and fire in between supposedly\n// sequential events (e.g. #4521, #6690) or even between bubbling of the same\n// event (#6566). However, using (macro) tasks everywhere also has subtle problems\n// when state is changed right before repaint (e.g. #6813, out-in transitions).\n// Here we use microtask by default, but expose a way to force (macro) task when\n// needed (e.g. in event handlers attached by v-on).\nvar microTimerFunc;\nvar macroTimerFunc;\nvar useMacroTask = false;\n\n// Determine (macro) task defer implementation.\n// Technically setImmediate should be the ideal choice, but it's only available\n// in IE. The only polyfill that consistently queues the callback after all DOM\n// events triggered in the same loop is by using MessageChannel.\n/* istanbul ignore if */\nif (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {\n macroTimerFunc = function () {\n setImmediate(flushCallbacks);\n };\n} else if (typeof MessageChannel !== 'undefined' && (\n isNative(MessageChannel) ||\n // PhantomJS\n MessageChannel.toString() === '[object MessageChannelConstructor]'\n)) {\n var channel = new MessageChannel();\n var port = channel.port2;\n channel.port1.onmessage = flushCallbacks;\n macroTimerFunc = function () {\n port.postMessage(1);\n };\n} else {\n /* istanbul ignore next */\n macroTimerFunc = function () {\n setTimeout(flushCallbacks, 0);\n };\n}\n\n// Determine microtask defer implementation.\n/* istanbul ignore next, $flow-disable-line */\nif (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n microTimerFunc = function () {\n p.then(flushCallbacks);\n // in problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n} else {\n // fallback to macro\n microTimerFunc = macroTimerFunc;\n}\n\n/**\n * Wrap a function so that if any code inside triggers state change,\n * the changes are queued using a (macro) task instead of a microtask.\n */\nfunction withMacroTask (fn) {\n return fn._withTask || (fn._withTask = function () {\n useMacroTask = true;\n var res = fn.apply(null, arguments);\n useMacroTask = false;\n return res\n })\n}\n\nfunction nextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n if (useMacroTask) {\n macroTimerFunc();\n } else {\n microTimerFunc();\n }\n }\n // $flow-disable-line\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve) {\n _resolve = resolve;\n })\n }\n}\n\n/* */\n\nvar mark;\nvar measure;\n\nif (process.env.NODE_ENV !== 'production') {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n perf.clearMeasures(name);\n };\n }\n}\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (process.env.NODE_ENV !== 'production') {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n 'referenced during render. Make sure that this property is reactive, ' +\n 'either in the data option, or for class-based components, by ' +\n 'initializing the property. ' +\n 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' && isNative(Proxy);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';\n if (!has && !isAllowed) {\n warnNonPresent(target, key);\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n warnNonPresent(target, key);\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\n/* */\n\nvar seenObjects = new _Set();\n\n/**\n * Recursively traverse an object to evoke all converted\n * getters, so that every nested property inside the object\n * is collected as a \"deep\" dependency.\n */\nfunction traverse (val) {\n _traverse(val, seenObjects);\n seenObjects.clear();\n}\n\nfunction _traverse (val, seen) {\n var i, keys;\n var isA = Array.isArray(val);\n if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {\n return\n }\n if (val.__ob__) {\n var depId = val.__ob__.dep.id;\n if (seen.has(depId)) {\n return\n }\n seen.add(depId);\n }\n if (isA) {\n i = val.length;\n while (i--) { _traverse(val[i], seen); }\n } else {\n keys = Object.keys(val);\n i = keys.length;\n while (i--) { _traverse(val[keys[i]], seen); }\n }\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n cloned[i].apply(null, arguments$1);\n }\n } else {\n // return handler return value for single handlers\n return fns.apply(null, arguments)\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n vm\n) {\n var name, def, cur, old, event;\n for (name in on) {\n def = cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n /* istanbul ignore if */\n if (isUndef(cur)) {\n process.env.NODE_ENV !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur);\n }\n add(event.name, cur, event.once, event.capture, event.passive, event.params);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (process.env.NODE_ENV !== 'production') {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.